/* Pixo Party. Rodzina Pixo Quiz: grafit, krem, Inter do tekstu i Space Grotesk do nagłówków i liczb.
   Akcent malinowy zamiast pomarańczu Quizu. Płaskie kolory, bez gradientów i cieni dla ozdoby. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/inter-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/inter-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500 700; font-display: swap; src: url(fonts/space-grotesk-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500 700; font-display: swap; src: url(fonts/space-grotesk-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #16141c;
  --panel: #1f1d26;
  --panel-2: #2a2733;
  --panel-3: #34303d;
  --line: #2f2c38;
  --text: #faf8f4;
  --muted: #a8a3b3;
  --dim: #6f6a7a;
  --accent: #ff3d7f;
  --on-accent: #16141c;
  --good: #3ecf8e;
  --bad: #ff5d6c;
  --game: var(--accent);
  --radius: 16px;
  --font-head: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
  -webkit-tap-highlight-color: transparent;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--bg); color: var(--text); line-height: 1.5; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.ic { flex: none; display: block; }

.screen { display: none; }
.screen.active { display: flex; flex-direction: column; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px;
  background: var(--panel-2); border: 0; border-radius: 12px;
  font-weight: 650; letter-spacing: -.005em;
  transition: background .15s, transform .1s, opacity .15s;
}
.btn:hover { background: var(--panel-3); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: #ff5a92; }
.btn.light { background: var(--text); color: var(--bg); }
.btn.light:hover { background: #fff; }
.btn.danger { background: var(--bad); color: var(--on-accent); }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 1.5px var(--panel-3); }
.btn.ghost:hover { background: var(--panel); }
.btn.big { min-height: 58px; font-size: 1.06rem; border-radius: 14px; }
.btn.wide { width: 100%; }

.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: transparent; border: 0; border-radius: 12px; color: var(--text);
}
.icon-btn:hover { background: var(--panel); }

/* ---------- Menu ---------- */
#home { position: relative; max-width: 1080px; width: 100%; margin: 0 auto; padding: 0 16px 40px; }
body { overflow-x: clip; }
/* Tło menu: wzór z imprezowych doodli (img/home-pattern.webp, kafelek z Gemini) jako maska w kolorze tekstu.
   Przypięty do okna na całej stronie głównej: treść przewija się po nim, karty gier mają pełne tło i go zakrywają. */
.home-bg {
  position: fixed; z-index: 0; inset: 0; pointer-events: none;
  background: var(--text); opacity: .065;
  -webkit-mask: url(../img/home-pattern.webp) 0 0 / 360px 360px repeat;
  mask: url(../img/home-pattern.webp) 0 0 / 360px 360px repeat;
}
#home > :not(.home-bg) { position: relative; z-index: 1; }
#home > .topbar { z-index: 2; }
@media (max-width: 760px) {
  .home-bg { opacity: .055; -webkit-mask-size: 280px 280px; mask-size: 280px 280px; }
}
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 18px 0 8px; }
.brand img { display: block; height: 52px; width: auto; }
.lang-switch { display: flex; gap: 2px; padding: 3px; background: var(--panel); border-radius: 10px; }
.lang-switch button { min-width: 40px; height: 32px; border: 0; background: transparent; border-radius: 7px; font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.lang-switch button[aria-pressed="true"] { background: var(--panel-3); color: var(--text); }

.hero { padding: clamp(36px, 8vw, 88px) 0 clamp(32px, 6vw, 56px); }
.hero h1 {
  margin: 0; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2.5rem, 7.4vw, 5rem); line-height: .98; letter-spacing: -.035em;
}
.hero h1 span { display: block; }
.hero-dim { color: var(--dim); }
.lead { margin: 22px 0 0; max-width: 40ch; font-size: clamp(1.02rem, 2vw, 1.18rem); color: var(--muted); }

.eyebrow {
  margin: 0 0 14px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dim);
}

/* Karta gry jak plakat: ilustracja na tle w kolorze gry, tekst obok. */
.feature {
  display: grid; grid-template-columns: 1.15fr 1fr; align-items: stretch;
  background: var(--panel); border-radius: 22px; overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .25s var(--ease);
}
.feature:hover { transform: translateY(-2px); }
.feature:hover .feature-art svg { transform: scale(1.03) rotate(-.5deg); }
.feature-art { background: var(--game); display: grid; place-items: center; padding: 24px; min-height: 260px; }
.feature-art svg { width: 100%; max-width: 420px; height: auto; transition: transform .4s var(--ease); }
/* Filmik z zasadami: pigułka w rogu ilustracji, nad przyciskiem otwierającym kafelek. */
.feature-art { position: relative; }
.feature-play {
  position: absolute; left: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px 7px 10px; border-radius: 999px; background: var(--bg); color: var(--text);
  font-family: var(--font-head); font-weight: 700; font-size: .85rem; text-decoration: none; transition: background .2s, transform .2s var(--ease);
}
.feature-art .feature-play svg { width: 15px; height: 15px; max-width: none; fill: currentColor; transform: none; transition: none; }
.feature-play:hover { background: var(--panel-2); transform: scale(1.04); }
.feature-body { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.feature-title { margin: 0; font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1; letter-spacing: -.03em; }
.feature-tag { margin: 0; font-size: 1.08rem; color: var(--muted); max-width: 28ch; }
.feature-meta { display: flex; gap: 14px; flex-wrap: wrap; margin: 6px 0 14px; color: var(--dim); font-size: .9rem; font-weight: 550; }
.feature-meta span { display: inline-flex; align-items: center; gap: 6px; }
.feature .btn { align-self: flex-start; padding: 0 26px; }

.soon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.soon {
  display: flex; flex-direction: column; background: var(--panel); border-radius: 18px; overflow: hidden;
}
.soon-art { background: var(--game); aspect-ratio: 336 / 170; display: grid; place-items: center; padding: 10px 14px 0; }
.soon-art svg { width: 100%; height: auto; opacity: .92; }
.soon-body { padding: 16px 18px 18px; }
.soon-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 10px; }
.soon-title { margin: 0; font-family: var(--font-head); font-size: 1.3rem; letter-spacing: -.02em; }
.pill { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 4px 8px; border-radius: 6px; background: var(--panel-2); white-space: nowrap; }
.soon-tag { margin: 6px 0 0; color: var(--muted); font-size: .93rem; }

.foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--dim); font-size: .9rem; }
.foot a { display: inline-flex; align-items: center; gap: 7px; color: var(--text); font-weight: 650; text-decoration: none; }
.foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot img { border-radius: 4px; }

/* ---------- Ekran gry ---------- */
.game-screen { min-height: 100vh; min-height: 100dvh; }
.gamebar {
  position: sticky; top: 0; z-index: 5;
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 8px;
  padding: 10px max(12px, calc((100% - var(--stage-w) - 16px) / 2)); background: var(--bg);
}
.gamebar-title { display: flex; align-items: center; gap: 9px; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; }
.gamebar-dot { width: 12px; height: 12px; border-radius: 3px; background: var(--game); transform: rotate(16deg); }
.gamebar-meta { font-size: .85rem; font-weight: 600; color: var(--muted); padding-right: 6px; font-variant-numeric: tabular-nums; }
#room .gamebar { grid-template-columns: 44px 1fr auto 44px; }

/* Szerokość ekranu gry: wąsko na telefonie, szerzej na komputerze; pasek u góry trzyma tę samą krawędź. */
.game-screen { --stage-w: 560px; }
.stage { flex: 1; width: 100%; max-width: var(--stage-w); margin: 0 auto; padding: 8px 16px 28px; display: flex; flex-direction: column; }
.stage.center { justify-content: center; }
.step { display: flex; flex-direction: column; flex: 1; }
.step-in { animation: step-in .35s var(--ease) both; }

.h2 { margin: 12px 0 6px; font-family: var(--font-head); font-size: clamp(1.9rem, 6vw, 2.4rem); line-height: 1.05; letter-spacing: -.03em; }
.sub { margin: 0; color: var(--muted); }
.label { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }

.block { margin-top: 28px; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.block-note { font-size: .85rem; color: var(--dim); }
.help { margin: 8px 0 0; font-size: .88rem; color: var(--dim); }

/* Gracze: kafelek z inicjałem w kolorze gracza. */
.players { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.bots-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin: 10px 0 14px; }
.bots-row .btn { min-height: 38px; padding: 6px 14px; font-size: .9rem; }
.bots-note { margin: 10px 0 14px; }
.player-row { display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 8px; background: var(--panel); border-radius: 12px; animation: step-in .25s var(--ease) both; }
.player-row .name { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-row .num { width: 22px; text-align: right; font-size: .8rem; color: var(--dim); font-variant-numeric: tabular-nums; }
.player-row .icon-btn { width: 38px; height: 38px; color: var(--dim); }
.player-row .icon-btn:hover { color: var(--text); background: var(--panel-2); }
.chip-av {
  flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: var(--c); color: var(--on-accent); font-family: var(--font-head); font-weight: 700; font-size: 1rem;
}
.chip-av.lg { width: 56px; height: 56px; border-radius: 14px; font-size: 1.6rem; }

.add-row { display: flex; gap: 8px; margin-top: 8px; }
.input {
  flex: 1; min-width: 0; height: 48px; padding: 0 14px; background: var(--panel); border: 1.5px solid var(--panel-2); border-radius: 12px; outline: none;
  transition: border-color .15s;
}
.input::placeholder { color: var(--dim); }
.input:focus { border-color: var(--muted); }
.add-row .btn { padding: 0 16px; }
.field-error { min-height: 1.3em; margin: 6px 2px 0; font-size: .85rem; color: var(--bad); }

/* Przełącznik segmentowy. */
.seg { display: flex; padding: 4px; gap: 4px; background: var(--panel); border-radius: 12px; }
.seg button { flex: 1; min-width: 0; min-height: 42px; padding: 0 4px; white-space: nowrap; font-size: .94rem; border: 0; border-radius: 9px; background: transparent; font-weight: 650; color: var(--muted); transition: background .15s, color .15s; }
.seg button:hover:not(:disabled) { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.seg button:disabled { opacity: .3; cursor: not-allowed; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-sep { width: 1px; align-self: stretch; margin: 6px 6px; background: var(--line); }
.chip {
  min-height: 40px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--panel); color: var(--muted); font-weight: 600; font-size: .93rem;
  display: inline-flex; align-items: center; gap: 6px; transition: background .15s, color .15s;
}
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] { background: var(--panel-3); color: var(--text); }
.chip[aria-pressed="true"]::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--game); transform: rotate(16deg); }

.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; background: var(--panel); border-radius: 12px; cursor: pointer; }
.toggle-row strong { display: block; font-weight: 650; }
.toggle-row small { color: var(--dim); font-size: .86rem; }
.switch { position: relative; flex: none; width: 48px; height: 28px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--panel-3); transition: background .2s; pointer-events: none; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 7px; background: var(--text); transition: transform .2s var(--ease); }
.switch input:checked + span { background: var(--game); }
.switch input:checked + span::after { transform: translateX(20px); background: var(--bg); }
.switch input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 2px; }

details.rules { margin-top: 28px; background: var(--panel); border-radius: 12px; }
details.rules summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px 16px; font-weight: 650; cursor: pointer; }
details.rules summary::-webkit-details-marker { display: none; }
details.rules summary::after { content: ''; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
details.rules[open] summary::after { transform: rotate(225deg); }
details.rules ol { margin: 0; padding: 0 18px 4px 38px; color: var(--muted); }
details.rules li { margin-bottom: 10px; padding-left: 4px; }
details.rules li::marker { color: var(--text); font-family: var(--font-head); font-weight: 700; }
details.rules p { margin: 0; padding: 0 18px 16px; font-size: .88rem; color: var(--dim); }

.dock { position: sticky; bottom: 0; margin: 28px -16px -28px; padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); }
.dock-note { margin: 0 0 10px; text-align: center; font-size: .88rem; color: var(--muted); min-height: 1.3em; }
.actions { display: flex; gap: 10px; margin-top: auto; padding-top: 24px; }
.actions .btn { flex: 1; }

/* Podaj telefon. */
.pass { flex: 1; display: flex; flex-direction: column; justify-content: center; text-align: left; padding: 24px 0; }
.pass-progress { display: flex; gap: 5px; margin-bottom: 40px; }
.pass-progress i { flex: 1; height: 5px; border-radius: 3px; background: var(--panel-2); }
.pass-progress i.done { background: var(--muted); }
.pass-progress i.now { background: var(--game); }
.pass-name { display: flex; align-items: center; gap: 16px; margin: 10px 0 18px; }
.pass-name strong { font-family: var(--font-head); font-size: clamp(2.6rem, 12vw, 4.4rem); line-height: 1; letter-spacing: -.035em; word-break: break-word; }
.pass-hint { display: flex; gap: 10px; align-items: center; color: var(--muted); }

/* Karta z hasłem: obracana w 3D. */
.card-wrap { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 22px; padding: 12px 0; }
.flip { width: min(100%, 340px); aspect-ratio: 5 / 7; perspective: 1400px; border: 0; padding: 0; background: none; }
.flip-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .6s var(--ease); }
.flip.open .flip-inner { transform: rotateY(180deg); }
.face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 22px;
  display: flex; flex-direction: column; padding: 26px; text-align: left;
}
.face-back { background: var(--text); color: var(--bg); align-items: center; justify-content: center; gap: 26px; }
.face-back svg { width: 46%; }
.face-back span { font-weight: 650; font-size: .95rem; }
.face-back .corner { position: absolute; font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.face-back .corner.tl { top: 22px; left: 24px; }
.face-back .corner.br { bottom: 22px; right: 24px; transform: rotate(180deg); }
/* Awers wygląda tak samo u wszystkich (te same kolory i układ), żeby z drugiego końca stołu
   nie dało się po kolorze poznać, kto dostał kartę impostora. */
.face-front { transform: rotateY(180deg); background: var(--panel-2); justify-content: space-between; }
.face-front .label { color: inherit; opacity: .6; }
.face-top { display: flex; justify-content: space-between; align-items: center; }
.face-mark { width: 14px; height: 14px; border-radius: 4px; background: var(--accent); transform: rotate(16deg); }
.face-mid { display: flex; flex-direction: column; align-items: flex-start; }
.face-word { margin-top: 6px; font-family: var(--font-head); font-weight: 700; font-size: clamp(2.2rem, 10vw, 3rem); line-height: 1.02; letter-spacing: -.03em; word-break: break-word; hyphens: auto; }
.face-cat { display: inline-flex; align-self: flex-start; margin-top: 14px; padding: 6px 10px; border-radius: 8px; background: rgba(250, 248, 244, .08); font-size: .88rem; font-weight: 600; }
.face-foot { font-size: .95rem; opacity: .75; }
.face-foot p { margin: 0; }
.face-foot p + p { margin-top: 6px; font-weight: 650; }
.card-actions { width: min(100%, 340px); min-height: 58px; }

/* Rozmowa: kafelki odliczające czas. */
.talk { flex: 1; display: flex; flex-direction: column; padding-top: 16px; }
.talk-start { display: flex; align-items: center; gap: 14px; margin: 8px 0 8px; }
.talk-start strong { font-family: var(--font-head); font-size: clamp(2.2rem, 10vw, 3.4rem); line-height: 1; letter-spacing: -.035em; }
.clock { margin-top: auto; padding-top: 40px; }
.clock-digits { font-family: var(--font-head); font-weight: 700; font-size: clamp(4.6rem, 26vw, 8rem); line-height: .9; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.clock-digits.small { font-size: clamp(1.8rem, 8vw, 2.4rem); letter-spacing: -.02em; color: var(--muted); }
.clock-state { margin: 10px 0 0; color: var(--muted); font-weight: 600; min-height: 1.5em; }
.ticks { display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px; margin-top: 18px; }
.ticks i { aspect-ratio: 1; border-radius: 22%; background: var(--panel-2); transition: background .4s, transform .4s var(--ease); }
.ticks i.on { background: var(--text); }
.ticks i.last { background: var(--game); transform: rotate(16deg); }
.talk.up .clock-digits { color: var(--game); }

/* Głosowanie. */
.vote-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 22px; }
.vote-btn {
  position: relative; display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 10px 12px; text-align: left;
  border: 0; border-radius: 14px; background: var(--panel); font-weight: 650; transition: background .15s, box-shadow .15s;
}
.vote-btn:hover { background: var(--panel-2); }
.vote-btn span.n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vote-btn .tick { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--panel-3); color: transparent; }
.vote-btn[aria-pressed="true"] { background: var(--panel-2); box-shadow: inset 0 0 0 2px var(--game); }
.vote-btn[aria-pressed="true"] .tick { background: var(--game); box-shadow: none; color: var(--on-accent); }

/* Wynik. */
.verdict { margin: 0 -16px; padding: 28px 16px 26px; background: var(--panel); }
.verdict.impostor { background: var(--accent); color: var(--on-accent); }
.verdict.crew { background: var(--text); color: var(--bg); }
.verdict .label { color: inherit; opacity: .6; }
.verdict h2 { margin: 8px 0 0; font-family: var(--font-head); font-size: clamp(2.3rem, 10vw, 3.4rem); line-height: 1; letter-spacing: -.035em; }
.verdict p { margin: 12px 0 0; font-weight: 550; opacity: .8; }
.reveal-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.fact { padding: 14px 16px; background: var(--panel); border-radius: 14px; }
.fact strong { display: block; margin-top: 4px; font-family: var(--font-head); font-size: 1.3rem; line-height: 1.15; letter-spacing: -.02em; word-break: break-word; }
.scores { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.score-row { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 12px; background: var(--panel); }
.score-row .name { flex: 1; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score-row .pts { font-weight: 800; font-size: 1.1rem; font-variant-numeric: tabular-nums; min-width: 2ch; text-align: right; }
.score-row .delta { font-size: .8rem; font-weight: 700; color: var(--good); min-width: 3ch; text-align: right; }
.score-row .role { width: 8px; height: 8px; border-radius: 2px; background: var(--accent); transform: rotate(16deg); }
.text-link { align-self: center; margin-top: 14px; background: none; border: 0; color: var(--dim); font-size: .88rem; text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover { color: var(--text); }

.guess { flex: 1; display: flex; flex-direction: column; }

/* Okno potwierdzenia. */
.sheet { border: 0; padding: 0; background: var(--panel); color: var(--text); border-radius: 18px; width: min(92vw, 380px); }
.sheet::backdrop { background: rgba(10, 9, 14, .72); }
.sheet form { padding: 22px; }
.sheet-text { margin: 0 0 18px; font-size: 1.05rem; font-weight: 600; }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sheet-actions .btn { flex: 1; }
.sheet-actions .sheet-alt { flex-basis: 100%; }
.sheet-actions .sheet-alt[hidden] { display: none; }

@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; }
  .feature-art { min-height: 0; aspect-ratio: 16 / 10; padding: 18px; }
  .soon-grid { grid-template-columns: 1fr; gap: 10px; }
  .soon { flex-direction: row; align-items: stretch; }
  .soon-art { flex: none; width: 112px; aspect-ratio: auto; padding: 8px; }
  .soon-body { padding: 14px 16px; }
  .soon-title { font-size: 1.12rem; }
  .soon-tag { font-size: .88rem; }
  .brand img { height: 38px; }
}
@media (max-width: 380px) {
  .vote-grid { grid-template-columns: 1fr; }
  .reveal-facts { grid-template-columns: 1fr; }
}

@keyframes step-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 50% { transform: scale(1.04); } }
@media (prefers-reduced-motion: no-preference) {
  .talk.up .clock-digits { animation: pulse 1s var(--ease) 3; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Wejście kodem (menu) ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px; }
.join { width: 300px; padding: 18px; background: var(--panel); border-radius: 18px; }
/* Zdjęcie za hero (img/hero-photo.webp, z Gemini, w duotone grafit + akcent, wygaszenie w lewo i w dół wypalone w pliku).
   Kryje w pełni, więc wzór doodle widać tylko przy jego brzegach; na telefonie spokojniejszy plik -dim pod nagłówkiem. */
.hero { position: relative; }
.hero > :not(.hero-photo) { position: relative; z-index: 1; }
.hero-photo {
  position: absolute; z-index: 0; top: -110px; right: calc((100% - 100vw) / 2); width: min(68vw, 1300px); height: auto;
  pointer-events: none;
}
.hero-photo img { display: block; width: 100%; height: auto; }
.join .label { display: block; margin-bottom: 10px; }
.join-row { display: flex; gap: 8px; }
.join-input {
  flex: 1; min-width: 0; height: 54px; padding: 0 14px; border: 1.5px solid var(--panel-3); border-radius: 12px; background: var(--bg); outline: none;
  font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; letter-spacing: .32em; text-transform: uppercase;
}
.join-input::placeholder { color: var(--dim); letter-spacing: .2em; font-size: 1.1rem; }
.join-input:focus { border-color: var(--text); }
.join .btn { min-height: 54px; }
.text-link.left { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; }
.feature .help { margin: 4px 0 0; }

/* ---------- Pokój ---------- */
.banner { margin: 0; padding: 9px 16px; background: var(--panel-2); color: var(--muted); font-size: .88rem; font-weight: 600; text-align: center; }
.room-msg { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 24px 0; }
.notice { display: flex; gap: 10px; align-items: center; margin: 8px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--panel); color: var(--muted); font-size: .92rem; }

.code-card { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; margin-top: 10px; padding: 20px; background: var(--panel); border-radius: 20px; }
.code-tiles { display: flex; gap: 8px; margin: 10px 0 16px; }
.code-tiles span {
  width: 58px; height: 68px; display: grid; place-items: center; border-radius: 12px; background: var(--text); color: var(--bg);
  font-family: var(--font-head); font-weight: 700; font-size: 2.3rem; letter-spacing: -.02em;
}
.code-tiles span:nth-child(2) { transform: rotate(-3deg); }
.code-tiles span:nth-child(3) { background: var(--game); transform: rotate(4deg); }
.code-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.code-actions .btn { min-height: 42px; padding: 0 14px; }
.qr-toggle { display: none; }
.code-qr { margin: 0; width: 148px; text-align: center; }
.code-qr svg { display: block; width: 100%; height: auto; border-radius: 12px; }
.code-qr figcaption { margin-top: 8px; font-size: .78rem; color: var(--dim); line-height: 1.35; }

.player-row .name small { color: var(--dim); font-weight: 500; }
.player-row.away { opacity: .5; }
.tag { flex: none; padding: 3px 7px; border-radius: 6px; background: var(--panel-3); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
.tag.dim { background: transparent; color: var(--dim); padding: 0; }
.score-mini { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--muted); min-width: 2ch; text-align: right; }
.settings.readonly .seg button:disabled, .settings.readonly .chip:disabled { opacity: 1; cursor: default; }
.settings.readonly .seg button:not([aria-pressed="true"]), .settings.readonly .chip:not([aria-pressed="true"]) { opacity: .45; }
.settings.readonly .switch { opacity: .7; }
.settings > .block:first-child { margin-top: 0; }

.dock-wait { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0; min-height: 58px; color: var(--muted); font-weight: 600; text-align: center; }
.dock-wait.solo { margin-top: auto; padding-top: 24px; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 7px; height: 7px; border-radius: 2px; background: var(--game); }
.dots i:nth-child(2) { opacity: .6; }
.dots i:nth-child(3) { opacity: .3; }

.card-wrap.online { gap: 18px; }
.wait-line { margin: 0; min-height: 58px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted); font-weight: 600; }

/* Kto już gotowy / kto zagłosował. */
.roster { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 8px; width: min(100%, 420px); }
.roster li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 56px; opacity: .35; transition: opacity .25s; }
.roster li.done { opacity: 1; }
.roster li .rn { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .72rem; color: var(--muted); }
.roster li i { position: absolute; top: -4px; right: 6px; width: 18px; height: 18px; border-radius: 6px; display: grid; place-items: center; background: var(--good); color: var(--on-accent); }
.vote-status { margin-top: 26px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.vote-grid.locked .vote-btn:not([aria-pressed="true"]) { opacity: .45; }
.vote-btn:disabled { cursor: default; }

.peek { margin: 18px 0 0; }
.peek .btn { min-height: 42px; padding: 0 14px; }
.peek-box { margin-top: 10px; padding: 16px 18px; border-radius: 16px; background: var(--panel-2); display: flex; flex-direction: column; align-items: flex-start; gap: 4px; animation: step-in .25s var(--ease) both; }
.peek-box .label { opacity: .7; }
.peek-box strong { font-family: var(--font-head); font-size: 1.9rem; line-height: 1.05; letter-spacing: -.03em; }
.peek-box .face-cat { margin-top: 6px; }
.talk.paused .clock-digits { color: var(--dim); }

.guess-clock { margin-top: 22px; }
.guess-clock .bar { height: 6px; margin-top: 10px; border-radius: 3px; background: var(--panel-2); overflow: hidden; }
.guess-clock .bar i { display: block; height: 100%; background: var(--game); transform-origin: left; transition: transform .25s linear; }
.guess-form { margin-top: 22px; }
.input.big { height: 56px; font-size: 1.15rem; font-weight: 600; }
.guess-form .btn { min-height: 56px; }

.votes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.vote-row { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 12px; background: var(--panel); }
.vote-row .name { flex: none; width: 34%; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vote-row.is-imp { box-shadow: inset 3px 0 0 var(--accent); }
.voters { flex: 1; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.voters small { color: var(--dim); }
.chip-av.xs { width: 24px; height: 24px; border-radius: 7px; font-size: .75rem; }
.score-row.me { box-shadow: inset 0 0 0 1.5px var(--panel-3); }

.sheet-title { margin: 0; font-family: var(--font-head); font-size: 1.6rem; letter-spacing: -.02em; }
.sheet-sub { margin: 6px 0 16px; color: var(--muted); }
#name-dialog .input { width: 100%; height: 54px; font-size: 1.1rem; margin-bottom: 14px; }
#name-dialog .sheet-actions .btn { min-height: 52px; }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 20; transform: translate(-50%, 20px);
  padding: 12px 18px; border-radius: 12px; background: var(--text); color: var(--bg); font-weight: 650; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .25s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .join { width: 100%; }
  .hero-photo { width: 120vw; top: -60px; }
  .code-card { grid-template-columns: 1fr; padding: 18px; }
  .qr-toggle { display: inline-flex; }
  .code-qr { display: none; width: min(100%, 240px); margin: 0 auto; }
  .code-card.show-qr .code-qr { display: block; }
  .code-tiles span { width: 54px; height: 64px; font-size: 2.1rem; }
}

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 32px 0 14px; }
.section-head h3 { margin: 0; font-family: var(--font-head); font-size: 1.3rem; letter-spacing: -.02em; }
.settings .block:first-child { margin-top: 0; }

/* Poczekalnia na szerokim ekranie: kod i gracze po lewej, ustawienia i start po prawej. */
@media (min-width: 900px) {
  .game-screen { --stage-w: 760px; }
  #room:has(.stage.wide) { --stage-w: 1040px; }
  .lobby { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
  .lobby-side .section-head { margin-top: 10px; }
  .lobby-side .dock { position: static; margin: 24px 0 0; padding: 0; border: 0; }
}

/* ---------- Tryb TV (html.tv): ekran pokoju na telewizorze ----------
   Rozmiary w rem rosną z szerokością ekranu; układ poziomy 16:9, czytelny z kanapy. */
html.tv { font-size: clamp(16px, 1.05vw, 30px); }
html.tv .game-screen { --stage-w: 560px; }

/* Dwie kolumny na komputerze (.desk2): element .desk2-main (plansza, scena, zdjęcie) po lewej, przyklejony
   przy przewijaniu, reszta dzieci po kolei w prawej kolumnie. Na telefonie i TV zwykła kolejność z góry na dół.
   Ostatni wiersz 1fr bierze nadmiar wysokości lewej kolumny, więc prawa nie rozjeżdża się w pionie. */
@media (min-width: 900px) {
  #room:has(.desk2) { --stage-w: 1180px; }
  html:not(.tv) .desk2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); grid-template-rows: repeat(11, auto) 1fr; column-gap: 32px; align-items: start; }
  html:not(.tv) .desk2 > * { grid-column: 2; }
  html:not(.tv) .desk2 > .desk2-main { grid-column: 1; grid-row: 1 / -1; position: sticky; top: 64px; margin-top: 10px; }
  html:not(.tv) .desk2 > .mg-wall .meme img { max-height: calc(100vh - 170px); }
  html:not(.tv) .desk2 .wy-scene { width: auto; max-width: 100%; max-height: calc(100vh - 100px); margin: 0 auto; }
  html:not(.tv) .ag.desk2 { row-gap: 12px; }
  html:not(.tv) .ag.desk2 > .desk2-main { margin-top: 0; }
  /* Rysowanie: płótno najwyżej na wysokość okna, narzędzia w prawej kolumnie w dwóch rzędach. */
  html:not(.tv) .desk2 > .draw-wrap.desk2-main, html:not(.tv) .desk2 > .draw-static.desk2-main { max-width: calc(100vh - 100px); }
  html:not(.tv) .desk2 > .draw-tools { margin-top: 14px; }
  #room:has(.imp-draw) { --stage-w: 1100px; }
  html:not(.tv) .imp-draw { display: grid; grid-template-columns: minmax(0, calc(100vh - 190px)) minmax(300px, 380px); gap: 32px; justify-content: center; align-items: start; }
  html:not(.tv) .imp-draw-side { padding-top: 40px; }
}
html.tv .stage { max-width: none; padding: 1rem 3rem 2.5rem; }
html.tv .gamebar { padding-inline: 2.5rem; }
html.tv .gamebar-meta { font-size: 1.05rem; color: var(--text); letter-spacing: .02em; }
html.tv .btn { min-height: 3rem; }
html.tv .btn.big { min-height: 3.6rem; font-size: 1.15rem; }
html.tv .label { font-size: .85rem; }

.tv-lobby { flex: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.tv-join { padding: 2.2rem; border-radius: 1.6rem; background: var(--panel); }
.tv-join-body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2.4rem; align-items: center; margin-top: 1.2rem; }
.tv-qr { margin: 0; width: min(19rem, 32vh); }
.tv-qr svg { display: block; width: 100%; height: auto; border-radius: 1rem; }
.tv-step { margin: 0; font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.tv-or { margin: 1rem 0 .3rem; color: var(--muted); font-size: 1.05rem; }
.tv-host { margin: 0; font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; letter-spacing: -.01em; word-break: break-all; }
.tv-join .code-tiles { margin: .4rem 0 0; gap: .6rem; }
.tv-join .code-tiles span { width: 4.4rem; height: 5.2rem; font-size: 3.3rem; border-radius: .9rem; }

.tv-side .section-head { margin-top: 0; }
.tv-side .section-head h3 { font-size: 1.6rem; }
.tv-players { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .7rem; }
.tv-players li {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: .55rem; padding: 1.1rem .6rem .9rem;
  border-radius: 1rem; background: var(--panel); text-align: center; animation: step-in .3s var(--ease) both;
}
.tv-players li.away { opacity: .45; }
.tv-players .chip-av.lg { width: 3.6rem; height: 3.6rem; border-radius: .9rem; font-size: 1.7rem; }
.tv-players .n { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; font-size: 1.05rem; }
.tv-players .tag { position: absolute; top: .5rem; left: .5rem; font-size: .62rem; }
.tv-players .score-mini { position: absolute; top: .55rem; right: .7rem; }
.tv-players .kick { position: absolute; top: .2rem; right: .2rem; width: 2rem; height: 2rem; opacity: 0; color: var(--dim); }
.tv-players li:hover .kick, .tv-players .kick:focus-visible { opacity: 1; }
.tv-players li:hover .score-mini { opacity: 0; }
.tv-players li.slot { background: transparent; box-shadow: inset 0 0 0 2px var(--panel-2); min-height: 8.2rem; animation: none; }

.tv-settings { margin-top: 1.4rem; border-radius: 1rem; background: var(--panel); }
.tv-settings summary { list-style: none; display: flex; align-items: baseline; gap: 1rem; padding: 1rem 1.2rem; cursor: pointer; font-weight: 700; }
.tv-settings summary::-webkit-details-marker { display: none; }
.tv-settings summary span { flex: 1; min-width: 0; color: var(--muted); font-weight: 500; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-settings[open] summary span { visibility: hidden; }
.tv-settings .settings { padding: 0 1.2rem 1.2rem; }
.tv-start { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .6rem 1rem; margin-top: 1.4rem; }
.tv-start .btn.primary { grid-column: 1; }
.tv-start .help { grid-column: 1; grid-row: 2; margin: 0; }
.tv-start .ghost { grid-column: 2; grid-row: 1; }

/* Fazy gry na TV: duży nagłówek i rząd graczy. */
.tv-phase { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: .4rem; padding: 2rem 0; }
.tv-title { margin: .4rem 0 0; font-family: var(--font-head); font-size: clamp(2.6rem, 5vw, 5.5rem); line-height: 1; letter-spacing: -.035em; }
.tv-lead { margin: .8rem 0 2.6rem; font-size: 1.35rem; color: var(--muted); }
.tv-actions { margin-top: 2rem; }
.roster.big { width: min(100%, 64rem); gap: 1.4rem 1.2rem; }
.roster.big li { width: 6.5rem; gap: .5rem; }
.roster.big .chip-av { width: 5rem; height: 5rem; border-radius: 1.2rem; font-size: 2.2rem; }
.roster.big .rn { font-size: 1rem; }
.roster.big li i { width: 1.7rem; height: 1.7rem; border-radius: .5rem; top: -.4rem; right: .3rem; }
.roster.big li i .ic { width: 1rem; height: 1rem; }

/* Rozmowa na TV: kto zaczyna po lewej, wielki zegar po prawej. */
html.tv .talk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto auto 1fr auto; column-gap: 4rem; align-content: center; }
html.tv .talk > .label, html.tv .talk-start, html.tv .talk > .sub { grid-column: 1; }
html.tv .talk > .label { grid-row: 1; align-self: end; }
html.tv .talk-start { grid-row: 2; }
html.tv .talk > .sub { grid-row: 3; font-size: 1.2rem; }
html.tv .talk-start strong { font-size: clamp(3rem, 6vw, 6.5rem); }
html.tv .talk-start .chip-av.lg { width: 6rem; height: 6rem; font-size: 3rem; border-radius: 1.4rem; }
html.tv .clock { grid-column: 2; grid-row: 1 / 5; align-self: center; margin: 0; padding: 0; }
html.tv .clock-digits { font-size: clamp(7rem, 17vw, 18rem); }
html.tv .talk .actions { grid-column: 1 / 3; grid-row: 5; justify-content: center; }
html.tv .talk .actions .btn { flex: 0 1 16rem; }

/* Wynik na TV: werdykt na całą szerokość, głosy i punkty obok siebie. */
.tv-result { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 2.4rem; }
.tv-result > .verdict, .tv-result > .reveal-facts, .tv-result > .actions, .tv-result > .dock-wait { grid-column: 1 / 3; }
html.tv .verdict { margin: 0; padding: 2rem 2.4rem; border-radius: 1.4rem; }
html.tv .verdict h2 { font-size: clamp(3rem, 5vw, 5.5rem); }
html.tv .verdict p { font-size: 1.25rem; }
html.tv .reveal-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html.tv .fact strong { font-size: 2rem; }
html.tv .tv-result .actions { justify-content: center; }
html.tv .tv-result .actions .btn { flex: 0 1 16rem; }
html.tv .guess-clock { max-width: 40rem; }
.feature-links { display: flex; flex-wrap: wrap; gap: 0 22px; }
/* TV: pasek zawsze przy krawędziach, poczekalnia na środku wysokości ekranu, większy QR. */
html.tv .gamebar { padding-inline: 2.5rem !important; }
html.tv .tv-lobby { align-items: center; align-self: stretch; min-height: calc(100vh - 7.5rem); }
html.tv .tv-qr { width: min(24rem, 40vh); }

/* ---------- Kilka gotowych gier w menu: karty obok siebie, ilustracja na górze ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.feature-grid .feature { grid-template-columns: 1fr; }
.feature-grid .feature-art { min-height: 0; aspect-ratio: 16 / 9; }
.feature-grid .feature-body { justify-content: flex-start; }
@media (max-width: 760px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- Mafia ---------- */
.role-tag { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 7px; background: color-mix(in srgb, var(--rc) 18%, transparent); color: var(--rc); font-size: .72rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.role-tag::before { content: ''; width: 7px; height: 7px; border-radius: 2px; background: var(--rc); transform: rotate(16deg); }

.chip-av { position: relative; }

.night-head { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; }
.countdown { font-family: var(--font-head); font-weight: 700; font-variant-numeric: tabular-nums; }
.night-head .countdown { color: var(--muted); font-size: 1.05rem; }
.night .h2 { margin-top: 6px; }
.night { flex: 1; display: flex; flex-direction: column; }
.check-result { margin: 16px 0 0; padding: 14px 16px; border-radius: 14px; font-weight: 700; font-size: 1.1rem; }
.check-result.bad { background: color-mix(in srgb, var(--bad) 16%, transparent); color: var(--bad); }
.check-result.good { background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--good); }
.vote-btn .voters { flex: none; display: flex; gap: 3px; }
.vote-btn.skip .n { color: var(--muted); }
.skip-av { background: var(--panel-3); color: var(--muted); }
.dead-note { color: var(--text); }

.morning { flex: 1; display: flex; flex-direction: column; padding-top: 18px; }
.h2.big { font-size: clamp(2.2rem, 9vw, 3.2rem); margin-top: 10px; }
.morning .actions .btn .countdown, .dock-wait .countdown { opacity: .6; margin-left: 6px; }

.peek-box .checks { list-style: none; margin: 10px 0 0; padding: 0; font-size: .95rem; color: var(--muted); }
.peek-box .checks b { color: var(--text); }
.maf-day .h2 { margin-top: 6px; }

.cast { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.cast li { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 8px; border-radius: 12px; background: var(--panel); min-width: 0; }
.cast .n { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cast li.dead .n { color: var(--dim); text-decoration: line-through; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.timeline li { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: baseline; padding: 9px 12px; border-radius: 10px; background: var(--panel); }
.timeline .label { font-size: .68rem; }
@media (max-width: 420px) { .cast { grid-template-columns: 1fr; } }

/* Mafia na TV */
/* Ogłoszenia (ranek, werdykt) na środku ekranu, przycisk na dole pod kciukiem. */
.morning > .label:first-child { margin-top: auto; }
.morning > .mt-scene { margin-bottom: auto; }
.feature-grid .feature { grid-template-rows: auto 1fr; }
.soon-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
@media (max-width: 760px) { .soon-grid { grid-template-columns: 1fr; } }
/* Zapowiedzi mają być wyraźnie mniejsze od gotowych gier. */
@media (min-width: 761px) {
  .soon-art { aspect-ratio: auto; height: 130px; padding: 10px; }
  .soon-art svg { width: auto; height: 100%; }
}

/* ---------- Trzy gotowe gry w menu ---------- */
.feature-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
@media (max-width: 760px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- Państwa-miasta ---------- */
.notice.pl-only { margin: 0 0 6px; }
.chip.custom { padding-right: 6px; }
.chip-x { display: grid; place-items: center; width: 24px; height: 24px; margin-left: 2px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); }
.chip-x:hover { background: var(--panel-2); color: var(--text); }

.pm-stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 18px; padding: 20px 0; }
.pm-letter {
  width: 9rem; height: 9rem; display: grid; place-items: center; border-radius: 2rem; background: var(--text); color: var(--bg);
  font-family: var(--font-head); font-weight: 700; font-size: 6rem; line-height: 1; letter-spacing: -.04em;
}
.pm-letter.landed { background: var(--game); transform: rotate(-4deg); }
.pm-letter.spinning span { opacity: .85; }
.pm-letter.small { width: 4.4rem; height: 4.4rem; border-radius: 1.1rem; font-size: 3rem; }
.pm-letter.huge { width: min(22rem, 38vh); height: min(22rem, 38vh); border-radius: 3.6rem; font-size: min(15rem, 26vh); }
@media (prefers-reduced-motion: no-preference) {
  .pm-letter.landed { animation: pm-land .45s var(--ease) both; }
}
@keyframes pm-land { from { transform: scale(.7) rotate(8deg); } to { transform: rotate(-4deg); } }
.pm-stop-draw { min-width: 12rem; font-size: 1.4rem; letter-spacing: .08em; }
.pm-count { font-family: var(--font-head); font-weight: 700; font-size: 4.5rem; line-height: 1; color: var(--text); }

.pm-write { display: flex; flex-direction: column; gap: 14px; padding-top: 6px; }
.pm-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pm-clock { text-align: right; }
.pm-clock .label { display: block; }
.countdown.big { font-size: 2.2rem; line-height: 1.1; }
.pm-grace { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--accent); color: var(--on-accent); font-weight: 700; display: flex; justify-content: space-between; gap: 10px; }
.pm-fields { display: flex; flex-direction: column; gap: 6px; }
.pm-field { display: grid; grid-template-columns: 96px minmax(0, 1fr) 30px; align-items: center; gap: 8px; }
.pm-col { font-size: .82rem; font-weight: 700; color: var(--muted); line-height: 1.15; }
.pm-field .input { height: 46px; font-size: 1.05rem; font-weight: 600; }
.pm-mark-slot { display: contents; }
.pm-mark-slot .pm-mark { justify-self: center; }
.pm-field-note { grid-column: 2 / -1; color: #3a4a70; font-size: .85rem; }
.pm-mark { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: .9rem; }
.pm-mark.ok { background: var(--good); color: var(--on-accent); }
.pm-mark.unknown { background: var(--panel-3); color: var(--text); }
.pm-mark.bad { background: color-mix(in srgb, var(--bad) 22%, transparent); color: var(--bad); }
.pm-stop-row { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.pm-stop-row .btn { letter-spacing: .08em; }
.pm-stop-row .help { text-align: center; margin: 0; }

.pm-progress { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.pm-progress li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: var(--panel); min-width: 0; }
.pm-progress .rn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .85rem; font-weight: 600; }
.pm-progress .pips { display: flex; gap: 2px; }
.pm-progress .pips i { width: 6px; height: 12px; border-radius: 2px; background: var(--panel-3); }
.pm-progress .pips i.on { background: var(--game); }
.pm-progress li.full .rn { color: var(--game); }

.pm-check { display: flex; flex-direction: column; }
.pm-head { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; }
.pm-head .countdown { color: var(--muted); }
.pm-disputes { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pm-disputes li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--panel); flex-wrap: wrap; }
.pm-dispute-text strong { display: block; font-family: var(--font-head); font-size: 1.35rem; letter-spacing: -.02em; }
.pm-dispute-text small { color: var(--muted); }
.pm-vote-btns { display: flex; gap: 6px; }
.pm-vote-btns .btn { min-height: 42px; padding: 0 14px; }
.btn.yes-on { background: var(--good); color: var(--on-accent); }
.btn.no-on { background: var(--bad); color: var(--on-accent); }
.pm-tally { display: flex; gap: 12px; align-items: center; font-weight: 700; }
.pm-tally .yes { color: var(--good); display: inline-flex; gap: 4px; align-items: center; }
.pm-tally .no { color: var(--bad); display: inline-flex; gap: 4px; align-items: center; }
.pm-tally small { color: var(--dim); font-weight: 500; }

.pm-pts { font-family: var(--font-head); font-weight: 700; min-width: 2.6rem; text-align: center; padding: 3px 6px; border-radius: 7px; background: var(--panel-3); color: var(--muted); }
.pm-pts.p15 { background: var(--game); color: var(--on-accent); }
.pm-pts.p10 { background: color-mix(in srgb, var(--game) 30%, transparent); color: var(--text); }
.pm-pts.p5 { background: var(--panel-3); color: var(--text); }
.pm-pts.q { color: var(--text); }
@media (prefers-reduced-motion: no-preference) {
}

.tag.good { background: color-mix(in srgb, var(--good) 20%, transparent); color: var(--good); }
.tag.bad { background: color-mix(in srgb, var(--bad) 20%, transparent); color: var(--bad); }
.pm-examples { margin: 8px 0 0; font-size: .82rem; color: var(--dim); }

/* Państwa-miasta na TV */
.pm-tv .pm-letter.huge { margin: 1.5rem 0; }
.pm-tv .pm-count { font-size: 7rem; }
.pm-tv-write { flex: 1; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4rem; align-items: center; }
.pm-tv-left { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.pm-tv-left .countdown.big { font-size: 5rem; }
.pm-tv-right .chips { margin-bottom: 1.6rem; }
html.tv .pm-progress { grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .6rem; }
html.tv .pm-progress li { padding: .7rem .9rem; }
html.tv .pm-progress .rn { font-size: 1.1rem; }
html.tv .pm-progress .pips i { width: .55rem; height: 1.3rem; }
html.tv .pm-check { max-width: 64rem; width: 100%; margin: 0 auto; }
/* Wynik Państw-miast na TV: "Ta litera" i "Razem" obok siebie, odpowiedzi pod nimi na całą szerokość. */
.tv-result .pm-b-answers { grid-column: 1 / 3; order: 2; }
.tv-result > .actions, .tv-result > .dock-wait { order: 3; }

/* Państwa-miasta: kartka w kratkę (js/pm.js) */
.pm-sheet-wrap { margin-top: 14px; overflow-x: auto; border-radius: 6px; border: 3px solid #16141c; background: #fbfaf6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Cpath d='M22 0V22M0 22H22' fill='none' stroke='%23c9daf0' stroke-width='1'/%3E%3C/svg%3E"); box-shadow: 6px 8px 0 rgba(0, 0, 0, .35); }
.pm-sheet { width: 100%; border-collapse: collapse; color: #1f2a4a; }
.pm-sheet th, .pm-sheet td { padding: 8px 10px; border-right: 2px solid #9db6d8; text-align: left; vertical-align: middle; }
.pm-sheet thead th { border-bottom: 3px solid #e0394c; font: 700 .78rem/1.15 var(--font-head); letter-spacing: .03em; text-transform: uppercase; color: #3a4a70; white-space: nowrap; }
.pm-sheet thead th.cur { background: color-mix(in srgb, var(--game) 30%, transparent); }
.pm-sheet td.cur { background: color-mix(in srgb, var(--game) 14%, transparent); }
.pm-sheet tbody tr { border-bottom: 1px solid #c9daf0; }
.pm-lt { width: 1%; border-right: 3px solid #e0394c !important; }
.pm-lt b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--game); color: var(--on-accent); font: 700 1.4rem var(--font-head); transform: rotate(-6deg); }
.pm-who { width: 1%; border-right: 3px solid #e0394c !important; white-space: nowrap; }
.pm-who-in { display: flex; align-items: center; gap: 6px; font: 700 .85rem var(--font-head); color: #1f2a4a; }
.pm-who-in > span { max-width: 90px; overflow: hidden; text-overflow: ellipsis; }
.pm-sheet tr.me .pm-who-in > span { text-decoration: underline; text-decoration-color: var(--game); text-decoration-thickness: 3px; }
.pm-sheet tr.full .pm-who-in > span { color: #1f9e63; }
.pm-scrib { display: block; width: 54px; }
.pm-ans { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 30px; }
.pm-hand { font: 700 1.05rem/1.15 var(--font-head); color: #1f2a4a; transform: rotate(-1.5deg); white-space: nowrap; }
.pm-hand .dim { color: #9aa6c0; }
.pm-ans.invalid .pm-hand { text-decoration: line-through; text-decoration-color: #e0394c; text-decoration-thickness: 3px; opacity: .7; }
.pm-red { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 3px; border: 2.5px solid #e0394c; border-radius: 50%; color: #e0394c; font: 700 .95rem var(--font-head); font-style: normal; transform: rotate(-10deg); }
.pm-red.p0 { opacity: .55; }
.pm-red.p15 { background: #e0394c; color: #fbfaf6; }
.pm-red.q { border-style: dashed; }
.pm-ans[style] .pm-hand { animation: pm-write .45s ease var(--d) both; }
.pm-ans[style] .pm-red { animation: pm-mark .35s cubic-bezier(.2, 1.6, .4, 1) calc(var(--d) + .35s) both; }
@keyframes pm-write { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes pm-mark { from { opacity: 0; transform: rotate(-30deg) scale(1.8); } }
@media (prefers-reduced-motion: reduce) { .pm-ans[style] .pm-hand, .pm-ans[style] .pm-red { animation: none; } }
.pm-sum { border-left: 3px solid #e0394c; text-align: center !important; }
.pm-sum b { display: block; color: #e0394c; font: 700 1.4rem var(--font-head); }
.pm-sum small { font-size: .7rem; font-weight: 700; }
.pm-sum small.good { color: #1f9e63; }
.pm-sum small.bad { color: #e0394c; }
html.tv .pm-sheet th, html.tv .pm-sheet td { padding: .8rem 1rem; }
html.tv .pm-sheet thead th { font-size: 1.1rem; }
html.tv .pm-who-in { font-size: 1.2rem; }
html.tv .pm-who-in > span { max-width: 12rem; }
html.tv .pm-hand { font-size: 1.6rem; }
html.tv .pm-red { min-width: 2.6rem; height: 2.6rem; font-size: 1.25rem; }
html.tv .pm-scrib { width: 5rem; }
html.tv .pm-lt b { width: 3rem; height: 3rem; font-size: 2rem; }
html.tv .pm-check { max-width: none; }
.pm-tv-right .pm-sheet-wrap { margin-top: 0; }
/* Pola na telefonie leżą na kratce z czerwonym marginesem */
.pm-fields { padding: 12px 12px 12px 18px; border-radius: 6px; border: 3px solid #16141c; background: #fbfaf6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Cpath d='M22 0V22M0 22H22' fill='none' stroke='%23c9daf0' stroke-width='1'/%3E%3C/svg%3E"); box-shadow: inset 6px 0 0 #fbfaf6, inset 8px 0 0 #e0394c; }
.pm-field .pm-col { color: #3a4a70; }
.pm-field .input { background: rgba(255, 255, 255, .7); color: #1f2a4a; border-color: #9db6d8; }

/* ---------- Tabu ---------- */
.teams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.team-col { padding: 12px; border-radius: 14px; background: var(--panel); box-shadow: inset 0 3px 0 var(--tc); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.team-col header { display: flex; justify-content: space-between; align-items: baseline; }
.team-col h4 { margin: 0; font-family: var(--font-head); font-size: 1.05rem; color: var(--tc); }
.team-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.team-col li { display: flex; align-items: center; gap: 8px; min-height: 36px; min-width: 0; }
.team-col li.away { opacity: .45; }
.team-col .rn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: .92rem; }
.team-col .rn small { color: var(--dim); font-weight: 500; }
.team-col .icon-btn { width: 32px; height: 32px; color: var(--dim); }
.team-join { min-height: 38px; margin-top: auto; font-size: .88rem; }
.teams.tv .team-col { padding: 1.2rem; }
.teams.tv .chip-av { width: 2.4rem; height: 2.4rem; }
.teams.tv .rn { font-size: 1.1rem; }
.team-tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 7px; background: color-mix(in srgb, var(--tc) 18%, transparent); color: var(--tc); font-size: .78rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }
.team-tag::before { content: ''; width: 7px; height: 7px; border-radius: 2px; background: var(--tc); transform: rotate(16deg); }


.tabu-next { margin-top: 26px; }
.tabu-next .sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tabu-turn { flex: 1; display: flex; flex-direction: column; gap: 14px; padding-top: 6px; }
.tabu-btns { margin-top: 0; padding-top: 4px; }
.tabu-btns .btn.primary { flex: 1.6; }
.help.center { text-align: center; margin: 0; }
.tabu-big { margin: 18px 0 0; font-family: var(--font-head); font-size: clamp(2rem, 8vw, 2.6rem); font-weight: 700; letter-spacing: -.03em; color: var(--game); }

.tabu-log { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tabu-log li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px 6px 6px; border-radius: 10px; background: var(--panel); font-weight: 650; }
.tabu-log small { color: var(--dim); font-weight: 500; }
.tabu-res { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; background: var(--panel-3); color: var(--muted); }
.tabu-log li.got .tabu-res { background: var(--good); color: var(--on-accent); }
.tabu-log li.buzz .tabu-res { background: var(--bad); color: var(--on-accent); }
.tabu-log li.skip span:not(.tabu-res) { color: var(--muted); }
.tabu-turns { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.tabu-turn-card { padding: 12px; border-radius: 14px; background: var(--panel); box-shadow: inset 0 3px 0 var(--tc); }
.tabu-turn-card header { display: flex; justify-content: space-between; margin-bottom: 8px; font-weight: 700; }
.tabu-turn-card header b { color: var(--tc); font-family: var(--font-head); }
.tabu-turn-card .tabu-log li { background: var(--panel-2); }

/* Tabu na TV: wielki zegar i wynik drużyn, bez karty. */
html.tv .tabu-turn.guess { max-width: 70rem; width: 100%; margin: 0 auto; }
html.tv .tabu-big { font-size: 4rem; }
html.tv .tabu-next .talk-start strong { font-size: 4.5rem; }
html.tv .tv-result .tabu-turns { grid-column: 1 / 3; }
.team-col [data-to="0"] .ic { transform: scaleX(-1); }

/* ---------- Kto z nas…? ---------- */
.who-head { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; }
.who-head .countdown { color: var(--muted); }
.who-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.who-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--panel); }
.who-list span { color: var(--muted); }
.who-list b { flex: none; text-align: right; }

/* ---------- Postacie graczy (js/figures.js) ---------- */
.fig { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.fig-j { width: 100%; }
.fig-svg { display: block; width: 100%; overflow: visible; transform-origin: 50% 96%; }
.fig-nm { max-width: 130%; margin-top: 4%; padding: .2em .6em; border-radius: .5em; background: var(--bg); color: var(--text); font-weight: 700; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fig-nm.me { background: var(--text); color: var(--bg); }
.fig-think { position: absolute; right: -6%; top: -8%; display: flex; gap: 6%; width: 44%; opacity: 0; transition: opacity .3s; }
.fig.m-think .fig-think { opacity: 1; }
.fig-think i { flex: none; width: 22%; aspect-ratio: 1; border-radius: 50%; background: var(--text); opacity: .6; }
.fig-ok { position: absolute; right: 2%; top: 0; width: 30%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 30%; background: var(--good); color: var(--bg); box-shadow: 0 0 0 .2em var(--bg); transform: scale(0) rotate(-20deg); transition: transform .35s var(--ease); }
.fig-ok .ic { width: 62%; height: 62%; }
.fig.voted .fig-ok { transform: scale(1) rotate(-8deg); }
.fig.away .fig-svg { opacity: .4; }
.fig-crown { position: absolute; left: 50%; top: -15%; width: 46%; transform: translate(-50%, -60%) scale(0); transform-origin: 50% 100%; transition: transform .5s var(--ease); }
.fig.king .fig-crown { transform: translate(-50%, 0) scale(1) rotate(-6deg); }
.fig-confetti { position: absolute; top: -4%; width: 1%; min-width: 6px; aspect-ratio: .6; border-radius: 2px; pointer-events: none; z-index: 15; }
@media (prefers-reduced-motion: no-preference) {
  .fig-svg { animation: fig-breathe 2.8s ease-in-out infinite; animation-delay: var(--dl, 0s); }
  .fig.m-cheer .fig-svg { animation: fig-cheer .42s ease-in-out infinite alternate; animation-delay: var(--dl, 0s); }
  .fig-eyes { transform-box: fill-box; transform-origin: center; animation: fig-blink 4.8s infinite; animation-delay: var(--bl, 0s); }
  .fig.hop .fig-j { animation: fig-hop .55s var(--ease); }
  .fig-think i { animation: fig-dot 1.2s infinite both; }
  .fig-think i:nth-child(2) { animation-delay: .15s; }
  .fig-think i:nth-child(3) { animation-delay: .3s; }
}
@keyframes fig-breathe { 50% { transform: scale(1.015, .975); } }
@keyframes fig-cheer { from { transform: translateY(0) scale(1.02, .97); } to { transform: translateY(-9%) scale(.98, 1.03); } }
@keyframes fig-blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
@keyframes fig-hop { 25% { transform: scale(1.08, .9); } 55% { transform: translateY(-22%) scale(.95, 1.06); } 85% { transform: scale(1.06, .94); } }
@keyframes fig-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .35; } 30% { transform: translateY(-40%); opacity: 1; } }

/* ---------- Scena gry (.scn, js/figures.js): na TV, a bez TV mniejsza w telefonie. Kolory z --game ---------- */
.scn { --game-d: color-mix(in srgb, var(--game) 62%, #000); --game-l: color-mix(in srgb, var(--game) 55%, #fff); --game-ll: color-mix(in srgb, var(--game) 30%, #fff); position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 18px; background: var(--bg); container-type: size; isolation: isolate; }
html.tv .scn { width: min(100%, calc((100dvh - 8.5rem) * 16 / 9)); margin: 0 auto; }
.scn-bg { position: absolute; inset: 0; z-index: -1; }
.scn-bg .b1, .scn-bg .b2 { position: absolute; border-radius: 50%; background: color-mix(in srgb, var(--game) 7%, var(--bg)); }
.scn-bg .b1 { width: 46cqw; height: 46cqw; left: -12cqw; top: -18cqw; }
.scn-bg .b2 { width: 30cqw; height: 30cqw; right: -6cqw; top: 6cqh; background: color-mix(in srgb, var(--game) 5%, var(--bg)); }
.scn-bg span { position: absolute; color: color-mix(in srgb, var(--game) 11%, var(--bg)); font: 700 22cqw/1 var(--font-head); transform: rotate(-16deg); }
.scn-bg .q1 { left: 4cqw; top: 2cqh; }
.scn-bg .q2 { right: 5cqw; top: 14cqh; transform: rotate(12deg); font-size: 15cqw; }
.scn-bg .floor { position: absolute; left: 0; right: 0; bottom: 0; height: 30cqh; background: #1e1c26; box-shadow: 0 -.35cqw 0 color-mix(in srgb, var(--game) 22%, var(--bg)); }
.scn-bg .floor::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2.2cqh; background: #24222d; }

.scn-tag { display: inline-block; padding: .35cqw 1.4cqw; background: var(--game); color: var(--bg); border-radius: .5cqw; transform: skewX(-16deg); font: 700 1.2cqw var(--font-head); white-space: nowrap; }
.scn-tag > span { display: inline-block; transform: skewX(16deg); }
.scn-card { position: absolute; left: 50%; top: 11cqh; z-index: 3; width: 60cqw; padding: 3.2cqw 3.4cqw 2.6cqw; background: var(--text); color: var(--bg); border-radius: 1.8cqw; text-align: center; box-shadow: 0 .9cqw 0 rgba(0,0,0,.4); transform: translateX(-50%) rotate(-1deg); transition: transform .7s var(--ease), top .7s var(--ease), opacity .4s; }
.scn-card .scn-tag { position: absolute; left: 50%; top: 0; transform: translate(-50%, -55%) skewX(-16deg); }
.scn-card h2 { margin: 0; font: 700 3.5cqw/1.12 var(--font-head); letter-spacing: -.02em; }
.scn-card.up { top: 6cqh; transform: translateX(-50%) rotate(-1deg) scale(.72); }
.scn-meter { position: absolute; left: 50%; top: 47cqh; z-index: 3; display: flex; align-items: center; gap: 1.2cqw; transform: translateX(-50%); font: 700 1.5cqw var(--font-head); white-space: nowrap; }
.scn-meter .scn-count { color: var(--muted); font-weight: 600; }
.scn-bar { display: block; width: 22cqw; height: 1cqw; border-radius: .4cqw; background: var(--panel-2); overflow: hidden; transform: skewX(-16deg); }
.scn-bar i { display: block; height: 100%; background: var(--game); transform-origin: left; animation: scn-drain linear both; }
@keyframes scn-drain { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.scn-sec { min-width: 2ch; text-align: right; }
.scn-cast { position: absolute; left: 4cqw; right: 4cqw; bottom: 6cqh; z-index: 2; display: flex; justify-content: space-around; align-items: flex-end; }
.scn-cast .fig { width: min(11cqw, calc(84cqw / var(--n))); }
.scn-cast .fig-nm { font-size: 1.25cqw; }
.who-pile { position: absolute; left: 50%; bottom: 100%; margin-bottom: 4.5cqh; display: flex; flex-direction: column-reverse; align-items: center; transform: translateX(-50%); }
.who-coin { width: 3.4cqw; height: 1.5cqw; margin-top: -.75cqw; border-radius: 50%; background: var(--c); box-shadow: 0 .3cqw 0 var(--cd), 0 0 0 .22cqw var(--bg), 0 .3cqw 0 .22cqw var(--bg); animation: who-land .3s var(--ease); }
@keyframes who-land { from { transform: translateY(-60%) scale(1.3); } }
.who-cnt { order: 99; min-width: 2.6cqw; margin-bottom: .9cqw; padding: .15cqw .6cqw; border-radius: .5cqw; background: var(--text); color: var(--bg); text-align: center; font: 700 1.5cqw var(--font-head); opacity: 0; transform: scale(.4); transition: opacity .2s, transform .3s var(--ease); }
.who-cnt.on { opacity: 1; transform: none; }
.who-cnt.pop { animation: who-pop .35s var(--ease); }
@keyframes who-pop { 40% { transform: scale(1.35); } }
.who-flyer { position: absolute; z-index: 6; width: 2.8cqw; height: 2.8cqw; margin: -1.4cqw 0 0 -1.4cqw; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 .5cqw var(--cd), 0 0 0 .22cqw var(--bg); pointer-events: none; }
.scn-spot { position: absolute; bottom: 0; z-index: 1; width: 16cqw; height: 100cqh; margin-left: -8cqw; background: color-mix(in srgb, var(--game) 13%, transparent); clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%); opacity: 0; transition: opacity .6s; }
.scn-spot.on { opacity: 1; }
.scn-spot::after { content: ''; position: absolute; left: 0; right: 0; bottom: 3cqh; height: 6cqh; border-radius: 50%; background: color-mix(in srgb, var(--game) 22%, transparent); }
.scn-plus { position: absolute; left: 50%; top: -6%; z-index: 4; padding: .2cqw .7cqw; border-radius: .5cqw; background: var(--good); color: var(--bg); font: 700 1.4cqw var(--font-head); animation: scn-plus 1.8s var(--ease) both; }
@keyframes scn-plus { 0% { opacity: 0; transform: translate(-50%, 40%) scale(.5); } 20% { opacity: 1; transform: translate(-50%, -30%) scale(1.1); } 80% { opacity: 1; transform: translate(-50%, -60%); } 100% { opacity: 0; transform: translate(-50%, -90%); } }
.scn-verdict { position: absolute; left: 50%; top: 34cqh; z-index: 4; padding: .6cqw 2.4cqw; background: var(--game); color: var(--bg); border-radius: .9cqw; white-space: nowrap; transform: translateX(-50%) skewX(-16deg) scale(0); transition: transform .5s var(--ease); }
.scn-verdict.on { transform: translateX(-50%) skewX(-16deg) scale(1); }
.scn-verdict > span { display: block; text-align: center; transform: skewX(16deg); }
.scn-verdict small { display: block; font: 700 1.05cqw var(--font-head); letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.scn-verdict b { font: 700 3.2cqw/1.1 var(--font-head); letter-spacing: -.02em; }
.scn-act { position: absolute; right: 2cqw; top: 2.6cqh; z-index: 5; display: flex; gap: .8cqw; }
.scn-act .btn { min-height: 0; padding: .7cqw 1.5cqw; border-radius: .8cqw; font-size: 1.25cqw; }
.scn-act .btn.ghost { background: var(--bg); }

.scn-title { position: absolute; left: 50%; top: 7cqh; z-index: 3; text-align: center; transform: translateX(-50%); }
.scn-title span { display: inline-block; padding: .3cqw 1.6cqw; background: var(--game); color: var(--bg); border-radius: .6cqw; transform: skewX(-16deg); font: 700 3.6cqw/1.2 var(--font-head); }
.scn-title p { margin: 1.2cqh 0 0; color: var(--muted); font: 600 1.35cqw var(--font-head); white-space: nowrap; }
.scn-podium { position: absolute; left: 50%; bottom: 0; z-index: 2; display: flex; align-items: flex-end; gap: .6cqw; transform: translateX(-50%); }
.scn-step { position: relative; width: 15cqw; display: flex; flex-direction: column; align-items: center; }
.scn-step .fig { width: 11cqw; animation: scn-drop .7s var(--ease) .6s both; }
.scn-step.p1 .fig { animation-delay: 1s; }
.scn-step .fig-nm { font-size: 1.35cqw; }
.scn-block { width: 100%; margin-top: 1.2cqh; display: flex; flex-direction: column; align-items: center; padding-top: 1.4cqh; background: var(--game); color: var(--bg); border-radius: .8cqw .8cqw 0 0; box-shadow: inset -1.2cqw 0 0 var(--game-d); transform-origin: bottom; animation: scn-rise .9s var(--ease) both; }
.scn-step.p1 .scn-block { height: 26cqh; }
.scn-step.p2 .scn-block { height: 18cqh; background: var(--game-l); box-shadow: inset -1.2cqw 0 0 color-mix(in srgb, var(--game-l) 85%, #000); animation-delay: .2s; }
.scn-step.p3 .scn-block { height: 12cqh; background: var(--game-ll); box-shadow: inset -1.2cqw 0 0 color-mix(in srgb, var(--game-ll) 87%, #000); animation-delay: .1s; }
.scn-block .pl { font: 700 4cqw/1 var(--font-head); }
.scn-block .pts { font: 700 1.6cqw var(--font-head); opacity: .75; }
@keyframes scn-rise { from { transform: scaleY(0); } }
@keyframes scn-drop { from { opacity: 0; transform: translateY(-40%); } }
.scn-rest { position: absolute; bottom: 5cqh; z-index: 2; display: flex; gap: 1cqw; }
.scn-rest.l { left: 3cqw; }
.scn-rest.r { right: 3cqw; }
.scn-rest > div { display: flex; flex-direction: column; align-items: center; }
.scn-rest .fig { width: 7cqw; }
.scn-rest .fig-nm { font-size: 1.1cqw; }
.scn-rest small { margin-top: .4cqh; color: var(--muted); font: 700 1.15cqw var(--font-head); white-space: nowrap; }
.scn-award { position: absolute; top: 25cqh; z-index: 3; width: 17cqw; padding: 1.4cqw 1.2cqw 1.2cqw; background: var(--text); color: var(--bg); border-radius: 1.4cqw; text-align: center; box-shadow: 0 .7cqw 0 rgba(0,0,0,.4); animation: scn-drop .7s var(--ease) 1.5s both; }
.scn-award.l { left: 4cqw; rotate: -3deg; }
.scn-award.r { right: 4cqw; rotate: 3deg; }
.scn-award .fig { width: 7cqw; margin: 0 auto; }
.scn-award small { display: block; margin-top: .6cqh; color: var(--game-d); font: 700 .95cqw var(--font-head); letter-spacing: .1em; text-transform: uppercase; }
.scn-award b { display: block; font: 700 1.7cqw/1.2 var(--font-head); }
.scn-award span { color: var(--dim); font-size: 1.05cqw; font-weight: 600; }

/* Scena w telefonie (bez TV): te same elementy, większe względem szerokości */
.scn.mini { aspect-ratio: 1 / 1.12; border-radius: 18px; }
.scn.mini.rows { aspect-ratio: 1 / calc(.78 + var(--rows) * .29); }
.scn.mini .scn-meter, .scn.mini .scn-award, .scn.mini .scn-rest, .scn.mini .scn-bg span { display: none; }
.scn.mini .scn-bg .floor { height: 34cqh; }
.scn.mini.rows .scn-bg .floor { height: calc(100cqh - 30cqw); }
.scn.mini .scn-tag { padding: .6cqw 2.6cqw; border-radius: 1cqw; font-size: 3cqw; }
.scn.mini .scn-card { top: 7cqh; width: 88cqw; padding: 5.5cqw 5cqw 4.5cqw; border-radius: 4cqw; }
.scn.mini .scn-card.up { top: 5cqh; transform: translateX(-50%) rotate(-1deg) scale(.9); }
.scn.mini.rows .scn-card.up { opacity: 0; }
.scn.mini .scn-card h2 { font-size: 6.4cqw; }
.scn.mini .scn-cast { left: 1.5cqw; right: 1.5cqw; bottom: 5cqh; }
.scn.mini .scn-cast .fig { width: min(22cqw, calc(94cqw / var(--n))); }
.scn.mini.rows .scn-cast { display: grid; grid-template-columns: repeat(4, 1fr); justify-items: center; row-gap: 17cqw; bottom: 3cqh; }
.scn.mini.rows .scn-cast .fig { width: 17cqw; }
.scn.mini .scn-cast .fig-nm { font-size: 3.2cqw; }
.scn.mini .who-pile { margin-bottom: 5cqh; }
.scn.mini .who-coin { width: 7.5cqw; height: 3.2cqw; margin-top: -1.6cqw; box-shadow: 0 .7cqw 0 var(--cd), 0 0 0 .5cqw var(--bg), 0 .7cqw 0 .5cqw var(--bg); }
.scn.mini .who-cnt { min-width: 6.5cqw; margin-bottom: 1.8cqw; padding: .3cqw 1.2cqw; border-radius: 1.2cqw; font-size: 3.8cqw; }
.scn.mini .who-flyer { width: 6.4cqw; height: 6.4cqw; margin: -3.2cqw 0 0 -3.2cqw; box-shadow: inset 0 0 0 1.1cqw var(--cd), 0 0 0 .5cqw var(--bg); }
.scn.mini .scn-verdict { top: 36cqh; padding: 1.4cqw 5cqw; border-radius: 2cqw; }
.scn.mini.rows .scn-verdict { top: 5cqh; }
.scn.mini .scn-verdict small { font-size: 2.6cqw; }
.scn.mini .scn-verdict b { font-size: 7.6cqw; }
.scn.mini .scn-spot { width: 32cqw; margin-left: -16cqw; }
.scn.mini .scn-plus { padding: .4cqw 1.4cqw; border-radius: 1cqw; font-size: 3.4cqw; }
.scn.mini .scn-title { top: 6cqh; }
.scn.mini .scn-title span { padding: .6cqw 3.4cqw; border-radius: 1.4cqw; font-size: 8cqw; }
.scn.mini .scn-title p { font-size: 3.2cqw; }
.scn.mini .scn-podium { gap: 1.5cqw; }
.scn.mini .scn-step { width: 30cqw; }
.scn.mini .scn-step .fig { width: 21cqw; }
.scn.mini .scn-step .fig-nm { font-size: 3.4cqw; }
.scn.mini .scn-block { border-radius: 2cqw 2cqw 0 0; box-shadow: inset -2.4cqw 0 0 var(--game-d); }
.scn.mini .scn-step.p1 .scn-block { height: 22cqh; }
.scn.mini .scn-step.p2 .scn-block { height: 16cqh; box-shadow: inset -2.4cqw 0 0 color-mix(in srgb, var(--game-l) 85%, #000); }
.scn.mini .scn-step.p3 .scn-block { height: 12cqh; box-shadow: inset -2.4cqw 0 0 color-mix(in srgb, var(--game-ll) 87%, #000); }
.scn.mini .scn-block .pl { font-size: 8cqw; }
.scn.mini .scn-block .pts { font-size: 3.4cqw; }

/* ---------- Telefon w grach ze sceną (.scn-ph) i Kto z nas…? ---------- */
.scn-ph { display: flex; flex-direction: column; flex: 1; gap: 12px; margin-top: 6px; }
.scn-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.scn-ph .scn-tag { padding: 3px 10px; border-radius: 6px; font-size: .78rem; }
.scn-clock { display: flex; align-items: center; gap: 8px; font: 700 1rem var(--font-head); }
.scn-clock .scn-bar { width: 64px; height: 7px; border-radius: 3px; }
.who-q { margin: 4px 0 2px; font-family: var(--font-head); font-size: clamp(1.6rem, 7vw, 2.2rem); line-height: 1.08; letter-spacing: -.03em; }
.who-q.small { margin: 0; font-size: 1.05rem; line-height: 1.3; color: var(--muted); font-weight: 600; letter-spacing: -.01em; }
.who-picks { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 8px; }
.who-pick { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px 8px; background: var(--panel); border: 0; border-radius: 16px; font-weight: 700; font-size: .9rem; transition: background .15s, box-shadow .15s, transform .1s; }
.who-pick:active { transform: scale(.96); }
.who-pick .fig { width: 56px; }
.who-pick .n { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-pick[aria-pressed="true"] { background: color-mix(in srgb, var(--game) 14%, var(--panel)); box-shadow: inset 0 0 0 2.5px var(--game); }
.who-you { position: absolute; top: 6px; right: 9px; color: var(--muted); font: 600 .66rem var(--font-head); }
.scn-ph .actions { margin-top: auto; }
.who-sent { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.who-sent-fig { position: relative; width: 112px; margin-bottom: 4px; }
.who-sent h3 { margin: 6px 0 0; font: 700 1.45rem/1.15 var(--font-head); letter-spacing: -.02em; }
.who-sent p { margin: 0; color: var(--muted); }
.who-token { position: absolute; left: 50%; top: -14px; z-index: 2; width: 34px; height: 34px; margin-left: -17px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 6px var(--cd), 0 0 0 2.5px var(--bg); animation: who-sent 1s var(--ease) both; }
@keyframes who-sent { 0% { transform: translateY(90px) scale(.4); opacity: 0; } 50% { transform: translateY(-10px) scale(1.1); opacity: 1; } 100% { transform: none; } }
.scn-roster { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
.scn-roster .fig { width: 42px; }
.scn-roster .fig-nm { margin-top: 2px; font-size: .64rem; }
.scn-roster .fig-think { display: none; }
.scn-roster .fig:not(.voted) .fig-svg { opacity: .4; }
.who-after { display: flex; flex-direction: column; gap: 12px; }
.scn-hit { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--panel); font-weight: 700; }
.scn-hit .fig { width: 40px; flex: none; }
.scn-hit.good { background: #173327; color: var(--good); }
.who-look { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; color: var(--muted); }
.who-look h3 { margin: 6px 0 0; color: var(--text); font: 700 1.5rem var(--font-head); }
.who-won { display: flex; flex-direction: column; align-items: center; margin-top: 10px; }
.who-won-figs { display: flex; gap: 10px; margin-top: 26px; }
.who-won-figs .fig { width: 104px; }
.who-won-figs .fig-nm { font-size: 1rem; }
.who-piles { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 6px; }
.who-piles > div { display: flex; flex-direction: column; align-items: center; width: 46px; }
.who-piles .fig { width: 34px; }
.who-piles b { font: 700 .85rem var(--font-head); }
.who-piles .zero { opacity: .35; }
.scn-me { display: flex; align-items: center; gap: 12px; }
.scn-me b { display: block; font: 700 1.15rem var(--font-head); }
.scn-place { display: inline-block; padding: 0 12px; background: var(--game); color: var(--bg); border-radius: 8px; transform: skewX(-16deg); font: 700 2rem/1.15 var(--font-head); }
.scn-place > span { display: inline-block; transform: skewX(16deg); }
.scn-mine { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 0 4px; text-align: center; color: var(--muted); }
.scn-mine .scn-place { padding: 2px 18px; border-radius: 10px; font-size: 3.4rem; }
.scn-mine .fig { width: 116px; }
.scn-mine .fig-nm { font-size: 1rem; }
.scn-mine b { color: var(--text); font: 700 1.25rem var(--font-head); }
.scn-awards { display: grid; gap: 8px; }
.scn-awards > div { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 14px; background: var(--panel); }
.scn-awards .fig { width: 36px; flex: none; }
.scn-awards small { display: block; color: var(--game); font: 700 .68rem var(--font-head); letter-spacing: .1em; text-transform: uppercase; }
.who-hist summary { cursor: pointer; color: var(--muted); font-weight: 600; padding: 6px 2px; }
.who-hist .who-list { margin-top: 6px; }
@media (prefers-reduced-motion: no-preference) {
  .scn-card.in { animation: who-card-in .8s var(--ease) both; }
  .who-reveal .who-after { opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .4s var(--ease); }
  .who-reveal.done .who-after { opacity: 1; transform: none; }
}
@keyframes who-card-in { from { transform: translate(-50%, -120%) rotate(-8deg); } }
.who-reveal .who-look { display: none; }
.who-reveal.tvside:not(.done) .who-look { display: flex; }
.who-reveal.tvside:not(.done) .who-after { display: none; }

/* ---------- Rysowanie (Kalambury, głuchy telefon) ---------- */
.draw-wrap, .draw-static { position: relative; width: 100%; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: #faf8f4; }
.draw-wrap canvas, .draw-static canvas { display: block; width: 100%; height: 100%; }
.draw-canvas.editable { touch-action: none; cursor: crosshair; }
.draw-tools { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.draw-colors { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; }
.draw-color { aspect-ratio: 1; border: 0; border-radius: 10px; background: var(--c); box-shadow: inset 0 0 0 2px rgba(250, 248, 244, .12); }
.draw-color[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--text); transform: rotate(-8deg); }
.draw-color.eraser { display: grid; place-items: center; background: var(--panel-2); color: var(--muted); }
.draw-color.eraser[aria-pressed="true"] { color: var(--text); }
.draw-row { display: flex; align-items: center; gap: 6px; }
.draw-widths { flex: 1; display: flex; gap: 6px; }
.draw-width { flex: 1; height: 40px; border: 0; border-radius: 10px; background: var(--panel); display: grid; place-items: center; }
.draw-width i { width: var(--s); height: var(--s); border-radius: 50%; background: var(--muted); }
.draw-width[aria-pressed="true"] { background: var(--panel-3); }
.draw-width[aria-pressed="true"] i { background: var(--text); }
.draw-row .icon-btn { background: var(--panel); }

/* Kalambury */
.ch-mask { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.ch-mask i { width: 1.25rem; height: 1.75rem; display: grid; place-items: center; border-bottom: 3px solid var(--text); font-style: normal; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; }
.ch-mask i.sp { border: 0; width: .6rem; }
.ch-feed { list-style: none; margin: 0; padding: 8px 10px; border-radius: 12px; background: var(--panel); max-height: 7.5rem; overflow-y: auto; display: flex; flex-direction: column; gap: 3px; font-size: .9rem; }
.ch-feed:empty { display: none; }
.ch-feed li.ok { color: var(--good); font-weight: 650; }
.ch-guess { position: sticky; bottom: 0; margin-top: 10px; padding: 8px 0 calc(8px + env(safe-area-inset-bottom)); background: var(--bg); }
.ch-guess .btn { min-height: 56px; padding: 0 18px; }
.ch-done { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 14px; border-radius: 14px; background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--good); font-weight: 700; }
.ch-choose .h2 { margin-top: 18px; }
.ch-options { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; }
.ch-option { min-height: 66px; border: 0; border-radius: 16px; background: var(--panel); font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; transition: background .15s, transform .1s; }
.ch-option:hover { background: var(--panel-2); }
.ch-option:active { transform: scale(.98); }
/* Impostor rysowany: płótno, kolejka kresek z kolorami graczy, gotowy rysunek nad rozmową i głosowaniem. */
.imp-draw { display: flex; flex-direction: column; }
.imp-draw-you { display: flex; align-items: center; gap: 12px; margin: 10px 0 12px; padding: 12px 14px; border-radius: 14px; background: var(--panel); box-shadow: inset 0 0 0 2px var(--dc); }
.imp-draw-you > i { flex: none; width: 26px; height: 26px; border-radius: 7px; background: var(--dc); transform: rotate(16deg); }
.imp-draw-you strong { display: block; font-family: var(--font-head); font-size: 1.15rem; }
.imp-draw-you small { color: var(--muted); font-weight: 600; }
.imp-draw-who { display: flex; align-items: center; gap: 8px; margin: 10px 0 12px; font-weight: 650; color: var(--muted); }
.imp-pad.locked { pointer-events: none; opacity: .92; }
.imp-draw-side .sub { margin-top: 14px; }
.imp-order { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.imp-order li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 10px; background: var(--panel); font-size: .85rem; font-weight: 650; }
.imp-order li > i { width: 10px; height: 10px; border-radius: 3px; background: var(--dc); transform: rotate(16deg); }
.imp-order li.now { box-shadow: inset 0 0 0 2px var(--dc); }
.imp-order li.done { opacity: .5; }
.imp-draw .peek { margin-top: 14px; }
.imp-drawing { max-width: 300px; margin: 0 auto 14px; }
.imp-drawing .draw-static { border-radius: 16px; overflow: hidden; }
.imp-drawing.big { max-width: 30vh; margin-bottom: .6rem; }
html.tv .imp-draw.tv { display: grid; grid-template-columns: minmax(0, calc(100vh - 15rem)) minmax(18rem, 1fr); gap: 3rem; align-items: center; max-width: 110rem; margin: 0 auto; width: 100%; }
html.tv .imp-draw.tv .who-head { font-size: 1.2rem; }
html.tv .imp-draw.tv .who-head .countdown { font-size: 2.6rem; color: var(--text); }
html.tv .imp-draw.tv .imp-draw-who { font-size: 1.5rem; }
html.tv .imp-draw.tv .imp-order li { font-size: 1.2rem; padding: .4rem 1rem .4rem .4rem; }
html.tv .imp-draw.tv .imp-order li > i { width: 1rem; height: 1rem; }
/* Pokazywanie: hasło na dużej karcie u pokazującego, wielki zegar u zgadujących, przyciski "kto zgadł". */
.ch-act-word { margin-top: 14px; padding: 18px 20px 22px; border-radius: 20px; background: var(--game); color: var(--on-accent); text-align: center; }
.ch-act-word .label { color: var(--on-accent); opacity: .6; }
.ch-act-word strong { display: block; margin-top: 6px; font-family: var(--font-head); font-size: clamp(2.2rem, 11vw, 3.4rem); line-height: 1.05; letter-spacing: -.02em; overflow-wrap: anywhere; }
.ch-act .sub { margin-top: 12px; }
.ch-act .block-head { margin-top: 18px; }
.ch-credit { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.ch-credit-btn { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 8px 12px 8px 8px; border: 0; border-radius: 14px; background: var(--panel); color: var(--text); font: inherit; font-weight: 700; text-align: left; cursor: pointer; box-shadow: inset 0 0 0 2px transparent; }
.ch-credit-btn span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-credit-btn:active { transform: scale(.97); box-shadow: inset 0 0 0 2px var(--pc); }
.ch-act-clock { margin: 10px 0 6px; font-family: var(--font-head); font-weight: 700; font-size: clamp(4.5rem, 24vw, 7rem); line-height: 1; font-variant-numeric: tabular-nums; }
.ch-final { max-width: 420px; }
}
html.tv .ch-mask i { width: 2.4rem; height: 3rem; font-size: 2rem; }
html.tv .ch-final { max-width: 60vh; }

/* Głuchy telefon */
.tel-prompt { margin: 8px 0 12px; }
.tel-prompt strong { display: block; margin-top: 4px; font-family: var(--font-head); font-size: 1.5rem; line-height: 1.15; letter-spacing: -.02em; }
.tel-prev { margin: 8px 0 14px; }
.tel-form { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.tel-by { display: inline-flex; align-items: center; gap: 7px; font-size: .85rem; font-weight: 650; color: var(--muted); }
.tel-text { margin: 0; font-family: var(--font-head); font-size: 1.45rem; line-height: 1.2; letter-spacing: -.02em; }
.tel-text .dim { color: var(--dim); }
.tel-drawing { max-width: 380px; }
@media (prefers-reduced-motion: no-preference) { .tel-entry.new { animation: step-in .45s var(--ease) both; } }
.tel-next { position: sticky; bottom: 0; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: var(--bg); }
.tel-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-top: 16px; }
.tel-chain-card { padding: 12px; border-radius: 16px; background: var(--panel); }
.tel-chain-card h4 { margin: 0; font-family: var(--font-head); }
.tel-chain.small .tel-text { font-size: 1.05rem; }
.tel-form .input { flex: none; }

/* Głuchy telefon: krąg z zeszytami w trakcie kroku, łańcuch na sznurku z klamerkami (js/telephone.js) */
.tel-tv { width: 100%; }
.tel-ring { position: relative; width: min(100%, calc((100dvh - 12rem) * 16 / 9)); aspect-ratio: 16 / 9; margin: 0 auto; border-radius: 18px; background: color-mix(in srgb, var(--game) 8%, #1d1a25); container-type: size; overflow: hidden; }
.tel-arrows { position: absolute; left: 14%; right: 14%; top: 16%; bottom: 6%; width: 72%; height: 78%; color: color-mix(in srgb, var(--game) 55%, transparent); }
@media (prefers-reduced-motion: no-preference) { .tel-arrows path { animation: tel-dash 1.6s linear infinite; } }
@keyframes tel-dash { to { stroke-dashoffset: -14; } }
.tel-mid { position: absolute; left: 50%; top: 54%; display: flex; flex-direction: column; align-items: center; gap: .6cqh; max-width: 44cqw; text-align: center; transform: translate(-50%, -50%); }
.tel-icon { display: grid; place-items: center; width: 7cqw; aspect-ratio: 1; border-radius: 22%; background: var(--game); color: var(--on-accent); transform: rotate(-8deg); }
.tel-icon svg { width: 60%; height: 60%; }
.tel-mid .label { font-size: 1.2cqw; }
.tel-mid b { font: 700 2.8cqw/1.1 var(--font-head); }
.tel-cd { font: 700 3.6cqw/1 var(--font-head); font-variant-numeric: tabular-nums; }
.tel-seat { position: absolute; display: flex; flex-direction: column; align-items: center; width: 7.5cqw; transform: translate(-50%, -100%); }
.tel-seat .fig { width: 100%; }
.tel-seat.away .fig-svg { opacity: .4; }
.tel-book { position: absolute; left: 50%; top: 58%; z-index: 3; width: 52%; aspect-ratio: 1.3; border-radius: .4cqw; background: #faf6ee; border: .25cqw solid #16141c; transform: translateX(-50%) rotate(-6deg); transition: transform .5s var(--ease); }
.tel-book i { position: absolute; left: 18%; right: 18%; top: 30%; height: .3cqw; background: #b9b2c4; box-shadow: 0 .8cqw 0 #b9b2c4; }
.tel-book.draw i { left: 25%; right: 30%; top: 25%; height: 40%; border-radius: 50%; background: transparent; border: .25cqw solid var(--game); box-shadow: none; }
@media (prefers-reduced-motion: no-preference) { .tel-seat:not(.done) .tel-book { animation: tel-scribble .9s ease-in-out infinite; } }
@keyframes tel-scribble { 50% { transform: translateX(-50%) rotate(-2deg) translateY(-6%); } }
.tel-seat.done .tel-book { transform: translateX(10%) translateY(30%) rotate(18deg) scale(.85); background: var(--game); }
.tel-nm { max-width: 140%; margin-top: -.3cqh; padding: .1cqh .6cqw; border-radius: .5cqw; background: #16141c; color: var(--text); font: 700 1.1cqw/1.3 var(--font-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; z-index: 4; }
/* Sznurek z kartkami */
.tel-chain { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 26px 14px; flex-direction: row; }
.tel-entry { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; width: min(100%, 260px); padding: 18px 0 0; background: none; border-radius: 0; }
.tel-entry::before { content: ''; position: absolute; left: -14px; right: -14px; top: 6px; height: 3px; background: #b07a4f; }
.tel-pin { position: absolute; left: 50%; top: 0; z-index: 3; width: 12px; height: 26px; border-radius: 3px; background: #d9b88c; border: 2px solid #16141c; transform: translateX(-50%); }
.tel-paper { width: 100%; padding: 12px; border: 2px solid #16141c; border-radius: 4px; background: #faf6ee; color: #16141c; box-shadow: 4px 6px 0 rgba(0, 0, 0, .3); transform: rotate(var(--r)); transform-origin: 50% 0; }
.tel-entry.draw .tel-paper { padding: 6px; background: #fff; }
.tel-paper .tel-text { margin: 0; color: #16141c; }
.tel-paper .tel-text .dim { color: #8f8a9b; }
.tel-paper .tel-drawing, .tel-paper .draw-static { max-width: none; border-radius: 2px; }
.tel-entry .tel-by { color: var(--muted); }
@media (prefers-reduced-motion: no-preference) { .tel-entry.new .tel-paper { animation: tel-swing 1.2s cubic-bezier(.3, 1.4, .5, 1) both; } }
@keyframes tel-swing { 0% { transform: translateX(60px) rotate(25deg); opacity: 0; } 40% { opacity: 1; transform: rotate(-9deg); } 70% { transform: rotate(5deg); } 100% { transform: rotate(var(--r)); } }
.tel-chain.small { gap: 18px 10px; }
.tel-chain.small .tel-entry { width: 150px; }
.tel-chain.small .tel-text { font-size: .95rem; }
html.tv .tel-reveal { max-width: none; }
html.tv .tel-chain { justify-content: center; }
html.tv .tel-entry { width: min(24rem, 22vw); }
html.tv .tel-text { font-size: 1.8rem; }
.tel-tv-result { width: 100%; }
html.tv .tel-tv-result .tel-gallery { grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr)); }

/* ---------- Podpisz to ---------- */
.meme { margin: 10px 0 0; border-radius: 18px; overflow: hidden; background: var(--text); color: var(--bg); }
.meme img { display: block; width: 100%; height: auto; max-height: 52vh; object-fit: contain; background: #0c0b10; }
.meme-cap { padding: 14px 16px; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; line-height: 1.2; letter-spacing: -.01em; }
.meme-credit { display: block; padding: 6px 12px; font-size: .7rem; color: rgba(22, 20, 28, .55); }
.meme-credit a { color: inherit; }
.mg-wall.small .meme img { max-height: 30vh; }
.mg-wall.big .meme img { max-height: 62vh; }
.meme-hint { margin: 16px 0 8px; }
.meme-hand { display: flex; flex-direction: column; gap: 6px; }
.meme-card { text-align: left; padding: 12px 14px; border: 0; border-radius: 12px; background: var(--panel); font-weight: 600; line-height: 1.3; transition: background .15s, box-shadow .15s; }
.meme-card:hover { background: var(--panel-2); }
.meme-card[aria-pressed="true"] { background: var(--panel-2); box-shadow: inset 0 0 0 2px var(--game); }
.meme-text { height: auto; min-height: 84px; padding: 12px 14px; resize: none; line-height: 1.35; }
.meme-votes { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.meme-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; padding: 14px; border: 0; border-radius: 14px; background: var(--panel); font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; line-height: 1.25; }
.meme-option .tick { flex: none; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--panel-3); color: transparent; }
.meme-option[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--game); background: var(--panel-2); }
.meme-option[aria-pressed="true"] .tick { background: var(--game); color: var(--on-accent); box-shadow: none; }
.meme-option.mine { opacity: .55; }
.meme-option small { flex: none; font-family: 'Inter', sans-serif; font-weight: 600; font-size: .75rem; color: var(--muted); }
.meme-option b { flex: none; width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 8px; background: var(--game); color: var(--on-accent); }
div.meme-option { justify-content: flex-start; }
.meme-winner { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-weight: 600; }
.meme-winner span { margin-left: auto; color: var(--game); font-weight: 700; }
.meme-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.meme-list li { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 12px; background: var(--panel); }
.meme-list .cap { font-weight: 650; }
.meme-list .by { display: flex; align-items: center; gap: 7px; font-size: .85rem; color: var(--muted); }
.meme-list .by b { margin-left: auto; color: var(--text); font-family: var(--font-head); }
.meme-star { max-width: 520px; }
.meme-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.meme-gallery .mg-wall { margin: 0; }
.meme-gallery .meme-cap { font-size: 1rem; padding: 10px 12px; }
.meme-gallery .sub { margin: 6px 2px 0; font-size: .85rem; }
.meme-tv { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2.4rem; align-items: start; }
.meme-tv .mg-wall { margin: 0; }
.meme-tv-side .tv-title { font-size: clamp(2.4rem, 4vw, 4rem); }
html.tv .meme-cap { font-size: 2rem; padding: 1.2rem 1.4rem; }
html.tv .meme-option { font-size: 1.5rem; padding: 1rem 1.2rem; }
html.tv .tv-result .meme-gallery { grid-column: 1 / 3; grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr)); }
@media (max-width: 760px) { .meme-tv { grid-template-columns: 1fr; } }
textarea { font: inherit; color: inherit; }
.meme-winner { justify-content: flex-start; }

/* Podpisz to: zdjęcie w ramie pod lampką, podpisy jako komiksowe dymki, żetony głosów (js/memes.js) */
.mg-wall { position: relative; margin: 10px 0 0; padding-top: 16px; }
.mg-lamp { position: absolute; left: 50%; top: 0; z-index: 3; width: 34%; height: 12px; border-radius: 0 0 10px 10px; background: #3a3545; border: 3px solid #16141c; transform: translateX(-50%); }
.mg-lamp::after { content: ''; position: absolute; left: 50%; top: 100%; width: 150%; height: 140px; background: rgba(255, 240, 205, .12); clip-path: polygon(22% 0, 78% 0, 100% 100%, 0 100%); transform: translateX(-50%); pointer-events: none; }
.mg-frame { margin: 0; padding: 8px; border-radius: 6px; background: #faf6ee; border: 12px solid #9a6440; outline: 3px solid #16141c; box-shadow: inset 0 0 0 3px #16141c, 0 10px 0 rgba(0, 0, 0, .35); }
.mg-frame img { border-radius: 2px; }
.mg-frame .meme-credit { padding: 6px 2px 0; }
.mg-say { position: absolute; left: 6%; right: 6%; top: 34px; z-index: 4; display: flex; justify-content: center; pointer-events: none; }
.mg-say .meme-cap { position: relative; max-width: 100%; padding: 12px 18px; border-radius: 22px; background: #faf6ee; border: 3px solid #16141c; color: #16141c; box-shadow: 0 6px 0 rgba(22, 20, 28, .35); text-align: center; animation: mg-pop .5s cubic-bezier(.2, 1.5, .4, 1) .2s both; }
.mg-say .meme-cap::after { content: ''; position: absolute; left: 22%; bottom: -12px; width: 18px; height: 18px; background: #faf6ee; border: 3px solid #16141c; border-top: 0; border-left: 0; transform: rotate(45deg); }
@keyframes mg-pop { from { opacity: 0; transform: scale(.4) rotate(-6deg); } }
html.tv .mg-say { top: 3rem; }
html.tv .mg-lamp::after { height: 30vh; }
.meme-option { position: relative; margin-bottom: 8px; padding: 14px 16px; border: 3px solid #16141c; border-radius: 22px; background: #faf6ee; color: #16141c; font-weight: 700; transform: rotate(calc((var(--k, 0) - 1) * .6deg)); }
.meme-option::after { content: ''; position: absolute; left: 26px; bottom: -11px; width: 16px; height: 16px; background: inherit; border: 3px solid #16141c; border-top: 0; border-left: 0; transform: rotate(45deg); }
.meme-option:nth-child(even)::after { left: auto; right: 26px; }
.meme-option .tick { box-shadow: inset 0 0 0 2px #16141c; color: transparent; }
.meme-option[aria-pressed="true"] { background: var(--game); color: var(--on-accent); box-shadow: none; }
.meme-option[aria-pressed="true"] .tick { background: #16141c; color: #faf6ee; box-shadow: none; }
.meme-option small { color: #6f6a7a; }
.meme-option b { border: 2px solid #16141c; }
@media (prefers-reduced-motion: no-preference) { .meme-option { animation: mg-pop .45s cubic-bezier(.2, 1.5, .4, 1) calc(var(--k, 0) * 80ms) both; } }
.meme-list li { position: relative; margin-bottom: 6px; border: 3px solid #16141c; border-radius: 20px; background: #faf6ee; color: #16141c; }
.meme-list .by { color: #6f6a7a; }
.meme-list .by b { color: #16141c; }
.meme-list li::after { content: ''; position: absolute; left: 24px; bottom: -10px; width: 14px; height: 14px; background: #faf6ee; border: 3px solid #16141c; border-top: 0; border-left: 0; transform: rotate(45deg); }
.mg-tokens { display: inline-flex; gap: 3px; margin-left: 4px; }
.mg-tokens i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); border: 2px solid #16141c; animation: scn-pop-in .35s var(--ease) both; }
.mg-tokens i:nth-child(2) { animation-delay: .1s; }
.mg-tokens i:nth-child(3) { animation-delay: .2s; }
.mg-tokens i:nth-child(n+4) { animation-delay: .3s; }
html.tv .mg-tokens i { width: 1.1rem; height: 1.1rem; }
.meme-winner .fig { width: 40px; }
html.tv .meme-winner { font-size: 1.6rem; }
html.tv .meme-winner .fig { width: 4.5rem; }

/* ---------- Jedno słowo ---------- */
.ow-head { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.ow-head .countdown { margin-left: auto; color: var(--muted); }
.ow-score { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 8px; background: var(--game); color: var(--on-accent); font-family: var(--font-head); font-weight: 700; }
.ow-who { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-weight: 600; color: var(--muted); }
.ow-mine { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-top: 22px; padding: 14px 16px; border-radius: 14px; background: var(--panel); }
.ow-mine .label { flex-basis: 100%; }
.ow-mine strong { font-family: var(--font-head); font-size: 1.6rem; letter-spacing: -.02em; }
.ow-mine .text-link { margin-left: auto; }
.ow-error { margin: 10px 0 0; color: var(--accent); font-weight: 600; }
.ow-title { margin-top: 18px; }
.ow-quiet { display: flex; align-items: center; gap: 8px; margin: 20px 0 0; color: var(--muted); font-weight: 600; }
.ow-burn { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; color: var(--accent); font-weight: 600; }
.ow-log small { margin-left: auto; color: var(--muted); font-size: .8rem; text-align: right; }
.ow-stats p { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; padding: 12px 14px; border-radius: 12px; background: var(--panel); font-weight: 600; }
.ow-stats p svg { flex: none; color: var(--game); }
html.tv .ow-who { font-size: 1.6rem; }
html.tv .ow-head { font-size: 1.3rem; }
.ow-accept { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin: 18px 0 0; }
.ow-accept small { color: var(--dim); font-size: .82rem; }
.ow-log li { flex-wrap: wrap; }
.ow-tv { width: 100%; max-width: 1400px; margin: 0 auto; padding-top: 1.5rem; }
.ow-tv .ow-head { font-size: 1.3rem; }
.ow-tv .ow-head .label { font-size: 1rem; }
.ow-tv .ow-head .countdown { font-size: clamp(3rem, 6vw, 6rem); line-height: 1; color: var(--text); }
.ow-tv .ow-who { font-size: 2rem; margin-top: 1.4rem; }
.ow-tv .ow-who .chip-av { width: 3rem; height: 3rem; font-size: 1.5rem; border-radius: .8rem; }
.ow-tv .ow-burn { font-size: 1.5rem; }
.ow-tv .actions { max-width: 640px; }
.ow-tv .actions { margin-left: auto; margin-right: auto; }

/* ---------- Na oko ---------- */
.oko-q { margin: 14px 0 0; padding: 18px 18px 20px; border-radius: 18px; background: var(--game); color: var(--on-accent); }
.oko-q p { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.4rem, 6vw, 1.9rem); line-height: 1.15; letter-spacing: -.02em; }
.oko-unit { display: inline-block; margin-top: 10px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .6; }
.oko-q.small { padding: 12px 14px; }
.oko-q.small p { font-size: 1.05rem; line-height: 1.25; }
.oko-field { position: relative; flex: 1; display: flex; min-width: 0; }
.oko-field .input { flex: 1; min-width: 0; }
.oko-field span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 650; pointer-events: none; }
.oko-field span ~ .input, .oko-field .input:has(+ span) { padding-right: 64px; }
.oko-preview { min-height: 1.4em; margin: 8px 0 0; color: var(--game); font-weight: 650; font-variant-numeric: tabular-nums; }
.oko-title { margin-top: 18px; }
.oko-line { position: relative; height: 92px; margin: 18px 6px 4px; }
.oko-axis { position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px; background: var(--panel-3); }
.oko-mark, .oko-answer { position: absolute; top: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.oko-mark { margin-top: -36px; }
.oko-mark i { order: 2; width: 14px; height: 14px; margin-top: 4px; border-radius: 4px; background: var(--pc); transform: rotate(16deg); box-shadow: 0 0 0 3px var(--bg); }
.oko-mark b { order: 1; font-size: .78rem; font-weight: 700; white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
.oko-mark.down { margin-top: -7px; }
.oko-mark.down i { order: 0; margin: 0 0 4px; }
.oko-mark.win b { color: var(--text); }
.oko-mark.win i { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--game); }
.oko-answer { top: 0; bottom: 0; z-index: 1; }
.oko-answer i { flex: 1; width: 3px; border-radius: 2px; background: var(--text); }
.oko-answer b { position: absolute; top: -6px; left: 6px; padding: 2px 7px; border-radius: 6px; background: var(--text); color: var(--bg); font-size: .78rem; white-space: nowrap; }
.oko-opts { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.oko-opt { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 12px 14px; border: 0; border-radius: 14px; background: var(--panel); text-align: left; }
.oko-opt strong { font-family: var(--font-head); font-size: 1.35rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.oko-opt small { color: var(--muted); font-weight: 600; font-size: .75rem; }
.oko-opt .tick { margin-left: auto; flex: none; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--panel-3); color: transparent; }
.oko-opt[aria-pressed="true"] { background: var(--panel-2); box-shadow: inset 0 0 0 2px var(--game); }
.oko-opt[aria-pressed="true"] .tick { background: var(--game); color: var(--on-accent); box-shadow: none; }
.oko-authors { display: flex; flex-wrap: wrap; gap: 4px 10px; flex-basis: 100%; }
.oko-who { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.oko-off { margin-left: auto; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.oko-opt.win { box-shadow: inset 0 0 0 2px var(--game); }
.oko-opt.win .oko-off { color: var(--game); }
.oko-bets { display: inline-flex; align-items: center; gap: 4px; color: var(--game); }
.oko-verdict { margin-top: 14px; }
.oko-gains { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.oko-gains li { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 12px; background: var(--panel); font-weight: 600; }
.oko-gains em { font-style: normal; color: var(--game); }
.oko-gains b { margin-left: auto; font-family: var(--font-head); color: var(--game); }
.oko-hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.oko-hist li { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 12px; background: var(--panel); }
.oko-hist .q { color: var(--muted); font-size: .9rem; }
.oko-hist .a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.oko-hist .a b { font-family: var(--font-head); font-size: 1.15rem; }
.oko-hist .a small { color: var(--muted); }
.oko-tv { width: 100%; max-width: 1400px; margin: 0 auto; }
.oko-tv .who-head { font-size: 1.3rem; }
.oko-tv .who-head .countdown { font-size: clamp(3rem, 6vw, 6rem); line-height: 1; color: var(--text); }
.oko-tv .oko-q { padding: 2rem 2.4rem; border-radius: 1.6rem; }
.oko-tv .oko-q p { font-size: clamp(2.4rem, 4.4vw, 4.4rem); }
.oko-tv .oko-q.small p { font-size: 2rem; }
.oko-tv .oko-unit { font-size: 1.1rem; }
.oko-tv .tv-lead { margin: 1.4rem 0 2rem; }
.oko-tv .oko-line { height: 150px; margin: 2rem 1rem; }
.oko-tv .oko-mark { margin-top: -58px; }
.oko-tv .oko-mark.down { margin-top: -11px; }
.oko-tv .oko-mark i { width: 22px; height: 22px; }
.oko-tv .oko-mark b, .oko-tv .oko-answer b { font-size: 1.3rem; }
.oko-tv .oko-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr)); gap: .8rem; }
.oko-tv .oko-opt strong { font-size: 2rem; }
.oko-tv .oko-verdict h2 { font-size: clamp(4rem, 8vw, 8rem); }
.oko-tv .oko-verdict { margin: 1.2rem 0 0; padding: 2rem 2.4rem; border-radius: 1.6rem; }
.oko-tv .actions { max-width: 640px; margin-left: auto; margin-right: auto; }
/* Opcja szacunku: liczba i autorzy po lewej, znacznik albo odchyłka po prawej. */
.oko-opt { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.oko-opt > * { grid-column: 1; }
.oko-opt > .tick, .oko-opt > .oko-off { grid-column: 2; grid-row: 1 / span 3; align-self: center; margin-left: 0; }
.oko-opt .oko-bets { justify-self: start; }
.oko-tv .oko-line { height: 120px; margin: 1.4rem 1rem; }
.oko-tv .oko-opts { grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }

/* ---------- Bomba sylabowa ---------- */
.bomb-stage { display: flex; flex-direction: column; min-height: 100%; }
.bomb-hearts { display: flex; gap: 2px; }
.bomb-hearts i { display: grid; place-items: center; color: var(--panel-3); }
.bomb-hearts i.on { color: var(--accent); }
.bomb-hearts i svg { fill: currentColor; stroke: none; }
.bomb-hearts i.shield { color: #7ad1ff; }
.bomb-hearts i.shield svg { fill: currentColor; }
.bomb { position: relative; width: min(62vw, 250px); aspect-ratio: 1; }
.bomb svg { width: 100%; height: 100%; overflow: visible; }
.bomb .body { fill: var(--game); }
.bomb .shine { fill: #fff; opacity: .25; }
.bomb .cap { fill: var(--panel-3); }
.bomb .fuse { stroke: var(--muted); }
.bomb .spark circle { fill: #ffd23f; }
.bomb .spark path { stroke: #ffd23f; }
.bomb-frag { position: absolute; left: 48%; top: 59%; transform: translate(-50%, -50%); font-family: var(--font-head); font-weight: 800; font-size: clamp(2.6rem, 15vw, 4rem); letter-spacing: .02em; color: var(--on-accent); }
@media (prefers-reduced-motion: no-preference) {
  .bomb .spark { transform-origin: 168px 30px; animation: bomb-spark .5s ease-in-out infinite alternate; }
  .bomb[data-heat="1"] { animation: bomb-wobble 1.1s ease-in-out infinite; }
  .bomb[data-heat="2"] { animation: bomb-wobble .6s ease-in-out infinite; }
  .bomb[data-heat="3"] { animation: bomb-wobble .28s ease-in-out infinite; }
  .bomb[data-heat="2"] .spark, .bomb[data-heat="3"] .spark { animation-duration: .18s; }
  .bomb-form.shake { animation: bomb-shake .35s ease; }
  .bomb-typing.bad { animation: bomb-shake .35s ease; color: var(--accent); }
}
@keyframes bomb-spark { from { transform: scale(.8) rotate(0deg); } to { transform: scale(1.15) rotate(20deg); } }
@keyframes bomb-wobble { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2.5deg) scale(1.02); } }
@keyframes bomb-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.bomb-typing { min-height: 2.2rem; margin: 6px 0 0; font-family: var(--font-head); font-weight: 700; font-size: 1.8rem; letter-spacing: .02em; }
.bomb-veto-note { margin: 6px 0 0; color: var(--accent); font-weight: 650; }
.bomb-form { margin-top: 14px; }
.bomb-form:not(.mine) .input { opacity: .55; }
.bomb-error { min-height: 1.3em; }
.bomb-words { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.bomb-words li { display: flex; align-items: baseline; gap: 6px; padding: 6px 10px; border-radius: 10px; background: var(--panel); }
.bomb-words li.new { background: var(--panel-2); box-shadow: inset 0 0 0 1.5px var(--game); }
.bomb-words b { font-weight: 700; }
.bomb-words small { color: var(--muted); font-size: .75rem; }
.bomb-stage.tv { max-width: 1400px; width: 100%; margin: 0 auto; }
.bomb-stage.tv .bomb-typing { font-size: 3.4rem; min-height: 4rem; }
.bomb-stage.tv .bomb-words { justify-content: center; }
.bomb-stage.tv .bomb-words li { font-size: 1.3rem; padding: .5rem 1rem; }
.bomb-stage.tv .bomb-hearts i svg { width: 20px; height: 20px; }

/* Bomba: krąg graczy, bomba w rękach trzymającego, kawałek słowa na środku (js/bomb.js) */
.bm-ring { position: relative; isolation: isolate; width: 100%; aspect-ratio: 16 / 9; margin-top: 8px; overflow: hidden; border-radius: 18px; background: #1d1a25; container-type: size; }
.bm-ring.mini { aspect-ratio: 1 / 1.02; }
html.tv .bm-ring { width: min(100%, calc((100dvh - 12rem) * 16 / 9)); margin: .4rem auto 0; }
.bm-floor { position: absolute; left: 50%; top: 58%; width: 82cqw; height: 62cqh; border-radius: 50%; background: color-mix(in srgb, var(--game) 12%, #2a2633); border: .5cqw solid #3a3545; transform: translate(-50%, -50%); }
.bm-ring.mini .bm-floor { top: 57%; width: 80cqw; height: 64cqh; }
.bm-ring[data-heat="2"] .bm-floor { background: color-mix(in srgb, #ff5d6c 14%, #2a2633); }
.bm-ring[data-heat="3"] .bm-floor { background: color-mix(in srgb, #ff5d6c 24%, #2a2633); }
.bm-center { position: absolute; left: 50%; top: 48%; z-index: 2; display: flex; flex-direction: column; align-items: center; max-width: 52cqw; text-align: center; transform: translate(-50%, -50%); }
.bm-frag { padding: 1cqh 2.4cqw; border-radius: 1.2cqw; background: #faf6ee; border: .5cqw solid #16141c; color: #16141c; font: 700 7cqw/1 var(--font-head); letter-spacing: .04em; box-shadow: 0 1cqh 0 rgba(0, 0, 0, .35); transform: rotate(-3deg); }
.bm-frag.dim { opacity: .5; }
.bm-lead { margin: 2.4cqh 0 0; font: 700 1.9cqw/1.2 var(--font-head); }
.bm-lead.mine { color: var(--game); }
.bm-was { margin: .6cqh 0 0; color: var(--muted); font-size: 1.3cqw; font-weight: 600; }
.bm-center .bomb-typing { min-height: 0; margin: 1cqh 0 0; font-size: 3cqw; }
.bm-center .bomb-veto-note { font-size: 1.4cqw; }
.bm-ring.mini .bm-center { max-width: 56cqw; }
.bm-ring.mini .bm-frag { font-size: 13cqw; padding: 1.2cqh 4cqw; border-radius: 3cqw; }
.bm-ring.mini .bm-lead { font-size: 4cqw; }
.bm-ring.mini .bm-was { font-size: 3cqw; }
.bm-ring.mini .bomb-typing { font-size: 6cqw; }
.bm-ring.mini .bomb-veto-note { font-size: 3.4cqw; }
.bm-seat { position: absolute; display: flex; flex-direction: column; align-items: center; width: 8.4cqw; transform: translate(-50%, -100%); }
.bm-ring.mini .bm-seat { width: 13.5cqw; }
.bm-seat .fig { width: 100%; }
.bm-seat.dead .fig-svg { filter: grayscale(1); opacity: .45; }
.bm-seat.away .fig-svg { opacity: .4; }
.bm-seat .bomb-hearts { margin-bottom: .3cqh; }
.bm-seat .bomb-hearts i svg { width: max(1.1cqw, 10px); height: max(1.1cqw, 10px); }
.bm-ring.mini .bm-seat .bomb-hearts i svg { width: 2.6cqw; height: 2.6cqw; }
.bm-nm { max-width: 150%; margin-top: -.4cqh; padding: .1cqh .6cqw; border-radius: .5cqw; background: #16141c; color: var(--text); font: 700 1.1cqw/1.3 var(--font-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; z-index: 2; }
.bm-ring.mini .bm-nm { font-size: 2.6cqw; padding: .1cqh 1.2cqw; border-radius: 1.2cqw; }
.bm-seat.holder .bm-nm { background: var(--game); color: var(--on-accent); }
.bm-held { position: absolute; z-index: 90; width: 7.6cqw; transform: translate(-50%, -50%); pointer-events: none; }
.bm-ring.mini .bm-held { width: 14cqw; }
.bm-held .bomb { width: 100%; }
.bm-held .bomb-frag { display: none; }
.bm-bang { position: absolute; z-index: 95; display: grid; place-items: center; width: 17cqw; transform: translate(-50%, -50%); animation: bm-bang .55s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes bm-bang { from { transform: translate(-50%, -50%) scale(.2) rotate(-25deg); opacity: 0; } }
.bm-ring.mini .bm-bang { width: 34cqw; }
.bm-bang svg { grid-area: 1 / 1; width: 100%; }
.bm-bang b { grid-area: 1 / 1; color: #16141c; font: 700 2.4cqw var(--font-head); transform: rotate(-8deg); }
.bm-ring.mini .bm-bang b { font-size: 5cqw; }
.bm-bang.shield svg polygon:first-child { fill: #7ad1ff; }
.bm-seat.boomed .fig-svg { filter: brightness(.55) saturate(.6); }
.bm-ring.shake { animation: tb-shake .5s ease-in-out; }
.bomb-stage.tv .bomb-words { margin-top: .8rem; }

/* ---------- Koło fortuny ---------- */
.kw { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.kw-top { display: flex; align-items: center; gap: 10px; }
.kw-top .countdown { margin-left: auto; color: var(--muted); }
.kw-cat { padding: 3px 10px; border-radius: 8px; background: var(--game); color: var(--on-accent); font-weight: 700; font-size: .85rem; }
.kw-board { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; padding: 14px 10px; border-radius: 16px; background: var(--panel); }
.kw-word { display: flex; gap: 3px; }
.kw-tile { display: grid; place-items: center; width: clamp(20px, 7vw, 30px); height: clamp(28px, 9.5vw, 40px); border-radius: 6px; background: var(--panel-3); font-style: normal; font-family: var(--font-head); font-weight: 700; font-size: clamp(1rem, 5vw, 1.4rem); color: var(--bg); }
.kw-tile.open { background: var(--text); }
.kw-tile.punct { background: transparent; color: var(--text); width: auto; min-width: 8px; }
.kw-used { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 1.2rem; font-size: .8rem; }
.kw-used .label { margin-right: 4px; }
.kw-used b { padding: 1px 6px; border-radius: 5px; background: var(--panel-2); color: var(--muted); }
.kw-mid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: center; }
.kw.final .kw-mid { grid-template-columns: 1fr; }
.kw-wheel { position: relative; width: 100%; aspect-ratio: 1; }
.kw-wheel canvas { width: 100%; height: 100%; display: block; }
.kw-pointer { position: absolute; left: 50%; top: -2%; width: 0; height: 0; border-left: 11px solid transparent; border-right: 11px solid transparent; border-top: 22px solid var(--text); transform: translateX(-50%); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); transform-origin: 50% 0; transition: transform .08s; }
.kw-pointer.kick { transform: translateX(-50%) rotate(-14deg); transition: none; }
.kw-status { margin: 0; min-height: 2.6em; text-align: center; font-weight: 650; }
.kw-typing { margin: 0; min-height: 1.4em; text-align: center; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--game); }
.kw-dock { display: flex; flex-direction: column; gap: 10px; }
.kw-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.kw-spin { flex: 1 1 180px; }
.kw-vowels { flex: 1 1 200px; display: flex; flex-direction: column; gap: 4px; }
.kw-keys { display: flex; flex-wrap: wrap; gap: 5px; }
.kw-keys.cons { justify-content: center; }
.kw-key { min-width: 40px; height: 44px; padding: 0 8px; border: 0; border-radius: 9px; background: var(--panel-2); font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--text); }
.kw-key:hover:not(:disabled) { background: var(--panel-3); }
.kw-key.vowel { background: var(--panel-3); }
.kw-key:disabled { opacity: .25; }
.kw-solve { margin-top: 0; }
@media (prefers-reduced-motion: no-preference) {
  .kw-tile.flip { animation: kw-flip .6s ease both; }
  .kw.shake { animation: bomb-shake .4s ease; }
}
/* Kafelek czekający na swoją kolej (animation-delay) wygląda jak zakryty, obraca się w połowie i pokazuje literę. */
@keyframes kw-flip {
  0% { transform: rotateX(0); background: var(--panel-3); color: transparent; }
  50% { transform: rotateX(90deg); background: var(--game); color: transparent; }
  51% { color: var(--bg); }
  100% { transform: rotateX(0); }
}
.kw.tv { max-width: 1500px; width: 100%; margin: 0 auto; gap: 1.2rem; }
.kw.tv .kw-top { font-size: 1.3rem; }
.kw.tv .kw-top .countdown { font-size: 2.6rem; color: var(--text); }
.kw.tv .kw-cat { font-size: 1.4rem; padding: .3rem 1rem; }
.kw.tv .kw-board { gap: 1rem 2rem; padding: 2rem; }
.kw.tv .kw-word { gap: .4rem; }
.kw.tv .kw-tile { width: 3.6rem; height: 4.6rem; font-size: 2.8rem; border-radius: .6rem; }
.kw.tv .kw-status { font-size: 1.8rem; }
.kw.tv .kw-typing { font-size: 2.4rem; }
.kw.tv .kw-used { font-size: 1.1rem; }
.kw.tv .kw-pointer { border-left-width: 20px; border-right-width: 20px; border-top-width: 38px; }

/* Koło fortuny: plansza w ramce ze światełkami, koło na stojaku, zawodnicy na podestach (js/wheel.js) */
.kw-frame { position: relative; padding: 10px; border-radius: 20px; background: #2a2633; border: 3px solid #16141c; outline: 4px dotted #ffd25a; outline-offset: -9px; }
.kw-frame .kw-board { position: relative; z-index: 1; margin: 6px; background: #16141c; }
.kw-board .kw-tile { box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25); }
.kw-board .kw-tile.open { background: #faf6ee; box-shadow: inset 0 -3px 0 #d9d2e0; }
@media (prefers-reduced-motion: no-preference) { .kw-frame { animation: kw-bulbs 1.2s steps(2) infinite; } }
@keyframes kw-bulbs { 50% { outline-color: #ff8ab3; } }
.kw-wheel { z-index: 1; }
.kw-stand { position: absolute; left: 50%; bottom: -6%; z-index: -1; width: 30%; height: 20%; background: #3a3545; border: 3px solid #16141c; clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); transform: translateX(-50%); }
.kw-side { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.kw-pods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 6px; padding-top: 6px; }
.kw-pod { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.kw-pod-fig { width: 40px; margin-bottom: -10px; position: relative; z-index: 0; }
.kw-pod-fig .fig { width: 100%; }
.kw-desk { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; width: 100%; padding: 4px 4px 5px; border-radius: 8px 8px 3px 3px; background: var(--pc); border: 2px solid #16141c; clip-path: polygon(0 0, 100% 0, 94% 100%, 6% 100%); }
.kw-disp { min-width: 70%; padding: 1px 6px; border-radius: 5px; background: #16141c; color: #ffd25a; font: 700 .9rem/1.25 var(--font-head); text-align: center; font-variant-numeric: tabular-nums; }
.kw-disp.gain { color: var(--good); }
.kw-disp.miss { display: grid; place-items: center; color: var(--bad); }
.kw-nm { max-width: 100%; margin-top: 2px; color: #16141c; font: 700 .68rem/1.2 var(--font-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kw-sum { color: rgba(22, 20, 28, .65); font: 700 .62rem/1 var(--font-head); }
.kw-pod.out, .kw-pod.away { opacity: .45; }
.kw-pod.active .kw-desk { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px #ffd25a; clip-path: none; }
.kw-spot { position: absolute; left: 50%; bottom: 30%; z-index: -1; width: 130%; height: 170%; background: rgba(255, 236, 190, .1); clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%); transform: translateX(-50%); pointer-events: none; }
.kw.final .kw-pods { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
.kw.tv .kw-frame { padding: 1.2rem; border-radius: 1.6rem; outline-width: .5rem; outline-offset: -1rem; }
.kw.tv .kw-mid { grid-template-columns: minmax(0, 40vh) minmax(0, 1fr); gap: 3rem; justify-content: center; }
.kw.tv .kw-pods { grid-template-columns: repeat(auto-fit, minmax(7.5rem, 9.5rem)); justify-content: center; gap: 2rem 1rem; padding-top: 1rem; }
.kw.tv .kw-pod-fig { width: 5.2rem; margin-bottom: -1.2rem; }
.kw.tv .kw-desk { padding: .5rem .5rem .6rem; border-radius: .8rem .8rem .3rem .3rem; border-width: 3px; }
.kw.tv .kw-disp { font-size: 1.6rem; padding: .1rem .6rem; border-radius: .4rem; }
.kw.tv .kw-nm { font-size: 1.05rem; }
.kw.tv .kw-sum { font-size: .95rem; }

/* ---------- Plansza ---------- */
.pl-center { text-align: center; }
.pl-lead { font-size: clamp(1.4rem, 5.5vw, 1.8rem); }
.pl-lead.me { color: var(--game); }
.pl-board { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 4px; margin-top: 12px; }
.pl-cat { display: flex; align-items: center; justify-content: center; min-height: 54px; padding: 6px 3px; border-radius: 10px; background: var(--panel-2); text-align: center; }
.pl-cat span { font-size: clamp(.62rem, 2.6vw, .78rem); font-weight: 700; line-height: 1.15; overflow-wrap: break-word; hyphens: auto; min-width: 0; }
.pl-cell { display: grid; place-items: center; min-height: 48px; padding: 0; border: 0; border-radius: 10px; background: var(--game); color: var(--on-accent); font-family: var(--font-head); font-weight: 700; font-size: clamp(.82rem, 3.6vw, 1.1rem); font-variant-numeric: tabular-nums; }
.pl-cell.used { background: var(--panel); }
.pl-cell.cur { box-shadow: inset 0 0 0 2px var(--game); }
button.pl-cell { cursor: pointer; transition: transform .12s var(--ease); }
button.pl-cell:hover { transform: rotate(-4deg); }
button.pl-cell:active { transform: rotate(-4deg) scale(.94); }
.pl-q { margin-top: 12px; }
.pl-key { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--panel); box-shadow: inset 0 0 0 1.5px var(--panel-3); }
.pl-key strong { font-family: var(--font-head); font-size: 1.5rem; letter-spacing: -.02em; }
.pl-buzz { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: min(38vh, 300px); margin-top: 16px; border: 0; border-radius: 28px; background: var(--game); color: var(--on-accent); font-family: var(--font-head); font-size: clamp(1.7rem, 8vw, 2.5rem); font-weight: 700; letter-spacing: -.02em; touch-action: manipulation; user-select: none; -webkit-user-select: none; transition: transform .1s var(--ease), background .2s; }
.pl-buzz:disabled { background: var(--panel); color: var(--muted); cursor: default; }
.pl-buzz.hit { background: var(--text); color: var(--bg); transform: scale(.96) rotate(-1.5deg); }
.pl-tried { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; color: var(--muted); font-size: .9rem; font-weight: 600; }
.pl-who { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 22px; text-align: center; }
.pl-who p { margin: 0; font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; letter-spacing: -.02em; }
.pl-say { margin-top: 18px; padding: 22px 18px; border-radius: 20px; background: var(--game); color: var(--on-accent); text-align: center; transform: rotate(-1.2deg); }
.pl-say strong { font-family: var(--font-head); font-size: 2rem; letter-spacing: -.03em; }
.pl-say p { margin: 6px 0 0; font-weight: 600; opacity: .75; }
.pl-wager-tag { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 18px auto 12px; padding: 16px 26px; width: fit-content; max-width: 100%; border-radius: 16px; background: var(--game); color: var(--on-accent); transform: rotate(-3deg); text-align: center; }
.pl-wager-tag span { font-family: var(--font-head); font-size: clamp(1.8rem, 8vw, 2.4rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.pl-wager-tag small { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .65; }
.pl-stake { margin-top: 12px; }
.pl-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pl-attempts { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.pl-attempts li { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 12px; background: var(--panel); }
.pl-attempts .t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pl-attempts .t small { color: var(--muted); font-weight: 600; overflow-wrap: anywhere; }
.pl-attempts em { font-style: normal; font-family: var(--font-head); font-weight: 700; font-variant-numeric: tabular-nums; }
.pl-attempts li.ok em { color: var(--game); }
.pl-attempts li.bad em { color: var(--accent); }
.pl-attempts li em.zero { color: var(--muted); }
.pl-attempts .btn { min-height: 34px; padding: 0 12px; font-size: .82rem; }
html.tv .pl-tv { max-width: 92rem; margin: 0 auto; width: 100%; }
html.tv .pl-board { gap: .5rem; }
html.tv .pl-cat { min-height: 4rem; border-radius: 1rem; }
html.tv .pl-cat span { font-size: 1.15rem; text-transform: uppercase; letter-spacing: .03em; }
html.tv .pl-cell { min-height: 4.2rem; border-radius: 1rem; font-size: 2.3rem; }
html.tv .pl-q p { font-size: clamp(2.2rem, 3.6vw, 4rem); }
html.tv .pl-q { padding: 2rem 2.4rem; border-radius: 1.6rem; }
html.tv .pl-tv.pl-stage { min-height: calc(100vh - 8rem); display: flex; flex-direction: column; justify-content: center; }
html.tv .pl-tv.pl-stage .pl-q { padding: 3.4rem 3rem; }
html.tv .pl-tv .tv-lead { font-size: 1.8rem; margin: 2rem 0 0; }
html.tv .pl-tv .who-head .label, html.tv .pl-tv .who-head .countdown { font-size: 1.3rem; }
html.tv .pl-tried { font-size: 1.3rem; justify-content: center; }
html.tv .pl-who p { font-size: 2.4rem; }
html.tv .pl-wager-tag span { font-size: 3.6rem; }
html.tv .pl-attempts { max-width: 48rem; margin-inline: auto; }
html.tv .pl-attempts li { font-size: 1.2rem; }

/* Plansza: ściana ekranów, pytanie wyjeżdża jak duży ekran, zawodnicy za podestami z lampkami (js/plansza.js) */
.pl-board { padding: 8px; border-radius: 14px; background: #10183a; border: 3px solid #16141c; box-shadow: inset 0 0 0 4px #2a3566; }
.pl-cat { background: #1c2a6b; color: #faf6ee; border: 2px solid #0b1030; text-transform: uppercase; letter-spacing: .03em; }
.pl-cell { background: #22348a; color: #ffd25a; border: 2px solid #0b1030; box-shadow: inset 0 -5px 0 #18266a; font-family: var(--font-head); }
.pl-cell.used { background: #0b1030; box-shadow: none; }
.pl-cell.cur { background: #ffd25a; box-shadow: none; animation: pl-flash .8s steps(2) 3; }
@keyframes pl-flash { 50% { background: #22348a; } }
button.pl-cell:hover { transform: none; background: #2c42a8; }
button.pl-cell:active { transform: scale(.95); }
.pl-q { background: #22348a; color: #faf6ee; border: 4px solid #0b1030; box-shadow: inset 0 0 0 4px #2a3566, 0 8px 0 rgba(0, 0, 0, .35); }
.pl-q p { color: #faf6ee; }
.pl-q.zoom { animation: pl-zoom .55s cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes pl-zoom { from { opacity: 0; transform: scale(.25); } }
@media (prefers-reduced-motion: reduce) { .pl-q.zoom, .pl-cell.cur { animation: none; } }
.pl-scores { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: nowrap; justify-content: center; align-items: flex-end; gap: 14px 6px; }
.pl-scores li { position: relative; display: flex; flex-direction: column; align-items: center; flex: 0 1 92px; min-width: 0; }
.pl-scores li .fig { width: 58%; margin-bottom: -8px; position: relative; z-index: 0; }
.pl-desk { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; width: 100%; padding: 8px 4px 5px; background: var(--pc); border: 2px solid #16141c; border-radius: 8px 8px 3px 3px; clip-path: polygon(0 0, 100% 0, 94% 100%, 6% 100%); }
.pl-lamp { position: absolute; left: 50%; top: -1px; width: 34%; height: 5px; border-radius: 0 0 4px 4px; background: #3a3545; transform: translateX(-50%); }
.pl-desk b { min-width: 76%; padding: 1px 6px; border-radius: 5px; background: #16141c; color: #ffd25a; font: 700 .9rem/1.3 var(--font-head); text-align: center; font-variant-numeric: tabular-nums; }
.pl-desk b.neg { color: #ff5d6c; }
.pl-desk .rn { max-width: 100%; margin-top: 2px; color: #16141c; font: 700 .68rem/1.2 var(--font-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-scores li.on .pl-lamp { background: #ffd25a; box-shadow: 0 0 0 3px rgba(255, 210, 90, .35); }
.pl-scores li.on::before { content: ''; position: absolute; left: 50%; bottom: 30%; z-index: -1; width: 150%; height: 260%; background: rgba(255, 236, 190, .12); clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%); transform: translateX(-50%); }
.pl-scores li.off .pl-lamp { background: #ff3d5f; }
.pl-scores li.off .fig-svg, .pl-scores li.away .fig-svg { opacity: .5; }
html.tv .pl-scores { gap: 1.6rem 1rem; margin-top: 1.4rem; }
html.tv .pl-scores li { flex-basis: 9rem; }
html.tv .pl-desk { padding: .7rem .4rem .5rem; border-width: 3px; }
html.tv .pl-desk b { font-size: 1.6rem; }
html.tv .pl-desk .rn { font-size: 1.05rem; }
html.tv .pl-lamp { height: .5rem; }
html.tv .pl-board { padding: .8rem; border-radius: 1.2rem; }
/* Przycisk zgłaszania na telefonie: wielki czerwony buzzer */
.pl-buzz { position: relative; flex-direction: column; width: min(70vw, 280px); min-height: 0; aspect-ratio: 1; margin: 22px auto 0; border: 0; border-radius: 50%; background: #ff3d5f; color: #fff; box-shadow: inset -18px -14px 0 #c8203f, 0 0 0 8px #3a3545, 0 0 0 11px #16141c, 0 14px 0 #16141c; font: 700 1.6rem/1.15 var(--font-head); letter-spacing: .03em; text-transform: uppercase; text-align: center; padding: 0 30px; }
.pl-buzz::after { content: ''; position: absolute; left: 22%; top: 15%; width: 20%; height: 14%; border-radius: 50%; background: #fff; opacity: .4; transform: rotate(-30deg); }
.pl-buzz:disabled { background: #6f6a7a; box-shadow: inset -18px -14px 0 #57525f, 0 0 0 8px #3a3545, 0 0 0 11px #16141c, 0 14px 0 #16141c; color: #d9d2e0; font-size: 1.05rem; }
.pl-buzz.hit { background: #ffd25a; color: #16141c; transform: translateY(10px); box-shadow: inset -18px -14px 0 #e0a92a, 0 0 0 8px #3a3545, 0 0 0 11px #16141c, 0 4px 0 #16141c; }

/* ---------- Skala ----------
   Tarcza w SVG: półkole (viewBox 400×214, oś w 200,198), wachlarz celu w kolorze gry, wskazówki obracane
   przez --a wokół osi. Odsłonięcie: wskazówki wjeżdżają po kolei, potem rozkłada się cel. */
.sk-title { margin-top: 14px; }
.sk-lead { margin-top: 14px; }
.sk-dialbox { width: 100%; max-width: 480px; margin: 18px auto 0; }
.sk-dial { display: block; width: 100%; height: auto; overflow: visible; }
.sk-face { fill: var(--panel-2); }
.sk-tick { stroke: var(--panel-3); stroke-width: 2.5; stroke-linecap: round; }
.sk-tick.long { stroke: var(--dim); stroke-width: 3.5; }
.sk-zone { fill: var(--game); stroke: var(--panel-2); stroke-width: 1.5; stroke-linejoin: round; }
.sk-zone.z1 { fill-opacity: .6; }
.sk-zone.z2 { fill-opacity: .3; }
.sk-zl { font: 700 15px var(--font-head); text-anchor: middle; dominant-baseline: central; fill: var(--text); stroke: var(--bg); stroke-width: 4; stroke-linejoin: round; paint-order: stroke; pointer-events: none; }
.sk-zl.z0 { font-size: 17px; }
.sk-cover rect { fill: var(--game); }
.sk-cover path { stroke: var(--on-accent); }
.sk-cover circle { fill: var(--on-accent); }
.sk-needle { transform-box: view-box; transform-origin: 200px 198px; transform: rotate(var(--a)); }
.sk-needle line { stroke: var(--pc); stroke-width: 6; stroke-linecap: round; }
.sk-needle line.edge { stroke: var(--bg); stroke-width: 10; }
.sk-needle rect { fill: var(--pc); stroke: var(--bg); stroke-width: 3; paint-order: stroke; }
.sk-needle.mine line:not(.edge) { stroke-width: 7; }
.sk-pivot { fill: var(--text); stroke: var(--bg); stroke-width: 3; paint-order: stroke; }
.sk-dial.live { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.sk-dial.live.drag { cursor: grabbing; }
.sk-dial.live:focus { outline: none; }
.sk-dial.live:focus-visible { outline: 2px solid var(--game); outline-offset: 8px; border-radius: 14px; }
.sk-dial.live .sk-face { stroke: var(--game); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; }
.sk-dial.anim .sk-needle { animation: sk-swing 1s cubic-bezier(.3, 1.35, .5, 1) both; animation-delay: var(--d); }
.sk-dial.anim .sk-target { transform-box: view-box; transform-origin: 200px 198px; animation: sk-open .8s cubic-bezier(.3, 1.4, .5, 1) both; animation-delay: var(--td); }
@keyframes sk-swing { from { transform: rotate(-90deg); opacity: 0; } 25% { opacity: 1; } }
@keyframes sk-open { from { transform: scale(.1) rotate(-25deg); opacity: 0; } 40% { opacity: 1; } }
.sk-stage.anim .sk-gains li { animation: sk-pop .45s cubic-bezier(.3, 1.3, .5, 1) both; animation-delay: calc(var(--td) + var(--i) * 80ms); }
@keyframes sk-pop { from { opacity: 0; transform: translateY(10px) scale(.97); } }
@media (prefers-reduced-motion: reduce) {
  .sk-dial.anim .sk-needle, .sk-dial.anim .sk-target, .sk-stage.anim .sk-gains li { animation: none; }
}
.sk-ends { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-top: 10px; }
.sk-ends span { display: inline-flex; align-items: center; gap: 6px; max-width: 49%; padding: 9px 12px; border-radius: 12px; background: var(--panel); font-family: var(--font-head); font-weight: 700; font-size: .98rem; line-height: 1.15; overflow-wrap: anywhere; }
.sk-ends .r { text-align: right; }
.sk-ends .ic { flex: none; color: var(--game); }
.sk-ends .r .ic { transform: rotate(180deg); }
.sk-clue { position: relative; margin-top: 16px; padding: 14px 18px 18px; border-radius: 18px; background: var(--text); color: var(--bg); transform: rotate(-1.2deg); }
.sk-clue::after { content: ''; position: absolute; top: -9px; right: 20px; width: 24px; height: 24px; border-radius: 6px; background: var(--game); transform: rotate(16deg); }
.sk-clue .label { display: flex; align-items: center; gap: 8px; color: var(--bg); opacity: .62; }
.sk-clue strong { display: block; margin-top: 6px; font-family: var(--font-head); font-size: clamp(1.6rem, 7vw, 2.3rem); line-height: 1.08; letter-spacing: -.02em; overflow-wrap: anywhere; }
.sk-clue + .sub, .sk-clue + .sk-dialbox { margin-top: 20px; }
.sk-gains { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.sk-gains li { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 12px; background: var(--panel); font-weight: 600; }
.sk-gains li.me { box-shadow: inset 0 0 0 1.5px var(--panel-3); }
.sk-gains li.giver { background: var(--panel-2); }
.sk-gains em { margin-left: auto; font-style: normal; font-size: .85rem; color: var(--muted); }
.sk-gains b { min-width: 2.2em; text-align: right; font-family: var(--font-head); font-size: 1.1rem; color: var(--game); }
.sk-gains li.miss b { color: var(--dim); }
.sk-awards { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sk-awards li { position: relative; padding: 10px 14px 10px 34px; border-radius: 12px; background: var(--panel); font-weight: 600; }
.sk-awards li::before { content: ''; position: absolute; left: 13px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 3px; background: var(--game); transform: rotate(16deg); }
.sk-hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sk-hist li { display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border-radius: 14px; background: var(--panel); }
.sk-hist .sk-dial { flex: none; width: 92px; }
.sk-dial.small .sk-face { fill: var(--panel-3); }
.sk-dial.small .sk-needle line { stroke-width: 9; }
.sk-dial.small .sk-needle line.edge { stroke-width: 15; stroke: var(--panel); }
.sk-dial.small .sk-needle rect { stroke: var(--panel); }
.sk-dial.small .sk-zone { stroke: var(--panel-3); stroke-width: 3; }
.sk-dial.small .sk-pivot { stroke: var(--panel); stroke-width: 6; }
.sk-hist .t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sk-hist .ends { color: var(--muted); font-size: .8rem; font-weight: 650; }
.sk-hist .ends i { font-style: normal; color: var(--dim); }
.sk-hist strong { font-family: var(--font-head); font-size: 1.12rem; line-height: 1.2; overflow-wrap: anywhere; }
.sk-hist strong .none { color: var(--dim); font-weight: 600; }
.sk-hist small { color: var(--muted); font-weight: 600; }
@media (min-width: 760px) {
  .sk-hist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* TV: informacje po lewej, wielka tarcza po prawej. */
html.tv .sk-tv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: center; gap: 4rem; width: 100%; max-width: 112rem; min-height: calc(100vh - 8rem); margin: 0 auto; }
html.tv .sk-tv .sk-dialbox { max-width: none; margin: 0; }
html.tv .sk-tv .who-head { font-size: 1.3rem; }
html.tv .sk-tv .who-head .countdown { font-size: clamp(3rem, 6vw, 6rem); line-height: 1; color: var(--text); }
html.tv .sk-tv .sk-title { font-size: clamp(2.4rem, 4vw, 4.4rem); line-height: 1.05; }
html.tv .sk-tv .sub { font-size: 1.3rem; }
html.tv .sk-tv .sk-clue { padding: 1.6rem 2rem 2rem; border-radius: 1.6rem; }
html.tv .sk-tv .sk-clue::after { width: 2.4rem; height: 2.4rem; top: -1rem; border-radius: .6rem; }
html.tv .sk-tv .sk-clue .label { font-size: 1.1rem; }
html.tv .sk-tv .sk-clue strong { font-size: clamp(3rem, 5vw, 5.6rem); }
html.tv .sk-ends span { font-size: 1.7rem; padding: .8rem 1.3rem; border-radius: 1rem; }
html.tv .sk-ends .ic { width: 1.6rem; height: 1.6rem; }
html.tv .sk-tv .vote-status { align-items: flex-start; }
html.tv .sk-tv .vote-status .roster { justify-content: flex-start; }
html.tv .sk-tv .sk-clue + .sub { margin-top: 1.8rem; }
html.tv .sk-gains li { font-size: 1.3rem; padding: .6rem 1.2rem .6rem .6rem; border-radius: 1rem; }
html.tv .sk-gains .chip-av.xs { width: 2.2rem; height: 2.2rem; font-size: 1.1rem; }
html.tv .sk-gains b { font-size: 1.7rem; }
html.tv .sk-gains em { font-size: 1.05rem; }
html.tv .sk-hist .sk-dial { width: 8rem; }
@media (max-width: 900px) {
  html.tv .sk-tv { grid-template-columns: 1fr; gap: 2rem; }
}

/* Skala: tarcza w obudowie teleturnieju, klapa nad celem, rząd zgadujących na TV (js/skala.js) */
.sk-dialbox { position: relative; padding: 14px 14px 12px; border-radius: 22px 22px 16px 16px; background: #2a2633; border: 3px solid #16141c; box-shadow: inset 0 0 0 5px #3a3545, 0 8px 0 rgba(0, 0, 0, .35); }
.sk-dialbox::before, .sk-dialbox::after { content: ''; position: absolute; top: 12px; width: 10px; height: 10px; border-radius: 50%; background: #8f8a9b; border: 2px solid #16141c; }
.sk-dialbox::before { left: 12px; }
.sk-dialbox::after { right: 12px; }
.sk-face { fill: #faf6ee; }
.sk-dial .sk-tick { stroke: #8f8a9b; }
.sk-shutter path { fill: var(--game); stroke: #16141c; stroke-width: 3; transform-box: view-box; transition: transform .7s var(--ease); }
.sk-shutter path.l { transform-origin: 24px 198px; }
.sk-shutter path.r { transform-origin: 376px 198px; }
.sk-shutter text { fill: #16141c; font: 700 64px var(--font-head); text-anchor: middle; }
.sk-shutter.open path.l { animation: sk-open-l .8s cubic-bezier(.5, 0, .3, 1) calc(var(--td) - 500ms) both; }
.sk-shutter.open path.r { animation: sk-open-r .8s cubic-bezier(.5, 0, .3, 1) calc(var(--td) - 500ms) both; }
.sk-shutter.open text { animation: sk-fade .3s ease calc(var(--td) - 500ms) both; }
@keyframes sk-open-l { 70% { opacity: 1; } to { transform: rotate(-100deg); opacity: 0; } }
@keyframes sk-open-r { 70% { opacity: 1; } to { transform: rotate(100deg); opacity: 0; } }
@keyframes sk-fade { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sk-shutter.open { display: none; } }
.sk-tv-dial { display: flex; flex-direction: column; gap: 1.4rem; min-width: 0; }
.sk-crowd { display: flex; justify-content: center; align-items: flex-end; gap: .8rem; flex-wrap: wrap; }
.sk-fan { position: relative; display: flex; flex-direction: column; align-items: center; width: 5.4rem; }
.sk-fan .fig { width: 4.2rem; }
.sk-chip { width: 2.4rem; height: .55rem; margin-top: -.2rem; border-radius: .3rem; background: var(--pc); border: 2px solid #16141c; position: relative; z-index: 2; }
.sk-fan span { max-width: 100%; margin-top: .2rem; font: 700 .95rem var(--font-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-plus { position: absolute; top: -1.6rem; z-index: 3; padding: .1rem .6rem; border-radius: .5rem; background: var(--good); color: var(--bg); font: 700 1.2rem var(--font-head); animation: scn-pop-in .4s var(--ease) calc(var(--td) + var(--i) * 120ms) both; }
.sk-plus.zero { background: var(--panel-3); color: var(--muted); }

/* ---------- Czółko ----------
   Twoja karta: zakryta karteczka w kolorze gry ze znakiem zapytania. Postacie innych: kremowe karteczki
   lekko przekrzywione (--r), z paskiem w kolorze gracza; ta gracza, który pyta, jest obrysowana. */
.cz-cat { margin: 14px 0 0; color: var(--muted); font-weight: 650; }
.cz-res { margin: 6px 0 0; font-weight: 700; color: var(--muted); }
.cz-res.ok { color: var(--game); }
.cz-turn { margin-top: 20px; padding: 12px 14px; border-radius: 16px; background: var(--panel); }
.cz-turn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
.cz-turn-row strong { flex: 1 1 auto; min-width: 0; font-family: var(--font-head); font-size: 1.35rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cz-turn-row .countdown { font-family: var(--font-head); font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.cz-hint { margin: 8px 2px 0; }
.cz-myturn { margin-top: 20px; padding: 16px; border-radius: 18px; background: var(--panel); box-shadow: inset 0 0 0 2px var(--game); }
.cz-myturn-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.cz-myturn-head strong { font-family: var(--font-head); font-size: 1.5rem; color: var(--game); }
.cz-myturn-head .countdown { font-family: var(--font-head); font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.cz-myturn p { margin: 6px 0 12px; color: var(--muted); }
.cz-myturn .guess-form { margin-bottom: 8px; }
.cz-feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.cz-feed li { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 12px; background: var(--panel); }
.cz-feed .t { flex: 1; min-width: 0; display: flex; flex-direction: column; font-weight: 650; overflow-wrap: anywhere; }
.cz-feed .t small { color: var(--muted); font-weight: 600; font-size: .75rem; }
.cz-feed i { display: grid; place-items: center; color: var(--dim); }
.cz-feed li.ok i { color: var(--good); }
.cz-feed .btn { min-height: 34px; padding: 0 12px; font-size: .82rem; }
.cz-bottom { justify-content: center; gap: 22px; flex-wrap: wrap; }

/* ---------- Myślimy tak samo ----------
   Stos = kremowa karta z odpowiedzią, pod nią płaskie karty (box-shadow bez rozmycia), liczba osób
   na przekrzywionym kafelku w kolorze gry. Największy stos na całą szerokość. */
.ms-prompt { margin: 14px 0 0; padding: 16px 18px 20px; border-radius: 18px; background: var(--game); color: var(--on-accent); }
.ms-prompt .label { color: var(--on-accent); opacity: .6; }
.ms-prompt p { margin: 4px 0 0; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.6rem, 7vw, 2.2rem); line-height: 1.1; letter-spacing: -.02em; }
.ms-prompt.small { padding: 10px 14px 12px; }
.ms-prompt.small p { font-size: 1.2rem; }
.ms-lead { margin-top: 14px; }
.ms-mine { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 10px 14px; border-radius: 14px; background: var(--panel); font-weight: 650; }
.ms-mine span { min-width: 0; overflow-wrap: anywhere; }
.ms-mine b { flex: none; font-family: var(--font-head); color: var(--muted); }
.ms-mine.hit { box-shadow: inset 0 0 0 2px var(--game); }
.ms-mine.hit b { font-size: 1.3rem; color: var(--game); }
.ms-stacks { list-style: none; margin: 22px 0 0; padding: 0 12px 0 8px; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 26px 22px; }
.ms-stack { display: flex; flex-direction: column; min-width: 0; }
.ms-stack.top { grid-column: 1 / -1; }
.ms-card { position: relative; display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 16px 16px 14px; border: 0; border-radius: 16px; background: var(--text); color: var(--bg); text-align: left; font: inherit; }
button.ms-card { cursor: pointer; }
.ms-stack.multi .ms-card { box-shadow: 6px 6px 0 -1px var(--panel-3), 11px 11px 0 -2px var(--panel-2); }
.ms-stack.tall .ms-card { box-shadow: 6px 6px 0 -1px var(--panel-3), 11px 11px 0 -2px var(--panel-2), 16px 16px 0 -3px var(--panel); }
.ms-card.sel { outline: 3px solid var(--game); outline-offset: 4px; }
.ms-count { position: absolute; top: -12px; left: -10px; display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 9px; background: var(--game); color: var(--on-accent); font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; transform: rotate(16deg); box-shadow: 0 0 0 3px var(--bg); }
.ms-card strong { font-family: var(--font-head); font-size: 1.4rem; line-height: 1.1; letter-spacing: -.01em; overflow-wrap: anywhere; padding-right: 36px; }
.ms-stack.top strong { font-size: clamp(1.8rem, 8vw, 2.6rem); }
.ms-card small { color: #6f6a7a; font-weight: 650; font-size: .8rem; overflow-wrap: anywhere; }
.ms-pts { position: absolute; right: 14px; top: 14px; font-family: var(--font-head); font-size: 1.15rem; color: var(--bg); }
.ms-people { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 14px; }
.ms-person { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px 3px 3px; border: 0; border-radius: 9px; background: var(--panel); color: var(--text); font: inherit; font-size: .8rem; font-weight: 650; }
.ms-person.me { box-shadow: inset 0 0 0 1.5px var(--game); }
button.ms-person { cursor: pointer; }
button.ms-person .ic { color: var(--dim); }
.ms-stacks.singles { margin-top: 8px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 18px 14px; }
.ms-stacks.singles .ms-card { background: var(--panel); color: var(--text); }
.ms-stacks.singles .ms-card strong { font-size: 1.1rem; }
.ms-stacks.singles .ms-count { background: var(--panel-3); color: var(--muted); min-width: 28px; height: 28px; font-size: .95rem; }
.ms-stacks.singles .ms-pts { color: var(--dim); }
.ms-stacks.singles .ms-card small { color: var(--muted); }
.ms-stack.mine .ms-card { outline: 2px dashed var(--game); outline-offset: 4px; }
.ms-stack.mine .ms-card.sel { outline-style: solid; }
.ms-none, .ms-missing { margin-top: 14px; }
.ms-help { margin-top: 18px; text-align: center; }
.ms-match.anim .ms-stack { animation: ms-drop .55s cubic-bezier(.3, 1.35, .5, 1) both; animation-delay: calc(var(--i) * 90ms + 120ms); }
@keyframes ms-drop { from { opacity: 0; transform: translateY(-22px) rotate(-5deg) scale(.92); } }
@media (prefers-reduced-motion: reduce) {
  .ms-match.anim .ms-stack { animation: none; }
}
.ms-hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ms-hist li { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 12px; background: var(--panel); }
.ms-hist .q { color: var(--muted); font-size: .9rem; }
.ms-hist .a { display: flex; align-items: center; gap: 12px; }
.ms-hist .a b { font-family: var(--font-head); font-size: 1.15rem; overflow-wrap: anywhere; }
.ms-hist .a.none { color: var(--dim); }
.ms-hist .ms-count { position: static; min-width: 28px; height: 28px; font-size: .95rem; box-shadow: none; }
/* TV */
.ms-tv { width: 100%; max-width: 1400px; margin: 0 auto; }
html.tv .ms-tv .who-head { font-size: 1.3rem; }
html.tv .ms-tv .who-head .countdown { font-size: clamp(3rem, 6vw, 6rem); line-height: 1; color: var(--text); }
html.tv .ms-tv .ms-prompt { padding: 2rem 2.4rem; border-radius: 1.6rem; }
html.tv .ms-tv .ms-prompt .label { font-size: 1.1rem; }
html.tv .ms-tv .ms-prompt p { font-size: clamp(2.6rem, 5vw, 5rem); }
html.tv .ms-tv .ms-prompt.small p { font-size: 2.2rem; }
html.tv .ms-tv .tv-lead { margin: 1.4rem 0 2rem; }
html.tv .ms-tv .ms-stacks { grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: 2.4rem 2rem; }
html.tv .ms-tv .ms-stack.top { grid-column: span 2; }
html.tv .ms-tv .ms-card { padding: 1.4rem 1.4rem 1.2rem 3rem; border-radius: 1.2rem; }
html.tv .ms-tv .ms-count { top: -1rem; left: -1rem; }
html.tv .ms-tv .ms-card strong { font-size: 2.2rem; }
html.tv .ms-tv .ms-stack.top strong { font-size: 3.4rem; }
html.tv .ms-tv .ms-count { min-width: 3rem; height: 3rem; font-size: 1.6rem; border-radius: .8rem; }
html.tv .ms-tv .ms-pts { font-size: 1.6rem; }
html.tv .ms-tv .ms-person { font-size: 1.05rem; }
html.tv .ms-tv .ms-stacks.singles { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
html.tv .ms-tv .ms-stacks.singles .ms-card strong { font-size: 1.5rem; }
html.tv .ms-tv .actions { max-width: 640px; margin-left: auto; margin-right: auto; }

/* Unikat: karty odpowiedzi od najcenniejszej, punkty (rzadkość z bazy) na przekrzywionym kafelku. */
.uk-mine { margin-top: 14px; }
.uk-suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.uk-suggest:empty { display: none; }
.uk-suggest .label { margin-right: 2px; }
.uk-suggest .chip { color: var(--text); }
.uk-mine ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.uk-mine li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 4px 4px 14px; border-radius: 12px; background: var(--panel); }
.uk-mine strong { min-width: 0; overflow-wrap: anywhere; font-family: var(--font-head); font-size: 1.15rem; }
.uk-mine .icon-btn { flex: none; color: var(--muted); }
.uk-rows { list-style: none; margin: 22px 0 0; padding: 0 0 0 8px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px 18px; }
.uk-row { display: flex; flex-direction: column; min-width: 0; }
.uk-card { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px 14px 14px; border-radius: 16px; background: var(--panel); }
.uk-tier { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; background: var(--panel-3); color: var(--text); font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; transform: rotate(16deg); }
.uk-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.uk-name strong { font-family: var(--font-head); font-size: 1.25rem; line-height: 1.1; overflow-wrap: anywhere; }
.uk-name small { color: var(--muted); font-weight: 650; font-size: .8rem; overflow-wrap: anywhere; }
.uk-row.rare .uk-card { background: var(--game); color: var(--on-accent); }
.uk-row.rare .uk-tier { background: var(--bg); color: var(--game); }
.uk-row.rare .uk-name small { color: var(--on-accent); opacity: .65; }
.uk-row.extra .uk-card { background: var(--text); color: var(--bg); }
.uk-row.extra .uk-tier { background: var(--bg); color: var(--text); }
.uk-row.extra .uk-name small { color: #6f6a7a; }
.uk-row.out .uk-card { background: transparent; box-shadow: inset 0 0 0 2px var(--panel-2); }
.uk-row.out .uk-tier { background: var(--panel); color: var(--dim); }
.uk-row.out .uk-name strong { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--muted); }
.uk-row.mine .uk-card { outline: 2px dashed var(--game); outline-offset: 4px; }
.uk-row .ms-people { margin-top: 10px; }
.uk-extra, .uk-missed { margin-top: 22px; }
.uk-extra .help { margin: 6px 0 0; }
.uk-reveal.anim .uk-row { animation: ms-drop .55s cubic-bezier(.3, 1.35, .5, 1) both; animation-delay: calc(var(--i) * 70ms + 120ms); }
@media (prefers-reduced-motion: reduce) { .uk-reveal.anim .uk-row { animation: none; } }
.uk-flag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px 3px 6px; border: 0; border-radius: 9px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--panel-3); color: var(--muted); font: inherit; font-size: .78rem; font-weight: 650; cursor: pointer; }
.uk-flag.on { background: var(--text); color: var(--bg); box-shadow: none; }
.uk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.uk-missed .uk-chips { margin-top: 8px; }
.uk-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 9px; background: var(--panel); }
.uk-chip b { font-family: var(--font-head); overflow-wrap: anywhere; }
.uk-chip i { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 4px; border-radius: 7px; background: var(--game); color: var(--on-accent); font-style: normal; font-family: var(--font-head); font-weight: 700; font-size: .85rem; }
.uk-hist .uk-chip i { order: 3; }
html.tv .ms-tv .uk-rows { grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr)); gap: 2.2rem 1.8rem; }
html.tv .ms-tv .uk-card { padding: 1.2rem 1.4rem; border-radius: 1.2rem; gap: 1.2rem; }
html.tv .ms-tv .uk-tier { width: 3.6rem; height: 3.6rem; font-size: 2rem; border-radius: .9rem; }
html.tv .ms-tv .uk-name strong { font-size: 2rem; }
html.tv .ms-tv .uk-name small { font-size: 1.05rem; }
html.tv .ms-tv .ms-person { font-size: 1.05rem; }
html.tv .ms-tv .uk-chip { font-size: 1.3rem; }

/* Unikat: gablota z półkami rzadkości, odpowiedzi jak klejnoty (js/unikat.js) */
.uk-case { display: flex; flex-direction: column; gap: 0; margin-top: 18px; padding: 10px 10px 4px; border-radius: 16px; background: #2a2230; border: 3px solid #16141c; box-shadow: inset 0 0 0 6px #3a2f3a; }
.uk-shelf { display: flex; align-items: flex-end; gap: 10px; min-height: 58px; padding: 8px 6px 6px; border-bottom: 8px solid #7f5536; box-shadow: 0 3px 0 #16141c; margin-bottom: 6px; background: color-mix(in srgb, var(--tc) 7%, transparent); }
.uk-shelf-tag { flex: none; display: flex; flex-direction: column; align-items: center; width: 62px; color: var(--tc); text-align: center; }
.uk-shelf-tag .uk-gem-ic { width: 22px; }
.uk-shelf-tag b { font-size: .66rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; line-height: 1.1; }
.uk-shelf-tag i { font: 700 .8rem var(--font-head); font-style: normal; color: var(--muted); }
.uk-shelf-items { flex: 1; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px; min-width: 0; }
.uk-gem { position: relative; display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 9px 5px 6px; border: 2px solid #16141c; border-radius: 10px; background: #faf6ee; color: #16141c; font: inherit; box-shadow: inset 0 -4px 0 color-mix(in srgb, var(--tc) 55%, #faf6ee); }
.uk-gem .uk-gem-ic { flex: none; width: 22px; }
.uk-gem b { min-width: 0; font: 700 .95rem/1.15 var(--font-head); overflow-wrap: anywhere; }
.uk-gem > i { flex: none; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 50%; background: var(--tc); border: 2px solid #16141c; font: 700 .78rem var(--font-head); font-style: normal; }
.uk-heads { display: inline-flex; margin-left: 2px; }
.uk-heads .fig-av + .fig-av { margin-left: -6px; }
.uk-gem.mine { outline: 2px dashed var(--text); outline-offset: 3px; }
.uk-gem.out { opacity: .55; box-shadow: none; }
.uk-gem.out b { text-decoration: line-through; text-decoration-thickness: 2px; }
.uk-gem.ghost { background: transparent; color: var(--muted); border-style: dashed; border-color: color-mix(in srgb, var(--tc) 60%, #4a4458); box-shadow: none; }
.uk-gem.ghost .uk-gem-ic { opacity: .35; }
button.uk-gem { cursor: pointer; }
.uk-reveal.anim .uk-gem { animation: uk-drop .55s cubic-bezier(.3, 1.4, .5, 1) calc(var(--k) * 110ms) both; }
.uk-reveal.anim .uk-gem.ghost { animation: uk-fade .6s ease calc(var(--k) * 110ms + .3s) both; }
@keyframes uk-drop { from { opacity: 0; transform: translateY(-60px) rotate(-8deg); } }
@keyframes uk-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .uk-reveal.anim .uk-gem { animation: none; } }
.uk-case.tv { margin: 1.4rem auto 0; width: min(100%, 90rem); padding: 1rem 1rem .4rem; }
html.tv .uk-shelf { min-height: 4.6rem; gap: 1rem; border-bottom-width: .7rem; }
html.tv .uk-shelf-tag { width: 6.5rem; }
html.tv .uk-shelf-tag .uk-gem-ic { width: 2rem; }
html.tv .uk-shelf-tag b { font-size: .9rem; }
html.tv .uk-gem { padding: .4rem .9rem .4rem .5rem; gap: .6rem; border-radius: .8rem; }
html.tv .uk-gem .uk-gem-ic { width: 2rem; }
html.tv .uk-gem b { font-size: 1.4rem; }
html.tv .uk-gem > i { min-width: 2rem; height: 2rem; font-size: 1.05rem; }

/* Myślimy tak samo: grupa ściśnięta za tabliczką z odpowiedzią (js/myslimy.js) */
.ms-huddle { display: flex; flex-wrap: nowrap; justify-content: center; align-items: flex-end; gap: 0; margin: 0 0 -14px; padding: 0 6px; position: relative; z-index: 2; }
.ms-huddle .ms-person { flex-direction: column; gap: 0; padding: 0; background: none; margin: 0 -6px; min-width: 0; }
.ms-huddle .ms-person .fig { width: min(52px, calc(210px / var(--n))); }
.ms-huddle .ms-person > span { max-width: 64px; margin-top: -4px; padding: 0 5px; border-radius: 6px; background: #16141c; font-size: .66rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; z-index: 2; }
.ms-huddle .ms-person.me > span { box-shadow: 0 0 0 1.5px var(--game); }
.ms-huddle button.ms-person .ic { position: absolute; top: 0; right: 4px; width: 14px; height: 14px; padding: 2px; border-radius: 50%; background: #16141c; }
.ms-huddle button.ms-person { position: relative; }
.ms-stack .ms-card { position: relative; z-index: 1; }
.ms-stacks.singles .ms-huddle .fig { width: 38px; }
.ms-stacks.singles .ms-stack { opacity: .85; }
html.tv .ms-tv .ms-huddle .ms-person .fig { width: min(4.6rem, calc(16rem / var(--n))); }
html.tv .ms-tv .ms-huddle .ms-person > span { max-width: 7rem; font-size: .95rem; }
html.tv .ms-tv .ms-stacks.singles .ms-huddle .fig { width: 3.6rem; }

/* ---------- Licytacja ----------
   Stawka na dużym przekrzywionym kafelku w kolorze gry, kolejka licytujących jako rząd żetonów,
   wielki przycisk +1 do liczenia (podskakuje przy dotknięciu) i pasek czasu animowany w CSS. */
.lc-cat { margin: 14px 0 0; padding: 16px 18px 20px; border-radius: 18px; background: var(--game); color: var(--on-accent); }
.lc-cat .label { color: var(--on-accent); opacity: .6; }
.lc-cat p { margin: 4px 0 0; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.6rem, 7vw, 2.2rem); line-height: 1.1; letter-spacing: -.02em; }
.lc-cat.small { padding: 10px 14px 12px; }
.lc-cat.small p { font-size: 1.2rem; }
.lc-tile { display: inline-grid; place-items: center; flex: none; min-width: 64px; height: 64px; padding: 0 10px; border-radius: 16px; background: var(--game); color: var(--on-accent); transform: rotate(-6deg); }
.lc-tile b { font-family: var(--font-head); font-size: 2.2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.lc-mybid { margin-top: 18px; padding: 16px; border-radius: 18px; background: var(--panel); box-shadow: inset 0 0 0 2px var(--game); display: flex; flex-direction: column; gap: 10px; }
.lc-you { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--game); }
.lc-stepper { display: flex; align-items: center; justify-content: center; gap: 18px; }
.lc-stepper .btn { width: 56px; height: 56px; min-height: 0; padding: 0; border-radius: 16px; font-size: 1.6rem; }
.lc-stepper output { min-width: 3ch; text-align: center; font-family: var(--font-head); font-weight: 700; font-size: 3.4rem; line-height: 1; font-variant-numeric: tabular-nums; }
.lc-stepper.big { margin-top: 18px; }
.lc-stepper.big output { font-size: 4.4rem; }
.lc-quick { display: flex; justify-content: center; gap: 8px; }
.lc-wait { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--panel); font-weight: 650; }
.lc-goal { display: flex; align-items: center; gap: 14px; margin-top: 16px; font-weight: 650; font-size: 1.05rem; }
.lc-goal .lc-tile { min-width: 52px; height: 52px; border-radius: 13px; }
.lc-goal .lc-tile b { font-size: 1.8rem; }
.lc-big { display: flex; flex-direction: column; align-items: center; margin-top: 18px; }
.lc-go { margin: 0 0 6px; font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: var(--game); text-align: center; }
.lc-clock { font-family: var(--font-head); font-weight: 700; font-size: clamp(5rem, 26vw, 8rem); line-height: 1; font-variant-numeric: tabular-nums; }
.lc-bar { width: 100%; height: 10px; margin-top: 14px; border-radius: 5px; background: var(--panel-2); overflow: hidden; }
.lc-bar i { display: block; height: 100%; background: var(--game); transform-origin: left; animation: lc-drain linear both; }
@keyframes lc-drain { from { transform: scaleX(var(--from, 1)); } to { transform: scaleX(0); } }
.lc-tap { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%; min-height: 46vh; margin-top: 16px; border: 0; border-radius: 28px; background: var(--game); color: var(--on-accent); font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.lc-tap .label { color: var(--on-accent); opacity: .6; }
.lc-tap b { font-family: var(--font-head); font-size: clamp(6rem, 34vw, 10rem); line-height: 1; font-variant-numeric: tabular-nums; }
.lc-tap small { font-weight: 700; opacity: .7; }
.lc-tap:active { transform: scale(.985); }
.lc-tap.hit b { animation: lc-hit .25s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes lc-hit { from { transform: scale(1.25) rotate(-4deg); } }
.lc-minus { margin-top: 10px; }
.lc-title { margin-top: 18px; }
.lc-hist li.none .lc-tile { background: var(--panel-3); color: var(--muted); }
.lc-hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.lc-hist li { display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border-radius: 14px; background: var(--panel); }
.lc-hist .lc-tile { min-width: 46px; height: 46px; border-radius: 12px; }
.lc-hist .lc-tile b { font-size: 1.5rem; }
.lc-hist li.bad .lc-tile { background: var(--panel-3); color: var(--muted); }
.lc-hist .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.lc-hist .q { color: var(--muted); font-size: .85rem; }
.lc-hist strong { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.lc-hist .r { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-head); font-weight: 700; color: var(--muted); }
.lc-hist li.ok .r { color: var(--good); }
@media (prefers-reduced-motion: reduce) {
  .lc-bar i, .lc-tap.hit b { animation: none; }
}

/* Ile wymienisz?: sala aukcyjna (js/licytacja.js) */
.lc-hall { position: relative; isolation: isolate; width: 100%; aspect-ratio: 16 / 9; margin-top: 12px; overflow: hidden; border-radius: 18px; container-type: size; }
.lc-hall.mini { aspect-ratio: 1 / .88; }
.lc-wall { position: absolute; inset: 0; background: color-mix(in srgb, var(--game) 10%, #241f2c); box-shadow: inset 0 -30cqh 0 color-mix(in srgb, var(--game) 6%, #1b1822); }
.lc-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 26%; z-index: 1; background: #3a2b2a; border-top: .6cqh solid #16141c; }
.lc-sign { position: absolute; left: 50%; top: 5cqh; z-index: 2; display: flex; flex-direction: column; align-items: center; max-width: 52cqw; padding: 1.4cqh 2.4cqw 1.8cqh; border-radius: 1cqw; background: #faf6ee; border: .4cqw solid #16141c; color: #16141c; text-align: center; transform: translateX(-50%) rotate(-1deg); box-shadow: 0 1cqh 0 rgba(0, 0, 0, .3); }
.lc-sign::before, .lc-sign::after { content: ''; position: absolute; bottom: 100%; width: .3cqw; height: 6cqh; background: #16141c; }
.lc-sign::before { left: 18%; }
.lc-sign::after { right: 18%; }
.lc-sign .label { color: #6f6a7a; font-size: 1.2cqw; }
.lc-sign b { font: 700 3.2cqw/1.05 var(--font-head); letter-spacing: -.02em; overflow-wrap: anywhere; }
.lc-placard { position: absolute; right: 2cqw; top: 4cqh; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: .6cqh; padding: 1.2cqh 1.4cqw; border-radius: 1cqw; background: #16141c; }
.lc-placard .label { color: var(--muted); font-size: 1.1cqw; }
.lc-placard .lc-tile { min-width: 8cqw; height: 8cqw; padding: 0 1cqw; border-radius: 1.4cqw; background: var(--game); color: var(--on-accent); }
.lc-placard .lc-tile b { font-size: 4.6cqw; }
.lc-placard small { font: 700 1.3cqw var(--font-head); }
.lc-stagebox { position: absolute; left: 50%; bottom: 22%; z-index: 3; display: flex; flex-direction: column; align-items: center; transform: translateX(-50%); }
.lc-lectern { position: relative; z-index: 2; width: 15cqw; height: 13cqh; background: #9a6440; border: .4cqw solid #16141c; clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%); box-shadow: inset 0 2.4cqh 0 #b07a4f; }
.lc-gavel { position: absolute; left: 50%; top: -4.4cqw; width: 8cqw; transform: translateX(-30%) rotate(0deg); transform-origin: 80% 80%; }
.lc-gavel.bang { animation: lc-bang .45s var(--ease); }
@keyframes lc-bang { 30% { transform: translateX(-30%) rotate(-38deg); } 55% { transform: translateX(-30%) rotate(8deg); } }
.lc-performer { position: relative; display: flex; flex-direction: column; align-items: center; width: 11cqw; margin-bottom: -6cqh; }
.lc-performer .fig { width: 100%; }
.lc-spot { position: absolute; left: 50%; bottom: 0; z-index: -1; width: 30cqw; height: 100cqh; background: rgba(255, 240, 205, .12); clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%); transform: translateX(-50%); }
.lc-row { position: absolute; left: 3cqw; right: 3cqw; bottom: 2.4cqh; z-index: 4; display: flex; justify-content: center; align-items: flex-end; gap: 1.4cqw; }
.lc-bidder { position: relative; display: flex; flex-direction: column; align-items: center; width: min(9cqw, calc(88cqw / var(--n))); padding-top: 7cqw; }
.lc-bidder .fig { width: 100%; }
.lc-bidder.away .fig-svg { opacity: .4; }
.lc-bidder.now::before { content: ''; position: absolute; left: 50%; bottom: 2cqh; z-index: -1; width: 180%; height: 70cqh; background: rgba(255, 240, 205, .1); clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%); transform: translateX(-50%); }
.lc-nm { max-width: 140%; margin-top: -.4cqh; padding: .1cqh .6cqw; border-radius: .5cqw; background: #16141c; color: var(--text); font: 700 1.1cqw/1.3 var(--font-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; z-index: 2; }
/* Tabliczka licytacyjna: okrągła na kijku, w górze u prowadzącego, opuszczona po pasie */
.lc-paddle { position: absolute; left: 62%; top: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; transform: translateY(26%) rotate(8deg); transform-origin: 50% 100%; transition: transform .4s var(--ease); }
.lc-paddle b { display: grid; place-items: center; min-width: 5.6cqw; height: 5.6cqw; padding: 0 .6cqw; border-radius: 50%; background: #faf6ee; border: .35cqw solid #16141c; color: #16141c; font: 700 2.4cqw/1 var(--font-head); box-shadow: inset 0 -.5cqw 0 var(--pc); }
.lc-paddle i { width: .6cqw; height: 3cqw; margin-top: -.2cqw; background: #7f5536; border: .25cqw solid #16141c; }
.lc-bidder.up .lc-paddle { transform: translateY(-8%) rotate(-6deg); }
.lc-bidder.just .lc-paddle { animation: lc-raise .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes lc-raise { from { transform: translateY(40%) rotate(14deg); } }
.lc-bidder.out .lc-paddle { transform: translateY(70%) rotate(30deg); opacity: .6; }
.lc-bidder.out .lc-paddle b { font-size: 1.4cqw; }
.lc-bidder.clicker::after { content: ''; position: absolute; left: 50%; bottom: 22%; z-index: 3; width: 32%; height: 18%; border-radius: .6cqw; background: #c9c3d3; border: .3cqw solid #16141c; transform: translateX(-50%); }
.lc-top { position: absolute; left: 2cqw; top: 4cqh; z-index: 5; max-width: 26cqw; padding: 1.2cqh 1.3cqw; border-radius: 1cqw; background: #16141c; }
.lc-top .label { color: var(--muted); font-size: 1.1cqw; }
.lc-top h2 { margin: .4cqh 0 0; font: 700 2.2cqw/1.1 var(--font-head); }
.lc-top .lc-cd { display: block; margin-top: .6cqh; font: 700 3cqw/1 var(--font-head); font-variant-numeric: tabular-nums; }
.lc-top .lc-clock { display: block; font-size: 6cqw; }
.lc-act { position: absolute; right: 2cqw; bottom: 30cqh; z-index: 5; display: flex; gap: .8cqw; }
.lc-act .btn { min-height: 0; padding: .8cqw 1.4cqw; border-radius: .8cqw; font-size: 1.2cqw; }
.lc-act .btn.ghost { background: var(--bg); }
.lc-hall.mini .lc-sign { max-width: 64cqw; padding: 1.2cqh 3cqw 1.6cqh; }
.lc-hall.mini .lc-sign .label { font-size: 2.6cqw; }
.lc-hall.mini .lc-sign b { font-size: 5.4cqw; }
.lc-hall.mini .lc-placard { display: none; }
.lc-hall.mini .lc-paddle { left: 50%; transform: translate(-50%, 26%) rotate(6deg); }
.lc-hall.mini .lc-bidder.up .lc-paddle { transform: translate(-50%, -8%) rotate(-4deg); }
.lc-hall.mini .lc-bidder.out .lc-paddle { transform: translate(-50%, 70%) rotate(20deg); }
.lc-stake-line { display: flex; align-items: baseline; gap: 10px; margin: 12px 0 0; }
.lc-stake-line b { font: 700 1.8rem/1 var(--font-head); color: var(--game); }
.lc-stake-line span:last-child { font-weight: 650; }
.lc-hall.mini .lc-placard .label { font-size: 2.4cqw; }
.lc-hall.mini .lc-placard .lc-tile { min-width: 13cqw; height: 13cqw; }
.lc-hall.mini .lc-placard .lc-tile b { font-size: 7cqw; }
.lc-hall.mini .lc-placard small { font-size: 2.6cqw; }
.lc-hall.mini .lc-lectern { width: 24cqw; }
.lc-hall.mini .lc-gavel { width: 13cqw; top: -7cqw; }
.lc-hall.mini .lc-performer { width: 18cqw; }
.lc-hall.mini .lc-bidder { width: min(15cqw, calc(92cqw / var(--n))); padding-top: 12cqw; }
.lc-hall.mini .lc-nm { font-size: 2.6cqw; padding: .1cqh 1.2cqw; border-radius: 1.2cqw; }
.lc-hall.mini .lc-paddle b { min-width: 9.5cqw; height: 9.5cqw; font-size: 4cqw; border-width: .6cqw; }
.lc-hall.mini .lc-paddle i { width: 1cqw; height: 5cqw; }
.lc-hall.mini .lc-bidder.out .lc-paddle b { font-size: 2.6cqw; }
.lc-hall.mini .lc-row { gap: 1.6cqw; }
/* Licznik w odsłonięciu i licznik w rękach sędziego */
.lc-counter { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 14px; }
.lc-digits { display: flex; align-items: baseline; gap: 10px; padding: 8px 22px; border-radius: 16px; background: #16141c; border: 3px solid #3a3545; color: #ffd25a; font-family: var(--font-head); font-weight: 700; font-variant-numeric: tabular-nums; }
.lc-digits b { font-size: 4.6rem; line-height: 1; }
.lc-digits span { font-size: 2.2rem; color: var(--muted); }
.lc-stamp { padding: 4px 14px; border: 4px solid currentColor; border-radius: 10px; font: 700 1.4rem var(--font-head); letter-spacing: .04em; text-transform: uppercase; transform: rotate(-8deg); animation: ow-stamp .3s var(--ease) 1.3s both; }
.lc-counter.ok .lc-stamp { color: var(--good); }
.lc-counter.bad .lc-stamp { color: var(--bad); }
.lc-counter.none .lc-stamp { color: var(--muted); }
.lc-lead { margin: 10px 0 0; text-align: center; font-weight: 600; color: var(--muted); }
.lc-tap { background: #c9c3d3; color: #16141c; border: 4px solid #16141c; box-shadow: inset 0 -10px 0 #a9a2b6; }
.lc-tap .label { color: #16141c; }
.lc-window { display: grid; place-items: center; min-width: 60%; margin: 8px 0; padding: 4px 18px; border-radius: 14px; background: #16141c; color: #ffd25a; border: 3px solid #3a3545; }
.lc-window b { color: #ffd25a; }
.lc-knob { position: absolute; right: 18px; top: 14px; width: 40px; height: 22px; border-radius: 8px; background: #faf6ee; border: 3px solid #16141c; }
.lc-tap.hit .lc-knob { animation: lc-knob .2s ease; }
@keyframes lc-knob { 50% { transform: translateY(5px); } }
html.tv .lc-tv { display: flex; flex-direction: column; align-items: center; gap: .8rem; }
html.tv .lc-tv .lc-hall { width: min(100%, calc((100dvh - 12rem) * 16 / 9)); margin: 0 auto; }
html.tv .lc-tv .lc-bar { width: min(100%, calc((100dvh - 12rem) * 16 / 9)); margin-top: 0; }
html.tv .lc-tv-under { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .6rem 2rem; }
html.tv .lc-tv-under .lc-counter { flex-direction: row; margin: 0; }
html.tv .lc-tv-under .lc-digits b { font-size: 3.4rem; }
html.tv .lc-tv-under .lc-lead { margin: 0; font-size: 1.3rem; }
html.tv .lc-tv-under .sk-gains { margin: 0; }
html.tv .lc-tv .lc-hall { width: min(100%, calc((100dvh - 15rem) * 16 / 9)); }

/* ---------- Menu: filtry i tagi gier ---------- */
.filters { --game: var(--accent); display: grid; gap: 12px; margin: 0 0 22px; }
.filter-row { display: grid; grid-template-columns: 9.5rem 1fr; align-items: center; gap: 8px 14px; }
.filter-row .label { margin: 0; }
.chips.nums { gap: 6px; }
.chips.nums .chip { min-width: 38px; padding: 0 10px; justify-content: center; font-variant-numeric: tabular-nums; }
.chips.nums .chip[aria-pressed="true"]::before { display: none; }
.chips.nums .chip[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.filter-clear { justify-self: start; }
@media (max-width: 620px) {
  .filter-row { grid-template-columns: 1fr; }
  .chips.nums { flex-wrap: nowrap; gap: 5px; }
  .chips.nums .chip { flex: 1; min-width: 0; padding: 0 2px; }
}

.feature-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.gtag {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 7px;
  background: var(--panel-2); color: var(--muted); font-size: .72rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase;
}
.gtag:first-child { background: color-mix(in srgb, var(--game) 18%, transparent); color: var(--game); }
.gtag:first-child::before { content: ''; width: 7px; height: 7px; border-radius: 2px; background: currentColor; transform: rotate(16deg); }
/* Gry na wiedzę: odwrócona pigułka z żarówką, widać je z daleka. */
.gtag.cat-wiedza { background: var(--text); color: var(--bg); }
.gtag.cat-wiedza::before { display: none; }
.gtag.warn { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.feature-meta em { font-style: normal; color: var(--dim); margin-left: 4px; }
.feature-meta em::before { content: "·"; margin-right: 4px; }
.feature-meta .hit { color: var(--text); }

.games-group { display: grid; gap: 4px; margin: 34px 0 14px; }
.games-group-title { display: flex; align-items: center; gap: 8px; margin: 0; font-family: var(--font-head); font-size: 1.3rem; letter-spacing: -.02em; }
.games-group .help { margin: 0; }
.games-empty { margin: 0; padding: 22px; border-radius: 18px; background: var(--panel); color: var(--muted); }
.games-rest { margin-top: 30px; }
.games-rest > summary { cursor: pointer; color: var(--muted); font-weight: 650; padding: 10px 0; list-style-position: inside; }
.games-rest > summary:hover { color: var(--text); }
.games-rest .feature { opacity: .8; }

/* ---------- Oś czasu ---------- */
.czas-card { margin: 14px 0 0; padding: 18px 18px 20px; border-radius: 18px; background: var(--game); color: var(--on-accent); }
.czas-card b { display: block; margin-bottom: 6px; font-family: var(--font-head); font-size: clamp(2.2rem, 10vw, 3rem); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.czas-card p { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.3rem, 5.6vw, 1.7rem); line-height: 1.15; letter-spacing: -.02em; }
.czas-lead { margin: 16px 0 0; }
/* Oś: karty od najstarszej, między nimi szczeliny do wstawienia; pionowa linia po lewej spina całość. */
.czas-line { position: relative; list-style: none; margin: 12px 0 0; padding: 0 0 0 14px; display: flex; flex-direction: column; gap: 4px; }
.czas-line::before { content: ''; position: absolute; left: 4px; top: 6px; bottom: 10px; width: 3px; border-radius: 2px; background: var(--panel-3); }
/* Grot na dole osi: czas płynie w dół. */
.czas-line::after { content: ''; position: absolute; left: 0; bottom: 0; border: 5.5px solid transparent; border-top: 10px solid var(--panel-3); border-bottom: 0; }.czas-item { position: relative; display: flex; align-items: baseline; gap: 12px; padding: 11px 14px; border-radius: 12px; background: var(--panel); }
.czas-item::before { content: ''; position: absolute; left: -15px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 3px; background: var(--panel-3); transform: rotate(16deg); }
.czas-item b { flex: none; min-width: 4.4em; font-family: var(--font-head); font-size: 1.1rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.czas-item span { font-weight: 550; line-height: 1.3; }
.czas-item.new { box-shadow: inset 0 0 0 2px var(--game); }
.czas-item.new::before, .czas-item.should::before { background: var(--game); }
.czas-item.should { background: transparent; box-shadow: inset 0 0 0 2px var(--game); color: var(--game); }
.czas-item.miss { background: transparent; box-shadow: inset 0 0 0 2px var(--panel-3); color: var(--muted); text-decoration: line-through; }
.czas-gap { display: flex; }
.czas-slot { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 6px 12px; border: 1.5px dashed var(--panel-3); border-radius: 12px; background: transparent; color: var(--muted); font: inherit; font-size: .85rem; font-weight: 650; cursor: pointer; }
.czas-slot:hover:not(:disabled) { border-color: var(--game); color: var(--text); }
.czas-slot[aria-pressed="true"] { justify-content: flex-start; padding: 12px 14px; border: 0; background: var(--game); color: var(--on-accent); font-size: 1rem; text-align: left; }
.czas-slot:disabled:not([aria-pressed="true"]) { display: none; }
.czas-go { position: sticky; bottom: 12px; z-index: 2; }
.czas-verdict { margin-top: 14px; }
.czas-reached { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--panel-2); color: var(--game); font-weight: 700; }
/* Osie graczy: pasek do celu. */
.czas-stand { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.czas-stand li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(60px, 34%) auto; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 12px; background: var(--panel); }
.czas-stand li.away { opacity: .55; }
.czas-stand .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.czas-stand i { grid-column: 3; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; }
.czas-stand i.ok { background: var(--game); color: var(--on-accent); }
.czas-stand i.miss { background: var(--panel-3); color: var(--muted); }
.czas-stand .bar { grid-column: 4; height: 8px; border-radius: 4px; background: var(--panel-3); overflow: hidden; }
.czas-stand .bar span { display: block; height: 100%; border-radius: 4px; background: var(--game); }
.czas-stand b { grid-column: 5; font-family: var(--font-head); font-variant-numeric: tabular-nums; }
.czas-tv { width: 100%; max-width: 1400px; margin: 0 auto; }
.czas-tv .who-head { font-size: 1.3rem; }
.czas-tv .who-head .countdown { font-size: clamp(3rem, 6vw, 6rem); line-height: 1; color: var(--text); }
.czas-tv .czas-card { padding: 2rem 2.4rem; border-radius: 1.6rem; }
.czas-tv .czas-card b { font-size: clamp(4rem, 8vw, 8rem); }
.czas-tv .czas-card p { font-size: clamp(2.2rem, 4vw, 4rem); }
.czas-tv .tv-lead { margin: 1.4rem 0 1.6rem; }
.czas-tv-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.czas-tv-cols .vote-status { margin-top: 0; }
.czas-tv .czas-stand li { padding: .7rem 1rem .7rem .7rem; font-size: 1.3rem; }
.czas-tv .czas-stand .bar { height: .7rem; }
.czas-tv .czas-stand i { width: 2rem; height: 2rem; }
html.tv .czas-stand .chip-av.xs { width: 2.2rem; height: 2.2rem; font-size: 1.1rem; }
.czas-tv .actions { max-width: 640px; margin-left: auto; margin-right: auto; }
@media (max-width: 900px) { .czas-tv-cols { grid-template-columns: 1fr; } }

/* ---------- Kret ----------
   Plansza to SVG 1000 x 700. Warstwy pola: skała z kamykami, płyta odcinka, ciemna ściana tunelu, kremowy korytarz,
   podkłady i szyny w kolorze gry. Płasko: bez gradientów, głębię dają ciemne obrysy i przesunięte cienie. */
.kr-board { display: block; width: 100%; height: auto; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.kr-board-wrap { margin-top: 12px; }
.kr-bg { fill: #121017; }
.kr-empty { fill: #1d1a24; }
.kr-peb { fill: #29252f; }
.kr-peb.b { fill: #24212b; }
.kr-crk { fill: none; stroke: #2b2732; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.kr-slab { fill: var(--panel-3); }
.kr-slab.start, .kr-slab.room { fill: var(--panel-2); stroke: var(--game); stroke-width: 4; }
.kr-slab.last { stroke: var(--game); stroke-width: 5; }
.kr-slab.ghost { stroke: var(--text); stroke-width: 5; stroke-dasharray: 12 8; }
.kr-wall { fill: none; stroke: #121017; stroke-width: 48; stroke-linecap: butt; stroke-linejoin: round; }
.kr-tun { fill: none; stroke: var(--text); stroke-width: 38; stroke-linecap: butt; stroke-linejoin: round; }
.kr-sleep { fill: none; stroke: #d9d1c3; stroke-width: 28; stroke-dasharray: 5 8; }
.kr-rails { fill: none; stroke: var(--game); stroke-width: 3.4; stroke-linecap: square; }
.kr-hub { fill: var(--text); }
.kr-turn { fill: none; stroke: var(--game); stroke-width: 3.4; }
.kr-turn-c { fill: var(--game); }
.kr-rubble rect { fill: #8b8597; stroke: var(--panel-3); stroke-width: 2.5; }
.kr-rubble.fall rect { fill: var(--game); stroke: #121017; }
.kr-rubble.drop rect { animation: kr-drop .6s cubic-bezier(.3, 1.5, .5, 1) both; animation-delay: calc(var(--i) * 70ms); }
.kr-ring { fill: #23202b; stroke: var(--game); stroke-width: 4; }
.kr-bolt { fill: var(--game); }
.kr-hole { fill: #0c0a10; }
.kr-grate { fill: none; stroke: #4a4556; stroke-width: 4; stroke-linecap: round; }

/* Zakryte pomieszczenia: stalowe drzwi z nitami i tabliczką. */
.kr-door-sh { fill: #0c0a10; }
.kr-door { fill: var(--game); }
.kr-door-in { fill: none; stroke: var(--on-accent); stroke-width: 3; opacity: .18; }
.kr-rivet { fill: var(--on-accent); opacity: .35; }
.kr-door-mark { fill: var(--on-accent); opacity: .18; }
.kr-plate { fill: var(--on-accent); }
.kr-door-l { fill: var(--game); font-family: var(--font-head); font-weight: 700; font-size: 12px; text-anchor: middle; }
.kr-knob { fill: var(--on-accent); opacity: .45; }
.kr-eye circle:first-child { fill: var(--text); stroke: #121017; stroke-width: 3; }
.kr-eye path { fill: none; stroke: #121017; stroke-width: 2.4; }
.kr-eye circle + path + circle { fill: #121017; }

/* Odkryte pomieszczenia. */
.kr-v-hinge { fill: #6b6577; }
.kr-vault { fill: var(--game); stroke: #121017; stroke-width: 4; }
.kr-v-bolt { fill: #121017; opacity: .5; }
.kr-vault-in { fill: none; stroke: #121017; stroke-width: 3.5; }
.kr-spokes { fill: none; stroke: #121017; stroke-width: 6; stroke-linecap: round; }
.kr-v-hub { fill: #121017; }
.kr-wheel { transform-box: fill-box; transform-origin: center; }
.kr-wheel.spin { animation: kr-spin 1.5s var(--ease) .35s both; }
.kr-crate { fill: #a9825a; stroke: #121017; stroke-width: 3; }
.kr-plank { fill: none; stroke: #121017; stroke-width: 2.5; opacity: .5; }
.kr-pipe { fill: none; stroke: #6b6577; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.kr-boiler { fill: #8a8496; stroke: #121017; stroke-width: 3; }
.kr-boiler-b { fill: #121017; opacity: .3; }
.kr-dial { fill: var(--text); stroke: #121017; stroke-width: 3; }
.kr-needle { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.kr-steam { fill: none; stroke: var(--muted); stroke-width: 3; stroke-linecap: round; opacity: .7; }
.kr-open { transform-box: fill-box; transform-origin: center; animation: kr-open .7s var(--ease) both; }

/* Wybór pola i podgląd. */
.kr-can { fill: var(--game); fill-opacity: .14; stroke: var(--game); stroke-width: 3; stroke-dasharray: 10 8; animation: kr-can 1.6s ease-in-out infinite; }
.kr-can.collapse { fill: var(--bad); stroke: var(--bad); }
.kr-aim { fill: none; stroke: var(--text); stroke-width: 6; }
.kr-aim.collapse { stroke: var(--bad); }
.kr-ghost { pointer-events: none; }
.kr-hit { fill: transparent; cursor: pointer; }
.kr-pop { transform-box: fill-box; transform-origin: center; animation: kr-pop .5s var(--ease) both; }
@keyframes kr-pop { 0% { transform: scale(.55) rotate(-16deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes kr-can { 50% { fill-opacity: .04; } }
@keyframes kr-drop { 0% { translate: 0 -80px; opacity: 0; } 60% { opacity: 1; } 100% { translate: 0 0; } }
@keyframes kr-spin { from { transform: rotate(-300deg); } to { transform: rotate(0); } }
@keyframes kr-open { 0% { transform: scale(.4) rotate(16deg); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* Grafiki kart akcji. */
.kr-slab.act { fill: var(--panel-2); }
.kr-crack { fill: none; stroke: #8b8597; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.kr-crack.thin { stroke-width: 2.5; }
.kr-plan { fill: var(--game); stroke: #121017; stroke-width: 3; }
.kr-plan-g { fill: none; stroke: var(--on-accent); stroke-width: 1.3; opacity: .25; }
.kr-plan-l { fill: none; stroke: var(--text); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 7 6; }
.kr-plan-x { fill: var(--accent); stroke: var(--text); stroke-width: 2.5; }
.kr-ico { fill: none; stroke: var(--text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kr-break { fill: none; stroke: var(--bad); stroke-width: 7; stroke-linecap: round; }
.kr-spark { fill: none; stroke: #ffd84d; stroke-width: 3; stroke-linecap: round; }
.kr-fix circle { fill: var(--good); stroke: #121017; stroke-width: 3; }
.kr-fix path { fill: none; stroke: #121017; stroke-width: 4; stroke-linecap: round; }

/* Kret: futro, kominiarka, maska włamywacza; wychyla się z włazu. */
.kr-mole, .kr-loot { display: block; width: 100%; height: auto; overflow: visible; }
.kr-m-shadow { fill: #0c0a10; }
.kr-m-hole { fill: #0c0a10; stroke: var(--game); stroke-width: 6; }
.kr-m-fur { fill: #7a6f8e; stroke: #121017; stroke-width: 5; }
.kr-m-cap { fill: #26222f; stroke: #121017; stroke-width: 5; }
.kr-m-cap-b, .kr-m-pom { fill: var(--game); stroke: #121017; stroke-width: 5; }
.kr-m-mask { fill: #121017; }
.kr-m-eye { fill: var(--text); }
.kr-m-pupil { fill: #121017; }
.kr-m-snout { fill: #f3d9d0; stroke: #121017; stroke-width: 4; }
.kr-m-nose { fill: var(--accent); stroke: #121017; stroke-width: 3; }
.kr-m-mouth { fill: none; stroke: #121017; stroke-width: 3.5; stroke-linecap: round; }
.kr-m-wh { fill: none; stroke: var(--text); stroke-width: 2.5; stroke-linecap: round; opacity: .55; }
.kr-m-rimf { fill: #0c0a10; }
.kr-m-rim { fill: none; stroke: var(--game); stroke-width: 6; }
.kr-m-paw ellipse { fill: #f3d9d0; stroke: #121017; stroke-width: 4; }
.kr-m-paw path { fill: none; stroke: #121017; stroke-width: 3.5; stroke-linecap: round; }
.kr-m-body { animation: kr-peek 3.6s ease-in-out infinite; }
@keyframes kr-peek { 0%, 100% { translate: 0 0; } 50% { translate: 0 10px; } }
.kr-l-frame { fill: #2a2733; stroke: #121017; stroke-width: 6; }
.kr-l-hole { fill: #0c0a10; stroke: var(--game); stroke-width: 8; }
.kr-bar path:first-child { fill: #f2c94c; stroke: #121017; stroke-width: 3.5; stroke-linejoin: round; }
.kr-bar-t { fill: none; stroke: #fff1bf; stroke-width: 3; stroke-linecap: round; }
.kr-bar { animation: kr-drop .7s cubic-bezier(.3, 1.5, .5, 1) both; animation-delay: calc(.3s + var(--i) * 90ms); }
.kr-l-door-e { fill: var(--game); stroke: #121017; stroke-width: 5; }
.kr-l-door-in { fill: none; stroke: #121017; stroke-width: 3.5; }
.kr-l-spoke { fill: none; stroke: #121017; stroke-width: 6; stroke-linecap: round; }
.kr-l-glint { fill: none; stroke: #f2c94c; stroke-width: 4; stroke-linecap: round; }
.kr-role-pic { width: 82%; margin: 14px auto 0; }
.kr-back-warn { display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 80%; text-align: center; line-height: 1.3; }
.face-back .kr-back-warn svg { flex: none; width: 22px; height: 22px; }
@media (prefers-reduced-motion: reduce) { .kr-pop, .kr-can, .kr-open, .kr-wheel.spin, .kr-rubble.drop rect, .kr-m-body, .kr-bar { animation: none; } }

/* Pasek tury: kto gra, ile kart w talii, zegar. Twoja tura świeci kolorem gry. */
.kr-head { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 10px 14px; border-radius: 14px; background: var(--panel); }
.kr-head.mine { background: var(--game); color: var(--on-accent); }
.kr-turn { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; font-weight: 700; }
.kr-turn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kr-head.mine .kr-turn { font-family: var(--font-head); font-size: 1.2rem; letter-spacing: -.01em; }
.kr-deck { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kr-deck i { width: 11px; height: 15px; border-radius: 3px; box-shadow: inset 0 0 0 2px currentColor, 3px -2px 0 -1px currentColor; transform: rotate(16deg); }
.kr-head .countdown { min-width: 2.2em; text-align: right; }
.kr-me { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.kr-role-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 0; border-radius: 10px; background: var(--panel); color: var(--muted); font: inherit; font-size: .88rem; font-weight: 650; cursor: pointer; }
.kr-role-btn[aria-pressed="true"] { background: var(--panel-2); color: var(--text); }
.kr-tools { display: inline-flex; gap: 4px; }
.kr-tools span { position: relative; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--panel-2); color: var(--text); }
.kr-tools.big span { width: 36px; height: 36px; border-radius: 10px; }
.kr-tools span.off { background: transparent; box-shadow: inset 0 0 0 1.5px var(--bad); color: var(--bad); }
.kr-tools span.off::after { content: ''; position: absolute; left: 18%; right: 18%; top: 50%; height: 2px; border-radius: 1px; background: var(--bad); transform: rotate(-45deg); }
.kr-hint { margin: 12px 0 0; color: var(--muted); font-size: .92rem; }
.kr-hint.mine { color: var(--text); font-weight: 600; }

/* Ręka: przewijany rząd kart; wybrana unosi się i dostaje obwódkę. */
.kr-hand { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(70px, 1fr); gap: 8px; margin: 10px -4px 0; padding: 6px 4px 4px; overflow-x: auto; scrollbar-width: none; }
.kr-hand::-webkit-scrollbar { display: none; }
.kr-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 6px 8px; border: 0; border-radius: 14px; background: var(--panel); color: var(--muted); font: inherit; cursor: pointer; transition: transform .2s var(--ease), background .2s; }
.kr-card svg { width: 100%; height: auto; aspect-ratio: 1; display: block; }
.kr-card span { font-size: .7rem; font-weight: 650; line-height: 1.15; text-align: center; min-height: 2.3em; }
.kr-card[aria-pressed="true"] { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 2px var(--game); transform: translateY(-4px); }
.kr-actions { position: sticky; bottom: 10px; z-index: 2; display: flex; gap: 8px; margin-top: 12px; padding: 8px; border-radius: 16px; background: var(--bg); box-shadow: 0 0 0 1px var(--line); }
.kr-actions .btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; padding-left: 10px; padding-right: 10px; }
.kr-actions .btn.primary { flex: 1.4; }
.kr-fix-tools { margin-top: 10px; }
.kr-fix-tools button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }

/* Ekipa: kolejka tur, sprzęt, karty na ręce; przy celowaniu wiersze to przyciski. */
.kr-block { margin-top: 18px; }
.kr-players { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.kr-players li, .kr-pl-btn { display: flex; align-items: center; gap: 10px; }
.kr-players > li { padding: 7px 10px 7px 7px; border-radius: 12px; background: var(--panel); }
.kr-players > li.now { box-shadow: inset 0 0 0 2px var(--game); }
.kr-players > li.away { opacity: .5; }
.kr-players > li:has(.kr-pl-btn) { padding: 0; background: none; box-shadow: none; }
.kr-pl-btn { width: 100%; padding: 7px 10px 7px 7px; border: 0; border-radius: 12px; background: var(--panel-2); color: var(--text); font: inherit; text-align: left; cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--game); }
.kr-pl-btn[aria-pressed="true"] { background: var(--game); color: var(--on-accent); }
.kr-players .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.kr-players .nm small { color: var(--muted); font-weight: 500; }
.kr-pl-btn[aria-pressed="true"] .nm small { color: inherit; }
.kr-count { min-width: 26px; padding: 2px 6px; border-radius: 7px; background: var(--panel-3); color: var(--text); font-size: .8rem; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.kr-sus { display: inline-grid; place-items: center; color: var(--accent); }
.kr-sus-note { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); font-size: .82rem; font-weight: 600; }
.kr-sus-open { display: inline-flex; align-items: center; gap: 6px; }
.kr-sus-pick { margin-top: 12px; padding: 12px; border-radius: 14px; background: var(--panel); }
.kr-sus-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.kr-sus-list .chip { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.kr-log { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; font-size: .85rem; color: var(--dim); }
.kr-log li:first-child { color: var(--text); font-weight: 600; }
.kr-log li.room, .kr-log li.collapse { color: var(--game); }
.kr-role-hint { max-width: 340px; text-align: center; }

/* TV: plansza na większości ekranu, kolejka i dziennik z boku. */
.kr-tv { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr); gap: 2rem; align-items: start; width: 100%; max-width: 1700px; margin: 0 auto; }
.kr-tv-side .kr-head { margin-top: 0; padding: 1rem 1.2rem; font-size: 1.4rem; }
.kr-tv-side .kr-head .countdown { font-size: 2.4rem; line-height: 1; }
.kr-tv .kr-players.big > li { padding: .7rem 1rem .7rem .7rem; font-size: 1.25rem; }
html.tv .kr-players .chip-av.xs, html.tv .kr-head .chip-av { width: 2.2rem; height: 2.2rem; font-size: 1.1rem; }
.kr-tv .kr-count { font-size: 1.05rem; min-width: 2.2rem; }
.kr-tv .kr-log { font-size: 1.1rem; }
.kr-tv-sus { display: flex; align-items: center; gap: .6rem; margin: 1rem 0 0; color: var(--accent); font-size: 1.2rem; font-weight: 650; }
.kr-tv-roles { width: 100%; max-width: 1200px; margin: 0 auto; text-align: center; }
.kr-hero { width: min(40%, 52vh); margin: -.5rem auto .5rem; }

/* Wynik: plansza z odkrytymi pomieszczeniami i role obok. */
.kr-verdict p { margin: 10px 0 0; }
.kr-result { display: grid; gap: 4px; }
.kr-roles { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.kr-roles li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 12px 8px 8px; border-radius: 12px; background: var(--panel); }
.kr-roles li.mole { box-shadow: inset 0 0 0 2px var(--accent); }
.kr-roles .nm { font-weight: 650; }
.kr-role-tag { color: var(--muted); font-size: .85rem; font-weight: 600; }
.kr-roles li.mole .kr-role-tag { color: var(--accent); }
.kr-sus-res { display: inline-flex; align-items: center; gap: 4px; color: var(--dim); font-size: .82rem; }
.kr-sus-res.hit { color: var(--good); }
.kr-roles b { margin-left: auto; font-family: var(--font-head); color: var(--game); }
@media (min-width: 900px) {
  #room:has(.kr-result) { --stage-w: 1180px; }
  html:not(.tv) .kr-side { padding-top: 10px; }
  html:not(.tv) .kr-side .kr-me { margin-top: 0; }
}
@media (min-width: 820px) {
  .kr-result { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: start; }
}

/* Werdykt Kreta: tekst po lewej, ilustracja (skarbiec albo kret) po prawej. */
.kr-verdict { display: flex; align-items: center; gap: 12px; overflow: hidden; }
.kr-verdict-text { flex: 1; min-width: 0; }
.kr-verdict-art { flex: none; width: 34%; max-width: 220px; margin: -18px -6px -24px 0; }
html.tv .kr-verdict-art { max-width: 320px; }
.kr-tv-roles .tv-lead { margin-bottom: 1rem; }

/* ---------- Wyprawa ----------
   Scena SVG: niebo, łódź, warstwy wody (płaskie, coraz ciemniejsze), lina i karty. Ciemne obrysy zamiast cieni. */
.wy-scene { display: block; width: 100%; height: auto; border-radius: 18px; user-select: none; -webkit-user-select: none; }
.wy-scene-wrap { margin-top: 10px; }
.wy-sky { fill: #16141c; }
.wy-sky-c { fill: #16141c; }
.wy-star { fill: var(--muted); opacity: .45; }
.wy-moon { fill: var(--text); }
.wy-band.b0 { fill: #1b4450; }
.wy-band.b1 { fill: #173a45; }
.wy-band.b2 { fill: #13303a; }
.wy-band.b3 { fill: #10262f; }
.wy-band.b4 { fill: #0c1d24; }
.wy-surf { fill: none; stroke: var(--game); stroke-width: 5; stroke-linecap: round; animation: wy-wave 4s linear infinite; }
.wy-boat { animation: wy-boat 3.2s ease-in-out infinite; }
.wy-mast { fill: #8a8496; }
.wy-flag { fill: var(--accent); stroke: #121017; stroke-width: 2.5; }
.wy-cabin { fill: #34303d; stroke: #121017; stroke-width: 3; }
.wy-win { fill: var(--game); }
.wy-hull { fill: #e9e2d4; stroke: #121017; stroke-width: 4; stroke-linejoin: round; }
.wy-hull-s { fill: none; stroke: #121017; stroke-width: 4; }
.wy-rope { fill: none; stroke: #d9c49a; stroke-width: 6; stroke-dasharray: 12 5; stroke-linejoin: round; }
.wy-more { fill: var(--text); font-family: var(--font-head); font-weight: 700; font-size: 18px; }
.wy-wreck path, .wy-wreck rect { fill: #0a161b; }
.wy-port { fill: #13303a; }
.wy-sand { fill: #22333a; }
.wy-weed { fill: none; stroke: #2f6b5a; stroke-width: 7; stroke-linecap: round; transform-box: fill-box; transform-origin: bottom center; animation: wy-sway 4s ease-in-out infinite; animation-delay: calc(var(--i) * -.7s); }
@keyframes wy-sway { 50% { transform: rotate(8deg); } }
.wy-prog { margin-bottom: 8px; }
.wy-ok { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; box-shadow: inset 0 0 0 1.5px var(--panel-3); color: transparent; }
.wy-ok.on { background: var(--game); box-shadow: none; color: #121017; }

/* Karty. */
.wy-card { stroke-width: 4; }
.wy-card.gold { fill: #2b2618; stroke: #f2c94c; }
.wy-card.hz { fill: #2a1820; stroke: var(--bad); }
.wy-card.relic { fill: #262033; stroke: #c9a7ff; }
.wy-card.doom { fill: #3a1620; stroke: var(--bad); stroke-width: 8; }
.wy-coin { fill: #f2c94c; stroke: #121017; stroke-width: 3; }
.wy-val { fill: var(--text); font-family: var(--font-head); font-weight: 700; font-size: 28px; }
.wy-left circle { fill: var(--game); stroke: #121017; stroke-width: 3; }
.wy-left text { fill: #121017; font-family: var(--font-head); font-weight: 700; font-size: 15px; text-anchor: middle; }
.wy-taken circle { fill: var(--good); stroke: #121017; stroke-width: 3; }
.wy-taken path { fill: none; stroke: #121017; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.wy-wave { fill: none; stroke: var(--game); stroke-width: 4; stroke-linecap: round; }
.wy-ink { stroke: #121017; stroke-width: 3.5; stroke-linejoin: round; }
.wy-tent { fill: none; stroke-width: 5; stroke-linecap: round; }
.wy-dot { fill: #121017; }
.wy-spiral { fill: none; stroke-width: 6; stroke-linecap: round; }
.wy-crack { fill: none; stroke: #121017; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.wy-bub { fill: none; stroke: var(--game); stroke-width: 3; }
.wy-relic { fill: #f2c94c; stroke: #121017; stroke-width: 3.5; stroke-linejoin: round; }
.wy-relic-in { fill: #fff1bf; stroke: #121017; stroke-width: 3; }
.wy-relic-l { fill: none; stroke: #f2c94c; stroke-width: 6; stroke-linecap: round; }
.wy-needle { fill: var(--accent); stroke: #121017; stroke-width: 2.5; }
.wy-gem { fill: var(--accent); stroke: #121017; stroke-width: 2.5; }
.wy-new { transform-box: fill-box; transform-origin: center; animation: wy-new .65s cubic-bezier(.3, 1.4, .5, 1) both; }

/* Nurkowie: kółko w kolorze gracza, maska, butla; kołyszą się w wodzie. */
.wy-diver { animation: wy-bob 2.6s ease-in-out infinite; animation-delay: var(--d, 0s); }
.wy-head { stroke: #121017; stroke-width: 3; }
.wy-mask { fill: #bfe9ee; stroke: #121017; stroke-width: 2.5; }
.wy-letter { fill: #121017; font-family: var(--font-head); font-weight: 700; text-anchor: middle; }
.wy-tank-s { fill: #ffd84d; stroke: #121017; stroke-width: 2.5; }
.wy-diver.lost { opacity: .4; }
.wy-bubbles circle { fill: none; stroke: #bfe9ee; stroke-width: 3; animation: wy-rise 2.4s ease-in infinite; }
.wy-bubbles circle:nth-child(2) { animation-delay: .8s; }
.wy-bubbles circle:nth-child(3) { animation-delay: 1.6s; }
@keyframes wy-wave { to { translate: -50px 0; } }
@keyframes wy-boat { 50% { translate: 0 4px; } }
@keyframes wy-bob { 50% { translate: 0 -7px; } }
@keyframes wy-rise { 0% { translate: 0 0; opacity: 0; } 20% { opacity: 1; } 100% { translate: 0 -40px; opacity: 0; } }
@keyframes wy-new { 0% { transform: scale(.3) rotate(-16deg); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* Karta w centrum uwagi i zagrożenia, które już były. */
.wy-spot { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 12px; border-radius: 16px; background: var(--panel); }
.wy-spot svg { flex: none; width: 84px; height: 84px; }
.wy-spot strong { font-family: var(--font-head); font-size: 1.2rem; letter-spacing: -.01em; }
.wy-spot p { margin: 4px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.35; }
.wy-spot.doom { box-shadow: inset 0 0 0 2px var(--bad); }
.wy-danger { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.wy-danger .label { margin-right: 4px; }
.wy-hz-chip svg { display: block; width: 34px; height: 34px; }

/* Decyzja: dwa duże przyciski. */
.wy-choose { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.wy-go { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 10px 14px; border: 0; border-radius: 18px; background: var(--panel); color: var(--text); font: inherit; cursor: pointer; transition: background .2s, transform .2s var(--ease); }
.wy-go strong { font-family: var(--font-head); font-size: 1.05rem; text-align: center; }
.wy-go small { color: var(--muted); font-size: .78rem; text-align: center; }
.wy-go:active { transform: scale(.97); }
.wy-go.up[aria-pressed="true"] { background: var(--good); color: #121017; }
.wy-go.down[aria-pressed="true"] { background: var(--game); color: #121017; }
.wy-go[aria-pressed="true"] small { color: inherit; opacity: .75; }
.wy-sonar-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 10px; }
.wy-sonar-res { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 12px; border-radius: 14px; background: var(--panel-2); box-shadow: inset 0 0 0 2px var(--game); color: var(--game); }
.wy-sonar-res > div { flex: 1; min-width: 0; color: var(--text); }
.wy-sonar-res strong { display: block; font-family: var(--font-head); }
.wy-sonar-res p { margin: 4px 0 0; color: var(--bad); font-size: .85rem; font-weight: 600; }
.wy-sonar-res > svg:last-child { flex: none; width: 56px; height: 56px; }
.wy-sonar-res.warn { box-shadow: inset 0 0 0 2px var(--bad); }
.wy-safe { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; padding: 14px; border-radius: 14px; background: var(--panel); color: var(--muted); }
.wy-safe .wy-ico { flex: none; color: var(--good); }

/* Nurkowie i skrzynie. */
.wy-stand { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.wy-stand li { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 12px; background: var(--panel); }
.wy-stand li.diving { box-shadow: inset 0 0 0 1.5px var(--game); }
.wy-stand li.lost { opacity: .6; }
.wy-stand li.me .nm { font-weight: 750; }
.wy-stand .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.wy-where { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: .82rem; font-weight: 600; white-space: nowrap; }
.wy-stand li.diving .wy-where { color: var(--game); }
.wy-gain { color: var(--good); font-weight: 750; }
.wy-chest { display: inline-flex; align-items: center; gap: 5px; min-width: 3.2em; justify-content: flex-end; color: #f2c94c; font-family: var(--font-head); font-variant-numeric: tabular-nums; }
.wy-moves { margin-top: 14px; }
.wy-moves .label { display: inline-flex; align-items: center; gap: 6px; }
.wy-moves ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.wy-moves li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 6px; border-radius: 12px; background: var(--panel); font-weight: 600; animation: wy-new .45s var(--ease) both; animation-delay: calc(var(--i) * 90ms); }
.wy-moves.up li { box-shadow: inset 0 0 0 1.5px var(--good); }
.wy-moves.up li b { color: var(--good); }
.wy-moves.down li { background: var(--panel-2); }
.wy-relic-note { margin: 12px 0 0; color: #f2c94c; font-weight: 700; }
.wy-verdict { margin-top: 10px; }
.wy-verdict p { margin: 10px 0 0; }
.wy-removed { opacity: .7; font-size: .9rem; }
.wy-final { display: flex; align-items: center; gap: 12px; }
.wy-final > div { flex: 1; min-width: 0; }
.wy-chest-art { flex: none; width: 32%; max-width: 190px; }
.wy-ch-lid, .wy-ch-box { fill: #a9825a; stroke: #121017; stroke-width: 4; }
.wy-ch-band { fill: none; stroke: #f2c94c; stroke-width: 5; }
.wy-ch-lock { fill: #f2c94c; stroke: #121017; stroke-width: 3; }
.wy-final-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.wy-final-list li { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 12px; background: var(--panel); }
.wy-final-list li.me { box-shadow: inset 0 0 0 1.5px var(--game); }
.wy-final-list .pl { width: 1.4em; text-align: center; color: var(--muted); font-family: var(--font-head); font-weight: 700; }
.wy-final-list .nm { flex: 1; min-width: 0; font-weight: 650; }
.wy-rel { display: inline-flex; gap: 2px; }
.wy-rel svg { width: 26px; height: 26px; }
.wy-hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.wy-hist li { display: flex; align-items: baseline; gap: 10px; padding: 8px 12px; border-radius: 10px; background: var(--panel); }
.wy-hist b { color: var(--game); font-family: var(--font-head); }
.wy-hist small { margin-left: auto; color: var(--muted); }

/* TV: scena po lewej (mieści się w wysokości ekranu), karta, wybory i skrzynie po prawej. */
.wy-tv { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2rem; align-items: start; width: 100%; max-width: 1700px; margin: 0 auto; }
.wy-tv-scene .wy-scene { width: auto; max-width: 100%; max-height: calc(100vh - 130px); margin: 0 auto; }
.wy-tv-side .who-head { margin-top: 0; font-size: 1.2rem; }
.wy-tv-side .who-head .countdown { font-size: clamp(2.4rem, 4vw, 4rem); line-height: 1; color: var(--text); }
.wy-tv-side .wy-spot svg { width: 120px; height: 120px; }
.wy-tv-side .wy-spot strong { font-size: 1.7rem; }
.wy-tv-side .wy-spot p { font-size: 1.1rem; }
.wy-tv-side .wy-hz-chip svg { width: 46px; height: 46px; }
.wy-tv-side .vote-status { margin-top: 1rem; }
.wy-stand.big { margin-top: 1rem; }
.wy-stand.big li { padding: .6rem 1rem .6rem .6rem; font-size: 1.2rem; }
html.tv .wy-stand .chip-av.xs { width: 2.2rem; height: 2.2rem; font-size: 1.1rem; }
.wy-tv-side .wy-moves li { font-size: 1.2rem; }
html.tv .wy-tv-side .wy-verdict { margin: 0; padding: 1.4rem 1.6rem; border-radius: 1.4rem; }
html.tv .wy-tv-side .wy-verdict h2 { font-size: clamp(2.2rem, 3.2vw, 3.4rem); }
html.tv .wy-tv-side .wy-verdict p { font-size: 1.1rem; }
@media (prefers-reduced-motion: reduce) { .wy-surf, .wy-boat, .wy-diver, .wy-bubbles circle, .wy-new, .wy-moves li, .wy-weed { animation: none; } }

/* ---------- Agenci ----------
   Karty planszy mają container query: napis i znaczki w cqi, więc ta sama karta działa na telefonie (5 wąskich
   kolumn) i na TV. Zakryta karta: krem z grafitowym napisem. Odkryta: kolor drużyny (agent w kapeluszu),
   szary przechodzień albo grafitowa pułapka z czerwonym krzyżykiem. Szef widzi kolory na zakrytych kartach. */
.ag { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; --ag-trap: #0c0b10; --ag-neutral: #d6cfc2; --ag-x: var(--bad); }

.ag-teams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ag-team { --tc: var(--t0); min-width: 0; padding: 10px 12px 11px; border-radius: 14px; background: var(--panel); box-shadow: inset 0 3px 0 var(--tc); transition: background .25s; }
.ag-team.t1 { --tc: var(--t1); }
.ag-team.on { background: color-mix(in srgb, var(--tc) 15%, var(--panel)); }
.ag-team.win { background: var(--tc); color: var(--bg); }
.ag-team.win .label, .ag-team.win .ag-left strong, .ag-team.win .ag-boss, .ag-team.win .ag-left span { color: var(--bg); }
.ag-team header { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 20px; }
.ag-team .label { color: var(--tc); }
.ag-turn { padding: 2px 7px; border-radius: 6px; background: var(--tc); color: var(--bg); font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ag-left { display: flex; align-items: baseline; gap: 7px; margin-top: 2px; }
.ag-left strong { font-family: var(--font-head); font-size: 2rem; line-height: 1; color: var(--tc); font-variant-numeric: tabular-nums; }
.ag-left span { color: var(--muted); font-size: .8rem; font-weight: 600; }
.ag-boss { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; min-width: 0; color: var(--muted); font-size: .8rem; font-weight: 600; }
.ag-boss span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-boss .chip-av.xs { width: 20px; height: 20px; font-size: .66rem; border-radius: 6px; }

.ag-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 34px; }
.ag-role { display: inline-flex; align-items: center; gap: 8px; margin: 0; min-width: 0; color: var(--muted); font-size: .88rem; font-weight: 650; --tc: var(--t0); }
.ag-role.t1 { --tc: var(--t1); }
.ag-role::before { content: ''; flex: none; width: 9px; height: 9px; border-radius: 2px; background: var(--tc); transform: rotate(16deg); }
.ag-role.boss { padding: 6px 10px; border-radius: 10px; background: color-mix(in srgb, var(--tc) 16%, transparent); color: var(--text); }
.ag-role.boss::before { display: none; }
.ag-role.boss .ic { color: var(--tc); }
.ag-clock { font-size: 1.5rem; line-height: 1; }

/* Plansza na blacie stołu agentów: ciemny blat z plamą światła lampy i pieczęcią "ściśle tajne" w tle. */
.ag-desk { position: relative; isolation: isolate; container-type: inline-size; padding: 3.2cqw 2.6cqw 2.6cqw; border-radius: 18px; background: #1c2230; box-shadow: inset 0 0 0 3px #263045, 0 6px 0 #0e1118; overflow: hidden; }
.ag-lamp { position: absolute; left: 50%; top: -45cqw; z-index: -1; width: 120cqw; height: 100cqw; border-radius: 50%; background: rgba(255, 236, 190, .055); transform: translateX(-50%); pointer-events: none; }
.ag-stamp { position: absolute; right: 3cqw; bottom: 4cqw; z-index: -1; padding: .6cqw 2.4cqw; border: .7cqw solid rgba(239, 91, 91, .14); border-radius: 1.6cqw; color: rgba(239, 91, 91, .14); font: 700 6.4cqw/1 var(--font-head); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; transform: rotate(-16deg); pointer-events: none; }
.ag-desk.shake { animation: ag-shake .6s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes ag-shake { 15% { transform: translate(-1.2%, .6%) rotate(-.6deg); } 30% { transform: translate(1.4%, -.8%) rotate(.6deg); } 45% { transform: translate(-1%, .4%); } 60% { transform: translate(.8%, -.3%); } 80% { transform: translate(-.3%, 0); } }

.ag-board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2cqw 1.8cqw; }
.ag-board.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.6cqw 2.4cqw; }

/* Karta: teczka z aktami. Dwie strony (awers ze słowem, rewers z rysunkiem) obracane w 3D. */
.ag-card {
  position: relative; container-type: inline-size; aspect-ratio: 4 / 3; min-width: 0; padding: 0; border: 0; border-radius: 9px;
  background: none; color: var(--bg); perspective: 700px; transform: rotate(var(--rot, 0deg));
  transition: transform .15s var(--ease);
}
.ag-card:disabled { cursor: default; }
.ag-in { position: absolute; inset: 0; border-radius: inherit; transform-style: preserve-3d; transition: transform .6s var(--ease); }
.ag-front, .ag-back { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.ag-front { display: flex; align-items: center; justify-content: center; padding: 9cqi 5cqi 5cqi; background: #f4efe4; box-shadow: 0 1.6cqi 0 #b9ae99, inset 0 0 0 .6cqi #e6ddcb; }
.ag-tab { position: absolute; left: 7cqi; top: 0; width: 34cqi; height: 6cqi; border-radius: 0 0 2cqi 2cqi; background: #dcd2bd; }
.ag-tab::after { content: ''; position: absolute; right: -16cqi; top: 1.6cqi; width: 10cqi; height: 2.2cqi; border-radius: 1cqi; background: #dcd2bd; }
.ag-back { transform: rotateY(180deg); background: #16141c; box-shadow: 0 1.6cqi 0 rgba(0, 0, 0, .45); }
.ag-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.ag-lbl { position: absolute; left: 50%; bottom: 4cqi; max-width: 92%; padding: .8cqi 3cqi; border-radius: 2cqi; background: #faf8f4; color: #16141c; font: 700 8.6cqi/1.2 var(--font-head); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transform: translateX(-50%); }
.ag-w { max-width: 100%; font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: -.01em; line-height: 1.04; text-align: center; overflow-wrap: normal; hyphens: manual; font-size: 15cqi; color: #241f2c; }
.ag-card.l1 .ag-w { font-size: 18.5cqi; }
.ag-card.l2 .ag-w { font-size: 15cqi; }
.ag-card.l3 .ag-w { font-size: 12.5cqi; }
.ag-card.l4 .ag-w { font-size: 10.8cqi; }
.ag-card.l5 .ag-w { font-size: 9.4cqi; }
.ag-em { display: block; width: 40cqi; height: auto; flex: none; }
.ag-em-glass { fill: var(--glass); }
.ag-card.k0 { --kc: var(--t0); --glass: var(--t0); }
.ag-card.k1 { --kc: var(--t1); --glass: var(--t1); }

/* Wskazywanie: karta podskakuje pod palcem, moja ma obwódkę w kolorze drużyny na turze. */
.ag-card.can { cursor: pointer; }
.ag-card.can:hover { transform: rotate(var(--rot, 0deg)) translateY(-1.5%); }
.ag-card.can:active { transform: rotate(var(--rot, 0deg)) scale(.95); }
.ag-card.mine .ag-front { box-shadow: 0 1.6cqi 0 #b9ae99, inset 0 0 0 2.4cqi var(--cur, var(--text)); }
.ag-card.marked:not(.mine) .ag-front { box-shadow: 0 1.6cqi 0 #b9ae99, inset 0 0 0 1.4cqi color-mix(in srgb, var(--cur, var(--text)) 70%, transparent); }

/* Odkryte: rewers do góry. Świeżo odkryta unosi się i przewraca. */
.ag-card.rev .ag-in { transform: rotateY(180deg); }
.ag-card.rev.flip { z-index: 2; }
.ag-card.rev.flip .ag-in { animation: ag-turn .75s var(--ease) both; }
@keyframes ag-turn {
  0% { transform: rotateY(0) scale(1); }
  45% { transform: rotateY(95deg) scale(1.16) translateZ(40px); }
  100% { transform: rotateY(180deg) scale(1); }
}

/* Klucz szefa: zakryte karty z paskiem w kolorze rodzaju, odkryte przygaszone. */
.ag-card.key:not(.rev) .ag-front { background: color-mix(in srgb, var(--kc, #c9c1b3) 62%, #f4efe4); box-shadow: 0 1.6cqi 0 color-mix(in srgb, var(--kc, #c9c1b3) 60%, #16141c); }
.ag-card.key.k2:not(.rev) .ag-front { --kc: #a39a8b; }
.ag-card.key.k3:not(.rev) .ag-front { background: #3a3644; box-shadow: 0 1.6cqi 0 #0c0b10, inset 0 0 0 1.4cqi #ff5d6c; }
.ag-card.key.k3:not(.rev) .ag-w { color: #faf8f4; }
.ag-card.key:not(.rev) .ag-tab { background: var(--kc, #b9b0a0); }
.ag-card.key.k3:not(.rev) .ag-tab { background: #ff5d6c; }
.ag-board.with-key:not(.final) .ag-card.rev { opacity: .35; }
/* Wynik: nieodkryte karty obracają się po kolei i zostają lekko przygaszone, z przerywaną obwódką. */
.ag-card.late .ag-in { animation: ag-turn .75s var(--ease) var(--d, 0ms) both; }
.ag-card.late .ag-back { opacity: .62; outline: .9cqi dashed rgba(250, 248, 244, .55); outline-offset: -2.4cqi; }

/* Wskazania drużyny: postacie zgadujących (w kapeluszach) stoją na górnej krawędzi karty. */
.ag-marks { position: absolute; left: 50%; top: -20cqi; z-index: 3; display: flex; align-items: flex-end; transform: translateX(-50%); pointer-events: none; }
.ag-marks .ag-agent { width: 22cqi; margin: 0 -3.5cqi; }
.ag-marks b { margin-left: 3cqi; padding: 0 3.4cqi; border-radius: 3cqi; background: var(--cur, var(--text)); color: var(--bg); font: 700 9cqi/1.6 var(--font-head); font-variant-numeric: tabular-nums; }
.ag-marks.inline { position: static; flex-direction: row; gap: 0; margin-left: auto; transform: none; }
.ag-marks.inline .fig-av .fig { width: 20px; }
.ag-marks.inline b { margin-left: 6px; padding: 0 6px; border-radius: 6px; font-size: .78rem; }

/* Wybuch pułapki: gwiazda z napisem, błysk na cały blat, odłamki. */
.ag-boom { position: absolute; z-index: 10; width: 46cqw; aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; animation: ag-boom 1.5s var(--ease) both; }
.ag-boom svg { width: 100%; height: 100%; animation: ag-spin 1.5s linear both; }
.ag-boom b { position: absolute; left: 50%; top: 50%; padding: .4cqw 2cqw; background: #16141c; color: #ffe066; border-radius: 1cqw; font: 700 6.4cqw/1.1 var(--font-head); white-space: nowrap; transform: translate(-50%, -50%) rotate(-12deg) skewX(-10deg); }
@keyframes ag-boom { 0% { transform: translate(-50%, -50%) scale(.1); opacity: 1; } 18% { transform: translate(-50%, -50%) scale(1.15); } 30% { transform: translate(-50%, -50%) scale(1); } 75% { opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1.1); opacity: 0; } }
@keyframes ag-spin { to { transform: rotate(40deg); } }
.ag-flash { position: absolute; inset: 0; z-index: 9; background: #fff6d8; pointer-events: none; animation: ag-flash .5s ease-out both; }
@keyframes ag-flash { 0% { opacity: .85; } 100% { opacity: 0; } }
.ag-bit { position: absolute; z-index: 11; width: 1.6cqw; height: 1cqw; border-radius: .2cqw; pointer-events: none; }

/* Agent (postać w kapeluszu, szef także w okularach) */
.ag-agent { --tc: var(--t0); position: relative; display: inline-flex; flex: none; }
.ag-agent.t1 { --tc: var(--t1); }
.ag-agent .fig { width: 100%; }
.ag-agent .fig-j { position: relative; }
.ag-hat { position: absolute; left: 50%; top: 4%; z-index: 2; width: 66%; transform: translateX(-50%); }
.ag-glasses { position: absolute; left: 50%; top: 31.5%; z-index: 2; width: 48%; transform: translateX(-50%); }
.ag-boss .ag-agent { width: 22px; }
.ag-team .ag-boss .ag-agent { width: 24px; }

/* Podpowiedź szefa jako telegram: kremowy papier, słowo maszynowo, liczba w okrągłej pieczątce. */
.ag-clue { --tc: var(--t0); position: relative; padding: 12px 14px 12px; border-radius: 6px; background: #f4efe4; color: #16141c; box-shadow: 0 4px 0 #b9ae99; transform: rotate(-.8deg); }
.ag-clue.t1 { --tc: var(--t1); }
.ag-clue::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; border-radius: 6px 6px 0 0; background: var(--tc); }
.ag-clue .label { color: #6f6a7a; }
.ag-clue-main { display: flex; align-items: center; gap: 14px; margin-top: 2px; }
.ag-clue-main strong { flex: 1; min-width: 0; overflow-wrap: anywhere; font-family: var(--font-head); font-size: clamp(1.7rem, 8vw, 2.3rem); line-height: 1.05; letter-spacing: .04em; text-transform: uppercase; }
.ag-clue-main b { flex: none; display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 50%; border: 3px solid var(--tc); box-shadow: inset 0 0 0 3px #f4efe4, inset 0 0 0 5px var(--tc); color: var(--tc); font-family: var(--font-head); font-size: 1.5rem; transform: rotate(-14deg); }
.ag-clue p { margin: 6px 0 0; color: #6f6a7a; font-size: .85rem; font-weight: 600; }
.ag-clue.stamp { animation: ag-telegram .55s var(--ease) both; }
.ag-clue.stamp .ag-clue-main b { animation: ag-stamp .45s .45s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes ag-telegram { from { transform: translateY(-30%) rotate(-6deg); opacity: 0; } }
@keyframes ag-stamp { from { transform: rotate(-30deg) scale(2.4); opacity: 0; } }

/* Ostatnio odkryta karta. */
.ag-last { display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 12px; border-radius: 12px; background: var(--panel); font-weight: 600; --kc: var(--muted); }
.ag-last.k0 { --kc: var(--t0); --glass: var(--panel); }
.ag-last.k1 { --kc: var(--t1); --glass: var(--panel); }
.ag-last.k3 { --kc: var(--bad); }
.ag-last .ag-em { width: 28px; color: var(--kc); }
.ag-last b { color: var(--kc); }
.ag-last small { display: block; color: var(--dim); font-weight: 500; font-size: .8rem; }
.ag-last.pop { animation: step-in .4s .35s var(--ease) both; }

/* Panel akcji */
.ag-panel { display: flex; flex-direction: column; gap: 8px; }
.ag-panel .dock-wait.solo { margin-top: 4px; padding-top: 4px; min-height: 48px; }
.ag-panel .help { margin: 0; }
.ag-note { margin: 0; color: var(--muted); font-weight: 600; text-align: center; }
.ag-pass { justify-content: flex-start; gap: 10px; }
.ag-pass.on { box-shadow: inset 0 0 0 2px var(--cur, var(--text)); background: color-mix(in srgb, var(--cur, var(--text)) 12%, transparent); }
.ag-form { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; background: var(--panel); box-shadow: inset 0 3px 0 var(--cur, var(--text)); }
.ag-form .input { width: 100%; text-transform: uppercase; font-family: var(--font-head); letter-spacing: .02em; }
.ag-form .input::placeholder { text-transform: none; font-family: 'Inter', system-ui, sans-serif; letter-spacing: 0; }
.ag-nums { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
.ag-nums button { min-height: 42px; padding: 0; border: 0; border-radius: 9px; background: var(--panel-2); font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--muted); transition: background .15s, color .15s, transform .12s; }
.ag-nums button:hover { color: var(--text); }
.ag-nums button[aria-pressed="true"] { background: var(--cur, var(--text)); color: var(--bg); }
.ag-err { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--bad); font-weight: 600; font-size: .9rem; animation: step-in .3s var(--ease) both; }
@media (max-width: 400px) { .ag-nums { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* Historia podpowiedzi */
.ag-history { border-radius: 14px; background: var(--panel); }
details.ag-history summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 12px 14px; cursor: pointer; color: var(--muted); font-weight: 650; }
details.ag-history summary::-webkit-details-marker { display: none; }
details.ag-history summary .block-note { margin-left: auto; }
details.ag-history .ag-hist-cols { padding: 0 14px 14px; }
.block.ag-history { padding: 12px 14px 14px; }
.ag-hist-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ag-hist-cols section { --tc: var(--t0); min-width: 0; }
.ag-hist-cols section.t1 { --tc: var(--t1); }
.ag-hist-cols .label { color: var(--tc); }
.ag-hist { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ag-hist li { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ag-hw { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; overflow-wrap: anywhere; }
.ag-hw b { display: inline-grid; place-items: center; min-width: 1.4em; height: 1.4em; margin-left: 4px; border-radius: .35em; background: var(--tc); color: var(--bg); font-size: .8em; transform: rotate(16deg); }
.ag-hist li.timeout .ag-hw { color: var(--dim); font-family: inherit; text-transform: none; font-weight: 600; font-size: .85rem; }
.ag-hcards { display: flex; flex-wrap: wrap; gap: 4px; }
.ag-hcards i { padding: 1px 6px; border-radius: 5px; font-style: normal; font-size: .72rem; font-weight: 700; text-transform: uppercase; background: var(--panel-3); color: var(--muted); }
.ag-hcards i.k0 { background: var(--t0); color: var(--bg); }
.ag-hcards i.k1 { background: var(--t1); color: var(--bg); }
.ag-hcards i.k3 { background: var(--ag-trap); color: var(--bad); box-shadow: inset 0 0 0 1px var(--bad); }

/* Wynik */
.ag-verdict.t0 { background: var(--t0); color: var(--bg); }
.ag-verdict.t1 { background: var(--t1); color: var(--bg); }
.ag-result .actions { margin-top: 4px; }
.ag-result > .help { margin: 0; }

/* TV: blat z planszą po lewej (mieści się w wysokości ekranu), po prawej zegar, telegram i kwatery drużyn. */
.ag-tv { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(21rem, 27rem); gap: 2rem; align-items: start; padding-top: .4rem; }
.ag-tv-board { display: flex; flex-direction: column; gap: 1rem; width: min(100%, calc((100vh - 10rem) * 1.45)); margin: 0 auto; }
.ag-tv .ag-desk { border-radius: 1.6rem; box-shadow: inset 0 0 0 .3rem #263045, 0 .6rem 0 #0e1118; }
.ag-tv .ag-card { border-radius: 1rem; }
.ag-tv .ag-last { padding: .8rem 1.2rem; font-size: 1.35rem; }
.ag-tv .ag-last .ag-em { width: 2.6rem; }
.ag-tv .ag-last small { font-size: 1rem; }
.ag-tv-side { display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }
.ag-tv-clock:empty { display: none; }
.ag-tv-clock .ag-clock { display: block; font-size: clamp(3rem, 5vw, 5rem); line-height: .9; letter-spacing: -.04em; }
.ag-tv-status { display: flex; flex-direction: column; gap: .7rem; }
.ag-tv-status .help { margin: 0; font-size: 1.05rem; }
.ag-tv-status.t0 .label { color: var(--t0); }
.ag-tv-status.t1 .label { color: var(--t1); }
.ag-tv-think { display: flex; align-items: center; gap: 1.2rem; padding: 1.2rem 1.4rem; border-radius: 1.2rem; background: var(--panel); }
.ag-tv-think .ag-agent { width: 6rem; }
.ag-tv-think p { margin: 0; display: flex; flex-direction: column; gap: .5rem; font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; line-height: 1.05; letter-spacing: -.02em; }
.ag-clue.big { padding: 1.3rem 1.5rem 1.2rem; border-radius: .6rem; box-shadow: 0 .4rem 0 #b9ae99; }
.ag-clue.big::before { height: .45rem; }
.ag-clue.big .label { font-size: .95rem; }
.ag-clue.big .ag-clue-main strong { font-size: clamp(2.4rem, 3.6vw, 4rem); }
.ag-clue.big .ag-clue-main b { width: 4.6rem; height: 4.6rem; border-width: .3rem; font-size: 2.4rem; }
.ag-clue.big p { font-size: 1.05rem; }

/* Kwatery drużyn: nazwa, rząd agentów do znalezienia (znalezieni zapaleni), drużyna w kapeluszach. */
.ag-hqs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.ag-hq { --tc: var(--t0); min-width: 0; padding: 1rem 1rem 1.1rem; border-radius: 1.1rem; background: var(--panel); box-shadow: inset 0 .3rem 0 var(--tc); transition: background .3s; }
.ag-hq.t1 { --tc: var(--t1); }
.ag-hq.on { background: color-mix(in srgb, var(--tc) 16%, var(--panel)); }
.ag-hq.win { background: color-mix(in srgb, var(--tc) 30%, var(--panel)); box-shadow: inset 0 0 0 .3rem var(--tc); }
.ag-hq header { display: flex; align-items: center; justify-content: space-between; gap: .4rem; }
.ag-hq-name { color: var(--tc); font: 700 1.1rem var(--font-head); letter-spacing: .06em; text-transform: uppercase; }
.ag-hq .ag-turn { padding: .15rem .5rem; border-radius: .4rem; background: var(--tc); color: var(--bg); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ag-tally { display: flex; flex-wrap: wrap; gap: .15rem; margin-top: .6rem; }
.ag-tally i { width: 1.7rem; color: var(--panel-3); --glass: var(--panel); transition: color .3s; }
.ag-tally i .ag-em { width: 100%; }
.ag-tally i.got { color: var(--tc); --glass: var(--bg); }
.ag-hq-left { margin: .3rem 0 0; color: var(--muted); font-size: .95rem; font-weight: 600; }
.ag-hq-left strong { color: var(--tc); font: 700 1.9rem/1 var(--font-head); vertical-align: -.15em; }
.ag-squad { list-style: none; margin: .8rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem .6rem; }
.ag-squad li { display: flex; flex-direction: column; align-items: center; width: 4.2rem; min-width: 0; font-size: .85rem; font-weight: 650; }
.ag-squad li span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-squad li em { margin-top: .1rem; padding: 0 .35rem; border-radius: .3rem; background: var(--tc); color: var(--bg); font-style: normal; font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ag-squad .ag-agent { width: 3.4rem; }
.ag-squad li.boss .ag-agent { width: 3.9rem; }
.ag-squad li.away { opacity: .45; }
.ag-tv-host .text-link { margin-top: 0; }
html.tv .ag-tv-side .verdict { margin: 0; padding: 1.4rem 1.6rem; border-radius: 1.4rem; }
html.tv .ag-tv-side .verdict h2 { font-size: clamp(2.4rem, 3.4vw, 3.8rem); }
.ag-tv-side .actions { margin-top: 0; }
.ag-tv.result .ag-hist-cols { gap: 1rem; }
.ag-tv, .ag-result { position: relative; }
@media (max-width: 1000px) { .ag-tv { grid-template-columns: 1fr; } .ag-tv-board { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .ag-card.rev.flip .ag-in, .ag-card.late .ag-in, .ag-last.pop, .ag-err, .ag-clue.stamp, .ag-clue.stamp .ag-clue-main b, .ag-desk.shake { animation: none; } }

/* ---------- Menu: nagłówek sekcji, karty i arkusz gry ---------- */
.hero { padding: clamp(28px, 6vw, 64px) 0 clamp(28px, 5vw, 48px); }
#games-h {
  display: flex; align-items: baseline; gap: 10px; margin: 0 0 18px;
  font-family: var(--font-head); font-size: clamp(1.6rem, 4vw, 2rem); font-weight: 700; line-height: 1.1;
  letter-spacing: -.02em; text-transform: none; color: var(--text);
}
#games-h::after { content: attr(data-count); font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--dim); }

/* Przycisk w kolorze gry spina kartę z ilustracją; meta i przycisk zawsze na dole karty, więc rząd kart trzyma linię. */
.feature .btn.primary { background: var(--game); }
.feature .btn.primary:hover { background: color-mix(in srgb, var(--game) 80%, #fff); }
.feature-grid .feature-meta { margin-top: auto; padding-top: 4px; }
.feature-open { display: none; }

/* Telefon: gry jako kafelki w dwóch kolumnach (cała lista na kilku ekranach zamiast kilkunastu), szczegóły w arkuszu. */
@media (max-width: 620px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .feature-grid .feature { position: relative; border-radius: 16px; }
  .feature-grid .feature:active { transform: scale(.98); }
  .feature-grid .feature-art { aspect-ratio: 4 / 3; padding: 12px; }
  .feature-grid .feature-body { padding: 10px 12px 13px; gap: 5px; }
  .feature-grid .feature-title { font-size: 1.14rem; line-height: 1.12; letter-spacing: -.02em; }
  .feature-grid :is(.feature-tags, .feature-tag, .btn, .feature-links, .help) { display: none; }
  .feature-grid .feature-meta { margin: auto 0 0; padding: 0; gap: 3px 10px; font-size: .78rem; }
  .feature-grid .feature-meta span:nth-child(n+3), .feature-grid .feature-meta em { display: none; }
  .feature-grid .feature-meta .ic { width: 13px; height: 13px; }
  .feature-grid .feature-play { left: 8px; bottom: 8px; padding: 5px 10px 5px 8px; font-size: .74rem; }
  .feature-grid .feature-art .feature-play svg { width: 13px; height: 13px; }
  .feature-open { display: block; position: absolute; inset: 0; z-index: 1; width: 100%; padding: 0; border: 0; border-radius: inherit; background: transparent; }

  /* Filtry w jednym rzędzie każdy, rodzaje przewijane w bok aż do krawędzi ekranu. */
  .filters { gap: 14px; }
  .filter-row { gap: 7px; }
  .filter-row .chips:not(.nums) { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
  .filter-row .chips:not(.nums)::-webkit-scrollbar { display: none; }
  .filter-row .chip { flex: none; }
}

.game-sheet {
  width: 100%; max-width: 560px; max-height: calc(100dvh - 32px); margin: auto auto 0; padding: 0; border: 0;
  overflow-y: auto; overscroll-behavior: contain; background: var(--panel); color: var(--text); border-radius: 22px 22px 0 0;
}
.game-sheet::backdrop { background: rgba(10, 9, 14, .72); }
.game-sheet .feature { grid-template-columns: 1fr; border-radius: 0; background: none; }
.game-sheet .feature:hover { transform: none; }
.game-sheet .feature-art { min-height: 0; aspect-ratio: 16 / 9; padding: 22px 28px 14px; }
.game-sheet .feature-body { padding: 20px 20px calc(24px + env(safe-area-inset-bottom)); gap: 10px; justify-content: flex-start; }
.game-sheet .feature-title { font-size: 2.1rem; }
.game-sheet .feature-meta { margin: 2px 0 8px; }
.game-sheet .btn.primary { align-self: stretch; }
.game-sheet details.rules { margin-top: 14px; background: var(--panel-2); }
.sheet-close { position: absolute; top: 10px; right: 10px; z-index: 2; background: var(--bg); }
.sheet-close:hover { background: var(--panel-2); }
@media (min-width: 621px) { .game-sheet { margin: auto; border-radius: 22px; } }
/* Filmik z zasadami: poziomy na szerokość okna, pionowy na wysokość. */
.video-sheet { margin: auto; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: #000; max-width: 96vw; max-height: 94dvh; }
.video-sheet::backdrop { background: rgba(10, 9, 14, .86); }
.video-sheet video { display: block; width: min(96vw, 1280px, calc(94dvh * 16 / 9)); aspect-ratio: 16 / 9; background: #000; }
.video-sheet.tall video { width: min(96vw, calc(94dvh * 9 / 16)); aspect-ratio: 9 / 16; }
@media (prefers-reduced-motion: no-preference) {
  .game-sheet[open] { animation: sheet-up .32s var(--ease) both; }
  .game-sheet[open]::backdrop { animation: fade-in .25s ease both; }
}
@keyframes sheet-up { from { transform: translateY(48px); opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }

/* ---------- Wyłączone przyciski: neutralne zamiast przygaszonego koloru (malinowy przy .4 wyglądał jak bordowy) ---------- */
.btn:is(.primary, .light, .danger):disabled,
.btn:is(.primary, .light, .danger):disabled:hover { background: var(--panel-2); color: var(--dim); opacity: 1; }

/* Ustawienia złożone z kilku części (Impostor: sposób opisu + reszta): ten sam odstęp co między blokami. */
.settings + .settings { margin-top: 28px; }

/* ---------- Sonda ---------- */
.so { display: flex; flex-direction: column; gap: 14px; }
.so-teams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.so-team { --tc: var(--t0); min-width: 0; padding: 9px 12px 10px; border-radius: 14px; background: var(--panel); box-shadow: inset 0 3px 0 var(--tc); transition: background .25s; }
.so-team.t1 { --tc: var(--t1); }
.so-team.on { background: color-mix(in srgb, var(--tc) 16%, var(--panel)); }
.so-team.win { background: var(--tc); color: var(--bg); }
.so-team header { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.so-team .label { color: var(--tc); }
.so-team.win .label, .so-team.win .label small { color: var(--bg); }
.so-team.win .chip-av { box-shadow: 0 0 0 2px var(--bg); }
.so-team .label small { color: var(--muted); font-weight: 600; text-transform: none; letter-spacing: 0; }
.so-crew { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.so-crew > span.away { opacity: .4; }
.so-crew i { overflow: hidden; font-style: normal; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.so-head .who-head { margin: 0; }
.so-x2 { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 6px; background: var(--game); color: var(--bg); letter-spacing: .04em; }
.so-q { margin: 4px 0 0; font-family: var(--font-head); font-size: clamp(1.45rem, 6.4vw, 2rem); line-height: 1.12; letter-spacing: -.02em; overflow-wrap: anywhere; }

.so-board { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.so-row { --tc: var(--game); display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) auto; align-items: stretch; min-height: 46px; border-radius: 12px; background: var(--panel); overflow: hidden; perspective: 600px; }
.so-n { display: grid; place-items: center; background: var(--panel-3); color: var(--muted); font-family: var(--font-head); font-weight: 700; }
.so-a { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 6px 12px; font-family: var(--font-head); font-size: 1.08rem; font-weight: 700; line-height: 1.15; text-transform: uppercase; overflow-wrap: anywhere; }
.so-a small { font-family: 'Inter', system-ui, sans-serif; font-size: .72rem; font-weight: 600; text-transform: none; opacity: .6; }
.so-pts { display: grid; place-items: center; min-width: 3.2rem; padding: 0 10px; font-family: var(--font-head); font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.so-row.open { background: var(--text); color: var(--bg); }
.so-row.open.t0 { --tc: var(--t0); }
.so-row.open.t1 { --tc: var(--t1); }
.so-row.open .so-n { background: var(--tc); color: var(--bg); }
.so-row.open .so-pts { background: color-mix(in srgb, var(--tc) 35%, var(--text)); }
.so-row.missed { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.so-row.missed .so-n { background: transparent; }
.so-row.last { box-shadow: 0 0 0 3px var(--tc); }
.so-row.flip .so-a, .so-row.flip .so-pts { animation: so-flip .6s var(--ease) both; }
@keyframes so-flip { from { transform: rotateX(90deg); opacity: 0; } to { transform: none; opacity: 1; } }

.so-potbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.so-pot { display: flex; align-items: baseline; gap: 10px; }
.so-pot strong { font-family: var(--font-head); font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.so-strikes { display: flex; gap: 7px; }
.so-strikes span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; box-shadow: inset 0 0 0 2px var(--line); color: var(--panel-3); transform: rotate(16deg); }
.so-strikes span.on { background: var(--bad); box-shadow: none; color: var(--bg); }
.so-strikes span.pop { animation: so-strike .45s var(--ease) both; }
@keyframes so-strike { from { transform: rotate(16deg) scale(1.9); opacity: 0; } }

.so-panel { display: flex; flex-direction: column; gap: 10px; }
.so-panel:empty { display: none; }
.so-form .add-row { margin-top: 8px; }
.so-lead { margin: 0; font-weight: 650; }
.so-err { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--bad); font-size: .92rem; font-weight: 600; animation: step-in .3s var(--ease) both; }
.so-answering { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--panel); }
.so-answering > div { min-width: 0; }
.so-answering .label { display: block; }
.so-answering b { display: block; font-family: var(--font-head); font-size: 1.3rem; line-height: 1.1; }
.so-typing { min-height: 1.4em; margin: 4px 0 0; color: var(--muted); font-weight: 650; text-transform: uppercase; overflow-wrap: anywhere; }
.so-typing:not(:empty)::after { content: ''; display: inline-block; width: 2px; height: 1em; margin-left: 3px; vertical-align: -2px; background: currentColor; animation: so-blink 1s steps(1) infinite; }
@keyframes so-blink { 50% { opacity: 0; } }

.so-vs { display: flex; align-items: center; justify-content: center; gap: 12px; }
.so-duelist { --tc: var(--t0); flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; padding: 14px 10px; border-radius: 14px; background: var(--panel); box-shadow: inset 0 3px 0 var(--tc); text-align: center; }
.so-duelist.t1 { --tc: var(--t1); }
.so-duelist b { max-width: 100%; font-family: var(--font-head); font-size: 1.15rem; overflow-wrap: anywhere; }
.so-dstate { display: inline-flex; align-items: center; gap: 4px; color: var(--tc); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.so-duelist.done .so-dstate { color: var(--good); }
.so-vs-x { flex: none; color: var(--dim); font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; text-transform: uppercase; }
.so-duel-res { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.so-duel-res li { --tc: var(--t0); display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; background: var(--panel); box-shadow: inset 4px 0 0 var(--tc); }
.so-duel-res li.t1 { --tc: var(--t1); }
.so-duel-res li.win { background: color-mix(in srgb, var(--tc) 18%, var(--panel)); }
.so-duel-res .rn { color: var(--muted); font-size: .9rem; font-weight: 650; }
.so-said { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; overflow-wrap: anywhere; }
.so-duel-res b { color: var(--tc); font-family: var(--font-head); }
.so-big { --tc: var(--game); margin: 0; color: var(--tc); font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; animation: step-in .4s var(--ease) both; }
.so-big.t0 { --tc: var(--t0); }
.so-big.t1 { --tc: var(--t1); }
.so-steal-tag { --tc: var(--t0); align-self: flex-start; margin: 0; padding: 4px 12px; border-radius: 8px; background: var(--tc); color: var(--bg); font-family: var(--font-head); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; transform: rotate(-4deg); }
.so-steal-tag.t1 { --tc: var(--t1); }
.so-misses { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.so-misses li { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 10px; border-radius: 10px; background: var(--panel); font-size: .9rem; font-weight: 650; overflow-wrap: anywhere; }
.so-misses li .ic { color: var(--bad); }
.so-misses small { color: var(--muted); font-weight: 600; }
.so-hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.so-hist li { --tc: var(--t0); display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 12px; background: var(--panel); box-shadow: inset 4px 0 0 var(--tc); font-weight: 600; }
.so-hist li.t1 { --tc: var(--t1); }
.so-hist b { color: var(--tc); font-family: var(--font-head); white-space: nowrap; }
.so-verdict.t0 { background: var(--t0); color: var(--bg); }
.so-verdict.t1 { background: var(--t1); color: var(--bg); }

.so-tv { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(20rem, 28rem); gap: 2.4rem; align-items: start; padding-top: .4rem; }
.so-tv-main, .so-tv-side, .so-tv-status { display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }
.so-tv-status { gap: .8rem; }
.so-head.tv .countdown { font-size: clamp(2.4rem, 4vw, 4rem); line-height: .9; }
.so-head.tv .so-q { font-size: clamp(2.2rem, 3.4vw, 3.6rem); }
.so-tv .so-board { display: grid; grid-auto-flow: column; grid-template-rows: repeat(var(--half), auto); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1rem; }
.so-tv .so-row { grid-template-columns: 3.8rem minmax(0, 1fr) auto; min-height: 4.6rem; border-radius: 1rem; }
.so-tv .so-n { font-size: 1.8rem; }
.so-tv .so-a { padding: .5rem 1.1rem; font-size: clamp(1.4rem, 2vw, 2.2rem); }
.so-tv .so-a small { font-size: .95rem; }
.so-tv .so-pts { min-width: 5rem; font-size: 2.1rem; }
.so-tv .so-pot strong { font-size: 3.6rem; }
.so-tv .so-strikes { gap: .8rem; }
.so-tv .so-strikes span { width: 3.6rem; height: 3.6rem; border-radius: .9rem; }
.so-tv .so-strikes .ic { width: 2rem; height: 2rem; }
.so-tv .so-big { font-size: clamp(2rem, 2.8vw, 3rem); }
.so-tv .so-steal-tag { padding: .4rem 1.2rem; font-size: 1.6rem; }
.so-tv .so-misses li { padding: .5rem .9rem; font-size: 1.1rem; }
.so-tv .so-duelist b { font-size: 1.6rem; }
.so-tv .so-said { font-size: 1.4rem; }
.so-answering.big b { font-size: 2.2rem; }
.so-answering.big .chip-av.lg { width: 4rem; height: 4rem; border-radius: 1rem; font-size: 2rem; }
.so-answering.big .so-typing { color: var(--text); font-size: 1.7rem; }
.so-teams.tv { gap: .8rem; }
.so-teams.tv .so-team { padding: 1rem 1.2rem; border-radius: 1.1rem; }
html.tv .so-tv .verdict { margin: 0; padding: 1.6rem 2rem; border-radius: 1.4rem; }
.so-tv-side .actions { margin-top: 0; }
@media (max-width: 1000px) { .so-tv { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .so-row.flip .so-a, .so-row.flip .so-pts, .so-strikes span.pop, .so-big, .so-err { animation: none; } }

/* Sonda: tablica w ramce ze światełkami, drużyny za pulpitami z wyświetlaczem, wielki czerwony X (js/sonda.js) */
.so-frame { padding: 10px; border-radius: 20px; background: #1f2a4a; border: 3px solid #16141c; outline: 4px dotted #ffd25a; outline-offset: -9px; }
.so-frame .so-board { position: relative; z-index: 1; margin: 6px; }
.so-frame .so-row:not(.open):not(.missed) { background: #2f3d66; color: #ffd25a; }
.so-frame .so-row:not(.open):not(.missed) .so-n { display: grid; place-items: center; }
.so-frame .so-row.missed { box-shadow: inset 0 0 0 1px #4a5a8a; color: #c9d2f0; }
@media (prefers-reduced-motion: no-preference) { .so-frame { animation: kw-bulbs 1.2s steps(2) infinite; } }
.so-tv .so-frame { padding: 1rem; border-radius: 1.6rem; outline-width: .45rem; outline-offset: -.95rem; }
.so-crew { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 2px 4px; margin: 0 0 -8px; }
.so-mate { position: relative; display: flex; flex-direction: column; align-items: center; width: 40px; min-width: 0; }
.so-mate .fig { width: 100%; }
.so-mate i { display: none; }
.so-mate.away .fig-svg { opacity: .4; }
.so-mate.turn { transform: translateY(-6px); }
.so-mate.turn::before { content: ''; position: absolute; left: 50%; bottom: 0; z-index: -1; width: 170%; height: 260%; background: color-mix(in srgb, var(--tc) 22%, transparent); clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%); transform: translateX(-50%); }
.so-team { display: flex; flex-direction: column; justify-content: flex-end; padding: 8px 8px 0; overflow: hidden; }
.so-desk { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 0 -8px; padding: 8px 12px; background: var(--tc); border-top: 3px solid #16141c; }
.so-desk .label { color: #16141c; }
.so-team .so-desk .label small { color: rgba(22, 20, 28, .65); }
.so-disp { min-width: 2.4em; padding: 0 8px; border-radius: 7px; background: #16141c; color: #ffd25a; font-family: var(--font-head); font-size: 1.5rem; line-height: 1.3; text-align: center; font-variant-numeric: tabular-nums; }
.so-team.win { background: color-mix(in srgb, var(--tc) 22%, var(--panel)); color: var(--text); }
.so-team.win .so-desk .label { color: #16141c; }
.so-teams.tv .so-team { padding: 1rem 1rem 0; }
.so-teams.tv .so-crew { gap: .2rem .6rem; margin-bottom: -.8rem; }
.so-teams.tv .so-mate { width: 4.6rem; }
.so-teams.tv .so-mate i { display: block; max-width: 120%; margin-top: -.3rem; padding: 0 .4rem; border-radius: .4rem; background: #16141c; font-size: .9rem; position: relative; z-index: 2; }
.so-teams.tv .so-desk { margin: 0 -1rem; padding: .8rem 1.2rem; }
.so-teams.tv .so-disp { font-size: 2.8rem; }
.so-duelist .fig { width: 64px; }
.so-tv .so-duelist .fig { width: 6rem; }
.so-duelist.t1 .fig { transform: scaleX(-1); }
.so-vs-x { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.so-buzz { width: 44px; height: 26px; border-radius: 50% 50% 4px 4px / 100% 100% 4px 4px; background: #ff3d5f; border: 3px solid #16141c; box-shadow: inset -6px -3px 0 #c8203f, 0 8px 0 -2px #3a3545; }
.so { position: relative; }
.so-bigx { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; gap: 2vw; pointer-events: none; }
.so-bigx span { width: min(30vw, 46vh); animation: so-bigx 1.4s var(--ease) calc(var(--k) * 90ms) both; }
.so-bigx svg { display: block; width: 100%; }
@keyframes so-bigx { 0% { opacity: 0; transform: scale(2.4) rotate(-20deg); } 18% { opacity: 1; transform: scale(.92) rotate(3deg); } 28% { transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .so-bigx span { animation-duration: 1.2s; } }

/* ---------- Quiz ---------- */
.qz-q { margin-top: 10px; }
.qz-opts { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 14px 0 6px; }
@media (min-width: 560px) { .qz-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.qz-opt { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-height: 62px; padding: 10px 14px 10px 10px; border: 0; border-radius: 16px; background: var(--panel); color: var(--text); font: inherit; text-align: left; overflow: hidden; }
button.qz-opt { cursor: pointer; transition: background .15s, box-shadow .15s, opacity .2s; }
button.qz-opt:not(:disabled):active { transform: scale(.98); }
.qz-opt > * { position: relative; }
/* Przekrzywiony jest tylko kafelek (::before), litera stoi prosto. */
.qz-l { --lc: var(--panel-3); position: relative; flex: none; color: var(--bg); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; isolation: isolate; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; }
.qz-l::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--lc); transform: rotate(-16deg); }
.qz-t { flex: 1; min-width: 0; font-weight: 650; font-size: 1.05rem; line-height: 1.2; overflow-wrap: anywhere; }
.qz-opt[aria-pressed="true"] { background: var(--panel-2); box-shadow: inset 0 0 0 2px var(--game); opacity: 1; }
button.qz-opt:disabled:not([aria-pressed="true"]) { opacity: .45; }
.qz-opts.reveal .qz-opt::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--share) * 100%); background: var(--panel-3); opacity: .55; transition: width .6s var(--ease); }
.qz-opts.reveal .qz-opt.off { color: var(--muted); }
.qz-opts.reveal .qz-opt.right { background: var(--game); color: var(--on-accent); }
.qz-opts.reveal .qz-opt.right::before { background: var(--bg); opacity: .12; }
.qz-opts.reveal .qz-opt.mine { box-shadow: inset 0 0 0 2px var(--text); }
.qz-n { margin-left: auto; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.qz-avs { display: flex; flex-wrap: wrap; gap: 4px; flex-basis: 100%; padding-left: 50px; }
.qz-avs .fig { width: 26px; }
.qz-me { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding: 12px 16px; border-radius: 14px; background: var(--panel); }
.qz-me strong { font-family: var(--font-head); font-size: 1.3rem; }
.qz-me b { font-family: var(--font-head); font-size: 1.3rem; color: var(--game); }
.qz-me.good { box-shadow: inset 0 0 0 2px var(--game); }
.qz-me.bad strong { color: var(--muted); }
.qz-sum { margin: 8px 0 0; }
.qz-fast { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; color: var(--game); font-weight: 650; }
/* Quiz na scenie (TV): karta pytania, kafelki A-D, postacie */
.qz-top { position: absolute; left: 50%; top: 5cqh; z-index: 3; width: 80cqw; display: flex; flex-direction: column; align-items: center; gap: 4.5cqh; transform: translateX(-50%); }
.qz-card { position: relative; width: 66cqw; padding: 2.6cqw 3cqw 1.8cqw; background: var(--text); color: var(--bg); border-radius: 1.6cqw; text-align: center; box-shadow: 0 .8cqw 0 rgba(0,0,0,.4); transform: rotate(-.6deg); }
.qz-card .scn-tag { position: absolute; left: 50%; top: 0; transform: translate(-50%, -55%) skewX(-16deg); }
.qz-card h2 { margin: 0; font: 700 2.9cqw/1.12 var(--font-head); letter-spacing: -.02em; }
.qz-meter { display: flex; align-items: center; justify-content: center; gap: 1.2cqw; margin-top: 1.4cqw; font: 700 1.3cqw var(--font-head); }
.qz-meter .scn-count { color: var(--dim); font-weight: 600; }
.qz-meter .scn-bar { background: #e3dde8; }
.qz-grid { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.4cqh 1.6cqw; }
.qz-tile { position: relative; display: flex; align-items: center; gap: 1.2cqw; min-height: 6.2cqw; padding: .9cqw 1.4cqw .9cqw 1cqw; background: var(--panel); border-radius: 1.2cqw; box-shadow: 0 .5cqw 0 rgba(0,0,0,.35); transition: background .4s, color .4s, opacity .4s, transform .5s var(--ease); }
.qz-tile .qz-l { width: 3.6cqw; height: 3.6cqw; border-radius: .9cqw; font-size: 2cqw; }
.qz-tt { flex: 1; min-width: 0; font: 700 2.1cqw/1.15 var(--font-head); }
.qz-heads { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .2cqw; max-width: 40%; }
.qz-heads .fig { width: 2.6cqw; }
.qz-tile.right { background: var(--good); color: var(--bg); transform: scale(1.04) rotate(-.6deg); }
.qz-tile.off { opacity: .4; }
.qz-scn .scn-cast .fig { width: min(9cqw, calc(84cqw / var(--n))); }
@media (prefers-reduced-motion: no-preference) {
  .qz-scn:not(.qz-rev) .qz-card { animation: qz-card-in .8s var(--ease) both; }
  .qz-scn:not(.qz-rev) .qz-tile { animation: scn-pop-in .45s var(--ease) both; }
  .qz-scn:not(.qz-rev) .qz-tile:nth-child(2) { animation-delay: .1s; }
  .qz-scn:not(.qz-rev) .qz-tile:nth-child(3) { animation-delay: .2s; }
  .qz-scn:not(.qz-rev) .qz-tile:nth-child(4) { animation-delay: .3s; }
  .qz-heads .fig { animation: scn-pop-in .4s var(--ease) both; }
}

/* Na oko na scenie (TV): karta pytania, oś ze szpilkami szacunków, flaga z odpowiedzią */
.oko-scn .qz-card { position: absolute; left: 50%; top: 5cqh; z-index: 3; transform: translateX(-50%) rotate(-.6deg); }
.oko-scn .qz-card.oko-card.small { width: 56cqw; padding: 2cqw 2.4cqw 1.4cqw; }
.oko-scn .qz-card.small h2 { font-size: 2.1cqw; }
.oko-cu { margin: 1cqw 0 0; color: var(--dim); font: 600 1.4cqw var(--font-head); }
.oko-lead { position: absolute; left: 0; right: 0; top: 27cqh; z-index: 3; margin: 0; text-align: center; color: var(--muted); font: 700 1.5cqw var(--font-head); }
.oko-scn .scn-cast .fig { width: min(8cqw, calc(84cqw / var(--n))); }
.oko-sline { position: absolute; left: 7cqw; right: 7cqw; top: 51cqh; z-index: 3; height: 0; }
.oko-ax { position: absolute; left: -2cqw; right: -2cqw; top: -.35cqw; height: .7cqw; border-radius: .35cqw; background: var(--panel-3); }
.oko-none { position: absolute; left: 0; right: 0; top: -7cqh; margin: 0; text-align: center; color: var(--muted); font: 600 1.5cqw var(--font-head); }
.oko-pin { position: absolute; top: 0; display: flex; flex-direction: column; align-items: center; transform: translate(-50%, -100%); transition: opacity .4s, transform .5s var(--ease); }
.oko-pin > i { width: .35cqw; height: calc(3.4cqh + var(--lv, 0) * 10cqh); background: var(--text); }
.oko-pin > b { padding: .2cqw .8cqw; border-radius: .6cqw; background: var(--text); color: var(--bg); font: 700 1.45cqw var(--font-head); white-space: nowrap; }
.oko-pw { display: flex; gap: .2cqw; margin-bottom: .4cqh; }
.oko-pw .fig { width: 3cqw; }
.oko-pb { display: flex; align-items: center; gap: .2cqw; margin-bottom: .6cqh; padding: 0 .4cqw; border-radius: .6cqw; background: color-mix(in srgb, var(--good) 18%, transparent); }
.oko-pb:empty { display: none; }
.oko-tick { display: grid; place-items: center; width: 1.6cqw; color: var(--good); }
.oko-tick .ic { width: 100%; height: auto; }
.oko-pb .fig { width: 2.2cqw; }
.oko-pin.down { flex-direction: column-reverse; transform: translate(-50%, 0); }
.oko-pin.down .oko-pw { margin: .4cqh 0 0; }
.oko-pin.down .oko-pb { margin: .6cqh 0 0; }
.oko-pin.win > b { background: var(--good); }
.oko-pin.win > i { background: var(--good); }
.oko-pin.off { opacity: .45; }
.oko-flag { position: absolute; top: -17cqh; z-index: 4; display: flex; flex-direction: column; align-items: center; transform: translate(-50%, -60%); opacity: 0; transition: opacity .3s, transform .6s cubic-bezier(.3, 1.6, .5, 1); }
.oko-flag.on { opacity: 1; transform: translate(-50%, 0); }
.oko-flag > b { padding: .5cqw 1.4cqw; border-radius: .8cqw; background: var(--game); color: var(--bg); font: 700 2.2cqw var(--font-head); white-space: nowrap; transform: skewX(-16deg); }
.oko-flag > i { width: .6cqw; height: 12.5cqh; border-radius: .3cqw; background: var(--game); }
.oko-scn.oko-reveal .scn-cast .fig, .oko-scn.oko-bet .scn-cast .fig { width: min(7cqw, calc(84cqw / var(--n))); }
@media (prefers-reduced-motion: no-preference) {
  .oko-scn.oko-guess .qz-card { animation: qz-card-in .8s var(--ease) both; }
  .oko-scn.oko-bet .oko-pin { animation: scn-pop-in .45s var(--ease) both; }
  .oko-pb .fig, .oko-pw .fig { animation: scn-pop-in .4s var(--ease) both; }
}
.oko-authors .fig, .oko-bets .fig { width: 22px; }
.oko-who .fig { width: 20px; }

/* Oś czasu na scenie (TV): karta wydarzenia z rokiem do odwrócenia i wyścig postaci po torach do mety */
.czas-scard { position: absolute; left: 50%; top: 4.5cqh; z-index: 3; width: 60cqw; min-height: 11cqw; padding: 2.2cqw 2.6cqw 1.6cqw 14cqw; background: var(--text); color: var(--bg); border-radius: 1.6cqw; box-shadow: 0 .8cqw 0 rgba(0,0,0,.4); transform: translateX(-50%) rotate(-.6deg); }
.czas-scard .scn-tag { position: absolute; left: 50%; top: 0; transform: translate(-50%, -55%) skewX(-16deg); }
.czas-scard p { margin: 0; font: 700 2.5cqw/1.15 var(--font-head); letter-spacing: -.02em; }
.czas-scard .qz-meter { justify-content: flex-start; }
.czas-flip { position: absolute; left: 1.8cqw; top: 50%; width: 10.4cqw; height: 7.4cqw; margin-top: -3.7cqw; perspective: 60cqw; }
.czas-flip span { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 1cqw; background: var(--game); color: var(--bg); font: 700 2.6cqw var(--font-head); white-space: nowrap; backface-visibility: hidden; transition: transform .7s var(--ease); }
.czas-flip .front { font-size: 4.4cqw; }
.czas-flip .back { background: var(--bg); color: var(--game); transform: rotateY(180deg); }
.czas-flip .back.long { font-size: 1.7cqw; }
.czas-scard.on .czas-flip .front { transform: rotateY(-180deg); }
.czas-scard.on .czas-flip .back { transform: rotateY(0); }
.czas-scn .scn-bg .floor { display: none; }
.czas-race { position: absolute; left: 4cqw; right: 4cqw; top: 33cqh; bottom: 4cqh; z-index: 2; display: grid; grid-template-rows: repeat(var(--lanes), minmax(0, 1fr)); }
.czas-lane { position: relative; display: grid; grid-template-columns: 11cqw minmax(0, 1fr) 6cqw; align-items: end; gap: 1.6cqw; min-height: 0; }
.czas-lane.away { opacity: .5; }
.czas-nm { padding-bottom: .5cqh; overflow: hidden; text-align: right; text-overflow: ellipsis; white-space: nowrap; font: 700 1.35cqw var(--font-head); }
.czas-track { position: relative; height: 100%; border-bottom: .3cqw solid var(--panel-3); }
.czas-track > i { position: absolute; bottom: -.6cqw; width: .3cqw; height: .9cqw; margin-left: -.15cqw; background: var(--panel-3); }
.czas-finish { position: absolute; right: -.15cqw; bottom: 0; width: .3cqw; height: 80%; background: var(--text); }
.czas-finish::after { content: ''; position: absolute; left: .3cqw; top: 0; width: 2.4cqw; height: 1.6cqw; background: var(--game); transform: skewY(-12deg); transform-origin: left; }
.czas-run { position: absolute; bottom: 0; left: calc(var(--p) * 100%); height: min(140%, 17cqh); aspect-ratio: 100 / 124; display: flex; flex-direction: column; justify-content: flex-end; transform: translateX(-50%) translateY(4%); transition: left 1s var(--ease); }
.czas-run .fig { width: 100%; }
.czas-n { padding-bottom: .5cqh; font: 700 1.5cqw var(--font-head); font-variant-numeric: tabular-nums; }
.czas-lane.miss .czas-run { animation: czas-shake .5s; }
@keyframes czas-shake { 25% { translate: -.6cqw 0; } 75% { translate: .6cqw 0; } }
@media (prefers-reduced-motion: no-preference) {
  .czas-place .czas-scard { animation: who-card-in .8s var(--ease) both; }
}
.czas-stand .fig { width: 26px; }

/* Pościg: postacie na drabinie, w odpowiedziach i na liście ucieczek */
.pc-fig { display: inline-flex; flex: none; }
.pc-fig .fig { width: 28px; }
.pc-row .pc-fig .fig { width: 34px; }
.pc-ladder.mini .pc-fig .fig { width: 24px; }
.pc-title .pc-fig .fig { width: 44px; }
.pc-avs .pc-fig .fig, .pc-marks .pc-fig .fig { width: 24px; }
.pc-tv .pc-row .pc-fig .fig { width: 3.4rem; }
.pc-tv .pc-fig .fig { width: 2.4rem; }
.pc-tv .pc-title .pc-fig .fig { width: 3.6rem; }
@media (prefers-reduced-motion: no-preference) { .pc-row .pc-fig .fig { animation: scn-pop-in .45s var(--ease) both; } }

/* Plansza: postacie w pasku wyników, przy wybierającym i w próbach */
.pl-who .fig { width: 96px; }
.pl-attempts .fig { width: 30px; flex: none; }
html.tv .pl-who .fig { width: 7rem; }
html.tv .pl-attempts .fig { width: 2.4rem; }

/* Licytacja: postacie na tablicy stron */
.pu-board .fig { width: 26px; flex: none; }
.pu-crew { display: inline-flex; gap: 2px; }
.pu-tv .pu-board .fig { width: 2.4rem; }

/* Gry z głosowaniem: postacie w liście gotowych, głosowaniu, obsadzie i wynikach rundy */
.roster li { opacity: .6; }
.roster li .fig { width: 42px; }
.roster.big li .fig { width: 5.4rem; }
.roster li .fig-think { display: none; }
.vote-btn .fig { width: 34px; flex: none; }
.voters .fig { width: 20px; }
.talk-start .fig { width: 64px; }
html.tv .talk-start .fig { width: 7rem; }
.cast li .fig { width: 40px; }
.cast li.dead .fig { filter: grayscale(1); opacity: .45; }
.vote-row .fig { width: 34px; flex: none; }
.meme-winner .fig, .meme-list .by .fig { width: 24px; }
.ms-person .fig { width: 22px; }
.scn-scores { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 10px; }
.scn-scores li { position: relative; display: flex; flex-direction: column; align-items: center; width: 78px; padding: 8px 4px 6px; border-radius: 14px; background: var(--panel); }
.scn-scores li.me { box-shadow: inset 0 0 0 2px var(--text); }
.scn-scores .fig { width: 46px; }
.scn-scores .name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; font-weight: 650; }
.scn-scores b { font: 700 1.25rem var(--font-head); }
.scn-scores small { position: absolute; top: 6px; right: 6px; padding: 1px 6px; border-radius: 6px; background: var(--good); color: var(--bg); font: 700 .72rem var(--font-head); }
html.tv .scn-scores li { width: 8.5rem; padding: .8rem .4rem .6rem; border-radius: 1.2rem; }
html.tv .scn-scores .fig { width: 5rem; }
html.tv .scn-scores .name { font-size: 1.05rem; }
html.tv .scn-scores b { font-size: 1.8rem; }
html.tv .scn-scores small { font-size: .95rem; }

/* Postać w miejscu dawnego kwadracika (figAvHtml), rozmiary jak .chip-av */
.fig-av { display: inline-flex; flex: none; align-items: flex-end; justify-content: center; vertical-align: middle; }
.fig-av .fig { width: 30px; }
.fig-av.xs .fig { width: 22px; }
.fig-av.lg .fig { width: 54px; }
html.tv .fig-av .fig { width: 2.4rem; }
html.tv .fig-av.xs .fig { width: 1.8rem; }
html.tv .fig-av.lg .fig { width: 5rem; }

/* Poczekalnia: postacie graczy; nowy gracz podskakuje, wolne miejsca na TV to szare postacie, które czekają */
.player-row .fig-av .fig { width: 30px; }
.tv-players .fig-av.lg .fig { width: 4.4rem; }
.tv-players li.slot .fig { width: 4.4rem; opacity: .55; }
.tv-players li.slot .fig-think { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .fig-av.fresh .fig-j { animation: fig-hop .55s var(--ease) 2; }
}

/* ---------- Impostor: scena okrągłego stołu (js/impostor-table.js) ---------- */
.imp-scene { position: relative; isolation: isolate; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 18px; background: #18161f; container-type: size; }
html.tv .imp-scene { width: min(100%, calc((100dvh - 8.5rem) * 16 / 9)); margin: 0 auto; }
.imp-scene.mini { aspect-ratio: 1 / .86; margin: 4px 0 2px; }
.imp-scene.mini .imp-table { left: 14%; right: 14%; }
.imp-lamp { position: absolute; left: 50%; top: -6%; z-index: 0; width: 64cqw; height: 78cqh; background: rgba(255, 236, 200, .045); clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%); transform: translateX(-50%); }
.imp-lamp::before { content: ''; position: absolute; left: 50%; top: 0; width: 7cqw; height: 4cqh; border-radius: 0 0 50% 50%; background: #2b2833; transform: translateX(-50%); }

/* Blat: elipsa z rantem, środek w kolorze gry przygaszonym jak sukno */
.imp-table { position: absolute; left: 20%; right: 20%; top: 38%; bottom: 20%; z-index: 2; border-radius: 50%; background: #3a2f3a; box-shadow: 0 2.2cqh 0 #221b24, inset 0 0 0 1.4cqh #4a3c49; }
.imp-felt { position: absolute; inset: 7% 6%; border-radius: 50%; background: color-mix(in srgb, var(--game) 22%, #241d28); }
.imp-ring { position: absolute; inset: 10% 8%; width: 84%; height: 80%; color: color-mix(in srgb, var(--game) 55%, transparent); }
.imp-center { position: absolute; left: 50%; top: 53%; z-index: 4; transform: translate(-50%, -50%); display: grid; place-items: center; }

/* Miejsca: postać zakotwiczona dołem w punkcie miejsca; z tyłu imię nad głową (dół postaci schowany za blatem). */
.imp-seat { position: absolute; display: flex; flex-direction: column; align-items: center; width: min(9.5cqw, calc(72cqw / var(--n))); transform: translate(-50%, -100%); transition: transform .5s var(--ease); }
.imp-seat.back { flex-direction: column-reverse; transform: translate(-50%, -100%) translateY(6cqh); }
.imp-seat .fig { width: 100%; }
.imp-nm { max-width: 150%; margin-top: .6cqh; padding: .2cqh .7cqw; border-radius: .6cqw; background: #16141c; color: var(--text); font: 700 1.25cqw/1.3 var(--font-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.imp-seat.back .imp-nm { margin: 0 0 .6cqh; }
/* Plakietki (zaczyna, impostor, głosy, punkty) obok głowy, po stronie bliższej środka sceny */
.imp-over { position: absolute; left: 92%; bottom: 42%; z-index: 6; display: flex; flex-direction: column; align-items: flex-start; gap: .6cqh; }
.imp-seat.back .imp-over { bottom: 30%; }
.imp-seat.right .imp-over { left: auto; right: 92%; align-items: flex-end; }
.imp-seat.away .fig-svg { opacity: .4; }
.imp-spot { position: absolute; left: 50%; bottom: -2cqh; z-index: -1; width: 220%; height: 160cqh; background: rgba(255, 245, 220, .12); clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%); transform: translate(-50%, 0) translateY(-100%) translateY(4cqh); opacity: 0; transition: opacity .6s; pointer-events: none; }
.imp-seat.starter .imp-spot { opacity: 1; }
.imp-seat.imp .imp-spot { opacity: 1; background: rgba(255, 61, 127, .22); }
.imp-tag { padding: .3cqh 1cqw; border-radius: .6cqw; background: var(--text); color: var(--bg); font: 700 1.2cqw/1.3 var(--font-head); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; transform: rotate(-4deg); }
.imp-tag.red { background: var(--accent); }
.imp-top { position: absolute; left: 2.2cqw; top: 2.4cqh; z-index: 30; max-width: 26cqw; }
.imp-top .label { color: var(--muted); font-size: 1.2cqw; }
.imp-top h2 { margin: .4cqh 0 0; font: 700 2.9cqw/1.05 var(--font-head); letter-spacing: -.03em; }
.imp-top p { margin: .8cqh 0 0; color: var(--muted); font-size: 1.35cqw; font-weight: 600; }
.imp-act { position: absolute; right: 2cqw; top: 2.4cqh; z-index: 30; display: flex; gap: .8cqw; }
.imp-act .btn { min-height: 0; padding: .7cqw 1.5cqw; border-radius: .8cqw; font-size: 1.25cqw; }
.imp-act .btn.ghost { background: var(--bg); }

/* Karty: rewers jak w trybie jednego telefonu; w ręce przed postacią, po "gotowe" zakryta na stole. */
.imp-mcard { display: inline-grid; place-items: center; width: 3.4cqw; aspect-ratio: 5 / 7; border-radius: .5cqw; background: var(--text); box-shadow: 0 .4cqh 0 rgba(0, 0, 0, .35); }
.imp-mcard i { width: 42%; aspect-ratio: 1; border-radius: 22%; background: var(--accent); transform: rotate(16deg); }
.imp-deck { position: relative; width: 6cqw; height: 7cqw; }
.imp-deck .imp-mcard { position: absolute; left: 50%; top: 50%; width: 4.6cqw; transform: translate(-50%, -50%) rotate(var(--r)); }
.imp-deck .imp-mcard:nth-child(1) { --r: -8deg; }
.imp-deck .imp-mcard:nth-child(2) { --r: 4deg; }
.imp-deck .imp-mcard:nth-child(3) { --r: 14deg; }
.imp-mcard.hand { position: absolute; left: 50%; top: 64%; z-index: 3; width: 38%; transform: translate(-50%, 0) rotate(-6deg); transition: left .6s var(--ease), top .6s var(--ease), transform .6s var(--ease); }
.imp-seat.back .imp-mcard.hand { top: 56%; }
.imp-seat.voted .imp-mcard.hand { left: calc(50% + var(--tx) * .14cqw); top: calc(60% + var(--ty) * .35cqh); transform: translate(-50%, 0) scaleY(.55) rotate(20deg); }
@media (prefers-reduced-motion: no-preference) { .imp-seat:not(.voted) .imp-mcard.hand { animation: imp-wobble 2.4s ease-in-out infinite; } }
@keyframes imp-wobble { 50% { transform: translate(-50%, -6%) rotate(4deg); } }

/* Zegar rozmowy na środku stołu, 12 kresek dookoła */
.imp-clock { position: relative; display: grid; place-items: center; width: 15cqw; aspect-ratio: 1; }
.imp-scene .imp-clock .clock-digits { font-size: 4.4cqw; line-height: 1; letter-spacing: -.04em; }
.imp-scene .imp-clock .clock-digits.small { font-size: 2.6cqw; }
.imp-clock .clock-state { position: absolute; left: 50%; top: 66%; margin: 0; min-height: 0; transform: translateX(-50%); white-space: nowrap; font-size: 1.1cqw; }
.imp-scene.paused .clock-digits { color: var(--dim); }
.ticks.imp-ticks { position: absolute; inset: 0; display: block; margin: 0; }
.ticks.imp-ticks i { position: absolute; left: 50%; top: 50%; width: 1.4cqw; height: 1.4cqw; margin: -.7cqw; transform: rotate(calc(var(--k) * 30deg)) translateY(-6.8cqw) rotate(16deg); }
.ticks.imp-ticks i.last { transform: rotate(calc(var(--k) * 30deg)) translateY(-6.8cqw) rotate(16deg) scale(1.4); }

/* Urna na głosy i lecące kartki */
.imp-urn { position: relative; width: 11cqw; height: 9cqw; border-radius: 1cqw; background: var(--text); box-shadow: inset -2.2cqw 0 0 #d9d2e0, 0 .8cqh 0 rgba(0, 0, 0, .35); display: grid; place-items: end center; padding-bottom: 1.4cqw; }
.imp-urn .slot { position: absolute; left: 50%; top: 1.4cqw; width: 5cqw; height: .7cqw; border-radius: .4cqw; background: #16141c; transform: translateX(-50%); }
.imp-urn-n { color: #16141c; font: 700 2.4cqw/1 var(--font-head); }
.imp-urn.gulp { animation: imp-gulp .35s var(--ease); }
@keyframes imp-gulp { 40% { transform: scale(1.08, .92); } }
.imp-paper { position: absolute; z-index: 40; width: 2.4cqw; height: 1.7cqw; border-radius: .2cqw; background: #faf8f4; box-shadow: inset 0 -.4cqw 0 #d9d2e0; pointer-events: none; }

/* Zgadywanie i wynik: karta z hasłem na stole */
.imp-word { display: flex; flex-direction: column; align-items: center; gap: .6cqh; min-width: 20cqw; padding: 1.6cqh 2cqw; border-radius: 1cqw; background: var(--text); color: var(--bg); box-shadow: 0 .8cqh 0 rgba(0, 0, 0, .4); transform: rotate(-2deg); }
.imp-word .label { color: var(--dim); font-size: 1.05cqw; }
.imp-word b { font: 700 3.4cqw/1.05 var(--font-head); letter-spacing: -.02em; text-align: center; }
.imp-word.q b { font-size: 5cqw; color: var(--accent); }
.imp-word .guess-clock { width: 100%; margin: 0; }
.imp-word .guess-clock .clock-digits { font-size: 1.8cqw; color: var(--dim); }
.imp-word .guess-clock .bar { height: .7cqh; }
@media (prefers-reduced-motion: no-preference) {
  .imp-scene.m-result .imp-word { animation: imp-card-in .8s var(--ease) both; }
  .imp-scene.m-result.seen .imp-word, .imp-scene.m-result.seen .imp-rolecard, .imp-scene.m-result.seen .imp-arcs path, .imp-scene.m-result.seen .imp-plus, .imp-scene.m-result.seen .imp-votes { animation-duration: 1ms; animation-delay: 0ms; }
}
@keyframes imp-card-in { from { transform: rotate(-30deg) scale(.3); opacity: 0; } }

/* Karta roli nad impostorem obraca się na "Impostor" */
.imp-rolecard { display: grid; place-items: center; width: 7.4cqw; aspect-ratio: 5 / 3.2; border-radius: .7cqw; background: var(--accent); color: var(--bg); font: 700 1.25cqw var(--font-head); letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 .5cqh 0 rgba(0, 0, 0, .35); animation: imp-role .9s var(--ease) .5s both; }
@keyframes imp-role { 0% { transform: perspective(40cqw) rotateY(180deg) scale(.6); background: var(--text); color: transparent; } 50% { transform: perspective(40cqw) rotateY(90deg) scale(1.1); background: var(--text); color: transparent; } 51% { background: var(--accent); color: var(--bg); } 100% { transform: none; } }
.imp-votes { display: grid; place-items: center; min-width: 2.6cqw; height: 2.6cqw; padding: 0 .6cqw; border-radius: 50%; background: var(--text); color: var(--bg); font: 700 1.5cqw var(--font-head); animation: scn-pop-in .4s var(--ease) 2.2s both; }
.imp-plus { padding: .1cqh .7cqw; border-radius: .5cqw; background: var(--good); color: var(--bg); font: 700 1.3cqw var(--font-head); animation: scn-pop-in .4s var(--ease) 2.6s both; }
.imp-arcs { position: absolute; inset: 0; z-index: 25; width: 100%; height: 100%; pointer-events: none; }
.imp-arcs path { fill: none; stroke: var(--c); stroke-width: .7; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: imp-arc .7s var(--ease) var(--d, 0ms) forwards; opacity: .9; }
@keyframes imp-arc { to { stroke-dashoffset: 0; } }
.imp-scene.m-result.crew .imp-felt { background: color-mix(in srgb, var(--good) 22%, #241d28); }

/* Tryb rysowany na TV: wspólny rysunek po lewej, stół po prawej */
.imp-with-drawing { flex: 1; display: grid; grid-template-columns: minmax(0, min(30vw, 62vh)) minmax(0, 1fr); gap: 1.4rem; align-items: center; }
.imp-with-drawing .imp-drawing { width: 100%; max-width: none; margin: 0; }
.imp-with-drawing .imp-scene { width: 100%; }

/* Telefon: mniejsza scena, większe napisy względem szerokości */
.imp-scene.mini .imp-seat { width: min(13cqw, calc(92cqw / var(--n))); }
.imp-scene.mini .imp-nm { font-size: 3cqw; padding: .2cqh 1.4cqw; border-radius: 1.4cqw; }
.imp-scene.mini .imp-clock { width: 34cqw; }
.imp-scene.mini .imp-clock .clock-digits { font-size: 9.5cqw; }
.imp-scene.mini .imp-clock .clock-digits.small { font-size: 5cqw; }
.imp-scene.mini .imp-center { top: 55%; }
.imp-scene.mini.m-result .imp-center { top: 45%; }
.imp-scene.mini .imp-clock .clock-state { font-size: 2.6cqw; }
.imp-scene.mini .ticks.imp-ticks i { width: 2.6cqw; height: 2.6cqw; margin: -1.3cqw; transform: rotate(calc(var(--k) * 30deg)) translateY(-15cqw) rotate(16deg); }
.imp-scene.mini .ticks.imp-ticks i.last { transform: rotate(calc(var(--k) * 30deg)) translateY(-15cqw) rotate(16deg) scale(1.4); }
.imp-scene.mini .imp-tag { font-size: 2.6cqw; padding: .3cqh 1.8cqw; border-radius: 1.2cqw; }
.imp-scene.mini .imp-word { min-width: 34cqw; padding: 1.4cqh 3cqw; border-radius: 2cqw; }
.imp-scene.mini .imp-word .label { font-size: 2.4cqw; }
.imp-scene.mini .imp-word b { font-size: 6.2cqw; }
.imp-scene.mini .imp-rolecard { width: 15cqw; font-size: 2.4cqw; border-radius: 1.4cqw; }
/* Mały stół przy 8+ graczach: karta "Impostor" zasłaniałaby sąsiadów, więc impostora znaczy czerwona plakietka z imieniem */
.imp-scene.mini.crowd .imp-rolecard { display: none; }
.imp-scene.mini.crowd.m-result .imp-seat.imp .imp-nm { position: relative; z-index: 7; animation: imp-nm-red .5s var(--ease) .5s both; }
@keyframes imp-nm-red { to { background: var(--accent); color: var(--bg); } }
.imp-scene.mini.crowd.m-result.seen .imp-seat.imp .imp-nm { animation-duration: 1ms; animation-delay: 0ms; }
/* Imiona przy tłoku: mniejsze litery i szerokość liczona od sceny, nie od wąskiego miejsca (inaczej zostają 2 litery) */
.imp-scene.mini.crowd .imp-nm { max-width: 15cqw; padding: .1cqh .9cqw; font-size: 2.4cqw; position: relative; z-index: 6; }
.imp-scene.mini.crowd .imp-plus { font-size: 2.2cqw; padding: 0 .8cqw; }
.imp-scene.mini.crowd .imp-votes { min-width: 4cqw; height: 4cqw; font-size: 2.4cqw; }
.imp-scene.mini .imp-votes { min-width: 5cqw; height: 5cqw; font-size: 3cqw; }
.imp-scene.mini .imp-plus { font-size: 2.8cqw; padding: .1cqh 1.4cqw; border-radius: 1cqw; }
.imp-scene.mini .imp-arcs path { stroke-width: 1; }
.imp-scene.mini .imp-mcard { width: 6cqw; }
.talk .imp-scene.mini { margin-top: 10px; }
/* Tryb jednego telefonu przy tym samym stole (js/impostor.js): talia, urna i karta pytania w wersji mini */
.imp-scene.mini .imp-deck { width: 12cqw; height: 15cqw; }
.imp-scene.mini .imp-deck .imp-mcard { width: 9cqw; }
.imp-scene.mini .imp-mcard.hand { width: 38%; }
.imp-scene.mini .imp-urn { width: 18cqw; height: 14cqw; padding-bottom: 2cqw; border-radius: 2cqw; box-shadow: inset -4cqw 0 0 #d9d2e0, 0 .8cqh 0 rgba(0, 0, 0, .35); }
.imp-scene.mini .imp-urn .slot { top: 2.2cqw; width: 8cqw; height: 1.4cqw; border-radius: .8cqw; }
.imp-scene.mini .imp-urn-n { font-size: 5cqw; }
.imp-scene.mini .imp-word.q b { font-size: 11cqw; }
.imp-tag svg { width: 1.3em; height: 1.3em; vertical-align: -.25em; }
.imp-scene.pick .imp-seat { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.imp-scene.pick .imp-seat:focus-visible { outline: 2px solid var(--game); outline-offset: 2px; border-radius: 8px; }
#imp-stage .pass { justify-content: flex-start; padding-top: 8px; }
#imp-stage .pass .imp-scene { margin-bottom: 18px; }
#imp-stage .guess .imp-scene, #imp-stage .verdict + .imp-scene { margin-top: 14px; }
#imp-stage .vote-grid { margin-top: 14px; }
.scn-scores .role { display: inline-block; width: 8px; height: 8px; margin-left: 6px; border-radius: 2px; background: var(--accent); transform: rotate(16deg); vertical-align: middle; }
.talk .peek { margin-top: 14px; }

/* Wspólne dla scen: pojawienie się i "patrz na telewizor" na telefonie */
@keyframes scn-pop-in { from { opacity: 0; transform: scale(.4); } }
@keyframes qz-card-in { from { transform: translateY(-140%) rotate(-8deg); } }
.scn-look { flex: 1; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 40vh; text-align: center; color: var(--muted); }
.scn-look h3 { margin: 6px 0 0; color: var(--text); font: 700 1.5rem var(--font-head); }
.scn-wait:not(.done) .scn-look { display: flex; }
.scn-wait:not(.done) .scn-after { display: none; }
.scn-after { display: flex; flex-direction: column; gap: 10px; }
@media (prefers-reduced-motion: no-preference) { .scn-wait.done .scn-after { animation: step-in .4s var(--ease) both; } }
.qz-tv .tv-lead { margin: 1rem 0 1.6rem; }
.qz-tv .actions { max-width: 640px; margin-left: auto; margin-right: auto; }
@media (prefers-reduced-motion: reduce) { .qz-opts.reveal .qz-opt::before { transition: none; } }

/* ---------- Pula ---------- */
.pl { display: flex; flex-direction: column; gap: 14px; }
.pl .who-head { margin: 0; }
.pu-wheel { position: relative; width: min(78vw, 340px); aspect-ratio: 1; margin: 4px auto 0; }
.pu-wheel svg { display: block; width: 100%; height: 100%; }
.pu-wheel text { font-family: var(--font-head); font-weight: 700; font-size: 10.5px; letter-spacing: -.01em; }
.pu-rot { animation-name: pl-spin; animation-timing-function: cubic-bezier(.12, .7, .14, 1); animation-fill-mode: both; }
@keyframes pl-spin { from { transform: rotate(var(--from)); } to { transform: rotate(var(--to)); } }
.pu-pointer { position: absolute; left: 50%; top: -6px; width: 26px; height: 30px; transform: translateX(-50%); background: var(--text); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.pu-lead { margin: 0; color: var(--muted); font-weight: 600; text-align: center; }
.pu-lead.good { color: var(--game); font-family: var(--font-head); font-size: 1.25rem; }
.pu-pot { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 12px 16px; border-radius: 16px; background: var(--panel); }
.pu-pot strong { font-family: var(--font-head); font-size: 2.1rem; line-height: 1; color: var(--game); font-variant-numeric: tabular-nums; }
.pu-cat { display: flex; align-items: baseline; gap: 10px; margin: 0; }
.pu-cat b { position: relative; padding: 3px 12px; font-family: var(--font-head); font-size: 1.5rem; color: var(--on-accent); isolation: isolate; }
.pu-cat b::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 10px; background: var(--game); transform: rotate(-3deg); }
.pu-panel { display: flex; flex-direction: column; gap: 10px; }
.pu-going { margin: 0; font-family: var(--font-head); font-size: 1.3rem; text-align: center; }
.pu-going.dim { color: var(--muted); font-size: 1.1rem; }
.pu-going small { color: var(--muted); font-family: 'Inter', system-ui, sans-serif; font-size: .85rem; }
.pu-raise { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pu-raise .btn { min-height: 58px; padding: 0 6px; font-family: var(--font-head); font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.pu-hint { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.pu-board { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pu-side { --sc: var(--game); display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 12px; border-radius: 12px; background: var(--panel); box-shadow: inset 4px 0 0 var(--sc); transition: background .25s; }
.pu-side.lead { background: color-mix(in srgb, var(--sc) 20%, var(--panel)); box-shadow: inset 4px 0 0 var(--sc), 0 0 0 2px var(--sc); }
.pu-side.win { background: var(--sc); color: var(--bg); }
.pu-side.win small { color: inherit; }
.pu-side.out, .pu-side.gone { opacity: .45; }
.pu-crew { display: flex; gap: 3px; flex: none; }
.pu-sn { flex: 1; min-width: 0; overflow: hidden; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.pu-sn small { color: var(--muted); font-weight: 600; }
.pu-bid { padding: 2px 9px; border-radius: 8px; background: var(--panel-3); font-family: var(--font-head); font-variant-numeric: tabular-nums; }
.pu-side.lead .pu-bid { background: var(--sc); color: var(--bg); }
.pu-bid.pop { animation: pl-pop .35s var(--ease); }
@keyframes pl-pop { from { transform: scale(1.35); } to { transform: none; } }
.pu-money { min-width: 5.5rem; font-family: var(--font-head); font-size: 1.1rem; text-align: right; font-variant-numeric: tabular-nums; }
.pu-correct { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 16px; background: var(--game); color: var(--on-accent); }
.pu-correct .label { color: inherit; opacity: .65; }
.pu-correct b { font-family: var(--font-head); font-size: 1.7rem; line-height: 1.1; }
.pu-said { margin: 0; color: var(--muted); font-weight: 600; text-align: center; overflow-wrap: anywhere; }
.pu-verdict { margin: 0; font-family: var(--font-head); font-size: 1.5rem; line-height: 1.15; text-align: center; }
.pu-verdict.good { color: var(--game); }
.pl .qz-opts.reveal .qz-opt.right, .pl .qz-opt.right { background: var(--game); color: var(--on-accent); }
.pl .qz-opt.off { color: var(--muted); }
.pu-hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.pu-hist li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 12px; border-radius: 10px; background: var(--panel); color: var(--muted); }
.pu-hist li.ok { color: var(--text); }
.pu-hist li.ok b { color: var(--game); }
.pu-result .verdict { background: var(--game); color: var(--on-accent); }

.pu-tv { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(20rem, 30rem); gap: 2.4rem; align-items: start; padding-top: .4rem; }
.pu-tv-main, .pu-tv-side { display: flex; flex-direction: column; gap: 1.2rem; min-width: 0; }
.pu-tv .who-head { font-size: 1.3rem; }
.pu-tv .who-head .countdown { font-size: clamp(3rem, 5vw, 5rem); line-height: 1; color: var(--text); }
.pu-tv .pu-wheel { width: min(36vw, 48vh); }
.pu-tv .pu-wheel text { font-size: 10px; }
.pu-tv .pu-cat b { font-size: clamp(2rem, 3vw, 3rem); }
.pu-tv .oko-q { padding: 2rem 2.4rem; border-radius: 1.6rem; }
.pu-tv .oko-q p { font-size: clamp(2.2rem, 3.6vw, 3.8rem); }
.pu-tv .pu-pot { padding: 1.2rem 1.6rem; border-radius: 1.4rem; }
.pu-tv .pu-pot strong { font-size: clamp(3rem, 4.4vw, 4.6rem); }
.pu-tv .pu-side { min-height: 4.2rem; padding: .6rem 1.2rem; border-radius: 1rem; gap: 1rem; font-size: 1.3rem; }
.pu-tv .pu-money { font-size: 1.6rem; min-width: 8rem; }
.pu-tv .pu-bid { font-size: 1.4rem; }
.pu-tv .pu-going { font-size: clamp(1.8rem, 2.6vw, 2.6rem); }
.pu-tv .pu-lead, .pu-tv .pu-said { font-size: 1.5rem; }
.pu-tv .pu-verdict { font-size: clamp(2rem, 3vw, 3.2rem); }
.pu-tv .pu-correct b { font-size: clamp(2.2rem, 3.4vw, 3.6rem); }
.pu-tv .qz-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.pu-tv .qz-opt { min-height: 5rem; border-radius: 1.2rem; }
.pu-tv .qz-t { font-size: clamp(1.4rem, 2vw, 2.1rem); }
.pu-tv.pu-result { display: flex; max-width: 1100px; margin: 0 auto; width: 100%; }
html.tv .pu-result .verdict { margin: 0; padding: 1.6rem 2rem; border-radius: 1.4rem; }
@media (prefers-reduced-motion: reduce) { .pu-rot { animation-duration: 1ms !important; } .pu-bid.pop { animation: none; } }

/* Licytacja: pula jako stos banknotów, strony za pulpitami z tabliczką stawki (js/pula.js) */
.pu-vault { flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; padding: 14px 16px 12px; background: #1d2a22; border: 3px solid #16141c; box-shadow: inset 0 0 0 4px #2b3d31; }
.pu-pile { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 20px; }
.pu-row { display: flex; gap: 2px; }
.pu-row i { width: 30px; height: 14px; border-radius: 2px; background: #6fbf73; border: 2px solid #16141c; box-shadow: inset 0 -4px 0 #4f9a54, inset 9px 0 0 -6px #e8f5e0; animation: scn-pop-in .35s var(--ease) var(--d) both; }
.pu-vault .label { color: #9fd3a2; }
.pu-vault strong { color: #ffd25a; }
.pu-board { list-style: none; margin: 0; padding: 22px 0 0; display: flex; flex-direction: row; flex-wrap: nowrap; justify-content: center; align-items: flex-end; gap: 8px; }
.pu-side { --sc: var(--game); position: relative; display: flex; flex-direction: column; align-items: center; flex: 0 1 120px; min-width: 0; min-height: 0; padding: 0; background: none; border-radius: 0; box-shadow: none; }
.pu-who { display: flex; justify-content: center; margin-bottom: -10px; position: relative; z-index: 0; }
.pu-who .fig { width: 48px; }
.pu-crew .fig { width: 34px; }
.pu-desk { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; width: 100%; padding: 6px 4px 6px; background: var(--sc); border: 2px solid #16141c; border-radius: 8px 8px 3px 3px; }
.pu-stack { position: absolute; right: -6px; bottom: 100%; display: flex; flex-direction: column-reverse; gap: 1px; }
.pu-stack i { width: 20px; height: 6px; border-radius: 1px; background: #6fbf73; border: 1.5px solid #16141c; }
.pu-money { min-width: 0; padding: 1px 6px; border-radius: 5px; background: #16141c; color: #ffd25a; font-size: .78rem; text-align: center; white-space: nowrap; }
.pu-sn { flex: none; max-width: 100%; margin-top: 2px; color: #16141c; font: 700 .7rem/1.2 var(--font-head); text-align: center; }
.pu-sn small { color: rgba(22, 20, 28, .6); }
.pu-side.lead::before { content: ''; position: absolute; left: 50%; bottom: 20%; z-index: -1; width: 140%; height: 160%; background: rgba(255, 236, 190, .1); clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%); transform: translateX(-50%); }
.pu-side.lead { background: none; box-shadow: none; }
.pu-side.lead .pu-desk { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px #ffd25a; }
.pu-side.win .pu-desk { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px #ffd25a; }
.pu-side.out .pu-who .fig-svg, .pu-side.gone .pu-who .fig-svg { opacity: .45; }
.pu-side.out, .pu-side.gone { opacity: 1; }
.pu-paddle { position: absolute; left: 50%; bottom: calc(100% - 4px); z-index: 3; display: flex; flex-direction: column; align-items: center; transform: translateX(-50%) translateY(30%) rotate(6deg); transition: transform .35s var(--ease); }
.pu-paddle b { padding: 3px 8px; border-radius: 8px; background: #faf6ee; border: 2px solid #16141c; color: #16141c; font: 700 .82rem var(--font-head); white-space: nowrap; box-shadow: inset 0 -3px 0 var(--sc); }
.pu-paddle i { width: 4px; height: 16px; background: #7f5536; border: 1px solid #16141c; }
.pu-paddle.up { transform: translateX(-50%) translateY(-10%) rotate(-4deg); }
.pu-paddle.up b { background: #ffd25a; }
.pu-paddle.pop { animation: pu-raise .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pu-raise { from { transform: translateX(-50%) translateY(40%) rotate(12deg); } }
.pu-bill { position: fixed; z-index: 300; width: 34px; height: 18px; border-radius: 2px; background: #6fbf73; border: 2px solid #16141c; box-shadow: inset 0 -4px 0 #4f9a54; pointer-events: none; }
.pu-tv { grid-template-rows: auto auto; }
.pu-tv-pods { grid-column: 1 / -1; }
.pu-tv .pu-board { gap: 1.4rem; }
.pu-tv .pu-side { flex-basis: 11rem; }
.pu-tv .pu-who .fig { width: 5rem; }
.pu-tv .pu-crew .fig { width: 3.6rem; }
.pu-tv .pu-money { font-size: 1.5rem; min-width: 0; }
.pu-tv .pu-sn { font-size: 1.05rem; }
.pu-tv .pu-paddle b { font-size: 1.3rem; padding: .3rem .9rem; }
.pu-tv .pu-row i { width: 3rem; height: 1.4rem; }
.pu-tv .pu-stack i { width: 2rem; height: .6rem; }

/* ---------- Okładki gier (img/covers): obrazek wypełnia pole ilustracji, w kafelku 4:3 przycięty po bokach ---------- */
.feature .feature-art.has-cover { padding: 0; overflow: hidden; }
.feature-art img.cover { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease); }
.feature:hover .feature-art img.cover { transform: scale(1.03); }

/* ---------- Po kolei ----------
   Kremowe karty z wielką liczbą, w rogach przekrzywiony kafelek w kolorze gry. Stół to ciemne pole
   z pulsującym pierścieniem (bicie co sekundę od ostatniej karty), stos rzucany lekko krzywo. */
.pk { --gold: #ffd84d; display: flex; flex-direction: column; gap: 14px; }
.pk .vote-status { margin-top: 4px; }
.pk-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; min-height: 32px; }
.pk-resources { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.pk-res { display: inline-flex; align-items: center; gap: 2px; }
.pk-res .ic { fill: currentColor; }
.pk-res.lives { color: var(--bad); }
.pk-res.stars { color: var(--gold); }
.pk-times { margin-left: 3px; font-family: var(--font-head); font-size: 1.1rem; }
.pk-tv .pk-times { font-size: 1.8rem; }
.pk-cleared .pk-got + .pk-got { margin-top: 0; animation-delay: .55s; }
.pk-zero { display: inline-flex; align-items: center; gap: 3px; color: var(--dim); font-family: var(--font-head); font-weight: 700; }
.pk-zero .ic { fill: none; }
.pk-heart.broken { animation: pk-break .9s var(--ease) .25s both; }
@keyframes pk-break { 30% { transform: scale(1.5) rotate(-12deg); } to { transform: scale(.2) rotate(30deg); opacity: 0; } }
.pk-twist { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 8px; border-radius: 8px; background: var(--game); color: var(--bg); font-size: .78rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.pk-twist.fog { background: var(--panel-3); color: var(--text); }

/* Karta */
.pk-card { --w: 64px; position: relative; flex: none; display: grid; place-items: center; width: var(--w); aspect-ratio: 5 / 7; border-radius: calc(var(--w) * .12); background: var(--text); color: var(--bg); transform: rotate(var(--r, 0deg)); box-shadow: 0 1px 0 rgba(0, 0, 0, .25); user-select: none; }
.pk-num { font-family: var(--font-head); font-size: calc(var(--w) * .46); font-weight: 700; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.pk-corner { position: absolute; top: 7%; left: 8%; display: grid; place-items: center; width: calc(var(--w) * .2); height: calc(var(--w) * .2); isolation: isolate; font-family: var(--font-head); font-size: calc(var(--w) * .095); font-style: normal; font-weight: 700; }
.pk-corner::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 22%; background: var(--game); transform: rotate(16deg); }
/* Dolny róg stoi prosto: odwrócone 6 i 9 by się myliły. */
.pk-corner.end { top: auto; left: auto; bottom: 7%; right: 8%; }
.pk-card.sm { --w: 40px; }
.pk-card.md { --w: 56px; }
.pk-card.lg { --w: 116px; }
.pk-card.xl { --w: 138px; }
.pk-card.sm .pk-corner, .pk-card.md .pk-corner { display: none; }
.pk-card.sm .pk-num, .pk-card.md .pk-num { font-size: calc(var(--w) * .42); }
.pk-card.bad { background: var(--bad); }
.pk-card.bad .pk-corner::before { background: var(--bg); opacity: .18; }
.pk-card.gone { background: var(--panel-3); color: var(--muted); }
.pk-card.gone::after { content: ''; position: absolute; left: 14%; right: 14%; top: 50%; height: 2px; background: var(--bad); transform: rotate(-35deg); border-radius: 2px; }
.pk-card.star { background: var(--gold); }
.pk-card.star .pk-corner::before { background: var(--bg); opacity: .15; }
.pk-card.ghost { background: transparent; box-shadow: inset 0 0 0 2px var(--panel-3); color: var(--panel-3); }
.pk-card.back { background: var(--panel-3); }
.pk-card.back::before { content: ''; width: 38%; aspect-ratio: 1; border-radius: 22%; background: var(--game); opacity: .55; transform: rotate(16deg); }

/* Stół */
.pk-table { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 250px; padding: 22px 12px 14px; border-radius: 22px; background: var(--panel); overflow: hidden; }
.pk-pulse { position: absolute; left: 50%; top: calc(50% - 14px); width: 230px; height: 230px; margin: -115px 0 0 -115px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--game); opacity: 0; pointer-events: none; animation: pk-beat 1s cubic-bezier(.3, .6, .3, 1) infinite; }
.pk-pulse.still { animation: none; opacity: .14; transform: scale(.9); }
@keyframes pk-beat { 0% { transform: scale(.55); opacity: .5; } 100% { transform: scale(1.2); opacity: 0; } }
.pk-pile { position: relative; display: grid; place-items: center; }
.pk-slot { grid-area: 1 / 1; transform: translate(calc(var(--i, 0) * -15px), calc(var(--i, 0) * -3px)); filter: brightness(calc(1 - var(--i, 0) * .13)); z-index: calc(10 - var(--i, 0)); }
.pk-card.new { animation: pk-land .5s var(--ease) both; }
@keyframes pk-land { from { transform: translateY(-70px) scale(1.15) rotate(-14deg); opacity: 0; } 60% { opacity: 1; } to { transform: rotate(var(--r, 0deg)); } }
.pk-by { position: relative; display: flex; align-items: center; gap: 7px; margin: 0; min-height: 24px; color: var(--muted); font-weight: 650; }
.pk-count { margin: -4px 0 0; color: var(--muted); font-size: .88rem; font-weight: 600; text-align: center; }
.pk-note { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; color: var(--dim); font-size: .86rem; }

/* Gracze */
.pk-players { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pk-players li { position: relative; display: inline-flex; align-items: center; gap: 7px; min-width: 0; max-width: 100%; padding: 5px 10px 5px 5px; border-radius: 12px; background: var(--panel); }
.pk-players li.me { box-shadow: inset 0 0 0 1.5px var(--panel-3); }
.pk-players li.away { opacity: .45; }
.pk-players li.out { color: var(--muted); }
.pk-players li.wants { box-shadow: inset 0 0 0 2px var(--gold); }
.pk-players .rn { overflow: hidden; max-width: 9em; font-size: .9rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.pk-left { display: inline-flex; align-items: center; gap: 3px; color: var(--good); }
.pk-left i { width: 8px; height: 11px; border-radius: 2px; background: var(--text); }
.pk-left b { font-family: var(--font-head); color: var(--text); }
.pk-wants { display: grid; place-items: center; color: var(--gold); }
.pk-wants .ic { fill: currentColor; }

/* Ręka: najbliższa karta duża, przytrzymanie obiega ją obwódką w kolorze gry. */
.pk-hand { display: flex; align-items: flex-end; justify-content: center; gap: 16px; flex-wrap: wrap; }
.pk-play { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 12px 10px; border: 0; border-radius: 26px; background: transparent; color: var(--text); touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.pk-play .pk-card { transition: transform .42s var(--ease); }
.pk-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.pk-ring rect { fill: none; stroke: var(--game); stroke-width: 4; stroke-dasharray: 100; stroke-dashoffset: 100; stroke-linecap: round; opacity: 0; transition: stroke-dashoffset .12s, opacity .12s; }
.pk-play.holding .pk-ring rect { stroke-dashoffset: 0; opacity: 1; transition: stroke-dashoffset .42s linear; }
.pk-play.holding .pk-card { transform: scale(.95); }
.pk-play.sent .pk-card { transform: translateY(-46px) scale(.8); opacity: .25; transition: transform .35s var(--ease), opacity .35s; }
.pk-play:disabled { cursor: default; }
.pk-hint { color: var(--muted); font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.pk-play.holding .pk-hint { color: var(--game); }
.pk-later { display: flex; flex-direction: column; gap: 6px; max-width: 100%; padding-bottom: 40px; }
.pk-later .pk-row { flex-wrap: wrap; }
.pk-row { display: flex; gap: 6px; }
.pk-row.wrap { flex-wrap: wrap; }
.pk-row.ready { flex-wrap: wrap; justify-content: center; }
.pk-done { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; min-height: 90px; color: var(--muted); font-weight: 650; text-align: center; }
.pk-done .ic { color: var(--good); }
.pk-starbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0; }
.pk-starbar .btn[aria-pressed="true"] .ic { fill: currentColor; }
.pk-starbar .btn .ic { color: var(--gold); }
.pk-starbar .btn.light .ic { color: var(--bg); }
.pk-starbar small { flex: 1; min-width: 12em; color: var(--muted); font-size: .86rem; }
.pk-starbar.off { color: var(--dim); font-size: .9rem; font-weight: 600; }
.pk-starbar.tv { justify-content: flex-start; color: var(--muted); font-size: 1.3rem; font-weight: 650; }
.pk-starbar.tv .ic { color: var(--gold); }

/* Zgranie przed poziomem */
.pk-levelbig { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 0 4px; text-align: center; }
.pk-levelbig strong { position: relative; display: grid; place-items: center; width: 1.45em; height: 1.45em; margin: .3em 0 .28em; isolation: isolate; color: var(--bg); font-family: var(--font-head); font-size: clamp(4rem, 22vw, 6rem); line-height: 1; letter-spacing: -.05em; }
.pk-levelbig strong::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 22%; background: var(--game); transform: rotate(16deg); animation: pk-spin-in .7s var(--ease) both; }
@keyframes pk-spin-in { from { transform: rotate(-40deg) scale(.6); opacity: 0; } }
.pk-levelbig .sub { margin: 0; font-weight: 650; }
.pk-twist-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--panel); box-shadow: inset 4px 0 0 var(--game); }
.pk-twist-card.fog { box-shadow: inset 4px 0 0 var(--muted); }
.pk-twist-card .ic { flex: none; color: var(--game); }
.pk-twist-card strong { font-family: var(--font-head); font-size: 1.15rem; }
.pk-twist-card p { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }
.pk-mine { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pk-fogged { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-weight: 600; }
.pk-lead { margin: 0; color: var(--muted); font-weight: 600; text-align: center; }
.pk-reward-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 0; color: var(--muted); font-size: .9rem; font-weight: 650; }
.pk-reward-note .ic { color: var(--gold); fill: currentColor; }
.pk .actions { margin-top: 2px; }
.pk-ready .actions { flex-direction: column; }

/* Pomyłka */
.pk-bang { display: flex; align-items: center; gap: 18px; padding: 8px 4px; }
.pk-bang-card { animation: pk-shake .5s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes pk-shake { 15%, 55% { transform: translateX(-8px) rotate(-4deg); } 35%, 75% { transform: translateX(8px) rotate(4deg); } }
.pk-bang h2 { margin: 0; color: var(--bad); font-family: var(--font-head); font-size: clamp(2.2rem, 10vw, 3rem); line-height: 1; letter-spacing: -.03em; }
.pk-bang .pk-oops-by { display: flex; align-items: center; gap: 7px; margin: 10px 0 0; font-weight: 650; }
.pk-minus { display: inline-flex; align-items: center; gap: 4px; color: var(--bad); font-family: var(--font-head); font-weight: 700; }
.pk-minus .ic { fill: currentColor; }
.pk-lost { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pk-lost li { display: flex; align-items: center; gap: 9px; padding: 7px 10px 7px 7px; border-radius: 12px; background: var(--panel); }
.pk-lost .rn { flex: 1; min-width: 0; overflow: hidden; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.pk-lost .pk-row { flex-wrap: wrap; justify-content: flex-end; }
.pk-bar { height: 6px; border-radius: 3px; background: var(--panel); overflow: hidden; }
.pk-bar i { display: block; height: 100%; border-radius: inherit; background: var(--game); transform-origin: left; animation: pk-drain var(--ms) linear both; }
@keyframes pk-drain { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.pk-center { margin: 0; text-align: center; }

/* Zaliczony poziom */
.pk-cleared { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 0 6px; text-align: center; }
.pk-cleared h2 { margin: 0; font-family: var(--font-head); font-size: clamp(2.2rem, 10vw, 3.2rem); line-height: 1.02; letter-spacing: -.035em; animation: step-in .5s var(--ease) both; }
.pk-got { display: inline-flex; align-items: center; gap: 8px; margin: 8px 0 0; padding: 7px 16px; border-radius: 12px; background: var(--panel); font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; animation: pk-pop .6s var(--ease) .35s both; }
.pk-got .ic { fill: currentColor; }
.pk-got.life .ic { color: var(--bad); }
.pk-got.star .ic { color: var(--gold); }
@keyframes pk-pop { from { transform: scale(.3) rotate(-16deg); opacity: 0; } 70% { transform: scale(1.1); } }
.pk-clear .pk-row .pk-card { animation: step-in .35s var(--ease) both; }
.pk-next-twist { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; color: var(--muted); font-weight: 650; }

/* Wynik */
.verdict.pk-lose { background: var(--panel-2); }
.verdict.pk-lose h2 { color: var(--bad); }
.pk-steps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.pk-cleared .pk-steps { justify-content: center; margin: 0 0 8px; color: var(--game); }
.pk-steps i { width: 16px; height: 16px; border-radius: 4px; box-shadow: inset 0 0 0 2px currentColor; opacity: .35; transform: rotate(16deg); }
.pk-steps i.on { background: currentColor; opacity: 1; }
.pk-steps i.fail { background: var(--bad); box-shadow: none; opacity: 1; }
.pk-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 0; }
.pk-facts div { padding: 12px 14px; border-radius: 14px; background: var(--panel); }
.pk-facts dt { color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.pk-facts dd { margin: 4px 0 0; font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; line-height: 1.2; }

/* TV: stół na większość ekranu, po prawej poziom, życia, gracze i gwiazdka. */
.pk-tv.pk-playing { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(20rem, 30rem); gap: 2.4rem; align-items: stretch; }
.pk-tv-main > div, .pk-tv-main .pk-table { height: 100%; }
.pk-tv-side { display: flex; flex-direction: column; gap: 1.4rem; min-width: 0; }
.pk-tv .pk-table { min-height: 34rem; border-radius: 2rem; gap: 1.6rem; }
.pk-tv .pk-pulse { width: 34rem; height: 34rem; margin: -17rem 0 0 -17rem; top: calc(50% - 1.6rem); }
.pk-tv .pk-card.lg { --w: 15rem; }
.pk-tv .pk-card.xl { --w: 12rem; }
.pk-tv .pk-card.sm { --w: 3.4rem; }
.pk-tv .pk-card.md { --w: 4.6rem; }
.pk-tv .pk-slot { transform: translate(calc(var(--i, 0) * -2rem), calc(var(--i, 0) * -.4rem)); }
.pk-tv .pk-by { font-size: 1.5rem; }
.pk-tv .pk-by .chip-av.xs { width: 2.2rem; height: 2.2rem; border-radius: .6rem; font-size: 1.1rem; }
.pk-tv .pk-top { gap: 1rem; }
.pk-tv .pk-top .label { font-size: 1.3rem; }
.pk-tv .pk-res .ic { width: 2.2rem; height: 2.2rem; }
.pk-tv .pk-twist { padding: .4rem 1rem; font-size: 1.1rem; }
.pk-tv .pk-count { font-size: 1.3rem; text-align: left; margin: 0; }
.pk-players.tv { flex-direction: column; gap: .6rem; }
.pk-players.tv li { padding: .6rem 1rem .6rem .6rem; border-radius: 1rem; gap: .9rem; }
.pk-players.tv .rn { flex: 1; max-width: none; font-size: 1.35rem; }
.pk-players.tv .pk-left i { width: .9rem; height: 1.25rem; }
.pk-players.tv .pk-wants .ic { width: 1.6rem; height: 1.6rem; }
.pk-tv .pk-levelbig strong { font-size: 9rem; }
.pk-tv .pk-levelbig .label { font-size: 1.2rem; }
.pk-tv-side .pk-steps { margin: 0; color: var(--game); }
.pk-tv-side .pk-steps i { width: 1.2rem; height: 1.2rem; }
.pk-tv .pk-levelbig .sub { font-size: 1.6rem; }
.pk-ready.pk-tv, .pk-oops.pk-tv, .pk-clear.pk-tv { width: 100%; max-width: 1200px; margin: 0 auto; gap: 1.6rem; }
/* TV: zgranie w dwóch kolumnach, kafelek poziomu po lewej, przeszkoda i gotowi po prawej. */
.pk-ready.pk-tv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); column-gap: 4rem; row-gap: 1.4rem; align-content: center; max-width: 1400px; }
.pk-ready.pk-tv > * { grid-column: 2; margin: 0; }
.pk-ready.pk-tv > .pk-top { grid-column: 1 / 3; }
.pk-ready.pk-tv > .pk-levelbig { grid-column: 1; grid-row: 2 / span 5; align-self: center; }
.pk-ready.pk-tv .tv-lead { font-size: 1.5rem; }
.pk-ready.pk-tv .vote-status { align-items: flex-start; }
.pk-ready.pk-tv .roster { justify-content: flex-start; width: auto; }
.pk-ready.pk-tv .pk-reward-note { justify-content: flex-start; }
.pk-tv .pk-twist-card { padding: 1.4rem 1.8rem; border-radius: 1.4rem; }
.pk-tv .pk-twist-card strong { font-size: 2rem; }
.pk-tv .pk-twist-card p { font-size: 1.3rem; }
.pk-tv .pk-reward-note { font-size: 1.3rem; }
.pk-tv .pk-bang h2 { font-size: 6rem; }
.pk-tv .pk-bang .pk-oops-by { font-size: 1.6rem; }
.pk-tv .pk-lost li { padding: .8rem 1.2rem; border-radius: 1rem; font-size: 1.3rem; }
.pk-tv .pk-cleared h2 { font-size: 6rem; }
.pk-tv .pk-got { font-size: 2rem; padding: .6rem 1.4rem; }
.pk-tv .pk-next-twist { font-size: 1.4rem; }
.pk-tv .pk-center { font-size: 1.3rem; }
.pk-tv .pk-bar { height: .5rem; }
.tv-result .pk-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html.tv .tv-result .pk-facts dd { font-size: 1.5rem; }
@media (max-width: 1000px) { .pk-tv.pk-playing { grid-template-columns: 1fr; } }
@media (max-width: 380px) { .pk-card.xl { --w: 112px; } .pk-card.lg { --w: 98px; } }
@media (prefers-reduced-motion: reduce) {
  .pk-pulse, .pk-card.new, .pk-heart.broken, .pk-bang-card, .pk-levelbig strong::before, .pk-got, .pk-clear .pk-row .pk-card, .pk-cleared h2 { animation: none; }
  .pk-pulse { opacity: .14; }
}

/* Po kolei na TV: krąg graczy przy zielonym stole z wachlarzami kart (js/pokolei.js) */
.pk-ringbox { position: relative; width: 100%; aspect-ratio: 16 / 10; max-height: calc(100dvh - 9rem); container-type: size; }
.pk-felt { position: absolute; left: 16%; right: 16%; top: 26%; bottom: 12%; border-radius: 50%; background: color-mix(in srgb, var(--game) 22%, #1f2a26); border: .6cqw solid #3a2f3a; box-shadow: 0 1.6cqh 0 #241d28; }
.pk-ringbox > [data-pk="table"] { position: absolute; left: 50%; top: 55%; z-index: 2; transform: translate(-50%, -50%); }
.pk-ringbox .pk-table { min-height: 0; padding: 0; background: none; gap: .8rem; }
.pk-tv .pk-ringbox .pk-card.lg { --w: 9cqw; }
.pk-tv .pk-ringbox .pk-pulse { width: 22cqw; height: 22cqw; margin: -11cqw 0 0 -11cqw; top: 45%; }
.pk-tv .pk-ringbox .pk-slot { transform: translate(calc(var(--i, 0) * -1.2cqw), calc(var(--i, 0) * -.3cqw)); }
.pk-seat { position: absolute; display: flex; flex-direction: column; align-items: center; width: 10.5cqw; transform: translate(-50%, -100%); }
.pk-seat .fig { width: 100%; }
.pk-seat.away .fig-svg { opacity: .4; }
.pk-fan { position: absolute; left: 50%; top: 52%; z-index: 3; width: 0; height: 0; }
.pk-fan i { position: absolute; left: 0; bottom: 0; width: 3.2cqw; height: 4.4cqw; margin-left: -1.6cqw; border-radius: .4cqw; background: #faf6ee; border: .22cqw solid #16141c; transform-origin: 50% 120%; transform: rotate(var(--f)); }
.pk-fan i::after { content: ''; position: absolute; left: 30%; top: 30%; width: 40%; height: 30%; border-radius: 22%; background: var(--accent); transform: rotate(16deg); }
.pk-fan b { position: absolute; left: 2.2cqw; bottom: 2cqw; padding: 0 .5cqw; border-radius: .5cqw; background: #16141c; font: 700 1.3cqw var(--font-head); }
.pk-seat-nm { max-width: 150%; margin-top: -.3cqh; padding: .1cqh .6cqw; border-radius: .5cqw; background: #16141c; color: var(--text); font: 700 1.6cqw/1.3 var(--font-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; z-index: 4; }
.pk-seat.empty .pk-seat-nm { background: var(--good); color: var(--bg); }
.pk-seat-star { position: absolute; top: -2.4cqw; z-index: 5; display: grid; place-items: center; width: 2.6cqw; height: 2.6cqw; border-radius: 50%; background: #ffd25a; color: #16141c; animation: scn-pop-in .35s var(--ease) both; }
.pk-seat-star svg { width: 60%; height: 60%; }
.pk-flying { position: fixed; z-index: 300; display: grid; place-items: center; width: 54px; height: 74px; border-radius: 8px; background: #faf6ee; border: 3px solid #16141c; color: #16141c; font: 700 1.6rem var(--font-head); font-style: normal; pointer-events: none; }

/* ---------- Pościg ---------- */
.pc-cols { display: grid; gap: 14px; margin-top: 12px; }
.pc-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pc-side .qz-q, .pc-side .qz-opts { margin-top: 0; margin-bottom: 0; }
.qz-opts.pc-opts { grid-template-columns: 1fr; }
.pc-ladder { display: flex; flex-direction: column; gap: 6px; }
.pc-row { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 14px; border: 0; border-radius: 12px; background: var(--panel); color: var(--text); font: inherit; text-align: left; transition: background .25s; }
.pc-row b { font-family: var(--font-head); font-weight: 700; }
.pc-row .pc-stake { margin-left: auto; font-family: var(--font-head); font-weight: 700; color: var(--game); }
.pc-row.gap { background: color-mix(in srgb, var(--game) 12%, var(--panel)); }
.pc-row.home { box-shadow: inset 0 0 0 2px var(--panel-3); }
.pc-row.chaser { background: var(--text); color: var(--bg); }
.pc-row.runner { background: var(--game); color: var(--on-accent); }
.pc-row.runner .pc-stake, .pc-row.chaser .pc-stake { color: inherit; }
.pc-row.caught { background: var(--bad); }
button.pc-row.offer { cursor: pointer; box-shadow: inset 0 0 0 2px var(--game); }
button.pc-row.offer:active { transform: scale(.98); }
button.pc-row.offer:disabled { opacity: .5; }
.pc-ladder.mini { flex-direction: row; gap: 4px; }
.pc-ladder.mini .pc-row { flex: 1; justify-content: center; min-width: 0; min-height: 40px; padding: 4px 2px; border-radius: 9px; gap: 2px; }
.pc-ladder.mini .pc-row b, .pc-ladder.mini .pc-stake { display: none; }
.pc-ladder.mini .pc-row.home:not(.runner) b { display: inline; font-size: .7rem; }
.pc-ladder.mini .pc-row.caught .avatar + .avatar { margin-left: -12px; }
.pc-title { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--font-head); font-size: 1.8rem; letter-spacing: -.02em; }
.pc-side > .sub { margin: 0; }
.pc-role { margin: 0; font-weight: 650; color: var(--muted); }
.pc-role.runner { color: var(--game); }
.pc-role.chaser { color: var(--text); }
.pc-runs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pc-runs li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--panel); font-weight: 650; }
.pc-runs li small { margin-left: auto; color: var(--muted); font-size: .85rem; font-weight: 700; }
.pc-runs li.home small { color: var(--game); }
.pc-runs li.caught small { color: var(--bad); }
.pc-runs li.now { box-shadow: inset 0 0 0 2px var(--game); }
.pc-runs li.me span { color: var(--game); }
.pc-marks { display: flex; gap: 4px; margin-left: auto; }
.pc-banner { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 14px; background: var(--panel); }
.pc-banner strong { font-family: var(--font-head); font-size: 1.7rem; line-height: 1.05; letter-spacing: -.02em; }
.pc-banner.caught strong { color: var(--bad); }
.pc-banner.home { background: var(--game); color: var(--on-accent); }
.pc-moves { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pc-moves li { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--panel); font-weight: 650; min-width: 0; }
.pc-moves li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-moves li b { margin-left: auto; color: var(--muted); font-size: .85rem; white-space: nowrap; }
.pc-moves li.ok b { color: var(--game); }
.pc-fan { margin: 0; color: var(--muted); font-weight: 650; }
.pc-fan.good { color: var(--game); }
.pc-scores { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; margin-top: 12px; }
.pc-score { display: flex; flex-direction: column; gap: 6px; padding: 12px 16px; border-radius: 16px; background: var(--panel); }
.pc-score b { font-family: var(--font-head); font-size: 3rem; line-height: 1; font-variant-numeric: tabular-nums; }
.pc-score.team b { color: var(--game); }
.pc-score.chaser b { color: var(--text); }
.pc-avs { display: flex; flex-wrap: wrap; gap: 4px; }
.pc-bar { height: 10px; margin-top: 10px; border-radius: 5px; background: var(--panel); overflow: hidden; }
.pc-bar i { display: block; height: 100%; width: calc(var(--share) * 100%); background: var(--text); transition: width .4s var(--ease); }
.pc-lead { margin: 10px 0; }
.pc-final .qz-opts { margin: 12px 0 6px; }
.pc-lock { margin: 0; color: var(--bad); font-weight: 700; }
.pc-last { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; font-weight: 650; }
.pc-last.ok { color: var(--game); }
.pc-last.bad { color: var(--muted); }
.verdict.pc-win { background: var(--game); color: var(--on-accent); }
/* TV: drabina po lewej, pytanie i wynik po prawej, wszystko większe. */
.pc-tv { width: 100%; max-width: 1600px; margin: 0 auto; }
.pc-tv .who-head { font-size: 1.3rem; }
.pc-tv .who-head .countdown { font-size: clamp(3rem, 6vw, 6rem); line-height: 1; color: var(--text); }
.pc-tv .pc-cols { grid-template-columns: minmax(0, .75fr) minmax(0, 1.5fr); gap: 3rem; align-items: start; }
.pc-tv .pc-ladder { gap: .5rem; }
.pc-tv .pc-row { min-height: 4rem; padding: .5rem 1.4rem; border-radius: 1rem; font-size: 1.4rem; gap: 1rem; }
.pc-tv .pc-side { gap: 1.2rem; }
.pc-tv .oko-q { padding: 2rem 2.4rem; border-radius: 1.6rem; }
.pc-tv .oko-q p { font-size: clamp(2rem, 3.4vw, 3.6rem); }
.pc-tv .qz-opt { min-height: 5rem; padding: 1rem 1.6rem 1rem 1.2rem; border-radius: 1.2rem; }
.pc-tv .qz-l { width: 3.2rem; height: 3.2rem; font-size: 1.7rem; }
.pc-tv .qz-t { font-size: clamp(1.4rem, 2.2vw, 2.2rem); }
.pc-tv .pc-title { font-size: 3rem; }
.pc-tv .pc-side > .sub, .pc-tv .pc-lead { font-size: 1.4rem; }
.pc-tv .pc-runs li { padding: .8rem 1.2rem; border-radius: 1rem; font-size: 1.3rem; }
.pc-tv .pc-banner { padding: 1.4rem 1.8rem; border-radius: 1.2rem; }
.pc-tv .pc-banner strong { font-size: 3rem; }
.pc-tv .pc-banner span, .pc-tv .pc-moves li { font-size: 1.3rem; }
.pc-tv.pc-final { max-width: 1300px; }
.pc-tv .pc-score { padding: 1.2rem 1.8rem; border-radius: 1.4rem; }
.pc-tv .pc-score b { font-size: 6rem; }
.pc-tv .pc-bar { height: 1rem; }
.pc-tv .pc-last { font-size: 1.4rem; }

/* Pościg: schody od łowcy na szczycie do domu na dole (js/poscig.js) */
.pc-stairs { position: relative; isolation: isolate; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 18px; background: color-mix(in srgb, var(--game) 10%, #1d1a25); container-type: size; }
.pc-stairs.mini { aspect-ratio: 16 / 9; }
.pc-step { position: absolute; bottom: 0; z-index: 1; padding: 0; border: 0; border-top: .6cqh solid #16141c; background: #3a3545; box-shadow: inset .5cqw 0 0 #2a2633; font: inherit; color: var(--text); }
.pc-step::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2.4cqh; background: #4d465c; }
.pc-step.gap::before { background: color-mix(in srgb, var(--game) 45%, #4d465c); }
.pc-step.offer { cursor: default; }
button.pc-step.offer { cursor: pointer; }
button.pc-step.offer::before { background: var(--game); }
button.pc-step.offer:disabled { opacity: .5; }
.pc-tag { position: absolute; left: 50%; top: 4cqh; z-index: 2; padding: .4cqh .8cqw; border-radius: .8cqw; background: #16141c; color: var(--text); font: 700 1.9cqw/1.2 var(--font-head); white-space: nowrap; transform: translateX(-50%); }
.pc-tag b { color: var(--game); }
.pc-stairs.mini .pc-tag { font-size: 2.4cqw; }
.pc-house { position: absolute; z-index: 2; width: 9cqw; height: 13cqh; transform: translate(-50%, -100%); }
.pc-house .roof { position: absolute; left: -10%; right: -10%; top: 0; height: 45%; background: var(--game); border: .4cqw solid #16141c; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.pc-house .wall { position: absolute; left: 0; right: 0; top: 40%; bottom: 0; background: #faf6ee; border: .4cqw solid #16141c; }
.pc-house .door { position: absolute; left: 35%; right: 35%; top: 62%; bottom: 0; background: #7f5536; border: .3cqw solid #16141c; border-bottom: 0; }
.pc-pot { position: absolute; z-index: 3; padding: .4cqh .8cqw; border-radius: .6cqw; background: #16141c; color: var(--game); font: 700 1.7cqw var(--font-head); white-space: nowrap; transform: translate(-50%, 0); }
.pc-stairs.mini .pc-pot { font-size: 2.4cqw; }
.pc-on { position: absolute; z-index: 5; width: 12cqw; transform: translate(-50%, -100%); }
.pc-stairs.mini .pc-on { width: 8.5cqw; }
.pc-on[data-pc-on="chaser"] { z-index: 6; }
.pc-who { display: flex; flex-direction: column; align-items: center; }
.pc-who .fig { width: 100%; }
.pc-who .fig-j { position: relative; }
.pc-hat { position: absolute; left: 50%; top: 2%; z-index: 2; width: 70%; transform: translateX(-50%); }
.pc-nm { max-width: 160%; margin-top: -.4cqh; padding: .1cqh .6cqw; border-radius: .5cqw; background: #16141c; color: var(--text); font: 700 1.5cqw/1.3 var(--font-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; z-index: 2; }
.pc-who.chaser .pc-nm { background: #ff3d5f; color: #16141c; }
.pc-stairs.mini .pc-nm { font-size: 2.2cqw; }
.pc-on.at-home { width: 8cqw; }
.pc-boom { position: absolute; z-index: 8; display: grid; place-items: center; width: 22cqw; transform: translate(-50%, -110%); animation: bm-bang .55s cubic-bezier(.2, 1.6, .4, 1) .5s both; pointer-events: none; }
.pc-boom svg { grid-area: 1 / 1; width: 100%; }
.pc-boom b { grid-area: 1 / 1; color: #16141c; font: 700 3cqw var(--font-head); transform: rotate(-8deg); }
.pc-stairs.caught { animation: tb-shake .5s ease-in-out .5s; }
.pc-tv .pc-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }

/* ---------- Gra w pokoju: karta "Gramy w" nad ustawieniami i okno wyboru innej gry ---------- */
.gcard {
  display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) auto; align-items: center; gap: 14px;
  margin-top: 32px; padding: 12px 14px 12px 12px; background: var(--panel); border-radius: 20px;
}
.gcard-art {
  aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--game);
  display: grid; place-items: center; transform: rotate(-2deg);
}
.gcard-art > svg { width: 88%; height: auto; }
.gcard-art img.cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.gcard-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gcard-body .label { font-size: .68rem; }
.gcard-title { margin: 0; font-family: var(--font-head); font-size: 1.45rem; line-height: 1.1; letter-spacing: -.02em; overflow-wrap: anywhere; }
.gcard-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 2px 0 0; color: var(--dim); font-size: .85rem; font-weight: 550; }
.gcard-meta span { display: inline-flex; align-items: center; gap: 5px; }
.gcard-change { padding: 0 16px; gap: 8px; }
.gcard-suggest { grid-column: 1 / -1; }
.gcard-change .ic { color: var(--game); }
.gcard-by { margin: 0; max-width: 11ch; font-size: .82rem; color: var(--dim); text-align: right; }
@media (max-width: 520px) {
  .gcard { grid-template-columns: 6.5rem minmax(0, 1fr); }
  .gcard-change { grid-column: 1 / -1; width: 100%; }
  .gcard-by { grid-column: 1 / -1; max-width: none; text-align: left; }
}
@media (min-width: 900px) { .lobby-side .gcard { margin-top: 10px; } .lobby-side .gcard + .section-head { margin-top: 30px; } }
html.tv .gcard { margin: 0 0 1.4rem; grid-template-columns: 9rem minmax(0, 1fr) auto; padding: .8rem 1rem .8rem .8rem; border-radius: 1.2rem; }
html.tv .gcard-title { font-size: 1.8rem; }
@media (prefers-reduced-motion: no-preference) {
  .gcard.swapped { animation: gcard-in .45s var(--ease) both; }
  .gcard.swapped .gcard-art { animation: gcard-art-in .6s var(--ease) both; }
}
@keyframes gcard-in { from { transform: translateY(10px); opacity: 0; } }
@keyframes gcard-art-in { from { transform: rotate(-16deg) scale(.7); } }

.game-pick { max-width: 860px; padding: 0; }
.gp-head { position: sticky; top: 0; z-index: 2; padding: 22px 22px 14px; background: var(--panel); border-bottom: 1px solid var(--line); }
.gp-head .sheet-close { top: 12px; right: 12px; }
.gp-head .sheet-title { padding-right: 48px; }
.gp-head .sheet-sub { margin: 4px 0 14px; padding-right: 24px; }
.gp-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -22px; padding: 0 22px; }
.gp-chips::-webkit-scrollbar { display: none; }
@media (min-width: 700px) { .gp-chips { flex-wrap: wrap; overflow: visible; } }
.gp-chips .chip { flex: none; min-height: 36px; background: var(--panel-2); }
.gp-chips .chip[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.gp-chips .chip[aria-pressed="true"]::before { background: var(--accent); }
.gp-list { padding: 4px 22px calc(24px + env(safe-area-inset-bottom)); }
.gp-group { margin: 20px 0 10px; font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.gp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(10.5rem, 42vw), 1fr)); gap: 10px; }
.gp-list > .gp-grid:first-child { margin-top: 18px; }
.gp-tile {
  position: relative; display: flex; flex-direction: column; padding: 0; border: 0; border-radius: 14px; overflow: hidden;
  background: var(--panel-2); text-align: left; transition: transform .2s var(--ease), background .2s;
}
.gp-tile:hover:not(:disabled) { transform: translateY(-2px); background: var(--panel-3); }
.gp-tile:active:not(:disabled) { transform: scale(.98); }
.gp-art { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--game); overflow: hidden; }
.gp-art > svg { width: 86%; height: auto; }
.gp-art img.cover { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease); }
.gp-tile:hover:not(:disabled) .gp-art img.cover { transform: scale(1.04); }
.gp-body { display: flex; flex-direction: column; gap: 3px; padding: 9px 12px 11px; }
.gp-body strong { font-family: var(--font-head); font-size: 1.02rem; line-height: 1.15; letter-spacing: -.01em; }
.gp-meta { display: flex; flex-wrap: wrap; gap: 2px 10px; color: var(--dim); font-size: .78rem; font-weight: 550; }
.gp-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.gp-need { color: var(--muted); }
.gp-tile.short .gp-art { opacity: .5; }
.gp-tile[aria-current="true"] { cursor: default; box-shadow: inset 0 0 0 2px var(--game); }
.gp-now {
  position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px 3px 6px;
  border-radius: 999px; background: var(--bg); color: var(--text); font-style: normal; font-size: .72rem; font-weight: 700;
}
html.tv .game-pick { max-width: 64rem; }
html.tv .gp-grid { grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); }
/* Dopisywanie do planu: plus w rogu okładki, gra już w planie z obwódką. */
.gp-plus { position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--bg); color: var(--text); transform: rotate(16deg); transition: transform .2s var(--ease); }
.gp-plus .ic { transform: rotate(-16deg); }
.gp-tile:hover .gp-plus { transform: rotate(0); }
.gp-tile.planned { box-shadow: inset 0 0 0 2px var(--game); }

/* ---------- Wieczór: ranking całej sesji, historia, plan gier, przerwa i finał (js/session.js) ---------- */
#room .gamebar { grid-template-columns: 44px 1fr; grid-auto-flow: column; grid-auto-columns: auto; }
#room-session { position: relative; }
.ss-badge {
  position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 6px;
  background: var(--accent); color: var(--on-accent); font: 700 .7rem/18px var(--font-head); font-style: normal; text-align: center;
}
.ss-empty { margin: 0; padding: 18px; border-radius: 14px; background: var(--panel); color: var(--muted); text-align: center; }
.ss-help { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; color: var(--dim); font-size: .85rem; line-height: 1.45; }
.ss-help .ic { margin-top: 2px; }

/* Ranking: miejsce, postać, imię z liczbą gier, awans, przyrost i suma. */
.ss-rank { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ss-row {
  --h: 58px; position: relative; display: flex; align-items: center; gap: 10px; min-height: var(--h); padding: 4px 14px 4px 6px;
  border-radius: 14px; background: var(--panel);
}
.ss-row.me { box-shadow: inset 0 0 0 1.5px var(--panel-3); }
.ss-row.top { background: var(--game); color: var(--on-accent); }
.ss-row.top .ss-name small, .ss-row.top .ss-place { color: inherit; opacity: .7; }
.ss-row.gone { opacity: .5; }
.ss-place { flex: none; width: 2ch; text-align: center; font: 700 1.1rem var(--font-head); color: var(--muted); }
.ss-row .fig-av .fig { width: 34px; }
.ss-name { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.ss-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-name small { color: var(--dim); font-size: .78rem; font-weight: 550; }
.ss-move { display: inline-flex; align-items: center; gap: 1px; font: 700 .8rem var(--font-head); }
.ss-move.up { color: var(--good); }
.ss-move.down { color: var(--bad); }
.ss-row.top .ss-move { color: inherit; }
.ss-gain { padding: 1px 7px; border-radius: 7px; background: var(--good); color: var(--bg); font: 700 .78rem/1.5 var(--font-head); }
.ss-pts { min-width: 2.2ch; text-align: right; font: 700 1.45rem var(--font-head); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) {
  /* Wiersze startują z miejsc sprzed ostatniej gry i przesuwają się na nowe. */
  .ss-rank.anim .ss-row { animation: ss-move .9s var(--ease) calc(.35s + var(--i) * 40ms) both; }
  .ss-rank.anim .ss-gain { animation: ss-pop .4s var(--ease) calc(1.1s + var(--i) * 40ms) both; }
}
@keyframes ss-move { from { transform: translateY(calc(var(--from) * (var(--h) + 6px))); } }
@keyframes ss-pop { from { transform: scale(0) rotate(-16deg); } }

/* Historia gier. */
.ss-hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ss-hist li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px; border-radius: 14px; background: var(--panel); }
.ss-hart, .ss-pi-art, .ss-er-art, .ss-dock-art, .ss-next-art { display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; background: var(--game); }
.ss-hart > svg, .ss-pi-art > svg, .ss-er-art > svg, .ss-dock-art > svg, .ss-next-art > svg { width: 86%; height: auto; }
.ss-hart img.cover, .ss-pi-art img.cover, .ss-er-art img.cover, .ss-dock-art img.cover, .ss-next-art img.cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.ss-hbody { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ss-hbody strong { font-family: var(--font-head); line-height: 1.15; }
.ss-hbody strong span { color: var(--dim); }
.ss-hbody > small { color: var(--dim); font-size: .8rem; }
.ss-htop { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; }
.ss-htop span { display: inline-flex; align-items: center; gap: 4px; font-size: .84rem; font-weight: 600; }
.ss-htop em { font-style: normal; color: var(--dim); }
.ss-htop b { color: var(--good); font: 700 .8rem var(--font-head); }
.ss-htop .win em { color: var(--game); }

/* Pasek planu: okładki po kolei. */
.ss-strip { list-style: none; margin: 0 -16px; padding: 2px 16px 6px; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.ss-strip::-webkit-scrollbar { display: none; }
.ss-pi { flex: none; width: 7.2rem; display: flex; flex-direction: column; gap: 4px; }
.ss-pi-art { position: relative; transition: transform .3s var(--ease); }
.ss-pi-art i { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(22, 20, 28, .6); color: var(--text); }
.ss-pi-t { display: flex; gap: 5px; font-size: .84rem; font-weight: 650; line-height: 1.2; }
.ss-pi-t em { flex: none; font-style: normal; color: var(--dim); }
.ss-pi small { color: var(--dim); font-size: .75rem; }
.ss-pi.done { opacity: .55; }
.ss-pi.now .ss-pi-art, .ss-pi.next .ss-pi-art { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--game); transform: rotate(-3deg); }
.ss-pi.now .ss-pi-t em, .ss-pi.next .ss-pi-t em { color: var(--game); }
.ss-edit-btn { margin-top: 12px; }
.ss-cta {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 0; border-radius: 16px;
  background: var(--panel); text-align: left; box-shadow: inset 0 0 0 1.5px var(--panel-3); transition: background .15s;
}
.ss-cta:hover { background: var(--panel-2); }
.ss-cta > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ss-cta strong { font-family: var(--font-head); font-size: 1.08rem; }
.ss-cta small { color: var(--muted); font-size: .86rem; line-height: 1.35; }
.ss-cta-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: var(--on-accent); transform: rotate(-8deg); }
.ss-cta > .ic:last-child { color: var(--dim); }

/* Okna: ranking wieczoru i edytor planu. */
.ss-sheet, .ss-plan-sheet { max-width: 620px; }
.ss-sheet-body { padding: 18px 22px calc(24px + env(safe-area-inset-bottom)); }
.ss-sheet-body .ss-strip { margin: 0 -22px; padding-inline: 22px; }
.ss-sheet-body .ss-row, .ss-sheet-body .ss-hist li, .ss-sheet-body .ss-empty, .ss-sheet-body .ss-cta { background: var(--panel-2); }
.ss-sheet-body .ss-row.top { background: var(--game); }
.ss-sheet-body .block-head .text-link { margin: 0; }
.ss-sheet-foot { display: flex; gap: 8px; margin-top: 26px; }
.ss-sheet-foot .btn { flex: 1; }
.ss-sheet-foot.wrap { flex-wrap: wrap; }
.ss-sheet-foot.wrap .btn { flex: 1 1 12rem; }
.btn.danger-text { color: var(--bad); }
.ss-edit { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ss-er {
  display: grid; grid-template-columns: 26px 4.6rem minmax(0, 1fr) auto auto; align-items: center; gap: 10px;
  padding: 8px 6px 8px 8px; border-radius: 14px; background: var(--panel-2); animation: step-in .25s var(--ease) both;
}
.ss-er.done { opacity: .55; }
.ss-er.now, .ss-er.next { box-shadow: inset 0 0 0 2px var(--game); }
.ss-er-n { display: grid; place-items: center; font: 700 1rem var(--font-head); color: var(--muted); }
.ss-er-body { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.ss-er-body strong { font-family: var(--font-head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-er-body small { display: inline-flex; align-items: center; gap: 4px; color: var(--dim); font-size: .78rem; }
.ss-er.now .ss-er-body small { color: var(--game); font-weight: 700; }
.ss-step { display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 11px; background: var(--panel); }
.ss-step button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px; background: transparent; }
.ss-step button:hover:not(:disabled) { background: var(--panel-3); }
.ss-step button:disabled { opacity: .3; cursor: not-allowed; }
.ss-step > span { display: flex; flex-direction: column; align-items: center; min-width: 3.2ch; line-height: 1; }
.ss-step b { font: 700 1.05rem var(--font-head); }
.ss-step small { font-size: .62rem; color: var(--dim); }
.ss-er-tools { display: flex; }
.ss-er-tools .icon-btn { width: 36px; height: 36px; color: var(--muted); }
.ss-er-tools .icon-btn:disabled { opacity: .25; cursor: not-allowed; background: none; }
.ss-add {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 56px; margin-top: 10px;
  border: 1.5px dashed var(--panel-3); border-radius: 14px; background: transparent; font-weight: 650; color: var(--muted); transition: color .15s, border-color .15s;
}
.ss-add:hover { color: var(--text); border-color: var(--muted); }
@media (max-width: 520px) {
  .ss-er { grid-template-columns: 22px 3.6rem minmax(0, 1fr) auto; row-gap: 6px; }
  .ss-er > .ss-step { grid-column: 2 / 4; justify-self: start; }
  .ss-er > .ss-er-tools { grid-column: 4; grid-row: 2; }
  .ss-er > .ss-er-body { grid-column: 3 / 5; }
}

/* Przerwa między grami: ranking, a obok następna gra z odliczaniem i gotowością. */
.ss-break { display: flex; flex-direction: column; gap: 8px; }
.ss-b-rank .h2 { margin-bottom: 16px; }
.ss-b-side { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.ss-b-side > div:empty { display: none; }
.ss-b-side .notice { margin: 0 0 12px; }
.ss-next {
  position: relative; display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); grid-template-areas: 'art body' 'clock clock';
  gap: 12px 14px; padding: 14px; border-radius: 20px; background: var(--panel); overflow: hidden;
}
.ss-next-art { grid-area: art; transform: rotate(-2deg); }
.ss-next-body { grid-area: body; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ss-next-body .label { font-size: .68rem; color: var(--game); }
.ss-next-body h3 { margin: 0; font-family: var(--font-head); font-size: 1.5rem; line-height: 1.1; letter-spacing: -.02em; }
.ss-next-body .text-link { margin-top: 6px; }
.ss-next-clock { grid-area: clock; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-height: 0; }
.ss-next-clock:empty { display: none; }
.ss-next-clock small { color: var(--muted); font-weight: 600; text-align: right; }
.ss-clock { display: inline-flex; align-items: center; gap: 8px; font: 700 1rem var(--font-head); font-variant-numeric: tabular-nums; }
.ss-clock.big { font-size: 2.6rem; line-height: 1; letter-spacing: -.02em; }
.ss-clock.paused { color: var(--muted); }
.ss-clock.paused.big { font-size: 1.4rem; }
.ss-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--panel-2); }
.ss-bar i { display: block; height: 100%; background: var(--game); transform-origin: left; animation: ss-bar linear both; }
@keyframes ss-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.ss-ready { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 4px; }
.ss-acts { margin-top: 0; padding-top: 0; flex-wrap: wrap; }
.ss-acts .btn { flex: 1 1 10rem; }
.ss-host { display: flex; flex-wrap: wrap; gap: 6px; }
.ss-host .btn { flex: 1 1 auto; min-height: 42px; padding: 0 14px; font-size: .9rem; }
.ss-sum { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--panel); color: var(--muted); font-size: .9rem; }
.ss-settings { margin-top: 0; }
@media (min-width: 900px) {
  .ss-break { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
  .ss-b-side { margin-top: 0; position: sticky; top: 72px; }
}
html.tv .ss-break { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
html.tv .ss-b-rank .h2 { font-size: 3.2rem; }
html.tv .ss-b-side { margin-top: 0; }
html.tv .ss-row { --h: 4.2rem; padding: .3rem 1.2rem .3rem .5rem; border-radius: 1.1rem; gap: .9rem; }
html.tv .ss-row .fig-av .fig { width: 3rem; }
html.tv .ss-name strong { font-size: 1.35rem; }
html.tv .ss-name small { font-size: .95rem; }
html.tv .ss-place { font-size: 1.5rem; }
html.tv .ss-pts { font-size: 2.1rem; }
html.tv .ss-gain, html.tv .ss-move { font-size: 1.05rem; }
html.tv .ss-next { grid-template-columns: 13rem minmax(0, 1fr); padding: 1.2rem; border-radius: 1.4rem; }
html.tv .ss-next-body h3 { font-size: 2.4rem; }
html.tv .ss-clock.big { font-size: 4.2rem; }
html.tv .ss-bar { height: .45rem; }
html.tv .ss-ready .roster { width: 100%; }

/* Finał wieczoru: podium jak w grach, bez przycisków gry. */
.ss-final { display: flex; flex-direction: column; }
.ss-final .scn-act { display: none; }
.ss-final > .scn-me { margin-top: 14px; }
.ss-final .scn-awards { margin-top: 14px; }
html.tv .ss-final.tv .scn { width: min(100%, calc((100dvh - 14rem) * 16 / 9)); }
.ss-final.tv .ss-final-acts { justify-content: center; padding-top: 1.4rem; }
.ss-final.tv .ss-final-acts .btn { flex: 0 1 16rem; }

/* Pasek pod wynikiem gry, gdy prowadzi plan: co dalej, za ile i przyciski gospodarza.
   Przyciski samej gry (kolejna runda, do poczekalni) chowamy, bo kolejnością rządzi plan. */
.ss-dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; overflow: hidden;
  background: var(--panel); border-top: 1px solid var(--line); animation: ss-dock-in .4s var(--ease) both;
}
.ss-dock .ss-bar { top: 0; bottom: auto; height: 4px; }
.ss-dock-in {
  display: flex; align-items: center; gap: 12px; max-width: var(--stage-w); margin: 0 auto;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}
.ss-dock-art { flex: none; width: 4.6rem; }
.ss-dock-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--game); color: var(--on-accent); transform: rotate(-8deg); }
.ss-dock-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.ss-dock-t small { color: var(--dim); font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ss-dock-t strong { font-family: var(--font-head); font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-dock-when { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .88rem; }
.ss-dock-b { flex: none; display: flex; align-items: center; gap: 4px; }
.ss-dock-b .btn { min-height: 44px; padding: 0 16px; }
@keyframes ss-dock-in { from { transform: translateY(100%); } }
#room.plan-run .stage { padding-bottom: 110px; }
#room.plan-run #room-stage [data-act="start"], #room.plan-run #room-stage [data-act="lobby"], #room.plan-run #room-stage .dock-wait.solo { display: none; }
@media (max-width: 420px) { .ss-dock-art { display: none; } }
html.tv .ss-dock-in { max-width: none; padding: 1rem 3rem; gap: 1.4rem; }
html.tv .ss-dock-art { width: 8rem; }
html.tv .ss-dock-t strong { font-size: 1.6rem; }
html.tv .ss-dock-when { font-size: 1.1rem; }
html.tv .ss-dock .ss-clock { font-size: 1.3rem; }
html.tv #room.plan-run .stage { padding-bottom: 8rem; }

/* ---------- Mafia: scena miasteczka (js/mafia-town.js) ---------- */
.mt-scene { --sky: #3f6f9e; --ground: #3d5b43; --street: #4a4553; --shade: 0%; position: relative; isolation: isolate; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 18px; container-type: size; background: var(--sky); transition: background-color 1.2s; }
html.tv .mt-scene { width: min(100%, calc((100dvh - 8.5rem) * 16 / 9)); margin: 0 auto; }
.mt-scene.mini { aspect-ratio: 1 / .9; margin: 14px 0 6px; }
.t-dusk { --sky: #57406f; --ground: #34443a; --street: #3f3a4a; --shade: 22%; }
.t-dawn { --sky: #a9596a; --ground: #3a4b3c; --street: #48404f; --shade: 12%; }
.t-night { --sky: #151b3a; --ground: #1d2722; --street: #24222e; --shade: 52%; }
.mt-sky { position: absolute; inset: 0; z-index: 0; background: var(--sky); transition: background-color 1.2s; }
.mt-stars i { position: absolute; width: calc(var(--s) * .55cqw); aspect-ratio: 1; border-radius: 22%; background: #f3ead2; transform: rotate(16deg); opacity: 0; transition: opacity 1.2s; }
.t-night .mt-stars i { opacity: .85; }
@media (prefers-reduced-motion: no-preference) { .t-night .mt-stars i { animation: mt-twinkle 3.2s ease-in-out var(--d) infinite; } }
@keyframes mt-twinkle { 50% { opacity: .25; } }

/* Słońce i księżyc (płaski sierp z cienia wewnętrznego) */
.mt-orb { position: absolute; left: 70%; top: 10%; width: 6.4cqw; aspect-ratio: 1; border-radius: 50%; background: #ffd25e; }
.mt-orb.sun.high { left: 62%; top: 7%; }
.mt-orb.sun.rise { animation: mt-rise 2.4s var(--ease) both; }
@keyframes mt-rise { from { top: calc(var(--horizon) + 4%); background: #ff9a4d; } }
.mt-orb.sun.set { background: #ff9a4d; animation: mt-set var(--dur) linear var(--del) both; }
@keyframes mt-set { from { top: 16%; } to { top: calc(var(--horizon) - 4%); } }
.mt-orb.moon { background: transparent; box-shadow: inset -2.1cqw 1cqw 0 0 #f3ead2; transform: rotate(-20deg); animation: mt-moon var(--dur) linear var(--del) both; }
@keyframes mt-moon { from { left: 4%; top: 34%; } 50% { left: 44%; top: 6%; } to { left: 86%; top: 34%; } }
.mt-orb.moon.red { left: 64%; top: 8%; box-shadow: inset -2.1cqw 1cqw 0 0 #ff5d6c; animation: none; }

/* Wzgórza, trawa i ulica z przodu */
.mt-hills { position: absolute; left: -10%; right: -10%; top: calc(var(--horizon) - 7%); z-index: 1; height: 30%; background: color-mix(in srgb, var(--ground) 70%, var(--sky)); border-radius: 50% 50% 0 0 / 100% 100% 0 0; transition: background-color 1.2s; }
.mt-ground { position: absolute; left: 0; right: 0; top: var(--horizon); bottom: 0; z-index: 2; background: var(--ground); transition: background-color 1.2s; }
.mt-ground::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 15cqh; background: var(--street); border-top: .6cqh solid color-mix(in srgb, var(--street) 60%, #8a8494); transition: background-color 1.2s; }

/* Ratusz z zegarem na wieży */
.mt-hall { position: absolute; left: 50%; top: var(--hall-b); z-index: 4; width: var(--hall-w); transform: translate(-50%, -100%); }
.mt-hall-svg { display: block; width: 100%; overflow: visible; }
.mt-hall-svg * { stroke: #16141c; stroke-width: 3.5; stroke-linejoin: round; }
.mt-hall-svg .h-wall, .mt-hall-svg .h-tower { fill: color-mix(in srgb, #ebe2d4, #0d1230 var(--shade)); }
.mt-hall-svg .h-wall-r, .mt-hall-svg .h-tower-r, .mt-hall-svg .h-beam { fill: color-mix(in srgb, #cdbfac, #0d1230 var(--shade)); }
.mt-hall-svg .h-wall-r, .mt-hall-svg .h-tower-r { stroke: none; }
.mt-hall-svg .h-roof { fill: color-mix(in srgb, color-mix(in srgb, var(--game) 70%, #2a2230), #0d1230 var(--shade)); }
.mt-hall-svg .h-col { fill: color-mix(in srgb, #f7f0e4, #0d1230 var(--shade)); }
.mt-hall-svg .h-door { fill: #3a2f3a; }
.t-night .mt-hall-svg .h-door { fill: #ffd56a; }
.mt-hall-svg .h-step { fill: color-mix(in srgb, #b3a693, #0d1230 var(--shade)); }
.mt-clock { position: absolute; left: 50%; top: 30.8%; z-index: 2; display: grid; place-items: center; width: 29%; aspect-ratio: 1; border-radius: 50%; background: #faf6ee; border: calc(var(--hall-w) * .016) solid #16141c; color: #16141c; transform: translate(-50%, -50%); }
.mt-scene .mt-clock .clock-digits, .mt-cd { position: relative; z-index: 1; font: 700 calc(var(--hall-w) * .082) / 1 var(--font-head); letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: #16141c; }
.mt-scene .mt-clock .clock-digits.small { font-size: calc(var(--hall-w) * .06); color: #16141c; }
.mt-scene.paused .mt-clock .clock-digits { color: #9a93a6; }
.ticks.mt-ticks { position: absolute; inset: 0; display: block; margin: 0; }
.ticks.mt-ticks i { position: absolute; left: 50%; top: 50%; width: calc(var(--hall-w) * .024); height: calc(var(--hall-w) * .024); margin: calc(var(--hall-w) * -.012); background: #ddd5e2; transform: rotate(calc(var(--k) * 30deg)) translateY(calc(var(--hall-w) * -.113)) rotate(16deg); }
.ticks.mt-ticks i.on { background: #16141c; }
.ticks.mt-ticks i.last { background: var(--game); transform: rotate(calc(var(--k) * 30deg)) translateY(calc(var(--hall-w) * -.113)) rotate(16deg) scale(1.5); }
.mt-hands { position: absolute; inset: 0; }
.mt-hands i { position: absolute; left: 50%; bottom: 50%; width: 7%; border-radius: 1cqw; background: #16141c; transform-origin: 50% 100%; }
.mt-hands .h { height: 26%; transform: translateX(-50%) rotate(-55deg); }
.mt-hands .m { height: 36%; transform: translateX(-50%) rotate(50deg); }

/* Urna przed ratuszem */
.mt-urn { position: absolute; left: 50%; bottom: 3%; z-index: 30; display: grid; place-items: end center; width: 34%; aspect-ratio: 1.15; padding-bottom: 5%; border-radius: calc(var(--hall-w) * .03); background: #faf6ee; border: calc(var(--hall-w) * .012) solid #16141c; box-shadow: inset calc(var(--hall-w) * -.06) 0 0 #ddd5e2; transform: translateX(-50%); }
.mt-urn .slot { position: absolute; left: 50%; top: 14%; width: 46%; height: 8%; border-radius: 1cqw; background: #16141c; transform: translateX(-50%); }
.mt-urn span { color: #16141c; font: 700 calc(var(--hall-w) * .085) / 1 var(--font-head); }
.mt-urn.small { width: auto; aspect-ratio: auto; padding: 2% 5%; white-space: nowrap; box-shadow: none; }
.mt-urn.small span { font-size: calc(var(--hall-w) * .055); }
.mt-urn.gulp { animation: imp-gulp .35s var(--ease); }

/* Działka: domek w kolorze gracza, przed nim postać (albo nagrobek), imię pod spodem */
.mt-lot { position: absolute; width: var(--w); aspect-ratio: 1 / 1.1; transform: translate(-50%, -100%); }
.mt-house { position: absolute; left: 0; bottom: 9%; width: 100%; overflow: visible; }
.mt-house * { stroke: #16141c; stroke-width: 3; stroke-linejoin: round; }
.mt-house .wall { fill: color-mix(in srgb, color-mix(in srgb, var(--pc) 30%, #efe6d8), #0d1230 var(--shade)); }
.mt-house .wall-r { fill: color-mix(in srgb, color-mix(in srgb, var(--pc) 42%, #b9ab98), #0d1230 var(--shade)); stroke: none; }
.mt-house .roof { fill: color-mix(in srgb, color-mix(in srgb, var(--pc) 78%, #16141c), #0d1230 var(--shade)); }
.mt-house .chim { fill: color-mix(in srgb, #6c5f68, #0d1230 var(--shade)); }
.mt-house .door { fill: #3a2f3a; }
.mt-house .win, .mt-house .round { fill: color-mix(in srgb, #bcd6ee, #0d1230 var(--shade)); transition: fill .8s; }
.mt-house .board { display: none; stroke: #7a5a40; stroke-width: 4.5; stroke-linecap: round; }
.t-night .mt-house .win, .t-night .mt-house .round, .m-roles .mt-lot.ok .win, .m-roles .mt-lot.ok .round { fill: #ffd56a; }
.mt-lot.dead .mt-house { filter: grayscale(.9) brightness(.7); }
.mt-lot.dead .mt-house .win, .mt-lot.dead .mt-house .round { fill: #2a2733; }
.mt-lot.dead .mt-house .board { display: block; }
.mt-who { position: absolute; left: 50%; bottom: 0; z-index: 2; width: 62%; transform: translateX(-50%); }
.mt-who .fig { width: 100%; transition: opacity .8s, transform .8s var(--ease); }
.mt-lot.away .fig-svg { opacity: .4; }
.mt-tomb { display: block; width: 74%; margin: 0 auto; overflow: visible; }
.mt-lot.fall .mt-tomb { position: absolute; left: 13%; bottom: 0; transform-origin: 50% 100%; }
.mt-nm { position: absolute; left: 50%; top: 100%; z-index: 3; max-width: 160%; margin-top: .3cqh; padding: .15cqh .6cqw; border-radius: .5cqw; background: #16141c; color: var(--text); font: 700 calc(var(--w) * .15) / 1.3 var(--font-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transform: translateX(-50%); }
.mt-lot.dead .mt-nm { color: var(--dim); text-decoration: line-through; }
/* Rząd z tyłu: imię nad dachem, bo pod domkiem zasłaniają je domki z przodu */
.mt-lot.back .mt-nm { top: auto; bottom: 100%; margin: 0 0 .3cqh; }
.mt-over { position: absolute; left: 50%; bottom: 72%; z-index: 6; display: flex; flex-direction: column; align-items: center; gap: .5cqh; transform: translateX(-50%); }
.mt-spot { position: absolute; left: 50%; bottom: 0; z-index: 1; width: 150%; height: 120cqh; background: rgba(255, 61, 127, .2); clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%); transform: translate(-50%, 0); opacity: 0; transition: opacity .6s; pointer-events: none; }
.mt-lot.fall .mt-spot { opacity: 1; }

/* Role: karta w rękach, po "gotowe" schowana, w oknach zapala się światło */
.mt-card { position: absolute; left: 50%; top: 56%; z-index: 3; display: grid; place-items: center; width: 40%; aspect-ratio: 5 / 7; border-radius: 12%; background: #faf6ee; border: calc(var(--w) * .02) solid #16141c; transform: translateX(-50%) rotate(-6deg); transition: opacity .5s, transform .5s var(--ease); }
.mt-card i { width: 42%; aspect-ratio: 1; border-radius: 22%; background: var(--accent); transform: rotate(16deg); }
.mt-lot.ok .mt-card { opacity: 0; transform: translateX(-50%) translateY(40%) scale(.4); }
@media (prefers-reduced-motion: no-preference) { .mt-lot.card .mt-card { animation: mt-wobble 2.4s ease-in-out infinite; } }
@keyframes mt-wobble { 50% { transform: translateX(-50%) translateY(-6%) rotate(4deg); } }

/* Noc: wszyscy w domach, z kominów lecą "z", ulicą przemykają cienie */
.mt-lot.sleep .mt-who .fig { opacity: 0; transform: translateY(-12%) scale(.5); }
.mt-lot.sleep:not(.dead)::before { content: 'z'; position: absolute; left: 70%; top: -6%; z-index: 5; color: #f3ead2; font: 700 calc(var(--w) * .2) / 1 var(--font-head); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .mt-lot.sleep:not(.dead)::before { animation: mt-z 3.4s ease-out infinite; }
  .mt-lot.sleep:nth-child(3n)::before { animation-delay: -1.2s; }
  .mt-lot.sleep:nth-child(3n+1)::before { animation-delay: -2.3s; }
}
@keyframes mt-z { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 25% { opacity: .9; } 100% { opacity: 0; transform: translate(60%, -160%) scale(1.3); } }
.mt-street { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.mt-sneak { position: absolute; left: -8%; bottom: calc(100% - var(--horizon) - 5%); width: 3.6cqw; }
.mt-scene.mini .mt-sneak { width: 7cqw; }
.mt-sneak .fig-j { position: relative; }
.mt-sneak .fig-eyes ellipse { fill: #ffd56a; }
@media (prefers-reduced-motion: no-preference) {
  .mt-sneak.s1 { animation: mt-sneak 17s linear -3s infinite; }
  .mt-sneak.s2 { animation: mt-sneak 17s linear -9.5s infinite; }
}
@keyframes mt-sneak { from { left: -8%; } to { left: 108%; } }
.mt-hat { position: absolute; left: 50%; top: 4%; z-index: 2; width: 66%; transform: translateX(-50%); }
.mt-who .fig-j { position: relative; }

/* Ranek i werdykt: ofiara w czerwonym świetle, potem nagrobek; nad nią karta roli */
.mt-lot.fall .mt-who > .fig { animation: mt-ghost 1s var(--ease) 1.6s both; }
.mt-lot.fall .mt-tomb { animation: mt-tomb .6s var(--ease) 2.2s both; }
@keyframes mt-ghost { to { opacity: 0; transform: translateY(-40%) scale(.85); } }
@keyframes mt-tomb { from { transform: scaleY(0); } }
.mt-role { display: grid; place-items: center; padding: .3cqh calc(var(--w) * .1); border-radius: calc(var(--w) * .06); background: var(--rc); border: calc(var(--w) * .02) solid #16141c; color: #16141c; font: 700 calc(var(--w) * .14) / 1.25 var(--font-head); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.mt-role.q { background: #ebe2d4; padding-inline: calc(var(--w) * .16); }
.mt-role.turn { animation: mt-turn .9s var(--ease) var(--d, 2.6s) both; }
@keyframes mt-turn { 0% { transform: perspective(40cqw) rotateY(180deg) scale(.5); background: #faf6ee; color: transparent; } 50% { transform: perspective(40cqw) rotateY(90deg) scale(1.1); background: #faf6ee; color: transparent; } 51% { background: var(--rc); color: #16141c; } 100% { transform: none; } }
.mt-role.q.flip { --rc: #ebe2d4; }
.mt-votes { display: grid; place-items: center; min-width: calc(var(--w) * .34); height: calc(var(--w) * .34); padding: 0 .4cqw; border-radius: 50%; background: #faf6ee; border: calc(var(--w) * .02) solid #16141c; color: #16141c; font: 700 calc(var(--w) * .2) var(--font-head); animation: scn-pop-in .4s var(--ease) var(--d, .4s) both; }
.mt-plus { padding: .1cqh calc(var(--w) * .08); border-radius: calc(var(--w) * .06); background: var(--good); color: var(--bg); font: 700 calc(var(--w) * .16) var(--font-head); animation: scn-pop-in .4s var(--ease) var(--d, 2s) both; }
.m-morning.quiet .mt-lot:not(.dead) .fig { animation: fig-hop .55s var(--ease) .6s 2; }
.mt-scene.seen .mt-lot.fall .mt-who > .fig, .mt-scene.seen .mt-lot.fall .mt-tomb, .mt-scene.seen .mt-role, .mt-scene.seen .mt-votes, .mt-scene.seen .mt-plus, .mt-scene.seen .mt-orb.rise { animation-duration: 1ms; animation-delay: 0ms; }
@media (prefers-reduced-motion: reduce) {
  .mt-lot.fall .mt-who > .fig, .mt-lot.fall .mt-tomb, .mt-role.turn, .mt-votes, .mt-plus, .mt-orb.rise { animation-duration: 1ms; animation-delay: 0ms; }
}

/* Wynik: mafia w kapeluszach, wygrana mafia pod czerwonym księżycem */
.m-result.win-mafia .mt-lot.mafia .mt-spot { opacity: 1; }
.m-result.win-town .mt-lot.mafia .mt-spot { opacity: .6; }

/* Napisy i przyciski na TV */
.mt-top { position: absolute; left: 2cqw; top: 2.4cqh; z-index: 40; max-width: 30cqw; padding: 1.4cqh 1.4cqw; border-radius: 1cqw; background: color-mix(in srgb, #16141c 88%, transparent); }
.mt-top .label { color: var(--muted); font-size: 1.15cqw; }
.mt-top h2 { margin: .4cqh 0 0; font: 700 2.7cqw/1.05 var(--font-head); letter-spacing: -.03em; }
.mt-top p { margin: .8cqh 0 0; color: var(--muted); font-size: 1.3cqw; font-weight: 600; }
.mt-top p b { display: inline-block; margin-top: .6cqh; color: var(--text); }
.mt-act { position: absolute; right: 2cqw; top: 2.4cqh; z-index: 40; display: flex; gap: .8cqw; }
.mt-act .btn { min-height: 0; padding: .7cqw 1.5cqw; border-radius: .8cqw; font-size: 1.25cqw; }
.mt-act .btn.ghost { background: var(--bg); }
.mt-act .btn .countdown { opacity: .6; margin-left: .4cqw; }
.mt-final { display: flex; flex-direction: column; gap: .8rem; }
html.tv .mt-final .mt-scene { width: min(100%, calc((100dvh - 14rem) * 16 / 9)); }
.mt-final .timeline { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: .4rem; }
.mt-final .timeline li { display: flex; gap: .5rem; padding: .25rem .7rem; font-size: .85rem; }

/* Telefon: większy zegar i podpisy względem szerokości sceny */
.mt-scene.mini .mt-clock { width: 46%; top: 33%; }
.mt-scene.mini .mt-clock .clock-digits, .mt-scene.mini .mt-cd { font-size: calc(var(--hall-w) * .13); }
.mt-scene.mini .mt-clock .clock-digits.small { font-size: calc(var(--hall-w) * .1); }
.mt-scene.mini .ticks.mt-ticks i { width: calc(var(--hall-w) * .036); height: calc(var(--hall-w) * .036); margin: calc(var(--hall-w) * -.018); transform: rotate(calc(var(--k) * 30deg)) translateY(calc(var(--hall-w) * -.18)) rotate(16deg); }
.mt-scene.mini .ticks.mt-ticks i.last { transform: rotate(calc(var(--k) * 30deg)) translateY(calc(var(--hall-w) * -.18)) rotate(16deg) scale(1.4); }
.mt-scene.mini .mt-nm { font-size: max(calc(var(--w) * .17), 2.7cqw); padding: .2cqh 1cqw; border-radius: 1cqw; }
.mt-scene.mini .mt-role { font-size: max(calc(var(--w) * .14), 2.3cqw); }
.mt-scene.mini .mt-votes { min-width: max(calc(var(--w) * .34), 5.4cqw); height: max(calc(var(--w) * .34), 5.4cqw); font-size: max(calc(var(--w) * .2), 3.2cqw); }
.mt-scene.mini .mt-plus { font-size: max(calc(var(--w) * .16), 2.6cqw); }
.mt-scene.mini .mt-ground::after { height: 13cqh; }
.morning .mt-scene.mini, .maf-day .mt-scene.mini { margin-top: 16px; }

/* Pasek nieba nad nocnym wyborem i głosowaniem na telefonie */
.mt-band { --sky: #3f6f9e; position: relative; height: 74px; margin: 6px 0 4px; overflow: hidden; border-radius: 16px; background: var(--sky); container-type: size; }
.mt-band.t-night { --sky: #151b3a; }
.mt-band .mt-orb { left: 76%; top: 14%; width: 9cqh; width: 34px; animation: none; }
.mt-band .mt-orb.moon { box-shadow: inset -9px 4px 0 0 #f3ead2; }
.mt-band .mt-stars i { width: 4px; }
.mt-roofs i { position: absolute; bottom: 0; width: 13%; height: var(--h); background: color-mix(in srgb, var(--sky) 45%, #0a0910); clip-path: polygon(0 34%, 50% 0, 100% 34%, 100% 100%, 0 100%); transform: translateX(-50%); }
.mt-band.t-night .mt-roofs i::after { content: ''; position: absolute; left: 30%; top: 52%; width: 18%; aspect-ratio: 1; background: #ffd56a; }
.mt-band-hall { position: absolute; left: 50%; bottom: 0; width: 22%; height: 62%; background: color-mix(in srgb, var(--sky) 45%, #0a0910); clip-path: polygon(0 40%, 36% 40%, 36% 12%, 50% 0, 64% 12%, 64% 40%, 100% 40%, 100% 100%, 0 100%); transform: translateX(-50%); }
.m-roles .mt-orb { left: 80%; top: calc(var(--horizon) - 9%); background: #ff9a4d; }

/* ---------- Tabu: studio teleturnieju (js/tabu-arena.js) ---------- */
.tb-arena { --t0: #ffb938; --t1: #6aa8ff; position: relative; isolation: isolate; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 18px; background: #1d1a25; container-type: size; }
.tb-arena.mini { aspect-ratio: 1 / .92; margin: 12px 0 6px; }
.tb-wall { position: absolute; top: 0; bottom: 24%; width: 50%; z-index: 0; }
.tb-wall.w0 { left: 0; background: color-mix(in srgb, var(--t0) 16%, #1d1a25); }
.tb-wall.w1 { right: 0; background: color-mix(in srgb, var(--t1) 16%, #1d1a25); }
.tb-wall.w0::after, .tb-wall.w1::after { content: ''; position: absolute; top: 18%; width: 5cqw; height: 5cqw; border-radius: 22%; opacity: .25; transform: rotate(16deg); }
.tb-wall.w0::after { left: 6%; background: var(--t0); }
.tb-wall.w1::after { right: 6%; background: var(--t1); }
.tb-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 24%; z-index: 1; background: #2a2633; border-top: .6cqh solid #3a3545; }

/* Tablica wyników */
.tb-board { position: absolute; left: 50%; top: 3cqh; z-index: 10; display: grid; grid-template-columns: 1fr 1.25fr 1fr; grid-template-areas: "a m b"; align-items: stretch; gap: .6cqw; width: 44cqw; transform: translateX(-50%); }
.tb-sc { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: .9cqh .8cqw; border-radius: 1cqw; background: #16141c; border: .3cqw solid #16141c; box-shadow: inset 0 .7cqh 0 var(--tc); transition: background .4s; }
.tb-sc.s0 { grid-area: a; }
.tb-sc.s1 { grid-area: b; }
.tb-sc span { color: var(--tc); font: 700 1.1cqw/1.2 var(--font-head); letter-spacing: .06em; text-transform: uppercase; }
.tb-sc b { font: 700 4.6cqw/1 var(--font-head); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.tb-sc.on { background: color-mix(in srgb, var(--tc) 30%, #16141c); }
.tb-mid { grid-area: m; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8cqh; padding: .8cqh .6cqw; border-radius: 1cqw; background: #16141c; }
.tb-mid .label { color: var(--muted); font-size: 1.05cqw; white-space: nowrap; }
.tb-mid .scn-bar { width: 90%; height: 1.1cqw; }
.tb-mid .scn-bar i { background: var(--dt); }
.tb-mid .scn-sec { font: 700 2.4cqw/1 var(--font-head); font-variant-numeric: tabular-nums; min-width: 0; text-align: center; }

/* Trybuny drużyn: rzędy postaci, z tyłu wyżej i trochę mniejsze */
.tb-side { position: absolute; bottom: 14cqh; z-index: 4; display: flex; flex-direction: column; align-items: stretch; width: 32cqw; }
.tb-side.s0 { left: 1.5cqw; }
.tb-side.s1 { right: 1.5cqw; }
.tb-crowd { display: flex; flex-direction: column; align-items: center; }
.tb-row { display: flex; justify-content: center; gap: .6cqw; }
.tb-row + .tb-row { margin-top: -2.2cqh; }
.tb-row:not(:last-child) { transform: scale(.86); transform-origin: 50% 100%; }
.tb-fan { position: relative; display: flex; flex-direction: column; align-items: center; width: min(10cqw, calc(29cqw / var(--per))); }
.tb-fan .fig { width: 100%; }
.tb-fan.away .fig-svg { opacity: .4; }
.tb-nm { max-width: 130%; margin-top: -.6cqh; padding: .1cqh .5cqw; border-radius: .5cqw; background: #16141c; color: var(--text); font: 700 1cqw/1.3 var(--font-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; z-index: 2; }
.tb-riser { display: block; height: 4.5cqh; margin-top: -1.4cqh; border-radius: .8cqw .8cqw 0 0; background: color-mix(in srgb, var(--tc) 55%, #16141c); border: .25cqw solid #16141c; border-bottom: 0; }
.tb-team-nm { position: absolute; left: 50%; bottom: -3.6cqh; padding: .2cqh .9cqw; border-radius: .5cqw; background: var(--tc); color: #16141c; font: 700 1.15cqw/1.3 var(--font-head); letter-spacing: .06em; text-transform: uppercase; transform: translateX(-50%) rotate(-2deg); white-space: nowrap; }
.m-result .tb-fan.won .fig { animation: fig-cheer .42s ease-in-out infinite alternate; }

/* Podium opisującego: światło, postać za mównicą, na mównicy zakryta talia */
.tb-podium { position: absolute; left: 50%; bottom: 9cqh; z-index: 6; display: flex; flex-direction: column; align-items: center; width: 22cqw; transform: translateX(-50%); }
.tb-spot { position: absolute; left: 50%; bottom: 0; z-index: -1; width: 24cqw; height: 100cqh; background: rgba(255, 245, 220, .09); clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%); transform: translateX(-50%); }
.tb-host { position: relative; display: flex; flex-direction: column; align-items: center; width: 12.5cqw; }
.tb-host .fig { width: 100%; }
.tb-host .tb-nm { position: absolute; top: -2.6cqh; font-size: 1.2cqw; }
.tb-desk { position: relative; z-index: 2; width: 18cqw; height: 13cqh; margin-top: -8cqh; }
.tb-desk-front { position: absolute; inset: 1.6cqh 0 0; background: #faf6ee; border: .3cqw solid #16141c; border-radius: .6cqw .6cqw 0 0; clip-path: polygon(0 0, 100% 0, 92% 100%, 8% 100%); box-shadow: inset 0 -2.4cqh 0 var(--tc); }
.tb-deck { position: absolute; left: 50%; bottom: 74%; z-index: 3; width: 5.4cqw; height: 3.9cqw; transform: translateX(-50%); }
.tb-deck .tb-back { position: absolute; inset: 0; transform: translateY(calc(var(--k) * -.35cqh)); }
.tb-back { display: grid; place-items: center; border-radius: .45cqw; background: #faf6ee; border: .22cqw solid #16141c; }
.tb-back b { width: 34%; aspect-ratio: 1; border-radius: 22%; background: var(--accent); transform: rotate(16deg); }
.tb-trophy { width: 13cqw; overflow: visible; margin-bottom: -2cqh; animation: scn-pop-in .6s var(--ease) .3s both; }
.m-result .tb-desk { margin-top: 0; }

/* Stosy kart i buzzer */
.tb-pile { position: absolute; bottom: 2.2cqh; z-index: 8; width: 4.2cqw; height: 6cqh; transform: translateX(-50%); }
.tb-pile.got.s0 { left: 35cqw; }
.tb-pile.got.s1 { left: 65cqw; }
.tb-pile.buzz.s0 { left: 24cqw; }
.tb-pile.buzz.s1 { left: 76cqw; }
.tb-pile.skip { left: 50%; bottom: .8cqh; transform: translateX(-50%) scale(.8); }
.tb-pile-cards i { position: absolute; left: 0; bottom: calc(var(--k) * .5cqh); width: 100%; height: 3cqw; border-radius: .45cqw; border: .22cqw solid #16141c; transform: rotate(var(--r)); }
.tb-pile.got i { background: var(--dt); }
.tb-pile.buzz i { background: #ff5d6c; }
.tb-pile.skip i { background: #8f8a9b; }
.tb-pile-n { position: absolute; right: -1.4cqw; top: -2.4cqh; z-index: 2; display: grid; place-items: center; min-width: 2.4cqw; height: 2.4cqw; padding: 0 .4cqw; border-radius: 50%; background: #faf6ee; border: .2cqw solid #16141c; color: #16141c; font: 700 1.3cqw var(--font-head); }
.tb-pile:has(.tb-pile-cards:empty) .tb-pile-n { opacity: 0; }
.tb-pile:has(.tb-pile-cards:empty)::before { content: ''; position: absolute; inset: auto 0 0; height: 3cqw; border-radius: .45cqw; border: .22cqw dashed #4d475b; }
.tb-pile.bump .tb-pile-cards i:last-child { animation: tb-land .35s var(--ease); }
.tb-pile.bump .tb-pile-n { animation: scn-pop-in .35s var(--ease); }
@keyframes tb-land { from { transform: translateY(-40%) rotate(var(--r)) scale(1.15); } }
.tb-buzzer { position: absolute; bottom: 1.6cqh; z-index: 8; width: 7cqw; height: 6.4cqw; transform: translateX(-50%); }
.tb-buzzer.s0 { left: 35cqw; }
.tb-buzzer.s1 { left: 65cqw; }
.tb-buzzer .base { position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: #3a3545; border: .25cqw solid #16141c; clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%); }
.tb-buzzer .dome { position: absolute; left: 14%; right: 14%; bottom: 40%; height: 46%; border-radius: 50% 50% .4cqw .4cqw / 100% 100% .4cqw .4cqw; background: #ff3d5f; border: .25cqw solid #16141c; box-shadow: inset -.9cqw -.4cqw 0 #c8203f; }
.tb-buzzer .dome::after { content: ''; position: absolute; left: 22%; top: 18%; width: 20%; height: 22%; border-radius: 50%; background: #fff; opacity: .5; }
.tb-buzzer.hit .dome { animation: tb-press .45s var(--ease); }
@keyframes tb-press { 30% { transform: translateY(40%) scaleY(.6); } }

/* Efekty: lecąca karta, błysk, gwiazda "Zakazane!", +1/-1, trzęsienie */
.tb-flycard { position: absolute; z-index: 50; width: 3.4cqw; height: 4.6cqw; border-radius: .45cqw; background: #faf6ee; border: .22cqw solid #16141c; pointer-events: none; }
.tb-flycard.got { background: var(--dt); }
.tb-flycard.buzz { background: #ff5d6c; }
.tb-flycard.skip { background: #8f8a9b; }
.tb-flash { position: absolute; inset: 0; z-index: 45; background: #ff3d5f; pointer-events: none; animation: tb-flash .6s ease-out both; }
@keyframes tb-flash { from { opacity: .45; } to { opacity: 0; } }
.tb-bzz { position: absolute; z-index: 55; display: grid; place-items: center; width: 17cqw; transform: translate(-50%, -70%); pointer-events: none; animation: tb-bzz 1.4s var(--ease) both; }
.tb-bzz svg { grid-area: 1 / 1; width: 100%; }
.tb-bzz b { grid-area: 1 / 1; color: #16141c; font: 700 1.8cqw var(--font-head); letter-spacing: .02em; text-transform: uppercase; transform: rotate(-8deg); }
@keyframes tb-bzz { 0% { transform: translate(-50%, -70%) scale(.2) rotate(-20deg); opacity: 0; } 18% { transform: translate(-50%, -70%) scale(1.1) rotate(4deg); opacity: 1; } 80% { opacity: 1; } 100% { transform: translate(-50%, -80%) scale(1); opacity: 0; } }
.tb-pop { position: absolute; z-index: 56; padding: .2cqh .7cqw; border-radius: .5cqw; font: 700 2cqw var(--font-head); color: var(--bg); transform: translate(-50%, -100%); pointer-events: none; animation: tb-pop 1.3s var(--ease) both; }
.tb-pop.good { background: var(--good); }
.tb-pop.bad { background: var(--bad); }
@keyframes tb-pop { from { opacity: 0; transform: translate(-50%, -40%) scale(.5); } 20% { opacity: 1; transform: translate(-50%, -110%) scale(1.1); } 75% { opacity: 1; } to { opacity: 0; transform: translate(-50%, -220%); } }
.tb-arena.shake { animation: tb-shake .45s ease-in-out; }
@keyframes tb-shake { 20% { transform: translateX(-.8%); } 40% { transform: translateX(.8%); } 60% { transform: translateX(-.5%); } 80% { transform: translateX(.4%); } }
@media (prefers-reduced-motion: reduce) { .tb-arena.shake, .tb-bzz, .tb-flash { animation-duration: 1ms; } }

/* Napisy i przyciski na TV */
.tb-top { position: absolute; left: 1.8cqw; top: 3cqh; z-index: 20; max-width: 24cqw; padding: 1.3cqh 1.3cqw; border-radius: 1cqw; background: #16141c; }
.tb-top .label { color: var(--muted); font-size: 1.1cqw; }
.tb-top h2 { margin: .4cqh 0 0; font: 700 2.6cqw/1.05 var(--font-head); letter-spacing: -.03em; overflow-wrap: anywhere; }
.tb-top p { margin: .8cqh 0 0; color: var(--muted); font-size: 1.25cqw; font-weight: 600; }
.tb-top .team-tag { font-size: 1cqw; padding: .2cqh .6cqw; }
.tb-act { position: absolute; right: 1.8cqw; top: 3cqh; z-index: 20; display: flex; flex-direction: column; align-items: flex-end; gap: .8cqh; max-width: 24cqw; }
.tb-act .btn { min-height: 0; padding: .8cqw 1.5cqw; border-radius: .8cqw; font-size: 1.25cqw; }
.tb-act .btn.ghost { background: var(--bg); }
html.tv .tb-arena { width: min(100%, calc((100dvh - 8.5rem) * 16 / 9)); margin: 0 auto; }
.tb-tv { display: flex; flex-direction: column; gap: .8rem; }
html.tv .tb-tv .tb-arena { width: min(100%, calc((100dvh - 14rem) * 16 / 9)); }
html.tv .tb-tv .tabu-last { width: min(100%, 80rem); margin: 0 auto; }
html.tv .tb-tv .tabu-last .tabu-log { justify-content: center; }
html.tv .tb-tv .tabu-turns { grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }

/* Telefon: mniejsze studio, większe napisy względem szerokości */
.tb-arena.mini .tb-board { width: 84cqw; top: 2.5cqh; }
.tb-arena.mini .tb-sc span { font-size: 2.6cqw; }
.tb-arena.mini .tb-sc b { font-size: 8.5cqw; }
.tb-arena.mini .tb-mid .label { font-size: 2.6cqw; }
.tb-arena.mini .tb-mid .scn-bar { height: 2.2cqw; }
.tb-arena.mini .tb-mid .scn-sec { font-size: 5cqw; }
.tb-arena.mini .tb-side { width: 34cqw; bottom: 13cqh; }
.tb-arena.mini .tb-side.s0 { left: 1cqw; }
.tb-arena.mini .tb-side.s1 { right: 1cqw; }
.tb-arena.mini .tb-fan { width: min(13cqw, calc(31cqw / var(--per))); }
.tb-arena.mini .tb-nm { font-size: 2.3cqw; padding: .1cqh 1cqw; border-radius: 1cqw; }
.tb-arena.mini .tb-team-nm { font-size: 2.4cqw; bottom: -3.4cqh; }
.tb-arena.mini .tb-podium { width: 30cqw; bottom: 8cqh; }
.tb-arena.mini .tb-host { width: 19cqw; }
.tb-arena.mini .tb-host .tb-nm { font-size: 2.6cqw; top: -3.6cqh; }
.tb-arena.mini .tb-desk { width: 28cqw; height: 14cqh; margin-top: -9cqh; }
.tb-arena.mini .tb-deck { width: 8cqw; height: 5.8cqw; }
.tb-arena.mini .tb-trophy { width: 22cqw; }
.tb-arena.mini .tb-pile { width: 7.6cqw; height: 8cqh; }
.tb-arena.mini .tb-pile-cards i { height: 5.4cqw; }
.tb-arena.mini .tb-pile-n { min-width: 4.6cqw; height: 4.6cqw; font-size: 2.6cqw; right: -2.4cqw; }
.tb-arena.mini .tb-pile:has(.tb-pile-cards:empty)::before { height: 5.4cqw; }
.tb-arena.mini .tb-pile.got.s0, .tb-arena.mini .tb-buzzer.s0 { left: 31cqw; }
.tb-arena.mini .tb-pile.got.s1, .tb-arena.mini .tb-buzzer.s1 { left: 69cqw; }
.tb-arena.mini .tb-pile.buzz.s0 { left: 14cqw; }
.tb-arena.mini .tb-pile.buzz.s1 { left: 86cqw; }
.tb-arena.mini .tb-buzzer { width: 11cqw; height: 10cqw; }
.tb-arena.mini .tb-flycard { width: 6cqw; height: 8cqw; }
.tb-arena.mini .tb-bzz { width: 34cqw; }
.tb-arena.mini .tb-bzz b { font-size: 3.6cqw; }
.tb-arena.mini .tb-pop { font-size: 4cqw; }
.tabu-lead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* Telefon opisującego i pilnującego: licznik, karta na stosie, buzzer */
.tb-timer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px 12px; }
.tb-timer .tb-got { color: var(--muted); font-weight: 600; text-align: right; grid-column: 2; }
.tb-timer .tb-got b { color: var(--text); font-family: var(--font-head); font-size: 1.3rem; }
.tb-timer .scn-bar { grid-column: 1 / 3; width: 100%; height: 10px; border-radius: 4px; }
.tb-timer .scn-bar i { background: var(--tc, var(--game)); }
.tb-timer .scn-sec { grid-column: 3; grid-row: 1 / 3; font: 700 2.4rem/1 var(--font-head); font-variant-numeric: tabular-nums; }
.tb-stack { display: grid; margin: 10px 6px 4px; }
.tb-stack > * { grid-area: 1 / 1; }
.tb-stack .tb-back { border-radius: 22px; border-width: 3px; transform: rotate(calc(var(--k) * 2.5deg)) translate(calc(var(--k) * 4px), calc(var(--k) * 5px)); }
.tb-stack .tb-back b { width: 18%; }
.tb-card { position: relative; z-index: 2; overflow: hidden; border-radius: 22px; background: #faf6ee; border: 3px solid #16141c; color: #16141c; }
.tb-card-top { padding: 18px 20px 16px; background: var(--tc); border-bottom: 3px solid #16141c; }
.tb-card-word { display: block; font: 700 clamp(2.1rem, 10vw, 3rem)/1.02 var(--font-head); letter-spacing: -.03em; overflow-wrap: anywhere; }
.tb-card-taboo { list-style: none; margin: 0; padding: 14px 20px 18px; display: flex; flex-direction: column; gap: 7px; }
.tb-card-taboo li { display: flex; align-items: center; gap: 12px; font-size: 1.2rem; font-weight: 650; }
.tb-card-taboo li::before { content: ''; flex: none; width: 11px; height: 11px; border-radius: 3px; background: var(--bad); transform: rotate(16deg); }
.tb-stamp { position: absolute; left: 50%; top: 42%; padding: 6px 16px; border: 5px solid currentColor; border-radius: 12px; font: 700 2rem/1 var(--font-head); letter-spacing: .04em; text-transform: uppercase; transform: translate(-50%, -50%) rotate(-16deg) scale(1.6); opacity: 0; pointer-events: none; }
.tb-card.out.got .tb-stamp { color: var(--good); }
.tb-card.out.buzz .tb-stamp { color: var(--bad); }
.tb-card.out.got .tb-stamp, .tb-card.out.buzz .tb-stamp { animation: tb-stamp .25s var(--ease) both; }
@keyframes tb-stamp { to { opacity: 1; transform: translate(-50%, -50%) rotate(-16deg) scale(1); } }
.tb-card.in { animation: tb-deal .45s var(--ease) .15s both; z-index: 1; }
@keyframes tb-deal { from { transform: translateY(14%) scale(.92); opacity: 0; } }
.tb-card.out { z-index: 3; pointer-events: none; }
.tb-card.out.got { animation: tb-out-r .7s cubic-bezier(.5,0,.75,0) .3s both; }
.tb-card.out.skip { animation: tb-out-l .55s cubic-bezier(.5,0,.75,0) both; }
.tb-card.out.buzz { animation: tb-out-buzz .85s ease-in .2s both; }
.tb-card.out.time { animation: tb-out-l .4s ease-in both; }
@keyframes tb-out-r { to { transform: translate(130%, -8%) rotate(22deg); } }
@keyframes tb-out-l { to { transform: translate(-130%, -6%) rotate(-20deg); opacity: .6; } }
@keyframes tb-out-buzz { 0%, 30% { transform: translateX(0); } 8% { transform: translateX(-4%); } 16% { transform: translateX(4%); } 24% { transform: translateX(-2%); } 100% { transform: translateY(120%) rotate(12deg); opacity: 0; } }
.tabu-turn.guard .tb-stack { margin-inline: 22px; }
.tabu-turn.guard .tb-card-word { font-size: clamp(1.6rem, 7vw, 2.2rem); }
.tabu-turn.guard .tb-card-taboo li { font-size: 1.05rem; }
.tb-buzz-btn { position: relative; display: grid; place-items: center; width: min(58vw, 220px); aspect-ratio: 1; margin: 8px auto 0; padding: 0; border: 0; border-radius: 50%; background: #3a3545; box-shadow: 0 0 0 5px #16141c inset, 0 10px 0 #16141c; cursor: pointer; transition: transform .1s, box-shadow .1s; }
.tb-buzz-btn .dome { position: absolute; inset: 11%; border-radius: 50%; background: #ff3d5f; box-shadow: inset -14px -12px 0 #c8203f, 0 0 0 4px #16141c; }
.tb-buzz-btn .dome::after { content: ''; position: absolute; left: 22%; top: 16%; width: 22%; height: 16%; border-radius: 50%; background: #fff; opacity: .45; transform: rotate(-30deg); }
.tb-buzz-btn span { position: relative; color: #fff; font: 700 1.5rem var(--font-head); letter-spacing: .04em; text-transform: uppercase; transform: rotate(-8deg); }
.tb-buzz-btn:active:not(:disabled) { transform: translateY(8px); box-shadow: 0 0 0 5px #16141c inset, 0 2px 0 #16141c; }
.tb-buzz-btn:disabled { opacity: .55; cursor: default; }
.tabu-turn.guess { justify-content: flex-start; }
.tabu-turn.guess .tabu-big { margin: 10px 0 0; }

/* ---------- Kalambury: pracownia ze sztalugą i teatrzyk (js/charades.js) ---------- */
.ch-atelier { display: flex; flex-direction: column; gap: 10px; }
.ch-atelier.tv { display: grid; grid-template-columns: auto minmax(20rem, 34rem); justify-content: center; align-items: center; gap: 3.5rem; height: calc(100dvh - 8.5rem); width: 100%; }
.ch-side2 { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ch-atelier.tv .ch-side2 { gap: 1.4rem; }

/* Sztaluga: drewniana rama z płótnem, nogi, półka z kredkami; rysujący stoi z ołówkiem przy lewej nodze */
.ch-easel { position: relative; width: 100%; padding: 0 3% 12%; container-type: inline-size; }
.ch-atelier.tv .ch-easel { width: min(calc((100dvh - 8.5rem) / 1.2), 52vw); }
html:not(.tv) .ch-atelier .ch-easel { max-width: min(100%, calc(100dvh - 250px)); margin-inline: auto; }
.ch-leg { position: absolute; top: 18%; bottom: 0; z-index: 0; width: 3.4cqw; border-radius: 1cqw; background: #b07a4f; border: .6cqw solid #16141c; }
.ch-leg.l { left: 16%; transform: rotate(7deg); transform-origin: 50% 0; }
.ch-leg.r { right: 16%; transform: rotate(-7deg); transform-origin: 50% 0; }
.ch-leg.c { left: 50%; top: 6%; bottom: 3cqw; margin-left: -1.7cqw; background: #7f5536; }
.ch-canvas { position: relative; z-index: 2; padding: 2.4cqw; border-radius: 2cqw; background: #9a6440; border: .7cqw solid #16141c; box-shadow: 0 1.6cqw 0 rgba(0, 0, 0, .35); }
.ch-canvas .draw-wrap, .ch-canvas .draw-static { border-radius: 1.2cqw; }
.ch-canvas .ch-final { max-width: none; }
.ch-tray { position: relative; z-index: 3; display: flex; justify-content: center; gap: 2cqw; height: 3.6cqw; margin: -.6cqw -3cqw 0; padding-top: 0; border-radius: .8cqw; background: #b07a4f; border: .6cqw solid #16141c; }
.ch-tray i { width: 7cqw; height: 1.8cqw; margin-top: -1.4cqw; border-radius: .6cqw; border: .45cqw solid #16141c; background: #ff5d6c; }
.ch-tray i:nth-child(2) { background: #6aa8ff; transform: rotate(-6deg); }
.ch-tray i:nth-child(3) { background: #3ecf8e; transform: rotate(4deg); }
.ch-blank { display: grid; place-items: center; aspect-ratio: 1; border-radius: 1.2cqw; background: #faf8f4; }
.ch-blank span { color: #e3dde8; font: 700 40cqw/1 var(--font-head); }
@media (prefers-reduced-motion: no-preference) { .ch-blank span { animation: ch-wait 1.6s ease-in-out infinite; } }
@keyframes ch-wait { 50% { transform: rotate(8deg) scale(1.06); } }
.ch-artist { position: absolute; left: -2cqw; bottom: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; width: 17cqw; pointer-events: none; }
.ch-atelier.tv .ch-artist { left: -15cqw; width: 22cqw; }
.ch-artist .fig { width: 100%; }
.ch-artist .fig-j { position: relative; }
.ch-pencil { position: absolute; right: -36%; top: 52%; z-index: 3; width: 70%; transform: rotate(-35deg); }
@media (prefers-reduced-motion: no-preference) { .ch-draw .ch-pencil { animation: ch-scribble .5s ease-in-out infinite alternate; } }
@keyframes ch-scribble { to { transform: rotate(-25deg) translate(6%, -6%); } }
.ch-nm { max-width: 120%; margin-top: -4px; padding: 1px 7px; border-radius: 7px; background: #16141c; color: var(--text); font: 700 .72rem/1.35 var(--font-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; z-index: 2; }
.ch-pt { margin-top: 2px; color: var(--muted); font: 700 .78rem var(--font-head); }
.ch-artist .ch-nm { font-size: max(.72rem, 3cqw); }
.ch-artist .ch-pt { font-size: max(.78rem, 3cqw); }
.ch-plaque { position: absolute; left: 50%; bottom: -1.2cqw; z-index: 3; max-width: 86%; padding: .8cqw 3cqw; border-radius: 1cqw; background: #ffc83d; border: .6cqw solid #16141c; color: #16141c; font: 700 5cqw/1.1 var(--font-head); letter-spacing: -.02em; text-align: center; transform: translateX(-50%) rotate(-2deg); animation: scn-pop-in .5s var(--ease) .3s both; }

/* Hasło albo maska i pasek czasu */
.ch-banner { padding: 14px 16px; border-radius: 16px; background: var(--panel); }
.ch-banner p { margin: 6px 0 0; color: var(--muted); font-weight: 600; }
.ch-word-txt { display: block; margin-top: 4px; font: 700 1.8rem/1.05 var(--font-head); letter-spacing: -.02em; overflow-wrap: anywhere; }
.ch-banner.big .ch-word-txt { font-size: clamp(2.2rem, 9vw, 3rem); color: var(--game); }
.ch-clock { display: flex; align-items: center; gap: 12px; }
.ch-clock .scn-bar { flex: 1; width: auto; height: 12px; border-radius: 5px; }
.ch-clock .scn-sec { font: 700 1.6rem/1 var(--font-head); font-variant-numeric: tabular-nums; }
html.tv .ch-banner { padding: 1.4rem 1.8rem; border-radius: 1.4rem; }
html.tv .ch-banner .label { font-size: 1.1rem; }
html.tv .ch-word-txt { font-size: 3.2rem; }
html.tv .ch-banner.big .ch-word-txt { font-size: clamp(3rem, 5vw, 5rem); }
html.tv .ch-banner p { font-size: 1.4rem; }
html.tv .ch-clock .scn-bar { height: 1.1rem; border-radius: .5rem; }
html.tv .ch-clock .scn-sec { font-size: 3.4rem; }

/* Widownia: myśli, kto zgadł, podnosi ręce; nad głowami dymki z nietrafionymi odpowiedziami */
.ch-crowd { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 6px; padding-top: 30px; }
.ch-fan { position: relative; display: flex; flex-direction: column; align-items: center; width: 62px; }
.ch-fan .fig { width: 46px; }
.ch-fan.away .fig-svg { opacity: .4; }
.ch-fan.ok .ch-nm { background: var(--good); color: var(--bg); }
.ch-fan.me .ch-nm { box-shadow: 0 0 0 2px var(--text); }
html.tv .ch-atelier .ch-crowd { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: 2.8rem .6rem; padding-top: 3rem; }
html.tv .ch-fan { width: auto; }
html.tv .ch-fan .fig { width: 5.8rem; }
html.tv .ch-nm { font-size: 1.05rem; padding: .1rem .6rem; border-radius: .5rem; }
html.tv .ch-pt { font-size: 1.1rem; }
.ch-bub { position: absolute; left: 50%; bottom: calc(100% - 4px); z-index: 6; max-width: 150px; padding: 5px 10px; border-radius: 12px; background: #faf6ee; border: 2px solid #16141c; color: #16141c; font-weight: 700; font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transform: translateX(-50%); animation: ch-bub 2.8s var(--ease) both; }
.ch-bub::after { content: ''; position: absolute; left: 50%; bottom: -7px; width: 10px; height: 10px; margin-left: -5px; background: #faf6ee; border: 2px solid #16141c; border-top: 0; border-left: 0; transform: rotate(45deg); }
html.tv .ch-bub { max-width: 14rem; padding: .4rem .9rem; font-size: 1.15rem; border-radius: 1rem; }
@keyframes ch-bub { 0% { opacity: 0; transform: translateX(-50%) translateY(30%) scale(.5); } 12% { opacity: 1; transform: translateX(-50%) scale(1.05); } 18% { transform: translateX(-50%) scale(1); } 85% { opacity: 1; } 100% { opacity: 0; transform: translateX(-50%) translateY(-20%); } }
.ch-plus { position: absolute; right: -4px; top: -6px; z-index: 7; padding: 1px 7px; border-radius: 7px; background: var(--good); color: var(--bg); font: 700 .85rem var(--font-head); animation: scn-pop-in .4s var(--ease) .4s both; }
.ch-plus.live { animation: ch-plus 1.7s var(--ease) both; }
@keyframes ch-plus { 0% { opacity: 0; transform: translateY(40%) scale(.5); } 15% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-80%); } }
html.tv .ch-plus { font-size: 1.3rem; padding: .1rem .6rem; border-radius: .5rem; }
.ch-artist .ch-plus { right: 0; top: 0; font-size: max(.85rem, 3.6cqw); }

/* Teatrzyk (tryb pokazywania): kurtyny, deski sceny, pokazujący w świetle, widownia z przodu */
.ch-act-wrap { display: flex; flex-direction: column; gap: 12px; }
.ch-act-wrap.tv { gap: 1rem; }
.ch-theater { position: relative; isolation: isolate; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 18px; background: #2a1f2e; container-type: size; }
html.tv .ch-act-wrap.tv .ch-theater { width: min(100%, calc((100dvh - 12rem) * 16 / 9)); margin: 0 auto; }
.ch-theater.mini { aspect-ratio: 1 / 1.02; margin-top: 6px; }
.ch-valance { position: absolute; left: 0; right: 0; top: 0; z-index: 5; height: 9cqh; background: #c8203f; border-bottom: .6cqh solid #16141c; box-shadow: inset 0 -2cqh 0 #a8172f; }
.ch-curtain { position: absolute; top: 0; bottom: 14cqh; z-index: 4; width: 13cqw; background: #c8203f; border: .4cqw solid #16141c; }
.ch-curtain.l { left: -.4cqw; border-radius: 0 0 60% 0; box-shadow: inset -2.6cqw 0 0 #a8172f, inset -5.2cqw 0 0 #c8203f, inset -7.8cqw 0 0 #a8172f; }
.ch-curtain.r { right: -.4cqw; border-radius: 0 0 0 60%; box-shadow: inset 2.6cqw 0 0 #a8172f, inset 5.2cqw 0 0 #c8203f, inset 7.8cqw 0 0 #a8172f; }
.ch-boards { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; height: 36cqh; background: #8a5a3b; border-top: 1cqh solid #16141c; box-shadow: inset 0 2cqh 0 #a06c48; }
.ch-actor { position: absolute; left: 50%; bottom: 33cqh; z-index: 3; display: flex; flex-direction: column; align-items: center; width: 12cqw; transform: translateX(-50%); }
.ch-actor .fig { width: 100%; }
.ch-actor .ch-nm { font-size: 1.6cqw; }
.ch-light { position: absolute; left: 50%; bottom: 0; z-index: -1; width: 34cqw; height: 100cqh; background: rgba(255, 236, 190, .14); clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%); transform: translateX(-50%); }
@media (prefers-reduced-motion: no-preference) { .ch-theater:not(.done) .ch-actor .fig-j { animation: ch-mime 1.4s ease-in-out infinite; } }
@keyframes ch-mime { 25% { transform: rotate(-7deg); } 75% { transform: rotate(7deg) translateY(-4%); } }
.ch-marquee { position: absolute; left: 50%; top: 11cqh; z-index: 6; display: flex; flex-direction: column; align-items: center; gap: .6cqh; max-width: 64cqw; padding: 1.4cqh 2.4cqw; border-radius: 1.2cqw; background: #16141c; text-align: center; transform: translateX(-50%); }
.ch-marquee .label { font-size: 1.2cqw; }
.ch-marquee .ch-word-txt { font-size: 3.4cqw; }
.ch-marquee p { margin: 0; color: var(--muted); font-size: 1.4cqw; font-weight: 600; }
.ch-marquee .ch-mask { justify-content: center; }
.ch-marquee .ch-mask i { width: 2.2cqw; height: 3cqw; font-size: 2cqw; border-bottom-width: .35cqw; }
.ch-marquee .ch-act-clock { margin: .4cqh 0 0; font-size: 5.4cqw; }
.ch-theater .ch-crowd { position: absolute; left: 14cqw; right: 14cqw; bottom: 2cqh; z-index: 7; flex-wrap: nowrap; gap: 1cqw; padding: 0; }
.ch-theater .ch-fan { width: min(9cqw, calc(70cqw / var(--n))); }
.ch-theater .ch-fan .fig { width: 100%; }
.ch-theater .ch-nm { font-size: 1.2cqw; padding: .1cqh .6cqw; border-radius: .5cqw; }
.ch-theater .ch-pt { font-size: 1.2cqw; }
.ch-theater .ch-bub { font-size: 1.4cqw; padding: .6cqh 1cqw; border-radius: 1cqw; max-width: 18cqw; }
.ch-theater .ch-plus { font-size: 1.4cqw; }
.ch-theater.mini .ch-valance { height: 7cqh; }
.ch-theater.mini .ch-curtain { width: 11cqw; }
.ch-theater.mini .ch-marquee { max-width: 74cqw; top: 9cqh; padding: 1.2cqh 3cqw; border-radius: 2.4cqw; }
.ch-theater.mini .ch-marquee .label { font-size: 3cqw; }
.ch-theater.mini .ch-marquee .ch-word-txt { font-size: 6.4cqw; }
.ch-theater.mini .ch-marquee p { font-size: 3.2cqw; }
.ch-theater.mini .ch-marquee .ch-mask i { width: 4.4cqw; height: 6cqw; font-size: 4cqw; }
.ch-theater.mini .ch-marquee .ch-act-clock { font-size: 11cqw; }
.ch-theater.mini .ch-actor { width: 24cqw; bottom: 30cqh; }
.ch-theater.mini .ch-actor .ch-nm { font-size: 3cqw; }
.ch-theater.mini .ch-boards { height: 32cqh; }
.ch-theater.mini .ch-crowd { left: 2cqw; right: 2cqw; gap: 1.6cqw; }
.ch-theater.mini .ch-fan { width: min(15cqw, calc(92cqw / var(--n))); }
.ch-theater.mini .ch-nm, .ch-theater.mini .ch-pt { font-size: 2.6cqw; }
.ch-theater.mini .ch-bub { font-size: 3cqw; max-width: 34cqw; }
.ch-theater.mini .ch-plus { font-size: 3cqw; }
.ch-act-wrap > .ch-clock { margin-top: 2px; }
html.tv .ch-act-wrap.tv > .ch-clock { width: min(100%, calc((100dvh - 12rem) * 16 / 9)); margin: 0 auto; }
html.tv .ch-act-wrap.tv .actions { justify-content: center; }

/* Wybór hasła u rysującego: trzy karty */
.ch-option { display: flex; align-items: center; justify-content: center; min-height: 78px; border: 3px solid #16141c; border-radius: 18px; background: #faf6ee; color: #16141c; box-shadow: 0 5px 0 #16141c; transform: rotate(calc((var(--k) - 1) * 1.4deg)); }
.ch-option:hover { background: #fff; }
.ch-option:active { transform: translateY(4px); box-shadow: 0 1px 0 #16141c; }
@media (prefers-reduced-motion: no-preference) { .ch-option { animation: ch-deal .45s var(--ease) both; animation-delay: calc(var(--k) * 90ms); } }
@keyframes ch-deal { from { opacity: 0; transform: translateY(30%) rotate(-8deg); } }

/* ---------- Czółko: łuk graczy z karteczkami na czołach (js/czolko.js) ---------- */
.cz-scene { position: relative; isolation: isolate; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 18px; background: color-mix(in srgb, var(--game) 14%, #1d1a25); container-type: size; }
.cz-scene.mini { aspect-ratio: 1 / .95; margin: 14px 0 4px; }
.cz-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 46%; z-index: 0; background: color-mix(in srgb, var(--game) 10%, #2a2633); border-top: .5cqh solid #3a3545; border-radius: 50% 50% 0 0 / 18% 18% 0 0; }
.cz-tv { display: flex; justify-content: center; }
html.tv .cz-scene { width: min(100%, calc((100dvh - 8.5rem) * 16 / 9)); margin: 0 auto; }

.cz-seat { position: absolute; display: flex; flex-direction: column; align-items: center; width: calc(var(--w) * var(--s)); transform: translate(-50%, -100%); container-type: inline-size; }
.cz-body { position: relative; width: 100%; }
.cz-body .fig { width: 100%; }
.cz-body .fig-j { position: relative; }
.cz-seat.out .fig-svg { filter: grayscale(.8); opacity: .65; }
.cz-seat.away .fig-svg { opacity: .4; }
.cz-nm { position: relative; z-index: 3; max-width: 150%; margin-top: -1cqw; padding: 1cqw 7cqw; border-radius: 6cqw; background: #16141c; color: var(--text); font: 700 max(13cqw, .62rem) / 1.3 var(--font-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cz-seat.me .cz-nm { box-shadow: 0 0 0 2px var(--text); }
.cz-spot { position: absolute; left: 50%; bottom: 0; z-index: -1; width: 260%; height: 900cqw; background: rgba(255, 245, 220, .1); clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%); transform: translateX(-50%); pointer-events: none; }

/* Karteczka przyklejona do czoła: przód z postacią, tył z pytajnikiem; taśma na środku */
.cz-fc { position: absolute; left: 50%; bottom: 74%; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1cqw; width: 132%; min-height: 64cqw; padding: 6cqw 6cqw 5cqw; border-radius: 6cqw; background: var(--pc); border: 2.6cqw solid #16141c; color: #16141c; text-align: center; transform: translateX(-50%) rotate(-3deg); transform-origin: 50% 100%; }
.cz-fc.open { background: #faf6ee; box-shadow: inset 0 5cqw 0 var(--pc); }
.cz-fc strong { font: 700 15cqw/1.05 var(--font-head); letter-spacing: -.02em; overflow-wrap: anywhere; hyphens: auto; }
.cz-fc b { font: 700 34cqw/1 var(--font-head); color: #faf6ee; -webkit-text-stroke: 2cqw #16141c; paint-order: stroke; }
.cz-fc small { font-size: 8.5cqw; font-weight: 700; opacity: .7; line-height: 1.1; }
.cz-fc.open small { display: none; }
.cz-tape { position: absolute; left: 50%; bottom: -7cqw; width: 30cqw; height: 11cqw; background: rgba(250, 246, 238, .85); border: 1.2cqw solid rgba(22, 20, 28, .35); transform: translateX(-50%) rotate(6deg); }
.cz-seat:nth-child(odd) .cz-fc { transform: translateX(-50%) rotate(3deg); }
@media (prefers-reduced-motion: no-preference) {
  .cz-seat.front .cz-fc { animation: cz-sway 2.6s ease-in-out infinite; }
  .cz-seat.just .cz-fc { animation: cz-turn .8s var(--ease) both; }
}
@keyframes cz-sway { 50% { transform: translateX(-50%) rotate(2deg) translateY(-3%); } }
@keyframes cz-turn { 0% { transform: translateX(-50%) perspective(80cqw) rotateY(180deg) scale(.8); } 100% { transform: translateX(-50%) rotate(-3deg); } }

.cz-medal { position: absolute; right: -14%; top: 30%; z-index: 6; display: grid; place-items: center; width: 34cqw; aspect-ratio: 1; border-radius: 50%; border: 2.4cqw solid #16141c; color: #16141c; font: 700 18cqw/1 var(--font-head); animation: scn-pop-in .5s var(--ease) both; }
.cz-medal.m1 { background: #ffc83d; }
.cz-medal.m2 { background: #d9d2e0; }
.cz-medal.m3 { background: #e0915a; }
.cz-medal.m4 { background: #8f8a9b; }
.cz-say { position: absolute; left: 50%; bottom: calc(100% + 58cqw); z-index: 30; display: inline-flex; align-items: center; gap: 4cqw; max-width: 300%; padding: 4cqw 8cqw; border-radius: 8cqw; background: #faf6ee; border: 2.4cqw solid #16141c; color: #16141c; font: 700 max(13cqw, .8rem) / 1.2 var(--font-head); white-space: nowrap; transform: translateX(-50%); animation: ch-bub 3.2s var(--ease) both; }
.cz-say i { display: grid; place-items: center; width: max(16cqw, 1.1rem); aspect-ratio: 1; border-radius: 50%; color: var(--bg); }
.cz-say.ok i { background: var(--good); }
.cz-say.bad i { background: var(--bad); }

/* Napis i próby na TV */
.cz-top { position: absolute; left: 1.8cqw; top: 3cqh; z-index: 300; max-width: 30cqw; padding: 1.4cqh 1.4cqw; border-radius: 1cqw; background: #16141c; }
.cz-top .label { color: var(--muted); font-size: 1.1cqw; }
.cz-top h2 { margin: .4cqh 0 0; font: 700 2.8cqw/1.05 var(--font-head); letter-spacing: -.03em; }
.cz-top p { margin: .8cqh 0 0; color: var(--muted); font-size: 1.2cqw; font-weight: 600; }
.cz-top .cz-cd { display: block; margin-top: .6cqh; font: 700 3.4cqw/1 var(--font-head); font-variant-numeric: tabular-nums; }
.cz-side { position: absolute; right: 1.8cqw; bottom: 3cqh; z-index: 300; width: 24cqw; }
.cz-side .cz-feed-box { margin: 0; padding: 1cqw; border-radius: 1cqw; background: #16141c; }
.cz-side .cz-feed li { padding: .5cqw .8cqw .5cqw .5cqw; font-size: 1.1cqw; background: var(--panel); }
.cz-side .cz-feed .t small { font-size: .85cqw; }
.cz-side .label { font-size: 1cqw; }
.cz-act { display: flex; justify-content: flex-end; gap: .8cqw; }
.cz-act .btn { min-height: 0; padding: .8cqw 1.5cqw; border-radius: .8cqw; font-size: 1.25cqw; }
.cz-act .btn.ghost { background: var(--bg); }

/* Telefon: twoja postać z zakrytą karteczką */
.cz-mine { display: flex; align-items: flex-end; gap: 18px; margin-top: 6px; padding: 14px 16px 12px; border-radius: 18px; background: var(--panel); }
.cz-mine-fig { flex: none; width: 92px; padding-top: 70px; container-type: inline-size; }
.cz-mine-fig .fig { width: 100%; }
.cz-mine-fig .fig-j { position: relative; }
.cz-mine-txt { flex: 1; min-width: 0; padding-bottom: 8px; }
.cz-mine-txt .cz-cat { margin-top: 6px; }
@media (prefers-reduced-motion: no-preference) { .cz-mine:not(.open) .cz-fc { animation: cz-sway 3s ease-in-out infinite; } }

/* ---------- Jedno słowo: tablica korkowa (js/oneword.js) ---------- */
.ow-scene { position: relative; isolation: isolate; width: 100%; aspect-ratio: 16 / 9; margin: 12px 0 4px; overflow: hidden; border-radius: 18px; background: #24202c; container-type: size; }
.ow-scene.mini { aspect-ratio: 1 / 1.1; }
html.tv .ow-scene { width: min(100%, calc((100dvh - 19rem) * 16 / 9)); margin: .6rem auto 0; }
.ow-board { position: absolute; left: 15%; right: 2%; top: 3%; bottom: 25%; z-index: 1; border-radius: 1.4cqw; background: #7f5536; border: .5cqw solid #16141c; container-type: size; }
.ow-scene.mini .ow-board { left: 2%; right: 2%; top: 2%; bottom: 31%; border-radius: 3cqw; }
.ow-cork { position: absolute; inset: 2.4cqh 1.6cqw; border-radius: .8cqw; background: #c99a66; box-shadow: inset 0 0 0 .4cqw #a87c4c; }
.ow-board .pin, .ow-wall .pin { position: absolute; left: 50%; top: -1.2cqw; z-index: 3; width: 3cqw; aspect-ratio: 1; border-radius: 50%; background: var(--pc, var(--accent)); border: .45cqw solid #16141c; transform: translateX(-50%); }
.ow-board .pin::after, .ow-wall .pin::after { content: ''; position: absolute; left: 22%; top: 18%; width: 30%; height: 30%; border-radius: 50%; background: #fff; opacity: .55; }

/* Karteczki z podpowiedziami */
.ow-note { position: absolute; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6cqh; width: 17cqw; min-height: 19cqh; padding: 2.4cqh 1.2cqw 1.6cqh; border: .35cqw solid #16141c; border-radius: .5cqw; background: color-mix(in srgb, var(--pc) 22%, #fff3b0); color: #16141c; font: inherit; text-align: center; transform: translate(-50%, -50%) rotate(var(--r)); box-shadow: .6cqw .9cqh 0 rgba(22, 20, 28, .28); }
.ow-note b { font: 700 3.2cqw/1.05 var(--font-head); letter-spacing: -.02em; overflow-wrap: anywhere; }
.ow-note small { font-size: 1.7cqw; font-weight: 700; opacity: .6; }
.ow-note.back { background: #fff3b0; }
.ow-scrib { display: flex; flex-direction: column; gap: 1.2cqh; width: 70%; padding: .6cqh 0; }
.ow-scrib i { height: .8cqh; border-radius: 1cqh; background: rgba(22, 20, 28, .22); }
.ow-scrib i:nth-child(2) { width: 80%; }
.ow-scrib i:nth-child(3) { width: 55%; }
.ow-note.mine { box-shadow: 0 0 0 .5cqw var(--text), .6cqw .9cqh 0 rgba(22, 20, 28, .28); }
.ow-note.out { transform: translate(-50%, -46%) rotate(calc(var(--r) * -3)); opacity: .82; }
.ow-note.out b { opacity: .5; }
.ow-x::before, .ow-x::after { content: ''; position: absolute; left: 50%; top: 50%; width: 110%; height: 2.2cqh; background: #ff5d6c; border: .25cqw solid #16141c; transform: translate(-50%, -50%) rotate(28deg); }
.ow-x::after { transform: translate(-50%, -50%) rotate(-28deg); }
.ow-note em { position: absolute; bottom: -1.6cqh; z-index: 2; padding: .2cqh .8cqw; border-radius: .5cqw; background: #16141c; color: #ff8a96; font: 700 1.4cqw var(--font-head); font-style: normal; letter-spacing: .06em; text-transform: uppercase; }
button.ow-note { cursor: pointer; }
button.ow-note:active { transform: translate(-50%, -50%) rotate(var(--r)) scale(.95); }
@media (prefers-reduced-motion: no-preference) { .ow-note.fresh { animation: ow-pin .55s var(--ease) var(--d) both; } }
@keyframes ow-pin { from { opacity: 0; transform: translate(-50%, -90%) rotate(calc(var(--r) - 14deg)) scale(1.25); } }

/* Karta z hasłem na środku tablicy */
.ow-key { position: absolute; left: 50%; top: 50%; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6cqh; width: 26cqw; min-height: 34cqh; padding: 3cqh 1.6cqw 2.4cqh; border: .4cqw solid #16141c; border-radius: .9cqw; background: var(--game); color: #16141c; text-align: center; transform: translate(-50%, -50%) rotate(-1.5deg); box-shadow: .8cqw 1.2cqh 0 rgba(22, 20, 28, .3); }
.ow-key.open { background: #fbfaf6; box-shadow: inset 0 2.4cqh 0 var(--game), .8cqw 1.2cqh 0 rgba(22, 20, 28, .3); }
.ow-key b { font: 700 16cqh/1 var(--font-head); color: #fbfaf6; -webkit-text-stroke: .35cqw #16141c; paint-order: stroke; }
.ow-key .label { margin-top: 1cqh; color: #6f6a7a; font-size: 1.5cqw; }
.ow-key strong { font: 700 4.6cqw/1.02 var(--font-head); letter-spacing: -.03em; overflow-wrap: anywhere; }
.ow-key .pin { --pc: #16141c; }
.ow-key.flip { animation: ow-flip .8s var(--ease) both; }
@keyframes ow-flip { 0% { transform: translate(-50%, -50%) perspective(60cqw) rotateY(180deg); } 100% { transform: translate(-50%, -50%) rotate(-1.5deg); } }
.ow-stamp { position: absolute; right: -3cqw; bottom: -2cqh; padding: .6cqh 1.2cqw; border: .45cqw solid currentColor; border-radius: .8cqw; background: #fbfaf6; font: 700 2.6cqw/1 var(--font-head); letter-spacing: .04em; text-transform: uppercase; transform: rotate(-12deg); animation: ow-stamp .3s var(--ease) .8s both; }
.ow-stamp.ok { color: #1f9e63; }
.ow-stamp.bad { color: #e0394c; }
@keyframes ow-stamp { from { opacity: 0; transform: rotate(-12deg) scale(2.2); } }

/* Zgadujący przy tablicy i drużyna pod nią */
.ow-guesser { position: absolute; left: 1%; bottom: 2%; z-index: 5; display: flex; flex-direction: column; align-items: center; width: 12cqw; }
.ow-guesser .fig { width: 100%; }
.ow-scene.mini .ow-guesser { left: 2%; bottom: 1%; width: 18cqw; }
.ow-blind { position: absolute; left: 50%; top: -8%; z-index: 2; display: grid; place-items: center; width: 4cqw; aspect-ratio: 1; border-radius: 50%; background: #16141c; color: var(--muted); transform: translateX(-50%); }
.ow-scene.mini .ow-blind { width: 7cqw; }
.ow-say { position: absolute; left: 70%; bottom: 96%; z-index: 6; padding: 1cqh 1.2cqw; border-radius: 1.2cqw; background: #faf6ee; border: .3cqw solid #16141c; color: #16141c; font: 700 1.8cqw/1.1 var(--font-head); white-space: nowrap; animation: scn-pop-in .4s var(--ease) .3s both; }
.ow-say.ok { box-shadow: inset 0 -.8cqh 0 var(--good); }
.ow-say.bad { box-shadow: inset 0 -.8cqh 0 var(--bad); }
.ow-scene.mini .ow-say { font-size: 3.6cqw; padding: 1cqh 2.4cqw; border-radius: 2.4cqw; }
.ow-team { position: absolute; left: 16%; right: 2%; bottom: 1.5%; z-index: 3; display: flex; justify-content: center; align-items: flex-end; gap: 1.4cqw; }
.ow-scene.mini .ow-team { left: 22%; gap: 1cqw; }
.ow-mate { display: flex; flex-direction: column; align-items: center; width: min(7.5cqw, calc(78cqw / var(--n))); }
.ow-scene.mini .ow-mate { flex: none; width: min(13cqw, calc(70cqw / var(--n))); }
.ow-mate .fig { width: 100%; }
.ow-mate.away .fig-svg { opacity: .4; }
.ow-nm { max-width: 140%; margin-top: -.4cqh; padding: .1cqh .6cqw; border-radius: .5cqw; background: #16141c; color: var(--text); font: 700 1.15cqw/1.3 var(--font-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; }
.ow-scene.mini .ow-nm { font-size: 2.6cqw; padding: .1cqh 1.2cqw; border-radius: 1.2cqw; }

/* Notki na telefonie (rozmiary względem mniejszej tablicy) */
.ow-scene.mini .ow-note { width: 23cqw; min-height: 19cqh; padding: 2.6cqh 1.4cqw 1.4cqh; }
.ow-scene.mini .ow-note b { font-size: 4.6cqw; }
.ow-scene.mini .ow-note small { font-size: 2.8cqw; }
.ow-scene.mini .ow-key { width: 40cqw; min-height: 32cqh; }
.ow-scene.mini .ow-key strong { font-size: 7cqw; }
.ow-scene.mini .ow-key .label { font-size: 2.6cqw; }
.ow-scene.mini .ow-stamp { font-size: 4.4cqw; }
.ow-scene.mini .ow-note em { font-size: 2.4cqw; }
.ow-scene.mini .pin { width: 5cqw; }

.ow-cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 14px 0 0; color: var(--muted); font-weight: 600; }
html.tv .ow-cap { font-size: 1.5rem; margin-top: 1rem; }
html.tv .ow-cap .label { font-size: 1.1rem; }

/* Wynik: karty z hasłami na tablicy */
.ow-wall { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 14px; margin-top: 16px; padding: 30px 18px 24px; border-radius: 18px; background: #7f5536; border: 3px solid #16141c; container-type: inline-size; }
.ow-wall .ow-cork { inset: 10px; border-radius: 10px; box-shadow: inset 0 0 0 3px #a87c4c; }
.ow-card { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; width: 150px; padding: 16px 10px 12px; border: 2px solid #16141c; border-radius: 6px; background: #fbfaf6; color: #16141c; text-align: center; transform: rotate(var(--r)); box-shadow: 4px 6px 0 rgba(22, 20, 28, .28); animation: ow-pin .5s var(--ease) var(--d) both; }
.ow-wall .pin { top: -9px; width: 16px; border-width: 2px; }
.ow-card strong { font: 700 1.15rem/1.1 var(--font-head); letter-spacing: -.01em; overflow-wrap: anywhere; }
.ow-card small { color: #6f6a7a; font-size: .74rem; font-weight: 600; }
.ow-card small.burn { color: #e0394c; }
.ow-mark { position: absolute; right: -8px; bottom: -8px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #16141c; background: #8f8a9b; color: #fff; }
.ow-card.got .ow-mark { background: var(--good); }
.ow-card.got { --pc: var(--good); }
.ow-card.wrong .ow-mark { background: var(--bad); }
.ow-card.wrong { --pc: var(--bad); }
html.tv .ow-card { width: 13rem; padding: 1.4rem 1rem 1rem; }
html.tv .ow-card strong { font-size: 1.6rem; }
html.tv .ow-card small { font-size: 1rem; }
.ow-lost { margin: 12px 0 0; color: var(--muted); font-weight: 600; }

/* ---------- Wieża z klocków (js/wieza.js): wieże na canvasie, napisy i liczniki w DOM-ie ---------- */
.wz { display: flex; flex-direction: column; gap: 12px; }
.wz-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wz-tag { align-self: flex-start; padding: 6px 14px; border-radius: 8px; background: var(--game); color: #16141c; font: 700 .9rem var(--font-head); white-space: nowrap; transform: skewX(-16deg); }
.wz-tag > span { display: inline-block; transform: skewX(16deg); }
html.tv .wz-tag { padding: .5rem 1.3rem; font-size: 1.3rem; border-radius: .7rem; }
.wz-timer { display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 12px; background: #16141c; font: 700 1.25rem var(--font-head); font-variant-numeric: tabular-nums; }
.wz-timer b { min-width: 1.4em; text-align: right; }
.wz-timer b.low { color: var(--bad); }
.wz-bar { width: 88px; height: 8px; border-radius: 4px; background: #2a2733; overflow: hidden; transform: skewX(-16deg); }
.wz-bar i { display: block; height: 100%; background: var(--game); transform-origin: left; }
.wz-stage { position: relative; overflow: hidden; border-radius: 18px; background: #265e90; }
.wz-stage canvas { display: block; width: 100%; height: 100%; }
.wz-ph .wz-stage { height: min(58dvh, 540px); }
.wz-ph .wz-stage.small { height: min(34dvh, 300px); }
.wz-tap { cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.wz-card { position: absolute; left: 50%; top: 42%; z-index: 3; width: min(86%, 30rem); padding: 18px 20px; border-radius: 16px; background: #16141c; text-align: center; transform: translate(-50%, -50%); transition: opacity .35s, transform .35s var(--ease); pointer-events: none; }
.wz-card h2 { margin: 6px 0 0; font: 700 2rem/1.05 var(--font-head); letter-spacing: -.03em; color: var(--game); }
.wz-card p { margin: 8px 0 0; color: var(--muted); font-weight: 600; }
.wz-card.gone { opacity: 0; transform: translate(-50%, -50%) scale(.85); }
.wz-say { position: absolute; left: 50%; top: 40%; z-index: 4; color: #faf8f4; font: 700 5.5rem var(--font-head); -webkit-text-stroke: .5rem #16141c; paint-order: stroke fill; white-space: nowrap; transform: translate(-50%, -50%); pointer-events: none; opacity: 0; }
.wz-say.go { animation: wz-say .95s var(--ease) both; }
@keyframes wz-say { 0% { transform: translate(-50%, -50%) scale(.4); opacity: 0; } 20% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; } 75% { opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1); opacity: 0; } }
.wz-mine { position: absolute; left: 10px; top: 10px; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 12px; background: #16141c; pointer-events: none; }
.wz-mine .nm { color: var(--muted); font: 700 .8rem var(--font-head); text-transform: uppercase; letter-spacing: .06em; }
.wz-mine b { font: 700 1.8rem/1 var(--font-head); }
.wz-mine.out b { color: var(--bad); }
.wz-hint { margin: 0; color: var(--muted); font-size: .9rem; font-weight: 600; text-align: center; }
.wz-out { margin: 0; color: var(--bad); font-weight: 700; text-align: center; }
.wz b.pop { animation: wz-pop .5s var(--ease); }
@keyframes wz-pop { 35% { transform: scale(1.45); color: #ffc83d; } }
.wz-labs { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); padding: 10px 6px; pointer-events: none; }
.wz-lab { display: flex; justify-content: center; min-width: 0; transition: opacity .3s; }
.wz-pill { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; padding: 3px 10px 3px 4px; border-radius: 12px; background: #16141c; }
.wz-pill .fig { width: 30px; flex: none; }
.wz-pill .nm { min-width: 0; font: 700 .85rem var(--font-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wz-pill b { min-width: 1.4em; font: 700 1.2rem/1.2 var(--font-head); text-align: right; }
.wz-lab.lead .wz-pill { box-shadow: inset 0 0 0 2px #ffc83d; }
.wz-lab.lead b { color: #ffc83d; }
.wz-lab.out { opacity: .6; }
.wz-others { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.wz-others .wz-pill { background: var(--panel); }
.wz-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.wz-rank li { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 8px; border-radius: 12px; background: var(--panel); animation: scn-pop-in .4s var(--ease) both; }
.wz-rank li:nth-child(2) { animation-delay: .08s; } .wz-rank li:nth-child(3) { animation-delay: .16s; } .wz-rank li:nth-child(n+4) { animation-delay: .24s; }
.wz-rank li.me { box-shadow: inset 0 0 0 2px var(--game); }
.wz-rank .pl { width: 1.4em; font: 700 1.2rem var(--font-head); color: var(--muted); text-align: center; }
.wz-rank li:first-child .pl { color: #ffc83d; }
.wz-rank .fig { width: 34px; flex: none; }
.wz-rank .nm { flex: 1; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wz-rank .nm small { display: block; color: var(--muted); font-weight: 600; font-size: .8rem; }
.wz-rank b { padding: 2px 10px; border-radius: 8px; background: var(--good); color: var(--bg); font: 700 1.05rem var(--font-head); }
.wz-rank b.zero { background: var(--panel-3); color: var(--muted); }
html.tv .wz-tv { gap: 1rem; }
html.tv .wz-tv .wz-stage { height: calc(100dvh - 10.5rem); border-radius: 1.4rem; }
html.tv .wz-timer { font-size: 1.8rem; padding: .5rem 1.2rem; }
html.tv .wz-bar { width: 12rem; height: .7rem; }
html.tv .wz-card { width: min(60%, 34rem); padding: 1.6rem 2rem; }
html.tv .wz-card h2 { font-size: 3.4rem; }
html.tv .wz-card p { font-size: 1.3rem; }
html.tv .wz-say { font-size: 9rem; }
html.tv .wz-labs { padding: 1rem .6rem; }
html.tv .wz-pill { gap: .5rem; padding: .3rem 1rem .3rem .4rem; border-radius: 1rem; }
html.tv .wz-pill .fig { width: 3rem; }
html.tv .wz-pill .nm { font-size: 1.15rem; }
html.tv .wz-pill b { font-size: 2rem; }
html.tv .wz-endrow { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
html.tv .wz-end .wz-stage { height: calc(100dvh - 12rem); }
html.tv .wz-endside h2 { margin: 0 0 1rem; font: 700 3rem var(--font-head); }
html.tv .wz-rank li { padding: .5rem 1rem .5rem .6rem; }
html.tv .wz-rank .fig { width: 3rem; }
html.tv .wz-rank .nm { font-size: 1.3rem; }
html.tv .wz-rank b { font-size: 1.4rem; }
html.tv .wz-endside .actions { margin-top: 1.2rem; }

/* ---------- Na styk (js/styk.js): pasy na canvasie, hamulec na cały ekran telefonu ---------- */
.st-tag { font-size: .8rem; }
.st-board { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: .6rem; }
.st-names { display: grid; grid-template-rows: repeat(var(--n), minmax(0, 1fr)); }
.st-name { display: flex; align-items: center; gap: .5rem; min-width: 0; padding: 0 .4rem; }
.st-name .fig { width: min(2.8rem, 70%); max-height: 100%; flex: none; }
.st-name .nm { flex: 1; min-width: 0; font: 700 1rem var(--font-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-name b { min-width: 1.6em; padding: 0 .4em; border-radius: 8px; background: #16141c; font: 700 1.2rem var(--font-head); text-align: center; }
.st-plus { padding: 0 .4em; border-radius: 8px; background: var(--good); color: var(--bg); font: 700 1rem var(--font-head); font-style: normal; animation: scn-pop-in .4s var(--ease) both; }
.st-plus.zero { background: var(--panel-3); color: var(--muted); }
.st-stage { background: #2a2633; }
html.tv .st-tv .wz-top { justify-content: space-between; }
html.tv .st-tv .st-board, html.tv .st-tv .st-stage { height: calc(100dvh - 10.5rem); }
html.tv .st-name .nm { font-size: 1.2rem; }
html.tv .st-name b { font-size: 1.5rem; }
html.tv .st-plus { font-size: 1.3rem; }
.st-phone { display: flex; flex-direction: column; gap: 10px; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.st-phone .st-stage { height: min(52dvh, 470px); }
.st .st-stage.small { height: min(30dvh, 260px); }
.st-speed { position: absolute; right: 10px; top: 10px; z-index: 2; display: flex; align-items: baseline; gap: 4px; padding: 4px 12px; border-radius: 12px; background: #16141c; pointer-events: none; }
.st-speed b { min-width: 2.2em; font: 700 1.8rem/1 var(--font-head); text-align: right; font-variant-numeric: tabular-nums; }
.st-speed small { color: var(--muted); font-weight: 700; }
.st-brake { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 92px; border-radius: 22px; background: var(--panel-2); color: var(--muted); box-shadow: inset 0 -8px 0 rgba(0, 0, 0, .25); transition: background .15s, transform .1s; }
.st-brake b { font: 700 2.2rem var(--font-head); letter-spacing: .02em; }
.st-brake small { font-weight: 600; }
.st-phone[data-state="go"] .st-brake { background: #ff3d5f; color: #fff; }
.st-phone[data-state="go"] .st-brake small { color: rgba(255, 255, 255, .8); }
.st-phone[data-state="done"] .st-brake { background: #16141c; color: var(--text); transform: translateY(4px); box-shadow: none; }
.st-phone[data-state="done"] .st-brake small { visibility: hidden; }
.st-others .wz-pill.me { box-shadow: inset 0 0 0 2px var(--game); }
/* Światła startowe nad torem: trzy czerwone po kolei, na start wszystkie zielone */
.st-lights { position: absolute; left: 50%; top: 18%; z-index: 3; display: flex; gap: 12px; padding: 12px 16px; border-radius: 18px; background: #16141c; box-shadow: 0 0 0 4px #2a2633, 0 8px 0 rgba(0, 0, 0, .35); transform: translateX(-50%); transition: opacity .25s, transform .25s var(--ease); pointer-events: none; }
.st-lights i { width: 44px; height: 44px; border-radius: 50%; background: #3a3545; box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .35); }
.st-lights[data-lit="off"], .st-lights:not([data-lit]) { opacity: 0; transform: translateX(-50%) translateY(-20px); }
.st-lights[data-lit="1"] i:nth-child(-n+1), .st-lights[data-lit="2"] i:nth-child(-n+2), .st-lights[data-lit="3"] i { background: #ff3d5f; box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .25), 0 0 0 6px rgba(255, 61, 95, .25); }
.st-lights[data-lit="go"] i { background: #3ecf8e; box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .2), 0 0 0 6px rgba(62, 207, 142, .3); }
html.tv .st-lights { gap: 1.2rem; padding: 1.2rem 1.6rem; border-radius: 1.6rem; }
html.tv .st-lights i { width: 4.4rem; height: 4.4rem; }


/* ---------- W dziesiątkę (js/cel.js): łąka z tarczą na canvasie, gracze pod spodem, telefon cały jest przyciskiem ---------- */
.cel-tag { font-size: .8rem; }
.cel-stage { background: #7cc6ee; }
.cel-wind { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 12px; background: #16141c; font: 700 1rem var(--font-head); }
.cel-wind i { position: relative; width: 26px; height: 4px; border-radius: 2px; background: var(--text); }
.cel-wind i::after { content: ''; position: absolute; top: -5px; width: 0; height: 0; border: 7px solid transparent; }
.cel-wind i.r::after { right: -8px; border-left-color: var(--text); border-right-width: 0; }
.cel-wind i.l::after { left: -8px; border-right-color: var(--text); border-left-width: 0; }
.cel-pods { display: grid; grid-template-columns: repeat(min(var(--n), 8), minmax(0, 1fr)); gap: 8px; }
.cel-pod { position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 12px 6px 6px; border-radius: 14px; background: var(--panel); box-shadow: inset 4px 0 0 var(--pc); }
.cel-pod .fig { width: 34px; flex: none; }
.cel-pod .nm { flex: 1; min-width: 0; font: 700 .95rem var(--font-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cel-pod b { font: 700 1.25rem var(--font-head); font-variant-numeric: tabular-nums; }
.cel-dot { width: 12px; height: 12px; border-radius: 4px; background: var(--panel-3); transform: rotate(16deg); font-style: normal; }
.cel-pod[data-s="power"] .cel-dot { background: #ffd23f; }
.cel-pod[data-s="done"] .cel-dot { background: var(--good); }
.cel-plus { padding: 1px 8px; border-radius: 8px; background: var(--good); color: var(--bg); font: 700 1rem var(--font-head); font-style: normal; animation: scn-pop-in .4s var(--ease) both; }
.cel-plus.zero { background: var(--panel-3); color: var(--muted); }
.cel-plus.ten { background: #ffd23f; color: #16141c; }
html.tv .cel-tv { gap: .8rem; }
html.tv .cel-tv .cel-stage { height: calc(100dvh - 15rem); border-radius: 1.4rem; }
html.tv .cel-pod { padding: .5rem 1rem .5rem .5rem; border-radius: 1rem; }
html.tv .cel-pod .fig { width: 3rem; }
html.tv .cel-pod .nm { font-size: 1.15rem; }
html.tv .cel-pod b { font-size: 1.7rem; }
html.tv .cel-plus { font-size: 1.3rem; }
html.tv .cel-wind { padding: .5rem 1.1rem; font-size: 1.4rem; border-radius: 1rem; }
.cel-phone { display: flex; flex-direction: column; gap: 10px; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.cel-phone .cel-stage { height: min(56dvh, 520px); }
.cel .cel-stage.small { height: min(30dvh, 270px); }
.cel-mine { position: absolute; left: 10px; top: 10px; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 12px; background: #16141c; pointer-events: none; }
.cel-mine .nm { color: var(--muted); font: 700 .75rem var(--font-head); text-transform: uppercase; letter-spacing: .06em; }
.cel-mine b { font: 700 1.5rem/1 var(--font-head); }
.cel-hint { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 84px; border-radius: 22px; background: var(--panel-2); color: var(--muted); text-align: center; box-shadow: inset 0 -8px 0 rgba(0, 0, 0, .25); transition: background .15s, transform .1s; }
.cel-hint b { padding: 0 12px; font: 700 clamp(1.15rem, 6vw, 1.6rem)/1.15 var(--font-head); }
.cel-hint small { font-weight: 600; }
.cel-phone[data-state="aim"] .cel-hint { background: var(--game); color: #16141c; }
.cel-phone[data-state="power"] .cel-hint { background: #ff3d5f; color: #fff; }
.cel-phone[data-state="done"] .cel-hint { background: #16141c; color: var(--text); transform: translateY(4px); box-shadow: none; }
.cel-lights { top: 4%; }
.cel-phone .cel-lights { top: 20%; }
html.tv .cel-lights { padding: .8rem 1.2rem; }
html.tv .cel-lights i { width: 3.2rem; height: 3.2rem; }

/* ---------- Kapsle (js/kapsle.js): plaża z góry na canvasie, na TV tabela wyścigu obok, telefon to proca ---------- */
.kp-tag { font-size: .8rem; }
.kp-stage { background: #f2d7a0; }
.kp-banner { position: absolute; left: 50%; bottom: 14px; z-index: 2; max-width: calc(100% - 24px); padding: 6px 14px; border-radius: 12px; background: #16141c; color: var(--text); font: 700 .95rem var(--font-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transform: translateX(-50%); pointer-events: none; transition: opacity .2s; }
.kp-banner:empty { opacity: 0; }
.kp-banner.mine { background: var(--game); color: #16141c; animation: kp-nudge 1.4s var(--ease) infinite; }
.kp-banner.big { bottom: auto; top: 40%; padding: 14px 26px; border-radius: 16px; font-size: 2.2rem; letter-spacing: -.02em; animation: scn-pop-in .4s var(--ease) both; }
@keyframes kp-nudge { 0%, 100% { transform: translateX(-50%); } 50% { transform: translate(-50%, -4px); } }
.kp-turn { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 4px 12px 4px 6px; border-radius: 14px; background: var(--panel); box-shadow: inset 4px 0 0 var(--pc); }
.kp-turn .fig { width: 34px; flex: none; }
.kp-turn > span:not(.kp-clock) { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; }
.kp-turn small { color: var(--muted); font: 700 .72rem var(--font-head); text-transform: uppercase; letter-spacing: .06em; }
.kp-turn b { font: 700 1.05rem var(--font-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kp-turn.mine { background: var(--game); color: #16141c; }
.kp-turn.mine small { color: #16141c; }
.kp-clock { min-width: 1.6em; margin-left: auto; font: 700 1.3rem var(--font-head); font-variant-numeric: tabular-nums; text-align: right; }
.kp-clock.low { color: var(--bad); }
.kp-turn.mine .kp-clock.low { color: #b3001b; }
.kp-mine { display: flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 12px; background: var(--panel); }
.kp-mine .nm { color: var(--muted); font: 700 .75rem var(--font-head); text-transform: uppercase; letter-spacing: .06em; }
.kp-mine b { font: 700 1.4rem/1 var(--font-head); }
.kp-rank { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.kp-rank li { position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 5px 10px 5px 6px; border-radius: 12px; background: var(--panel); box-shadow: inset 4px 0 0 var(--pc); transition: background .2s; }
.kp-rank li.now { background: var(--panel-2); box-shadow: inset 4px 0 0 var(--pc), 0 0 0 2px var(--pc); }
.kp-rank li.me .nm { color: var(--game); }
.kp-rank .pl { width: 1.2em; font: 700 1.05rem var(--font-head); color: var(--muted); text-align: center; }
.kp-rank li:first-child .pl { color: #ffc83d; }
.kp-rank .fig { width: 28px; flex: none; }
.kp-rank .nm { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; font: 700 .9rem var(--font-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kp-rank .bar { display: block; height: 6px; border-radius: 3px; background: var(--panel-3); overflow: hidden; }
.kp-rank .bar i { display: block; height: 100%; border-radius: 3px; background: var(--pc); transition: width .6s var(--ease); }
.kp-rank .fin { padding: 1px 8px; border-radius: 8px; background: #ffc83d; color: #16141c; font: 700 .75rem var(--font-head); }
.kp-ph .kp-stage { height: min(56dvh, 520px); }
.kp-pad { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.kp-help { margin: 0 0 8px; color: var(--muted); font-size: .85rem; font-weight: 600; text-align: center; }
.kp-wait { display: grid; gap: 6px; margin-bottom: 8px; }
.kp-note { margin: 0; color: var(--muted); font-size: .85rem; font-weight: 600; text-align: center; }
.kp-tracks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kp-tracks button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px; border: 0; border-radius: 14px; background: var(--panel); color: var(--text); font: 700 .9rem var(--font-head); cursor: pointer; transition: background .15s, transform .15s var(--ease); }
.kp-tracks button svg { width: 100%; height: auto; border-radius: 6px; margin-bottom: 4px; }
.kp-tracks button small { color: var(--muted); font-size: .72rem; font-weight: 600; }
.kp-tracks button[aria-pressed="true"] { background: var(--game); color: #16141c; transform: translateY(-2px); }
.kp-tracks button[aria-pressed="true"] small { color: #16141c; }
.kp-tracks button:disabled { cursor: default; }
html.tv .kp-tv { gap: .8rem; }
html.tv .kp-main { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: .8rem; }
html.tv .kp-tv .kp-stage { height: calc(100dvh - 10rem); border-radius: 1.4rem; }
html.tv .kp-tv .kp-rank { grid-template-columns: 1fr; align-content: start; }
html.tv .kp-rank li { padding: .4rem .8rem .4rem .4rem; border-radius: .9rem; }
html.tv .kp-rank .fig { width: 2.4rem; }
html.tv .kp-rank .nm { font-size: 1.05rem; }
html.tv .kp-rank .pl { font-size: 1.3rem; }
html.tv .kp-turn { gap: .8rem; padding: .4rem 1.2rem .4rem .5rem; border-radius: 1rem; }
html.tv .kp-turn .fig { width: 3rem; }
html.tv .kp-turn small { font-size: .95rem; }
html.tv .kp-turn b { font-size: 1.5rem; }
html.tv .kp-clock { min-width: 2em; margin-left: 1rem; font-size: 1.8rem; }
html.tv .kp-banner { font-size: 1.4rem; padding: .5rem 1.2rem; }
html.tv .kp-banner.big { font-size: 3.8rem; padding: 1rem 2.4rem; border-radius: 1.4rem; }

/* ---------- Zderzaki (js/zderzaki.js): kra z góry na canvasie, na TV gracze obok, telefon to proca ---------- */
.zd-tag { font-size: .8rem; }
.zd-stage { background: #2a8bd3; }
.zd-banner { position: absolute; left: 50%; bottom: 14px; z-index: 2; max-width: calc(100% - 24px); padding: 6px 14px; border-radius: 12px; background: #16141c; color: var(--text); font: 700 .95rem var(--font-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transform: translateX(-50%); pointer-events: none; transition: opacity .2s; }
.zd-banner:empty { opacity: 0; }
.zd-banner.mine { background: var(--game); color: #16141c; animation: kp-nudge 1.4s var(--ease) infinite; }
.zd-banner.big { bottom: auto; top: 14px; padding: 14px 26px; border-radius: 16px; font-size: 2.2rem; letter-spacing: -.02em; animation: scn-pop-in .4s var(--ease) both; }
.zd-clock { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 12px; background: #16141c; font: 700 1.2rem var(--font-head); font-variant-numeric: tabular-nums; }
.zd-clock .wz-bar i { animation-name: zd-shrink; animation-timing-function: linear; animation-fill-mode: forwards; }
@keyframes zd-shrink { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.zd-pods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.zd-pod { position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 5px 10px 5px 6px; border-radius: 12px; background: var(--panel); box-shadow: inset 4px 0 0 var(--pc); transition: opacity .3s, background .2s; }
.zd-pod .fig { width: 30px; flex: none; }
.zd-pod .nm { display: flex; flex-direction: column; flex: 1; min-width: 0; font: 700 .9rem var(--font-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zd-pod .nm small { color: var(--muted); font: 600 .72rem var(--font-head); overflow: hidden; text-overflow: ellipsis; }
.zd-pod[data-s="ready"] .nm small { color: var(--good); }
.zd-pod[data-s="out"] { opacity: .6; }
.zd-pod.me .nm { color: var(--game); }
.zd-pod > b { font: 700 1.2rem var(--font-head); font-variant-numeric: tabular-nums; }
.zd-plus { position: absolute; right: 8px; top: -10px; padding: 1px 8px; border-radius: 8px; background: var(--good); color: var(--bg); font: 700 .95rem var(--font-head); font-style: normal; animation: scn-pop-in .4s var(--ease) both; }
.zd-plus.zero { background: var(--panel-3); color: var(--muted); }
.zd-ph .zd-stage { height: min(52dvh, 480px); }
.zd-pad { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.zd-ctrl { display: grid; gap: 8px; margin-bottom: 10px; }
.zd-help { margin: 0 0 8px; color: var(--muted); font-size: .85rem; font-weight: 600; text-align: center; }
.zd-ctrl .zd-help { margin: 0; }
.zd-help.snow { color: var(--text); }
.zd-btns { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
.zd-btns [data-zd-act="anchor"] { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 6px 14px; line-height: 1.1; }
.zd-btns [data-zd-act="anchor"] small { font-size: .7rem; font-weight: 600; opacity: .75; }
html.tv .zd-tv { gap: .8rem; }
html.tv .zd-main { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: .8rem; }
html.tv .zd-tv .zd-stage { height: calc(100dvh - 10rem); border-radius: 1.4rem; }
html.tv .zd-tv .zd-pods { grid-template-columns: 1fr; align-content: start; }
html.tv .zd-pod { padding: .4rem .8rem .4rem .4rem; border-radius: .9rem; }
html.tv .zd-pod .fig { width: 2.4rem; }
html.tv .zd-pod .nm { font-size: 1.05rem; }
html.tv .zd-pod .nm small { font-size: .8rem; }
html.tv .zd-pod > b { font-size: 1.5rem; }
html.tv .zd-clock { padding: .5rem 1.2rem; font-size: 1.8rem; }
html.tv .zd-banner { font-size: 1.4rem; padding: .5rem 1.2rem; }
html.tv .zd-banner.big { font-size: 3.8rem; padding: 1rem 2.4rem; border-radius: 1.4rem; }

/* ---------- Bitwa zamków (js/zamki.js): kraina z boku na canvasie, zamki pod spodem, telefon to proca i przyciski ---------- */
.zm-tag { font-size: .8rem; }
.zm-stage { background: #8fd3ff; }
.zm .wz-top { flex-wrap: wrap; }
.zm-banner { position: absolute; left: 50%; top: 12px; z-index: 2; max-width: calc(100% - 24px); padding: 6px 14px; border-radius: 12px; background: #16141c; color: var(--text); font: 700 .95rem var(--font-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transform: translateX(-50%); pointer-events: none; transition: opacity .2s; }
.zm-banner:empty { opacity: 0; }
.zm-banner.mine { background: var(--game); color: #16141c; animation: kp-nudge 1.4s var(--ease) infinite; }
.zm-banner.big { top: 30%; padding: 14px 26px; border-radius: 16px; font-size: 2.2rem; letter-spacing: -.02em; animation: scn-pop-in .4s var(--ease) both; }
.zm-wind { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 12px; background: #16141c; font: 700 1rem var(--font-head); }
.zm-wind.calm { color: var(--muted); }
.zm-wind i { position: relative; width: calc(14px + 26px * var(--w)); height: 4px; border-radius: 2px; background: var(--text); }
.zm-wind i::after { content: ''; position: absolute; top: -5px; width: 0; height: 0; border: 7px solid transparent; }
.zm-wind i.r::after { right: -8px; border-left-color: var(--text); border-right-width: 0; }
.zm-wind i.l::after { left: -8px; border-right-color: var(--text); border-left-width: 0; }
.zm-turn { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 4px 12px 4px 6px; border-radius: 14px; background: var(--panel); box-shadow: inset 4px 0 0 var(--pc); }
.zm-turn .fig { width: 34px; flex: none; }
.zm-turn > span:not(.zm-clock) { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; }
.zm-turn small { color: var(--muted); font: 700 .72rem var(--font-head); text-transform: uppercase; letter-spacing: .06em; }
.zm-turn b { font: 700 1.05rem var(--font-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zm-turn.mine { background: var(--game); color: #16141c; }
.zm-turn.mine small { color: #16141c; }
.zm-clock { min-width: 1.6em; margin-left: auto; font: 700 1.3rem var(--font-head); font-variant-numeric: tabular-nums; text-align: right; }
.zm-clock.low { color: var(--bad); }
.zm-pods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.zm-pod { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 5px 10px 5px 6px; border-radius: 12px; background: var(--panel); box-shadow: inset 4px 0 0 var(--pc); transition: opacity .3s, background .2s; }
.zm-pod.now { background: var(--panel-2); box-shadow: inset 4px 0 0 var(--pc), 0 0 0 2px var(--pc); }
.zm-pod.down { opacity: .5; }
.zm-pod.me .nm { color: var(--game); }
.zm-pod .fig { width: 28px; flex: none; }
.zm-pod .nm { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; font: 700 .9rem var(--font-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zm-pod .hp { display: block; height: 6px; border-radius: 3px; background: var(--panel-3); overflow: hidden; }
.zm-pod .hp i { display: block; height: 100%; border-radius: 3px; background: var(--good); transition: width .6s var(--ease); }
.zm-pod .hp i[data-lv="mid"] { background: #ffd23f; }
.zm-pod .hp i[data-lv="lo"] { background: #ff5d6c; }
.zm-pod > b { font: 700 1.1rem var(--font-head); font-variant-numeric: tabular-nums; }
.zm-ph .zm-stage { height: min(46dvh, 420px); }
.zm-pad { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.zm-ctrl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0; }
.zm-ammo { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.zm-ammo button { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 2px; border: 0; border-radius: 12px; background: var(--panel); color: var(--text); font: 700 .8rem var(--font-head); cursor: pointer; transition: background .15s, transform .15s var(--ease); }
.zm-ammo button small { color: var(--muted); font-size: .66rem; font-weight: 600; }
.zm-ammo button[aria-pressed="true"] { background: var(--game); color: #16141c; transform: translateY(-2px); }
.zm-ammo button[aria-pressed="true"] small { color: #16141c; }
.zm-ammo button:disabled { opacity: .35; cursor: default; }
.zm-tune { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.zm-tune > div { display: flex; align-items: center; gap: 4px; min-width: 0; padding: 6px 6px; border-radius: 12px; background: var(--panel); }
.zm-tune span { flex: 1; color: var(--muted); font: 700 .75rem var(--font-head); text-transform: uppercase; letter-spacing: .05em; }
.zm-tune b { min-width: 2.6em; font: 700 1.15rem var(--font-head); font-variant-numeric: tabular-nums; text-align: center; }
.zm-tune button { width: 34px; height: 34px; border: 0; border-radius: 10px; background: var(--panel-2); color: var(--text); font: 700 1.2rem var(--font-head); cursor: pointer; }
.zm-help { margin: 0; color: var(--muted); font-size: .85rem; font-weight: 600; text-align: center; }
.zm-wait { display: grid; gap: 6px; margin-bottom: 8px; }
html.tv .zm-tv { gap: .8rem; }
html.tv .zm-tv .zm-stage { height: calc(100dvh - 17rem); border-radius: 1.4rem; }
html.tv .zm-tv .wz-top { justify-content: flex-start; gap: 1rem; }
html.tv .zm-tv [data-zm-turn] { margin-left: auto; }
html.tv .zm-tv .zm-pods { grid-template-columns: repeat(min(var(--n), 8), minmax(0, 1fr)); }
html.tv .zm-pod { padding: .4rem .8rem .4rem .4rem; border-radius: .9rem; }
html.tv .zm-pod .fig { width: 2.6rem; }
html.tv .zm-pod .nm { font-size: 1.05rem; }
html.tv .zm-pod > b { font-size: 1.5rem; }
html.tv .zm-turn { gap: .8rem; padding: .4rem 1.2rem .4rem .5rem; border-radius: 1rem; }
html.tv .zm-turn .fig { width: 3rem; }
html.tv .zm-turn small { font-size: .95rem; }
html.tv .zm-turn b { font-size: 1.5rem; }
html.tv .zm-clock { min-width: 2em; margin-left: 1rem; font-size: 1.8rem; }
html.tv .zm-wind { padding: .5rem 1.1rem; font-size: 1.4rem; border-radius: 1rem; }
html.tv .zm-banner { font-size: 1.4rem; padding: .5rem 1.2rem; }
html.tv .zm-banner.big { font-size: 3.8rem; padding: 1rem 2.4rem; border-radius: 1.4rem; }

/* ---------- Załoga (js/zaloga.js): morze z galeonem na canvasie, na telefonie rozkaz z lontem i drewniany pulpit ---------- */
.zl-tag { font-size: .8rem; }
.zl-stage { background: #8fd3ff; }
.zl-stage.strip { height: 112px; border-radius: 16px; }
.zl-status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.zl-route { position: relative; display: flex; align-items: center; gap: 6px; flex: 1 1 180px; min-width: 0; padding: 6px 10px; border-radius: 12px; background: #16141c; }
.zl-route .port { width: 12px; height: 12px; flex: none; border-radius: 50%; background: #faf8f4; box-shadow: inset 0 0 0 3px #3ecf8e; }
.zl-route .port.b { box-shadow: inset 0 0 0 3px #ff5d6c; }
.zl-route .line { position: relative; flex: 1; height: 0; border-top: 3px dashed #4a4555; }
.zl-route .line i { position: absolute; left: 0; top: -3px; height: 3px; background: var(--game); transition: width .5s var(--ease); }
.zl-route .line b { position: absolute; top: -18px; transform: translateX(-50%); transition: left .5s var(--ease); line-height: 0; }
.zl-route small { margin-left: 4px; color: var(--muted); font: 700 .8rem var(--font-head); font-variant-numeric: tabular-nums; }
.zl-hull { display: flex; align-items: center; gap: 8px; flex: 1 1 150px; min-width: 0; padding: 6px 10px; border-radius: 12px; background: #16141c; }
.zl-hull span:first-child { color: var(--muted); font: 700 .72rem var(--font-head); text-transform: uppercase; letter-spacing: .06em; }
.zl-hull .bar { flex: 1; height: 10px; border-radius: 5px; background: #3a2a1f; overflow: hidden; }
.zl-hull .bar i { display: block; height: 100%; background: #3ecf8e; transition: width .4s var(--ease); }
.zl-hull[data-lv="mid"] .bar i { background: #ffd23f; }
.zl-hull[data-lv="lo"] .bar i { background: #ff5d6c; animation: zl-blink .6s steps(2) infinite; }
.zl-hull b { min-width: 1.8em; font: 700 1rem var(--font-head); font-variant-numeric: tabular-nums; text-align: right; }
@keyframes zl-blink { 50% { opacity: .45; } }

/* Rozkaz: kartka z lontem. */
.zl-order { position: relative; overflow: hidden; padding: 12px 16px 18px; border-radius: 14px; background: #f4ecd8; color: #2b2019; box-shadow: 0 4px 0 #c9b58c; transform: rotate(-.6deg); animation: zl-order-in .35s var(--ease) both; }
.zl-order.idle { background: #2b2019; color: var(--muted); box-shadow: none; transform: none; text-align: center; animation: none; }
.zl-order.idle p { margin: 6px 0; font-weight: 600; }
.zl-order.mine { box-shadow: 0 4px 0 #c9b58c, inset 0 0 0 4px var(--game); }
@keyframes zl-order-in { from { opacity: 0; transform: translateY(-10px) rotate(-3deg) scale(.95); } }
.zl-from { display: block; color: #8a5a3b; font: 700 .72rem var(--font-head); text-transform: uppercase; letter-spacing: .08em; }
.zl-text { margin: 4px 0 0; font: 700 clamp(1.35rem, 6.4vw, 1.9rem)/1.12 var(--font-head); letter-spacing: -.02em; }
.zl-pumpcount { position: absolute; right: 12px; top: 10px; padding: 2px 9px; border-radius: 8px; background: #2b2019; color: #f4ecd8; font: 700 .9rem var(--font-head); }
.zl-fuse { position: absolute; left: 12px; right: 12px; bottom: 7px; height: 5px; border-radius: 3px; background: #c9b58c; }
.zl-fuse i { position: relative; display: block; height: 100%; width: 100%; border-radius: 3px; background: #8a5a3b; animation-name: zl-burn; animation-timing-function: linear; animation-fill-mode: forwards; }
.zl-fuse i::after { content: ''; position: absolute; right: -7px; top: -6px; width: 16px; height: 16px; background: #ff9a3c; clip-path: polygon(50% 0, 62% 35%, 100% 50%, 62% 65%, 50% 100%, 38% 65%, 0 50%, 38% 35%); animation: zl-spark .18s steps(2) infinite; }
@keyframes zl-burn { from { width: 100%; } to { width: 0; } }
@keyframes zl-spark { 50% { transform: rotate(45deg) scale(.8); background: #ffd23f; } }
.zl-fog { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; }
.zl-fog i { position: absolute; width: 60%; height: 70%; border-radius: 50%; background: #e8edf1; animation: zl-fog 5s ease-in-out infinite alternate; }
.zl-fog i:nth-child(1) { left: -10%; top: 25%; }
.zl-fog i:nth-child(2) { left: 30%; top: -20%; animation-delay: -1.7s; }
.zl-fog i:nth-child(3) { left: 55%; top: 40%; animation-delay: -3.1s; }
@keyframes zl-fog { from { transform: translateX(-18%); } to { transform: translateX(22%); } }
.zl-ph.fog .zl-fog { opacity: .92; }

/* Pulpit: ciemne drewno, mosiężne tabliczki. */
.zl-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 10px; border-radius: 18px; background: #2b2019; box-shadow: inset 0 0 0 5px #4a3424; }
.zl-ph.storm .zl-panel { animation: zl-storm .5s ease-in-out infinite; }
@keyframes zl-storm { 0%, 100% { transform: translate(0, 0) rotate(0); } 25% { transform: translate(-5px, 2px) rotate(-1.2deg); } 75% { transform: translate(5px, -2px) rotate(1.2deg); } }
.zl-ctl { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; min-height: 132px; padding: 8px 6px; border-radius: 14px; background: #3a2a1f; }
.zl-ctl::before, .zl-ctl::after { content: ''; position: absolute; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: #c9a15a; }
.zl-ctl::before { left: 6px; } .zl-ctl::after { right: 6px; }
.zl-plate { max-width: calc(100% - 16px); padding: 3px 8px; border: 2px solid #16141c; border-radius: 6px; background: #c9a15a; color: #2b2019; font: 700 .78rem/1.15 var(--font-head); text-align: center; }
.zl-ctl button { font-family: var(--font-head); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.zl-bell { width: 84px; height: 84px; padding: 0; border: 0; border-radius: 50%; background: none; touch-action: manipulation; }
.zl-bell svg { width: 100%; height: 100%; display: block; }
.zl-bell.hit svg, .zl-pump.hit .h { animation: zl-press .25s var(--ease); }
@keyframes zl-press { 40% { transform: scale(.9) translateY(4px); } }
.zl-toggle { display: grid; grid-template-columns: auto auto; align-items: center; gap: 4px 10px; padding: 6px 10px; border: 0; border-radius: 12px; background: #2b2019; color: var(--muted); touch-action: manipulation; }
.zl-toggle .lamp { grid-row: span 2; width: 22px; height: 22px; border: 3px solid #16141c; border-radius: 50%; background: #5a2a2a; }
.zl-toggle[data-v="1"] .lamp { background: #3ecf8e; }
.zl-toggle .sw { position: relative; width: 52px; height: 28px; border: 3px solid #16141c; border-radius: 14px; background: #6e4224; }
.zl-toggle .sw i { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #c9a15a; transition: left .15s var(--ease); }
.zl-toggle[data-v="1"] .sw i { left: 26px; }
.zl-toggle .lbl { font: 700 .8rem var(--font-head); }
.zl-toggle[data-v="1"] .lbl { color: #3ecf8e; }
.zl-slider { width: 100%; touch-action: none; }
.zl-slider .track { position: relative; height: 12px; margin: 6px 10px 4px; border: 3px solid #16141c; border-radius: 6px; background: #2b2019; }
.zl-slider .knob { position: absolute; top: 50%; left: calc(var(--v) * 25%); width: 26px; height: 26px; border: 3px solid #16141c; border-radius: 7px; background: #c9a15a; transform: translate(-50%, -50%) rotate(16deg); transition: left .15s var(--ease); }
.zl-slider .notches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
.zl-slider .notches button { padding: 5px 0; border: 0; border-radius: 7px; background: #2b2019; color: #c9a15a; font-size: .95rem; font-weight: 700; touch-action: none; }
.zl-slider .notches button[aria-pressed="true"] { background: #c9a15a; color: #2b2019; }
.zl-wheel, .zl-tele { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; }
.zl-wheel svg { width: 66px; height: 66px; }
.zl-wheel .w { transform-origin: 50px 50px; transform: rotate(var(--r)); transition: transform .3s var(--ease); }
.zl-tele svg { width: 92px; height: 57px; }
.zl-tele .n { transform-origin: 50px 58px; transform: rotate(var(--r)); transition: transform .3s var(--ease); }
.seg3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; width: 100%; }
.seg3 button { min-width: 0; padding: 5px 2px; border: 0; border-radius: 7px; background: #2b2019; color: #c9a15a; font-size: .72rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; touch-action: manipulation; }
.seg3 button[aria-pressed="true"] { background: #c9a15a; color: #2b2019; }
.zl-pump { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 12px 4px; border: 0; border-radius: 12px; background: #2b2019; color: #c9a15a; touch-action: manipulation; }
.zl-pump svg { width: 70px; height: 70px; }
.zl-pump .h { transform-origin: 40px 40px; }
.zl-pump .drop { opacity: 0; }
.zl-pump.hit .drop { animation: zl-drop .4s ease-in both; }
@keyframes zl-drop { from { opacity: 1; transform: translateY(-6px); } to { opacity: 0; transform: translateY(10px); } }
.zl-pump .lbl { font: 700 .85rem var(--font-head); }
.zl-flags { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; width: 100%; }
.zl-flags button { display: flex; justify-content: center; padding: 6px 0 2px; border: 0; border-radius: 8px; background: #2b2019; touch-action: manipulation; }
.zl-flags svg { width: 26px; height: 36px; transition: transform .2s var(--ease); }
.zl-flags button[aria-pressed="true"] { background: #c9a15a; }
.zl-flags button[aria-pressed="true"] svg { transform: translateY(-4px); }
.zl-panel.many .zl-ctl { min-height: 118px; }
.zl-panel.many .zl-bell { width: 70px; height: 70px; }
.zl-panel.many .zl-wheel svg { width: 54px; height: 54px; }
.zl-panel.many .zl-pump svg { width: 58px; height: 58px; }
/* Macka krakena na elemencie. */
.zl-tent { position: absolute; inset: 0; z-index: 2; }
.zl-tent button { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 100%; border: 0; border-radius: 14px; background: rgba(43, 32, 25, .82); color: #f4ecd8; touch-action: manipulation; animation: zl-wriggle 1.2s ease-in-out infinite; }
.zl-tent svg { width: 64px; height: 64px; }
.zl-tent b { font: 700 .8rem var(--font-head); }
.zl-tent span { padding: 1px 8px; border-radius: 8px; background: #8f5fbf; font: 700 .9rem var(--font-head); }
.zl-tent button.hit svg { animation: zl-press .2s var(--ease); }
@keyframes zl-wriggle { 50% { transform: rotate(-1.5deg) scale(1.02); } }
.zl-leak { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 16px 18px; border: 0; border-radius: 16px; background: #ff5d6c; color: #16141c; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .25); cursor: pointer; animation: zl-blink .5s steps(2) infinite; touch-action: manipulation; }
.zl-leak b { font: 700 1.35rem var(--font-head); }
.zl-leak span { padding: 2px 10px; border-radius: 9px; background: #16141c; color: #faf8f4; font: 700 1.1rem var(--font-head); }
.zl-leak.ok { background: #3ecf8e; animation: none; }
.zl-leak:active { transform: translateY(3px); }
[data-zl-leak]:empty { display: none; }

/* Zdarzenie, karta rejsu i napisy na scenie. */
.zl-event { position: absolute; left: 50%; top: 12px; z-index: 3; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 24px); padding: 6px 14px; border-radius: 12px; background: #16141c; transform: translateX(-50%); animation: scn-pop-in .4s var(--ease) both; pointer-events: none; }
.zl-event b { font: 700 1.05rem var(--font-head); letter-spacing: .02em; }
.zl-event span:not(.countdown) { color: var(--muted); font-size: .8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zl-event .countdown { padding: 1px 8px; border-radius: 8px; background: #2b2019; font: 700 .9rem var(--font-head); }
.zl-event.e-storm b { color: #ffd23f; }
.zl-event.e-fog b { color: #d8e0e7; }
.zl-event.e-kraken b { color: #b38ae0; }
.zl-event.e-leak b { color: #6ad0ff; }
.zl-stage.strip .zl-event span:not(.countdown) { display: none; }
.zl-card { position: absolute; left: 50%; top: 50%; z-index: 3; width: min(80%, 32rem); padding: 20px 24px; border-radius: 18px; background: #16141c; text-align: center; transform: translate(-50%, -50%); animation: scn-pop-in .45s var(--ease) both; }
.zl-card.ph { position: static; width: auto; transform: none; padding: 14px 16px; }
.zl-card.bad h2 { color: #ff5d6c; }
.zl-card h2 { margin: 4px 0 0; font: 700 2rem/1.05 var(--font-head); letter-spacing: -.03em; color: var(--game); }
.zl-card p { margin: 8px 0 0; color: var(--muted); font-weight: 600; }
.zl-card .btn { margin-top: 14px; }
.zl-banner { position: absolute; left: 50%; top: 40%; z-index: 3; padding: 12px 26px; border-radius: 16px; background: #16141c; color: var(--game); font: 700 2.4rem var(--font-head); letter-spacing: -.02em; white-space: nowrap; transform: translate(-50%, -50%); opacity: 0; pointer-events: none; }
.zl-banner.show { animation: scn-pop-in .5s var(--ease) both; opacity: 1; }
.zl-banner.bad { color: #ff5d6c; }
.zl-pods { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.zl-pod { display: flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px; border-radius: 12px; background: var(--panel); box-shadow: inset 4px 0 0 var(--pc); }
.zl-pod .fig { width: 30px; }
.zl-pod .nm { font: 700 .9rem var(--font-head); }
.zl-pod.away { opacity: .5; }
.zl-ph { gap: 10px; }
.zl-ph .zl-status { gap: 6px; }
.zl-ph .actions { margin-top: 4px; }
html.tv .zl-tv { gap: .8rem; }
html.tv .zl-tv .wz-top { gap: 1rem; }
html.tv .zl-tv [data-zl-status] { flex: 1; max-width: 56rem; }
html.tv .zl-tv .zl-stage { height: calc(100dvh - 13rem); border-radius: 1.4rem; }
html.tv .zl-route, html.tv .zl-hull { padding: .5rem 1rem; border-radius: 1rem; }
html.tv .zl-route .port { width: 1rem; height: 1rem; }
html.tv .zl-route .line b svg { width: 2.6rem; height: 2rem; }
html.tv .zl-route .line b { top: -1.4rem; }
html.tv .zl-route small, html.tv .zl-hull span:first-child { font-size: 1rem; }
html.tv .zl-hull .bar { height: .9rem; }
html.tv .zl-hull b { font-size: 1.4rem; }
html.tv .zl-event { top: 1rem; gap: 1rem; padding: .6rem 1.4rem; border-radius: 1rem; }
html.tv .zl-event b { font-size: 2rem; }
html.tv .zl-event span:not(.countdown) { font-size: 1.2rem; }
html.tv .zl-event .countdown { font-size: 1.4rem; }
html.tv .zl-card { padding: 2rem 2.4rem; border-radius: 1.4rem; }
html.tv .zl-card h2 { font-size: 3.4rem; }
html.tv .zl-card p { font-size: 1.3rem; }
html.tv .zl-banner { font-size: 4.4rem; padding: 1rem 2.6rem; border-radius: 1.4rem; }
html.tv .zl-pod { padding: .3rem 1rem .3rem .3rem; border-radius: .9rem; }
html.tv .zl-pod .fig { width: 2.4rem; }
html.tv .zl-pod .nm { font-size: 1.1rem; }

/* Pauza hosta (roomPauseUi w room.js): scena stoi pod zasłoną, nagłówek z przyciskiem wznowienia zostaje na wierzchu. */
#room.paused #room-stage *, #room.paused #room-stage *::before, #room.paused #room-stage *::after { animation-play-state: paused !important; }
.pause-veil {
  position: fixed; inset: 0; z-index: 4; display: grid; place-items: center; padding: 24px;
  background: rgb(22 20 28 / .88); animation: pause-in .25s var(--ease) both;
}
.pause-card { display: grid; justify-items: center; gap: 12px; max-width: 420px; text-align: center; }
.pause-card .sub { margin: 0 0 6px; }
.pause-icon {
  display: grid; place-items: center; width: 84px; height: 84px; margin-bottom: 4px; border-radius: 20px;
  background: var(--game, var(--accent)); color: var(--bg); transform: rotate(16deg);
}
.pause-icon svg { transform: rotate(-16deg); }
@keyframes pause-in { from { opacity: 0; } }
html.tv .pause-card { max-width: 40rem; }
html.tv .pause-icon { width: 8rem; height: 8rem; border-radius: 2rem; }
html.tv .pause-icon svg { width: 4rem; height: 4rem; }
