    body { -webkit-tap-highlight-color: transparent; }
    /* Touch pressed state: the native tap highlight is off (above), so give buttons/links a
       brief dim + shrink while held. Phones only (hover:none + coarse pointer). Skipped for
       disabled controls, controls that already style their own active: state, and anything
       inside a .select-none subtree: that class marks every immersive full-screen game root
       (pinball, SquadKarts, Spades/99/Poker/Nertz tables, fullscreen map) and the game
       boards (Boggle dice, Sudoku cells, SquadTiles board, Wordle keyboard, cards).
       .jbf-nopress opts out anything else (hype takeover, SquadTiles rack). `scale` (not
       `transform`) so it composes with Tailwind translate positioning. */
    @media (hover: none) and (pointer: coarse) {
      :is(button, a[href], [role="button"]):not(:disabled):not([aria-disabled="true"]):not([class*="active:"]):not(.select-none):not(.select-none *):not(.jbf-nopress):not(.jbf-nopress *):active {
        opacity: 0.7; scale: 0.97;
      }
    }
    /* iPhone/iPad (12.9.26): Safari only honours the PREFIXED -webkit-user-select, and its
       long-press "Copy · Look Up · Translate" menu is a separate switch, -webkit-touch-callout.
       The static Tailwind sheet's .select-none carries only the unprefixed user-select (no
       autoprefixer in the build), so holding a game control — the battle's ◀ ▶ pad, 🔫 HOLD,
       a dice tray — selected its text and opened that menu. Every .select-none / .jbf-nopress
       subtree turns both off; typing fields inside one (Tall Tales' answer box, chat inputs)
       stay selectable and editable. */
    .select-none, .jbf-nopress { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
    :is(.select-none, .jbf-nopress) :is(input, textarea, select, [contenteditable="true"]) { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
    /* Sheet / modal entry motion: backdrop fades, panel slides up + fades (bell dropdown
       drops in). Fill mode is `backwards` only, so once the animation ends the element has
       no transform/opacity of its own (fixed-position descendants and backdrop opacities
       behave exactly as before). */
    @keyframes jbfFadeIn { from { opacity: 0; } to { opacity: 1; } }
    @keyframes jbfSheetIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
    @keyframes jbfDropIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
    .jbf-fade-in { animation: jbfFadeIn 0.16s ease-out backwards; }
    .jbf-sheet-in { animation: jbfSheetIn 0.22s cubic-bezier(0.2, 0.8, 0.3, 1) backwards; }
    .jbf-drop-in { animation: jbfDropIn 0.16s ease-out backwards; }
    @media (prefers-reduced-motion: reduce) {
      .jbf-fade-in, .jbf-sheet-in, .jbf-drop-in { animation: none; }
    }
    /* 📺 TV companion mode — TvShell: a full-viewport overlay above everything (banners, the chat
       dock, sheets) holding one 16:9 stage, letterboxed and a size container, so a game's TV
       screen lays out in cqw/cqh and looks the same at 1280x720 and 1920x1080. */
    .tv-shell { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #02050b; color: #f1f5f9; }
    .tv-shell.tv-idle, .tv-shell.tv-idle * { cursor: none !important; }
    .tv-stage { position: relative; flex: none; width: min(100vw, calc(100vh * 16 / 9)); height: min(100vh, calc(100vw * 9 / 16)); container-type: size; overflow: hidden; background: #0b1220; }
    .tv-safe { position: absolute; left: 4%; right: 4%; top: 4%; bottom: 4%; }
    .tv-chrome { position: absolute; top: 1.3cqh; right: 0.9cqw; z-index: 40; display: flex; align-items: center; gap: 0.5cqw; transition: opacity 0.35s ease; }
    .tv-shell.tv-idle .tv-chrome, .tv-shell.tv-idle .tv-hint { opacity: 0; pointer-events: none; }
    .tv-chip { display: inline-flex; align-items: center; gap: 0.4em; border-radius: 9999px; padding: 0.3em 0.85em; font-size: max(12px, 1.6cqh); font-weight: 800; line-height: 1.3;
      color: #e2e8f0; background: rgba(15,23,42,0.82); box-shadow: inset 0 0 0 1px rgba(148,163,184,0.35); white-space: nowrap; }
    .tv-x { cursor: pointer; } .tv-x:hover { color: #fff; background: rgba(225,29,72,0.9); }
    /* ✨ a new version is ready (12.10.9, TvUpdateChip): the TV never reloads by itself, so its chrome offers it */
    .tv-upd { cursor: pointer; color: #fff7ed; background: rgba(234,88,12,0.9); box-shadow: inset 0 0 0 1px rgba(253,186,116,0.65); } .tv-upd:hover { color: #fff; background: rgb(234,88,12); }
    .tv-hint { position: absolute; left: 50%; bottom: 1.6cqh; transform: translateX(-50%); z-index: 40; cursor: pointer; transition: opacity 0.35s ease; }
    .tv-empty-screen { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 3cqh; font-weight: 800; color: #94a3b8; }
    /* anything marked .tv-autohide hides with the shell's chrome */
    .tv-autohide { transition: opacity 0.35s ease; } .tv-shell.tv-idle .tv-autohide { opacity: 0; pointer-events: none; }
    /* 📺 TV voice (the game TVs' commentary): the caption in the stage's bottom margin, the one click
       a browser needs before sound, and the sound chip in the chrome (same in both themes) */
    .tv-vo-cap { position: absolute; left: 50%; bottom: 0.35cqh; z-index: 36; transform: translateX(-50%); max-width: 72cqw; border-radius: 9999px; padding: 0.35cqh 2.2cqh;
      font-size: 2.2cqh; font-weight: 800; line-height: 1.25; color: #f8fafc; background: rgba(2,6,23,0.8); box-shadow: 0 0.5cqh 1.6cqh rgba(0,0,0,0.35), inset 0 0 0 0.15cqh rgba(148,163,184,0.32);
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; transition: opacity 0.45s ease; }
    .tv-vo-cap.tv-vo-cap-off { opacity: 0; }
    .tv-vo-unlock { position: absolute; left: 50%; bottom: 0.35cqh; z-index: 37; transform: translateX(-50%); border-radius: 9999px; padding: 0.35cqh 2.4cqh; font-size: 2.3cqh; font-weight: 800; line-height: 1.25;
      color: #1e1b4b; background: #fde68a; white-space: nowrap; box-shadow: 0 0 0 0.35cqh rgba(253,230,138,0.3), 0 0.6cqh 2cqh rgba(0,0,0,0.45); cursor: pointer; }
    /* one click does both: while the sound prompt is up it carries the shell's full-screen hint too */
    .tv-stage:has(> .tv-vo-unlock) > .tv-hint { display: none; }
    @supports not selector(:has(a)) { .tv-vo-unlock.tv-vo-up { bottom: 5.2cqh; } }
    /* 12.9.4 (an iPad): after a sleep the prompt says "…the sound back on", bigger and pulsing; a TV an
       iPad opened without a tap shows the full-stage "Tap anywhere to start the TV" (TvStartPrompt) —
       the whole stage is its button; the keep-awake video is 2 px, transparent, outside the app */
    .tv-vo-unlock.tv-vo-again { bottom: 6cqh; padding: 1.3cqh 3.6cqh; font-size: 3.4cqh; animation: tvMfPulse 1.8s ease-in-out infinite; }
    .tv-mf-unlock.tv-mf-again { background: #fcd34d; }
    .tv-start { position: absolute; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; margin: 0; padding: 0; border: 0; font: inherit; color: #f8fafc; cursor: pointer;
      background: radial-gradient(ellipse at center, rgba(2,6,23,0.6) 0%, rgba(2,6,23,0.88) 72%); -webkit-tap-highlight-color: transparent; }
    .tv-start-card { display: flex; flex-direction: column; align-items: center; gap: 1.8cqh; max-width: 80cqw; padding: 5cqh 6cqw; border-radius: 4cqh; background: rgba(15,23,42,0.92);
      box-shadow: 0 0 0 0.5cqh rgba(253,230,138,0.6), 0 2cqh 8cqh rgba(0,0,0,0.6); animation: tvStartPulse 2.2s ease-in-out infinite; }
    .tv-start-icon { font-size: 12cqh; line-height: 1; }
    .tv-start-t { font-size: 6.6cqh; font-weight: 800; line-height: 1.1; color: #fde68a; text-align: center; }
    .tv-start-s { font-size: 3.8cqh; font-weight: 800; line-height: 1.2; color: #f1f5f9; }
    .tv-start-n { font-size: 2.4cqh; font-weight: 600; line-height: 1.3; color: #94a3b8; text-align: center; }
    @keyframes tvStartPulse { 0%, 100% { box-shadow: 0 0 0 0.5cqh rgba(253,230,138,0.6), 0 2cqh 8cqh rgba(0,0,0,0.6); } 50% { box-shadow: 0 0 0 1.6cqh rgba(253,230,138,0.16), 0 0 9cqh rgba(253,230,138,0.45); } }
    @media (prefers-reduced-motion: reduce) { .tv-start-card, .tv-vo-unlock.tv-vo-again { animation: none; } }
    .tv-awake { position: fixed; left: 0; bottom: 0; width: 2px; height: 2px; opacity: 0.01; pointer-events: none; z-index: 0; }
    .tv-vo-chip { cursor: pointer; }
    .tv-vo-chip.tv-vo-quiet { color: #94a3b8; }
    /* 12.7: the 😇/🤬 tone chip beside it (a Mafia / Squad Game Show screen shows its host's pick) */
    .tv-vo-tone { cursor: pointer; }
    .tv-vo-tone.tv-vo-tone-on { color: #fecaca; box-shadow: inset 0 0 0 1px rgba(248,113,113,0.65); }
    .tv-vo-tone.tv-vo-tone-host { cursor: default; color: #cbd5e1; }
    /* 🛠 the admin's announcer-AI panel (12.9.4): over the stage, outside the chrome so it stays up */
    .tv-ai-chip { cursor: pointer; } .tv-ai-chip.tv-ai-on { box-shadow: inset 0 0 0 1px rgba(250,204,21,0.8); color: #fde68a; }
    .tv-ai-panel { position: absolute; top: 7.5cqh; right: 0.9cqw; z-index: 45; width: min(62cqw, 1100px); max-height: 78cqh; display: flex; flex-direction: column; gap: 0.6cqh; padding: 1.2cqh 1cqw;
      border-radius: 1.2cqh; background: rgba(2,6,23,0.94); color: #e2e8f0; box-shadow: 0 1cqh 4cqh rgba(0,0,0,0.6), inset 0 0 0 1px rgba(148,163,184,0.35); font-size: max(11px, 1.45cqh); line-height: 1.35; user-select: text; }
    .tv-ai-head { display: flex; align-items: baseline; gap: 0.8cqw; }
    .tv-ai-title { font-weight: 900; color: #fde68a; white-space: nowrap; } .tv-ai-sum { flex: 1; color: #94a3b8; }
    .tv-ai-x { background: none; border: 0; color: #cbd5e1; font-weight: 900; cursor: pointer; font-size: 1.2em; }
    .tv-ai-gem { padding: 0.45cqh 0.6cqw; border-radius: 0.6cqh; background: rgba(30,41,59,0.6); color: #cbd5e1; font-weight: 700; } .tv-ai-gem-ok { color: #86efac; } .tv-ai-gem-bad { color: #fca5a5; box-shadow: inset 0 0 0 1px rgba(248,113,113,0.55); }
    .tv-ai-empty { color: #94a3b8; padding: 1cqh 0; }
    .tv-ai-rows { overflow-y: auto; display: flex; flex-direction: column; gap: 0.35cqh; }
    .tv-ai-row { display: grid; grid-template-columns: 5.2em 11em 5em 5.2em 13em 1fr 6em; gap: 0.5cqw; align-items: baseline; padding: 0.35cqh 0.4cqw; border-radius: 0.6cqh; background: rgba(30,41,59,0.6); }
    .tv-ai-row > span { overflow: hidden; text-overflow: ellipsis; } .tv-ai-t { color: #64748b; font-variant-numeric: tabular-nums; }
    .tv-ai-row.tv-ai-line .tv-ai-r, .tv-ai-row.tv-ai-pack .tv-ai-r { color: #86efac; } .tv-ai-row.tv-ai-null .tv-ai-r, .tv-ai-row.tv-ai-error .tv-ai-r, .tv-ai-row.tv-ai-timeout .tv-ai-r { color: #fca5a5; }
    .tv-ai-row.tv-ai-not-asked { opacity: 0.75; } .tv-ai-l { color: #e2e8f0; } .tv-ai-f { color: #94a3b8; text-align: right; }
    /* 12.9.23: 🎉 a Boggle party round (off the leaderboard; the 12.7 ✨ unique-words chip, renamed — a
       legacy ✨ round still shows its own text in it) — the phones' chip and the TV's. The phones' chip
       wraps only at its " · " breaks (each part a nowrap span), and its 12px radius is still a pill on
       one line but a rounded box on two, so a narrow phone never pushes it past the card */
    .bog-party-chip { display: inline-block; max-width: 100%; border-radius: 12px; padding: 2px 8px; font-size: 11px; font-weight: 700; line-height: 1.4; color: #92400e; background: #fef3c7; box-shadow: inset 0 0 0 1px #fcd34d; text-align: center; }
    .bog-party-chip > span { white-space: nowrap; }
    html.jbf-dark .bog-party-chip { color: #fcd34d; background: rgba(245,158,11,0.16); box-shadow: inset 0 0 0 1px rgba(252,211,77,0.45); }
    /* 🎉 the party round's reveal (12.10.6): rows slide in, a total pops when it's out */
    @keyframes bogRevIn { from { opacity: 0; transform: translateY(0.4rem); } to { opacity: 1; transform: none; } }
    @keyframes bogRevPop { 0% { opacity: 0; transform: scale(0.4); } 60% { opacity: 1; transform: scale(1.25); } 100% { opacity: 1; transform: none; } }
    .bog-rev-in { animation: bogRevIn 0.35s ease-out backwards; }
    .bog-rev-pop { display: inline-block; animation: bogRevPop 0.45s ease-out backwards; }
    @media (prefers-reduced-motion: reduce) { .bog-rev-in, .bog-rev-pop { animation: none; } }
    .tv-bg-party { flex: none; border-radius: 9999px; padding: 0.4cqh 1.1cqw; font-size: 2cqh; font-weight: 800; color: #fde68a; background: rgba(245,158,11,0.2); box-shadow: inset 0 0 0 0.15cqh rgba(253,230,138,0.5); white-space: nowrap; }
    .tv-bg-count-party { margin: -1.2cqh 0 2.2cqh; font-size: 2.2cqh; font-weight: 700; line-height: 1.35; color: #fde68a; }
    /* 🧩 a lazy chunk loading (12.10.7, JbfLazy): SquadKarts and Space Pinball load the first time they open */
    .jbf-lazy-bar { margin: 4px auto 0; width: 128px; height: 4px; border-radius: 4px; overflow: hidden; background: rgba(14,116,144,.16); }
    .jbf-lazy-bar > i { display: block; width: 40%; height: 100%; border-radius: 4px; background: #0891b2; animation: jbfSplashBar 1.2s cubic-bezier(.45,0,.55,1) infinite; }
    html.jbf-dark .jbf-lazy-bar { background: rgba(103,232,249,.14); }
    html.jbf-dark .jbf-lazy-bar > i { background: #67e8f9; }
    .tv-lazy { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3cqh; color: #e2e8f0; background: radial-gradient(120% 100% at 50% 0%, #1e293b 0%, #0b1220 70%); }
    .tv-lazy-t { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 6cqh; line-height: 1.1; text-align: center; }
    .tv-lazy-bar { width: 30cqw; height: 1cqh; border-radius: 1cqh; overflow: hidden; background: rgba(255,255,255,.12); }
    .tv-lazy-bar > i { display: block; width: 40%; height: 100%; border-radius: 1cqh; background: #67e8f9; animation: jbfSplashBar 1.2s cubic-bezier(.45,0,.55,1) infinite; }
    .tv-lazy-b { font-size: 3cqh; font-weight: 800; padding: 1.4cqh 3cqw; border-radius: 9999px; color: #0b1220; background: #67e8f9; }
    @media (prefers-reduced-motion: reduce) { .jbf-lazy-bar > i, .tv-lazy-bar > i { animation: none; width: 100%; opacity: .5; } }
    /* 📺 Squad TV: crossfading screens, a "Now showing" chip, the squad picker, the squad's own screen */
    .tv-sqtv, .tv-layer { position: absolute; inset: 0; }
    .tv-layer-in { animation: tvLayerIn 0.6s ease both; }
    .tv-layer-out { animation: tvLayerOut 0.6s ease both; pointer-events: none; }
    @keyframes tvLayerIn { from { opacity: 0; } to { opacity: 1; } }
    @keyframes tvLayerOut { from { opacity: 1; } to { opacity: 0; } }
    .tv-nowshowing { position: absolute; left: 50%; top: 2.4cqh; z-index: 45; transform: translateX(-50%); border-radius: 9999px; padding: 0.8cqh 1.8cqw; font-size: 2.4cqh; font-weight: 800;
      color: #0f172a; background: rgba(255,255,255,0.95); box-shadow: 0 1cqh 3cqh rgba(0,0,0,0.4); white-space: nowrap; pointer-events: none; animation: tvShowing 2.8s ease both; }
    @keyframes tvShowing { 0% { opacity: 0; transform: translate(-50%, -1.5cqh); } 12% { opacity: 1; transform: translate(-50%, 0); } 80% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 0); } }
    .tv-squads { position: absolute; top: 1.3cqh; left: 0.9cqw; z-index: 40; display: flex; gap: 0.5cqw; }
    .tv-squad-btn { cursor: pointer; }
    .tv-squad-btn.tv-squad-on { color: #082f49; background-image: linear-gradient(160deg, #a5f3fc, #22d3ee); box-shadow: none; }
    .tv-sq { position: absolute; inset: 0; background: radial-gradient(120% 100% at 50% 0%, #155e75 0%, #0b2536 55%, #050d16 100%); color: #f8fafc; }
    .tv-sq-safe { display: grid; grid-template-rows: auto auto auto minmax(0, 1fr); row-gap: 3cqh; align-content: start; }
    .tv-sq-top { display: flex; align-items: center; gap: 2.4cqw; min-width: 0; padding-top: 3cqh; }
    .tv-sq-emoji { flex: none; font-size: 15cqh; line-height: 1; filter: drop-shadow(0 1cqh 2cqh rgba(0,0,0,0.45)); }
    .tv-sq-name { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 10cqh; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-sq-tag { margin-top: 1cqh; font-size: 2.6cqh; font-weight: 800; color: #a5f3fc; white-space: nowrap; }
    .tv-sq-card { border-radius: 2.4cqh; padding: 2.2cqh 2cqw; background: rgba(6,13,26,0.62); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1); min-width: 0; }
    .tv-sq-h { font-size: 2cqh; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #94a3b8; }
    .tv-sq-people { margin-top: 1.6cqh; display: flex; flex-wrap: wrap; align-items: center; gap: 1.6cqh 2.2cqw; max-height: 15cqh; overflow: hidden; }
    .tv-sq-person { display: flex; align-items: center; gap: 0.8cqw; font-size: 2.8cqh; font-weight: 800; min-width: 0; }
    .tv-sq-av { flex: none; width: 6cqh; height: 6cqh; display: inline-flex; }
    .tv-sq-av > div { width: 100% !important; height: 100% !important; font-size: 2.4cqh !important; box-shadow: 0 0 0 0.3cqh rgba(255,255,255,0.8); }
    .tv-sq-pname { white-space: nowrap; }
    .tv-sq-more { font-size: 2.6cqh; font-weight: 800; color: #cbd5e1; }
    .tv-sq-none { margin-top: 1.4cqh; font-size: 2.6cqh; font-weight: 700; color: #cbd5e1; }
    .tv-sq-gamelist { margin-top: 1.4cqh; display: flex; flex-wrap: wrap; gap: 1cqh 1.2cqw; }
    .tv-sq-game { border-radius: 9999px; padding: 0.8cqh 1.6cqw; font-size: 3cqh; font-weight: 800; background: rgba(255,255,255,0.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22); white-space: nowrap; }
    /* 12.8.24: the family-only "plays like" hint (GAME_AKA) after a game's name, like the hub tiles */
    .tv-sq-aka { font-weight: 600; opacity: 0.72; }
    .tv-sq-call { align-self: end; justify-self: center; margin-bottom: 1cqh; border-radius: 9999px; padding: 1.4cqh 3cqw; font-size: 3.4cqh; font-weight: 800; color: #0f172a; background: rgba(255,255,255,0.95);
      box-shadow: 0 1cqh 3cqh rgba(0,0,0,0.35); white-space: nowrap; }
    @media (prefers-reduced-motion: reduce) {
      .tv-layer-in, .tv-layer-out, .tv-nowshowing { animation: none !important; }
    }
    /* Media grid thumbnails fade in once decoded (jbfThumbReady/jbfThumbRef flip data-loaded;
       errors reveal too, so a broken image never stays invisible). */
    .jbf-thumb-fade { opacity: 0; transition: opacity 0.25s ease-out; }
    .jbf-thumb-fade[data-loaded] { opacity: 1; }
    @media (prefers-reduced-motion: reduce) {
      .jbf-thumb-fade { transition: none; }
    }
    /* Media viewer: the grid thumbnail shown (slightly soft) under the full image while it loads. */
    .jbf-viewer-thumb { filter: blur(2px); }
    .font-beachy { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; }
    @keyframes bogShake {
      0%, 100% { transform: translate(0, 0) rotate(0deg); }
      12% { transform: translate(-7px, -4px) rotate(-7deg); }
      28% { transform: translate(8px, 3px) rotate(6deg); }
      44% { transform: translate(-6px, 5px) rotate(-5deg); }
      60% { transform: translate(7px, -4px) rotate(7deg); }
      76% { transform: translate(-5px, 3px) rotate(-4deg); }
      90% { transform: translate(4px, -2px) rotate(3deg); }
    }
    .bog-shake { animation: bogShake 0.5s ease-in-out infinite; transform-origin: center; }
    @keyframes bogDie {
      0%, 100% { transform: rotate(0deg) translateY(0); }
      50% { transform: rotate(10deg) translateY(-1px); }
    }
    .bog-die { animation: bogDie 0.32s ease-in-out infinite; }
    /* Accepted-word feedback (presentation only): the word's tiles pulse with a green face
       overlay (tile faces are fixed inline gradients, so one palette reads in both themes) and
       a "+N" pill floats up from the last tile. Transform/opacity only. */
    /* bogHitA/bogHitB are identical twins: the tile keeps a STABLE key (never remounted — a tap
       straddling a remount is lost) and alternates between them by hit-id parity, because a
       changed animation-name restarts the animation on the same node. */
    @keyframes bogHitA { 0% { transform: scale(1); } 35% { transform: scale(1.12); } 100% { transform: scale(1); } }
    @keyframes bogHitB { 0% { transform: scale(1); } 35% { transform: scale(1.12); } 100% { transform: scale(1); } }
    .bog-hit-a { animation: bogHitA 0.42s ease-out both; }
    .bog-hit-b { animation: bogHitB 0.42s ease-out both; }
    @keyframes bogHitGlow { 0% { opacity: 0; } 22% { opacity: 1; } 60% { opacity: 1; } 100% { opacity: 0; } }
    .bog-hit-glow { position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
      background: linear-gradient(150deg, #bbf7d0 0%, #4ade80 55%, #22c55e 100%); box-shadow: inset 0 0 0 2px rgba(21,128,61,0.55);
      animation: bogHitGlow 0.9s ease-out both; }
    @keyframes bogPlus { 0% { transform: translate(-50%, -40%) scale(0.6); opacity: 0; } 18% { transform: translate(-50%, -85%) scale(1.12); opacity: 1; }
      70% { opacity: 1; } 100% { transform: translate(-50%, -230%) scale(1); opacity: 0; } }
    .bog-plus { position: absolute; z-index: 5; pointer-events: none; white-space: nowrap; font-weight: 800; font-size: 18px; line-height: 1;
      padding: 4px 10px; border-radius: 9999px; color: #fff; background: linear-gradient(150deg, #22c55e, #15803d);
      box-shadow: 0 3px 8px rgba(0,0,0,0.3); animation: bogPlus 0.95s ease-out both; }
    @media (prefers-reduced-motion: reduce) {
      .bog-hit-a, .bog-hit-b, .bog-hit-glow, .bog-plus { animation: none !important; }
      .bog-hit-glow { opacity: 0.85; }
      .bog-plus { transform: translate(-50%, -110%); }
    }
    /* Boggle art mode (presentation only — loadBoggleArt): Blender letter cubes standing in the
       sockets of a wooden tray. The tile boxes are the SAME boxes as the CSS dice (they are what
       the pointer hit-tests, and they never move): the tray hangs 3.8% of the grid's width outside
       the grid (into the card's padding), each tile draws its socket behind itself
       (.bog-sock::before, z 0, a little larger than the tile) and its die above EVERY socket
       (.bog-art-die, z 1), so a socket's soft edge can spill toward a neighbour without ever
       covering a die. Every art layer ignores the pointer. The board keeps a 6px vertical margin
       (my-1.5) with or without the art, so the tray has room and the art switching on mid-round
       never moves a tile. The selected die presses into its socket under a cyan multiply tint
       (the engraved letter stays dark and readable); the accepted-word glow multiplies green
       over the die the same way. */
    .bog-art { isolation: isolate; }
    .bog-art-tray { position: absolute; inset: -3.8%; z-index: 0; pointer-events: none; border-radius: 3.5%;
      background: url(game-art/boggle/tray.webp) 0 0 / 100% 100% no-repeat;
      box-shadow: 0 5px 14px rgba(15, 10, 5, 0.3), 0 1px 2px rgba(15, 10, 5, 0.3); }
    .bog-sock::before { content: ''; position: absolute; inset: -12.5%; z-index: 0; pointer-events: none;
      background: url(game-art/boggle/socket.webp) 0 0 / 100% 100% no-repeat; }
    .bog-art-die { position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: 12%;
      background: url(game-art/boggle/dice.webp) 0 0 / 638.298% 531.915% no-repeat;
      transition: transform 0.08s ease; }
    .bog-art-die.bog-sel { transform: translateY(1.5px) scale(0.965); }
    .bog-art-tint { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; mix-blend-mode: multiply;
      background: linear-gradient(150deg, #8ff0fd 0%, #2fd8f0 48%, #0fb5d4 100%); }
    .bog-art-die .bog-hit-glow { mix-blend-mode: multiply; box-shadow: none; }
    .bog-art .bog-trace { z-index: 2; }
    @keyframes nzDealIn {
      from { opacity: 0; transform: translateY(-28px) scale(0.82) rotate(-7deg); }
      to { opacity: 1; transform: none; }
    }
    .nz-deal-in { animation: nzDealIn 0.42s ease both; }
    /* ---- 🃏 Nertz table ART (NZ_ART_GEOM, game-art/nertz/; presentation only — nothing here gates a play)
       The Nertz roots (the phone's normal view and immersive table, the TV screen) carry .nz-art plus
       the art URLs and 9-slice numbers as CSS custom properties (nzArtVars) once nzArtLoad has every
       file; without it every rule below is inert and Nertz shows its CSS look. Every art layer is
       pointer-events: none and either absolutely placed (taking no part in layout), a pseudo-element
       of a box the CSS look already has, or a background/border-image on such a box — so the art
       arriving mid-hand moves no tap target (the harness checks every box against the CSS look). The
       `.sp-felt` class is shared with Spades and 99: everything here is scoped under .nz-art. */
    .nz-art-felt, .nz-art-rail, .nz-art-field, .nz-art-mat { display: none; }
    .nz-art.sp-felt { background: #120c08; }   /* beyond the rail: the room */
    .nz-art .nz-rail-css { display: none; }
    /* the cloth: the baize tile under a soft overhead light pool and a vignette toward the rail */
    .nz-art .nz-art-felt { display: block; position: absolute; inset: var(--nzf-in); border-radius: var(--nzf-r); pointer-events: none;
      background: radial-gradient(ellipse 72% 46% at 50% 40%, rgba(255,243,206,0.11) 0%, rgba(255,243,206,0.04) 46%, rgba(255,243,206,0) 72%),
        radial-gradient(ellipse 90% 80% at 50% 46%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.2) 74%, rgba(0,0,0,0.46) 100%),
        var(--nz-felt) 50% 50% / var(--nzf-tile) var(--nzf-tile) repeat, #125d3d; }
    /* the rail: oxblood bumper, brass nailheads, walnut, a brass bead — a 9-slice frame */
    .nz-art .nz-art-rail { display: block; position: absolute; inset: var(--nzr-in); pointer-events: none; box-sizing: border-box;
      border-style: solid; border-color: transparent; border-width: var(--nzr-w);
      border-image-source: var(--nz-rail); border-image-slice: var(--nzr-s); border-image-width: var(--nzr-w); border-image-repeat: round; }
    /* the centre field: wine suede let into the felt, edged with a twisted gold cord (the frame's
       outset puts the cord's centreline on the box edge, the radius clips the suede to it) */
    .nz-art .nz-art-field, .nz-art .nz-cfield::before, .nz-art .tv-nz-table::before { border-style: solid; border-color: transparent; border-width: 0; border-radius: var(--nzc-r);
      background: radial-gradient(ellipse 70% 60% at 50% 44%, rgba(255,226,214,0.08) 0%, rgba(255,226,214,0) 70%), radial-gradient(ellipse 96% 96% at 50% 50%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.28) 100%),
        var(--nz-suede) 50% 50% / var(--nzs-tile) var(--nzs-tile) repeat, #5a132b;
      border-image-source: var(--nz-field); border-image-slice: var(--nzc-s); border-image-width: var(--nzc-w); border-image-outset: var(--nzc-o); border-image-repeat: round; }
    /* the immersive table's field: centred in the space between the seats, at most 500 × 300 (the
       centre row is at most 440 wide and 30vh tall) and at least tall enough for the label and one
       row of cards — on a short screen the row overflows the space, and the field goes with it */
    .nz-art .nz-art-field { display: block; position: absolute; left: 50%; top: 50%; width: min(calc(100% - 34px), 500px); height: clamp(100px, calc(100% - 14px), 300px);
      transform: translate(-50%, -50%); z-index: -1; pointer-events: none; }
    .nz-art .nz-center { isolation: isolate; }
    /* the normal view: the field round the centre row itself */
    .nz-art .nz-cfield { position: relative; isolation: isolate; }
    .nz-art .nz-cfield::before { content: ''; position: absolute; inset: -7px; z-index: -1; pointer-events: none; }
    /* a pile's printed place: the gold-foil card outline on the empty "start a pile" slot (a legal
       drop keeps the CSS look's emerald — the clearest signal) */
    .nz-art .nz-slot.nz-slot:not(.nz-slot-legal) { border-color: transparent !important; background: rgba(20,4,10,0.22); color: rgba(240,212,150,0.9) !important;
      border-image-source: var(--nz-slot); border-image-slice: var(--nzk-s); border-image-width: var(--nzk-w); border-image-outset: var(--nzk-o); border-image-repeat: round; }
    /* your play mat: dark leather piped in your team's colour (a partnership's: double stitched,
       brass corner caps), under the work piles and the Nertz pile / stock / waste */
    .nz-art .nz-panel { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
    .nz-art .nz-art-mat { display: block; position: absolute; inset: 0; z-index: -1; pointer-events: none; box-sizing: border-box;
      border-style: solid; border-color: transparent; border-width: 0;
      border-image-source: var(--nz-mat); border-image-slice: var(--nzm-s) fill; border-image-width: var(--nzm-w); border-image-outset: var(--nzm-o); border-image-repeat: round; }
    .nz-art .nz-panel .nz-pocket { background: rgba(0,0,0,0.24); box-shadow: inset 0 1px 4px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,236,200,0.05), 0 1px 0 rgba(255,236,200,0.06); }
    .nz-art .nz-panel .nz-nsw { background: rgba(8,4,2,0.3); box-shadow: inset 0 1px 4px rgba(0,0,0,0.55), 0 1px 0 rgba(255,236,200,0.06); }
    /* the stock: your team's card back, a counter chip on it, a few card edges under it */
    .nz-art .nz-stock { border-color: transparent !important; background: var(--nz-backs) var(--nz-back-x) 0 / 300% 100% no-repeat;
      box-shadow: 1px 1px 0 #ede4cf, 2px 2px 0 #d6c9ab, 2px 2px 0 1px rgba(0,0,0,0.25), 1px 4px 6px rgba(0,0,0,0.4); }
    .nz-art .nz-stock.nz-stock-recycle { background: rgba(0,0,0,0.2); box-shadow: none;
      border-image-source: var(--nz-slot); border-image-slice: var(--nzk-s); border-image-width: var(--nzk-w); border-image-outset: var(--nzk-o); border-image-repeat: round; }
    .nz-stock-n { display: none; }
    .nz-art .nz-stock-n { display: inline-block; min-width: 22px; padding: 0 5px; border-radius: 9999px; font-size: 11px; line-height: 17px; text-align: center; color: #fff;
      background: rgba(18,10,6,0.82); box-shadow: 0 0 0 1.5px rgba(245,238,223,0.9), 0 1px 3px rgba(0,0,0,0.5); }
    .nz-art .nz-stock-t { display: none; }
    /* your Nertz pile: the top card on a few face-down edges of your team's colour */
    .nz-art .nz-nertz-top { box-shadow: 1.5px 1.5px 0 #f1e8d4, 3px 3px 0 var(--nz-team), 3px 3px 0 1px rgba(0,0,0,0.28), 4.5px 4.5px 0 #f1e8d4, 6px 6px 0 var(--nz-team), 6px 6px 0 1px rgba(0,0,0,0.28), 2px 6px 9px rgba(0,0,0,0.4); }
    /* 📺 the TV (NertzTv): the suede behind everything (both themes — the TV is its own surface), the
       felt, the rail and the field on the table box, the slots printed in gold, each team's panel on
       its mat, each team's backs on its Nertz-pile stack */
    :root .tv-nz.nz-art { background: radial-gradient(130% 100% at 36% 36%, rgba(20,0,8,0.18) 0%, rgba(20,0,8,0.5) 58%, rgba(10,0,4,0.78) 100%),
        var(--nz-suede) 50% 50% / var(--nzs-tile) var(--nzs-tile) repeat, #3d0b20; }
    .nz-art .tv-nz-table { background: radial-gradient(ellipse 72% 60% at 50% 46%, rgba(255,243,206,0.1) 0%, rgba(255,243,206,0.03) 48%, rgba(255,243,206,0) 74%),
        radial-gradient(ellipse 86% 86% at 50% 50%, rgba(0,0,0,0) 42%, rgba(0,0,0,0.2) 76%, rgba(0,0,0,0.44) 100%),
        var(--nz-felt) 50% 50% / var(--nzf-tile) var(--nzf-tile) repeat, #125d3d;
      border-radius: var(--nzr-ro); box-shadow: 0 1.2cqh 3cqh rgba(0,0,0,0.45); }
    .nz-art .tv-nz-table::before { content: ''; position: absolute; left: 3cqh; right: 3cqh; top: 8.4cqh; bottom: 2.6cqh; pointer-events: none; }
    .nz-art .tv-nz-table::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-sizing: border-box;
      border-style: solid; border-color: transparent; border-width: var(--nzr-w);
      border-image-source: var(--nz-rail); border-image-slice: var(--nzr-s); border-image-width: var(--nzr-w); border-image-repeat: round; }
    .nz-art .tv-nz-empty { border-color: transparent; background: rgba(20,4,10,0.22); color: rgba(240,212,150,0.6);
      border-image-source: var(--nz-slot); border-image-slice: var(--nzk-s); border-image-width: calc(var(--cw) * var(--nzk-tw)); border-image-outset: calc(var(--cw) * var(--nzk-to)); border-image-repeat: round; }
    .nz-art .tv-nz-team { position: relative; isolation: isolate; background: none; }
    .nz-art .tv-nz-team::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; box-sizing: border-box;
      border-style: solid; border-color: transparent; border-width: 0;
      border-image-slice: var(--nzm-s) fill; border-image-width: var(--nzm-w); border-image-outset: var(--nzm-o); border-image-repeat: round; }
    .nz-art .tv-nz-team.tv-nz-t0::before { border-image-source: var(--nz-mat0); }
    .nz-art .tv-nz-team.tv-nz-t1::before { border-image-source: var(--nz-mat1); }
    .nz-art .tv-nz-team.tv-nz-t2::before { border-image-source: var(--nz-mat2); }
    .nz-art .tv-nz-team .tv-nz-back { background: var(--nz-backs) 0% 0% / 300% 100% no-repeat; box-shadow: 0 0.15cqh 0.35cqh rgba(0,0,0,0.5); }
    .nz-art .tv-nz-team.tv-nz-t1 .tv-nz-back { background-position: 50% 0%; }
    .nz-art .tv-nz-team.tv-nz-t2 .tv-nz-back { background-position: 100% 0%; }
    @keyframes nnFly {
      0% { transform: translate(0, -6px) rotate(0deg) scale(0.7); opacity: 0; }
      30% { opacity: 1; }
      100% { transform: translate(var(--nnx, 0), var(--nny, 0)) rotate(var(--nnr, 0deg)) scale(1); opacity: 1; }
    }
    .nn-fly { animation: nnFly 1s ease-out infinite; }
    @keyframes nnProg { from { width: 0%; } to { width: 100%; } }
    @keyframes nnChipDrop {
      0% { transform: translateY(-10px) scale(1.25); opacity: 0.4; }
      60% { transform: translateY(0) scale(0.92); }
      100% { transform: translateY(0) scale(1); opacity: 1; }
    }
    .nn-chip-drop { animation: nnChipDrop 0.28s ease-out both; }
    @keyframes flShake {
      0%, 100% { transform: rotate(0deg) translateY(0); }
      14% { transform: rotate(-12deg) translateY(-3px); }
      30% { transform: rotate(10deg) translateY(-5px); }
      46% { transform: rotate(-9deg) translateY(-3px); }
      62% { transform: rotate(11deg) translateY(-5px); }
      80% { transform: rotate(-6deg) translateY(-2px); }
    }
    .fl-shake { animation: flShake 0.4s ease-in-out infinite; transform-origin: 50% 88%; }
    /* ---- Fluff table art (FlTray / FlDieIcon / FlMiniCup; presentation only) ----
       .fl-table = the plank table top (wood tile set inline: its URL is versioned) with a vignette
       on ::before, painted under the content by the isolated stacking context. Darker in dark mode. */
    .fl-table { position: relative; isolation: isolate; overflow: hidden; background-color: #8a5d36; background-repeat: repeat; background-size: 512px 512px;
      box-shadow: inset 0 0 0 1px rgba(60,35,15,0.55), 0 2px 10px rgba(40,20,5,0.22); }
    .fl-table::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
      background: radial-gradient(130% 95% at 50% 38%, rgba(255,240,215,0.10) 0%, rgba(0,0,0,0) 52%, rgba(25,12,4,0.42) 100%); }
    html.jbf-dark .fl-table { box-shadow: inset 0 0 0 1px rgba(0,0,0,0.6), 0 2px 12px rgba(0,0,0,0.5); }
    html.jbf-dark .fl-table::before { background: linear-gradient(rgba(12,9,6,0.34), rgba(12,9,6,0.34)), radial-gradient(130% 95% at 50% 38%, rgba(255,240,215,0.04) 0%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.52) 100%); }
    /* plaques: the readable cards that sit on the wood (light card / dark card — the slate text
       classes inside already remap with the theme) */
    .fl-plaque { background: rgba(255,250,240,0.93); border-radius: 0.75rem; box-shadow: 0 1px 2px rgba(40,20,5,0.35), 0 3px 10px rgba(40,20,5,0.18); }
    html.jbf-dark .fl-plaque { background: rgba(28,31,36,0.88); box-shadow: 0 1px 2px rgba(0,0,0,0.55), 0 3px 10px rgba(0,0,0,0.35); }
    .fl-tray-shadow { position: absolute; border-radius: 50%; pointer-events: none;
      background: radial-gradient(closest-side, rgba(20,10,2,0.55), rgba(20,10,2,0.28) 62%, rgba(20,10,2,0)); }
    /* the cup: fl-cup-off = lifted away and faded (your tray while bidding; every tray on the
       reveal). Mounting with fl-cup-reveal plays the lift once — staggered per player on the reveal
       by an inline animation-delay; Hide/Show later just transitions between closed and off. The
       rest state carries the transform and the keyframes start from the closed cup ("backwards"),
       so a finished — or reduced-motion — animation lands exactly on its rest state. */
    .fl-cup { position: absolute; will-change: transform, opacity; transition: transform 0.5s cubic-bezier(0.3,0.8,0.35,1), opacity 0.22s ease-out; }
    .fl-cup-off { transform: translate(6%, -58%) rotate(-9deg); opacity: 0; }
    .fl-cup-reveal { animation: flCupOff 0.75s cubic-bezier(0.35,0.6,0.3,1) backwards; }
    @keyframes flCupOff { 0% { transform: none; opacity: 1; } 35% { transform: translate(2%, -16%) rotate(-3deg); opacity: 1; } 100% { transform: translate(6%, -58%) rotate(-9deg); opacity: 0; } }
    /* reveal: dice that count toward the called bid glow, the rest dim (after their cup is off) */
    .fl-glow { position: absolute; border-radius: 50%; pointer-events: none; animation: flFadeIn 0.35s ease-out backwards;
      background: radial-gradient(closest-side, rgba(255,221,87,1), rgba(255,200,40,0.6) 50%, rgba(255,200,40,0)); }
    .fl-dim { filter: brightness(0.5) saturate(0.55); animation: flDim 0.35s ease-out backwards; }
    @keyframes flFadeIn { from { opacity: 0; } }
    @keyframes flDim { from { filter: none; } }
    /* ⚁ the 2s-wild rule (g.wild2): a small ★ chip on every 2 in a tray (the 1s carry their ★ engraved), and
       the CSS fallback die's little ★ beside its 2 */
    .fl-w2 { position: absolute; display: flex; align-items: center; justify-content: center; border-radius: 9999px; pointer-events: none;
      color: #ffffff; background: #10b981; font-weight: 800; line-height: 1; box-shadow: 0 0 0 1px rgba(6,78,59,0.55), 0 1px 2px rgba(0,0,0,0.45); }
    .fl-w2-mark { font-size: 0.55em; line-height: 1; margin-left: 0.04em; align-self: flex-start; margin-top: 0.2em; }
    @media (prefers-reduced-motion: reduce) {
      .fl-shake, .fl-cup-reveal, .fl-glow, .fl-dim { animation: none !important; }
      .fl-cup { transition: none !important; }
    }
    /* ---- 👀 Fluff's Peek rule (presentation only): the Peek button and its picker, this round's peek
       lines, the peeked tray's badge — a violet "secret" accent, explicit light + dark values (the
       slate text classes inside remap with the theme). The block is select-none + jbf-nopress, so it
       gives its own press feedback. ---- */
    .fl-peek-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.4rem; min-width: 0; border-radius: 0.75rem; padding: 0.65rem 0.9rem;
      color: #6d28d9; background: #f5f3ff; box-shadow: inset 0 0 0 2px #c4b5fd; transition: transform 0.12s ease-out; }
    html.jbf-dark .fl-peek-btn { color: #c4b5fd; background: #1f1630; box-shadow: inset 0 0 0 2px #4c3a7a; }
    .fl-peek-card { border-radius: 0.75rem; background: #faf5ff; box-shadow: inset 0 0 0 1px #ddd6fe, 0 1px 2px rgba(76,29,149,0.08); }
    html.jbf-dark .fl-peek-card { background: #1d1530; box-shadow: inset 0 0 0 1px #3f3260; }
    .fl-peek-chip { display: inline-flex; align-items: center; gap: 0.35rem; border-radius: 9999px; padding: 0.2rem 0.7rem 0.2rem 0.25rem; color: #334155; background: #ffffff;
      box-shadow: inset 0 0 0 2px #e2e8f0; transition: transform 0.12s ease-out; }
    .fl-peek-chip.fl-peek-chip-on { color: #5b21b6; background: #ede9fe; box-shadow: inset 0 0 0 2px #8b5cf6; }
    html.jbf-dark .fl-peek-chip { color: #d6dde4; background: #25292e; box-shadow: inset 0 0 0 2px #3a4048; }
    html.jbf-dark .fl-peek-chip.fl-peek-chip-on { color: #ede9fe; background: #33245a; box-shadow: inset 0 0 0 2px #8b5cf6; }
    .fl-peek-go { border-radius: 0.75rem; padding: 0.6rem 0.9rem; font-weight: 700; color: #ffffff; background: #7c3aed; box-shadow: 0 1px 3px rgba(76,29,149,0.35); transition: transform 0.12s ease-out; }
    .fl-peek-go:disabled { opacity: 0.45; box-shadow: none; }
    .fl-peek-cancel { border-radius: 0.75rem; padding: 0.6rem 1rem; font-weight: 600; color: #64748b; box-shadow: inset 0 0 0 1px #e2e8f0; transition: transform 0.12s ease-out; }
    html.jbf-dark .fl-peek-cancel { color: #9aa4ae; box-shadow: inset 0 0 0 1px #3a4048; }
    .fl-peek-btn:active, .fl-peek-chip:active, .fl-peek-go:active:not(:disabled), .fl-peek-cancel:active { transform: scale(0.97); }
    .fl-peek-note { border-radius: 0.6rem; color: #5b21b6; background: #f5f3ff; box-shadow: inset 0 0 0 1px #ddd6fe; }
    html.jbf-dark .fl-peek-note { color: #ddd6fe; background: #1f1630; box-shadow: inset 0 0 0 1px #3f3260; }
    .fl-peek-note.fl-peek-note-you { color: #9a3412; background: #fff7ed; box-shadow: inset 0 0 0 1px #fdba74; }
    html.jbf-dark .fl-peek-note.fl-peek-note-you { color: #fed7aa; background: #2a1e12; box-shadow: inset 0 0 0 1px #6b3d17; }
    .fl-peek-badge { color: #6d28d9; }
    html.jbf-dark .fl-peek-badge { color: #c4b5fd; }
    @media (prefers-reduced-motion: reduce) { .fl-peek-btn, .fl-peek-chip, .fl-peek-go, .fl-peek-cancel { transition: none; } }
    /* ---- 💥 Fluff's Super Fluff rule (presentation only): the Super Fluff button (a hotter red → magenta
       than the plain call, the same in both themes), the reveal card's border and its result line ---- */
    .fl-super-btn { border-radius: 0.75rem; font-weight: 700; color: #ffffff; background: linear-gradient(135deg, #f97316 0%, #dc2626 52%, #be185d 100%);
      box-shadow: 0 1px 3px rgba(127,29,29,0.35), inset 0 0 0 1px rgba(255,255,255,0.18); }
    .fl-super-btn:hover { filter: brightness(1.05); }
    .fl-super-card { border-color: #fdba74 !important; }
    html.jbf-dark .fl-super-card { border-color: #7c2d12 !important; }
    .fl-super-ink { color: #c2410c; }
    html.jbf-dark .fl-super-ink { color: #fdba74; }
    /* ---- 📺 Fluff on the TV (FluffTv inside the shared TvShell) ----
       the plank table full-bleed (the art tile set inline: its URL is versioned; a CSS wood when
       the art is not in), cream plaques on the wood (dark ones in dark mode), the seats round a
       middle band: the standing bid, whose turn, this round's bids */
    .tv-fl { position: absolute; inset: 0; isolation: isolate; color: #1f2937;
      background: radial-gradient(130% 110% at 50% 40%, #93643b 0%, #74492a 58%, #3f2614 100%); }
    .tv-fl::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
      background: repeating-linear-gradient(180deg, rgba(0,0,0,0) 0 11.6cqh, rgba(35,18,6,0.3) 11.6cqh 11.9cqh), radial-gradient(130% 95% at 50% 40%, rgba(255,240,215,0.08) 0%, rgba(0,0,0,0) 52%, rgba(25,12,4,0.45) 100%); }
    .tv-fl.tv-fl-art { background-color: #8a5d36; background-repeat: repeat; background-size: 27cqw 27cqw; background-position: center; }
    .tv-fl.tv-fl-art::before { background: radial-gradient(130% 95% at 50% 40%, rgba(255,240,215,0.1) 0%, rgba(0,0,0,0) 52%, rgba(25,12,4,0.5) 100%); }
    html.jbf-dark .tv-fl.tv-fl-art::before { background: linear-gradient(rgba(12,9,6,0.3), rgba(12,9,6,0.3)), radial-gradient(130% 95% at 50% 40%, rgba(255,240,215,0.04) 0%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.55) 100%); }
    .tv-fl .tv-safe { display: grid; grid-template-rows: 9cqh minmax(0, 1fr); row-gap: 1.8cqh; }
    .tv-fl .tv-head { color: #f8fafc; }
    .tv-fl-table { display: grid; grid-template-rows: minmax(0, 1fr) 25cqh minmax(0, 1fr); row-gap: 1.4cqh; min-height: 0; }
    .tv-fl-row { display: flex; justify-content: space-evenly; min-width: 0; min-height: 0; }
    .tv-fl-row-far { align-items: flex-end; } .tv-fl-row-near { align-items: flex-start; }
    .tv-fl-seat { position: relative; flex: 0 1 auto; display: flex; flex-direction: column; align-items: center; min-width: 0; max-width: 22cqw; }
    .tv-fl-slot { position: relative; flex: none; }
    .tv-fl-trayart, .tv-fl-csstray { position: absolute; left: 0; }
    .tv-fl-shaker { position: relative; }
    .tv-fl-shaker.fl-shake, .tv-fl-cssdomebox.fl-shake { transform-origin: 50% 82%; }
    .tv-fl-spot { position: absolute; left: -20%; right: -20%; border-radius: 50%; pointer-events: none;
      background: radial-gradient(closest-side, rgba(52,211,153,0.75), rgba(52,211,153,0.32) 58%, rgba(52,211,153,0)); }
    .tv-fl-seat-won .tv-fl-spot { background: radial-gradient(closest-side, rgba(251,191,36,0.66), rgba(251,191,36,0.26) 55%, rgba(251,191,36,0)); }
    .tv-fl-seat-out .tv-fl-slot { opacity: 0.42; filter: grayscale(0.7); }
    .tv-fl-tag { position: relative; z-index: 3; margin-top: -0.6cqh; display: flex; align-items: center; gap: 0.6cqw; max-width: 100%; min-width: 0; border-radius: 9999px;
      padding: 0.5cqh 1.1cqw 0.5cqh 0.5cqh; background: rgba(255,250,240,0.95); color: #1f2937; font-size: 2.3cqh; font-weight: 800; white-space: nowrap;
      box-shadow: 0 0.3cqh 0.6cqh rgba(40,20,5,0.35), 0 0.8cqh 2cqh rgba(40,20,5,0.25); }
    html.jbf-dark .tv-fl-tag { background: rgba(24,27,32,0.92); color: #f1f5f9; box-shadow: 0 0.3cqh 0.6cqh rgba(0,0,0,0.5), 0 0.8cqh 2cqh rgba(0,0,0,0.35); }
    .tv-fl .tv-fl-seat-turn .tv-fl-tag { box-shadow: 0 0 0 0.45cqh #34d399, 0 0 3cqh rgba(52,211,153,0.7); }
    .tv-fl .tv-fl-seat-won .tv-fl-tag { box-shadow: 0 0 0 0.45cqh #fbbf24, 0 0 3cqh rgba(251,191,36,0.7); }
    .tv-fl-tname { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
    .tv-fl-pips { flex: none; display: inline-flex; align-items: center; gap: 0.25cqw; }
    .tv-fl-pip { width: 1.4cqh; height: 1.4cqh; border-radius: 0.3cqh; box-shadow: inset 0 -0.2cqh 0 rgba(0,0,0,0.25); }
    .tv-fl-pipn { font-size: 2cqh; font-weight: 800; color: #64748b; }
    /* 12.7 (Colby: "en-Large the number of dice remaining"): each seat's dice count, big enough to
       read from the couch — a disc in the seat's colour on the tray's corner */
    .tv-fl-left { position: absolute; z-index: 4; top: 0.4cqh; right: -4.6cqw; min-width: 9cqh; height: 9cqh; padding: 0 0.7cqh; border-radius: 9999px; display: flex; flex-direction: column;
      align-items: center; justify-content: center; color: #fff; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 6.2cqh; line-height: 0.82;
      font-variant-numeric: tabular-nums; text-shadow: 0 0.2cqh 0.5cqh rgba(0,0,0,0.45); box-shadow: 0 0 0 0.5cqh rgba(255,250,240,0.95), 0 0.7cqh 1.8cqh rgba(0,0,0,0.5); pointer-events: none; }
    .tv-fl-left small { font-family: system-ui, sans-serif; font-size: 1.4cqh; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1; margin-top: 0.35cqh; opacity: 0.95; text-shadow: none; }
    .tv-fl-seat-out .tv-fl-left { display: none; }
    .tv-fl-badge { flex: none; border-radius: 9999px; padding: 0.2cqh 0.7cqw; font-size: 1.6cqh; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; background: #e2e8f0; color: #334155; }
    .tv-fl-badge-turn { background: #10b981; color: #fff; }
    .tv-fl-badge-out { background: #fecaca; color: #991b1b; }
    .tv-fl-badge-lost { background: #ef4444; color: #fff; }
    .tv-fl-badge-win { background: linear-gradient(150deg, #fde68a, #f59e0b); color: #422006; }
    /* 👀 the Peek rule: a badge at the seat of anyone whose peek is public (its round over), and on the
       result panel the round's peeks named once its call has made them public */
    .tv-fl-badge-peek { background: #ede9fe; color: #5b21b6; letter-spacing: 0; }
    html.jbf-dark .tv-fl-badge-peek { background: rgba(139,92,246,0.32); color: #ede9fe; }
    .tv-fl-peekline { margin-top: 0.8cqh; max-width: 100%; border-radius: 1.4cqh; padding: 0.45cqh 1cqw; font-size: 2cqh; font-weight: 800; line-height: 1.2; text-align: center;
      color: #5b21b6; background: #ede9fe; box-shadow: inset 0 0 0 1px #c4b5fd; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
    html.jbf-dark .tv-fl-peekline { color: #ede9fe; background: rgba(139,92,246,0.26); box-shadow: inset 0 0 0 1px rgba(167,139,250,0.55); }
    /* 💥 the Super Fluff rule: the callout at a super call seen live (a hot red card over the middle while the
       cups come off — its duration set inline to end just before the verdict), the reveal's orange header,
       its result line (it wraps to two lines), and the +1 badge on a right caller's seat */
    .tv-fl-super { position: absolute; left: 50%; top: calc(50% + 5.4cqh); z-index: 8; width: max-content; max-width: 80%; display: flex; flex-direction: column; align-items: center; gap: 0.8cqh;
      padding: 1.6cqh 2.6cqw 1.8cqh; border-radius: 2.6cqh; color: #fff7ed; background: linear-gradient(135deg, #7c2d12 0%, #991b1b 55%, #831843 100%); pointer-events: none;
      box-shadow: 0 1.4cqh 4cqh rgba(0,0,0,0.5), inset 0 0 0 0.3cqh rgba(253,186,116,0.9), 0 0 6cqh rgba(249,115,22,0.5);
      transform: translate(-50%, -50%); animation: tvFlSuper 3s ease-out both; }
    @keyframes tvFlSuper { 0% { opacity: 0; transform: translate(-50%, -50%) scale(0.6) rotate(-3deg); } 12% { opacity: 1; transform: translate(-50%, -50%) scale(1.08) rotate(1deg); }
      20% { transform: translate(-50%, -50%) scale(1) rotate(0deg); } 85% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1) rotate(0deg); } }
    .tv-fl-super-title { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 7.2cqh; line-height: 1; letter-spacing: 0.02em; color: #ffedd5; text-shadow: 0 0.4cqh 0 rgba(0,0,0,0.35); white-space: nowrap; }
    .tv-fl-super-line { display: flex; align-items: center; gap: 1cqw; min-width: 0; max-width: 100%; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 3.6cqh; line-height: 1.05; white-space: nowrap; }
    .tv-fl-super-line .tv-av { width: 5.6cqh; height: 5.6cqh; } .tv-fl-super-line .tv-av > div { font-size: 2.4cqh !important; }
    .tv-fl-super-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: #ffffff; }
    .tv-fl-super-at { flex: none; color: #fed7aa; }
    .tv-fl-super-sub { max-width: 100%; font-size: 2.3cqh; font-weight: 800; color: #fed7aa; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-fl-h.tv-fl-h-super { color: #c2410c; } html.jbf-dark .tv-fl-h.tv-fl-h-super { color: #fb923c; }
    .tv-fl-verdict.tv-fl-verdict-super { white-space: normal; text-align: center; font-size: 2.1cqh; line-height: 1.22; border-radius: 1.6cqh; padding: 0.55cqh 1.2cqw;
      display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
    .tv-fl-badge-gain { background: #10b981; color: #ffffff; }
    /* the middle band */
    .tv-fl-mid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr); column-gap: 1.6cqw; min-height: 0; }
    .tv-fl-plaque { position: relative; min-width: 0; min-height: 0; overflow: hidden; border-radius: 2.4cqh; padding: 1.4cqh 1.4cqw; display: flex; flex-direction: column; align-items: center; justify-content: center;
      text-align: center; background: rgba(255,250,240,0.94); color: #1f2937; box-shadow: 0 0.3cqh 0.6cqh rgba(40,20,5,0.35), 0 1cqh 3cqh rgba(40,20,5,0.3); }
    html.jbf-dark .tv-fl-plaque { background: rgba(24,27,32,0.9); color: #f1f5f9; box-shadow: 0 0.3cqh 0.6cqh rgba(0,0,0,0.55), 0 1cqh 3cqh rgba(0,0,0,0.4); }
    .tv-fl-h { font-size: 1.9cqh; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #059669; white-space: nowrap; }
    html.jbf-dark .tv-fl-h { color: #34d399; }
    .tv-fl-h.tv-fl-h-red { color: #dc2626; } html.jbf-dark .tv-fl-h.tv-fl-h-red { color: #f87171; }
    .tv-fl-sub { margin-top: 0.6cqh; max-width: 100%; font-size: 2.1cqh; font-weight: 700; color: #475569; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-fl-sub.tv-fl-wrap { white-space: normal; line-height: 1.3; }
    html.jbf-dark .tv-fl-sub { color: #cbd5e1; }
    /* 🏆 a call that decided the game: the winner on the reveal itself (12.10.6) */
    .tv-fl-champ { margin-top: 0.9cqh; max-width: 100%; font-size: 2.6cqh; font-weight: 900; color: #b45309; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    html.jbf-dark .tv-fl-champ { color: #fcd34d; }
    .tv-fl-who { display: flex; align-items: center; justify-content: center; gap: 0.9cqw; margin-top: 0.9cqh; max-width: 100%; min-width: 0; }
    .tv-fl-avl, .tv-fl-avxl { flex: none; display: inline-flex; }
    .tv-fl-avl { width: 7.4cqh; height: 7.4cqh; } .tv-fl-avxl { width: 15cqh; height: 15cqh; }
    .tv-fl-avl > div, .tv-fl-avxl > div { width: 100% !important; height: 100% !important; box-shadow: 0 0 0 0.35cqh rgba(255,255,255,0.92), 0 0.6cqh 1.4cqh rgba(0,0,0,0.3); }
    .tv-fl-avl > div { font-size: 3cqh !important; } .tv-fl-avxl > div { font-size: 6cqh !important; }
    .tv-fl-wname { min-width: 0; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 5.4cqh; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-fl-bid { padding-top: 1cqh; padding-bottom: 1cqh; }
    .tv-fl-bidline { display: flex; align-items: center; justify-content: center; gap: 0.9cqw; margin-top: 0.2cqh; }
    .tv-fl-qty { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 11cqh; line-height: 0.92; color: #0f172a; }
    html.jbf-dark .tv-fl-qty { color: #fff; }
    .tv-fl-x { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 7cqh; line-height: 1; color: #64748b; }
    .tv-fl-bidline-sm .tv-fl-qty { font-size: 9.5cqh; } .tv-fl-bidline-sm .tv-fl-x { font-size: 5.4cqh; }
    .tv-fl-nobid { margin-top: 0.6cqh; max-width: 100%; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 7cqh; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-fl-wild { margin-top: 0.9cqh; display: inline-flex; align-items: center; gap: 0.5cqw; border-radius: 9999px; padding: 0.3cqh 1cqw; font-size: 2cqh; font-weight: 800; white-space: nowrap;
      color: #065f46; background: rgba(16,185,129,0.14); box-shadow: inset 0 0 0 1px rgba(16,185,129,0.38); }
    html.jbf-dark .tv-fl-wild { color: #6ee7b7; background: rgba(16,185,129,0.18); }
    .tv-fl-big { margin-top: 0.4cqh; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 6cqh; line-height: 1.05; white-space: nowrap; }
    .tv-fl-title { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 8.6cqh; line-height: 0.95; color: #047857; }
    html.jbf-dark .tv-fl-title { color: #34d399; }
    .tv-fl-plaque .tv-fl-title + .tv-fl-sub { white-space: normal; line-height: 1.3; }
    .tv-fl-rules { align-items: flex-start; text-align: left; gap: 0.7cqh; font-size: 2.3cqh; font-weight: 700; }
    .tv-fl-rules > div { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-fl-none { margin-top: 1cqh; font-size: 2.2cqh; font-weight: 700; color: #64748b; }
    html.jbf-dark .tv-fl-none { color: #94a3b8; }
    /* this round's bids: oldest at the top, the standing one lit */
    .tv-fl-hist { justify-content: flex-start; align-items: stretch; text-align: left; }
    .tv-fl-hist-list { margin-top: 0.7cqh; display: flex; flex-direction: column; gap: 0.45cqh; min-height: 0; }
    .tv-fl-hist-row { display: flex; align-items: center; gap: 0.6cqw; height: 5.4cqh; border-radius: 1.4cqh; padding: 0 0.8cqw 0 0.5cqw; font-size: 2.4cqh; font-weight: 800; min-width: 0; }
    .tv-fl-hist-row .tv-av { width: 3.8cqh; height: 3.8cqh; }
    .tv-fl-hist-row.tv-fl-hist-now { background: rgba(16,185,129,0.16); box-shadow: inset 0 0 0 1px rgba(16,185,129,0.45); }
    .tv-fl-hist-name { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-fl-hist-bid { flex: none; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 3.4cqh; line-height: 1; }
    .tv-fl-hist-more { margin-left: 0.6cqw; font-size: 1.7cqh; letter-spacing: 0.04em; color: #64748b; }
    html.jbf-dark .tv-fl-hist-more { color: #94a3b8; }
    /* the reveal: the bid against what was on the table, the verdict, who lost */
    .tv-fl-vs { display: grid; grid-template-columns: auto auto; column-gap: 4cqw; row-gap: 0.2cqh; align-items: center; justify-items: center; }
    .tv-fl-count { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 11.5cqh; line-height: 0.92; }
    .tv-fl-count.tv-fl-good { color: #059669; } .tv-fl-count.tv-fl-bad { color: #dc2626; }
    html.jbf-dark .tv-fl-count.tv-fl-good { color: #34d399; } html.jbf-dark .tv-fl-count.tv-fl-bad { color: #f87171; }
    .tv-fl-verdict { margin-top: 0.9cqh; max-width: 100%; border-radius: 9999px; padding: 0.5cqh 1.4cqw; font-size: 2.4cqh; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-fl-verdict-good { background: #059669; } .tv-fl-verdict-bad { background: #dc2626; }
    .tv-fl-v-in { animation: tvFlVIn 0.5s cubic-bezier(0.3, 0.8, 0.3, 1.2) backwards; }
    @keyframes tvFlVIn { from { opacity: 0; transform: scale(0.6); } }
    .tv-fl-vbox { display: flex; flex-direction: column; align-items: center; max-width: 100%; min-width: 0; }
    /* while the cups come off: "Counting…" holds the loser's place, and goes when the verdict lands */
    .tv-fl-counting { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 0 1.4cqw; font-size: 2.8cqh; font-weight: 800; color: #64748b;
      animation: tvFlVOut 0.25s ease-in forwards; }
    html.jbf-dark .tv-fl-counting { color: #94a3b8; }
    @keyframes tvFlVOut { to { opacity: 0; visibility: hidden; } }
    /* the winner, across the middle of the table */
    .tv-fl-win { grid-column: 1 / -1; position: relative; overflow: hidden; isolation: isolate; border-radius: 2.6cqh; display: flex; align-items: center; justify-content: center; gap: 2.4cqw; padding: 0 3cqw; color: #fff;
      background: linear-gradient(150deg, #10b981 0%, #0d9488 55%, #115e59 100%); box-shadow: 0 1cqh 3cqh rgba(0,0,0,0.4), inset 0 0.25cqh 0 rgba(255,255,255,0.3); }
    .tv-fl-win::before { content: ''; position: absolute; left: 50%; top: 50%; width: 100cqw; height: 100cqw; margin: -50cqw 0 0 -50cqw; z-index: -1; pointer-events: none;
      background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255,255,255,0.1) 0deg 6deg, rgba(255,255,255,0) 6deg 15deg); }
    .tv-fl-win-text { min-width: 0; text-align: left; }
    .tv-fl-win-title { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 10cqh; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 0.4cqh 0 rgba(0,0,0,0.2); }
    .tv-fl-win-sub { margin-top: 0.8cqh; font-size: 2.6cqh; font-weight: 800; opacity: 0.95; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-fl-win-in { animation: tvFlWinIn 0.7s cubic-bezier(0.3, 0.8, 0.3, 1.2) backwards; }
    @keyframes tvFlWinIn { from { opacity: 0; transform: scale(0.7); } }
    /* the attract screen, on the wood */
    .tv-fl .tv-safe.tv-fl-attract { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3cqh; text-align: center; }
    .tv-fl-hero-title { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 17cqh; line-height: 0.9; color: #fff7ed; text-shadow: 0 0.5cqh 0 rgba(40,20,5,0.55), 0 1cqh 3cqh rgba(0,0,0,0.45); }
    .tv-fl-hero-sub, .tv-fl-hero-line { font-size: 3cqh; font-weight: 800; color: #fff7ed; text-shadow: 0 0.25cqh 0.8cqh rgba(0,0,0,0.6); }
    .tv-fl-hero-line { font-size: 2.6cqh; }
    .tv-fl-hero-art { display: flex; align-items: flex-end; justify-content: center; gap: 4cqw; }
    .tv-fl-hero-emoji { font-size: 22cqh; line-height: 1; }
    .tv-fl-call { display: inline-block; border-radius: 9999px; padding: 1.2cqh 2.6cqw; font-size: 3.4cqh; font-weight: 800; color: #0f172a; background: rgba(255,255,255,0.94); box-shadow: 0 1cqh 3cqh rgba(0,0,0,0.4); }
    /* the CSS look while the art is not in: the game's dome cups and dice */
    .tv-fl-cssbase { position: absolute; left: 3%; right: 3%; top: 12%; bottom: 3%; border-radius: 50%; background: radial-gradient(ellipse at 50% 35%, #4a4a4a, #1a1a1a 72%);
      box-shadow: inset 0 -0.6cqh 1cqh rgba(0,0,0,0.5), 0 1cqh 1.6cqh rgba(0,0,0,0.4); }
    .tv-fl-cssdice { position: absolute; left: 14%; right: 14%; top: 24%; bottom: 13%; display: flex; flex-wrap: wrap; justify-content: center; align-content: center; }
    .tv-fl-cssdomebox { position: absolute; left: 0; right: 0; bottom: 12%; display: flex; justify-content: center; }
    .tv-fl-cssdome { display: block; border-radius: 50% 50% 39% 39% / 70% 70% 30% 30%; box-shadow: inset 0 0.8cqh 1.4cqh rgba(255,255,255,0.4), inset 0 -1.2cqh 2cqh rgba(0,0,0,0.28), 0 0.6cqh 1.2cqh rgba(0,0,0,0.32); }
    .tv-fl-cssdome.tv-fl-cssdome-off { opacity: 0; transform: translate(6%, -58%) rotate(-9deg); animation: tvFlDomeOff 0.75s cubic-bezier(0.35, 0.6, 0.3, 1) backwards; }
    @keyframes tvFlDomeOff { 0% { transform: none; opacity: 1; } 35% { transform: translate(2%, -16%) rotate(-3deg); opacity: 1; } 100% { transform: translate(6%, -58%) rotate(-9deg); opacity: 0; } }
    .tv-fl-cssin { display: inline-flex; animation: flFadeIn 0.3s ease-out backwards; }
    .tv-fl-cssdie { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; border-radius: 22%; border: 0.12em solid #cbd5e1; background: #fff; color: #334155;
      font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; line-height: 1; vertical-align: middle; }
    .tv-fl-cssdie.tv-fl-cssdie-wild { background: #10b981; border-color: #059669; color: #fff; }
    .tv-fl-cssdie.tv-fl-cssdie-hit { box-shadow: 0 0 0 0.16em #fde047, 0 0 0.9em rgba(253,224,71,0.85); animation: tvFlHit 0.35s ease-out backwards; }
    .tv-fl-cssdie.tv-fl-cssdie-dim { filter: brightness(0.5) saturate(0.55); animation: flDim 0.35s ease-out backwards; }
    @keyframes tvFlHit { from { box-shadow: none; } }
    /* a reveal the TV did not see happen shows at rest */
    .tv-fl-still .fl-cup-reveal, .tv-fl-still .fl-glow, .tv-fl-still .fl-dim, .tv-fl-still .tv-fl-cssdome-off, .tv-fl-still .tv-fl-cssin,
    .tv-fl-still .tv-fl-cssdie-hit, .tv-fl-still .tv-fl-cssdie-dim { animation: none !important; }
    @media (prefers-reduced-motion: reduce) {
      .tv-fl-v-in, .tv-fl-win-in, .tv-fl-cssdome-off, .tv-fl-cssin, .tv-fl-cssdie-hit, .tv-fl-cssdie-dim, .tv-fl-super { animation: none !important; }
      .tv-fl-counting { display: none; }
    }
    /* ---- 📺 Boggle on the TV (BoggleTv inside the shared TvShell) ----
       the walnut tray BIG on a deep blue (a warm sunset in light mode), dark glass panels; the
       tray and its cubes are the phones' own .bog-art layers (all sized in % of the grid, so they
       scale), the CSS dice the fallback */
    .tv-bg { position: absolute; inset: 0; color: #f8fafc; background: radial-gradient(120% 100% at 50% 18%, #24476b 0%, #11253c 55%, #08121f 100%); }
    html:not(.jbf-dark) .tv-bg { background: radial-gradient(120% 100% at 50% 18%, #ffe9c9 0%, #f8c88f 58%, #e39b5a 100%); }
    .tv-bg .tv-safe { display: grid; grid-template-rows: 9cqh minmax(0, 1fr); row-gap: 1.8cqh; }
    .tv-bg-main { display: flex; align-items: center; justify-content: center; gap: 2.4cqw; min-height: 0; min-width: 0; }
    .tv-bg-side { flex: 1 1 0; min-width: 0; align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 1.6cqh; }
    .tv-bg-card { padding: 1.8cqh 1.6cqw; min-width: 0; }
    .tv-bg-h { font-size: 2cqh; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-bg-people { margin-top: 1.2cqh; display: flex; flex-wrap: wrap; align-items: center; gap: 1.2cqh 1.6cqw; min-width: 0; }
    .tv-bg-person { display: flex; align-items: center; gap: 0.6cqw; min-width: 0; font-size: 2.5cqh; font-weight: 800; }
    .tv-bg-pname { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-bg-more { align-self: flex-start; border-radius: 9999px; padding: 0.4cqh 1cqw; font-size: 2.1cqh; font-weight: 800; color: #e2e8f0; background: rgba(6,13,26,0.6); }
    .tv-bg-none { font-size: 2.3cqh; font-weight: 700; color: #94a3b8; }
    .tv-bg-note { margin-top: 1.2cqh; font-size: 2.2cqh; font-weight: 700; line-height: 1.3; color: #cbd5e1; }
    .tv-bg-modes { margin-top: 1.2cqh; display: flex; flex-wrap: wrap; gap: 1cqh 1cqw; }
    .tv-bg-mode { border-radius: 9999px; padding: 0.7cqh 1.4cqw; font-size: 2.5cqh; font-weight: 700; color: #e2e8f0; background: rgba(255,255,255,0.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2); white-space: nowrap; }
    .tv-bg-mode b { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; color: #fdba74; }
    .tv-bg-records { margin-top: 1cqh; display: grid; gap: 0.7cqh; }
    .tv-bg-rec { display: flex; align-items: baseline; gap: 1cqw; min-width: 0; font-size: 2.5cqh; font-weight: 700; }
    .tv-bg-rec-size { flex: none; width: 5.6cqw; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; color: #fdba74; }
    .tv-bg-rec-name { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-bg-rec-score { flex: none; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 3.4cqh; line-height: 1; color: #67e8f9; }
    .tv-bg-rec-none { color: #94a3b8; }
    /* the board: --s is the grid's side; the tray hangs 3.8% outside it, so the box keeps 4.5% */
    .tv-bg-boardbox { flex: none; padding: calc(var(--s) * 0.045); }
    .tv-bg-shaker { position: relative; }
    .tv-bg-shake { animation: tvBgShake 0.5s ease-in-out infinite; }
    @keyframes tvBgShake {
      0%, 100% { transform: translate(0, 0) rotate(0deg); }
      12% { transform: translate(-1.1%, -0.7%) rotate(-5deg); }
      28% { transform: translate(1.3%, 0.5%) rotate(4.5deg); }
      44% { transform: translate(-1%, 0.8%) rotate(-4deg); }
      60% { transform: translate(1.1%, -0.7%) rotate(5deg); }
      76% { transform: translate(-0.8%, 0.5%) rotate(-3deg); }
      90% { transform: translate(0.6%, -0.3%) rotate(2deg); }
    }
    .tv-bg-grid { position: relative; display: grid; width: var(--s); gap: calc(var(--s) * var(--g)); }
    .tv-bg-tile { position: relative; aspect-ratio: 1; border-radius: 12%; }
    .tv-bg-grid.tv-bg-plain::before { content: ''; position: absolute; inset: -3.8%; border-radius: 3.5%; pointer-events: none;
      background: linear-gradient(160deg, #8a5a2b 0%, #6b4220 55%, #4a2b12 100%); box-shadow: 0 1cqh 2.4cqh rgba(0,0,0,0.4), inset 0 0 0 0.3cqh rgba(255,255,255,0.08); }
    .tv-bg-cdie { position: relative; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 14%;
      font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; line-height: 1; color: #1e293b; font-size: calc(var(--s) / var(--n) * 0.48);
      background: linear-gradient(150deg, #fffdf7 0%, #fff4e0 45%, #ffe6c2 100%); border: 1px solid rgba(224,150,80,0.55);
      box-shadow: 0 calc(var(--s) * 0.011) 0 #e9a35f, 0 calc(var(--s) * 0.018) calc(var(--s) * 0.024) rgba(124,72,20,0.32), inset 0 0.2cqh 0.3cqh rgba(255,255,255,0.9), inset 0 -0.3cqh 0.5cqh rgba(196,118,53,0.28);
      text-shadow: 0 1px 0 rgba(255,255,255,0.65); }
    .tv-bg-art .bog-art-tray { box-shadow: 0 1cqh 3cqh rgba(15,10,5,0.45), 0 0.2cqh 0.4cqh rgba(15,10,5,0.3); } /* the tray's shadow at TV size */
    .tv-bg-go .tv-bg-grid { animation: tvBgGo 0.7s cubic-bezier(0.3, 0.8, 0.3, 1.2) both; }
    @keyframes tvBgGo { from { opacity: 0; transform: scale(0.86); } }
    /* the countdown */
    .tv-bg-count { gap: 3.2cqw; }
    .tv-bg-count-side { flex: 0 1 44cqw; min-width: 0; display: flex; flex-direction: column; padding: 2.4cqh 2cqw; }
    .tv-bg-count-lbl { font-size: 2.6cqh; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #fdba74; }
    .tv-bg-count-num { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 22cqh; line-height: 0.95; color: #fb923c; font-variant-numeric: tabular-nums; }
    .tv-bg-count-sub { margin: 0.6cqh 0 2.4cqh; font-size: 2.6cqh; font-weight: 700; line-height: 1.3; color: #e2e8f0; }
    .tv-bg-count-sub b { color: #fff; }
    /* the round: the clock bar, the word counts */
    .tv-bg-panel { flex: 1 1 0; min-width: 0; align-self: stretch; display: flex; flex-direction: column; padding: 2cqh 1.6cqw; }
    .tv-bg-bar { flex: none; height: 1.2cqh; border-radius: 9999px; overflow: hidden; background: rgba(255,255,255,0.12); margin-bottom: 1.8cqh; }
    .tv-bg-bar > span { display: block; height: 100%; border-radius: inherit; background: #10b981; transition: width 0.25s linear; }
    .tv-bg-bar > span.tv-bg-bar-mid { background: #f59e0b; } .tv-bg-bar > span.tv-bg-bar-low { background: #ef4444; }
    .tv-bg-plist { flex: 1 1 auto; min-height: 0; overflow: hidden; margin-top: 1.2cqh; display: flex; flex-direction: column; gap: 0.9cqh; }
    .tv-bg-prow { display: flex; align-items: center; gap: 0.9cqw; min-width: 0; padding: 0.5cqh 0.8cqw 0.5cqh 0.5cqw; border-radius: 1.4cqh; background: rgba(255,255,255,0.05); font-size: 2.8cqh; font-weight: 800; }
    .tv-bg-prow .tv-bg-pname { flex: 1 1 auto; }
    .tv-bg-pcount { flex: none; display: inline-block; min-width: 4cqw; text-align: right; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 4.6cqh; line-height: 1; color: #67e8f9; font-variant-numeric: tabular-nums; }
    .tv-bg-plist-big { gap: 1.2cqh; }
    .tv-bg-plist-big .tv-bg-prow { font-size: 3.6cqh; padding: 0.9cqh 1cqw 0.9cqh 0.7cqw; }
    .tv-bg-plist-big .tv-av { width: 6.2cqh; height: 6.2cqh; } .tv-bg-plist-big .tv-av > div { font-size: 2.6cqh !important; }
    .tv-bg-plist-big .tv-bg-pcount { font-size: 6.4cqh; }
    .tv-bg-pop-a { animation: tvBgPopA 0.55s ease-out; } .tv-bg-pop-b { animation: tvBgPopB 0.55s ease-out; }
    @keyframes tvBgPopA { 0% { transform: scale(1); } 30% { transform: scale(1.4); color: #fde047; } 100% { transform: scale(1); } }
    @keyframes tvBgPopB { 0% { transform: scale(1); } 30% { transform: scale(1.4); color: #fde047; } 100% { transform: scale(1); } }
    .tv-bg-foot { flex: none; margin-top: 1.4cqh; font-size: 2cqh; font-weight: 700; color: #94a3b8; }
    /* time's up: the board and the best word on the left, the results (then the top 10) on the right */
    .tv-bg-done { align-items: stretch; justify-content: flex-start; }
    .tv-bg-leftcol { flex: none; width: 30cqw; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 1.6cqh; }
    .tv-bg-best { align-self: stretch; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; justify-content: center; padding: 1.6cqh 1.6cqw; }
    .tv-bg-best-word { margin-top: 0.6cqh; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 7cqh; line-height: 1; letter-spacing: 0.04em; color: #fde68a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-bg-best-sub { margin-top: 0.8cqh; font-size: 2.3cqh; font-weight: 700; color: #e2e8f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-bg-rightcol { flex: 1 1 0; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 1.4cqh; }
    .tv-bg-win { position: relative; flex: none; height: 13cqh; display: flex; align-items: center; gap: 1.6cqw; padding: 0 2cqw; border-radius: 2.4cqh; color: #fff;
      background: linear-gradient(150deg, #fb923c 0%, #f97316 50%, #c2410c 100%); box-shadow: 0 0.8cqh 2.4cqh rgba(0,0,0,0.35), inset 0 0.25cqh 0 rgba(255,255,255,0.3); }
    .tv-bg-win-icon { flex: none; font-size: 7cqh; line-height: 1; }
    .tv-bg-win-text { min-width: 0; }
    .tv-bg-win-title { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 6.2cqh; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 0.3cqh 0 rgba(0,0,0,0.2); }
    .tv-bg-win-sub { margin-top: 0.6cqh; font-size: 2.4cqh; font-weight: 800; opacity: 0.95; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-bg-cards { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 1cqh; overflow: hidden; }
    .tv-bg-srow { flex: 1 1 0; min-height: 0; max-height: 22cqh; display: grid; grid-template-columns: 15cqw minmax(0, 1fr) 7cqw; column-gap: 1cqw; align-items: center; padding: 1cqh 1.2cqw; border-radius: 2cqh; }
    .tv-bg .tv-bg-srow-win { box-shadow: 0 0 0 0.4cqh #fbbf24, 0 0 2.4cqh rgba(251,191,36,0.45), inset 0 0 0 1px rgba(255,255,255,0.09); }
    .tv-bg-who { display: flex; align-items: center; gap: 0.7cqw; min-width: 0; }
    .tv-bg-rank { flex: none; width: 3.2cqw; text-align: center; font-size: 3cqh; font-weight: 800; color: #cbd5e1; }
    .tv-bg-whotext { min-width: 0; }
    .tv-bg-name { font-size: 2.7cqh; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-bg-words { font-size: 1.9cqh; font-weight: 700; color: #94a3b8; white-space: nowrap; }
    .tv-bg-chips { min-width: 0; align-self: center; display: flex; flex-wrap: wrap; align-content: center; gap: 0.6cqh 0.5cqw; overflow: hidden; }
    .tv-bg-chip { display: inline-flex; align-items: center; gap: 0.35em; height: 3.6cqh; border-radius: 9999px; padding: 0 0.7em; font-size: 2.1cqh; font-weight: 800; letter-spacing: 0.03em; white-space: nowrap;
      color: #f1f5f9; background: rgba(255,255,255,0.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2); }
    .tv-bg-chip b { display: inline-flex; align-items: center; justify-content: center; min-width: 1.5em; height: 1.5em; border-radius: 9999px; padding: 0 0.3em; font-size: 0.78em; color: #0f172a; background: rgba(255,255,255,0.88); }
    .tv-bg-chip.tv-bg-chip-uniq { color: #422006; background: linear-gradient(150deg, #fde68a 0%, #f59e0b 100%); box-shadow: none; }
    .tv-bg-chip.tv-bg-chip-uniq b { color: #fde68a; background: rgba(66,32,6,0.85); }
    .tv-bg-x2 { font-style: normal; font-size: 0.74em; font-weight: 900; letter-spacing: 0; color: #9a3412; }
    .tv-bg-chip.tv-bg-chip-bad { color: #94a3b8; background: transparent; box-shadow: none; text-decoration: line-through; }
    .tv-bg-chip.tv-bg-chip-more { color: #cbd5e1; background: transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18); }
    .tv-bg-score { text-align: right; }
    .tv-bg-score span { display: block; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 5cqh; line-height: 1; color: #67e8f9; }
    .tv-bg-score small { font-size: 1.8cqh; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #94a3b8; }
    /* 🎉 the party round's reveal on the TV (12.10.6): the biggest words, then the counts, then the totals from last place up */
    .tv-bg-rev { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 1.6cqh; padding: 2cqh 2cqw; border-radius: 2.4cqh; overflow: hidden; }
    .tv-bg-rev-title { flex: none; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 4.6cqh; line-height: 1.05; color: #fde68a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-bg-rev-title-win { color: #fbbf24; text-shadow: 0 0 2.4cqh rgba(251,191,36,0.45); }
    .tv-bg-rev-big { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(0, 1fr); gap: 1.2cqh 1.4cqw; align-content: start; }
    .tv-bg-rev-word { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 0.8cqw; align-items: baseline; padding: 1cqh 1.2cqw; border-radius: 1.6cqh;
      color: #422006; background: linear-gradient(150deg, #fde68a 0%, #f59e0b 100%); animation: tvBgRevIn 0.45s ease-out backwards; }
    .tv-bg-rev-w { min-width: 0; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 3.6cqh; line-height: 1; letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-bg-rev-pts { font-size: 2.6cqh; font-weight: 900; white-space: nowrap; }
    .tv-bg-rev-by { grid-column: 1 / -1; font-size: 1.9cqh; font-weight: 800; color: #78350f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-bg-rev-rows { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 1cqh; }
    .tv-bg-rev-row { flex: 1 1 0; min-height: 0; max-height: 9cqh; display: flex; align-items: center; gap: 1cqw; padding: 0 1.4cqw; border-radius: 1.8cqh; background: rgba(255,255,255,0.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12); animation: tvBgRevIn 0.4s ease-out backwards; }
    .tv-bg-rev-row-win { background: rgba(251,191,36,0.16); box-shadow: 0 0 0 0.4cqh #fbbf24, 0 0 2.4cqh rgba(251,191,36,0.45); }
    .tv-bg-rev-name { flex: 1 1 auto; min-width: 0; font-size: 3cqh; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-bg-rev-n { flex: none; font-size: 2.3cqh; font-weight: 800; color: #94a3b8; white-space: nowrap; }
    .tv-bg-rev-score { flex: none; width: 8cqw; text-align: right; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 5cqh; line-height: 1; color: rgba(255,255,255,0.28); }
    .tv-bg-rev-score-on { color: #67e8f9; animation: tvBgRevPop 0.5s ease-out backwards; }
    @keyframes tvBgRevIn { from { opacity: 0; transform: translateY(1.2cqh); } to { opacity: 1; transform: none; } }
    @keyframes tvBgRevPop { 0% { opacity: 0; transform: scale(0.4); } 60% { opacity: 1; transform: scale(1.3); } 100% { opacity: 1; transform: none; } }
    @media (prefers-reduced-motion: reduce) { .tv-bg-rev-word, .tv-bg-rev-row, .tv-bg-rev-score-on { animation: none; } }
    .tv-bg-legend { flex: none; align-self: flex-start; display: flex; align-items: center; gap: 0.8cqw; border-radius: 9999px; padding: 0.6cqh 1.2cqw 0.6cqh 0.6cqw; font-size: 2cqh; font-weight: 700; color: #e2e8f0; background: rgba(6,13,26,0.7); }
    .tv-bg-legend.tv-bg-legend-party { border-radius: 1.8cqh; padding: 0.8cqh 1.4cqw; color: #fde68a; }
    .tv-bg-lb { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding: 1.8cqh 1.6cqw; }
    .tv-bg-lb-list { margin-top: 1cqh; display: flex; flex-direction: column; gap: 0.5cqh; min-height: 0; overflow: hidden; }
    .tv-bg-lb-row { display: flex; align-items: center; gap: 1cqw; min-width: 0; padding: 0.6cqh 0.8cqw; border-radius: 1.2cqh; font-size: 2.6cqh; font-weight: 800; }
    .tv-bg-lb-first { background: rgba(251,191,36,0.16); }
    .tv-bg-lb-rank { flex: none; width: 3.4cqw; text-align: center; color: #cbd5e1; }
    .tv-bg-lb-name { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-bg-lb-score { flex: none; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 3.6cqh; line-height: 1; color: #67e8f9; }
    .tv-bg-new { margin-left: 0.8cqw; border-radius: 9999px; padding: 0.1cqh 0.6cqw; font-size: 1.5cqh; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #422006; background: #fde047; vertical-align: middle; }
    /* 🎉 the party record (12.10.8): the record holder big in gold, then the next four, the 72-hour note */
    .tv-bg-prec { gap: 1.2cqh; }
    .tv-bg-prec-top { flex: none; display: flex; align-items: center; gap: 1.4cqw; min-width: 0; padding: 1.4cqh 1.6cqw; border-radius: 2cqh;
      background: rgba(251,191,36,0.14); box-shadow: inset 0 0 0 0.25cqh rgba(251,191,36,0.55); }
    .tv-bg-prec-top.tv-bg-prec-fresh { background: linear-gradient(150deg, rgba(253,224,71,0.3) 0%, rgba(245,158,11,0.3) 100%); box-shadow: 0 0 0 0.4cqh #fbbf24, 0 0 2.6cqh rgba(251,191,36,0.5); animation: tvBgWinIn 0.6s cubic-bezier(0.3, 0.8, 0.3, 1.2) backwards; }
    .tv-bg-prec-top .tv-av { width: 9cqh; height: 9cqh; } .tv-bg-prec-top .tv-av > div { font-size: 3.6cqh !important; box-shadow: 0 0 0 0.4cqh #fbbf24; }
    .tv-bg-prec-who { flex: 1 1 auto; min-width: 0; }
    .tv-bg-prec-label { font-size: 2.1cqh; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #fcd34d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-bg-prec-name { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 5cqh; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-bg-prec-when { font-size: 2.1cqh; font-weight: 700; color: #cbd5e1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-bg-prec-score { flex: none; text-align: right; }
    .tv-bg-prec-score span { display: block; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 8cqh; line-height: 0.95; color: #fde047; text-shadow: 0 0.3cqh 0 rgba(0,0,0,0.25); }
    .tv-bg-prec-score small { font-size: 1.9cqh; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #fcd34d; }
    .tv-bg-prec .tv-bg-lb-list { margin-top: 0; }
    .tv-bg-prec-wh { flex: none; font-size: 1.9cqh; font-weight: 700; color: #94a3b8; white-space: nowrap; }
    .tv-bg-prec-note { flex: none; font-size: 2.2cqh; font-weight: 700; line-height: 1.3; color: #fde68a; }
    .tv-bg-prec-foot { flex: none; margin-top: auto; font-size: 1.9cqh; font-weight: 700; color: #94a3b8; }
    .tv-bg-prec-big .tv-bg-lb-row { font-size: 3cqh; } .tv-bg-prec-big .tv-bg-lb-score { font-size: 4cqh; }
    .tv-bg-prec-here { flex: none; }
    @media (prefers-reduced-motion: reduce) { .tv-bg-prec-top.tv-bg-prec-fresh { animation: none; } }
    .tv-bg-tally { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 3cqh 2cqw; }
    .tv-bg-tally-title { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 5cqh; line-height: 1.1; }
    .tv-bg-tally-sub { margin-top: 1cqh; font-size: 2.6cqh; font-weight: 700; color: #cbd5e1; }
    .tv-bg-rise { animation: tvBgRise 0.5s cubic-bezier(0.3, 0.8, 0.3, 1) backwards; }
    @keyframes tvBgRise { from { opacity: 0; transform: translateY(2cqh); } }
    .tv-bg-win-in { animation: tvBgWinIn 0.6s cubic-bezier(0.3, 0.8, 0.3, 1.2) backwards; }
    @keyframes tvBgWinIn { from { opacity: 0; transform: scale(0.82); } }
    /* nothing going on: the attract screen, on the tray */
    .tv-bg .tv-safe.tv-bg-attract { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2cqh; text-align: center; }
    .tv-bg-hero-title { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 12cqh; line-height: 0.95; color: #fff7ed; text-shadow: 0 0.5cqh 0 rgba(8,18,31,0.5), 0 1cqh 3cqh rgba(0,0,0,0.45); }
    .tv-bg-hero-sub { font-size: 3cqh; font-weight: 800; color: #e2e8f0; }
    .tv-bg-hero-line { font-size: 2.4cqh; font-weight: 800; color: #cbd5e1; }
    html:not(.jbf-dark) .tv-bg-hero-title { color: #7c2d12; text-shadow: 0 0.4cqh 0 rgba(255,255,255,0.55); }
    html:not(.jbf-dark) .tv-bg-hero-sub, html:not(.jbf-dark) .tv-bg-hero-line { color: #7c2d12; }
    .tv-bg-call { display: inline-block; border-radius: 9999px; padding: 1.2cqh 2.6cqw; font-size: 3.4cqh; font-weight: 800; color: #0f172a; background: rgba(255,255,255,0.95); box-shadow: 0 1cqh 3cqh rgba(0,0,0,0.35); }
    @media (prefers-reduced-motion: reduce) {
      .tv-bg-shake, .tv-bg .bog-die, .tv-bg-pop-a, .tv-bg-pop-b, .tv-bg-go .tv-bg-grid, .tv-bg-rise, .tv-bg-win-in { animation: none !important; }
      .tv-bg-bar > span { transition: none; }
    }
    /* ---- 📺 99 on the TV (NinetyNineTv inside the shared TvShell) ----
       the wooden board big on the green felt, a glass team panel either side (Team 1 blue, Team 2
       red), the last card as a light card face, the winning line traced in gold */
    .tv-nn { position: absolute; inset: 0; color: #f8fafc; background: radial-gradient(120% 100% at 50% 40%, #1f9d63 0%, #138a52 42%, #0c6f41 78%, #0a5c37 100%); }
    html.jbf-dark .tv-nn { background: radial-gradient(120% 100% at 50% 40%, #17774b 0%, #0f6a40 42%, #0a5232 78%, #073f27 100%); }
    .tv-nn .tv-safe { display: grid; grid-template-rows: 9cqh minmax(0, 1fr); row-gap: 1.8cqh; }
    .tv-nn-main { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); column-gap: 1.6cqw; min-height: 0; }
    .tv-nn-side { display: flex; flex-direction: column; gap: 1.6cqh; min-width: 0; min-height: 0; }
    .tv-nn-center { position: relative; width: 80cqh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4cqh; min-height: 0; }
    /* the board: --s is its side; the gap between squares is NN_TV_GAP of the grid */
    .tv-nn-board { flex: none; box-sizing: border-box; width: var(--s); height: var(--s); padding: calc(var(--s) * 0.022); border-radius: calc(var(--s) * 0.022);
      background: linear-gradient(135deg, #a9733f, #8a5a2b 42%, #6f4720);
      box-shadow: inset 0 0.3cqh 0.8cqh rgba(255,255,255,0.18), inset 0 -0.6cqh 1.2cqh rgba(0,0,0,0.42), 0 0 0 0.4cqh #5c3a1c, 0 1.4cqh 3cqh rgba(0,0,0,0.4); }
    .tv-nn-board.tv-nn-dim { opacity: 0.5; }
    /* a live win: the board starts where it stood in play (80cqh, centred) and settles to its
       finished size under the banner — (12cqh banner + 1.4cqh gap) / 2 up, 80/66 larger */
    .tv-nn-board.tv-nn-shrink { animation: tvNnShrink 0.45s ease-in-out 1.7s both; }
    @keyframes tvNnShrink { from { transform: translateY(-6.7cqh) scale(1.2121); } to { transform: none; } }
    .tv-nn-grid { position: relative; width: 100%; height: 100%; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); grid-template-rows: repeat(10, minmax(0, 1fr)); gap: calc(var(--s) * 0.956 * 0.008); }
    .tv-nn-cell { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 0; border-radius: 50%;
      background: radial-gradient(circle at 50% 35%, rgba(0,0,0,0.16), rgba(0,0,0,0.34)); box-shadow: inset 0 0.25cqh 0.5cqh rgba(0,0,0,0.55), inset 0 -0.1cqh 0.1cqh rgba(255,255,255,0.12); }
    .tv-nn-num { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: calc(var(--s) * 0.034); line-height: 1; color: rgba(255,251,235,0.85); }
    .tv-nn-cell.tv-nn-a { background: radial-gradient(circle at 50% 32%, #7cbcff, #2f7de0 55%, #1b5fb0);
      box-shadow: inset 0 0 0 calc(var(--s) * 0.004) rgba(255,255,255,0.85), inset 0 0 0 calc(var(--s) * 0.007) rgba(27,95,176,0.9), 0 0.2cqh 0.4cqh rgba(0,0,0,0.5); }
    .tv-nn-cell.tv-nn-b { background: radial-gradient(circle at 50% 32%, #ff9090, #e03b3b 55%, #ad2020);
      box-shadow: inset 0 0 0 calc(var(--s) * 0.004) rgba(255,255,255,0.85), inset 0 0 0 calc(var(--s) * 0.007) rgba(173,32,32,0.9), 0 0.2cqh 0.4cqh rgba(0,0,0,0.5); }
    .tv-nn-cell.tv-nn-wild { background: radial-gradient(circle at 50% 32%, #ffe7a0, #f0b431 55%, #c98a14);
      box-shadow: inset 0 0 0 calc(var(--s) * 0.004) rgba(255,255,255,0.8), inset 0 0 0 calc(var(--s) * 0.007) rgba(201,138,20,0.85), 0 0.2cqh 0.4cqh rgba(0,0,0,0.45); }
    .tv-nn-a .tv-nn-num, .tv-nn-b .tv-nn-num { color: #fff; text-shadow: 0 0.1cqh 0.2cqh rgba(0,0,0,0.45); }
    .tv-nn-wild .tv-nn-num { color: #78350f; font-size: calc(var(--s) * 0.046); }
    /* the last chip down wears a ring (it pulses when the TV saw it land); the five glow gold */
    .tv-nn-cell.tv-nn-last { z-index: 2; }
    .tv-nn-last::after { content: ''; position: absolute; inset: -10%; border-radius: 50%; pointer-events: none;
      box-shadow: 0 0 0 calc(var(--s) * 0.005) #fde047, 0 0 calc(var(--s) * 0.028) rgba(253,224,71,0.85); }
    .tv-nn-drop { animation: tvNnDrop 0.45s ease-out both; }
    .tv-nn-drop::after { animation: tvNnRing 1.1s ease-out 0.3s 3; }
    @keyframes tvNnDrop { 0% { transform: translateY(-30%) scale(1.35); opacity: 0.3; } 60% { transform: translateY(0) scale(0.92); } 100% { transform: none; opacity: 1; } }
    @keyframes tvNnRing { 0% { transform: scale(1); opacity: 1; } 60% { transform: scale(1.35); opacity: 0.4; } 100% { transform: scale(1); opacity: 1; } }
    .tv-nn-cell.tv-nn-five { z-index: 3; }
    .tv-nn-five::before { content: ''; position: absolute; inset: -12%; border-radius: 50%; pointer-events: none;
      box-shadow: 0 0 0 calc(var(--s) * 0.006) #fbbf24, 0 0 calc(var(--s) * 0.04) rgba(251,191,36,0.85); }
    .tv-nn-five-in { animation: tvNnFive 0.6s ease-out both; }
    @keyframes tvNnFive { 0% { transform: scale(1); } 40% { transform: scale(1.22); } 100% { transform: scale(1); } }
    .tv-nn-line { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; overflow: visible; pointer-events: none; }
    .tv-nn-line polyline { fill: none; stroke: #fde047; stroke-width: 1.3; stroke-linecap: round; opacity: 0.92; }
    .tv-nn-line-in polyline { stroke-dasharray: 100; stroke-dashoffset: 100; animation: tvNnTrace 0.9s ease-out 0.7s forwards; }
    @keyframes tvNnTrace { to { stroke-dashoffset: 0; } }
    /* the five's numbers again over the line: the same grid on top, so each sits exactly on its chip */
    .tv-nn-grid.tv-nn-over { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
    .tv-nn-ocell { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 0; }
    .tv-nn-over .tv-nn-num { text-shadow: 0 0 calc(var(--s) * 0.006) rgba(0,0,0,0.8), 0 0.1cqh 0.2cqh rgba(0,0,0,0.6); }
    /* team panels */
    .tv-nn-panel { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
    .tv-nn-panel-h { display: flex; align-items: center; gap: 0.8cqw; padding: 1.3cqh 1.2cqw; border-radius: 2.2cqh 2.2cqh 0 0; }
    .tv-nn-panel-a .tv-nn-panel-h { background: linear-gradient(150deg, #3b82f6 0%, #1d4ed8 100%); }
    .tv-nn-panel-b .tv-nn-panel-h { background: linear-gradient(150deg, #ef4444 0%, #b91c1c 100%); }
    .tv-nn-panel-a.tv-nn-panel-up { box-shadow: 0 0 0 0.45cqh #60a5fa, 0 0 3cqh rgba(96,165,250,0.6), inset 0 0 0 1px rgba(255,255,255,0.09); }
    .tv-nn-panel-b.tv-nn-panel-up { box-shadow: 0 0 0 0.45cqh #f87171, 0 0 3cqh rgba(248,113,113,0.6), inset 0 0 0 1px rgba(255,255,255,0.09); }
    .tv-nn .tv-nn-panel-won { box-shadow: 0 0 0 0.45cqh #fbbf24, 0 0 3cqh rgba(251,191,36,0.6), inset 0 0 0 1px rgba(255,255,255,0.09); }
    .tv-nn-team { flex: 1 1 auto; min-width: 0; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 3.6cqh; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-nn-pill { flex: none; border-radius: 9999px; padding: 0.3cqh 0.8cqw; font-size: 1.5cqh; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #0f172a; background: #fff; white-space: nowrap; }
    .tv-nn-pill.tv-nn-pill-win { color: #422006; background: linear-gradient(150deg, #fde68a, #f59e0b); }
    .tv-nn-stats { padding: 1.3cqh 1.2cqw 0; }
    .tv-nn-run { display: flex; align-items: center; gap: 0.7cqw; }
    .tv-nn-run-lbl { font-size: 1.8cqh; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #94a3b8; white-space: nowrap; }
    .tv-nn-pips { display: inline-flex; gap: 0.35cqw; }
    .tv-nn-pip { width: 2cqh; height: 2cqh; border-radius: 50%; box-shadow: inset 0 0 0 0.25cqh rgba(148,163,184,0.6); }
    .tv-nn-panel-a .tv-nn-pip.tv-nn-pip-on { background: #3b82f6; box-shadow: none; } .tv-nn-panel-b .tv-nn-pip.tv-nn-pip-on { background: #ef4444; box-shadow: none; }
    .tv-nn-run-num { margin-left: auto; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 3.4cqh; line-height: 1; }
    .tv-nn-count { margin-top: 0.6cqh; font-size: 2cqh; font-weight: 700; color: #cbd5e1; }
    .tv-nn-players { display: flex; flex-direction: column; gap: 0.8cqh; padding: 1.2cqh 1.2cqw 1.4cqh; min-height: 0; overflow: hidden; }
    .tv-nn-player { display: flex; align-items: center; gap: 0.6cqw; min-width: 0; padding: 0.4cqh 0.5cqw; border-radius: 1.4cqh; font-size: 2.3cqh; font-weight: 800; }
    .tv-nn-player.tv-nn-player-up { background: rgba(255,255,255,0.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3); }
    .tv-nn-pname { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-nn-hand { flex: none; border-radius: 9999px; padding: 0.1cqh 0.6cqw; font-size: 1.8cqh; font-weight: 800; color: #cbd5e1; background: rgba(255,255,255,0.1); white-space: nowrap; }
    .tv-nn-empty { font-size: 2cqh; font-weight: 700; color: #94a3b8; }
    /* the last card */
    .tv-nn-lastp { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding: 1.6cqh 1.2cqw; overflow: hidden; }
    .tv-nn-h { font-size: 1.9cqh; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #94a3b8; white-space: nowrap; }
    .tv-nn-lastrow { flex: 1 1 auto; min-height: 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.8cqh; text-align: center; }
    .tv-nn-card { flex: none; width: 13cqh; height: 18.2cqh; border-radius: 1.6cqh; display: flex; align-items: center; justify-content: center; background: #fff; color: #1e293b;
      box-shadow: 0 0.8cqh 1.8cqh rgba(0,0,0,0.4), inset 0 0 0 0.25cqh #cbd5e1; }
    .tv-nn-card-num { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 8.6cqh; line-height: 1; }
    .tv-nn-card.tv-nn-card-dead { color: #b45309; box-shadow: 0 0.8cqh 1.8cqh rgba(0,0,0,0.4), inset 0 0 0 0.4cqh #fbbf24; }
    .tv-nn-card.tv-nn-card-back { background: repeating-linear-gradient(45deg, #1857a8 0 1cqh, #2f7de0 1cqh 2cqh); box-shadow: 0 0.8cqh 1.8cqh rgba(0,0,0,0.4), inset 0 0 0 0.6cqh #fff; }
    .tv-nn-last-text { min-width: 0; max-width: 100%; }
    .tv-nn-last-who { display: flex; align-items: center; justify-content: center; gap: 0.6cqw; min-width: 0; font-size: 3cqh; font-weight: 800; }
    .tv-nn-last-who .tv-nn-pname { flex: 0 1 auto; }
    .tv-nn-last-who .tv-av { width: 5.2cqh; height: 5.2cqh; } .tv-nn-last-who .tv-av > div { font-size: 2.2cqh !important; }
    .tv-nn-last-what { margin-top: 1cqh; font-size: 2.6cqh; font-weight: 700; color: #e2e8f0; white-space: nowrap; }
    .tv-nn-sq { display: inline-flex; align-items: center; justify-content: center; min-width: 5.4cqh; height: 5.4cqh; margin-left: 0.3cqw; border-radius: 50%; vertical-align: middle;
      font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 2.8cqh; color: #fff; text-shadow: 0 0.1cqh 0.2cqh rgba(0,0,0,0.45); }
    .tv-nn-sq.tv-nn-sq-a { background: radial-gradient(circle at 50% 32%, #7cbcff, #2f7de0 55%, #1b5fb0); box-shadow: inset 0 0 0 0.25cqh rgba(255,255,255,0.85); }
    .tv-nn-sq.tv-nn-sq-b { background: radial-gradient(circle at 50% 32%, #ff9090, #e03b3b 55%, #ad2020); box-shadow: inset 0 0 0 0.25cqh rgba(255,255,255,0.85); }
    .tv-nn-none { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 2.6cqh; font-weight: 700; line-height: 1.3; color: #cbd5e1; }
    .tv-nn-lastp-in .tv-nn-card { animation: tvNnCardIn 0.5s cubic-bezier(0.3, 0.8, 0.3, 1.2) backwards; }
    @keyframes tvNnCardIn { from { opacity: 0; transform: translateY(-2cqh) rotate(-8deg) scale(0.8); } }
    /* how it works + the draw pile */
    .tv-nn-rules { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 1.1cqh; padding: 1.6cqh 1.2cqw; }
    .tv-nn-rule { font-size: 2.1cqh; font-weight: 700; line-height: 1.3; color: #e2e8f0; }
    .tv-nn-rule b { color: #fff; }
    .tv-nn-wildchip { display: inline-flex; align-items: center; justify-content: center; width: 3.2cqh; height: 3.2cqh; border-radius: 50%; vertical-align: middle; font-size: 1.9cqh; font-weight: 800; color: #78350f;
      background: radial-gradient(circle at 50% 32%, #ffe7a0, #f0b431 55%, #c98a14); }
    .tv-nn-rule.tv-nn-pile { margin-top: auto; color: #cbd5e1; }
    /* the win banner over the board */
    .tv-nn-win { position: relative; flex: none; width: 66cqh; height: 12cqh; display: flex; align-items: center; gap: 1.4cqw; padding: 0 1.8cqw; border-radius: 2.4cqh; overflow: hidden; color: #fff;
      box-shadow: 0 0.8cqh 2.4cqh rgba(0,0,0,0.35), inset 0 0.25cqh 0 rgba(255,255,255,0.3); }
    .tv-nn-win-a { background: linear-gradient(150deg, #60a5fa 0%, #2563eb 55%, #1e3a8a 100%); }
    .tv-nn-win-b { background: linear-gradient(150deg, #f87171 0%, #dc2626 55%, #7f1d1d 100%); }
    .tv-nn-win-tie { background: linear-gradient(150deg, #fcd34d 0%, #f59e0b 55%, #92400e 100%); color: #1c1003; }
    .tv-nn-win-icon { flex: none; font-size: 6cqh; line-height: 1; }
    .tv-nn-win-text { min-width: 0; }
    .tv-nn-win-title { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 5.6cqh; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 0.3cqh 0 rgba(0,0,0,0.2); }
    .tv-nn-win-sub { margin-top: 0.6cqh; font-size: 2.2cqh; font-weight: 800; opacity: 0.95; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-nn-win-in { animation: tvNnWinIn 0.6s cubic-bezier(0.3, 0.8, 0.3, 1.2) 2s backwards; }
    @keyframes tvNnWinIn { from { opacity: 0; transform: scale(0.82); } }
    /* the lobby: a card over the empty board */
    .tv-nn-lobbycard { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 62cqh; padding: 2.6cqh 2.2cqw; text-align: center; }
    .tv-nn-lobby-title { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 6cqh; line-height: 1; }
    .tv-nn-lobby-line { margin-top: 1.2cqh; font-size: 2.4cqh; font-weight: 700; color: #e2e8f0; }
    .tv-nn-lobby-line b { color: #fff; }
    .tv-nn-lobby-rule { margin-top: 1.8cqh; font-size: 2cqh; font-weight: 700; line-height: 1.3; color: #cbd5e1; }
    /* nothing going on: the attract screen */
    .tv-nn .tv-safe.tv-nn-attract { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2cqh; text-align: center; }
    .tv-nn-hero-title { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 14cqh; line-height: 0.9; color: #fff7ed; text-shadow: 0 0.5cqh 0 rgba(6,40,24,0.55), 0 1cqh 3cqh rgba(0,0,0,0.45); }
    .tv-nn-hero-sub { font-size: 3cqh; font-weight: 800; color: #ecfdf5; text-shadow: 0 0.2cqh 0.6cqh rgba(0,0,0,0.4); }
    .tv-nn-hero-line { font-size: 2.3cqh; font-weight: 800; color: #d1fae5; text-shadow: 0 0.2cqh 0.6cqh rgba(0,0,0,0.4); }
    .tv-nn-call { display: inline-block; border-radius: 9999px; padding: 1.2cqh 2.6cqw; font-size: 3.4cqh; font-weight: 800; color: #0f172a; background: rgba(255,255,255,0.95); box-shadow: 0 1cqh 3cqh rgba(0,0,0,0.35); }
    /* the deal, seen live */
    .tv-nn-deal { position: absolute; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; pointer-events: none; background: rgba(2,6,23,0.4); animation: tvFade 2.6s ease-out both; }
    .tv-nn-deal-box { padding: 3cqh 4cqw; border-radius: 3cqh; text-align: center; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 6cqh; line-height: 1.1; color: #fff;
      background: linear-gradient(160deg, #1e3a8a 0%, #1d4ed8 50%, #2563eb 100%); box-shadow: 0 2cqh 6cqh rgba(0,0,0,0.5), inset 0 0.3cqh 0 rgba(255,255,255,0.3); animation: tvPop 2.6s cubic-bezier(0.3, 0.8, 0.3, 1.2) both; }
    .tv-nn-deal-sub { margin-top: 1cqh; font-size: 2.6cqh; }
    @media (prefers-reduced-motion: reduce) {
      .tv-nn-drop, .tv-nn-drop::after, .tv-nn-five-in, .tv-nn-line-in polyline, .tv-nn-shrink, .tv-nn-win-in, .tv-nn-lastp-in .tv-nn-card, .tv-nn-deal, .tv-nn-deal-box { animation: none !important; }
      .tv-nn-line-in polyline { stroke-dashoffset: 0 !important; }
    }
    /* ---- 🔢 99 table ART (NN_ART_GEOM, game-art/ninetynine/; presentation only — nothing here gates a move) ----
       The game root (phone views and the TV screen) carries .nn-art plus the art URLs as CSS vars
       (nnArtVars) once nnArtLoad has every file; without it every rule below is inert and 99 shows
       its CSS look. Every art layer is pointer-events: none and paints inside a box the CSS look
       already has: a square's tile and chip are absolutely placed children of its button (the chip
       hangs past it only for its shadow), the frame is a border-image (paint only, outside layout),
       the felt and rail are backgrounds — so the art arriving mid-game moves no tap target. */
    .nn-tile, .nn-chip { display: none; }
    .nn-art .nn-tile { display: block; position: absolute; inset: 0; pointer-events: none; border-radius: var(--nn-tile-r);
      background-image: var(--nn-tiles); background-size: 1000% 1000%; background-repeat: no-repeat; }
    .nn-art .nn-chip { display: block; position: absolute; left: var(--nn-chip-l); top: var(--nn-chip-l); width: var(--nn-chip-w); height: var(--nn-chip-w);
      z-index: 1; pointer-events: none; background-image: var(--nn-chips); background-size: var(--nn-chip-bg); background-repeat: no-repeat; }
    .nn-art .nn-chip.nn-chip-in { animation: nnArtChip 0.34s cubic-bezier(0.3, 0.7, 0.4, 1) both; }
    @keyframes nnArtChip { 0% { transform: translateY(-24%) scale(1.32); opacity: 0; } 55% { transform: translateY(0) scale(0.94); opacity: 1; } 100% { transform: none; opacity: 1; } }
    .nn-art .nn-num { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
    /* phone board: the walnut frame + floor as ONE border-image round the grid (14px band, 6px of it
       outside the box), the squares bare boxes with their tile and chip inside */
    .nn-art .nn-board { background: none !important; border-color: transparent !important; isolation: isolate; box-shadow: 0 4px 12px 6px rgba(24,12,4,0.32) !important;
      border-image-source: var(--nn-board); border-image-slice: var(--nn-board-slice) fill; border-image-width: 14px; border-image-outset: 6px; border-image-repeat: stretch; }
    .nn-art .nn-cell { background: none !important; box-shadow: none !important; border-radius: var(--nn-tile-r); }
    /* where the picked card may go (the CSS look's ring is hidden under its inline slot shadow): an
       emerald edge inside each square it may take, every other tile a shade darker (chips stay lit) */
    .nn-art .nn-cell.nn-legal::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: var(--nn-tile-r);
      box-shadow: inset 0 0 0 2px #34d399, inset 0 0 7px 2px rgba(52,211,153,0.6); }
    .nn-art .nn-pick .nn-cell:not(.nn-legal)::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: var(--nn-tile-r);
      background: rgba(28,14,4,0.36); }
    .nn-art .nn-cell.nn-win::after { content: ''; position: absolute; inset: 2%; z-index: 2; pointer-events: none; border-radius: 50%;
      box-shadow: 0 0 0 2px #fde047, 0 0 9px 2px rgba(250,204,21,0.85); }
    /* the immersive table: baize under a vignette, the walnut rail round it */
    .nn-art.nn-table { background: radial-gradient(120% 90% at 50% 36%, rgba(255,255,236,0.07) 0%, rgba(0,0,0,0) 45%, rgba(0,12,6,0.5) 100%), var(--nn-felt) 0 0 / 256px 256px repeat; background-color: #0e5f3f; }
    .nn-art .nn-rail { box-shadow: none !important; border-image-source: var(--nn-rail); border-image-slice: var(--nn-rail-slice); border-image-width: 26px; border-image-repeat: stretch; }
    /* the dealing box (the frame round its floor) and the card backs flying out of it */
    .nn-art .nn-dealbox { background: none !important; border-color: transparent !important; box-shadow: 0 6px 16px rgba(0,0,0,0.3) !important;
      border-image-source: var(--nn-board); border-image-slice: var(--nn-board-slice) fill; border-image-width: 16px; border-image-repeat: stretch; }
    .nn-art .nn-back { background: var(--nn-back) center / cover no-repeat !important; }
    /* 📺 TV: the same board at --s, the felt behind the stage */
    .nn-art.tv-nn { background: radial-gradient(120% 100% at 50% 40%, rgba(255,255,236,0.06) 0%, rgba(0,0,0,0) 50%, rgba(0,10,5,0.5) 100%), var(--nn-felt) 0 0 / 24cqw 24cqw repeat; background-color: #0e5f3f; }
    html.jbf-dark .nn-art.tv-nn { background: radial-gradient(120% 100% at 50% 40%, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.24) 50%, rgba(0,6,3,0.62) 100%), var(--nn-felt) 0 0 / 24cqw 24cqw repeat; }
    .nn-art .tv-nn-board { background: none; box-shadow: 0 1.4cqh 3cqh calc(var(--s) * 0.016) rgba(0,0,0,0.42);
      border-image-source: var(--nn-board); border-image-slice: var(--nn-board-slice) fill; border-image-width: calc(var(--s) * 0.0345); border-image-outset: calc(var(--s) * 0.016); border-image-repeat: stretch; }
    .nn-art .tv-nn-grid { isolation: isolate; }
    .nn-art .tv-nn-cell, .nn-art .tv-nn-cell.tv-nn-a, .nn-art .tv-nn-cell.tv-nn-b, .nn-art .tv-nn-cell.tv-nn-wild { background: none; box-shadow: none; border-radius: var(--nn-tile-r); }
    .nn-art .tv-nn-cell > .tv-nn-num { position: relative; z-index: 3; }
    .nn-art .tv-nn-cell:not(.tv-nn-a):not(.tv-nn-b) > .tv-nn-num { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
    .nn-art .tv-nn-a > .tv-nn-num, .nn-art .tv-nn-b > .tv-nn-num { text-shadow: 0 0 calc(var(--s) * 0.005) rgba(0,0,0,0.8), 0 0.15cqh 0.3cqh rgba(0,0,0,0.6); }
    .nn-art .tv-nn-ocell.tv-nn-wild .tv-nn-num { visibility: hidden; }
    .nn-art .tv-nn-last::after, .nn-art .tv-nn-five::before { z-index: 2; }
    .nn-art .tv-nn-cell.tv-nn-drop, .nn-art .tv-nn-cell.tv-nn-five-in { animation: none; }
    .nn-art .tv-nn-drop > .nn-chip, .nn-art .tv-nn-drop > .tv-nn-num { animation: tvNnDrop 0.45s ease-out both; }
    .nn-art .tv-nn-five-in > .nn-chip, .nn-art .tv-nn-five-in > .tv-nn-num { animation: tvNnFive 0.6s ease-out both; animation-delay: inherit; }
    .nn-art .tv-nn-panel-a .tv-nn-pip.tv-nn-pip-on, .nn-art .tv-nn-sq.tv-nn-sq-a { background: var(--nn-chips) var(--nn-chip-a-pos) / var(--nn-chip-big) no-repeat; box-shadow: none; }
    .nn-art .tv-nn-panel-b .tv-nn-pip.tv-nn-pip-on, .nn-art .tv-nn-sq.tv-nn-sq-b { background: var(--nn-chips) var(--nn-chip-b-pos) / var(--nn-chip-big) no-repeat; box-shadow: none; }
    .nn-art .tv-nn-sq { text-shadow: 0 0 0.4cqh rgba(0,0,0,0.8); }
    .nn-art .tv-nn-wildchip { background: var(--nn-tiles) 100% 0% / 1000% 1000% no-repeat; color: transparent; box-shadow: none; border-radius: var(--nn-tile-r); }
    .nn-art .tv-nn-card.tv-nn-card-back { background: var(--nn-back) center / cover no-repeat; box-shadow: 0 0.8cqh 1.8cqh rgba(0,0,0,0.4); }
    @media (prefers-reduced-motion: reduce) {
      .nn-art .nn-chip.nn-chip-in, .nn-art .tv-nn-drop > .nn-chip, .nn-art .tv-nn-drop > .tv-nn-num, .nn-art .tv-nn-five-in > .nn-chip, .nn-art .tv-nn-five-in > .tv-nn-num { animation: none !important; }
    }
    /* ---- 📺 Nertz on the TV (NertzTv inside the shared TvShell) ----
       the center foundations big on a green felt table with a wooden rim, set on Nertz's wine-red
       backdrop; a glass panel per player or partnership on the right (Team 1 blue, Team 2 orange,
       Team 3 green — the phones' team dots); light card faces; the scores table and the NERTZ!
       moment at the round's end */
    .tv-nz { position: absolute; inset: 0; color: #f8fafc; background: radial-gradient(130% 100% at 36% 36%, #5c1430 0%, #3d0b20 52%, #1c040f 100%); }
    html:not(.jbf-dark) .tv-nz { background: radial-gradient(130% 100% at 36% 36%, #8a1f45 0%, #63142f 52%, #380a1b 100%); }
    .tv-nz .tv-safe { display: grid; grid-template-rows: 9cqh minmax(0, 1fr); row-gap: 1.8cqh; }
    .tv-nz-main { display: grid; grid-template-columns: minmax(0, 1fr) 50cqh; column-gap: 2.4cqh; min-height: 0; }
    .tv-nz-head-r { display: flex; align-items: center; gap: 1.2cqw; }
    .tv-nz-count { display: inline-flex; align-items: center; gap: 0.9cqw; border-radius: 9999px; padding: 0.4cqh 1.6cqw 0.4cqh 1.3cqw; background: rgba(255,255,255,0.1); box-shadow: inset 0 0 0 2px rgba(255,255,255,0.28); white-space: nowrap; }
    .tv-nz-count-lbl { font-size: 1.9cqh; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #cbd5e1; }
    .tv-nz-count-num { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 6.4cqh; line-height: 1; font-variant-numeric: tabular-nums; }
    .tv-nz-stuck { border-radius: 9999px; padding: 0.6cqh 1.2cqw; font-size: 2.4cqh; font-weight: 800; color: #fde68a; background: rgba(251,191,36,0.16); box-shadow: inset 0 0 0 2px rgba(251,191,36,0.45); white-space: nowrap; }
    .tv-nz-mode { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 4cqh; line-height: 1; color: #fecdd3; white-space: nowrap; }
    /* the felt table and the center piles: --cw is a card's width (nzTvLayout) */
    .tv-nz-felt-wrap { position: relative; min-height: 0; min-width: 0; }
    .tv-nz-table { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 2.8cqh 3.4cqh 3cqh; border-radius: 5cqh;
      background: radial-gradient(120% 90% at 50% 42%, #1f9d63 0%, #138a52 42%, #0c6f41 78%, #0a5c37 100%);
      box-shadow: inset 0 0 0 1.1cqh #6b3d1c, inset 0 0 0 1.5cqh #8a5328, inset 0 0 0 1.8cqh #4a2a12, inset 0 0 5cqh rgba(0,0,0,0.55), 0 1.2cqh 3cqh rgba(0,0,0,0.45); }
    .tv-nz-table-h { flex: none; height: 5.4cqh; display: flex; align-items: center; justify-content: space-between; gap: 1.5cqw; min-width: 0; }
    .tv-nz-h { font-size: 2cqh; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(236,253,245,0.82); white-space: nowrap; }
    .tv-nz-last { display: inline-flex; align-items: center; gap: 0.6cqw; min-width: 0; padding: 0.4cqh 0.6cqw 0.4cqh 0.4cqw; border-radius: 9999px; background: rgba(6,13,26,0.6); font-size: 2.3cqh; font-weight: 800; }
    .tv-nz-last .tv-av { width: 3.8cqh; height: 3.8cqh; }
    .tv-nz-last-who { min-width: 0; max-width: 24cqh; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-nz-lastc { flex: none; padding: 0.15cqh 0.7cqw; border-radius: 0.9cqh; background: #fff; font-family: 'Baloo 2', system-ui, sans-serif; font-size: 2.6cqh; line-height: 1.2; }
    .tv-nz-red-ink { color: #e11d48; } .tv-nz-black-ink { color: #1e293b; }
    .tv-nz-piles { flex: 1 1 auto; min-height: 0; display: grid; grid-auto-rows: minmax(0, 1fr); gap: 2cqh; align-content: stretch; justify-items: center; align-items: center; }
    .tv-nz-table-dim .tv-nz-piles { opacity: 0.4; }
    .tv-nz-slot { position: relative; width: var(--cw); height: calc(var(--cw) * 1.4 + 1.8cqh); }
    .tv-nz-card { position: absolute; left: 0; top: 0; width: var(--cw); height: calc(var(--cw) * 1.4); border-radius: calc(var(--cw) * 0.08); background: #fff;
      font-family: 'Baloo 2', system-ui, 'Segoe UI Symbol', 'DejaVu Sans', sans-serif; box-shadow: 0 0.6cqh 1.4cqh rgba(0,0,0,0.38), inset 0 0 0 0.18cqh #cbd5e1; }
    .tv-nz-red { color: #e11d48; } .tv-nz-black { color: #1e293b; }
    .tv-nz-ci { position: absolute; display: flex; flex-direction: column; align-items: center; font-weight: 800; line-height: 0.95; }
    .tv-nz-ci-tl { top: 5%; left: 7%; } .tv-nz-ci-br { bottom: 5%; right: 7%; transform: rotate(180deg); }
    .tv-nz-cr { font-size: calc(var(--cw) * 0.24); letter-spacing: -0.03em; }
    .tv-nz-cs { font-size: calc(var(--cw) * 0.19); }
    .tv-nz-pip { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: calc(var(--cw) * 0.58); line-height: 1; }
    /* a pile's depth: an edge for every few cards under the top one */
    .tv-nz-card.tv-nz-d1 { box-shadow: 0.32cqh 0.32cqh 0 #e2e8f0, 0.32cqh 0.32cqh 0 0.12cqh rgba(15,23,42,0.3), 0 0.8cqh 1.6cqh rgba(0,0,0,0.38), inset 0 0 0 0.18cqh #cbd5e1; }
    .tv-nz-card.tv-nz-d2 { box-shadow: 0.32cqh 0.32cqh 0 #e2e8f0, 0.32cqh 0.32cqh 0 0.12cqh rgba(15,23,42,0.3), 0.64cqh 0.64cqh 0 #d6dce4, 0.64cqh 0.64cqh 0 0.12cqh rgba(15,23,42,0.3), 0 1cqh 1.8cqh rgba(0,0,0,0.4), inset 0 0 0 0.18cqh #cbd5e1; }
    .tv-nz-card.tv-nz-d3 { box-shadow: 0.32cqh 0.32cqh 0 #e2e8f0, 0.32cqh 0.32cqh 0 0.12cqh rgba(15,23,42,0.3), 0.64cqh 0.64cqh 0 #d6dce4, 0.64cqh 0.64cqh 0 0.12cqh rgba(15,23,42,0.3),
      0.96cqh 0.96cqh 0 #c8d0da, 0.96cqh 0.96cqh 0 0.12cqh rgba(15,23,42,0.3), 0 1.2cqh 2cqh rgba(0,0,0,0.42), inset 0 0 0 0.18cqh #cbd5e1; }
    .tv-nz-done .tv-nz-card.tv-nz-d3 { box-shadow: 0 0 0 0.45cqh #fbbf24, 0 0 2.6cqh rgba(251,191,36,0.7), 0.96cqh 0.96cqh 0 #c8d0da, 0.96cqh 0.96cqh 0 0.12cqh rgba(15,23,42,0.3), inset 0 0 0 0.18cqh #cbd5e1; }
    .tv-nz-bar { position: absolute; left: 8%; right: 8%; bottom: 0; height: 0.7cqh; border-radius: 9999px; background: rgba(0,0,0,0.32); overflow: hidden; }
    .tv-nz-bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #fde68a, #f59e0b); }
    .tv-nz-empty { position: absolute; left: 0; top: 0; box-sizing: border-box; width: var(--cw); height: calc(var(--cw) * 1.4); border-radius: calc(var(--cw) * 0.08); border: 0.35cqh dashed rgba(236,253,245,0.35);
      display: flex; align-items: center; justify-content: center; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: calc(var(--cw) * 0.34); color: rgba(236,253,245,0.35); }
    /* a card landing, seen live: it drops in, ringed in its team's colour when the TV can tell */
    .tv-nz-land { animation: tvNzLand 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.15) both; }
    @keyframes tvNzLand { 0% { opacity: 0; transform: translate(-6%, -22%) rotate(-9deg) scale(1.16); } 55% { opacity: 1; transform: translate(0, 2%) rotate(1deg) scale(0.98); } 100% { transform: none; } }
    .tv-nz-land::after { content: ''; position: absolute; inset: -0.6cqh; border-radius: calc(var(--cw) * 0.1); pointer-events: none; animation: tvNzGlow 1.4s ease-out 0.1s both; }
    .tv-nz-land-t0::after { box-shadow: 0 0 0 0.45cqh #60a5fa, 0 0 3cqh rgba(96,165,250,0.85); }
    .tv-nz-land-t1::after { box-shadow: 0 0 0 0.45cqh #fb923c, 0 0 3cqh rgba(251,146,60,0.85); }
    .tv-nz-land-t2::after { box-shadow: 0 0 0 0.45cqh #34d399, 0 0 3cqh rgba(52,211,153,0.85); }
    .tv-nz-land-n::after { box-shadow: 0 0 0 0.45cqh #f8fafc, 0 0 3cqh rgba(248,250,252,0.7); }
    @keyframes tvNzGlow { 0% { opacity: 1; } 65% { opacity: 1; } 100% { opacity: 0; } }
    /* the team panels */
    .tv-nz-side { --nz-step: 0.48cqh; display: flex; flex-direction: column; gap: 1.6cqh; min-height: 0; min-width: 0; }
    .tv-nz-team { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
    .tv-nz-team-h { flex: none; display: flex; align-items: center; gap: 0.8cqw; padding: 1.1cqh 1.2cqw; border-radius: 2.2cqh 2.2cqh 0 0; }
    .tv-nz-t0 .tv-nz-team-h { background: linear-gradient(150deg, #3b82f6 0%, #1d4ed8 100%); }
    .tv-nz-t1 .tv-nz-team-h { background: linear-gradient(150deg, #fb923c 0%, #c2410c 100%); }
    .tv-nz-t2 .tv-nz-team-h { background: linear-gradient(150deg, #34d399 0%, #047857 100%); }
    .tv-nz .tv-nz-team-hot { box-shadow: 0 0 0 0.45cqh #fb7185, 0 0 3cqh rgba(251,113,133,0.6), inset 0 0 0 1px rgba(255,255,255,0.09); }
    .tv-nz .tv-nz-team-won { box-shadow: 0 0 0 0.45cqh #fbbf24, 0 0 3cqh rgba(251,191,36,0.6), inset 0 0 0 1px rgba(255,255,255,0.09); }
    .tv-nz-team-name { flex: 1 1 auto; min-width: 0; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 3.3cqh; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 0.2cqh 0 rgba(0,0,0,0.2); }
    .tv-nz-pill { flex: none; border-radius: 9999px; padding: 0.3cqh 0.8cqw; font-size: 1.5cqh; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #0f172a; background: #fff; white-space: nowrap; }
    .tv-nz-pill.tv-nz-pill-win { color: #422006; background: linear-gradient(150deg, #fde68a, #f59e0b); }
    .tv-nz-pill.tv-nz-pill-hot { color: #9f1239; background: #ffe4e6; }
    .tv-nz-people { flex: none; display: flex; flex-wrap: wrap; gap: 0.6cqh 1cqw; padding: 1cqh 1.2cqw 0.4cqh; min-width: 0; }
    .tv-nz-person { display: flex; align-items: center; gap: 0.5cqw; min-width: 0; flex: 1 1 0; font-size: 2.3cqh; font-weight: 800; }
    .tv-nz-pname { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-nz-role { flex: none; border-radius: 9999px; padding: 0.15cqh 0.6cqw; font-size: 1.8cqh; font-weight: 800; color: #e2e8f0; background: rgba(255,255,255,0.1); white-space: nowrap; }
    .tv-nz-team-h .tv-av { width: 4.6cqh; height: 4.6cqh; }
    .tv-nz-open { color: #94a3b8; }
    .tv-nz-av-empty { flex: none; width: 4.4cqh; height: 4.4cqh; box-sizing: border-box; border-radius: 50%; border: 0.25cqh dashed rgba(148,163,184,0.7); display: inline-flex; align-items: center; justify-content: center; font-size: 2.4cqh; }
    .tv-nz-stats { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 1cqw; padding: 0.6cqh 1.2cqw 0.8cqh; }
    .tv-nz-pile { display: flex; align-items: center; gap: 0.9cqw; min-width: 0; }
    .tv-nz-stack { position: relative; flex: none; width: 7cqh; height: 15.8cqh; }
    .tv-nz-back { position: absolute; left: 0; width: 7cqh; height: 9.8cqh; border-radius: 0.9cqh; background: repeating-linear-gradient(45deg, #be123c 0 0.7cqh, #e11d48 0.7cqh 1.4cqh);
      box-shadow: inset 0 0 0 0.35cqh #fff, 0 0.15cqh 0.3cqh rgba(0,0,0,0.45); }
    .tv-nz-out { position: absolute; left: 0; right: 0; bottom: 0; height: 9.8cqh; display: flex; align-items: center; justify-content: center; font-size: 5cqh; font-weight: 800; color: #86efac;
      border-radius: 0.8cqh; border: 0.3cqh dashed rgba(134,239,172,0.6); box-sizing: border-box; }
    .tv-nz-pile-txt { display: flex; flex-direction: column; min-width: 0; }
    .tv-nz-left-n { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 9.6cqh; line-height: 0.9; }
    .tv-nz-lbl { font-size: 1.8cqh; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #94a3b8; white-space: nowrap; }
    .tv-nz-nums { display: flex; flex-direction: column; align-items: flex-end; text-align: right; min-width: 0; }
    .tv-nz-score { display: flex; flex-direction: column; align-items: flex-end; }
    .tv-nz-score-n { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 9.6cqh; line-height: 0.9; }
    .tv-nz-t0 .tv-nz-score-n { color: #93c5fd; } .tv-nz-t1 .tv-nz-score-n { color: #fdba74; } .tv-nz-t2 .tv-nz-score-n { color: #6ee7b7; }
    .tv-nz-played { position: relative; margin-top: 0.9cqh; font-size: 2.5cqh; font-weight: 800; color: #e2e8f0; white-space: nowrap; }
    .tv-nz-plus { position: absolute; right: 100%; top: -0.4cqh; padding-right: 0.7cqw; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 3.2cqh; color: #fde047; pointer-events: none; animation: tvNzPlus 1.2s ease-out both; }
    @keyframes tvNzPlus { 0% { opacity: 0; transform: translateY(1.5cqh) scale(0.8); } 20% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-2.2cqh); } }
    /* the race to empty the Nertz pile: a pip lights for every card gone from it */
    .tv-nz-race { flex: none; display: flex; gap: 0.35cqw; padding: 0 1.2cqw 1.6cqh; }
    .tv-nz-rpip { flex: 1 1 0; height: 1.8cqh; border-radius: 9999px; box-shadow: inset 0 0 0 0.22cqh rgba(148,163,184,0.5); }
    .tv-nz-t0 .tv-nz-rpip-on { background: #3b82f6; box-shadow: none; } .tv-nz-t1 .tv-nz-rpip-on { background: #f97316; box-shadow: none; } .tv-nz-t2 .tv-nz-rpip-on { background: #10b981; box-shadow: none; }
    /* three teams: smaller panels */
    .tv-nz-side.tv-nz-side-3 { --nz-step: 0.3cqh; }
    .tv-nz-side-3 .tv-nz-team-h { padding: 0.6cqh 1cqw; } .tv-nz-side-3 .tv-nz-team-h .tv-av { width: 3.8cqh; height: 3.8cqh; }
    .tv-nz-side-3 .tv-nz-team-name { font-size: 2.8cqh; }
    .tv-nz-side-3 .tv-nz-people { padding: 0.6cqh 1cqw 0.2cqh; }
    .tv-nz-side-3 .tv-nz-person { font-size: 2cqh; }
    .tv-nz-side-3 .tv-av, .tv-nz-side-3 .tv-nz-av-empty { width: 3.6cqh; height: 3.6cqh; }
    .tv-nz-side-3 .tv-nz-stats { padding: 0.3cqh 1cqw 0.4cqh; }
    .tv-nz-side-3 .tv-nz-stack { width: 4.4cqh; height: 9.9cqh; }
    .tv-nz-side-3 .tv-nz-back, .tv-nz-side-3 .tv-nz-out { width: 4.4cqh; height: 6.2cqh; }
    .tv-nz-side-3 .tv-nz-left-n, .tv-nz-side-3 .tv-nz-score-n { font-size: 5.6cqh; }
    .tv-nz-side-3 .tv-nz-played { font-size: 1.8cqh; margin-top: 0.4cqh; } .tv-nz-side-3 .tv-nz-lbl { font-size: 1.5cqh; }
    .tv-nz-side-3 .tv-nz-race { padding: 0 1cqw 0.9cqh; } .tv-nz-side-3 .tv-nz-rpip { height: 1cqh; }
    /* the lobby: a card over the empty table */
    .tv-nz-lobbycard { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); width: 74cqh; padding: 2.6cqh 2.2cqw; text-align: center; }
    .tv-nz-lobby-title { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 6cqh; line-height: 1; }
    .tv-nz-lobby-line { margin-top: 1.2cqh; font-size: 2.4cqh; font-weight: 700; color: #e2e8f0; }
    .tv-nz-lobby-line b { color: #fff; }
    .tv-nz-lobby-rule { margin-top: 1.8cqh; font-size: 2cqh; font-weight: 700; line-height: 1.3; color: #cbd5e1; }
    /* the round's end: the win banner and the scores table */
    .tv-nz-end { display: flex; flex-direction: column; gap: 1.6cqh; min-height: 0; min-width: 0; }
    .tv-nz-win { flex: none; display: flex; align-items: center; gap: 1.4cqw; height: 13cqh; padding: 0 2cqw; border-radius: 2.4cqh; overflow: hidden; color: #fff;
      background: linear-gradient(150deg, #fcd34d 0%, #f59e0b 55%, #92400e 100%); box-shadow: 0 0.8cqh 2.4cqh rgba(0,0,0,0.35), inset 0 0.25cqh 0 rgba(255,255,255,0.3); }
    .tv-nz-win.tv-nz-t0 { background: linear-gradient(150deg, #60a5fa 0%, #2563eb 55%, #1e3a8a 100%); }
    .tv-nz-win.tv-nz-t1 { background: linear-gradient(150deg, #fdba74 0%, #ea580c 55%, #7c2d12 100%); }
    .tv-nz-win.tv-nz-t2 { background: linear-gradient(150deg, #6ee7b7 0%, #059669 55%, #064e3b 100%); }
    .tv-nz-win-icon { flex: none; font-size: 6.4cqh; line-height: 1; }
    .tv-nz-win-text { min-width: 0; }
    .tv-nz-win-title { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 6cqh; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 0.3cqh 0 rgba(0,0,0,0.2); }
    .tv-nz-win-sub { margin-top: 0.7cqh; font-size: 2.3cqh; font-weight: 800; opacity: 0.95; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-nz-res { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding: 1.8cqh 1.6cqw; overflow: hidden; }
    .tv-nz-res-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 0.9fr); align-items: center; gap: 1cqw; padding: 1.2cqh 1.2cqw; border-radius: 1.6cqh; font-weight: 800; background: rgba(255,255,255,0.06); }
    .tv-nz-res-row + .tv-nz-res-row { margin-top: 0.9cqh; }
    .tv-nz-res-row.tv-nz-res-head { padding-top: 0; padding-bottom: 0.4cqh; background: none; font-size: 1.7cqh; letter-spacing: 0.12em; text-transform: uppercase; color: #94a3b8; }
    .tv-nz-res-head > span:nth-child(n+2) { text-align: center; } .tv-nz-res-head > span:last-child { text-align: right; }
    .tv-nz-res-row.tv-nz-res-won { background: rgba(251,191,36,0.16); box-shadow: inset 0 0 0 0.3cqh rgba(251,191,36,0.75); }
    .tv-nz-res-who { display: flex; flex-direction: column; min-width: 0; }
    .tv-nz-res-name { font-family: 'Baloo 2', system-ui, sans-serif; font-size: 3.6cqh; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-nz-res-sub { margin-top: 0.4cqh; font-size: 1.9cqh; color: #cbd5e1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-nz-res-chip { align-self: flex-start; margin-top: 0.5cqh; border-radius: 9999px; padding: 0.15cqh 0.8cqw; font-size: 1.6cqh; letter-spacing: 0.08em; text-transform: uppercase; color: #4c0519; background: #fda4af; }
    .tv-nz-res-plus { text-align: center; font-family: 'Baloo 2', system-ui, sans-serif; font-size: 4.4cqh; line-height: 1; color: #86efac; }
    .tv-nz-res-left { text-align: center; white-space: nowrap; }
    .tv-nz-res .tv-nz-left-n { font-size: 4.4cqh; }
    .tv-nz-res-pen { font-size: 2.4cqh; color: #fda4af; }
    .tv-nz-res .tv-nz-score-n { text-align: right; font-size: 5.6cqh; }
    .tv-nz-endc { margin-top: auto; padding-top: 1.6cqh; display: flex; align-items: center; justify-content: center; gap: 1.4cqw; }
    .tv-nz-endc-h { font-size: 1.7cqh; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #94a3b8; white-space: nowrap; }
    .tv-nz-endc-row { display: flex; gap: 1cqh; }
    .tv-nz-endc-slot { position: relative; flex: none; width: var(--cw); height: calc(var(--cw) * 1.4); }
    .tv-nz-endc-slot .tv-nz-card { box-shadow: 0 0.4cqh 0.9cqh rgba(0,0,0,0.38), inset 0 0 0 0.12cqh #cbd5e1; }
    .tv-nz-endc-slot.tv-nz-done .tv-nz-card { box-shadow: 0 0 0 0.3cqh #fbbf24, 0 0 1.4cqh rgba(251,191,36,0.6); }
    .tv-nz-res-foot { margin-top: 1.2cqh; padding-top: 1.2cqh; text-align: center; font-size: 2cqh; font-weight: 700; color: #cbd5e1; }
    .tv-nz-end-in .tv-nz-win { animation: tvNzWinIn 0.6s cubic-bezier(0.3, 0.8, 0.3, 1.2) 2.7s backwards; }
    .tv-nz-end-in .tv-nz-res { animation: tvNzRise 0.5s ease-out 3s backwards; }
    @keyframes tvNzWinIn { from { opacity: 0; transform: scale(0.82); } }
    @keyframes tvNzRise { from { opacity: 0; transform: translateY(3cqh); } }
    /* the moments seen live: the deal, everyone stuck, the call */
    .tv-nz-flash { position: absolute; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; pointer-events: none; background: rgba(2,6,23,0.4); animation: tvFade 2.6s ease-out both; }
    .tv-nz-flash-box { padding: 3cqh 4cqw; border-radius: 3cqh; text-align: center; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 6.4cqh; line-height: 1.1; color: #fff;
      background: linear-gradient(160deg, #9f1239 0%, #e11d48 55%, #fb7185 100%); box-shadow: 0 2cqh 6cqh rgba(0,0,0,0.5), inset 0 0.3cqh 0 rgba(255,255,255,0.3); animation: tvPop 2.6s cubic-bezier(0.3, 0.8, 0.3, 1.2) both; }
    .tv-nz-flash-stuck .tv-nz-flash-box { background: linear-gradient(160deg, #92400e 0%, #d97706 55%, #fbbf24 100%); }
    .tv-nz-flash-sub { margin-top: 1cqh; font-size: 2.8cqh; }
    .tv-nz-callfx { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.4cqh; pointer-events: none; background: rgba(2,6,23,0.6); animation: tvFade 2.9s ease-out both; }
    .tv-nz-callfx-word { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 26cqh; line-height: 0.9; letter-spacing: 0.02em; color: #fff;
      text-shadow: 0 0.8cqh 0 #be123c, 0 1.6cqh 4cqh rgba(0,0,0,0.6); animation: tvNzCallIn 2.9s cubic-bezier(0.3, 0.8, 0.3, 1.2) both; }
    @keyframes tvNzCallIn { 0% { opacity: 0; transform: scale(0.4) rotate(-8deg); } 12% { opacity: 1; transform: scale(1.12) rotate(2deg); } 22% { transform: none; } 100% { transform: scale(1.04); } }
    .tv-nz-callfx-who { display: flex; align-items: center; gap: 1cqw; font-size: 4.4cqh; font-weight: 800; color: #fff; }
    .tv-nz-callfx-who .tv-av { width: 7cqh; height: 7cqh; } .tv-nz-callfx-who .tv-av > div { font-size: 3cqh !important; }
    /* nothing going on: the attract screen */
    .tv-nz .tv-safe.tv-nz-attract { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.2cqh; text-align: center; }
    .tv-nz-hero-title { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 14cqh; line-height: 0.9; color: #fff1f2; text-shadow: 0 0.5cqh 0 rgba(76,5,25,0.6), 0 1cqh 3cqh rgba(0,0,0,0.45); }
    .tv-nz-hero-sub { font-size: 3cqh; font-weight: 800; color: #ffe4e6; text-shadow: 0 0.2cqh 0.6cqh rgba(0,0,0,0.4); }
    .tv-nz-hero-line { font-size: 2.3cqh; font-weight: 800; color: #fecdd3; text-shadow: 0 0.2cqh 0.6cqh rgba(0,0,0,0.4); }
    .tv-nz-call-in { display: inline-block; border-radius: 9999px; padding: 1.2cqh 2.6cqw; font-size: 3.4cqh; font-weight: 800; color: #0f172a; background: rgba(255,255,255,0.95); box-shadow: 0 1cqh 3cqh rgba(0,0,0,0.35); }
    .tv-nz-fan { position: relative; flex: none; width: 60cqh; height: calc(var(--cw) * 1.4 + 6cqh); }
    .tv-nz-fan > div { position: absolute; left: 50%; top: 3cqh; width: var(--cw); height: calc(var(--cw) * 1.4); transform-origin: 50% 130%; }
    .tv-nz-fan-0 { transform: translateX(-50%) translateX(-16cqh) rotate(-15deg); } .tv-nz-fan-1 { transform: translateX(-50%) translateX(-5.4cqh) rotate(-5deg); }
    .tv-nz-fan-2 { transform: translateX(-50%) translateX(5.4cqh) rotate(5deg); } .tv-nz-fan-3 { transform: translateX(-50%) translateX(16cqh) rotate(15deg); }
    @media (prefers-reduced-motion: reduce) {
      .tv-nz-land, .tv-nz-land::after, .tv-nz-plus, .tv-nz-flash, .tv-nz-flash-box, .tv-nz-callfx, .tv-nz-callfx-word, .tv-nz-end-in .tv-nz-win, .tv-nz-end-in .tv-nz-res { animation: none !important; }
    }
    /* ---- 📺 Poker on the TV (PokerTv inside the shared TvShell) ----
       the felt big on the left with the seats round its rail (pkTvSeat puts them on an ellipse
       round the middle of the 114 × 81.2 cqh table area — keep the two in step), the board, the pot
       and the bets on the felt, the chip counts down the right; between hands the counts go big */
    .tv-pk { position: absolute; inset: 0; color: #f8fafc; background: radial-gradient(130% 110% at 40% 30%, #183b33 0%, #0e2620 52%, #06130f 100%); }
    html:not(.jbf-dark) .tv-pk { background: radial-gradient(130% 110% at 40% 30%, #2e6b5b 0%, #1d4a3e 52%, #0f2b23 100%); }
    .tv-pk .tv-safe { display: grid; grid-template-rows: 9cqh minmax(0, 1fr); row-gap: 1.8cqh; }
    .tv-pk-n { font-variant-numeric: tabular-nums; }
    .tv-pk-head-r { display: flex; align-items: center; gap: 1.2cqw; }
    .tv-pk-blinds { display: inline-flex; align-items: baseline; gap: 0.8cqw; border-radius: 9999px; padding: 0.7cqh 1.4cqw; background: rgba(255,255,255,0.1); box-shadow: inset 0 0 0 2px rgba(255,255,255,0.22); white-space: nowrap; }
    .tv-pk-blinds-lbl { font-size: 1.9cqh; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #cbd5e1; }
    .tv-pk-blinds-v { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 4cqh; line-height: 1; }
    .tv-pk-blinds-lv { font-size: 2.2cqh; font-weight: 800; color: #fde68a; }
    .tv-pk-main { display: grid; grid-template-columns: 114cqh minmax(0, 1fr); column-gap: 2.4cqh; min-height: 0; }
    .tv-pk-table { position: relative; min-height: 0; }
    .tv-pk-rail { position: absolute; left: 5.5cqh; right: 5.5cqh; top: 3.6cqh; bottom: 3.6cqh; border-radius: 50%; background: linear-gradient(180deg, #6b4428 0%, #4a2d17 45%, #26150a 100%);
      box-shadow: inset 0 0.5cqh 0.7cqh rgba(255,255,255,0.2), inset 0 -0.9cqh 1.8cqh rgba(0,0,0,0.6), 0 1.6cqh 4cqh rgba(0,0,0,0.55); }
    .tv-pk-felt { position: absolute; left: 9.5cqh; right: 9.5cqh; top: 7.4cqh; bottom: 7.4cqh; border-radius: 50%; background: radial-gradient(62% 58% at 50% 40%, #22b06e 0%, #15925a 40%, #0d7446 72%, #095634 100%);
      box-shadow: inset 0 1cqh 3cqh rgba(0,0,0,0.45), inset 0 -1.2cqh 3.4cqh rgba(0,0,0,0.5), 0 0 0 0.35cqh rgba(0,0,0,0.35); }
    .tv-pk-felt::before { content: ''; position: absolute; left: 13%; right: 13%; top: 16%; bottom: 16%; border-radius: 50%; border: 0.28cqh solid rgba(236,253,245,0.13); }
    /* a card face (light in both themes) and a card back; --cw is a card's width */
    .tv-pk-card { position: relative; flex: none; width: var(--cw, 10cqh); height: calc(var(--cw, 10cqh) * 1.4); border-radius: calc(var(--cw, 10cqh) * 0.09); background: #fff;
      font-family: 'Baloo 2', system-ui, 'Segoe UI Symbol', 'DejaVu Sans', sans-serif; box-shadow: 0 0.6cqh 1.4cqh rgba(0,0,0,0.42), inset 0 0 0 0.18cqh #cbd5e1; }
    .tv-pk-red { color: #e11d48; } .tv-pk-black { color: #1e293b; }
    .tv-pk-ci { position: absolute; display: flex; flex-direction: column; align-items: center; font-weight: 800; line-height: 0.95; }
    .tv-pk-ci-tl { top: 5%; left: 7%; } .tv-pk-ci-br { bottom: 5%; right: 7%; transform: rotate(180deg); }
    .tv-pk-cr { font-size: calc(var(--cw, 10cqh) * 0.26); letter-spacing: -0.04em; }
    .tv-pk-cs { font-size: calc(var(--cw, 10cqh) * 0.2); }
    .tv-pk-pip { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: calc(var(--cw, 10cqh) * 0.6); line-height: 1; }
    .tv-pk-back { flex: none; display: inline-block; width: 4.6cqh; height: 6.4cqh; border-radius: 0.6cqh; background: repeating-linear-gradient(45deg, #4f46e5 0 0.45cqh, #3730a3 0.45cqh 0.9cqh);
      box-shadow: inset 0 0 0 0.25cqh #e0e7ff, 0 0.3cqh 0.7cqh rgba(0,0,0,0.5); transform: rotate(-7deg); }
    .tv-pk-back + .tv-pk-back { margin-left: -2cqh; transform: rotate(7deg); }
    /* the board and the pot */
    .tv-pk-board { position: absolute; left: 57cqh; top: 33.2cqh; z-index: 2; transform: translate(-50%, -50%); display: flex; gap: 1.2cqh; --cw: 10cqh; }
    .tv-pk-slot { position: relative; width: var(--cw); height: calc(var(--cw) * 1.4); border-radius: calc(var(--cw) * 0.09); box-shadow: inset 0 0 0 0.3cqh rgba(236,253,245,0.2); background: rgba(0,0,0,0.08); }
    .tv-pk-slot > .tv-pk-card { position: absolute; left: 0; top: 0; }
    .tv-pk-card.tv-pk-best { box-shadow: 0 0 0 0.5cqh #fbbf24, 0 0 2.8cqh rgba(251,191,36,0.85), 0 0.6cqh 1.4cqh rgba(0,0,0,0.42); }
    .tv-pk-card.tv-pk-dimc, .tv-pk-card.tv-pk-lost { filter: brightness(0.62) saturate(0.7); }
    .tv-pk-fall { animation: tvPkFall 0.5s cubic-bezier(0.2, 0.8, 0.3, 1.1) backwards; }
    @keyframes tvPkFall { from { opacity: 0; transform: translateY(-5cqh) rotateY(80deg) scale(0.9); } }
    .tv-pk-turnup { animation: tvPkTurnUp 0.45s ease-out backwards; }
    @keyframes tvPkTurnUp { from { transform: rotateY(88deg) scale(0.92); filter: brightness(0.4); } }
    .tv-pk-pot { position: absolute; z-index: 2; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 0.8cqh; }
    .tv-pk-pot-main { display: flex; align-items: baseline; gap: 1.2cqh; border-radius: 9999px; padding: 0.4cqh 2.2cqh 0.6cqh; background: rgba(6,13,26,0.72); box-shadow: 0 0.6cqh 1.6cqh rgba(0,0,0,0.4), inset 0 0 0 1px rgba(255,255,255,0.12); }
    .tv-pk-pot-lbl { font-size: 2.2cqh; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: #a7f3d0; }
    .tv-pk-pot-n { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 5.6cqh; line-height: 1; color: #fff; }
    .tv-pk-sidepots { display: flex; gap: 0.8cqh; }
    .tv-pk-sidepot { border-radius: 9999px; padding: 0.3cqh 1.2cqh; font-size: 2.1cqh; font-weight: 800; white-space: nowrap; background: rgba(6,13,26,0.6); color: #e2e8f0; }
    .tv-pk-sidepot .tv-pk-n { color: #fde68a; }
    /* chips: a little stack (pkTvChips) */
    .tv-pk-chips { --pk-chip-step: 0.55cqh; position: relative; display: inline-block; flex: none; width: 3.6cqh; height: 4.4cqh; }
    .tv-pk-chip { position: absolute; left: 0; width: 3.6cqh; height: 1.4cqh; border-radius: 50%; box-shadow: inset 0 0 0 0.28cqh rgba(255,255,255,0.75), 0 0.2cqh 0.3cqh rgba(0,0,0,0.55); }
    .tv-pk-chip-w { background: #e2e8f0; box-shadow: inset 0 0 0 0.28cqh #64748b, 0 0.2cqh 0.3cqh rgba(0,0,0,0.55); } .tv-pk-chip-r { background: #dc2626; } .tv-pk-chip-b { background: #2563eb; }
    .tv-pk-chip-g { background: #16a34a; } .tv-pk-chip-k { background: #111827; }
    .tv-pk-pot-chips { transform: scale(1.3); }
    /* the seats: a plate (avatar, name, stack, its tag) on the rail; its two cards stick out toward the middle */
    .tv-pk-seat { position: absolute; z-index: 4; width: 0; height: 0; }
    .tv-pk-plate { position: absolute; left: -11.5cqh; top: -4.3cqh; width: 23cqh; height: 8.6cqh; box-sizing: border-box; display: flex; align-items: center; gap: 1cqh; padding: 0 1.4cqh 0 0.8cqh;
      border-radius: 4.3cqh; background: rgba(6,13,26,0.88); box-shadow: 0 0.8cqh 2cqh rgba(0,0,0,0.45), inset 0 0 0 1px rgba(255,255,255,0.14); }
    .tv-pk-av { flex: none; width: 6.8cqh; height: 6.8cqh; border-radius: 9999px; display: inline-flex; box-shadow: 0 0 0 0.35cqh rgba(255,255,255,0.85); }
    .tv-pk-av > div { width: 100% !important; height: 100% !important; font-size: 2.8cqh !important; }
    .tv-pk-plate-text { display: flex; flex-direction: column; gap: 0.25cqh; min-width: 0; }
    .tv-pk-name { font-size: 2.3cqh; font-weight: 800; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-pk-stack-line { display: flex; align-items: center; gap: 0.7cqh; min-width: 0; }
    .tv-pk-stack { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 3.2cqh; line-height: 1; color: #fde68a; }
    .tv-pk-tag { flex: none; border-radius: 9999px; padding: 0.15cqh 0.7cqh; font-size: 1.45cqh; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; color: #e2e8f0; background: rgba(255,255,255,0.16); }
    .tv-pk-tag.tv-pk-tag-allin { color: #fff; background: #e11d48; }
    .tv-pk-dealer { position: absolute; right: -1cqh; top: -1.3cqh; width: 3.6cqh; height: 3.6cqh; border-radius: 9999px; display: flex; align-items: center; justify-content: center;
      font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 2.1cqh; color: #0f172a; background: radial-gradient(circle at 40% 35%, #ffffff 0%, #e2e8f0 70%, #cbd5e1 100%); box-shadow: inset 0 0 0 0.25cqh #94a3b8, 0 0.4cqh 0.8cqh rgba(0,0,0,0.5); }
    .tv-pk-blind { position: absolute; right: -0.6cqh; bottom: -1.2cqh; border-radius: 9999px; padding: 0.1cqh 0.8cqh; font-size: 1.6cqh; font-weight: 800; letter-spacing: 0.04em; box-shadow: 0 0.3cqh 0.6cqh rgba(0,0,0,0.45); }
    .tv-pk-blind-s { color: #082f49; background: #7dd3fc; } .tv-pk-blind-b { color: #451a03; background: #fcd34d; }
    .tv-pk-seat-turn .tv-pk-plate { box-shadow: 0 0 0 0.5cqh #34d399, 0 0 3cqh rgba(52,211,153,0.8); animation: tvPkGlow 1.4s ease-in-out infinite; }
    @keyframes tvPkGlow { 0%, 100% { box-shadow: 0 0 0 0.45cqh #34d399, 0 0 2cqh rgba(52,211,153,0.6); } 50% { box-shadow: 0 0 0 0.75cqh #34d399, 0 0 4cqh rgba(52,211,153,0.95); } }
    .tv-pk-seat-allin .tv-pk-plate { box-shadow: 0 0 0 0.4cqh #fb7185, 0 0 2.4cqh rgba(244,63,94,0.6); }
    .tv-pk-seat-turn.tv-pk-seat-allin .tv-pk-plate { box-shadow: 0 0 0 0.5cqh #34d399, 0 0 3cqh rgba(52,211,153,0.8); }
    .tv-pk-seat-folded .tv-pk-plate { opacity: 0.5; }
    .tv-pk-seat-out .tv-pk-plate { opacity: 0.42; filter: grayscale(1); }
    .tv-pk-seat-won .tv-pk-plate { box-shadow: 0 0 0 0.5cqh #fbbf24, 0 0 3.4cqh rgba(251,191,36,0.85); }
    .tv-pk-won { position: absolute; left: 50%; bottom: -2.4cqh; z-index: 3; transform: translateX(-50%); border-radius: 9999px; padding: 0.15cqh 1.1cqh; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 2.6cqh; line-height: 1.2;
      white-space: nowrap; color: #422006; background: linear-gradient(150deg, #fde68a, #f59e0b); box-shadow: 0 0.4cqh 1cqh rgba(0,0,0,0.45); animation: tvPkPlus 0.5s cubic-bezier(0.3, 0.8, 0.3, 1.4) backwards; }
    .tv-pk-seat-down .tv-pk-won { bottom: auto; top: -2.4cqh; }
    @keyframes tvPkPlus { from { opacity: 0; transform: translateX(-50%) scale(0.5); } }
    .tv-pk-hole { position: absolute; left: 0; z-index: 1; display: flex; align-items: flex-end; transform: translateX(-50%); }
    .tv-pk-hole-up { bottom: 3.2cqh; } .tv-pk-hole-down { top: 3.2cqh; align-items: flex-start; }
    .tv-pk-hole-l { left: -5.2cqh; } .tv-pk-hole-r { left: 5.2cqh; }
    /* the side panel: the chip counts, and the hand's card under them */
    .tv-pk-side { display: flex; flex-direction: column; gap: 1.6cqh; min-height: 0; min-width: 0; }
    .tv-pk-side > .tv-pk-counts { flex: 1 1 auto; }
    .tv-pk-info { flex: none; display: flex; flex-direction: column; gap: 0.9cqh; padding: 1.5cqh 1.6cqh 1.6cqh; min-width: 0; }
    .tv-pk-info-h { display: flex; align-items: baseline; justify-content: space-between; gap: 1cqh; }
    .tv-pk-info-line { font-size: 2.3cqh; font-weight: 700; color: #e2e8f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-pk-info-line b { color: #fff; font-weight: 800; }
    .tv-pk-streets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6cqh; }
    .tv-pk-st { border-radius: 9999px; padding: 0.35cqh 0; text-align: center; font-size: 1.8cqh; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #64748b; background: rgba(255,255,255,0.06); }
    .tv-pk-st.tv-pk-st-done { color: #94a3b8; background: rgba(255,255,255,0.1); }
    .tv-pk-st.tv-pk-st-on { color: #052e16; background: linear-gradient(150deg, #6ee7b7, #10b981); }
    .tv-pk-hole-deal { animation: tvPkAppear 0.25s ease-out 1.1s backwards; }
    @keyframes tvPkAppear { from { opacity: 0; } }
    .tv-pk-hole-shown { --cw: 6.8cqh; gap: 0.5cqh; }
    .tv-pk-handname { position: absolute; left: 50%; bottom: 0.6cqh; z-index: 2; transform: translateX(-50%); border-radius: 9999px; padding: 0.15cqh 1cqh; font-size: 1.8cqh; font-weight: 800; white-space: nowrap;
      color: #f8fafc; background: rgba(15,23,42,0.88); box-shadow: 0 0.3cqh 0.8cqh rgba(0,0,0,0.4); }
    .tv-pk-handname.tv-pk-handname-won { color: #422006; background: linear-gradient(150deg, #fde68a, #f59e0b); }
    /* the callout: an action at its seat, seen live */
    .tv-pk-callout { position: absolute; left: 0; z-index: 6; transform: translateX(-50%); border-radius: 9999px; padding: 0.5cqh 1.8cqh; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 3.4cqh; line-height: 1.15; white-space: nowrap;
      box-shadow: 0 0.8cqh 2cqh rgba(0,0,0,0.5); animation: tvPkCall 2.6s cubic-bezier(0.3, 0.8, 0.3, 1) both; }
    .tv-pk-callout-up { bottom: 5cqh; } .tv-pk-callout-down { top: 5cqh; }
    .tv-pk-callout-fold { color: #e2e8f0; background: #475569; } .tv-pk-callout-check { color: #0f172a; background: #e2e8f0; }
    .tv-pk-callout-call { color: #fff; background: #059669; } .tv-pk-callout-bet, .tv-pk-callout-raise { color: #422006; background: linear-gradient(150deg, #fde68a, #f59e0b); }
    .tv-pk-callout-allin { color: #fff; background: linear-gradient(150deg, #fb7185, #e11d48); font-size: 4cqh; box-shadow: 0 0 0 0.4cqh rgba(255,255,255,0.85), 0 0 3cqh rgba(244,63,94,0.8); }
    @keyframes tvPkCall { 0% { opacity: 0; transform: translateX(-50%) scale(0.55); } 10% { opacity: 1; transform: translateX(-50%) scale(1.08); } 18% { transform: translateX(-50%) scale(1); } 82% { opacity: 1; transform: translateX(-50%) scale(1); } 100% { opacity: 0; transform: translateX(-50%) scale(0.96); } }
    /* the bets: chips and the amount between a seat and the board; a bet seen going in slides from its seat */
    .tv-pk-bet { position: absolute; z-index: 3; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 0.6cqh; }
    .tv-pk-bet-n { border-radius: 9999px; padding: 0.15cqh 1cqh; font-size: 2.5cqh; font-weight: 800; white-space: nowrap; color: #fff; background: rgba(6,13,26,0.75); }
    .tv-pk-bet-in { animation: tvPkSlide 0.5s cubic-bezier(0.2, 0.8, 0.3, 1) backwards; }
    @keyframes tvPkSlide { from { transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0.6); opacity: 0.3; } }
    /* motion: the deal, a street's bets swept to the pot, the pot pushed to the winner(s) */
    .tv-pk-fx { position: absolute; inset: 0; z-index: 7; pointer-events: none; }
    .tv-pk-dealcard { position: absolute; width: 3.6cqh; height: 5cqh; margin: -2.5cqh 0 0 -1.8cqh; border-radius: 0.5cqh; background: repeating-linear-gradient(45deg, #4f46e5 0 0.4cqh, #3730a3 0.4cqh 0.8cqh);
      box-shadow: inset 0 0 0 0.2cqh #e0e7ff, 0 0.3cqh 0.7cqh rgba(0,0,0,0.5); animation: tvPkDeal 0.75s cubic-bezier(0.25, 0.7, 0.3, 1) both; }
    @keyframes tvPkDeal { 0% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(0.6) rotate(-30deg); } 15% { opacity: 1; } 75% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
    .tv-pk-sweep { position: absolute; transform: translate(-50%, -50%); animation: tvPkSweep 0.75s cubic-bezier(0.5, 0, 0.75, 0.4) both; }
    @keyframes tvPkSweep { from { opacity: 1; transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))); } to { opacity: 0; transform: translate(-50%, -50%) scale(0.7); } }
    .tv-pk-push { position: absolute; transform: translate(-50%, -50%); animation: tvPkPush 0.95s ease-in both; }
    @keyframes tvPkPush { 0% { opacity: 0; transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1.3); } 12% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); } }
    /* the showdown's result where the pot was */
    .tv-pk-result { position: absolute; z-index: 5; width: 58cqh; transform: translateX(-50%); display: flex; flex-direction: column; gap: 0.7cqh; }
    .tv-pk-result-in { animation: tvPkRise 0.5s cubic-bezier(0.3, 0.8, 0.3, 1.2) backwards; }
    @keyframes tvPkRise { from { opacity: 0; transform: translateX(-50%) translateY(2.5cqh) scale(0.94); } }
    .tv-pk-res-line { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: center; column-gap: 1.2cqh; row-gap: 0.2cqh; border-radius: 2cqh; padding: 0.7cqh 1.8cqh; text-align: center;
      color: #422006; background: linear-gradient(150deg, #fde68a 0%, #fbbf24 55%, #f59e0b 100%); box-shadow: 0 0.8cqh 2cqh rgba(0,0,0,0.45), inset 0 0.25cqh 0 rgba(255,255,255,0.45); }
    .tv-pk-res-line.tv-pk-res-side { color: #f8fafc; background: rgba(6,13,26,0.86); box-shadow: 0 0.6cqh 1.6cqh rgba(0,0,0,0.4), inset 0 0 0 1px rgba(253,230,138,0.45); }
    .tv-pk-res-pot { font-size: 1.9cqh; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; white-space: nowrap; }
    .tv-pk-res-who { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 3.6cqh; line-height: 1.1; white-space: nowrap; }
    .tv-pk-res-side .tv-pk-res-who { font-size: 2.8cqh; }
    .tv-pk-res-hand { font-size: 2.6cqh; font-weight: 800; white-space: nowrap; }
    .tv-pk-res-side .tv-pk-res-hand { font-size: 2.2cqh; color: #fde68a; }
    .tv-pk-res-solo { font-size: 2.8cqh; font-weight: 800; }
    .tv-pk-res-sub { flex-basis: 100%; font-size: 2cqh; font-weight: 800; opacity: 0.8; }
    /* the lobby / waiting card in the middle of the felt */
    .tv-pk-mid { position: absolute; z-index: 5; width: 66cqh; transform: translate(-50%, -50%); padding: 2.2cqh 2.4cqh; text-align: center; }
    .tv-pk-mid-h { font-size: 2cqh; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #94a3b8; white-space: nowrap; }
    .tv-pk-mid-title { margin-top: 0.6cqh; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 5.6cqh; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-pk-mid-line { margin-top: 0.9cqh; font-size: 2.3cqh; font-weight: 700; color: #e2e8f0; }
    .tv-pk-mid-line b { color: #fff; }
    /* the chip counts (the side panel, and big between hands) */
    .tv-pk-counts { display: flex; flex-direction: column; min-height: 0; min-width: 0; overflow: hidden; padding: 1.6cqh 1.6cqh 1.2cqh; }
    .tv-pk-counts-h { flex: none; display: flex; align-items: baseline; justify-content: space-between; gap: 1cqh; }
    .tv-pk-h { font-size: 2.1cqh; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #94a3b8; white-space: nowrap; }
    .tv-pk-counts-sub { font-size: 2cqh; font-weight: 800; color: #cbd5e1; white-space: nowrap; }
    .tv-pk-rows { flex: 1 1 auto; min-height: 0; margin-top: 1.2cqh; display: flex; flex-direction: column; gap: 0.8cqh; overflow: hidden; }
    .tv-pk-row { position: relative; flex: none; display: grid; grid-template-columns: 2.6cqh 4.6cqh minmax(0, 1fr) auto auto; align-items: center; column-gap: 1cqh; padding: 0.7cqh 1cqh 1.1cqh; border-radius: 1.4cqh; background: rgba(255,255,255,0.05); }
    .tv-pk-row.tv-pk-row-up { background: rgba(251,191,36,0.14); box-shadow: inset 0 0 0 1px rgba(253,230,138,0.45); }
    .tv-pk-row.tv-pk-row-out { opacity: 0.5; }
    .tv-pk-rank { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 2.4cqh; color: #94a3b8; text-align: center; }
    .tv-pk-row .tv-av { width: 4.6cqh; height: 4.6cqh; }
    .tv-pk-row-name { display: flex; align-items: center; gap: 0.8cqh; min-width: 0; font-size: 2.4cqh; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-pk-row-tag { flex: none; border-radius: 9999px; padding: 0.1cqh 0.6cqh; font-size: 1.35cqh; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #e2e8f0; background: rgba(255,255,255,0.16); }
    .tv-pk-row-stack { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 3.2cqh; line-height: 1; color: #fde68a; text-align: right; }
    .tv-pk-row-d, .tv-pk-row-net { font-size: 2cqh; font-weight: 800; text-align: right; white-space: nowrap; color: #cbd5e1; }
    .tv-pk-good { color: #6ee7b7; } .tv-pk-bad { color: #fda4af; }
    .tv-pk-bar { position: absolute; left: 4.6cqh; right: 1cqh; bottom: 0.35cqh; height: 0.45cqh; border-radius: 9999px; background: rgba(255,255,255,0.08); overflow: hidden; }
    .tv-pk-bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #fde68a, #f59e0b); }
    .tv-pk-none { font-size: 2.2cqh; font-weight: 700; color: #94a3b8; }
    .tv-pk-counts-foot { flex: none; margin-top: 1cqh; display: flex; justify-content: space-between; gap: 1cqh; font-size: 1.9cqh; font-weight: 800; color: #94a3b8; white-space: nowrap; overflow: hidden; }
    .tv-pk-counts-big { padding: 2.2cqh 2.6cqh 1.6cqh; }
    .tv-pk-counts-big .tv-pk-h { font-size: 2.6cqh; }
    .tv-pk-counts-big .tv-pk-counts-sub { font-size: 2.6cqh; }
    .tv-pk-counts-big .tv-pk-rows { gap: 1cqh; margin-top: 1.6cqh; }
    .tv-pk-counts-big .tv-pk-row { grid-template-columns: 3.4cqh 6cqh minmax(0, 1fr) 16cqh 13cqh 13cqh; padding: 1.1cqh 1.4cqh 1.6cqh; column-gap: 1.4cqh; }
    .tv-pk-counts-big .tv-pk-row.tv-pk-row-head { padding-top: 0; padding-bottom: 0; background: none; font-size: 1.9cqh; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #94a3b8; }
    .tv-pk-row-head > span:nth-child(n+4) { text-align: right; white-space: nowrap; }
    .tv-pk-counts-big .tv-av { width: 6cqh; height: 6cqh; }
    .tv-pk-counts-big .tv-av > div { font-size: 2.4cqh !important; }
    .tv-pk-counts-big .tv-pk-rank { font-size: 3cqh; }
    .tv-pk-counts-big .tv-pk-row-name { font-size: 3.2cqh; }
    .tv-pk-counts-big .tv-pk-row-stack { font-size: 4.6cqh; }
    .tv-pk-counts-big .tv-pk-row-d, .tv-pk-counts-big .tv-pk-row-net { font-size: 2.6cqh; }
    .tv-pk-counts-big .tv-pk-bar { left: 6cqh; right: 1.4cqh; height: 0.55cqh; }
    .tv-pk-counts-big .tv-pk-counts-foot { font-size: 2.2cqh; }
    /* between hands: the counts big, the last hand beside them */
    .tv-pk-between { display: grid; grid-template-columns: minmax(0, 1fr) 56cqh; column-gap: 2.4cqh; min-height: 0; }
    .tv-pk-between-side { display: flex; flex-direction: column; gap: 1.8cqh; min-height: 0; min-width: 0; }
    .tv-pk-last { display: flex; flex-direction: column; gap: 1.2cqh; padding: 2.2cqh 2.4cqh; min-width: 0; }
    .tv-pk-last-line { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 1.2cqh; row-gap: 0.3cqh; font-size: 2.6cqh; font-weight: 700; color: #e2e8f0; }
    .tv-pk-last-line b { font-family: 'Baloo 2', system-ui, sans-serif; font-size: 3.6cqh; line-height: 1.1; color: #fff; }
    .tv-pk-last-pot { flex-basis: 100%; font-size: 1.9cqh; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #94a3b8; }
    .tv-pk-last-pot .tv-pk-n { color: #fde68a; }
    .tv-pk-last-hand { font-size: 2.6cqh; font-weight: 800; color: #fde68a; }
    .tv-pk-last-cards { display: flex; gap: 0.8cqh; margin-top: 0.4cqh; }
    .tv-pk-next { align-self: stretch; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 9999px; padding: 1cqh 2.2cqh; font-size: 2.5cqh; font-weight: 800; color: #0f172a; background: rgba(255,255,255,0.94); box-shadow: 0 0.8cqh 2cqh rgba(0,0,0,0.35); }
    /* a tournament's end, a closed cash table */
    .tv-pk-full { display: flex; flex-direction: column; align-items: center; gap: 2cqh; min-height: 0; }
    .tv-pk-win { position: relative; flex: none; width: 108cqh; height: 15cqh; display: flex; align-items: center; gap: 2cqh; padding: 0 3cqh; border-radius: 3cqh; overflow: hidden; isolation: isolate; color: #422006;
      background: linear-gradient(150deg, #fde68a 0%, #fbbf24 50%, #d97706 100%); box-shadow: 0 1cqh 3cqh rgba(0,0,0,0.45), inset 0 0.3cqh 0 rgba(255,255,255,0.45); }
    .tv-pk-win::before { content: ''; position: absolute; left: 50%; top: 50%; width: 140cqh; height: 140cqh; margin: -70cqh 0 0 -70cqh; z-index: -1; pointer-events: none;
      background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255,255,255,0.18) 0deg 9deg, rgba(255,255,255,0) 9deg 22deg); animation: sbRays 40s linear infinite; }
    .tv-pk-win-in { animation: tvPkRise2 0.6s cubic-bezier(0.3, 0.8, 0.3, 1.2) 0.3s backwards; }
    @keyframes tvPkRise2 { from { opacity: 0; transform: translateY(3cqh) scale(0.94); } }
    .tv-pk-win-icon { flex: none; font-size: 8cqh; line-height: 1; }
    .tv-av.tv-pk-win-av { width: 10cqh; height: 10cqh; } .tv-av.tv-pk-win-av > div { font-size: 4cqh !important; box-shadow: 0 0 0 0.5cqh #fff; }
    .tv-pk-win-text { min-width: 0; }
    .tv-pk-win-title { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 7cqh; line-height: 1; white-space: nowrap; }
    .tv-pk-win-sub { margin-top: 0.6cqh; font-size: 2.5cqh; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-pk-final { width: 108cqh; min-height: 0; display: flex; flex-direction: column; padding: 2.2cqh 3cqh 1.8cqh; overflow: hidden; }
    .tv-pk-final-title { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 6cqh; line-height: 1; text-align: center; }
    .tv-pk-final-sub { margin-top: 0.6cqh; text-align: center; font-size: 2.3cqh; font-weight: 800; color: #cbd5e1; }
    .tv-pk-final-rows { margin-top: 1.6cqh; display: flex; flex-direction: column; gap: 0.9cqh; min-height: 0; overflow: hidden; }
    .tv-pk-final-row { flex: none; display: grid; grid-template-columns: 4cqh 6cqh minmax(0, 1fr) 18cqh 16cqh; align-items: center; column-gap: 1.6cqh; padding: 0.7cqh 1.6cqh; border-radius: 1.6cqh; background: rgba(255,255,255,0.05); }
    .tv-pk-final-row .tv-av { width: 6cqh; height: 6cqh; } .tv-pk-final-row .tv-av > div { font-size: 2.4cqh !important; }
    .tv-pk-final-row .tv-pk-rank { font-size: 3.2cqh; }
    .tv-pk-final-row .tv-pk-row-name { font-size: 3.2cqh; }
    .tv-pk-final-row.tv-pk-final-top { background: rgba(251,191,36,0.16); box-shadow: inset 0 0 0 1px rgba(253,230,138,0.5); }
    .tv-pk-final-head { padding-top: 0; padding-bottom: 0; background: none; font-size: 1.9cqh; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #94a3b8; }
    .tv-pk-final-head > span:nth-child(n+4) { text-align: right; }
    .tv-pk-final-t { flex: 1 1 auto; }
    .tv-pk-final-t .tv-pk-final-row + .tv-pk-final-row { margin-top: 0.9cqh; }
    .tv-pk-final-net { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 4cqh; line-height: 1; text-align: right; }
    .tv-pk-final-money { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 3.4cqh; line-height: 1; text-align: right; font-variant-numeric: tabular-nums; }
    .tv-pk-final-foot { flex: none; margin-top: auto; padding-top: 1.4cqh; text-align: center; font-size: 2.3cqh; font-weight: 800; color: #cbd5e1; }
    /* nothing going on: the attract screen */
    .tv-pk .tv-safe.tv-pk-attract { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.2cqh; text-align: center; }
    .tv-pk-hero-title { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 14cqh; line-height: 0.9; color: #ecfdf5; text-shadow: 0 0.5cqh 0 rgba(2,44,34,0.6), 0 1cqh 3cqh rgba(0,0,0,0.45); }
    .tv-pk-hero-sub { font-size: 3cqh; font-weight: 800; color: #d1fae5; text-shadow: 0 0.2cqh 0.6cqh rgba(0,0,0,0.4); }
    .tv-pk-hero-line { font-size: 2.3cqh; font-weight: 800; color: #a7f3d0; text-shadow: 0 0.2cqh 0.6cqh rgba(0,0,0,0.4); }
    .tv-pk-call { display: inline-block; border-radius: 9999px; padding: 1.2cqh 2.6cqw; font-size: 3.4cqh; font-weight: 800; color: #0f172a; background: rgba(255,255,255,0.95); box-shadow: 0 1cqh 3cqh rgba(0,0,0,0.35); }
    .tv-pk-fan { position: relative; flex: none; width: 76cqh; height: 30cqh; --cw: 15cqh; }
    .tv-pk-fan > div { position: absolute; left: 50%; top: 2cqh; width: var(--cw); height: calc(var(--cw) * 1.4); transform-origin: 50% 130%; }
    .tv-pk-fan-0 { transform: translateX(-50%) translateX(-19cqh) rotate(-18deg); } .tv-pk-fan-1 { transform: translateX(-50%) translateX(-9.5cqh) rotate(-9deg); }
    .tv-pk-fan-2 { transform: translateX(-50%); } .tv-pk-fan-3 { transform: translateX(-50%) translateX(9.5cqh) rotate(9deg); } .tv-pk-fan-4 { transform: translateX(-50%) translateX(19cqh) rotate(18deg); }
    .tv-pk-fan .tv-pk-chips { position: absolute; bottom: 0; transform: scale(2); }
    .tv-pk-fan-chips-a { left: 6cqh; } .tv-pk-fan-chips-b { right: 6cqh; }
    @media (prefers-reduced-motion: reduce) {
      .tv-pk-fall, .tv-pk-turnup, .tv-pk-seat-turn .tv-pk-plate, .tv-pk-won, .tv-pk-hole-deal, .tv-pk-callout, .tv-pk-bet-in, .tv-pk-dealcard, .tv-pk-sweep, .tv-pk-push, .tv-pk-result-in, .tv-pk-win::before, .tv-pk-win-in { animation: none !important; }
      .tv-pk-dealcard, .tv-pk-sweep, .tv-pk-push { display: none; }
    }
    /* ---- 📺 SquadTiles on the TV (SquadTilesTv inside the shared TvShell) ----
       the board big in the middle with the phones' own st-* squares and wooden tiles in a wooden
       frame, the players down the left (tile COUNTS as blank tile backs), the last play, the bag and
       the moves down the right; a play the TV sees land drops its tiles in and is called out big */
    .tv-st { position: absolute; inset: 0; color: #f8fafc; background: radial-gradient(130% 100% at 50% 30%, #0f3b52 0%, #0b2536 55%, #06131d 100%); }
    html:not(.jbf-dark) .tv-st { background: radial-gradient(130% 100% at 50% 30%, #2f8fb3 0%, #1b6f93 55%, #0f4a66 100%); }
    .tv-st .tv-safe { display: grid; grid-template-rows: 9cqh minmax(0, 1fr); row-gap: 1.8cqh; }
    .tv-st-head-r { display: flex; align-items: center; gap: 1cqw; min-width: 0; }
    .tv-st .tv-st-chip { display: inline-flex; align-items: center; border-radius: 9999px; padding: 0.5cqh 1.1cqw; font-size: 2cqh; font-weight: 800; line-height: 1.2; white-space: nowrap; color: #e2e8f0; background: rgba(255,255,255,0.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18); }
    .tv-st .tv-st-chip-live { color: #fff7ed; background: rgba(234,88,12,0.55); }
    .tv-st .tv-st-chip-rx { color: #e0f2fe; background: rgba(2,132,199,0.5); }
    .tv-st .tv-st-gchip { color: #fef9c3; background: rgba(250,204,21,0.2); box-shadow: inset 0 0 0 1px rgba(250,204,21,0.45); }
    .tv-st .tv-st-chip-bingo { color: #422006; background: linear-gradient(150deg, #fde68a, #f59e0b); }
    .tv-st-main { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); column-gap: 2.4cqh; min-height: 0; }
    .tv-st-center { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4cqh; min-height: 0; width: 80cqh; }
    /* the board: --s is its side */
    .tv-st-board { position: relative; flex: none; box-sizing: border-box; width: var(--s); height: var(--s); padding: calc(var(--s) * 0.018); border: calc(var(--s) * 0.004) solid; border-radius: calc(var(--s) * 0.024);
      box-shadow: 0 0 0 calc(var(--s) * 0.008) #6b4522, 0 0 0 calc(var(--s) * 0.014) #8a5f33, 0 1.6cqh 3.6cqh rgba(0,0,0,0.45); }
    .tv-st-board.tv-st-dim { opacity: 0.45; }
    .tv-st-grid { width: 100%; height: 100%; display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); grid-template-rows: repeat(15, minmax(0, 1fr)); gap: calc(var(--s) * 0.0035); }
    .tv-st-board .tv-st-cell { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 0; border-radius: calc(var(--s) * 0.006); }
    .tv-st-board .tv-st-l { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: calc(var(--s) * 0.04); line-height: 1; }
    .tv-st-board .tv-st-v { position: absolute; right: 9%; bottom: 5%; font-size: calc(var(--s) * 0.0155); font-weight: 800; line-height: 1; }
    .tv-st-board .tv-st-pl { font-size: calc(var(--s) * 0.0165); font-weight: 800; letter-spacing: 0.02em; }
    .tv-st-board .tv-st-star { font-size: calc(var(--s) * 0.032); line-height: 1; }
    /* the last play wears a ring (three classes: html.jbf-dark .st-tile's shadow must not win); tiles
       the TV saw land drop in one after another */
    .tv-st .tv-st-board .tv-st-ring { z-index: 2; box-shadow: 0 0 0 calc(var(--s) * 0.0045) #22d3ee, 0 0 calc(var(--s) * 0.016) rgba(34,211,238,0.85), inset 0 0.15cqh 0 rgba(255,255,255,0.6); }
    .tv-st-board .tv-st-drop { animation: tvStDrop 0.5s cubic-bezier(0.3, 0.8, 0.3, 1.25) backwards; }
    @keyframes tvStDrop { from { opacity: 0; transform: translateY(-70%) scale(1.6); } 60% { opacity: 1; } }
    /* a play called out over the board, on the half away from it */
    .tv-st-callout { position: absolute; left: 50%; z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 1cqh; padding: 1.8cqh 2.4cqh; border-radius: 2.4cqh; max-width: 92%;
      background: rgba(4,12,24,0.88); box-shadow: 0 1.4cqh 4cqh rgba(0,0,0,0.5), inset 0 0 0 0.25cqh rgba(34,211,238,0.6); animation: tvStCallout 3.6s ease-out both; pointer-events: none; }
    .tv-st-callout-top { top: 7%; } .tv-st-callout-bot { bottom: 7%; }
    .tv-st-callout.tv-st-callout-bingo { box-shadow: 0 1.4cqh 4cqh rgba(0,0,0,0.5), inset 0 0 0 0.35cqh #fbbf24, 0 0 5cqh rgba(251,191,36,0.55); animation-duration: 4.6s; }
    @keyframes tvStCallout { 0% { opacity: 0; transform: translateX(-50%) scale(0.6); } 10% { opacity: 1; transform: translateX(-50%) scale(1.06); } 16% { transform: translateX(-50%) scale(1); } 84% { opacity: 1; transform: translateX(-50%) scale(1); } 100% { opacity: 0; transform: translateX(-50%) scale(1); } }
    .tv-st-callout-words { display: flex; flex-wrap: wrap; justify-content: center; gap: 1cqh 1.6cqw; }
    .tv-st-callout-line { display: flex; align-items: baseline; gap: 1.2cqw; white-space: nowrap; }
    .tv-st-callout-pts { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 7cqh; line-height: 1; color: #4ade80; text-shadow: 0 0.3cqh 0 rgba(0,0,0,0.35); }
    .tv-st-callout-who { font-size: 3cqh; font-weight: 800; color: #e2e8f0; }
    .tv-st-bingo { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 9cqh; line-height: 0.9; letter-spacing: 0.08em; color: #fde047;
      text-shadow: 0 0.4cqh 0 #b45309, 0 0 3cqh rgba(250,204,21,0.7); animation: tvStBingo 0.9s ease-in-out 0.2s 3; }
    @keyframes tvStBingo { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1) rotate(-2deg); } }
    /* a word as wooden tiles: --wt fits the word to its box */
    .tv-st-word { --wt: min(4.6cqh, calc(28cqh / var(--n))); display: inline-flex; gap: calc(var(--wt) * 0.1); }
    .tv-st-word.tv-st-word-sm { --wt: min(3.2cqh, calc(26cqh / var(--n))); }
    .tv-st-word.tv-st-word-xl { --wt: min(8.4cqh, calc(66cqh / var(--n))); }
    .tv-st .tv-st-wt { display: inline-flex; align-items: center; justify-content: center; width: var(--wt); height: var(--wt); border-radius: calc(var(--wt) * 0.14);
      font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: calc(var(--wt) * 0.64); line-height: 1; }
    /* the players */
    .tv-st-side, .tv-st-right { display: flex; flex-direction: column; gap: 1.4cqh; min-width: 0; min-height: 0; }
    .tv-st-player { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: 'av top score' 'av rack rack'; align-items: center; column-gap: 1.1cqw; row-gap: 0.4cqh; padding: 1.5cqh 1.4cqw; }
    .tv-st-player > .tv-av, .tv-st-player > .tv-st-av-empty { grid-area: av; } .tv-st-player > .tv-st-pmain { display: contents; }
    .tv-st-player .tv-st-ptop { grid-area: top; } .tv-st-player .tv-st-rack, .tv-st-player .tv-st-pmain > .tv-st-racklbl { grid-area: rack; } .tv-st-player > .tv-st-score { grid-area: score; }
    .tv-st-player .tv-av { width: 6.8cqh; height: 6.8cqh; } .tv-st-player .tv-av > div { font-size: 2.8cqh !important; }
    .tv-st .tv-st-player.tv-st-up { box-shadow: 0 0 0 0.45cqh #22d3ee, 0 0 3cqh rgba(34,211,238,0.55), inset 0 0 0 1px rgba(255,255,255,0.09); }
    .tv-st .tv-st-player.tv-st-won { box-shadow: 0 0 0 0.45cqh #fbbf24, 0 0 3cqh rgba(251,191,36,0.6), inset 0 0 0 1px rgba(255,255,255,0.09); }
    .tv-st-player.tv-st-out { opacity: 0.55; }
    .tv-st-player.tv-st-open { opacity: 0.7; }
    .tv-st-av-empty { display: inline-flex; align-items: center; justify-content: center; width: 6.8cqh; height: 6.8cqh; border-radius: 50%; font-size: 4cqh; font-weight: 800; color: #94a3b8; box-shadow: inset 0 0 0 0.3cqh rgba(148,163,184,0.6); }
    .tv-st-pmain { min-width: 0; }
    .tv-st-ptop { display: flex; align-items: center; gap: 0.8cqw; min-width: 0; }
    .tv-st-pname { min-width: 0; flex: 0 1 auto; font-size: 3cqh; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-st-pill { flex: none; border-radius: 9999px; padding: 0.3cqh 0.7cqw; font-size: 1.35cqh; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #0f172a; background: #e2e8f0; white-space: nowrap; }
    .tv-st-upmark { flex: none; font-size: 2.2cqh; line-height: 1; color: #22d3ee; }
    /* how it works */
    .tv-st-rules { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: 1.1cqh; padding: 1.6cqh 1.4cqw; overflow: hidden; }
    .tv-st-rule { display: flex; align-items: center; gap: 0.5cqw; font-size: 2.1cqh; font-weight: 700; line-height: 1.3; color: #e2e8f0; white-space: nowrap; }
    .tv-st-rule b { color: #fff; }
    .tv-st-rule.tv-st-rule-mode { color: #cbd5e1; white-space: normal; }
    .tv-st .tv-st-rchip { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 3.6cqh; height: 3cqh; padding: 0 0.4cqh; border-radius: 0.6cqh; font-size: 1.6cqh; font-weight: 800; }
    .tv-st-rack { display: flex; align-items: center; gap: 0.8cqw; min-width: 0; }
    .tv-st-backs { display: inline-flex; gap: 0.3cqh; flex: none; }
    .tv-st .tv-st-back { display: inline-block; width: 2.3cqh; height: 2.3cqh; border-radius: 0.4cqh; }
    .tv-st-racklbl { font-size: 1.9cqh; font-weight: 800; color: #cbd5e1; white-space: nowrap; }
    .tv-st-score { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 5.8cqh; line-height: 0.9; font-variant-numeric: tabular-nums; }
    .tv-st-medal { position: absolute; top: -1.2cqh; left: -0.5cqw; z-index: 2; font-size: 3.4cqh; line-height: 1; font-weight: 800; color: #fde68a; text-shadow: 0 0.2cqh 0.6cqh rgba(0,0,0,0.5); }
    .tv-st-side-4 .tv-st-player { padding: 1.1cqh 1.2cqw; }
    .tv-st-side-4 .tv-st-player .tv-av, .tv-st-side-4 .tv-st-av-empty { width: 6cqh; height: 6cqh; }
    .tv-st-side-4 .tv-st-score { font-size: 5cqh; }
    /* the last play, the bag, the moves */
    .tv-st-h { font-size: 1.9cqh; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #94a3b8; white-space: nowrap; }
    .tv-st-lastp { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 1.2cqh; padding: 1.6cqh 1.4cqw; overflow: hidden; }
    .tv-st-lastbody { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; gap: 1.6cqh; min-height: 0; }
    .tv-st-last-who { display: flex; align-items: center; gap: 0.8cqw; min-width: 0; }
    .tv-st-last-who .tv-av { width: 5.4cqh; height: 5.4cqh; } .tv-st-last-who .tv-av > div { font-size: 2.2cqh !important; }
    .tv-st-last-pts { margin-left: auto; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 6cqh; line-height: 1; color: #4ade80; }
    .tv-st-last-words { display: flex; flex-direction: column; gap: 0.9cqh; }
    .tv-st-last-row { display: flex; align-items: center; gap: 0.8cqw; }
    .tv-st-last-wp { font-size: 2.6cqh; font-weight: 800; color: #cbd5e1; }
    .tv-st-last-chips { display: flex; flex-wrap: wrap; gap: 0.6cqh 0.5cqw; }
    .tv-st-lastp-in .tv-st-last-who, .tv-st-lastp-in .tv-st-last-words { animation: tvStLastIn 0.5s cubic-bezier(0.3, 0.8, 0.3, 1.2) 0.5s backwards; }
    @keyframes tvStLastIn { from { opacity: 0; transform: translateY(-1.6cqh); } }
    .tv-st-none { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 2.4cqh; font-weight: 700; line-height: 1.3; color: #cbd5e1; }
    .tv-st-bag { flex: none; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 1cqw; row-gap: 0.8cqh; align-items: center; padding: 1.4cqh 1.4cqw; }
    .tv-st-bagicon { grid-row: 1 / span 2; font-size: 5.6cqh; line-height: 1; }
    .tv-st-bagtxt { display: flex; align-items: baseline; gap: 0.8cqw; min-width: 0; }
    .tv-st-bagn { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 5.4cqh; line-height: 1; font-variant-numeric: tabular-nums; }
    .tv-st-baglbl { font-size: 2.2cqh; font-weight: 800; color: #cbd5e1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-st-bagbar { height: 1.1cqh; border-radius: 9999px; background: rgba(255,255,255,0.12); overflow: hidden; }
    .tv-st-bagbar > span { display: block; height: 100%; border-radius: 9999px; background: linear-gradient(90deg, #f5d78e, #eec569); }
    .tv-st-bag.tv-st-bag-low .tv-st-bagn { color: #fca5a5; } .tv-st-bag.tv-st-bag-low .tv-st-bagbar > span { background: linear-gradient(90deg, #f87171, #ef4444); }
    .tv-st-moves { flex: none; display: flex; flex-direction: column; gap: 0.7cqh; padding: 1.6cqh 1.4cqw; overflow: hidden; }
    .tv-st-move { font-size: 2.2cqh; font-weight: 700; line-height: 1.3; color: #cbd5e1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-st-move.tv-st-move-new { color: #f8fafc; }
    .tv-st-move.tv-st-move-to { color: #fda4af; }
    .tv-st-mw { color: #fde68a; letter-spacing: 0.04em; }
    .tv-st-brink { margin-top: 0.4cqh; font-size: 2cqh; font-weight: 800; color: #fcd34d; }
    /* the win banner over the board */
    .tv-st-win { position: relative; flex: none; width: 76cqh; height: 13cqh; display: flex; align-items: center; gap: 1.4cqw; padding: 0 1.8cqw; border-radius: 2.4cqh; overflow: hidden; color: #1c1003;
      background: linear-gradient(150deg, #fde68a 0%, #f5c24a 50%, #d9952a 100%); box-shadow: 0 0.8cqh 2.4cqh rgba(0,0,0,0.35), inset 0 0.25cqh 0 rgba(255,255,255,0.45); }
    .tv-st-win.tv-st-win-tie { background: linear-gradient(150deg, #e2e8f0 0%, #cbd5e1 55%, #94a3b8 100%); }
    .tv-st-win-icon { flex: none; font-size: 6.4cqh; line-height: 1; }
    .tv-st-win-text { min-width: 0; }
    .tv-st-win-title { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 6cqh; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-st-win-sub { margin-top: 0.6cqh; font-size: 2.3cqh; font-weight: 800; opacity: 0.9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-st-win-in { animation: tvStWinIn 0.6s cubic-bezier(0.3, 0.8, 0.3, 1.2) 1.6s backwards; }
    @keyframes tvStWinIn { from { opacity: 0; transform: scale(0.82); } }
    /* the lobby: a card over the empty board */
    .tv-st-lobbycard { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 62cqh; padding: 2.6cqh 2.2cqw; text-align: center; }
    .tv-st-lobby-title { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 6cqh; line-height: 1; }
    .tv-st-lobby-line { margin-top: 1.2cqh; font-size: 2.4cqh; font-weight: 700; color: #e2e8f0; }
    .tv-st-lobby-line b { color: #fff; }
    .tv-st-lobby-rule { margin-top: 1.8cqh; font-size: 2cqh; font-weight: 700; line-height: 1.3; color: #cbd5e1; }
    /* the attract screen */
    .tv-st .tv-safe.tv-st-attract { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.2cqh; text-align: center; }
    .tv-st-hero-title { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 13cqh; line-height: 0.9; color: #fef3c7; text-shadow: 0 0.5cqh 0 rgba(4,20,32,0.55), 0 1cqh 3cqh rgba(0,0,0,0.45); }
    .tv-st-hero-sub { font-size: 3cqh; font-weight: 800; color: #e0f2fe; text-shadow: 0 0.2cqh 0.6cqh rgba(0,0,0,0.4); }
    .tv-st-hero-line { font-size: 2.3cqh; font-weight: 800; color: #bae6fd; text-shadow: 0 0.2cqh 0.6cqh rgba(0,0,0,0.4); }
    .tv-st-demo { display: grid; grid-template-columns: repeat(5, 8.6cqh); grid-template-rows: repeat(5, 8.6cqh); gap: 0.5cqh; padding: 1.2cqh; border-radius: 2cqh; border: 0.3cqh solid;
      box-shadow: 0 0 0 0.6cqh #6b4522, 0 0 0 1cqh #8a5f33, 0 1.4cqh 3cqh rgba(0,0,0,0.45); }
    .tv-st .tv-st-demo-t, .tv-st .tv-st-demo-e { position: relative; display: flex; align-items: center; justify-content: center; border-radius: 0.9cqh; }
    .tv-st-demo-t .tv-st-l { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 5cqh; line-height: 1; }
    .tv-st-demo-t .tv-st-v { position: absolute; right: 9%; bottom: 5%; font-size: 1.8cqh; font-weight: 800; line-height: 1; }
    .tv-st-call { display: inline-block; border-radius: 9999px; padding: 1.2cqh 2.6cqw; font-size: 3.4cqh; font-weight: 800; color: #0f172a; background: rgba(255,255,255,0.95); box-shadow: 0 1cqh 3cqh rgba(0,0,0,0.35); }
    /* the deal, and a pass / swap / timeout, seen live */
    .tv-st-flash { position: absolute; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; pointer-events: none; background: rgba(2,6,23,0.4); animation: tvFade 2.8s ease-out both; }
    .tv-st-flash-box { padding: 3cqh 4cqw; border-radius: 3cqh; text-align: center; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 6cqh; line-height: 1.1; color: #fff;
      background: linear-gradient(160deg, #0e7490 0%, #0891b2 50%, #06b6d4 100%); box-shadow: 0 2cqh 6cqh rgba(0,0,0,0.5), inset 0 0.3cqh 0 rgba(255,255,255,0.3); animation: tvPop 2.8s cubic-bezier(0.3, 0.8, 0.3, 1.2) both; }
    .tv-st-flash-sub { margin-top: 1cqh; font-size: 2.6cqh; }
    .tv-st-note { position: absolute; left: 50%; top: 15cqh; z-index: 30; transform: translateX(-50%); border-radius: 9999px; padding: 1.2cqh 2.6cqw; font-size: 3.6cqh; font-weight: 800; white-space: nowrap; color: #0f172a;
      background: rgba(255,255,255,0.95); box-shadow: 0 1cqh 3cqh rgba(0,0,0,0.4); animation: tvFade 2.8s ease-out both; pointer-events: none; }
    .tv-st-note.tv-st-note-to { color: #fff; background: #e11d48; box-shadow: 0 0 0 0.4cqh rgba(225,29,72,0.35), 0 1cqh 3cqh rgba(0,0,0,0.4); }
    @media (prefers-reduced-motion: reduce) {
      .tv-st-board .tv-st-drop, .tv-st-callout, .tv-st-bingo, .tv-st-lastp-in .tv-st-last-who, .tv-st-lastp-in .tv-st-last-words, .tv-st-win-in, .tv-st-flash, .tv-st-flash-box, .tv-st-note { animation: none !important; }
      .tv-st-callout { transform: translateX(-50%); }
    }
    /* ---- 📺 Spades on the TV (SpadesTv inside the shared TvShell) ----
       a felt card table with a wooden rail on the left (seats round the edge, the trick in the
       middle), the score sheet in a glass panel on the right; Team 1 cyan, Team 2 orange */
    .tv-sp { position: absolute; inset: 0; color: #f8fafc; background: radial-gradient(130% 100% at 32% 34%, #1b4a3c 0%, #0f2c24 52%, #071713 100%); }
    html:not(.jbf-dark) .tv-sp { background: radial-gradient(130% 100% at 32% 34%, #2b6a56 0%, #1a4639 52%, #0e2a22 100%); }
    .tv-sp .tv-safe { display: grid; grid-template-rows: 9cqh minmax(0, 1fr); row-gap: 1.8cqh; }
    .tv-sp-main { display: grid; grid-template-columns: 108cqh minmax(0, 1fr); column-gap: 2.4cqh; min-height: 0; }
    .tv-sp-table { position: relative; min-height: 0; }
    .tv-sp-felt { position: absolute; inset: 0; border-radius: 18cqh; background: radial-gradient(120% 90% at 50% 42%, #1f9d63 0%, #138a52 42%, #0c6f41 78%, #0a5c37 100%);
      box-shadow: inset 0 0 0 1.1cqh #6b3d1c, inset 0 0 0 1.5cqh #8a5328, inset 0 0 0 1.8cqh #4a2a12, inset 0 0 5cqh rgba(0,0,0,0.55), 0 1.2cqh 3cqh rgba(0,0,0,0.45); }
    /* the seats: avatar + name + bid chip (+ card backs); top and bottom in a row, left and right
       stacked — fixed boxes, so nothing shifts as the backs run out (SP_TV_SEAT_AT points at the avatars) */
    .tv-sp-seat { position: absolute; z-index: 3; }
    .tv-sp-seat-t, .tv-sp-seat-b { left: 50%; width: 49.2cqh; margin-left: -24.6cqh; display: grid; grid-template-columns: 8.4cqh 21cqh 16.4cqh; column-gap: 1.2cqh; align-items: center; }
    .tv-sp-seat-t { top: 2.8cqh; } .tv-sp-seat-b { bottom: 2.8cqh; }
    .tv-sp-seat-l, .tv-sp-seat-r { top: 50%; width: 22cqh; height: 22cqh; margin-top: -11cqh; display: flex; flex-direction: column; align-items: center; gap: 0.8cqh; text-align: center; }
    .tv-sp-seat-l { left: 3.2cqh; } .tv-sp-seat-r { right: 3.2cqh; }
    .tv-sp-av { flex: none; width: 8.4cqh; height: 8.4cqh; border-radius: 9999px; display: inline-flex; }
    .tv-sp-av > div { width: 100% !important; height: 100% !important; font-size: 3.4cqh !important; }
    .tv-sp-av-a { box-shadow: 0 0 0 0.5cqh #22d3ee, 0 0.6cqh 1.6cqh rgba(0,0,0,0.45); }
    .tv-sp-av-b { box-shadow: 0 0 0 0.5cqh #fb923c, 0 0.6cqh 1.6cqh rgba(0,0,0,0.45); }
    .tv-sp-seat-open .tv-sp-av { box-shadow: none; }
    .tv-sp-av-empty { width: 100%; height: 100%; border-radius: 9999px; display: flex; align-items: center; justify-content: center; border: 0.4cqh dashed rgba(255,255,255,0.55); font-size: 4cqh; font-weight: 800; color: rgba(255,255,255,0.6); }
    .tv-sp-seat-up .tv-sp-av { box-shadow: 0 0 0 0.6cqh #34d399, 0 0 3cqh rgba(52,211,153,0.8); animation: tvSpGlow 1.4s ease-in-out infinite; }
    @keyframes tvSpGlow { 0%, 100% { box-shadow: 0 0 0 0.5cqh #34d399, 0 0 2cqh rgba(52,211,153,0.6); } 50% { box-shadow: 0 0 0 0.8cqh #34d399, 0 0 4cqh rgba(52,211,153,0.95); } }
    .tv-sp-seat-text { display: flex; flex-direction: column; gap: 0.6cqh; min-width: 0; }
    .tv-sp-seat-l .tv-sp-seat-text, .tv-sp-seat-r .tv-sp-seat-text { align-items: center; max-width: 100%; }
    .tv-sp-name { display: flex; align-items: center; gap: 0.5cqh; min-width: 0; max-width: 100%; font-size: 2.8cqh; font-weight: 800; line-height: 1.1; color: #fff; text-shadow: 0 0.2cqh 0.5cqh rgba(0,0,0,0.6); }
    .tv-sp-pname { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-sp-bot { flex: none; font-size: 2.2cqh; }
    .tv-sp-chip { align-self: flex-start; border-radius: 9999px; padding: 0.35cqh 1.1cqh; font-size: 2.1cqh; font-weight: 800; line-height: 1.2; white-space: nowrap; color: #fff; }
    .tv-sp-seat-l .tv-sp-chip, .tv-sp-seat-r .tv-sp-chip { align-self: center; }
    .tv-sp-chip-a { background: rgba(8,145,178,0.88); } .tv-sp-chip-b { background: rgba(234,88,12,0.88); }
    .tv-sp-chip.tv-sp-chip-nil { box-shadow: inset 0 0 0 0.28cqh #e9d5ff; }
    .tv-sp-chip.tv-sp-chip-bust { background: #be123c; }
    .tv-sp-chip-pop { animation: tvSpPop 0.5s cubic-bezier(0.3, 0.8, 0.3, 1.4) both; }
    @keyframes tvSpPop { 0% { transform: scale(0.6); opacity: 0.3; } 100% { transform: none; opacity: 1; } }
    .tv-sp-backs { display: flex; align-items: center; min-width: 0; }
    .tv-sp-back { flex: none; width: 3cqh; height: 4.3cqh; border-radius: 0.45cqh; background: repeating-linear-gradient(45deg, #2f56b8 0 0.4cqh, #1e3a8a 0.4cqh 0.8cqh);
      box-shadow: inset 0 0 0 0.22cqh #c7d9ff, 0 0.2cqh 0.5cqh rgba(0,0,0,0.4); }
    .tv-sp-back + .tv-sp-back { margin-left: -1.9cqh; box-shadow: inset 0 0 0 0.22cqh #c7d9ff, -0.35cqh 0 0.5cqh rgba(0,0,0,0.5); }
    /* the cards: the app's SpCard SVG, sized by its box (light faces in both themes) */
    .tv-sp-card { width: 13.5cqh; height: 18.9cqh; }
    .tv-sp-card > svg { display: block; width: 100%; height: 100%; border-radius: 10% / 7.14%; box-shadow: 0 0.5cqh 1.4cqh rgba(0,0,0,0.45); }
    /* the middle of the table, and the trick: each seat's card lands in front of it */
    .tv-sp-middle { position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; }
    .tv-sp-trick { position: relative; width: 46cqh; height: 50cqh; }
    .tv-sp-slot { position: absolute; }
    .tv-sp-slot-t { left: 50%; top: 0; margin-left: -6.75cqh; transform: rotate(3deg); }
    .tv-sp-slot-b { left: 50%; bottom: 0; margin-left: -6.75cqh; transform: rotate(-3deg); }
    .tv-sp-slot-l { left: 0; top: 50%; margin-top: -9.45cqh; transform: rotate(-7deg); }
    .tv-sp-slot-r { right: 0; top: 50%; margin-top: -9.45cqh; transform: rotate(7deg); }
    .tv-sp-watermark { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 24cqh; line-height: 1; color: rgba(255,255,255,0.13); }
    .tv-sp-land { animation: tvSpLand 0.45s cubic-bezier(0.2, 0.8, 0.3, 1) backwards; }
    @keyframes tvSpLand { from { transform: translate(var(--tx), var(--ty)) scale(0.55) rotate(-12deg); opacity: 0.2; } }
    .tv-sp-won > svg { box-shadow: 0 0 0 0.6cqh #fbbf24, 0 0 3.4cqh rgba(251,191,36,0.9), 0 0.5cqh 1.4cqh rgba(0,0,0,0.45); }
    .tv-sp-won-in > svg { animation: tvSpWon 0.7s ease-out 0.45s both; }
    @keyframes tvSpWon { 0% { transform: scale(1); } 40% { transform: scale(1.1); } 100% { transform: scale(1); } }
    .tv-sp-takes { position: absolute; left: 50%; top: 50%; z-index: 5; transform: translate(-50%, -50%); border-radius: 9999px; padding: 0.7cqh 1.8cqh; font-size: 2.6cqh; font-weight: 800; white-space: nowrap;
      color: #422006; background: linear-gradient(150deg, #fde68a, #f59e0b); box-shadow: 0 0.6cqh 1.6cqh rgba(0,0,0,0.4); }
    .tv-sp-sweep { position: absolute; left: 50%; top: 50%; z-index: 6; width: 46cqh; height: 50cqh; margin: -25cqh 0 0 -23cqh; pointer-events: none; }
    .tv-sp-swept { animation: tvSpSweep 0.8s cubic-bezier(0.55, 0, 0.75, 0.4) 0.05s forwards; }
    @keyframes tvSpSweep { to { transform: translate(var(--tx), var(--ty)) scale(0.35) rotate(14deg); opacity: 0; } }
    /* the corners: which trick, the lead suit, spades broken */
    .tv-sp-corner { position: absolute; top: 7cqh; z-index: 3; display: flex; flex-direction: column; gap: 0.8cqh; }
    .tv-sp-corner-l { left: 8cqh; align-items: flex-start; } .tv-sp-corner-r { right: 8cqh; align-items: flex-end; }
    .tv-sp-corner-h { font-size: 2.2cqh; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.85); text-shadow: 0 0.2cqh 0.5cqh rgba(0,0,0,0.5); white-space: nowrap; }
    .tv-sp-lead { border-radius: 9999px; padding: 0.3cqh 1.4cqh; font-size: 2.4cqh; font-weight: 800; white-space: nowrap; color: #0f172a; background: rgba(255,255,255,0.92); }
    .tv-sp-lead b { font-size: 3cqh; line-height: 1; vertical-align: -0.2cqh; }
    .tv-sp-lead.tv-sp-red b { color: #dc2626; }
    .tv-sp-broken { border-radius: 9999px; padding: 0.4cqh 1.4cqh; font-size: 2.2cqh; font-weight: 800; white-space: nowrap; color: rgba(255,255,255,0.7); background: rgba(0,0,0,0.28); }
    .tv-sp-broken.tv-sp-broken-on { color: #fff; background: #0f172a; box-shadow: 0 0 0 0.3cqh rgba(255,255,255,0.75); }
    /* the cards in the middle: the bidding, the lobby, the real-cards status */
    .tv-sp-card-mid { width: 52cqh; padding: 2.4cqh 2.2cqh; text-align: center; }
    .tv-sp-mid-h { font-size: 1.9cqh; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #94a3b8; white-space: nowrap; }
    .tv-sp-mid-title { margin-top: 0.8cqh; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 5.4cqh; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-sp-mid-line { margin-top: 1cqh; font-size: 2.3cqh; font-weight: 700; color: #e2e8f0; }
    .tv-sp-mid-line b { color: #fff; }
    .tv-sp-bidtot { margin-top: 1.8cqh; display: grid; grid-template-columns: 1fr 1fr; gap: 1.2cqh; }
    .tv-sp-bidtot-t { border-radius: 1.6cqh; padding: 1cqh 1cqh; display: flex; flex-direction: column; gap: 0.3cqh; }
    .tv-sp-bidtot-t.tv-sp-team-a { background: rgba(8,145,178,0.32); box-shadow: inset 0 0 0 1px rgba(103,232,249,0.5); }
    .tv-sp-bidtot-t.tv-sp-team-b { background: rgba(234,88,12,0.32); box-shadow: inset 0 0 0 1px rgba(253,186,116,0.5); }
    .tv-sp-bidtot-n { font-size: 1.9cqh; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #e2e8f0; }
    .tv-sp-bidtot-v { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 4cqh; line-height: 1; }
    /* the hand's result and the win banner */
    .tv-sp-midstack { display: flex; flex-direction: column; align-items: center; gap: 1.4cqh; }
    .tv-sp-result { width: 54cqh; padding: 1.8cqh 2cqh; display: flex; flex-direction: column; gap: 1.2cqh; }
    .tv-sp-result-in { animation: tvSpRise 0.55s cubic-bezier(0.3, 0.8, 0.3, 1.2) 0.9s backwards; }
    @keyframes tvSpRise { from { opacity: 0; transform: translateY(3cqh) scale(0.94); } }
    .tv-sp-res-row { position: relative; border-radius: 1.6cqh; padding: 1.1cqh 10cqh 1.1cqh 1.4cqh; }
    .tv-sp-res-row.tv-sp-team-a { background: rgba(8,145,178,0.25); box-shadow: inset 0 0 0 1px rgba(103,232,249,0.45); }
    .tv-sp-res-row.tv-sp-team-b { background: rgba(234,88,12,0.25); box-shadow: inset 0 0 0 1px rgba(253,186,116,0.45); }
    .tv-sp-res-team { display: flex; align-items: baseline; gap: 1cqh; min-width: 0; }
    .tv-sp-res-name { flex: none; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 3cqh; line-height: 1; }
    .tv-sp-res-who { min-width: 0; font-size: 1.9cqh; font-weight: 700; color: #cbd5e1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-sp-res-line { margin-top: 0.7cqh; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 1.4cqh; row-gap: 0.3cqh; font-size: 2.1cqh; font-weight: 700; color: #e2e8f0; }
    .tv-sp-res-line b { color: #fff; }
    .tv-sp-res-made { font-weight: 800; }
    .tv-sp-res-nil { margin-top: 0.4cqh; font-size: 2cqh; font-weight: 800; }
    .tv-sp-res-delta { position: absolute; right: 1.4cqh; top: 50%; transform: translateY(-50%); font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 4.6cqh; line-height: 1; }
    .tv-sp-good { color: #6ee7b7; } .tv-sp-bad { color: #fda4af; }
    .tv-sp-next { border-radius: 9999px; padding: 0.9cqh 2.2cqh; font-size: 2.4cqh; font-weight: 800; color: #0f172a; background: rgba(255,255,255,0.92); box-shadow: 0 0.8cqh 2cqh rgba(0,0,0,0.35); white-space: nowrap; }
    .tv-sp-win { position: relative; width: 54cqh; height: 12cqh; display: flex; align-items: center; gap: 1.6cqh; padding: 0 2.2cqh; border-radius: 2.4cqh; overflow: hidden; color: #fff;
      box-shadow: 0 0.8cqh 2.4cqh rgba(0,0,0,0.4), inset 0 0.25cqh 0 rgba(255,255,255,0.3); }
    .tv-sp-win-a { background: linear-gradient(150deg, #22d3ee 0%, #0891b2 55%, #155e75 100%); }
    .tv-sp-win-b { background: linear-gradient(150deg, #fdba74 0%, #ea580c 55%, #9a3412 100%); }
    .tv-sp-win-icon { flex: none; font-size: 6cqh; line-height: 1; }
    .tv-sp-win-text { min-width: 0; }
    .tv-sp-win-title { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 5.6cqh; line-height: 1; white-space: nowrap; text-shadow: 0 0.3cqh 0 rgba(0,0,0,0.2); }
    .tv-sp-win-sub { margin-top: 0.6cqh; font-size: 2.2cqh; font-weight: 800; opacity: 0.95; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-sp-win-in { animation: tvSpRise 0.6s cubic-bezier(0.3, 0.8, 0.3, 1.2) 0.9s backwards; }
    .tv-sp-win-in + .tv-sp-result-in { animation-delay: 1.3s; }
    /* the score sheet */
    .tv-sp-sheet { display: flex; flex-direction: column; min-height: 0; overflow: hidden; padding: 1.8cqh 1.8cqh 1.4cqh; }
    .tv-sp-sheet-h { display: flex; align-items: baseline; justify-content: space-between; gap: 1cqh; }
    .tv-sp-h { font-size: 1.9cqh; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #94a3b8; white-space: nowrap; }
    .tv-sp-target { font-size: 2.1cqh; font-weight: 700; color: #cbd5e1; white-space: nowrap; }
    .tv-sp-target b { color: #fde68a; }
    .tv-sp-totals { margin-top: 1.2cqh; display: grid; grid-template-columns: 1fr 1fr; gap: 1.2cqh; }
    .tv-sp-total { min-width: 0; border-radius: 1.8cqh; padding: 1.2cqh 1.3cqh; }
    .tv-sp-total.tv-sp-team-a { background: linear-gradient(160deg, rgba(34,211,238,0.34), rgba(8,145,178,0.22)); box-shadow: inset 0 0 0 1px rgba(103,232,249,0.5); }
    .tv-sp-total.tv-sp-team-b { background: linear-gradient(160deg, rgba(251,146,60,0.34), rgba(234,88,12,0.22)); box-shadow: inset 0 0 0 1px rgba(253,186,116,0.5); }
    .tv-sp-total.tv-sp-total-won { box-shadow: 0 0 0 0.4cqh #fbbf24, 0 0 2.4cqh rgba(251,191,36,0.6); }
    .tv-sp-total-name { font-size: 1.9cqh; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
    .tv-sp-team-a .tv-sp-total-name { color: #a5f3fc; } .tv-sp-team-b .tv-sp-total-name { color: #fed7aa; }
    .tv-sp-total-who { margin-top: 0.3cqh; font-size: 1.9cqh; font-weight: 700; color: #e2e8f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-sp-total-score { margin-top: 0.4cqh; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 7.6cqh; line-height: 1; font-variant-numeric: tabular-nums; }
    .tv-sp-bags { margin-top: 0.6cqh; display: flex; align-items: center; gap: 0.8cqh; min-width: 0; }
    .tv-sp-bagpips { display: inline-flex; gap: 0.3cqh; }
    .tv-sp-bagpip { width: 1.3cqh; height: 1.3cqh; border-radius: 9999px; box-shadow: inset 0 0 0 0.2cqh rgba(226,232,240,0.6); }
    .tv-sp-bagpip.tv-sp-bagpip-on { background: #fde68a; box-shadow: none; }
    .tv-sp-bags-n { font-size: 1.8cqh; font-weight: 800; color: #e2e8f0; white-space: nowrap; }
    .tv-sp-rows { margin-top: 1.4cqh; display: flex; flex-direction: column; gap: 0.6cqh; min-height: 0; overflow: hidden; }
    .tv-sp-row { display: grid; grid-template-columns: 6cqh minmax(0, 1fr) minmax(0, 1fr); column-gap: 1cqh; align-items: start; border-radius: 1.2cqh; padding: 0.6cqh 0.8cqh; background: rgba(255,255,255,0.05); }
    .tv-sp-row.tv-sp-row-head { padding-top: 0; padding-bottom: 0; background: none; font-size: 1.7cqh; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #94a3b8; white-space: nowrap; }
    .tv-sp-row-h { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 2.6cqh; line-height: 1.15; color: #cbd5e1; }
    .tv-sp-row-head .tv-sp-row-h { font-family: inherit; font-size: inherit; line-height: inherit; color: inherit; }
    .tv-sp-row.tv-sp-row-new { background: rgba(253,230,138,0.16); box-shadow: inset 0 0 0 1px rgba(253,230,138,0.6); animation: tvSpRise 0.55s ease-out 0.9s backwards; }
    .tv-sp-row.tv-sp-row-now { background: none; box-shadow: inset 0 0 0 0.2cqh rgba(255,255,255,0.22); }
    .tv-sp-cell { min-width: 0; }
    .tv-sp-cell-main { display: flex; align-items: baseline; gap: 1cqh; white-space: nowrap; }
    .tv-sp-cell-tr { font-size: 2.3cqh; font-weight: 800; }
    .tv-sp-cell-d { font-family: 'Baloo 2', system-ui, sans-serif; font-size: 2.6cqh; font-weight: 800; line-height: 1.15; }
    .tv-sp-cell-now { font-size: 1.6cqh; font-weight: 700; color: #94a3b8; }
    .tv-sp-cell-sub { margin-top: 0.3cqh; display: flex; flex-wrap: wrap; gap: 0.4cqh; }
    .tv-sp-nilmark { border-radius: 9999px; padding: 0.15cqh 0.8cqh; font-size: 1.6cqh; font-weight: 800; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
    .tv-sp-nil-ok { color: #052e16; background: #6ee7b7; } .tv-sp-nil-bust { color: #4c0519; background: #fda4af; }
    .tv-sp-more { font-size: 1.7cqh; font-weight: 700; color: #94a3b8; padding: 0 0.8cqh; }
    .tv-sp-none { padding: 1cqh 0.8cqh; font-size: 2cqh; font-weight: 700; color: #94a3b8; }
    /* the deal, seen live: backs fly out to the four seats */
    .tv-sp-deal { position: absolute; inset: 0; z-index: 8; pointer-events: none; }
    .tv-sp-dealcard { position: absolute; left: 50%; top: 50%; width: 5.4cqh; height: 7.6cqh; margin: -3.8cqh 0 0 -2.7cqh; border-radius: 0.7cqh;
      background: repeating-linear-gradient(45deg, #2f56b8 0 0.5cqh, #1e3a8a 0.5cqh 1cqh); box-shadow: inset 0 0 0 0.3cqh #c7d9ff, 0 0.4cqh 1cqh rgba(0,0,0,0.4); animation: tvSpDeal 0.7s ease-out both; }
    @keyframes tvSpDeal { 0% { transform: translate(0, 0) scale(0.7); opacity: 0; } 15% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translate(var(--tx), var(--ty)) scale(0.8); opacity: 0; } }
    .tv-sp-deal-box { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 9999px; padding: 1cqh 3cqh; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 4.4cqh; line-height: 1.1;
      color: #fff; background: rgba(2,6,23,0.6); animation: tvFade 2.6s ease-out both; }
    /* spades broken, seen live: the glass cracks over the table */
    .tv-sp-burst { position: absolute; inset: 0; z-index: 9; pointer-events: none; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 18cqh; }
    .tv-sp-burst-flash { position: absolute; inset: 0; background: #fff; animation: spFlash 0.55s ease-out both; }
    .tv-sp-crack { position: relative; width: 44cqh; height: 44cqh; animation: spCrack 1s ease-out both; filter: drop-shadow(0 0 0.4cqh rgba(255,255,255,0.85)); }
    .tv-sp-crack g { stroke: #eaf4ff; stroke-width: 1.1; fill: none; opacity: 0.95; }
    .tv-sp-burst-text { position: absolute; left: 50%; top: 50%; width: 50cqh; height: 8cqh; margin: -4cqh 0 0 -25cqh; display: flex; align-items: center; justify-content: center; border-radius: 9999px;
      font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 5.2cqh; line-height: 1; white-space: nowrap; color: #fff; background: rgba(2,6,23,0.72);
      box-shadow: 0 0.8cqh 2.4cqh rgba(0,0,0,0.45), inset 0 0 0 0.25cqh rgba(234,244,255,0.7); animation: tvSpBurst 1.6s ease-out both; }
    @keyframes tvSpBurst { 0% { opacity: 0; transform: scale(0.7); } 15% { opacity: 1; transform: scale(1.06); } 25% { transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: scale(1); } }
    /* the lobby and the attract screen */
    .tv-sp .tv-safe.tv-sp-attract { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.6cqh; text-align: center; }
    .tv-sp-hero-title { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 14cqh; line-height: 0.9; color: #f8fafc; text-shadow: 0 0.5cqh 0 rgba(0,0,0,0.35), 0 1cqh 3cqh rgba(0,0,0,0.5); }
    .tv-sp-hero-sub { font-size: 3cqh; font-weight: 800; color: #ecfdf5; text-shadow: 0 0.2cqh 0.6cqh rgba(0,0,0,0.45); }
    .tv-sp-hero-line { font-size: 2.3cqh; font-weight: 800; color: #d1fae5; text-shadow: 0 0.2cqh 0.6cqh rgba(0,0,0,0.45); }
    .tv-sp-fan { position: relative; width: 40cqh; height: 30cqh; margin-bottom: 4cqh; }
    .tv-sp-fan .tv-sp-card { position: absolute; left: 50%; bottom: 0; width: 15cqh; height: 21cqh; margin-left: -7.5cqh; transform-origin: 50% 120%; }
    .tv-sp-fan-0 { transform: rotate(-24deg); } .tv-sp-fan-1 { transform: rotate(-8deg); } .tv-sp-fan-2 { transform: rotate(8deg); } .tv-sp-fan-3 { transform: rotate(24deg); }
    .tv-sp-call { display: inline-block; border-radius: 9999px; padding: 1.2cqh 2.6cqw; font-size: 3.4cqh; font-weight: 800; color: #0f172a; background: rgba(255,255,255,0.95); box-shadow: 0 1cqh 3cqh rgba(0,0,0,0.35); }
    @media (prefers-reduced-motion: reduce) {
      .tv-sp-seat-up .tv-sp-av, .tv-sp-chip-pop, .tv-sp-land, .tv-sp-won-in > svg, .tv-sp-result-in, .tv-sp-win-in, .tv-sp-row.tv-sp-row-new, .tv-sp-deal, .tv-sp-dealcard, .tv-sp-deal-box,
      .tv-sp-burst-flash, .tv-sp-crack, .tv-sp-burst-text { animation: none !important; }
      .tv-sp-swept, .tv-sp-deal, .tv-sp-burst { display: none; }
    }
    /* ---- 📺 Mafia on the TV (MafiaTv inside the shared TvShell) ----
       a night village: the sky by phase, a moon and a skyline; the phase card on the left, the
       village on the right, the narrator's line as a caption along the bottom */
    .tv-mf { position: absolute; inset: 0; color: #f8fafc; overflow: hidden; }
    .tv-mf.tv-mf-night { background: radial-gradient(120% 90% at 72% 0%, #2a2d6e 0%, #141638 45%, #05060f 100%); }
    .tv-mf.tv-mf-dusk { background: radial-gradient(120% 90% at 72% 0%, #4a2a6b 0%, #1e1638 50%, #0a0814 100%); }
    .tv-mf.tv-mf-dawn { background: linear-gradient(180deg, #2c335c 0%, #8e4a6c 58%, #e8995a 100%); }
    .tv-mf.tv-mf-day { background: radial-gradient(130% 100% at 50% 0%, #2f4b6e 0%, #1c2c45 55%, #0d1626 100%); }
    .tv-mf-moon { position: absolute; right: 8%; top: 9%; width: 17cqh; height: 17cqh; border-radius: 9999px; pointer-events: none;
      background: radial-gradient(circle at 38% 36%, #fffbe8 0%, #f3e3ad 55%, #d6bd76 100%); box-shadow: 0 0 6cqh rgba(255,244,200,0.35), 0 0 14cqh rgba(255,244,200,0.16); opacity: 0.92; }
    .tv-mf-stars { position: absolute; inset: 0 0 40% 0; pointer-events: none; opacity: 0.8;
      background-image: radial-gradient(0.25cqh 0.25cqh at 8% 18%, #fff 50%, transparent 51%), radial-gradient(0.2cqh 0.2cqh at 17% 42%, #e0e7ff 50%, transparent 51%),
        radial-gradient(0.3cqh 0.3cqh at 27% 12%, #fff 50%, transparent 51%), radial-gradient(0.2cqh 0.2cqh at 38% 30%, #c7d2fe 50%, transparent 51%),
        radial-gradient(0.25cqh 0.25cqh at 49% 8%, #fff 50%, transparent 51%), radial-gradient(0.2cqh 0.2cqh at 58% 36%, #e0e7ff 50%, transparent 51%),
        radial-gradient(0.3cqh 0.3cqh at 66% 16%, #fff 50%, transparent 51%), radial-gradient(0.2cqh 0.2cqh at 79% 44%, #c7d2fe 50%, transparent 51%),
        radial-gradient(0.25cqh 0.25cqh at 88% 26%, #fff 50%, transparent 51%), radial-gradient(0.2cqh 0.2cqh at 95% 10%, #e0e7ff 50%, transparent 51%); }
    .tv-mf-skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 20cqh; pointer-events: none; }
    .tv-mf-skyline path { fill: rgba(4,5,14,0.88); }
    .tv-mf .tv-safe { display: grid; grid-template-rows: 9cqh minmax(0, 1fr) 6cqh; row-gap: 1.6cqh; }
    .tv-mf-main { display: grid; grid-template-columns: 88cqh minmax(0, 1fr); column-gap: 2.4cqh; min-height: 0; }
    .tv-mf-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.8cqh; padding: 3cqh; text-align: center; min-height: 0; min-width: 0; overflow: hidden; }
    .tv-mf-k { font-size: 2.2cqh; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #c7d2fe; }
    .tv-mf-icon { font-size: 12cqh; line-height: 1; filter: drop-shadow(0 0.6cqh 1.6cqh rgba(0,0,0,0.5)); }
    .tv-mf-big { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 7cqh; line-height: 1.02; color: #fff; text-shadow: 0 0.4cqh 0 rgba(0,0,0,0.25); }
    .tv-mf-line { font-size: 2.8cqh; font-weight: 700; color: #e2e8f0; line-height: 1.25; max-width: 78cqh; }
    .tv-mf-dim { color: #a5b4fc; }
    .tv-mf-count { display: flex; align-items: baseline; gap: 1.2cqh; }
    .tv-mf-count b { font-family: 'Baloo 2', system-ui, sans-serif; font-size: 11cqh; line-height: 0.9; font-weight: 800; color: #fff; }
    .tv-mf-count span { font-size: 3cqh; font-weight: 800; color: #cbd5e1; }
    .tv-mf-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9cqh; max-width: 70cqh; }
    .tv-mf-dot { width: 2.4cqh; height: 2.4cqh; border-radius: 9999px; box-shadow: inset 0 0 0 0.3cqh rgba(199,210,254,0.55); }
    .tv-mf-dot.tv-mf-dot-on { background: #a5b4fc; box-shadow: 0 0 1.2cqh rgba(165,180,252,0.7); }
    .tv-mf-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2cqh; margin-top: 1cqh; }
    .tv-mf-step { border-radius: 9999px; padding: 0.6cqh 1.8cqh; font-size: 2.4cqh; font-weight: 800; background: rgba(255,255,255,0.08); color: #94a3b8; white-space: nowrap; }
    .tv-mf-step.tv-mf-step-on { background: #6366f1; color: #fff; box-shadow: 0 0 2.4cqh rgba(99,102,241,0.7); }
    .tv-mf-step.tv-mf-step-done { color: #64748b; }
    .tv-mf-step.tv-mf-step-next { color: #c7d2fe; box-shadow: inset 0 0 0 0.25cqh rgba(129,140,248,0.75); }
    .tv-mf-lull .tv-mf-icon { animation-duration: 4.4s; }
    /* the host's controls (TV chrome, top centre) and a paused game */
    .tv-mf-ctl { position: absolute; top: 1.3cqh; left: 50%; transform: translateX(-50%); z-index: 40; display: flex; align-items: center; gap: 0.5cqw; }
    .tv-mf-ctl-b { cursor: pointer; } .tv-mf-ctl-b:hover { color: #fff; background: rgba(79,70,229,0.92); }
    .tv-mf-ctl-b.tv-mf-ctl-hot { color: #1e1b4b; background: #fde68a; }
    .tv-mf-ctl-b.tv-mf-ctl-end { color: #fff; background: #e11d48; }
    .tv-mf-ctl-keys { color: #94a3b8; font-weight: 700; }
    .tv-mf-pause { position: absolute; inset: 11cqh 0 8cqh 0; z-index: 20; display: flex; align-items: center; justify-content: center; border-radius: 2.4cqh; background: rgba(4,6,18,0.62); backdrop-filter: blur(0.6cqh); }
    .tv-mf-pause-box { display: flex; flex-direction: column; align-items: center; gap: 1.2cqh; text-align: center; }
    .tv-mf-pause-icon { font-size: 14cqh; line-height: 1; }
    .tv-mf-pause-t { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 11cqh; line-height: 0.95; color: #fde68a; }
    .tv-mf-pause-by { font-size: 3.2cqh; font-weight: 800; color: #e0e7ff; }
    .tv-timer.tv-mf-frozen { background: rgba(253,230,138,0.16); box-shadow: inset 0 0 0 0.25cqh rgba(253,230,138,0.6); }
    .tv-timer.tv-mf-frozen .tv-timer-lbl { color: #fde68a; }
    /* the voice: which one speaks, in plain words, and a test */
    .tv-mf-voice { display: flex; flex-direction: column; align-items: center; gap: 0.8cqh; margin-top: 0.6cqh; }
    .tv-mf-voice-now { font-size: 2.3cqh; font-weight: 800; color: #e0e7ff; }
    .tv-mf-voice-sub { font-size: 1.9cqh; font-weight: 700; color: #fcd34d; }
    .tv-mf-test { border-radius: 9999px; padding: 0.7cqh 2.4cqh; font-size: 2.3cqh; font-weight: 800; color: #1e1b4b; background: #c7d2fe; cursor: pointer; }
    .tv-mf-test:hover { background: #e0e7ff; }
    .tv-mf-voice-res { font-size: 2.1cqh; font-weight: 800; color: #a7f3d0; }
    .tv-mf-nightcard .tv-mf-icon { font-size: 14cqh; animation: tvMfBreath 3.2s ease-in-out infinite; }
    @keyframes tvMfBreath { 0%, 100% { transform: scale(1); opacity: 0.95; } 50% { transform: scale(1.06); opacity: 1; } }
    .tv-mf-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 1cqh; max-width: 82cqh; }
    .tv-mf-chip { border-radius: 9999px; padding: 0.6cqh 1.6cqh; font-size: 2.2cqh; font-weight: 800; background: rgba(255,255,255,0.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18); white-space: nowrap; }
    .tv-mf-chip.tv-mf-chip-hot { background: rgba(225,29,72,0.32); box-shadow: inset 0 0 0 1px rgba(251,113,133,0.65); }
    .tv-mf-lobby .tv-mf-big { font-size: 6cqh; }
    /* the morning's story and the verdict */
    .tv-mf-story { gap: 2.6cqh; }
    .tv-mf-victim { display: flex; align-items: center; gap: 3cqh; text-align: left; max-width: 100%; }
    .tv-mf-victim .tv-mf-big { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-av.tv-mf-av-xl { width: 16cqh; height: 16cqh; }
    .tv-av.tv-mf-av-xl > div { font-size: 6cqh !important; box-shadow: 0 0 0 0.5cqh rgba(255,255,255,0.85); }
    .tv-mf-story-dead .tv-mf-av-xl > div, .tv-mf-verdict .tv-mf-av-xl > div { filter: grayscale(0.85); }
    .tv-mf-role { display: inline-block; margin-top: 1.2cqh; border-radius: 9999px; padding: 0.5cqh 1.8cqh; font-size: 2.6cqh; font-weight: 800; white-space: nowrap; }
    .tv-mf-role-mafia { background: #dc2626; color: #fff; }
    .tv-mf-role-doctor { background: #059669; color: #fff; }
    .tv-mf-role-detective { background: #4f46e5; color: #fff; }
    .tv-mf-role-villager { background: #475569; color: #fff; }
    .tv-mf-tale { font-size: 3.3cqh; font-weight: 700; line-height: 1.35; color: #fef3c7; max-width: 80cqh; font-style: italic; }
    .tv-mf-tied { display: flex; flex-wrap: wrap; justify-content: center; gap: 2cqh; }
    .tv-mf-tiedp { display: inline-flex; align-items: center; gap: 1cqh; font-size: 3cqh; font-weight: 800; }
    .tv-mf-tiedp .tv-av { width: 6cqh; height: 6cqh; }
    .tv-mf-verdict { gap: 2.4cqh; }
    .tv-mf-bars { width: 100%; max-width: 76cqh; display: flex; flex-direction: column; gap: 1.1cqh; }
    .tv-mf-bar { display: grid; grid-template-columns: 22cqh minmax(0, 1fr) 5cqh; align-items: center; gap: 1.4cqh; }
    .tv-mf-bar-n { font-size: 2.6cqh; font-weight: 800; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-mf-bar-track { height: 3cqh; border-radius: 9999px; background: rgba(255,255,255,0.08); overflow: hidden; }
    .tv-mf-bar-fill { display: block; height: 100%; border-radius: 9999px; background: #818cf8; }
    .tv-mf-bar-fill.tv-mf-bar-out { background: #f43f5e; }
    .tv-mf-bar-v { font-family: 'Baloo 2', system-ui, sans-serif; font-size: 3.4cqh; font-weight: 800; text-align: left; }
    .tv-mf-win.tv-mf-win-mafia { box-shadow: 0 0 0 0.45cqh #f43f5e, 0 0 4cqh rgba(244,63,94,0.55), inset 0 0 0 1px rgba(255,255,255,0.09); }
    .tv-mf-win.tv-mf-win-town { box-shadow: 0 0 0 0.45cqh #34d399, 0 0 4cqh rgba(52,211,153,0.55), inset 0 0 0 1px rgba(255,255,255,0.09); }
    .tv-mf-win .tv-mf-big { font-size: 9cqh; }
    /* the village */
    .tv-mf-village { display: flex; flex-direction: column; min-height: 0; min-width: 0; padding: 2cqh; overflow: hidden; }
    .tv-mf-vil-h { display: flex; align-items: baseline; justify-content: space-between; gap: 1cqh; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 3.4cqh; line-height: 1.1; margin-bottom: 1.6cqh; }
    .tv-mf-vil-h span { font-size: 2.3cqh; color: #a5b4fc; white-space: nowrap; }
    .tv-mf-vil-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4cqh; align-content: start; min-height: 0; }
    .tv-mf-p { display: flex; flex-direction: column; align-items: center; gap: 0.6cqh; padding: 1.2cqh 0.6cqh; border-radius: 1.6cqh; background: rgba(255,255,255,0.06); min-width: 0; }
    .tv-av.tv-mf-av { width: 8cqh; height: 8cqh; }
    .tv-av.tv-mf-av > div { font-size: 3cqh !important; }
    .tv-av.tv-mf-av-lg { width: 9cqh; height: 9cqh; }
    .tv-av.tv-mf-av-lg > div { font-size: 3.4cqh !important; }
    .tv-mf-pn { font-size: 2.3cqh; font-weight: 800; line-height: 1.2; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-mf-ps { font-size: 1.8cqh; font-weight: 800; line-height: 1.4; border-radius: 9999px; padding: 0 1cqh; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #cbd5e1; min-height: 2.5cqh; }
    .tv-mf-ps.tv-mf-ps-empty { visibility: hidden; }
    .tv-mf-p.tv-mf-p-dead { background: rgba(0,0,0,0.28); }
    .tv-mf-p-dead .tv-mf-av > div { filter: grayscale(1); opacity: 0.55; }
    .tv-mf-p-dead .tv-mf-pn { color: #94a3b8; text-decoration: line-through; }
    .tv-mf-vil-lg .tv-mf-vil-grid { gap: 1.8cqh; }
    .tv-mf-vil-lg .tv-mf-p { padding: 2cqh 0.8cqh 1.6cqh; gap: 1cqh; }
    .tv-mf-vil-lg .tv-av.tv-mf-av { width: 11cqh; height: 11cqh; }
    .tv-mf-vil-lg .tv-av.tv-mf-av > div { font-size: 4.2cqh !important; }
    .tv-mf-vil-lg .tv-mf-pn { font-size: 2.9cqh; }
    .tv-mf-vil-lg .tv-mf-ps { font-size: 2.2cqh; min-height: 3cqh; }
    .tv-mf-vil-md .tv-mf-vil-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1cqh; }
    .tv-mf-vil-md .tv-av.tv-mf-av { width: 7cqh; height: 7cqh; }
    .tv-mf-vil-sm .tv-mf-vil-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.9cqh; }
    .tv-mf-vil-sm .tv-mf-p { padding: 0.7cqh 0.4cqh; gap: 0.4cqh; }
    .tv-mf-vil-sm .tv-av.tv-mf-av { width: 6cqh; height: 6cqh; }
    .tv-mf-vil-sm .tv-mf-pn { font-size: 2cqh; }
    .tv-mf-vil-xs .tv-mf-vil-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.8cqh; }
    .tv-mf-vil-xs .tv-mf-p { padding: 0.6cqh 0.3cqh; gap: 0.3cqh; }
    .tv-mf-vil-xs .tv-av.tv-mf-av { width: 5cqh; height: 5cqh; }
    .tv-mf-vil-xs .tv-mf-pn { font-size: 1.8cqh; }
    .tv-mf-vil-xs .tv-mf-ps { font-size: 1.5cqh; }
    /* the narrator: its caption, the switch, and the one click a browser needs before sound */
    .tv-mf-caption { align-self: center; justify-self: center; max-width: 100%; border-radius: 2.2cqh; padding: 0.5cqh 2.4cqh; font-size: 2.3cqh; font-weight: 700; line-height: 1.25; color: #e0e7ff;
      background: rgba(6,13,26,0.74); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; text-align: center; }
    .tv-mf-caption.tv-mf-caption-off { visibility: hidden; }
    .tv-mf-narr { position: absolute; left: 0.9cqw; top: 1.3cqh; z-index: 40; cursor: pointer; }
    .tv-mf-unlock { position: absolute; left: 50%; bottom: 6.5cqh; z-index: 30; transform: translateX(-50%); border-radius: 9999px; padding: 1.4cqh 3.4cqh; font-size: 3cqh; font-weight: 800; color: #1e1b4b; background: #fde68a; white-space: nowrap;
      box-shadow: 0 0 0 0.5cqh rgba(253,230,138,0.32), 0 1cqh 3cqh rgba(0,0,0,0.5); cursor: pointer; animation: tvMfPulse 1.8s ease-in-out infinite; }
    .tv-mf-unlock.tv-mf-unlock-row { position: static; transform: none; align-self: center; justify-self: center; padding: 0.8cqh 3cqh; font-size: 2.5cqh; }
    @keyframes tvMfPulse { 0%, 100% { box-shadow: 0 0 0 0.5cqh rgba(253,230,138,0.32), 0 1cqh 3cqh rgba(0,0,0,0.5); } 50% { box-shadow: 0 0 0 1.4cqh rgba(253,230,138,0.12), 0 0 5cqh rgba(253,230,138,0.55); } }
    /* the attract screen and the old modes */
    .tv-mf .tv-safe.tv-mf-attract { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.4cqh; text-align: center; }
    .tv-mf-hero-icon { font-size: 13cqh; line-height: 1; filter: drop-shadow(0 1cqh 2cqh rgba(0,0,0,0.5)); }
    .tv-mf-hero-title { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 15cqh; line-height: 0.9; color: #fff; text-shadow: 0 0.6cqh 0 rgba(0,0,0,0.35), 0 1cqh 3cqh rgba(0,0,0,0.5); }
    .tv-mf-hero-title.tv-mf-hero-sm { font-size: 10cqh; }
    .tv-mf-hero-sub { font-size: 3.2cqh; font-weight: 800; color: #e0e7ff; }
    .tv-mf-hero-line { font-size: 2.4cqh; font-weight: 800; color: #c7d2fe; max-width: 120cqh; }
    .tv-mf-call { display: inline-block; border-radius: 9999px; padding: 1.2cqh 2.6cqw; font-size: 3.2cqh; font-weight: 800; color: #1e1b4b; background: rgba(255,255,255,0.95); box-shadow: 0 1cqh 3cqh rgba(0,0,0,0.4); }
    .tv-mf-legacy-win { border-radius: 9999px; padding: 1cqh 3cqh; font-family: 'Baloo 2', system-ui, sans-serif; font-size: 5cqh; font-weight: 800; }
    .tv-mf-legacy-win.tv-mf-win-mafia { background: rgba(220,38,38,0.85); }
    .tv-mf-legacy-win.tv-mf-win-town { background: rgba(5,150,105,0.85); }
    .tv-mf-legacy-ppl { display: flex; flex-wrap: wrap; justify-content: center; gap: 2cqh; max-width: 140cqh; }
    .tv-mf-legacy-p { display: flex; flex-direction: column; align-items: center; gap: 0.8cqh; width: 13cqh; }
    .tv-mf-legacy-n { font-size: 2.3cqh; font-weight: 800; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    @media (prefers-reduced-motion: reduce) {
      .tv-mf-nightcard .tv-mf-icon, .tv-mf-unlock { animation: none !important; }
    }
    /* ---- 🔪 Mafia, app-run: the night screen — every living phone shows it alike (same in both themes) ---- */
    .mf-night-wrap { background: radial-gradient(120% 70% at 50% 0%, #1e1b4b 0%, #0b1026 55%, #05070f 100%); color: #e2e8f0; }
    .mf-night { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; padding: 14px 14px 18px; overflow-y: auto; }
    .mf-night-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
    .mf-night-n { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 20px; color: #c7d2fe; }
    .mf-night-clock { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 18px; color: #e0e7ff; background: rgba(99,102,241,0.18); border-radius: 9999px; padding: 2px 12px; }
    .mf-night-step { margin-top: 12px; font-size: 15px; font-weight: 800; color: #a5b4fc; text-align: center; }
    .mf-night-ask { margin-top: 4px; font-family: 'Baloo 2', system-ui, sans-serif; font-size: 25px; font-weight: 800; line-height: 1.1; color: #f8fafc; text-align: center; }
    .mf-night-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .mf-night-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px 7px; border-radius: 14px; min-width: 0; color: #e2e8f0;
      background: rgba(255,255,255,0.05); box-shadow: inset 0 0 0 1px rgba(165,180,252,0.18); }
    .mf-night-tile.mf-night-sel { background: rgba(129,140,248,0.24); box-shadow: inset 0 0 0 2px #a5b4fc; }
    .mf-night-av { display: inline-flex; opacity: 0.92; }
    .mf-night-name { max-width: 100%; font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .mf-night-marks { height: 14px; line-height: 14px; max-width: 100%; font-size: 10.5px; font-weight: 800; color: #c7d2fe; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .mf-night-info { margin-top: 14px; min-height: 42px; border-radius: 12px; padding: 10px 12px; background: rgba(255,255,255,0.05); font-size: 14px; font-weight: 700; color: #e0e7ff; text-align: center; }
    .mf-night-foot { margin-top: auto; padding-top: 16px; text-align: center; font-size: 11.5px; color: #818cf8; }
    .mf-testbar { margin-bottom: 10px; border-radius: 12px; padding: 8px 10px; background: rgba(245,158,11,0.14); box-shadow: inset 0 0 0 1px rgba(245,158,11,0.5); }
    .mf-testbar-h { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #b45309; }
    .mf-testbar-row { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
    .mf-testbar-chip { border-radius: 9999px; padding: 3px 10px; font-size: 12px; font-weight: 700; color: #78350f; background: rgba(255,255,255,0.75); box-shadow: inset 0 0 0 1px rgba(180,83,9,0.35); }
    .mf-testbar-chip.mf-testbar-on { color: #fff; background: #f59e0b; box-shadow: none; }
    html.jbf-dark .mf-testbar-h, .mf-night .mf-testbar-h { color: #fcd34d; }
    html.jbf-dark .mf-testbar-chip:not(.mf-testbar-on), .mf-night .mf-testbar-chip:not(.mf-testbar-on) { color: #fde68a; background: rgba(255,255,255,0.08); }
    .mf-night-host { margin-left: auto; border-radius: 9999px; padding: 3px 12px; font-size: 13px; font-weight: 800; color: #e0e7ff; background: rgba(255,255,255,0.1); box-shadow: inset 0 0 0 1px rgba(165,180,252,0.35); }
    .mf-night-lull { margin-top: 26px; text-align: center; font-size: 60px; line-height: 1; }
    /* the last 10 s of a clock (phones): red and pulsing */
    .mf-urgent { color: #e11d48 !important; display: inline-block; animation: mfUrgent 1s ease-in-out infinite; }
    html.jbf-dark .mf-urgent { color: #fb7185 !important; }
    .mf-night-clock.mf-urgent, html.jbf-dark .mf-night-clock.mf-urgent { color: #fff !important; background: #e11d48; }
    @keyframes mfUrgent { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
    /* a paused game (phones) */
    .mf-paused { border-radius: 12px; padding: 10px 12px; text-align: center; font-size: 13.5px; font-weight: 800; color: #92400e; background: #fef3c7; box-shadow: inset 0 0 0 1px #fcd34d; }
    html.jbf-dark .mf-paused { color: #fde68a; background: rgba(245,158,11,0.16); box-shadow: inset 0 0 0 1px rgba(252,211,77,0.45); }
    @media (prefers-reduced-motion: reduce) { .mf-urgent { animation: none !important; } }
    /* ---- Spades immersive table ---- */
    @keyframes spDeal {
      0% { transform: translate(0,0) rotate(0deg) scale(0.7); opacity: 0; }
      12% { opacity: 1; }
      100% { transform: translate(var(--spx,0), var(--spy,0)) rotate(var(--spr,0deg)) scale(1); opacity: 1; }
    }
    .sp-deal { animation: spDeal 0.5s cubic-bezier(.2,.7,.3,1) both; }
    @keyframes spPlay {
      0% { transform: translate(var(--spfx,0), var(--spfy,0)) scale(0.8); opacity: 0.2; }
      100% { transform: translate(0,0) scale(1); opacity: 1; }
    }
    .sp-play { animation: spPlay 0.32s ease-out both; }
    @keyframes spGlow {
      0%, 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0.0), 0 0 10px 2px rgba(52,211,153,0.55); }
      50% { box-shadow: 0 0 0 3px rgba(52,211,153,0.35), 0 0 16px 5px rgba(52,211,153,0.75); }
    }
    .sp-glow { animation: spGlow 1.4s ease-in-out infinite; }
    .sp-felt { background:
        radial-gradient(120% 90% at 50% 36%, #1f9d63 0%, #138a52 42%, #0c6f41 78%, #0a5c37 100%);
    }
    .sp-rail { background: linear-gradient(180deg, #8a5328 0%, #6b3d1c 45%, #4a2a12 100%); }
    .sp-card-shadow { box-shadow: 0 1px 3px rgba(0,0,0,0.35), 0 4px 10px rgba(0,0,0,0.18); }
    /* Spades-broken "smashed glass" burst */
    @keyframes spFlash { 0% { opacity: 0; } 16% { opacity: 0.7; } 100% { opacity: 0; } }
    @keyframes spCrack { 0% { opacity: 0; transform: scale(0.55); } 18% { opacity: 1; transform: scale(1.04); } 70% { opacity: 0.9; transform: scale(1.08); } 100% { opacity: 0; transform: scale(1.14); } }
    @keyframes spShard {
      0% { opacity: 0; transform: translate(0,0) rotate(0deg) scale(1); }
      18% { opacity: 1; }
      100% { opacity: 0; transform: translate(var(--sx,0), var(--sy,0)) rotate(var(--sr,200deg)) scale(0.35); }
    }
    .sp-flash { animation: spFlash 0.55s ease-out both; }
    .sp-crack { animation: spCrack 1s ease-out both; }
    .sp-shard { animation: spShard 0.95s cubic-bezier(.2,.6,.3,1) both; }
    /* ---- ♠️ Spades table ART (phone + TV): the table root carries .sp-art once spArtLoad has its
       set, and the art's versioned URLs + 9-slice numbers as custom properties (spArtVars, from the
       generated SP_ART_GEOM). Every layer below is absolutely placed with pointer-events: none (or
       a background on an existing box), so nothing that lays out or takes a tap moves — the harness
       checks every interactive box against the CSS look. The `.sp-felt` class is shared with other
       games' tables: everything here is scoped under .sp-art, which only Spades sets. ---- */
    .sp-art-felt, .sp-art-rail, .sp-inlay, .sp-plate { display: none; }
    .sp-art.sp-felt { background: #120c08; }   /* beyond the rail: the room */
    .sp-art .sp-rail-css, .sp-art .sp-trick-mark { display: none; }
    /* the cloth: the baize tile under a soft overhead light pool and a vignette toward the rail */
    .sp-art .sp-art-felt { display: block; position: absolute; inset: var(--spf-in); border-radius: var(--spf-r); pointer-events: none;
      background: radial-gradient(ellipse 70% 50% at 50% 46%, rgba(255,243,206,0.12) 0%, rgba(255,243,206,0.05) 45%, rgba(255,243,206,0) 72%),
        radial-gradient(ellipse 88% 78% at 50% 47%, rgba(0,0,0,0) 38%, rgba(0,0,0,0.2) 72%, rgba(0,0,0,0.46) 100%),
        var(--sp-felt) 50% 50% / var(--spf-tile) var(--spf-tile) repeat, #135f3d; }
    /* the rail: a 9-slice frame — corners as rendered, each edge's middle repeated (round) */
    .sp-art .sp-art-rail { display: block; position: absolute; inset: 4px; pointer-events: none; box-sizing: border-box;
      border-style: solid; border-color: transparent; border-width: var(--spr-w);
      border-image-source: var(--sp-rail); border-image-slice: var(--spr-s); border-image-width: var(--spr-w); border-image-repeat: round; }
    /* the inlay under the trick (inside the pile box's stacking context, beneath the cards) */
    .sp-art .sp-inlay { display: block; position: absolute; left: 50%; top: 50%; z-index: -1; pointer-events: none;
      width: var(--spi-w); height: var(--spi-w); margin: calc(var(--spi-w) / -2) 0 0 calc(var(--spi-w) / -2);
      background: var(--sp-inlay) 50% 50% / 100% 100% no-repeat; }
    /* a seat's leather name plate: behind the name and bid, tucked under the avatar's lower half */
    .sp-art .sp-plate { display: block; position: absolute; left: -9px; right: -9px; top: 29px; bottom: -4px; z-index: -1; pointer-events: none;
      border-style: solid; border-color: transparent; border-width: var(--spp-w);
      border-image-source: var(--sp-plate); border-image-slice: var(--spp-s) fill; border-image-width: var(--spp-w);
      border-image-outset: var(--spp-o); border-image-repeat: round; }
    /* a short screen (a phone on its side) squeezes the top and bottom seats into the trick: their
       plates would only stack up there, so they go */
    @media (max-height: 520px) { .sp-art .sp-seat-t .sp-plate, .sp-art .sp-seat-b .sp-plate { display: none; } }
    .sp-back-art { background-size: 100% 100%; background-repeat: no-repeat; background-position: 50% 50%; }
    /* 📺 the TV table (SpadesTv): the felt + inlay and the TV's own rail on the .tv-sp-felt box's
       pseudo-elements, plates behind the seat text, Blender backs for the cards still held */
    .tv-sp.sp-art .tv-sp-felt { background: none; border-radius: var(--spr-ro); box-shadow: 0 1.2cqh 3cqh rgba(0,0,0,0.45); }
    .tv-sp.sp-art .tv-sp-felt::before { content: ''; position: absolute; inset: var(--spf-in); border-radius: var(--spf-r); pointer-events: none;
      background: radial-gradient(ellipse 62% 56% at 50% 47%, rgba(255,243,206,0.11) 0%, rgba(255,243,206,0.04) 48%, rgba(255,243,206,0) 74%),
        radial-gradient(ellipse 80% 82% at 50% 48%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.18) 74%, rgba(0,0,0,0.42) 100%),
        var(--sp-inlay) 50% 50% / var(--spi-w) var(--spi-w) no-repeat,
        var(--sp-felt) 50% 50% / var(--spf-tile) var(--spf-tile) repeat, #135f3d; }
    .tv-sp.sp-art .tv-sp-felt::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-sizing: border-box;
      border-style: solid; border-color: transparent; border-width: var(--spr-w);
      border-image-source: var(--sp-rail); border-image-slice: var(--spr-s); border-image-width: var(--spr-w); border-image-repeat: round; }
    .tv-sp.sp-art .tv-sp-watermark { display: none; }
    .tv-sp.sp-art .tv-sp-seat-text { position: relative; }
    .tv-sp.sp-art .tv-sp-seat-text::before { content: ''; position: absolute; inset: -0.9cqh -1.5cqh -0.8cqh; z-index: -1; pointer-events: none;
      border-style: solid; border-color: transparent; border-width: var(--spp-w);
      border-image-source: var(--sp-plate); border-image-slice: var(--spp-s) fill; border-image-width: var(--spp-w);
      border-image-outset: var(--spp-o); border-image-repeat: round; }
    .tv-sp.sp-art .tv-sp-back, .tv-sp.sp-art .tv-sp-dealcard { background: var(--sp-back) 50% 50% / 100% 100% no-repeat; }
    .tv-sp.sp-art .tv-sp-back { box-shadow: 0 0.2cqh 0.5cqh rgba(0,0,0,0.45); }
    .tv-sp.sp-art .tv-sp-back + .tv-sp-back { box-shadow: -0.35cqh 0 0.5cqh rgba(0,0,0,0.5); }
    .tv-sp.sp-art .tv-sp-dealcard { box-shadow: 0 0.4cqh 1cqh rgba(0,0,0,0.4); }
    /* the attract screen (no table yet): the bare cloth under a deep vignette */
    .tv-sp.sp-art.tv-sp-idle { background: radial-gradient(ellipse 70% 72% at 50% 46%, rgba(0,0,0,0) 30%, rgba(0,0,0,0.38) 70%, rgba(0,0,0,0.72) 100%),
      var(--sp-felt) 50% 50% / var(--spf-tile) var(--spf-tile) repeat, #0f4d32; }
    /* ---- Poker immersive table: 3D felt, raised rail, chips, deal/bet/win motion ---- */
    .pk-room { background:
        radial-gradient(140% 120% at 50% -10%, #14302a 0%, #0c211d 55%, #060f0d 100%); }
    .pk-felt { background:
        radial-gradient(60% 48% at 50% 34%, #1ea968 0%, #138a52 38%, #0b6b40 68%, #084d2f 100%);
      box-shadow: inset 0 8px 26px rgba(0,0,0,0.45), inset 0 -10px 30px rgba(0,0,0,0.55), 0 18px 40px rgba(0,0,0,0.5); }
    .pk-rail { background: linear-gradient(180deg, #4a3322 0%, #2c1d12 50%, #170d07 100%);
      box-shadow: inset 0 2px 3px rgba(255,255,255,0.18), inset 0 -4px 8px rgba(0,0,0,0.6), 0 10px 26px rgba(0,0,0,0.55); }
    .pk-rail-hi { box-shadow: inset 0 0 0 2px rgba(255,255,255,0.06), inset 0 1px 1px rgba(255,255,255,0.22); }
    .pk-card-sh { box-shadow: 0 2px 4px rgba(0,0,0,0.45), 0 6px 14px rgba(0,0,0,0.3); }
    @keyframes pkDealFly { from { transform: translate(calc(-50% + var(--dx,0px)), calc(-50% + var(--dy,0px))) scale(0.7); opacity: 0; }
      25% { opacity: 1; } to { transform: translate(-50%,-50%) scale(1); opacity: 1; } }
    @keyframes pkBetIn { from { transform: translateY(10px) scale(0.4); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
    .pk-bet-in { animation: pkBetIn 0.4s cubic-bezier(.3,.7,.3,1) both; }
    @keyframes pkPotPop { 0% { transform: scale(0.7); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
    .pk-pot-pop { animation: pkPotPop 0.5s ease-out both; }
    /* ---- 🃏 Poker table ART (phone + TV): the table root (.pk-room on the phone, .tv-pk on the TV)
       carries .pk-art once pkArtLoad has every file, and the art's versioned URLs + numbers as custom
       properties (pkArtVars, from the generated PK_ART_GEOM). Every layer below is absolutely placed
       with pointer-events: none, or a background on an existing box, so nothing that lays out or
       takes a tap moves (the harness checks every box against the CSS look). The table is a
       RACETRACK: the rail's 9-slice has quarter-circle corners and is drawn with
       border-image-width = R = half the table box's shorter side. Every rule is scoped under .pk-art
       (only Poker sets it), so no other game's table changes. ---- */
    .pk-art-table, .pk-plate, .pk-frame { display: none; }
    .pk-art .pk-rail, .pk-art .pk-felt { display: none; }
    /* the phone's table: a size container over the table area, so the racetrack can be sized from it */
    .pk-art .pk-art-table { display: block; position: absolute; inset: 0; pointer-events: none; container-type: size;
      --pkw: 82cqw; --pkh: 76cqh; --R: min(41cqw, 38cqh); }
    .pk-art .pk-art-rail, .pk-art .pk-art-felt { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); box-sizing: border-box; pointer-events: none; }
    .pk-art .pk-art-felt { --fi: calc(var(--R) * var(--pkr-fi)); width: calc(var(--pkw) - 2 * var(--fi)); height: calc(var(--pkh) - 2 * var(--fi));
      border-radius: calc(var(--R) - var(--fi));
      background: radial-gradient(ellipse 72% 58% at 50% 42%, rgba(255,240,200,0.14) 0%, rgba(255,240,200,0.05) 48%, rgba(255,240,200,0) 74%),
        radial-gradient(ellipse 90% 86% at 50% 46%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.22) 74%, rgba(0,0,0,0.48) 100%),
        var(--pk-felt) 50% 50% / var(--pkf-tile) var(--pkf-tile) repeat, #0d533c; }
    .pk-art .pk-art-rail { width: var(--pkw); height: var(--pkh); border-radius: var(--R);
      border-style: solid; border-color: transparent; border-width: var(--R);
      border-image-source: var(--pk-rail); border-image-slice: var(--pkr-s); border-image-width: var(--R); border-image-repeat: round;
      box-shadow: 0 2.2cqh 5cqh rgba(0,0,0,0.55), 0 0.6cqh 1.4cqh rgba(0,0,0,0.4); }
    .pk-art .pk-watermark { color: rgba(220,194,131,0.13); }
    /* a seat's leather name plate behind its name and stack */
    .pk-art .pk-namebox { background: transparent !important; box-shadow: none !important; }
    .pk-art .pk-plate { display: block; position: absolute; inset: 0; z-index: -1; pointer-events: none;
      border-style: solid; border-color: transparent; border-width: var(--pkp-w);
      border-image-source: var(--pk-plate); border-image-slice: var(--pkp-s) fill; border-image-width: var(--pkp-w);
      border-image-outset: calc(var(--pkp-w) * var(--pkp-o)); border-image-repeat: round; }
    /* the dealer button: the Blender puck under the D (beats the dark theme's bg-white / text remaps) */
    .pk-art .pk-dbtn.pk-dbtn { background: var(--pk-puck) 50% 50% / 100% 100% no-repeat !important; color: #1f2937 !important; box-shadow: 0 1px 2px rgba(0,0,0,0.55); }
    /* the printed frame round the five community cards (the board row's middle) */
    .pk-art .pk-frame { display: block; position: absolute; left: 50%; top: 50%; width: 232px; height: 72px; transform: translate(-50%, -50%); z-index: -1; pointer-events: none;
      box-sizing: border-box; border-style: solid; border-color: transparent; border-width: var(--pkfr-w);
      border-image-source: var(--pk-frame); border-image-slice: var(--pkfr-s); border-image-width: var(--pkfr-w); border-image-repeat: round; }
    /* clay chip stacks (PkChipArt): sprites from the chip atlas, bottom up; the shadow cell under each */
    .pk-cstack { display: none; position: absolute; pointer-events: none; }
    .pk-art .pk-cstack { display: block; }
    .pk-chip { position: absolute; display: block; background-repeat: no-repeat; pointer-events: none; }
    .pk-chip.pk-chip-sh { opacity: 0.55; }
    .pk-art .pk-chip-css, .tv-pk.pk-art .tv-pk-chip { display: none; }
    /* the card back (and the dealt cards in flight): the Blender back in the same box */
    .pk-art .pk-cback.pk-cback, .pk-art .pk-deal-back.pk-deal-back { background: var(--pk-back) 50% 50% / 100% 100% no-repeat !important; border-color: rgba(0,0,0,0.3) !important; }
    .pk-art .pk-deal-back.pk-deal-back { border-radius: 3px !important; }
    /* the minimized view's board: the felt tile */
    .pk-art .pk-minifelt.pk-minifelt { background: radial-gradient(ellipse 80% 70% at 50% 40%, rgba(255,240,200,0.12) 0%, rgba(255,240,200,0) 70%),
      radial-gradient(ellipse 100% 100% at 50% 50%, rgba(0,0,0,0) 45%, rgba(0,0,0,0.35) 100%), var(--pk-felt) 50% 50% / var(--pkf-tile) var(--pkf-tile) repeat, #0d533c; }
    /* 📺 the TV table (PokerTv): the felt on .tv-pk-rail's ::before and the racetrack rail on its
       ::after (R = half the 74cqh rail box), the leather plate behind each seat, the Blender puck,
       backs, the board frame; the CSS ellipse felt goes */
    .tv-pk.pk-art .tv-pk-felt { display: none; }
    .tv-pk.pk-art .tv-pk-rail { --R: 37cqh; --fi: calc(var(--R) * var(--pkr-fi)); background: none; border-radius: var(--R);
      box-shadow: 0 1.8cqh 4.4cqh rgba(0,0,0,0.6), 0 0.5cqh 1.2cqh rgba(0,0,0,0.4); }
    .tv-pk.pk-art .tv-pk-rail::before { content: ''; position: absolute; inset: var(--fi); border-radius: calc(var(--R) - var(--fi)); pointer-events: none;
      background: radial-gradient(ellipse 64% 58% at 50% 44%, rgba(255,240,200,0.13) 0%, rgba(255,240,200,0.05) 48%, rgba(255,240,200,0) 74%),
        radial-gradient(ellipse 84% 86% at 50% 47%, rgba(0,0,0,0) 42%, rgba(0,0,0,0.2) 74%, rgba(0,0,0,0.46) 100%),
        var(--pk-felt) 50% 50% / var(--pkf-tile) var(--pkf-tile) repeat, #0d533c; }
    .tv-pk.pk-art .tv-pk-rail::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-sizing: border-box;
      border-style: solid; border-color: transparent; border-width: var(--R);
      border-image-source: var(--pk-rail); border-image-slice: var(--pkr-s); border-image-width: var(--R); border-image-repeat: round; }
    .tv-pk.pk-art .tv-pk-plate { background: none; }
    .tv-pk.pk-art .tv-pk-plate::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
      border-style: solid; border-color: transparent; border-width: var(--pkp-w);
      border-image-source: var(--pk-plate); border-image-slice: var(--pkp-s) fill; border-image-width: var(--pkp-w);
      border-image-outset: calc(var(--pkp-w) * var(--pkp-o)); border-image-repeat: round; }
    .tv-pk.pk-art .tv-pk-dealer { background: var(--pk-puck) 50% 50% / 100% 100% no-repeat; box-shadow: 0 0.4cqh 0.8cqh rgba(0,0,0,0.55); }
    .tv-pk.pk-art .tv-pk-back, .tv-pk.pk-art .tv-pk-dealcard { background: var(--pk-back) 50% 50% / 100% 100% no-repeat; box-shadow: 0 0.3cqh 0.7cqh rgba(0,0,0,0.5); }
    .tv-pk.pk-art .tv-pk-back + .tv-pk-back { box-shadow: -0.3cqh 0.2cqh 0.6cqh rgba(0,0,0,0.5); }
    .tv-pk.pk-art .tv-pk-board::before { content: ''; position: absolute; inset: -1.7cqh; z-index: -1; pointer-events: none;
      border-style: solid; border-color: transparent; border-width: var(--pkfr-w);
      border-image-source: var(--pk-frame); border-image-slice: var(--pkfr-s); border-image-width: var(--pkfr-w); border-image-repeat: round; }
    .tv-pk.pk-art .tv-pk-slot { background: rgba(0,0,0,0.1); box-shadow: inset 0 0 0 0.22cqh rgba(220,194,131,0.32); }
    /* the attract screen (no table yet): the bare felt under a deep vignette */
    .tv-pk.pk-art.tv-pk-idle { background: radial-gradient(ellipse 70% 72% at 50% 46%, rgba(0,0,0,0) 30%, rgba(0,0,0,0.4) 70%, rgba(0,0,0,0.74) 100%),
      var(--pk-felt) 50% 50% / var(--pkf-tile) var(--pkf-tile) repeat, #0a4231; }
    /* ---- 🔡 SquadTiles: board frame, wooden tiles, premium squares, live clock ---- */
    .st-board { background: linear-gradient(165deg, #e7f6fb 0%, #dbeafe 55%, #e7f0fa 100%); border-color: #bae6fd !important; }
    html.jbf-dark .st-board { background: linear-gradient(165deg, #0b1626 0%, #0d1b30 100%); border-color: #1e3a5f !important; }
    .st-cell { background: rgba(255,255,255,0.72); box-shadow: inset 0 0 0 1px rgba(100,116,139,0.14); border-radius: 3px; }
    html.jbf-dark .st-cell { background: rgba(148,163,184,0.07); box-shadow: inset 0 0 0 1px rgba(148,163,184,0.13); }
    .st-prem-tw { background: #ffe4e6; color: #e11d48; box-shadow: inset 0 0 0 1px rgba(225,29,72,0.28); border-radius: 3px; }
    .st-prem-dw { background: #ffedd5; color: #ea580c; box-shadow: inset 0 0 0 1px rgba(234,88,12,0.28); border-radius: 3px; }
    .st-prem-tl { background: #dbeafe; color: #2563eb; box-shadow: inset 0 0 0 1px rgba(37,99,235,0.28); border-radius: 3px; }
    .st-prem-dl { background: #d1fae5; color: #059669; box-shadow: inset 0 0 0 1px rgba(5,150,105,0.28); border-radius: 3px; }
    .st-prem-ctr { background: #cffafe; color: #0891b2; box-shadow: inset 0 0 0 1px rgba(8,145,178,0.35); border-radius: 3px; }
    html.jbf-dark .st-prem-tw { background: #341a22; color: #fda4af; box-shadow: inset 0 0 0 1px rgba(253,164,175,0.25); }
    html.jbf-dark .st-prem-dw { background: #33210f; color: #fdba74; box-shadow: inset 0 0 0 1px rgba(253,186,116,0.25); }
    html.jbf-dark .st-prem-tl { background: #14243f; color: #93c5fd; box-shadow: inset 0 0 0 1px rgba(147,197,253,0.25); }
    html.jbf-dark .st-prem-dl { background: #122b21; color: #6ee7b7; box-shadow: inset 0 0 0 1px rgba(110,231,183,0.25); }
    html.jbf-dark .st-prem-ctr { background: #123037; color: #67e8f9; box-shadow: inset 0 0 0 1px rgba(103,232,249,0.3); }
    .st-tile { background: linear-gradient(150deg, #fdf0c8 0%, #f5d78e 60%, #eec569 100%); color: #713f12; border-radius: 4px;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.75), inset 0 -2px 0 rgba(146,94,20,0.28), 0 1px 2px rgba(0,0,0,0.28); }
    html.jbf-dark .st-tile { background: linear-gradient(150deg, #c9a24f 0%, #a67f2f 60%, #8a6722 100%); color: #2d1d05;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), inset 0 -2px 0 rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.5); }
    .st-tile-blank { outline: 1.5px dashed rgba(113,63,18,0.45); outline-offset: -3px; }
    html.jbf-dark .st-tile-blank { outline-color: rgba(45,29,5,0.55); }
    .st-pend { background: linear-gradient(150deg, #38d3f0 0%, #0e9cbe 100%); color: #fff; border-radius: 4px;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 2px 6px rgba(8,145,178,0.45); }
    .st-last { box-shadow: 0 0 0 2px rgba(34,211,238,0.95), inset 0 1px 0 rgba(255,255,255,0.6), 0 1px 3px rgba(0,0,0,0.3); }
    .st-rack { background: linear-gradient(180deg, #8a5f33 0%, #6b4522 55%, #533317 100%); border-radius: 12px;
      box-shadow: inset 0 2px 5px rgba(0,0,0,0.4), inset 0 -1px 0 rgba(255,255,255,0.12), 0 2px 6px rgba(0,0,0,0.22); }
    @keyframes stPop { 0% { transform: scale(0.5); opacity: 0; } 70% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
    .st-pop { animation: stPop 0.22s ease-out both; }
    @keyframes stUrgent { 0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); } 50% { box-shadow: 0 0 0 4px rgba(239,68,68,0.35); } }
    .st-urgent { animation: stUrgent 1s ease-in-out infinite; border-color: #ef4444 !important; }
    /* "+score" float over YOUR just-committed play (presentation only). */
    @keyframes stScoreFloat { 0% { transform: translate(-50%, -30%) scale(0.6); opacity: 0; } 18% { transform: translate(-50%, -75%) scale(1.15); opacity: 1; }
      70% { opacity: 1; } 100% { transform: translate(-50%, -190%) scale(1); opacity: 0; } }
    .st-score-float { position: absolute; z-index: 5; pointer-events: none; white-space: nowrap; font-weight: 800; font-size: 15px; line-height: 1;
      padding: 3px 9px; border-radius: 9999px; color: #fff; background: linear-gradient(150deg, #22c55e, #047857);
      box-shadow: 0 2px 6px rgba(0,0,0,0.3); animation: stScoreFloat 0.85s ease-out both; }
    html.jbf-dark .st-score-float { box-shadow: 0 2px 8px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,255,255,0.18); }
    @media (prefers-reduced-motion: reduce) { .st-score-float { animation: none !important; transform: translate(-50%, -100%); } .st-pop { animation: none !important; } }
    /* ---- 🔡 SquadTiles table ART (ST_ART_GEOM, game-art/squadtiles/; presentation only — nothing here gates a move) ----
       The board screen's root (phone) and the TV screen carry .st-art plus the art URLs as CSS vars
       (stArtVars) once stArtLoad has every file; without it every rule below is inert and SquadTiles
       shows its CSS look. Every art layer is pointer-events: none and paints inside a box the CSS look
       already has, or out of flow: a square's printed face is an absolutely placed grid-area child of
       the board grid (.st-q, under the cells, sized to the grid TRACK — at phone widths the cells are
       wider than their columns, so a tile's own box can't carry the square), a tile's face is its
       cell's ::before (1 : 1.075, real tiles are a touch taller than wide, centred in the square box),
       the frame and the rack are border-images (paint only), the table a background — so the art
       arriving mid-game moves no tap target. html-prefixed where a dark-theme rule must lose. */
    .st-q { display: none; }
    .st-art .st-grid, .st-art .tv-st-grid { isolation: isolate; }
    .st-art .tv-st-grid { position: relative; }
    .st-art .st-q { display: block; position: absolute; inset: 0; z-index: -1; pointer-events: none;
      background-image: var(--st-sq); background-size: var(--st-sq-bg); background-repeat: no-repeat; }
    .st-art .st-sq, .st-art .tv-st-cell { background: none !important; box-shadow: none !important; outline: none !important; }
    .st-art .st-sq > span, .st-art .st-rt > span, .st-art .tv-st-cell > span, .st-art .tv-st-demo-t > span {
      position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
    .st-art .st-sq.st-tile::before, .st-art .st-sq.st-pend::before, .st-art .tv-st-cell.st-tile::before, .st-art .tv-st-wt::before {
      content: ''; position: absolute; top: 0; bottom: 0; left: 3.49%; right: 3.49%; pointer-events: none; border-radius: var(--st-tile-r);
      background: var(--st-sm) var(--st-p) / var(--st-sm-bg) no-repeat; box-shadow: 0 1px 1.5px rgba(12,5,0,0.55); }
    .st-art .st-sq.st-last { z-index: 1; }
    .st-art .st-sq.st-last::before { box-shadow: 0 0 0 1.5px #22d3ee, 0 0 5px 1px rgba(34,211,238,0.8); }
    .st-art .st-sq.st-pend::after { content: ''; position: absolute; top: 0; bottom: 0; left: 3.49%; right: 3.49%; pointer-events: none; border-radius: var(--st-tile-r);
      background: rgba(34,211,238,0.14); box-shadow: inset 0 0 0 1.5px #22d3ee, 0 0 6px 1px rgba(34,211,238,0.75); }
    .st-art .st-sq.st-pend { z-index: 1; }
    /* phone board: the cherry frame (and the navy base the 1 px lines show) as a border-image ROUND
       the grid (8 px, all of it outside the box — exactly the card's border + padding, so it sits
       flush with the card at every width), the linen table behind (seen on a tablet, where the board
       is narrower than its card); the frame's shadow falls on the edge squares */
    html .st-art .st-board { background: var(--st-table) 0 0 / 256px 256px repeat !important; border-color: transparent !important; box-shadow: none !important; overflow: visible !important; }
    .st-art .st-grid { border: 0 solid transparent; border-radius: 3px; box-shadow: 0 4px 9px 6px rgba(8,4,2,0.35);
      border-image-source: var(--st-frame); border-image-slice: var(--st-frame-slice) fill; border-image-width: 8px; border-image-outset: 8px; border-image-repeat: stretch; }
    .st-art .st-grid::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; box-shadow: inset 2px 2px 3px rgba(0,0,0,0.55), inset -1px -1px 1px rgba(255,255,255,0.05); }
    .st-art .st-legend .st-prem-tw, .st-art .st-legend .st-prem-dw, .st-art .st-legend .st-prem-tl, .st-art .st-legend .st-prem-dl, .st-art .st-legend .st-prem-ctr,
    .st-art .tv-st-rchip, .st-art .tv-st-chip.st-prem-tw, .st-art .tv-st-chip.st-prem-dw, .st-art .tv-st-chip.st-prem-tl, .st-art .tv-st-chip.st-prem-dl {
      color: var(--st-ink-sq) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), inset 0 -1px 0 rgba(0,0,0,0.22) !important; }
    .st-art .st-legend .st-prem-tw, .st-art .tv-st-rchip.st-prem-tw, .st-art .tv-st-chip.st-prem-tw { background: var(--st-c-tw) !important; }
    .st-art .st-legend .st-prem-dw, .st-art .tv-st-rchip.st-prem-dw, .st-art .tv-st-chip.st-prem-dw { background: var(--st-c-dw) !important; }
    .st-art .st-legend .st-prem-tl, .st-art .tv-st-rchip.st-prem-tl, .st-art .tv-st-chip.st-prem-tl { background: var(--st-c-tl) !important; }
    .st-art .st-legend .st-prem-dl, .st-art .tv-st-rchip.st-prem-dl, .st-art .tv-st-chip.st-prem-dl { background: var(--st-c-dl) !important; }
    .st-art .st-legend .st-prem-ctr, .st-art .tv-st-rchip.st-prem-ctr { background: var(--st-c-ctr) !important; }
    .st-art .tv-st-demo-e.st-prem-ctr, .st-art .tv-st-demo-e.st-prem-dl, .st-art .tv-st-demo-e.st-cell { background: var(--st-sq) var(--st-p) / var(--st-sq-bg) no-repeat !important; box-shadow: none !important; border-radius: 0.25cqh; }
    /* the rack: the cherry rack as a border-image (the ends and lips sliced, the channel stretched);
       each tile's face is its button's ::before, standing at the bottom of the 40 × 44 button */
    html .st-art .st-rack { background: none !important; border: 0 solid transparent; border-radius: 12px; box-shadow: 0 3px 8px rgba(18,6,2,0.35) !important;
      border-image-source: var(--st-rack); border-image-slice: var(--st-rack-slice) fill; border-image-width: var(--st-rack-w); border-image-repeat: stretch; }
    .st-art .st-rt { position: relative; background: none !important; box-shadow: none !important; }
    .st-art .st-rt::before, .st-art .tv-st-demo-t::before { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: var(--st-tile-r);
      background: var(--st-big) var(--st-p) / var(--st-big-bg) no-repeat; box-shadow: 0 2px 2.5px rgba(16,5,0,0.55); }
    @supports (aspect-ratio: 1) { .st-art .st-rt::before { top: auto; aspect-ratio: 160 / 172; } }
    .st-art .st-rt.st-pend::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: var(--st-tile-r);
      box-shadow: inset 0 0 0 2px #22d3ee, 0 0 8px 2px rgba(34,211,238,0.7); }
    @supports (aspect-ratio: 1) { .st-art .st-rt.st-pend::after { top: auto; aspect-ratio: 160 / 172; } }
    /* 📺 TV: the same board at --s on the linen table; word tiles letters-only; tile backs */
    html .tv-st.st-art { background: radial-gradient(130% 100% at 50% 34%, rgba(255,255,255,0.08) 0%, rgba(0,0,0,0) 45%, rgba(2,8,16,0.5) 100%), var(--st-table) 0 0 / 24cqh 24cqh repeat; background-color: #26405a; }
    html.jbf-dark .tv-st.st-art { background: radial-gradient(130% 100% at 50% 34%, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.28) 50%, rgba(1,5,10,0.66) 100%), var(--st-table) 0 0 / 24cqh 24cqh repeat; }
    html .st-art .tv-st-board { background: none !important; border-color: transparent !important; box-shadow: 0 1.6cqh 3.6cqh calc(var(--s) * 0.012) rgba(0,0,0,0.45);
      border-image-source: var(--st-frame); border-image-slice: var(--st-frame-slice) fill; border-image-width: calc(var(--s) * 0.036); border-image-outset: calc(var(--s) * 0.014); border-image-repeat: stretch; }
    .st-art .tv-st-grid::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; box-shadow: inset 0.25cqh 0.25cqh 0.4cqh rgba(0,0,0,0.55); }
    .st-art .tv-st-cell.st-tile::before { box-shadow: 0 0.12cqh 0.2cqh rgba(12,5,0,0.55); }
    .st-art .tv-st-cell.tv-st-ring::before { box-shadow: 0 0 0 calc(var(--s) * 0.004) #22d3ee, 0 0 calc(var(--s) * 0.014) rgba(34,211,238,0.85); }
    .st-art .tv-st-wt { position: relative; background: none !important; box-shadow: none !important; color: transparent !important; text-shadow: none !important; }
    .st-art .tv-st-wt::before { box-shadow: 0 0.15cqh 0.3cqh rgba(0,0,0,0.5); }
    .st-art .tv-st-back { background: var(--st-sm) var(--st-back-p) / var(--st-sm-bg) no-repeat !important; box-shadow: 0 0.12cqh 0.25cqh rgba(0,0,0,0.55) !important; border-radius: var(--st-tile-r) !important; }
    html .st-art .tv-st-demo { background: none !important; border-color: transparent !important; box-shadow: 0 1.4cqh 3cqh 0.8cqh rgba(0,0,0,0.45);
      border-image-source: var(--st-frame); border-image-slice: var(--st-frame-slice) fill; border-image-width: 2.5cqh; border-image-outset: 1cqh; border-image-repeat: stretch; }
    .st-art .tv-st-demo-t { background: none !important; box-shadow: none !important; }
    .st-art .tv-st-demo-t::before { left: 3.49%; right: 3.49%; box-shadow: 0 0.3cqh 0.5cqh rgba(0,0,0,0.5); }
    /* ---- 🦈 Shark Bait: beach stage, driftwood word plaques, reveal covers, motion ----
       The CSS look IS the permanent fallback: the Blender kit (sbArtLoad, game-art/sharkbait/)
       only swaps background images inside these SAME boxes, so the art arriving moves nothing.
       Team surfaces carry their own light + dark (dusk) rules; text on neutral panels uses the
       app's remapped slate classes. Motion is transform/opacity only, off under reduced motion. */
    .sb-stage { position: relative; isolation: isolate; overflow: hidden; border-radius: 22px; padding: 10px 8px 8px;
      background:
        linear-gradient(180deg, #74cdf6 0px, #b9e7fb 58px, #33b5d3 60px, #1497b5 92px, #0f87a5 112px, #d6f3fb 117px, #fbe6bb 124px) top / 100% 140px no-repeat,
        linear-gradient(180deg, #fbe6bb 0%, #f3d499 100%);
      box-shadow: 0 6px 18px rgba(14,116,144,0.2), inset 0 0 0 1px rgba(255,255,255,0.45); }
    .sb-stage::before { content: ''; position: absolute; left: -22px; right: 0; top: 108px; height: 14px; z-index: -1; pointer-events: none;
      background: radial-gradient(circle at 50% 0, rgba(255,255,255,0) 6px, rgba(255,255,255,0.75) 7px, rgba(255,255,255,0) 9px) 0 0 / 22px 14px repeat-x; opacity: 0.8;
      animation: sbFoam 3.2s linear infinite; }
    @keyframes sbFoam { from { transform: translateX(0); } to { transform: translateX(22px); } }
    .sb-stage::after { content: ''; position: absolute; inset: 140px 0 0 0; z-index: -1; pointer-events: none;
      background-image: radial-gradient(rgba(150,108,48,0.2) 1px, rgba(150,108,48,0) 1.5px), radial-gradient(rgba(255,255,255,0.45) 1px, rgba(255,255,255,0) 1.5px);
      background-size: 11px 11px, 17px 17px; background-position: 0 0, 5px 8px; }
    html.jbf-dark .sb-stage {
      background:
        linear-gradient(180deg, #1e1b4b 0px, #4c1d95 30px, #c2410c 56px, #fb923c 59px, #123b52 61px, #0d2c40 92px, #0a2233 112px, #5b6b78 117px, #3a3024 124px) top / 100% 140px no-repeat,
        linear-gradient(180deg, #3a3024 0%, #2a2219 100%);
      box-shadow: 0 6px 20px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.06); }
    html.jbf-dark .sb-stage::before { opacity: 0.35; }
    html.jbf-dark .sb-stage::after { background-image: radial-gradient(rgba(0,0,0,0.28) 1px, rgba(0,0,0,0) 1.5px), radial-gradient(rgba(255,230,190,0.08) 1px, rgba(255,230,190,0) 1.5px); }
    /* scoreboard panels float over the sky */
    .sb-panel { position: relative; border-radius: 14px; padding: 7px 8px 6px; background: rgba(255,255,255,0.9);
      box-shadow: 0 2px 8px rgba(8,51,68,0.18), inset 0 0 0 1px rgba(255,255,255,0.7); transition: box-shadow 0.3s ease, transform 0.3s ease; }
    html.jbf-dark .sb-panel { background: rgba(23,27,33,0.9); box-shadow: 0 2px 10px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.07); }
    .sb-panel-d.sb-panel-up { box-shadow: 0 0 0 2.5px #14b8a6, 0 0 16px 3px rgba(20,184,166,0.55); transform: translateY(-1px); }
    .sb-panel-c.sb-panel-up { box-shadow: 0 0 0 2.5px #f26b47, 0 0 16px 3px rgba(242,107,71,0.55); transform: translateY(-1px); }
    .sb-panel-d.sb-panel-won { box-shadow: 0 0 0 2.5px #fbbf24, 0 0 16px 3px rgba(251,191,36,0.6); }
    .sb-panel-c.sb-panel-won { box-shadow: 0 0 0 2.5px #fbbf24, 0 0 16px 3px rgba(251,191,36,0.6); }
    .sb-crest { flex-shrink: 0; width: 34px; height: 34px; border-radius: 9999px; display: inline-flex; align-items: center; justify-content: center;
      font-size: 19px; line-height: 1; box-shadow: inset 0 -3px 0 rgba(0,0,0,0.18), inset 0 0 0 2px rgba(255,255,255,0.55), 0 2px 4px rgba(0,0,0,0.25); }
    .sb-crest-d { background: radial-gradient(circle at 35% 30%, #99f6e4 0%, #14b8a6 50%, #0f766e 100%); }
    .sb-crest-c { background: radial-gradient(circle at 35% 30%, #ffc4b0 0%, #f26b47 50%, #b93c1d 100%); }
    .sb-crest-lg { width: 52px; height: 52px; font-size: 29px; }
    .sb-crest-sm { width: 24px; height: 24px; font-size: 13px; }
    .sb-tname-d { color: #0f766e; } .sb-tname-c { color: #c2411c; }
    html.jbf-dark .sb-tname-d { color: #5eead4; } html.jbf-dark .sb-tname-c { color: #ff9f80; }
    .sb-num-big { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 26px; line-height: 0.9; }
    .sb-pip { width: 7px; height: 7px; border-radius: 9999px; box-shadow: inset 0 0 0 1.5px rgba(100,116,139,0.45); }
    html.jbf-dark .sb-pip { box-shadow: inset 0 0 0 1.5px rgba(148,163,184,0.45); }
    .sb-pip-d { background: #14b8a6; box-shadow: none; } .sb-pip-c { background: #f26b47; box-shadow: none; }
    .sb-turnpill { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 9px; font-weight: 800; letter-spacing: 0.08em;
      text-transform: uppercase; color: #fff; border-radius: 9999px; padding: 2px 7px; box-shadow: 0 2px 5px rgba(0,0,0,0.25); }
    .sb-turnpill-d { background: linear-gradient(150deg, #2dd4bf, #0f766e); } .sb-turnpill-c { background: linear-gradient(150deg, #ff8f6b, #c2411c); }
    .sb-turnpill-win { color: #422006; background: linear-gradient(150deg, #fde68a, #f59e0b); }
    /* the clue sign */
    .sb-clue { position: relative; border-radius: 16px; padding: 7px 10px 8px; text-align: center; color: #fff;
      box-shadow: 0 3px 10px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.35), inset 0 0 0 1px rgba(255,255,255,0.18); }
    .sb-clue-d { background: linear-gradient(160deg, #2dd4bf 0%, #0d9488 55%, #0f766e 100%); }
    .sb-clue-c { background: linear-gradient(160deg, #ff9474 0%, #f0643c 55%, #c2411c 100%); }
    html.jbf-dark .sb-clue-d { background: linear-gradient(160deg, #149e8f 0%, #0b6e66 55%, #09524c 100%); }
    html.jbf-dark .sb-clue-c { background: linear-gradient(160deg, #d9603e 0%, #b2441f 55%, #8a3214 100%); }
    .sb-clue-word { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 30px; line-height: 1; letter-spacing: 0.04em; text-shadow: 0 2px 0 rgba(0,0,0,0.18); word-break: break-all; }
    .sb-clue-num { flex-shrink: 0; width: 38px; height: 38px; border-radius: 9999px; display: inline-flex; align-items: center; justify-content: center;
      font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 24px; line-height: 1; background: rgba(255,255,255,0.95);
      box-shadow: inset 0 -3px 0 rgba(0,0,0,0.12), 0 2px 5px rgba(0,0,0,0.25); }
    .sb-clue-d .sb-clue-num { color: #0f766e; } .sb-clue-c .sb-clue-num { color: #c2411c; }
    .sb-shellpip { display: inline-block; width: 9px; height: 9px; border-radius: 9999px; background: rgba(255,255,255,0.95); box-shadow: 0 1px 2px rgba(0,0,0,0.25); }
    .sb-shellpip-off { background: rgba(255,255,255,0.28); box-shadow: none; }
    .sb-wait { border-radius: 14px; padding: 9px 12px; text-align: center; font-size: 13px; font-weight: 700; background: rgba(255,255,255,0.86); box-shadow: 0 2px 8px rgba(8,51,68,0.15); }
    html.jbf-dark .sb-wait { background: rgba(23,27,33,0.88); box-shadow: 0 2px 10px rgba(0,0,0,0.45); }
    @keyframes sbBreath { 0%, 100% { opacity: 0.35; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1); } }
    .sb-breath { display: inline-block; width: 8px; height: 8px; border-radius: 9999px; animation: sbBreath 1.4s ease-in-out infinite; vertical-align: middle; }
    .sb-breath-d { background: #14b8a6; } .sb-breath-c { background: #f26b47; }
    /* the Captain's clue composer */
    .sb-compose { border-radius: 16px; padding: 10px; background: rgba(255,255,255,0.93); box-shadow: 0 3px 12px rgba(8,51,68,0.2); }
    html.jbf-dark .sb-compose { background: rgba(23,27,33,0.93); box-shadow: 0 3px 12px rgba(0,0,0,0.5); }
    .sb-compose-d { box-shadow: 0 0 0 2px rgba(20,184,166,0.85), 0 3px 12px rgba(8,51,68,0.2); }
    .sb-compose-c { box-shadow: 0 0 0 2px rgba(242,107,71,0.85), 0 3px 12px rgba(8,51,68,0.2); }
    .sb-input { width: 100%; border-radius: 12px; padding: 8px 12px; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 22px; letter-spacing: 0.06em;
      text-transform: uppercase; text-align: center; color: #1e293b; background: #f8fafc; border: 2px solid #cbd5e1; outline: none; }
    .sb-input:focus { border-color: #0891b2; box-shadow: 0 0 0 3px rgba(8,145,178,0.2); }
    .sb-input::placeholder { color: #94a3b8; letter-spacing: 0.04em; font-size: 18px; }
    html.jbf-dark .sb-input { color: #f1f5f9; background: #15181c; border-color: #3a4048; }
    html.jbf-dark .sb-input:focus { border-color: #22d3ee; box-shadow: 0 0 0 3px rgba(34,211,238,0.18); }
    .sb-num { flex: 1 1 0; min-width: 0; height: 32px; border-radius: 10px; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 17px; line-height: 1;
      color: #334155; background: #f1f5f9; box-shadow: inset 0 0 0 1px rgba(100,116,139,0.25); }
    html.jbf-dark .sb-num { color: #cbd5e1; background: #23272c; box-shadow: inset 0 0 0 1px rgba(148,163,184,0.2); }
    .sb-num.sb-num-on { color: #fff; background: linear-gradient(160deg, #22d3ee, #0891b2); box-shadow: 0 2px 6px rgba(8,145,178,0.45); }
    html.jbf-dark .sb-num.sb-num-on { color: #fff; background: linear-gradient(160deg, #0ea5c6, #0e7490); }
    /* the turn timer: the lobby's picker (sb-num pills; read-only spans for everyone but the host)
       and the countdown pill on the clue sign, the composer and the waiting panel */
    .sb-tm { height: 30px; font-size: 13px; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; }
    .sb-tm-ro { cursor: default; } .sb-tm-ro:not(.sb-num-on) { opacity: 0.6; }
    .sb-clock { display: inline-flex; align-items: center; gap: 3px; flex-shrink: 0; border-radius: 9999px; padding: 1px 8px; font-size: 12px; font-weight: 800; line-height: 1.5;
      font-variant-numeric: tabular-nums; white-space: nowrap; vertical-align: middle; color: #334155; background: #f1f5f9; box-shadow: inset 0 0 0 1px rgba(100,116,139,0.3); }
    html.jbf-dark .sb-clock { color: #e2e8f0; background: #2a2f36; box-shadow: inset 0 0 0 1px rgba(148,163,184,0.3); }
    .sb-clue .sb-clock, html.jbf-dark .sb-clue .sb-clock { color: #fff; background: rgba(0,0,0,0.2); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4); }
    .sb-clock.sb-clock-urgent, html.jbf-dark .sb-clock.sb-clock-urgent { color: #fff; background: #e11d48; box-shadow: 0 0 0 2px rgba(225,29,72,0.35); animation: sbClockPulse 1s ease-in-out infinite; }
    @keyframes sbClockPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
    /* the Captain's secret chart (parchment + markers) */
    .sb-chart { flex-shrink: 0; padding: 5px; border-radius: 8px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px;
      background: radial-gradient(130% 100% at 30% 20%, #fdf3dc 0%, #f1dfb6 60%, #dcc290 100%); box-shadow: inset 0 0 0 1px rgba(139,101,46,0.45), inset 0 0 10px rgba(139,101,46,0.25), 0 2px 5px rgba(60,40,15,0.25); }
    html.jbf-dark .sb-chart { background: radial-gradient(130% 100% at 30% 20%, #5b4b33 0%, #463926 60%, #352a1b 100%); box-shadow: inset 0 0 0 1px rgba(0,0,0,0.5), 0 2px 6px rgba(0,0,0,0.5); }
    .sb-mk { width: 11px; height: 11px; border-radius: 3px; }
    .sb-mk-d { background: #14b8a6; box-shadow: inset 0 -1.5px 0 rgba(0,0,0,0.2); } .sb-mk-c { background: #f26b47; box-shadow: inset 0 -1.5px 0 rgba(0,0,0,0.2); }
    .sb-mk-n { background: #e9d9b5; box-shadow: inset 0 0 0 1px rgba(139,101,46,0.5); } .sb-mk-s { background: #0f172a; box-shadow: 0 0 0 1.5px #ef4444; }
    html.jbf-dark .sb-mk-n { background: #a8936b; }
    .sb-mk-up { opacity: 0.28; }
    /* the board: 25 driftwood plaques. Each card is a fixed box (perspective) holding a flipper
       with two stacked faces — the plaque (front) and the reveal cover (back, rotated 180°).
       A live reveal turns the flipper with a transition; a card that mounts already face up
       (reload, restore) renders turned with nothing to transition. */
    .sb-card { position: relative; display: block; width: 100%; aspect-ratio: 272 / 184; perspective: 700px; border-radius: 9px; padding: 0; border: 0; background: none; cursor: default; container-type: inline-size; }
    .sb-card.sb-live { cursor: pointer; }
    .sb-flip { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 0.62s cubic-bezier(.3,.75,.25,1); }
    .sb-flip.sb-up { transform: rotateY(180deg); }
    .sb-face { position: absolute; inset: 0; border-radius: 9px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center;
      -webkit-backface-visibility: hidden; backface-visibility: hidden; }
    .sb-back { transform: rotateY(180deg); }
    .sb-front { color: #4b3621; background:
        repeating-linear-gradient(177deg, rgba(120,86,48,0) 0px, rgba(120,86,48,0) 4px, rgba(120,86,48,0.08) 5px, rgba(120,86,48,0) 7px),
        linear-gradient(172deg, #fcf5e6 0%, #f0e1c4 55%, #e3cea7 100%);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.85), inset 0 -2.5px 0 rgba(120,86,48,0.28), inset 0 0 0 1px rgba(120,86,48,0.24), 0 2px 3px rgba(60,40,20,0.28); }
    html.jbf-dark .sb-front { color: #fff4e0; background:
        repeating-linear-gradient(177deg, rgba(0,0,0,0) 0px, rgba(0,0,0,0) 4px, rgba(0,0,0,0.13) 5px, rgba(0,0,0,0) 7px),
        linear-gradient(172deg, #8c775a 0%, #725e45 55%, #5b4935 100%);
      box-shadow: inset 0 1px 0 rgba(255,240,215,0.22), inset 0 -2.5px 0 rgba(0,0,0,0.3), inset 0 0 0 1px rgba(0,0,0,0.35), 0 2px 4px rgba(0,0,0,0.5); }
    .sb-card.sb-live:active .sb-front { filter: brightness(0.96); }
    .sb-word { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; line-height: 1; letter-spacing: 0.01em; font-kerning: normal; white-space: nowrap; max-width: 100%; padding: 0 2px;
      text-shadow: 0 1px 0 rgba(255,255,255,0.55); }
    html.jbf-dark .sb-word { text-shadow: 0 1px 0 rgba(0,0,0,0.5); }
    /* Word size, per word: --sb-fs (set by sbWordFs from Baloo 2's own glyph widths, SB_GLYPHS) is
       the size in % of the plaque's width, the largest that fills ~89% of it, capped for short
       words — the same in both looks, so the art arriving never resizes a word. The card is an
       inline-size container, so 1cqw = 1% of the plaque; that rule sits inside @supports because a
       var() declaration is only checked at computed-value time: an unsupported unit there would not
       fall back to an earlier declaration but turn into `unset` (the parent's size). Without
       container units (iOS 15) the plaque width comes from the board's own layout instead: five
       cards across the page minus 72 px of paddings and gaps, i.e. 0.2vw - 14.4px per card, and
       126.4 px per card once the game column stops at 672 px (tools/shot/sharkbait_fit.js checks
       both paths, every word, at 320 / 360 / 390 px). */
    .sb-word { font-size: calc(var(--sb-fs, 16) * min(0.2vw - 0.144px, 1.264px)); }
    @supports (container-type: inline-size) {
      .sb-word { font-size: calc(var(--sb-fs, 16) * 1cqw); }
    }
    /* the Captain's map: each plaque washed in its owner's colour + a corner marker */
    .sb-front.sb-tint-d { color: #053b37; background: linear-gradient(172deg, rgba(94,234,212,0.72), rgba(20,184,166,0.62)), linear-gradient(172deg, #fcf5e6, #e3cea7);
      box-shadow: inset 0 0 0 2px rgba(13,148,136,0.95), inset 0 -2.5px 0 rgba(4,47,46,0.25), 0 2px 3px rgba(60,40,20,0.28); }
    .sb-front.sb-tint-c { color: #4a1606; background: linear-gradient(172deg, rgba(255,166,138,0.78), rgba(242,107,71,0.6)), linear-gradient(172deg, #fcf5e6, #e3cea7);
      box-shadow: inset 0 0 0 2px rgba(194,65,28,0.95), inset 0 -2.5px 0 rgba(74,22,6,0.25), 0 2px 3px rgba(60,40,20,0.28); }
    .sb-front.sb-tint-n { color: #57452c; background: linear-gradient(172deg, rgba(255,250,240,0.55), rgba(214,198,166,0.55)), linear-gradient(172deg, #fcf5e6, #e3cea7);
      box-shadow: inset 0 0 0 2px rgba(161,139,100,0.7), 0 2px 3px rgba(60,40,20,0.22); }
    .sb-front.sb-tint-s { color: #fecaca; background: linear-gradient(172deg, #26334a 0%, #0b1324 100%);
      box-shadow: inset 0 0 0 2px #ef4444, 0 0 9px rgba(239,68,68,0.55), 0 2px 3px rgba(0,0,0,0.35); }
    html.jbf-dark .sb-front.sb-tint-d { color: #e6fffb; background: linear-gradient(172deg, #138f82 0%, #0b5e57 100%); box-shadow: inset 0 0 0 2px #2dd4bf, 0 2px 4px rgba(0,0,0,0.5); }
    html.jbf-dark .sb-front.sb-tint-c { color: #fff1ec; background: linear-gradient(172deg, #b8512f 0%, #82331a 100%); box-shadow: inset 0 0 0 2px #ff8f6b, 0 2px 4px rgba(0,0,0,0.5); }
    html.jbf-dark .sb-front.sb-tint-n { color: #f5ead5; background: linear-gradient(172deg, #6e6250 0%, #514838 100%); box-shadow: inset 0 0 0 2px rgba(214,198,166,0.45), 0 2px 4px rgba(0,0,0,0.5); }
    html.jbf-dark .sb-front.sb-tint-s { color: #fecaca; background: linear-gradient(172deg, #1d2638 0%, #060a12 100%); box-shadow: inset 0 0 0 2px #ef4444, 0 0 9px rgba(239,68,68,0.5); }
    .sb-front.sb-tint-d .sb-word, .sb-front.sb-tint-c .sb-word, .sb-front.sb-tint-n .sb-word { text-shadow: 0 1px 0 rgba(255,255,255,0.35); }
    .sb-front.sb-tint-s .sb-word { text-shadow: 0 1px 0 rgba(0,0,0,0.6); }
    html.jbf-dark .sb-front.sb-tint-d .sb-word, html.jbf-dark .sb-front.sb-tint-c .sb-word, html.jbf-dark .sb-front.sb-tint-n .sb-word { text-shadow: 0 1px 0 rgba(0,0,0,0.45); }
    .sb-badge { position: absolute; top: 2px; right: 3px; font-size: 9px; line-height: 1; filter: drop-shadow(0 1px 0 rgba(0,0,0,0.25)); }
    .sb-card.sb-spent .sb-front { opacity: 0.86; }
    /* reveal covers (the back faces) */
    .sb-cov-d { color: #fff; background: radial-gradient(120% 95% at 28% 18%, #7cf2de 0%, #17b5a3 42%, #0b6e66 100%);
      box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.4), inset 0 -8px 14px rgba(4,47,46,0.35), 0 2px 4px rgba(4,47,46,0.4); }
    .sb-cov-c { color: #fff; background: radial-gradient(120% 95% at 28% 18%, #ffbea8 0%, #f2683f 45%, #ad3818 100%);
      box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.4), inset 0 -8px 14px rgba(90,25,5,0.3), 0 2px 4px rgba(90,25,5,0.4); }
    .sb-cov-n { color: #6b5232; background: radial-gradient(120% 95% at 28% 18%, #fffaf0 0%, #ecdcbc 50%, #cfb68c 100%);
      box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.6), inset 0 -6px 12px rgba(120,90,40,0.22), 0 2px 4px rgba(60,40,20,0.3); }
    .sb-cov-s { color: #fecaca; background: radial-gradient(120% 95% at 50% 25%, #3b4b66 0%, #172238 50%, #04070e 100%);
      box-shadow: inset 0 0 0 2px rgba(239,68,68,0.85), 0 0 12px rgba(239,68,68,0.55), 0 2px 4px rgba(0,0,0,0.5); }
    html.jbf-dark .sb-cov-d { background: radial-gradient(120% 95% at 28% 18%, #3fd1bd 0%, #0f9184 45%, #07514b 100%); }
    html.jbf-dark .sb-cov-c { background: radial-gradient(120% 95% at 28% 18%, #f7987a 0%, #cf5532 45%, #852b12 100%); }
    html.jbf-dark .sb-cov-n { color: #2f2414; background: radial-gradient(120% 95% at 28% 18%, #e3d3b2 0%, #bba47a 50%, #8f7650 100%); }
    /* a face-down card's back: one plain cover for every kind (it never shows the card's team) */
    .sb-cov-down { color: #5b4524; background: linear-gradient(172deg, #efe2c6 0%, #dcc9a3 100%); box-shadow: inset 0 0 0 1px rgba(120,86,48,0.25); }
    html.jbf-dark .sb-cov-down { color: #f5e7c8; background: linear-gradient(172deg, #6e5c46 0%, #54452f 100%); box-shadow: inset 0 0 0 1px rgba(0,0,0,0.35); }
    .sb-cov-d::before, .sb-cov-c::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 9px; pointer-events: none;
      background: radial-gradient(circle at 50% 0, rgba(255,255,255,0) 4px, rgba(255,255,255,0.32) 5px, rgba(255,255,255,0) 6.5px) 0 0 / 12px 9px repeat-x; }
    .sb-cov-icon { font-size: 21px; line-height: 1; filter: drop-shadow(0 1px 1px rgba(0,0,0,0.3)); }
    .sb-cov-word { margin-top: 2px; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: min(8px, 2.05vw); font-size: 12.5cqw; line-height: 1; letter-spacing: 0.05em; white-space: nowrap; opacity: 0.9; }
    /* two-tap confirm: the first tap lifts a ring around the card + a "Tap again" tag */
    @keyframes sbArm { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
    .sb-card.sb-armed .sb-flip { transform: translateY(-3px) scale(1.04); }
    .sb-card.sb-armed::after { content: ''; position: absolute; inset: -3px; z-index: 2; border-radius: 12px; pointer-events: none;
      box-shadow: 0 0 0 3px #fbbf24, 0 0 14px 4px rgba(251,191,36,0.7); animation: sbArm 0.9s ease-in-out infinite; }
    .sb-tapagain { position: absolute; left: 50%; bottom: -7px; z-index: 3; transform: translateX(-50%); white-space: nowrap; pointer-events: none;
      font-size: 9px; font-weight: 800; letter-spacing: 0.02em; color: #422006; background: #fbbf24; border-radius: 9999px; padding: 2px 6px; box-shadow: 0 2px 5px rgba(0,0,0,0.3); }
    /* deal-in: plaques drop onto the sand one after another (live game start only) */
    @keyframes sbDealIn { from { opacity: 0; transform: translateY(-34px) rotate(-9deg) scale(0.72); } to { opacity: 1; transform: none; } }
    .sb-card.sb-deal { animation: sbDealIn 0.5s cubic-bezier(.2,.75,.3,1) backwards; animation-delay: calc(var(--sb-i, 0) * 32ms); }
    /* team-turn banner sweeping across the board */
    @keyframes sbSweep { 0% { transform: translateX(-115%) skewX(-8deg); opacity: 0; } 18% { transform: translateX(0) skewX(-8deg); opacity: 1; }
      78% { transform: translateX(0) skewX(-8deg); opacity: 1; } 100% { transform: translateX(115%) skewX(-8deg); opacity: 0; } }
    .sb-sweep { position: absolute; left: -6px; right: -6px; top: 50%; margin-top: -22px; height: 44px; z-index: 6; pointer-events: none;
      display: flex; align-items: center; justify-content: center; gap: 8px; color: #fff; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 20px;
      letter-spacing: 0.03em; text-shadow: 0 2px 0 rgba(0,0,0,0.2); box-shadow: 0 6px 18px rgba(0,0,0,0.3); animation: sbSweep 1.6s cubic-bezier(.3,.7,.3,1) both; }
    .sb-sweep-d { background: linear-gradient(90deg, rgba(15,118,110,0) 0%, #0f9e90 12%, #14b8a6 50%, #0f9e90 88%, rgba(15,118,110,0) 100%); }
    .sb-sweep-c { background: linear-gradient(90deg, rgba(194,65,28,0) 0%, #df5a33 12%, #f26b47 50%, #df5a33 88%, rgba(194,65,28,0) 100%); }
    /* 🦈 the Shark attack: a full-screen, once-per-live-reveal moment (pointer-events none) */
    .sb-attack { position: fixed; inset: 0; z-index: 80; pointer-events: none; overflow: hidden; display: flex; align-items: center; justify-content: center; }
    @keyframes sbAtkWater { 0% { opacity: 0; } 12% { opacity: 1; } 78% { opacity: 1; } 100% { opacity: 0; } }
    .sb-atk-water { position: absolute; inset: 0; animation: sbAtkWater 2.6s ease-out both;
      background: radial-gradient(110% 80% at 50% 55%, rgba(153,27,27,0.88) 0%, rgba(17,39,72,0.95) 42%, rgba(2,8,20,0.98) 100%); }
    @keyframes sbAtkShake { 0%, 30%, 62%, 100% { transform: translate(0, 0); } 34% { transform: translate(-9px, 5px); } 38% { transform: translate(8px, -6px); }
      42% { transform: translate(-6px, -4px); } 46% { transform: translate(5px, 6px); } 50% { transform: translate(-3px, 2px); } }
    .sb-atk-stage { position: relative; width: 300px; height: 300px; animation: sbAtkShake 2.6s linear both; }
    @keyframes sbAtkShark { 0% { transform: translate(-120px, 190px) rotate(-38deg) scale(0.55); opacity: 0; } 14% { opacity: 1; }
      32% { transform: translate(0, 0) rotate(-8deg) scale(1.18); opacity: 1; } 40% { transform: translate(0, -6px) rotate(4deg) scale(1.05); }
      78% { transform: translate(6px, -10px) rotate(0deg) scale(1.08); opacity: 1; } 100% { transform: translate(150px, -210px) rotate(28deg) scale(0.8); opacity: 0; } }
    .sb-atk-shark { position: absolute; left: 50%; top: 50%; width: 180px; height: 180px; margin: -110px 0 0 -90px; display: flex; align-items: center; justify-content: center;
      font-size: 150px; line-height: 1; filter: drop-shadow(0 12px 18px rgba(0,0,0,0.55)); animation: sbAtkShark 2.6s cubic-bezier(.3,.6,.3,1) both; }
    .sb-atk-face { display: inline-block; transform: scaleX(-1); }
    @keyframes sbAtkJawTop { 0%, 22% { transform: translateY(-105%); } 33% { transform: translateY(0); } 44% { transform: translateY(-14%); } 70% { transform: translateY(-14%); } 86%, 100% { transform: translateY(-105%); } }
    @keyframes sbAtkJawBot { 0%, 22% { transform: translateY(105%); } 33% { transform: translateY(0); } 44% { transform: translateY(14%); } 70% { transform: translateY(14%); } 86%, 100% { transform: translateY(105%); } }
    .sb-atk-jaw { position: absolute; left: 0; right: 0; height: 26%; }
    .sb-atk-jaw-top { top: 0; animation: sbAtkJawTop 2.6s cubic-bezier(.5,0,.3,1) both;
      background: conic-gradient(from -24deg at 50% 100%, #f8fafc 0 48deg, rgba(248,250,252,0) 0) 0 100% / 30px 34px repeat-x,
        linear-gradient(180deg, #060b16 0%, #1b2436 calc(100% - 44px), #7f1d1d calc(100% - 34px), rgba(127,29,29,0) calc(100% - 34px)) 0 0 / 100% 100% no-repeat; }
    .sb-atk-jaw-bot { bottom: 0; animation: sbAtkJawBot 2.6s cubic-bezier(.5,0,.3,1) both;
      background: conic-gradient(from 156deg at 50% 0, #f8fafc 0 48deg, rgba(248,250,252,0) 0) 15px 0 / 30px 34px repeat-x,
        linear-gradient(0deg, #060b16 0%, #1b2436 calc(100% - 44px), #7f1d1d calc(100% - 34px), rgba(127,29,29,0) calc(100% - 34px)) 0 0 / 100% 100% no-repeat; }
    @keyframes sbAtkRing { 0%, 28% { transform: scale(0.2); opacity: 0; } 34% { opacity: 0.95; } 100% { transform: scale(2.4); opacity: 0; } }
    .sb-atk-ring { position: absolute; left: 50%; top: 58%; width: 140px; height: 140px; margin: -70px 0 0 -70px; border-radius: 9999px;
      border: 5px solid rgba(186,230,253,0.9); animation: sbAtkRing 1.5s ease-out both; }
    @keyframes sbAtkDrop { 0%, 30% { transform: translate(0, 0) scale(0.4); opacity: 0; } 36% { opacity: 1; } 100% { transform: translate(var(--dx, 0), var(--dy, 0)) scale(1); opacity: 0; } }
    .sb-atk-drop { position: absolute; left: 50%; top: 58%; width: 12px; height: 16px; margin: -8px 0 0 -6px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
      background: radial-gradient(circle at 35% 30%, #f0f9ff 0%, #7dd3fc 60%, #0284c7 100%); animation: sbAtkDrop 1.2s cubic-bezier(.2,.7,.4,1) both; }
    @keyframes sbAtkText { 0%, 30% { transform: translateY(18px) scale(0.6); opacity: 0; } 40% { transform: translateY(0) scale(1.12); opacity: 1; } 48% { transform: scale(1); } 82% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }
    .sb-atk-text { position: absolute; left: 12px; right: 12px; bottom: 31%; text-align: center; color: #fff; animation: sbAtkText 2.6s ease-out both; text-shadow: 0 3px 0 rgba(127,29,29,0.85), 0 6px 16px rgba(0,0,0,0.6); }
    .sb-atk-title { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 52px; line-height: 1; letter-spacing: 0.04em; }
    .sb-atk-sub { margin-top: 6px; font-weight: 800; font-size: 16px; }
    /* the win banner */
    .sb-win { position: relative; overflow: hidden; border-radius: 20px; padding: 14px 14px 13px; color: #fff; text-align: center; isolation: isolate;
      box-shadow: 0 8px 22px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.35); }
    .sb-win-d { background: linear-gradient(160deg, #2dd4bf 0%, #0d9488 50%, #115e59 100%); }
    .sb-win-c { background: linear-gradient(160deg, #ff9a7a 0%, #ec5f37 50%, #9a3412 100%); }
    html.jbf-dark .sb-win-d { background: linear-gradient(160deg, #14a394 0%, #0b6b63 50%, #073f3b 100%); }
    html.jbf-dark .sb-win-c { background: linear-gradient(160deg, #d9673f 0%, #a8401c 50%, #6b230b 100%); }
    .sb-win::before { content: ''; position: absolute; left: 50%; top: 60%; width: 900px; height: 900px; margin: -450px 0 0 -450px; z-index: -1; pointer-events: none;
      background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255,255,255,0.11) 0deg 9deg, rgba(255,255,255,0) 9deg 22deg); animation: sbRays 40s linear infinite; }
    @keyframes sbRays { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
    .sb-win-title { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 30px; line-height: 1; text-shadow: 0 2px 0 rgba(0,0,0,0.2); }
    @keyframes sbWinIn { 0% { transform: translateY(14px) scale(0.86); opacity: 0; } 60% { transform: translateY(0) scale(1.04); opacity: 1; } 100% { transform: none; opacity: 1; } }
    .sb-win-in { animation: sbWinIn 0.6s cubic-bezier(.3,.8,.3,1.2) backwards; }
    .sb-win-late { animation-delay: 2.3s; }
    /* lobby: hero + team cards */
    .sb-hero { position: relative; overflow: hidden; isolation: isolate; border-radius: 22px; padding: 14px 14px 14px; aspect-ratio: 1260 / 700; color: #fff; text-align: center;
      background:
        radial-gradient(circle at 84% 34px, rgba(255,250,214,1) 0 15px, rgba(255,236,160,0.45) 16px 30px, rgba(255,236,160,0) 31px),
        linear-gradient(180deg, #5cc2f2 0%, #a8e2fa 52%, #2fb1cf 53%, #128fae 74%, #e5f6fb 77%, #f8e2b2 81%, #efcf93 100%);
      box-shadow: 0 8px 22px rgba(14,116,144,0.25); }
    html.jbf-dark .sb-hero {
      background:
        radial-gradient(circle at 84% 64px, rgba(255,196,120,0.95) 0 14px, rgba(251,146,60,0.35) 15px 30px, rgba(251,146,60,0) 31px),
        linear-gradient(180deg, #1e1b4b 0%, #5b21b6 28%, #c2410c 49%, #fb923c 52%, #123b52 53%, #0b2a3c 74%, #4c5864 77%, #3a3024 81%, #2a2219 100%);
      box-shadow: 0 8px 22px rgba(0,0,0,0.55); }
    .sb-hero-title { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 38px; line-height: 0.95; letter-spacing: 0.01em;
      text-shadow: 0 3px 0 rgba(8,47,73,0.45), 0 8px 18px rgba(8,47,73,0.35); }
    .sb-hero-sub { font-weight: 800; font-size: 13px; text-shadow: 0 1px 3px rgba(8,47,73,0.6); }
    .sb-hero-line { color: #5b4524; text-shadow: 0 1px 0 rgba(255,255,255,0.5); }
    html.jbf-dark .sb-hero-line { color: #f5e7c8; text-shadow: 0 1px 2px rgba(0,0,0,0.6); }
    @keyframes sbFin { 0% { transform: translateX(-40px); } 50% { transform: translateX(150px); } 100% { transform: translateX(-40px); } }
    @keyframes sbFinFlip { 0%, 49.9% { transform: scaleX(1); } 50%, 100% { transform: scaleX(-1); } }
    .sb-fin { position: absolute; left: 30%; top: 63%; margin-top: -28px; width: 30px; height: 28px; z-index: 1; animation: sbFin 9s ease-in-out infinite; }
    .sb-fin-shape { position: absolute; inset: 0; animation: sbFinFlip 9s linear infinite;
      background: linear-gradient(160deg, #475569 0%, #1e293b 100%); border-radius: 100% 0 0 0 / 100% 0 0 0; clip-path: polygon(0 100%, 62% 0, 100% 100%); }
    .sb-fin::after { content: ''; position: absolute; left: -7px; right: -7px; bottom: -2px; height: 4px; border-radius: 9999px; background: rgba(255,255,255,0.75); }
    .sb-team { border-radius: 18px; overflow: hidden; background: rgba(255,255,255,0.95); box-shadow: 0 3px 12px rgba(15,23,42,0.12); }
    html.jbf-dark .sb-team { background: #23272c; box-shadow: 0 3px 12px rgba(0,0,0,0.45); }
    .sb-team-h { display: flex; align-items: center; gap: 8px; padding: 8px 10px; color: #fff; }
    .sb-team-h-d { background: linear-gradient(150deg, #2dd4bf 0%, #0d9488 60%, #0f766e 100%); }
    .sb-team-h-c { background: linear-gradient(150deg, #ff9474 0%, #f0643c 60%, #c2411c 100%); }
    html.jbf-dark .sb-team-h-d { background: linear-gradient(150deg, #149e8f 0%, #0b6e66 100%); }
    html.jbf-dark .sb-team-h-c { background: linear-gradient(150deg, #d9603e 0%, #8a3214 100%); }
    .sb-team-name { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 18px; line-height: 1; text-shadow: 0 1px 0 rgba(0,0,0,0.18); }
    .sb-hat { display: inline-block; width: 1.15em; height: 1.15em; line-height: 1.15; text-align: center; vertical-align: -0.2em; overflow: hidden; }
    .sb-artcell { display: none; }
    .sb-btn { border-radius: 12px; padding: 9px 12px; font-weight: 800; font-size: 14px; line-height: 1.1; color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.3); }
    .sb-btn:disabled { opacity: 0.45; }
    .sb-btn-d { background: linear-gradient(160deg, #2dd4bf 0%, #0d9488 60%, #0f766e 100%); }
    .sb-btn-c { background: linear-gradient(160deg, #ff9474 0%, #f0643c 60%, #c2411c 100%); }
    .sb-btn-go { background: linear-gradient(160deg, #22d3ee 0%, #0891b2 60%, #0e7490 100%); }
    .sb-btn-sand { color: #5b4524; background: linear-gradient(160deg, #fdf3dc 0%, #efd9ab 100%); box-shadow: 0 2px 5px rgba(60,40,15,0.18), inset 0 0 0 1px rgba(139,101,46,0.3); }
    html.jbf-dark .sb-btn-sand { color: #f5e7c8; background: linear-gradient(160deg, #5b4b33 0%, #3f3322 100%); box-shadow: 0 2px 6px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(255,230,180,0.12); }
    .sb-btn-test { color: #451a03; background: linear-gradient(160deg, #fde68a 0%, #f59e0b 100%); }
    /* clue log */
    .sb-log { border-radius: 16px; padding: 9px; background: rgba(255,255,255,0.95); box-shadow: 0 3px 12px rgba(15,23,42,0.1); }
    html.jbf-dark .sb-log { background: #23272c; box-shadow: 0 3px 12px rgba(0,0,0,0.4); }
    .sb-logcol-h { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 14px; line-height: 1; padding-bottom: 5px; margin-bottom: 5px; border-bottom: 2px solid; }
    .sb-logcol-d .sb-logcol-h { color: #0f766e; border-color: rgba(20,184,166,0.45); } .sb-logcol-c .sb-logcol-h { color: #c2411c; border-color: rgba(242,107,71,0.45); }
    html.jbf-dark .sb-logcol-d .sb-logcol-h { color: #5eead4; } html.jbf-dark .sb-logcol-c .sb-logcol-h { color: #ff9f80; }
    .sb-logclue { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 14px; line-height: 1.1; letter-spacing: 0.02em; }
    .sb-lognum { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; border-radius: 9999px; font-size: 11px; font-weight: 800; color: #fff; padding: 0 4px; }
    .sb-logcol-d .sb-lognum { background: #0d9488; } .sb-logcol-c .sb-lognum { background: #e0582f; }
    .sb-chip { display: inline-flex; align-items: center; gap: 2px; border-radius: 9999px; padding: 1px 6px 1px 4px; font-size: 10px; font-weight: 800; line-height: 1.5; white-space: nowrap; }
    .sb-chip-d { color: #0f5e57; background: #ccfbf1; } .sb-chip-c { color: #9a3412; background: #ffe2d8; }
    .sb-chip-n { color: #6b5232; background: #f3e8d2; } .sb-chip-s { color: #fecaca; background: #172238; box-shadow: inset 0 0 0 1px #ef4444; }
    html.jbf-dark .sb-chip-d { color: #ccfbf1; background: #0d4a45; } html.jbf-dark .sb-chip-c { color: #ffe2d8; background: #5b2410; }
    html.jbf-dark .sb-chip-n { color: #f3e8d2; background: #4a3f2e; }
    .sb-chip-time { color: #92400e; background: #fef3c7; } html.jbf-dark .sb-chip-time { color: #fde68a; background: #4a3410; }
    /* ---- 🦈 Shark Bait ART mode: the game root carries .sb-art once sbArtLoad has every file, and
       the art's versioned URLs + atlas rectangles as custom properties (sbArtVars, from the
       generated SB_ART_GEOM). Everything below paints inside the SAME boxes as the CSS look above
       (only backgrounds, colours and absolutely placed, pointer-events: none layers change) — the
       harness checks every box against the CSS look. ---- */
    /* cards: each face gets one art cell — a child at the kit's css_cell rectangle, overhanging the
       card box by its baked soft shadow; the CSS plaque / cover / tint paint switches off */
    .sb-art .sb-card .sb-flip .sb-face { overflow: visible; border-radius: 6.62% / 9.78%; background: none; box-shadow: none; }
    .sb-art .sb-artcell { display: block; position: absolute; z-index: 0; pointer-events: none;
      left: var(--sbc-l); top: var(--sbc-t); width: var(--sbc-w); height: var(--sbc-h);
      background-image: var(--sb-cards); background-size: var(--sbc-bg); background-repeat: no-repeat; }
    html.jbf-dark .sb-art .sb-front .sb-artcell { filter: brightness(0.94); }
    /* the art plaques stay light in both themes, so their ink does too */
    .sb-art .sb-card .sb-flip .sb-front, html.jbf-dark .sb-art .sb-card .sb-flip .sb-front { color: var(--sb-ink); }
    .sb-art .sb-card .sb-word, html.jbf-dark .sb-art .sb-card .sb-word { position: relative; z-index: 2; text-shadow: var(--sb-ink-shadow); }
    /* the Captain's map (and the key after a game) over the art: a team wash + ring, and the kit's
       marker icon pinned over the corner instead of the emoji — clear of every word's letters
       (sharkbait_fit.js checks it) */
    .sb-art .sb-card .sb-flip .sb-front.sb-tint-d::before, .sb-art .sb-card .sb-flip .sb-front.sb-tint-c::before,
    .sb-art .sb-card .sb-flip .sb-front.sb-tint-n::before, .sb-art .sb-card .sb-flip .sb-front.sb-tint-s::before {
      content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none; }
    .sb-art .sb-card .sb-flip .sb-front.sb-tint-d::before { background: linear-gradient(172deg, rgba(45,212,191,0.5), rgba(13,148,136,0.56)); box-shadow: inset 0 0 0 2px #0f766e; }
    .sb-art .sb-card .sb-flip .sb-front.sb-tint-c::before { background: linear-gradient(172deg, rgba(251,113,133,0.52), rgba(244,63,94,0.44)); box-shadow: inset 0 0 0 2px #be123c; }
    .sb-art .sb-card .sb-flip .sb-front.sb-tint-n::before { background: rgba(214,196,160,0.3); box-shadow: inset 0 0 0 2px #8a6d50; }
    .sb-art .sb-card .sb-flip .sb-front.sb-tint-s::before { background: linear-gradient(172deg, rgba(23,42,82,0.9), rgba(5,10,26,0.93)); box-shadow: inset 0 0 0 2px #ef4444, 0 0 9px rgba(239,68,68,0.55); }
    .sb-art .sb-card .sb-flip .sb-front.sb-tint-s, html.jbf-dark .sb-art .sb-card .sb-flip .sb-front.sb-tint-s { color: #fde2e2; }
    .sb-art .sb-card .sb-flip .sb-front.sb-tint-s .sb-word { text-shadow: 0 1px 0 rgba(0,0,0,0.6); }
    .sb-art .sb-card .sb-badge { top: -4%; right: -2.5%; width: 22%; height: auto; aspect-ratio: 1; z-index: 3; font-size: 0; text-indent: -99px; overflow: hidden; filter: none;
      background-image: var(--sb-icons); background-repeat: no-repeat; }
    .sb-art .sb-card .sb-bdg-d { background-size: var(--sbi-mk_dolphin-s); background-position: var(--sbi-mk_dolphin-p); }
    .sb-art .sb-card .sb-bdg-c { background-size: var(--sbi-mk_crab-s); background-position: var(--sbi-mk_crab-p); }
    .sb-art .sb-card .sb-bdg-n { background-size: var(--sbi-mk_shell-s); background-position: var(--sbi-mk_shell-p); }
    .sb-art .sb-card .sb-bdg-s { background-size: var(--sbi-mk_shark-s); background-position: var(--sbi-mk_shark-p); }
    /* covers: the kind's art, the word in a label pill on the calm bottom of the art; a face-down
       card's back stays empty (it never carries a kind) */
    .sb-art .sb-card .sb-back .sb-cov-icon { display: none; }
    .sb-art .sb-card .sb-back .sb-cov-word { position: absolute; z-index: 2; left: 50%; bottom: 2.5%; transform: translateX(-50%); margin: 0; height: 18.5%; max-width: 92%;
      display: flex; align-items: center; padding: 0 6.5%; border-radius: 9999px; color: #fff; opacity: 1; font-size: 10.6cqw; letter-spacing: 0.05em;
      box-shadow: 0 1px 2px rgba(0,0,0,0.35); }
    .sb-art .sb-card .sb-back.sb-cov-d .sb-cov-word { background: var(--sbp-d); } .sb-art .sb-card .sb-back.sb-cov-c .sb-cov-word { background: var(--sbp-c); }
    .sb-art .sb-card .sb-back.sb-cov-n .sb-cov-word { background: var(--sbp-n); } .sb-art .sb-card .sb-back.sb-cov-s .sb-cov-word { background: var(--sbp-s); }
    .sb-art .sb-card .sb-back.sb-cov-d::before, .sb-art .sb-card .sb-back.sb-cov-c::before { display: none; }
    .sb-art .sb-card .sb-back.sb-cov-down .sb-cov-word { display: none; }
    /* the stage: the wet-sand board (moonlit on dark pages), the CSS foam + sand dots off */
    .sb-art .sb-stage { background: var(--sb-board-day) center top / cover no-repeat, #e8d3aa; }
    html.jbf-dark .sb-art .sb-stage { background: var(--sb-board-night) center top / cover no-repeat, #1d2436; }
    .sb-art .sb-stage::before, .sb-art .sb-stage::after { display: none; }
    /* the hero: the kit's sandbar scene (its own fin), the tagline over its calm water */
    .sb-art .sb-hero, html.jbf-dark .sb-art .sb-hero { background: var(--sb-hero) center / cover no-repeat, linear-gradient(180deg, #d9a07a 0%, #c79574 40%, #2aa6a3 100%); }
    .sb-art .sb-fin { display: none; }
    .sb-art .sb-hero-line, html.jbf-dark .sb-art .sb-hero-line { color: #fff; text-shadow: 0 1px 3px rgba(8,47,73,0.8), 0 0 1px rgba(8,47,73,0.6); }
    /* crests and the Captain's hat: icon cells in the same boxes as the emoji they replace */
    .sb-art .sb-crest { box-shadow: none; font-size: 0; text-indent: -99px; overflow: hidden; background-image: var(--sb-icons); background-repeat: no-repeat; }
    .sb-art .sb-crest-d { background-size: var(--sbi-crest_dolphin-s); background-position: var(--sbi-crest_dolphin-p); }
    .sb-art .sb-crest-c { background-size: var(--sbi-crest_crab-s); background-position: var(--sbi-crest_crab-p); }
    .sb-art .sb-hat { text-indent: -99em; background-image: var(--sb-icons); background-size: var(--sbi-hat-s); background-position: var(--sbi-hat-p); background-repeat: no-repeat; }
    /* the Captain's chart: parchment behind the kit's map markers */
    .sb-art .sb-chart, html.jbf-dark .sb-art .sb-chart { background: var(--sb-chart) center / cover no-repeat, #ead8b2;
      box-shadow: inset 0 0 0 1px rgba(139,101,46,0.5), 0 2px 5px rgba(60,40,15,0.3); }
    .sb-art .sb-chart .sb-mk { box-shadow: none; background-color: transparent; background-image: var(--sb-icons); background-repeat: no-repeat; border-radius: 9999px; }
    .sb-art .sb-chart .sb-mk-d { background-size: var(--sbi-mk_dolphin-s); background-position: var(--sbi-mk_dolphin-p); }
    .sb-art .sb-chart .sb-mk-c { background-size: var(--sbi-mk_crab-s); background-position: var(--sbi-mk_crab-p); }
    .sb-art .sb-chart .sb-mk-n { background-size: var(--sbi-mk_shell-s); background-position: var(--sbi-mk_shell-p); }
    .sb-art .sb-chart .sb-mk-s { background-size: var(--sbi-mk_shark-s); background-position: var(--sbi-mk_shark-p); }
    /* the shark moment: the kit's shark lunges out of its splash over the dark scrim (the CSS jaws,
       ring, drops and emoji only play in the CSS look) */
    @keyframes sbAtkArtShark { 0% { transform: translate(-50%, -32%) scale(0.18); opacity: 0; } 12% { opacity: 1; }
      30% { transform: translate(-50%, -55%) scale(1.07); } 40% { transform: translate(-50%, -55%) scale(1); }
      80% { transform: translate(-50%, -55%) scale(1.03); opacity: 1; } 100% { transform: translate(-50%, -60%) scale(1.2); opacity: 0; } }
    @keyframes sbAtkArtSplash { 0%, 16% { transform: translate(-50%, -50%) scale(0.3); opacity: 0; } 28% { opacity: 1; }
      55% { transform: translate(-50%, -50%) scale(1.12); opacity: 0.95; } 100% { transform: translate(-50%, -50%) scale(1.32); opacity: 0; } }
    .sb-atk-shark-art { position: absolute; left: 50%; top: 50%; width: min(106vw, 620px); height: auto; max-width: none; pointer-events: none;
      transform: translate(-50%, -55%); animation: sbAtkArtShark 2.6s cubic-bezier(.3,.6,.3,1) both; }
    .sb-atk-splash-art { position: absolute; left: 50%; top: 50%; width: min(132vw, 780px); height: auto; max-width: none; pointer-events: none;
      transform: translate(-50%, -50%); animation: sbAtkArtSplash 2.6s ease-out both; }
    .sb-attack-art .sb-atk-text { bottom: 7%; }
    @media (prefers-reduced-motion: reduce) {
      .sb-atk-shark-art, .sb-atk-splash-art { animation: none !important; }
    }
    @media (prefers-reduced-motion: reduce) {
      .sb-flip, .sb-panel { transition: none !important; }
      .sb-card.sb-deal, .sb-sweep, .sb-win-in, .sb-breath, .sb-fin, .sb-fin-shape, .sb-card.sb-armed::after, .sb-stage::before, .sb-win::before, .sb-clock.sb-clock-urgent { animation: none !important; }
      .sb-sweep { display: none; }
      .sb-atk-water, .sb-atk-stage, .sb-atk-shark, .sb-atk-jaw-top, .sb-atk-jaw-bot, .sb-atk-ring, .sb-atk-drop, .sb-atk-text { animation: none !important; }
      .sb-atk-jaw, .sb-atk-ring, .sb-atk-drop { display: none; }
    }
    /* ---- 📺 Shark Bait on the TV (SharkBaitTv inside the shared TvShell) ---- */
    /* Shark Bait on the TV: the table art full-bleed, glass panels, the board in the middle */
    .tv-sb { position: absolute; inset: 0; color: #f8fafc; background: radial-gradient(120% 90% at 50% 0%, #1f4a63 0%, #10263a 55%, #08131f 100%); }
    html:not(.jbf-dark) .tv-sb { background: radial-gradient(120% 90% at 50% 0%, #7cc7e0 0%, #d8b77f 62%, #b8925a 100%); }
    .tv-sb.sb-art { background: var(--sb-board-night) center / cover no-repeat, #1d2436; }
    html:not(.jbf-dark) .tv-sb.sb-art { background: var(--sb-board-day) center / cover no-repeat, #e8d3aa; }
    .tv-sb .tv-safe { display: grid; grid-template-rows: 9cqh minmax(0, 1fr) 6.6cqh; row-gap: 1.8cqh; }
    .tv-sb .tv-safe.tv-nolog { grid-template-rows: 9cqh minmax(0, 1fr); }
    .tv-glass { border-radius: 2.2cqh; background: rgba(6,13,26,0.78); box-shadow: 0 0.8cqh 2.6cqh rgba(0,0,0,0.38), inset 0 0 0 1px rgba(255,255,255,0.09); }
    .tv-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2cqw; padding: 0 1.6cqw 0 2cqw; }
    .tv-head-l { display: flex; align-items: center; gap: 2cqw; min-width: 0; }
    .tv-mt { margin-top: 0.9cqh; }
    .tv-brand { display: flex; align-items: baseline; gap: 1.2cqw; min-width: 0; }
    .tv-brand-title { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 4.8cqh; line-height: 1; white-space: nowrap; letter-spacing: 0.01em; }
    .tv-squad { font-size: 2.2cqh; font-weight: 800; color: #cbd5e1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-status { font-size: 2.5cqh; font-weight: 800; color: #e2e8f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
    .tv-timer { display: inline-flex; align-items: center; gap: 0.9cqw; border-radius: 9999px; padding: 0.4cqh 1.6cqw 0.4cqh 1.3cqw; background: rgba(255,255,255,0.1);
      box-shadow: inset 0 0 0 2px rgba(255,255,255,0.28); font-variant-numeric: tabular-nums; white-space: nowrap; }
    .tv-timer-lbl { font-size: 1.9cqh; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #cbd5e1; }
    .tv-timer-num { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 6.4cqh; line-height: 1; }
    .tv-timer-paused { font-size: 2.6cqh; font-weight: 800; padding: 0.9cqh 1.6cqw; color: #cbd5e1; }
    .tv-timer.tv-timer-urgent { background: #e11d48; box-shadow: 0 0 0 0.4cqh rgba(225,29,72,0.35), 0 0 3cqh rgba(225,29,72,0.55); animation: tvTimerPulse 1s ease-in-out infinite; }
    .tv-timer.tv-timer-urgent .tv-timer-lbl { color: #ffe4e6; }
    @keyframes tvTimerPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
    .tv-main { display: grid; grid-template-columns: minmax(0, 1fr) 45cqw minmax(0, 1fr); column-gap: 1.6cqw; min-height: 0; }
    .tv-center { display: grid; grid-template-rows: 14cqh auto; row-gap: 1.6cqh; align-content: start; min-width: 0; }
    /* team panels */
    .tv-panel { position: relative; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
    .tv-panel-h { display: flex; align-items: center; gap: 0.9cqw; padding: 1.2cqh 1cqw; border-radius: 2.2cqh 2.2cqh 0 0; }
    .tv-panel-d .tv-panel-h { background: linear-gradient(150deg, #14b8a6 0%, #0f766e 100%); }
    .tv-panel-c .tv-panel-h { background: linear-gradient(150deg, #f26b47 0%, #b93c1d 100%); }
    .tv-panel-d.tv-panel-up { box-shadow: 0 0 0 0.45cqh #2dd4bf, 0 0 3.2cqh rgba(45,212,191,0.6), inset 0 0 0 1px rgba(255,255,255,0.09); }
    .tv-panel-c.tv-panel-up { box-shadow: 0 0 0 0.45cqh #ff8f6b, 0 0 3.2cqh rgba(255,143,107,0.6), inset 0 0 0 1px rgba(255,255,255,0.09); }
    .tv-panel.tv-panel-won { box-shadow: 0 0 0 0.45cqh #fbbf24, 0 0 3.2cqh rgba(251,191,36,0.6), inset 0 0 0 1px rgba(255,255,255,0.09); }
    .tv-sb .sb-crest { width: 6.4cqh; height: 6.4cqh; } .tv-sb:not(.sb-art) .sb-crest { font-size: 3.6cqh; }
    .tv-sb .sb-crest.tv-crest-xl { width: 11cqh; height: 11cqh; } .tv-sb:not(.sb-art) .sb-crest.tv-crest-xl { font-size: 6.4cqh; }
    .tv-team-name { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 3.6cqh; line-height: 1; min-width: 0; flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 0.2cqh 0 rgba(0,0,0,0.2); }
    .tv-uppill { flex: none; margin-left: auto; align-self: center; border-radius: 9999px; padding: 0.3cqh 0.8cqw; font-size: 1.5cqh; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #0f172a; background: #fff; white-space: nowrap; }
    .tv-uppill-win { background: linear-gradient(150deg, #fde68a, #f59e0b); color: #422006; }
    .tv-left { display: flex; align-items: baseline; gap: 0.7cqw; padding: 1.4cqh 1.2cqw 0; }
    .tv-left-num { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 10cqh; line-height: 0.9; }
    .tv-panel-d .tv-left-num { color: #5eead4; } .tv-panel-c .tv-left-num { color: #ff9f80; }
    .tv-left-lbl { font-size: 1.9cqh; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #94a3b8; }
    .tv-pips { display: flex; flex-wrap: wrap; gap: 0.45cqw; padding: 1cqh 1.2cqw 0; }
    .tv-pip { width: 1.5cqh; height: 1.5cqh; border-radius: 9999px; box-shadow: inset 0 0 0 0.25cqh rgba(148,163,184,0.55); }
    .tv-panel-d .tv-pip.tv-pip-on { background: #14b8a6; box-shadow: none; } .tv-panel-c .tv-pip.tv-pip-on { background: #f26b47; box-shadow: none; }
    .tv-capt { padding: 1.4cqh 1.2cqw 0.6cqh; font-size: 2.1cqh; font-weight: 800; color: #e2e8f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-players { display: flex; flex-direction: column; gap: 0.9cqh; padding: 0.6cqh 1.2cqw 1.4cqh; min-height: 0; overflow: hidden; }
    .tv-player { display: flex; align-items: center; gap: 0.7cqw; min-width: 0; font-size: 2.3cqh; font-weight: 700; color: #f1f5f9; }
    .tv-pname { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-av { flex: none; width: 4.4cqh; height: 4.4cqh; display: inline-flex; }
    .tv-av > div { width: 100% !important; height: 100% !important; font-size: 1.8cqh !important; box-shadow: 0 0 0 0.25cqh rgba(255,255,255,0.75); }
    .tv-empty { font-size: 2cqh; color: #94a3b8; font-weight: 700; }
    /* the clue above the board */
    .tv-clue { position: relative; border-radius: 2.4cqh; padding: 0.7cqh 1.4cqw; text-align: center; color: #fff; display: flex; flex-direction: column; justify-content: center; min-width: 0;
      box-shadow: 0 0.8cqh 2.4cqh rgba(0,0,0,0.35), inset 0 0.2cqh 0 rgba(255,255,255,0.3), inset 0 0 0 1px rgba(255,255,255,0.2); }
    .tv-clue-d { background: linear-gradient(160deg, #2dd4bf 0%, #0d9488 55%, #0f766e 100%); }
    .tv-clue-c { background: linear-gradient(160deg, #ff9474 0%, #f0643c 55%, #c2411c 100%); }
    .tv-clue-by { font-size: 1.8cqh; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-clue-main { display: flex; align-items: center; justify-content: center; gap: 1.4cqw; min-width: 0; }
    .tv-clue-word { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; line-height: 1.05; letter-spacing: 0.03em; white-space: nowrap; text-shadow: 0 0.3cqh 0 rgba(0,0,0,0.18);
      font-size: min(6.2cqh, calc(37cqw / var(--tv-em, 6))); }
    .tv-clue-num { flex: none; width: 6.4cqh; height: 6.4cqh; border-radius: 9999px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.95);
      font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 4.2cqh; line-height: 1; box-shadow: inset 0 -0.4cqh 0 rgba(0,0,0,0.12), 0 0.3cqh 0.8cqh rgba(0,0,0,0.25); }
    .tv-clue-d .tv-clue-num { color: #0f766e; } .tv-clue-c .tv-clue-num { color: #c2411c; }
    .tv-clue-left { display: flex; align-items: center; justify-content: center; gap: 0.6cqw; font-size: 2cqh; font-weight: 800; }
    .tv-shellpip { width: 1.5cqh; height: 1.5cqh; border-radius: 9999px; background: rgba(255,255,255,0.95); }
    .tv-shellpip.tv-shellpip-off { background: rgba(255,255,255,0.3); }
    .tv-wait { display: flex; align-items: center; justify-content: center; gap: 1cqw; border-radius: 2.4cqh; padding: 0 2cqw; font-size: 3cqh; font-weight: 800; text-align: center; min-width: 0; }
    .tv-wait .sb-breath { width: 1.6cqh; height: 1.6cqh; flex: none; }
    .tv-wait-txt { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    /* the board: TV-sized plaques (the words still size themselves off each card's own width) */
    .tv-board-wrap { position: relative; }
    .tv-board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.7cqw; }
    .tv-sb .sb-card .sb-face { border-radius: 14cqw; }
    .tv-sb .sb-badge { top: 4%; right: 4%; font-size: 17cqw; }
    .tv-sb .sb-cov-icon { font-size: 30cqw; }
    .tv-sb .tv-sweep { height: 8cqh; margin-top: -4cqh; font-size: 4.2cqh; gap: 1cqw; left: -1cqw; right: -1cqw; }
    /* the win banner where the clue was */
    .tv-win { position: relative; overflow: hidden; isolation: isolate; border-radius: 2.4cqh; display: flex; align-items: center; justify-content: center; gap: 1.6cqw; padding: 0 2cqw; color: #fff;
      box-shadow: 0 0.8cqh 2.4cqh rgba(0,0,0,0.35), inset 0 0.2cqh 0 rgba(255,255,255,0.3); }
    .tv-win-d { background: linear-gradient(160deg, #2dd4bf 0%, #0d9488 50%, #115e59 100%); }
    .tv-win-c { background: linear-gradient(160deg, #ff9a7a 0%, #ec5f37 50%, #9a3412 100%); }
    .tv-win::before { content: ''; position: absolute; left: 50%; top: 50%; width: 60cqw; height: 60cqw; margin: -30cqw 0 0 -30cqw; z-index: -1; pointer-events: none;
      background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255,255,255,0.12) 0deg 9deg, rgba(255,255,255,0) 9deg 22deg); animation: sbRays 40s linear infinite; }
    .tv-win-title { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 6.6cqh; line-height: 1; text-shadow: 0 0.3cqh 0 rgba(0,0,0,0.2); white-space: nowrap; }
    .tv-win-sub { margin-top: 0.6cqh; font-size: 2.2cqh; font-weight: 800; opacity: 0.95; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-win .sb-crest { flex: none; }
    /* the clue log strip: newest at the right, older ones wrap out of sight (never half a chip) */
    .tv-log { display: flex; align-items: center; gap: 1.2cqw; padding: 0 1.4cqw; min-width: 0; }
    .tv-log-h { flex: none; font-size: 1.8cqh; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #94a3b8; white-space: nowrap; }
    .tv-log-list { flex: 1 1 auto; min-width: 0; height: 4.6cqh; overflow: hidden; display: flex; flex-direction: row-reverse; flex-wrap: wrap; justify-content: flex-start; align-items: center; column-gap: 0.8cqw; row-gap: 2cqh; }
    .tv-log-item { flex: none; display: inline-flex; align-items: center; gap: 0.5cqw; height: 4.4cqh; border-radius: 9999px; padding: 0 1cqw 0 0.7cqw; font-size: 2.1cqh; font-weight: 800; white-space: nowrap; }
    .tv-log-d { background: rgba(20,184,166,0.28); box-shadow: inset 0 0 0 1px rgba(94,234,212,0.5); } .tv-log-c { background: rgba(242,107,71,0.28); box-shadow: inset 0 0 0 1px rgba(255,159,128,0.5); }
    .tv-log-n { display: inline-flex; align-items: center; justify-content: center; min-width: 2.6cqh; height: 2.6cqh; border-radius: 9999px; padding: 0 0.3cqw; font-size: 1.7cqh; background: rgba(255,255,255,0.9); color: #0f172a; }
    .tv-log-dots { display: inline-flex; gap: 0.25cqw; }
    .tv-log-dot { width: 1.3cqh; height: 1.3cqh; border-radius: 9999px; }
    .tv-dot-d { background: #14b8a6; } .tv-dot-c { background: #f26b47; } .tv-dot-n { background: #d6c4a0; } .tv-dot-s { background: #0f172a; box-shadow: 0 0 0 0.2cqh #ef4444; }
    .tv-log-time { color: #fde68a; }
    .tv-log-none { font-size: 1.9cqh; font-weight: 700; color: #94a3b8; }
    /* ⏰ time's up: a big splash over the stage when a timeout lands */
    .tv-timesup { position: absolute; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; pointer-events: none; background: rgba(2,6,23,0.55); animation: tvFade 2.6s ease-out both; }
    .tv-timesup-box { text-align: center; padding: 3cqh 5cqw; border-radius: 3cqh; background: linear-gradient(160deg, #fbbf24 0%, #f59e0b 45%, #b45309 100%); color: #1c1003;
      box-shadow: 0 2cqh 6cqh rgba(0,0,0,0.5), inset 0 0.3cqh 0 rgba(255,255,255,0.45); animation: tvPop 2.6s cubic-bezier(.3,.8,.3,1.2) both; }
    .tv-timesup-title { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 12cqh; line-height: 1; }
    .tv-timesup-sub { margin-top: 1cqh; font-size: 3cqh; font-weight: 800; }
    @keyframes tvFade { 0% { opacity: 0; } 10% { opacity: 1; } 82% { opacity: 1; } 100% { opacity: 0; } }
    @keyframes tvPop { 0% { transform: scale(0.6); } 14% { transform: scale(1.06); } 22% { transform: scale(1); } 100% { transform: scale(1); } }
    /* the Shark on the TV fills the stage (the stage is the fixed overlay's containing block) */
    .tv-sb .sb-attack { position: absolute; z-index: 35; }
    .tv-sb .sb-atk-shark-art { width: 64cqw; }
    .tv-sb .sb-atk-splash-art { width: 86cqw; }
    .tv-sb .sb-atk-title { font-size: 13cqh; }
    .tv-sb .sb-atk-sub { margin-top: 1cqh; font-size: 3.4cqh; }
    .tv-sb .sb-atk-text { left: 4cqw; right: 4cqw; }
    .tv-atk-zoom { transform: scale(2.2); }
    /* the lobby and the attract screen */
    .tv-lobby-mid { display: flex; flex-direction: column; align-items: stretch; gap: 1.8cqh; min-width: 0; }
    .tv-hero { position: relative; overflow: hidden; border-radius: 2.6cqh; aspect-ratio: 1260 / 700; color: #fff; text-align: center; display: flex; flex-direction: column; justify-content: space-between; padding: 2.2cqh 2cqw;
      background: linear-gradient(180deg, #5cc2f2 0%, #a8e2fa 52%, #2fb1cf 53%, #128fae 74%, #e5f6fb 77%, #f8e2b2 81%, #efcf93 100%); box-shadow: 0 1cqh 3cqh rgba(0,0,0,0.4); }
    .sb-art .tv-hero { background: var(--sb-hero) center / cover no-repeat, linear-gradient(180deg, #d9a07a 0%, #c79574 40%, #2aa6a3 100%); }
    .tv-hero-title { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 8cqh; line-height: 0.95; text-shadow: 0 0.4cqh 0 rgba(8,47,73,0.45), 0 0.8cqh 2.4cqh rgba(8,47,73,0.45); }
    .tv-hero-sub { font-size: 2.6cqh; font-weight: 800; text-shadow: 0 0.2cqh 0.6cqh rgba(8,47,73,0.7); }
    .tv-hero-line { font-size: 2.4cqh; font-weight: 800; text-shadow: 0 0.2cqh 0.6cqh rgba(8,47,73,0.8); }
    .tv-note { padding: 1.6cqh 1.6cqw; text-align: center; font-size: 2.3cqh; font-weight: 700; color: #e2e8f0; line-height: 1.35; }
    .tv-note b { color: #fff; }
    .tv-sb .tv-safe.tv-attract { display: flex; align-items: center; justify-content: center; }
    .tv-attract .tv-hero { width: 76cqw; aspect-ratio: auto; height: 76cqh; justify-content: space-between; padding: 5cqh 4cqw; }
    .tv-attract .tv-hero-title { font-size: 15cqh; }
    .tv-attract .tv-hero-sub { font-size: 3.8cqh; }
    .tv-attract-call { display: inline-block; align-self: center; border-radius: 9999px; padding: 1.2cqh 2.6cqw; font-size: 3.4cqh; font-weight: 800; color: #0f172a; background: rgba(255,255,255,0.92); box-shadow: 0 1cqh 3cqh rgba(0,0,0,0.35); }
    @media (prefers-reduced-motion: reduce) {
      .tv-timer.tv-timer-urgent, .tv-timesup, .tv-timesup-box, .tv-win::before { animation: none !important; }
    }
    /* 🧠 Squad Game Show (phones): the lobby cards follow the theme; the game itself plays on a
       game-show stage (deep purple, gold, four coloured answer tiles) that looks the same in both. */
    .tq-hero { position: relative; overflow: hidden; border-radius: 18px; padding: 20px 16px 18px; color: #fff; text-align: center; isolation: isolate;
      background: radial-gradient(120% 140% at 50% 0%, #7c3aed 0%, #4c1d95 50%, #1e1b4b 100%); box-shadow: 0 8px 24px rgba(30,27,75,0.35); }
    .tq-hero-sm { padding: 13px 14px 12px; }
    .tq-hero-burst { position: absolute; left: 50%; top: 50%; z-index: -1; width: 760px; height: 760px; margin: -380px 0 0 -380px; pointer-events: none;
      background: repeating-conic-gradient(from 0deg, rgba(255,255,255,0.09) 0deg 8deg, rgba(255,255,255,0) 8deg 20deg); animation: tqSpin 60s linear infinite; }
    .tq-hero-title { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 36px; line-height: 1; color: #fde68a; text-shadow: 0 3px 0 #b45309, 0 6px 18px rgba(0,0,0,0.45); }
    .tq-hero-sm .tq-hero-title { font-size: 27px; }
    .tq-hero-sub { margin-top: 7px; font-size: 12.5px; font-weight: 800; color: #ede9fe; }
    /* 🎲 12.8.13: the Mix-only card in the lobby (no style picker) */
    .tq-mixcard { border-radius: 14px; padding: 10px 12px; background: linear-gradient(135deg, #fef3c7, #ede9fe); box-shadow: inset 0 0 0 1.5px #f59e0b; color: #3b0764; }
    .tq-mixcard-h { font-size: 13px; font-weight: 800; margin-bottom: 6px; }
    .tq-mixcard-row { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.35; padding: 3px 0; }
    .tq-mixcard-e { font-size: 18px; line-height: 1.1; flex-shrink: 0; }
    .tq-mixcard-n { font-weight: 800; }
    .tq-mixcard-b { color: #5b21b6; font-weight: 600; }
    html.jbf-dark .tq-mixcard { background: linear-gradient(135deg, rgba(245,158,11,0.14), rgba(139,92,246,0.14)); box-shadow: inset 0 0 0 1.5px rgba(245,158,11,0.6); color: #fef3c7; }
    html.jbf-dark .tq-mixcard-b { color: #c4b5fd; }
    /* 📺 12.8.10 (Colby: “add a note to Game show to only play with TV companion”) */
    .tq-tvnote { border-radius: 14px; padding: 11px 12px; background: #ede9fe; box-shadow: inset 0 0 0 1.5px #a78bfa; color: #3b0764; }
    .tq-tvnote-row { display: flex; gap: 10px; align-items: flex-start; }
    .tq-tvnote-ico { font-size: 24px; line-height: 1; flex-shrink: 0; }
    .tq-tvnote-t { font-size: 14px; font-weight: 800; line-height: 1.25; }
    .tq-tvnote-s { margin-top: 3px; font-size: 12.5px; font-weight: 600; line-height: 1.35; color: #5b21b6; }
    .tq-tvnote-btn { margin-top: 9px; width: 100%; border-radius: 11px; padding: 9px 12px; font-size: 13.5px; font-weight: 800; color: #fff; background: #7c3aed; box-shadow: 0 2px 0 #5b21b6; }
    .tq-tvnote-btn:active { transform: translateY(1px); box-shadow: 0 1px 0 #5b21b6; }
    html.jbf-dark .tq-tvnote { background: rgba(139,92,246,0.16); box-shadow: inset 0 0 0 1.5px rgba(167,139,250,0.55); color: #ede9fe; }
    html.jbf-dark .tq-tvnote-s { color: #c4b5fd; }
    /* 🏋️ Daily Ironman (12.9.39): steel and molten orange; the kinds in sky / amber / violet. Every rule has its dark twin. */
    .ir-hero { position: relative; overflow: hidden; border-radius: 18px; padding: 16px 16px 14px; color: #f8fafc; background: radial-gradient(120% 140% at 100% 0%, rgba(249,115,22,0.38) 0%, rgba(249,115,22,0) 55%), linear-gradient(150deg, #1e293b 0%, #0f172a 100%); box-shadow: 0 6px 18px rgba(15,23,42,0.22); }
    .ir-hero-k { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #fdba74; }
    .ir-hero-t { margin-top: 3px; font-size: 27px; font-weight: 900; letter-spacing: 0.01em; line-height: 1.05; }
    .ir-hero-s { margin-top: 6px; font-size: 13.5px; font-weight: 600; line-height: 1.4; color: #cbd5e1; }
    .ir-legs { display: flex; align-items: center; gap: 6px; margin-top: 11px; flex-wrap: wrap; }
    .ir-leg { display: inline-flex; align-items: center; gap: 4px; border-radius: 9999px; padding: 3px 9px; font-size: 12px; font-weight: 800; line-height: 1.3; white-space: nowrap; }
    .ir-arrow { color: #94a3b8; font-weight: 900; font-size: 13px; }
    .ir-k-math { color: #075985; background: #e0f2fe; }
    .ir-k-trivia { color: #92400e; background: #fef3c7; }
    .ir-k-puzzle { color: #5b21b6; background: #ede9fe; }
    html.jbf-dark .ir-k-math { color: #bae6fd; background: rgba(14,165,233,0.22); }
    html.jbf-dark .ir-k-trivia { color: #fde68a; background: rgba(245,158,11,0.22); }
    html.jbf-dark .ir-k-puzzle { color: #ddd6fe; background: rgba(139,92,246,0.25); }
    .ir-rules { margin-top: 12px; display: grid; gap: 6px; }
    .ir-rule { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; font-weight: 600; line-height: 1.35; color: #e2e8f0; }
    .ir-go { display: block; width: 100%; margin-top: 14px; border-radius: 14px; padding: 13px 16px; font-size: 17px; font-weight: 900; letter-spacing: 0.01em; color: #1c1917; background: linear-gradient(180deg, #fdba74 0%, #f97316 100%); box-shadow: 0 4px 0 #c2410c; }
    .ir-go:active { transform: translateY(2px); box-shadow: 0 2px 0 #c2410c; }
    .ir-go:disabled { opacity: 0.55; transform: none; }
    .ir-go.ir-go-ghost { margin-top: 8px; padding: 10px 14px; font-size: 14px; color: #f1f5f9; background: rgba(148,163,184,0.18); box-shadow: inset 0 0 0 1px rgba(148,163,184,0.4); }
    .ir-err { margin-top: 8px; font-size: 12.5px; font-weight: 700; color: #fecaca; }
    .ir-card { border-radius: 16px; padding: 14px; background: #ffffff; box-shadow: inset 0 0 0 1px #fed7aa, 0 1px 3px rgba(15,23,42,0.06); }
    html.jbf-dark .ir-card { background: #1f2329; box-shadow: inset 0 0 0 1px rgba(249,115,22,0.28); }
    .ir-row { display: flex; align-items: center; gap: 8px; border-radius: 10px; padding: 6px 8px; }
    .ir-row.ir-row-me { background: #fff7ed; }
    html.jbf-dark .ir-row.ir-row-me { background: rgba(249,115,22,0.13); }
    .ir-row-n { margin-left: auto; flex: none; font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1; color: #ea580c; }
    html.jbf-dark .ir-row-n { color: #fdba74; }
    .ir-row-s { flex: none; min-width: 44px; text-align: right; font-size: 11px; font-weight: 700; color: #94a3b8; font-variant-numeric: tabular-nums; }
    .ir-live { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; color: #059669; white-space: nowrap; }
    html.jbf-dark .ir-live { color: #6ee7b7; }
    .ir-live i { width: 7px; height: 7px; border-radius: 9999px; background: #10b981; animation: irDot 1.2s ease-in-out infinite; }
    @keyframes irDot { 50% { opacity: 0.25; } }
    /* the run */
    .ir-play { border-radius: 18px; padding: 14px; background: #ffffff; box-shadow: 0 2px 10px rgba(15,23,42,0.08), inset 0 0 0 1px #e2e8f0; }
    html.jbf-dark .ir-play { background: #1f2329; box-shadow: inset 0 0 0 1px rgba(148,163,184,0.2); }
    .ir-top { display: flex; align-items: center; gap: 8px; }
    .ir-lvl { font-size: 13px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: #0f172a; white-space: nowrap; }
    html.jbf-dark .ir-lvl { color: #f1f5f9; }
    .ir-secs { margin-left: auto; min-width: 2.2ch; text-align: right; font-size: 30px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1; color: #0f172a; }
    html.jbf-dark .ir-secs { color: #f8fafc; }
    .ir-secs.ir-warn { color: #d97706; }
    .ir-secs.ir-urgent { color: #dc2626; animation: irPulse 0.5s ease-in-out infinite alternate; }
    .ir-secs.ir-show { color: #0284c7; }
    html.jbf-dark .ir-secs.ir-warn { color: #fbbf24; }
    html.jbf-dark .ir-secs.ir-urgent { color: #f87171; }
    html.jbf-dark .ir-secs.ir-show { color: #7dd3fc; }
    @keyframes irPulse { from { transform: scale(1); } to { transform: scale(1.12); } }
    .ir-bar { margin-top: 9px; height: 8px; border-radius: 9999px; overflow: hidden; background: #e2e8f0; }
    html.jbf-dark .ir-bar { background: rgba(148,163,184,0.2); }
    .ir-bar > i { display: block; height: 100%; border-radius: inherit; background: #10b981; transition: width 0.12s linear; }
    .ir-bar.ir-warn > i { background: #f59e0b; }
    .ir-bar.ir-urgent > i { background: #ef4444; }
    .ir-bar.ir-show > i { background: #38bdf8; }
    .ir-ladder { display: flex; gap: 3px; margin-top: 9px; }
    .ir-step { flex: 1 1 0; height: 4px; border-radius: 9999px; background: #e2e8f0; }
    .ir-step.ir-done { background: #10b981; }
    .ir-step.ir-now { background: #f97316; }
    html.jbf-dark .ir-step { background: rgba(148,163,184,0.22); }
    html.jbf-dark .ir-step.ir-done { background: #10b981; }
    html.jbf-dark .ir-step.ir-now { background: #f97316; }
    .ir-qbox { margin-top: 14px; min-height: 96px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
    .ir-q { font-size: 19px; font-weight: 800; line-height: 1.32; color: #0f172a; text-align: center; }
    html.jbf-dark .ir-q { color: #f8fafc; }
    .ir-sub { font-size: 13px; font-weight: 700; color: #64748b; text-align: center; }
    html.jbf-dark .ir-sub { color: #94a3b8; }
    .ir-expr { font-size: 44px; font-weight: 900; text-align: center; font-variant-numeric: tabular-nums; color: #0f172a; line-height: 1.1; white-space: nowrap; }
    .ir-expr.ir-expr-m { font-size: 36px; }
    .ir-expr.ir-expr-s { font-size: 28px; }
    html.jbf-dark .ir-expr { color: #f8fafc; }
    .ir-terms { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: 27px; font-weight: 900; color: #0f172a; font-variant-numeric: tabular-nums; line-height: 1.2; }
    html.jbf-dark .ir-terms { color: #f8fafc; }
    .ir-terms .ir-qm { color: #f97316; }
    .ir-terms.ir-emoji { font-size: 26px; gap: 4px 6px; }
    .ir-opts { margin-top: 14px; display: grid; gap: 8px; }
    .ir-opts.ir-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ir-opt { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; border-radius: 14px; padding: 10px 12px; text-align: left; font-size: 16px; font-weight: 700; line-height: 1.25; color: #1e293b; background: #f8fafc; box-shadow: inset 0 0 0 2px #e2e8f0; }
    .ir-opt:active { transform: scale(0.98); background: #ffedd5; box-shadow: inset 0 0 0 2px #fb923c; }
    html.jbf-dark .ir-opt { color: #e2e8f0; background: rgba(148,163,184,0.1); box-shadow: inset 0 0 0 2px rgba(148,163,184,0.25); }
    html.jbf-dark .ir-opt:active { background: rgba(249,115,22,0.2); box-shadow: inset 0 0 0 2px #fb923c; }
    .ir-opt-l { flex: none; width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 900; color: #64748b; background: #e2e8f0; }
    html.jbf-dark .ir-opt-l { color: #cbd5e1; background: rgba(148,163,184,0.22); }
    .ir-opt.ir-big { justify-content: center; text-align: center; min-height: 62px; font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums; }
    .ir-entry { margin-top: 12px; min-height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 900; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; color: #0f172a; background: #f8fafc; box-shadow: inset 0 0 0 2px #cbd5e1; }
    html.jbf-dark .ir-entry { color: #f8fafc; background: rgba(148,163,184,0.1); box-shadow: inset 0 0 0 2px rgba(148,163,184,0.3); }
    .ir-entry-ph { font-size: 15px; font-weight: 700; letter-spacing: 0; color: #94a3b8; }
    .ir-caret { display: inline-block; width: 3px; height: 30px; margin-left: 4px; border-radius: 2px; background: #f97316; animation: irBlink 1s steps(2, start) infinite; }
    @keyframes irBlink { to { visibility: hidden; } }
    .ir-pad { margin-top: 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .ir-key { height: 54px; border-radius: 14px; font-size: 24px; font-weight: 800; color: #0f172a; background: #f1f5f9; box-shadow: 0 2px 0 #cbd5e1; }
    .ir-key:active { transform: translateY(2px); box-shadow: none; background: #e2e8f0; }
    html.jbf-dark .ir-key { color: #f1f5f9; background: rgba(148,163,184,0.16); box-shadow: 0 2px 0 rgba(0,0,0,0.45); }
    html.jbf-dark .ir-key:active { background: rgba(148,163,184,0.28); box-shadow: none; }
    .ir-key.ir-key-go { color: #ffffff; background: #059669; box-shadow: 0 2px 0 #047857; }
    .ir-key.ir-key-go:active { background: #047857; box-shadow: none; }
    .ir-key.ir-key-go:disabled { opacity: 0.4; transform: none; }
    html.jbf-dark .ir-key.ir-key-go { color: #ffffff; background: #059669; box-shadow: 0 2px 0 #064e3b; }
    .ir-mem { text-align: center; font-size: 42px; font-weight: 900; letter-spacing: 0.14em; font-variant-numeric: tabular-nums; color: #0f172a; word-break: break-all; line-height: 1.15; }
    .ir-mem.ir-mem-long { font-size: 30px; letter-spacing: 0.1em; }
    html.jbf-dark .ir-mem { color: #f8fafc; }
    .ir-mem-hide { text-align: center; font-size: 30px; font-weight: 900; letter-spacing: 0.22em; color: #cbd5e1; word-break: break-all; }
    html.jbf-dark .ir-mem-hide { color: #475569; }
    .ir-gotit { display: block; margin: 4px auto 0; border-radius: 12px; padding: 9px 18px; font-size: 14px; font-weight: 800; color: #0369a1; background: #e0f2fe; }
    html.jbf-dark .ir-gotit { color: #bae6fd; background: rgba(14,165,233,0.22); }
    .ir-count { text-align: center; padding: 38px 0 32px; }
    .ir-count-n { font-size: 96px; font-weight: 900; line-height: 1; color: #f97316; animation: irPop 0.9s ease-out both; }
    @keyframes irPop { from { transform: scale(1.5); opacity: 0; } 30% { opacity: 1; } to { transform: scale(1); opacity: 1; } }
    .ir-count-s { margin-top: 12px; font-size: 14px; font-weight: 700; color: #64748b; }
    html.jbf-dark .ir-count-s { color: #94a3b8; }
    .ir-beat { text-align: center; padding: 30px 0 26px; }
    .ir-beat-ok { display: inline-flex; align-items: center; justify-content: center; width: 84px; height: 84px; border-radius: 9999px; font-size: 44px; font-weight: 900; color: #ffffff; background: #10b981; box-shadow: 0 8px 24px rgba(16,185,129,0.4); animation: irPop 0.45s ease-out both; }
    .ir-beat-t { margin-top: 12px; font-size: 20px; font-weight: 900; color: #047857; }
    html.jbf-dark .ir-beat-t { color: #6ee7b7; }
    .ir-beat-s { margin-top: 6px; font-size: 13px; font-weight: 700; color: #64748b; }
    html.jbf-dark .ir-beat-s { color: #94a3b8; }
    .ir-practice { border-radius: 12px; padding: 8px 12px; font-size: 12.5px; font-weight: 800; color: #6b21a8; background: #f3e8ff; box-shadow: inset 0 0 0 1px #d8b4fe; text-align: center; }
    html.jbf-dark .ir-practice { color: #e9d5ff; background: rgba(168,85,247,0.16); box-shadow: inset 0 0 0 1px rgba(216,180,254,0.4); }
    /* the end of a run */
    .ir-end { border-radius: 18px; padding: 16px; text-align: center; color: #f8fafc; background: radial-gradient(120% 120% at 50% 0%, rgba(249,115,22,0.3) 0%, rgba(249,115,22,0) 60%), linear-gradient(150deg, #1e293b 0%, #0f172a 100%); }
    .ir-end.ir-end-done { background: radial-gradient(120% 120% at 50% 0%, rgba(250,204,21,0.35) 0%, rgba(250,204,21,0) 60%), linear-gradient(150deg, #065f46 0%, #0f172a 100%); }
    .ir-end-e { font-size: 34px; line-height: 1; }
    .ir-end-t { margin-top: 6px; font-size: 15px; font-weight: 800; color: #fdba74; }
    .ir-end-n { margin-top: 6px; font-size: 64px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
    .ir-end-l { margin-top: 2px; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #94a3b8; }
    .ir-end-m { margin-top: 8px; font-size: 13.5px; font-weight: 600; color: #cbd5e1; }
    .ir-badges { margin-top: 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
    .ir-badge { border-radius: 9999px; padding: 4px 10px; font-size: 12px; font-weight: 800; color: #1c1917; background: #fde68a; }
    .ir-badge.ir-badge-b { color: #f8fafc; background: rgba(148,163,184,0.25); }
    .ir-miss { border-radius: 16px; padding: 14px; background: #ffffff; box-shadow: inset 0 0 0 1px #e2e8f0; }
    html.jbf-dark .ir-miss { background: #1f2329; box-shadow: inset 0 0 0 1px rgba(148,163,184,0.2); }
    .ir-miss-h { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #64748b; }
    html.jbf-dark .ir-miss-h { color: #94a3b8; }
    .ir-miss-p { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
    .ir-miss-p .ir-q { font-size: 16px; text-align: left; }
    .ir-miss-p .ir-expr { font-size: 30px; text-align: left; }
    .ir-miss-p .ir-terms { justify-content: flex-start; font-size: 22px; }
    .ir-miss-p .ir-sub { text-align: left; }
    .ir-miss-row { margin-top: 8px; display: flex; align-items: baseline; gap: 8px; font-size: 15px; font-weight: 800; }
    .ir-miss-k { flex: none; width: 96px; font-size: 12px; font-weight: 800; color: #64748b; }
    html.jbf-dark .ir-miss-k { color: #94a3b8; }
    .ir-right { color: #047857; }
    .ir-wrong { color: #dc2626; text-decoration: line-through; text-decoration-thickness: 2px; }
    html.jbf-dark .ir-right { color: #6ee7b7; }
    html.jbf-dark .ir-wrong { color: #fca5a5; }
    .ir-ex { margin-top: 10px; font-size: 13px; font-weight: 600; line-height: 1.4; color: #475569; }
    html.jbf-dark .ir-ex { color: #94a3b8; }
    @media (prefers-reduced-motion: reduce) { .ir-count-n, .ir-beat-ok, .ir-secs.ir-urgent, .ir-caret, .ir-live i { animation: none !important; } .ir-bar > i { transition: none; } }
    /* 🥊 Ironman Showdown (phones): the challenge card reuses the Daily Ironman's ir-* look */
    .is-msg { margin-top: 6px; font-size: 12.5px; font-weight: 700; color: #b91c1c; text-align: center; }
    html.jbf-dark .is-msg { color: #fca5a5; }
    .ir-hero .is-msg { color: #fecaca; }
    .is-tvnote { display: flex; align-items: center; gap: 10px; border-radius: 16px; padding: 12px 14px; background: #fff7ed; box-shadow: inset 0 0 0 1px #fdba74; }
    html.jbf-dark .is-tvnote { background: rgba(249,115,22,0.12); box-shadow: inset 0 0 0 1px rgba(251,146,60,0.45); }
    .is-tvnote-t { font-size: 14px; font-weight: 900; color: #9a3412; }
    html.jbf-dark .is-tvnote-t { color: #fdba74; }
    .is-tvnote-s { margin-top: 2px; font-size: 12px; font-weight: 600; line-height: 1.35; color: #7c2d12; }
    html.jbf-dark .is-tvnote-s { color: #fed7aa; }
    .is-tvnote-b { flex: none; border-radius: 12px; padding: 9px 12px; font-size: 13px; font-weight: 900; color: #ffffff; background: #ea580c; box-shadow: 0 2px 0 #c2410c; }
    .is-tvnote-b:active { transform: translateY(2px); box-shadow: none; }
    .is-how { display: grid; gap: 6px; padding-left: 18px; list-style: disc; font-size: 13px; font-weight: 600; line-height: 1.4; color: #334155; }
    html.jbf-dark .is-how { color: #cbd5e1; }
    .is-count { flex: none; border-radius: 9999px; padding: 2px 9px; font-size: 11.5px; font-weight: 800; color: #9a3412; background: #ffedd5; }
    html.jbf-dark .is-count { color: #fdba74; background: rgba(249,115,22,0.16); }
    .is-players { display: grid; gap: 4px; }
    .is-pl { display: flex; align-items: center; gap: 8px; border-radius: 10px; padding: 5px 8px; }
    .is-pl.is-pl-me { background: #fff7ed; }
    html.jbf-dark .is-pl.is-pl-me { background: rgba(249,115,22,0.12); }
    .is-pl-n { min-width: 0; flex: 1; font-size: 14px; font-weight: 700; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    html.jbf-dark .is-pl-n { color: #e2e8f0; }
    .is-tag { flex: none; border-radius: 9999px; padding: 1px 7px; font-size: 11px; font-weight: 800; color: #475569; background: #f1f5f9; }
    html.jbf-dark .is-tag { color: #cbd5e1; background: rgba(148,163,184,0.16); }
    .is-ghost { display: block; width: 100%; margin-top: 10px; border-radius: 12px; padding: 10px 14px; font-size: 14px; font-weight: 800; color: #475569; background: #f1f5f9; }
    html.jbf-dark .is-ghost { color: #cbd5e1; background: rgba(148,163,184,0.14); }
    .is-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .is-type { display: flex; flex-direction: column; align-items: center; gap: 2px; border-radius: 14px; padding: 10px 4px 8px; color: #64748b; background: #f8fafc; box-shadow: inset 0 0 0 2px #e2e8f0; }
    html.jbf-dark .is-type { color: #94a3b8; background: rgba(148,163,184,0.08); box-shadow: inset 0 0 0 2px rgba(148,163,184,0.22); }
    .is-type.is-type-on { color: #9a3412; background: #fff7ed; box-shadow: inset 0 0 0 2px #fb923c; }
    html.jbf-dark .is-type.is-type-on { color: #fed7aa; background: rgba(249,115,22,0.16); box-shadow: inset 0 0 0 2px #fb923c; }
    .is-type:active { transform: scale(0.97); }
    .is-type.is-type-ro:active { transform: none; }
    .is-type-e { font-size: 24px; line-height: 1.1; }
    .is-type-n { font-size: 13px; font-weight: 900; }
    .is-type-c { min-height: 14px; font-size: 12px; font-weight: 900; color: #ea580c; }
    html.jbf-dark .is-type-c { color: #fb923c; }
    .is-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
    .is-sp { position: relative; display: inline-flex; border-radius: 9999px; }
    .is-sp.is-sp-me { box-shadow: 0 0 0 2px #f97316; }
    .is-sp.is-sp-out { opacity: 0.35; filter: grayscale(1); }
    .is-sp-lock, .is-sp-x { position: absolute; right: -4px; bottom: -4px; width: 15px; height: 15px; border-radius: 9999px; display: inline-flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 900; color: #ffffff; box-shadow: 0 0 0 2px #ffffff; }
    html.jbf-dark .is-sp-lock, html.jbf-dark .is-sp-x { box-shadow: 0 0 0 2px #15181c; }
    .is-sp-lock { background: #10b981; }
    .is-sp-x { background: #ef4444; }
    .is-lock { margin-top: 12px; display: flex; align-items: center; gap: 8px; border-radius: 12px; padding: 10px 12px; font-size: 13.5px; font-weight: 800; color: #065f46; background: #ecfdf5; }
    html.jbf-dark .is-lock { color: #a7f3d0; background: rgba(16,185,129,0.14); }
    .is-lock-ok { flex: none; width: 24px; height: 24px; border-radius: 9999px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; color: #ffffff; background: #10b981; }
    .is-lock.is-lock-spec { color: #475569; background: #f1f5f9; }
    html.jbf-dark .is-lock.is-lock-spec { color: #cbd5e1; background: rgba(148,163,184,0.12); }
    .ir-opt.is-opt-mine { background: #ffedd5; box-shadow: inset 0 0 0 2px #fb923c; }
    html.jbf-dark .ir-opt.is-opt-mine { background: rgba(249,115,22,0.18); box-shadow: inset 0 0 0 2px #fb923c; }
    .ir-opt.is-opt-right { color: #ffffff; background: #059669; box-shadow: inset 0 0 0 2px #047857; }
    html.jbf-dark .ir-opt.is-opt-right { color: #ffffff; background: #059669; box-shadow: inset 0 0 0 2px #34d399; }
    .ir-opt.is-opt-wrong { color: #ffffff; background: #dc2626; box-shadow: inset 0 0 0 2px #b91c1c; }
    html.jbf-dark .ir-opt.is-opt-wrong { color: #ffffff; background: #b91c1c; box-shadow: inset 0 0 0 2px #f87171; }
    .ir-opt:disabled { cursor: default; }
    .ir-opt:disabled:active { transform: none; }
    .is-secs-rev { color: #94a3b8; }
    .is-rev { border-radius: 16px; padding: 12px 14px; text-align: center; color: #0f172a; background: #f1f5f9; box-shadow: inset 0 0 0 1px #e2e8f0; }
    html.jbf-dark .is-rev { color: #f1f5f9; background: rgba(148,163,184,0.12); box-shadow: inset 0 0 0 1px rgba(148,163,184,0.25); }
    .is-rev.is-rev-ok { color: #064e3b; background: #d1fae5; box-shadow: inset 0 0 0 1px #6ee7b7; }
    html.jbf-dark .is-rev.is-rev-ok { color: #d1fae5; background: rgba(16,185,129,0.2); box-shadow: inset 0 0 0 1px rgba(52,211,153,0.5); }
    .is-rev.is-rev-bad { color: #7f1d1d; background: #fee2e2; box-shadow: inset 0 0 0 1px #fca5a5; }
    html.jbf-dark .is-rev.is-rev-bad { color: #fee2e2; background: rgba(239,68,68,0.2); box-shadow: inset 0 0 0 1px rgba(248,113,113,0.5); }
    .is-rev.is-rev-all { color: #78350f; background: #fef3c7; box-shadow: inset 0 0 0 1px #fcd34d; }
    html.jbf-dark .is-rev.is-rev-all { color: #fef3c7; background: rgba(245,158,11,0.18); box-shadow: inset 0 0 0 1px rgba(252,211,77,0.45); }
    .is-rev-t { font-size: 19px; font-weight: 900; }
    .is-rev-s { margin-top: 4px; font-size: 13px; font-weight: 700; opacity: 0.85; }
    .is-stop { display: block; width: 100%; border-radius: 12px; padding: 9px 12px; font-size: 13px; font-weight: 800; color: #b91c1c; background: #fef2f2; }
    html.jbf-dark .is-stop { color: #fca5a5; background: rgba(239,68,68,0.12); }
    .is-stop.is-stop-armed { color: #ffffff; background: #dc2626; }
    html.jbf-dark .is-stop.is-stop-armed { color: #ffffff; background: #dc2626; }
    .is-win-av { display: flex; justify-content: center; margin-top: 8px; }
    .is-win-t { margin-top: 8px; font-size: 26px; font-weight: 900; line-height: 1.15; }
    /* ⏱️ (12.10.6) when time decided it: the finishers' totals stand out in the standings */
    .ir-row-s.is-row-time { font-size: 12px; font-weight: 900; color: #ea580c; }
    html.jbf-dark .ir-row-s.is-row-time { color: #fdba74; }
    /* (12.10.6) the reveal is a beat now: the next challenge keeps the last one's result up — and a phone that just went out says so */
    .is-last { border-radius: 12px; padding: 7px 12px; font-size: 12.5px; font-weight: 700; line-height: 1.35; color: #7c2d12; background: #fff7ed; box-shadow: inset 0 0 0 1px #fed7aa; }
    html.jbf-dark .is-last { color: #fed7aa; background: rgba(249,115,22,0.12); box-shadow: inset 0 0 0 1px rgba(251,146,60,0.35); }
    .is-last b { font-weight: 900; color: #9a3412; }
    html.jbf-dark .is-last b { color: #ffedd5; }
    .is-last-k { font-weight: 800; color: #9a3412; }
    html.jbf-dark .is-last-k { color: #fdba74; }
    .is-lock.is-lock-out { color: #991b1b; background: #fef2f2; }
    html.jbf-dark .is-lock.is-lock-out { color: #fecaca; background: rgba(239,68,68,0.14); }
    /* 🥁 the countdown to the winner (12.10.6): inside the always-dark end card, so one look for both themes; a "?"
       slot shows nothing about who sits where */
    .is-fin-h { margin-top: 6px; font-size: 22px; font-weight: 900; line-height: 1.15; color: #fed7aa; animation: isFinIn 0.45s cubic-bezier(.3,.8,.3,1.2) both; }
    .is-fin-h.is-fin-h-sus { animation: isFinBeat 0.9s ease-in-out infinite; }
    .is-fin-h.is-fin-h-win { font-size: 26px; color: #fde68a; }
    .is-fin-list { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
    .is-fin-slot { display: flex; align-items: center; gap: 8px; height: 50px; border-radius: 12px; padding: 0 10px; text-align: left; }
    .is-fin-off { justify-content: center; background: rgba(255,255,255,0.04); box-shadow: inset 0 0 0 1.5px rgba(253,186,116,0.32); }
    .is-fin-q { font-size: 22px; font-weight: 900; line-height: 1; color: rgba(253,186,116,0.65); }
    .is-fin-off.is-fin-next { animation: isFinNext 0.9s ease-in-out infinite; }
    .is-fin-on { background: rgba(255,255,255,0.08); animation: isFinPop 0.5s cubic-bezier(.3,.8,.3,1.25) both; }
    .is-fin-on.is-fin-me { box-shadow: inset 0 0 0 2px #fb923c; }
    .is-fin-on.is-fin-gold { color: #1c1917; background: linear-gradient(180deg, #fde047 0%, #f59e0b 100%); box-shadow: 0 0 0 2px #fde68a, 0 0 22px rgba(250,204,21,0.5); animation: isFinGold 0.7s cubic-bezier(.3,.8,.3,1.25) both; }
    .is-fin-rank { flex: none; width: 24px; text-align: center; font-size: 15px; font-weight: 900; color: #fdba74; }
    .is-fin-name { display: block; font-size: 14.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .is-fin-how { display: block; font-size: 11px; font-weight: 700; color: #cbd5e1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .is-fin-n { flex: none; font-size: 20px; font-weight: 900; line-height: 1; color: #fdba74; font-variant-numeric: tabular-nums; }
    .is-fin-gold .is-fin-rank, .is-fin-gold .is-fin-n { color: #1c1917; }
    .is-fin-gold .is-fin-how { color: #78350f; }
    @keyframes isFinIn { 0% { opacity: 0; transform: scale(0.75); } 60% { opacity: 1; transform: scale(1.04); } 100% { opacity: 1; transform: none; } }
    @keyframes isFinPop { 0% { opacity: 0; transform: translateX(-16px) scale(0.92); } 60% { opacity: 1; transform: translateX(3px) scale(1.02); } 100% { opacity: 1; transform: none; } }
    @keyframes isFinGold { 0% { opacity: 0; transform: scale(0.6); } 55% { opacity: 1; transform: scale(1.07); } 100% { opacity: 1; transform: none; } }
    @keyframes isFinNext { 50% { background: rgba(253,186,116,0.14); box-shadow: inset 0 0 0 1.5px rgba(253,186,116,0.75); } }
    @keyframes isFinBeat { 50% { transform: scale(1.06); } }
    @media (prefers-reduced-motion: reduce) { .is-fin-h, .is-fin-off.is-fin-next, .is-fin-on { animation: none !important; } }
    /* 📺 Ironman Showdown on the TV */
    .tv-is { position: absolute; inset: 0; color: #f8fafc; background: radial-gradient(120% 100% at 50% 0%, #9a3412 0%, #431407 42%, #0c0a09 100%); }
    .tv-is-attract { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3.4cqh; text-align: center; }
    .tv-is-logo { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 15cqh; line-height: 0.95; color: #fed7aa; text-shadow: 0 1cqh 0 #9a3412, 0 2cqh 5cqh rgba(0,0,0,0.5); }
    .tv-is-logo.tv-is-logo-sm { font-size: 8.5cqh; text-shadow: 0 0.6cqh 0 #9a3412, 0 1.4cqh 3cqh rgba(0,0,0,0.5); }
    .tv-is-tag { font-size: 3cqh; font-weight: 800; color: #fde68a; max-width: 80%; }
    .tv-is-kinds { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2cqw; }
    .tv-is-kindchip { display: inline-flex; align-items: center; gap: 0.6cqw; border-radius: 9999px; padding: 0.7cqh 1.6cqw; font-size: 3cqh; font-weight: 900; white-space: nowrap; }
    .tv-is-k-math { color: #e0f2fe; background: rgba(14,165,233,0.35); box-shadow: inset 0 0 0 0.2cqh rgba(125,211,252,0.6); }
    .tv-is-k-trivia { color: #fef3c7; background: rgba(245,158,11,0.35); box-shadow: inset 0 0 0 0.2cqh rgba(252,211,77,0.6); }
    .tv-is-k-puzzle { color: #ede9fe; background: rgba(139,92,246,0.38); box-shadow: inset 0 0 0 0.2cqh rgba(196,181,253,0.6); }
    .tv-is-lobby-pl { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6cqh 2cqw; max-width: 86%; }
    .tv-is-lp { display: flex; flex-direction: column; align-items: center; gap: 0.8cqh; width: 11cqw; }
    .tv-is-lp .tv-av { width: 9cqh; height: 9cqh; }
    .tv-is-lp .tv-av > div { font-size: 3.6cqh !important; }
    .tv-is-lp-n { font-size: 2.6cqh; font-weight: 800; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-is-lp-h { font-size: 2.4cqh; margin-top: -0.6cqh; }
    .tv-is-wrap { display: flex; flex-direction: column; gap: 2cqh; }
    .tv-is-head { height: 10cqh; flex: none; }
    .tv-is-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 27cqw; gap: 1.6cqw; }
    .tv-is-main { position: relative; min-height: 0; display: flex; flex-direction: column; padding: 2.6cqh 2.2cqw 3.6cqh; overflow: hidden; }
    .tv-is-top { display: flex; align-items: center; gap: 1.2cqw; }
    .tv-is-lvl { font-size: 3.4cqh; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: #fdba74; white-space: nowrap; }
    .tv-is-locked { margin-left: auto; font-size: 2.8cqh; font-weight: 800; color: #e2e8f0; white-space: nowrap; }
    .tv-is-q { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2cqh; text-align: center; }
    .tv-is-qt { font-size: 5.6cqh; font-weight: 800; line-height: 1.22; max-width: 96%; }
    .tv-is-qt.tv-is-qt-s { font-size: 4.4cqh; }
    .tv-is-expr { font-family: 'Baloo 2', system-ui, sans-serif; font-size: 17cqh; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
    .tv-is-expr.tv-is-expr-m { font-size: 13cqh; }
    .tv-is-expr.tv-is-expr-s { font-size: 10cqh; }
    .tv-is-sub { font-size: 3.2cqh; font-weight: 700; color: #fed7aa; }
    .tv-is-terms { display: flex; flex-wrap: wrap; justify-content: center; gap: 1cqh 2.6cqw; font-family: 'Baloo 2', system-ui, sans-serif; font-size: 11cqh; font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; }
    .tv-is-terms.tv-is-emoji { font-size: 9cqh; gap: 1cqh 1.2cqw; }
    .tv-is-terms .tv-is-qm { color: #fb923c; }
    .tv-is-mem { font-family: 'Baloo 2', system-ui, sans-serif; font-size: 14cqh; font-weight: 800; letter-spacing: 0.14em; line-height: 1; font-variant-numeric: tabular-nums; }
    .tv-is-mem.tv-is-mem-hide { color: rgba(255,255,255,0.3); letter-spacing: 0.3em; }
    .tv-is-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4cqh 1.2cqw; margin-top: 1.6cqh; }
    .tv-is-opt { display: flex; align-items: center; gap: 1.1cqw; min-height: 9cqh; border-radius: 1.8cqh; padding: 1cqh 1.4cqw; font-size: 3.8cqh; font-weight: 800; line-height: 1.15; background: rgba(255,255,255,0.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14); transition: opacity 0.3s ease, background 0.3s ease; }
    .tv-is-opts-big .tv-is-opt { justify-content: center; font-family: 'Baloo 2', system-ui, sans-serif; font-size: 6.4cqh; min-height: 11cqh; }
    .tv-is-opt-l { flex: none; width: 5.2cqh; height: 5.2cqh; border-radius: 1.2cqh; display: inline-flex; align-items: center; justify-content: center; font-size: 2.9cqh; font-weight: 900; color: #1c1917; background: #fb923c; }
    .tv-is-opt-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
    .tv-is-opt.tv-is-right { background: #059669; box-shadow: 0 0 0 0.5cqh rgba(52,211,153,0.55), 0 0 4cqh rgba(16,185,129,0.6); }
    .tv-is-opt.tv-is-dim { opacity: 0.32; }
    .tv-is-type { margin-top: 1cqh; align-self: center; border-radius: 9999px; padding: 1cqh 2.4cqw; font-size: 3.2cqh; font-weight: 800; color: #fde68a; background: rgba(255,255,255,0.08); }
    .tv-is-ansbox { margin-top: 1cqh; align-self: center; display: flex; align-items: baseline; gap: 1.4cqw; border-radius: 2cqh; padding: 1cqh 2.6cqw; background: rgba(5,150,105,0.35); box-shadow: inset 0 0 0 0.3cqh rgba(52,211,153,0.7); }
    .tv-is-ans-l { font-size: 2.8cqh; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: #a7f3d0; }
    .tv-is-ans { font-family: 'Baloo 2', system-ui, sans-serif; font-size: 9cqh; font-weight: 800; line-height: 1; color: #ffffff; font-variant-numeric: tabular-nums; }
    .tv-is-banner { margin-top: 1.8cqh; align-self: stretch; border-radius: 2cqh; padding: 1.4cqh 2cqw; font-size: 4.6cqh; font-weight: 900; text-align: center; animation: tvIsBanner 0.45s cubic-bezier(.2,.9,.3,1.3) both; }
    .tv-is-banner-out { background: #b91c1c; box-shadow: 0 1cqh 3cqh rgba(185,28,28,0.45); }
    .tv-is-banner-all { color: #1c1917; background: #fbbf24; }
    .tv-is-banner-ok { background: #047857; }
    @keyframes tvIsBanner { from { transform: scale(0.85); opacity: 0; } to { transform: none; opacity: 1; } }
    .tv-is-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 1.2cqh; background: rgba(255,255,255,0.1); }
    .tv-is-bar > i { display: block; height: 100%; background: linear-gradient(90deg, #f97316, #fbbf24); transition: width 0.25s linear; }
    .tv-is-side { min-height: 0; display: flex; flex-direction: column; padding: 2cqh 1.2cqw; overflow: hidden; }
    .tv-is-side-h { flex: none; margin-bottom: 1.2cqh; font-size: 2.5cqh; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: #fdba74; }
    .tv-is-rows { display: flex; flex-direction: column; gap: 0.9cqh; min-height: 0; overflow: hidden; }
    .tv-is-row { display: flex; align-items: center; gap: 0.9cqw; min-height: 5.4cqh; }
    .tv-is-row .tv-av { width: 5cqh; height: 5cqh; }
    .tv-is-row .tv-av > div { font-size: 2.1cqh !important; }
    .tv-is-row.tv-is-row-out { opacity: 0.4; }
    .tv-is-row-n { min-width: 0; flex: 1; font-size: 3cqh; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-is-row-c { flex: none; font-size: 3cqh; font-weight: 900; color: #fdba74; font-variant-numeric: tabular-nums; }
    .tv-is-st { flex: none; min-width: 4.6cqh; height: 4.6cqh; border-radius: 9999px; display: inline-flex; align-items: center; justify-content: center; padding: 0 0.6cqw; font-size: 2.5cqh; font-weight: 900; }
    .tv-is-st-lock, .tv-is-st-ok { color: #ffffff; background: #10b981; }
    .tv-is-st-wait { color: #cbd5e1; background: rgba(255,255,255,0.1); }
    .tv-is-st-bad { color: #ffffff; background: #dc2626; }
    .tv-is-st-out { color: #fecaca; background: rgba(220,38,38,0.25); font-size: 2.2cqh; }
    .tv-is-st-win { background: rgba(250,204,21,0.3); }
    .tv-is-intro, .tv-is-final { align-items: center; justify-content: center; gap: 2.4cqh; text-align: center; }
    .tv-is-count { font-family: 'Baloo 2', system-ui, sans-serif; font-size: 30cqh; font-weight: 800; line-height: 0.9; color: #fb923c; text-shadow: 0 1.4cqh 4cqh rgba(0,0,0,0.5); animation: tvIsBanner 0.6s ease-out both; }
    .tv-is-trophy { font-size: 12cqh; line-height: 1; }
    .tv-is-podium { display: flex; justify-content: center; gap: 3cqw; }
    .tv-is-pod { display: flex; flex-direction: column; align-items: center; gap: 1cqh; }
    .tv-is-pod .tv-av.tv-is-av-win { width: 16cqh; height: 16cqh; }
    .tv-is-pod .tv-av.tv-is-av-win > div { font-size: 6.4cqh !important; box-shadow: 0 0 0 0.6cqh #fde68a, 0 0 5cqh rgba(250,204,21,0.55); }
    .tv-is-pod-n { font-size: 4cqh; font-weight: 900; }
    .tv-is-final-t { font-family: 'Baloo 2', system-ui, sans-serif; font-size: 9cqh; font-weight: 800; line-height: 1; color: #fde68a; }
    .tv-is-final-s { font-size: 3.4cqh; font-weight: 800; color: #fed7aa; }
    .tv-is-final-s.tv-is-final-time { max-width: 90%; color: #fde68a; }
    .tv-is-row-t { flex: none; font-size: 2.4cqh; font-weight: 800; color: #fde68a; font-variant-numeric: tabular-nums; white-space: nowrap; }
    /* (12.10.6) the reveal is a beat now: the next challenge keeps who just went out (and how many are left) up */
    .tv-is-last { margin-top: 1.4cqh; align-self: center; max-width: 100%; border-radius: 9999px; padding: 0.7cqh 2cqw; font-size: 2.8cqh; font-weight: 800; color: #d1fae5; background: rgba(4,120,87,0.35); box-shadow: inset 0 0 0 0.2cqh rgba(52,211,153,0.45);
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: tvIsBanner 0.45s cubic-bezier(.2,.9,.3,1.3) both; }
    .tv-is-last.tv-is-last-out { color: #fee2e2; background: rgba(185,28,28,0.4); box-shadow: inset 0 0 0 0.2cqh rgba(248,113,113,0.55); }
    .tv-is-last.tv-is-last-all { color: #fef3c7; background: rgba(217,119,6,0.32); box-shadow: inset 0 0 0 0.2cqh rgba(252,211,77,0.5); }
    .tv-is-last b { color: #ffffff; }
    .tv-is-last-n { opacity: 0.85; }
    /* 🥁 the countdown to the winner (12.10.6): full width (the standings down the side stay away until it's over) */
    .tv-is-body.tv-is-body-full { grid-template-columns: minmax(0, 1fr); }
    .tv-is-main.tv-is-fin { align-items: center; justify-content: center; gap: 1.4cqh; }
    .tv-is-fin-h { font-family: 'Baloo 2', system-ui, sans-serif; font-size: 7.6cqh; font-weight: 800; line-height: 1; text-align: center; color: #fed7aa; text-shadow: 0 0.6cqh 0 #9a3412; animation: isFinIn 0.55s cubic-bezier(.3,.8,.3,1.2) both; }
    .tv-is-fin-h.tv-is-fin-h-sus { animation: isFinBeat 0.9s ease-in-out infinite; }
    .tv-is-fin-h.tv-is-fin-h-win { font-size: 8.6cqh; color: #fde68a; }
    .tv-is-fin-sub { max-width: 92%; font-size: 3cqh; font-weight: 800; text-align: center; color: #fde68a; }
    .tv-is-fin-list { width: 76cqw; max-width: 100%; display: flex; flex-direction: column; gap: 1.1cqh; margin-top: 0.6cqh; }
    .tv-is-fin-slot { display: flex; align-items: center; gap: 1.2cqw; min-width: 0; height: 9cqh; border-radius: 2cqh; padding: 0 1.6cqw; }
    .tv-is-fin-sm .tv-is-fin-list { gap: 0.8cqh; } .tv-is-fin-sm .tv-is-fin-slot { height: 6.6cqh; border-radius: 1.6cqh; }
    .tv-is-fin-xs .tv-is-fin-list { gap: 0.5cqh; } .tv-is-fin-xs .tv-is-fin-slot { height: 4.5cqh; border-radius: 1.2cqh; }
    .tv-is-fin-off { justify-content: center; background: rgba(255,255,255,0.04); box-shadow: inset 0 0 0 0.25cqh rgba(253,186,116,0.35); }
    .tv-is-fin-q { font-family: 'Baloo 2', system-ui, sans-serif; font-size: 5cqh; font-weight: 800; line-height: 1; color: rgba(253,186,116,0.65); }
    .tv-is-fin-sm .tv-is-fin-q { font-size: 4cqh; } .tv-is-fin-xs .tv-is-fin-q { font-size: 3cqh; }
    .tv-is-fin-off.tv-is-fin-next { animation: tvIsFinNext 0.9s ease-in-out infinite; }
    .tv-is-fin-on { background: rgba(255,255,255,0.1); box-shadow: inset 0 0 0 0.15cqh rgba(255,255,255,0.16); animation: isFinPop 0.55s cubic-bezier(.3,.8,.3,1.25) both; }
    .tv-is-fin-on.tv-is-fin-gold { color: #1c1917; background: linear-gradient(180deg, #fde047 0%, #f59e0b 100%); box-shadow: 0 0 0 0.5cqh #fde68a, 0 0 6cqh rgba(250,204,21,0.6); animation: isFinGold 0.8s cubic-bezier(.3,.8,.3,1.25) both; }
    .tv-is-fin-rank { flex: none; width: 5cqh; text-align: center; font-size: 4cqh; font-weight: 900; color: #fdba74; }
    .tv-is-fin-slot .tv-av { width: 6.4cqh; height: 6.4cqh; }
    .tv-is-fin-slot .tv-av > div { font-size: 2.6cqh !important; }
    .tv-is-fin-name { flex: 1 1 auto; min-width: 0; font-size: 4cqh; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-is-fin-how { flex: none; font-size: 2.6cqh; font-weight: 800; color: #fed7aa; white-space: nowrap; }
    .tv-is-fin-n { flex: none; min-width: 5cqh; text-align: right; font-family: 'Baloo 2', system-ui, sans-serif; font-size: 5cqh; font-weight: 800; line-height: 1; color: #fdba74; font-variant-numeric: tabular-nums; }
    .tv-is-fin-gold .tv-is-fin-rank, .tv-is-fin-gold .tv-is-fin-n, .tv-is-fin-gold .tv-is-fin-how { color: #1c1917; }
    .tv-is-fin-sm .tv-is-fin-rank, .tv-is-fin-sm .tv-is-fin-name { font-size: 3.2cqh; } .tv-is-fin-sm .tv-is-fin-n { font-size: 4cqh; } .tv-is-fin-sm .tv-is-fin-how { font-size: 2.2cqh; }
    .tv-is-fin-sm .tv-is-fin-slot .tv-av { width: 5cqh; height: 5cqh; } .tv-is-fin-sm .tv-is-fin-slot .tv-av > div { font-size: 2.1cqh !important; }
    .tv-is-fin-xs .tv-is-fin-rank, .tv-is-fin-xs .tv-is-fin-name { font-size: 2.5cqh; } .tv-is-fin-xs .tv-is-fin-n { font-size: 3cqh; } .tv-is-fin-xs .tv-is-fin-how { font-size: 1.9cqh; }
    .tv-is-fin-xs .tv-is-fin-slot .tv-av { width: 3.6cqh; height: 3.6cqh; } .tv-is-fin-xs .tv-is-fin-slot .tv-av > div { font-size: 1.6cqh !important; }
    @keyframes tvIsFinNext { 50% { background: rgba(253,186,116,0.16); box-shadow: inset 0 0 0 0.3cqh rgba(253,186,116,0.75); } }
    @media (prefers-reduced-motion: reduce) { .tv-is-banner, .tv-is-count, .tv-is-last, .tv-is-fin-h, .tv-is-fin-off.tv-is-fin-next, .tv-is-fin-on { animation: none !important; } .tv-is-bar > i, .tv-is-opt { transition: none !important; } }
    /* ---- 📺 Imposter on the TV (12.10.3, ImposterTv): a spy-pink stage, the category huge, the vote coming in, the reveal.
       (No overflow: hidden on a TV screen's root: the stage clips already, and the harness's spill check skips everything inside a clipping box.) ---- */
    .tv-im { position: absolute; inset: 0; color: #f8fafc; background: radial-gradient(120% 100% at 50% 0%, #a21caf 0%, #4a044e 40%, #0f0618 100%); }
    .tv-im::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.06; background: repeating-linear-gradient(135deg, #ffffff 0 0.4cqh, transparent 0.4cqh 3.2cqh); }
    .tv-im-attract { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3.2cqh; text-align: center; }
    .tv-im-logo { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 15cqh; line-height: 0.95; color: #f5d0fe; text-shadow: 0 1cqh 0 #701a75, 0 2cqh 5cqh rgba(0,0,0,0.5); white-space: nowrap; }
    .tv-im-logo.tv-im-logo-sm { font-size: 8.5cqh; text-shadow: 0 0.6cqh 0 #701a75, 0 1.4cqh 3cqh rgba(0,0,0,0.5); }
    .tv-im-logo-e { display: inline-block; transform: translateY(-0.4cqh); }
    .tv-im-tag { font-size: 3.2cqh; font-weight: 800; color: #fbcfe8; max-width: 84%; }
    .tv-im-steps { display: flex; gap: 2cqw; }
    .tv-im-step { width: 22cqw; display: flex; flex-direction: column; align-items: center; gap: 0.8cqh; padding: 2.6cqh 1.6cqw; }
    .tv-im-step-e { font-size: 8cqh; line-height: 1; }
    .tv-im-step-t { font-size: 3.4cqh; font-weight: 900; }
    .tv-im-step-s { font-size: 2.4cqh; font-weight: 700; color: #f5d0fe; }
    .tv-im-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 1cqh 1.2cqw; }
    .tv-im-chip { display: inline-flex; align-items: center; gap: 0.6cqw; border-radius: 9999px; padding: 0.8cqh 1.6cqw; font-size: 2.6cqh; font-weight: 800; color: #fdf4ff; background: rgba(255,255,255,0.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18); white-space: nowrap; }
    .tv-im-chip.tv-im-chip-hot { color: #3b0764; background: #f0abfc; box-shadow: none; }
    .tv-im-lobby-pl { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6cqh 2cqw; max-width: 86%; }
    .tv-im-lp { display: flex; flex-direction: column; align-items: center; gap: 0.8cqh; width: 11cqw; }
    .tv-im-lp .tv-av { width: 9cqh; height: 9cqh; } .tv-im-lp .tv-av > div { font-size: 3.6cqh !important; }
    .tv-im-lp-n { font-size: 2.6cqh; font-weight: 800; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-im-lp-h { font-size: 2.4cqh; margin-top: -0.6cqh; }
    .tv-im-lobby-sc { font-size: 2.8cqh; font-weight: 800; color: #fde68a; }
    .tv-im-wrap { display: flex; flex-direction: column; gap: 2cqh; }
    .tv-im-head { height: 10cqh; flex: none; }
    .tv-im-catpill { display: inline-flex; align-items: baseline; gap: 1cqw; border-radius: 9999px; padding: 0.8cqh 2cqw; font-family: 'Baloo 2', system-ui, sans-serif; font-size: 4.2cqh; font-weight: 800; line-height: 1.1; color: #3b0764; background: #f0abfc; white-space: nowrap; }
    .tv-im-catpill-l { font-family: system-ui, sans-serif; font-size: 1.9cqh; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; color: #701a75; }
    .tv-im-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 27cqw; gap: 1.6cqw; }
    .tv-im-main { position: relative; min-height: 0; display: flex; flex-direction: column; padding: 3cqh 2.4cqw; overflow: hidden; }
    .tv-im-play { align-items: center; justify-content: center; gap: 2.4cqh; text-align: center; }
    .tv-im-cat-l { font-size: 3cqh; font-weight: 900; letter-spacing: 0.24em; text-transform: uppercase; color: #f0abfc; }
    .tv-im-cat { font-family: 'Baloo 2', system-ui, sans-serif; font-size: 19cqh; font-weight: 800; line-height: 0.95; color: #ffffff; text-shadow: 0 1.2cqh 0 #86198f, 0 2.4cqh 6cqh rgba(0,0,0,0.5); white-space: nowrap; animation: tvImPop 0.6s cubic-bezier(.2,.9,.3,1.25) both; }
    .tv-im-cat.tv-im-cat-s { font-size: 13cqh; }
    .tv-im-first { display: flex; align-items: center; gap: 1.6cqw; border-radius: 2.4cqh; padding: 1.6cqh 2.4cqw 1.6cqh 1.6cqw; background: rgba(255,255,255,0.08); box-shadow: inset 0 0 0 0.25cqh rgba(240,171,252,0.5); text-align: left; max-width: 92%; }
    .tv-im-first .tv-av.tv-im-av-first { width: 12cqh; height: 12cqh; } .tv-im-first .tv-av.tv-im-av-first > div { font-size: 5cqh !important; box-shadow: 0 0 0 0.5cqh #f0abfc !important; }
    .tv-im-first-t { font-size: 4.4cqh; font-weight: 900; line-height: 1.1; }
    .tv-im-first-s { margin-top: 0.6cqh; font-size: 2.6cqh; font-weight: 700; color: #f5d0fe; }
    .tv-im-vote { align-items: center; gap: 1.6cqh; text-align: center; }
    .tv-im-vote-t { font-family: 'Baloo 2', system-ui, sans-serif; font-size: 9cqh; font-weight: 800; line-height: 1; }
    .tv-im-vote-s { font-size: 3cqh; font-weight: 800; color: #f5d0fe; }
    .tv-im-count { display: flex; align-items: baseline; gap: 1.2cqw; }
    .tv-im-count-n { font-family: 'Baloo 2', system-ui, sans-serif; font-size: 12cqh; font-weight: 800; line-height: 0.9; color: #f0abfc; font-variant-numeric: tabular-nums; }
    .tv-im-count-of { font-size: 4cqh; font-weight: 800; }
    .tv-im-bar { width: 70%; height: 1.4cqh; border-radius: 9999px; background: rgba(255,255,255,0.12); overflow: hidden; }
    .tv-im-bar > i { display: block; height: 100%; border-radius: 9999px; background: linear-gradient(90deg, #e879f9, #f0abfc); transition: width 0.5s ease; }
    .tv-im-grid { margin-top: 1cqh; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6cqh 1.6cqw; }
    .tv-im-cell { width: 10.5cqw; display: flex; flex-direction: column; align-items: center; gap: 0.6cqh; opacity: 0.45; transition: opacity 0.3s ease, transform 0.3s ease; }
    .tv-im-cell .tv-av { width: 8.5cqh; height: 8.5cqh; } .tv-im-cell .tv-av > div { font-size: 3.4cqh !important; }
    .tv-im-cell.tv-im-cell-on { opacity: 1; transform: translateY(-0.6cqh); }
    .tv-im-cell.tv-im-cell-on .tv-av > div { box-shadow: 0 0 0 0.45cqh #34d399 !important; }
    .tv-im-cell-n { font-size: 2.4cqh; font-weight: 800; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-im-cell-st { font-size: 2cqh; font-weight: 800; color: #e9d5ff; }
    .tv-im-cell-st.tv-im-cell-st-on { color: #6ee7b7; }
    .tv-im-grid-s .tv-im-cell { width: 8.6cqw; } .tv-im-grid-s .tv-im-cell .tv-av { width: 6.6cqh; height: 6.6cqh; }
    .tv-im-rev { gap: 2cqh; }
    .tv-im-rev-t { flex: none; min-height: 15cqh; display: flex; align-items: center; justify-content: center; font-family: 'Baloo 2', system-ui, sans-serif; font-size: 8cqh; font-weight: 800; line-height: 1; text-align: center; color: #fdf4ff; animation: tvImPop 0.5s ease-out both; }
    .tv-im-rev-t.tv-im-rev-spot { color: #fde68a; }
    .tv-im-verdict { flex: none; min-height: 15cqh; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1.8cqw; border-radius: 2.2cqh; padding: 1.6cqh 1.8cqw; animation: tvImPop 0.55s cubic-bezier(.2,.9,.3,1.25) both; }
    .tv-im-v-caught { background: linear-gradient(135deg, #059669 0%, #0f766e 100%); box-shadow: 0 1cqh 3cqh rgba(5,150,105,0.4); }
    .tv-im-v-escaped { background: linear-gradient(135deg, #c026d3 0%, #6b21a8 100%); box-shadow: 0 1cqh 3cqh rgba(192,38,211,0.4); }
    .tv-im-v-imps { display: flex; gap: 0.8cqw; }
    .tv-im-v-imp { position: relative; display: inline-flex; }
    .tv-im-v-imp .tv-av.tv-im-av-imp { width: 12cqh; height: 12cqh; } .tv-im-v-imp .tv-av.tv-im-av-imp > div { font-size: 5cqh !important; box-shadow: 0 0 0 0.5cqh #ffffff !important; }
    .tv-im-v-badge { position: absolute; right: -0.8cqh; bottom: -0.8cqh; font-size: 4.6cqh; line-height: 1; filter: drop-shadow(0 0.3cqh 0.4cqh rgba(0,0,0,0.5)); }
    .tv-im-v-l { min-width: 0; }
    .tv-im-v-t { font-family: 'Baloo 2', system-ui, sans-serif; font-size: 6.6cqh; font-weight: 800; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-im-v-s { margin-top: 0.6cqh; font-size: 3cqh; font-weight: 800; line-height: 1.2; }
    .tv-im-v-p { margin-top: 0.6cqh; font-size: 2.4cqh; font-weight: 800; color: rgba(255,255,255,0.88); }
    .tv-im-word { display: flex; flex-direction: column; align-items: center; gap: 0.4cqh; border-radius: 1.8cqh; padding: 1.2cqh 2cqw; background: rgba(255,255,255,0.95); color: #3b0764; text-align: center; max-width: 24cqw; }
    .tv-im-word-l { font-size: 1.9cqh; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; color: #86198f; }
    .tv-im-word-w { max-width: 100%; font-family: 'Baloo 2', system-ui, sans-serif; font-size: 6cqh; font-weight: 800; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-im-word-c { font-size: 2cqh; font-weight: 800; color: #6b21a8; }
    .tv-im-tally { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 1.1cqh; overflow: hidden; }
    .tv-im-tally.tv-im-tally-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.6cqw; }
    .tv-im-trow { display: grid; grid-template-columns: auto 13cqw minmax(0, 1fr) 4cqh auto; align-items: center; gap: 1cqw; min-height: 6cqh; border-radius: 1.4cqh; padding: 0.4cqh 1cqw 0.4cqh 0.6cqw; background: rgba(255,255,255,0.06); transition: opacity 0.4s ease, background 0.4s ease, box-shadow 0.4s ease; }
    .tv-im-tally-2 .tv-im-trow { grid-template-columns: auto 9cqw minmax(0, 1fr) 3.4cqh auto; }
    .tv-im-trow .tv-av { width: 5cqh; height: 5cqh; } .tv-im-trow .tv-av > div { font-size: 2.1cqh !important; }
    .tv-im-trow-n { min-width: 0; font-size: 2.8cqh; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-im-tbar { height: 2.2cqh; border-radius: 9999px; background: rgba(255,255,255,0.1); overflow: hidden; }
    .tv-im-tbar > i { display: block; height: 100%; border-radius: 9999px; background: linear-gradient(90deg, #e879f9, #f9a8d4); transform-origin: left center; }
    .tv-im-stage-votes .tv-im-tbar > i { animation: tvImGrow 1.6s cubic-bezier(.3,.7,.3,1) both; }
    .tv-im-tn { font-family: 'Baloo 2', system-ui, sans-serif; font-size: 3.6cqh; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
    .tv-im-tvoters { display: flex; gap: 0.3cqw; min-width: 0; }
    .tv-im-mini.tv-av { width: 3.4cqh; height: 3.4cqh; } .tv-im-mini.tv-av > div { font-size: 1.4cqh !important; box-shadow: 0 0 0 0.15cqh rgba(255,255,255,0.7) !important; }
    .tv-im-trow.tv-im-trow-top { background: rgba(250,204,21,0.18); box-shadow: inset 0 0 0 0.3cqh rgba(250,204,21,0.75); }
    .tv-im-trow.tv-im-trow-dim { opacity: 0.35; }
    .tv-im-trow.tv-im-trow-imp { background: rgba(232,121,249,0.25); box-shadow: inset 0 0 0 0.3cqh #f0abfc; }
    .tv-im-side { min-height: 0; display: flex; flex-direction: column; padding: 2cqh 1.2cqw; overflow: hidden; }
    .tv-im-side-h { flex: none; margin-bottom: 1.2cqh; font-size: 2.5cqh; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: #f0abfc; }
    .tv-im-rows { display: flex; flex-direction: column; gap: 0.9cqh; min-height: 0; overflow: hidden; }
    .tv-im-row { display: flex; align-items: center; gap: 0.9cqw; min-height: 5.4cqh; }
    .tv-im-row .tv-av { width: 5cqh; height: 5cqh; } .tv-im-row .tv-av > div { font-size: 2.1cqh !important; }
    .tv-im-row.tv-im-row-out { opacity: 0.45; }
    .tv-im-row-n { min-width: 0; flex: 1; font-size: 3cqh; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-im-row-p { flex: none; font-size: 3cqh; font-weight: 900; color: #f0abfc; font-variant-numeric: tabular-nums; }
    .tv-im-plus { flex: none; border-radius: 9999px; padding: 0.2cqh 0.7cqw; font-size: 2.2cqh; font-weight: 900; color: #052e16; background: #6ee7b7; animation: tvImPop 0.5s ease-out both; }
    .tv-im-st { flex: none; min-width: 4.6cqh; height: 4.6cqh; border-radius: 9999px; display: inline-flex; align-items: center; justify-content: center; padding: 0 0.6cqw; font-size: 2.5cqh; font-weight: 900; }
    .tv-im-st-ok { color: #ffffff; background: #10b981; }
    .tv-im-st-wait { color: #e9d5ff; background: rgba(255,255,255,0.1); }
    .tv-im-st-mic, .tv-im-st-imp { background: rgba(240,171,252,0.3); }
    .tv-im-trophy { font-size: 11cqh; line-height: 1; }
    .tv-im-final-t { max-width: 90%; font-family: 'Baloo 2', system-ui, sans-serif; font-size: 8.5cqh; font-weight: 800; line-height: 1; color: #fde68a; }
    .tv-im-final-s { font-size: 3cqh; font-weight: 800; color: #f5d0fe; }
    .tv-im-final-rows { width: 36cqw; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1cqh 2cqw; padding: 2cqh 2cqw; }
    .tv-im-final-rows.tv-im-final-2 { width: 60cqw; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: column; } /* (six or more: two columns, read down each) */
    .tv-im-frow { display: flex; align-items: center; gap: 0.9cqw; min-height: 6cqh; }
    .tv-im-frow .tv-av { width: 5.4cqh; height: 5.4cqh; } .tv-im-frow .tv-av > div { font-size: 2.2cqh !important; }
    .tv-im-frow-place { flex: none; width: 3.6cqh; text-align: center; font-size: 3cqh; font-weight: 900; color: #f0abfc; }
    .tv-im-frow-n { min-width: 0; flex: 1; text-align: left; font-size: 3cqh; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-im-frow-p { flex: none; font-size: 2.8cqh; font-weight: 900; color: #fde68a; }
    .tv-im-frow.tv-im-frow-top .tv-im-frow-n { color: #fde68a; }
    @keyframes tvImPop { from { transform: scale(0.86); opacity: 0; } to { transform: none; opacity: 1; } }
    @keyframes tvImGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
    @media (prefers-reduced-motion: reduce) { .tv-im-cat, .tv-im-rev-t, .tv-im-verdict, .tv-im-plus, .tv-im-stage-votes .tv-im-tbar > i { animation: none !important; } .tv-im-bar > i, .tv-im-cell, .tv-im-trow { transition: none !important; } }
    /* the Imposter phone screen's TV note (12.10.3) */
    .im-tvnote { display: flex; align-items: center; gap: 10px; border-radius: 14px; padding: 11px 13px; background: #fdf4ff; box-shadow: inset 0 0 0 1px #f0abfc; }
    html.jbf-dark .im-tvnote { background: rgba(217,70,239,0.12); box-shadow: inset 0 0 0 1px rgba(240,171,252,0.45); }
    .im-tvnote-t { font-size: 14px; font-weight: 900; color: #86198f; }
    html.jbf-dark .im-tvnote-t { color: #f0abfc; }
    .im-tvnote-s { margin-top: 2px; font-size: 12px; font-weight: 600; line-height: 1.35; color: #701a75; }
    html.jbf-dark .im-tvnote-s { color: #f5d0fe; }
    .im-tvnote-b { flex: none; border-radius: 12px; padding: 9px 12px; font-size: 13px; font-weight: 900; color: #ffffff; background: #c026d3; box-shadow: 0 2px 0 #86198f; }
    .im-tvnote-b:active { transform: translateY(2px); box-shadow: none; }
    /* 🎮 the Games hub: a game that needs everyone in the same room says so under its name (12.10.3) */
    .hub-inperson { display: inline-flex; align-items: center; gap: 2px; border-radius: 9999px; padding: 1px 6px; font-size: 9px; font-weight: 800; line-height: 1.3; color: #475569; background: #f1f5f9; box-shadow: inset 0 0 0 1px #e2e8f0; }
    html.jbf-dark .hub-inperson { color: #cbd5e1; background: rgba(148,163,184,0.14); box-shadow: inset 0 0 0 1px rgba(148,163,184,0.3); }
    /* 12.10.9: “📍 In person only” needs ~88 px at 9 px; a 320 px phone's tile has 80 — a notch smaller keeps it on one line (it still wraps rather than clip in a wider font) */
    @media (max-width: 359px) { .hub-inperson { font-size: 8px; padding: 1px 4px; gap: 1px; letter-spacing: -0.1px; } }
    @keyframes tqSpin { to { transform: rotate(360deg); } }
    .tq-btn { border-radius: 12px; padding: 10px 14px; font-size: 14px; font-weight: 800; line-height: 1.2; transition: transform 0.1s ease; }
    .tq-btn:disabled { opacity: 0.5; cursor: default; }
    .tq-btn-go { color: #1e1b4b; background: linear-gradient(180deg, #fde047 0%, #f59e0b 100%); box-shadow: 0 3px 0 #b45309; }
    .tq-btn-go:not(:disabled):active { transform: translateY(2px); box-shadow: 0 1px 0 #b45309; }
    .tq-btn-ghost { color: #475569; background: #f1f5f9; box-shadow: inset 0 0 0 1px #cbd5e1; }
    html.jbf-dark .tq-btn-ghost { color: #e2e8f0; background: rgba(148,163,184,0.14); box-shadow: inset 0 0 0 1px rgba(148,163,184,0.35); }
    .tq-lobby-players { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
    .tq-lp { display: flex; align-items: center; gap: 7px; min-width: 0; border-radius: 10px; padding: 5px 7px; background: #f8fafc; box-shadow: inset 0 0 0 1px #e2e8f0; }
    html.jbf-dark .tq-lp { background: rgba(148,163,184,0.1); box-shadow: inset 0 0 0 1px rgba(148,163,184,0.22); }
    .tq-lp-name { min-width: 0; flex: 1 1 auto; font-size: 13px; font-weight: 700; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    html.jbf-dark .tq-lp-name { color: #e2e8f0; }
    .tq-lp-host { flex: none; font-size: 9px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #94a3b8; }
    .tq-lp-x { flex: none; width: 24px; height: 24px; border-radius: 9999px; font-size: 11px; font-weight: 800; color: #64748b; background: #e2e8f0; }
    html.jbf-dark .tq-lp-x { color: #cbd5e1; background: rgba(148,163,184,0.2); }
    .tq-addlist { display: flex; flex-direction: column; gap: 4px; }
    .tq-add { display: flex; align-items: center; gap: 8px; border-radius: 10px; padding: 6px 9px; font-size: 13px; font-weight: 700; color: #1e293b; background: #f1f5f9; text-align: left; }
    html.jbf-dark .tq-add { color: #e2e8f0; background: rgba(148,163,184,0.12); }
    .tq-styles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
    .tq-style { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; border-radius: 13px; padding: 9px 10px; text-align: left; color: #334155; background: #f8fafc; box-shadow: inset 0 0 0 1.5px #e2e8f0; }
    html.jbf-dark .tq-style { color: #cbd5e1; background: rgba(148,163,184,0.08); box-shadow: inset 0 0 0 1.5px rgba(148,163,184,0.25); }
    .tq-style.tq-style-on { color: #1e1b4b; background: linear-gradient(160deg, #fef3c7 0%, #fde68a 100%); box-shadow: inset 0 0 0 2px #f59e0b; }
    html.jbf-dark .tq-style.tq-style-on { color: #fef3c7; background: linear-gradient(160deg, rgba(245,158,11,0.32) 0%, rgba(124,58,237,0.32) 100%); box-shadow: inset 0 0 0 2px #fbbf24; }
    .tq-style-e { font-size: 22px; line-height: 1; }
    .tq-style-n { font-size: 14px; font-weight: 800; }
    .tq-style-b { font-size: 11px; font-weight: 600; line-height: 1.3; opacity: 0.85; }
    .tq-style-ro { cursor: default; }
    .tq-set-h { font-size: 12.5px; font-weight: 800; color: #334155; margin-bottom: 5px; }
    html.jbf-dark .tq-set-h { color: #e2e8f0; }
    .tq-pills { display: flex; gap: 5px; }
    .tq-pills-wrap { flex-wrap: wrap; }
    .tq-pill { border-radius: 9999px; padding: 6px 12px; font-size: 12.5px; font-weight: 800; color: #475569; background: #f1f5f9; box-shadow: inset 0 0 0 1px #cbd5e1; white-space: nowrap; }
    html.jbf-dark .tq-pill { color: #cbd5e1; background: rgba(148,163,184,0.12); box-shadow: inset 0 0 0 1px rgba(148,163,184,0.3); }
    .tq-pill.tq-pill-on { color: #1e1b4b; background: #fde68a; box-shadow: inset 0 0 0 1.5px #f59e0b; }
    html.jbf-dark .tq-pill.tq-pill-on { color: #1e1b4b; background: #fde68a; box-shadow: inset 0 0 0 1.5px #fbbf24; }
    .tq-pill-sm { padding: 5px 9px; font-size: 11.5px; }
    .tq-pill-ro { cursor: default; }
    .tq-stage { position: relative; overflow: hidden; border-radius: 20px; padding: 12px 12px 14px; color: #f8fafc; min-height: 440px;
      background: radial-gradient(130% 90% at 50% 0%, #5b21b6 0%, #2e1065 45%, #0f0a2e 100%); box-shadow: 0 10px 28px rgba(15,10,46,0.45), inset 0 0 0 1px rgba(255,255,255,0.08); }
    .tq-stage .tq-pill { color: #ede9fe; background: rgba(255,255,255,0.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22); }
    .tq-stage .tq-pill.tq-pill-on { color: #1e1b4b; background: #fde68a; box-shadow: none; }
    .tq-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
    .tq-top-l { display: flex; flex-direction: column; min-width: 0; }
    .tq-rnd { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #c4b5fd; }
    .tq-sty { font-size: 14.5px; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tq-clock { flex: none; min-width: 46px; height: 46px; padding: 0 6px; border-radius: 9999px; display: inline-flex; align-items: center; justify-content: center; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 22px;
      color: #1e1b4b; background: #fde68a; box-shadow: 0 0 0 3px rgba(253,230,138,0.3); font-variant-numeric: tabular-nums; }
    .tq-clock.tq-clock-urgent { color: #fff; background: #f43f5e; box-shadow: 0 0 0 4px rgba(244,63,94,0.35); animation: tqPulse 1s ease-in-out infinite; }
    @keyframes tqPulse { 50% { transform: scale(1.08); } }
    .tq-paused { margin-top: 8px; border-radius: 10px; padding: 6px 10px; font-size: 12.5px; font-weight: 800; text-align: center; color: #fde68a; background: rgba(253,230,138,0.12); box-shadow: inset 0 0 0 1px rgba(253,230,138,0.4); }
    .tq-qwrap { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
    .tq-qmeta { align-self: center; max-width: 100%; border-radius: 9999px; padding: 3px 12px; font-size: 12px; font-weight: 800; text-align: center; color: #ede9fe; background: rgba(255,255,255,0.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18); }
    .tq-qmeta-big { font-size: 17px; padding: 7px 16px; }
    .tq-q { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 21px; line-height: 1.2; text-align: center; color: #fff; text-wrap: balance; overflow-wrap: anywhere; }
    .tq-q-sm { font-size: 16.5px; }
    .tq-choices { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .tq-ch { position: relative; display: flex; align-items: center; gap: 10px; min-height: 54px; border-radius: 14px; padding: 8px 12px; text-align: left; color: #fff; font-size: 15.5px; font-weight: 800; line-height: 1.2;
      box-shadow: 0 3px 0 rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.25); transition: transform 0.12s ease, opacity 0.25s ease, filter 0.25s ease; }
    .tq-ch:not(:disabled):active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,0.3); }
    .tq-ch:disabled { cursor: default; }
    .tq-ch-a { background: linear-gradient(160deg, #14b8a6 0%, #0f766e 100%); }
    .tq-ch-b { background: linear-gradient(160deg, #fb7185 0%, #e11d48 100%); }
    .tq-ch-c { background: linear-gradient(160deg, #fbbf24 0%, #d97706 100%); color: #1c1003; }
    .tq-ch-d { background: linear-gradient(160deg, #a78bfa 0%, #6d28d9 100%); }
    .tq-ch-l { flex: none; width: 30px; height: 30px; border-radius: 9999px; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; color: #1e1b4b; background: rgba(255,255,255,0.92); }
    .tq-ch-t { min-width: 0; flex: 1 1 auto; overflow-wrap: anywhere; }
    .tq-ch.tq-ch-dim { opacity: 0.35; filter: saturate(0.5); }
    .tq-ch.tq-ch-mine { box-shadow: 0 0 0 3px #fff, 0 0 18px rgba(255,255,255,0.45); }
    .tq-ch.tq-ch-right { box-shadow: 0 0 0 3px #4ade80, 0 0 22px rgba(74,222,128,0.55); }
    .tq-ch.tq-ch-wrong { opacity: 0.6; box-shadow: 0 0 0 3px #f43f5e; }
    .tq-ch-who { flex: none; display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px; max-width: 40%; }
    .tq-ch-av > div { box-shadow: 0 0 0 1.5px #fff; }
    .tq-pass { align-self: center; border-radius: 9999px; padding: 6px 14px; font-size: 13px; font-weight: 800; color: #e2e8f0; background: rgba(255,255,255,0.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25); }
    .tq-locked { text-align: center; font-size: 13.5px; font-weight: 800; color: #86efac; }
    .tq-note { text-align: center; font-size: 12.5px; font-weight: 700; color: #c4b5fd; }
    .tq-note-hi { font-size: 14px; color: #fde68a; }
    .tq-res { text-align: center; border-radius: 12px; padding: 8px 10px; font-size: 16px; font-weight: 800; }
    .tq-res-ok { color: #052e16; background: #4ade80; }
    .tq-res-bad { color: #fff; background: #e11d48; }
    .tq-res-meh { color: #e2e8f0; background: rgba(255,255,255,0.1); }
    .tq-rank { text-align: center; font-size: 13px; font-weight: 700; color: #ddd6fe; }
    .tq-rank b { color: #fde68a; }
    .tq-title-card { margin: 30px 2px 20px; padding: 22px 12px; border-radius: 18px; text-align: center; background: rgba(255,255,255,0.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12); animation: tqIn 0.6s cubic-bezier(.3,.8,.3,1.2) both; }
    .tq-title-rnd { font-size: 13px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: #fde68a; }
    .tq-title-name { margin-top: 6px; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 34px; line-height: 1.05; color: #fff; }
    .tq-title-mult { margin-top: 10px; display: inline-block; border-radius: 9999px; padding: 4px 14px; font-size: 15px; font-weight: 800; color: #1e1b4b; background: #fde68a; }
    .tq-title-blurb { margin-top: 12px; font-size: 13px; font-weight: 700; line-height: 1.35; color: #ddd6fe; }
    @keyframes tqIn { 0% { opacity: 0; transform: scale(0.7); } 60% { opacity: 1; transform: scale(1.04); } 100% { opacity: 1; transform: none; } }
    .tq-board { display: grid; gap: 5px; }
    .tq-bh { min-height: 48px; border-radius: 10px; padding: 4px 2px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: rgba(255,255,255,0.09); }
    .tq-bh-e { font-size: 16px; line-height: 1.1; }
    .tq-bh-n { font-size: 9.5px; font-weight: 800; line-height: 1.1; color: #ede9fe; overflow-wrap: anywhere; }
    .tq-tile { height: 52px; border-radius: 10px; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 19px; color: #fde68a; background: linear-gradient(180deg, #4338ca 0%, #312e81 100%);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15), 0 2px 0 rgba(0,0,0,0.35); }
    .tq-tile:disabled { cursor: default; }
    .tq-tile.tq-tile-gone { background: rgba(255,255,255,0.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06); }
    .tq-tile.tq-tile-on { color: #1e1b4b; background: linear-gradient(180deg, #fde047 0%, #f59e0b 100%); }
    .tq-picker { text-align: center; font-size: 15px; font-weight: 800; color: #fff; }
    .tq-picker-me { color: #fde68a; }
    .tq-wild { text-align: center; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 28px; line-height: 1.1; color: #fde68a; text-shadow: 0 2px 0 #b45309; }
    .tq-wait { padding: 18px 0; text-align: center; font-size: 15px; font-weight: 800; color: #e9d5ff; }
    .tq-wager { display: flex; flex-direction: column; gap: 9px; }
    .tq-wager-amt { text-align: center; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 42px; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
    .tq-wager-pre { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
    .tq-range { width: 100%; height: 34px; accent-color: #fbbf24; }
    .tq-yn { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .tq-yn-b { min-height: 78px; border-radius: 16px; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 24px; color: #fff; box-shadow: 0 3px 0 rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.25); }
    .tq-yn-b:not(:disabled):active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,0.3); }
    .tq-yn-b:disabled { opacity: 0.5; }
    .tq-yn-y, .tq-yn-up { background: linear-gradient(160deg, #22c55e 0%, #15803d 100%); }
    .tq-yn-n, .tq-yn-down { background: linear-gradient(160deg, #fb7185 0%, #be123c 100%); }
    .tq-gauge { display: block; align-self: center; width: 100%; max-width: 300px; }
    .tq-g-track { fill: none; stroke: rgba(255,255,255,0.14); stroke-width: 14; stroke-linecap: round; }
    .tq-g-fill { fill: none; stroke: #fbbf24; stroke-width: 14; stroke-linecap: round; }
    .tq-g-tick { stroke: rgba(255,255,255,0.5); stroke-width: 2; }
    .tq-g-needle { stroke: #fff; stroke-width: 5; stroke-linecap: round; }
    .tq-g-truth { stroke: #4ade80; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 5 3; }
    .tq-g-hub { fill: #fff; }
    /* ⏫/⏬ the much zone on the TV's reveal dial (someone went much): the guess ± 15, where a much bet loses */
    .tq-g-zone { fill: none; stroke: rgba(255,255,255,0.3); stroke-width: 14; }
    .tq-g-zone-end { stroke: #fff; stroke-width: 2.5; stroke-linecap: round; }
    /* the hot seat's own dial is the control: drag the needle (or tap the arc), a grab knob at its tip */
    .tq-gauge.tq-gauge-live { width: calc(100% + 12px); max-width: 344px; margin: -4px -6px -6px; overflow: visible; touch-action: none; cursor: grab; outline: none; -webkit-tap-highlight-color: transparent; }
    .tq-gauge.tq-gauge-live.tq-gauge-held { cursor: grabbing; }
    .tq-gauge.tq-gauge-live:focus-visible { outline: 2px solid #fde68a; outline-offset: 2px; border-radius: 14px; }
    .tq-g-knob { fill: #fbbf24; stroke: #fff; stroke-width: 3; }
    .tq-gauge-held .tq-g-knob { fill: #fde68a; }
    .tq-g-grip { fill: #78350f; pointer-events: none; }
    .tq-g-halo { fill: none; stroke: #fde68a; stroke-width: 2.5; opacity: 0; transform-box: fill-box; transform-origin: center; pointer-events: none; }
    .tq-g-halo.tq-g-halo-on { animation: tqKnobHint 1.6s ease-out infinite; }
    @keyframes tqKnobHint { 0% { opacity: 0.85; transform: scale(0.75); } 70% { opacity: 0; transform: scale(1.35); } 100% { opacity: 0; transform: scale(1.35); } }
    .tq-dial-hint { text-align: center; font-size: 12.5px; font-weight: 800; color: #fde68a; }
    .tq-dial-read { display: flex; align-items: center; justify-content: center; gap: 14px; }
    .tq-dial-read .tq-dial-num { min-width: 96px; font-variant-numeric: tabular-nums; }
    .tq-dial-num { text-align: center; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 30px; line-height: 1; color: #fde68a; }
    .tq-dial-row { display: flex; align-items: center; gap: 8px; }
    .tq-dial-b { flex: none; width: 46px; height: 40px; border-radius: 10px; font-weight: 800; color: #fff; background: rgba(255,255,255,0.12); }
    .tq-dial-b.tq-dial-b-1 { width: 44px; height: 38px; border-radius: 9999px; }
    /* the four bets, a ladder: ⏫ much higher on top, ▲ higher | ▼ lower, ⏬ much lower at the bottom —
       the much ones darker with a gold edge and what "much" means under the label */
    .tq-bets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .tq-bet { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 64px; border-radius: 16px; padding: 6px 8px;
      font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 22px; line-height: 1.1; color: #fff;
      box-shadow: 0 3px 0 rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.25); }
    .tq-bet:not(:disabled):active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,0.3); }
    .tq-bet:disabled { opacity: 0.5; }
    .tq-bet-up { background: linear-gradient(160deg, #22c55e 0%, #15803d 100%); }
    .tq-bet-down { background: linear-gradient(160deg, #fb7185 0%, #be123c 100%); }
    .tq-bet.tq-bet-much { grid-column: 1 / -1; min-height: 60px; font-size: 20px; box-shadow: 0 3px 0 rgba(0,0,0,0.35), inset 0 0 0 2px #fde68a, inset 0 1px 0 rgba(255,255,255,0.2); }
    .tq-bet.tq-bet-much:not(:disabled):active { box-shadow: 0 1px 0 rgba(0,0,0,0.35), inset 0 0 0 2px #fde68a; }
    .tq-bet-mup { background: linear-gradient(160deg, #15803d 0%, #064e3b 100%); }
    .tq-bet-mdown { background: linear-gradient(160deg, #be123c 0%, #6b0f2a 100%); }
    .tq-bet-sub { margin-top: 2px; font-family: system-ui, sans-serif; font-size: 11.5px; font-weight: 800; letter-spacing: 0.02em; color: #fde68a; }
    .tq-much-note { font-size: 12px; line-height: 1.35; }
    .tq-truth { text-align: center; font-size: 17px; font-weight: 800; color: #fff; }
    .tq-truth b { font-family: 'Baloo 2', system-ui, sans-serif; font-size: 34px; color: #4ade80; }
    .tq-truth span { font-size: 13px; color: #c4b5fd; }
    .tq-src { text-align: center; font-size: 11.5px; font-weight: 700; color: #a5b4fc; letter-spacing: 0.01em; }
    .tq-pop { text-align: center; font-size: 12px; font-weight: 700; color: #c4b5fd; }
    .tq-standings { display: flex; flex-direction: column; gap: 5px; }
    .tq-srow { display: flex; align-items: center; gap: 8px; min-width: 0; border-radius: 12px; padding: 6px 10px; background: rgba(255,255,255,0.07); }
    .tq-srow.tq-srow-me { box-shadow: inset 0 0 0 2px #fde68a; }
    .tq-srank { flex: none; width: 18px; text-align: center; font-weight: 800; color: #c4b5fd; }
    .tq-sname { flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tq-sstat { margin-left: 6px; font-size: 11px; font-weight: 700; color: #a5b4fc; }
    .tq-smove { flex: none; width: 30px; text-align: center; font-size: 12px; font-weight: 800; color: #94a3b8; }
    .tq-smove.tq-up { color: #4ade80; } .tq-smove.tq-down { color: #fb7185; }
    .tq-sscore { flex: none; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 17px; color: #fde68a; font-variant-numeric: tabular-nums; }
    .tq-podium { display: flex; align-items: flex-end; justify-content: center; gap: 8px; margin-top: 2px; }
    .tq-pod { width: 31%; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
    .tq-pod-name { max-width: 100%; font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tq-pod-pts { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 16px; color: #fde68a; }
    .tq-pod-step { width: 100%; padding-top: 4px; border-radius: 10px 10px 0 0; text-align: center; font-size: 22px; background: linear-gradient(180deg, rgba(253,230,138,0.38) 0%, rgba(253,230,138,0.06) 100%); }
    .tq-pod-1 .tq-pod-step { height: 72px; } .tq-pod-2 .tq-pod-step { height: 50px; } .tq-pod-3 .tq-pod-step { height: 34px; }
    .tq-over-btns, .tq-host { display: flex; gap: 6px; }
    /* 🥁 the countdown to the winner (12.10.6): the places come up from last to first, first place in gold — on the
       always-dark stage, so one look for both themes; a "?" slot shows nothing about who sits where */
    .tq-fin { gap: 8px; }
    .tq-fin-h { text-align: center; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 25px; line-height: 1.1; color: #fde68a; text-shadow: 0 2px 0 #b45309; animation: tqIn 0.5s cubic-bezier(.3,.8,.3,1.2) both; }
    .tq-fin-h.tq-fin-h-sus { animation: tqFinBeat 0.9s ease-in-out infinite; }
    .tq-fin-h.tq-fin-h-win { font-size: 29px; }
    .tq-fin-sub { text-align: center; font-size: 12.5px; font-weight: 800; letter-spacing: 0.03em; color: #c4b5fd; }
    .tq-fin-list { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }
    .tq-fin-slot { display: flex; align-items: center; gap: 8px; min-width: 0; height: 46px; border-radius: 12px; padding: 0 10px; }
    .tq-fin-off { justify-content: center; background: rgba(255,255,255,0.04); box-shadow: inset 0 0 0 1.5px rgba(196,181,253,0.35); }
    .tq-fin-q { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 22px; line-height: 1; color: rgba(196,181,253,0.65); }
    .tq-fin-off.tq-fin-next { animation: tqFinNext 0.9s ease-in-out infinite; }
    .tq-fin-on { background: rgba(255,255,255,0.09); animation: tqFinPop 0.5s cubic-bezier(.3,.8,.3,1.25) both; }
    .tq-fin-on.tq-fin-me { box-shadow: inset 0 0 0 2px #fde68a; }
    .tq-fin-on.tq-fin-gold { color: #1e1b4b; background: linear-gradient(180deg, #fde047 0%, #f59e0b 100%); box-shadow: 0 0 0 2px #fde68a, 0 0 22px rgba(253,224,71,0.55); animation: tqFinGold 0.7s cubic-bezier(.3,.8,.3,1.25) both; }
    .tq-fin-rank { flex: none; width: 24px; text-align: center; font-size: 15px; font-weight: 800; color: #c4b5fd; }
    .tq-fin-name { flex: 1 1 auto; min-width: 0; font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tq-fin-pts { flex: none; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 19px; color: #fde68a; font-variant-numeric: tabular-nums; }
    .tq-fin-gold .tq-fin-rank, .tq-fin-gold .tq-fin-pts { color: #1e1b4b; }
    @keyframes tqFinPop { 0% { opacity: 0; transform: translateX(-16px) scale(0.92); } 60% { opacity: 1; transform: translateX(3px) scale(1.02); } 100% { opacity: 1; transform: none; } }
    @keyframes tqFinGold { 0% { opacity: 0; transform: scale(0.6); } 55% { opacity: 1; transform: scale(1.07); } 100% { opacity: 1; transform: none; } }
    @keyframes tqFinNext { 50% { background: rgba(253,230,138,0.14); box-shadow: inset 0 0 0 1.5px rgba(253,230,138,0.75); } }
    @keyframes tqFinBeat { 50% { transform: scale(1.06); } }
    .tq-fx { position: absolute; left: 50%; top: 40%; z-index: 5; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 54px; line-height: 1; pointer-events: none; text-shadow: 0 4px 16px rgba(0,0,0,0.5); animation: tqFx 2.2s ease-out both; }
    .tq-fx-ok { color: #4ade80; } .tq-fx-bad { color: #fb7185; }
    @keyframes tqFx { 0% { opacity: 0; transform: translate(-50%, -30%) scale(0.6); } 15% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); } 70% { opacity: 1; transform: translate(-50%, -60%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -90%) scale(1); } }
    .tq-testbar { border-radius: 12px; padding: 8px 10px; background: rgba(245,158,11,0.14); box-shadow: inset 0 0 0 1px rgba(245,158,11,0.5); }
    .tq-testbar-h { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #b45309; }
    html.jbf-dark .tq-testbar-h { color: #fcd34d; }
    .tq-testbar-row { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
    .tq-testbar-chip { border-radius: 9999px; padding: 3px 10px; font-size: 12px; font-weight: 700; color: #78350f; background: rgba(255,255,255,0.75); box-shadow: inset 0 0 0 1px rgba(180,83,9,0.35); }
    html.jbf-dark .tq-testbar-chip:not(.tq-testbar-on) { color: #fde68a; background: rgba(255,255,255,0.08); }
    .tq-testbar-chip.tq-testbar-on { color: #fff; background: #f59e0b; box-shadow: none; }
    /* 🤖 Test bots (admin Test Mode): the lobby card, the seated-bot badge, the act-as chips' mark */
    .tbot-card { border-radius: 14px; padding: 10px 12px; background: rgba(245,158,11,0.12); box-shadow: inset 0 0 0 1px rgba(245,158,11,0.5); }
    .tbot-h { font-size: 13px; font-weight: 800; color: #92400e; }
    .tbot-sub { font-weight: 700; color: #b45309; }
    .tbot-note { margin-top: 3px; font-size: 11.5px; line-height: 1.35; color: #78350f; }
    .tbot-row { margin-top: 7px; display: flex; flex-wrap: wrap; gap: 6px; }
    .tbot-chip { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; border-radius: 9999px; padding: 3px 9px 3px 4px; font-size: 12.5px; font-weight: 700; color: #78350f; background: rgba(255,255,255,0.8); box-shadow: inset 0 0 0 1px rgba(180,83,9,0.35); }
    .tbot-chip:disabled { opacity: 0.6; }
    .tbot-chip-on { padding-left: 9px; color: #fff; background: #d97706; box-shadow: none; }
    .tbot-all { padding-left: 9px; color: #fff; background: #92400e; box-shadow: none; }
    .tbot-n { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tbot-x { flex: none; font-size: 11px; opacity: 0.8; }
    .tbot-badge { flex: none; border-radius: 9999px; padding: 1px 6px; font-size: 9px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #92400e; background: rgba(245,158,11,0.2); }
    .tbot-badge-sm { padding: 1px 4px; font-size: 11px; letter-spacing: 0; }
    html.jbf-dark .tbot-card { background: rgba(245,158,11,0.1); box-shadow: inset 0 0 0 1px rgba(251,191,36,0.4); }
    html.jbf-dark .tbot-h { color: #fde68a; }
    html.jbf-dark .tbot-sub { color: #fcd34d; }
    html.jbf-dark .tbot-note { color: #fde68a; }
    html.jbf-dark .tbot-chip:not(.tbot-chip-on):not(.tbot-all) { color: #fde68a; background: rgba(255,255,255,0.08); box-shadow: inset 0 0 0 1px rgba(251,191,36,0.35); }
    html.jbf-dark .tbot-badge { color: #fde68a; background: rgba(245,158,11,0.22); }
    /* 📺 Squad Game Show on the TV: the same stage, big — the question and its four tiles, the board,
       the % dial with HIGHER / LOWER, a scoreboard down the side, title cards and the podium */
    .tv-tq { position: absolute; inset: 0; overflow: hidden; color: #f8fafc; background: radial-gradient(120% 100% at 50% 0%, #6d28d9 0%, #2e1065 45%, #0b0726 100%); }
    .tv-tq-rays { position: absolute; left: 50%; top: 42%; width: 220cqw; height: 220cqw; margin: -110cqw 0 0 -110cqw; pointer-events: none;
      background: repeating-conic-gradient(from 0deg, rgba(255,255,255,0.05) 0deg 6deg, rgba(255,255,255,0) 6deg 15deg); animation: tqSpin 120s linear infinite; }
    .tv-tq .tv-safe.tv-tq-grid { display: grid; grid-template-rows: 9cqh minmax(0, 1fr); row-gap: 1.8cqh; }
    .tv-tq-main { display: grid; grid-template-columns: minmax(0, 1fr) 27cqw; column-gap: 1.6cqw; min-height: 0; }
    .tv-tq-main.tv-tq-main-full { grid-template-columns: minmax(0, 1fr); }
    .tv-tq-stage { position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column; justify-content: center; }
    .tv-tq-side { display: flex; flex-direction: column; min-height: 0; overflow: hidden; padding: 1.4cqh 0.9cqw 1.2cqh; }
    .tv-tq-side-h { padding: 0 0.4cqw 1cqh; font-size: 1.9cqh; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #c4b5fd; }
    .tv-tq-rows { display: flex; flex-direction: column; gap: 0.8cqh; min-height: 0; overflow: hidden; }
    .tv-tq-row { display: flex; align-items: center; gap: 0.6cqw; min-width: 0; border-radius: 1.6cqh; padding: 0.55cqh 0.6cqw; background: rgba(255,255,255,0.06); }
    .tv-tq-rk { flex: none; width: 2.6cqh; text-align: center; font-size: 2.2cqh; font-weight: 800; color: #c4b5fd; }
    .tv-tq-nm { flex: 1 1 auto; min-width: 0; font-size: 2.4cqh; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-tq-sc { flex: none; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 3cqh; line-height: 1; color: #fde68a; font-variant-numeric: tabular-nums; }
    .tv-tq-pts { flex: none; border-radius: 9999px; padding: 0.15cqh 0.5cqw; font-size: 1.9cqh; font-weight: 800; animation: tqPop 0.5s ease both; }
    .tv-tq-pts-up { color: #052e16; background: #4ade80; } .tv-tq-pts-down { color: #fff; background: #e11d48; }
    .tv-tq-bub { flex: none; width: 4cqh; height: 4cqh; border-radius: 9999px; display: inline-flex; align-items: center; justify-content: center; font-size: 2.2cqh; font-weight: 800; }
    .tv-tq-bub-in { color: #fde68a; background: rgba(253,230,138,0.2); box-shadow: inset 0 0 0 0.2cqh rgba(253,230,138,0.6); animation: tqPop 0.4s ease both; }
    .tv-tq-bub-ok { color: #fff; background: #22c55e; } .tv-tq-bub-bad { color: #fff; background: #e11d48; }
    .tv-tq-bub-meh { color: #cbd5e1; background: rgba(255,255,255,0.15); } .tv-tq-bub-hot { background: rgba(251,146,60,0.28); }
    .tv-tq-count { margin-top: auto; padding-top: 1cqh; text-align: center; font-size: 2.4cqh; font-weight: 800; color: #fde68a; }
    .tv-tq-qwrap, .tv-tq-gut, .tv-tq-boardwrap, .tv-tq-scores { display: flex; flex-direction: column; gap: 2.2cqh; min-height: 0; }
    .tv-tq-meta { align-self: center; max-width: 100%; border-radius: 9999px; padding: 0.6cqh 1.6cqw; font-size: 2.4cqh; font-weight: 800; color: #ede9fe; background: rgba(255,255,255,0.1); box-shadow: inset 0 0 0 0.15cqh rgba(255,255,255,0.2);
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-tq-q { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 6cqh; line-height: 1.12; text-align: center; text-wrap: balance; overflow-wrap: anywhere; text-shadow: 0 0.4cqh 1.6cqh rgba(0,0,0,0.4); }
    .tv-tq-q.tv-tq-q-sm { font-size: 4.8cqh; } .tv-tq-q.tv-tq-q-xs { font-size: 3.9cqh; }
    .tv-tq-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6cqh 1.2cqw; }
    .tv-tq-ch { position: relative; display: flex; align-items: center; gap: 1cqw; min-height: 11cqh; min-width: 0; border-radius: 2.4cqh; padding: 1cqh 1.3cqw; color: #fff; font-size: 3.3cqh; font-weight: 800; line-height: 1.15;
      box-shadow: 0 0.6cqh 0 rgba(0,0,0,0.3), inset 0 0.2cqh 0 rgba(255,255,255,0.25); transition: opacity 0.4s ease, filter 0.4s ease, transform 0.4s ease; }
    .tv-tq-choices-sm .tv-tq-ch { min-height: 8.5cqh; font-size: 2.6cqh; }
    .tv-tq-ch-l { flex: none; width: 6cqh; height: 6cqh; border-radius: 9999px; display: inline-flex; align-items: center; justify-content: center; font-size: 3.2cqh; color: #1e1b4b; background: rgba(255,255,255,0.92); }
    .tv-tq-ch-t { min-width: 0; flex: 1 1 auto; overflow-wrap: anywhere; }
    .tv-tq-ch.tv-tq-ch-dim { opacity: 0.3; filter: saturate(0.4); }
    .tv-tq-ch.tv-tq-ch-right { box-shadow: 0 0 0 0.7cqh #4ade80, 0 0 4cqh rgba(74,222,128,0.7); animation: tqRight 0.9s ease both; }
    .tv-tq-ch-who { flex: none; display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.3cqw; max-width: 45%; }
    .tv-tq-ch-who .tv-av { width: 4.2cqh; height: 4.2cqh; }
    .tv-tq-fw { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6cqh 1.4cqw; font-size: 2.3cqh; font-weight: 700; color: #ddd6fe; }
    .tv-tq-fw b { color: #fde68a; }
    .tv-tq-title { text-align: center; }
    .tv-tq-title-r { font-size: 3.4cqh; font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase; color: #fde68a; }
    .tv-tq-title-n { margin-top: 1.4cqh; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 13cqh; line-height: 1; text-shadow: 0 0.8cqh 0 rgba(0,0,0,0.25); animation: tqIn 0.7s cubic-bezier(.3,.8,.3,1.2) both; }
    .tv-tq-title-m { margin-top: 2.4cqh; display: inline-block; border-radius: 9999px; padding: 0.8cqh 2.4cqw; font-size: 4cqh; font-weight: 800; color: #1e1b4b; background: #fde68a; }
    .tv-tq-title-b { margin: 2.6cqh auto 0; max-width: 64cqw; font-size: 2.8cqh; font-weight: 700; line-height: 1.35; color: #ddd6fe; }
    .tv-tq-board { display: grid; gap: 1cqh 0.8cqw; }
    .tv-tq-bh { min-height: 10cqh; min-width: 0; border-radius: 1.6cqh; padding: 0.6cqh 0.4cqw; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: rgba(255,255,255,0.1); }
    .tv-tq-bh-e { font-size: 3.6cqh; line-height: 1.1; }
    .tv-tq-bh-n { font-size: 2.1cqh; font-weight: 800; line-height: 1.1; }
    .tv-tq-tile { height: 13cqh; border-radius: 1.6cqh; display: flex; align-items: center; justify-content: center; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 7cqh; color: #fde68a;
      background: linear-gradient(180deg, #4338ca 0%, #312e81 100%); box-shadow: inset 0 0 0 0.15cqh rgba(255,255,255,0.18), 0 0.5cqh 0 rgba(0,0,0,0.35); text-shadow: 0 0.4cqh 0 rgba(0,0,0,0.35); }
    .tv-tq-tile.tv-tq-tile-gone { background: rgba(255,255,255,0.03); box-shadow: inset 0 0 0 0.15cqh rgba(255,255,255,0.06); }
    .tv-tq-tile.tv-tq-tile-wild { color: #1e1b4b; background: linear-gradient(180deg, #fde047 0%, #f59e0b 100%); animation: tqIn 0.6s cubic-bezier(.3,.8,.3,1.2) both; }
    .tv-tq-callout { align-self: center; max-width: 100%; border-radius: 9999px; padding: 1cqh 2.4cqw; font-size: 3cqh; font-weight: 800; color: #0f172a; background: rgba(255,255,255,0.94); box-shadow: 0 1cqh 3cqh rgba(0,0,0,0.35);
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-tq-dialrow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; column-gap: 1.6cqw; }
    .tv-tq-dialbox { width: 33cqw; display: flex; flex-direction: column; align-items: center; }
    .tq-gauge.tv-tq-gauge { width: 100%; max-width: none; }
    .tv-tq-pct { margin-top: 0.8cqh; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 10cqh; line-height: 1; color: #fde68a; text-shadow: 0 0.6cqh 0 #b45309; }
    .tv-tq-pct-sub { margin-top: 0.8cqh; text-align: center; font-size: 2.4cqh; font-weight: 800; color: #ddd6fe; }
    .tv-tq-src { margin-top: 0.6cqh; text-align: center; font-size: 1.9cqh; font-weight: 700; color: #a5b4fc; }
    .tv-tq-hl { justify-self: center; border-radius: 9999px; padding: 0.9cqh 1.2cqw; font-size: 2.7cqh; font-weight: 800; letter-spacing: 0.08em; white-space: nowrap; color: rgba(255,255,255,0.35); box-shadow: inset 0 0 0 0.25cqh rgba(255,255,255,0.18); }
    .tv-tq-hl.tv-tq-hl-on { color: #fff; box-shadow: inset 0 0 0 0.3cqh #fde68a, 0 0 3cqh rgba(253,230,138,0.4); }
    /* ⏫/⏬ each side of the dial is a little ladder: MUCH HIGHER over HIGHER, LOWER over MUCH LOWER */
    .tv-tq-hls { justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 1.4cqh; min-width: 0; max-width: 100%; }
    .tv-tq-hl.tv-tq-hl-much { max-width: 100%; padding: 0.7cqh 1cqw; font-size: 2.1cqh; letter-spacing: 0.05em; line-height: 1.15; text-align: center; white-space: normal; }
    .tv-tq-much-note { margin-top: 0.8cqh; text-align: center; font-size: 2.1cqh; font-weight: 800; color: #fde68a; }
    .tv-tq-much { margin-top: 0.9cqh; max-width: 100%; border-radius: 9999px; padding: 0.5cqh 1.4cqw; text-align: center; font-size: 2.2cqh; font-weight: 800; }
    .tv-tq-much.tv-tq-much-pay { color: #052e16; background: #4ade80; }
    .tv-tq-much.tv-tq-much-miss { color: #fde68a; background: rgba(253,230,138,0.14); box-shadow: inset 0 0 0 0.2cqh rgba(253,230,138,0.5); }
    .tv-tq-bub.tv-tq-bub-much { box-shadow: 0 0 0 0.3cqh #fde68a; }
    .tv-tq-big { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 8.4cqh; line-height: 1; text-align: center; color: #fde68a; text-shadow: 0 0.6cqh 0 #b45309; }
    .tv-tq-sub { font-size: 3cqh; font-weight: 800; text-align: center; color: #ddd6fe; }
    .tv-tq-bars { display: flex; flex-direction: column; gap: 1cqh; }
    .tv-tq-bar-row { display: grid; grid-template-columns: 3cqh 5cqh 14cqw minmax(0, 1fr) 6cqw 11cqw; align-items: center; column-gap: 1cqw; }
    .tv-tq-bar-row .tv-av > div { font-size: 2.2cqh !important; }
    .tv-tq-pod .tv-av > div { font-size: 4.4cqh !important; } .tv-tq-pod.tv-tq-pod-1 .tv-av > div { font-size: 6cqh !important; }
    .tv-tq-lp .tv-av > div { font-size: 3.6cqh !important; }
    .tv-tq-bar-row .tv-av { width: 5cqh; height: 5cqh; }
    .tv-tq-bar { height: 3.6cqh; border-radius: 9999px; overflow: hidden; background: rgba(255,255,255,0.08); }
    .tv-tq-bar-fill { display: block; height: 100%; border-radius: 9999px; background: linear-gradient(90deg, #f59e0b 0%, #fde047 100%); transform-origin: left center; animation: tqGrow 1s ease-out both; }
    .tv-tq-mv { text-align: center; font-size: 2.4cqh; font-weight: 800; color: #94a3b8; }
    .tv-tq-mv.tv-tq-mv-up { color: #4ade80; } .tv-tq-mv.tv-tq-mv-down { color: #fb7185; }
    .tv-tq-bar-row .tv-tq-sc { text-align: right; font-size: 3.4cqh; }
    .tv-tq-over { display: flex; flex-direction: column; align-items: center; gap: 2.4cqh; }
    .tv-tq-podium { display: flex; align-items: flex-end; justify-content: center; gap: 2cqw; }
    .tv-tq-pod { width: 18cqw; display: flex; flex-direction: column; align-items: center; gap: 0.8cqh; }
    .tv-tq-pod .tv-av { width: 10cqh; height: 10cqh; } .tv-tq-pod.tv-tq-pod-1 .tv-av { width: 14cqh; height: 14cqh; }
    .tv-tq-pod-n { max-width: 100%; font-size: 3cqh; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-tq-pod-s { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 4.2cqh; line-height: 1; color: #fde68a; }
    .tv-tq-pod-b { width: 100%; padding-top: 1cqh; border-radius: 2cqh 2cqh 0 0; text-align: center; font-size: 6cqh; background: linear-gradient(180deg, rgba(253,230,138,0.42) 0%, rgba(253,230,138,0.06) 100%); animation: tqRise 0.9s ease-out both; transform-origin: bottom center; }
    .tv-tq-pod-1 .tv-tq-pod-b { height: 24cqh; } .tv-tq-pod-2 .tv-tq-pod-b { height: 16cqh; } .tv-tq-pod-3 .tv-tq-pod-b { height: 11cqh; }
    .tv-tq-last { font-size: 2.6cqh; font-weight: 800; color: #ddd6fe; }
    /* 🥁 the countdown to the winner (12.10.6): full width (no scoreboard down the side until it's over) */
    .tv-tq-fin { display: flex; flex-direction: column; align-items: center; gap: 1.4cqh; min-height: 0; }
    .tv-tq-fin-h { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 7.4cqh; line-height: 1; text-align: center; color: #fde68a; text-shadow: 0 0.6cqh 0 #b45309; animation: tqIn 0.55s cubic-bezier(.3,.8,.3,1.2) both; }
    .tv-tq-fin-h.tv-tq-fin-h-sus { animation: tqFinBeat 0.9s ease-in-out infinite; }
    .tv-tq-fin-h.tv-tq-fin-h-win { font-size: 8.6cqh; }
    .tv-tq-fin-sub { font-size: 2.9cqh; font-weight: 800; color: #ddd6fe; text-align: center; }
    .tv-tq-fin-list { width: 74cqw; max-width: 100%; display: flex; flex-direction: column; gap: 1.1cqh; margin-top: 0.6cqh; }
    .tv-tq-fin-slot { display: flex; align-items: center; gap: 1.2cqw; min-width: 0; height: 9cqh; border-radius: 2cqh; padding: 0 1.6cqw; }
    .tv-tq-fin-sm .tv-tq-fin-list { gap: 0.8cqh; } .tv-tq-fin-sm .tv-tq-fin-slot { height: 6.6cqh; border-radius: 1.6cqh; }
    .tv-tq-fin-xs .tv-tq-fin-list { gap: 0.5cqh; } .tv-tq-fin-xs .tv-tq-fin-slot { height: 4.5cqh; border-radius: 1.2cqh; }
    .tv-tq-fin-off { justify-content: center; background: rgba(255,255,255,0.04); box-shadow: inset 0 0 0 0.25cqh rgba(196,181,253,0.35); }
    .tv-tq-fin-q { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 5cqh; line-height: 1; color: rgba(196,181,253,0.65); }
    .tv-tq-fin-sm .tv-tq-fin-q { font-size: 4cqh; } .tv-tq-fin-xs .tv-tq-fin-q { font-size: 3cqh; }
    .tv-tq-fin-off.tv-tq-fin-next { animation: tvTqFinNext 0.9s ease-in-out infinite; }
    .tv-tq-fin-on { background: rgba(255,255,255,0.1); box-shadow: inset 0 0 0 0.15cqh rgba(255,255,255,0.16); animation: tqFinPop 0.55s cubic-bezier(.3,.8,.3,1.25) both; }
    .tv-tq-fin-on.tv-tq-fin-gold { color: #1e1b4b; background: linear-gradient(180deg, #fde047 0%, #f59e0b 100%); box-shadow: 0 0 0 0.5cqh #fde68a, 0 0 6cqh rgba(253,224,71,0.6); animation: tqFinGold 0.8s cubic-bezier(.3,.8,.3,1.25) both; }
    .tv-tq-fin-rank { flex: none; width: 5cqh; text-align: center; font-size: 4cqh; font-weight: 800; color: #c4b5fd; }
    .tv-tq-fin-slot .tv-av { width: 6.4cqh; height: 6.4cqh; }
    .tv-tq-fin-slot .tv-av > div { font-size: 2.6cqh !important; }
    .tv-tq-fin-name { flex: 1 1 auto; min-width: 0; font-size: 4cqh; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-tq-fin-pts { flex: none; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 5cqh; line-height: 1; color: #fde68a; font-variant-numeric: tabular-nums; }
    .tv-tq-fin-gold .tv-tq-fin-rank, .tv-tq-fin-gold .tv-tq-fin-pts { color: #1e1b4b; }
    .tv-tq-fin-sm .tv-tq-fin-rank, .tv-tq-fin-sm .tv-tq-fin-name { font-size: 3.2cqh; } .tv-tq-fin-sm .tv-tq-fin-pts { font-size: 4cqh; }
    .tv-tq-fin-sm .tv-tq-fin-slot .tv-av { width: 5cqh; height: 5cqh; } .tv-tq-fin-sm .tv-tq-fin-slot .tv-av > div { font-size: 2.1cqh !important; }
    .tv-tq-fin-xs .tv-tq-fin-rank, .tv-tq-fin-xs .tv-tq-fin-name { font-size: 2.5cqh; } .tv-tq-fin-xs .tv-tq-fin-pts { font-size: 3cqh; }
    .tv-tq-fin-xs .tv-tq-fin-slot .tv-av { width: 3.6cqh; height: 3.6cqh; } .tv-tq-fin-xs .tv-tq-fin-slot .tv-av > div { font-size: 1.6cqh !important; }
    @keyframes tvTqFinNext { 50% { background: rgba(253,230,138,0.16); box-shadow: inset 0 0 0 0.3cqh rgba(253,230,138,0.75); } }
    .tv-tq .tv-safe.tv-tq-attract { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3cqh; text-align: center; }
    .tv-tq-logo { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 16cqh; line-height: 0.95; color: #fde68a; text-shadow: 0 1cqh 0 #b45309, 0 2cqh 5cqh rgba(0,0,0,0.5); }
    .tv-tq-logo.tv-tq-logo-sm { font-size: 8cqh; text-shadow: 0 0.6cqh 0 #b45309, 0 1.4cqh 3cqh rgba(0,0,0,0.5); }
    .tv-tq-tag { font-size: 3cqh; font-weight: 800; color: #e9d5ff; }
    .tv-tq-modes { display: grid; grid-template-columns: repeat(3, 25cqw); gap: 1.6cqw; }
    .tv-tq-mode { display: flex; flex-direction: column; gap: 0.8cqh; border-radius: 2.4cqh; padding: 2cqh 1.4cqw; text-align: center; background: rgba(255,255,255,0.08); box-shadow: inset 0 0 0 0.15cqh rgba(255,255,255,0.16); }
    .tv-tq-mode-e { font-size: 6cqh; line-height: 1; }
    .tv-tq-mode-n { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 3.8cqh; line-height: 1; }
    .tv-tq-mode-b { font-size: 2cqh; font-weight: 700; line-height: 1.3; color: #ddd6fe; }
    .tv-tq-lobby { display: flex; flex-direction: column; align-items: center; gap: 2cqh; text-align: center; }
    .tv-tq-lobby-style { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 6cqh; line-height: 1; }
    .tv-tq-lobby-blurb { max-width: 70cqw; font-size: 2.6cqh; font-weight: 700; color: #ddd6fe; }
    .tv-tq-lobby-ps { display: flex; flex-wrap: wrap; justify-content: center; gap: 2cqh 1.6cqw; max-width: 84cqw; }
    .tv-tq-lp { width: 10.5cqw; display: flex; flex-direction: column; align-items: center; gap: 0.8cqh; animation: tqIn 0.5s ease both; }
    .tv-tq-lp .tv-av { width: 9cqh; height: 9cqh; }
    .tv-tq-lp-n { max-width: 100%; font-size: 2.4cqh; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-tq-lobby-set { font-size: 2.4cqh; font-weight: 800; color: #c4b5fd; }
    .tv-tq-paused { position: absolute; left: 50%; top: 50%; z-index: 30; transform: translate(-50%, -50%); border-radius: 3cqh; padding: 3cqh 5cqw; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 7cqh;
      color: #1c1003; background: linear-gradient(160deg, #fbbf24 0%, #b45309 100%); box-shadow: 0 2cqh 6cqh rgba(0,0,0,0.5); white-space: nowrap; }
    @keyframes tqPop { 0% { opacity: 0; transform: scale(0.6); } 60% { opacity: 1; transform: scale(1.06); } 100% { opacity: 1; transform: none; } }
    @keyframes tqRight { 0% { transform: none; } 40% { transform: scale(1.06); } 100% { transform: scale(1.02); } }
    @keyframes tqGrow { from { transform: scaleX(0); } to { transform: none; } }
    @keyframes tqRise { from { transform: scaleY(0); } to { transform: none; } }
    @media (prefers-reduced-motion: reduce) {
      .tq-hero-burst, .tq-clock.tq-clock-urgent, .tq-fx, .tq-title-card, .tv-tq-rays, .tv-tq-pts, .tv-tq-bub-in, .tv-tq-ch.tv-tq-ch-right, .tv-tq-title-n, .tv-tq-tile.tv-tq-tile-wild,
      .tv-tq-bar-fill, .tv-tq-pod-b, .tv-tq-lp, .tq-g-halo.tq-g-halo-on,
      .tq-fin-h, .tq-fin-off.tq-fin-next, .tq-fin-on, .tv-tq-fin-h, .tv-tq-fin-off.tv-tq-fin-next, .tv-tq-fin-on { animation: none !important; }
    }
    /* 🦜 Tall Tales (phones): a bonfire on the beach at night. The lobby cards follow the
       theme (and borrow the Game Show's pills/buttons); the game itself plays on a night-sky stage with
       a campfire glow and sand-colored answer planks that look the same in both themes. */
    .tt-hero { position: relative; overflow: hidden; border-radius: 18px; padding: 16px 16px 16px; color: #fff; text-align: center; isolation: isolate;
      background: linear-gradient(180deg, #0e1b3d 0%, #2a1d52 48%, #7c2d4a 82%, #c2410c 100%); box-shadow: 0 8px 24px rgba(14,27,61,0.35); }
    .tt-hero-sm { padding: 11px 14px 11px; }
    .tt-hero-glow { position: absolute; left: 50%; bottom: -60px; z-index: -1; width: 340px; height: 160px; margin-left: -170px; border-radius: 50%; pointer-events: none;
      background: radial-gradient(closest-side, rgba(253,186,116,0.85), rgba(249,115,22,0.35) 55%, rgba(249,115,22,0) 100%); animation: ttFlicker 3.2s ease-in-out infinite; }
    .tt-hero-bird { font-size: 40px; line-height: 1; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.45)); }
    .tt-hero-sm .tt-hero-bird { font-size: 28px; }
    .tt-hero-title { margin-top: 2px; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 38px; line-height: 1; color: #fde7c4; text-shadow: 0 3px 0 #9a3412, 0 6px 18px rgba(0,0,0,0.45); }
    .tt-hero-sm .tt-hero-title { font-size: 28px; }
    .tt-hero-sub { margin-top: 6px; font-size: 12.5px; font-weight: 800; color: #fed7aa; }
    @keyframes ttFlicker { 0%, 100% { opacity: 0.85; transform: scale(1); } 35% { opacity: 1; transform: scale(1.06); } 60% { opacity: 0.75; transform: scale(0.97); } }
    .tt-btn-go { color: #431407; background: linear-gradient(180deg, #fdba74 0%, #f97316 100%); box-shadow: 0 3px 0 #9a3412; }
    .tt-btn-go:not(:disabled):active { transform: translateY(2px); box-shadow: 0 1px 0 #9a3412; }
    .tt-set-note { margin-top: 5px; font-size: 11.5px; font-weight: 700; color: #64748b; }
    html.jbf-dark .tt-set-note { color: #94a3b8; }
    .tt-stage { position: relative; overflow: hidden; border-radius: 20px; padding: 12px 12px 14px; color: #f8fafc; min-height: 440px; isolation: isolate;
      background: linear-gradient(180deg, #0b1733 0%, #142650 55%, #2b1c43 100%); box-shadow: 0 10px 28px rgba(11,23,51,0.45), inset 0 0 0 1px rgba(255,255,255,0.08); }
    .tt-fire { position: absolute; left: 50%; bottom: -110px; z-index: -1; width: 420px; height: 220px; margin-left: -210px; border-radius: 50%; pointer-events: none;
      background: radial-gradient(closest-side, rgba(251,146,60,0.42), rgba(234,88,12,0.18) 60%, rgba(234,88,12,0) 100%); animation: ttFlicker 3.6s ease-in-out infinite; }
    .tt-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
    .tt-top-over { justify-content: space-between; }
    .tt-top-l { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
    .tt-rnd { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #fdba74; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tt-sty { font-size: 14.5px; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tt-clock { flex: none; min-width: 46px; height: 46px; padding: 0 6px; border-radius: 9999px; display: inline-flex; align-items: center; justify-content: center; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 22px;
      color: #431407; background: #fed7aa; box-shadow: 0 0 0 3px rgba(254,215,170,0.3); font-variant-numeric: tabular-nums; }
    .tt-clock.tt-clock-urgent { color: #fff; background: #e11d48; box-shadow: 0 0 0 4px rgba(225,29,72,0.35); animation: tqPulse 1s ease-in-out infinite; }
    .tt-paused { margin-top: 8px; border-radius: 10px; padding: 6px 10px; font-size: 12.5px; font-weight: 800; text-align: center; color: #fed7aa; background: rgba(254,215,170,0.12); box-shadow: inset 0 0 0 1px rgba(254,215,170,0.4); }
    .tt-wrap { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
    .tt-meta { align-self: center; max-width: 100%; border-radius: 9999px; padding: 3px 12px; font-size: 12px; font-weight: 800; text-align: center; color: #fde7c4; background: rgba(255,255,255,0.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16); }
    .tt-prompt { border-radius: 16px; padding: 14px 14px; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 20px; line-height: 1.25; text-align: center; color: #3b2414;
      background: linear-gradient(180deg, #fff7e8 0%, #f6e3c1 100%); box-shadow: 0 4px 0 #b9864f, 0 10px 24px rgba(0,0,0,0.35); text-wrap: balance; overflow-wrap: anywhere; }
    .tt-prompt.tt-prompt-sm { font-size: 16px; padding: 10px 12px; }
    .tt-blank { display: inline-block; min-width: 4.2em; margin: 0 0.15em; border-bottom: 3px solid #ea580c; line-height: 1; transform: translateY(-0.1em); }
    .tt-fill { display: inline; margin: 0 0.15em; padding: 0 0.2em; border-radius: 6px; color: #fff; background: #16a34a; text-transform: uppercase; }
    .tt-form { display: flex; flex-direction: column; gap: 8px; }
    .tt-input { width: 100%; border-radius: 12px; padding: 12px 14px; font-size: 17px; font-weight: 700; color: #1e293b; background: #fff; box-shadow: inset 0 0 0 2px #fdba74; outline: none; }
    .tt-input:focus { box-shadow: inset 0 0 0 2px #f97316, 0 0 0 4px rgba(249,115,22,0.25); }
    html.jbf-dark .tt-stage .tt-input { color: #1e293b; background: #fff; }
    .tt-count { align-self: flex-end; margin-top: -4px; font-size: 11px; font-weight: 700; color: #94a3b8; }
    /* 🤖 AI help: a lavender pill beside the box, a spinner while it thinks, the half-points chip */
    .tt-help-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: -2px; }
    .tt-help-row .tt-count { align-self: center; margin-top: 0; }
    .tt-help-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; border-radius: 9999px; padding: 6px 13px; font-size: 13px; font-weight: 800; color: #e0e7ff;
      background: rgba(129,140,248,0.2); box-shadow: inset 0 0 0 1.5px rgba(165,180,252,0.6); transition: transform 0.15s ease, background 0.15s ease; }
    .tt-help-btn:not(:disabled):active { transform: translateY(1px); background: rgba(129,140,248,0.34); }
    .tt-help-btn:disabled { opacity: 0.55; }
    .tt-help-btn.tt-help-busy { opacity: 1; }
    .tt-spin { flex: none; width: 14px; height: 14px; border-radius: 9999px; border: 2px solid rgba(224,231,255,0.3); border-top-color: #e0e7ff; animation: ttSpin 0.8s linear infinite; }
    @keyframes ttSpin { to { transform: rotate(360deg); } }
    .tt-help-chip { align-self: center; border-radius: 9999px; padding: 3px 11px; font-size: 12px; font-weight: 800; color: #1e1b4b; background: #c7d2fe; box-shadow: 0 2px 0 #6366f1; animation: tqPop 0.4s ease both; }
    .tt-help-none { text-align: center; font-size: 12.5px; font-weight: 800; color: #fecdd3; }
    .tt-card-ai { border-radius: 9999px; padding: 1px 8px; font-size: 11.5px; font-weight: 800; color: #1e1b4b; background: rgba(199,210,254,0.9); }
    .tt-close { border-radius: 12px; padding: 9px 12px; font-size: 14px; font-weight: 800; text-align: center; color: #fff; background: #be123c; box-shadow: 0 2px 0 #881337; animation: ttShake 0.4s ease both; }
    @keyframes ttShake { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
    .tt-mine { display: flex; flex-direction: column; align-items: center; gap: 4px; border-radius: 14px; padding: 10px 12px; background: rgba(255,255,255,0.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14); }
    .tt-mine-h { font-size: 12.5px; font-weight: 800; color: #86efac; }
    .tt-mine-t { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 20px; line-height: 1.15; text-align: center; text-transform: uppercase; color: #fde7c4; overflow-wrap: anywhere; }
    .tt-mine-edit { font-size: 12.5px; font-weight: 800; color: #fdba74; }
    .tt-note { text-align: center; font-size: 12.5px; font-weight: 700; color: #c7d2fe; }
    .tt-locked { text-align: center; font-size: 13.5px; font-weight: 800; color: #86efac; }
    .tt-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; }
    .tt-card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 50px; border-radius: 13px; padding: 8px 12px; text-align: center;
      color: #3b2414; background: linear-gradient(180deg, #fff7e8 0%, #f3ddb4 100%); box-shadow: 0 3px 0 #b9864f, inset 0 1px 0 rgba(255,255,255,0.7);
      transition: transform 0.15s ease, opacity 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease; }
    .tt-card:not(:disabled):active { transform: translateY(2px); box-shadow: 0 1px 0 #b9864f; }
    button.tt-card:disabled { cursor: default; }
    .tt-card-t { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 17px; line-height: 1.15; text-transform: uppercase; letter-spacing: 0.01em; overflow-wrap: anywhere; }
    .tt-card-tag { font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #9a3412; }
    .tt-card.tt-card-own { opacity: 0.55; box-shadow: inset 0 0 0 2px #b9864f; background: rgba(255,247,232,0.75); }
    .tt-card.tt-card-pick { box-shadow: 0 0 0 3px #38bdf8, 0 0 18px rgba(56,189,248,0.55); }
    .tt-card.tt-card-dim { opacity: 0.45; filter: saturate(0.6); }
    .tt-card.tt-card-wait { opacity: 0.55; filter: saturate(0.5); }
    .tt-card.tt-card-cur { transform: scale(1.02); }
    .tt-card.tt-card-truth { color: #052e16; background: linear-gradient(180deg, #bbf7d0 0%, #4ade80 100%); box-shadow: 0 3px 0 #15803d, 0 0 20px rgba(74,222,128,0.55); animation: tqPop 0.5s ease both; }
    .tt-card.tt-card-house { color: #042f2e; background: linear-gradient(180deg, #99f6e4 0%, #2dd4bf 100%); box-shadow: 0 3px 0 #0f766e; animation: tqPop 0.5s ease both; }
    .tt-card.tt-card-fib { color: #4c0519; background: linear-gradient(180deg, #fecdd3 0%, #fb7185 100%); box-shadow: 0 3px 0 #be123c; animation: tqPop 0.5s ease both; }
    .tt-card-who { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
    .tt-card-kind { font-size: 11.5px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
    .tt-avs { display: inline-flex; flex-wrap: wrap; gap: 2px; }
    .tt-av > div { box-shadow: 0 0 0 1.5px #fff; }
    .tt-res { text-align: center; border-radius: 12px; padding: 8px 10px; font-size: 15px; font-weight: 800; }
    .tt-res-ok { color: #052e16; background: #4ade80; } .tt-res-bad { color: #fff; background: #e11d48; } .tt-res-meh { color: #e2e8f0; background: rgba(255,255,255,0.1); }
    .tt-rank { text-align: center; font-size: 13px; font-weight: 700; color: #c7d2fe; }
    .tt-rank b { color: #fed7aa; }
    .tt-src { text-align: center; font-size: 11.5px; font-weight: 700; color: #a5b4fc; }
    .tt-title-card { margin: 30px 2px 20px; padding: 22px 12px; border-radius: 18px; text-align: center; background: rgba(255,255,255,0.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12); animation: tqIn 0.6s cubic-bezier(.3,.8,.3,1.2) both; }
    .tt-title-rnd { font-size: 13px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: #fdba74; }
    .tt-title-name { margin-top: 6px; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 34px; line-height: 1.05; color: #fff; }
    .tt-title-mult { margin-top: 10px; display: inline-block; border-radius: 9999px; padding: 4px 14px; font-size: 15px; font-weight: 800; color: #431407; background: #fed7aa; }
    .tt-title-blurb { margin-top: 12px; font-size: 13px; font-weight: 700; line-height: 1.35; color: #c7d2fe; }
    .tt-big { text-align: center; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 28px; line-height: 1.1; color: #fed7aa; text-shadow: 0 2px 0 #9a3412; }
    .tt-award { border-radius: 16px; padding: 12px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; animation: tqIn 0.6s ease both; }
    .tt-award-tall { background: linear-gradient(160deg, rgba(251,191,36,0.28), rgba(234,88,12,0.22)); box-shadow: inset 0 0 0 1.5px rgba(253,230,138,0.6); }
    .tt-award-suck { background: linear-gradient(160deg, rgba(45,212,191,0.22), rgba(56,189,248,0.18)); box-shadow: inset 0 0 0 1.5px rgba(153,246,228,0.5); animation-delay: 0.4s; }
    .tt-award-h { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #fde7c4; }
    .tt-award-who { display: flex; align-items: center; gap: 8px; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 20px; color: #fff; }
    .tt-award-s { font-size: 13px; font-weight: 700; color: #e0e7ff; }
    .tt-award-s b { color: #fde68a; }
    .tt-standings { display: flex; flex-direction: column; gap: 5px; }
    .tt-srow { display: flex; align-items: center; gap: 8px; min-width: 0; border-radius: 12px; padding: 6px 10px; background: rgba(255,255,255,0.07); }
    .tt-srow.tt-srow-me { box-shadow: inset 0 0 0 2px #fed7aa; }
    .tt-srank { flex: none; width: 18px; text-align: center; font-weight: 800; color: #a5b4fc; }
    .tt-sname { flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tt-sstat { margin-left: 6px; font-size: 11px; font-weight: 700; color: #a5b4fc; }
    .tt-smove { flex: none; width: 30px; text-align: center; font-size: 12px; font-weight: 800; color: #94a3b8; }
    .tt-smove.tt-up { color: #4ade80; } .tt-smove.tt-down { color: #fb7185; }
    .tt-sscore { flex: none; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 17px; color: #fed7aa; font-variant-numeric: tabular-nums; }
    .tt-podium { display: flex; align-items: flex-end; justify-content: center; gap: 8px; margin-top: 2px; }
    .tt-pod { width: 31%; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
    .tt-pod-name { max-width: 100%; font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tt-pod-pts { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 16px; color: #fed7aa; }
    .tt-pod-step { width: 100%; padding-top: 4px; border-radius: 10px 10px 0 0; text-align: center; font-size: 22px; background: linear-gradient(180deg, rgba(253,186,116,0.4) 0%, rgba(253,186,116,0.06) 100%); }
    .tt-pod-1 .tt-pod-step { height: 72px; } .tt-pod-2 .tt-pod-step { height: 50px; } .tt-pod-3 .tt-pod-step { height: 34px; }
    .tt-bestline { border-radius: 12px; padding: 8px 10px; text-align: center; font-size: 13px; font-weight: 700; line-height: 1.35; color: #e0e7ff; background: rgba(255,255,255,0.07); }
    .tt-bestline b { color: #fed7aa; text-transform: uppercase; }
    .tt-fx { position: absolute; left: 50%; top: 40%; z-index: 5; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 54px; line-height: 1; color: #e2e8f0; pointer-events: none; text-shadow: 0 4px 16px rgba(0,0,0,0.5); animation: tqFx 2.2s ease-out both; }
    .tt-fx-ok { color: #4ade80; } .tt-fx-bad { color: #fb7185; }
    /* 📺 Tall Tales on the TV: the same night beach, big — the prompt on a sand plank, the cards in a
       grid, the reveal turning them over one by one with a callout, the roast's two awards, the bars */
    .tv-tt { position: absolute; inset: 0; overflow: hidden; color: #f8fafc; background: linear-gradient(180deg, #091530 0%, #12244b 50%, #2a1b42 100%); }
    .tv-tt-sky { position: absolute; inset: 0 0 40% 0; pointer-events: none; opacity: 0.55;
      background-image: radial-gradient(0.25cqh 0.25cqh at 12% 18%, #fff 50%, transparent 51%), radial-gradient(0.2cqh 0.2cqh at 28% 9%, #fff 50%, transparent 51%), radial-gradient(0.3cqh 0.3cqh at 47% 22%, #fde68a 50%, transparent 51%),
        radial-gradient(0.2cqh 0.2cqh at 63% 7%, #fff 50%, transparent 51%), radial-gradient(0.25cqh 0.25cqh at 78% 16%, #fff 50%, transparent 51%), radial-gradient(0.2cqh 0.2cqh at 91% 28%, #fff 50%, transparent 51%),
        radial-gradient(0.2cqh 0.2cqh at 6% 40%, #fff 50%, transparent 51%), radial-gradient(0.25cqh 0.25cqh at 37% 36%, #fff 50%, transparent 51%), radial-gradient(0.2cqh 0.2cqh at 84% 44%, #fff 50%, transparent 51%); }
    .tv-tt-fire { position: absolute; left: 50%; bottom: -30cqh; width: 120cqw; height: 60cqh; margin-left: -60cqw; border-radius: 50%; pointer-events: none;
      background: radial-gradient(closest-side, rgba(251,146,60,0.42), rgba(234,88,12,0.16) 60%, rgba(234,88,12,0) 100%); animation: ttFlicker 4s ease-in-out infinite; }
    .tv-tt .tv-safe.tv-tt-grid { display: grid; grid-template-rows: 9cqh minmax(0, 1fr); row-gap: 1.8cqh; }
    .tv-tt-main { position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column; justify-content: center; }
    .tv-tt .tv-safe.tv-tt-attract { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3.2cqh; text-align: center; }
    .tv-tt-logo { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 15cqh; line-height: 0.95; color: #fde7c4; text-shadow: 0 1cqh 0 #9a3412, 0 2cqh 5cqh rgba(0,0,0,0.5); white-space: nowrap; }
    .tv-tt-logo.tv-tt-logo-sm { font-size: 8cqh; text-shadow: 0 0.6cqh 0 #9a3412, 0 1.4cqh 3cqh rgba(0,0,0,0.5); }
    .tv-tt-bird { display: inline-block; filter: drop-shadow(0 1cqh 1.6cqh rgba(0,0,0,0.45)); }
    .tv-tt-tag { font-size: 3cqh; font-weight: 800; color: #fed7aa; }
    .tv-tt-how { display: grid; grid-template-columns: repeat(3, 26cqw); gap: 1.6cqw; }
    .tv-tt-how-i { display: flex; align-items: center; gap: 1.2cqw; border-radius: 2.4cqh; padding: 2cqh 1.4cqw; text-align: left; color: #3b2414; background: linear-gradient(180deg, #fff7e8 0%, #f3ddb4 100%); box-shadow: 0 0.6cqh 0 #b9864f; }
    .tv-tt-how-n { flex: none; width: 6cqh; height: 6cqh; border-radius: 9999px; display: inline-flex; align-items: center; justify-content: center; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 3.6cqh; color: #fff; background: #ea580c; }
    .tv-tt-how-t { font-size: 2.5cqh; font-weight: 800; line-height: 1.25; }
    .tv-tt-lobby { display: flex; flex-direction: column; align-items: center; gap: 2.4cqh; text-align: center; }
    .tv-tt-lobby-ps { display: flex; flex-wrap: wrap; justify-content: center; gap: 2cqh 1.6cqw; max-width: 84cqw; }
    .tv-tt-lp { width: 10.5cqw; display: flex; flex-direction: column; align-items: center; gap: 0.8cqh; animation: tqIn 0.5s ease both; }
    .tv-tt-lp .tv-av { width: 9cqh; height: 9cqh; } .tv-tt-lp .tv-av > div { font-size: 3.6cqh !important; }
    .tv-tt-lp-n { max-width: 100%; font-size: 2.4cqh; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-tt-lobby-set { max-width: 84cqw; font-size: 2.4cqh; font-weight: 800; color: #c7d2fe; }
    .tv-tt-paused { position: absolute; left: 50%; top: 50%; z-index: 30; transform: translate(-50%, -50%); border-radius: 3cqh; padding: 3cqh 5cqw; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 7cqh;
      color: #431407; background: linear-gradient(160deg, #fdba74 0%, #c2410c 100%); box-shadow: 0 2cqh 6cqh rgba(0,0,0,0.5); white-space: nowrap; }
    .tv-tt-title { text-align: center; }
    .tv-tt-title-r { font-size: 3.4cqh; font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase; color: #fdba74; }
    .tv-tt-title-n { margin-top: 1.4cqh; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 13cqh; line-height: 1; text-shadow: 0 0.8cqh 0 rgba(0,0,0,0.25); animation: tqIn 0.7s cubic-bezier(.3,.8,.3,1.2) both; }
    .tv-tt-title-m { margin-top: 2.4cqh; display: inline-block; border-radius: 9999px; padding: 0.8cqh 2.4cqw; font-size: 4cqh; font-weight: 800; color: #431407; background: #fed7aa; }
    .tv-tt-title-b { margin: 2.6cqh auto 0; max-width: 64cqw; font-size: 2.8cqh; font-weight: 700; line-height: 1.35; color: #c7d2fe; }
    .tv-tt-meta { align-self: center; max-width: 100%; border-radius: 9999px; padding: 0.6cqh 1.6cqw; font-size: 2.4cqh; font-weight: 800; color: #fde7c4; background: rgba(255,255,255,0.08); box-shadow: inset 0 0 0 0.15cqh rgba(255,255,255,0.18); white-space: nowrap; }
    .tv-tt-write, .tv-tt-vote, .tv-tt-scores, .tv-tt-roast { display: flex; flex-direction: column; gap: 2.2cqh; min-height: 0; }
    .tv-tt-write { justify-content: center; height: 100%; }
    .tv-tt-vote { height: 100%; justify-content: flex-start; gap: 1.6cqh; }
    .tv-tt-prompt { border-radius: 3cqh; padding: 3.4cqh 3cqw; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 6.4cqh; line-height: 1.18; text-align: center; color: #3b2414;
      background: linear-gradient(180deg, #fff7e8 0%, #f3ddb4 100%); box-shadow: 0 1cqh 0 #b9864f, 0 2.4cqh 5cqh rgba(0,0,0,0.4); text-wrap: balance; overflow-wrap: anywhere; }
    .tv-tt-prompt.tv-tt-prompt-sm { font-size: 5cqh; }
    .tv-tt-prompt.tv-tt-prompt-vote { flex: none; padding: 1.6cqh 2.4cqw; font-size: 3.8cqh; box-shadow: 0 0.6cqh 0 #b9864f, 0 1.4cqh 3cqh rgba(0,0,0,0.35); }
    .tv-tt-prompt.tv-tt-prompt-vote.tv-tt-prompt-sm { font-size: 3.1cqh; }
    .tv-tt-prompt .tt-blank { border-bottom-width: 0.6cqh; min-width: 4em; }
    .tv-tt-fill { display: inline; margin: 0 0.15em; padding: 0 0.25em; border-radius: 1cqh; color: #fff; background: #16a34a; text-transform: uppercase; animation: tqPop 0.6s ease both; }
    .tv-tt-call { align-self: center; border-radius: 9999px; padding: 1cqh 2.4cqw; font-size: 3cqh; font-weight: 800; color: #431407; background: #fed7aa; box-shadow: 0 1cqh 3cqh rgba(0,0,0,0.35); white-space: nowrap; }
    .tv-tt-inrow { display: flex; flex-direction: column; align-items: center; gap: 1.2cqh; }
    .tv-tt-inrow-n { font-size: 2.8cqh; font-weight: 800; color: #fed7aa; }
    .tv-tt-inrow-ps { display: flex; flex-wrap: wrap; justify-content: center; gap: 1cqh 1.2cqw; max-width: 90cqw; }
    .tv-tt-inp { position: relative; display: inline-flex; align-items: center; gap: 0.5cqw; border-radius: 9999px; padding: 0.4cqh 1cqw 0.4cqh 0.4cqw; background: rgba(255,255,255,0.06); opacity: 0.55; transition: opacity 0.3s ease, background 0.3s ease; }
    .tv-tt-inp.tv-tt-inp-on { opacity: 1; background: rgba(74,222,128,0.18); box-shadow: inset 0 0 0 0.2cqh rgba(74,222,128,0.6); animation: tqPop 0.4s ease both; }
    .tv-tt-inp .tv-av { width: 4.6cqh; height: 4.6cqh; }
    .tv-tt-inp-n { font-size: 2.3cqh; font-weight: 800; white-space: nowrap; }
    .tv-tt-inp-ok { font-size: 2.3cqh; font-weight: 800; color: #4ade80; }
    .tv-tt-callout { flex: none; align-self: center; max-width: 92cqw; border-radius: 9999px; padding: 0.9cqh 2.4cqw; font-size: 3cqh; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
      box-shadow: 0 1cqh 3cqh rgba(0,0,0,0.35); animation: tqPop 0.45s ease both; }
    .tv-tt-call-v { color: #431407; background: #fed7aa; }
    .tv-tt-call-t { color: #052e16; background: #4ade80; } .tv-tt-call-h { color: #042f2e; background: #5eead4; } .tv-tt-call-p { color: #fff; background: #e11d48; } .tv-tt-call-r { color: #0f172a; background: rgba(255,255,255,0.94); }
    .tv-tt-cards { flex: 1 1 auto; min-height: 0; display: grid; gap: 1.4cqh 1.2cqw; align-content: center; }
    .tv-tt-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tv-tt-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tv-tt-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .tv-tt-card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6cqh; min-height: 11cqh; min-width: 0; border-radius: 2.2cqh; padding: 1cqh 1cqw; text-align: center;
      color: #3b2414; background: linear-gradient(180deg, #fff7e8 0%, #f3ddb4 100%); box-shadow: 0 0.6cqh 0 #b9864f, inset 0 0.2cqh 0 rgba(255,255,255,0.7); transition: transform 0.35s ease, opacity 0.35s ease, filter 0.35s ease; }
    .tv-tt-cards-sm .tv-tt-card { min-height: 9cqh; }
    .tv-tt-card-t { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 3.4cqh; line-height: 1.1; text-transform: uppercase; letter-spacing: 0.01em; overflow-wrap: anywhere; }
    .tv-tt-cards-sm .tv-tt-card-t { font-size: 2.7cqh; }
    .tv-tt-card.tv-tt-card-wait { opacity: 0.5; filter: saturate(0.5); }
    .tv-tt-card.tv-tt-card-cur { transform: scale(1.05); z-index: 2; }
    .tv-tt-card.tv-tt-card-truth { color: #052e16; background: linear-gradient(180deg, #bbf7d0 0%, #4ade80 100%); box-shadow: 0 0.6cqh 0 #15803d, 0 0 4cqh rgba(74,222,128,0.6); animation: tqPop 0.5s ease both; }
    .tv-tt-card.tv-tt-card-house { color: #042f2e; background: linear-gradient(180deg, #99f6e4 0%, #2dd4bf 100%); box-shadow: 0 0.6cqh 0 #0f766e, 0 0 3cqh rgba(45,212,191,0.5); animation: tqPop 0.5s ease both; }
    .tv-tt-card.tv-tt-card-fib { color: #4c0519; background: linear-gradient(180deg, #fecdd3 0%, #fb7185 100%); box-shadow: 0 0.6cqh 0 #be123c; animation: tqPop 0.5s ease both; }
    .tv-tt-card-kind { font-size: 1.9cqh; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
    .tv-tt-card-avs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 0.3cqw; }
    .tv-tt-card-avs .tv-av { width: 3.6cqh; height: 3.6cqh; } .tv-tt-card-avs .tv-av > div { font-size: 1.5cqh !important; }
    .tv-tt-tally { flex: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8cqh 1cqw; animation: tqPop 0.5s ease both; }
    .tv-tt-tally-i { display: inline-flex; align-items: center; gap: 0.5cqw; border-radius: 9999px; padding: 0.4cqh 0.9cqw 0.4cqh 0.4cqw; background: rgba(6,13,26,0.7); }
    .tv-tt-tally-i .tv-av { width: 4cqh; height: 4cqh; }
    .tv-tt-tally-n { font-size: 2.2cqh; font-weight: 800; white-space: nowrap; }
    .tv-tt-tally-p { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 2.6cqh; color: #cbd5e1; }
    .tv-tt-tally-p.tv-tt-up, .tv-tt-mv.tv-tt-up { color: #4ade80; } .tv-tt-tally-p.tv-tt-down, .tv-tt-mv.tv-tt-down { color: #fb7185; }
    .tv-tt-big { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 8.4cqh; line-height: 1; text-align: center; color: #fed7aa; text-shadow: 0 0.6cqh 0 #9a3412; }
    .tv-tt-sub { font-size: 3cqh; font-weight: 800; text-align: center; color: #c7d2fe; }
    .tv-tt-roast { align-items: center; justify-content: center; height: 100%; gap: 4cqh; }
    .tv-tt-awards { display: grid; grid-template-columns: repeat(2, 38cqw); gap: 3cqw; }
    .tv-tt-award { display: flex; flex-direction: column; align-items: center; gap: 1.4cqh; border-radius: 3cqh; padding: 3cqh 2cqw; text-align: center; animation: tqIn 0.7s cubic-bezier(.3,.8,.3,1.2) both; }
    .tv-tt-award-tall { background: linear-gradient(160deg, rgba(251,191,36,0.3), rgba(234,88,12,0.25)); box-shadow: inset 0 0 0 0.3cqh rgba(253,230,138,0.65), 0 2cqh 5cqh rgba(0,0,0,0.35); }
    .tv-tt-award-suck { background: linear-gradient(160deg, rgba(45,212,191,0.25), rgba(56,189,248,0.2)); box-shadow: inset 0 0 0 0.3cqh rgba(153,246,228,0.55), 0 2cqh 5cqh rgba(0,0,0,0.35); animation-delay: 0.6s; }
    .tv-tt-award-h { font-size: 3.2cqh; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #fde7c4; }
    .tv-tt-award-avs { display: inline-flex; gap: 1cqw; }
    .tv-tt-award-avs .tv-av { width: 13cqh; height: 13cqh; } .tv-tt-award-avs .tv-av > div { font-size: 5cqh !important; }
    .tv-tt-award-n { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 6cqh; line-height: 1; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-tt-award-s { font-size: 3cqh; font-weight: 800; color: #e0e7ff; }
    .tv-tt-scores { justify-content: center; height: 100%; }
    .tv-tt-bars { display: flex; flex-direction: column; gap: 1cqh; }
    .tv-tt-bar-row { display: grid; grid-template-columns: 3cqh 5cqh 16cqw minmax(0, 1fr) 6cqw 11cqw; align-items: center; column-gap: 1cqw; }
    .tv-tt-bar-row .tv-av { width: 5cqh; height: 5cqh; } .tv-tt-bar-row .tv-av > div { font-size: 2.2cqh !important; }
    .tv-tt-rk { text-align: center; font-size: 2.4cqh; font-weight: 800; color: #a5b4fc; }
    .tv-tt-nm { min-width: 0; font-size: 2.8cqh; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-tt-bar { height: 3.6cqh; border-radius: 9999px; overflow: hidden; background: rgba(255,255,255,0.08); }
    .tv-tt-bar-fill { display: block; height: 100%; border-radius: 9999px; background: linear-gradient(90deg, #ea580c 0%, #fdba74 100%); transform-origin: left center; animation: tqGrow 1s ease-out both; }
    .tv-tt-mv { text-align: center; font-size: 2.4cqh; font-weight: 800; color: #94a3b8; }
    .tv-tt-sc { text-align: right; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 3.4cqh; color: #fed7aa; font-variant-numeric: tabular-nums; }
    .tv-tt-over { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.4cqh; height: 100%; }
    .tv-tt-podium { display: flex; align-items: flex-end; justify-content: center; gap: 2cqw; }
    .tv-tt-pod { width: 18cqw; display: flex; flex-direction: column; align-items: center; gap: 0.8cqh; }
    .tv-tt-pod .tv-av { width: 10cqh; height: 10cqh; } .tv-tt-pod.tv-tt-pod-1 .tv-av { width: 14cqh; height: 14cqh; }
    .tv-tt-pod .tv-av > div { font-size: 4.4cqh !important; } .tv-tt-pod.tv-tt-pod-1 .tv-av > div { font-size: 6cqh !important; }
    .tv-tt-pod-n { max-width: 100%; font-size: 3cqh; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-tt-pod-s { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 4.2cqh; line-height: 1; color: #fed7aa; }
    .tv-tt-pod-b { width: 100%; padding-top: 1cqh; border-radius: 2cqh 2cqh 0 0; text-align: center; font-size: 6cqh; background: linear-gradient(180deg, rgba(253,186,116,0.42) 0%, rgba(253,186,116,0.06) 100%); animation: tqRise 0.9s ease-out both; transform-origin: bottom center; }
    .tv-tt-pod-1 .tv-tt-pod-b { height: 22cqh; } .tv-tt-pod-2 .tv-tt-pod-b { height: 15cqh; } .tv-tt-pod-3 .tv-tt-pod-b { height: 10cqh; }
    .tv-tt-best { max-width: 86cqw; font-size: 2.8cqh; font-weight: 800; text-align: center; color: #e0e7ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tv-tt-best b { color: #fed7aa; text-transform: uppercase; }
    .tv-tt-last { font-size: 2.6cqh; font-weight: 800; color: #c7d2fe; }
    @media (prefers-reduced-motion: reduce) {
      .tt-hero-glow, .tt-fire, .tt-close, .tt-card, .tt-award, .tt-title-card, .tt-fx, .tt-clock.tt-clock-urgent, .tv-tt-fire, .tv-tt-lp, .tv-tt-title-n, .tv-tt-fill, .tv-tt-inp, .tv-tt-callout, .tv-tt-card,
      .tv-tt-tally, .tv-tt-award, .tv-tt-bar-fill, .tv-tt-pod-b { animation: none !important; }
    }
    /* the answer planks sit a little askew, like driftwood (by position on screen, never by kind) */
    .tt-card-a { rotate: -0.5deg; } .tt-card-b { rotate: 0.4deg; } .tt-card-c { rotate: -0.25deg; } .tt-card-d { rotate: 0.6deg; }
    @keyframes pkWinFly { from { transform: translate(-50%,-50%) scale(1); opacity: 1; }
      to { transform: translate(calc(-50% + var(--wx,0)), calc(-50% + var(--wy,0))) scale(0.5); opacity: 0; } }
    .pk-turn-ring { box-shadow: 0 0 0 3px rgba(52,211,153,0.55), 0 0 18px 6px rgba(52,211,153,0.6); }
    /* Daily Wordle tile motion (presentation only). A revealing tile is a wd-flip box holding two
       stacked faces: wd-front (the typed-letter look) and wd-back (the result color). The box folds
       edge-on and back while the faces swap OPACITY at the 50% mark, so the color lands mid-flip.
       Only transform/opacity animate — the tile colors stay on plain (dark-remapped, !important)
       utility classes that the keyframes never touch, so both themes behave identically.
       Timing contract with Wordle's WD_FLIP_MS / WD_HOP_MS: tile i flips at i*250ms for 450ms
       (row done at 1450ms); a winning row then hops at 1500ms + i*90ms for 360ms. */
    @keyframes wdFlip { 0% { transform: rotateX(0deg); } 50% { transform: rotateX(-90deg); } 100% { transform: rotateX(0deg); } }
    @keyframes wdFront { 0%, 49.9% { opacity: 1; } 50%, 100% { opacity: 0; } }
    @keyframes wdBack { 0%, 49.9% { opacity: 0; } 50%, 100% { opacity: 1; } }
    @keyframes wdHop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px); } 70% { transform: translateY(2px); } }
    @keyframes wdPop { 0% { transform: scale(1); } 45% { transform: scale(1.12); } 100% { transform: scale(1); } }
    @keyframes wdShake {
      0%, 100% { transform: translateX(0); }
      15%, 55% { transform: translateX(-7px); }
      35%, 75% { transform: translateX(7px); }
      90% { transform: translateX(-3px); }
    }
    .wd-flip { animation: wdFlip 0.45s ease-in-out calc(var(--wd-i, 0) * 250ms) both; }
    .wd-flip.wd-win { animation: wdFlip 0.45s ease-in-out calc(var(--wd-i, 0) * 250ms) both, wdHop 0.36s ease-out calc(1500ms + var(--wd-i, 0) * 90ms); }
    .wd-front { animation: wdFront 0.45s linear calc(var(--wd-i, 0) * 250ms) both; }
    .wd-back { animation: wdBack 0.45s linear calc(var(--wd-i, 0) * 250ms) both; }
    .wd-pop { animation: wdPop 0.12s ease-out; }
    .wd-shake { animation: wdShake 0.42s ease-in-out; }
    @media (prefers-reduced-motion: reduce) {
      .wd-flip, .wd-front, .wd-back, .wd-pop, .wd-shake { animation: none !important; }
    }
    /* ---- 🟩 Daily Wordle board ART (WD_ART_GEOM, game-art/wordle/; presentation only — nothing here gates a guess) ----
       The Wordle root carries .wd-art plus the art URLs and geometry as CSS vars (wdArtVars) once
       wdArtLoad has every file; without it every rule below is inert and Wordle shows its CSS look.
       Every art layer is pointer-events: none and paints inside or around a box the CSS look already
       has: the tray is the grid box's (.wd-tray) border-image (paint only, outset round the grid), the
       thirty sockets one ::before layer under the rows (so they stay put while a row shakes or a tile
       flips or hops), a tile's sprite its own ::before (a tile's border goes to 0 — the box is
       border-box, so it keeps its size), and a keycap two ::before/::after halves of its button (the
       left half from the cap's left end, the right from its right end — the cap never varies along x
       between its rounded ends, so any key width joins seamlessly). The flip keeps working: .wd-front
       shows the typed tile, .wd-back the scored one, and they still swap opacity at the midpoint. The
       tiles and keys look the same in both themes, so their ink is set here (beating the dark remaps). */
    .wd-art .wd-tray { position: relative; isolation: isolate; border-image-source: var(--wd-tray); border-image-slice: var(--wd-tray-slice) fill;
      border-image-width: var(--wd-tray-w); border-image-outset: var(--wd-tray-out); border-image-repeat: stretch; }
    .wd-art .wd-tray::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--wd-sock-img);
      background-position: var(--wd-sock-pos); background-size: var(--wd-sock-size); background-repeat: no-repeat; }
    html .wd-art .wd-tray .wd-tile { background: transparent !important; border-color: transparent !important; border-width: 0 !important; box-shadow: none !important; isolation: isolate;
      color: #fff !important; text-shadow: 0 1px 2px rgba(0,0,0,0.5), 0 0 1px rgba(0,0,0,0.4); }
    html .wd-art .wd-tray .wd-typed { color: #2a2219 !important; text-shadow: 0 1px 0 rgba(255,255,255,0.65); }
    .wd-art .wd-row > .wd-tile { position: relative; }
    .wd-art .wd-tile::before { content: ''; position: absolute; inset: var(--wd-tile-in); z-index: -1; pointer-events: none; background-image: var(--wd-tiles);
      background-size: var(--wd-tile-bg); background-repeat: no-repeat; background-position-x: calc(var(--wd-v, 0) * var(--wd-vstep)); background-position-y: 0%; }
    .wd-art .wd-empty::before { content: none; }
    .wd-art .wd-ok::before { background-position-y: 33.333%; }
    .wd-art .wd-near::before { background-position-y: 66.667%; }
    .wd-art .wd-miss::before { background-position-y: 100%; }
    /* the keycaps (column = kind, row = up / pressed) */
    .wd-key-up { --wd-k: 0; } .wd-key-ok { --wd-k: 1; } .wd-key-near { --wd-k: 2; } .wd-key-miss { --wd-k: 3; } .wd-key-fn { --wd-k: 4; }
    html .wd-art .wd-key.wd-key { background: transparent !important; box-shadow: none !important; position: relative; isolation: isolate; padding-bottom: var(--wd-key-dy) !important;
      color: #2b241d !important; text-shadow: 0 1px 0 rgba(255,255,255,0.6); }
    html .wd-art .wd-key.wd-key-ok, html .wd-art .wd-key.wd-key-near, html .wd-art .wd-key.wd-key-miss { color: #fff !important; text-shadow: 0 1px 2px rgba(0,0,0,0.45), 0 0 1px rgba(0,0,0,0.35); }
    html .wd-art .wd-key.wd-key-fn { color: #3d2a0a !important; text-shadow: 0 1px 0 rgba(255,238,190,0.6); }
    .wd-art .wd-key::before, .wd-art .wd-key::after { content: ''; position: absolute; top: 0; height: 100%; z-index: -1; pointer-events: none;
      background-image: var(--wd-keys); background-size: var(--wd-key-bg); background-repeat: no-repeat; }
    .wd-art .wd-key::before { left: 0; width: calc(50% + 1px); background-position: left calc(var(--wd-k, 0) * -1 * var(--wd-kw)) top 0; }
    .wd-art .wd-key::after { right: 0; width: 50%; background-position: right calc((var(--wd-k, 0) + 1 - var(--wd-kn)) * var(--wd-kw)) top 0; }
    .wd-art .wd-key:active::before { background-position: left calc(var(--wd-k, 0) * -1 * var(--wd-kw)) top calc(-1 * var(--wd-kh)); }
    .wd-art .wd-key:active::after { background-position: right calc((var(--wd-k, 0) + 1 - var(--wd-kn)) * var(--wd-kw)) top calc(-1 * var(--wd-kh)); }
    /* 🎁 Secret Santa (🧪 Labs 'santa'): festive red / green / gold, every surface with an explicit
       light AND dark value (custom classes, so the dark theme's utility remaps never half-apply). */
    .ss-hero { position: relative; overflow: hidden; border-radius: 1rem; padding: 14px 16px 16px; color: #fff;
      background: radial-gradient(120% 140% at 0% 0%, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 46%), linear-gradient(135deg, #b91c1c 0%, #9f1239 48%, #15803d 100%);
      box-shadow: 0 6px 18px rgba(127,29,29,0.22), inset 0 0 0 1px rgba(255,255,255,0.14); }
    html.jbf-dark .ss-hero { background: radial-gradient(120% 140% at 0% 0%, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0) 46%), linear-gradient(135deg, #7f1d1d 0%, #6b1430 48%, #14532d 100%);
      box-shadow: 0 6px 18px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(255,255,255,0.08); }
    /* a gold ribbon down the right edge, tied off with a bow */
    .ss-hero::after { content: ''; position: absolute; top: 0; bottom: 0; right: 30px; width: 12px; background: linear-gradient(90deg, #d97706, #fcd34d 45%, #f59e0b); opacity: 0.85; }
    .ss-hero-bow { position: absolute; top: -2px; right: 14px; z-index: 1; font-size: 30px; line-height: 1; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.25)); }
    .ss-hero-flakes { position: absolute; inset: 0; pointer-events: none; color: rgba(255,255,255,0.22); font-size: 15px; }
    .ss-hero-flakes span { position: absolute; }
    .ss-hero-inner { position: relative; z-index: 1; padding-right: 34px; }
    .ss-hero-title { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 26px; line-height: 1; letter-spacing: 0.2px; text-shadow: 0 2px 0 rgba(0,0,0,0.18); }
    .ss-hero-sub { margin-top: 6px; font-size: 12.5px; line-height: 1.35; color: rgba(255,255,255,0.9); }
    .ss-gold-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 0.75rem; padding: 9px 14px; font-size: 14px; font-weight: 800;
      color: #3b1d03; background: linear-gradient(180deg, #fde68a 0%, #fbbf24 55%, #f59e0b 100%); box-shadow: 0 2px 0 #b45309, 0 4px 10px rgba(0,0,0,0.18); }
    .ss-gold-btn:active { transform: translateY(1px); box-shadow: 0 1px 0 #b45309, 0 2px 6px rgba(0,0,0,0.18); }
    .ss-red-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 0.75rem; padding: 9px 14px; font-size: 14px; font-weight: 800;
      color: #fff; background: linear-gradient(180deg, #ef4444 0%, #dc2626 55%, #b91c1c 100%); box-shadow: 0 2px 0 #7f1d1d, 0 4px 10px rgba(127,29,29,0.22); }
    .ss-red-btn:disabled, .ss-gold-btn:disabled { opacity: 0.45; box-shadow: none; }
    .ss-armed { animation: ssArmed 0.9s ease-in-out infinite; }
    @keyframes ssArmed { 0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.55); } 50% { box-shadow: 0 0 0 5px rgba(239,68,68,0); } }
    /* exchange card: a white card with a red-to-green band across the top */
    .ss-card { border-radius: 0.9rem; padding: 14px; background: linear-gradient(90deg, #dc2626 0%, #f59e0b 50%, #16a34a 100%) top / 100% 4px no-repeat, #fff;
      box-shadow: 0 1px 3px rgba(15,23,42,0.08), inset 0 0 0 1px #e2e8f0; }
    html.jbf-dark .ss-card { background: linear-gradient(90deg, #b91c1c 0%, #d97706 50%, #15803d 100%) top / 100% 4px no-repeat, #25292e; box-shadow: 0 1px 3px rgba(0,0,0,0.4), inset 0 0 0 1px #363c43; }
    .ss-badge { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; background: #fef2f2; box-shadow: inset 0 0 0 1px #fecaca; }
    html.jbf-dark .ss-badge { background: #2f1a1a; box-shadow: inset 0 0 0 1px #5b2323; }
    .ss-chip { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; border-radius: 9999px; padding: 2px 8px; font-size: 11px; font-weight: 700; }
    .ss-chip-sq { color: #475569; background: #f1f5f9; } html.jbf-dark .ss-chip-sq { color: #cbd5e1; background: #2f343a; }
    .ss-chip-open { color: #166534; background: #dcfce7; } html.jbf-dark .ss-chip-open { color: #86efac; background: #163322; }
    .ss-chip-drawn { color: #991b1b; background: #fee2e2; } html.jbf-dark .ss-chip-drawn { color: #fca5a5; background: #3a1a1a; }
    .ss-chip-rev { color: #92400e; background: #fef3c7; } html.jbf-dark .ss-chip-rev { color: #fcd34d; background: #3a2d10; }
    .ss-chip-in { color: #166534; background: #dcfce7; } html.jbf-dark .ss-chip-in { color: #86efac; background: #163322; }
    .ss-facts { display: flex; flex-wrap: wrap; gap: 6px; }
    .ss-fact { display: inline-flex; align-items: center; gap: 4px; border-radius: 0.6rem; padding: 4px 8px; font-size: 12px; font-weight: 700; color: #334155; background: #f8fafc; box-shadow: inset 0 0 0 1px #e2e8f0; }
    html.jbf-dark .ss-fact { color: #d6dde4; background: #1f2226; box-shadow: inset 0 0 0 1px #363c43; }
    .ss-fact-gold { color: #92400e; background: #fffbeb; box-shadow: inset 0 0 0 1px #fde68a; }
    html.jbf-dark .ss-fact-gold { color: #fcd34d; background: #2a2410; box-shadow: inset 0 0 0 1px #5c4a14; }
    .ss-person { display: inline-flex; align-items: center; gap: 5px; border-radius: 9999px; padding: 2px 8px 2px 2px; font-size: 12px; font-weight: 600; color: #334155; background: #f1f5f9; }
    html.jbf-dark .ss-person { color: #d6dde4; background: #2a2e34; }
    .ss-person-x { margin-left: 1px; color: #94a3b8; font-size: 13px; line-height: 1; }
    /* 12.8.15: the organizer's "who's in" picker — tap people to select them */
    .ss-pick { display: inline-flex; align-items: center; gap: 5px; border-radius: 9999px; padding: 2px 9px 2px 2px; font-size: 12px; font-weight: 600; color: #334155; background: #fff; box-shadow: inset 0 0 0 1.5px #cbd5e1; }
    html.jbf-dark .ss-pick { color: #d6dde4; background: #1f2226; box-shadow: inset 0 0 0 1.5px #3d444c; }
    .ss-pick-on { color: #14532d; background: #dcfce7; box-shadow: inset 0 0 0 1.5px #22c55e; }
    html.jbf-dark .ss-pick-on { color: #bbf7d0; background: #163322; box-shadow: inset 0 0 0 1.5px #22c55e; }
    .ss-pick-mark { width: 14px; text-align: center; font-weight: 800; }
    .ss-pick-no { color: #9f1239; background: #ffe4e6; box-shadow: inset 0 0 0 1.5px #fb7185; }
    html.jbf-dark .ss-pick-no { color: #fecdd3; background: #3a1720; box-shadow: inset 0 0 0 1.5px #f43f5e; }
    .ss-pick:disabled { opacity: 0.6; }
    .ss-warn { font-size: 11px; line-height: 1.35; font-weight: 600; color: #9a3412; background: #ffedd5; border-radius: 10px; padding: 6px 9px; }
    html.jbf-dark .ss-warn { color: #fed7aa; background: #3b2412; }
    /* 12.8.16: sizes — the giftee card's chips and the "your sizes" grid */
    .ss-size { display: inline-flex; align-items: baseline; gap: 4px; border-radius: 0.6rem; padding: 4px 8px; font-size: 12px; color: #334155; background: rgba(255,255,255,0.78); box-shadow: inset 0 0 0 1px rgba(252,165,165,0.55); }
    html.jbf-dark .ss-size { color: #d6dde4; background: rgba(20,22,25,0.55); box-shadow: inset 0 0 0 1px rgba(127,42,42,0.7); }
    .ss-size b { font-weight: 800; color: #1e293b; } html.jbf-dark .ss-size b { color: #f3f6f9; }
    .ss-size-l { font-size: 11px; color: #64748b; } html.jbf-dark .ss-size-l { color: #9aa4ae; }
    /* 12.8.22: required sizes still missing — the card leads with a red edge */
    .ss-sizes-need { box-shadow: 0 1px 3px rgba(15,23,42,0.08), inset 0 0 0 2px #fca5a5; }
    html.jbf-dark .ss-sizes-need { box-shadow: 0 1px 3px rgba(0,0,0,0.4), inset 0 0 0 2px #7f2a2a; }
    .ss-person-x:hover { color: #dc2626; } html.jbf-dark .ss-person-x:hover { color: #fca5a5; }
    /* the "you're buying for" card */
    .ss-giftee { border-radius: 0.9rem; padding: 14px; background: linear-gradient(160deg, #fff7ed 0%, #fef2f2 52%, #f0fdf4 100%); box-shadow: inset 0 0 0 1.5px #fca5a5; }
    html.jbf-dark .ss-giftee { background: linear-gradient(160deg, #2b1f15 0%, #2a1719 52%, #15241b 100%); box-shadow: inset 0 0 0 1.5px #7f2a2a; }
    .ss-ink { color: #991b1b; } html.jbf-dark .ss-ink { color: #fca5a5; }
    .ss-ink-green { color: #166534; } html.jbf-dark .ss-ink-green { color: #86efac; }
    .ss-giftee-name { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 24px; line-height: 1.05; color: #1e293b; }
    html.jbf-dark .ss-giftee-name { color: #f3f6f9; }
    .ss-wish { white-space: pre-wrap; overflow-wrap: anywhere; border-radius: 0.6rem; padding: 8px 10px; font-size: 13px; line-height: 1.4; color: #334155; background: rgba(255,255,255,0.78); box-shadow: inset 0 0 0 1px rgba(252,165,165,0.55); }
    html.jbf-dark .ss-wish { color: #d6dde4; background: rgba(20,22,25,0.55); box-shadow: inset 0 0 0 1px rgba(127,42,42,0.7); }
    .ss-panel { border-radius: 0.75rem; padding: 10px; background: #f8fafc; box-shadow: inset 0 0 0 1px #e2e8f0; }
    html.jbf-dark .ss-panel { background: #1f2226; box-shadow: inset 0 0 0 1px #363c43; }
    .ss-org { border-radius: 0.75rem; padding: 10px; background: #fffbeb; box-shadow: inset 0 0 0 1px #fde68a; }
    html.jbf-dark .ss-org { background: #221d0c; box-shadow: inset 0 0 0 1px #4a3c12; }
    /* anonymous messages */
    .ss-bub { max-width: 85%; border-radius: 14px; padding: 6px 10px; font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
    .ss-bub-them { color: #1e293b; background: #fff; box-shadow: inset 0 0 0 1px #e2e8f0; border-bottom-left-radius: 4px; }
    html.jbf-dark .ss-bub-them { color: #e8edf2; background: #2a2e34; box-shadow: inset 0 0 0 1px #3a4048; }
    .ss-bub-me { color: #14532d; background: #dcfce7; border-bottom-right-radius: 4px; }
    html.jbf-dark .ss-bub-me { color: #d1fae5; background: #17402a; }
    .ss-bub-who { font-size: 10px; font-weight: 700; color: #64748b; } html.jbf-dark .ss-bub-who { color: #9aa4ae; }
    .ss-santa-av { width: 26px; height: 26px; flex-shrink: 0; border-radius: 9999px; display: flex; align-items: center; justify-content: center; font-size: 15px; background: #dc2626; box-shadow: inset 0 0 0 2px #fecaca; }
    html.jbf-dark .ss-santa-av { background: #991b1b; box-shadow: inset 0 0 0 2px #7f2a2a; }
    .ss-step-n { width: 22px; height: 22px; flex-shrink: 0; border-radius: 9999px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #3b1d03; background: linear-gradient(180deg, #fde68a, #f59e0b); }
    .ss-reveal-row { display: flex; align-items: center; gap: 6px; border-radius: 0.6rem; padding: 5px 8px; background: #fffbeb; }
    html.jbf-dark .ss-reveal-row { background: #221d0c; }
    .ss-org-h { color: #92400e; } html.jbf-dark .ss-org-h { color: #fcd34d; }
    .ss-org-btn { border-radius: 0.5rem; padding: 7px 12px; font-size: 12px; font-weight: 700; color: #92400e; background: transparent; box-shadow: inset 0 0 0 2px #fcd34d; }
    .ss-org-btn:disabled { opacity: 0.4; }
    html.jbf-dark .ss-org-btn { color: #fcd34d; box-shadow: inset 0 0 0 2px #6b5416; }
    .ss-org-div { border-top: 1px solid #fde68a; } html.jbf-dark .ss-org-div { border-top-color: #4a3c12; }
    @media (prefers-reduced-motion: reduce) { .ss-armed { animation: none; } }
    /* Unread (new) item highlight in the What's-new bell panel — explicit light + dark so the
       dark theme doesn't leave a glaring pale block (the old bg-cyan-50/60 wasn't remapped). */
    .jbf-notif-new { background-color: rgba(207,250,254,0.6); }

    /* ===== Dark-grey theme (toggled via .jbf-dark on <html>) =====
       The app uses a fixed light palette with no Tailwind `dark:` variants, so instead of
       editing thousands of classNames we remap the handful of palette utilities it relies on.
       Selectors are root-scoped (html.jbf-dark …) + !important so they win over the CDN's
       atomic classes regardless of source order. The cyan/teal header, colored action buttons,
       avatars/photos, and the game-table felts are intentionally left untouched. */
    html.jbf-dark { background: #1b1e21; }
    html.jbf-dark body { background: #1b1e21; color: #e8edf2; }
    /* native controls (date/time pickers, scrollbars, select popups, checkboxes) follow the theme */
    html.jbf-dark { color-scheme: dark; }
    /* root app gradient → flat dark grey (matches on the from/via signature) */
    html.jbf-dark .from-cyan-50.via-white { background-image: none !important; background-color: #1b1e21 !important; }
    /* the other full-screen pastel gradients the rule above never matched: App's boot "Loading the
       compound..." screen, AuthGate (login), GuestGate (invite) — plus the Meals day headers'
       sticky fade (hidden tab) — flatten to the page grey */
    html.jbf-dark .from-cyan-50.to-orange-50,
    html.jbf-dark .from-cyan-50.to-orange-50\/80,
    html.jbf-dark .from-cyan-100.via-orange-50,
    html.jbf-dark .from-slate-100.via-white { background-image: none !important; background-color: #1b1e21 !important; }
    /* Daily Trivia "New all-time record!" card: amber→yellow gradient holding remapped amber text */
    html.jbf-dark .from-amber-50.to-yellow-50 { background-image: none !important; background-color: #2a2410 !important; }
    /* neutral surfaces */
    html.jbf-dark .bg-white { background-color: #25292e !important; }
    html.jbf-dark .bg-slate-50 { background-color: #1f2226 !important; }
    html.jbf-dark .bg-slate-100 { background-color: #2a2e34 !important; }
    html.jbf-dark .bg-slate-200 { background-color: #343a41 !important; }
    html.jbf-dark .bg-slate-300 { background-color: #3d444c !important; }
    html.jbf-dark .bg-gray-50, html.jbf-dark .bg-gray-100 { background-color: #2a2e34 !important; }
    /* tinted callout boxes → subtle dark tints of the same hue */
    html.jbf-dark .bg-emerald-50 { background-color: #16241d !important; }
    html.jbf-dark .bg-emerald-100 { background-color: #1c3024 !important; }
    html.jbf-dark .bg-green-50 { background-color: #16241d !important; }
    html.jbf-dark .bg-green-100 { background-color: #1c3024 !important; }
    html.jbf-dark .bg-cyan-50 { background-color: #10242b !important; }
    html.jbf-dark .bg-cyan-100 { background-color: #16313a !important; }
    html.jbf-dark .bg-amber-50 { background-color: #2a2410 !important; }
    html.jbf-dark .bg-amber-50\/50 { background-color: #221d0c !important; }
    /* ⚠️ Opacity-suffixed utilities need their OWN rules — the selectors here match exact
       class names, so bg-cyan-50/70 is NOT caught by the bg-cyan-50 rule (iPhone dark-mode
       "can't read the squad invite" bug, 11.2.1). Add a rule when introducing a new variant. */
    html.jbf-dark .bg-amber-50\/70 { background-color: #221d0c !important; }
    html.jbf-dark .bg-cyan-50\/70 { background-color: #10242b !important; }
    html.jbf-dark .hover\:bg-cyan-50\/40:hover { background-color: #16313a !important; }
    html.jbf-dark .bg-amber-100 { background-color: #352d14 !important; }
    html.jbf-dark .bg-orange-50 { background-color: #2a1e12 !important; }
    html.jbf-dark .bg-orange-100 { background-color: #35261a !important; }
    /* blue/sky/indigo/violet/red/rose tints — their -700/-800 TEXT is remapped below, but the
       matching -50/-100 backgrounds weren't, leaving light-on-light (e.g. the sky Nertz seat). */
    html.jbf-dark .bg-blue-50 { background-color: #101a2b !important; }
    html.jbf-dark .bg-blue-100 { background-color: #16243b !important; }
    html.jbf-dark .bg-sky-50 { background-color: #0f2230 !important; }
    html.jbf-dark .bg-sky-100 { background-color: #143042 !important; }
    html.jbf-dark .bg-indigo-50 { background-color: #161a2e !important; }
    html.jbf-dark .bg-indigo-100 { background-color: #1d2342 !important; }
    html.jbf-dark .bg-violet-50, html.jbf-dark .bg-purple-50 { background-color: #1f1630 !important; }
    html.jbf-dark .bg-violet-100, html.jbf-dark .bg-purple-100 { background-color: #2a1d40 !important; }
    html.jbf-dark .bg-red-50 { background-color: #2a1414 !important; }
    html.jbf-dark .bg-red-100 { background-color: #341a1a !important; }
    html.jbf-dark .bg-rose-50 { background-color: #2a141a !important; }
    html.jbf-dark .bg-rose-100 { background-color: #341a22 !important; }
    html.jbf-dark .bg-pink-50 { background-color: #2a141f !important; }
    /* fuchsia (Imposter / Spades blind-nil) and lime (Hide 'n Seek lobby) tints were never mapped */
    html.jbf-dark .bg-fuchsia-50 { background-color: #2a1430 !important; }
    html.jbf-dark .bg-lime-50 { background-color: #1b2610 !important; }
    /* translucent white chips/pills (poll voter chips, Media select ticks, Spades "Back to results")
       hold remapped light text — give them the card colour. The hidden compound map's fullscreen
       pill keeps its light face (its text is pinned dark by .map-fs-btn below). */
    html.jbf-dark .bg-white\/80:not(.map-fs-btn), html.jbf-dark .bg-white\/85:not(.map-fs-btn),
    html.jbf-dark .bg-white\/90:not(.map-fs-btn) { background-color: rgba(37,41,46,0.88) !important; }
    /* Area→Food sticky fade bars (cuisine filter + cuisine headers) use a cyan→orange gradient;
       gradients aren't covered by the solid-color remaps above, so flatten them to the page grey. */
    html.jbf-dark .jbf-area-sticky { background-image: none !important; background-color: #1b1e21 !important; }
    /* Area "Compound" hero card — its bright orange→amber gradient is glaring in dark mode; mute it
       to a deep burnt-amber that still reads as the orange accent but sits calmly on the dark page. */
    html.jbf-dark .jbf-compound-card { background-image: linear-gradient(to bottom right, #7a4413, #5c3f12) !important; }
    /* text scale */
    html.jbf-dark .text-slate-900 { color: #f3f6f9 !important; }
    html.jbf-dark .text-slate-800 { color: #e8edf2 !important; }
    html.jbf-dark .text-slate-700 { color: #d6dde4 !important; }
    html.jbf-dark .text-slate-600 { color: #bcc5cd !important; }
    html.jbf-dark .text-slate-500 { color: #9aa4ae !important; }
    html.jbf-dark .text-slate-400 { color: #828c96 !important; }
    html.jbf-dark .text-slate-300 { color: #a7b0b9 !important; }
    /* gray is used only by the root ErrorBoundary card — same values as slate-800 / slate-500 */
    html.jbf-dark .text-gray-800 { color: #e8edf2 !important; }
    html.jbf-dark .text-gray-500 { color: #9aa4ae !important; }
    /* borders & dividers */
    html.jbf-dark .border-slate-100 { border-color: #2c3137 !important; }
    html.jbf-dark .border-slate-200 { border-color: #363c43 !important; }
    html.jbf-dark .border-slate-300 { border-color: #404750 !important; }
    html.jbf-dark .divide-slate-200 > :not([hidden]) ~ :not([hidden]) { border-color: #363c43 !important; }
    /* form fields */
    html.jbf-dark input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
    html.jbf-dark select, html.jbf-dark textarea { background-color: #2a2e34; color: #e8edf2; border-color: #404750; }
    html.jbf-dark input::placeholder, html.jbf-dark textarea::placeholder { color: #7c8690; }
    /* selected nav tab: a cyan-tinted background + bright underline so it stands out from the dark
       nav (the cyan-50/50 highlight is invisible on dark); its label takes the shared cyan text remap */
    html.jbf-dark nav .bg-cyan-50\/50 { background-color: #1d3f4a !important; }
    html.jbf-dark nav .border-cyan-600 { border-color: #22d3ee !important; }
    /* the bright pastel line under the whole nav bar → the regular card-edge grey */
    html.jbf-dark nav.border-cyan-100 { border-color: #363c43 !important; }
    html.jbf-dark .jbf-notif-new { background-color: #16313a !important; }
    html.jbf-dark .hover\:bg-slate-100:hover { background-color: #2a2e34 !important; }
    html.jbf-dark .active\:bg-slate-200:active { background-color: #343a41 !important; }
    /* segmented controls (Bank, Media, GuestGate, Family invite kind, Board composer): the selected
       bg-white segment sat on its bg-slate-100 track at ~1:1 — lift it (class only set on those sites) */
    html.jbf-dark .jbf-seg-on { background-color: #3d444c !important; box-shadow: 0 1px 2px rgba(0,0,0,0.45) !important; }
    /* 🍎 Sign in with Apple buttons (12.9.34): Apple's black style on the light card and its white
       style on the dark one (Apple's guidelines pair the button with its background), in the
       system font; the button carries no colour classes, so no remap touches it. */
    .jbf-apple-btn { background-color: #000; color: #fff; border: 1px solid #000; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; }
    html.jbf-dark .jbf-apple-btn { background-color: #fff !important; color: #000 !important; border-color: #fff !important; }
    /* ✨ The update bar (12.10.9, UpdateBar): in the app it is DOCKED inside the sticky header (.jbf-upd-dock: covers the
       header's box exactly at any width, so the page never moves); on the login screens, which have no header, it is a
       fixed 60px band at the top, z-index 35 (under every sheet and modal, z-40 and up). An amber notice, both themes. */
    .jbf-upd { position: fixed; top: 0; left: 0; right: 0; height: 60px; z-index: 35; color: #fff;
      background: linear-gradient(90deg, #ea580c, #f59e0b); box-shadow: 0 6px 16px -6px rgba(15,23,42,0.45);
      animation: jbfUpdIn 0.42s cubic-bezier(.2,.9,.3,1.12) backwards; }
    html.jbf-dark .jbf-upd { background: linear-gradient(90deg, #c2410c, #b45309); }
    .jbf-upd.jbf-upd-dock { position: absolute; inset: 0; height: auto; z-index: 5; }
    .jbf-upd-in { max-width: 72rem; height: 100%; margin: 0 auto; padding: 0 6px 0 16px; display: flex; align-items: center; gap: 2px; }
    .jbf-upd-go { flex: 1 1 auto; min-width: 0; height: 100%; display: flex; align-items: center; gap: 10px; text-align: left; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
    .jbf-upd-ic { flex: none; width: 34px; height: 34px; border-radius: 9999px; display: flex; align-items: center; justify-content: center; font-size: 18px; background: rgba(255,255,255,0.2); }
    .jbf-upd-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
    .jbf-upd-txt b { font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .jbf-upd-txt span { font-size: 12px; font-weight: 600; opacity: 0.92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .jbf-upd-btn { flex: none; padding: 7px 14px; border-radius: 9999px; font-size: 13px; font-weight: 800; color: #9a3412; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.18); }
    .jbf-upd-go:disabled { cursor: default; } .jbf-upd-go:disabled .jbf-upd-btn { opacity: 0.6; }
    .jbf-upd-x { flex: none; width: 40px; height: 40px; border-radius: 9999px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.85); background: none; border: 0; font-size: 16px; font-weight: 800; cursor: pointer; }
    .jbf-upd-x:hover { color: #fff; background: rgba(255,255,255,0.16); }
    @media (max-width: 359px) { .jbf-upd-ic { display: none; } .jbf-upd-btn { padding: 7px 12px; } }
    @keyframes jbfUpdIn { from { transform: translateY(-100%); } to { transform: none; } }
    @media (prefers-reduced-motion: reduce) { .jbf-upd { animation: none; } }
    /* hover/active BACKGROUNDS that flashed a light block under remapped light text (and stay stuck
       after a tap on iOS) → one step lighter than the surface they sit on, same hue family. The
       hidden compound map's fullscreen pill keeps its light face (.map-fs-btn). */
    html.jbf-dark .hover\:bg-white:hover:not(.map-fs-btn), html.jbf-dark .hover\:bg-slate-50:hover { background-color: #2a2e34 !important; }
    html.jbf-dark .hover\:bg-slate-200:hover { background-color: #343a41 !important; }
    html.jbf-dark .active\:bg-slate-300:active { background-color: #3d444c !important; }
    html.jbf-dark .hover\:bg-cyan-50:hover, html.jbf-dark .hover\:bg-cyan-100:hover,
    html.jbf-dark .active\:bg-cyan-100:active { background-color: #16313a !important; }
    html.jbf-dark .hover\:bg-cyan-200:hover { background-color: #1d3f4a !important; }
    html.jbf-dark .hover\:bg-red-50:hover { background-color: #341a1a !important; }
    html.jbf-dark .hover\:bg-rose-50:hover { background-color: #341a22 !important; }
    html.jbf-dark .hover\:bg-rose-200:hover { background-color: #4a2430 !important; }
    html.jbf-dark .hover\:bg-emerald-50:hover, html.jbf-dark .hover\:bg-green-50:hover { background-color: #1c3024 !important; }
    html.jbf-dark .hover\:bg-emerald-200:hover, html.jbf-dark .hover\:bg-green-200:hover { background-color: #24402f !important; }
    html.jbf-dark .hover\:bg-amber-50:hover { background-color: #352d14 !important; }
    html.jbf-dark .hover\:bg-orange-50:hover, html.jbf-dark .hover\:bg-orange-100:hover { background-color: #35261a !important; }
    html.jbf-dark .hover\:bg-blue-50:hover { background-color: #16243b !important; }
    html.jbf-dark .hover\:bg-indigo-50:hover { background-color: #1d2342 !important; }
    html.jbf-dark .hover\:bg-violet-50:hover { background-color: #2a1d40 !important; }
    html.jbf-dark .hover\:bg-purple-200:hover { background-color: #3d2a5c !important; }
    html.jbf-dark .hover\:bg-fuchsia-50:hover { background-color: #3a1c42 !important; }
    html.jbf-dark .hover\:bg-lime-50:hover { background-color: #26351a !important; }
    /* hover TEXT colours that darkened remapped light text → brighten instead */
    html.jbf-dark .hover\:text-slate-900:hover:not(.map-fs-btn), html.jbf-dark .hover\:text-slate-800:hover,
    html.jbf-dark .hover\:text-slate-700:hover, html.jbf-dark .hover\:text-slate-600:hover { color: #f3f6f9 !important; }
    html.jbf-dark .hover\:text-slate-500:hover { color: #bcc5cd !important; }
    html.jbf-dark .hover\:text-cyan-600:hover, html.jbf-dark .hover\:text-cyan-700:hover,
    html.jbf-dark .hover\:text-cyan-800:hover, html.jbf-dark .hover\:text-cyan-900:hover { color: #7fe0f5 !important; }
    html.jbf-dark .hover\:text-red-500:hover, html.jbf-dark .hover\:text-red-600:hover { color: #fca5a5 !important; }
    html.jbf-dark .hover\:text-purple-700:hover { color: #e9d5ff !important; }
    html.jbf-dark .hover\:text-orange-800:hover { color: #fdba74 !important; }
    html.jbf-dark .hover\:text-amber-600:hover { color: #fcd34d !important; }
    /* Boggle dice have fixed cream faces, so keep their letters dark in dark mode — the slate text
       would otherwise be remapped to light and vanish against the tile. */
    html.jbf-dark [data-bidx] .text-slate-800,
    html.jbf-dark .bog-die .text-slate-900 { color: #1e293b !important; }
    /* Sudoku number pad keys have fixed light faces — keep their digits dark in dark mode. */
    html.jbf-dark .sud-key { color: #1e293b !important; }
    html.jbf-dark .sud-key:disabled { color: #94a3b8 !important; }
    /* Sudoku completion ripple (presentation only): a cell in a just-completed row/col/box (or
       the whole grid on a solve, as a diagonal wave) pops and flashes a green wash. Delays come
       inline per cell; the ::after wash inherits them. Board cells are fixed inline colors, so
       one palette reads in both themes. */
    /* A/B twins: cells keep stable keys (they're buttons — never remount them mid-tap) and
       alternate by ripple-id parity; a changed animation-name restarts on the same node. */
    @keyframes sudPulseA { 0% { transform: scale(1); } 40% { transform: scale(1.16); } 100% { transform: scale(1); } }
    @keyframes sudPulseB { 0% { transform: scale(1); } 40% { transform: scale(1.16); } 100% { transform: scale(1); } }
    @keyframes sudGlowA { 0% { opacity: 0; } 35% { opacity: 1; } 100% { opacity: 0; } }
    @keyframes sudGlowB { 0% { opacity: 0; } 35% { opacity: 1; } 100% { opacity: 0; } }
    .sud-pulse { position: relative; z-index: 1; }
    .sud-pulse::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: rgba(52,211,153,0.55); animation-delay: inherit; }
    .sud-pulse-a { animation: sudPulseA 0.42s ease-out both; }
    .sud-pulse-b { animation: sudPulseB 0.42s ease-out both; }
    .sud-pulse-a::after { animation: sudGlowA 0.6s ease-out both; animation-delay: inherit; }
    .sud-pulse-b::after { animation: sudGlowB 0.6s ease-out both; animation-delay: inherit; }
    @media (prefers-reduced-motion: reduce) { .sud-pulse, .sud-pulse::after, .sud-pulse-a, .sud-pulse-b, .sud-pulse-a::after, .sud-pulse-b::after { animation: none !important; } .sud-pulse::after { opacity: 0; } }
    /* ---- 🧩 Daily Sudoku board ART (SU_ART_GEOM, game-art/sudoku/; presentation only — nothing here gates an entry) ----
       The Sudoku root carries .su-art plus the art URLs and geometry as CSS vars (suArtVars) once
       suArtLoad has every file; without it every rule below is inert and Sudoku shows its CSS look.
       Every art layer is pointer-events: none and paints inside a box the CSS look already has: the
       tray is the board box's border-image (paint only, its band exactly over the box's padding), the
       floor is the grid's background, a cell's tile is an absolutely placed child of its button (the
       cell's border goes to 0 — the box is border-box, so the button keeps its size), the keys and the
       erase bar are backgrounds / a border-image on their own buttons — so the art arriving mid-solve
       moves no tap target. The tiles and keys are light in both themes, so their ink stays dark. */
    .sud-tile { display: none; }
    .su-art .sud-board { background: none !important; border-radius: var(--su-frame-r); box-shadow: 0 10px 22px rgba(0,0,0,0.36), 0 2px 5px rgba(0,0,0,0.22) !important;
      border-image-source: var(--su-frame); border-image-slice: var(--su-frame-slice) fill; border-image-width: var(--su-frame-w); border-image-outset: var(--su-frame-out); border-image-repeat: stretch; }
    .su-art .sud-grid { border-color: transparent !important; background-color: #10172f !important; background-image: var(--su-floor) !important; background-origin: content-box !important;
      background-size: 100% 100% !important; background-repeat: no-repeat !important; box-shadow: inset 0 2px 5px rgba(0,0,0,0.55), inset 2px 0 4px rgba(0,0,0,0.3); }
    .su-art .sud-cell { background: transparent !important; border-width: 0 !important; box-shadow: none !important; position: relative; isolation: isolate; text-shadow: 0 1px 0 rgba(255,255,255,0.5); }
    .su-art .sud-tile { display: block; position: absolute; z-index: -1; pointer-events: none; background-image: var(--su-tiles); background-size: var(--su-tile-bg); background-repeat: no-repeat; animation-delay: inherit; }
    .su-art .sud-tile::before, .su-art .sud-pulse > .sud-tile::after { content: ''; position: absolute; inset: var(--su-face-in); border-radius: var(--su-face-r); pointer-events: none; }
    /* the CSS look's cell colours as tints on the tile's face: the selected cell's row/column/box, the
       same digit elsewhere, a mistake, the selected cell itself (ringed) */
    .su-art .sud-unit > .sud-tile::before { background: rgba(120,170,250,0.3); }
    .su-art .sud-same > .sud-tile::before { background: rgba(84,148,250,0.5); box-shadow: inset 0 0 0 1px rgba(37,99,235,0.4); }
    .su-art .sud-given.sud-unit > .sud-tile::before { background: rgba(96,152,250,0.4); }
    .su-art .sud-given.sud-same > .sud-tile::before { background: rgba(70,135,250,0.58); }
    .su-art .sud-sel > .sud-tile::before { background: rgba(96,165,255,0.6); box-shadow: inset 0 0 0 2px #2563eb, 0 0 6px 1px rgba(96,165,250,0.75); }
    .su-art .sud-wrong > .sud-tile::before { background: rgba(244,63,94,0.26); }
    .su-art .sud-wrong.sud-sel > .sud-tile::before { background: rgba(244,63,94,0.42); box-shadow: inset 0 0 0 2px #e11d48, 0 0 6px 1px rgba(251,113,133,0.7); }
    /* the completion ripple: the cell (and its tile) still pops by sudPulseA/B on the button; the green
       wash moves from the button's ::after onto the tile's face, alternating sudGlowA/B the same way */
    .su-art .sud-pulse::after { content: none; }
    .su-art .sud-pulse > .sud-tile::after { background: rgba(52,211,153,0.6); }
    .su-art .sud-pulse-a > .sud-tile::after { animation: sudGlowA 0.6s ease-out both; animation-delay: inherit; }
    .su-art .sud-pulse-b > .sud-tile::after { animation: sudGlowB 0.6s ease-out both; animation-delay: inherit; }
    /* the number pad: round typewriter keys (up / pressed / spent); the cap sits a hair up-left of its
       box (its shadow falls down-right), so the digit moves with it by padding (the box stays) */
    .su-art .sud-key { background: var(--su-keys) 0% 0% / 300% 100% no-repeat !important; border-color: transparent !important; box-shadow: none !important; padding: 0 5.6% 5.6% 0 !important; }
    .su-art .sud-key:active:not(:disabled) { background-position: 50% 0% !important; }
    .su-art .sud-key:disabled { background-position: 100% 0% !important; }
    html .su-art .sud-key { color: #2b241d !important; text-shadow: 0 1px 0 rgba(255,255,255,0.6); }
    html .su-art .sud-key:disabled { color: #8c8476 !important; text-shadow: none; }
    /* the erase key: a typewriter space bar (a border-image whose rounded ends meet in the middle); the
       bar sits a hair above centre, so the label does too (the padding moves, its total stays) */
    .su-art .sud-erase, html .su-art .sud-erase:hover { background: transparent !important; border-color: transparent !important; }
    .su-art .sud-erase { border-image-source: var(--su-bar); border-image-slice: var(--su-bar-slice) fill; border-image-width: 50% var(--su-bar-w); border-image-repeat: stretch;
      padding-top: 0.4rem !important; padding-bottom: 0.6rem !important; }
    html .su-art .sud-erase { color: #3a2f25 !important; text-shadow: 0 1px 0 rgba(255,255,255,0.6); }
    @media (prefers-reduced-motion: reduce) { .su-art .sud-pulse > .sud-tile::after { animation: none !important; opacity: 0; } }
    /* Compound-map "Fullscreen" button sits on its own fixed white pill — keep its text dark. */
    html.jbf-dark .map-fs-btn { color: #334155 !important; }
    /* Compound-map congregation heat layer — a faint, slow breathe so it feels alive but stays subtle. */
    @keyframes jbfHeatPulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 0.85; } }
    .jbf-heatmap { animation: jbfHeatPulse 4s ease-in-out infinite; }
    /* Table-talk "more noticeable" cues: a one-shot ring pulse on the chat card when an unread
       message lands, and a slide/fade-in on each newly-arrived message bubble. */
    @keyframes jbfChatPulse { 0% { box-shadow: 0 0 0 0 rgba(8,145,178,0.45); } 70% { box-shadow: 0 0 0 8px rgba(8,145,178,0); } 100% { box-shadow: 0 0 0 0 rgba(8,145,178,0); } }
    .jbf-chat-pulse { animation: jbfChatPulse 0.9s ease-out 2; }
    @keyframes jbfChatIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
    .jbf-chat-in { animation: jbfChatIn 0.28s ease-out; }
    /* Boggle "bubble chat" trial: a transient speech bubble that rises over the board then fades. */
    @keyframes jbfBubbleFloat { 0% { opacity: 0; transform: translateY(12px) scale(0.95); } 12% { opacity: 1; transform: translateY(0) scale(1); } 82% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 0; transform: translateY(-8px) scale(0.98); } }
    .jbf-bubble-float { animation: jbfBubbleFloat 5.2s ease-out forwards; }
    /* Colored callout TEXT: the tinted -50/-100 boxes were darkened above, but their colored
       -700/-800/-900 text wasn't remapped, leaving it dark-on-dark. Brighten to readable tints. */
    html.jbf-dark .text-cyan-700, html.jbf-dark .text-cyan-800, html.jbf-dark .text-cyan-900 { color: #5fd3ee !important; }
    html.jbf-dark .text-emerald-700, html.jbf-dark .text-emerald-800, html.jbf-dark .text-emerald-900 { color: #4ade80 !important; }
    html.jbf-dark .text-green-700, html.jbf-dark .text-green-800, html.jbf-dark .text-green-900 { color: #4ade80 !important; }
    html.jbf-dark .text-amber-700, html.jbf-dark .text-amber-800, html.jbf-dark .text-amber-900 { color: #fbbf24 !important; }
    html.jbf-dark .text-orange-700, html.jbf-dark .text-orange-800, html.jbf-dark .text-orange-900 { color: #fb923c !important; }
    html.jbf-dark .text-red-700, html.jbf-dark .text-red-800, html.jbf-dark .text-red-900 { color: #f87171 !important; }
    html.jbf-dark .text-rose-700, html.jbf-dark .text-rose-800, html.jbf-dark .text-rose-900 { color: #fb7185 !important; }
    html.jbf-dark .text-indigo-700, html.jbf-dark .text-indigo-800, html.jbf-dark .text-indigo-900 { color: #a5b4fc !important; }
    html.jbf-dark .text-violet-700, html.jbf-dark .text-violet-800 { color: #c4b5fd !important; }
    html.jbf-dark .text-blue-700, html.jbf-dark .text-blue-800, html.jbf-dark .text-blue-900 { color: #93b4fd !important; }
    html.jbf-dark .text-sky-700, html.jbf-dark .text-sky-800 { color: #7dd3fc !important; }
    /* hues with no remap at all (purple/fuchsia/lime) and the -600 shades that went dark-on-dark */
    html.jbf-dark .text-purple-700, html.jbf-dark .text-purple-800 { color: #d8b4fe !important; }
    html.jbf-dark .text-purple-600 { color: #c084fc !important; }
    html.jbf-dark .text-fuchsia-700, html.jbf-dark .text-fuchsia-800 { color: #f0abfc !important; }
    html.jbf-dark .text-fuchsia-600 { color: #e879f9 !important; }
    html.jbf-dark .text-lime-700, html.jbf-dark .text-lime-800 { color: #a3e635 !important; }
    html.jbf-dark .text-indigo-600 { color: #a5b4fc !important; }
    html.jbf-dark .text-blue-600 { color: #93b4fd !important; }
    html.jbf-dark .text-violet-600 { color: #c4b5fd !important; }
    /* -600 status colours (error lines, +/- amounts, links) read at ~3-4:1 on dark cards */
    html.jbf-dark .text-red-600 { color: #f87171 !important; }
    html.jbf-dark .text-rose-600 { color: #fb7185 !important; }
    html.jbf-dark .text-emerald-600 { color: #4ade80 !important; }
    html.jbf-dark .text-green-600 { color: #4ade80 !important; }
    html.jbf-dark .text-cyan-600 { color: #22d3ee !important; }
    html.jbf-dark .text-sky-600 { color: #7dd3fc !important; }
    /* Playing-card FACES (`jbf-card`: Poker PkCard, Nertz cardEl, 99 hand cards) stay light cards in
       dark mode, like Spades' SVG SpCard: undo the bg-white / slate border / slate + rose ink remaps
       on the face only (backs, empty slots, felt, highlight rings untouched). No light-mode rule. */
    html.jbf-dark div.jbf-card, html.jbf-dark button.jbf-card { background-color: #ffffff !important; }
    html.jbf-dark .jbf-card.border-slate-200 { border-color: #e2e8f0 !important; }
    html.jbf-dark .jbf-card.border-slate-300 { border-color: #cbd5e1 !important; }
    html.jbf-dark .jbf-card.text-slate-800, html.jbf-dark .jbf-card .text-slate-800 { color: #1e293b !important; }
    html.jbf-dark .jbf-card.text-slate-700 { color: #334155 !important; }
    html.jbf-dark .jbf-card.text-rose-600, html.jbf-dark .jbf-card .text-rose-600 { color: #e11d48 !important; }
    /* opacity-suffixed text variants (lobby "Invited:" lines, unselected invite chips) — the exact-name
       rules above don't catch them; same light tint, original alpha */
    html.jbf-dark .text-emerald-700\/80 { color: rgb(74 222 128 / 0.8) !important; }
    html.jbf-dark .text-cyan-700\/80 { color: rgb(95 211 238 / 0.8) !important; }
    html.jbf-dark .text-indigo-700\/80 { color: rgb(165 180 252 / 0.8) !important; }
    html.jbf-dark .text-lime-700\/80 { color: rgb(163 230 53 / 0.8) !important; }
    html.jbf-dark .text-emerald-600\/60 { color: rgb(74 222 128 / 0.6) !important; }
    html.jbf-dark .text-cyan-600\/60 { color: rgb(95 211 238 / 0.6) !important; }
    html.jbf-dark .text-indigo-600\/60 { color: rgb(165 180 252 / 0.6) !important; }
    html.jbf-dark .text-lime-600\/60 { color: rgb(163 230 53 / 0.6) !important; }
    /* but NOT inside the cyan/teal header (it sits on a bright gradient) */
    html.jbf-dark header .text-cyan-700 { color: #0e7490 !important; }
    /* ===== 7-days-out hype takeover (TripHypeTakeover) ===== */
    .jbf-hype-shake { animation: jbfHypeShake .45s linear infinite; }
    @keyframes jbfHypeShake { 0%{transform:translate(0,0)} 20%{transform:translate(-6px,4px)} 40%{transform:translate(5px,-5px)} 60%{transform:translate(-4px,-4px)} 80%{transform:translate(6px,5px)} 100%{transform:translate(0,0)} }
    .jbf-hype-star { position:absolute; width:3px; height:3px; border-radius:50%; background:#dbeafe; animation: jbfHypeTw 2.2s ease-in-out infinite; }
    @keyframes jbfHypeTw { 0%,100%{opacity:.25} 50%{opacity:.95} }
    .jbf-hype-sun { position:absolute; left:50%; width:26vmin; height:26vmin; margin-left:-13vmin; border-radius:50%;
      background: radial-gradient(circle at 42% 38%, #fff7cc, #fbbf24 68%); box-shadow: 0 0 12vmin 4vmin rgba(251,191,36,.55);
      transition: bottom 3s cubic-bezier(.22,.9,.35,1); }
    .jbf-hype-waves { position:absolute; left:-12vw; right:-12vw; bottom:-6vh; height:34vh; opacity:0; transition:opacity 1.6s ease; }
    .jbf-hype-waves.jbf-hype-on { opacity:1; }
    .jbf-hype-w { position:absolute; left:0; right:0; height:100%; border-radius:46% 54% 0 0 / 90% 100% 0 0; }
    .jbf-hype-w1 { background:rgba(34,211,238,.42); bottom:8vh; animation: jbfHypeRoll 7s ease-in-out infinite; }
    .jbf-hype-w2 { background:rgba(20,184,166,.6); bottom:3.5vh; animation: jbfHypeRoll 5.4s ease-in-out infinite reverse; }
    .jbf-hype-w3 { background:#0e7490; bottom:0; animation: jbfHypeRoll 8.6s ease-in-out infinite; }
    @keyframes jbfHypeRoll { 0%,100%{transform:translateX(-3.5vw) scaleY(1)} 50%{transform:translateX(3.5vw) scaleY(1.07)} }
    .jbf-hype-palm { position:absolute; left:-2vw; bottom:16vh; font-size:22vmin; transform-origin:50% 95%; opacity:0;
      transition:opacity 1.4s ease; animation: jbfHypeSway 4.4s ease-in-out infinite; }
    .jbf-hype-palm.jbf-hype-on { opacity:1; }
    @keyframes jbfHypeSway { 0%,100%{transform:rotate(-3.5deg)} 50%{transform:rotate(4deg)} }
    .jbf-hype-strobe { position:absolute; inset:0; pointer-events:none; animation: jbfHypeStrobe .8s ease-in-out infinite; }
    @keyframes jbfHypeStrobe {
      0%,100% { box-shadow: inset 0 0 14vmin 2vmin rgba(239,68,68,.55); background: rgba(239,68,68,.05); }
      50%     { box-shadow: inset 0 0 22vmin 7vmin rgba(239,68,68,.85); background: rgba(239,68,68,.16); } }
    .jbf-hype-cap { position:absolute; left:50%; top:19%; transform:translate(-50%,-50%); width:min(92vw,760px); text-align:center;
      color:#fff7ed; font-weight:800; font-size:clamp(26px,6.4vmin,56px); line-height:1.12; letter-spacing:.5px;
      text-shadow:0 3px 24px rgba(0,0,0,.5); animation: jbfHypePop .55s cubic-bezier(.34,1.56,.64,1) both; }
    .jbf-hype-sub { position:absolute; left:50%; top:27%; transform:translate(-50%,-50%); width:min(92vw,700px); text-align:center;
      color:rgba(255,247,237,.82); font-weight:700; font-size:clamp(14px,2.6vmin,22px); letter-spacing:2.5px; text-transform:uppercase;
      animation: jbfHypePop .55s cubic-bezier(.34,1.56,.64,1) both; }
    @keyframes jbfHypePop { from{opacity:0; transform:translate(-50%,-50%) scale(.55)} to{opacity:1; transform:translate(-50%,-50%) scale(1)} }
    .jbf-hype-alertcap { color:#fecaca !important; animation: jbfHypePop .3s both, jbfHypeBlink .9s step-end infinite !important; }
    @keyframes jbfHypeBlink { 0%,60%{filter:none} 61%,100%{filter:brightness(1.9)} }
    .jbf-hype-num { font-size:clamp(170px,44vmin,400px); font-weight:800; line-height:.9; color:#fff7ed;
      text-shadow:0 0 6vmin rgba(251,191,36,.65), 0 10px 40px rgba(0,0,0,.6);
      animation: jbfHypeSlam .7s cubic-bezier(.2,1.4,.4,1) both, jbfHypeThump 1s ease-in-out .8s infinite; }
    @keyframes jbfHypeSlam { from{transform:scale(7); opacity:0; filter:blur(6px)} to{transform:scale(1); opacity:1; filter:blur(0)} }
    @keyframes jbfHypeThump { 0%,100%{transform:scale(1)} 12%{transform:scale(1.07)} 24%{transform:scale(1)} }
    .jbf-hype-numlabel { margin-top:-1vmin; color:#fde68a; font-weight:800; letter-spacing:4px; text-transform:uppercase;
      font-size:clamp(15px,3vmin,26px); text-shadow:0 2px 14px rgba(0,0,0,.55); }
    .jbf-hype-ring { position:absolute; left:50%; top:46%; width:10vmin; height:10vmin; margin:-5vmin;
      border:1.2vmin solid rgba(251,191,36,.8); border-radius:50%; pointer-events:none; animation: jbfHypeRing 1.15s ease-out both; }
    @keyframes jbfHypeRing { from{transform:scale(.4); opacity:1} to{transform:scale(11); opacity:0} }
    .jbf-hype-av { position:absolute; left:0; top:0; opacity:0; will-change:transform; }
    .jbf-hype-av.jbf-hype-born { opacity:1; }
    .jbf-hype-disc { border-radius:9999px; border:3px solid rgba(255,255,255,.92); box-shadow:0 6px 22px rgba(0,0,0,.45);
      line-height:0; animation: jbfHypeBorn .5s cubic-bezier(.34,1.56,.64,1) both; }
    @keyframes jbfHypeBorn { from{transform:scale(0) rotate(-160deg)} to{transform:scale(1) rotate(0)} }
    .jbf-hype-tag { margin:5px auto 0; width:max-content; max-width:110px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
      background:rgba(7,13,24,.72); color:#fff7ed; font-weight:700; font-size:11px; letter-spacing:.4px;
      padding:2px 9px; border-radius:999px; border:1px solid rgba(255,255,255,.22); text-align:center; }
    .jbf-hype-rocket { position:absolute; font-size:9vmin; transform:rotate(-45deg);
      filter: drop-shadow(0 0 12px rgba(251,191,36,.8)); transition: bottom 2.1s cubic-bezier(.55,0,.85,.4), left 2.1s ease-in; }
    .jbf-hype-finale { position:absolute; left:50%; top:42%; width:min(94vw,860px); text-align:center; pointer-events:none;
      animation: jbfHypeFin .8s cubic-bezier(.34,1.56,.64,1) both; }
    @keyframes jbfHypeFin { from{opacity:0; transform:translate(-50%,-50%) scale(.5)} to{opacity:1; transform:translate(-50%,-50%) scale(1)} }
    .jbf-hype-kicker { color:#083344; background:#fde68a; display:inline-block; padding:4px 18px; border-radius:999px;
      font-weight:800; letter-spacing:3px; font-size:clamp(12px,2.4vmin,18px); text-transform:uppercase; }
    .jbf-hype-h1 { margin:2vmin 0 0; color:#fff; font-weight:800; font-size:clamp(40px,10.5vmin,104px); line-height:.98;
      animation: jbfHypeGlow 1.6s ease-in-out infinite; }
    @keyframes jbfHypeGlow { 0%,100%{text-shadow:0 6px 34px rgba(0,0,0,.5), 0 0 4vmin rgba(251,191,36,.35)}
      50%{text-shadow:0 6px 34px rgba(0,0,0,.5), 0 0 9vmin rgba(251,191,36,.85)} }
    .jbf-hype-dates { margin-top:1.6vmin; color:#fff7ed; font-weight:800; font-size:clamp(18px,4vmin,34px); letter-spacing:1px; }
    .jbf-hype-go { margin-top:2.4vmin; color:#fde68a; font-weight:800; font-size:clamp(24px,6vmin,52px); animation: jbfHypeThump 1s ease-in-out infinite; }
    /* photo scenes: camera-flash cut, panning photo containers, feature pins, bobblehead overlays.
       Pin/head positions are % of the PHOTO container, so they track the pan automatically. */
    .jbf-hype-flash { position:absolute; inset:0; background:#fff; opacity:0; animation: jbfHypeFlash .5s ease-out both; z-index:5; pointer-events:none; }
    @keyframes jbfHypeFlash { from{opacity:.9} to{opacity:0} }
    .jbf-hype-panwrap { position:absolute; inset:0; overflow:hidden; }
    .jbf-hype-pan { position:absolute; top:50%; left:0; transform:translateY(-50%); }
    .jbf-hype-pan img.jbf-hype-photo, .jbf-hype-pan-d img.jbf-hype-photo { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
    /* Slide scene camera: anchored so the flume exit (image 40%,62%) sits center-screen on ANY
       viewport (left/top solve for it directly), with a slow zoom pinned to that point. */
    .jbf-hype-pan-d { position:absolute; width:max(140vw, 150vh); aspect-ratio:3/2;
      left:calc(50vw - 0.4 * max(140vw, 150vh)); top:calc(55vh - 0.41333 * max(140vw, 150vh));
      transform-origin:40% 62%; animation: jbfHypePanD 7s ease-in-out both; }
    @keyframes jbfHypePanD { from{transform:scale(1.05)} to{transform:scale(1.32)} }
    .jbf-hype-rider { position:absolute; opacity:0; will-change:transform; pointer-events:none; }
    .jbf-hype-rider .jbf-hype-head-c { animation:none; }
    .jbf-hype-splash { position:absolute; transform:translate(-50%,-50%); font-size:7vmin; pointer-events:none;
      animation: jbfHypeSplash .8s ease-out both; }
    @keyframes jbfHypeSplash { 0%{opacity:0; transform:translate(-50%,-30%) scale(.3)} 25%{opacity:1} 100%{opacity:0; transform:translate(-50%,-90%) scale(1.6)} }
    .jbf-hype-pan-a { width:max(100vw, 177.78vh); aspect-ratio:16/9; animation: jbfHypePanA 6.2s ease-in-out both; }
    @keyframes jbfHypePanA { from{transform:translateY(-50%) translateX(0) scale(1.03)} to{transform:translateY(-50%) translateX(min(0px, calc(100vw - max(100vw, 177.78vh)))) scale(1.14)} }
    .jbf-hype-pan-b { width:max(100vw, 150vh); aspect-ratio:3/2; animation: jbfHypePanB 6.2s ease-in-out both; }
    @keyframes jbfHypePanB { from{transform:translateY(-50%) translateX(0)} to{transform:translateY(-50%) translateX(min(0px, calc(100vw - max(100vw, 150vh))))} }
    .jbf-hype-pan-c { width:max(100vw, 150vh); aspect-ratio:3/2; animation: jbfHypePanC 6.2s ease-in-out both; }
    @keyframes jbfHypePanC { from{transform:translateY(-50%) translateX(min(0px, calc(100vw - max(100vw, 150vh))))} to{transform:translateY(-50%) translateX(0)} }
    .jbf-hype-pin { position:absolute; display:flex; flex-direction:column; align-items:center; gap:2px; animation: jbfHypePinPop .5s cubic-bezier(.34,1.56,.64,1) both; }
    .jbf-hype-pin-e { font-size:6vmin; line-height:1; filter:drop-shadow(0 4px 8px rgba(0,0,0,.5)); }
    .jbf-hype-pin-t { background:rgba(7,13,24,.78); color:#fff7ed; font-weight:800; font-size:12px; letter-spacing:.5px; padding:2px 10px; border-radius:999px; border:1px solid rgba(255,255,255,.25); white-space:nowrap; }
    @keyframes jbfHypePinPop { from{opacity:0; transform:translate(-50%,-90%) scale(0)} to{opacity:1; transform:translate(-50%,-90%) scale(1)} }
    .jbf-hype-head { position:absolute; display:flex; flex-direction:column; align-items:center; animation: jbfHypeHeadPop .55s cubic-bezier(.34,1.56,.64,1) both; }
    @keyframes jbfHypeHeadPop { from{opacity:0; transform:translate(-50%,-58%) scale(0) rotate(-200deg)} to{opacity:1; transform:translate(-50%,-58%) scale(1) rotate(0)} }
    .jbf-hype-head-c { width:100%; aspect-ratio:1/1; border-radius:9999px; overflow:hidden; border:3px solid rgba(255,255,255,.95);
      box-shadow:0 6px 20px rgba(0,0,0,.5); background:#25292e; animation: jbfHypeWobble 1.5s ease-in-out infinite; }
    @keyframes jbfHypeWobble { 0%,100%{transform:rotate(-9deg) translateY(0)} 50%{transform:rotate(9deg) translateY(-6%)} }
    @media (prefers-reduced-motion: reduce) {
      .jbf-hype-shake, .jbf-hype-w, .jbf-hype-palm, .jbf-hype-num, .jbf-hype-h1, .jbf-hype-go, .jbf-hype-star { animation: none !important; }
    }
  