/* Strona pokazu świateł w stylu informatorów meczowych: granatowe tło z gradientem, duży znak
   młotków z herbu, krój klubowy w nagłówkach, linie zamiast kafli, ostre krawędzie. W trakcie
   pokazu ekran należy do koloru (klasa is-lit na <body> chowa treść). Ekrany przed pokazem
   i finał odliczania: screens.css; wybór trybuny i skrót: pick.css; intro i instrukcje: intro.css. */

@font-face {
  font-family: Schabo;
  src: url("schabo-condensed.woff2") format("woff2");
  font-display: swap;
}

:root {
  --navy: #12235a;
  --navy-0: #050a1f;
  --red: #e40728;
  --blue: #1f3c98;
  --fg: #fff;
  --fg-2: rgba(255, 255, 255, 0.86);
  --muted: rgba(255, 255, 255, 0.64);
  --line: rgba(255, 255, 255, 0.18);
  --display: Schabo, "Arial Narrow", Impact, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --tricolor: linear-gradient(90deg, #fff 0 33.34%, var(--blue) 33.34% 66.67%, var(--red) 66.67%);
  --reveal: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; background: var(--navy-0); }

body {
  overflow-x: hidden;
  color: var(--fg);
  font: 16px/1.45 var(--sans);
  -webkit-text-size-adjust: 100%;
}

h1, h2, p, ol, ul, fieldset, figure { margin: 0; }
[hidden] { display: none !important; }

.screen {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 560px;
  min-height: 100dvh;
  margin: 0 auto;
  padding: calc(14px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));
  background: linear-gradient(170deg, #050a1f 0%, #0b163f 40%, var(--navy) 100%);
}

/* Znak młotków: jeden duży, prawie niewidoczny, w prawym dolnym rogu. */
.emblem {
  position: absolute; right: -18%; bottom: 7%; z-index: -1; width: 82%; max-width: 440px;
  fill: #fff; opacity: 0.07; pointer-events: none;
}

body.is-lit .screen { background: none; }
body.is-lit .screen > * { visibility: hidden; }
body.is-lit .diag { display: none; }
body.is-lit .screen > .remaining { visibility: visible; }

/* ---------- Typografia ---------- */
.h1, .screen h1 {
  font-family: var(--display); font-weight: 400; font-size: clamp(40px, 12.5vw, 64px);
  line-height: 1.05; text-transform: uppercase; text-wrap: balance;
}
.h2 { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1.08; text-transform: uppercase; }
.h3 { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.1; text-transform: uppercase; }
.lead { font-size: 17px; color: var(--fg-2); }
.kicker { font: 800 12px/1.25 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.kicker--red { color: var(--fg); }
.kicker--red::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; background: var(--red); vertical-align: 1px; }

/* ---------- Pasek, barwy, przełącznik języka ---------- */
.top { display: flex; align-items: center; gap: 10px; }
.crest { width: 26px; height: 42px; flex: none; }
.brand { font-family: var(--display); font-size: 22px; line-height: 1; letter-spacing: 0.02em; text-transform: uppercase; }
.tri { height: 5px; margin: -6px -20px 0; background: var(--tricolor); }
.langs { display: flex; margin-left: auto; border: 1px solid var(--line); }
.lang {
  min-width: 40px; min-height: 36px; padding: 0 8px; border: 0; background: none; color: var(--muted);
  font: 800 13px/1 var(--sans); letter-spacing: 0.06em;
}
.lang[aria-pressed="true"] { background: #fff; color: var(--navy); }

/* ---------- Przyciski: reakcja pod palcem jak w aplikacji ---------- */
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
.tap { touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1); }
.tap:active:not(:disabled) { transform: scale(0.96); transition-duration: 90ms; }

.cta-bar {
  position: sticky; bottom: 0; z-index: 2; margin: 0 -20px; padding: 14px 20px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(8, 17, 48, 0), rgba(8, 17, 48, 0.94) 32%);
}
.cta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 58px;
  padding: 0 20px; border: 0; background: #fff; color: var(--navy);
  font: 800 17px/1 var(--sans); letter-spacing: 0.04em; text-transform: uppercase;
}
.cta:disabled { background: #4b5680; color: rgba(255, 255, 255, 0.72); }
.arrow { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.reason { margin-top: 8px; font-size: 14px; color: var(--muted); }
.ghost {
  min-height: 46px; padding: 0 16px; border: 0; box-shadow: inset 0 0 0 2px #fff; background: none; color: #fff;
  font: 800 14px/1 var(--sans); letter-spacing: 0.04em; text-transform: uppercase;
}

/* ---------- Ekran dołączenia ---------- */
.start-row { display: grid; gap: 4px; }
.start-time { font-family: var(--display); font-size: 30px; line-height: 1.05; }
.steps { padding: 0; list-style: none; border-top: 1px solid var(--line); }
.steps li { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.steps b { min-width: 16px; font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1; color: var(--red); }
.notice, .warning { padding: 8px 0 8px 14px; border-left: 4px solid #fff; font-size: 14px; color: var(--fg-2); }
.warning { border-left-color: var(--red); }

.stands { display: grid; padding: 0; border: 0; min-width: 0; }
.stand {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 10px 6px;
  border: 0; border-top: 1px solid var(--line); background: none; text-align: left;
}
.stand:last-child { border-bottom: 1px solid var(--line); }
.stand-dot { width: 14px; height: 14px; flex: none; background: var(--stand); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35); }
.stand-text { display: grid; }
.stand small { color: var(--muted); }
.stand.is-selected { background: rgba(255, 255, 255, 0.1); box-shadow: inset 4px 0 0 #fff; }

.partner-logo { max-width: 160px; max-height: 56px; margin-top: auto; object-fit: contain; object-position: left; }
.partner-text { margin-top: auto; font-size: 13px; color: var(--muted); }

.diag { max-width: 560px; margin: 0 auto; padding: 0 20px 24px; background: var(--navy-0); }
.diag-lines {
  margin: 0 0 10px; padding: 10px; overflow-x: auto; border: 1px solid var(--line);
  font: 12px/1.5 ui-monospace, Menlo, monospace; white-space: pre-wrap; user-select: all;
}

@media (hover: hover) and (pointer: fine) {
  .stand:hover { background: rgba(255, 255, 255, 0.06); }
  .ghost:hover, .chip-change:hover { background: #fff; color: var(--navy); }
  .lang:hover { color: #fff; }
}

/* Pokaz testowy z tajnego linku (testshow.mjs): „TEST” przy nazwie w pasku, żeby próby nie wziąć za pokaz. */
.is-test .brand::after {
  content: 'TEST'; display: inline-block; margin-left: 6px; padding: 3px 6px; border-radius: 3px;
  background: var(--red); color: #fff; font: 800 10px/1 var(--sans); letter-spacing: 0.08em; vertical-align: 4px;
}
