/* Rumble Arena - the phone (arena-stage.js). Toy theme: the --toy-* tokens and the porthole atom from toy-stage.css; the
   arena is Rumble Ring's pixel canvas (brawl-pixel.js) on the same sand floor as the big screen's (brawl-big.css). */
.ra-host { position:relative; align-self:stretch; flex:1 1 auto; width:100%; min-height:0; display:flex; flex-direction:column; }
/* every part of the lab is touch-action:none, not the page's universal 'manipulation': iOS honours 'manipulation' only
   sometimes, and a double tap on the pad zoomed a phone in for good (play.html also cancels the second tap and undoes a zoom) */
.ra-phone, .ra-phone * { touch-action:none; }
.ra-phone { position:relative; flex:1; height:100%; display:flex; flex-direction:column; gap:6px; padding:4px 10px 8px; box-sizing:border-box; min-height:0;
  --ra-slate:#64748B; --ra-slate-d:#475569; --ra-slate-l:#94A3B8;   /* the OFFLINE hardware: solid, never see-through over the stadium art */
  font-family:'Fredoka',sans-serif; color:var(--toy-ink-color); touch-action:none; -webkit-user-select:none; user-select:none; -webkit-touch-callout:none; }
/* THE HEADER, off the court: who you are (your fighter's porthole and YOU), LAB on the right */
.ra-head { flex:none; display:flex; align-items:center; justify-content:space-between; gap:8px; pointer-events:none; }
/* THE ROUND'S CLOCK (arena-stage.js): the fight's time left, between YOU and the round's pill; red once the walls close in */
.ra-clock { font-family:'Lilita One',sans-serif; font-size:13px; line-height:1; letter-spacing:.5px; color:#fff; background:var(--toy-ink-color); border:2px solid #000; border-radius:99px;
  padding:3px 9px 4px; min-width:2.6em; text-align:center; font-variant-numeric:tabular-nums; }
.ra-clock:empty { visibility:hidden; }
.ra-clock.ring { background:#E03131; }
.ra-pc .ra-clock { font-size:16px; padding:4px 12px 5px; }
/* OFF THE SCREEN: a rival's porthole at the edge nearest it, an arrow on its rim pointing the way (arena-stage.js camera) */
.ra-edges { position:absolute; inset:0; z-index:3; pointer-events:none; overflow:hidden; }
.ra-edge { position:absolute; left:0; top:0; width:0; height:0; }
.ra-edge[hidden] { display:none; }
.ra-ep { position:absolute; left:-17px; top:-17px; width:34px; height:34px; border-radius:50%; --toy-art-scale:.8; }
.ra-ep img { width:100%; height:100%; object-fit:contain; image-rendering:pixelated; }
.ra-ea { position:absolute; left:0; top:0; width:0; height:0; transform:rotate(var(--a, 0deg)); }
.ra-ea::before { content:''; position:absolute; left:15px; top:-8px; width:14px; height:16px; background:var(--toy-ink-color); clip-path:polygon(0 0, 100% 50%, 0 100%); }
.ra-lab { font-family:'Lilita One',sans-serif; font-size:12px; letter-spacing:.5px; color:#fff; background:#7048E8; border:2px solid var(--toy-ink-color); border-radius:99px; padding:2px 9px 3px; white-space:nowrap; }
.ra-you { display:flex; align-items:center; gap:5px; font-family:'Lilita One',sans-serif; font-size:14px; line-height:1; white-space:nowrap;
  color:var(--toy-ink-color); background:var(--t-yel, #FFC700); border:2.5px solid var(--toy-ink-color); border-radius:99px; padding:2px 10px 2px 2px;
  box-shadow:none; --toy-drop:2px; --toy-drop-c:var(--toy-ink-color); --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)); }
/* your knockouts this round (o.koCredit), an ink chip on the YOU plate - only once you have one */
.ra-you > span:not(.ra-kos) { flex-shrink:0; }   /* YOU never gives way to the KO tally */
.ra-kos { flex-shrink:0; transform-origin:0 50%; font-size:.8em; color:var(--t-yel, #FFC700); background:var(--toy-ink-color); border-radius:99px; padding:2px 6px 1px; margin-left:1px; }
.ra-kos[hidden] { display:none; }
.ra-kos.pop { animation:raKoPop .45s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes raKoPop { 0% { scale:1; } 35% { scale:1.35; background:var(--t-yel, #FFC700); color:var(--toy-ink-color); } 100% { scale:1; } }
/* THE DAMAGE NUMBERS' layer (brawl-pixel.js numsInto; the numbers' own look: toy-stage.css .bp-num), one size on screen as the camera zooms */
.ra-nums { position:absolute; inset:0; pointer-events:none; --bp-num:calc(17px / var(--ra-s, 1)); }
/* YOUR KO (arena-stage.js koToast): a gold-rimmed ink plate at the top of the court for ~1.3 s - KO!, what it scored, who went down */
.ra-kot { position:absolute; left:50%; top:44px; z-index:5; display:flex; align-items:center; gap:8px; white-space:nowrap; pointer-events:none;
  font-family:'Lilita One',sans-serif; line-height:1; color:#fff; background:var(--toy-ink-color); border:3px solid var(--t-yel, #FFC700); border-radius:99px; padding:5px 14px 6px 10px;
  translate:-50% 0; box-shadow:none; --toy-drop:3px; --toy-drop-c:#000; --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)); }
.ra-kot[hidden] { display:none; }
.ra-kot.go { animation:raKot 1.3s cubic-bezier(.2, 1.6, .4, 1) forwards; }
@keyframes raKot { 0% { scale:.4; opacity:0; } 14% { scale:1.15; opacity:1; } 24% { scale:1; } 80% { opacity:1; } 100% { opacity:0; } }
.ra-kot b { font-weight:normal; font-size:24px; color:var(--t-yel, #FFC700); }
.ra-kot i { font-style:normal; font-size:14px; color:var(--toy-ink-color); background:var(--t-yel, #FFC700); border-radius:99px; padding:3px 8px 4px; }
.ra-kot span { font-size:14px; }
.ra-pc .ra-kot { top:56px; }
.ra-yp { width:24px; height:24px; border-radius:50%; --toy-art-scale:.9; }
.ra-yp img, .ra-ip img { width:100%; height:100%; image-rendering:pixelated; object-fit:contain; }
/* THE SCREEN, upright: every pixel the header and controls leave, edge to edge (Daniel, 2026-11-25: "use up the top part of
   the screen better... dont make it feel like a gameboy screen"). An ink rim and a solid drop; inside it the stadium's dirt,
   and the arena on it under the camera (arena-stage.js), in close on the fighters */
.ra-screen { position:relative; flex:1 1 0; min-height:0; align-self:stretch; border-radius:16px; border:3px solid var(--toy-ink-color);
  box-shadow:none; --toy-drop:4px; --toy-drop-c:var(--toy-ink-color); --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)); }
.ra-floor { position:absolute; inset:0; border-radius:13px; overflow:hidden;
  background:repeating-linear-gradient(90deg, rgba(0,0,0,.05) 0 4px, transparent 4px 12px), linear-gradient(180deg, #D9A866, #A8733A); }
/* THE WORLD: the sand, the arena's canvas and the turf margin round it (arena-stage.js PAD), at the canvas's own size - the
   camera moves and scales it */
.ra-world { position:absolute; left:0; top:0; width:616px; height:448px; transform-origin:0 0;
  box-shadow:0 0 0 3px #6E4A22, 0 0 0 6px var(--toy-ink-color); --toy-drop:0px; --toy-drop-c:transparent; --toy-under:opacity(1);
  background:#ead7a0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' shape-rendering='crispEdges'%3E%3Crect x='8' y='0' width='4' height='4' fill='%23dcc68a'/%3E%3Crect x='0' y='8' width='4' height='4' fill='%23dcc68a'/%3E%3C/svg%3E") 0 0 / 8px 8px; }
.ra-cv { position:relative; display:block; width:100%; height:100%; image-rendering:pixelated; }
.ra-chalk { position:absolute; inset:0; width:100%; height:100%; }   /* the floor's markings, under the canvas (arena-stage.js FLOOR) */
/* WHO'S WHO: each rival's player name under its HP bar (arena-stage.js moves them with their fighters), an ink tag the same
   size on screen at any zoom (--ra-s, the camera's scale); a bot's in grey, its KOs in yellow. Under the canvas: a callout goes over it */
.ra-names { position:absolute; inset:0; pointer-events:none; }
.ra-nm { position:absolute; left:0; top:0; white-space:nowrap; font-family:'Lilita One',sans-serif; font-size:calc(11px / var(--ra-s, 1)); line-height:1;
  color:#fff; background:var(--toy-ink-color); border-radius:99px; padding:.15em .55em .25em; }
.ra-nm.bot { color:#ced4da; }
.ra-nk { font-style:normal; color:var(--t-yel, #FFC700); margin-left:.4em; }   /* its KOs this round, in the YOU chip's yellow */
.ra-nk[hidden] { display:none; }
.ra-nm[hidden] { display:none; }
/* THE COURT'S PILLS: the status on the top edge and the rotate hint on the bottom - solid toy pills, ink type on eggshell
   with an ink rim (a translucent dark plate washed out on the sand). The status shows only while it has news (.on): the
   stick's how-to goes once you've moved (arena-stage.js) */
.ra-status, .ra-rot { position:absolute; z-index:3; pointer-events:none; white-space:nowrap; color:var(--toy-ink-color); background:var(--toy-bg-eggshell);
  border:2.5px solid var(--toy-ink-color); border-radius:99px; box-shadow:none; --toy-drop:3px; --toy-drop-c:var(--toy-ink-color); --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));
  opacity:0; transition:opacity .35s, transform .35s; }
.ra-status { left:50%; top:7px; transform:translate(-50%, -6px); max-width:calc(100% - 24px); box-sizing:border-box; overflow:hidden; text-overflow:clip;
  padding:2px 12px 3px; font-size:13px; font-weight:700; line-height:1.25; text-align:center; }
.ra-status.on { opacity:1; transform:translate(-50%, 0); }
.ra-status:empty { display:none; }   /* never an empty plate: no news, no pill (a blank rimmed pill showed mid-fight) */
/* TURN SIDEWAYS: upright only, and only now and then (.on, from arena-stage.js: the first 6 s, then 5 s of every 30) */
.ra-rot { right:8px; bottom:9px; transform:translateY(6px); display:flex; align-items:center; gap:6px; font-size:13px; font-weight:700; padding:3px 12px 3px 7px; }
.ra-rot.on { opacity:1; transform:none; }
.ra-roti { width:18px; height:18px; flex:none; color:#364FC7; }
/* 3, 2, 1, FIGHT! (arena-stage.js, on BrawlPixel's timeline): in the display type over the middle of the court - gold, a
   thick ink outline, a solid stepped ink lip - not the canvas's pixel font, which on a monitor came out in blocks many
   times the sprites' own pixels. Sized to the court (cqh: .ra-floor is the size container), bold on a phone, capped on a
   monitor; each word pops in. The balls drop at the fighters' spots round the edge, clear of the middle */
.ra-floor { container-type:size; }
.ra-count { position:absolute; inset:0; z-index:3; display:grid; place-items:center; pointer-events:none; opacity:0; transition:opacity .15s; }
.ra-count.on { opacity:1; }
.ra-count b { font-family:'Lilita One',sans-serif; font-weight:normal; font-size:clamp(56px, 26cqh, 128px); line-height:1; letter-spacing:.02em; color:var(--t-yel, #FFC700);
  -webkit-text-stroke:.09em var(--toy-ink-color); paint-order:stroke fill;
  text-shadow:0 .08em 0 var(--toy-ink-color), 0 .06em 0 var(--toy-ink-color), 0 .04em 0 var(--toy-ink-color), 0 .02em 0 var(--toy-ink-color); }
.ra-count b.ra-fight { font-size:clamp(40px, 17cqh, 88px); color:#fff; }
.ra-count b.pop { animation:raCount .22s cubic-bezier(.2, 1.6, .4, 1); }
/* THE WINNER (arena-stage.js .on, a beat after the last faint): YOU WIN! or THEIR NAME WINS! in the countdown's type, their
   fighter on a small ink plate under it - in the larger strip of court above or below the winner's sprite (--ra-win-y,
   set from the camera), never across it. Yours is gold, another player's white */
.ra-win { position:absolute; z-index:3; left:12px; right:12px; top:var(--ra-win-y, 50%); translate:0 -50%; display:flex; flex-direction:column; align-items:center; gap:4px;
  pointer-events:none; opacity:0; transition:opacity .2s; }
.ra-win.on { opacity:1; }
.ra-win.on b { animation:raCount .3s cubic-bezier(.2, 1.6, .4, 1); }
.ra-win b { display:block; width:100%; text-align:center; white-space:nowrap; font-family:'Lilita One',sans-serif; font-weight:normal; font-size:clamp(34px, 14cqh, 76px); line-height:1.05;
  letter-spacing:.02em; color:#fff; -webkit-text-stroke:.09em var(--toy-ink-color); paint-order:stroke fill;
  text-shadow:0 .08em 0 var(--toy-ink-color), 0 .06em 0 var(--toy-ink-color), 0 .04em 0 var(--toy-ink-color), 0 .02em 0 var(--toy-ink-color); }
.ra-win.mine b { color:var(--t-yel, #FFC700); }
.ra-win span { font-family:'Lilita One',sans-serif; font-size:14px; line-height:1; color:var(--t-yel, #FFC700); background:var(--toy-ink-color); border-radius:99px; padding:3px 10px 4px; }
.ra-win span[hidden] { display:none; }
@keyframes raCount { from { scale:1.45; opacity:0; } 55% { opacity:1; } to { scale:1; opacity:1; } }
/* WHO YOU ARE, through the Poke Balls (arena-stage.js .on): a banner on the court's top edge, where the status pill sits -
   it was a card in the middle, and covered the 3, 2, 1 drawn there (Daniel, 2026-11-27: on a computer, entirely) */
.ra-intro { position:absolute; z-index:4; left:50%; top:7px; transform:translate(-50%, -8px); display:flex; align-items:center; gap:10px;
  padding:6px 18px 6px 6px; border-radius:18px; background:var(--toy-bg-eggshell); border:3px solid var(--toy-ink-color); pointer-events:none; opacity:0; transition:opacity .3s, transform .3s;
  box-shadow:none; --toy-drop:4px; --toy-drop-c:var(--toy-ink-color); --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)); }
.ra-intro.on { opacity:1; transform:translate(-50%, 0); }
.ra-iw { display:flex; flex-direction:column; align-items:flex-start; gap:3px; }
.ra-ilab { font-family:'Lilita One',sans-serif; font-size:11px; letter-spacing:1px; color:#fff; background:var(--t-red, #E11D48); border:2px solid var(--toy-ink-color); border-radius:99px; padding:1px 8px 2px; }
.ra-ip { width:48px; height:48px; border-radius:13px; --toy-art-scale:.9; }
.ra-inm { font-family:'Lilita One',sans-serif; font-size:22px; line-height:1; color:var(--toy-ink-color); white-space:nowrap; }
/* TARGET: AUTO and the other three, a porthole each, straight across the width; the picked one lit gold, a KO'd one greyed */
.ra-tg { flex:none; }
.ra-tgs { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:7px; }
/* Three states, readable from the corner of an eye: LIVE a raised eggshell key (a lit top edge, a solid lip); PICKED the
   same key in gold, lip and all; KO'd (and every card while you're out) sunk into the deck, dark slate, art dimmed - it
   drops out of sight rather than looking pressable */
.ra-t { position:relative; display:flex; flex-direction:column; align-items:center; gap:2px; padding:3px 4px 6px; min-width:0; font:inherit; color:inherit; cursor:pointer;
  background:var(--toy-bg-eggshell); border:3px solid var(--toy-ink-color); border-radius:14px; box-shadow:inset 0 2px 0 rgba(255,255,255,.9), inset 0 -4px 0 #D8CBA8;
  --toy-drop:3px; --toy-drop-c:var(--toy-ink-color); --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)); }
.ra-t.on { background:var(--t-yel, #FFC700); box-shadow:inset 0 2px 0 rgba(255,255,255,.55), inset 0 -4px 0 var(--t-yel-d, #D99B00);
  --toy-drop:3px; --toy-drop-c:var(--toy-ink-color); --toy-under:opacity(1); }
/* AUTO: a crosshair where a rival's porthole would be */
.ra-ap { display:grid; place-items:center; border-radius:50%; background:#364FC7; color:#fff; border:2.5px solid var(--toy-ink-color); box-sizing:border-box; }
.ra-aim { width:72%; height:72%; }
.ra-t.ra-auto.on .ra-ap { background:var(--toy-ink-color); color:var(--t-yel, #FFC700); }
/* SUNK: a fainted rival's card, and every card while you're out (.ra-out) - solid dark slate pressed into the deck, a
   muted rim, its art greyed and dimmed; never see-through (opacity let the stadium art show through), never the pale grey
   it was (on a monitor it read as one more live card) */
/* a rival out of the fight: its card sinks to slate with a KO stamp across its picture */
.ra-t.ko::before { content:'KO'; position:absolute; left:50%; top:38%; z-index:2; translate:-50% -50%; rotate:-12deg; font-family:'Lilita One',sans-serif; font-size:13px; line-height:1;
  color:#fff; background:#E03131; border:2px solid var(--toy-ink-color); border-radius:6px; padding:2px 5px 3px; pointer-events:none; }
.ra-t.ko, .ra-out .ra-t, .ra-out .ra-t.on { background:var(--ra-slate-d); border-color:#334155; color:var(--ra-slate-l); cursor:default;
  box-shadow:inset 0 4px 0 rgba(0,0,0,.35); --toy-fx:grayscale(1) brightness(.75); --toy-drop:0px; --toy-drop-c:transparent; --toy-under:opacity(1); transform:translateY(3px); }
.ra-out .ra-t .ra-ap, .ra-out .ra-t.ra-auto.on .ra-ap { background:var(--ra-slate); color:var(--t-sunk, #E2E8F0); }
.ra-tp { width:36px; height:36px; border-radius:10px; --toy-art-scale:.86; }
.ra-short .ra-t { flex-direction:row; justify-content:center; gap:5px; padding:3px 5px 5px; }
.ra-short .ra-tp { width:26px; height:26px; border-radius:8px; }
.ra-tp img { width:100%; height:100%; image-rendering:pixelated; object-fit:contain; }
.ra-tn { font-family:'Lilita One',sans-serif; font-size:12px; line-height:1; min-width:0; max-width:100%; white-space:nowrap; }
/* THE CONTROLS: the stick on the left, the special on the right */
.ra-ctl { flex:none; height:var(--ra-ctl, 120px); display:flex; align-items:center; justify-content:center; gap:14px; }
/* THE STICK (arena-stage.js stick): a zone the size of the controls' left side. At rest its socket sits in the middle with
   the status pill saying how; a thumb down anywhere in the zone brings the socket to it, and the cap follows the drag.
   The socket: recessed slate, an ink rim, sunk in. The cap: a beveled thumb cap - a highlight along its top, a solid lip
   below, its drop under it - eggshell at rest, gold while held (lip and all) */
.ra-stick { position:relative; flex:1 1 0; align-self:stretch; min-width:0; }
/* at rest, upright: against the zone's left edge (Daniel, 2026-11-26: "could be more left, it's a bit cramped" - centred,
   it sat in against SPECIAL and the thumb had no room); sideways it centres in its bezel */
.ra-ring { --ra-rw:min(var(--ra-ring, 108px), 100%, calc(var(--ra-ctl, 120px) - 8px));
  position:absolute; left:calc(var(--ra-rw) / 2 + 2px); top:50%; width:var(--ra-rw); aspect-ratio:1; transform:translate(-50%, -50%); border-radius:50%;
  background:radial-gradient(circle at 50% 42%, #5C6577, #3A4150 70%); border:3px solid var(--toy-ink-color); box-sizing:border-box; display:grid; place-items:center; pointer-events:none;
  box-shadow:inset 0 5px 0 rgba(0,0,0,.35), inset 0 -2px 0 rgba(255,255,255,.12); --toy-drop:0px; --toy-drop-c:transparent; --toy-under:opacity(1); }
.ra-knob { width:48%; aspect-ratio:1; border-radius:50%; background:var(--toy-bg-eggshell); border:3px solid var(--toy-ink-color); box-sizing:border-box;
  box-shadow:inset 0 3px 0 rgba(255,255,255,.9), inset 0 -5px 0 #D8CBA8; --toy-drop:3px; --toy-drop-c:var(--toy-ink-color); --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)); }
.ra-stick.held .ra-knob { background:var(--t-yel, #FFC700); box-shadow:inset 0 3px 0 rgba(255,255,255,.55), inset 0 -5px 0 var(--t-yel-d, #D99B00); --toy-drop:3px; --toy-drop-c:var(--toy-ink-color); --toy-under:opacity(1); }
/* SPECIAL AND DASH: ARCADE PLUNGERS (Daniel, 2026-11-28: "match our chunky toy-stage arcade aesthetic"). Each is a raised
   cap in a dark ink housing (.ra-track: the housing, a recessed groove round the cap, and the charge filling that groove
   clockwise - arena-stage.js sets the arc). A cap is a flat solid face, an ink outline, a crisp highlight along its top and a
   solid lip along its bottom in its own face's shade (toy-ui.md: a recoloured face recolours its lip), standing up on a
   solid drop. A tap (.down, arena-stage.js press) pushes it down onto its drop; a key offline or recharging sits sunk flat */
.ra-sp, .ra-dash { position:relative; flex:none; aspect-ratio:1; margin:0; padding:0; cursor:pointer; font:inherit;
  background:none; border:none; border-radius:50%; box-shadow:none; --toy-drop:0px; --toy-drop-c:transparent; --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)); }
.ra-sp { height:min(100%, var(--ra-spk, 118px)); }
.ra-dash { align-self:center; height:min(78%, var(--ra-dk, 76px)); }
.ra-track { position:absolute; inset:0; width:100%; height:100%; overflow:visible; }
.ra-trk0 { fill:var(--toy-ink-color); stroke:var(--toy-ink-color); stroke-width:10; }   /* the housing */
.ra-trk2 { fill:none; stroke:#3A4254; stroke-width:8; }                                   /* the groove the charge runs in */
.ra-trk1 { fill:none; stroke:var(--t-yel, #FFC700); stroke-width:8; stroke-linecap:round; stroke-dasharray:0 100; transition:stroke-dasharray .15s linear; }
.ra-dash .ra-trk1 { stroke:#3BC9DB; }
.ra-cap, .ra-dcap { position:absolute; border-radius:50%; box-sizing:border-box; border:3px solid var(--toy-ink-color);
  --ra-face:var(--ra-slate); --ra-lip:var(--ra-slate-d); background:var(--ra-face);
  box-shadow:inset 0 3px 0 rgba(255,255,255,.4), inset 0 -6px 0 var(--ra-lip);
  --toy-drop:4px; --toy-drop-c:var(--toy-ink-color); --toy-under:opacity(1); transform:translateY(-2px); transition:transform .08s, background-color .12s;
  filter:var(--toy-fx, opacity(1)) drop-shadow(0 var(--toy-drop, 0px) 0 var(--toy-drop-c, transparent)) var(--toy-under, opacity(1)); }
.ra-cap { inset:17%; display:grid; place-items:center; }
.ra-dcap { inset:17%; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1px; color:#fff; }
/* pressed: down onto its drop, the lip squashed */
.ra-sp.down .ra-cap, .ra-dash.down .ra-dcap { transform:translateY(2px); --toy-drop:0px; box-shadow:inset 0 3px 0 rgba(255,255,255,.4), inset 0 -2px 0 var(--ra-lip); }
/* SPECIAL charging: a solid slate key (not a hole), white SPECIAL and its move in pale gold, the gold charge filling round it */
.ra-spl { display:flex; flex-direction:column; align-items:center; justify-content:center; font-family:'Lilita One',sans-serif; font-size:16px; line-height:1; color:#fff; text-align:center;
  text-shadow:0 2px 0 var(--toy-ink-color), 0 1.5px 0 var(--toy-ink-color), 0 1px 0 var(--toy-ink-color), 0 .5px 0 var(--toy-ink-color); }
.ra-spl small { font-size:9px; margin-top:3px; letter-spacing:.4px; color:var(--t-yel-l, #FFE27A); }
/* SPECIAL ready: the key pops up gold, ink type, and a gold ring pulses out round the housing */
.ra-sp.ready .ra-cap { --ra-face:var(--t-yel, #FFC700); --ra-lip:var(--t-yel-d, #D99B00); transform:translateY(-4px); --toy-drop:6px; animation:raReady .7s ease-in-out infinite alternate; }
.ra-sp.ready.down .ra-cap { transform:translateY(2px); --toy-drop:0px; }
.ra-sp.ready .ra-spl, .ra-sp.ready .ra-spl small { color:var(--toy-ink-color); text-shadow:none; }
.ra-sp::after { content:''; position:absolute; inset:-3px; border-radius:50%; border:4px solid var(--t-yel, #FFC700); pointer-events:none; opacity:0; }
.ra-sp.ready::after { animation:raRing 1s ease-out infinite; }
.ra-sp.armed .ra-cap { animation:raArmed .18s linear infinite alternate; }
/* DASH ready: a cyan key, ink chevrons and DASH; recharging it sinks flat into slate (the cyan filling round it shows how
   long), and pops back up the moment it's ready */
.ra-dsh { width:42%; height:auto; fill:currentColor; }
.ra-dcap span { font-family:'Lilita One',sans-serif; font-size:10px; line-height:1; letter-spacing:.5px; }
.ra-dash.ready .ra-dcap { --ra-face:#3BC9DB; --ra-lip:#1098AD; color:var(--toy-ink-color); animation:raPop .22s cubic-bezier(.2, 1.6, .4, 1); }
.ra-dash:not(.ready) .ra-dcap, .ra-sp:disabled .ra-cap, .ra-dash:disabled .ra-dcap { --ra-face:var(--ra-slate-d); --ra-lip:var(--ra-slate-d); color:var(--ra-slate-l);
  transform:translateY(2px); --toy-drop:0px; box-shadow:inset 0 4px 0 rgba(0,0,0,.3); animation:none; }
/* OFFLINE (fainted, or the round over): both keys sunk flat in slate, the legends and the charge muted */
.ra-sp:disabled .ra-spl, .ra-sp:disabled .ra-spl small { color:var(--ra-slate-l); text-shadow:none; }
.ra-sp:disabled .ra-trk1, .ra-dash:disabled .ra-trk1 { stroke:var(--ra-slate); }
.ra-sp:disabled::after { animation:none; }
@keyframes raRing { from { scale:.96; opacity:1; } to { scale:1.18; opacity:0; } }
@keyframes raPop { from { scale:.9; } to { scale:1; } }
/* YOU'RE OUT (arena-stage.js .ra-out, from your faint - or the fight's end, winner too - until the next round): the controls go offline together - the stick's
   cap sinks into its socket in slate, the targets all sink (AUTO's gold goes too), SPECIAL dark - and take no touches */
.ra-out .ra-ctl, .ra-out .ra-tg { pointer-events:none; }
.ra-out .ra-ring { background:var(--ra-slate-d); }
.ra-out .ra-knob, .ra-out .ra-stick.held .ra-knob { background:var(--ra-slate-l); box-shadow:inset 0 3px 0 rgba(255,255,255,.25), inset 0 -3px 0 var(--ra-slate);
  --toy-drop:0px; --toy-drop-c:transparent; --toy-under:opacity(1); transform:translate(0, 0) scale(.92); }
@keyframes raReady { from { scale:1; } to { scale:1.05; } }
@keyframes raArmed { from { scale:.95; } to { scale:1.02; } }

/* SIDEWAYS (arena-stage.js fit / camera): the whole visible screen, over the page, as a handheld - wood bezels left and right
   with the controls seated in them, the court between, never covered: the stick in the left bezel under the header, the
   targets (2x2) over SPECIAL in the right. Sizes follow --ra-u (1 on a 390px-tall screen). */
/* the page under the sideways stage: the bezel's wood, not the stadium's sky - an iPhone paints the strips beside the notch
   (and Chrome on iOS its side margins) from the page's background, which showed as blue bars (2026-11-28). And no text
   selection anywhere on the page while the stage is up (the stage's own user-select doesn't reach the page around it) */
html:has(.ra-phone.ra-land), html:has(.ra-phone.ra-land) body { background:var(--ra-cabinet) fixed; background-color:#6B4220; }
body:has(.ra-phone) { -webkit-user-select:none; user-select:none; }
:root { --ra-cabinet:repeating-linear-gradient(90deg, rgba(0,0,0,.08) 0 2px, transparent 2px 9px, rgba(255,255,255,.05) 9px 10px, transparent 10px 17px),
  linear-gradient(180deg, #8A5A2B, #6B4220); }   /* the sideways stage's wood, on it and on the page round it */
.ra-phone.ra-land { position:fixed; z-index:1000; display:grid; gap:0; overflow:hidden;
  --ra-sl:max(8px, env(safe-area-inset-left)); --ra-sr:max(8px, env(safe-area-inset-right)); --ra-sb:max(8px, env(safe-area-inset-bottom));
  --ra-bz:calc(122px * var(--ra-u, 1)); --ra-ring:calc(112px * var(--ra-u, 1)); --ra-spk:calc(104px * var(--ra-u, 1)); --ra-dk:calc(62px * var(--ra-u, 1));
  grid-template-columns:calc(var(--ra-sl) + var(--ra-bz)) minmax(0, 1fr) calc(var(--ra-sr) + var(--ra-bz));
  grid-template-rows:auto minmax(0, 1fr) auto auto; grid-template-areas:"head screen tg" "stick screen tg" "stick screen dash" "stick screen sp";
  padding:8px var(--ra-sr) var(--ra-sb) var(--ra-sl); column-gap:8px;
  background:var(--ra-cabinet); }
.ra-land .ra-head { grid-area:head; flex-direction:column; align-items:stretch; gap:6px; justify-content:flex-start; }
.ra-land .ra-head > * { align-self:center; }
.ra-land .ra-screen { grid-area:screen; border-radius:12px; --toy-drop:0px; }
.ra-land .ra-floor { border-radius:9px; }
.ra-land .ra-rot { display:none; }
.ra-land .ra-tg { grid-area:tg; align-self:end; padding-bottom:8px; }
.ra-land .ra-tgs { grid-template-columns:repeat(2, minmax(0, 1fr)); gap:7px; justify-items:center; }
.ra-land .ra-t { width:calc(54px * var(--ra-u, 1)); padding:3px; }
.ra-land .ra-tp { width:calc(40px * var(--ra-u, 1)); height:calc(40px * var(--ra-u, 1)); }
.ra-land .ra-tn { display:none; }
.ra-land .ra-ctl { display:contents; }
.ra-land .ra-stick { grid-area:stick; }
.ra-land .ra-ring { left:50%; top:auto; bottom:0; transform:translate(-50%, 0); }   /* at rest: low in the bezel, under the thumb */
.ra-land .ra-stick.held .ra-ring { bottom:auto; transform:translate(-50%, -50%); }
.ra-land .ra-sp { grid-area:sp; justify-self:center; height:var(--ra-spk); }
.ra-land .ra-dash { grid-area:dash; justify-self:center; height:var(--ra-dk); margin-bottom:6px; }
/* A PHONE ON ITS SIDE (not a computer, .ra-pc): the right bezel a little wider, the targets up top, and DASH and SPECIAL
   apart from them in a thumb's arc - a handheld's B and A: SPECIAL in the bottom corner, a full-size DASH up and to its left
   (Daniel, 2026-11-28: the stack of targets, DASH, SPECIAL wedged a small DASH under the cards) */
.ra-phone.ra-land:not(.ra-pc) { --ra-bzr:calc(158px * var(--ra-u, 1)); --ra-dk:calc(70px * var(--ra-u, 1));
  --ra-sb:max(16px, calc(env(safe-area-inset-bottom, 0px) + 8px));   /* the stick and SPECIAL alike, clear of the home bar (2026-11-28) */
  grid-template-columns:calc(var(--ra-sl) + var(--ra-bz)) minmax(0, 1fr) calc(var(--ra-sr) + var(--ra-bzr));
  grid-template-rows:auto minmax(0, 1fr) calc(var(--ra-spk) + 0.62 * var(--ra-dk)); grid-template-areas:"head screen tg" "stick screen tg" "stick screen act"; }
.ra-land:not(.ra-pc) .ra-tg { align-self:start; padding:4px 0 0; }
.ra-land:not(.ra-pc) .ra-sp { grid-area:act; justify-self:end; align-self:end; }
.ra-land:not(.ra-pc) .ra-dash { grid-area:act; justify-self:start; align-self:start; margin:0; }
/* ON A COMPUTER (arena-stage.js fit: .ra-pc, always sideways). Every key's legend sits on its own control: the arrows'
   keycaps (an inverted T that presses in gold while held) on a dark plate in the left bezel, never raw type over the
   grain; SPACE as a keycap on SPECIAL's housing; 1-4 as keycaps on the target cards' corners, under a TARGET label. The
   bezels a little wider than a phone's, so the cards and SPECIAL have air on both sides; the court sunk into the table
   (a chunkier ink rim, a wood lip inside it with a shadow along its top); YOU and LAB a size up */
.ra-keys, .ra-kb { display:none; }
.ra-pc.ra-land { --ra-sl:14px; --ra-sr:14px; --ra-sb:14px; --ra-bz:136px; --ra-spk:112px; --ra-dk:72px; column-gap:12px; --ra-kbo:6px; }
/* the right rail's bottom on the left pad's (Daniel, 2026-11-28: SPACE sat on the window's edge, SHIFT on SPECIAL's ring):
   SPECIAL stands its keycap's overhang (--ra-kbo) up off the bottom, so SPACE ends where the arrow keys' plate does; DASH
   stands that plus a gap, so SHIFT clears SPECIAL's housing */
.ra-pc.ra-land .ra-sp { margin-bottom:var(--ra-kbo); }
.ra-pc.ra-land .ra-dash { margin-bottom:calc(var(--ra-kbo) + 8px); }
.ra-pc .ra-ring { display:none; }
.ra-pc .ra-keys { position:absolute; left:50%; bottom:0; transform:translateX(-50%); display:flex; flex-direction:column; align-items:center; gap:9px; pointer-events:none;
  padding:12px 12px 9px; border-radius:16px; background:var(--toy-ink-color); border:2px solid #4A3522;
  box-shadow:inset 0 3px 0 rgba(255,255,255,.08); --toy-drop:0px; --toy-drop-c:transparent; --toy-under:opacity(1); }
.ra-kpad { display:grid; grid-template-columns:repeat(3, 34px); grid-template-rows:repeat(2, 34px); gap:4px; }
.ra-k { display:grid; place-items:center; border-radius:9px; background:var(--toy-bg-eggshell); border:2.5px solid #000; box-sizing:border-box; color:var(--toy-ink-color);
  box-shadow:inset 0 2px 0 rgba(255,255,255,.9), inset 0 -4px 0 #D8CBA8; --toy-drop:3px; --toy-drop-c:#000; --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)); transition:transform .06s; }
.ra-k svg { width:46%; height:46%; fill:currentColor; transform:rotate(var(--r, 0deg)); }
.ra-k-u { grid-area:1 / 2; } .ra-k-l { grid-area:2 / 1; } .ra-k-d { grid-area:2 / 2; } .ra-k-r { grid-area:2 / 3; }
.ra-k.on { background:var(--t-yel, #FFC700); box-shadow:inset 0 2px 0 rgba(255,255,255,.55), inset 0 -2px 0 var(--t-yel-d, #D99B00);
  --toy-drop:1px; --toy-drop-c:#000; --toy-under:opacity(1); transform:translateY(2px); }
.ra-khelp { display:flex; flex-direction:column; align-items:center; gap:2px; font-family:'Lilita One',sans-serif; font-size:12px; letter-spacing:.6px; line-height:1.1; color:var(--toy-bg-eggshell); white-space:nowrap; }
.ra-khelp b { font-weight:normal; font-size:10px; letter-spacing:1.5px; color:var(--t-yel, #FFC700); }
.ra-out .ra-k, .ra-out .ra-k.on { background:var(--ra-slate-l); color:var(--ra-slate-d); box-shadow:inset 0 2px 0 rgba(255,255,255,.25), inset 0 -2px 0 var(--ra-slate);
  --toy-drop:0px; --toy-drop-c:transparent; --toy-under:opacity(1); transform:translateY(2px); }
/* a small keycap: SPACE on SPECIAL, 1-4 on the cards */
.ra-pc .ra-kb, .ra-pc .ra-t::after { display:grid; place-items:center; position:absolute; box-sizing:border-box; font-family:'Lilita One',sans-serif; font-weight:normal; line-height:1;
  color:var(--toy-ink-color); background:var(--toy-bg-eggshell); border:2px solid var(--toy-ink-color); border-radius:6px; box-shadow:inset 0 -2px 0 #D8CBA8;
  --toy-drop:2px; --toy-drop-c:var(--toy-ink-color); --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)); pointer-events:none; }
.ra-pc .ra-kb { left:50%; bottom:calc(-1 * var(--ra-kbo)); transform:translateX(-50%); height:20px; padding:0 9px 2px; font-size:11px; letter-spacing:1px; }
.ra-pc .ra-t { position:relative; width:72px; }
.ra-pc .ra-tn { display:block; font-size:12px; }   /* the rival's name on its card (two of one Pokemon told apart) */
.ra-pc .ra-t::after { content:attr(data-k); top:-9px; left:-9px; width:20px; height:20px; padding-bottom:2px; font-size:12px; }
.ra-pc .ra-tgs { gap:10px; }
.ra-pc .ra-tg::before { content:'TARGET'; display:block; width:max-content; margin:0 auto 12px; padding:2px 10px 3px; border-radius:99px; background:var(--toy-ink-color);
  color:var(--toy-bg-eggshell); font-family:'Lilita One',sans-serif; font-size:11px; letter-spacing:1.5px; line-height:1.1; }
.ra-pc .ra-screen { border-width:5px; border-radius:18px; }
.ra-pc .ra-floor { border-radius:13px; }
.ra-pc .ra-floor::after { content:''; position:absolute; inset:0; z-index:2; border-radius:inherit; pointer-events:none;
  box-shadow:inset 0 0 0 4px #6E4A22, inset 0 9px 0 rgba(0,0,0,.25), inset 0 0 0 7px rgba(0,0,0,.18); --toy-drop:0px; --toy-drop-c:transparent; --toy-under:opacity(1); }
.ra-pc .ra-head { gap:8px; }
.ra-pc .ra-you { font-size:18px; gap:6px; padding:3px 14px 3px 3px; }
.ra-pc .ra-yp { width:32px; height:32px; }
.ra-pc .ra-lab { font-size:14px; padding:3px 12px 4px; }

/* THE ARENA'S DRAFT ON A COMPUTER (Daniel, 2026-11-29): the page widens for it (play.html html.pcz:has(.ra-draft)) and, as a
   phone held sideways does below, your hand takes the left and the rivals' hands the right, instead of one narrow column */
html.pcz .ra-draft .bw-phone.bw-draft { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); grid-template-rows:auto auto minmax(0, 1fr) auto; column-gap:18px; }
html.pcz .ra-draft .bw-draft .bw-head, html.pcz .ra-draft .bw-draft .bw-footpill { grid-column:1 / -1; }
html.pcz .ra-draft .bw-draft .bw-footpill, html.pcz .ra-draft .bw-draft .bw-hint { justify-self:center; }   /* pills, not bars across the grid */
html.pcz .ra-draft .bw-draft .bw-hint { grid-column:1; grid-row:2; }
html.pcz .ra-draft .bw-draft.bw-many .bw-hand { grid-column:1; grid-row:3; }
html.pcz .ra-draft .bw-draft .bw-tray { grid-column:2; grid-row:2 / 4; align-self:start; }
/* THE ARENA'S DRAFT (games/arena-lab.js) is Rumble Ring's draft screen (brawl-stage.css), in a .ra-draft host. Sideways on a
   phone - how the arena is held between rounds - its column of hand-over-tray left the hand a sliver under the tray: here the
   hand's three tiles take the left, the rivals' hands the right */
@media (orientation:landscape) and (max-height:500px) {
  .ra-draft .bw-phone.bw-draft { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1.1fr); grid-template-rows:auto auto minmax(0, 1fr) auto;
    column-gap:12px; padding-left:max(12px, env(safe-area-inset-left)); padding-right:max(12px, env(safe-area-inset-right)); }
  .ra-draft .bw-draft .bw-head, .ra-draft .bw-draft .bw-footpill { grid-column:1 / -1; }
  .ra-draft .bw-draft .bw-hint { grid-column:1; grid-row:2; }
  .ra-draft .bw-draft.bw-many .bw-hand { grid-column:1; grid-row:3; }
  .ra-draft .bw-draft.bw-many .bw-pt { max-width:60px; max-height:60px; }
  .ra-draft .bw-draft .bw-tray { grid-column:2; grid-row:2 / 4; align-self:start; }
  .ra-draft .bw-cdbody { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); align-content:start; }   /* a card's sections two by two */
  /* THE HEAD, SIDEWAYS: the title and its clock ride in the page's top bar, where the wordmark was, instead of a second row
     under it - the two rows took a third of the height and pinned the clock to the card's edge (Daniel, 2026-11-29). Fixed to
     the bar's button row (.top in play.html sits max(14px, safe area) down and pads as much again; its buttons are 34px) */
  html:has(.ra-draft) .top .tbrand { display:none; }
  .ra-draft .bw-head { position:fixed; z-index:61; top:calc(2 * max(14px, env(safe-area-inset-top))); left:max(16px, env(safe-area-inset-left)); height:34px; gap:10px; }
  .ra-draft .bw-title { font-size:20px; }
  .ra-draft .bw-clock { font-size:18px; padding:1px 10px 3px; transform-origin:0 50%; }
  .ra-draft .bw-sheet { top:4px; }

  /* THE CARD, SIDEWAYS (brawl-stage.js openCard): in a column it gave its sections a sliver under the head and the paging
     row, cut off mid-card ("really hard to look through in landscape" - Daniel, 2026-11-29). Two panes instead. LEFT, in a
     recessed well: the fighter as large as the pane allows, flanked by < >, its name and chips, the dots, PICK. RIGHT: every
     section whole. .bw-cdtop and .bw-cdbot step aside (contents) so their parts sit in the card's own grid, and the close
     coin goes to the card's top-right corner, where a thumb looks for it */
  .ra-draft .bw-cd { position:relative; display:grid; grid-template-columns:44px minmax(104px, 1fr) 44px minmax(0, 3.6fr);
    grid-template-rows:minmax(0, 1fr) auto auto auto; column-gap:8px; row-gap:6px; }
  .ra-draft .bw-cd::before { content:''; grid-column:1 / 4; grid-row:1 / -1; margin:-2px -3px; border-radius:14px; background:rgba(110,74,34,.08);
    box-shadow:inset 0 2px 0 rgba(30,30,36,.1); --toy-drop:0px; --toy-drop-c:transparent; --toy-under:opacity(1); }
  .ra-draft .bw-cdtop, .ra-draft .bw-cdbot { display:contents; }
  .ra-draft .bw-cdpt { grid-column:2; grid-row:1; justify-self:center; align-self:center; width:auto; height:100%; max-width:100%; aspect-ratio:1; }
  .ra-draft .bw-cdid { grid-column:1 / 4; grid-row:2; align-items:center; text-align:center; gap:3px; }
  .ra-draft .bw-cdrow { justify-content:center; }
  .ra-draft .bw-x { top:-8px; right:-8px; z-index:2; }   /* on the corner, clear of the header's pills and the screen's edge */
  .ra-draft .bw-cdbody { grid-column:4; grid-row:1 / -1; padding:2px 10px 6px 0; }
  .ra-draft .bw-flip { grid-row:1; align-self:center; }
  .ra-draft .bw-flip[data-d="-1"] { grid-column:1; }
  .ra-draft .bw-flip[data-d="1"] { grid-column:3; }
  .ra-draft .bw-dots { grid-column:1 / 4; grid-row:3; flex-wrap:wrap; gap:4px; }
  .ra-draft .bw-dots i { width:7px; height:7px; }
  .ra-draft .bw-back { grid-column:1 / 4; grid-row:4; font-size:16px; }
  .ra-draft .bw-meter { display:none; }   /* ...said in the SPECIAL card instead, so the 2x2 keeps the whole height */
  .ra-draft .bw-cd .bw-spsec::after { content:'Charges up as it hits and gets hit'; font-size:11px; font-weight:600; color:#8a8294; margin-top:auto; }
  /* A MOVE'S NAME ON ONE LINE: its type and range on a line of their own above it (two-word names - Water Gun, Hydro Pump -
     wrapped between the pills); the special's name under its SPECIAL and type the same way */
  .ra-draft .bw-cd .bw-mvs { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:4px 10px; }   /* two moves always side by side */
  .ra-draft .bw-cd .bw-mv { display:flex; flex-wrap:wrap; align-items:center; align-content:flex-start; gap:2px 4px; min-width:0; }
  .ra-draft .bw-cd .bw-mvn { order:3; flex-basis:100%; white-space:nowrap; font-size:14px; }   /* the pills wrap in their half; the name never does */
  .ra-draft .bw-cd .bw-spsec .bw-lab { flex-wrap:wrap; row-gap:2px; }
  .ra-draft .bw-cd .bw-spnm { order:2; flex-basis:100%; white-space:nowrap; font-size:16px; }
  /* the sections' rows fill their width and wrap: the hand's one-line type chips (.bw-many, brawl-stage.css) ran ROCK out
     past the rim, and the rivals stacked one a line under IN THIS FIGHT, off the bottom */
  .ra-draft .bw-cd .bw-kv > div { flex:1; min-width:0; }
  .ra-draft .bw-cd .bw-kv > span { width:58px; }
  /* IN THIS FIGHT: labels beside their rivals, as TYPE CHART's are, in compact chips - every row the same size (one compact
     row under one full-size row read as two kinds of chip - Daniel, 2026-11-29), so a busy fighter's list wraps two or three
     to a row instead of one a line off the bottom (Houndour, Lapras) */
  .ra-draft .bw-cd .bw-minis { gap:3px; }
  .ra-draft .bw-cd .bw-mini { font-size:11px; padding:0 5px 0 0; gap:2px; border-width:1.5px; }
  .ra-draft .bw-cd .bw-mini img { width:16px; height:16px; }
  /* ...and on the narrowest phones (an SE: 667px), once either row has three or more, both rows are faces alone */
  @media (max-width:720px) {
    .ra-draft .bw-cd .bw-sec:has(.bw-minis > :nth-child(3)) .bw-mini { font-size:0; gap:0; padding:1px 2px; }
    .ra-draft .bw-cd .bw-sec:has(.bw-minis > :nth-child(3)) .bw-mini img { width:22px; height:22px; }
  }
  .ra-draft .bw-cd .bw-tys { flex-wrap:wrap; justify-content:flex-start; gap:3px; }
}

/* THE KNOCKOUT (games/arena-ko.js). The header's tag: the round, gold in the bracket, slate in consolation, red for the
   final. Its other screens (arena-stage.js info): THE FINAL to watch, and the CHAMPION - a headline, an eggshell plate of
   names, your points */
.ra-lab.ra-ko-main { background:var(--t-yel, #FFC700); color:var(--toy-ink-color); }
.ra-lab.ra-ko-cons { background:var(--ra-slate); }
.ra-lab.ra-ko-final { background:var(--t-red, #E11D48); }
.ra-phone.ra-bd { justify-content:center; align-items:center; gap:14px; padding:20px 16px; text-align:center; }
.ra-bdt { font-family:'Lilita One',sans-serif; font-size:clamp(40px, 13vw, 64px); line-height:1; color:#fff; -webkit-text-stroke:3px var(--toy-ink-color); paint-order:stroke fill;
  text-shadow:0 4px 0 var(--toy-ink-color), 0 3px 0 var(--toy-ink-color), 0 2px 0 var(--toy-ink-color), 0 1px 0 var(--toy-ink-color); }
.ra-bdn { max-width:100%; white-space:nowrap; font-family:'Lilita One',sans-serif; font-size:clamp(26px, 9vw, 40px); line-height:1.1; color:var(--toy-ink-color);
  background:var(--t-yel, #FFC700); border:3px solid var(--toy-ink-color); border-radius:18px; padding:6px 18px 8px; box-sizing:border-box;
  box-shadow:none; --toy-drop:4px; --toy-drop-c:var(--toy-ink-color); --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)); }
.ra-bds { font-family:'Lilita One',sans-serif; font-size:18px; color:#fff; background:var(--toy-ink-color); border-radius:99px; padding:4px 16px 6px; }
.ra-bdl { list-style:none; margin:0; padding:8px 10px; width:min(100%, 340px); box-sizing:border-box; display:flex; flex-direction:column; gap:5px;
  background:var(--toy-bg-eggshell); border:3px solid var(--toy-ink-color); border-radius:18px;
  box-shadow:none; --toy-drop:4px; --toy-drop-c:var(--toy-ink-color); --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)); }
.ra-bdl li { display:flex; align-items:center; gap:8px; min-width:0; font-family:'Lilita One',sans-serif; font-size:20px; line-height:1.2; padding:2px 8px; border-radius:10px; }
.ra-bdl li.first { background:var(--t-yel, #FFC700); }
/* yours, wherever it lands: outlined on pale gold (the full gold is the champion's) */
.ra-bdl li.me:not(.first) { background:#FFF3BF; box-shadow:inset 0 0 0 2.5px var(--toy-ink-color); --toy-drop:0px; --toy-drop-c:transparent; --toy-under:opacity(1); }
.ra-bdl .ra-md, .ra-fgrid .ra-md { flex:none; margin:0 3px; }
.ra-bdl li span { flex:none; width:24px; height:24px; display:grid; place-items:center; border-radius:99px; background:var(--toy-ink-color); color:#fff; font-size:14px; }
.ra-bdl li b { flex:1; min-width:0; font-weight:normal; white-space:nowrap; text-align:left; }
.ra-bdl li i { flex:none; font-style:normal; font-size:15px; color:var(--t-ink2, #4A4E63); }
.ra-bdme { font-family:'Lilita One',sans-serif; font-size:18px; color:var(--toy-ink-color); background:var(--toy-bg-eggshell); border:2.5px solid var(--toy-ink-color); border-radius:99px; padding:4px 14px 6px; }
.ra-bdme b { font-weight:normal; color:#C2255C; }
/* THE FINALISTS (arena-stage.js finalists): a 2x2 of plates - medal, name, the fighter once drafted; yours gold */
.ra-fgrid { list-style:none; margin:0; padding:0; width:min(100%, 360px); display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:10px; }
.ra-fgrid li { display:flex; align-items:center; gap:4px; min-width:0; padding:5px 6px 5px 4px; border-radius:16px; background:var(--toy-bg-eggshell); border:2.5px solid var(--toy-ink-color);
  box-shadow:none; --toy-drop:3px; --toy-drop-c:var(--toy-ink-color); --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)); }
.ra-fgrid li.me { background:var(--t-yel, #FFC700); }
.ra-fgrid b { flex:1; min-width:0; font-weight:normal; white-space:nowrap; text-align:left; font-family:'Lilita One',sans-serif; font-size:19px; line-height:1.1; color:var(--toy-ink-color); }
.ra-ffp { flex:none; width:38px; height:38px; border-radius:10px; --toy-art-scale:.86; }
.ra-ffp img { width:100%; height:100%; object-fit:contain; image-rendering:pixelated; }
/* YOUR FINISH (games/tourney.js view finish / out): one line on the watch and champion screens - "You finished 5th of 60 · out
   in round 2" - ink on slate, under the champion's name: gold is the winner's alone (Daniel, 2026-11-29), and a champion's
   headline already says it, so they get no line */
.ra-bdf { font-family:'Lilita One',sans-serif; font-size:18px; color:var(--toy-ink-color); background:var(--t-sunk, #E2E8F0); border:2.5px solid var(--toy-ink-color);
  border-radius:99px; padding:4px 14px 6px; }
/* THE BREAK between rounds (TOURNEY-PLAN.md step 5): the round done (a kicker), your news as the headline, the bracket
   thinning (from -> to), the finalists when the final is next, your points, the clock to the next round. The headline's
   colour is the news: gold through, coral out, slate in consolation */
.ra-btk { font-family:'Lilita One',sans-serif; font-size:15px; letter-spacing:.12em; color:#fff; background:var(--toy-ink-color); border-radius:99px; padding:3px 14px 5px; }
.ra-btw-go .ra-bdt { color:var(--t-yel, #FFC700); }
.ra-btw-out .ra-bdt { color:#FF8A7A; }
.ra-btw-cons .ra-bdt { color:#CBD5E1; }
.ra-btw .ra-bdt { font-size:clamp(32px, 10vw, 54px); }
/* the bracket card and your news line above it one width (a two-line consolation line ran wider than the card) */
.ra-btw .ra-bds { width:min(100%, 340px); box-sizing:border-box; border-radius:18px; }
.ra-btb { width:min(100%, 340px); box-sizing:border-box; display:flex; align-items:center; flex-wrap:wrap; justify-content:center; gap:6px 10px; font-family:'Lilita One',sans-serif; color:var(--toy-ink-color);
  background:var(--toy-bg-eggshell); border:3px solid var(--toy-ink-color); border-radius:18px; padding:6px 16px 8px;
  box-shadow:none; --toy-drop:4px; --toy-drop-c:var(--toy-ink-color); --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)); }
.ra-btb b { font-weight:normal; font-size:30px; line-height:1; }
.ra-btb b:last-of-type { color:#2B8A3E; }
.ra-btb i { width:26px; height:14px; background:var(--toy-ink-color); clip-path:polygon(0 35%, 60% 35%, 60% 0, 100% 50%, 60% 100%, 60% 65%, 0 65%); }
.ra-btb span { flex-basis:100%; text-align:center; font-size:14px; color:#6b6375; }
/* the clock to the next round: on its own ink pill like the lines above it - bare white type vanished into the stadium's sky
   (Daniel, 2026-11-29; ui-snapshot.js bare now fails any type printed straight on the backdrop) */
.ra-btn { font-family:'Lilita One',sans-serif; font-size:16px; color:#fff; background:var(--toy-ink-color); border-radius:99px; padding:4px 16px 6px; }
