/* Spice Trivi-Ah — shared styles (player, host, big screen) */
@font-face { font-family: "Anton"; src: url("../fonts/anton-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/outfit-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --navy-950: #061729;
  --navy-900: #0a2540;
  --navy-800: #0f3357;
  --navy-700: #174670;
  --gold: #f7c616;
  --gold-deep: #c99a00;
  --red: #d7263d;
  --green: #118a3c;
  --green-bright: #25c05a;
  --pink: #e8337c;
  --purple: #6b2d93;
  --teal: #12788f;
  --bronze-1: #f0d3a4;
  --bronze-2: #b98a52;
  --text: #f3f8fd;
  --muted: #9fb7cf;
  --line: rgba(255, 255, 255, .14);
  --card: rgba(255, 255, 255, .07);
  --card-strong: rgba(255, 255, 255, .11);
  --radius: 18px;
  --display: "Anton", "Impact", "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --body: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  font-family: var(--body); font-size: 16px; line-height: 1.45; color: var(--text);
  background-color: var(--navy-900);
  background-image:
    radial-gradient(900px 520px at 85% -8%, rgba(29, 122, 170, .45), transparent 65%),
    radial-gradient(700px 480px at -10% 105%, rgba(107, 45, 147, .35), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.display { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .02em; line-height: 1; }

/* ---------- brand lockup ---------- */
.wm { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: .9; font-family: var(--display); text-transform: uppercase; color: #fff; }
.wm-spice { display: inline-flex; align-items: flex-end; font-size: 1em; letter-spacing: .01em; -webkit-text-stroke: .045em var(--gold); paint-order: stroke fill; text-shadow: 0 .06em 0 rgba(0,0,0,.35); }
.wm-spice svg { width: .62em; height: 1.08em; margin: 0 .01em -.04em; flex: none; -webkit-text-stroke: 0; }
.wm-trivi { font-size: .8em; letter-spacing: .03em; -webkit-text-stroke: .05em var(--gold); paint-order: stroke fill; text-shadow: 0 .06em 0 rgba(0,0,0,.35); }
.wm.center { align-items: center; }

/* ---------- ribbon / tags / ticket ---------- */
.ribbon {
  display: inline-block; font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; line-height: 1;
  color: #fff; background: var(--pink); padding: .55em 1.9em .5em;
  clip-path: polygon(0 0, 100% 0, calc(100% - .7em) 50%, 100% 100%, 0 100%, .7em 50%);
}
.ribbon.gold { background: var(--gold); color: var(--navy-900); }
.ribbon.green { background: var(--green); }
.ribbon.red { background: var(--red); }
.ribbon.purple { background: var(--purple); }
.tag-red {
  display: inline-block; font-family: var(--display); text-transform: uppercase; letter-spacing: .03em; line-height: 1;
  color: #fff; background: var(--red); padding: .4em .9em .35em; border: .12em solid #fff; transform: rotate(-3deg);
  border-radius: .2em;
}
.chip {
  display: inline-flex; align-items: center; gap: .4em; padding: .2em .75em; border-radius: 999px; font-size: .85em; font-weight: 600;
  background: var(--card-strong); border: 1px solid var(--line); color: var(--text); white-space: nowrap;
}
.chip.gold { background: rgba(247, 198, 22, .16); border-color: rgba(247, 198, 22, .5); color: var(--gold); }
.chip.green { background: rgba(37, 192, 90, .16); border-color: rgba(37, 192, 90, .5); color: #7be0a1; }
.chip.red { background: rgba(215, 38, 61, .18); border-color: rgba(255, 110, 124, .5); color: #ff9aa5; }
.chip.amber { background: rgba(247, 198, 22, .14); border-color: rgba(247, 198, 22, .55); color: #ffd84d; }
.ticket {
  position: relative; color: #3b2a12; text-align: center; padding: 1em 1.6em;
  background: linear-gradient(135deg, #fff1d6, var(--bronze-1) 38%, #d9b27a 100%);
  --n: .8em;
  -webkit-mask: radial-gradient(circle var(--n) at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--n) at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle var(--n) at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--n) at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
}
.ticket .t-big { font-family: var(--display); text-transform: uppercase; line-height: 1; color: #7a5326; }

/* ---------- buttons / forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; border: 0; border-radius: 999px;
  padding: .8em 1.6em; font-weight: 800; font-size: 1rem; line-height: 1.1; text-decoration: none; text-align: center;
  background: var(--gold); color: var(--navy-900); box-shadow: 0 .18em 0 var(--gold-deep), 0 .5em 1.1em rgba(0,0,0,.28);
  transition: transform .12s var(--ease), box-shadow .12s var(--ease), filter .12s;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(.14em); box-shadow: 0 .04em 0 var(--gold-deep), 0 .2em .6em rgba(0,0,0,.3); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; filter: grayscale(.4); }
.btn.red { background: var(--red); color: #fff; box-shadow: 0 .18em 0 #8e1627, 0 .5em 1.1em rgba(0,0,0,.28); }
.btn.green { background: var(--green); color: #fff; box-shadow: 0 .18em 0 #0b5e29, 0 .5em 1.1em rgba(0,0,0,.28); }
.btn.pink { background: var(--pink); color: #fff; box-shadow: 0 .18em 0 #a3205a, 0 .5em 1.1em rgba(0,0,0,.28); }
.btn.ghost { background: transparent; color: var(--text); border: 2px solid var(--line); box-shadow: none; }
.btn.ghost:hover { background: var(--card); }
.btn.small { padding: .5em 1em; font-size: .9rem; }
.btn.tiny { padding: .35em .75em; font-size: .8rem; box-shadow: none; }
.btn.block { display: flex; width: 100%; }
.btn.xl { font-size: 1.2rem; padding: 1em 1.8em; }

.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: .85rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.field > small { display: block; font-size: .8rem; color: var(--muted); margin-top: 5px; }
.input, .select, .textarea {
  width: 100%; border-radius: 14px; border: 2px solid var(--line); background: rgba(6, 23, 41, .65); color: #fff;
  padding: .8em 1em; font-size: 1.05rem; transition: border-color .15s, background .15s;
}
.input::placeholder, .textarea::placeholder { color: #6f89a4; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--gold); background: rgba(6, 23, 41, .9); }
.textarea { min-height: 96px; resize: vertical; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #9fb7cf 50%), linear-gradient(135deg, #9fb7cf 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.2em; }
.input.sm, .select.sm { padding: .45em .7em; font-size: .95rem; border-radius: 10px; }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; min-width: 0; }
.err { color: #ff9aa5; font-weight: 600; font-size: .95rem; margin: 6px 0 12px; }
.ok-msg { color: #7be0a1; font-weight: 600; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; backdrop-filter: blur(6px); }
.muted { color: var(--muted); }
.dots::after { content: ""; display: inline-block; width: 1.2em; text-align: left; animation: dots 1.4s steps(4, end) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }

/* toast */
.toast-wrap { position: fixed; left: 0; right: 0; bottom: max(16px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 1000; pointer-events: none; padding: 0 16px; }
.toast { background: #fff; color: var(--navy-900); font-weight: 700; padding: .7em 1.2em; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.4); max-width: 560px; text-align: center; animation: toast-in .25s var(--ease); }
.toast.bad { background: var(--red); color: #fff; }
.toast.good { background: var(--green); color: #fff; }
@keyframes toast-in { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }

/* timer ring */
.ring { position: relative; width: var(--size, 150px); height: var(--size, 150px); flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); display: block; }
.ring .trk { fill: rgba(6, 23, 41, .55); stroke: rgba(255, 255, 255, .14); stroke-width: 9; }
.ring .bar { fill: none; stroke: var(--green-bright); stroke-width: 9; stroke-linecap: round; transition: stroke .3s; }
.ring.warn .bar { stroke: var(--gold); }
.ring.hot .bar { stroke: #ff4d5e; }
.ring .num { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: calc(var(--size, 150px) * .42); line-height: 1; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.ring.hot .num { color: #ff7683; animation: pulse .5s ease-in-out infinite alternate; }
.ring.done .num { font-size: calc(var(--size, 150px) * .22); color: #ff7683; text-align: center; }
@keyframes pulse { to { transform: scale(1.1); } }

/* answer tiles */
.choice-a { --c: #d7263d; --fg: #fff; }
.choice-b { --c: #f7c616; --fg: #0a2540; }
.choice-c { --c: #118a3c; --fg: #fff; }
.choice-d { --c: #6b2d93; --fg: #fff; }
.choice-e { --c: #e8337c; --fg: #fff; }
.choice-f { --c: #12788f; --fg: #fff; }

/* ---------- shared top bar ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.topbar .wm { font-size: 22px; }

/* ===================================================== PLAYER ===== */
.play { }
.play-shell { max-width: 560px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom); }
.play-main { flex: 1; padding: 6px 18px 28px; display: flex; flex-direction: column; gap: 16px; }
.team-chip { max-width: 52%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; font-size: .9rem; padding: .35em .9em; border-radius: 999px; background: var(--card-strong); border: 1px solid var(--line); }
.hero-join { text-align: center; padding: 14px 0 4px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero-join .wm { font-size: 60px; }
.hero-join .when { font-size: .95rem; color: var(--muted); }
.hero-join .tag-red { font-size: 1.15rem; }
.join-card { padding: 20px; }
.link-btn { background: none; border: 0; color: var(--gold); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; padding: 6px; }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.lobby-hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 8px; }
.lobby-hero h1 { font-family: var(--display); font-weight: 400; font-size: 2.6rem; text-transform: uppercase; line-height: 1; }
.code-box { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: .7em 1.4em; border-radius: 16px; border: 2px dashed rgba(247, 198, 22, .6); background: rgba(247, 198, 22, .07); }
.code-box b { font-family: var(--display); font-weight: 400; font-size: 2.2rem; letter-spacing: .18em; color: var(--gold); line-height: 1.1; }
.code-box small { color: var(--muted); font-size: .8rem; }
.q-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.q-meta .ribbon { font-size: 1.05rem; }
.q-text { font-size: 1.6rem; line-height: 1.22; font-weight: 800; text-wrap: balance; }
.q-timer { display: flex; justify-content: center; padding: 2px 0; }
.choices { display: grid; gap: 12px; }
.choice {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; border: 0; border-radius: 16px;
  background: var(--c); color: var(--fg); padding: 14px 16px; min-height: 64px; font-weight: 800; font-size: 1.15rem; line-height: 1.2;
  box-shadow: 0 5px 0 rgba(0, 0, 0, .3); transition: transform .1s var(--ease), box-shadow .1s, opacity .2s, outline-color .1s;
  -webkit-tap-highlight-color: transparent; outline: 4px solid transparent; outline-offset: 2px;
}
.choice .badge { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 1.3rem; background: rgba(255,255,255,.9); color: var(--navy-900); }
.choice-b .badge { background: var(--navy-900); color: var(--gold); }
.choice:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 rgba(0,0,0,.3); }
.choice[aria-pressed="true"] { outline-color: #fff; }
.choice[aria-pressed="true"]::after { content: "✓"; margin-left: auto; font-size: 1.5rem; }
.choice:disabled { cursor: default; }
.choice.dim { opacity: .35; }
.choice.is-correct { outline-color: var(--green-bright); box-shadow: 0 0 0 4px rgba(37, 192, 90, .35), 0 5px 0 rgba(0,0,0,.3); opacity: 1; }
.answer-form { display: flex; flex-direction: column; gap: 12px; }
.answer-form .input { font-size: 1.25rem; padding: .9em 1em; font-weight: 600; }
.status-line { min-height: 1.6em; font-weight: 700; text-align: center; color: var(--muted); }
.status-line.good { color: #7be0a1; }
.status-line.bad { color: #ff9aa5; }
.result { border-radius: var(--radius); padding: 18px; text-align: center; display: flex; flex-direction: column; gap: 6px; border: 2px solid var(--line); }
.result .r-big { font-family: var(--display); font-size: 2.3rem; text-transform: uppercase; line-height: 1; }
.result.good { background: rgba(17, 138, 60, .28); border-color: rgba(37, 192, 90, .8); }
.result.bad { background: rgba(215, 38, 61, .22); border-color: rgba(255, 110, 124, .7); }
.result.none { background: rgba(255,255,255,.06); }
.answer-ticket { font-size: 1.1rem; }
.answer-ticket .t-big { font-size: 2.2rem; margin-top: 4px; overflow-wrap: anywhere; }
.score-strip { display: flex; justify-content: center; gap: 12px; }
.score-strip .box { text-align: center; min-width: 110px; padding: 10px 16px; }
.score-strip b { display: block; font-family: var(--display); font-weight: 400; font-size: 2rem; color: var(--gold); line-height: 1.1; }
.score-strip small { color: var(--muted); font-weight: 600; }
.note { text-align: center; color: var(--muted); font-style: italic; }
.lb { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.lb li { display: grid; grid-template-columns: 2.6em 1fr auto; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.lb .pos { font-family: var(--display); font-size: 1.35rem; color: var(--muted); text-align: center; }
.lb li:nth-child(1) .pos { color: var(--gold); }
.lb .nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb .nm small { color: var(--muted); font-weight: 500; margin-left: .5em; }
.lb .sc { font-family: var(--display); font-size: 1.35rem; color: #fff; }
.lb li.me { background: rgba(247, 198, 22, .16); border-color: var(--gold); }
.lb li.me .nm::after { content: "  (you)"; color: var(--gold); font-weight: 600; font-size: .85em; }
.lb .gap { text-align: center; color: var(--muted); display: block; background: none; border: 0; padding: 0; }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 10px; margin: 4px 0 8px; }
.podium .p { flex: 1; max-width: 160px; text-align: center; padding: 10px 6px 12px; border-radius: 14px 14px 6px 6px; background: var(--card-strong); border: 1px solid var(--line); }
.podium .p b { display: block; font-family: var(--display); font-weight: 400; font-size: 2rem; line-height: 1; }
.podium .p span { display: block; font-weight: 800; overflow-wrap: anywhere; line-height: 1.15; margin: 4px 0; }
.podium .p small { color: var(--muted); font-weight: 700; }
.podium .p1 { min-height: 150px; background: linear-gradient(180deg, rgba(247,198,22,.35), rgba(247,198,22,.1)); border-color: var(--gold); }
.podium .p2 { min-height: 118px; }
.podium .p3 { min-height: 96px; }
.podium .p1 b { color: var(--gold); }
.conn { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); background: var(--red); color: #fff; font-weight: 700; font-size: .85rem; padding: .35em 1em; border-radius: 999px; z-index: 900; box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.team-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 800; width: 100%; height: 100%; }

@media (min-width: 480px) { .q-text { font-size: 1.9rem; } }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; } }

/* ===================================================== BIG SCREEN ===== */
html.screen-root { font-size: min(1.12vw, 1.99vh); }
.screen { height: 100vh; overflow: hidden; cursor: none; }
.screen body, body.screen { font-size: 1rem; min-height: 0; }
.scr { position: relative; width: 100vw; height: 100vh; overflow: hidden; display: flex; flex-direction: column; padding: 2.2rem 3.2rem 2rem; gap: 1.6rem; }
.scr-top { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex: none; }
.scr-top .wm { font-size: 3.1rem; }
.scr-top .ribbon { font-size: 1.9rem; }
.scr-top .right { display: flex; align-items: center; gap: 1rem; }
.scr-top .chip { font-size: 1.25rem; padding: .35em 1em; }
.scr-body { flex: 1; min-height: 0; display: flex; gap: 3rem; align-items: stretch; }
.scr-foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 2rem; color: var(--muted); font-size: 1.15rem; font-weight: 600; }
.scr-foot .url { color: #fff; font-weight: 800; letter-spacing: .01em; }
.scr-foot .mini-qr { display: flex; align-items: center; gap: 1rem; }
.scr-foot .mini-qr .qr { width: 5.6rem; height: 5.6rem; padding: .35rem; background: #fff; border-radius: .6rem; }
.qr svg { display: block; width: 100%; height: 100%; }

.lobby-left { flex: 0 0 38%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem; text-align: center; }
.lobby-left .wm { font-size: 8rem; }
.lobby-left .tag-red { font-size: 2.2rem; }
.lobby-left .sub { font-size: 1.5rem; color: var(--muted); font-weight: 600; }
.lobby-mid { flex: 0 0 24%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2rem; }
.lobby-mid .qr { width: 100%; aspect-ratio: 1; background: #fff; padding: .9rem; border-radius: 1.2rem; box-shadow: 0 1.2rem 3rem rgba(0,0,0,.45); }
.lobby-mid .ribbon { font-size: 1.9rem; white-space: nowrap; padding: .5em 1.5em .45em; }
.lobby-mid .url { font-size: 1.7rem; font-weight: 800; text-align: center; overflow-wrap: anywhere; }
.lobby-right { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1rem; padding: 1.4rem 1.6rem; background: var(--card); border: 1px solid var(--line); border-radius: 1.4rem; }
.lobby-right h2 { font-family: var(--display); font-weight: 400; font-size: 2.2rem; text-transform: uppercase; display: flex; align-items: baseline; gap: .8rem; }
.lobby-right h2 b { color: var(--gold); font-weight: 400; font-size: 3rem; }
.chips { display: flex; flex-wrap: wrap; align-content: flex-start; gap: .6rem; overflow: hidden; flex: 1; min-height: 0; -webkit-mask-image: linear-gradient(to bottom, #000 88%, transparent); mask-image: linear-gradient(to bottom, #000 88%, transparent); }
.chips .tchip { font-size: 1.45rem; font-weight: 700; padding: .25em .85em; border-radius: 999px; background: var(--card-strong); border: 1px solid var(--line); animation: pop .4s var(--ease); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chips .tchip.new { background: rgba(247, 198, 22, .25); border-color: var(--gold); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.prize-ticket { align-self: stretch; }
.prize-ticket .t-big { font-size: 3.6rem; }
.prize-ticket small { font-weight: 700; letter-spacing: .02em; }

.q-stage { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 2rem; }
.q-stage .q-text { font-size: 3.6rem; line-height: 1.12; font-weight: 800; text-wrap: balance; }
.q-stage .q-text.long { font-size: 2.9rem; }
.q-stage .q-text.xlong { font-size: 2.4rem; }
.type-hint { font-size: 1.7rem; color: var(--muted); font-weight: 600; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.tile { display: flex; align-items: center; gap: 1.2rem; background: var(--c); color: var(--fg); border-radius: 1.2rem; padding: 1.1rem 1.5rem; font-size: 2.1rem; font-weight: 800; line-height: 1.15; box-shadow: 0 .45rem 0 rgba(0,0,0,.3); min-height: 5.6rem; transition: opacity .3s, transform .3s; }
.tile .badge { flex: none; width: 3.4rem; height: 3.4rem; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 2.1rem; background: rgba(255,255,255,.92); color: var(--navy-900); }
.tile.choice-b .badge { background: var(--navy-900); color: var(--gold); }
.tile.dim { opacity: .28; transform: scale(.97); }
.tile.is-correct { outline: .35rem solid var(--green-bright); outline-offset: .2rem; box-shadow: 0 0 3rem rgba(37, 192, 90, .55), 0 .45rem 0 rgba(0,0,0,.3); }
.q-side { flex: 0 0 19rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem; }
.q-side .ring { --size: 17rem; }
.q-side .ring .trk, .q-side .ring .bar { stroke-width: 8; }
.answered { text-align: center; width: 100%; }
.answered b { font-family: var(--display); font-weight: 400; font-size: 3.4rem; line-height: 1; }
.answered b span { color: var(--muted); font-size: 2.2rem; }
.answered small { display: block; font-size: 1.2rem; color: var(--muted); font-weight: 700; margin-top: .2rem; }
.bar-track { height: .9rem; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; margin-top: .7rem; }
.bar-fill { height: 100%; background: var(--gold); border-radius: 999px; transition: width .5s var(--ease); }
.reveal-stage { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: safe center; align-items: center; gap: 2rem; text-align: center; }
.reveal-stage .q-small { font-size: 1.8rem; color: var(--muted); font-weight: 600; max-width: 70rem; text-wrap: balance; }
.reveal-stage .answer-ticket { padding: 1.6rem 4rem; max-width: 80rem; }
.reveal-stage .answer-ticket .t-big { font-size: 6.4rem; line-height: 1.05; overflow-wrap: anywhere; }
.reveal-stage .answer-ticket small { font-size: 1.4rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.reveal-stage .note { font-size: 1.7rem; max-width: 62rem; }
.reveal-stage .tiles { width: min(78rem, 100%); text-align: left; }
.got-it { font-size: 1.7rem; font-weight: 700; }
.got-it b { color: var(--green-bright); font-family: var(--display); font-weight: 400; font-size: 2.6rem; }
.got-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; max-width: 70rem; max-height: 7rem; overflow: hidden; }
.got-chips .tchip { font-size: 1.15rem; font-weight: 700; padding: .15em .7em; border-radius: 999px; background: rgba(37,192,90,.18); border: 1px solid rgba(37,192,90,.55); color: #a8f0c4; }
.lb-stage { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .8rem; justify-content: center; }
.lb-row { flex: none; line-height: 1.15; position: relative; display: grid; grid-template-columns: 4.2rem 1fr auto; align-items: center; gap: 1.2rem; padding: .55rem 1.2rem; border-radius: 1rem; background: var(--card); border: 1px solid var(--line); overflow: hidden; animation: lb-in .5s var(--ease) backwards; }
.lb-row .fillbar { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, rgba(247,198,22,.28), rgba(247,198,22,.06)); width: var(--w, 0%); transition: width 1s var(--ease); }
.lb-row > * { position: relative; }
.lb-row .pos { font-family: var(--display); font-size: 2.2rem; color: var(--muted); text-align: center; }
.lb-row .nm { font-size: 2rem; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-row .nm small { color: var(--muted); font-weight: 600; font-size: .6em; margin-left: .6rem; }
.lb-row .sc { font-family: var(--display); font-size: 2.4rem; }
.lb-row.r1 { border-color: var(--gold); }
.lb-row.r1 .pos { color: var(--gold); }
@keyframes lb-in { from { transform: translateX(-3rem); opacity: 0; } to { transform: none; opacity: 1; } }
.lb-more { text-align: center; color: var(--muted); font-size: 1.4rem; font-weight: 700; }
.final-stage { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1rem; text-align: center; }
.final-stage .trophy { font-size: 5.6rem; line-height: 1; filter: drop-shadow(0 .6rem 1.4rem rgba(0,0,0,.45)); }
.final-stage .win-name { font-family: var(--display); font-size: 7rem; line-height: 1; text-transform: uppercase; color: var(--gold); overflow-wrap: anywhere; max-width: 100rem; -webkit-text-stroke: 0; text-shadow: 0 .4rem 0 rgba(0,0,0,.35); }
.final-stage .win-name.long { font-size: 4.6rem; }
.final-stage .win-score { font-size: 2.4rem; font-weight: 700; color: var(--muted); }
.final-stage .runners { display: flex; gap: 2rem; font-size: 2rem; font-weight: 800; }
.final-stage .runners span { padding: .3em 1em; border-radius: 999px; background: var(--card-strong); border: 1px solid var(--line); }
.final-stage .prize-ticket { padding: .7rem 3.5rem; align-self: center; }
.final-stage .prize-ticket .t-big { font-size: 3rem; }
.scr-controls { position: fixed; left: 50%; transform: translateX(-50%); bottom: .8rem; display: flex; gap: .5rem; z-index: 50; opacity: .25; transition: opacity .3s; cursor: default; }
.scr-controls:hover, .scr-controls:focus-within { opacity: 1; }
.scr-controls button { background: rgba(0,0,0,.5); color: #fff; border: 1px solid var(--line); border-radius: .6rem; padding: .35rem .7rem; font-size: .9rem; font-weight: 700; }
.screen.show-cursor { cursor: default; }

/* ===================================================== HOST ===== */
.host-shell { max-width: 1180px; margin: 0 auto; padding: 0 16px 60px; }
.host-head { position: sticky; top: 0; z-index: 30; background: rgba(6, 23, 41, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); margin: 0 -16px; padding: 10px 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.host-head .wm { font-size: 24px; }
.host-head .hh-title { font-weight: 800; color: var(--muted); font-size: .85rem; }
.host-head .spacer { flex: 1; }
.phase-pill { display: inline-flex; align-items: center; gap: .5em; padding: .3em .9em; border-radius: 999px; font-weight: 800; font-size: .85rem; background: var(--card-strong); border: 1px solid var(--line); }
.phase-pill i { width: .65em; height: .65em; border-radius: 50%; background: var(--muted); display: inline-block; }
.phase-pill.open i { background: var(--green-bright); box-shadow: 0 0 0 4px rgba(37,192,90,.25); animation: pulse2 1.2s infinite; }
.phase-pill.locked i { background: var(--red); }
.phase-pill.reveal i { background: var(--gold); }
.phase-pill.leaderboard i, .phase-pill.final i { background: var(--pink); }
@keyframes pulse2 { 50% { box-shadow: 0 0 0 8px rgba(37,192,90,0); } }
.tabs { display: flex; gap: 4px; overflow-x: auto; padding: 12px 0 4px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; border: 0; background: transparent; color: var(--muted); font-weight: 800; padding: .65em 1.1em; border-radius: 999px; font-size: .95rem; }
.tab[aria-selected="true"] { background: var(--gold); color: var(--navy-900); }
.panel { padding-top: 12px; display: flex; flex-direction: column; gap: 16px; }
.grid2 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 980px) { .grid2.run { grid-template-columns: 5fr 7fr; align-items: start; } .grid2.eq { grid-template-columns: 1fr 1fr; align-items: start; } }
.control-card { display: flex; flex-direction: column; gap: 14px; }
.control-card .qline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.control-card .qtext { font-size: 1.35rem; font-weight: 800; line-height: 1.25; }
.answer-box { background: rgba(17, 138, 60, .2); border: 1px solid rgba(37, 192, 90, .55); border-radius: 14px; padding: 10px 14px; }
.answer-box small { display: block; color: #7be0a1; font-weight: 800; font-size: .78rem; letter-spacing: .04em; }
.answer-box b { font-size: 1.2rem; overflow-wrap: anywhere; }
.answer-box .also { display: block; color: var(--muted); font-size: .85rem; margin-top: 3px; }
.timer-row { display: flex; align-items: center; gap: 16px; }
.timer-row .ring { --size: 92px; }
.timer-row .ring .trk, .timer-row .ring .bar { stroke-width: 10; }
.timer-info { flex: 1; min-width: 0; }
.timer-info b { font-size: 1.15rem; }
.progress { height: 10px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; margin-top: 8px; }
.progress > i { display: block; height: 100%; background: var(--gold); width: 0; transition: width .4s var(--ease); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.actions .btn { flex: 1 1 auto; }
.big-next { width: 100%; font-size: 1.25rem; padding: 1em 1.2em; }
.next-hint { font-size: .85rem; color: var(--muted); text-align: center; margin-top: -6px; }
.sec-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.sec-title h2 { font-family: var(--display); font-weight: 400; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .03em; }
.seg { display: inline-flex; background: rgba(6,23,41,.6); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; color: var(--muted); font-weight: 700; font-size: .82rem; padding: .35em .9em; border-radius: 999px; }
.seg button[aria-pressed="true"] { background: var(--card-strong); color: #fff; }
.tbl-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); background: rgba(6,23,41,.35); }
table.tbl { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tbl th, .tbl td { padding: .65em .85em; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl th { font-size: .78rem; color: var(--muted); font-weight: 800; letter-spacing: .03em; white-space: nowrap; background: rgba(255,255,255,.04); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .ans { font-weight: 700; overflow-wrap: anywhere; min-width: 9em; }
.tbl tr.row-good td:first-child { box-shadow: inset 4px 0 0 var(--green-bright); }
.tbl tr.row-bad td:first-child { box-shadow: inset 4px 0 0 var(--red); }
.tbl tr.row-close td:first-child { box-shadow: inset 4px 0 0 var(--gold); }
.tbl tr.row-close { background: rgba(247, 198, 22, .07); }
.tbl .tname { font-weight: 800; }
.tbl .tname small { color: var(--muted); font-weight: 600; margin-left: .4em; }
.mark { display: inline-flex; gap: 4px; }
.mark button { width: 36px; height: 34px; border-radius: 10px; border: 2px solid var(--line); background: transparent; font-weight: 900; font-size: 1rem; line-height: 1; }
.mark button.ok.on { background: var(--green); border-color: var(--green); color: #fff; }
.mark button.no.on { background: var(--red); border-color: var(--red); color: #fff; }
.mark button.ok:hover:not(.on) { border-color: var(--green-bright); }
.mark button.no:hover:not(.on) { border-color: #ff6e7c; }
.waiting { margin-top: 10px; font-size: .9rem; color: var(--muted); }
.waiting b { color: var(--text); }
.empty { text-align: center; color: var(--muted); padding: 28px 12px; }
.q-card { display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; align-items: start; padding: 14px; }
.q-card .num { font-family: var(--display); font-size: 1.6rem; color: var(--gold); min-width: 1.6em; text-align: center; line-height: 1.2; }
.q-card .qt { font-weight: 800; font-size: 1.05rem; line-height: 1.3; }
.q-card .qm { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.q-card .qa { color: #7be0a1; font-weight: 700; font-size: .92rem; overflow-wrap: anywhere; }
.q-card .qacts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.q-card.is-current { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.list { display: flex; flex-direction: column; gap: 10px; }
.modal-back { position: fixed; inset: 0; z-index: 500; background: rgba(3, 12, 22, .78); backdrop-filter: blur(4px); display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 4vh 12px; }
.modal { width: 100%; max-width: 640px; background: var(--navy-800); border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: toast-in .2s var(--ease); }
.modal h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.6rem; margin-bottom: 14px; }
.modal .foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.opt-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.opt-row .letter { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); background: var(--c); color: var(--fg); }
.opt-row .input { flex: 1; }
.opt-row label.right { flex: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .85rem; color: var(--muted); }
.opt-row input[type="radio"] { width: 20px; height: 20px; accent-color: var(--green-bright); }
.switch { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.switch input { width: 46px; height: 26px; appearance: none; background: rgba(255,255,255,.2); border-radius: 999px; position: relative; transition: background .2s; cursor: pointer; flex: none; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.switch input:checked { background: var(--green); }
.switch input:checked::after { transform: translateX(20px); }
.login-wrap { max-width: 420px; margin: 0 auto; padding: 8vh 18px 40px; display: flex; flex-direction: column; gap: 18px; align-items: stretch; }
.login-wrap .wm { font-size: 54px; align-self: center; }
.login-wrap .ribbon { align-self: center; font-size: 1rem; }
.matrix td, .matrix th { text-align: center; padding: .5em .6em; white-space: nowrap; }
.matrix td:first-child, .matrix th:first-child { text-align: left; position: sticky; left: 0; background: var(--navy-800); z-index: 1; }
.cell-good { color: #7be0a1; font-weight: 800; }
.cell-bad { color: #ff9aa5; font-weight: 800; }
.cell-none { color: #5f7a94; }
.danger { border-color: rgba(255, 110, 124, .5); background: rgba(215, 38, 61, .08); }
.kbd { font-family: ui-monospace, Menlo, Consolas, monospace; background: rgba(0,0,0,.35); padding: .1em .45em; border-radius: 6px; font-size: .9em; }
.bonus-ctl { display: inline-flex; align-items: center; gap: 4px; }
.bonus-ctl .btn { width: 32px; height: 32px; padding: 0; font-size: 1.1rem; }

/* ===================================================== QR POSTER ===== */
.poster { max-width: 820px; margin: 0 auto; padding: 28px 22px 40px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.poster .wm { font-size: 96px; }
.poster .qr { width: min(78vw, 480px); aspect-ratio: 1; background: #fff; padding: 18px; border-radius: 24px; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.poster .ribbon { font-size: 2rem; }
.poster .u { font-size: 1.6rem; font-weight: 800; overflow-wrap: anywhere; }
.poster .steps { color: var(--muted); font-size: 1.1rem; max-width: 30em; }
.poster .noprint { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
@media print {
  body { background: #fff !important; color: #111; }
  .poster .wm { color: #0a2540; text-shadow: none; }
  .poster .u, .poster .steps { color: #111; }
  .noprint { display: none !important; }
  .poster .qr { box-shadow: none; border: 2px solid #111; }
}

/* host: block double-taps while a request is running */
body.is-busy .panel .btn, body.is-busy .modal .btn { pointer-events: none; opacity: .7; }
.q-stage .tiles { margin-top: .4rem; }


/* ===================================================== BONUS POINTS ===== */
.standings-wrap { max-height: 360px; overflow-y: auto; }
.standings-card { margin-top: 16px; }
.bonus-log { margin-top: 14px; }
.bonus-log h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted, #9fb4c9); margin-bottom: 6px; font-weight: 800; }
.bonus-log ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.bonus-log li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; background: rgba(6,23,41,.35); border: 1px solid var(--line); }
.bonus-log .who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.bonus-log .who small { color: var(--muted, #9fb4c9); }
.team-pick { max-height: 240px; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; padding: 2px; }
.team-pick .pick { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(6,23,41,.35); cursor: pointer; font-weight: 700; }
.team-pick .pick input { width: 18px; height: 18px; accent-color: var(--gold, #f7c616); flex: none; }
.team-pick .pick .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-pick .pick small { color: var(--muted, #9fb4c9); }
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.bn { color: var(--gold, #f7c616); font-weight: 800; margin-left: .4em; }
body.screen .bonus-banner { position: fixed; left: 50%; top: 4.5vh; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 1.2rem; padding: 1.1rem 2.4rem 1.1rem 1.6rem; border-radius: 999px; background: linear-gradient(135deg, #f7c616, #ffdf5e); color: #3b2a00; box-shadow: 0 1rem 3rem rgba(0,0,0,.5); font-size: 1.5rem; animation: bbIn .5s var(--ease, ease-out); max-width: 86vw; }
body.screen .bonus-banner.out { opacity: 0; transform: translate(-50%, -30px); transition: all .45s; }
body.screen .bonus-banner .bb-star { font-size: 3rem; line-height: 1; }
body.screen .bonus-banner .bb-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
body.screen .bonus-banner b { font-family: var(--display); font-weight: 400; font-size: 2.4rem; text-transform: uppercase; letter-spacing: .02em; }
body.screen .bonus-banner span { font-weight: 800; }
body.screen .bonus-banner small { font-size: 1.1rem; opacity: .8; font-weight: 700; }
@keyframes bbIn { from { opacity: 0; transform: translate(-50%, -40px) scale(.9); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
.lb-row .nm small.bn { color: var(--gold, #f7c616); }

/* ===================================================== v8: pictures, true/false, majority rules ===== */
.tf-true { --c: #118a3c; --fg: #fff; }
.tf-false { --c: #d7263d; --fg: #fff; }
.q-img.broken { display: none; }

/* player */
.choices.tf { grid-template-columns: 1fr 1fr; }
.choices.tf .choice { flex-direction: column; justify-content: center; text-align: center; min-height: 118px; font-size: 1.45rem; gap: 8px; }
.choices.tf .choice .badge { width: 44px; height: 44px; font-family: var(--body); font-weight: 900; font-size: 1.4rem; background: rgba(255,255,255,.92); color: var(--navy-900); }
.choices.tf .choice[aria-pressed="true"]::after { position: absolute; top: 8px; right: 12px; margin: 0; }
.q-figure { display: block; width: 100%; padding: 0; border: 0; background: rgba(0,0,0,.22); border-radius: 16px; overflow: hidden; cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
.q-figure { text-align: center; line-height: 0; }
.q-figure img { display: inline-block; width: auto; height: auto; max-width: 100%; max-height: 36vh; }
.img-zoom { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.94); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 16px; cursor: zoom-out; }
.img-zoom img { max-width: 100%; max-height: 86vh; object-fit: contain; border-radius: 8px; }
.img-zoom-x { color: #fff; font-weight: 800; font-size: 1rem; padding: .4em 1em; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; }
.votes { display: flex; flex-direction: column; gap: 8px; padding: 14px; }
.vote { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: rgba(255,255,255,.06); overflow: hidden; }
.vote-bar { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(255,255,255,.12); }
.vote.win .vote-bar { background: rgba(37,192,90,.45); }
.vote > span, .vote > b { position: relative; }
.vote-l { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 700; }

/* big screen */
.q-stage.has-pic { gap: 1.2rem; }
.scr-pic { flex: 0 1 34vh; min-height: 5rem; display: flex; justify-content: center; align-items: center; line-height: 0; width: 100%; }
.scr-pic img { display: block; height: 100%; width: auto; max-width: 100%; object-fit: contain; border-radius: 1rem; box-shadow: 0 .6rem 2rem rgba(0,0,0,.45); }
.scr-pic.answer { flex-basis: 30vh; }
.q-stage.has-pic .tile { min-height: 3.6rem; font-size: 1.7rem; padding: .55rem 1.2rem; }
.q-stage.has-pic .tile .badge { width: 2.6rem; height: 2.6rem; font-size: 1.6rem; }
.q-stage.has-pic .tiles { gap: .8rem; }
.q-stage.has-pic .scr-pic { min-height: 16vh; }
.tiles.tf .tile { justify-content: center; font-size: 2.6rem; }
.tiles.tf .tile .badge { font-family: var(--body); font-weight: 900; }
.reveal-stage.has-pic { gap: 1.2rem; }
.reveal-stage.has-pic .answer-ticket .t-big { font-size: 4.4rem; }
.scr-votes { width: min(62rem, 100%); display: flex; flex-direction: column; gap: .6rem; text-align: left; }
.scr-votes .vote { padding: .7rem 1.3rem; border-radius: .9rem; font-size: 1.7rem; }

/* host */
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0; }
.thumbs figure { margin: 0; }
.thumbs img.thumb { display: block; height: 84px; width: auto; max-width: 170px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: rgba(0,0,0,.2); }
.thumbs figcaption { font-size: .72rem; color: var(--muted); margin-top: 2px; }
.img-pick { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.img-pick img.preview { display: block; max-width: 100%; max-height: 170px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.2); }
.img-empty { padding: 16px 22px; border: 2px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: .85rem; }
.seg.wrap { flex-wrap: wrap; border-radius: 16px; }
.groups { display: flex; flex-direction: column; gap: 8px; }
.grp { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.04); overflow: hidden; }
.grp > * { position: relative; }
.grp > .grp-bar { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(255,255,255,.07); pointer-events: none; }
.grp.good { border-color: rgba(37,192,90,.6); }
.grp.good > .grp-bar { background: rgba(37,192,90,.2); }
.grp.bad > .grp-bar { background: rgba(215,38,61,.12); }
.grp.mixed { border-color: rgba(247,198,22,.5); }
.grp.top { box-shadow: inset 4px 0 0 var(--gold); }
.grp-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.grp-label { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.grp-label b { font-size: 1.05rem; overflow-wrap: anywhere; }
.grp-label .chip { font-size: .7rem; }
.grp-teams { color: var(--muted); font-size: .78rem; }
.grp-count { flex: 0 0 auto; text-align: center; min-width: 40px; }
.grp-count b { display: block; font-size: 1.4rem; line-height: 1.1; }
.grp-count small { color: var(--muted); font-size: .72rem; }
.mark button.auto { font-size: .95rem; }
.sub-h { font-size: .95rem; margin: 14px 0 8px; color: var(--muted); }

.reveal-stage .answer-ticket .t-big.size-m { font-size: 4.6rem; }
.reveal-stage .answer-ticket .t-big.size-s { font-size: 3.4rem; }
.reveal-stage .answer-ticket .t-big.size-xs { font-size: 2.5rem; }
.reveal-stage.has-pic .answer-ticket .t-big.size-m { font-size: 3.6rem; }
.reveal-stage.has-pic .answer-ticket .t-big.size-s { font-size: 2.8rem; }
.reveal-stage.has-pic .answer-ticket .t-big.size-xs { font-size: 2.2rem; }
.reveal-row { display: flex; align-items: center; gap: 2rem; width: min(80rem, 100%); min-height: 0; }
.reveal-row .scr-votes { flex: 1 1 auto; min-width: 0; }
.reveal-row .scr-pic.side { flex: 0 0 34%; height: auto; min-height: 0; }
.reveal-row .scr-pic.side img { height: auto; max-height: 28vh; width: auto; max-width: 100%; }
