/* Wspólne style wypraw /test/4 i /test/5. Pełny ekran, bez przewijania.
   Kolory wyłącznie z logo. */

:root {
  --void: #000000;
  --void-2: #120020;
  --violet: #7b0ff9;
  --cyan: #06bfeb;
  --magenta: #c912f7;
  --ink: #f3ecff;
  --soft: rgba(243, 236, 255, 0.74);
  --display: "Amatic SC", "Space Grotesk", sans-serif;
  --body: "Space Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --top: max(0.75rem, env(safe-area-inset-top));
  --bottom: max(0.9rem, env(safe-area-inset-bottom));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--body);
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, p, ul, dl, dd {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.w-stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.w-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.w-display {
  font-family: var(--display);
  font-weight: 700;
  line-height: 0.9;
}

.w-mono {
  font-family: var(--mono);
  letter-spacing: 0.06em;
}

.w-kicker {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}

/* warstwa tekstu nad sceną: nie łapie dotyku poza przyciskami */
.w-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: calc(var(--top) + 3.4rem) 1.1rem calc(var(--bottom) + 0.4rem);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s, visibility 0s 0.5s;
}

.w-layer.on {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s;
}

.w-layer a,
.w-layer button,
.w-layer input,
.w-layer label {
  pointer-events: auto;
}

.w-spacer {
  flex: 1;
}

.w-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.w-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.6rem 1.25rem;
  border: 1.5px solid var(--violet);
  border-radius: 999px;
  background: rgba(18, 0, 32, 0.82);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.w-btn--p {
  border-color: var(--cyan);
  background: var(--cyan);
  color: #000;
  box-shadow: 0 0 0.9rem rgba(6, 191, 235, 0.65);
}

.w-btn[hidden] {
  display: none;
}

/* ---------- konkrety zawsze pod ręką ---------- */

.w-pill {
  position: fixed;
  left: 0.75rem;
  top: var(--top);
  z-index: 30;
  max-width: calc(100% - 5.4rem);
  padding: 0.5rem 0.8rem;
  border: 1.5px solid var(--violet);
  border-radius: 999px;
  background: rgba(18, 0, 32, 0.88);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.w-pill span {
  color: var(--magenta);
}

.w-sound {
  position: fixed;
  right: 0.75rem;
  top: var(--top);
  z-index: 30;
  padding: 0.5rem 0.7rem;
  border: 1.5px solid rgba(123, 15, 249, 0.6);
  border-radius: 999px;
  background: rgba(18, 0, 32, 0.88);
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--soft);
  cursor: pointer;
}

.w-sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  background: rgba(0, 0, 0, 0.72);
}

.w-sheet[hidden] {
  display: none;
}

.w-sheet-in {
  position: relative;
  width: 100%;
  max-width: 34rem;
  max-height: 88%;
  margin-inline: auto;
  overflow-y: auto;
  padding: 1.5rem 1.2rem calc(var(--bottom) + 1rem);
  border: 2px solid var(--violet);
  border-bottom: 0;
  border-radius: 1.4rem 1.4rem 0 0;
  background: var(--void-2);
  box-shadow: 0 0 1.6rem rgba(123, 15, 249, 0.6);
}

.w-sheet h2 {
  font-family: var(--display);
  font-size: 3.6rem;
  line-height: 0.95;
  margin: 0.1rem 0 0.8rem;
}

.w-sheet dl > div {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(123, 15, 249, 0.45);
}

.w-sheet dt {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--soft);
  padding-top: 0.2rem;
}

.w-sheet dd {
  font-weight: 500;
  font-size: 1.05rem;
}

.w-sheet dd time {
  color: var(--cyan);
  font-weight: 700;
}

.w-sheet dd small {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--soft);
}

.w-sheet .w-row {
  justify-content: flex-start;
  margin-top: 1rem;
}

.w-lineups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.2rem;
}

.w-lineups h3 {
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1;
  color: var(--cyan);
  margin-bottom: 0.3rem;
}

.w-lineups h3:first-of-type {
  color: var(--ink);
}

.w-lineups ul {
  grid-row: 2;
}

.w-lineups li {
  display: flex;
  flex-direction: column;
  padding: 0.35rem 0;
}

.w-lineups b {
  font-size: 1rem;
}

.w-lineups span {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--soft);
}

.w-x {
  position: absolute;
  right: 0.6rem;
  top: 0.6rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 1.5px solid rgba(123, 15, 249, 0.6);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- pamiątka ---------- */

.w-card {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #000;
  padding: var(--top) 0.75rem var(--bottom);
}

.w-card img {
  flex: 1;
  min-height: 0;
  max-width: 100%;
  object-fit: contain;
  border-radius: 1rem;
  -webkit-touch-callout: default;
  user-select: auto;
  -webkit-user-select: auto;
}

.w-card-ui {
  width: 100%;
  padding-top: 0.6rem;
}

.w-card .w-x {
  z-index: 2;
  right: 0.75rem;
  top: var(--top);
}

.w-hint {
  font-size: 0.8rem;
  line-height: 1.4;
  text-align: center;
  color: var(--soft);
  margin-bottom: 0.6rem;
}

.w-field {
  display: grid;
  gap: 0.25rem;
  margin: 0 0 0.6rem;
  font-size: 0.74rem;
  text-align: center;
  color: var(--soft);
}

.w-field input {
  width: 14rem;
  max-width: 100%;
  justify-self: center;
  padding: 0.5rem 0.8rem;
  border: 1.5px solid var(--violet);
  border-radius: 999px;
  background: rgba(18, 0, 32, 0.9);
  color: var(--ink);
  font: 500 1rem var(--body);
  text-align: center;
}

.w-hint b {
  font-weight: 500;
  color: var(--ink);
}

.w-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bottom) + 4.6rem);
  z-index: 90;
  transform: translate(-50%, 0.6rem);
  max-width: 90%;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--cyan);
  border-radius: 999px;
  background: var(--void-2);
  font-size: 0.85rem;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}

.w-toast.on {
  opacity: 1;
  transform: translate(-50%, 0);
}

.w-noscript {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: grid;
  place-content: center;
  gap: 0.8rem;
  padding: 1.5rem;
  background: #000;
  text-align: center;
}

.w-noscript a {
  color: var(--cyan);
}

.w-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
