/* Audience stage. All sizes use container units (cqh/cqw) so the same markup works
   fullscreen on a TV and as a small preview in the host console. */
.stage {
  position: relative;
  container-type: size;
  overflow: hidden;
  background:
    radial-gradient(60cqw 60cqh at 8% 12%, rgba(255, 79, 163, 0.28), transparent 60%),
    radial-gradient(55cqw 60cqh at 95% 90%, rgba(62, 230, 255, 0.22), transparent 60%),
    radial-gradient(40cqw 40cqh at 85% 5%, rgba(255, 210, 63, 0.14), transparent 60%),
    linear-gradient(160deg, #1a1450 0%, #120f2e 55%, #0c0a22 100%);
  color: #fff;
  font-family: var(--font);
  user-select: none;
}
.stage::before { /* soft dotted texture */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1.4px);
  background-size: 2.6cqh 2.6cqh;
}
.stage-layer { position: absolute; inset: 0; }
.screen {
  position: absolute; inset: 0;
  padding: 4cqh 4.5cqw;
  display: flex; flex-direction: column;
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(.2, .8, .2, 1);
}
.screen.enter { opacity: 0; transform: translateY(3cqh) scale(0.985); }
.screen.leave { opacity: 0; transform: translateY(-2cqh) scale(1.01); pointer-events: none; }

.fit-box { min-height: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.fit-text { font-weight: 800; line-height: 1.12; text-align: center; overflow-wrap: break-word; white-space: pre-line; max-width: 100%; }

.round-chip {
  display: inline-flex; align-items: center; align-self: flex-start;
  background: rgba(255, 255, 255, 0.1); border: 0.25cqh solid rgba(255, 255, 255, 0.18);
  padding: 0.9cqh 2cqh; border-radius: 99px; font-weight: 700; font-size: 3.2cqh; color: #e8e4ff;
  max-width: 60cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.section-title { font-weight: 900; font-size: 8cqh; text-align: center; margin-bottom: 3cqh; background: linear-gradient(90deg, var(--yellow), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted-big { font-size: 5cqh; color: var(--muted); text-align: center; margin: auto; }
.center { margin: auto; text-align: center; }
.big-title { font-size: 10cqh; font-weight: 900; }

/* --- welcome / round intro --- */
.scr-welcome, .scr-round { flex-direction: row; align-items: center; gap: 4cqw; }
.welcome-main, .round-main { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 2.5cqh; }
.welcome-main .logo { max-height: 22cqh; max-width: 40cqw; object-fit: contain; align-self: center; }
.title-box { flex: 0 1 46cqh; }
.text-box { flex: 0 1 28cqh; }
.welcome-title, .round-title { font-weight: 900; background: linear-gradient(95deg, #fff 30%, var(--yellow)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.08em; }
.welcome-text, .round-intro { font-weight: 500; color: #ddd8ff; line-height: 1.3; }
.side-image { max-width: 42cqw; max-height: 82cqh; object-fit: contain; border-radius: 3cqh; box-shadow: 0 3cqh 8cqh rgba(0, 0, 0, 0.45); }
.has-image .welcome-main .fit-text, .has-image .round-main .fit-text { text-align: left; }
.has-image .fit-box { justify-content: flex-start; }
.round-main .round-chip { align-self: center; font-size: 3.6cqh; background: var(--pink); border-color: transparent; color: #fff; }
.has-image .round-main .round-chip, .has-image .type-badge, .has-image .round-meta { align-self: flex-start; }
.type-badge { align-self: center; font-size: 3.6cqh; font-weight: 800; padding: 1cqh 2.4cqh; border-radius: 2cqh; }
.type-badge.t-music { background: rgba(62, 230, 255, 0.16); color: var(--cyan); }
.type-badge.t-betting { background: rgba(255, 210, 63, 0.16); color: var(--yellow); }
.round-meta { align-self: center; font-size: 3cqh; color: var(--muted); }
.bet-rules { align-self: center; display: grid; gap: 0.6cqh; font-size: 3.4cqh; font-weight: 800; }
.br-row { display: grid; grid-template-columns: 18cqh repeat(3, 10cqh); text-align: center; gap: 0.8cqh; }
.br-row span { padding: 0.8cqh 0; border-radius: 1.2cqh; background: rgba(255, 255, 255, 0.07); }
.br-row.head span { color: var(--muted); background: transparent; }
.br-row.ok span:not(:first-child) { background: rgba(124, 240, 106, 0.2); color: var(--lime); }
.br-row.bad span:not(:first-child) { background: rgba(255, 94, 94, 0.18); color: #ff9a9a; }

/* --- teams --- */
.scr-teams { justify-content: center; }
.team-grid { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 2.4cqh; align-content: center; flex: 1; min-height: 0; }
.team-card {
  background: linear-gradient(145deg, var(--c), color-mix(in srgb, var(--c) 62%, #120f2e));
  color: #120f2e; font-weight: 900; font-size: var(--fs); text-align: center;
  border-radius: 3cqh; padding: 2cqh 2.4cqh; display: grid; place-items: center;
  box-shadow: 0 1.4cqh 0 rgba(0, 0, 0, 0.25), 0 2cqh 5cqh rgba(0, 0, 0, 0.3);
  overflow-wrap: anywhere; line-height: 1.1;
  animation: pop 0.55s cubic-bezier(.2, 1.6, .4, 1) both; animation-delay: var(--d);
}
@keyframes pop { from { opacity: 0; transform: scale(0.6) rotate(-4deg); } }

/* --- question / review --- */
.q-header { display: flex; align-items: center; gap: 2cqw; height: 8cqh; flex: 0 0 auto; }
.q-num { font-size: 4cqh; color: var(--muted); font-weight: 700; margin-left: auto; }
.q-num b { font-size: 6cqh; color: var(--yellow); font-weight: 900; }
.bet-chip { font-size: 3cqh; font-weight: 800; color: #221c00; background: var(--yellow); padding: 0.8cqh 1.8cqh; border-radius: 99px; }
.corner-icon { height: 8cqh; width: 8cqh; object-fit: contain; border-radius: 1.6cqh; }
.q-body { flex: 1; min-height: 0; display: flex; gap: 3cqw; margin-top: 2cqh; }
.q-content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2.5cqh; }
.q-text-box { flex: 1 1 auto; }
.has-media .q-text-box { flex: 0 1 34%; }
.q-text { color: #fff; text-shadow: 0 0.4cqh 2cqh rgba(0, 0, 0, 0.35); }
.media-box { flex: 1 1 60%; min-height: 0; display: flex; align-items: center; justify-content: center; position: relative; }
.q-image, .q-video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 2.4cqh; box-shadow: 0 2cqh 6cqh rgba(0, 0, 0, 0.45); background: #000; }
.q-image { background: transparent; transition: filter 0.25s linear; }
.media-box.audio-only { flex: 1 1 40%; }
.hidden-video { display: none; }
.audio-indicator { display: flex; align-items: center; gap: 3cqh; background: rgba(62, 230, 255, 0.1); border: 0.3cqh solid rgba(62, 230, 255, 0.35); padding: 2cqh 5cqh; border-radius: 99px; color: var(--cyan); }
.audio-indicator .note { font-size: 20cqh; line-height: 1; font-weight: 900; font-family: 'Segoe UI Symbol', var(--font); text-shadow: 0 0 4cqh rgba(62, 230, 255, 0.6); }
.audio-indicator.playing .note { animation: notePulse 0.9s ease-in-out infinite; }
@keyframes notePulse { 0%, 100% { transform: scale(1) rotate(-6deg); } 50% { transform: scale(1.14) rotate(6deg); } }
.media-box:not(.audio-only) .audio-indicator { position: absolute; bottom: 1cqh; left: 50%; transform: translateX(-50%); padding: 0.6cqh 2.4cqh; background: rgba(12, 10, 34, 0.85); }
.media-box:not(.audio-only) .audio-indicator .note { font-size: 6cqh; }
.eq { display: flex; align-items: flex-end; gap: 0.8cqh; height: 10cqh; }
.media-box:not(.audio-only) .eq { height: 4cqh; }
.eq i { width: 1.4cqh; height: 30%; background: var(--cyan); border-radius: 1cqh; }
.audio-indicator.playing .eq i { animation: eq 0.9s ease-in-out infinite; }
.audio-indicator.playing .eq i:nth-child(2) { animation-delay: 0.15s; }
.audio-indicator.playing .eq i:nth-child(3) { animation-delay: 0.3s; }
.audio-indicator.playing .eq i:nth-child(4) { animation-delay: 0.45s; }
.audio-indicator.playing .eq i:nth-child(5) { animation-delay: 0.6s; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }

.q-timer { flex: 0 0 auto; display: flex; align-items: flex-end; }
.timer { position: relative; display: grid; place-items: center; }
.timer svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: rgba(255, 255, 255, 0.06); stroke: rgba(255, 255, 255, 0.12); stroke-width: 7; }
.ring-fg { fill: none; stroke: var(--lime); stroke-width: 7; stroke-linecap: round; transition: stroke 0.3s; }
.timer-num { position: relative; font-weight: 900; font-variant-numeric: tabular-nums; }
.timer.t-big { width: 26cqh; height: 26cqh; }
.timer.t-big .timer-num { font-size: 10cqh; }
.timer.t-small { width: 13cqh; height: 13cqh; }
.timer.t-small .timer-num { font-size: 5cqh; }
.timer.warn .ring-fg { stroke: var(--orange); }
.timer.warn .timer-num { color: var(--orange); animation: beat 1s ease-in-out infinite; }
.timer.done .ring-bg { fill: rgba(255, 94, 94, 0.18); }
.timer.done .timer-num { color: var(--red); }
.timer-paused { position: absolute; bottom: 14%; font-size: 0.6em; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--yellow); opacity: 0; }
.t-big .timer-paused { font-size: 2.6cqh; bottom: 16%; }
.t-small .timer-paused { font-size: 1.6cqh; bottom: 10%; }
.timer.paused .timer-paused { opacity: 1; }
.timer.paused .ring-fg { stroke: var(--yellow); }
@keyframes beat { 50% { transform: scale(1.12); } }
.scr-question.time-up .q-text { opacity: 0.85; }

.scr-question.review .q-timer { align-items: flex-start; }
.review-progress { height: 1cqh; background: rgba(255, 255, 255, 0.1); border-radius: 1cqh; margin-top: 2cqh; overflow: hidden; flex: 0 0 auto; }
.review-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--violet)); border-radius: 1cqh; }

/* --- collect / scoring --- */
.scr-collect, .scr-scoring { align-items: center; justify-content: center; text-align: center; gap: 3cqh; }
.paper { font-family: var(--emoji); font-size: 24cqh; line-height: 1; animation: wiggle 1.6s ease-in-out infinite; }
@keyframes wiggle { 0%, 100% { transform: rotate(-8deg) translateY(0); } 50% { transform: rotate(8deg) translateY(-2cqh); } }
.collect-title { font-size: 14cqh; font-weight: 900; line-height: 1; background: linear-gradient(90deg, var(--yellow), var(--pink), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.1em; }
.collect-sub { font-size: 4cqh; color: var(--muted); max-width: 80cqw; }
.spinner { display: flex; gap: 3cqh; }
.spinner i { width: 5cqh; height: 5cqh; border-radius: 50%; background: var(--pink); animation: bounce 1s ease-in-out infinite; }
.spinner i:nth-child(2) { background: var(--yellow); animation-delay: 0.15s; }
.spinner i:nth-child(3) { background: var(--cyan); animation-delay: 0.3s; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4cqh); } }

/* --- answer --- */
.answer-body { flex: 1; min-height: 0; display: grid; grid-template-rows: auto auto 1fr; gap: 2.5cqh; margin-top: 2cqh; }
.scr-answer:not(.has-media) .answer-body { grid-template-rows: 30cqh 1fr; }
.aq-box { max-height: 22cqh; min-height: 8cqh; }
.scr-answer:not(.has-media) .aq-box { max-height: none; }
.aq-text { color: #ddd8ff; font-weight: 700; }
.answer-card { background: linear-gradient(135deg, rgba(124, 240, 106, 0.22), rgba(62, 230, 255, 0.16)); border: 0.4cqh solid rgba(124, 240, 106, 0.6); border-radius: 3cqh; padding: 1.6cqh 3cqh 2cqh; display: flex; flex-direction: column; animation: pop 0.5s cubic-bezier(.2, 1.4, .4, 1) both; }
.answer-label { font-size: 2.6cqh; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--lime); text-align: center; }
.a-box { height: 20cqh; }
.scr-answer:not(.has-media) .a-box { height: 30cqh; }
.a-text { color: #fff; font-weight: 900; }

/* --- standings (scoreboard, break, overlay) --- */
.scr-scoreboard { align-items: center; }
.sb-wrap { flex: 1; min-height: 0; width: min(100%, 120cqh); display: flex; flex-direction: column; justify-content: center; }
.standings { display: flex; flex-direction: column; gap: calc(var(--fs) * 0.22); font-size: var(--fs); width: 100%; }
.st-row { display: flex; align-items: center; gap: 0.6em; background: rgba(255, 255, 255, 0.07); border-radius: 0.5em; padding: 0.22em 0.6em; animation: slideIn 0.45s cubic-bezier(.2, .9, .3, 1) both; animation-delay: var(--d); }
.st-row.top1 { background: linear-gradient(90deg, rgba(255, 210, 63, 0.35), rgba(255, 210, 63, 0.08)); }
.st-row.top2 { background: linear-gradient(90deg, rgba(200, 210, 255, 0.28), rgba(200, 210, 255, 0.06)); }
.st-row.top3 { background: linear-gradient(90deg, rgba(255, 138, 61, 0.3), rgba(255, 138, 61, 0.06)); }
.st-place { width: 1.6em; text-align: center; font-weight: 900; font-family: var(--font), var(--emoji); }
.st-name { flex: 1; font-weight: 800; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-round { font-size: 0.7em; color: var(--lime); font-weight: 800; }
.st-total { font-weight: 900; color: var(--yellow); min-width: 2.2em; text-align: right; font-variant-numeric: tabular-nums; }
@keyframes slideIn { from { opacity: 0; transform: translateX(-4cqw); } }

.scr-break { flex-direction: row; gap: 5cqw; align-items: center; }
.break-left { flex: 0 0 42%; display: flex; flex-direction: column; align-items: center; gap: 2cqh; text-align: center; }
.break-title { font-size: 10cqh; font-weight: 900; font-family: var(--font), var(--emoji); white-space: nowrap; }
.break-sub { font-size: 4cqh; color: var(--muted); }
.timer.t-clock .timer-num { font-size: 22cqh; color: var(--cyan); line-height: 1; }
.timer.t-clock.done .timer-num { color: var(--red); }
.timer.t-clock .timer-paused { position: static; font-size: 3cqh; }
.break-continue { margin-top: 2cqh; font: 800 4cqh var(--font); color: #fff; background: linear-gradient(135deg, var(--pink), #ff6b6b); border: 0; border-radius: 99px; padding: 1.6cqh 5cqh; cursor: pointer; }
.is-preview .break-continue { display: none; }
.break-table { flex: 1; min-width: 0; max-height: 100%; display: flex; flex-direction: column; justify-content: center; }
.break-table .standings { --fs: 4.4cqh !important; }

.stage-overlay { position: absolute; inset: 0; display: none; place-items: center; background: rgba(10, 8, 30, 0.88); backdrop-filter: blur(6px); z-index: 5; }
.stage-overlay.on { display: grid; animation: fade 0.25s; }
.overlay-box { width: min(90cqw, 130cqh); max-height: 92cqh; display: flex; flex-direction: column; gap: 3cqh; }
.overlay-title { font-size: 8cqh; font-weight: 900; text-align: center; color: var(--yellow); }

/* --- final --- */
.scr-final { align-items: center; }
.final-title { font-size: 9cqh; font-weight: 900; background: linear-gradient(90deg, var(--yellow), var(--pink), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.final-hint { font-size: 4cqh; color: var(--muted); min-height: 5cqh; }
.final-stage { flex: 1; min-height: 0; width: 100%; display: flex; gap: 4cqw; align-items: flex-end; justify-content: center; }
.final-list { display: none; flex-direction: column; gap: 1.2cqh; width: 34cqw; max-height: 100%; overflow: hidden; align-self: center; }
.has-list .final-list { display: flex; }
.final-row { display: flex; gap: 1.5cqh; align-items: center; font-size: 3.6cqh; background: rgba(255, 255, 255, 0.07); border-radius: 1.4cqh; padding: 1cqh 2cqh; }
.fr-place { font-weight: 900; color: var(--muted); width: 3cqh; }
.fr-name { flex: 1; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-pts { font-weight: 900; color: var(--yellow); }
.pop { animation: pop 0.6s cubic-bezier(.2, 1.6, .4, 1) both; }
.podium { display: flex; align-items: flex-end; gap: 1.6cqw; height: 100%; }
.pod { width: 22cqw; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-end; height: 100%; }
.pod-names { display: flex; flex-direction: column; gap: 1cqh; margin-bottom: 1.4cqh; text-align: center; }
.pod-name b { display: block; font-size: 4.4cqh; font-weight: 900; line-height: 1.1; overflow-wrap: anywhere; }
.pod-name small { font-size: 2.8cqh; color: var(--muted); font-weight: 700; }
.p1 .pod-name b { font-size: 5.6cqh; color: var(--yellow); }
.pod-block { display: grid; place-items: center; border-radius: 2.4cqh 2.4cqh 0 0; font-size: 12cqh; font-weight: 900; color: rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.06); transition: background 0.6s, color 0.6s, box-shadow 0.6s; }
.p1 .pod-block { height: 34cqh; }
.p2 .pod-block { height: 25cqh; }
.p3 .pod-block { height: 18cqh; }
.p1.lit .pod-block { background: linear-gradient(180deg, #ffe066, #f0a500); color: #5a3d00; box-shadow: 0 0 8cqh rgba(255, 210, 63, 0.45); }
.p2.lit .pod-block { background: linear-gradient(180deg, #eef1ff, #a8b2d8); color: #2e3557; }
.p3.lit .pod-block { background: linear-gradient(180deg, #ffb27a, #d0662a); color: #4d2100; }
.confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 6; }

/* --- controls on hover (single window / audience window) --- */
.stage-controls {
  position: absolute; left: 50%; bottom: 2cqh; transform: translate(-50%, 150%); z-index: 8;
  display: flex; gap: 8px; padding: 8px; border-radius: 16px;
  background: rgba(18, 15, 46, 0.92); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s, opacity 0.25s; opacity: 0;
}
.stage-controls button { font: 700 17px var(--font), var(--emoji); color: #fff; background: var(--card2); border: 0; border-radius: 10px; min-width: 46px; height: 44px; padding: 0 12px; cursor: pointer; }
.stage-controls button:hover { background: #3a3384; }
.stage-controls button.next { background: var(--pink); padding: 0 20px; }
.controls-on .stage-controls { transform: translate(-50%, 0); opacity: 1; }
.controls-on { cursor: default; }
.stage:not(.controls-on) { cursor: none; }
.stage.is-preview { cursor: default; }
.stage.is-preview .stage-controls { display: none; }

/* --- audience window --- */
body.audience { overflow: hidden; background: #0c0a22; }
#aud { position: fixed; inset: 0; }
.sound-banner { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 50; display: none; font: 800 20px var(--font), var(--emoji); color: #221c00; background: var(--yellow); border: 0; border-radius: 99px; padding: 12px 24px; cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); }
.sound-banner.on { display: block; }
.waiting { position: fixed; inset: 0; z-index: 40; display: none; place-items: center; background: rgba(12, 10, 34, 0.92); }
.waiting.on { display: grid; }
.waiting-box { display: flex; flex-direction: column; align-items: center; gap: 20px; font-size: 32px; font-weight: 800; text-align: center; }
.waiting-box small { font-size: 18px; color: var(--muted); font-weight: 500; }
.waiting .spinner i { width: 24px; height: 24px; }

/* --- multiple choice --- */
.mc-options { display: grid; grid-template-columns: 1fr 1fr; gap: 2cqh 2.4cqw; flex: 0 0 auto; }
.mc-opt { display: flex; align-items: center; gap: 2cqh; background: rgba(255, 255, 255, 0.08); border: 0.35cqh solid rgba(255, 255, 255, 0.16); border-radius: 2.4cqh; padding: 1.6cqh 2.4cqh; font-size: 4.6cqh; font-weight: 800; line-height: 1.15; min-height: 10cqh; transition: opacity 0.4s, background 0.4s; }
.mc-letter { flex: 0 0 auto; display: grid; place-items: center; width: 7cqh; height: 7cqh; border-radius: 50%; background: var(--violet); color: #fff; font-weight: 900; }
.mc-opt:nth-child(2) .mc-letter { background: var(--pink); }
.mc-opt:nth-child(3) .mc-letter { background: #1fb5cc; }
.mc-opt:nth-child(4) .mc-letter { background: var(--orange); }
.mc-text { min-width: 0; overflow-wrap: anywhere; }
.mc-opt.correct { background: rgba(124, 240, 106, 0.28); border-color: var(--lime); box-shadow: 0 0 5cqh rgba(124, 240, 106, 0.35); animation: pop 0.5s cubic-bezier(.2, 1.4, .4, 1) both; }
.mc-opt.correct .mc-letter { background: var(--lime); color: #0d2a06; }
.mc-opt.dim { opacity: 0.35; }
.has-options .q-text-box { flex: 1 1 auto; }
.has-options.has-media .q-text-box { flex: 0 1 26%; }
.has-options .media-box { flex: 1 1 40%; }
.scr-answer.is-mc .answer-body { grid-template-rows: auto auto auto 1fr; }
.scr-answer.is-mc .a-box { height: 12cqh; }
.a-note { font-size: 3cqh; color: #ddd8ff; text-align: center; font-weight: 600; }

/* --- captains --- */
.scr-captains { gap: 2cqh; }
.cap-q-box { flex: 0 0 22cqh; }
.cap-image { max-height: 20cqh; max-width: 50cqw; object-fit: contain; align-self: center; border-radius: 2cqh; }
.cap-row { flex: 1; min-height: 0; display: flex; gap: 2cqw; align-items: stretch; }
.cap-side { flex: 1; min-width: 0; display: flex; flex-direction: column; border-radius: 3cqh; padding: 2cqh 3cqh; transition: opacity 0.4s, transform 0.4s, box-shadow 0.4s; }
.cap-side.s0 { background: linear-gradient(145deg, rgba(62, 230, 255, 0.3), rgba(62, 230, 255, 0.08)); border: 0.4cqh solid rgba(62, 230, 255, 0.55); }
.cap-side.s1 { background: linear-gradient(215deg, rgba(255, 79, 163, 0.32), rgba(255, 79, 163, 0.08)); border: 0.4cqh solid rgba(255, 79, 163, 0.55); }
.cap-dir { font-size: 3cqh; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.cap-side.s1 .cap-dir { text-align: right; }
.cap-opt-box { flex: 1; }
.cap-opt { font-weight: 900; }
.cap-side.correct { border-color: var(--lime); background: linear-gradient(145deg, rgba(124, 240, 106, 0.45), rgba(124, 240, 106, 0.12)); box-shadow: 0 0 6cqh rgba(124, 240, 106, 0.45); transform: scale(1.02); }
.cap-side.wrong { opacity: 0.25; }
.cap-timer, .cap-vs { flex: 0 0 auto; display: grid; place-items: center; }
.cap-timer .timer.t-big { width: 22cqh; height: 22cqh; }
.cap-vs { font-size: 4cqh; font-weight: 900; color: var(--muted); width: 10cqh; }
.cap-teams { display: flex; flex-wrap: wrap; gap: 1cqh 1.6cqh; align-items: center; justify-content: center; min-height: 6cqh; font-size: 3.4cqh; }
.cap-label { color: var(--muted); font-weight: 700; }
.cap-team { background: rgba(255, 255, 255, 0.1); border-radius: 99px; padding: 0.6cqh 2cqh; font-weight: 800; transition: opacity 0.4s; }
.cap-team.out { opacity: 0.35; text-decoration: line-through; }
.scr-capresult { align-items: center; justify-content: center; text-align: center; gap: 2.4cqh; }
.cap-crown { font-size: 18cqh; line-height: 1; animation: pop 0.7s cubic-bezier(.2, 1.6, .4, 1) both; }
.cap-winner { font-size: 13cqh; font-weight: 900; color: var(--yellow); line-height: 1.05; }
.cap-bonus { font-size: 5cqh; font-weight: 800; color: var(--lime); }
.cap-left { display: flex; flex-wrap: wrap; gap: 2cqh; justify-content: center; font-size: 5cqh; }

/* --- jeopardy --- */
.scr-jpdraft, .scr-jpboard { gap: 2.4cqh; }
.jp-turn { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.jp-turn small { font-size: 3.4cqh; color: var(--muted); font-weight: 700; }
.jp-turn b { font-size: 8cqh; font-weight: 900; color: var(--yellow); }
.jp-turn.inline { flex-direction: row; gap: 2cqh; align-items: baseline; margin-left: auto; }
.jp-turn.inline b { font-size: 6cqh; }
.jp-themes { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 2cqh; align-content: center; }
.jp-theme { display: grid; place-items: center; text-align: center; padding: 2.4cqh; border-radius: 2.4cqh; background: linear-gradient(145deg, #2c2a8a, #1d1a5c); border: 0.35cqh solid rgba(255, 255, 255, 0.18); font-size: 5cqh; font-weight: 900; transition: opacity 0.4s; position: relative; }
.jp-theme.struck { opacity: 0.25; }
.jp-theme.struck::after { content: ''; position: absolute; left: 6%; right: 6%; top: 50%; height: 0.8cqh; background: var(--red); border-radius: 1cqh; transform: rotate(-4deg); }
.jp-board { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(var(--cols), minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 1.4cqh; }
.jp-name { display: flex; align-items: center; padding: 0 2.4cqh; border-radius: 1.8cqh; background: rgba(255, 255, 255, 0.08); font-size: 4.2cqh; font-weight: 800; line-height: 1.1; overflow: hidden; }
.jp-cell { display: grid; place-items: center; border-radius: 1.8cqh; background: linear-gradient(160deg, #3b2fc9, #241c86); border: 0.3cqh solid rgba(255, 255, 255, 0.2); font-size: 7cqh; font-weight: 900; color: var(--yellow); text-shadow: 0 0.4cqh 0 rgba(0, 0, 0, 0.35); }
.jp-cell.used { background: rgba(255, 255, 255, 0.03); border-color: rgba(255, 255, 255, 0.05); }
.jp-chooser { margin-left: auto; font-size: 3.4cqh; color: var(--muted); font-weight: 700; }
.jp-chooser b { color: var(--yellow); font-size: 4.6cqh; }

/* --- tie-break --- */
.tb-box { align-items: center; }
.tb-teams { display: flex; flex-wrap: wrap; gap: 1.6cqh; justify-content: center; }
.tb-team { background: var(--pink); color: #fff; font-weight: 900; font-size: 4cqh; border-radius: 99px; padding: 0.6cqh 2.6cqh; }
.tb-q-box { height: 26cqh; width: 100%; }
.tb-q { color: #fff; }
.tb-timer .timer.t-big { width: 22cqh; height: 22cqh; }
.tb-hint { font-size: 3.4cqh; color: var(--muted); text-align: center; }
.tb-answer { display: flex; flex-direction: column; align-items: center; }
.tb-answer small { font-size: 3cqh; color: var(--lime); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.tb-answer b { font-size: 11cqh; font-weight: 900; line-height: 1; }
.tb-results { display: flex; flex-direction: column; gap: 1.2cqh; width: min(100%, 110cqh); }
.tb-row { display: flex; align-items: baseline; gap: 2cqh; font-size: 4.4cqh; background: rgba(255, 255, 255, 0.07); border-radius: 1.6cqh; padding: 1cqh 2.4cqh; }
.tb-row span { flex: 1; font-weight: 800; }
.tb-row b { color: var(--yellow); }
.tb-row small { font-size: 2.8cqh; color: var(--muted); min-width: 22cqh; text-align: right; }
.tb-row.win { background: linear-gradient(90deg, rgba(255, 210, 63, 0.4), rgba(255, 210, 63, 0.1)); }
.tb-tag { font-size: 0.45em; font-weight: 800; color: #221c00; background: var(--yellow); border-radius: 99px; padding: 0.15em 0.6em; text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }
.pod-name .tb-tag { font-size: 2.2cqh; }
.final-row .tb-tag { font-size: 2cqh; }
.type-badge.t-multiple_choice { background: rgba(139, 108, 255, 0.2); color: #c9b8ff; }
.type-badge.t-captains { background: rgba(255, 138, 61, 0.18); color: var(--orange); }
.type-badge.t-jeopardy { background: rgba(124, 240, 106, 0.16); color: var(--lime); }
