/* THE SOLID DROP'S DIALS (toy-ui.md): a part's drop is filter: drop-shadow(), one recipe set by these. Not inherited, so a
   child never wears its parent's drop. */
@property --toy-drop{syntax:'<length>'; inherits:false; initial-value:0px}
@property --toy-drop-c{syntax:'<color>'; inherits:false; initial-value:transparent}
@property --toy-fx{syntax:'*'; inherits:false; initial-value:opacity(1)}
@property --toy-under{syntax:'*'; inherits:false; initial-value:opacity(1)}
/* THE TOY THEME, the parts both screens share: its colours and fonts, the prize wheel, the name reels, the
   chat giveaway and the guest label. play.html adds toy.css (the phone), display.html toy-display.css (the big
   screen). Every page links them: the toy theme is the only theme.
   It loads after each page's own style blocks (with toy.css / toy-display.css), so it dresses them by order - no
   html.toy prefix (the toy-base rewrite, 2026-10-26).

   The plastic recipe: a coloured trim, an ink outline around it, a darker bevel along the bottom inside,
   and a solid ink drop below (the part's thickness). Pressing sinks it by the drop. */
/* Fredoka and Lilita One come from /fonts/fonts.css, which every page that loads this sheet links itself (served from
   here, never a third party; importing it here as well registered every font twice). */

/* ===== THE 3D TOY TOKENS: one source of truth for every tactile surface (inked edges, solid extrusions, molded
   sheen, sunken recesses, the category plastics). Learned on the game picker: a solid drop with no blur reads as
   the part's thickness; a recess is an inset shadow plus an ink rim; colour is a top-to-bottom gradient. ===== */
:root {
  /* VIEWPORT UNITS, as variables: write calc(N * var(--vh)), never Nvh, in anything the phone page uses. They are the
     real units everywhere, except on a computer, where play.html scales the whole page up (html.pcz) and they become
     the scaled page's own - a bare vh still measures the real window there, and ran 3-2-1s and keyboards off its foot. */
  --vh:1vh; --vw:1vw; --dvh:1dvh; --svh:1svh; --lvh:1lvh; --dvw:1dvw; --svw:1svw; --lvw:1lvw;
  /* inked borders and solid extrusion depths */
  --toy-border-dark:4px solid var(--toy-ink-color);
  --toy-border-inset:2.5px solid var(--toy-ink-color);
  --toy-ink-color:#1E1E24;   /* THE ink: every outline, inked edge and solid drop. --t-ink aliases it; four near-identical inks
                                 (#1C1510, #2B231B, #231B15, #18181B) were folded into it. Write var(--toy-ink-color), never the hex */
  --toy-shadow-sm:0 2px 0 0 var(--toy-ink-color);
  --toy-shadow-md:0 4px 0 0 var(--toy-ink-color);
  --toy-shadow-lg:0 5px 0 0 var(--toy-ink-color);
  --toy-shadow-xl:0 6px 0 0 var(--toy-ink-color);
  /* molded surface sheen and inset recesses */
  --toy-bevel-sheen:inset 0 3px 0 0 rgba(255,255,255,.45);
  --toy-bevel-shade:inset 0 -3px 0 0 rgba(0,0,0,.22);
  --toy-porthole-recess:inset 0 4px 6px 0 rgba(0,0,0,.28);
  /* core palette and category gradients */
  --toy-bg-eggshell:#FFF8E7;
  --toy-nameplate-bg:var(--toy-ink-color);
  --toy-nameplate-text:#FFFDF5;
  --toy-grad-action:linear-gradient(180deg, #FF6B6B 0%, #D92027 100%);
  --toy-grad-puzzle:linear-gradient(180deg, #4DABF7 0%, #1864AB 100%);
  --toy-grad-trivia:linear-gradient(180deg, #38D9A9 0%, #087F5B 100%);
  --toy-grad-party:linear-gradient(180deg, #FCC419 0%, #E67700 100%);
  /* the winner's gold */
  --toy-gold:#FFE066;
  --toy-gold-halo:0 0 0 5px #FFE066, 0 0 40px 8px rgba(255,180,0,.65);
}
/* THE PORTHOLE ATOM: a sunken eggshell window for a character or a game's art, in any minigame. Size it where it is
   used; the art fills it (--toy-art-scale trims the margin built into most artwork). */
.toy-porthole { box-sizing:border-box; background:var(--toy-bg-eggshell); border:var(--toy-border-inset); border-radius:18px;
  box-shadow:var(--toy-porthole-recess); --toy-drop:0px; --toy-drop-c:transparent; --toy-under:opacity(1); overflow:hidden; display:flex; align-items:center; justify-content:center; }
.toy-porthole > img, .toy-porthole > svg { width:100%; height:100%; object-fit:contain; transform:scale(var(--toy-art-scale, 1.15)); transform-origin:center; }
.toy-porthole.round { border-radius:50%; }   /* a token-shaped window (the phone's contender pictures) */
/* THE SCALABLE STAGE: a board drawn at its design size, scaled as one piece to fill the screen (a transform, never
   zoom - zoom re-lays the page out, and its units and measurements disagree between browsers) */
.toy-scalable { transform:scale(var(--toy-stage-scale, 1)); transform-origin:center center; }

:root {
  --t-ink:var(--toy-ink-color); --t-ink2:#4A4E63;
  --t-cream:#FAF7EE; --t-cream-l:#FFFEEA; --t-cream-d:#E4DAC0;
  --t-yel:#FFC700; --t-yel-d:#D99B00; --t-yel-l:#FFE27A;
  --t-red:#E11D48; --t-red-d:#A3123A; --t-red-l:#FFD3DC; --t-orange:#FF7A45;
  --t-blue:#2563EB; --t-blue-d:#1A44A8; --t-blue-l:#D6E3FF; --t-cobalt:#2A4DB5;
  --t-grn:#10B981; --t-grn-d:#0A8A60; --t-grn-l:#C9F5E4;
  --t-floor:0 12px 18px rgba(20,20,30,.25);
  /* THE MATERIALS. Every surface is one of three, so no screen is left as flat white paper:
     - the SAND plate (--t-plate): the recessed floor of every sheet, board, tray and container;
     - the BUTTER tile (--t-tile): every card, row, chip, note and option tile that sits ON a plate, with a dark
       edge and a 1px white highlight along its top, so it reads as a raised piece;
     - the SUNK state (--t-sunk, --t-sunk-r): eliminated / losing pieces, pressed down and muted.
     Major containers then sit in a coloured CASING (yellow, cobalt, crimson: the palettes below). */
  --t-sand:#F3ECE0; --t-butter:#FFFEEA; --t-sunk:#E2E8F0; --t-sunk-r:#FEE2E2;
  --t-ivory:var(--t-butter);
  --t-plate:var(--t-sand);
  --t-tile:linear-gradient(180deg, rgba(255,255,255,.95) 0 1px, transparent 1px), var(--t-butter);
  /* the casing palettes: main plastic, its lit top edge, its shaded bottom edge, and its molded drop */
  --cy-c:#FBBF24; --cy-l:#FCD34D; --cy-d:#F59E0B; --cy-drop:#D97706;
  --cb-c:#2563EB; --cb-l:#4F86F7; --cb-d:#1E55D6; --cb-drop:#1D4ED8;
  /* THE CASING: the primary cards (the Arena Pass, the how-to card, the standings board) are two-tone toy
     hardware - a saturated plastic casing with a 4px dark edge and a molded drop, framing a recessed ivory
     window. Screw-caps sit in the casing's corners (the ::after in the section below), never on the ivory. */
  --t-case:var(--toy-ink-color);
  /* the inset play area: a dark arcade screen set into the card (the how-to demos) */
  --t-bezel:#1E293B;
  /* the warm pastel tray, for recessed slots that would otherwise be grey */
  --t-tray:#FEF9C3;
  /* the old theme's variables, re-pointed */
  --bg:#7CC7F0; --fg:var(--t-ink); --muted:var(--t-ink2); --panel:var(--t-cream); --panel2:var(--t-cream); --line:rgba(30,30,36,.16);
  --gold:var(--t-yel); --green:var(--t-grn); --red:var(--t-red); --blue:var(--t-blue); --cyan:var(--t-blue);
  --disp:'Lilita One','Fredoka',system-ui,sans-serif;
}
/* the Poké Ball in a coin token (players' avatars, until they have them) */
.tp-ball { width:70px; height:70px; border-radius:50%; border:4px solid var(--t-ink); position:relative;
  background:linear-gradient(180deg, var(--t-red) 0 46%, var(--t-ink) 46% 54%, #fff 54%); box-shadow:inset -6px -6px 0 rgba(0,0,0,.12), inset 6px 6px 0 rgba(255,255,255,.35); --toy-drop:0px; --toy-drop-c:transparent; --toy-under:opacity(1); }
.tp-ball::after { content:''; position:absolute; left:50%; top:50%; width:22px; height:22px; transform:translate(-50%,-50%); border-radius:50%; background:#fff; border:4px solid var(--t-ink); }

@keyframes toySpinBob { 50% { transform:translateY(-.8cqw) scale(1.02); } }

/* ===== THE CHAT GIVEAWAY: its toy look is its own stylesheet now (giveaway-stage.css) ===== */

/* ---- a guest's name: plain muted (Guest) after it, a label rather than a badge ---- */
.gtag, .whopill.guest::after { color:var(--t-ink2); font-family:'Fredoka',sans-serif; font-weight:600; }
.whopill .gtag, .whopill.guest::after { color:#DCE4FF; }   /* on the cobalt name pill */

/* (shared: the phones' how-to cards and the big screen's how-to overlay play the same demos) */
/* ---- the how-to demos: a dark arcade screen set into the card (--t-bezel), the demos' parts in toy plastic ---- */
/* Split Decision */
.d-sv-m { --toy-fx:drop-shadow(1.5px 0 0 #fff) drop-shadow(-1.5px 0 0 #fff) drop-shadow(0 1.5px 0 #fff) drop-shadow(0 -1.5px 0 #fff) drop-shadow(0 2px 0 rgba(30,30,36,.35)); filter:var(--toy-fx, opacity(1)) drop-shadow(0 var(--toy-drop, 0px) 0 var(--toy-drop-c, transparent)) var(--toy-under, opacity(1)); }
.d-sv-vs { font-family:'Lilita One',sans-serif; color:#fff; -webkit-text-stroke:1.5px var(--t-ink); paint-order:stroke fill; padding:1cqw 3cqw; border-radius:99px; background:var(--t-yel); border:2px solid var(--t-ink); box-shadow:none; --toy-drop:2px; --toy-drop-c:var(--t-ink); --toy-under:opacity(1); filter:var(--toy-fx, opacity(1)) drop-shadow(0 var(--toy-drop, 0px) 0 var(--toy-drop-c, transparent)) var(--toy-under, opacity(1))}
/* Pick a Number: ivory keys, red for the clash, green for the safe one */
/* A lit key recolours its lip with its face (inset, --pn-lip): a red or green face over the ivory lip read as a half-
   filled key (2026-11-09). npm run ui:check's lip check holds every key to this. */
.d-pn-t { --pn-drop:0 .6cqw 0 var(--t-ink), 0 .4cqw 0 var(--t-ink), 0 .2cqw 0 var(--t-ink); font-family:'Lilita One',sans-serif; color:var(--t-ink); background:var(--t-cream-l); border:2px solid var(--t-ink); box-shadow:inset 0 -1.4cqw 0 var(--t-cream-d), var(--pn-drop); --toy-drop:0px; --toy-drop-c:transparent; --toy-under:opacity(1); }
.d-pn-t.dup { animation-name:toyPnBoom; } .d-pn-t.safe { animation-name:toyPnSafe; }
.d-pn-t.dup::after { background:var(--t-red); border:1.5px solid var(--t-ink); }
@keyframes toyPnBoom { 0%,45% { background:var(--t-cream-l); box-shadow:inset 0 -1.4cqw 0 var(--t-cream-d), var(--pn-drop); color:var(--t-ink); transform:scale(1); } 56%,84% { background:var(--t-red); box-shadow:inset 0 -1.4cqw 0 var(--t-red-d), var(--pn-drop); color:#fff; transform:scale(.88); } 100% { background:var(--t-cream-l); box-shadow:inset 0 -1.4cqw 0 var(--t-cream-d), var(--pn-drop); color:var(--t-ink); transform:scale(1); } }
@keyframes toyPnSafe { 0%,45% { background:var(--t-cream-l); box-shadow:inset 0 -1.4cqw 0 var(--t-cream-d), var(--pn-drop); color:var(--t-ink); } 56%,84% { background:var(--t-grn); box-shadow:inset 0 -1.4cqw 0 var(--t-grn-d), var(--pn-drop); color:#fff; } 100% { background:var(--t-cream-l); box-shadow:inset 0 -1.4cqw 0 var(--t-cream-d), var(--pn-drop); color:var(--t-ink); } }
/* Hot Takes: a red side and a blue side, the crowd's side swelling gold */
.d-ht-s { font-family:'Lilita One',sans-serif; color:#fff; -webkit-text-stroke:1.5px var(--t-ink); paint-order:stroke fill; border:2.5px solid var(--t-ink); box-shadow:inset 0 -1.6cqw 0 rgba(0,0,0,.2); --toy-drop:0.7cqw; --toy-drop-c:var(--t-ink); --toy-under:opacity(1);
  background:linear-gradient(180deg, #5B8DF5, var(--t-blue)); filter:var(--toy-fx, opacity(1)) drop-shadow(0 var(--toy-drop, 0px) 0 var(--toy-drop-c, transparent)) var(--toy-under, opacity(1))}
.d-ht-s.a { background:linear-gradient(180deg, #FF6B7E, var(--t-red)); animation-name:toyHtWin; }
@keyframes toyHtWin { 0%,45% { flex:1; filter:drop-shadow(0 var(--toy-drop, 0px) 0 var(--toy-drop-c, transparent)) var(--toy-under, opacity(1)); } 60%,90% { flex:1.5; filter:brightness(1.12) drop-shadow(0 0 2.4cqw rgba(255,199,0,.9)) drop-shadow(0 var(--toy-drop, 0px) 0 var(--toy-drop-c, transparent)) var(--toy-under, opacity(1)); } 100% { flex:1; filter:drop-shadow(0 var(--toy-drop, 0px) 0 var(--toy-drop-c, transparent)) var(--toy-under, opacity(1)); } }
.d-ht-q { -webkit-text-stroke:1.5px var(--t-ink); paint-order:stroke fill; text-shadow:0 2px 0 var(--t-ink),0 1.5px 0 var(--t-ink),0 1px 0 var(--t-ink),0 0.5px 0 var(--t-ink); }
.d-ht-s b { font-weight:400; }
.d-ht-s em { font-family:'Lilita One',sans-serif; padding:0 2cqw; border-radius:99px; background:var(--t-ink); -webkit-text-stroke:0; }
/* Match-Up: two players' guesses on ivory chips */
.d-mu-b { font-family:'Lilita One',sans-serif; color:var(--t-ink); background:var(--t-cream-l); border:2px solid var(--t-ink); box-shadow:none; --toy-drop:0.6cqw; --toy-drop-c:var(--t-ink); --toy-under:opacity(1); filter:var(--toy-fx, opacity(1)) drop-shadow(0 var(--toy-drop, 0px) 0 var(--toy-drop-c, transparent)) var(--toy-under, opacity(1))}
/* the pages' own dmuMatch animates the chip's background to near-clear (it was drawn for the dark theme), which
   left ink names on a see-through chip: invisible on the demo's dark screen. The toy chip keeps its plastic and
   lights green on the match instead. */
.d-mu-b { animation-name:toyMuMatch; }
@keyframes toyMuMatch { 0%,50% { background:var(--t-cream-l); border-color:var(--t-ink); } 60%,90% { background:var(--t-grn-l); border-color:var(--t-grn-d); } 100% { background:var(--t-cream-l); border-color:var(--t-ink); } }
.ptut-demo .d-mu-eq, .tut-demo .d-mu-eq { color:#34D399; }
.d-mu-av { background:linear-gradient(180deg, #5B8DF5, var(--t-blue)); box-shadow:0 0 0 .6cqw var(--t-ink); --toy-drop:0px; --toy-drop-c:transparent; --toy-under:opacity(1); } .d-mu-av.b { background:linear-gradient(180deg, #FF6B7E, var(--t-red)); }
.d-mu-eq { font-family:'Lilita One',sans-serif; color:var(--t-grn); -webkit-text-stroke:1.2px var(--t-ink); paint-order:stroke fill; }
/* Last Tap: the caption in ink */
.dlp-cap { color:#E6EAF2; font-family:'Lilita One',sans-serif; font-weight:400; letter-spacing:.02em; }   /* light: it sits on the demo's dark screen (ink2 was all but invisible there) */
.dlp-btn { border:2.5px solid var(--t-ink); font-family:'Lilita One',sans-serif; color:#fff; -webkit-text-stroke:1.5px var(--t-ink); paint-order:stroke fill; }
/* GRIDLOCK'S HOW-TO PUZZLE (tutorials.js RushDemo), drawn by both screens: the board in cqw of its box (the phone's
   .ptut-demo; the big screen's .d-rhwrap) */
.d-rhwrap{ container-type:inline-size; width:100%; display:grid; place-items:center; }
.d-rhb{ position:relative; width:84cqw; height:84cqw; border:2px solid #2b3446; border-radius:4cqw; }
.d-rhb-c{ position:absolute; border-radius:1.4cqw; }
.d-rhb-v{ position:absolute; border-radius:2.4cqw; }
.d-rhb-v.t{ animation:drhbGlow 1.7s ease-in-out infinite; }
.d-rhb-v.t:active{ cursor:grabbing; }
@keyframes drhbGlow{ 0%,100%{ box-shadow:inset 0 1.6px 0 rgba(255,255,255,.3), 0 0 9px rgba(224,36,36,.5), 0 2px 5px rgba(0,0,0,.4); } 50%{ box-shadow:inset 0 1.6px 0 rgba(255,255,255,.3), 0 0 20px rgba(224,36,36,.9), 0 2px 5px rgba(0,0,0,.4); } }
.d-rhb::before{ content:'✓ Nice!'; position:absolute; left:50%; top:50%; z-index:5; translate:-50% -50%; padding:1.4cqw 4cqw 1.8cqw; border-radius:3cqw; white-space:nowrap;
  font-family:'Lilita One',sans-serif; font-size:9cqw; color:var(--toy-ink-color); background:linear-gradient(180deg, #FFE066, #F5A623); border:var(--toy-border-dark); box-shadow:var(--toy-bevel-sheen); --toy-drop:2px; --toy-drop-c:var(--toy-ink-color); --toy-under:opacity(1); opacity:0; transition:opacity .25s; pointer-events:none; filter:var(--toy-fx, opacity(1)) drop-shadow(0 var(--toy-drop, 0px) 0 var(--toy-drop-c, transparent)) var(--toy-under, opacity(1))}
.d-rhb.won::before{ opacity:1; }
.d-rhb.won{ box-shadow:0 0 0 2px #10B981, 0 0 26px rgba(16,185,129,.5); --toy-drop:0px; --toy-drop-c:transparent; --toy-under:opacity(1); }
.d-rhb-v::after{ content:''; position:absolute; background:rgba(255,255,255,.15); border-radius:999px; }  /* centre grip rail = slide axis */
.d-rhb-v.h::after{ top:50%; left:22%; right:22%; height:1.5cqw; transform:translateY(-50%); }
.d-rhb-v.v::after{ left:50%; top:22%; bottom:22%; width:1.5cqw; transform:translateX(-50%); }
.d-rhb-v.t::after{ background:rgba(255,255,255,.32); }
.d-rhb-gate{ position:absolute; right:-2px; width:2.6cqw; border-radius:0 2cqw 2cqw 0; }  /* wall cut-out at the exit row */
.d-rhb-ex{ position:absolute; font-family:'Lilita One',sans-serif; font-weight:400; font-size:8cqw; animation:drhbEx 1.3s ease-in-out infinite; }
@keyframes drhbEx{ 0%,100%{ transform:translate(-50%,-50%) translateX(-1cqw) } 50%{ transform:translate(-50%,-50%) translateX(1cqw) } }
/* Gridlock: the same ivory tray as the game */
.d-rhb { background:#E7DEC5; border:2.5px solid var(--t-blue); box-shadow:0 0 0 2px var(--t-ink), 0 .7cqw 0 2px var(--t-ink), 0 .467cqw 0 2px var(--t-ink), 0 .233cqw 0 2px var(--t-ink); --toy-drop:0px; --toy-drop-c:transparent; --toy-under:opacity(1); }
.d-rhb-c { background:#F7F2E3; box-shadow:inset 0 .8cqw 0 rgba(30,30,36,.12); --toy-drop:0px; --toy-drop-c:transparent; --toy-under:opacity(1); }
.d-rhb-gate { background:var(--t-grn); box-shadow:inset 0 0 0 1.5px var(--t-ink); --toy-drop:0px; --toy-drop-c:transparent; --toy-under:opacity(1); }   /* the gap in the wall: the exit */
.d-rhb-exit { position:absolute; }   /* the EXIT sign (.gl-exit) on the exit square's floor, under the pieces */
.d-rhb-v { border:0; border-radius:0; box-shadow:none; --toy-drop:0px; --toy-drop-c:transparent; --toy-under:opacity(1); --toy-fx:opacity(1); animation:none; }   /* the sprites (.gl-blk) carry their own outline and lip */
.d-rhb-v::after { display:none; }   /* the old centre grip rail */
.d-rhb-ex { color:var(--t-grn); --toy-fx:drop-shadow(0 .6cqw 0 var(--t-ink)); filter:var(--toy-fx, opacity(1)) drop-shadow(0 var(--toy-drop, 0px) 0 var(--toy-drop-c, transparent)) var(--toy-under, opacity(1)); }
/* Word Rush: ivory tiles; the guesses land in toy green and gold */
/* (the demo types each guess in ink on a white tile, then flips it to its colour: the old keyframes typed white on dark) */
.d-wr-t { font-family:'Lilita One',sans-serif; border-width:2px; animation-name:toyWrA; -webkit-text-stroke:1.4px transparent; paint-order:stroke fill; }
.d-wr-row:nth-child(2) .d-wr-t { animation-name:toyWrB; } .d-wr-row:nth-child(3) .d-wr-t { animation-name:toyWrC; }
@keyframes toyWrA { 0%,3% { color:transparent; -webkit-text-stroke-color:transparent; background:#F3EDDC; border-color:#CDBF9C; transform:scale(1); } 5% { color:var(--t-ink); background:#fff; border-color:var(--t-ink); transform:scale(1.08); } 7% { transform:scale(1); } 13% { color:var(--t-ink); background:#fff; border-color:var(--t-ink); } 17%,88% { color:#fff; -webkit-text-stroke-color:var(--t-ink); background:var(--c); border-color:var(--t-ink); } 93%,100% { color:transparent; -webkit-text-stroke-color:transparent; background:#F3EDDC; border-color:#CDBF9C; } }
@keyframes toyWrB { 0%,23% { color:transparent; -webkit-text-stroke-color:transparent; background:#F3EDDC; border-color:#CDBF9C; transform:scale(1); } 25% { color:var(--t-ink); background:#fff; border-color:var(--t-ink); transform:scale(1.08); } 27% { transform:scale(1); } 33% { color:var(--t-ink); background:#fff; border-color:var(--t-ink); } 37%,88% { color:#fff; -webkit-text-stroke-color:var(--t-ink); background:var(--c); border-color:var(--t-ink); } 93%,100% { color:transparent; -webkit-text-stroke-color:transparent; background:#F3EDDC; border-color:#CDBF9C; } }
@keyframes toyWrC { 0%,43% { color:transparent; -webkit-text-stroke-color:transparent; background:#F3EDDC; border-color:#CDBF9C; transform:scale(1); } 45% { color:var(--t-ink); background:#fff; border-color:var(--t-ink); transform:scale(1.08); } 47% { transform:scale(1); } 53% { color:var(--t-ink); background:#fff; border-color:var(--t-ink); } 57%,88% { color:#fff; -webkit-text-stroke-color:var(--t-ink); background:var(--c); border-color:var(--t-ink); } 93%,100% { color:transparent; -webkit-text-stroke-color:transparent; background:#F3EDDC; border-color:#CDBF9C; } }
.d-wr-t.g { --c:var(--t-grn); } .d-wr-t.y { --c:var(--t-yel); } .d-wr-t.x { --c:#8A90A6; }
/* Pop Quiz: ink text, ivory answers that turn green or red */
.d-pq-q { color:var(--t-ink); }
.d-pq-o { font-family:'Lilita One',sans-serif; font-weight:400; color:var(--t-ink); background:var(--t-cream-l); border:2px solid var(--t-ink); box-shadow:none; --toy-drop:0.5cqw; --toy-drop-c:var(--t-ink); --toy-under:opacity(1); filter:var(--toy-fx, opacity(1)) drop-shadow(0 var(--toy-drop, 0px) 0 var(--toy-drop-c, transparent)) var(--toy-under, opacity(1))}
.d-pq-o.a { animation-name:toyPqRight; } .d-pq-o.b { animation-name:toyPqWrong; }
@keyframes toyPqRight { 0%,24% { background:var(--t-cream-l); color:var(--t-ink); } 30%,45% { background:var(--t-grn); color:#fff; } 50%,100% { background:var(--t-cream-l); color:var(--t-ink); } }
@keyframes toyPqWrong { 0%,74% { background:var(--t-cream-l); color:var(--t-ink); } 80%,95% { background:var(--t-red); color:#fff; } 100% { background:var(--t-cream-l); color:var(--t-ink); } }
.d-pq-pass { color:var(--t-ink2); border-color:var(--t-ink2); }
.d-pq-bar { background:rgba(30,30,36,.15); } .d-pq-bar i { background:var(--t-grn); }
/* on the dark screen of the demo bezel: the quiz's own words go light */
.ptut-demo .d-pq-q, .tut-demo .d-pq-q { color:#fff; }
.ptut-demo .d-pq-pass, .tut-demo .d-pq-pass { color:#CBD5E1; border-color:#64748B; }
.ptut-demo .d-pq-bar, .tut-demo .d-pq-bar { background:rgba(255,255,255,.16); }

/* ---- a coin's avatar (avatar.js): the artwork fills the coin, a little over its rim, as a sticker ---- */
.tp-av { display:block; width:118%; height:118%; margin-top:-12%; object-fit:contain; pointer-events:none;
  --toy-fx:drop-shadow(0 2px 1px rgba(30,30,36,.35)); filter:var(--toy-fx, opacity(1)) drop-shadow(0 var(--toy-drop, 0px) 0 var(--toy-drop-c, transparent)) var(--toy-under, opacity(1)); }   /* the art's own black outline meets the coin: no white sticker edge */

/* ===== TOY HARDWARE: rivets on the primary cards, the dark screen bezel for the demos =====
   Both screens. Which cards are primary, and the casing itself, are set in toy.css (phone) and toy-display.css
   (big screen); these are the parts that look the same on both. */
/* the four corner screw-caps, molded into the coloured casing: a dome in the casing's own colour (--rv-c, its
   rim --rv-d) catching light top-left. Drawn on an overlay so nothing else on the card moves; --rv places them
   (from the padding edge, so negative reaches into a border), --rv-s sizes them. */
.tp::after, .ptut::after, .tut-card::after, .stt-card::after, .pk::after {
  --s:var(--rv-s, 10px);
  --cap:radial-gradient(circle closest-side, var(--rv-c) 0 52%, var(--rv-d) 66%, var(--t-case) 74% 90%, transparent 100%);
  --hl:radial-gradient(circle at 38% 34%, rgba(255,255,255,.95) 0 11%, transparent 20%);
  content:''; position:absolute; inset:var(--rv, 8px); z-index:5; pointer-events:none;
  background:var(--hl) left top / var(--s) var(--s) no-repeat, var(--hl) right top / var(--s) var(--s) no-repeat,
             var(--hl) left bottom / var(--s) var(--s) no-repeat, var(--hl) right bottom / var(--s) var(--s) no-repeat,
             var(--cap) left top / var(--s) var(--s) no-repeat, var(--cap) right top / var(--s) var(--s) no-repeat,
             var(--cap) left bottom / var(--s) var(--s) no-repeat, var(--cap) right bottom / var(--s) var(--s) no-repeat; }

/* the demo window: a dark screen in a 3px case-black stroke, glass catching light along its top */
/* THE SIMULATED DISPLAY (a how-to card's live demo): the porthole's construction - an ink rim, sunk in, 18px
   corners, no raised drop - round a DARK screen, because the demos are live mini-games drawn for one (white quiz
   text, green MATCH, +1 pops). A live canvas never sits on eggshell. TOY-UI-ARCHITECTURE.md. */
.ptut-demo, .tut-demo { background:radial-gradient(ellipse 90% 55% at 50% 0%, rgba(255,255,255,.07), transparent 70%), var(--t-bezel);
  border:var(--toy-border-inset); border-radius:18px; box-shadow:var(--toy-porthole-recess), inset 0 0 0 3px rgba(255,255,255,.06); --toy-drop:0px; --toy-drop-c:transparent; --toy-under:opacity(1); }

/* ===== GRIDLOCK'S BLOCKS (the phone's play.html and the big screen's display.html both draw the board): one picture per
   piece, chosen by its shape - data-k is h2 / h3 / v2 / v3 plus a, b or c from its letter (two or three looks per
   shape), or x for the red target. Pokemon-themed sprites, built at each shape's proportions by
   tools/build-gridlock-sprites.py from art-source/gridlock-sheet.jpg; each carries its own outline and lip. The EXIT
   sign lies on the floor of the exit square, under the pieces: a block parked on the exit covers it, as it would. */
.gl-blk[data-k] { background-position:center; background-size:100% 100%; background-repeat:no-repeat; }   /* [data-k]: outranks the plain theme's .rh-veh.target */
.gl-blk[data-k="x"] { background-image:url(toy/gridlock/hero.webp); }
.gl-blk[data-k="h2a"] { background-image:url(toy/gridlock/rock.webp); }
.gl-blk[data-k="h2b"] { background-image:url(toy/gridlock/ghost.webp); }
.gl-blk[data-k="h2c"] { background-image:url(toy/gridlock/hedge-h.webp); }
.gl-blk:is([data-k="h3a"], [data-k="h3b"], [data-k="h3c"]) { background-image:url(toy/gridlock/snorlax.webp); }
.gl-blk[data-k="v2a"] { background-image:url(toy/gridlock/hedge.webp); }
.gl-blk[data-k="v2b"] { background-image:url(toy/gridlock/rock-v.webp); }
.gl-blk[data-k="v2c"] { background-image:url(toy/gridlock/ghost-v.webp); }
.gl-blk:is([data-k="v3a"], [data-k="v3c"]) { background-image:url(toy/gridlock/water.webp); }
.gl-blk[data-k="v3b"] { background-image:url(toy/gridlock/water2.webp); }
.gl-exit { background:url(toy/gridlock/exit.webp) center / 92% auto no-repeat; }
.gl-exit > svg { display:none; }

/* ===== A TWITCH SUBSCRIBER (accounts/twitch-subs.js): the tier's icon after a name that has no coin to carry it
   (the big screen's lobby bubbles and points board). Everywhere with a coin, the tier is on its level pill (.lvb-sub). */
.subi { display:inline-flex; margin-left:.3em; vertical-align:-.1em; }
.subi .sbi { height:.9em; width:auto; display:block; }
.ac-chip.subchip { color:#fff; background:linear-gradient(180deg, #A970FF, #9146FF); border-color:var(--t-case); }

/* a name with tags after it (season badge, Guest, the sub icon): the NAME shortens to fit, the tags never get cut.
   `.lbt-p > b`, not `.lbt-p b`: the coin's level pill is a <b> in the same card, and must not be styled as a name */
.st-name, .stt-nm, .stt-rn, .lbt-p > b, .gsb-nm, .go-t5nm { display:flex; align-items:center; min-width:0; }
.stt-nm, .lbt-p > b { justify-content:center; }
.nmx { flex:0 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.st-name > :not(.nmx), .stt-nm > :not(.nmx), .stt-rn > :not(.nmx), .lbt-p > b > :not(.nmx), .gsb-nm > :not(.nmx), .go-t5nm > :not(.nmx) { flex:0 0 auto; }

/* the bleachers' coins scale with the crowd; their bezel is a crisp ~3px ink line at the usual sizes, like the rank rims */
body .lbt-p:not(.more) .lbt-tok { border-width:max(2px, calc(var(--tok) * .034)); }
/* art that sits low in its frame, lifted to the middle of the coin */
.tp-av[data-av="trubbish"] { transform:translateY(-9%); }

.lvb { position:absolute; z-index:4; left:50%; bottom:-16%; transform:translateX(-50%); min-width:1.5em; text-align:center; padding:.1em .38em .14em;
  border-radius:99px; white-space:nowrap; pointer-events:none; font-family:'Lilita One',sans-serif; font-weight:400; font-style:normal; font-size:max(10px, 24cqw); line-height:1;
  color:#fff; background:linear-gradient(180deg, #3B4A6B, #1E2A44); border:max(1.5px, 2.6cqw) solid var(--toy-ink-color);
  box-shadow:inset 0 0 0 max(1px, 1.6cqw) var(--lv-rim), 0 max(1px, 2.4cqw) 0 var(--toy-ink-color); --toy-drop:0px; --toy-drop-c:transparent; --toy-under:opacity(1); letter-spacing:.02em; }
.lvb-bronze { --lv-rim:#E0A472; } .lvb-silver { --lv-rim:#D7DEE8; } .lvb-gold { --lv-rim:#FFC700; }
.lvb-prism { --lv-rim:#C4B5FD; box-shadow:0 max(1px, 2.4cqw) 0 var(--toy-ink-color); --toy-drop:0px; --toy-drop-c:transparent; --toy-under:opacity(1);
  background:linear-gradient(180deg, #3B4A6B, #1E2A44) padding-box, conic-gradient(from 200deg, #60A5FA, #A78BFA, #F472B6, #FBBF24, #34D399, #60A5FA) border-box; border-color:transparent; }
@container (max-width:48px) { .lvb { font-size:max(10px, 28cqw); } }   /* small coins (list rows): a bigger share of the coin */
/* a Twitch sub's pill (avatar.js badge): split in two, so the level reads at a list row's size. Left, the tier on
   its own colour - Tier 1 purple + star, Tier 2 magenta + gem, Tier 3 deep indigo + crown; right, the level in heavy
   ink on a light shield - ivory, gold, silver-holo. One thick ink outline round both; no level metal (the number
   says the level). With no level yet, the left half alone. Tier 3 adds sparkles on the pill's corners. */
.lvb-sub { display:flex; align-items:stretch; padding:0; overflow:visible; background:none; text-shadow:none;
  box-shadow:0 max(1px, 2.4cqw) 0 var(--toy-ink-color); --toy-drop:0px; --toy-drop-c:transparent; --toy-under:opacity(1); }
.lvb-sub > span { display:flex; align-items:center; justify-content:center; }
/* the icon fills its half top to bottom: no padding of its own above or below, so it is as tall as the number's box */
.lvs-ic { padding:0 .16em 0 .24em; border-radius:99px 0 0 99px; border-right:max(1px, 1.6cqw) solid var(--toy-ink-color); }
.lvs-ic:last-child { padding:.06em .26em; border-radius:99px; border-right:0; }
.lvs-ic .sbi { display:block; height:1.06em; width:auto; }
.lvs-n { padding:.1em .32em .14em .2em; border-radius:0 99px 99px 0; color:var(--toy-ink-color); }
.lvb-t1 .lvs-ic { background:linear-gradient(180deg, #9146FF, #5B21B6); }
.lvb-t2 .lvs-ic { background:linear-gradient(180deg, #D946EF, #A21CAF); }
.lvb-t3 .lvs-ic { background:linear-gradient(180deg, #4338CA, #1E1B4B); }
.lvb-t1 .lvs-n { background:linear-gradient(180deg, #FFFDF5, #F1E6C8); }
.lvb-t2 .lvs-n { background:linear-gradient(180deg, #FFE58A, #F5B700); }
.lvb-t3 .lvs-n { background:linear-gradient(115deg, #E5E7EB, #F5D0FE 35%, #FEF3C7 55%, #CFFAFE 75%, #E5E7EB); }
.lvb-t3::before, .lvb-t3::after { content:''; position:absolute; z-index:2; top:-.38em; left:-.22em; width:.62em; height:.62em;
  background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M10 0 C11 7 13 9 20 10 C13 11 11 13 10 20 C9 13 7 11 0 10 C7 9 9 7 10 0Z' fill='%23FFF6C8' stroke='%231E1E24' stroke-width='1.6'/></svg>") center/contain no-repeat; }
.lvb-t3::after { left:auto; right:-.22em; top:-.3em; width:.48em; height:.48em; }
.rkr { position:absolute; inset:-14%; border-radius:50%; z-index:1; pointer-events:none; }
/* RUMBLE ARENA'S DAMAGE NUMBERS (brawl-pixel.js numsInto, Daniel 2026-11-29: "make hits feel punchier"): ten times the HP
   (30, not -3), in the toy type with an ink outline and a stepped drop, so a number never melts into a sprite's pixels. A plain
   hit ivory, a heavy one (a special, a super-effective hit) gold, a third bigger with a ! and an elastic pop, a hit on you red,
   a resisted one grey. Each pops in, rises a little (draw() moves it) and fades. --bp-num: the size, set by each screen's layer */
.bp-num { position:absolute; translate:-50% -50%; font-family:'Lilita One',sans-serif; font-weight:normal; font-size:var(--bp-num, 18px); line-height:1; white-space:nowrap;
  color:#FFFBEB; -webkit-text-stroke:calc(var(--bp-num, 18px) * .16) var(--toy-ink-color); paint-order:stroke fill;
  text-shadow:0 .12em 0 var(--toy-ink-color), 0 .09em 0 var(--toy-ink-color), 0 .06em 0 var(--toy-ink-color), 0 .03em 0 var(--toy-ink-color);
  animation:bpNum .8s ease-out forwards; }
.bp-num.heavy { font-size:calc(var(--bp-num, 18px) * 1.35); color:#FFC700; animation:bpHeavy .8s ease-out forwards; }
.bp-num.hurt { color:#FF6B6B; }
.bp-num.weak { color:#CED4DA; }
@keyframes bpNum { 0% { scale:.5; opacity:1; } 20% { scale:1.12; } 32% { scale:1; } 72% { opacity:1; } 100% { scale:1; opacity:0; } }
@keyframes bpHeavy { 0% { scale:.3; opacity:1; } 16% { scale:1.4; } 26% { scale:.9; } 36% { scale:1.06; } 46% { scale:1; } 74% { opacity:1; } 100% { scale:1; opacity:0; } }
/* THE MEDAL: the Arena Pass's sunburst in its gold bezel round a player's coin and rank ring, sized by --md (the broadcast
   lanes' --u steps, or a screen's own px: Rumble Arena's big screen and phones, arena-big.js / arena-stage.js medal) */
.bca-medal{ --md:calc(52 * var(--u)); z-index:1; width:var(--md); height:var(--md); flex:none; border-radius:50%; position:relative; display:grid; place-items:center; margin:calc(var(--md) * .08);
  background:radial-gradient(circle at 50% 42%,#9FD8FF 0 18%,#4FA3F7 42%,#2563EB 70%,#1A44A8); border:max(1.5px, calc(var(--md) * .045)) solid var(--toy-ink-color);
  box-shadow:inset 0 0 0 calc(var(--md) * .036) rgba(255,255,255,.25), inset 0 calc(var(--md) * -.09) calc(var(--md) * .125) rgba(10,30,90,.45),
    0 0 0 calc(var(--md) * .07) #FFC700, 0 0 0 calc(var(--md) * .09) #FFE27A, 0 0 0 calc(var(--md) * .125) var(--toy-ink-color), 0 calc(var(--md) * .054) 0 calc(var(--md) * .125) var(--toy-ink-color); --toy-drop:0px; --toy-drop-c:transparent; --toy-under:opacity(1); }
.bca-medal.sm{ --md:calc(19 * var(--u)); margin:0 calc(3 * var(--u)); }
.bca-medal::before{ content:''; position:absolute; inset:0; border-radius:50%; background:repeating-conic-gradient(from 0deg, rgba(255,255,255,.2) 0 8deg, transparent 8deg 16deg);
  -webkit-mask-image:radial-gradient(circle, transparent 0 22%, #000 46%); mask-image:radial-gradient(circle, transparent 0 22%, #000 46%); }
.bca-medal .tp-av{ position:relative; z-index:1; width:118%; height:118%; margin-top:-12%; object-fit:contain; --toy-fx:drop-shadow(0 calc(2 * var(--u)) 0 rgba(10,20,60,.45)); filter:var(--toy-fx, opacity(1)) drop-shadow(0 var(--toy-drop, 0px) 0 var(--toy-drop-c, transparent)) var(--toy-under, opacity(1)); }
.bca-medal .tp-ball{ position:relative; z-index:1; width:62%; height:62%; border-width:max(1.5px, calc(var(--md) * .04)); }
.bca-medal .tp-ball::after{ width:30%; height:30%; border-width:max(1.5px, calc(var(--md) * .035)); }   /* (the ball's own button is a fixed 22px: a small medal was all button) */
.bca-medal .rkr{ z-index:2; }
.rkr-trainer { background:radial-gradient(circle closest-side, transparent 0 77.5%, var(--toy-ink-color) 78% 79%, #34D399 79.5%, #10B981 83%, #047857 86.5%, var(--toy-ink-color) 87.5% 93%, transparent 94.5%); }
@property --rkg { syntax:'<angle>'; inherits:false; initial-value:0deg; }
.rkr-ace { inset:-19%;
  background:conic-gradient(from var(--rkg), transparent 0 330deg, rgba(255,255,255,.95) 345deg, transparent 360deg),
    radial-gradient(circle closest-side, transparent 66%, #1E3A8A 67.5%, #2563EB 71%, #93C5FD 75.5%, #1E40AF 79%, var(--toy-ink-color) 81%, #E5E7EB 83%, #9CA3AF 89%, #F3F4F6 92%, var(--toy-ink-color) 94%, transparent 96%);
  -webkit-mask:radial-gradient(circle closest-side, transparent 65%, #000 66% 95%, transparent 96.5%); mask:radial-gradient(circle closest-side, transparent 65%, #000 66% 95%, transparent 96.5%);
  --toy-fx:drop-shadow(0 0 .35em rgba(59,130,246,.75)); filter:var(--toy-fx, opacity(1)) drop-shadow(0 var(--toy-drop, 0px) 0 var(--toy-drop-c, transparent)) var(--toy-under, opacity(1)); animation:rkGlint 2.6s cubic-bezier(.45,0,.2,1) infinite; }
@keyframes rkGlint { to { --rkg:360deg; } }
@property --rka { syntax:'<angle>'; inherits:false; initial-value:0deg; }
.rkr-legend { background:conic-gradient(from var(--rka), #F472B6, #FBBF24, #34D399, #60A5FA, #A78BFA, #F472B6);
  -webkit-mask:radial-gradient(circle closest-side, transparent 78%, #000 80% 95%, transparent 97%); mask:radial-gradient(circle closest-side, transparent 78%, #000 80% 95%, transparent 97%);
  animation:rkHolo 3s linear infinite; }
@keyframes rkHolo { to { --rka:360deg; } }
/* the halo: its own layer under the ring, starting at the coin's edge so the face behind the Pokemon stays clean */
.rkr-halo { inset:-34%;
  background:radial-gradient(circle at 14% 22%, #fff 0 2.2%, rgba(255,255,255,0) 4%), radial-gradient(circle at 86% 74%, #fff 0 1.8%, rgba(255,255,255,0) 3.4%),
    radial-gradient(circle closest-side, transparent 0 58%, rgba(255,214,120,.85) 63%, rgba(244,114,182,.45) 76%, rgba(244,114,182,0) 100%);
  animation:rkPulse 1.8s ease-in-out infinite; }
@keyframes rkPulse { 50% { opacity:.55; transform:scale(1.07) rotate(8deg); } }
@media (prefers-reduced-motion:reduce) { .rkr-ace, .rkr-legend, .rkr-halo { animation:none; } }

/* GAME MASTER (the host, from GAMEMASTERS): the GM shield's colours - a deep navy channel between two neon rims, cyan and
   magenta arcs chasing round it in opposite directions, a cool violet glow. Nobody else can wear it. */
@property --rkm { syntax:'<angle>'; inherits:false; initial-value:0deg; }
.rkr-gm { inset:-19%;
  background:conic-gradient(from var(--rkm), transparent 0 40deg, #22D3EE 80deg, transparent 120deg, transparent 220deg, #F0ABFC 260deg, transparent 300deg),
    radial-gradient(circle closest-side, transparent 66%, var(--toy-ink-color) 67%, #67E8F9 69% 71%, #1E1B4B 72% 86%, #E879F9 87% 89%, var(--toy-ink-color) 90% 92%, transparent 94%);
  -webkit-mask:radial-gradient(circle closest-side, transparent 65%, #000 66% 93%, transparent 95%); mask:radial-gradient(circle closest-side, transparent 65%, #000 66% 93%, transparent 95%);
  --toy-fx:drop-shadow(0 0 .4em rgba(167,139,250,.85)); filter:var(--toy-fx, opacity(1)) drop-shadow(0 var(--toy-drop, 0px) 0 var(--toy-drop-c, transparent)) var(--toy-under, opacity(1)); animation:rkGm 3.2s linear infinite; }
@keyframes rkGm { to { --rkm:360deg; } }
@media (prefers-reduced-motion:reduce) { .rkr-gm { animation:none; } }
.ac-dc-rank.rk-gm { background:linear-gradient(90deg, #ECFEFF, #F5F3FF, #FDF4FF); box-shadow:0 0 0 2px #A78BFA, 0 2px 0 2px var(--t-case), 0 1px 0 2px var(--t-case); --toy-drop:0px; --toy-drop-c:transparent; --toy-under:opacity(1); }

/* on a phone the board fits the screen (play.html fitScreen): it narrows, and so shortens, until it does */
.gw-host { width:calc(100% * var(--sf,1)); margin:0 auto; }

/* ===== PICKER, ROUND 4: no clipping, bigger art, hard toy extrusion, a louder pick ===== */
/* the board sits inside a safe gutter, so a card's edge, bevel and glow are never cut off at the screen's side */
.gw-host { box-sizing:border-box; padding:0 12px; max-width:384px; }

/* ===== THE BIG SCREEN'S PICKER: arcade cartridges round the NEXT GAME banner (every rule .big; the phone's
   layout above is untouched). Built on the toy tokens; one rule per part, no layering.
   THE BOARD - 13 games in a full ring: on half-columns, six cards across the top, one each side of the banner,
   five centred along the bottom (wheel-stage.js, .stag). Drawn at design size and scaled as one piece
   (.toy-scalable). Nothing in it clips, so every drop and the winner's swell show in full.
   THE CARD - 140 x 174 portrait, its whole body the category's plastic, an inked edge, a 10px drop.
   THE WINDOW - 112 x 98 eggshell porthole, sunk in, a thick band of plastic round it; the art fills it.
   THE NAMEPLATE - 34px ink plate flush along the bottom, ivory Lilita One.
   THE PICK - 122%, a gold bumper and halo, a 12px drop, the arrow on its top rim, sparks round it. ===== */
.gw-host.big { max-width:none; width:auto; margin:0 auto; padding:0; overflow:visible; }
.wheel-wrap, #wheelArena { overflow:visible; }

