/* ==========================================================================================================
   Poddle UI — design system.  Bright, airy, glossy-white "living-room sports" look, built from original CSS.
   Spec, DOM contracts and copy: docs/ui-spec.md.   Static mock of every state: test/ui-mock.html?screen=all
   Everything is sized in rem and the root font-size tracks the window (17px at 1440x900, 13.6px at 1280x720),
   so the whole interface scales like a console game rendered at a fixed resolution.
   ========================================================================================================== */

/* ---------- typeface (vendored, SIL OFL — see vendor/fonts/README.txt) ---------- */
/* Owner 2026-11-07 (NOTES 296, applied everywhere in NOTES 314): Outfit for the wordmark ("Poddle Logo"), Rubik for every other word. "Poddle Text" is Rubik
   (Atkinson only for latin-ext). "Poddle Heavy" is the same Rubik file declared for 800..900 only: the display rules ask weight 400 (Days One had one heavy
   weight), so the browser clamps them to 800 and titles, plates and figures stay heavy without touching each rule. "Poddle Display" (Days One) is now
   only the stadium's painted boards (web/scenery), not a menu face */
@font-face{font-family:"Poddle Heavy";font-weight:400;font-style:normal;font-display:swap;src:url(vendor/fonts/days-one-400.woff2) format("woff2")}      /* Days One, the display face (Cyan pop): titles, plate and button labels, tabs, figures. ONE weight: never ask it for bold (font-synthesis off below); glyphs it lacks fall to Poddle Text (Rubik) in --font-display */
@font-face{font-family:"Poddle Display";font-weight:100 900;font-style:normal;font-display:swap;src:url(vendor/fonts/days-one-400.woff2) format("woff2")}
@font-face{font-family:"Poddle Text";font-weight:300 900;font-style:normal;font-display:swap;src:url(vendor/fonts/rubik-var.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}      /* Rubik, the menus' text (owner 2026-11-07, NOTES 296) */
@font-face{font-family:"Poddle Logo";font-weight:100 900;font-style:normal;font-display:swap;src:url(vendor/fonts/outfit-var.woff2) format("woff2")}      /* Outfit, the wordmark */
@font-face{font-family:"Poddle Text";font-weight:100 500;font-style:normal;font-display:swap;src:url(vendor/fonts/atkinson-hyperlegible-ext-400.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Poddle Text";font-weight:600 900;font-style:normal;font-display:swap;src:url(vendor/fonts/atkinson-hyperlegible-ext-700.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

/* ---------- tokens ---------- */
:root{
  /* Cyan pop (docs/cyanpop/SPEC.md, the owner's pick 2026-11-09): cyan is THE accent (primary, selection, links, progress), the outlined
     Wii-style blocks stay exactly as strong, only their ink shifts toward the cyan. Every rule below reaches these through the old aliases */
  --cp-main:#00c2ff; --cp-deep:#0068c2; --cp-shine:#d3f4ff; --cp-glow:rgba(0,194,255,.55);
  --cp-ink:#1c3150; --cp-label:#0f2240;                                      /* ink: every block's outline + hard drop; label: text on white */
  --cp-main-rgb:0,194,255; --cp-deep-rgb:0,104,194; --cp-ink-rgb:28,49,80;   /* for translucent washes and shadows: rgba(var(--cp-ink-rgb),.2) */
  --cp-press:#00a3dc; --cp-sea:#0094e0;                                      /* a pressed cyan face; the mid stop of cyan grounds */
  --cp-sky-1:#f2fbff; --cp-sky-2:#e3f6ff; --cp-sky-3:#cdeffc; --cp-haze:#a6e2fa;
  --cp-blue:#0a84ff; --cp-blue-deep:#0047b3; --cp-blue-tint:#e3f1ff;        /* the five plates (Locker, Ranks, Friends, Stats, Boards) and their categories */
  --cp-gold:#ffb800; --cp-gold-deep:#a35f00; --cp-gold-tint:#fff4c9;
  --cp-pink:#ff3d7f; --cp-pink-deep:#b0103f; --cp-pink-tint:#ffe4ec;
  --cp-green:#1fc15c; --cp-green-deep:#0a6e30; --cp-green-tint:#e2f8ea;
  --cp-purple:#9a5cff; --cp-purple-deep:#5a22c9; --cp-purple-tint:#f1e9ff;
  --cp-flame:#ff6a00; --cp-flame-num:#d94f00; --cp-cup:#e8930c; --cp-cup-num:#b86e00; --cp-live:#1fc15c;
  --cp-red:var(--ua-red); --cp-red-deep:var(--ua-red-shade);                 /* danger (Leave court): the players' red, its deep drop */
  --cp-label-rgb:15,34,64;

  /* FULL SWEEP (SPEC "LIGHT AND WII, ONE CARTOON DROP"): light surfaces, one outline, one hard drop. Every block uses these and nothing else */
  --cp-scrim:rgba(242,251,255,.72);                                          /* the frosted layer over the court behind every view (with the existing blur); never a navy dim */
  --cp-panel:#fff; --cp-well:var(--cp-sky-1); --cp-well-2:var(--cp-sky-2);   /* faces; insets, empty states and inputs */
  --cp-text:var(--cp-label); --cp-text-2:rgba(var(--cp-label-rgb),.65); --cp-text-3:rgba(var(--cp-label-rgb),.45);      /* label ink; secondary (~65%); faint / disabled */
  --cp-sec:var(--cp-sky-3); --cp-sec-press:var(--cp-haze); --cp-sec-label:var(--cp-deep);      /* THE secondary button (owner 2026-11-10, B "Sky block"): a sky face a step past the off/slab sky, deep words, the ink outline and drop */
  --cp-off:var(--cp-sky-2); --cp-off-2:var(--cp-haze);                       /* a disabled / off face and its edge (was the lavender concrete) */
  --cp-ol:.1875rem; --cp-ol-sm:.147rem;                                      /* the one outline: blocks (the home's .176-.19), small controls (chips, badges, pills) */
  --cp-drop-x:.47rem; --cp-drop-y:.53rem;                                    /* THE hard drop, big blocks: plates, Play, cards, panels, title plates, result rows, pop-ups */
  --cp-drop-sm-x:.235rem; --cp-drop-sm-y:.265rem;                            /* exactly half: chips, tabs, segments, icon buttons, Back, pills, small buttons. No other offsets */
  /* each drop's colour is the deep shade of the face it sits behind (a var() on :root resolves here, so these are one per colour, never a per-element hook) */
  /* --cp-dc-*: COLOURS for a drop slab's background (a ::after plate, the home's .drop): ink behind white, deep behind cyan, each category's deep behind its colour */
  --cp-dc-ink:var(--cp-ink); --cp-dc-main:var(--cp-ink); --cp-dc-blue:var(--cp-ink); --cp-dc-gold:var(--cp-ink);
  --cp-dc-pink:var(--cp-ink); --cp-dc-green:var(--cp-ink); --cp-dc-purple:var(--cp-ink); --cp-dc-red:var(--cp-ink);      /* (owner 2026-11-10, NOTES 446: one drop colour, ink, behind every block) */
  /* --cp-drop*: whole BOX-SHADOWS (valid comma-list items), never colours: ink behind white, deep behind cyan, deep red behind red */
  --cp-drop:var(--cp-drop-x) var(--cp-drop-y) 0 var(--cp-ink); --cp-drop-sm:var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--cp-ink);
  --cp-drop-deep:var(--cp-drop-x) var(--cp-drop-y) 0 var(--cp-ink); --cp-drop-deep-sm:var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--cp-ink);
  --cp-drop-red:var(--cp-drop-x) var(--cp-drop-y) 0 var(--cp-ink); --cp-drop-red-sm:var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--cp-ink);
  --cp-pop-soft:0 1rem 2.5rem rgba(var(--cp-ink-rgb),.18);                   /* the ONE soft shadow a floating pop-up may add beside its outline + big drop; never on blocks */

  /* Urban aero palette (NOTES 268; the owner's first concept sheet). Mostly blue and white; the pickleball neon is THE accent for what matters
     (the primary action, the selection slab, key numbers, live dots), always with outline ink on it, never white text. Red and lime are the two players' own */
  --ua-cobalt-deep:var(--cp-deep); --ua-cobalt:var(--cp-main); --ua-haze:var(--cp-haze); --ua-cloud:var(--cp-sky-1);      /* Cyan pop: the cobalt family is the cyan family now */
  --ua-kitchen:#2E5BD8; --ua-kitchen-shade:#1E3EC7; --ua-line:#FFFFFF;      /* the court's own (scene colours: never touched) */
  --ua-concrete:var(--cp-off); --ua-concrete-shade:var(--cp-off-2); --ua-apron:var(--cp-off-2);      /* FULL SWEEP: the lavender UI greys (disabled, off, empty) are pale sky now; no JS reads them */
  --ua-red:#FF3B2F; --ua-red-shade:#A8282B; --ua-lime:#9BE22D; --ua-lime-shade:#669A29;
  --ua-ink:var(--cp-label); --ua-outline:var(--cp-ink); --ua-neon:var(--cp-main); --ua-neon-shade:var(--cp-press);      /* Cyan pop: --ua-neon is the UI accent (cyan); the ball's own neon is --ball below */
  /* the logo's ball (web/art/wm/l1.webp, the logo lab's: neon body #E4FF3A shaded to #b9d400, seven holes #768a08 / #96ac0c, no shine since NOTES 363), in two layers so a spin turns the holes and not
     the light. The ball is the r=47 circle of a 100 box: background-size 106.4% fills a box with it. Every drawn pickleball in the UI uses these (ua-fx.css hover ball, the .logo-ball fallbacks) */
  --ball-body:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3CclipPath id='c'%3E%3Ccircle cx='50' cy='50' r='47'/%3E%3C/clipPath%3E%3CradialGradient id='g' cx='40%25' cy='34%25' r='70%25'%3E%3Cstop offset='0' stop-color='%23f6ffb0'/%3E%3Cstop offset='.55' stop-color='%23e4ff3a'/%3E%3Cstop offset='1' stop-color='%23b9d400'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cg clip-path='url(%23c)'%3E%3Crect width='100' height='100' fill='url(%23g)'/%3E%3Ccircle cx='44' cy='40' r='50' fill='url(%23g)'/%3E%3C/g%3E%3C/svg%3E");
  --ball-holes:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='9' fill='%23768a08'/%3E%3Ccircle cx='50' cy='52.16' r='7.74' fill='%2396ac0c'/%3E%3Ccircle cx='50' cy='22.5' r='9' fill='%23768a08'/%3E%3Ccircle cx='50' cy='24.66' r='7.74' fill='%2396ac0c'/%3E%3Ccircle cx='73.6' cy='36.2' r='9' fill='%23768a08'/%3E%3Ccircle cx='73.6' cy='38.36' r='7.74' fill='%2396ac0c'/%3E%3Ccircle cx='73.6' cy='63.8' r='9' fill='%23768a08'/%3E%3Ccircle cx='73.6' cy='65.96' r='7.74' fill='%2396ac0c'/%3E%3Ccircle cx='50' cy='77.5' r='9' fill='%23768a08'/%3E%3Ccircle cx='50' cy='79.66' r='7.74' fill='%2396ac0c'/%3E%3Ccircle cx='26.4' cy='63.8' r='9' fill='%23768a08'/%3E%3Ccircle cx='26.4' cy='65.96' r='7.74' fill='%2396ac0c'/%3E%3Ccircle cx='26.4' cy='36.2' r='9' fill='%23768a08'/%3E%3Ccircle cx='26.4' cy='38.36' r='7.74' fill='%2396ac0c'/%3E%3C/svg%3E");
  --cp-title-fs:2.6rem;      /* (FULL SWEEP) every view's title plate: the one size step (Locker, Friends, Ranks, Choose a mode, Your stats, Leaderboard, Play a bot, Create court, Settings, Paused, Connect, You win) */
  --cp-skew:-6deg; --ua-skew:var(--cp-skew); --ua-r:.375rem; --ua-ol:var(--cp-ol);                       /* the plates' slant, their slightly rounded corners, every chunky outline */
  --ua-drop:var(--cp-drop-x);                                                /* the offset drop plate (FULL SWEEP: the one big drop) */
  --ua-spring:cubic-bezier(.2,1.5,.4,1); --ua-snap:cubic-bezier(.2,.9,.25,1);
  --font-display:"Poddle Heavy","Poddle Text",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  --font-text:"Poddle Text",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  --font-logo:"Poddle Heavy",system-ui,sans-serif;      /* Cyan pop: the wordmark face is Days One too (the drawn art carries it; this is only the fallback text) */

  /* the old names, aliased onto the palette so every rule below keeps resolving */
  /* ink: never pure black */
  --ink:var(--ua-ink); --ink-strong:var(--cp-label); --ink-soft:var(--cp-text-2); --ink-faint:var(--cp-text-3);      /* FULL SWEEP: label ink at 65% / 45% */
  /* whites and pale blues */
  --white:#fff; --sky-1:var(--ua-cloud); --sky-2:var(--cp-sky-2); --sky-3:var(--cp-sky-3); --sky-4:var(--ua-haze);
  /* the outline blue */
  --line:var(--ua-cobalt); --line-deep:var(--ua-cobalt-deep); --line-soft:var(--ua-haze); --line-faint:var(--cp-shine);
  /* players: signal red is the boy / "me", lime the girl / "them" (shade/lit pairs; -ink is the text tone on white) */
  --me:var(--ua-red); --me-deep:var(--ua-red-shade); --me-ink:#c7241b; --me-navy:#6e1418; --me-tint:#ffe4e1;
  --them:var(--ua-lime); --them-deep:var(--ua-lime-shade); --them-ink:#4b7a15; --them-navy:#2f4c0c; --them-tint:#eef9dc;
  /* signals */
  --good:#3ecf72; --good-deep:#13803f; --good-lamp:#1fa353; --warn:#ffb534; --warn-deep:#a86400; --warn-lamp:#e08d00; --bad:#ff6464; --bad-deep:#d23232;
  --gold-1:#fff1a6; --gold-2:#ffd34a; --gold-3:#f2a81d; --gold-4:#c97f08;
  --silver-1:#fbfdff; --silver-2:#d8e2ea; --silver-3:#a9b8c4; --silver-4:#8093a1;
  --ball:#E4FF3A; --ball-deep:#B4D21C;      /* the pickleball art's own neon: never UI chrome, never cyan */

  /* radii */
  --r-xs:.375rem; --r-sm:.625rem; --r-md:1rem; --r-lg:1.5rem; --r-xl:2.25rem; --r-pill:999px;

  /* shadows (all static — nothing animates a shadow). FULL SWEEP: the old soft blurs are the one hard drop now, so every rule that used them changes at once
     (sh-1 / sh-2 / sh-hud: pills, stats, ribbons, tips, emote bubbles, the HUD: the small drop; sh-3: cards and the account pop-up: the big drop) */
  --sh-1:var(--cp-drop-sm);
  --sh-2:var(--cp-drop-sm);
  --sh-3:var(--cp-drop);
  --sh-hud:var(--cp-drop-sm);
  --glow:0 0 0 .1875rem var(--cp-deep), 0 0 0 .4375rem var(--cp-glow), 0 0 1.5rem rgba(var(--cp-main-rgb),.65);      /* the focus ring: deep inside, the cyan glow outside (reads on any ground) */
  --inner-hi:inset 0 .125rem 0 rgba(255,255,255,.95), inset 0 -.125rem .375rem rgba(var(--cp-main-rgb),.12);

  /* textures — in device pixels on purpose: rem-sized lines fall off the pixel grid and band */
  --tex-scan:repeating-linear-gradient(0deg, rgba(var(--cp-main-rgb),.08) 0 1px, transparent 1px 4px);
  --tex-diag:repeating-linear-gradient(135deg, rgba(var(--cp-main-rgb),.07) 0 6px, transparent 6px 14px);
  --tex-vignette:radial-gradient(ellipse 120% 90% at 50% 45%, rgba(255,255,255,0) 55%, rgba(var(--cp-deep-rgb),.22) 100%);
  --gloss:linear-gradient(180deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.35) 46%, rgba(255,255,255,0) 50%);

  /* spacing */
  --s-1:.25rem; --s-2:.5rem; --s-3:.75rem; --s-4:1rem; --s-5:1.5rem; --s-6:2rem; --s-7:3rem; --s-8:4rem;
  --edge:1rem;                                /* HUD distance from the window edge */

  /* type */
  --font:"Poddle Text", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;      /* Rubik (NOTES 314; was M PLUS Rounded) */
  --t-xs:.8125rem; --t-sm:.9375rem; --t-md:1.0625rem; --t-lg:1.4375rem; --t-xl:1.875rem; --t-2xl:3rem; --t-3xl:3.5rem; --t-score:3.25rem; --t-callout:4.5rem;
  --track-caps:.16em; --track-title:.01em;

  /* motion */
  --ease-out:cubic-bezier(.22,1,.36,1); --ease-soft:cubic-bezier(.45,0,.25,1); --ease-bounce:cubic-bezier(.34,1.56,.64,1);
  --d-fast:160ms; --d-med:320ms; --d-slow:600ms;
  --d-pulse:1600ms; --d-callout:1200ms; --d-banner:1900ms; --d-newgame:5000ms;

  /* layers */
  --z-hud:10; --z-banner:11; --z-callout:13; --z-toast:24; --z-veil:18; --z-screen:20; --z-confetti:22;
}

/* ---------- base ---------- */
/* Nothing on the page is selectable (a drag, a double-click or a long press mid-swing lit up text) EXCEPT what you type and the codes:
   a code is meant to be copied, so one click takes all of it. NOTES 79. */
html{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
:where(*){touch-action:manipulation}      /* no double-tap zoom anywhere (touch-action is not inherited, so every element; zero specificity: an element's own touch-action wins). A spectator taps emotes fast on a phone (NOTES 246) */
input,textarea,select,[contenteditable]{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}
#room-code,#title-room-code,#pad-code,.code-boxes.is-static .code-box,.share-link .addr{-webkit-user-select:all;user-select:all;-webkit-touch-callout:default}
#pad-code,#start-code{white-space:nowrap}      /* P-XXXX never splits at its hyphen */
html{font-size:clamp(10px, min(1.1806vw, 1.8889vh), 26px)}
html,body{margin:0;height:100%;overflow:hidden;background:#dfeef6}
html{font-synthesis-weight:none}      /* Days One has one weight: no faux bold anywhere (weight only, so the one italic stamp keeps its slant) */
body{color:var(--ink);font:500 var(--t-md)/1.5 var(--font);
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;font-feature-settings:"palt" 0}
[hidden]{display:none!important}
*,*::before,*::after{box-sizing:border-box}
#stage{position:fixed;inset:0}
#kb-dot{display:none;position:fixed;left:50%;top:50%;z-index:5;width:.375rem;height:.375rem;margin:-.1875rem 0 0 -.1875rem;border-radius:50%;background:#fff;box-shadow:0 0 0 .09rem rgba(28,49,80,.85);pointer-events:none}      /* shift lock's aim dot: white on a thin ink ring, readable on court and sky */
html.kb-locked #kb-dot{display:block}
#stage > canvas{transition:opacity var(--d-slow) var(--ease-soft)} #stage > canvas.gl-wait{opacity:0}      /* title first (scene.js): the court fades in under the menu once its shaders are linked and the scenery is in, never a blank or half-built frame */
.caps{font-size:var(--t-xs);font-weight:400;font-family:var(--font-display);letter-spacing:var(--track-caps);text-transform:uppercase;color:var(--ink-soft)}
.t-title{font-size:var(--t-2xl);font-weight:400;font-family:var(--font-display);line-height:1.15;letter-spacing:.02em;color:var(--ink-strong);margin:0}
.t-lead{font-size:var(--t-lg);font-weight:500;line-height:1.5;letter-spacing:.01em;color:var(--ink);margin:0}
.t-title.is-bad{color:var(--bad-deep)} .t-title.is-good{color:var(--good-deep)}
.t-title.is-bad::before{content:"!";display:inline-grid;place-items:center;width:1.1em;height:1.1em;margin-right:.35em;border-radius:50%;background:var(--bad-deep);color:#fff;font-size:.7em;font-weight:400;font-family:var(--font-display);vertical-align:.12em}
.t-note{font-size:var(--t-sm);font-weight:500;color:var(--ink-soft);margin:0}
.is-good{color:var(--good-deep)} .is-bad{color:var(--bad-deep)}

/* ==========================================================================================================
   SCREENS
   ========================================================================================================== */
.screen{position:fixed;inset:0;z-index:var(--z-screen);display:flex;flex-direction:column;opacity:0;visibility:hidden;
  transition:opacity var(--d-med) var(--ease-soft), visibility 0s linear var(--d-med)}
.screen.is-active{opacity:1;visibility:visible;transition-delay:0s}
.menu-glass,.menu-bg{scale:1.015;transition:opacity var(--d-med) var(--ease-soft), scale 420ms var(--ease-out), visibility 0s linear var(--d-med)} .menu-glass.is-active,.menu-bg.is-active{scale:none}      /* menus settle in from a hair closer and drift toward you as they go: depth, not a slide. Never under 1, so no edge shows */
.screen.is-active .menu-head{animation:hm-head 420ms var(--ease-out) backwards} @keyframes hm-head{from{opacity:0;translate:0 -1.5rem}}      /* the header drops into place */
.screen.is-active .panel, .screen.is-active .result-card{animation:panel-in var(--d-slow) var(--ease-out) both}
/* visibility:hidden does not stop CSS animations: a hidden screen must not tick over the live game */
.screen:not(.is-active) *,.screen:not(.is-active) *::before,.screen:not(.is-active) *::after{animation:none!important}

/* full-screen menu ground: pale blue-white, faint scan lines, soft vignette */
.menu-bg{background:var(--tex-vignette), var(--tex-scan), linear-gradient(180deg,#f7fbfd 0%,#eaf3f8 45%,#dcebf3 100%)}
.menu-head,.menu-foot{flex:none;display:flex;align-items:center;gap:var(--s-5);padding:0 var(--s-7);position:relative}
.menu-head{height:5rem;justify-content:center;background:var(--tex-diag), linear-gradient(180deg, #fff, var(--sky-2));border-bottom:.125rem solid var(--line-soft);box-shadow:0 .125rem .75rem rgba(80,140,175,.12)}
.menu-foot{height:4.5rem;background:var(--tex-diag), linear-gradient(180deg, var(--sky-2), var(--sky-3));border-top:.125rem solid var(--line-soft);justify-content:space-between;color:var(--ink-soft);font-size:var(--t-sm)}
.menu-title{display:flex;align-items:center;gap:var(--s-3);font-size:var(--t-xl);font-weight:400;font-family:var(--font-display);color:var(--ink-strong);letter-spacing:.04em}
#lobby-title.swap{animation:hm-title var(--d-med) var(--ease-out)} @keyframes hm-title{from{opacity:0;translate:0 -.5rem}}      /* the new heading drops in with the view (ui.js lobbyView) */
.menu-body{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--s-5);padding:var(--s-5) var(--s-7)}

/* veil: sits over the live court for result / error cards */
/* no backdrop blur here or on any overlay: it is a full-screen two-pass filter re-run on every WebGL frame. The one exception is .glass (title + lobby), where nothing is being played */
.veil{background:var(--tex-scan), linear-gradient(180deg,rgba(255,255,255,.92),rgba(226,240,248,.88));align-items:center;justify-content:center;z-index:var(--z-veil)}
#screen-match.is-active{transition:opacity 100ms var(--ease-soft), visibility 0s}      /* in fast: the light sweep crosses a solid card, not a half-faded one. It still leaves at --d-med */
.veil.is-result{background:repeating-linear-gradient(135deg, rgba(52,190,237,.075) 0 14px, transparent 14px 32px), linear-gradient(180deg,#fff,var(--sky-2))}          /* a results ground, fully opaque */

/* ==========================================================================================================
   PANEL (glossy card)
   ========================================================================================================== */
.panel{position:relative;background:linear-gradient(180deg,#f6fafc 0%,#f3f8fb 45%,#e7f1f6 100%);border:.1875rem solid var(--line);border-radius:var(--r-xl);
  box-shadow:var(--sh-3), inset 0 0 0 .1875rem #fff;padding:var(--s-6) var(--s-7);text-align:center}
.panel::before{content:"";position:absolute;inset:.1875rem .1875rem auto;height:42%;border-radius:calc(var(--r-xl) - .375rem) calc(var(--r-xl) - .375rem) 50% 50% / calc(var(--r-xl) - .375rem) calc(var(--r-xl) - .375rem) 1.5rem 1.5rem;
  background:linear-gradient(180deg, rgba(255,255,255,1), rgba(255,255,255,0));pointer-events:none}
.panel > *{position:relative}
.panel-sm{border-radius:var(--r-lg);padding:var(--s-4) var(--s-5);border:.125rem solid var(--line-soft)} .panel-sm::before{display:none}
.panel-wide{width:min(64rem, 92vw)} .panel-mid{width:min(50rem, 92vw)} .panel-narrow{width:min(34rem, 92vw)}
.panel.is-error{border-color:var(--bad)}
.screen.is-active .panel.is-error{animation:panel-in var(--d-slow) var(--ease-out) both, nudge 420ms var(--ease-soft) 1}     /* same specificity as the panel-in rule above it, or the nudge never plays */
.well{background:var(--tex-diag), linear-gradient(180deg,var(--sky-1),var(--sky-2));border:.125rem solid var(--line-faint);border-radius:var(--r-lg);box-shadow:inset 0 .125rem .5rem rgba(120,170,200,.16)}

/* ==========================================================================================================
   PILL BUTTON     .btn  (+ .is-focus  pulse,  :active/.is-pressed)
   ========================================================================================================== */
.btn{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:var(--s-3);height:3.75rem;padding:0 2.75rem;border-radius:var(--r-pill);
  border:.1875rem solid var(--line);background:linear-gradient(180deg,#ffffff 0%,#f7fbfd 47%,#e3eef4 53%,#edf5f9 100%);color:var(--ink-strong);font:400 var(--t-lg)/1 var(--font-display);letter-spacing:.02em;
  box-shadow:var(--sh-2), var(--inner-hi);cursor:pointer;transition:transform var(--d-fast) var(--ease-bounce), scale 240ms var(--ease-bounce), opacity var(--d-med) var(--ease-soft);-webkit-tap-highlight-color:transparent;outline:0;isolation:isolate}
/* the gloss is a short pill, so its tight corners used to poke out past the button's wide ones. The clip is the button's own
   inner pill, written from the gloss's box: out by its top and side offsets, down by the 52% of the button below it. */
.btn::before{content:"";position:absolute;left:.5rem;right:.5rem;top:.125rem;height:48%;border-radius:var(--r-pill);background:linear-gradient(180deg,#fff,rgba(255,255,255,.55));opacity:1;pointer-events:none;z-index:-1;
  clip-path:inset(-.125rem -.5rem calc(-108.334% + .125rem) round 999px)}
.btn::after{content:"";position:absolute;inset:-.1875rem;border-radius:inherit;box-shadow:var(--glow);opacity:0;pointer-events:none;transition:opacity var(--d-fast) linear}
.btn:hover::after,.btn:focus-visible::after{opacity:.7}
.btn.is-focus::after{opacity:.8;animation:glow-pulse var(--d-pulse) var(--ease-soft) infinite}
.btn.is-focus{animation:btn-breathe var(--d-pulse) var(--ease-soft) infinite}
.btn:active,.btn.is-pressed{transform:scale(.955);animation:none;background:linear-gradient(180deg,#e4f3fa,#d3ebf6)}
.btn-lg{height:4.5rem;padding:0 3.5rem;font-size:var(--t-xl)}
.btn-sm{height:2.75rem;padding:0 1.5rem;font-size:var(--t-md)}
.btn:active,.btn.is-pressed{transition-duration:90ms, 240ms, var(--d-med)}      /* snappy in, springy out */
@media (hover:hover){ .btn:hover:where(:not(:disabled,[aria-disabled="true"])){scale:1.04} .btn:hover:active,.btn:hover.is-pressed{scale:1} .court-list .btn:hover,.settings .btn:hover,.cam-btns .btn:hover{scale:none} }      /* 'scale', not transform: it composes with .is-focus's breathing (0,2,0 so the resets win). A pill in a scroll box (court list, settings card, the camera primer) would clip its halo */

/* key-cap hint chip */
.keycap{display:inline-flex;align-items:center;justify-content:center;min-width:1.625rem;height:1.625rem;white-space:nowrap;padding:0 .4375rem;border-radius:.4375rem;border:.09375rem solid var(--sky-4);border-bottom-width:.1875rem;
  background:linear-gradient(180deg,#fff,var(--sky-2));color:var(--ink-strong);font:400 var(--t-xs)/1 var(--font-display);letter-spacing:.04em;box-shadow:0 .0625rem .125rem rgba(40,80,110,.18)}
/* the key strip is help, not HUD: it shows on a key press / pointer move and when the HUD first appears, then gets out of the way.
   It also yields the bottom band to a toast (body.has-toast). */
/* no plate behind it: two white keys and their words straight on the court, so the words carry their own dark edge */
.keyhints,.views{position:fixed;bottom:var(--edge);z-index:var(--z-hud);max-width:46vw;padding:0;
  color:#fff;text-shadow:0 .0625rem .1875rem rgba(10,30,45,.8), 0 0 .5rem rgba(10,30,45,.5);font-size:max(var(--t-sm),12px);font-weight:400;font-family:var(--font-display);line-height:1;transition:opacity 500ms var(--ease-soft), transform 500ms var(--ease-out)}
.keyhints{right:var(--edge)} .views{left:var(--edge);max-width:calc(100vw - 2 * var(--edge))}               /* players: two keys bottom-right. Spectators: four view chips bottom-left. Never both */
.keyhints.is-idle,.views.is-idle,body.has-toast .keyhints,body.has-toast .views{opacity:0;transform:translateY(.5rem)}
body.no-keyhints :is(.keyhints,.keyhints-inline,.views-key,.emote-key){display:none!important} body.no-rally #rally-box{display:none}      /* Settings > Key hints (every keycap strip and the V / digit caps; the keys still work), Rally counter. main.js hud() sets the classes */
.views.is-idle:has(:focus-visible){opacity:1;transform:none}       /* a chip reached with Tab must be seen (a clicked one may fade) */
body.has-toast .keyhints,body.has-toast .views{transition-duration:140ms}                 /* out of the toast's way before it has faded in */
.keyhints .keycap,.views .keycap{min-width:1.625rem;height:1.625rem;font-size:max(var(--t-xs),11px);background:#fff;border-color:#fff;border-bottom-color:#c9d6de;text-shadow:none;box-shadow:0 .0625rem .25rem rgba(10,30,45,.5)}
.keyhints ul{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.375rem .875rem;list-style:none;margin:0;padding:0}
.keyhints li{display:inline-flex;align-items:center;gap:.375rem;white-space:nowrap}
.keyhints p{display:none}
.menu-foot .keyhints-inline{display:flex;gap:var(--s-5);list-style:none;margin:0;padding:0;font-weight:400;font-family:var(--font-display);font-size:var(--t-sm);color:var(--ink)}
.menu-foot .keyhints-inline li{display:inline-flex;align-items:center;gap:.5rem;white-space:nowrap}

/* ==========================================================================================================
   HUD
   ========================================================================================================== */
/* scoreboard: two slim translucent tabs around a rally lozenge. The round ends are half the tab's height (2.125rem), not --r-pill:
   a 999px corner makes the browser scale every radius on that edge down to fit, and the inner corners by the rally came out square */
.scoreboard{position:fixed;top:var(--edge);left:50%;transform:translateX(-50%);z-index:calc(var(--z-hud) + 2);display:flex;align-items:stretch;gap:.375rem}
.score-tab{position:relative;display:flex;align-items:center;gap:.625rem;width:19.5rem;height:4.25rem;padding:0 1.125rem 0 .625rem;border-radius:2.125rem var(--r-md) var(--r-md) 2.125rem;
  background:linear-gradient(180deg,rgba(255,255,255,.97),rgba(238,246,250,.93));border:.125rem solid #fff;box-shadow:var(--sh-hud);overflow:hidden}
.score-tab::after{content:"";position:absolute;left:0;right:0;bottom:0;height:.3125rem;background:var(--me)}
.score-tab.is-them{flex-direction:row-reverse;padding:0 .625rem 0 1.125rem;border-radius:var(--r-md) 2.125rem 2.125rem var(--r-md);text-align:right}
.score-tab.is-them::after{background:var(--them-deep)}
.score-who{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.15}
/* the name row (NOTES 212): the name, then its badge and emblem (ui.js regBadge / rankBadge put them after the name, inside this row). The badges never shrink and
   hug the name; the name gives way first: ui.js fitNames scales its type down (--name-fs, never under max(.9375rem, 12px)) before it ellipsizes. 19.5rem wide (was 17.5): the room for a name was 7rem */
.score-name{display:flex;align-items:center;min-width:0;max-width:100%;min-height:calc(1.3125rem * 1.15)}      /* the row keeps the full type's height: a fitted name does not lift the sub-label */ .score-tab.is-them .score-name{justify-content:flex-end}
.score-who b{flex:0 1 auto;min-width:0;font-size:var(--name-fs,1.3125rem);font-weight:400;font-family:var(--font-display);color:var(--ink-strong);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.score-name > .reg-badge,.score-name > .rank-badge{flex:none}      /* sized by the row's type (1rem), not the name's: a badge keeps its size while the name shrinks */
.score-who small{font-size:max(.75rem,11px);font-weight:400;font-family:var(--font-display);letter-spacing:.06em;color:var(--ink-soft);white-space:nowrap} .score-who small:empty{display:none}
.score-num{min-width:3.5rem;text-align:center;font-size:var(--t-score);font-weight:400;font-family:var(--font-display);line-height:1;transform-origin:50% 55%;color:var(--ink-strong);font-variant-numeric:tabular-nums;display:inline-block}
.is-me .score-num{color:var(--me-ink)} .is-them .score-num{color:var(--them-ink)}
.score-num.pop{animation:num-pop 450ms var(--ease-bounce)} .rally b.pop{animation:rally-pop 450ms var(--ease-bounce)}
.rally{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:3.75rem;padding:0 .625rem;border-radius:var(--r-md);
  background:rgba(255,255,255,.78);border:.125rem solid #fff;box-shadow:var(--sh-hud);line-height:1}
.rally small{font-size:max(.75rem,11px);font-weight:400;font-family:var(--font-display);letter-spacing:var(--track-caps);text-transform:uppercase;color:var(--ink-soft);margin-bottom:.1875rem}
.rally b{font-size:1.375rem;font-weight:400;font-family:var(--font-display);color:var(--ink-strong);font-variant-numeric:tabular-nums;display:inline-block}

/* player colour chip: glossy token with a plain head-and-shoulders mark */
.chip{flex:none;position:relative;width:2.25rem;height:2.25rem;border-radius:50%;border:.1875rem solid #fff;box-shadow:0 .0625rem .25rem rgba(10,30,50,.30);overflow:hidden;
  background:radial-gradient(circle at 50% 38%, #fff 0 22%, transparent 23%), radial-gradient(ellipse 60% 46% at 50% 100%, #fff 0 98%, transparent 100%), linear-gradient(180deg,var(--me),var(--me-deep))}
.chip::after{content:none}      /* (NOTES 891, owner: "remove shine on player pfps in game") no gloss band across a player's picture: the HUD seats, the VS screen, the result */
.chip-them{background:radial-gradient(circle at 50% 38%, #fff 0 22%, transparent 23%), radial-gradient(ellipse 60% 46% at 50% 100%, #fff 0 98%, transparent 100%), linear-gradient(180deg,var(--them),var(--them-deep))}
.chip-lg{width:4.5rem;height:4.5rem;border-width:.25rem}

/* serve indicator: a little pickleball that bobs beside the server's score */
.serve-ind{flex:none;width:1.25rem;height:1.25rem;visibility:hidden;
  background:url(favicon.svg?v=2) center / 100% 100% no-repeat;      /* the favicon's ball (NOTES 221), since NOTES 480 the wordmark's: the neon ball in its cyan ring over the deep drop, drawn whole (no round clip: the drop sits below the ring) */
  filter:drop-shadow(0 0 .09rem #fff) drop-shadow(0 0 .09rem #fff)}
.serve-ind{scale:0;transition:scale 180ms var(--ease-soft), visibility 0s linear 180ms}
.serve-ind.on{visibility:visible;scale:1;animation:serve-bob 900ms var(--ease-soft) infinite;transition:scale 420ms var(--ease-bounce) 120ms, visibility 0s}      /* the serve changes sides: the ball shrinks away on one tab and springs up on the other just after (scale: composes with the bob) */

/* small banner tag that drops out from under the scoreboard */
.banner-tag{position:fixed;top:calc(var(--edge) + 4.25rem + .5rem);left:0;right:0;z-index:var(--z-banner);display:flex;justify-content:center;pointer-events:none}
.banner-tag > span{position:relative;display:inline-flex;align-items:center;height:2.375rem;padding:0 1.5rem .0625rem;border-radius:var(--r-pill);border:.15625rem solid #fff;color:#fff;
  font-size:max(1.1875rem,17px);font-weight:400;font-family:var(--font-display);letter-spacing:.03em;text-shadow:0 .0625rem .125rem rgba(0,20,50,.55);box-shadow:var(--sh-hud);opacity:0;transform:translateY(-2.5rem) scale(.8);overflow:hidden;
  max-width:calc(100vw - 2 * var(--edge));      /* "Bartholomew joined to play" is far longer than "Your point": the pill stays inside the screen and the name ellipses */
  background:linear-gradient(180deg,#2a86ea,#0f5cc0)}
.banner-tag > span > span{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.banner-tag > span::before{content:"";position:absolute;left:.5rem;right:.5rem;top:.0625rem;height:45%;border-radius:var(--r-pill);background:linear-gradient(180deg,rgba(255,255,255,.3),rgba(255,255,255,0))}
.banner-tag.is-them > span{background:linear-gradient(180deg,#ee6c25,#c0400a);text-shadow:0 .0625rem .125rem rgba(70,20,0,.55)}
.banner-tag.show > span{animation:banner-drop var(--d-banner) linear both}

/* The count into a match (ui.countdown): the same glossy lettering as the callout, big and centred over the far end of the
   court - nothing is in play under it yet. One pop per whole second; the pill beneath says what the number is for. */
.countdown{position:fixed;left:0;right:0;top:23%;z-index:calc(var(--z-callout) + 1);display:flex;flex-direction:column;align-items:center;gap:.625rem;pointer-events:none}
.countdown b{position:relative;isolation:isolate;display:inline-block;font-size:calc(var(--t-callout) * 1.75);font-weight:400;font-family:var(--font-display);line-height:1;color:var(--me);font-variant-numeric:tabular-nums;padding:.06em .18em}
.countdown b::before,.countdown b::after{content:attr(data-text);position:absolute;inset:0;padding:inherit}
.countdown b::before{z-index:-1;color:#fff;filter:drop-shadow(0 .06em .04em rgba(14,63,140,.38))}
.countdown b::after{z-index:1;color:transparent;background:linear-gradient(180deg,#7cc6ff 0%,var(--me) 47%,var(--me-deep) 53%,#2a86ea 100%);-webkit-background-clip:text;background-clip:text}
.countdown > span{display:inline-flex;align-items:center;height:2.375rem;padding:0 1.5rem .0625rem;border-radius:var(--r-pill);border:.15625rem solid #fff;color:#fff;
  font-size:max(1.1875rem,17px);font-weight:400;font-family:var(--font-display);letter-spacing:.03em;text-shadow:0 .0625rem .125rem rgba(0,20,50,.55);box-shadow:var(--sh-hud);background:linear-gradient(180deg,#2a86ea,#0f5cc0)}
.countdown.tick b{animation:count-pop 1s linear both}
body:not([data-screen="hud"]) .countdown{display:none}            /* the title and the lobby are see-through: nothing of a room shows under them */

/* shot-type callout: glossy colour-filled rounded letters, ONE clean white outline, a soft shadow.
   <div class="callout" data-text="Smash">Smash</div>  (data-text must mirror the text: both layers are pseudo-elements)
   It lives in the sky band under the banner tag — never over the paddle, the ball's landing zone or the net. */
.callout-layer{position:fixed;left:0;right:0;top:16%;z-index:var(--z-callout);display:flex;justify-content:center;pointer-events:none}
.callout{position:relative;isolation:isolate;display:inline-block;font-size:var(--t-callout);font-weight:400;font-family:var(--font-display);line-height:1;letter-spacing:.03em;white-space:nowrap;opacity:0;color:var(--me);padding:.12em .25em;will-change:transform,opacity}
.callout::before,.callout::after{content:attr(data-text);position:absolute;inset:0;padding:inherit}
.callout::before{z-index:-1;color:#fff;filter:drop-shadow(0 .06em .04em rgba(14,63,140,.38))}
.callout::after{z-index:1;color:transparent;background:linear-gradient(180deg,#7cc6ff 0%,var(--me) 47%,var(--me-deep) 53%,#2a86ea 100%);-webkit-background-clip:text;background-clip:text}
.callout.is-them{color:var(--them-deep)}
.callout.is-them::before{filter:drop-shadow(0 .06em .04em rgba(138,47,6,.38))}
.callout.is-them::after{background-image:linear-gradient(180deg,#ffc08a 0%,var(--them) 47%,var(--them-deep) 53%,#ee6c25 100%)}
.callout.go{animation:callout-pop var(--d-callout) linear both}

/* toast: a calm white pill. Over the court it sits in the apron under the near baseline (never on the court or the paddle);
   on a menu screen it floats above the footer. Hidden while an overlay card is up. */
.toast{position:fixed;left:50%;bottom:7.5rem;max-width:calc(100vw - 4 * var(--edge));z-index:var(--z-toast);transform:translate(-50%,.75rem) scale(.96);opacity:0;pointer-events:none;white-space:nowrap;
  display:inline-flex;align-items:center;gap:.75rem;height:3.25rem;padding:0 1.75rem;border-radius:var(--r-pill);border:.15625rem solid var(--line);
  background:linear-gradient(180deg,#ffffff 0%,#f7fbfd 47%,#e3eef4 53%,#edf5f9 100%);color:var(--ink-strong);font-size:var(--t-lg);font-weight:400;font-family:var(--font-display);box-shadow:var(--sh-hud), var(--inner-hi);
  transition:opacity 200ms var(--ease-soft), transform 220ms var(--ease-soft)}      /* leaves quick and soft */
.toast{white-space:normal;width:max-content;max-width:min(46rem,calc(100vw - 4 * var(--edge)));height:auto;min-height:3.25rem;padding-block:.5rem;border-radius:1.625rem;text-align:center;text-wrap:balance;line-height:1.25}      /* a long toast wraps inside its max-width instead of running off the screen (NOTES 141); one line is the same pill as before */
.toast.on{opacity:1;transform:translate(-50%,0) scale(1);transition:opacity var(--d-med) var(--ease-soft), transform 420ms var(--ease-bounce)}      /* arrives with a spring */
body[data-screen="hud"] .toast{bottom:var(--edge)}
body[data-overlay] .toast.on{opacity:0}

/* connection status lights */
.light{flex:none;display:inline-block;width:.75rem;height:.75rem;border-radius:50%;position:relative;background:radial-gradient(circle at 35% 30%,#ffb0b0,var(--bad) 55%,var(--bad-deep));box-shadow:0 0 0 .125rem #fff, 0 0 .5rem rgba(255,100,100,.7)}
.is-ok > .light,.light.is-ok{background:radial-gradient(circle at 35% 30%,#c4ffd9,var(--good) 55%,var(--good-lamp));box-shadow:0 0 0 .125rem #fff, 0 0 .5rem rgba(62,207,114,.8)}
.is-wait > .light,.light.is-wait{background:radial-gradient(circle at 35% 30%,#fff0c4,var(--warn) 55%,var(--warn-lamp));box-shadow:0 0 0 .125rem #fff, 0 0 .5rem rgba(255,181,52,.8);animation:light-blink 1200ms var(--ease-soft) infinite}
.is-off > .light,.light.is-off{background:radial-gradient(circle at 35% 30%,#fff,var(--sky-4) 55%,var(--ink-faint));box-shadow:0 0 0 .125rem #fff}
.light-lg{width:1.125rem;height:1.125rem}
/* HUD corner, top-left: hamburger, room code, then the spectator bits. No status pills any more: the three statuses are rows in the settings panel. */
.corner-br{flex-basis:100%;height:0}                                 /* the stats panel always starts its own row */
.corner{position:fixed;left:var(--edge);top:var(--edge);z-index:var(--z-hud);display:flex;align-items:center;flex-wrap:wrap;gap:.375rem var(--s-2);max-width:calc(50vw - 23.5rem - var(--edge))}   /* never under the scoreboard (up to 45.2rem since the 19.5rem tabs, NOTES 212; centred, drawn above): it wraps to a second row first */
body[data-settings] .corner{z-index:var(--z-screen)}                /* paused + open: the hamburger stays sharp above the blur, it is the way back */
.btn-icon{width:2.75rem;height:2.75rem;padding:0;flex:none;box-shadow:var(--sh-hud), var(--inner-hi)}
.btn-icon svg{width:1.5rem;height:1.5rem;fill:none;stroke:var(--ink-strong);stroke-width:2.75;stroke-linecap:round}
.btn-icon[aria-expanded="true"]{background:linear-gradient(180deg,#e4f3fa,#d3ebf6)} .btn-icon[aria-expanded="true"] svg{stroke:var(--line-deep)}
.hud-pill{display:inline-flex;align-items:center;gap:.375rem;height:1.875rem;padding:0 .75rem;border-radius:var(--r-pill);background:rgba(255,255,255,.92);border:.09375rem solid rgba(255,255,255,.95);
  box-shadow:var(--sh-hud);font:400 max(var(--t-xs),11px)/1 var(--font-display);letter-spacing:.04em;color:var(--ink);white-space:nowrap}
.hud-pill svg{width:1.125rem;height:1.125rem;fill:none;stroke:var(--ink-soft);stroke-width:2.25;stroke-linejoin:round} .hud-pill svg circle{fill:var(--ink-soft);stroke:none}
.hud-pill.is-tag{display:none;background:linear-gradient(180deg,#2a86ea,#0f5cc0);border-color:#fff;color:#fff;letter-spacing:.08em;text-transform:uppercase}
.hud-pill.is-paused{background:linear-gradient(180deg,#ffc04d,#e08d00);color:#4a2c00}
body[data-paused]:not([data-settings]):not([data-tourcard]):not([data-friendscard]) #paused-tag{display:inline-flex}
/* big status rows for the connect screen */
.status-list{display:flex;flex-direction:column;gap:.75rem;margin:0;padding:0;list-style:none;text-align:left}
.status-row{display:flex;align-items:center;gap:1.125rem;min-height:4.5rem;padding:.75rem 1.5rem;border-radius:var(--r-lg);background:linear-gradient(180deg,#fff,var(--sky-1));border:.125rem solid var(--line-soft);box-shadow:var(--sh-1)}
#screen-connect .menu-body{justify-content:safe center;overflow-y:auto;overscroll-behavior:contain;padding-block:var(--s-3)} @media (max-height:960px){ #screen-connect .pad-qr{width:9.75rem;height:9.75rem} #screen-connect .pad-pair{margin-bottom:var(--s-4);padding-block:var(--s-4)} } #screen-connect .status-row{min-height:3.75rem;padding-block:.5rem}      /* the Getting ready panel was taller than its body (1440x900, 1280x720, small phones) and ran under the header and footer (NOTES 150): shorter status rows, and if it is still too tall the body scrolls from the top instead */
.status-name{font-size:var(--t-lg);font-weight:400;font-family:var(--font-display);color:var(--ink-strong);min-width:9rem}
.status-text{flex:1;font-size:var(--t-md);color:var(--ink);line-height:1.35}
.status-state{font-style:normal;font-size:var(--t-sm);font-weight:400;font-family:var(--font-display);letter-spacing:.06em;color:var(--ink-faint);white-space:nowrap}
.status-row.is-ok .status-state{color:var(--good-deep)} .status-row.is-wait .status-state{color:var(--warn-deep)} .status-row.is-bad .status-state{color:var(--bad-deep)}
.status-row.is-ok{border-color:#9fdcb6} .status-row.is-bad{border-color:var(--bad)}

/* inset frame: wraps a canvas that other code supplies (webcam preview, 3D AirPod) */
.inset{position:fixed;z-index:var(--z-hud);padding:.3125rem;border-radius:1.25rem;background:linear-gradient(180deg,#fff,#eef5f9);border:.09375rem solid var(--line-soft);box-shadow:var(--sh-hud);line-height:0}
.inset canvas{display:block;width:100%!important;height:auto!important;border-radius:.9375rem}
.inset::after{content:"";position:absolute;inset:.3125rem;border-radius:.9375rem;box-shadow:inset 0 0 0 .0625rem rgba(20,60,90,.18), inset 0 .125rem .375rem rgba(20,60,90,.18);pointer-events:none}
.inset-cam{right:var(--edge);top:var(--edge);width:15.625rem}
/* AirPod view: stacked under the webcam on the right wall (side fence and trees, never in play). 9.25rem = the webcam frame's height. */
.inset-pod{right:var(--edge);top:calc(var(--edge) + 9.25rem + .5rem);width:9rem;background:var(--tex-diag), linear-gradient(180deg,#fff,#e6f1f7)}
.inset-pod::after{box-shadow:inset 0 0 0 .0625rem rgba(52,190,237,.25)}

/* the insets are live feedback, so they stay up during set-up: camera on the connect + calibrate screens ("can it see me?"),
   the 3D AirPod on calibrate ("is it tipping up?").  Parked in the bottom corners above the footer, clear of the card. */
.inset{transition:opacity var(--d-med) var(--ease-soft)}
body[data-screen="calibrate"] .inset,body[data-screen="connect"] .inset-cam{z-index:calc(var(--z-screen) + 1);top:auto;bottom:calc(4.5rem + var(--edge));width:11rem}
body[data-screen="calibrate"] .inset-pod{left:var(--edge);right:auto;width:9rem}
body[data-screen="hud"] #camwrap[hidden] ~ .inset-pod{top:var(--edge)}
/* the panel is open (paused behind it, so .glass is up): the camera and the AirPod stay sharp in FRONT of the blur — they are
   how you line yourself up again before playing on. The card is raised with them and, being later in the DOM, stays over both
   where a full-width card and the insets meet on a narrow phone. */
body[data-settings] .inset,body[data-settings] .settings{z-index:var(--z-screen)}
body[data-screen="title"] .inset,body[data-screen="connect"] .inset-pod,body[data-overlay] .inset,body[data-overlay] .keyhints,body[data-overlay] .views,body[data-overlay] .corner,body[data-overlay] .hold-card,body[data-overlay] #split-line,body[data-overlay] .scoreboard,body[data-overlay] .banner-tag,body[data-overlay] .callout-layer,body[data-overlay] .countdown{opacity:0;pointer-events:none}
body:not([data-screen]) .inset{display:none}      /* while the page boots (no screen yet) the live insets stay out: an empty #podwrap was a bare outlined bar top right */
/* 'This game is full' must not wait behind the whole set-up routine: it is the one overlay that also covers the menu screens */
body[data-overlay="game-full"] #screen-game-full{z-index:calc(var(--z-screen) + 2);background:var(--tex-scan), linear-gradient(180deg,#fff,var(--sky-2))}

/* stats panel (H) — hidden by default. The last thing in the corner: on its own row under the hamburger, as wide as it likes (the corner's max-width is for the pills) */
.dev-panel{flex:none;width:21rem;margin-top:.125rem;padding:.875rem 1.125rem;border-radius:var(--r-lg);text-align:left;
  background:rgba(255,255,255,.92);border:.09375rem solid #fff;box-shadow:var(--sh-hud);font-size:max(var(--t-sm),12px);font-weight:500;line-height:1.7;color:var(--ink);font-variant-numeric:tabular-nums}
.dev-panel b{font-weight:400;font-family:var(--font-display);color:var(--ink-strong)} .dev-panel b.big{font-size:var(--t-lg)}

/* ==========================================================================================================
   CALIBRATION
   ========================================================================================================== */
.steps{display:flex;align-items:center;gap:.625rem;list-style:none;margin:0;padding:0}
.steps li{display:inline-flex;align-items:center;gap:.5rem;height:2.25rem;padding:0 1rem 0 .375rem;border-radius:var(--r-pill);background:rgba(255,255,255,.7);border:.125rem solid var(--sky-3);color:var(--ink-faint);font-size:var(--t-sm);font-weight:400;font-family:var(--font-display);letter-spacing:.04em;
  transition:transform var(--d-med) var(--ease-bounce), background-color var(--d-med) var(--ease-soft), border-color var(--d-med) var(--ease-soft), color var(--d-med) var(--ease-soft), box-shadow var(--d-med) var(--ease-soft)}      /* the pill's colours ease with its swell (the on-bubble's gradient still snaps) */
.steps li > i{font-style:normal;display:inline-flex;align-items:center;justify-content:center;width:1.5rem;height:1.5rem;border-radius:50%;background:var(--sky-3);color:#fff;font-size:var(--t-xs)}
.steps li.is-on{background:#fff;border-color:var(--line);color:var(--ink-strong);box-shadow:var(--sh-1);transform:scale(1.04)}
.steps li.is-on > i{background:linear-gradient(180deg,var(--line),var(--line-deep))}
.steps li.is-done{color:var(--ink-soft);border-color:#c9f0d8} .steps li.is-done > i{background:var(--good)}

.menu-body > .steps{flex:none}
.panel-cal{width:min(56rem,92vw);display:flex;flex-direction:column;align-items:center;gap:var(--s-3);padding:var(--s-5) var(--s-7) var(--s-5)}
.panel-cal .t-lead{max-width:48rem;min-height:1.5em}
.cal-art{width:min(35rem,100%);aspect-ratio:47/24;padding:0;margin-top:var(--s-2);overflow:hidden}
.cal-art svg{display:block;width:100%;height:100%}
.cal-art text{font:400 13px var(--font-display);letter-spacing:.14em;text-transform:uppercase;fill:var(--ink-soft);text-anchor:middle}
/* one calm progress pill + a countdown badge (seconds while holding, an arrow while tipping, a tick when done) */
.cal-progress{display:flex;align-items:center;justify-content:center;gap:var(--s-3);width:100%;margin-top:var(--s-2)}
.cal-bar{--p:0;width:min(26rem,70%);height:1.5rem;border-radius:var(--r-pill);border:.1875rem solid var(--line);background:#fff;box-shadow:inset 0 .125rem .25rem rgba(120,170,200,.25);overflow:hidden}
.cal-bar i{display:block;height:100%;border-radius:inherit;transform-origin:0 50%;transform:scaleX(var(--p));transition:transform 140ms linear;background:linear-gradient(180deg,#8fdcf7 0%,var(--line) 50%,var(--line-deep) 100%)}
.cal-bar.is-bad{border-color:var(--bad)} .cal-bar.is-bad i{background:var(--bad)}
.cal-bar.is-done{border-color:var(--good-lamp)} .cal-bar.is-done i{background:linear-gradient(180deg,#9af0bb,var(--good) 50%,var(--good-lamp))}
.cal-count{flex:none;display:grid;place-items:center;width:2.75rem;height:2.75rem;border-radius:50%;border:.1875rem solid var(--line);background:linear-gradient(180deg,#fff 0%,#f7fbfd 47%,#e3eef4 53%,#edf5f9 100%);
  box-shadow:var(--sh-1);font-size:var(--t-lg);font-weight:400;font-family:var(--font-display);line-height:1;color:var(--ink-strong);font-variant-numeric:tabular-nums}
.cal-count svg{width:1.5rem;height:1.5rem;fill:none;stroke:var(--line-deep);stroke-width:4;stroke-linecap:round;stroke-linejoin:round}
.cal-count.is-bad{border-color:var(--bad);color:var(--bad-deep)} .cal-count.is-done{border-color:var(--good-lamp);animation:num-pop 450ms var(--ease-bounce)} .cal-count.is-done svg{stroke:var(--good-deep)}
.cal-msg{min-height:1.4em;max-width:30rem;font-size:var(--t-md);font-weight:400;font-family:var(--font-display);line-height:1.35;color:var(--ink-soft);margin:0}
.cal-msg.is-bad{color:var(--bad-deep)} .cal-msg.is-good{color:var(--good-deep)}

/* line illustrations share these */
.art-line{fill:none;stroke:#5b6670;stroke-width:5;stroke-linecap:round;stroke-linejoin:round}
.art-fill{fill:#fff;stroke:#5b6670;stroke-width:5;stroke-linecap:round;stroke-linejoin:round}
.art-skin{fill:#fdf3ea;stroke:#5b6670;stroke-width:5;stroke-linecap:round;stroke-linejoin:round}
.art-ghost{fill:rgba(52,190,237,.10);stroke:var(--line);stroke-width:4;stroke-linecap:round;stroke-dasharray:3 11}
.art-faint{fill:none;stroke:var(--sky-4);stroke-width:4;stroke-linecap:round;stroke-dasharray:2 10}
.art-accent{fill:none;stroke:var(--line);stroke-width:8;stroke-linecap:round;stroke-linejoin:round}
.art-accent-fill{fill:var(--line);stroke:var(--line);stroke-width:4;stroke-linejoin:round}
.art-nudge{animation:art-nudge 1400ms var(--ease-soft) infinite}

/* ==========================================================================================================
   TITLE
   ========================================================================================================== */
.logo{display:flex;flex-direction:column;align-items:center;gap:.5rem}
.logo-mark{margin:0;display:flex;align-items:center;font-size:8.5rem;font-weight:400;font-family:var(--font-display);line-height:1;letter-spacing:-.01em;filter:drop-shadow(0 .05em 0 rgba(90,150,185,.28))}
.logo-ball{display:inline-block;width:.62em;height:.62em;margin:.16em .035em 0;border-radius:50%;
  background:radial-gradient(circle at 50% 50%, var(--ball-deep) 0 .047em, transparent .052em), radial-gradient(circle at 50.0% 23.0%, var(--ball-deep) 0 .047em, transparent .052em), radial-gradient(circle at 73.4% 36.5%, var(--ball-deep) 0 .047em, transparent .052em), radial-gradient(circle at 73.4% 63.5%, var(--ball-deep) 0 .047em, transparent .052em), radial-gradient(circle at 50.0% 77.0%, var(--ball-deep) 0 .047em, transparent .052em), radial-gradient(circle at 26.6% 63.5%, var(--ball-deep) 0 .047em, transparent .052em), radial-gradient(circle at 26.6% 36.5%, var(--ball-deep) 0 .047em, transparent .052em),
    radial-gradient(circle at 34% 28%, #fbffd6, var(--ball) 58%, #ffe01a 100%);box-shadow:inset 0 -.04em .08em rgba(220,180,0,.5), 0 .03em .06em rgba(40,80,110,.25)}
.logo-tag{font-size:var(--t-md);font-weight:400;font-family:var(--font-display);letter-spacing:.42em;text-transform:uppercase;color:var(--ink-soft);margin:0 -.42em 0 0}
.screen.is-active .logo-mark > span{animation:hm-letter 560ms var(--ease-bounce) backwards} .screen.is-active .logo-mark > span:nth-child(3){animation-delay:180ms} .screen.is-active .logo-mark > span:nth-child(4){animation-delay:240ms}      /* the letters pop up in turn */
.screen.is-active .logo-mark > .logo-ball{animation:hm-ball-drop 900ms linear 120ms backwards, hm-ball-hop 4200ms var(--ease-soft) 1.4s infinite}      /* the o is a ball: it drops in, squashes, hops once, then bounces now and then while the title waits */
.screen.is-active .logo-tag{animation:hm-rise 480ms var(--ease-out) 320ms backwards}      /* on the wrapper, not #btn-start: its breathing stays its own */
@keyframes hm-letter{from{opacity:0;translate:0 .35em;scale:.8}}
@keyframes hm-ball-drop{0%{opacity:0;translate:0 -1.4em;rotate:-220deg;animation-timing-function:cubic-bezier(.5,0,1,.6)}55%{opacity:1;translate:0 0;scale:1.12 .86;animation-timing-function:cubic-bezier(.2,.8,.3,1)}75%{translate:0 -.18em;scale:.96 1.04;animation-timing-function:cubic-bezier(.5,0,1,.6)}90%{translate:0 0;scale:1.04 .96}100%{translate:0 0;rotate:0deg;scale:1}}
@keyframes hm-ball-hop{0%,86%,100%{translate:0 0;scale:1}90%{translate:0 -.14em;scale:.97 1.03}95%{translate:0 0;scale:1.05 .95}98%{translate:0 0;scale:1}}
@keyframes hm-rise{from{opacity:0;translate:0 .75rem}}
.safety{display:flex;align-items:center;gap:var(--s-5);text-align:left;width:min(46rem,92vw)}
.safety h3{margin:0 0 .125rem;font-size:var(--t-lg);font-weight:400;font-family:var(--font-display);color:var(--ink-strong)}
.safety p{margin:0;font-size:var(--t-md);line-height:1.45;color:var(--ink)}

/* ==========================================================================================================
   RESULT / NOTICE CARDS
   ========================================================================================================== */
.result-card{position:relative;z-index:1;width:min(50rem,92vw);padding:8rem var(--s-8) var(--s-7);margin-top:6rem;text-align:center;border-radius:var(--r-xl);border:.1875rem solid var(--line);
  background:linear-gradient(180deg,#fff 0%,#fbfdfe 45%,#e9f2f7 100%);box-shadow:var(--sh-3), inset 0 0 0 .1875rem #fff}
.result-card h2{margin:0 0 var(--s-4);font-size:4.25rem;font-weight:400;font-family:var(--font-display);line-height:1.1;color:var(--me-ink);letter-spacing:.01em}
.result-card.is-lose h2{color:var(--ink-strong);font-size:3.5rem}
.result-card.is-watch.is-them-won h2{color:var(--them-ink)}      /* a spectator: the title in the winner's colour, like the stamp and the crown */
.tally{display:flex;align-items:center;justify-content:center;gap:var(--s-4);padding:var(--s-4) var(--s-5);margin:0 auto var(--s-5);border-radius:var(--r-lg)}
.tally-side{display:flex;flex-direction:column;align-items:center;gap:.375rem;min-width:8rem}
.tally-side b{font-size:var(--t-md);font-weight:400;font-family:var(--font-display);color:var(--ink);white-space:nowrap}
.tally-num{font-size:6rem;font-weight:400;font-family:var(--font-display);line-height:1;font-variant-numeric:tabular-nums;color:var(--me-ink);min-width:7rem}
.tally-num.is-them{color:var(--them-ink)} .tally-dash{flex:none;width:1.5rem;height:.375rem;border-radius:var(--r-pill);background:var(--ink-faint)}
.tally-side.is-winner .chip{box-shadow:0 0 0 .1875rem var(--gold-2), 0 .125rem .5rem rgba(120,80,0,.35)}
/* the count-up: a CSS counter drawn over the real number, whose glyphs stay transparent until it lands (the same digits, so no jump). textContent is final from the first frame */
@property --n{syntax:'<integer>';inherits:false;initial-value:0}
.tally-num{position:relative}
.tally-num::before{content:counter(n);counter-reset:n var(--n);position:absolute;inset:0;text-align:center;color:var(--me-ink);opacity:0;pointer-events:none}
.tally-num.is-them::before{color:var(--them-ink)}
/* the winner's chip wears a crown (beside the chip, not in it: .chip clips). The loser's clap is gone (owner 2026-11-16) */
.tally-side{position:relative}
.tally-crown{position:absolute;top:-1.5rem;left:50%;width:2.6rem;height:1.95rem;margin-left:-1.3rem;rotate:-10deg;display:none;fill:var(--gold-2);stroke:var(--gold-4);stroke-width:1.4;stroke-linejoin:round;filter:drop-shadow(0 .125rem .125rem rgba(120,80,0,.35))}
.tally-side.is-winner .tally-crown{display:block}
/* this match's stats (main.js counts them; hidden when it did not see every point): pills, the best one starred */
.result-stats{display:flex;flex-wrap:wrap;justify-content:center;gap:.75rem;list-style:none;margin:-.5rem auto var(--s-4);padding:0}
.result-card.has-stats{padding-top:7rem}      /* the row's height comes out of the room above the title, so the card grows less */
.stat{position:relative;display:inline-flex;align-items:center;gap:.5rem;height:2.5rem;padding:0 1rem;border-radius:var(--r-pill);background:#fff;border:.125rem solid var(--line-faint);box-shadow:var(--sh-1);overflow:hidden}
.stat b{font-size:1.5rem;font-weight:400;font-family:var(--font-display);color:var(--ink-strong);font-variant-numeric:tabular-nums}
.stat span{font-size:var(--t-md);font-weight:400;font-family:var(--font-display);color:var(--ink-soft)}
.stat.is-best{background:linear-gradient(180deg,#fffdf3,#fff4c9);border-color:var(--gold-2)}
.stat.is-best::before{content:"\2605";color:var(--gold-3);font-size:1.1rem}      /* a star glyph, not an asset */
.stat.is-best::after{content:"";position:absolute;top:0;bottom:0;left:0;width:40%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.8),transparent);transform:translateX(-150%) skewX(var(--cp-skew))}      /* the shine, clipped by the pill */
/* under the tally: Rematch / Leave, what the other player chose, and the seconds left (a bar that drains + a bare number). Spectators and rooms with no vote get the note alone. */
#result-note{min-height:0;margin:calc(var(--s-3) * -1) 0 var(--s-4);font-size:var(--t-lg);font-weight:400;font-family:var(--font-display);color:var(--ink-soft)} #result-note:empty{display:none}
.rematch{display:flex;flex-direction:column;align-items:center;gap:.75rem}
.rematch-btns{display:flex;gap:var(--s-4);justify-content:center}
.rematch-btns .btn{min-width:13rem}
.btn.is-pressed:disabled{opacity:1;border-color:var(--line-deep)} .btn.is-pressed:disabled::after{display:block;opacity:.55}       /* my choice stays lit, the other one fades */
#rematch-note{min-height:1.5em;margin:0;font-size:var(--t-md);font-weight:400;font-family:var(--font-display);color:var(--ink-soft)}
.rematch-count{display:flex;align-items:center;gap:.75rem;font-size:var(--t-md);font-weight:400;font-family:var(--font-display);color:var(--ink-soft);font-variant-numeric:tabular-nums}
.rematch-count b{min-width:1.5em;text-align:left}
.rematch-bar{--p:1;width:14rem;height:.5rem;border-radius:var(--r-pill);background:var(--sky-3);overflow:hidden}
.rematch-bar i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--line-soft),var(--line));transform-origin:0 50%;transform:scaleX(var(--p));transition:transform 1s linear}

/* medal: ribbon tails + disc.  .medal.is-gold / .is-silver  */
.medal{position:absolute;left:50%;top:-4.75rem;width:9rem;height:10.5rem;margin-left:-4.5rem;transform-origin:50% 100%;scale:1.2}
.screen.is-active .medal{animation:medal-drop 900ms var(--ease-bounce) 200ms both}
.medal::before,.medal::after{content:"";position:absolute;top:0;width:2.5rem;height:5.75rem;background:linear-gradient(90deg,var(--me-deep) 0 22%,#fff 22% 34%,var(--me) 34% 66%,#fff 66% 78%,var(--me-deep) 78%);
  box-shadow:var(--sh-1)}
.medal::before{left:2.125rem;transform:rotate(-22deg);transform-origin:50% 100%} .medal::after{right:2.125rem;transform:rotate(22deg);transform-origin:50% 100%}
.medal-disc{position:absolute;left:50%;bottom:0;width:7rem;height:7rem;margin-left:-3.5rem;border-radius:50%;z-index:1;display:grid;place-items:center;overflow:hidden;
  background:radial-gradient(circle at 50% 50%, var(--gold-2) 0 56%, transparent 57%), conic-gradient(from 210deg, var(--gold-1), var(--gold-3), var(--gold-1), var(--gold-4), var(--gold-1), var(--gold-3), var(--gold-1));
  border:.1875rem solid #fff;box-shadow:0 .25rem .75rem rgba(120,80,0,.35), inset 0 0 0 .0625rem rgba(140,90,0,.35)}
.medal-disc svg{width:3.5rem;height:3.5rem;fill:#fff7c9;stroke:var(--gold-4);stroke-width:2.5;stroke-linejoin:round;filter:drop-shadow(0 .0625rem 0 rgba(255,255,255,.6))}
.medal-disc::after{content:"";position:absolute;top:-20%;bottom:-20%;left:0;width:34%;background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.75),rgba(255,255,255,0));transform:translateX(-160%) skewX(var(--cp-skew))}
.screen.is-active .medal-disc::after{animation:shine 2600ms var(--ease-soft) 900ms infinite}
.medal.is-silver .medal-disc{background:radial-gradient(circle at 50% 50%, var(--silver-2) 0 56%, transparent 57%), conic-gradient(from 210deg, var(--silver-1), var(--silver-3), var(--silver-1), var(--silver-4), var(--silver-1), var(--silver-3), var(--silver-1));
  box-shadow:0 .25rem .75rem rgba(40,70,90,.30), inset 0 0 0 .0625rem rgba(70,100,120,.35)}
.medal.is-silver .medal-disc svg{fill:#fff;stroke:var(--silver-4)}
/* rays behind the disc (its centre is 3.5rem above the medal's bottom); the radial mask keeps them off the title */
.medal-rays{position:absolute;left:50%;bottom:3.5rem;width:18rem;height:18rem;margin:0 0 -9rem -9rem;z-index:-1;border-radius:50%;pointer-events:none;
  background:repeating-conic-gradient(rgba(255,211,74,.55) 0 7deg,transparent 7deg 20deg);
  -webkit-mask:radial-gradient(circle,#000 20%,transparent 58%);mask:radial-gradient(circle,#000 20%,transparent 58%);scale:0}
[data-beat="lose"] .medal-rays{background:repeating-conic-gradient(rgba(150,190,215,.45) 0 7deg,transparent 7deg 20deg);opacity:.7}      /* silver and slow: the loser still gets a warm moment */
[data-beat="champ"] .medal-rays{width:24rem;height:24rem;margin:0 0 -12rem -12rem}

/* notice card (server down, game full): an icon well on the left, words on the right */
.notice{display:flex;align-items:center;gap:var(--s-6);text-align:left;width:min(46rem,92vw)}
.notice-icon{flex:none;width:7rem;height:7rem;display:grid;place-items:center;border-radius:50%}
.notice-icon svg{width:4.25rem;height:4.25rem}
.notice h2{margin:0 0 .375rem;font-size:var(--t-xl);font-weight:400;font-family:var(--font-display);line-height:1.2;color:var(--ink-strong)}
.notice p{margin:0 0 .5rem;font-size:var(--t-md);line-height:1.5;color:var(--ink)}
.notice .t-note{display:flex;align-items:center;gap:.625rem;margin-top:.875rem;font-weight:400;font-family:var(--font-display)}
.addr{display:inline-block;padding:.0625rem .625rem;border-radius:var(--r-pill);background:var(--sky-2);border:.0625rem solid var(--sky-3);font-weight:500;color:var(--ink-strong);font-variant-numeric:tabular-nums}
.dots-wait i{display:inline-block;width:.4375rem;height:.4375rem;margin-left:.25rem;border-radius:50%;background:var(--line);animation:dot-wait 1200ms var(--ease-soft) infinite}
.dots-wait i:nth-child(2){animation-delay:150ms} .dots-wait i:nth-child(3){animation-delay:300ms}

/* confetti (spawned by script on a won point / match):  style="left:…;background:…;--dx:…;--rot:…;animation-duration:…" */
/* on the result screen it is spawned inside the .screen, behind the card (.result-card z-index:1) */
.screen .confetti{z-index:0}
.confetti{position:fixed;top:-1.25rem;width:.6875rem;height:1rem;border-radius:.1875rem;z-index:var(--z-confetti);pointer-events:none;animation:confetti-fall 1.8s linear forwards}

/* ==========================================================================================================
   KEYFRAMES — transform and opacity only
   ========================================================================================================== */
@keyframes panel-in{0%{opacity:0;transform:translateY(1rem) scale(.965)}60%{opacity:1}100%{opacity:1;transform:none}}
@keyframes nudge{0%,100%{translate:0 0}25%{translate:-.375rem 0}55%{translate:.3125rem 0}80%{translate:-.125rem 0}}
@keyframes glow-pulse{0%,100%{opacity:.25;transform:scale(1)}50%{opacity:1;transform:scale(1.015,1.06)}}
@keyframes btn-breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.025)}}
@keyframes num-pop{0%{transform:scale(1)}35%{transform:scale(1.18) rotate(-3deg)}100%{transform:scale(1)}}          /* stays inside the tab (overflow:hidden) even at two digits */
@keyframes rally-pop{0%{transform:scale(1)}35%{transform:scale(1.4) rotate(-4deg)}100%{transform:scale(1)}}
@keyframes serve-bob{0%,100%{transform:translateY(.125rem) scale(1,.94)}50%{transform:translateY(-.3125rem) scale(1)}}
/* per-keyframe easing: ease-out INTO an extreme, ease-in-out between extremes, a soft ease for the exit (the animation itself is linear) */
@keyframes banner-drop{0%{opacity:0;transform:translateY(-2.5rem) scale(.8);animation-timing-function:cubic-bezier(.2,.8,.3,1)}11%{opacity:1;transform:translateY(.25rem) scale(1.06);animation-timing-function:cubic-bezier(.45,0,.55,1)}17%{transform:translateY(0) scale(1)}84%{opacity:1;transform:translateY(0) scale(1);animation-timing-function:cubic-bezier(.4,0,.7,.9)}100%{opacity:0;transform:translateY(-1.5rem) scale(.92)}}
@keyframes count-pop{0%{opacity:0;transform:scale(.5);animation-timing-function:cubic-bezier(.2,.8,.3,1)}14%{opacity:1;transform:scale(1.14)}24%{transform:scale(1)}82%{opacity:1;transform:scale(1)}100%{opacity:.35;transform:scale(.94)}}
@keyframes callout-pop{0%{opacity:0;transform:scale(.3) rotate(-5deg);animation-timing-function:cubic-bezier(.2,.8,.3,1)}15%{opacity:1;transform:scale(1.12) rotate(2deg);animation-timing-function:cubic-bezier(.45,0,.55,1)}25%{transform:scale(.96) rotate(-1deg);animation-timing-function:cubic-bezier(.45,0,.55,1)}33%{transform:scale(1) rotate(0)}78%{opacity:1;transform:scale(1) translateY(0);animation-timing-function:cubic-bezier(.4,0,.7,.9)}100%{opacity:0;transform:scale(1.04) translateY(-1rem)}}
@keyframes light-blink{0%,100%{opacity:1}50%{opacity:.35}}
@keyframes art-nudge{0%,100%{transform:translate(0,0)}50%{transform:translate(-3px,-9px)}}
@keyframes medal-drop{0%{opacity:0;transform:translateY(-4rem) scale(.6) rotate(-14deg)}100%{opacity:1;transform:none}}
@keyframes shine{0%{transform:translateX(-160%) skewX(var(--cp-skew))}45%,100%{transform:translateX(420%) skewX(var(--cp-skew))}}
@keyframes bar-fill{to{transform:scaleX(1)}}
@keyframes dot-wait{0%,60%,100%{transform:translateY(0);opacity:.35}30%{transform:translateY(-.25rem);opacity:1}}
@keyframes confetti-fall{to{transform:translate(var(--dx,0),105vh) rotate(var(--rot,540deg));opacity:.9}}

@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{animation-duration:1ms!important;animation-iteration-count:1!important;animation-delay:0ms!important;transition-duration:1ms!important}
  .banner-tag.show > span{animation:banner-hold var(--d-banner) linear both!important}
  .callout.go{animation:banner-hold var(--d-callout) linear both!important}
  .rematch-bar i{transition-duration:1s!important}                   /* a countdown is information, not decoration */
  .confetti{display:none}
  .result-flash,.result-slam{display:none} .tally-num::before{display:none} .screen.is-active .tally-num{animation:none!important}      /* no stamp, flash or count: the card is there, numbers and all */
  #screen-match .result-card{animation:panel-in var(--d-slow) var(--ease-out) both!important}      /* no shake */
  .rank-em.is-pop{animation:none!important}      /* a new rank simply appears at full size */
  .trophy-n::before{display:none} .screen.is-active .trophy .trophy-n{animation:none!important} .trophy-em .medal-rays.is-on{animation:none!important;scale:1} .st-step.is-now::before{animation:none!important;opacity:.8}      /* the trophy total is final from frame one; the road's ring holds still */
  .medal-rays{animation:none!important;scale:1} .stat.is-best::after{display:none}      /* rays still, hands still; the crown and pills land on their last frame */
}
@keyframes banner-hold{0%,85%{opacity:1;transform:none}100%{opacity:0;transform:none}}

/* ==========================================================================================================
   GLASS MENUS (title + lobby): the live court stays visible, soft and bright, behind the menu.
   One shared layer (#glass) instead of a blur per screen, so the blur does not dip while title cross-fades to lobby.
   This is the ONE place a backdrop blur is allowed: nothing is being played under it. It leaves the render tree
   (visibility:hidden) the moment a set-up screen or the HUD takes over, so a rally never pays for it.
   ========================================================================================================== */
.glass{position:fixed;inset:0;z-index:calc(var(--z-screen) - 1);pointer-events:none;opacity:0;visibility:hidden;
  background:var(--tex-vignette), linear-gradient(180deg,rgba(255,255,255,.50) 0%,rgba(240,248,252,.34) 45%,rgba(222,238,247,.50) 100%);
  -webkit-backdrop-filter:blur(.875rem) saturate(1.2) brightness(1.08);backdrop-filter:blur(.875rem) saturate(1.2) brightness(1.08);
  transition:opacity var(--d-med) var(--ease-soft), visibility 0s linear var(--d-med)}
body[data-screen="title"] .glass,body[data-screen="lobby"] .glass{opacity:1;visibility:visible;transition-delay:0s}
/* the rooftop (scene.js MENU_VENUE, docs/SCENERY.md Rooftop) is a place to look at, not a wash: a few px of blur, a faint top/bottom veil for the
   logo and the footer, no white sheet, no saturate/brightness. The panels carry their own readability */
body[data-venue="rooftop"] .glass{background:linear-gradient(180deg,rgba(240,246,255,.30) 0%,rgba(240,246,255,0) 34%,rgba(240,246,255,0) 80%,rgba(240,246,255,.22) 100%);
  -webkit-backdrop-filter:blur(.09375rem);backdrop-filter:blur(.09375rem)}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){          /* no blur available: a milkier wash keeps the text readable */
  .glass{background:var(--tex-vignette), var(--tex-scan), linear-gradient(180deg,rgba(255,255,255,.86),rgba(226,240,248,.80))}
}
.menu-glass{background:none}
.menu-glass .menu-head,.menu-glass .menu-foot{background:var(--tex-diag), linear-gradient(180deg,rgba(255,255,255,.92),rgba(234,243,248,.86))}
.menu-glass .menu-foot{color:var(--ink)}
.menu-glass .logo-mark{filter:drop-shadow(0 .05em 0 rgba(255,255,255,.9)) drop-shadow(0 .09em .12em rgba(30,70,100,.28))}
.menu-glass .logo-tag,.menu-glass .t-note{color:var(--ink-strong);text-shadow:0 0 .5rem #fff, 0 0 .125rem #fff}
.menu-glass .logo-tag{margin-top:.25rem}
body[data-screen="lobby"] .inset{opacity:0;pointer-events:none}
/* the glass is see-through, so the 'server down' card (an overlay, under the menus) would show through it: the title does not need it and the lobby says it itself */
body[data-screen="title"] #screen-server-down,body[data-screen="lobby"] #screen-server-down{opacity:0}

/* the extra-large pill: Play */
.btn-xl{height:5.75rem;min-width:21rem;padding:0 4.5rem;font-size:var(--t-2xl);font-weight:400;font-family:var(--font-display);letter-spacing:.04em;border-width:.25rem}
.btn:disabled{opacity:.5;cursor:default;box-shadow:var(--sh-1)} .btn:disabled::after{display:none}
.btn-back{position:absolute;left:var(--s-7);top:50%;translate:0 -50%}      /* where a menu header puts Back; its look, size and states are the one Back's (ua-views.css "THE Back") */
#title-room{animation:hm-pop var(--d-med) var(--ease-bounce) 200ms backwards} @keyframes hm-pop{from{opacity:0;scale:.8}}
.room-pill b{font-weight:400;font-family:var(--font-display);letter-spacing:.14em;color:var(--me-ink);margin-right:-.14em}

/* lobby header bits */
.lobby-online{position:absolute;right:var(--s-7);top:50%;translate:0 -50%;display:inline-flex;align-items:center;gap:.5rem;font-size:var(--t-sm);font-weight:400;font-family:var(--font-display);color:var(--ink-soft)}
.head-end{position:absolute;right:var(--s-7);top:50%;translate:0 -50%;display:flex;align-items:center;gap:var(--s-4)} .head-end .lobby-online{position:relative;right:auto;top:auto;translate:none}      /* the header's right end: the online count, then the account button (NOTES 151) */
.head-acct{height:2.75rem;min-height:36px;padding:0 var(--s-4) 0 var(--s-3);gap:var(--s-2);font-size:var(--t-md)} .head-acct[hidden]{display:none}
.head-acct-ic{display:inline-grid;place-items:center;width:1.75rem;height:1.75rem;border-radius:50%;background:var(--line);color:#fff;flex:none} .head-acct-ic svg{width:1.125rem;height:1.125rem;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}
.head-acct.is-in .head-acct-ic{background:linear-gradient(180deg,var(--me),var(--me-deep))} .head-acct-t{max-width:10rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (max-aspect-ratio: 1/1){ .head-end{right:var(--s-4)} }
/* the player card (NOTES 161): signed in with a username the button grows into emblem | name over trophies */
/* the trophy flight into the corner card (NOTES 203): a bump as each cup lands, a bigger pop and a gold glow when the last one does */
.head-acct.is-bump .head-acct-n{animation:trophy-tick 180ms var(--ease-out)} .head-acct.is-landed{animation:chip-land 600ms var(--ease-bounce)} @keyframes chip-land{0%{scale:1.12;box-shadow:0 0 0 .25rem rgba(255,211,74,.55), 0 0 1.25rem rgba(255,211,74,.8)}100%{scale:1}}
.head-acct-col{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:.125rem;min-width:0;line-height:1} .head-acct-n{display:inline-flex;align-items:center;gap:.1875rem;font-size:var(--t-md);font-weight:400;font-family:var(--font-display);color:var(--warn-deep);font-variant-numeric:tabular-nums} .head-acct-n[hidden],.head-acct-em[hidden],.head-acct-bar[hidden]{display:none}
.head-acct-bar{order:3;display:block;width:100%;min-width:5.5rem;height:.4375rem;border-radius:var(--r-pill);background:var(--sky-3);box-shadow:inset 0 .0625rem .125rem rgba(120,170,200,.3);overflow:hidden} .head-acct-bar i{display:block;height:100%;width:calc(100% * var(--p,0));border-radius:inherit;background:linear-gradient(180deg,var(--gold-1),var(--gold-2) 55%,var(--gold-3))} .head-acct-n .cup-ic{width:1.25rem;height:1.25rem}
.head-acct.is-card{height:3.75rem;padding:0 var(--s-4) 0 var(--s-2);border-radius:var(--r-lg)} .head-acct.is-card .head-acct-t{font-size:var(--t-md);font-weight:400;font-family:var(--font-display)} .head-acct.is-card .head-acct-ic{width:2.25rem;height:2.25rem} .head-acct.has-em .head-acct-ic{display:none}
.head-acct-em{display:grid;place-items:center;flex:none;width:2.75rem;height:2.75rem} .head-acct-em .st-em .rank-em{width:2.75rem;height:2.75rem;filter:drop-shadow(0 .125rem .25rem rgba(20,60,90,.25))} .head-acct .head-acct-em .st-em::after{display:none}      /* the division is the medal's own shape (NOTES 124): no numeral at this size */

@media (max-width:480px){ .head-end{right:var(--s-5)} .head-end:has(.head-acct:not([hidden])) .lobby-online{display:none} .head-acct{width:max(2.75rem,36px);padding:0;gap:0} .head-acct-t{display:none}
  /* the player card on a phone (NOTES 161): the emblem and the count over the bar, no name and no cup (the header also holds Back and the title); under 350px the emblem alone */
  .head-acct.is-card{width:auto;height:max(2.75rem,40px);padding:0 .625rem 0 .25rem;gap:.25rem;border-radius:var(--r-pill)} .head-acct.is-card .head-acct-n{font-size:max(var(--t-sm),13px)} .head-acct.is-card .cup-ic{display:none} .head-acct-bar{min-width:2rem;height:max(.3125rem,4px)}
  .head-acct-em,.head-acct .head-acct-em .st-em .rank-em{width:max(2rem,28px);height:max(2rem,28px)} .head-acct.is-card .head-acct-ic{width:max(2rem,28px);height:max(2rem,28px)} }
@media (max-width:349px){ .head-acct.is-card{width:max(2.75rem,40px);padding:0;gap:0;justify-content:center} .head-acct.is-card .head-acct-col{display:none} }      /* a phone's header holds Back, the title and one more thing: the account button wins over the online count, as a round icon (its name is the aria-label and the tooltip) */
.lobby-online::before{content:"";width:.625rem;height:.625rem;border-radius:50%;background:var(--good);box-shadow:0 0 0 .125rem #fff}
.lobby-online{animation:hm-pop var(--d-med) var(--ease-bounce) backwards} .lobby-online::after{content:"";position:absolute;left:0;top:50%;width:.625rem;height:.625rem;margin-top:-.3125rem;border-radius:50%;background:var(--good);animation:hm-ping 2400ms var(--ease-out) infinite;pointer-events:none}      /* a soft sonar on the live dot */
@keyframes hm-ping{0%{transform:scale(1);opacity:.55}70%,100%{transform:scale(2.6);opacity:0}}
#lobby-down{position:absolute;top:calc(5rem - 1.375rem);left:50%;translate:-50% 0;z-index:2}      /* placed on the screen, not the (scrolling) body: it takes no room and hangs on the header's bottom edge, so the name row and the courts never move when it comes and goes */
.lobby-down{display:inline-flex;align-items:center;gap:.625rem;margin:0;height:2.75rem;padding:0 1.5rem;border-radius:var(--r-pill);background:#fff6e0;border:.125rem solid var(--warn);color:var(--warn-deep);font-size:var(--t-md);font-weight:400;font-family:var(--font-display);box-shadow:var(--sh-1)}
.lobby-down .light{background:radial-gradient(circle at 35% 30%,#ffe2a8,var(--warn) 55%,var(--warn-lamp));box-shadow:0 0 0 .125rem #fff}
.lobby-down .dots-wait i{background:var(--warn-lamp)}
.lobby-down{animation:hm-hang 420ms var(--ease-bounce) backwards} @keyframes hm-hang{from{opacity:0;transform:translateY(-1.25rem) scale(.9)}}      /* hangs down from the header */

/* views: one at a time */
#screen-lobby .menu-body{justify-content:flex-start} #screen-lobby .lobby-view:not(.lobby-home){margin:auto 0}      /* the name row sits at the same spot on every view (it used to ride up and down with each panel's height); a panel centres in the space under it */
#screen-lobby .lobby-view{animation:hm-view-in 380ms var(--ease-out) backwards}      /* backwards, not both: nothing is held afterwards, so the busy dim below works */
#screen-lobby[data-dir="fwd"] .lobby-view{animation-name:hm-view-fwd} #screen-lobby[data-dir="back"] .lobby-view{animation-name:hm-view-back}      /* deeper views come in from the right, Back brings the last one in from the left (ui.js lobbyView) */
#screen-lobby #lobby-home{animation:hm-fade var(--d-med) var(--ease-soft) backwards}      /* the home view's tiles deal themselves in: the container only fades */
@keyframes hm-view-in{from{opacity:0;translate:0 1rem;scale:.965}} @keyframes hm-view-fwd{from{opacity:0;translate:3rem 0;scale:.98}} @keyframes hm-view-back{from{opacity:0;translate:-3rem 0;scale:.98}} @keyframes hm-fade{from{opacity:0}}
.lobby-home{display:flex;flex-direction:column;align-items:center;gap:var(--s-5);width:100%}
.panel.lobby-view{display:flex;flex-direction:column;align-items:center;gap:var(--s-5);padding:var(--s-6)}
#screen-lobby[aria-busy="true"] .lobby-view{pointer-events:none;opacity:.6;transition:opacity var(--d-fast) linear 250ms}      /* 250 ms: an answer normally beats it, so no flicker */
#screen-lobby.is-down .rooms{display:none}
#screen-lobby.is-down .tile,#screen-lobby.is-down .room-row,#screen-lobby.is-down .room-watch,#screen-lobby.is-down #btn-create-go,#screen-lobby.is-down #btn-join,#screen-lobby.is-down #btn-watch-code,#screen-lobby.is-down #btn-create,#screen-lobby.is-down #btn-tour,#screen-lobby.is-down .bot-levels .btn{pointer-events:none;opacity:.5}
/* first visit, no name yet: the choices are dimmed but still take the click, which sends the player to the name field */
#screen-lobby.needs-name .tile,#screen-lobby.needs-name .room-row,#screen-lobby.needs-name .room-watch,#screen-lobby.needs-name #btn-create-go,#screen-lobby.needs-name #btn-create,#screen-lobby.needs-name #btn-join,#screen-lobby.needs-name #btn-watch-code,#screen-lobby.needs-name .court-state .btn,#screen-lobby.needs-name .bot-levels .btn{opacity:.5}
#screen-lobby.needs-name .tile:hover,#screen-lobby.needs-name .tile:focus-visible{transform:none;rotate:none;background-position:100% 0,0 0;border-color:rgba(255,255,255,.9)} #screen-lobby.needs-name .tile::after{display:none}

/* name: one field above every lobby view but the share card. Also the look of the name field in the settings panel (.field) */
.name-row{flex:none;display:flex;align-items:center;gap:var(--s-3);padding:var(--s-2) var(--s-2) var(--s-2) 1.5rem;border-radius:var(--r-pill);background:rgba(255,255,255,.72);border:.125rem solid rgba(255,255,255,.9);box-shadow:var(--sh-1);position:relative;transition:background-color var(--d-med) var(--ease-soft), border-color var(--d-med) var(--ease-soft)}
.name-row label{font-size:var(--t-xs);font-weight:400;font-family:var(--font-display);letter-spacing:var(--track-caps);text-transform:uppercase;color:var(--ink-soft);white-space:nowrap}
.field{width:17rem;height:3rem;padding:0 1.25rem;border-radius:var(--r-pill);border:.1875rem solid var(--sky-4);background:linear-gradient(180deg,var(--sky-1),#fff);box-shadow:inset 0 .125rem .375rem rgba(120,170,200,.25);
  color:var(--ink-strong);font:500 var(--t-lg)/1 var(--font);letter-spacing:.02em;caret-color:var(--line);outline:0;min-width:0}
.field:focus{border-color:var(--line);box-shadow:var(--glow), inset 0 .125rem .375rem rgba(120,170,200,.25)}
.menu-glass .field{transition:border-color var(--d-fast) linear, box-shadow var(--d-fast) linear}      /* lobby only: the settings panel's field sits over a live rally */
.name-row.is-bad .field{border-color:var(--bad)} .name-row.is-error{animation:nudge 420ms var(--ease-soft) 1}
#screen-lobby.needs-name .name-row{background:#fff;border-color:var(--line)}
#screen-lobby.needs-name .name-row:not(:focus-within)::after{content:"";position:absolute;inset:-.1875rem;border-radius:inherit;box-shadow:var(--glow);opacity:.8;pointer-events:none;animation:glow-pulse var(--d-pulse) var(--ease-soft) infinite}      /* first visit: the one thing to do breathes until you are in it */

/* Play a bot: Matt's three levels, one click plays */
.bot-levels{display:grid;grid-template-columns:repeat(4,1fr);justify-content:center;gap:var(--s-4);width:100%}      /* Rookie, Club, Tour, Pro: four across, two by two on a narrow window */
@media (max-width:700px){ .bot-levels{grid-template-columns:repeat(2,1fr)} }
#bot-seg .seg-opt{min-width:0;padding:0 .75rem}
/* Matt's difficulty on the court (NOTES 201, moved to the bottom-left corner in 204): a small pill row that never fades. A player's bottom-left is free
   (the view chips there are a spectator's, the key hint is bottom-right); it steps up over a toast like the ask card does, and gives way to that card */
.bot-pick{position:fixed;left:var(--edge);bottom:var(--edge);z-index:calc(var(--z-hud) + 1);display:inline-flex;align-items:center;gap:.5rem;padding:.25rem .25rem .25rem .75rem;border-radius:var(--r-pill);
  background:rgba(255,255,255,.82);backdrop-filter:blur(.5rem);box-shadow:var(--sh-1);white-space:nowrap;transition:opacity var(--d-med) var(--ease-soft)}
.bot-pick-cap{font:400 var(--t-xs)/1 var(--font-display);letter-spacing:.08em;text-transform:uppercase;color:var(--ink-soft)}
#pick-seg .seg-opt{min-width:0;height:2rem;padding:0 .625rem;font-size:var(--t-sm)}
body[data-overlay] .bot-pick,body[data-screen]:not([data-screen="hud"]) .bot-pick,body[data-settings] .bot-pick,body:has(.ask-card.is-on) .bot-pick{opacity:0;pointer-events:none}      /* with the scoreboard: gone under a result or a menu screen; the settings card has its own row; the ask card takes the corner */
@media (max-width:760px){ .bot-pick{padding:.1875rem .1875rem .1875rem .625rem} #pick-seg .seg-opt{height:1.75rem;padding:0 .5rem} }
.bot-levels .btn{min-width:0;height:auto;min-height:max(6rem,44px);padding:.75rem 1rem;flex-direction:column;justify-content:flex-start;gap:.25rem} .bot-levels .btn small{font-size:var(--t-sm);font-weight:500;letter-spacing:0;color:var(--ink-soft);white-space:nowrap}      /* one line each: four titles on one baseline */
#lobby-bot{width:min(68rem,94vw)}      /* 68: the Club card's nowrap 'Medium pace, some mistakes' keeps the card's 1rem side padding */
#bot-title{margin:0 0 var(--s-4);text-align:center}

/* "Court is full. Watch instead?": a notice over the lobby. Its own spread shadow is the scrim; the lobby behind it is inert (ui.js) */
.ask{position:fixed;inset:0;margin:auto;height:fit-content;z-index:2;width:min(44rem,92vw);box-shadow:var(--sh-3), inset 0 0 0 .1875rem #fff, 0 0 0 200vmax rgba(232,243,249,.72)}
.ask h2{margin-bottom:var(--s-4)} .ask-btns{display:flex;gap:var(--s-3);margin:0!important} .ask-btns .btn{min-width:9rem}

/* the four big tiles */
.tiles{display:flex;flex-wrap:wrap;gap:var(--s-5);justify-content:center}
.tile{position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--s-3);width:17rem;height:14.5rem;padding:0;border-radius:var(--r-xl);
  border:.25rem solid rgba(255,255,255,.9);background:linear-gradient(105deg,transparent 40%,rgba(255,255,255,.95) 50%,transparent 60%) 100% 0/250% 100% no-repeat, linear-gradient(180deg,#ffffff 0%,#f7fbfd 47%,#e3eef4 53%,#edf5f9 100%);color:var(--ink-strong);font:400 var(--t-xl)/1.1 var(--font-display);letter-spacing:.02em;
  box-shadow:var(--sh-3), inset 0 0 0 .1875rem #fff;cursor:pointer;outline:0;-webkit-tap-highlight-color:transparent;transition:transform 260ms var(--ease-bounce), rotate 260ms var(--ease-bounce), opacity var(--d-med) var(--ease-soft), background-position 0s}      /* layer 1 is a sheen parked off the left edge; it snaps back unseen (0s) */
.tile::before{content:"";position:absolute;inset:.375rem .375rem auto;height:46%;border-radius:calc(var(--r-xl) - .5rem) calc(var(--r-xl) - .5rem) 50% 50% / calc(var(--r-xl) - .5rem) calc(var(--r-xl) - .5rem) 1.25rem 1.25rem;background:linear-gradient(180deg,#fff,rgba(255,255,255,.4));pointer-events:none;z-index:-1}
.tile::after{content:"";position:absolute;inset:-.25rem;border-radius:inherit;box-shadow:var(--glow), 0 1.25rem 1.75rem -.5rem rgba(40,80,110,.30);opacity:0;pointer-events:none;transition:opacity var(--d-med) var(--ease-soft)}      /* the halo carries a deeper drop shadow: the lift's shadow grows by opacity alone, never an animated box-shadow */
.tile svg{width:6.5rem;height:6.5rem}
.tile b{font-weight:400;font-family:var(--font-display)}
.tile:hover,.tile:focus-visible{border-color:var(--line)}       /* the outline blue marks the ONE selected tile, as on a console menu; the rest are plain white */
.tile:focus-visible{transform:translateY(-.25rem) scale(1.03);background-position:0 0,0 0;transition:transform 260ms var(--ease-bounce), rotate 260ms var(--ease-bounce), opacity var(--d-med) var(--ease-soft), background-position 750ms var(--ease-soft)} .tile:focus-visible::after{opacity:1;animation:glow-pulse var(--d-pulse) var(--ease-soft) infinite}
@media (hover:hover){ .tile:hover{transform:translateY(-.4375rem) scale(1.035);rotate:-.6deg;background-position:0 0,0 0;transition:transform 260ms var(--ease-bounce), rotate 260ms var(--ease-bounce), opacity var(--d-med) var(--ease-soft), background-position 750ms var(--ease-soft)} .tile:nth-child(2):hover{rotate:.6deg} .tile:hover::after{opacity:.75} }      /* lifts, tips a touch and a light runs across it. Before :active, or the lift beats the press */
.tile:active,.tile:nth-child(n):active{transform:scale(.96);rotate:none;background:linear-gradient(180deg,#e4f3fa,#d3ebf6);transition-duration:90ms}      /* the press goes in fast; the 260ms spring plays on release */
.tile svg{transition:scale var(--d-fast) var(--ease-bounce)} .tile:active svg{scale:.9}      /* the icon squashes under the thumb */
.tile{animation:hm-tile 560ms var(--ease-bounce) backwards} .tile:nth-child(2){animation-delay:70ms} .tile:nth-child(3){animation-delay:140ms} .tile:nth-child(4){animation-delay:210ms}      /* dealt out left to right, a little springy. Individual properties with backwards fill: nothing is held, hover and focus still apply */
.tile:nth-child(5){animation-delay:280ms} .tile:nth-child(6){animation-delay:350ms} .tile:nth-child(7){animation-delay:420ms}
@media (max-width:480px){ #btn-quick{order:-1} }      /* the heroes read Friends | Quick play in a row (NOTES 150); stacked on a phone, Quick play stays on top */
@media (min-aspect-ratio:1/1) and (max-width:784px){ .tiles[data-n="4"]{display:grid;grid-template-columns:repeat(2,17rem)} }      /* four tiles need 72.5rem + the body's 6rem padding: under 785px the rem sits at its 10px floor and a plain wrap would leave three and a lone fourth, so 2x2 */
@keyframes hm-tile{from{opacity:0;translate:0 1.75rem;scale:.88}}
/* Five entries (docs/TROPHIES.md 4: signed out, with a stats server): ONE hero, Quick play, spanning the row (art left of the label), over a row of four utilities (Courts, Play a bot,
   Your stats, Leaderboard: icon over the label, as six has them). The count is .tiles[data-n], written by ui.tilesFit() from the visible tiles: Friends, Your stats and Leaderboard only
   show where the server keeps stats, so a positional :has(nth-child) would count a hidden slot. 20rem tall in all: fits 1366x500 at the 10px floor and 1280x720 */
/* NOTES 160: the blocks in two rows on a 12-column grid. Row one is how you play: Quick play (the hero: half the row, the one blue block) beside Courts and Play a bot.
   Row two is everything else: Friends, Your stats, Leaderboard as three equal bars (two when there is no Friends). Each block has its own accent (--line: icon detail, hover ring, glow) */
.tiles:is([data-n="5"],[data-n="6"]){display:grid;grid-template-columns:repeat(12,1fr);width:min(60rem,92vw);gap:var(--s-4)}
.tiles:is([data-n="5"],[data-n="6"]) .tile{width:auto;grid-column:span 4;height:7.5rem;flex-direction:row;justify-content:flex-start;text-align:left;padding:0 var(--s-5);gap:var(--s-4);font-size:var(--t-lg)}
.tiles[data-n="5"] .tile{grid-column:span 6}
.tiles:is([data-n="5"],[data-n="6"]) .tile svg{width:4rem;height:4rem;flex:none}
.tiles:is([data-n="5"],[data-n="6"]) .tile.is-play{grid-column:span 3;height:13rem;flex-direction:column;justify-content:center;text-align:center;padding:0 var(--s-2);gap:var(--s-3);font-size:var(--t-xl)}
.tiles:is([data-n="5"],[data-n="6"]) .tile.is-play svg{width:5.75rem;height:5.75rem}
.tiles:is([data-n="5"],[data-n="6"]) .tile.is-hero{grid-column:span 6;height:13rem;justify-content:center;gap:var(--s-5)}
.tiles:is([data-n="5"],[data-n="6"]) .tile.is-hero svg{width:6.5rem;height:6.5rem} .tiles:is([data-n="5"],[data-n="6"]) .tile.is-hero b{font-size:var(--t-2xl)}
.tile-text{display:flex;flex-direction:column;align-items:flex-start;gap:.25rem;min-width:0}      /* Friends: the label with its line under it. In a column layout both centre */
.tile-line{display:inline-flex;align-items:center;gap:.35em;max-width:100%;font-size:var(--t-sm);font-weight:400;font-family:var(--font-display);letter-spacing:0;color:var(--ink-soft);white-space:nowrap} .tile-line > span:last-child{overflow:hidden;text-overflow:ellipsis}
.tiles:not([data-n="5"]):not([data-n="6"]) .tile-text{align-items:center;text-align:center}
.tile{--glow:0 0 0 .25rem color-mix(in srgb,var(--line) 28%,transparent), 0 0 1.5rem .25rem color-mix(in srgb,var(--line) 55%,transparent)}
#btn-courts{--line:#2fc46a} #btn-bot{--line:#ff5c8a} #btn-friends{--line:#b18cff} #btn-leaderboard{--line:var(--gold-3)}
/* Quick play is the one filled block: the player's blue, white art */
#btn-quick{background-image:linear-gradient(105deg,transparent 40%,rgba(255,255,255,.45) 50%,transparent 60%),linear-gradient(180deg,#7cc6ff 0%,#4eaaff 47%,var(--me) 53%,#2f8ff2 100%);border-color:#fff;color:#fff;text-shadow:0 .125rem 0 rgba(14,63,140,.3);--line:#fff}
#btn-quick::before{opacity:.35} #btn-quick .art-fill{fill:#fff;stroke:#fff} #btn-quick .art-accent-fill{fill:var(--me);stroke:var(--me)}
#btn-quick:active,#btn-quick:nth-child(n):active{background:linear-gradient(180deg,#4eaaff,var(--me-deep))}
#btn-quick::after{box-shadow:0 0 0 .25rem rgba(58,160,255,.35), 0 0 1.75rem .375rem rgba(58,160,255,.6), 0 1.25rem 1.75rem -.5rem rgba(22,112,216,.45)}
/* the tile icons play: Quick play's arrow nudges forward, Courts' magnifier swings across the court looking, the bot tilts its head and blinks, Your stats' bars spring up and its tick pops, the two friends hop hello and their plus pops.
   Origins are in each icon's own 96-unit grid. Keyboard or pad focus plays once (lobbyView focuses Quick play on every entry); a hovering mouse loops.
   The hover block comes after the focus one: both match a focused tile under the mouse, and the loop must win */
.tile svg *{transform-box:view-box}
#btn-quick .art-accent-fill{transform-origin:53px 48px} #btn-quick .art-fill{transform-origin:48px 48px}
#btn-courts circle,#btn-courts .art-accent{transform-origin:63px 59px}      /* lens and handle move as one */
#btn-bot .art-fill circle,#btn-bot g.art-accent{transform-origin:48px 50px}      /* head and eyes tilt on the neck */
#btn-profile rect:nth-child(1){transform-origin:23px 80px} #btn-profile rect:nth-child(2){transform-origin:48px 80px} #btn-profile rect:nth-child(3){transform-origin:73px 80px} #btn-profile .art-accent{transform-origin:50px 17px}      /* each bar grows from the floor; the tick pops on the spot */
#btn-quick:focus-visible .art-accent-fill{animation:ic-play 1400ms var(--ease-soft) 1} #btn-quick:focus-visible .art-fill{animation:ic-ring 1400ms var(--ease-soft) 1}
#btn-courts:focus-visible circle,#btn-courts:focus-visible .art-accent{animation:ic-scan 1800ms var(--ease-soft) 1}
#btn-bot:focus-visible .art-fill circle{animation:ic-tilt 1800ms var(--ease-soft) 1} #btn-bot:focus-visible g.art-accent{animation:ic-blink 1800ms var(--ease-soft) 1}
#btn-profile:focus-visible rect{animation:ic-bar 1600ms var(--ease-soft) 1} #btn-profile:focus-visible rect:nth-child(2){animation-delay:110ms} #btn-profile:focus-visible rect:nth-child(3){animation-delay:220ms} #btn-profile:focus-visible .art-accent{animation:ic-tick 1600ms var(--ease-soft) 1}
#btn-leaderboard rect:nth-child(1){transform-origin:48px 82px} #btn-leaderboard rect:nth-child(2){transform-origin:22.5px 82px} #btn-leaderboard rect:nth-child(3){transform-origin:73.5px 82px} #btn-leaderboard .art-accent-fill{transform-origin:48px 22px}      /* Leaderboard: each step rises from the floor, the star turns on its own centre */
#btn-leaderboard:focus-visible rect{animation:ic-step 1800ms var(--ease-soft) 1} #btn-leaderboard:focus-visible rect:nth-child(2){animation-delay:120ms} #btn-leaderboard:focus-visible rect:nth-child(1){animation-delay:240ms} #btn-leaderboard:focus-visible .art-accent-fill{animation:ic-crown 1800ms var(--ease-soft) 1}
#btn-friends .art-fill > :nth-child(-n+2){transform-origin:69px 80px} #btn-friends .art-fill > :nth-child(n+3){transform-origin:32px 82px} #btn-friends .art-accent{transform-origin:77px 16.5px}      /* Friends: each friend hops from their own feet; the plus turns on its centre */
#btn-friends:focus-visible .art-fill > :nth-child(n+3){animation:ic-greet 1700ms var(--ease-soft) 1} #btn-friends:focus-visible .art-fill > :nth-child(-n+2){animation:ic-greet 1700ms var(--ease-soft) 160ms 1} #btn-friends:focus-visible .art-accent{animation:ic-add 1700ms var(--ease-soft) 1}
@media (hover:hover){
  #btn-quick:hover .art-accent-fill{animation:ic-play 1400ms var(--ease-soft) infinite} #btn-quick:hover .art-fill{animation:ic-ring 1400ms var(--ease-soft) infinite}
  #btn-courts:hover circle,#btn-courts:hover .art-accent{animation:ic-scan 1800ms var(--ease-soft) infinite}
  #btn-bot:hover .art-fill circle{animation:ic-tilt 1800ms var(--ease-soft) infinite} #btn-bot:hover g.art-accent{animation:ic-blink 1800ms var(--ease-soft) infinite}
  #btn-profile:hover rect{animation:ic-bar 1600ms var(--ease-soft) infinite} #btn-profile:hover rect:nth-child(2){animation-delay:110ms} #btn-profile:hover rect:nth-child(3){animation-delay:220ms} #btn-profile:hover .art-accent{animation:ic-tick 1600ms var(--ease-soft) infinite}
  #btn-leaderboard:hover rect{animation:ic-step 1800ms var(--ease-soft) infinite} #btn-leaderboard:hover rect:nth-child(2){animation-delay:120ms} #btn-leaderboard:hover rect:nth-child(1){animation-delay:240ms} #btn-leaderboard:hover .art-accent-fill{animation:ic-crown 1800ms var(--ease-soft) infinite}
  #btn-friends:hover .art-fill > :nth-child(n+3){animation:ic-greet 1700ms var(--ease-soft) infinite} #btn-friends:hover .art-fill > :nth-child(-n+2){animation:ic-greet 1700ms var(--ease-soft) 160ms infinite} #btn-friends:hover .art-accent{animation:ic-add 1700ms var(--ease-soft) infinite}
}
#screen-lobby.needs-name .tile svg *,#screen-lobby.is-down .tile svg *{animation:none}      /* a dimmed tile stays still (last: it ties the hover rules) */
@keyframes ic-play{0%,45%,100%{transform:none}15%{transform:translateX(7px) scale(1.14,.88)}28%{transform:translateX(-2px) scale(.96,1.05)}38%{transform:translateX(2px)}}
@keyframes ic-ring{0%,45%,100%{transform:none}15%{transform:scale(1.06)}30%{transform:scale(.98)}}
@keyframes ic-scan{0%,100%{transform:none}22%{transform:translate(-14px,-8px) rotate(-14deg)}48%{transform:translate(-26px,-22px) rotate(10deg)}72%{transform:translate(-8px,-4px) rotate(-6deg)}}
@keyframes ic-bar{0%,48%,100%{transform:none}12%{transform:scaleY(.6)}26%{transform:scaleY(1.14)}36%{transform:scaleY(.96)}}      /* Your stats: the bars dip and spring up left to right, */
@keyframes ic-tick{0%,40%,100%{transform:none}50%{transform:scale(1.4) rotate(-10deg)}60%{transform:scale(.88) rotate(4deg)}70%{transform:scale(1.05)}}      /* then the tick pops as the last one lands */
@keyframes ic-tilt{0%,100%{transform:none}22%{transform:rotate(-11deg)}50%{transform:rotate(8deg)}72%{transform:rotate(-3deg)}}
@keyframes ic-step{0%,46%,100%{transform:none}10%{transform:scaleY(.55)}24%{transform:scaleY(1.16)}34%{transform:scaleY(.95)}40%{transform:scaleY(1.02)}}      /* Leaderboard: the podium rises third, second, then first (the delays above), */
@keyframes ic-crown{0%,38%,100%{transform:none}46%{transform:translateY(-9px) rotate(-144deg) scale(.7)}56%{transform:translateY(2px) rotate(0) scale(1.35)}66%{transform:scale(.9)}74%{transform:scale(1.06)}82%{transform:none}}      /* then the star spins up over the top step and lands on it, as the winner is crowned */
@keyframes ic-greet{0%,42%,100%{transform:none}10%{transform:translateY(-7px) scale(.96,1.05)}20%{transform:translateY(1px) scale(1.05,.95)}28%{transform:translateY(-2px)}35%{transform:none}}      /* Friends: the front friend hops, the one behind answers (the delay above), */
@keyframes ic-add{0%,44%{transform:none}54%{transform:rotate(90deg) scale(1.4)}64%{transform:rotate(90deg) scale(.88)}74%{transform:rotate(90deg) scale(1.06)}84%,100%{transform:rotate(90deg)}}      /* then the plus pops with a quarter turn (a plus turned 90 degrees is the same plus, so the loop's jump back is unseen) */
@keyframes ic-blink{0%,100%{transform:rotate(0) translate(0,-14.5px) scale(1,1) translate(0,14.5px)}22%{transform:rotate(-11deg) translate(0,-14.5px) scale(1,1) translate(0,14.5px)}50%{transform:rotate(8deg) translate(0,-14.5px) scale(1,1) translate(0,14.5px)}56%{transform:rotate(7deg) translate(0,-14.5px) scale(1,.1) translate(0,14.5px)}62%{transform:rotate(6deg) translate(0,-14.5px) scale(1,1) translate(0,14.5px)}72%{transform:rotate(-3deg) translate(0,-14.5px) scale(1,1) translate(0,14.5px)}}      /* the eyes follow the head's tilt and squash about their own middle (y 35.5, 14.5 above the neck): a blink */

/* open rooms: a compact strip of pills under the tiles */
.rooms{display:flex;flex-direction:column;align-items:center;gap:var(--s-2);width:min(55rem,100%);padding:var(--s-3) var(--s-5) var(--s-4);border-radius:var(--r-lg);background:rgba(255,255,255,.66);border:.125rem solid rgba(255,255,255,.9);box-shadow:var(--sh-1)}
.rooms h2{margin:0;color:var(--ink-soft)}
.rooms .t-note{text-shadow:none;color:var(--ink)}
.room-list{display:flex;flex-wrap:wrap;justify-content:center;gap:.625rem 1.125rem;list-style:none;margin:0;padding:.25rem;max-height:7.5rem;overflow-y:auto}
.room-list:empty{display:none}
.room-row{position:relative;display:inline-flex;align-items:center;gap:.75rem;height:3rem;padding:0 1rem 0 1.25rem;border-radius:var(--r-pill);border:.15625rem solid var(--line);background:linear-gradient(180deg,#fff,#eaf3f8);
  color:var(--ink);font:400 var(--t-md)/1 var(--font-display);box-shadow:var(--sh-1);cursor:pointer;outline:0;transition:transform var(--d-fast) var(--ease-bounce)}
.room-row b{font-size:var(--t-lg);font-weight:400;font-family:var(--font-display);letter-spacing:.14em;color:var(--me-ink)}
.room-row::after{content:"";width:.5rem;height:.5rem;border:solid var(--line);border-width:.1875rem .1875rem 0 0;rotate:45deg;margin-left:.125rem}
.room-list li{display:inline-flex;align-items:center;gap:.375rem}
.room-row.is-full{cursor:default;border-color:var(--sky-4);background:rgba(255,255,255,.7);box-shadow:none;padding-right:1.25rem} .room-row.is-full::after{display:none}      /* a full court: its score, nothing to press but Watch */
.room-row.is-full b{color:var(--ink-strong)} .room-row.is-full span{font-variant-numeric:tabular-nums}
.room-row.is-full:hover{transform:none;box-shadow:none}
.room-watch{height:3rem;padding:0 1.25rem}
.room-row:hover,.room-row:focus-visible{transform:scale(1.05);box-shadow:var(--glow)}
.room-row:active{transform:scale(.96)}

/* public / private switch */
.seg{display:inline-flex;padding:.3125rem;gap:.3125rem;border-radius:var(--r-pill);background:var(--sky-2);border:.125rem solid var(--line-faint);box-shadow:inset 0 .125rem .375rem rgba(120,170,200,.25)}
.seg-opt{height:3.5rem;min-width:10rem;padding:0 2rem;border-radius:var(--r-pill);border:.1875rem solid transparent;background:none;color:var(--ink-soft);font:400 var(--t-lg)/1 var(--font-display);cursor:pointer;outline:0}
.seg-opt[aria-checked="true"]{background:#fff;border-color:var(--line);color:var(--ink-strong);box-shadow:var(--sh-1)}
.seg-opt:focus-visible{box-shadow:var(--glow)}
/* the pick is one thumb that slides (ui.js measures the checked option into --tx/--tw): the option only changes its ink. Until ui.js has placed it, the option paints its own pick as before */
.seg{position:relative;--tb:.1875rem} .seg-sm{--tb:.125rem}
.seg::before{content:"";position:absolute;left:0;top:var(--ty,0);width:var(--tw,0);height:var(--th,0);border-radius:var(--r-pill);background:linear-gradient(180deg,#fff,#f0f7fb);box-shadow:inset 0 0 0 var(--tb) var(--line), var(--sh-1);transform:translateX(var(--tx,0));opacity:0;pointer-events:none;
  transition:transform 420ms var(--ease-bounce), width 420ms var(--ease-bounce), opacity var(--d-fast) linear}
.seg.has-thumb::before{opacity:1} .seg.thumb-still::before{transition:none}
.seg-opt{position:relative;z-index:1;transition:color var(--d-med) var(--ease-soft), transform var(--d-fast) var(--ease-bounce)}
.seg.has-thumb > .seg-opt[aria-checked="true"]{background:none;border-color:transparent;box-shadow:none}
.seg.has-thumb > .seg-opt[aria-checked="true"]:focus-visible{box-shadow:var(--glow)}
.seg-opt:active:not(:disabled){transform:scale(.95)}
@media (hover:hover){ .seg-opt[aria-checked="false"]:not(:disabled):hover{color:var(--ink-strong)} }
.seg-n{transition:background var(--d-med) var(--ease-soft), color var(--d-med) var(--ease-soft)}

/* room code: four big boxes (inputs on Enter code, spans on the share card) */
.code-boxes{display:flex;gap:.75rem;justify-content:center}
.code-box{width:5.5rem;height:6.75rem;padding:0;border-radius:var(--r-lg);border:.1875rem solid var(--sky-4);background:linear-gradient(180deg,var(--sky-1),#fff);box-shadow:inset 0 .1875rem .5rem rgba(120,170,200,.25);
  color:var(--ink-strong);font:400 3.75rem/1 var(--font-display);text-align:center;text-transform:uppercase;caret-color:var(--line);outline:0;display:inline-grid;place-items:center}
input.code-box:focus{border-color:var(--line);box-shadow:var(--glow), inset 0 .1875rem .5rem rgba(120,170,200,.25)}
.code-boxes.is-static .code-box{border-color:var(--line);color:var(--me-ink);user-select:all}
.code-boxes.is-bad .code-box{border-color:var(--bad)}
.code-boxes.is-error{animation:nudge 420ms var(--ease-soft) 1}
.code-err{min-height:1.5em;margin:calc(var(--s-3) * -1) 0;font-size:var(--t-md);font-weight:400;font-family:var(--font-display);color:var(--bad-deep)}
.share-link{display:flex;align-items:center;gap:var(--s-3);max-width:100%;padding:.5rem .5rem .5rem 1.25rem;border-radius:var(--r-pill)}
.share-link .addr{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--t-md);font-weight:500;color:var(--ink);user-select:all}
/* Copy link: hover (or click, or keyboard focus) drops two choices, the player link and the viewer link (&watch=1) */
#share-row{z-index:3}
.copy-menu{position:relative;flex:none}
.copy-caret{width:.5rem;height:.5rem;margin:-.25rem -.25rem 0 0;border:solid currentColor;border-width:0 .15625rem .15625rem 0;transform:rotate(45deg);transition:transform var(--d-med) var(--ease-bounce)}
.copy-drop{position:absolute;right:0;top:calc(100% + .5rem);z-index:5;display:flex;flex-direction:column;gap:.125rem;min-width:15rem;padding:.375rem;border-radius:var(--r-lg);
  background:#fff;border:.125rem solid var(--line-soft);box-shadow:var(--sh-2);opacity:0;visibility:hidden;transform:translateY(-.5rem) scale(.94);transform-origin:100% 0;transition:opacity var(--d-fast) linear, transform var(--d-fast) var(--ease-soft), visibility 0s linear var(--d-fast)}
.copy-drop::before{content:"";position:absolute;left:0;right:0;bottom:100%;height:.625rem}      /* the gap under the button still counts as hovering */
.copy-menu:hover .copy-drop,.copy-menu.is-open .copy-drop,.copy-menu:has(:focus-visible) .copy-drop{opacity:1;visibility:visible;transform:none;transition:opacity var(--d-fast) linear, transform 300ms var(--ease-bounce), visibility 0s linear 0s}      /* unfolds from the button with a little spring; closes quick and soft (the base list) */
.copy-menu:hover .copy-caret,.copy-menu.is-open .copy-caret,.copy-menu:has(:focus-visible) .copy-caret{transform:translateY(.1875rem) rotate(225deg)}
.copy-opt{display:flex;flex-direction:row;align-items:center;gap:.625rem;padding:.5rem .875rem;border:0;border-radius:calc(var(--r-lg) - .375rem);background:none;font-family:var(--font);text-align:left;cursor:pointer;outline:0}
.copy-txt{display:flex;flex-direction:column;align-items:flex-start;gap:.0625rem} .copy-opt b{font-size:var(--t-md);font-weight:400;font-family:var(--font-display);color:var(--ink-strong)} .copy-opt small{font-size:var(--t-sm);font-weight:500;color:var(--ink-soft)}
.copy-ic{flex:none;width:1.25rem;height:1.25rem;fill:none;stroke:var(--line-deep);stroke-width:2.25;stroke-linecap:round;stroke-linejoin:round}      /* a paddle to play, an eye to watch (the watchers pill's eye) */
.copy-opt:hover,.copy-opt:focus-visible{background:var(--sky-2)} .copy-opt:focus-visible{box-shadow:inset 0 0 0 .125rem var(--line)}

/* HUD: the room code, small, next to the hamburger. A click copies the link. */
.room-pill{cursor:pointer;font-family:var(--font);gap:.375rem;padding:0 .75rem}
.room-pill:hover,.room-pill:focus-visible{background:#fff;outline:0;box-shadow:var(--glow)}
.corner:has(.room-menu:hover),.corner:has(.room-menu.is-open),.corner:has(.room-menu :focus-visible){z-index:calc(var(--z-hud) + 4)}      /* its drop-down opens over the scoreboard, not under it */
.room-menu .copy-drop{left:0;right:auto;min-width:0;width:max-content} .room-menu .copy-opt small{display:none} .room-menu .copy-opt{padding:.5rem .75rem .5rem .625rem;gap:.5rem} .room-menu .copy-opt b{white-space:nowrap}      /* short (names only, no second line), so hung from the pill it ends before the scoreboard at every width */ .room-menu .copy-caret{margin:-.25rem 0 0 .125rem} .room-menu.no-link .copy-drop,.room-menu.no-link .copy-caret{display:none} .room-menu.no-link .room-pill{cursor:default}      /* the HUD's court pill: its choices drop to the right, from the top-left corner */

/* narrow / tall windows: stack the tiles as wide bars */
@media (max-aspect-ratio: 1/1){
  .menu-glass .menu-body{padding:var(--s-4);justify-content:safe center;overflow-y:auto}
  .tiles{display:grid;grid-template-columns:repeat(3,1fr);width:min(56rem,100%);gap:var(--s-3)}             /* three tiles: still three across (60rem wide at the 10px floor) */
  .tiles[data-n="4"]{grid-template-columns:repeat(2,1fr);width:min(40rem,100%)}      /* four (Your stats shown): 2x2, never three and a lone fourth */
  .tiles:is([data-n="5"],[data-n="6"]){grid-template-columns:1fr 1fr;width:min(40rem,100%);gap:var(--s-3)}      /* NOTES 160, upright: Quick play the full width, then bars two by two (Friends the full width when it shows) */
  .tiles:is([data-n="5"],[data-n="6"]) .tile,.tiles:is([data-n="5"],[data-n="6"]) .tile.is-play{grid-column:span 1;height:6.5rem;flex-direction:row;justify-content:flex-start;padding:0 var(--s-4);gap:var(--s-3);text-align:left;font-size:var(--t-lg)}
  .tiles:is([data-n="5"],[data-n="6"]) .tile svg,.tiles:is([data-n="5"],[data-n="6"]) .tile.is-play svg{width:3.75rem;height:3.75rem}
  .tiles:is([data-n="5"],[data-n="6"]) .tile.is-hero{grid-column:span 2;height:9rem;justify-content:center;gap:var(--s-4)} .tiles:is([data-n="5"],[data-n="6"]) .tile.is-hero svg{width:5.5rem;height:5.5rem}
  .tiles[data-n="6"] #btn-friends{grid-column:span 2}
  .tile{width:auto;height:13rem;gap:var(--s-2);font-size:var(--t-lg)}
  .tile svg{width:5.5rem;height:5.5rem}
  .name-row .field{width:14rem}
  .rematch-btns .btn{min-width:0;padding:0 2rem} .result-card{padding-left:var(--s-5);padding-right:var(--s-5)} .tally-num{min-width:5rem;font-size:5rem} .tally-side{min-width:6rem}
  .menu-glass .logo-mark{font-size:6.25rem}
  .btn-xl{min-width:0;width:min(21rem,100%)}
  .code-box{width:4.75rem;height:6rem;font-size:3.25rem}
  .seg-opt{min-width:0;padding:0 1.5rem}
  .lobby-online{right:var(--s-4)} .btn-back{left:var(--s-3)}
  .menu-glass .menu-foot{height:3.5rem;padding:0 var(--s-4)} .menu-glass .menu-foot .caps{display:none}
  .safety{flex-direction:column;text-align:center;gap:var(--s-2)}
}

/* narrow windows (the root size is at or near its 10px floor, so the HUD no longer shrinks with the window): the scoreboard gives way to
   the corners. Lights and room code stack in a column on the left, the webcam inset shrinks to the AirPod's width on the right. */
@media (max-width: 900px){
  .corner{flex-direction:column;align-items:flex-start;flex-wrap:nowrap;max-width:none} .corner-br{display:none}
  .room-menu .copy-caret{display:none}       /* the court pill keeps its old width beside the narrower board; hover and a tap still open it */
  .inset-cam{width:9rem} .inset-pod{top:calc(var(--edge) + 5.6875rem + .5rem)}       /* 5.6875rem = the smaller webcam frame's height */
  .scoreboard{width:min(45.25rem, calc(100vw - 2 * (10rem + var(--edge))))}      /* 45.25rem: the board's natural width with 19.5rem tabs (NOTES 212), so nothing jumps at the breakpoint */
  .score-tab{flex:1 1 0;width:auto;min-width:0;gap:.375rem}
  .score-num{min-width:2.25rem} .rally{min-width:3rem;padding:0 .375rem}
  .score-tab .chip{display:none} .score-tab,.score-tab.is-them{padding:0 .75rem}       /* the coloured underline already says whose tab it is; the name and its sub-label need the room */
}
/* phone width: there is no room for the board BETWEEN the corners (the names read 'Y..' and 'M.'). The corner is one row again beside the webcam, the board takes
   the full width under them, and what hung under the board or the webcam moves down with it. */
@media (max-width: 480px){
  .corner{flex-direction:row;flex-wrap:wrap;align-items:center;max-width:calc(100vw - 9rem - 3 * var(--edge))}
  .scoreboard{top:calc(var(--edge) + 5.6875rem + .5rem);width:calc(100vw - 2 * var(--edge))}
  body[data-role="spectator"] .scoreboard{top:calc(var(--edge) + 3.25rem)}                 /* no insets to clear when watching: straight under the hamburger */
  .inset-pod,body[data-screen="hud"] #camwrap[hidden] ~ .inset-pod{top:calc(var(--edge) + 5.6875rem + .5rem + 4.25rem + .5rem)}
  .banner-tag{top:calc(var(--edge) + 5.6875rem + .5rem + 4.25rem + .5rem)} body[data-role="spectator"] .banner-tag{top:calc(var(--edge) + 3.25rem + 4.25rem + .5rem)}
}

/* ==========================================================================================================
   SETTINGS PANEL (hamburger). A compact card under the corner, not a screen: the rally goes on behind it, so it is
   see-through enough to show that (no backdrop blur here: that would re-run on every WebGL frame). Against Matt the
   server pauses instead, and then the one shared blur layer (.glass) comes up behind it: nothing is being played.
   ========================================================================================================== */
/* --set-top: ui.js measures it on open. Under the hamburger on a wide window; on a narrow one also under the room code and the scoreboard, which it would otherwise cover */
.settings{--set-top:calc(var(--edge) + 3.25rem);--set-floor:0rem;position:fixed;left:var(--edge);top:var(--set-top);z-index:calc(var(--z-screen) - 1);width:min(23rem, calc(100vw - 2 * var(--edge)));max-height:calc(100dvh - var(--set-top) - var(--edge) - var(--set-floor));overscroll-behavior:contain;overflow-y:auto;
  display:flex;flex-direction:column;gap:var(--s-3);padding:var(--s-4);border-radius:var(--r-lg);border-width:.15625rem;text-align:left;outline:0;
  background:linear-gradient(180deg,rgba(246,250,252,.84),rgba(231,241,246,.74));box-shadow:var(--sh-3), inset 0 0 0 .125rem rgba(255,255,255,.9);animation:panel-in var(--d-med) var(--ease-out) both}
/* Show stats is switched from this card, so the stats step out from under it while it is open: beside it, below the scoreboard */
body[data-settings] .dev-panel{position:fixed;left:calc(var(--edge) + min(23rem, 100vw - 2 * var(--edge)) + .5rem);top:calc(var(--edge) + 4.75rem);max-width:calc(100vw - 2 * var(--edge))}
.settings::before{display:none}
body[data-paused] .settings{background:linear-gradient(180deg,#f6fafc,#e7f1f6)}             /* paused: nothing to see through to */
body[data-settings][data-paused] .glass,body[data-friendscard][data-paused] .glass{opacity:1;visibility:visible;transition-delay:0s}
.settings h2{margin:0;font-size:var(--t-lg);font-weight:400;font-family:var(--font-display);letter-spacing:.03em;color:var(--ink-strong)}
body[data-paused] .settings h2{color:var(--warn-deep)}
/* groups: a small caps label, then one white card of rows split by hairlines (a phone's settings, not a pile of pills) */
.set-head{display:flex;flex-direction:column;align-items:flex-start;gap:.4375rem;padding:0 .375rem}
#settings .set-head{padding:0 var(--s-4)}      /* the heading, the group labels and the rows' text share one left edge (NOTES 139) */
.set-row{display:flex;align-items:center;justify-content:space-between;gap:.75rem;min-height:2.75rem;width:100%;padding:0 .5rem 0 .875rem;border:.125rem solid transparent;border-radius:0;background:none;
  color:var(--ink-strong);font:400 var(--t-md)/1.2 var(--font-display);text-align:left}
@media (max-width:700px){ .set-row{min-height:max(2.75rem,40px)} }      /* at the 10px root (all of 700px and under) a row was 28px: too small to tap (NOTES 139) */
button.set-row{cursor:pointer;outline:0;-webkit-tap-highlight-color:transparent;position:relative;isolation:isolate}
button.set-row::before{content:"";position:absolute;inset:.0625rem 0 0;border-radius:inherit;background:#fff;opacity:0;z-index:-1;pointer-events:none;transition:opacity var(--d-fast) linear}      /* the hover wash is a layer that fades (opacity), not a background swap: the card can sit over a live rally. The top inset keeps the hairline */
@media (hover:hover){ button.set-row:hover::before{opacity:.9} } button.set-row:active::before{opacity:1;transition-duration:60ms}
button.set-row:focus-visible,.settings .btn:focus-visible{border-color:var(--line);box-shadow:var(--glow)}
.set-row .field{width:11.5rem;height:2.25rem;padding:0 .875rem;font-size:var(--t-md);border-width:.125rem}
/* Output: the device list on the right. Device names get long ("Default - MacBook Pro Speakers"), so the select is capped and cuts rather than stretching the card */
.stepper{display:inline-flex;align-items:center;gap:.375rem} .stepper b{min-width:2rem;text-align:center;font-size:var(--t-lg);font-weight:400;font-family:var(--font-display);font-variant-numeric:tabular-nums}
.stepper .btn-icon{width:2.375rem;height:2.375rem;box-shadow:var(--sh-1), var(--inner-hi)} .stepper .btn-icon svg{width:1.25rem;height:1.25rem;stroke-width:3.25}
/* switch: a track and a knob. Off = grey track, knob left; on = the outline blue, knob right, a tick of shape as well as colour */
.set-switch i{flex:none;position:relative;width:3.25rem;height:1.875rem;border-radius:var(--r-pill);background:var(--sky-4);box-shadow:inset 0 .0625rem .1875rem rgba(40,80,110,.3)}
.set-switch i::after{content:"";position:absolute;left:.1875rem;top:.1875rem;width:1.5rem;height:1.5rem;border-radius:50%;background:linear-gradient(180deg,#fff,#eaf3f8);box-shadow:0 .0625rem .1875rem rgba(20,60,90,.4);transition:transform 360ms var(--ease-bounce), width 200ms var(--ease-out), translate var(--d-fast) var(--ease-out)}
.set-switch i::before{content:"";position:absolute;inset:0;border-radius:inherit;background:linear-gradient(180deg,var(--line),var(--line-deep));box-shadow:inset 0 .0625rem .1875rem rgba(40,80,110,.3);opacity:0;transition:opacity var(--d-med) var(--ease-soft)}      /* the blue is a layer that fades in: a gradient cannot be tweened, so swapping the background snapped (and flashed see-through going off) */
.set-switch[aria-checked="true"] i::before{opacity:1} .set-switch[aria-checked="true"] i::after{transform:translateX(1.375rem)}
.set-switch:active i::after{width:1.875rem} .set-switch[aria-checked="true"]:active i::after{transform:translateX(1.0625rem)}      /* the knob slides with a little overshoot and stretches while pressed, like a real toggle */
@media (hover:hover){ .set-switch:hover i::after{translate:.125rem 0} .set-switch[aria-checked="true"]:hover i::after{translate:-.125rem 0} }      /* the knob leans toward where a click sends it (translate: composes with the slide) */
.settings > *{flex-shrink:0}      /* the card scrolls; it never squeezes a row (it squashed Leave court to 13 px in a short window) */
.set-foot{position:sticky;bottom:-1rem;z-index:1;display:flex;flex-direction:column;gap:.5rem;margin:0 -1rem -1rem;padding:.75rem var(--s-4) var(--s-4);
  border-radius:0 0 var(--r-lg) var(--r-lg);background:linear-gradient(180deg,rgba(236,244,248,0),rgba(236,244,248,.96) .75rem)}      /* pinned under the list, a soft fade where the rows scroll beneath it */
.set-foot:not(:has(> :not([hidden]))){display:none}      /* nothing to leave and nothing to say: no empty strip */
body[data-paused] .set-foot{background:linear-gradient(180deg,rgba(231,241,246,0),#e9f2f7 .75rem)}
.set-foot .btn{width:100%;height:2.875rem;margin:0;flex:none}
@media (max-height:760px){ .settings{gap:.625rem;padding:.875rem} .set-foot{bottom:-.875rem;margin:0 -.875rem -.875rem;padding:.75rem .875rem .875rem} }      /* a short window: the old, tighter card, so the match sheet still fits without scrolling (NOTES 139) */
body:not([data-screen="hud"]) .settings{--set-floor:4.75rem}
@media (max-width:520px){.settings{width:calc(100vw - 2 * var(--edge))}}      /* a phone: the whole width, not a 23rem card that 10px rems shrink to 230 px */      /* every menu screen has a footer bar: the card stops above it instead of running under it */
.seg-sm{padding:.1875rem;gap:.125rem;margin-left:auto} .seg-sm .seg-opt{height:2.125rem;min-width:0;padding:0 .75rem;font-size:var(--t-sm);border-width:.125rem} .seg-sm .seg-opt:disabled{opacity:.4;cursor:default}
#btn-leave-room{color:var(--bad-deep);border-color:#f3a3a3;background:#fff} #btn-leave-room:hover{background:#fff}
/* the three statuses, at a glance in the head: a light and a name each; the state word is there for screen readers and on hover */
.set-status{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:.25rem;list-style:none;margin:0;padding:0}
.set-status li{display:flex;align-items:center;gap:.3125rem;height:1.625rem;padding:0 .5625rem 0 .4375rem;border-radius:var(--r-pill);background:rgba(255,255,255,.7);box-shadow:inset 0 0 0 .0625rem rgba(40,80,110,.08);font-size:var(--t-xs);font-weight:400;font-family:var(--font-display);color:var(--ink)}
.set-status li[hidden]{display:none}
.set-status b{font-weight:400;font-family:var(--font-display)} .set-status em{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.set-status .is-bad{background:#fff0f0;color:var(--bad-deep)} .set-status .is-wait{color:var(--warn-deep)}
.set-note{margin:0;padding:.5rem .875rem;border-radius:var(--r-md);background:#fff6e0;border:.09375rem solid var(--warn);color:var(--warn-deep);font-size:var(--t-sm);font-weight:400;font-family:var(--font-display);text-align:center}
.settings.is-spectator #grp-you,.settings.is-spectator #grp-paddle,.settings.is-spectator #grp-match,.settings.is-spectator #set-move,.settings.is-spectator #set-paddle,.settings.is-spectator #btn-pair,.settings.is-spectator #set-bot,.settings.is-spectator #set-name,.settings.is-spectator #set-sens,.settings.is-spectator #tog-airpod,.settings.is-spectator #btn-recenter,.settings.is-spectator #set-airpod,.settings.is-spectator #set-camera{display:none}      /* watching: Screen, and the Game light */

/* ==========================================================================================================
   SPECTATORS: view chips bottom-left, the split-screen divider, no key hints and no insets. And the seat-hold card.
   ========================================================================================================== */
.views{display:none;flex-wrap:wrap;gap:.25rem .375rem}
body[data-role="spectator"] .views{display:flex}
body[data-role="spectator"] .keyhints,body[data-role="spectator"] #podwrap,body[data-role="spectator"] #camwrap{display:none}
/* a chip is a key hint you can press: keycap + word straight on the court. The active one gets the HUD's white plate */
.view-chip{display:inline-flex;align-items:center;gap:.375rem;height:2.25rem;padding:0 .75rem;border-radius:var(--r-pill);border:.125rem solid transparent;background:none;color:inherit;font:inherit;text-shadow:inherit;white-space:nowrap;cursor:pointer;outline:0;-webkit-tap-highlight-color:transparent}
.view-chip:hover{background:rgba(255,255,255,.22)}
.view-chip[aria-pressed="true"]{background:rgba(255,255,255,.94);border-color:#fff;color:var(--ink-strong);text-shadow:none;box-shadow:var(--sh-hud)}
.view-chip[aria-pressed="true"] .keycap{background:linear-gradient(180deg,var(--line),var(--line-deep));border-color:var(--line-deep);color:#fff;box-shadow:none}
.view-chip:focus-visible{border-color:var(--line);box-shadow:var(--glow)}
.views-key{align-self:center;margin-right:.125rem} html[data-mobile] .views-key{display:none}      /* one key for the row: V steps through the views (NOTES 205; they were 1-4) */
#split-line{display:none;position:fixed;left:50%;top:0;bottom:0;width:2px;margin-left:-1px;background:#fff;z-index:calc(var(--z-hud) - 1);pointer-events:none}
body[data-role="spectator"][data-view="split"] #split-line{display:block}
@media (max-aspect-ratio: 1/1){ #split-line{left:0;right:0;top:50%;bottom:auto;width:auto;height:2px;margin:-1px 0 0} }       /* taller than wide: scene.js stacks the two views (same test, w <= h), so the line lies across */
body[data-role="spectator"] #ping-pill{display:none}                           /* the ping is shown while seated only (docs/NEXT.md 14g) */
/* emotes (NOTES 205): everyone on a court gets a small bar bottom-right, GG and nine Apple emoji, each with its key (1 to 0) under it.
   Everyone in the court sees each one rise a little from just above the bar and fade within two seconds, with the sender's name.
   After a player's pick the bar rests for a second: it dims, and a thin line along its foot runs out (never for a spectator, NOTES 213). */
.emotes{display:flex;gap:.125rem;position:fixed;right:var(--edge);bottom:var(--edge);z-index:var(--z-hud);padding:.25rem .25rem .375rem;border-radius:1rem;background:linear-gradient(180deg,rgba(255,255,255,.97),rgba(238,246,250,.93));border:.09375rem solid #fff;box-shadow:var(--sh-hud);overflow:hidden;transition:opacity 500ms var(--ease-soft), transform 500ms var(--ease-out)}
.emote-btn{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.0625rem;width:1.875rem;height:2.375rem;padding:0;border:.09375rem solid var(--sky-3);border-radius:.5625rem;background:linear-gradient(180deg,#ffffff 0%,#f7fbfd 47%,#e3eef4 53%,#edf5f9 100%);box-shadow:0 .125rem 0 var(--line-soft), var(--inner-hi);cursor:pointer;outline:0;-webkit-tap-highlight-color:transparent;transition:transform var(--d-fast) var(--ease-bounce), opacity var(--d-fast), border-color var(--d-fast), box-shadow var(--d-fast)}      /* a key cap like the HUD's .keycap, glossed like .btn: its foot is sky blue (hue shift), not grey (NOTES 243) */
.emote-btn img{width:1.375rem;height:1.375rem;pointer-events:none;user-select:none}
.emote-key{font-size:.625rem;font-weight:400;font-family:var(--font-display);line-height:1;color:var(--me-ink);font-variant-numeric:tabular-nums;pointer-events:none}
@media (hover:hover){ .emote-btn:hover{transform:translateY(-.125rem);border-color:var(--line);box-shadow:0 .25rem 0 var(--line), var(--inner-hi)} } .emote-btn:active{transform:translateY(.125rem);box-shadow:0 0 0 var(--line), var(--inner-hi)}      /* pressed: the cap goes down onto its foot */      /* the grow is for a mouse: on a phone a tapped emote stayed swollen */ .emote-btn:focus-visible{box-shadow:var(--glow)}
.emotes::after{content:"";position:absolute;left:.5rem;right:.5rem;bottom:.0625rem;height:.1875rem;border-radius:.0625rem;background:var(--line);transform-origin:0 50%;transform:scaleX(0);pointer-events:none}
.emotes.is-cool .emote-btn{opacity:.45} .emotes.is-cool::after{animation:emote-cool 1s linear forwards}
@keyframes emote-cool{from{transform:scaleX(1)} to{transform:scaleX(0)}}
html[data-mobile] .emote-key{display:none} html[data-mobile] .emote-btn{height:2rem}      /* a phone has no number keys */
body:not([data-role="spectator"]) .keyhints{bottom:calc(var(--edge) + 3.375rem)}      /* a player's key strip sits just above the bar */
@media (min-width:561px){ body:has(#bot-pick:not([hidden])) .toast{bottom:calc(var(--edge) + 3.375rem)} }      /* against Matt the toast sits just above his row's band: a long one (a mid-match level change) would cover the row, which never moves (NOTES 206) */
@media (max-width:560px){ .bot-pick{bottom:calc(var(--edge) + 3.375rem)} body:has(#bot-pick:not([hidden])) .toast{bottom:calc(var(--edge) + 6.75rem)} }      /* narrow: Matt's difficulty row (bottom-left, NOTES 204) and the bar would meet, so the row sits above the bar's band, left of the key strip. A toast never moves it: here the toast goes above the row (NOTES 206) */
/* a toast never hides the bar (NOTES 243): on the court it keeps out of the bar's way. Wide: centred between the bar and its mirror (20.5625rem + a gap
   each side), a long one wraps. Narrower, or a spectator's Ask to play beside the bar: one band up, where the key strip was (it yields to a toast) */
@media (min-width:1080px){ body[data-screen="hud"] .toast{max-width:calc(100vw - 2 * (var(--edge) + 21.25rem))} }
@media (max-width:1079px){ body[data-screen="hud"]:not([data-role="spectator"]) .toast{bottom:calc(var(--edge) + 3.375rem)} }
@media (min-width:701px) and (max-width:1079px){ body[data-screen="hud"][data-role="spectator"] .toast{bottom:calc(var(--edge) + 3.375rem)} }
@media (min-width:701px){ body[data-screen="hud"][data-role="spectator"]:has(#btn-ask:not([hidden])) .toast{bottom:calc(var(--edge) + 3.375rem);max-width:min(46rem,calc(100vw - 4 * var(--edge)))} }
.emote-layer{position:fixed;inset:0;z-index:var(--z-hud);pointer-events:none;overflow:hidden}
.emote-pop{position:absolute;right:calc(var(--edge) + var(--x, 0rem));bottom:calc(var(--edge) + 3.25rem);display:flex;flex-direction:column;align-items:center;gap:.125rem;
  animation:emote-rise var(--dur, 2s) cubic-bezier(.3,.2,.6,1) forwards}
.emote-pop > i{display:flex;flex-direction:column;align-items:center;gap:.125rem;font-style:normal;animation:emote-sway calc(var(--dur, 2s) / 2) ease-in-out infinite alternate}
.emote-pop img{width:3.375rem;height:3.375rem;filter:drop-shadow(0 .1875rem .375rem rgba(10,30,45,.35));animation:emote-in 320ms var(--ease-bounce) both}
.emote-pop span{max-width:7rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff;font-size:max(var(--t-xs),10px);font-weight:400;font-family:var(--font-display);line-height:1.2;text-shadow:0 .0625rem .1875rem rgba(10,30,45,.8), 0 0 .5rem rgba(10,30,45,.5)}
/* a player's emote (NOTES 208): a speech bubble out of their own scoreboard tab, placed by ui.js bubble() in the space beside the board
   (or under the tab when that space is too narrow), its tail pointing at the tab. It springs out of the tail, holds, and fades: 2 s */
.emote-bub{position:absolute;display:grid;place-items:center;min-width:3rem;height:3rem;padding:0 .5rem;border-radius:1.5rem;background:#fff;box-shadow:var(--sh-hud);animation:bub-life 2s linear forwards}
.emote-bub img{width:2.125rem;height:2.125rem;animation:bub-in 300ms var(--ease-bounce) both}
.emote-bub::after{content:"";position:absolute;width:.75rem;height:.75rem;background:#fff;transform:rotate(45deg);border-radius:.125rem}
.emote-bub.is-side.is-me{transform-origin:100% 50%} .emote-bub.is-side.is-me::after{right:-.3125rem;top:calc(50% - .375rem)}
.emote-bub.is-side.is-them{transform-origin:0 50%} .emote-bub.is-side.is-them::after{left:-.3125rem;top:calc(50% - .375rem)}
.emote-bub.is-below{transform-origin:50% 0} .emote-bub.is-below::after{top:-.3125rem} .emote-bub.is-below.is-me::after{left:1rem} .emote-bub.is-below.is-them::after{right:1rem}
@keyframes bub-life{0%{opacity:0;scale:.3} 12%{opacity:1;scale:1.08} 20%{scale:1} 80%{opacity:1;scale:1} 100%{opacity:0;scale:.9}}
@keyframes bub-in{from{rotate:-14deg} to{rotate:0deg}}
@media (prefers-reduced-motion: reduce){ .emote-bub{animation:emote-fade 2s linear forwards} .emote-bub img{animation:none} }
@keyframes emote-rise{0%{transform:translateY(0);opacity:1} 80%{opacity:1} 100%{transform:translateY(calc(var(--rise, 6rem) * -1));opacity:0}}      /* NOTES 221: --rise (ui.js) takes it 70% of the way up; it fades only near the top */
@keyframes emote-sway{from{transform:translateX(calc(var(--sway, .5rem) * -1))} to{transform:translateX(var(--sway, .5rem))}}
@keyframes emote-in{from{transform:scale(.2);opacity:0} to{transform:scale(1);opacity:1}}
body:not([data-role="spectator"]) .emote-pop{bottom:calc(var(--edge) + 5.25rem)}      /* a player's are born above the key strip */
@media (max-width: 700px){ body[data-role="spectator"] .emote-pop{bottom:calc(var(--edge) + 8rem)} }      /* a spectator's bar sits higher here (above the view chips) */
@media (prefers-reduced-motion: reduce){ .emote-pop{animation:emote-fade var(--dur, 4.5s) linear forwards} .emote-pop > i,.emote-pop img{animation:none} @keyframes emote-fade{0%,75%{opacity:1} 100%{opacity:0}} .emote-btn{transition:none} .emotes.is-cool::after{animation:none} }
@media (max-width: 700px){ .emote-btn{width:1.75rem} body[data-role="spectator"] .emotes{bottom:calc(var(--edge) + 5.25rem)} }      /* the view chips wrap to two rows here: a spectator's bar sits above them (19.3125rem wide) */
body[data-overlay] .emotes,body[data-overlay] .emote-layer{opacity:0;pointer-events:none}

/* notices: a small card on the left edge, half way down, when someone starts watching you. It slides in from the left for a few seconds, then slides back out.
   Half way down keeps it clear of the HUD corner above and the key hints / view chips below, and the settings panel takes the same space: that hides it. */
.notices{position:fixed;left:var(--edge);top:50%;translate:0 -50%;z-index:calc(var(--z-hud) + 3);display:flex;flex-direction:column;align-items:flex-start;gap:.375rem;pointer-events:none}
.notices .notice{display:inline-flex;align-items:center;gap:.5rem;width:max-content;max-width:min(18rem, calc(100vw - 2 * var(--edge)));height:2.25rem;padding:0 .875rem 0 .625rem;border-radius:var(--r-pill);background:rgba(255,255,255,.95);border:.09375rem solid #fff;box-shadow:var(--sh-hud);
  color:var(--ink-strong);font-size:var(--t-sm);font-weight:400;font-family:var(--font-display);white-space:nowrap;animation:notice-in 420ms var(--ease-bounce) both}
.notices .notice span{overflow:hidden;text-overflow:ellipsis}
.notices .notice svg{flex:none;width:1.125rem;height:1.125rem;fill:none;stroke:var(--ink-soft);stroke-width:2.25;stroke-linejoin:round} .notices .notice svg circle{fill:var(--ink-soft);stroke:none}
.notices .notice.is-out{animation:notice-out 320ms var(--ease-soft) both}
.notices .notice.is-record svg{fill:var(--gold-2);stroke:var(--gold-3);stroke-width:1.5}      /* a new personal best (NOTES 132): the same pill with a gold star */
@keyframes notice-in{from{opacity:0;transform:translateX(-1.5rem)} to{opacity:1;transform:none}}
@keyframes notice-out{to{opacity:0;transform:translateX(-1.5rem)}}
@media (prefers-reduced-motion: reduce){ .notices .notice,.notices .notice.is-out{animation-duration:1ms} }      /* .notices: a bare .notice is also the server-down / game-full card, which this pill rule squashed */
body[data-overlay] .notices,body[data-settings] .notices,body[data-friendscard] .notices{opacity:0}
.hold-card{position:fixed;left:50%;top:47%;translate:-50% 0;z-index:calc(var(--z-callout) + 1);display:inline-flex;align-items:center;gap:.875rem;height:4rem;padding:0 1.25rem 0 1.5rem;border-radius:var(--r-pill);border:.1875rem solid var(--line);white-space:nowrap;
  background:linear-gradient(180deg,#ffffff 0%,#f7fbfd 47%,#e3eef4 53%,#edf5f9 100%);box-shadow:var(--sh-3), var(--inner-hi);color:var(--ink-strong);font-size:var(--t-lg);font-weight:400;font-family:var(--font-display);max-width:calc(100vw - 2 * var(--edge))}
.hold-card .dots-wait{margin-right:.125rem} .hold-card .dots-wait i{margin-left:0;margin-right:.25rem}
.hold-card b{display:grid;place-items:center;min-width:2.5rem;height:2.5rem;padding:0 .5rem;border-radius:var(--r-pill);background:var(--sky-2);border:.125rem solid var(--line-faint);font-weight:400;font-family:var(--font-display);font-variant-numeric:tabular-nums;color:var(--me-ink)} .hold-card b:empty{display:none}
body:not([data-screen="hud"]) .hold-card{display:none}                /* the title and the lobby are see-through: nothing of a room shows under them */

/* ping: bars + ms beside the court code. Calm on purpose: ink-coloured bars, fewer of them on a slow link, never a warning colour */
.ping-pill{gap:.4375rem;padding:0 .75rem 0 .625rem;font-variant-numeric:tabular-nums}
.ping-pill .bars{display:inline-flex;align-items:flex-end;gap:.125rem;height:.75rem}
.ping-pill .bars i{display:block;width:.1875rem;border-radius:.0625rem;background:var(--ink-faint)}
.ping-pill .bars i:nth-child(1){height:30%}.ping-pill .bars i:nth-child(2){height:53%}.ping-pill .bars i:nth-child(3){height:76%}.ping-pill .bars i:nth-child(4){height:100%}
.ping-pill[data-bars="1"] .bars i:nth-child(-n+1),.ping-pill[data-bars="2"] .bars i:nth-child(-n+2),.ping-pill[data-bars="3"] .bars i:nth-child(-n+3),.ping-pill[data-bars="4"] .bars i{background:var(--me-ink)}
.ping-pill b{font-weight:400;font-family:var(--font-display);color:var(--ink-strong)}

/* open courts: our own scrollbar (ui.js roomBar), always drawn while the list has more than fits. The native one is hidden. */
.room-wrap{position:relative;align-self:stretch;display:flex;justify-content:center}
.room-list{scrollbar-width:none;overscroll-behavior:contain;flex:1}
.room-list::-webkit-scrollbar{display:none}
.room-bar{position:absolute;right:-.25rem;top:.25rem;bottom:.25rem;width:.5rem;border-radius:999px;background:rgba(90,150,185,.22);box-shadow:inset 0 0 0 .0625rem rgba(255,255,255,.7);cursor:pointer;touch-action:none}
.room-bar i{position:absolute;left:0;right:0;min-height:1.25rem;border-radius:999px;background:var(--line);box-shadow:inset 0 .0625rem 0 rgba(255,255,255,.6);cursor:grab}
.room-bar i:active{cursor:grabbing;background:var(--line-deep)}

/* title screen: the one line a visitor needs before anything else, centred in the footer */
.foot-link{flex:none;color:var(--line-deep);font-weight:400;font-family:var(--font-display);font-size:max(14px,var(--t-sm));text-decoration:none;white-space:nowrap;background:linear-gradient(currentColor,currentColor) 0 100%/0 .125rem no-repeat;transition:background-size var(--d-med) var(--ease-out)}
.t-note.is-loud{font-size:max(14px,var(--t-sm));font-weight:400;font-family:var(--font-display)}      /* not on a Mac (main.js): the note under Play says so, at a size a phone can read */
.foot-link:focus-visible{background-size:100% .125rem} @media (hover:hover){ .foot-link:hover{background-size:100% .125rem} }      /* the underline draws in from the left */
/* the legal links (web/privacy.html, web/terms.html): quieter than How to play, but always there. .foot-links wraps as one unit on a phone */
.foot-links{flex:none;display:inline-flex;align-items:center;gap:var(--s-4)}
.foot-link.foot-legal{color:var(--ink-soft);font-weight:400;font-family:var(--font-display)}
/* the Product Hunt badge in the lobby's footer (NOTES 182): 2.75rem tall, a lift on hover, out of the way of the keyhints */
.ph-badge{flex:none;display:inline-flex;border-radius:.625rem;transition:transform var(--d-fast) var(--ease-bounce)} .ph-badge img{display:block;height:2.75rem;width:auto;border-radius:.625rem;box-shadow:var(--sh-1)}
@media (hover:hover){ .ph-badge:hover{transform:translateY(-.125rem) scale(1.03)} } .ph-badge:focus-visible{outline:.1875rem solid var(--line);outline-offset:.125rem}
/* the title's footer (NOTES 184): the links centred in the bar; the Product Hunt badge sits in the screen's bottom right corner, just above the bar
   (anchored to the footer, bottom:100%, so it follows the bar's height when the links wrap) */
.menu-glass .menu-foot .ph-badge{position:absolute;right:var(--edge);bottom:calc(100% + var(--s-3));z-index:3} .menu-glass .menu-foot .ph-badge img{height:2.5rem}      /* the title and the lobby (NOTES 186) */
@media (max-width:700px){ .menu-glass .menu-foot .ph-badge{right:var(--edge);bottom:calc(100% + var(--s-3))} #screen-lobby .menu-foot{flex-wrap:wrap;height:auto;min-height:4.5rem;padding-block:var(--s-2);row-gap:var(--s-1)} .menu-glass .menu-foot .ph-badge img{height:2.125rem} }
.foot-agree{font-size:max(13px,var(--t-xs));color:var(--ink-soft);line-height:1.35} .foot-agree .foot-link{font-size:inherit;font-weight:400;font-family:var(--font-display)}
.menu-glass .menu-foot:has(.foot-agree){height:auto;min-height:3.5rem;padding-top:var(--s-3);padding-bottom:var(--s-3)}      /* the line may wrap: the bar grows with it, never clips it */
.foot-agree > span{white-space:nowrap}      /* a phone breaks it between its two sentences, never inside one (NOTES 223) */
@media (min-width:521px){ html:not([data-mobile]) .foot-agree{order:1;flex:1 1 100%;white-space:nowrap;text-align:center} html:not([data-mobile]) .menu-glass .menu-foot:has(.foot-agree){flex-wrap:wrap;row-gap:var(--s-2)} }      /* on a computer a row of its own, centered under the links and the keys, never broken (NOTES 223): beside them it ran out of room and wrapped mid-sentence */
@media (max-width:520px){ .foot-agree ~ .keyhints-inline{display:none} .foot-agree{flex:1;text-align:center} }      /* a phone has no Esc or F key: the legal line gets the whole bar */
/* the logo is the page's h1 and reads "Poddle" to crawlers and screen readers: the ball that is drawn for the o holds a real o */
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* ---------- a phone as the paddle (NOTES 34): the code to scan, on the set-up screen ---------- */
.pad-pair{display:flex;align-items:center;gap:2rem;margin:0 0 1.25rem;padding:1.25rem 1.5rem;border-radius:var(--r-lg);background:linear-gradient(180deg,#fff,var(--sky-1));border:.125rem solid var(--line-soft);box-shadow:var(--sh-1);text-align:left}
.pad-pair[hidden]{display:none}
.pad-qr{flex:none;width:11.5rem;height:11.5rem;padding:.5rem;border-radius:var(--r-md);background:#fff;border:.125rem solid var(--line-soft)}
.pad-qr svg{display:block;width:100%;height:100%}
.pad-how h3{margin:0 0 .5rem;font-size:var(--t-xl);font-weight:400;font-family:var(--font-display);color:var(--ink-strong)}
.pad-how ol{margin:0;padding-left:1.4em;font-size:var(--t-md);line-height:1.5}
.pad-how li+li{margin-top:.25rem}
.pad-alt{margin:.75rem 0 0;font-size:var(--t-sm);color:var(--ink-soft)}
.pad-code{letter-spacing:.12em;color:var(--ink-strong);white-space:nowrap}
/* the AirPod way (NOTES 36): no QR, the helper to download in its place, and one plain line on what it does */
.pad-helper{justify-content:space-between;gap:1.5rem}
.pad-get{flex:none;text-decoration:none}
.pad-link{color:var(--line-deep);font-weight:400;font-family:var(--font-display);text-decoration:none;white-space:nowrap}
.pad-link:hover,.pad-link:focus-visible{text-decoration:underline}
@media (max-width:40rem){ .pad-pair{flex-direction:column;gap:1rem;text-align:center} .pad-how ol{text-align:left} .pad-qr{width:9.5rem;height:9.5rem} }

/* ---------- which paddle: Phone | AirPod, at the top of the set-up screen (NOTES 37) ---------- */
.seg-paddle{display:flex;width:fit-content;margin:0 auto 1.25rem}
.seg-paddle[hidden]{display:none}
.seg-paddle .seg-opt{display:inline-flex;align-items:center;justify-content:center;gap:.625rem;min-width:11rem}
.seg-paddle svg{width:1.625rem;height:1.625rem;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.seg-paddle circle{fill:currentColor;stroke:none}
.cal-art.is-phone{--pod:hidden;--phone:visible}
@media (max-width:40rem){ .seg-paddle .seg-opt{min-width:8.5rem} }

/* ==========================================================================================================
   COURTS (docs/COURTS-TOURNEY.md 2.6-2.9): the home's three tiles, the one court list with search and Open | Full, a code to Join or
   Watch, Create court / Create tournament. Then asking to play: the player's corner card and the spectator's button.
   ========================================================================================================== */
.lobby-home{flex:1;justify-content:center}                                               /* the home view holds only the tiles now */
.tile-sub{position:absolute;top:.875rem;right:.875rem;height:1.75rem;padding:0 .625rem;border-radius:var(--r-pill);display:inline-flex;align-items:center;background:var(--me-tint);border:.125rem solid #cfe4fb;
  color:var(--me-ink);font-size:var(--t-sm);font-weight:400;font-family:var(--font-display);font-variant-numeric:tabular-nums;white-space:nowrap}      /* '5 open': a badge in the corner, so the tile never moves when it comes and goes */
.tile-sub{transition:opacity var(--d-med) var(--ease-soft), scale var(--d-med) var(--ease-bounce), visibility 0s linear 0s} .tile-sub.is-off{opacity:0;scale:.5;visibility:hidden;transition-delay:0s,0s,var(--d-med)} .tile-sub.pop{animation:num-pop 450ms var(--ease-bounce)}      /* '5 open' pops in, and bumps when the count moves */
.btn.is-tall,.is-tall{min-height:44px}
.tiles[data-n="5"] .tile:not(.is-hero) .tile-sub,.tiles[data-n="6"] .tile:not(.is-hero) .tile-sub{top:var(--s-2);right:var(--s-2)}      /* the short utility tiles: clear of the icon (NOTES 139) */
.btn svg{flex:none}
.room-watch svg,.ask-play svg{width:1.25rem;height:1.25rem;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}

.panel.lobby-view.courts{width:min(74rem, 94vw);display:grid;grid-template-columns:minmax(0,1fr) 21rem;align-items:stretch;gap:var(--s-6);padding:var(--s-5) var(--s-6);text-align:left}
.search{position:relative;flex:1 1 16rem;min-width:0;display:flex}
.search svg{position:absolute;left:1.125rem;top:50%;translate:0 -50%;width:1.375rem;height:1.375rem;fill:none;stroke:var(--ink-soft);stroke-width:2.6;stroke-linecap:round;pointer-events:none}
.search .field{width:100%;height:max(3.25rem,44px);padding:0 1rem 0 3.125rem;font:500 var(--t-md)/1 var(--font);letter-spacing:.12em;color:var(--ink-strong);text-transform:uppercase;-webkit-appearance:none;appearance:none}
.search .field::placeholder{letter-spacing:0;font-weight:500;text-transform:none;color:var(--ink-soft)}
.search .field::-webkit-search-cancel-button{display:none}
.seg-n{min-width:1.5em;height:1.5rem;padding:0 .375rem;display:inline-grid;place-items:center;border-radius:var(--r-pill);background:var(--sky-3);color:var(--ink-strong);font-size:var(--t-sm);font-weight:400;font-family:var(--font-display);font-variant-numeric:tabular-nums}
.seg-opt[aria-checked="true"] .seg-n{background:var(--me-tint);color:var(--me-ink)}

/* the list box: a FIXED height in every state (loading, empty, rows, down), so filtering never moves the code area */
.court-wrap{position:relative;flex:none;height:26rem;align-self:stretch;border-radius:var(--r-lg);background:rgba(255,255,255,.6);border:.125rem solid var(--line-faint);box-shadow:inset 0 .125rem .375rem rgba(120,170,200,.18);padding:.5rem 1rem .5rem .5rem}
.court-list,.court-list:empty{display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:flex-start;gap:.5rem;height:100%;max-height:none;padding:.375rem .375rem 2rem;overflow-y:auto}      /* 2rem at the end: the last row scrolls clear of the fade */
.court-wrap .room-bar{right:.3125rem;top:.75rem;bottom:.75rem}
.court-wrap::after{content:"";position:absolute;left:.5rem;right:1rem;bottom:.5rem;height:2rem;pointer-events:none;background:linear-gradient(rgba(255,255,255,0),rgba(255,255,255,.9));border-radius:0 0 var(--r-lg) var(--r-lg)}      /* a row cut off at the bottom fades: the list scrolls */
.court-list li{display:flex;align-items:center;gap:.5rem;flex:none}
.court-row{flex:1;min-width:0;display:grid;grid-template-columns:6rem minmax(0,1fr) auto auto;align-items:center;column-gap:.875rem;height:auto;min-height:max(3.5rem,44px);padding:.25rem .5rem .25rem 1.25rem;text-align:left;transition:transform var(--d-fast) var(--ease-out), box-shadow var(--d-med) var(--ease-soft)}      /* the hover halo eases on (lobby only: no rally under it) */
.court-row::after{display:none}
.court-row:hover,.court-row:focus-visible{transform:none;box-shadow:var(--glow)}        /* no scale: a scaled row in a scroll box clips its halo and nudges its neighbours */
.court-row:active{transform:scale(.985)}
.court-code{font-size:var(--t-lg);font-weight:400;font-family:var(--font-display);letter-spacing:.14em;color:var(--me-ink)}
.court-who,.court-meta{line-height:1.3}
.court-who{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink-strong);font-weight:400;font-family:var(--font-display)}
.court-meta{color:var(--ink);font-size:var(--t-sm);font-weight:400;font-family:var(--font-display);font-variant-numeric:tabular-nums;white-space:nowrap}
.court-go{display:inline-flex;align-items:center;gap:.375rem;height:2.375rem;padding:0 .875rem 0 1rem;border-radius:var(--r-pill);background:var(--me-tint);color:var(--me-ink);font-size:var(--t-sm);font-weight:400;font-family:var(--font-display);white-space:nowrap}
.court-go::after{content:"";width:.4375rem;height:.4375rem;border:solid currentColor;border-width:.1875rem .1875rem 0 0;rotate:45deg;margin-left:.125rem}
.court[data-kind="ask"] .court-go{background:var(--them-tint);color:#b23f0a}          /* asking is a different act. #b23f0a: 5.2:1 on the tint (--them-ink is 4.4) */
.court-row.is-full{cursor:pointer;border-color:var(--sky-4);background:linear-gradient(180deg,rgba(255,255,255,.95),rgba(234,243,248,.9));box-shadow:var(--sh-1);padding-right:.5rem}
.court-row.is-full:hover,.court-row.is-full:focus-visible{box-shadow:var(--glow)}
.court-row.is-full .court-code{color:var(--ink-strong)}
.court-row.is-full .court-go{background:var(--sky-2);color:var(--ink-strong)}
.court-row[aria-disabled="true"]{cursor:default}
.court-row[aria-disabled="true"]:hover{box-shadow:var(--sh-1)} .court-row[aria-disabled="true"] .court-go{background:none;color:var(--ink-soft)} .court-row[aria-disabled="true"] .court-go::after{display:none}
.badge-tour{display:inline-block;margin-right:.5rem;padding:.125rem .5rem;border-radius:var(--r-pill);background:linear-gradient(180deg,var(--gold-1),var(--gold-2));border:.125rem solid var(--gold-4);color:var(--ink-strong);font-size:var(--t-xs);font-weight:400;font-family:var(--font-display);letter-spacing:.04em;vertical-align:.08em}
.court-list .room-watch{flex:none;width:7.5rem;justify-content:center;height:max(3.5rem,44px);padding:0 1rem;gap:.375rem;font-size:var(--t-sm);border-color:var(--line-soft);color:var(--ink)}      /* the quieter second choice on a row */
.court-list:has(.room-watch) li:not(.is-skel):not(:has(.room-watch))::after{content:"";flex:none;width:7.5rem}      /* a row with no Watch keeps the slot: every Join sits in one column */
.court.is-skel{pointer-events:none}
.court-row.is-skel{display:block;position:relative;overflow:hidden;height:max(3.5rem,44px);border-radius:var(--r-pill);border:.15625rem solid transparent;background:var(--sky-2);box-shadow:none;cursor:default}
.court-row.is-skel::after{display:block;content:"";position:absolute;inset:0;width:auto;height:auto;margin:0;border:0;rotate:0deg;background:linear-gradient(90deg,transparent,rgba(255,255,255,.75),transparent);transform:translateX(-100%);animation:skel 1.2s linear infinite}
@keyframes skel{to{transform:translateX(100%)}}
#screen-lobby.is-down .court-row.is-skel{opacity:.4} #screen-lobby.is-down .court-row.is-skel::after{display:none}
/* the state line lives in the list box: over the skeletons or the empty box, centred; with rows it is only for screen readers */
.court-state{position:absolute;inset:0;margin:0;padding:var(--s-5);display:flex;flex-wrap:wrap;align-items:center;align-content:center;justify-content:center;gap:var(--s-3);text-align:center;color:var(--ink-strong);font-size:var(--t-md);font-weight:400;font-family:var(--font-display);pointer-events:none}
.court-state > span:first-child{flex-basis:100%}
.court-state .btn{pointer-events:auto;height:2.75rem;padding:0 1.25rem;font-size:var(--t-sm)}
.court-state[data-state="rows"],.court-state[data-state="loading"]{inset:auto;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%)}
.court-state[data-state="down"] > span{padding:.5rem 1rem;border-radius:var(--r-pill);background:rgba(255,255,255,.9);box-shadow:var(--sh-1);flex-basis:auto}

.code-boxes.is-sm{gap:.5rem} .code-boxes.is-sm .code-box{width:max(4.25rem,44px);height:max(5.5rem,52px);font-size:var(--t-2xl)}
.code-acts{display:grid;grid-template-columns:1fr 1fr;gap:var(--s-2);width:100%;margin:0}
.code-acts .btn{height:max(3.5rem,44px);padding:0 1rem;gap:.5rem;font-size:var(--t-md)}
.btn-tour svg{stroke:var(--gold-4)}
.btn-tour[aria-disabled="true"]{opacity:.55;cursor:not-allowed;box-shadow:var(--sh-1)}
.btn-tour[aria-disabled="true"]:active{transform:none;background:linear-gradient(180deg,#ffffff 0%,#f7fbfd 47%,#e3eef4 53%,#edf5f9 100%)} .btn-tour[aria-disabled="true"]:hover::after{opacity:0} .btn-tour[aria-disabled="true"]:focus-visible::after{opacity:.7}
.tour-note{display:flex;align-items:flex-start;gap:.5rem;margin:.125rem .25rem 0;text-align:left;font-size:var(--t-sm);color:var(--ink)}
.tour-note svg{flex:none;width:1.125rem;height:1.125rem;margin-top:.125rem;fill:none;stroke:var(--ink-soft);stroke-width:2.4;stroke-linecap:round}
.tour-note em{display:block;font-style:normal;font-weight:400;font-family:var(--font-display);color:var(--ink-strong)}

@media (max-width:700px){
  .panel.lobby-view.courts{grid-template-columns:1fr;gap:var(--s-4);padding:var(--s-5) var(--s-4)}
  .court-wrap{height:min(30rem,40dvh)}
  .court-row{grid-template-columns:5rem minmax(0,1fr) auto;row-gap:0;padding:.375rem .5rem .375rem 1rem}
  .court-who{grid-column:2;grid-row:1;align-self:end} .court-meta{grid-column:2;grid-row:2;align-self:start} .court-code{grid-row:1 / span 2} .court-go{grid-column:3;grid-row:1 / span 2}
  .court-meta:empty{display:none} .court-row:has(.court-meta:empty) .court-who{grid-row:1 / span 2;align-self:center}
  .tour-note{grid-column:1 / -1}
  #screen-lobby .panel-wide,#lobby-bot{width:100%}      /* narrow portrait: every wide panel fills the s-4 body, on the header's and the tiles' edges, not 92vw here and 94vw there */
}
@media (max-width:480px){
  .tiles,.tiles[data-n="4"],.tiles[data-n="5"],.tiles[data-n="6"]{grid-template-columns:1fr;width:100%}
  .tile,.tiles[data-n="5"] .tile,.tiles[data-n="5"] .tile.is-hero,.tiles[data-n="5"] .tile:not(.is-hero),.tiles[data-n="6"] .tile,.tiles[data-n="6"] .tile.is-hero,.tiles[data-n="6"] .tile:not(.is-hero){grid-column:auto;flex-direction:row;justify-content:flex-start;height:7.5rem;padding:0 var(--s-5);gap:var(--s-4);text-align:left} .tile svg,.tiles[data-n="5"] .tile svg,.tiles[data-n="6"] .tile svg,.tiles[data-n="6"] .tile:not(.is-hero) svg{width:4.5rem;height:4.5rem}
  .tiles:is([data-n="5"],[data-n="6"]) .tile-text{align-items:flex-start;text-align:left}      /* one column: Quick play first, every block a bar (NOTES 160) */
  .tiles[data-n="6"] #btn-friends{grid-column:auto} .tiles:is([data-n="5"],[data-n="6"]) .tile.is-play{font-size:var(--t-lg)}
  .tiles:is([data-n="5"],[data-n="6"]) .tile.is-hero svg,.tiles:is([data-n="5"],[data-n="6"]) .tile.is-play svg{width:4.5rem;height:4.5rem} .tiles:is([data-n="5"],[data-n="6"]) .tile.is-hero b{font-size:var(--t-xl)}
  .menu-glass .menu-body{padding-inline:var(--s-5)} .menu-glass .menu-foot{padding-inline:var(--s-5)} .lobby-online{right:var(--s-5)} .btn-back{left:var(--s-5);height:max(2.75rem,36px)} #screen-lobby .panel.lobby-view{width:100%}      /* phone gutter: head, body and foot share one s-5 inset, and every panel fills the body (NOTES 139) */
  #lobby-bot,#lobby-create,#lobby-share{padding:var(--s-5) var(--s-4)}      /* the phone panel inset, as courts and the rest */
  .bot-levels .btn small{white-space:normal;text-wrap:balance}      /* a two-up card is narrower than "Medium pace, some mistakes": it wraps here */
  .tiles .tile-sub,.tiles[data-n] .tile:not(.is-hero) .tile-sub{top:var(--s-3);right:var(--s-5)}      /* the chip lines up with the tile's side padding */
  .search{flex-basis:14.5rem}      /* a 375px phone: the s-5 gutter took 7px, and the Open/Full switch still shares the search's line */
  .court-wrap{height:min(29rem,40dvh)} .menu-glass .menu-foot:has(.foot-agree){padding-block:var(--s-2)}      /* the s-5 inset: the list gives up 10px, the hint and the agree footer their extra few, so the card clears the footer as before */
}

/* the player's card: bottom-left, outside #hud so it survives the settings card, the pause blur and the result card */
.ask-card{position:fixed;left:var(--edge);bottom:var(--edge);width:min(32rem, calc(100vw - 2 * var(--edge)));z-index:calc(var(--z-toast) - 1);display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:.5rem .75rem;padding:var(--s-3) var(--s-3) var(--s-3) var(--s-4);overflow:hidden;
  border-radius:var(--r-lg);border:2px solid var(--line-soft);background:linear-gradient(180deg,#fff,var(--sky-1));box-shadow:var(--sh-hud);
  opacity:0;transform:translateY(1rem);transition:opacity 200ms linear, transform 200ms linear}
.ask-card.is-on{opacity:1;transform:none;transition:opacity 320ms var(--ease-out), transform 420ms var(--ease-bounce)}      /* arrives with a small spring */
.ask-card[hidden],body:not([data-screen="hud"]) .ask-card{display:none}                 /* never over a menu screen: a request there just runs out */
body.has-toast .ask-card{bottom:calc(var(--edge) + 3.75rem)}
.ask-card::before{content:"";position:absolute;left:0;top:0;bottom:0;width:.25rem;background:var(--them)}      /* the keyline, drawn inside: a thick left border on a round box tapers into a crescent */
body[data-settings] .ask-card{left:calc(var(--edge) + min(23rem, 100vw - 2 * var(--edge)) + .5rem)}
body[data-friendscard] .ask-card{left:calc(var(--edge) + min(26rem, 100vw - 2 * var(--edge)) + .5rem)}      /* beside the friends card (26rem), never under it */
@media (min-aspect-ratio: 1/1){ body[data-overlay="match"] .ask-card{width:min(17rem, calc((100vw - min(50rem, 92vw)) / 2 - var(--edge) - .5rem))} body[data-overlay="match"] .ask-card .ask-btns{flex:1 1 100%;grid-template-columns:1fr 1fr} body[data-overlay="match"] .ask-card .ask-btns .btn{padding:0 .5rem} }      /* the result card: nothing is being played, so it stacks narrow (question over the buttons) in the margin left of the centred panel */      /* the settings card is open: beside it, never on its Leave court button */
.ask-q{flex:1 1 9rem;min-width:0;margin:0;font-size:var(--t-md);font-weight:500;line-height:1.3;color:var(--ink)} .ask-q b{display:inline-block;max-width:6em;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;vertical-align:bottom;font-weight:400;font-family:var(--font-display);color:var(--ink-strong)}      /* a long name gives way, 'wants to play' never does */
.ask-q small{display:block;margin-top:.125rem;font-size:var(--t-sm);font-weight:500;color:var(--ink)}
.ask-card .ask-btns{flex:none;display:grid;grid-template-columns:auto auto;gap:.5rem;margin:0}
.ask-card .ask-btns .btn{min-width:0;padding:0 .75rem;gap:.5rem}
.ask-card .keycap{min-width:1.5rem;height:1.5rem}
.ask-yes{background:linear-gradient(180deg,var(--me-tint),#cfe4fb);border-color:var(--me-ink);color:var(--me-ink)} .ask-yes .keycap{border-color:var(--me-ink)}      /* the primary: blue, Decline stays the plain pill */
.ask-card .ask-bar{flex-basis:100%;width:100%;height:.375rem}
/* a friend's invite (docs/SOCIAL.md 6, web/social.js): the ask card's own look, on EVERY screen (menu, court, watching), stacked top-right under the header's buttons (clear of Play and the scoreboard), newest at the bottom.
   Never focused, no keys (Y / N belong to the ask card) */
.inv-stack{position:fixed;right:var(--edge);top:calc(var(--edge) + 6.5rem);z-index:calc(var(--z-toast) - 1);display:flex;flex-direction:column;gap:.5rem;width:min(26rem, calc(100vw - 2 * var(--edge)));pointer-events:none}
.inv-stack:empty{display:none}
.inv-stack .inv-card{position:relative;left:auto;bottom:auto;top:auto;width:auto;display:flex;pointer-events:auto}
body:not([data-screen="hud"]) .inv-stack .inv-card{display:flex}
.inv-stack .inv-card{border:3px solid var(--cp-ink);border-radius:.5rem;background:#fff;box-shadow:var(--cp-drop);margin:0 var(--cp-drop-x) var(--cp-drop-y) 0}      /* a pop-up: upright, the one ink outline and hard drop (NOTES 446) */
.inv-card::before{display:none}
.inv-card .inv-sub:empty{display:none}
.inv-card.is-opening{opacity:.8}
@media (max-aspect-ratio: 1/1){ .ask-card{top:calc(var(--edge) + 5.25rem);bottom:auto} body.has-toast .ask-card{bottom:auto} }      /* portrait: up under the Court pill, over sky and trees, clear of the near court where the paddle swings */
@media (max-width:700px){ body[data-settings] .ask-card,body[data-friendscard] .ask-card{left:auto;right:var(--edge);top:auto;bottom:calc(var(--edge) + 3.75rem)} }      /* no room beside either card: bottom-right, on screen with its buttons */
@media (min-aspect-ratio: 1/1) and (max-height:820px){ body:not([data-settings]):not([data-friendscard]):not([data-overlay]) .ask-card{top:calc(var(--edge) + 5.25rem);bottom:auto;width:min(22rem, calc(50vw - 21.5rem - var(--edge)))} body:not([data-settings]):not([data-friendscard]):not([data-overlay]) .ask-card .ask-btns{flex:1 1 100%;grid-template-columns:1fr 1fr} }      /* a short landscape window (1280 x 720): the near baseline sits so low the bottom-left corner covers it, so the card goes up under the Court pill over the trees (as in portrait, clear of a corner that wraps to two rows), stacked narrow, and stops short of the scoreboard (the corner's own limit) */
@media (max-width:480px) and (max-aspect-ratio: 1/1){ .ask-card{top:auto;bottom:calc(var(--edge) + 5rem)} }      /* a phone-width window: the top is the corner, the scoreboard's own row and the insets, so it sits just above the two-line key strip instead */      /* narrow, settings open: bottom-right, under the panel's end and clear of the camera and AirPod boxes (the game is paused) */
/* the spectator's button: on the bottom row just left of the emotes (above them it sat on the near baseline and corner), one fixed width so its countdown never moves anything */
.ask-play{display:none;position:fixed;right:calc(var(--edge) + 20.5625rem + .5rem);bottom:calc(var(--edge) + .3125rem);z-index:var(--z-hud);width:16rem;justify-content:flex-start;gap:.625rem;padding:0 .75rem 0 1.125rem;overflow:hidden;font-size:var(--t-md);isolation:isolate}
body[data-role="spectator"] .ask-play:not([hidden]){display:inline-flex}
body[data-overlay] .ask-play{display:none!important}
#ask-label{flex:1;min-width:0;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
.ask-play .keycap{min-width:1.625rem;height:1.625rem}
.ask-play[aria-disabled="true"]{cursor:default;color:var(--ink);border-color:var(--line-soft);box-shadow:var(--sh-1)} .ask-play[aria-disabled="true"]:active{transform:none} .ask-play[aria-disabled="true"] .keycap{display:none}      /* waiting: nothing to press, and it looks it (the width is fixed, so the label just gets the room) */
.ask-play[data-s="no"]{background:var(--them-tint);border-color:var(--them)}
.ask-ring{position:absolute;left:0;right:0;bottom:0;height:.25rem;background:var(--line);transform-origin:0 50%;transform:scaleX(0);pointer-events:none}
.ask-play[data-s="sent"] .ask-ring{transform:scaleX(1)} .ask-play[data-s="sent"] .ask-ring.go{animation:ask-drain 10s linear forwards}
@keyframes ask-drain{from{transform:scaleX(1)} to{transform:scaleX(0)}}
@media (min-width:701px){ body[data-role="spectator"]:has(#btn-ask:not([hidden])) .views{max-width:calc(100vw - 2 * var(--edge) - 37.625rem)} }      /* 20.5625rem: the emote bar's width here. A toast steps up above them both (NOTES 243). The chip row never runs under the button */
@media (max-width:700px){ .ask-play{right:calc(var(--edge) + 19.3125rem + .375rem);bottom:calc(var(--edge) + 5.25rem - .5rem);width:min(16rem, calc(100vw - 2 * var(--edge) - 19.6875rem))} }      /* the emotes sit above the view chips here (19.3125rem wide): the button sits beside them on that row, never on the near baseline. Under 390 px it gives up width rather than run off the left edge */
@media (prefers-reduced-motion: reduce){ .ask-card,.ask-card.is-on,.ask-card::before{transition:none} .ask-play[data-s="sent"] .ask-ring.go{animation:none} .court-row.is-skel::after{animation:none;display:none} }
/* ---------- Courts, Create, Share, Play a bot, set-up: motion (ui.js adds the lob-* one-shots; its animationend listener takes them off again) ---------- */
.court.lob-in{animation:lob-row-in 380ms var(--ease-out) both;animation-delay:calc(var(--i,0) * 45ms)}      /* a court that just opened rises in; a new tab or the first list after the skeletons staggers (ui.js drawCourts) */
.court-meta.lob-pop{transform-origin:0 50%;animation:num-pop 450ms var(--ease-bounce)}      /* its score or watcher count moved */
.seg-n.lob-pop{animation:num-pop 450ms var(--ease-bounce)}      /* Open 3 -> Open 4 hops (the pop sits on the count, so the option's press and the thumb are untouched) */
.lobby-online.lob-pop{animation:hm-pop var(--d-med) var(--ease-bounce) backwards, num-pop 450ms var(--ease-bounce)}      /* 'N online' hops. hm-pop stays in the list: dropping it would replay the entrance when the class comes off */
.court-go{transition:scale var(--d-med) var(--ease-bounce)} .court-go::after{transition:translate var(--d-med) var(--ease-bounce)}      /* translate, not transform: the chevron is drawn with rotate */
@media (hover:hover){ #screen-lobby:not(.needs-name):not(.is-down) .court-row:not([aria-disabled="true"]):hover .court-go{scale:1.07} #screen-lobby:not(.needs-name):not(.is-down) .court-row:not([aria-disabled="true"]):hover .court-go::after{translate:.25rem 0} }      /* the row says 'go': its pill swells and the arrow leans in */
.court-row:not([aria-disabled="true"]):focus-visible .court-go{scale:1.07} .court-row:not([aria-disabled="true"]):focus-visible .court-go::after{translate:.25rem 0}
.room-bar{transition:opacity var(--d-med) var(--ease-soft)} @starting-style{.room-bar{opacity:0}} .room-bar i{transition:background-color var(--d-fast) linear} @media (hover:hover){ .room-bar:hover i{background:var(--line-deep)} }      /* the track fades in when the list overflows; the thumb darkens under the pointer (its top and height never transition: that would lag the drag) */
.search svg{transition:scale var(--d-med) var(--ease-bounce), rotate var(--d-med) var(--ease-bounce), stroke var(--d-fast) linear} .search:focus-within svg{scale:1.14;rotate:-12deg;stroke:var(--line-deep)}      /* the glass tips up to look (scale/rotate: translate centres it) */
#screen-lobby .lobby-view{transition:opacity var(--d-fast) linear, filter var(--d-med) var(--ease-soft)}      /* back from busy fades too (the 250 ms delay lives only on the way in); the 'Watch instead?' desaturate eases */
/* code boxes, Join / Watch */
input.code-box{transition:border-color var(--d-fast) var(--ease-soft), box-shadow var(--d-med) var(--ease-out)}      /* the focus ring and the red is-bad border ease in */
input.code-box.lob-fill{animation:lob-fill 300ms var(--ease-bounce) both;animation-delay:calc(var(--i,0) * 40ms)}      /* a letter lands with a squash-pop; a pasted code deals in box by box */
input.code-box.lob-clear{animation:lob-clear 220ms var(--ease-out)}
.code-acts .btn:disabled{scale:.94}      /* the 4th letter wakes Join / Watch: .btn's own scale + opacity transitions fade them up and spring them to size */
.code-err:not(:empty){animation:lob-err-in 320ms var(--ease-bounce)}      /* 'Court not found' drops in as the boxes shake */
@media (hover:hover){ #screen-lobby:not(.needs-name):not(.is-down) #btn-create:hover svg{rotate:90deg;scale:1.18} #screen-lobby:not(.needs-name):not(.is-down) :is(#btn-watch-code:not(:disabled),.room-watch):hover svg{animation:lob-blink 420ms var(--ease-soft)} }      /* the plus spins a quarter turn; the eye blinks */
#btn-create:focus-visible svg{rotate:90deg;scale:1.18} :is(#btn-watch-code,.room-watch):focus-visible svg{animation:lob-blink-k 420ms var(--ease-soft)}
.tour-note.lob-nope{animation:nudge 420ms var(--ease-soft)} .tour-note.lob-nope em{transform-origin:0 50%;animation:num-pop 400ms var(--ease-bounce)}      /* pressing the coming-soon button: the note shakes its head, 'coming soon' hops */
/* Create court, Your court */
.t-title.lob-swap,.t-note.lob-swap,.cal-msg.lob-swap,.court-state.lob-swap{animation:lob-swap 300ms var(--ease-out)}      /* new words slide up into place */
#lobby-share .code-box{animation:lob-deal 520ms var(--ease-bounce) both} #lobby-share .code-box:nth-child(2){animation-delay:70ms} #lobby-share .code-box:nth-child(3){animation-delay:140ms} #lobby-share .code-box:nth-child(4){animation-delay:210ms}      /* your new court's code is dealt out like cards */
#copy-label.lob-pop{animation:num-pop 450ms var(--ease-bounce)}      /* 'Copied' hops in */
.copy-opt{opacity:0;transform:translateY(-.25rem);transition:opacity var(--d-fast) linear, transform var(--d-fast) var(--ease-soft)} .copy-opt:nth-child(2){--d:50ms}
.copy-menu:hover .copy-opt,.copy-menu.is-open .copy-opt,.copy-menu:has(:focus-visible) .copy-opt{opacity:1;transform:none;transition:opacity 200ms linear calc(40ms + var(--d,0ms)), transform 320ms var(--ease-bounce) calc(40ms + var(--d,0ms))}      /* the two choices drop in one after the other; the delay lives only on the way in (also the HUD court pill: transform + opacity only) */
.room-menu .copy-drop{transform-origin:0 0}      /* the court pill's drop hangs from its left */
.copy-ic{transition:transform var(--d-med) var(--ease-bounce);transform-origin:50% 85%} .copy-opt[data-copy="watch"] .copy-ic{transform-origin:50% 50%}
@media (hover:hover){ .copy-opt[data-copy="play"]:hover .copy-ic{transform:rotate(-16deg) scale(1.12)} .copy-opt[data-copy="watch"]:hover .copy-ic{animation:lob-blink 420ms var(--ease-soft)} }      /* the paddle swings, the eye blinks */
.copy-opt[data-copy="play"]:focus-visible .copy-ic{transform:rotate(-16deg) scale(1.12)} .copy-opt[data-copy="watch"]:focus-visible .copy-ic{animation:lob-blink-k 420ms var(--ease-soft)}
/* Play a bot: each level moves like it plays. On the card's words, never the .btn: its press, hover scale and breathing stay its own */
.bot-levels .btn > b{display:block}
@media (hover:hover){ #screen-lobby:not(.needs-name):not(.is-down) #btn-bot-0:hover > b{animation:lob-sway 720ms var(--ease-soft)} #screen-lobby:not(.needs-name):not(.is-down) #btn-bot-1:hover > b{animation:lob-hop 480ms var(--ease-bounce)} #screen-lobby:not(.needs-name):not(.is-down) #btn-bot-3:hover > b{animation:lob-smash 560ms var(--ease-bounce)} #screen-lobby:not(.needs-name):not(.is-down) #btn-bot-2:hover > b{animation:lob-zip 380ms var(--ease-out)} }      /* Rookie ambles, Club hops, Tour winds up and smashes, Pro darts */
#btn-bot-0:focus-visible > b{animation:lob-sway-k 720ms var(--ease-soft)} #btn-bot-1:focus-visible > b{animation:lob-hop-k 480ms var(--ease-bounce)} #btn-bot-3:focus-visible > b{animation:lob-smash-k 560ms var(--ease-bounce)} #btn-bot-2:focus-visible > b{animation:lob-zip-k 380ms var(--ease-out)}      /* the keyboard twins: same moves under a -k name, so a focused card still plays again when the mouse comes over it (an unchanged name never restarts) */
.bot-levels .btn > *{transition:opacity 280ms var(--ease-soft), translate 420ms var(--ease-bounce)} @starting-style{.bot-levels .btn > *{opacity:0;translate:0 .625rem}} .bot-levels .btn:nth-child(2) > *{transition-delay:50ms} .bot-levels .btn:nth-child(3) > *{transition-delay:100ms} .bot-levels .btn:nth-child(4) > *{transition-delay:150ms}      /* each card's words rise in, left to right (translate: the hover plays on transform, so they compose) */
/* 'Court is full. Watch instead?' */
#screen-lobby.is-active .ask.lob-out{animation:lob-out 200ms var(--ease-soft) both;pointer-events:none}      /* it shrinks away (ui.js askWatch). Id-level: .screen.is-active .panel's panel-in would win otherwise */
/* connect: the status rows, the QR, Phone | AirPod */
.status-row{transition:border-color var(--d-med) var(--ease-soft)}
.status-row.is-ok > .light{animation:lob-light-ok 520ms var(--ease-bounce)} .status-row.is-ok .status-state{animation:num-pop 450ms var(--ease-bounce)}      /* Ready: the lamp flares and the word hops (.status-row only: the settings card's chips sit over a rally) */
.status-row.is-bad{animation:nudge 420ms var(--ease-soft) 1}      /* Problem: the row shakes once */
.pad-qr > svg{animation:lob-qr-in 480ms var(--ease-bounce) both}      /* the code arrives with a little spring */
.pad-pair{transition:opacity var(--d-med) var(--ease-soft), translate var(--d-med) var(--ease-out)} @starting-style{.pad-pair{opacity:0;translate:0 .5rem}}      /* Phone <-> AirPod: the new block rises in instead of popping */
.seg-paddle svg{transition:rotate var(--d-med) var(--ease-bounce), scale var(--d-med) var(--ease-bounce)}
.seg-paddle .seg-opt[aria-checked="true"] svg{animation:lob-hop 480ms var(--ease-bounce)}      /* the picked paddle hops as the thumb lands */
@media (hover:hover){ .seg-paddle .seg-opt[aria-checked="false"]:hover svg{rotate:-12deg;scale:1.12} }
/* calibrate */
.steps li.is-done > i{animation:num-pop 450ms var(--ease-bounce)}      /* a step done: its number hops as it turns green */
.cal-count b.lob-pop{animation:num-pop 450ms var(--ease-bounce)}      /* each second ticks with a hop */
#art-screen{transition:opacity var(--d-med) var(--ease-soft)} #art-hold,#art-tilt{animation:lob-fade var(--d-med) var(--ease-soft)}      /* the screen dims softly; each pose fades in as it shows (a keyframe: @starting-style does not reach an SVG <g>) */
/* the ask card (over a rally: transform and opacity only) */
.ask-card::before{transform:scaleY(0);transform-origin:50% 100%;transition:transform 420ms var(--ease-bounce) 120ms} .ask-card.is-on::before{transform:none}      /* the keyline grows up the edge after the card lands */
.ask-q b.lob-pop{animation:num-pop 450ms var(--ease-bounce) 150ms both}      /* the asker's name hops */
.ask-card.is-late .ask-bar{animation:light-blink 700ms var(--ease-soft) infinite}      /* the last 3 s: the bar pulses (opacity) */
@media (prefers-reduced-motion: reduce){ .copy-menu .copy-opt,.bot-levels .btn > *{transition-delay:0s!important} }      /* the global block clamps durations, not transition delays */
@keyframes lob-row-in{from{opacity:0;transform:translateY(.625rem) scale(.98)}}
@keyframes lob-fill{0%{transform:scale(.86)}55%{transform:scale(1.08)}100%{transform:none}}
@keyframes lob-clear{0%{transform:scale(1)}40%{transform:scale(.92)}100%{transform:none}}
@keyframes lob-swap{from{opacity:.2;transform:translateY(.375rem)}}      /* from .2, not 0: a new status line ('No open courts…') is readable from its first frame */
@keyframes lob-err-in{from{opacity:0;transform:translateY(-.25rem) scale(.96)}}
@keyframes lob-deal{0%{opacity:0;transform:translateY(-.75rem) rotate(-8deg) scale(.7)}100%{opacity:1;transform:none}}
@keyframes lob-blink{0%,100%{transform:scaleY(1)}45%{transform:scaleY(.12)}} @keyframes lob-blink-k{0%,100%{transform:scaleY(1)}45%{transform:scaleY(.12)}}
@keyframes lob-hop{0%,100%{transform:none}40%{transform:translateY(-.375rem) rotate(-4deg)}70%{transform:translateY(.0625rem)}} @keyframes lob-hop-k{0%,100%{transform:none}40%{transform:translateY(-.375rem) rotate(-4deg)}70%{transform:translateY(.0625rem)}}
@keyframes lob-sway{0%,100%{transform:none}30%{transform:rotate(-5deg)}65%{transform:rotate(4deg)}} @keyframes lob-sway-k{0%,100%{transform:none}30%{transform:rotate(-5deg)}65%{transform:rotate(4deg)}}
@keyframes lob-smash{0%,100%{transform:none}28%{transform:translateY(.1875rem) rotate(7deg) scale(.94)}52%{transform:translateY(-.5rem) rotate(-9deg) scale(1.06)}72%{transform:translateY(.0625rem) rotate(2deg)}} @keyframes lob-smash-k{0%,100%{transform:none}28%{transform:translateY(.1875rem) rotate(7deg) scale(.94)}52%{transform:translateY(-.5rem) rotate(-9deg) scale(1.06)}72%{transform:translateY(.0625rem) rotate(2deg)}}      /* Tour: a crouch and coil back, then up and through the ball, a small landing */
@keyframes lob-zip{0%{transform:none}35%{transform:translateX(.5rem) skewX(-12deg)}70%{transform:translateX(-.125rem)}100%{transform:none}} @keyframes lob-zip-k{0%{transform:none}35%{transform:translateX(.5rem) skewX(-12deg)}70%{transform:translateX(-.125rem)}100%{transform:none}}
@keyframes lob-light-ok{0%{transform:scale(1)}40%{transform:scale(1.6)}100%{transform:scale(1)}}
@keyframes lob-qr-in{from{opacity:0;transform:scale(.88) rotate(-2deg)}}
@keyframes lob-fade{from{opacity:0}}
@keyframes lob-out{to{opacity:0;transform:translateY(.5rem) scale(.97)}}
/* ---------- Settings card, HUD and overlays: motion. Over a live rally only transform and opacity move, once per event; nothing on per-frame numbers (ping, stats).
   ui.js adds the ov-* one-shots; its animationend listener takes them off again, so nothing replays when a hidden card or the HUD shows again ---------- */
/* the settings card: grows out of the hamburger, and on close shrinks back into it (display waits out the fade: allow-discrete) */
.settings{transform-origin:1.375rem -.75rem;transition:display 180ms allow-discrete}
.settings[hidden]{animation:ov-set-out 180ms var(--ease-soft) both;pointer-events:none}      /* a keyframe, not a transition: Chrome starts no opacity transition while panel-in holds it. pointer-events: a click in the fade reaches the court */
.settings > .set-foot{transition:opacity 260ms var(--ease-soft), translate 360ms var(--ease-out)} @starting-style{ .settings > .set-foot{opacity:0;translate:0 .5rem} }      /* the groups rise in one after another as it opens */
.settings > :nth-child(3){transition-delay:25ms} .settings > :nth-child(4){transition-delay:50ms} .settings > :nth-child(5){transition-delay:75ms} .settings > :nth-child(6){transition-delay:100ms} .settings > :nth-child(7){transition-delay:125ms}
#set-bot,#set-paddle,#set-sink,#sink-hint,#btn-find-sinks,#move-note,#set-note{transition:opacity var(--d-med) var(--ease-soft), translate var(--d-med) var(--ease-out)} @starting-style{ #set-bot,#set-paddle,#set-sink,#sink-hint,#btn-find-sinks,#move-note,#set-note{opacity:.2;translate:0 -.25rem} }      /* a row that turns up with the card open (Difficulty when Matt sits down) fades in rather than popping. From .2: readable from its first frame */
@starting-style{ #btn-leave-room{opacity:.2} } #btn-leave-room.ov-nudge{animation:nudge 420ms var(--ease-soft)}      /* .btn's own opacity transition fades it in; 'Leave court' -> 'Forfeit' shakes once */
.settings h2{transform-origin:0 60%} .settings h2.ov-pop{animation:num-pop 450ms var(--ease-bounce)}      /* Settings <-> Paused hops, pivoting on its first letter */
.set-status li.ov-pop{animation:num-pop 450ms var(--ease-bounce)}      /* a status that changes with the card open bounces once */
.stepper b.ov-up{animation:ov-tick-up 360ms var(--ease-bounce)} .stepper b.ov-down{animation:ov-tick-down 360ms var(--ease-bounce)}      /* the new number rolls in from the side it came from */
.stepper .btn-icon svg{transition:rotate var(--d-med) var(--ease-bounce), scale var(--d-fast) var(--ease-bounce)}
@media (hover:hover){ #btn-sens-more:not(:disabled):hover svg{rotate:90deg} #btn-sens-less:not(:disabled):hover svg{scale:1.25 1} }      /* + spins a quarter turn, - stretches (on the svg: the button's press and breathing stay its own) */
#btn-recenter.ov-spin svg{animation:ov-recentre 560ms var(--ease-bounce)}      /* Recentre: the crosshair winds round as the camera recentres */
@media (hover:hover){ #btn-recenter:hover svg{rotate:90deg} #btn-find-sinks:hover svg{scale:1.15} }
button.set-row > span{transition:translate var(--d-fast) var(--ease-bounce)} button.set-row:active > span{translate:.1875rem 0}      /* the label gives a little under the finger */
/* the hamburger: its bars do a half spin as the card opens and spin back as it closes */
#btn-menu svg{transition:rotate 420ms var(--ease-bounce), scale var(--d-fast) var(--ease-bounce)} #btn-menu[aria-expanded="true"] svg{rotate:180deg}
@media (hover:hover){ #btn-menu:hover svg{scale:1.1 .9} }      /* a little squash under the pointer */
/* HUD pills (court code, ping, watchers, Paused): pop in when shown. 'backwards': nothing is pinned once it ends, so the room pill's own scale works */
.corner .hud-pill{animation:ov-pill-in 380ms var(--ease-bounce) backwards} .corner .hud-pill.ov-pop{animation:ov-pill-in 380ms var(--ease-bounce) backwards, num-pop 450ms var(--ease-bounce)}      /* the watcher count hops (ov-pill-in stays in the list, or it would replay) */
.room-pill{transition:scale var(--d-fast) var(--ease-bounce)} .room-pill:active{scale:.94} @media (hover:hover){ .room-pill:hover{scale:1.05} }
/* the score: the tab that scored gets a sweep of its colour behind the digits, outward from the rally box. The serve ball: see .serve-ind */
.score-tab > *{position:relative}      /* over the sweep */
.score-tab::before{content:"";position:absolute;top:0;bottom:0;left:0;width:45%;background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--me) 30%,transparent),transparent);transform:translateX(-120%) skewX(var(--cp-skew));pointer-events:none}
.score-tab.is-them::before{background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--them) 30%,transparent),transparent)}
.score-tab.is-me.ov-scored::before{animation:ov-shine-l 700ms var(--ease-soft)} .score-tab.is-them.ov-scored::before{animation:ov-shine-r 700ms var(--ease-soft)}
/* the HUD fades under an overlay card (and the notes under the settings card) with the veil, instead of blinking out */
.scoreboard,.corner,.banner-tag,.callout-layer,.countdown,#split-line,.notices,.emote-layer{transition:opacity var(--d-med) var(--ease-soft)}
.countdown > span{animation:panel-in var(--d-med) var(--ease-out) both}      /* 'Get ready' rises in with the first number */
#bot-level.ov-pop{animation:num-pop 450ms var(--ease-bounce)}      /* Difficulty: Club -> Tour hops */
.keyhints .keycap.ov-press,.views .keycap.ov-press{animation:ov-key-press 240ms var(--ease-out)}      /* the key you pressed dips on screen too */
/* toast: new words in one that is already up bump it, not a silent swap (scale: its transform does the centring) */
.toast.ov-bump{animation:ov-bump 360ms var(--ease-bounce)}
.bhold{gap:.625rem;padding:0 1.25rem 0 .75rem}      /* B held against Matt: a toast-shaped pill whose bar fills while the key is down (NOTES 230) */
.bhold-bar{width:8rem;height:.5rem;margin-left:.25rem;border-radius:var(--r-pill);background:var(--sky-3);overflow:hidden}
.bhold-bar i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--line-soft),var(--line));transform-origin:0 50%;transform:scaleX(0)}
.bhold.is-filling .bhold-bar i{transform:scaleX(1);transition:transform var(--hold,2000ms) linear}
.bhold.is-done .bhold-bar i{transform:scaleX(1);transition:none;background:var(--line)}
body.has-bhold #toast{opacity:0}      /* the hold speaks over whatever toast was up */
@media (prefers-reduced-motion: reduce){ .bhold.is-filling .bhold-bar i{transition-duration:var(--hold,2000ms)!important} }      /* progress is information, not decoration */
/* seat hold: springs up over the frozen court, shrinks away when they are back; the seconds hop */
.hold-card{transition:opacity 200ms var(--ease-soft), scale 200ms var(--ease-soft), display 200ms allow-discrete}
.hold-card:not([hidden]){transition:opacity 240ms var(--ease-soft), scale 420ms var(--ease-bounce), display 0s allow-discrete}
.hold-card[hidden]{opacity:0;scale:.9} @starting-style{ .hold-card{opacity:.2;scale:.75} }      /* scale only: translate centres it */
.hold-card b.ov-pop{animation:num-pop 450ms var(--ease-bounce)}
/* spectators: the view chips get the same sliding plate as the .seg pickers (ui.js measures the pressed chip into --tx/--tw) */
.views::before{content:"";position:absolute;left:0;top:0;width:var(--tw,0);height:var(--th,0);transform:translate(var(--tx,0),var(--ty,0));border-radius:var(--r-pill);background:rgba(255,255,255,.94);box-shadow:inset 0 0 0 .125rem #fff, var(--sh-hud);opacity:0;pointer-events:none;
  transition:transform 420ms var(--ease-bounce), width 420ms var(--ease-bounce), opacity var(--d-fast) linear}      /* width: the .seg thumb's one exception, on a lone pseudo-element, per click */
.views.has-thumb::before{opacity:1} .views.thumb-still::before{transition:none}
.view-chip{position:relative;z-index:1;transition:scale var(--d-fast) var(--ease-bounce)} .view-chip:active{scale:.94}
.views.has-thumb .view-chip[aria-pressed="true"]{background:none;border-color:transparent;box-shadow:none} .views.has-thumb .view-chip[aria-pressed="true"]:focus-visible{border-color:var(--line);box-shadow:var(--glow)}      /* the plate is drawn by .views::before now */
.emote-btn{animation:ov-pill-in 380ms var(--ease-bounce) backwards} .emote-btn:nth-child(2){animation-delay:30ms} .emote-btn:nth-child(3){animation-delay:60ms} .emote-btn:nth-child(4){animation-delay:90ms} .emote-btn:nth-child(5){animation-delay:120ms} .emote-btn:nth-child(6){animation-delay:150ms} .emote-btn:nth-child(7){animation-delay:180ms} .emote-btn:nth-child(8){animation-delay:210ms} .emote-btn:nth-child(9){animation-delay:240ms} .emote-btn:nth-child(10){animation-delay:270ms}      /* the row pops in left to right (scale: composes with the hover / press transform) */
.emote-btn img{transition:rotate var(--d-med) var(--ease-bounce)} @media (hover:hover){ .emote-btn:hover img{rotate:-12deg} } .emote-btn.ov-sent img{animation:ov-emote-sent 380ms var(--ease-bounce)}      /* the face tilts toward you; a sent one squashes and springs */
.notices .notice svg{animation:ov-blink 360ms var(--ease-soft) 520ms}      /* the eye blinks once as the note lands (scoped: .notice alone is also the server-down card) */
body[data-role="spectator"] .ask-play:not([hidden]){animation:ov-pill-in 380ms var(--ease-bounce) backwards} body[data-role="spectator"] .ask-play.ov-bump:not([hidden]){animation:ov-pill-in 380ms var(--ease-bounce) backwards, ov-bump 360ms var(--ease-bounce)}      /* Ask to play pops in; each change of state bumps it */
/* match result: the medal lands, then the title, then the two scores; the winner's token bounces */
.screen.is-active .result-card h2{animation:ov-title-pop 560ms var(--ease-bounce) 380ms both}
.screen.is-active .tally-num{animation:ov-title-pop 520ms var(--ease-bounce) 560ms both, ov-ink 1040ms linear}      /* pop, and the real glyphs stay clear until the counter over them lands */
.screen.is-active .tally-num.is-them{animation:ov-title-pop 520ms var(--ease-bounce) 640ms both, ov-ink 1040ms linear}
.screen.is-active .tally-num::before{animation:ov-count 440ms var(--ease-out) 600ms both}      /* both counters roll together, so the loser never looks ahead mid-count; only the pops are staggered */
.screen.is-active .tally-side.is-winner .chip{animation:ov-winner-bob 1600ms var(--ease-soft) 1100ms infinite}
/* the impact (win / watch / champion only; a loss gets the soft stamp and no flash or shake) */
#screen-match.is-active:is([data-beat="win"],[data-beat="watch"],[data-beat="champ"]) .result-card{animation:panel-in var(--d-slow) var(--ease-out) both}
#screen-match.is-stamp .result-card,#screen-match.is-stamp .result-card *,#screen-match.is-stamp .result-card *::before,#screen-match.is-stamp .result-card *::after,#screen-match.is-stamp .result-flash{animation-play-state:paused!important}      /* the card waits at its first frame (panel-in: unseen) until the stamp clears (ui.js drops is-stamp after STAMP_MS, NOTES 166), then plays its whole entrance */
/* rays open as the medal lands, then turn: slow for a loss, fast for the champion */
.screen.is-active .medal-rays{animation:ov-rays-in 420ms var(--ease-bounce) 520ms both, ov-spin 14s linear 940ms infinite}
[data-beat="lose"].is-active .medal-rays{animation:ov-rays-in 420ms var(--ease-bounce) 520ms both, ov-spin 28s linear 940ms infinite}
[data-beat="champ"].is-active .medal-rays{animation:ov-rays-in 420ms var(--ease-bounce) 520ms both, ov-spin 8s linear 940ms infinite}
/* the crown drops, then rides the winner's bob */
.screen.is-active .tally-side.is-winner .tally-crown{animation:crown-drop 460ms var(--ease-bounce) 900ms both, ov-winner-bob 1600ms var(--ease-soft) 1360ms infinite}
/* the stats pop last; the best one shines once */
.screen.is-active .stat{animation:ov-title-pop 360ms var(--ease-bounce) calc(1100ms + var(--i,0) * 80ms) both}
.screen.is-active .stat.is-best::after{animation:stat-shine 700ms var(--ease-soft) 1600ms 1}
#rematch-note.ov-note,#result-note.ov-note{animation:ov-note-in 360ms var(--ease-out)}      /* 'Sam wants a rematch' slides up into place; so does the rank-up's 'Gold I' */
.rematch-count:not([hidden]){animation:panel-in var(--d-med) var(--ease-out) both} #rematch-left.ov-pop{animation:num-pop 360ms var(--ease-bounce)}      /* the count rises in; each second hops */
.screen.is-active .notice-icon svg{animation:ov-float 2400ms var(--ease-soft) 600ms infinite}      /* server down / game full: the icon floats while it waits */
@media (prefers-reduced-motion: reduce){ .settings > *,.serve-ind.on{transition-delay:0s!important} .views::before{transition:none} }      /* the global block clamps durations, not transition delays */
@keyframes ov-tick-up{from{opacity:0;translate:0 .625rem;scale:.8}} @keyframes ov-tick-down{from{opacity:0;translate:0 -.625rem;scale:.8}}
@keyframes ov-recentre{0%{scale:1}35%{scale:.7}100%{scale:1;rotate:180deg}}
@keyframes ov-set-out{to{opacity:0;scale:.94;translate:0 -.375rem}}
@keyframes ov-pill-in{from{opacity:.2;scale:.5}}      /* .2: a pill is there from its first frame, it just grows */
@keyframes ov-shine-l{from{transform:translateX(250%) skewX(var(--cp-skew))} to{transform:translateX(-120%) skewX(var(--cp-skew))}} @keyframes ov-shine-r{from{transform:translateX(-120%) skewX(var(--cp-skew))} to{transform:translateX(250%) skewX(var(--cp-skew))}}
@keyframes ov-key-press{35%{translate:0 .125rem;scale:.9}}
@keyframes ov-bump{40%{scale:1.06}}
@keyframes ov-emote-sent{30%{scale:.7}70%{scale:1.25}}
@keyframes ov-blink{50%{scale:1 .15}}
@keyframes ov-title-pop{from{opacity:0;scale:.6}}
@keyframes ov-winner-bob{0%,100%{translate:0 0}50%{translate:0 -.375rem}}
@keyframes ov-rays-in{0%{scale:0}70%{scale:1.15}100%{scale:1}}
@keyframes ov-spin{to{rotate:360deg}}
@keyframes ov-ink{0%,100%{color:transparent}}
@keyframes ov-count{from{--n:0;opacity:1}99.9%{opacity:1}to{--n:var(--to);opacity:0}}
@keyframes crown-drop{0%{opacity:0;translate:0 -2.5rem;rotate:-35deg}60%{opacity:1;translate:0 .2rem;rotate:4deg}100%{opacity:1;translate:0 0;rotate:-10deg}}
@keyframes stat-shine{to{transform:translateX(350%) skewX(var(--cp-skew))}}
@keyframes ov-note-in{from{opacity:0;translate:0 .375rem}}
@keyframes ov-float{0%,100%{translate:0 0}50%{translate:0 -.25rem}}
@media (max-width:700px){      /* last, so it wins: the root is at its 10px floor here, and nothing on Courts or the ask card goes under 12 px */
  .courts .t-note,.court-meta,.court-go,.court-list .room-watch,.tour-note,.ask-q small,.seg-n{font-size:max(var(--t-sm),12px)} .court-who,.search .field,.ask-q{font-size:max(var(--t-md),13px)}      /* the root is at its 10px floor here: nothing under 12 px */
  .ask-card .keycap,.ask-play .keycap{font-size:max(.8125rem,11px);min-width:max(1.5rem,20px);height:max(1.5rem,20px)}
  .ask-card{width:min(36rem, calc(100vw - 2 * var(--edge)))}
  .ask-play{font-size:max(var(--t-md),13px)}
  .ask-card .ask-btns .btn{font-size:max(var(--t-md),13px)} .tile-sub{font-size:max(var(--t-sm),12px);height:max(1.75rem,22px)}      /* Accept / Decline, Open / Full, the tile's '8 open' and 'Court not found' (the one word after a failed Join, in the hint's place) */
  .code-acts .btn,.court-state,.court-state .btn{font-size:max(var(--t-md),13px)} .courts .caps{font-size:max(var(--t-xs),11px)} .bot-levels .btn small{font-size:max(var(--t-sm),12px)}      /* the bigger text still fits the question and both buttons on one row */
}

/* ==========================================================================================================
   TOURNAMENTS (docs/COURTS-TOURNEY.md 4.6): the host's code screen, the HUD pill and card in a warm-up, the VS card, the bracket,
   the tournament result and the champion, the ended notice. Gold is the tournament's colour (the Create tournament trophy, the Tour tag).
   ========================================================================================================== */
.btn-quiet{border-color:var(--sky-4);color:var(--ink);box-shadow:var(--sh-1)}
.btn-danger{color:var(--bad-deep);border-color:#f3a3a3;background:linear-gradient(180deg,#fff,#fff3f3)} .btn-danger:hover{background:#fff}
.tour-view .btn svg,.tour-card .btn svg,.tour-go svg,.br-watch svg{width:1.25rem;height:1.25rem;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.tour-go svg{fill:currentColor;stroke:none}
/* ---- the code screen: the code on the left, big enough to read across a room; who is in and Start on the right */
.panel.lobby-view.tour-view{width:min(70rem,94vw);display:grid;grid-template-columns:auto minmax(18rem,1fr);align-items:center;gap:var(--s-6);padding:var(--s-6);text-align:left}
#lobby-tour .btn:focus-visible,#tour-card .btn:focus-visible{outline:3px solid var(--me-ink);outline-offset:3px} #lobby-tour .btn:focus-visible:not(.is-focus)::after,#tour-card .btn:focus-visible:not(.is-focus)::after{opacity:0}      /* keyboard focus is an outline here, not the halo: the halo is the ONE button to press next (.is-focus), so first focus on Copy invite never makes two glows */
.tour-share{display:flex;flex-direction:column;align-items:center;gap:var(--s-3);min-width:0}
.tour-share h2{margin:0} .tour-join{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:center;gap:0 .5rem;text-align:center;font-size:var(--t-xl);font-weight:400;font-family:var(--font-display);line-height:1.15;color:var(--ink-strong)} .tour-join small{font-size:var(--t-lg);font-weight:400;font-family:var(--font-display);color:var(--ink)}
.code-boxes.is-huge{padding:0;border:0;background:none;cursor:pointer;border-radius:var(--r-lg);outline:0;font:inherit;gap:.75rem}
.code-boxes.is-huge .code-box{width:min(8rem,19vw);height:min(10rem,24vw);font-size:min(7rem,15vw);border-width:.25rem;box-shadow:inset 0 .1875rem .5rem rgba(120,170,200,.25), var(--sh-1)}
.code-boxes.is-huge:hover .code-box{border-color:var(--line-deep)} .code-boxes.is-huge:focus-visible{box-shadow:var(--glow)} .code-boxes.is-huge:active{transform:scale(.98)}
.tour-copied{margin:0;min-height:1.5em;font-size:var(--t-sm);font-weight:400;font-family:var(--font-display);color:var(--ink)}
.tour-link-row{width:100%;max-width:36rem;justify-content:space-between} .tour-link-row .btn{flex:none;height:max(3.25rem,44px);padding:0 1.25rem;gap:.5rem;font-size:var(--t-md)}
.tour-link-row .addr[hidden] + .btn{margin:0 auto}
.tour-rules{max-width:34rem;text-align:center;color:var(--ink)}
.tour-side{display:flex;flex-direction:column;gap:var(--s-3);min-width:0}
.tour-n{display:flex;align-items:center;gap:.75rem;margin:0;color:var(--ink-strong)}
.tour-n b{font-size:5rem;font-weight:400;font-family:var(--font-display);line-height:.9;color:var(--me-ink);font-variant-numeric:tabular-nums;display:inline-block;transform-origin:50% 70%}
.tour-n b.pop,.tp-sub b.pop{animation:num-pop 450ms var(--ease-bounce)}
.tour-n > span{display:flex;flex-direction:column;font-size:var(--t-xl);font-weight:400;font-family:var(--font-display);line-height:1.1} .tour-n small{font-size:var(--t-md);font-weight:400;font-family:var(--font-display);color:var(--ink)}
.tour-names{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem;list-style:none;margin:0;padding:0}
.tour-chip{display:flex;align-items:center;gap:.375rem;min-width:0;height:2.75rem;padding:0 .5rem 0 .875rem;border-radius:var(--r-pill);background:#fff;border:.125rem solid var(--line-soft);box-shadow:var(--sh-1);font-weight:400;font-family:var(--font-display);color:var(--ink-strong)}
.tour-chip-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tour-chip.is-you{border-color:var(--me);background:var(--me-tint)}
.tour-chip.is-off{opacity:.62;border-style:dashed}
.tour-chip.is-new{animation:chip-in 420ms var(--ease-bounce) both}
.tour-chip.is-more{justify-content:center;background:var(--sky-2);border-color:var(--sky-3);color:var(--ink)}
.tour-chip.is-empty{background:none;border:.125rem dashed var(--sky-4);box-shadow:none}
.tour-tag{flex:none;padding:.0625rem .4375rem;border-radius:var(--r-pill);background:var(--sky-2);color:var(--ink-strong);font-size:var(--t-xs);font-weight:400;font-family:var(--font-display);letter-spacing:.02em}
.tour-tag.is-you{background:#fff;color:var(--me-ink)} .tour-tag.is-off{background:#fff6e0;color:var(--warn-deep)}
.tour-why{margin:0;font-size:var(--t-md);font-weight:400;font-family:var(--font-display);color:var(--ink-strong)} .tour-why.is-ready{color:#0f6e36}      /* --good-deep is 4.4:1 on the panel's lower half */
.tour-wait{display:flex;align-items:center;gap:.25rem;margin:0;font-size:var(--t-lg);font-weight:400;font-family:var(--font-display);color:var(--ink-strong)}
.tour-full{margin:0;padding:.5rem .875rem;border-radius:var(--r-md);background:#fff6e0;border:.09375rem solid var(--warn);color:#8a5200;font-size:var(--t-sm);font-weight:400;font-family:var(--font-display)}
.tour-acts{display:flex;flex-direction:column;gap:var(--s-2)} .tour-acts .btn{height:max(3.5rem,44px);min-width:0;padding:0 1rem;gap:.5rem;font-size:var(--t-md);white-space:nowrap}
.tour-acts .tour-start:not(:disabled){order:-1;height:max(4.25rem,44px);font-size:var(--t-lg)}      /* ready: Start is the one big thing; before that Warm up leads and Start waits under it, with its reason above */
.tour-start:not(:disabled){border-color:var(--gold-4);background:linear-gradient(180deg,#fffbe6 0%,#fff3c2 47%,#ffe48a 53%,#ffeaa3 100%)} .tour-start svg{stroke:var(--gold-4)} .tour-start:disabled svg{stroke:currentColor}
.tour-start.is-focus::after{box-shadow:0 0 0 .25rem rgba(242,168,29,.3), 0 0 1.5rem .25rem rgba(242,168,29,.55)}
.tour-leave{display:flex;justify-content:flex-end;min-height:max(2.75rem,44px)}      /* right, under the actions it is not one of */
.tour-leave .btn{padding:0 1.25rem}
.tour-confirm{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin:0;font-weight:400;font-family:var(--font-display);color:var(--ink-strong)} .tour-confirm > span{margin-right:.25rem}
.tour-view.is-guest .tour-rules{display:block}
/* ---- the HUD pill (in the corner, in place of the court pill) and the host's Start beside it */
body[data-tour] #room-menu{display:none!important}
.tour-pill{height:auto;min-height:max(2.75rem,44px);padding:.25rem .625rem .25rem .5rem;gap:.5rem;cursor:pointer;font-family:var(--font);border-color:#fff;text-align:left;white-space:normal}
.tour-pill:hover,.tour-pill:focus-visible,.tour-pill[aria-expanded="true"]{background:#fff;outline:0;box-shadow:var(--glow)}
.tour-pill .tour-ic{flex:none;width:1.5rem;height:1.5rem;padding:.1875rem;border-radius:50%;background:linear-gradient(180deg,var(--gold-1),var(--gold-2));stroke:var(--gold-4);stroke-width:2.2;box-shadow:0 0 0 .09375rem var(--gold-3)}
.tp-text{display:flex;flex-direction:column;gap:.125rem;line-height:1.15;min-width:0}
.tp-long,.tp-short{color:var(--ink-strong);font-weight:400;font-family:var(--font-display)} .tp-short{display:none}
.tp-sub{display:flex;align-items:center;gap:.375rem;color:var(--ink);font-weight:400;font-family:var(--font-display)} .tp-sub b{font-weight:400;font-family:var(--font-display);color:var(--me-ink);font-variant-numeric:tabular-nums;display:inline-block} .tp-sub b:empty{display:none}
.tp-sub .keycap{min-width:1.25rem;height:1.25rem;font-size:max(.6875rem,10px);padding:0 .3125rem}
body[data-tour="match"] .tour-pill{cursor:default} body[data-tour="match"] .tp-sub .keycap{display:none} body[data-tour="match"] .tp-sub:has(b:empty){display:none}
body[data-tourcard] #btn-tour-go{display:none}      /* the card has its own Start: never two */
.tour-go{height:max(2.75rem,44px);padding:0 1rem;gap:.375rem;font-size:var(--t-md);border-color:var(--gold-4);background:linear-gradient(180deg,#fffbe6 0%,#fff3c2 47%,#ffe48a 53%,#ffeaa3 100%);color:var(--ink-strong);box-shadow:var(--sh-hud), var(--inner-hi)}
.notice.is-tour svg{stroke:var(--gold-4)}
@media (max-width:900px){ .tp-long{display:none} .tp-short{display:inline} .tp-sub .keycap{display:none} .tour-pill{max-width:10rem;padding-right:.75rem} .tp-short{overflow:hidden;text-overflow:ellipsis;white-space:nowrap} }      /* the corner is a 10rem column here: the trophy, "Waiting" over the count (a match: the round) */
/* ---- the card (T): the settings card's look and place */
.tour-card{gap:.75rem}
.tc-code-row{display:flex;align-items:center;gap:.5rem}
.tc-code{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:.125rem;min-height:44px;padding:.375rem .875rem;border-radius:var(--r-md);border:.125rem solid var(--line-soft);background:#fff;cursor:pointer;font-family:var(--font);text-align:left;outline:0}
.tc-code:hover,.tc-code:focus-visible{border-color:var(--line);box-shadow:var(--glow)}
.tc-code b{font-size:var(--t-xl);font-weight:400;font-family:var(--font-display);letter-spacing:.16em;color:var(--me-ink);line-height:1} .tc-code small{font-size:var(--t-xs);font-weight:400;font-family:var(--font-display);color:var(--ink-soft)}
.tc-code-row .btn{flex:none;padding:0 .875rem;gap:.375rem}
.tc-n{margin:0 .25rem;font-weight:400;font-family:var(--font-display);color:var(--ink)} .tc-n b{font-size:var(--t-lg);font-weight:400;font-family:var(--font-display);color:var(--me-ink);font-variant-numeric:tabular-nums}
.tour-names.is-card{grid-template-columns:repeat(2,minmax(0,1fr));max-height:12rem;overflow-y:auto;padding:.125rem}
.tour-names.is-card .tour-chip{height:2.25rem;font-size:var(--t-sm)}
.tc-foot .tour-why{text-align:center;font-size:var(--t-sm)}
.tour-card .btn{min-height:max(2.75rem,44px)}      /* Start and Leave one height: the destructive one is never the smaller target */
#btn-tc-start{border-color:var(--gold-4);background:linear-gradient(180deg,#fffbe6 0%,#fff3c2 47%,#ffe48a 53%,#ffeaa3 100%)}
body[data-tourcard] .corner,body[data-friendscard] .corner{z-index:var(--z-screen)}      /* the pill (the tour card) or the hamburger (the friends card, from Settings) that opened it stays sharp above the blur: it is the way back */
body[data-tourcard][data-paused] .glass{opacity:1;visibility:visible;transition-delay:0s}
body[data-paused] .tour-card{background:linear-gradient(180deg,#f6fafc,#e7f1f6)}
/* ---- VS: the two sides slide in from each edge, VS pops (static under reduced motion: the global rule) */
.vs-card{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:var(--s-5);width:min(56rem,94vw);padding:var(--s-7) var(--s-6);border-radius:var(--r-xl);border:.1875rem solid var(--gold-3);
  background:linear-gradient(180deg,#fff 0%,#fffdf3 45%,#fbf1d2 100%);box-shadow:var(--sh-3), inset 0 0 0 .1875rem #fff;overflow:hidden}
.vs-round{margin:0;font-size:var(--t-md);color:#7a4a00}
.vs-row{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:var(--s-5);width:100%}
.vs-side{display:flex;flex-direction:column;align-items:center;gap:.5rem;min-width:0}
.vs-side b{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--t-2xl);font-weight:400;font-family:var(--font-display);line-height:1.1}
.vs-side.is-me b{color:var(--me-ink)} .vs-side.is-them b{color:#a33a08}      /* --them-ink is 4.3:1 on the gold card */
.vs-mark{position:relative;isolation:isolate;display:inline-block;font-size:6rem;font-weight:400;font-family:var(--font-display);line-height:1;letter-spacing:.02em;color:var(--gold-3);padding:.1em .15em}
.vs-mark::before,.vs-mark::after{content:attr(data-text);position:absolute;inset:0;padding:inherit}
.vs-mark::before{z-index:-1;color:#fff;filter:drop-shadow(0 .06em .04em rgba(120,80,0,.38))}
.vs-mark::after{z-index:1;color:transparent;background:linear-gradient(180deg,#ffe98a 0%,var(--gold-2) 47%,var(--gold-3) 53%,#ffc93d 100%);-webkit-background-clip:text;background-clip:text}
.vs-target{margin:0;font-size:var(--t-lg);font-weight:400;font-family:var(--font-display);color:var(--ink-strong)}
.vs-card.go .vs-side.is-me{animation:vs-in-l 500ms var(--ease-out) both} .vs-card.go .vs-side.is-them{animation:vs-in-r 500ms var(--ease-out) both} .vs-card.go .vs-mark{animation:count-pop 900ms linear 350ms both}
@keyframes vs-in-l{from{opacity:0;transform:translateX(-40vw)}to{opacity:1;transform:none}} @keyframes vs-in-r{from{opacity:0;transform:translateX(40vw)}to{opacity:1;transform:none}}
@keyframes chip-in{0%{opacity:0;transform:scale(.6)}100%{opacity:1;transform:none}}
/* ---- the bracket */
.panel.lobby-view.bracket-view{width:min(74rem,94vw);max-height:100%;display:flex;flex-direction:column;align-items:stretch;gap:var(--s-3);padding:var(--s-5) var(--s-6);text-align:left}
.br-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem 1.5rem;padding-inline:.375rem}
.br-you{margin:0;font-size:var(--t-lg);font-weight:400;font-family:var(--font-display);color:var(--ink-strong)} .br-you.is-out{color:var(--ink)}
.br-next{display:flex;align-items:center;gap:.75rem;margin:0;font-size:var(--t-md);font-weight:400;font-family:var(--font-display);color:var(--ink-strong);font-variant-numeric:tabular-nums} .br-next .br-bar{width:9rem}
.br-tabs{display:none;align-self:center;margin:0}
.bracket{flex:1 1 auto;min-height:0;overflow:auto;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(13rem,1fr);gap:var(--s-5);padding:.25rem .375rem .5rem;outline:0;overscroll-behavior:contain;scroll-padding-top:2.75rem}      /* scroll-padding: the sticky round header's height, so a card scrolled to never lands under it */
.br-col{display:flex;flex-direction:column;gap:.5rem;min-width:0}
.br-round{position:sticky;top:-.25rem;z-index:2;display:flex;align-items:baseline;justify-content:space-between;gap:.5rem;margin:0;padding:.375rem .75rem;background:#f1f7fa;border-radius:var(--r-sm);font-size:var(--t-sm);font-weight:400;font-family:var(--font-display);letter-spacing:.08em;text-transform:uppercase;color:var(--ink-strong)}
.br-round small{font-size:var(--t-xs);font-weight:400;font-family:var(--font-display);letter-spacing:0;text-transform:none;color:var(--ink)}
.br-col.is-current .br-round{color:var(--me-ink)}
.br-list{flex:1;display:grid;grid-auto-rows:1fr;align-items:center;gap:.625rem;list-style:none;margin:0;padding:0}      /* equal rows, each as tall as the column's tallest card (a live one, with its Watch row): the cards' middles line up with the next round's, and the connector lines meet */
.br-match{position:relative;border-radius:var(--r-md);background:#fff;border:.125rem solid var(--sky-3);box-shadow:var(--sh-1)}
.br-col:not(:last-child) .br-match::after{content:"";position:absolute;left:100%;top:50%;width:calc(var(--s-5) / 2 + .125rem);border-top:.125rem solid var(--line-soft)}      /* the line on to the next round */
.br-col:not(:first-child) .br-match::before{content:"";position:absolute;right:100%;top:50%;width:calc(var(--s-5) / 2);border-top:.125rem solid var(--line-soft)}
.br-p{display:flex;align-items:center;gap:.5rem;height:1.875rem;padding:0 .75rem}
.br-p + .br-p{border-top:.0625rem solid var(--sky-3)}
.br-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--t-md);font-weight:500;color:var(--ink)}
.br-left{font-weight:500;color:var(--ink-soft)}
.br-sc{min-width:1.5rem;text-align:right;font-size:var(--t-md);font-weight:400;font-family:var(--font-display);color:var(--ink-strong);font-variant-numeric:tabular-nums}
.br-p.is-win .br-name,.br-p.is-win .br-sc{font-weight:400;font-family:var(--font-display);color:var(--ink-strong)} .br-p.is-win{box-shadow:inset .25rem 0 0 var(--gold-3)}
.br-p.is-lose .br-name,.br-p.is-lose .br-sc{color:var(--ink-soft)}
.br-match:focus-visible{outline:3px solid var(--me-ink);outline-offset:2px} .br-match.is-you{border-color:var(--me);box-shadow:0 0 0 .125rem rgba(58,160,255,.25), var(--sh-1)} .br-p.is-me{background:var(--me-tint)} .br-p.is-me .br-name{color:var(--me-ink);font-weight:400;font-family:var(--font-display)}
.br-match > .br-p:first-child{border-radius:calc(var(--r-md) - .125rem) calc(var(--r-md) - .125rem) 0 0} .br-match > .br-p:last-child{border-radius:0 0 calc(var(--r-md) - .125rem) calc(var(--r-md) - .125rem)}
.br-match.is-tbd{background:rgba(255,255,255,.55);border-style:dashed;box-shadow:none} .br-match.is-tbd .br-name{color:var(--ink-soft)}
.br-match.is-live{border-color:#f3a3a3}
.br-tag{flex:none;padding:0 .375rem;border-radius:var(--r-pill);background:linear-gradient(180deg,var(--gold-1),var(--gold-2));border:.09375rem solid var(--gold-4);color:var(--ink-strong);font-size:var(--t-xs);font-weight:400;font-family:var(--font-display);line-height:1.35}
.br-live{display:flex;align-items:center;gap:.5rem;padding:var(--s-2) var(--s-2) var(--s-2) .75rem;border-top:.0625rem solid var(--sky-3);font-size:var(--t-sm);font-weight:400;font-family:var(--font-display);color:var(--bad-deep)}
.br-live > span{display:flex;align-items:center;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap} .br-eye{display:inline-flex;margin:0 .1875rem 0 .25rem} .br-eye svg{width:1rem;height:1rem;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.br-dot{flex:none;width:.625rem;height:.625rem;border-radius:50%;background:var(--bad-deep);animation:dot-live 1200ms var(--ease-soft) infinite}      /* deep red, and it never fades below .7: a status mark keeps 3:1 on the card at its faintest (1.4.11) */
@keyframes dot-live{0%,100%{opacity:1}50%{opacity:.7}}
.tour-wait .dots-wait i{background:var(--me-ink)}
.br-watch{margin-left:auto;height:2.5rem;padding:0 .875rem;gap:.375rem;font-size:var(--t-sm)}
.bracket.is-big .br-p{height:1.625rem} .bracket.is-big .br-list{gap:.5rem}      /* 16 players: eight matches in the first column */
.br-foot{display:flex;justify-content:flex-end;padding-inline:.375rem}
/* ---- the tournament result and the champion (the result card) */
.tour-res .btn{min-width:13rem} .tour-res .btn,#champ-acts .btn{min-height:44px}
.result-card.is-champion{border-color:var(--gold-3);background:linear-gradient(180deg,#fff 0%,#fffdf3 45%,#fbf1d2 100%)}
.result-card.is-champion h2{color:#8a5200;font-size:3.5rem;margin-inline:calc(-1 * var(--s-5));text-wrap:balance}      /* the title may use the card's padding: 'Daniel is the champion!' on one line like Matt's */ .result-card.is-champion #result-note{color:var(--ink)}
.medal.is-champion::before,.medal.is-champion::after{background:linear-gradient(90deg,var(--gold-4) 0 22%,#fff 22% 34%,var(--gold-3) 34% 66%,#fff 66% 78%,var(--gold-4) 78%)}
.medal.is-champion .medal-trophy{width:4rem;height:4rem}
.result-card.is-champion .tally,.result-card.is-champion #rematch-note{display:none}
.result-card.is-champion .result-stats{display:none}      /* a safety net: champion() hides the row too */
.medal-trophy{display:none} .medal.is-champion .medal-star{display:none} .medal.is-champion .medal-trophy{display:block;fill:#fff7c9;stroke:var(--gold-4);stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round}
.medal.is-champion{scale:1.35}
.road{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--s-3);list-style:none;margin:0 auto var(--s-5);padding:0}
.road-step{display:inline-flex;align-items:center;gap:.5rem;min-height:2.5rem;padding:.25rem 1rem;border-radius:var(--r-pill);background:#fff;border:.125rem solid var(--gold-2);box-shadow:var(--sh-1);font-size:var(--t-md);font-weight:400;font-family:var(--font-display);color:var(--ink-strong)}
.road-step small{font-size:var(--t-xs);font-weight:400;font-family:var(--font-display);letter-spacing:.08em;text-transform:uppercase;color:#8a5200} .road-step b{font-weight:400;font-family:var(--font-display);font-variant-numeric:tabular-nums}
#champ-acts .btn{min-width:12rem}
/* ---- ended: a notice above the lobby's choices, not a dialog */
.tour-ended{flex:none;display:flex;align-items:center;gap:var(--s-5);width:min(40rem,92vw);padding:var(--s-4) var(--s-5);text-align:left;border-color:var(--gold-3)} .tour-ended .notice-icon{width:4.5rem;height:4.5rem} .tour-ended .notice-icon svg{width:2.5rem;height:2.5rem;fill:none;stroke:var(--gold-4);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tour-ended > div:last-child{flex:1;min-width:0} .tour-ended h2{max-width:none;text-wrap:balance;margin:0 0 .625rem;font-size:var(--t-lg);font-weight:400;font-family:var(--font-display);line-height:1.25;color:var(--ink-strong)} .tour-ended .ask-btns .btn{min-width:7rem;height:max(2.75rem,44px);font-size:var(--t-md)}
@media (max-aspect-ratio: 1/1){
  .panel.lobby-view.tour-view{grid-template-columns:1fr;gap:var(--s-5)}
  .tour-side{width:min(36rem,100%);justify-self:center}
  .vs-mark{font-size:4.5rem} .vs-side b{font-size:var(--t-xl)}
}
@media (max-width:700px){
  .br-tabs{display:inline-flex;max-width:100%} .br-tabs .seg-opt{min-height:44px;padding:0 .875rem}
  .bracket{grid-auto-flow:row;grid-template-columns:minmax(0,1fr);grid-auto-columns:auto}
  .br-col{display:none} .br-col.is-shown{display:flex} .br-match::before,.br-match::after{display:none} .br-list{grid-auto-rows:auto;align-content:start}      /* one round at a time: no neighbour to line up with, so the cards stack at their own heights */
  .br-tab-long{display:inline} .br-tab-short{display:none}
  .br-p{height:max(1.875rem,30px)} .bracket.is-big .br-p{height:max(1.875rem,30px)}
  .panel.lobby-view.bracket-view{padding:var(--s-5) var(--s-4)}
  .tour-names{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tour-chip,.tour-why,.tour-copied,.tour-rules,.br-name,.br-sc,.br-live,.br-watch,.br-round,.br-next,.road-step,.tc-n,.tour-full,.tp-text{font-size:max(var(--t-sm),12px)}
  .tour-tag,.br-tag,.br-round small,.tc-code small,.road-step small,.tour-n small,.tour-link-row .addr{font-size:max(var(--t-xs),12px)} .br-tabs .seg-opt{min-width:44px;font-size:max(var(--t-sm),12px)} #btn-br-leave,#btn-tour-ended-ok,.tour-res .btn,#champ-acts .btn{font-size:max(var(--t-md),13px)}
  .tour-acts .btn,.tour-link-row .btn,.tour-leave .btn,.tour-confirm,.br-you,.tour-wait,.vs-target{font-size:max(var(--t-md),13px)}
  .result-card.is-champion h2{font-size:3rem}
  .tour-names.is-card .tour-chip,.tc-foot .tour-why,.tc-n{font-size:max(var(--t-sm),12px)} .tour-card .btn,.tour-card h2{font-size:max(var(--t-md),13px)} .tour-go{font-size:max(var(--t-md),13px)}
  .tour-names.is-card .tour-chip{height:max(2.25rem,32px)} .tour-card .set-foot .btn{height:max(2.875rem,44px)} .tc-code-row .btn{min-height:44px}
  .tour-view .caps,.tour-card .caps{font-size:max(var(--t-xs),11px)} .badge-tour{font-size:max(var(--t-xs),12px)}      /* the name over the code boxes, and the one thing that tells a tournament row from a court */
  .court-list li[data-kind="tour"]::after{display:none}      /* the readable badge needs the room: a tournament row (never a Watch) takes the empty Watch slot too */
  .vs-round{font-size:max(var(--t-md),13px)} .vs-target{font-size:max(var(--t-lg),15px)} .rematch-count,.tally-side b{font-size:max(var(--t-md),13px)}      /* the VS card's round line, 'Bracket in 6', the result card's names */
  .stat b{font-size:max(1.4rem,14px)} .stat span{font-size:max(var(--t-md),13px)}      /* the stats pills: nothing under 13 px */
  .tally-crown{width:2.1rem;height:1.6rem;margin-left:-1.05rem}      /* the chip is smaller here */
  .notices{top:auto;bottom:calc(var(--edge) + 5.25rem);translate:none} .notice{font-size:max(var(--t-sm),12px);height:auto;min-height:max(2.25rem,28px);max-width:calc(100vw - 2 * var(--edge))} .ask.notice{height:fit-content;min-height:0} body:has(.ask-card.is-on) .notices{opacity:0}      /* portrait: half way down is the net and the far service box, where the ball is: the cards sit above the key hints instead */
}
@media (max-width:480px){
  .br-tab-long{display:none} .br-tab-short{display:inline}
  .panel.lobby-view.tour-view{padding:var(--s-5) var(--s-4)}
  .code-boxes.is-huge{gap:.5rem}
  .vs-card{padding:var(--s-7) var(--s-4);gap:var(--s-6)} .vs-mark{font-size:5rem} .vs-row{gap:var(--s-3)} .vs-side b{font-size:var(--t-2xl)}      /* a phone-width window: the card is the whole screen's news, so it stays big (the round and target lines: the 700px block) */
  #champ-acts{flex-direction:column;align-items:stretch} .tour-res .btn,#champ-acts .btn{min-width:0}
}
@media (prefers-reduced-motion: reduce){ .br-dot{animation:none} .tour-chip.is-new{animation:none} }

/* ==========================================================================================================
   CAMERA PRIMER (NOTES 94): the screen before the first camera request. #cam-card[data-view] = ask | wait | help.
   Font sizes carry px floors: at phone width 1rem is 10px, and this is the one screen that must be read in full, not glanced at.
   ========================================================================================================== */
.cam-body{justify-content:safe center;overflow-y:auto;overscroll-behavior:contain}      /* the help can run taller than the window: it scrolls, never shrinks */
.cam-card{display:flex;flex-direction:column;align-items:center;gap:var(--s-4);width:min(54rem,92vw);padding:var(--s-5) var(--s-7) var(--s-5)}
.cam-card .t-title{font-size:max(var(--t-2xl),24px)} .cam-card .t-lead{max-width:44rem;font-size:max(var(--t-lg),16px)}
.cam-card .t-title,.cam-card .t-lead{text-wrap:balance}      /* no one-word last lines ('Try / again.') */
.cam-card .t-title.is-bad::before{vertical-align:.1em}
.screen.is-active .cam-card.lob-nope{animation:nudge 420ms var(--ease-soft) 1}      /* Try again met the same block: shake once more (ui.js restart) */
.cam-art{width:min(24rem,100%);aspect-ratio:12/5;padding:.5rem 1rem;display:grid;place-items:center}
.cam-art svg{width:100%;height:100%;overflow:visible}
.cam-art .art-line,.cam-art .art-fill,.cam-art .art-skin{stroke-width:4} .cam-art .art-faint{stroke-width:3}
.screen.is-active .cam-steps-l{animation:cam-step-l 1800ms var(--ease-soft) infinite} .screen.is-active .cam-steps-r{animation:cam-step-r 1800ms var(--ease-soft) infinite}      /* the arrows beside you breathe out: step this way, or that */
@keyframes cam-step-l{0%,100%{translate:0 0}50%{translate:-4px 0}} @keyframes cam-step-r{0%,100%{translate:0 0}50%{translate:4px 0}}
.cam-card[data-view="help"] .cam-art{display:none}                                      /* the fix is the news now: the drawing gives it the room */
.cam-points{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.625rem;width:100%;text-align:left}
.cam-points li{display:flex;align-items:flex-start;gap:1rem;padding:.875rem 1.25rem;border-radius:var(--r-lg);background:linear-gradient(180deg,#fff,var(--sky-1));border:.125rem solid var(--line-soft);box-shadow:var(--sh-1)}
.cam-points svg{flex:none;width:max(2.25rem,26px);height:max(2.25rem,26px);margin-top:.125rem;fill:none;stroke:var(--line-deep);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.cam-points div{display:flex;flex-direction:column;gap:.125rem;font-size:max(var(--t-md),14px);line-height:1.45;color:var(--ink)}
.cam-points div > b{font-size:max(var(--t-lg),16px);font-weight:400;font-family:var(--font-display);color:var(--ink-strong);line-height:1.25}
.cam-card[data-view="help"] .cam-points{display:none}
.cam-help{width:100%;display:flex;flex-direction:column;gap:.625rem;text-align:left}
.cam-how{padding:.875rem 1.25rem;border-radius:var(--r-lg);background:linear-gradient(180deg,#fff,var(--sky-1));border:.125rem solid var(--line-soft);box-shadow:var(--sh-1)}
.cam-how.is-main{border-color:var(--line)}
.cam-how h3{margin:0 0 .375rem;font-size:max(var(--t-lg),16px);font-weight:400;font-family:var(--font-display);color:var(--ink-strong)}
.cam-how ol{margin:0;padding-left:1.4em;font-size:max(var(--t-md),14px);line-height:1.5;color:var(--ink)} .cam-how li+li{margin-top:.1875rem}
.cam-more{border-radius:var(--r-lg)}
.cam-more summary{cursor:pointer;width:fit-content;padding:.375rem .25rem;font-size:max(var(--t-md),14px);font-weight:400;font-family:var(--font-display);color:var(--line-deep);list-style-position:inside;border-radius:var(--r-sm);outline:0}
.cam-more summary:focus-visible{box-shadow:var(--glow)} @media (hover:hover){ .cam-more summary:hover{text-decoration:underline} }
.cam-more-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(20rem,100%),1fr));gap:.5rem;margin-top:.375rem}
.cam-more-list .cam-how{box-shadow:none;background:rgba(255,255,255,.6);border-color:var(--line-faint)} .cam-more-list .cam-how h3{font-size:max(var(--t-md),14px)} .cam-more-list .cam-how ol{font-size:max(var(--t-sm),13px)}      /* the other browsers: smaller, and only when asked for */
.cam-btns{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:var(--s-3) var(--s-4);margin:var(--s-2) 0 0}
.cam-btns .btn:not(.btn-sm){min-width:16rem;min-height:44px} .cam-btns .btn svg{width:1.625rem;height:1.625rem;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.cam-skip{min-height:44px;border-color:var(--line-soft);box-shadow:var(--sh-1), var(--inner-hi);color:var(--ink)}      /* the way out is always there, just quieter than Allow */
.cam-note{min-height:1.5em;font-size:max(var(--t-sm),13px)} .cam-note:empty{min-height:0}
.cam-alt{font-size:max(var(--t-sm),13px);margin-top:.35rem}      /* what Play without camera means, next to the button that picks it */
.cam-card[data-view="wait"] #btn-cam-allow{opacity:.6} .cam-card[data-view="wait"] #btn-cam-allow::after{opacity:0;animation:none}
#screen-camera .menu-foot > span{font-size:max(var(--t-sm),12px)}
.cam-on{flex:none;height:2.5rem;min-height:36px;padding:0 1.25rem;font-size:max(var(--t-md),13px)}      /* the connect screen's Camera row: Turn on */
#row-camera:has(> .cam-on:not([hidden])) .status-state{display:none}      /* the button says it's off: the word 'Off' only took the text's room */
@media (max-aspect-ratio: 1/1){
  .cam-body{padding:var(--s-4)}
  .cam-card{padding:var(--s-5);width:100%}
  .cam-btns{flex-direction:column;align-items:stretch;width:100%} .cam-btns .btn:not(.btn-sm){min-width:0}
  .cam-btns .cam-skip,.cam-btns .cam-skip:hover{align-self:center;min-height:40px;background:none;border-color:transparent;box-shadow:none;color:var(--line-deep);text-decoration:underline;text-underline-offset:.2em} .cam-btns .cam-skip::before{display:none}      /* stacked, Allow is the one big pill; the way out reads as a link under it (no gloss either) */
  #row-camera:has(> .cam-on:not([hidden])){flex-wrap:wrap} #row-camera .cam-on{flex-basis:100%}      /* phone width: Turn on gets its own line, the text keeps the row's width */
  #screen-camera .menu-foot{height:auto;min-height:3.5rem;padding:.5rem var(--s-4)} #screen-camera .menu-foot .keyhints-inline{display:none}
}
@media (max-width:480px){ .cam-body{padding-inline:var(--s-5)} #screen-camera .menu-foot{padding-inline:var(--s-5)} }      /* a phone: the lobby's s-5 gutter (NOTES 139) */
@media (min-aspect-ratio: 1/1){      /* a computer's window: everything, Allow included, above the fold. The three points side by side */
  .cam-card{width:min(64rem,92vw);gap:var(--s-3);padding-top:var(--s-4)}
  .cam-card[data-view="help"]{gap:var(--s-2)} .cam-card[data-view="help"] .cam-how{padding:.625rem 1.125rem}      /* the help, and a 'Still not working' line, fit above the footer */
  .cam-card .t-title{font-size:max(2.625rem,24px)} .cam-card .t-lead{max-width:52rem}
  .cam-art{width:min(16rem,100%)}
  .cam-points{flex-direction:row;align-items:stretch} .cam-points li{flex:1 1 0;flex-direction:column;gap:.5rem;padding:1rem 1.125rem}
}
@media (prefers-reduced-motion: reduce){ .screen.is-active .cam-steps-l,.screen.is-active .cam-steps-r{animation:none} }

/* ==========================================================================================================
   PLAYER STATS (docs/ACCOUNTS.md 9): Your stats in the lobby, the result card's line, the registered-name badge, the
   sign-in / username / delete cards and Settings > You. web/profile.js draws all of it; every string goes in as text.
   ========================================================================================================== */
/* the badge of a registered username (7.5): its own element beside the name, an accent pill with a drawn tick. No glyph a guest could type */
.reg-badge{flex:none;position:relative;display:inline-grid;place-items:center;width:1.66em;height:1.2em;padding:0;margin-left:.35em;isolation:isolate;color:#fff;font-size:.8em;line-height:1;vertical-align:-.16em}      /* (NOTES 931, owner: "rework the developer emblem next to my name to fit the game better") the developer's badge (ui.js regBadge): the game's own chip, a cyan plate on the one slant with the ink outline, the hammer upright on it in white. Inset: no drop (drops are for windows and buttons) */
.reg-badge::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:.26em;background:var(--cp-main,#00c2ff);border:.11em solid var(--cp-ink,#1c3150);transform:skewX(var(--cp-skew,-6deg))}
.reg-badge svg{width:.92em;height:.92em;fill:currentColor}      /* (NOTES 956, owner: "this developer tag got no padding") a 1.66 by 1.2em chip round the .92em hammer: the drawn hammer about .2em clear of the outline all round (the chip was 1.08em tall, its inside as tall as the hammer) */
.tip{position:fixed;left:0;top:0;z-index:1000;pointer-events:none;padding:var(--s-1) var(--s-3);border-radius:var(--r-pill);background:var(--ink-strong);color:#fff;font:400 var(--t-xs)/1.3 var(--font-display);letter-spacing:.02em;text-align:center;max-width:min(18rem,calc(100vw - 1rem));box-shadow:var(--sh-2);opacity:0;transform:translateY(.25rem);transition:opacity 120ms,transform 120ms var(--ease-out)}
.tip.is-below{transform:translateY(-.25rem)} .tip.on{opacity:1;transform:none}      /* every tooltip on the page (ui.js tipShow, NOTES 136): the browser's own never shows. The developer's name is no longer orange (NOTES 135) */
@media (prefers-reduced-motion:reduce){ .tip{transition:none;transform:none} }
.tally-side:has(> .reg-badge){display:grid;grid-template-columns:auto auto;justify-content:center;justify-items:center;align-items:center;row-gap:.375rem} .tally-side:has(> .reg-badge) .chip{grid-column:1 / -1}
.br-p:has(> .reg-badge) .br-name,.tour-chip:has(> .reg-badge) .tour-chip-name{flex:0 1 auto} .br-name + .reg-badge,.tour-chip-name + .reg-badge{margin:0 auto 0 0}      /* bracket and chips: the badge hugs the name, the tags and score stay at the end (the flex gap spaces it) */
.court-who .reg-badge{display:inline-grid;margin-left:.25em} .vs-side > .reg-badge{margin:0}      /* the court list: inline in the nowrap line. The VS card: under the name, in its column */

/* ---------- rank emblems (web/emblems.js) ----------
   One sprite of 22 symbols (rank-<tier>-<div> for tiers 1..7, rank-8 for Pro: NOTES 124) sits at the start of <body> (installSprite()); every emblem is <svg class="rank-em"><use href="#rank-..."/></svg>.
   Base 1.5rem beside a name; .is-xs 1.25rem in a list row, .is-md 2.5rem on a score tab, .is-lg 5rem on a card, .is-xl 7.5rem as the hero.
   .is-pop is a one-shot for a new rank (scale .6 -> 1.12 -> 1 over --d-slow, bounce); the reduced-motion rule below lands it on its last frame. */
.rank-sprite{position:absolute;width:0;height:0;overflow:hidden}
.rank-em{width:1.5rem;height:1.5rem;flex:none;vertical-align:middle;overflow:visible}
.rank-em.is-xs{width:1.25rem;height:1.25rem} .rank-em.is-md{width:2.5rem;height:2.5rem} .rank-em.is-lg{width:5rem;height:5rem} .rank-em.is-xl{width:7.5rem;height:7.5rem}
.rank-em.is-pop{animation:rank-pop var(--d-slow) var(--ease-bounce) both}
@keyframes rank-pop{0%{transform:scale(.6);opacity:0}60%{transform:scale(1.12);opacity:1}100%{transform:scale(1);opacity:1}}
.rank-card-em{display:inline-flex;flex-direction:column;align-items:center;gap:.25rem;--rank-ink:var(--ink-strong)}      /* emblemCard(): the rank name under the badge, in the tier's rim colour */
.rank-card-em > b{font-size:var(--t-md);font-weight:400;font-family:var(--font-display);line-height:1;letter-spacing:var(--track-title);color:color-mix(in srgb,var(--rank-ink) 85%,#000);white-space:nowrap}      /* the rim colour, 15% darker as text: Gold and Silver reach 5:1 on white */
.rank-card-em > .is-xl + b{font-size:var(--t-lg)} .rank-card-em > .is-md + b{font-size:var(--t-xs)}
.rank-em.is-off{opacity:.55;filter:saturate(.2)}      /* no rank yet: the Bronze emblem, dimmed */
/* the division (I, II, III): a small roman numeral on a white pill over the emblem's lower edge, in the rank's deep colour, from .is-md up (beside a name only the emblem shows).
   Drawn from data-div on the wrapper (ui.rankBadge, emblemCard), never as text inside the SVG */
.rank-card-em{position:relative} .rank-badge{position:relative}
.rank-card-em[data-div]:has(> .is-md)::after,.rank-card-em[data-div]:has(> .is-lg)::after,.rank-card-em[data-div]:has(> .is-xl)::after,.rank-badge[data-div]:has(> .is-md)::after,.rank-badge[data-div]:has(> .is-lg)::after,.rank-badge[data-div]:has(> .is-xl)::after,.st-step[data-div]::after{
  position:absolute;left:50%;top:var(--em-h,2.5rem);translate:-50% -62%;display:inline-grid;place-items:center;height:1.1em;min-width:1.5em;padding:0 .35em;border-radius:var(--r-pill);background:#fff;color:color-mix(in srgb,var(--rank-ink,var(--ink-strong)) 85%,#000);
  font:400 var(--div-fs,.8125rem)/1 var(--font-display);letter-spacing:.06em;box-shadow:0 .0625rem .1875rem rgba(20,60,90,.35), inset 0 0 0 .0625rem rgba(20,60,90,.12);pointer-events:none;white-space:nowrap}
[data-div="1"]::after{content:"I";content:"I" / ""} [data-div="2"]::after{content:"II";content:"II" / ""} [data-div="3"]::after{content:"III";content:"III" / ""}      /* empty alt text: the numeral is drawn, never read ('Silver II II' on the VS card). The rank's name is in the label or the aria-label */
/* past Pro (NOTES 359): the mastery stars on the Pro medal, where a numeral sits below Pro ('★3', one star per 100 trophies past 1050), the same white pill */
.rank-card-em[data-stars]:has(> .is-md)::after,.rank-card-em[data-stars]:has(> .is-lg)::after,.rank-card-em[data-stars]:has(> .is-xl)::after,.rank-badge[data-stars]:has(> .is-md)::after,.rank-badge[data-stars]:has(> .is-lg)::after,.rank-badge[data-stars]:has(> .is-xl)::after,.st-em[data-stars]::after{
  position:absolute;left:50%;top:var(--em-h,2.5rem);translate:-50% -62%;display:inline-grid;place-items:center;height:1.1em;min-width:1.5em;padding:0 .35em;border-radius:var(--r-pill);background:#fff;color:var(--cp-ink);
  font:400 var(--div-fs,.8125rem)/1 var(--font-display);letter-spacing:.02em;box-shadow:0 .0625rem .1875rem rgba(20,60,90,.35);pointer-events:none;white-space:nowrap;content:"\2605" attr(data-stars);content:"\2605" attr(data-stars) / ""}
/* the Pro title chip (ui.titleChip: '#1', 'Top 10', 'Top 100'): a flat pill beside the name or the rank, no outline of its own (UI rule 2); the #1's neon with a crown */
.pro-title{flex:none;display:inline-flex;align-items:center;gap:.2em;margin-left:.4em;padding:.18em .5em;border-radius:var(--r-pill);background:#fff;color:var(--cp-ink);font:400 max(.6875rem,.72em)/1 var(--font-display);white-space:nowrap;vertical-align:.12em;box-shadow:0 .0625rem .1875rem rgba(20,60,90,.3)}
.pro-title.is-one{background:var(--cp-main);color:#fff}
.pro-title svg{width:1.05em;height:1.05em;fill:#ffb800;stroke:var(--cp-ink);stroke-width:2;stroke-linejoin:round}
.score-who .pro-title,.score-name > .pro-title{margin-left:.3em;font-size:max(.6875rem,.62em)}
.ranks-tag .pro-title{margin-left:.35em;vertical-align:0} .ranks-tag-at{display:none}
.rank-card-em:has(> .is-md),.rank-badge:has(> .is-md){--em-h:2.5rem;--div-fs:max(.6875rem,11px)} .rank-card-em:has(> .is-lg),.rank-badge:has(> .is-lg){--em-h:5rem;--div-fs:max(.875rem,11px)} .rank-card-em:has(> .is-xl),.rank-badge:has(> .is-xl){--em-h:7.5rem;--div-fs:max(1.0625rem,11px)}      /* never under the 11 px label floor (docs/ui-spec.md) */
/* the emblem beside a name (docs/RANKED.md 6, ui.rankBadge): its own element after the badge (or the name), never in the name's text */
.rank-badge{flex:none;display:inline-grid;place-items:center;margin-left:.35em;vertical-align:-.12em;line-height:0}
.tally-side:has(> .rank-badge){display:grid;grid-template-columns:auto auto auto;justify-content:center;justify-items:center;align-items:center;row-gap:.375rem} .tally-side:has(> .rank-badge) .chip{grid-column:1 / -1}
.vs-side > .rank-badge{margin:0} .view-chip .rank-badge{margin-left:.25em}
.score-who .rank-badge{margin-left:.25em} .score-who .rank-badge .rank-em{width:1.1em;height:1.1em} .score-who .reg-badge{margin-left:.25em}      /* the score tab: the name, its badge and the emblem share one line, so the emblem sits at the badge's height (the name's fit is ui.js fitNames, NOTES 212) */

/* the result card's line (9.3): what this match did to my record. Quiet, under the tally; it never takes focus */
.result-save{display:flex;flex-direction:column;align-items:center;gap:.5rem;margin:calc(-1 * var(--s-3)) auto var(--s-4);max-width:36rem;text-align:center}
.result-save p{margin:0}
#result-save-text{font-size:var(--t-md);font-weight:400;font-family:var(--font-display);color:var(--ink-strong)}      /* a headline, not a link: the blue read as one */
#result-save-text.is-first{display:inline-flex;align-items:center;gap:.5rem;min-height:2.5rem;padding:.25rem 1rem;border-radius:var(--r-pill);background:linear-gradient(180deg,#fffdf3,#fff4c9);border:.125rem solid var(--gold-2);box-shadow:var(--sh-1);color:var(--warn-deep)}      /* a first win: the gold pill the match-stat chips and the ladder's medal chip use */
#result-save-text.is-first::before{content:"\2605";color:var(--gold-3);font-size:1.1rem}
.result-notice{font-size:var(--t-sm);font-weight:500;line-height:1.45;color:var(--ink)} .result-notice .foot-link{font-size:inherit}
.result-save .btn{margin-top:.125rem}

/* Your stats (9.4): the lobby view's header (name, pen, subtitle, sign in / out) and footer; the card itself is the .st- block below */
.pf-view{text-align:left}      /* the gap and padding are .st's below: one !important per property */
.pf-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:var(--s-3) var(--s-5);width:100%}
.pf-who{margin:0;display:flex;flex-direction:column;gap:.125rem;min-width:0}
.pf-name-row{display:inline-flex;align-items:center;gap:.5rem;font-size:var(--t-xl);line-height:1.15}
.pf-edit{width:2.25rem;height:2.25rem;box-shadow:var(--sh-1), var(--inner-hi)} .pf-edit svg{width:1.125rem;height:1.125rem;stroke-width:2.5;stroke-linejoin:round}      /* the pen beside a signed-in name: pick or change the username */
.pf-signout{gap:.5rem} .pf-signout svg{width:1.125rem;height:1.125rem;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.pf-name-row b{font-weight:400;font-family:var(--font-display);color:var(--ink-strong);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pf-who small{font-size:var(--t-sm);font-weight:400;font-family:var(--font-display);color:var(--ink-soft)} .pf-who .pf-notice{font-weight:500;line-height:1.45} .pf-notice .foot-link{font-size:inherit}
.pf-acct{display:flex;align-items:center;gap:var(--s-3)}
.g-logo{flex:none;width:1.25em;height:1.25em} .g-logo *{stroke:none} .g-btn{display:inline-flex;align-items:center;justify-content:center;gap:.5em}      /* Google's own four-colour G (its branding rules: unchanged colours, on white), never tinted by the button */
.pf-signin{height:auto;min-height:3.75rem;padding:.5rem 1.25rem .5rem 1rem;gap:.75rem;text-align:left} .pf-signin .g-logo{width:1.75rem;height:1.75rem}
.pf-signin span{display:flex;flex-direction:column;line-height:1.2} .pf-signin b{font-weight:400;font-family:var(--font-display)} .pf-signin small{font-size:var(--t-sm);font-weight:400;font-family:var(--font-display);color:var(--ink-soft)}      /* the call to action under the name of the button */
.pf-share{gap:.5rem;padding:0 .4375rem;align-self:center;justify-content:center;min-width:max(2.875rem,44px);border-color:var(--gold-4);background:linear-gradient(180deg,#fffbe6 0%,#fff3c2 47%,#ffe48a 53%,#ffeaa3 100%);color:#7a4a00;font-weight:400;font-family:var(--font-display)}      /* Share card: the header's one gold button (the tournament Start's gold), labelled at every size: the word-of-mouth feature must read as a call to action, never as a lone glyph */
.pf-share:active{background:linear-gradient(180deg,#fff3c2,#ffe48a)}
.pf-share-ic{width:2rem;height:2rem;border-radius:50%;display:grid;place-items:center;flex:none;background:#fff;box-shadow:inset 0 0 0 .0625rem rgba(201,127,8,.45), 0 .0625rem .125rem rgba(120,80,0,.2)}
.pf-share-ic svg{width:1.125rem;height:1.125rem;fill:none;stroke:#7a4a00;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round} .pf-share:hover .pf-share-ic svg{animation:pf-lift 500ms var(--ease-bounce)} @keyframes pf-lift{40%{translate:0 -.1875rem}}
.pf-msg{margin:0;width:100%;padding:.625rem 1rem;border-radius:var(--r-md);background:rgba(255,255,255,.72);box-shadow:0 .0625rem .1875rem rgba(40,80,110,.1);font-size:var(--t-md);font-weight:400;font-family:var(--font-display);color:var(--ink);text-align:center}
/* ---------- Your stats (9.4): the player card. st- = stats. Hero (crest | rank | streak), the Trophy Road, the people strip, three number tiles ---------- */
/* the player's own colours: rank in --me-ink blue, the streak ribbon gold (orange is the opponent's), gold otherwise only where something was won */
.st{gap:var(--s-2)!important;padding:var(--s-4) var(--s-6)!important}      /* the same air on every side: the old .5rem top / .25rem bottom put the header on the rim and the tiles on the border */ .st .pf-msg{padding:.3125rem 1rem;font-size:var(--t-sm)}      /* the whole card has 41rem at 1280x800 (menu head + foot + the body padding): every size below is chosen to fit it without a scroll */
.st .caps{margin:0;display:flex;align-items:center;gap:.4rem} .st .caps svg{width:1.25rem;height:1.25rem;fill:none;stroke:var(--line-deep);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;flex:none}
.st-hero{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:auto auto;align-items:center;gap:var(--s-2) var(--s-5);width:100%;padding:.375rem 1rem}      /* the crest is the biggest thing on the card: bigger than any road medal. Two rows: the crest and the rank column span both; the streak over the road on the right */
.st-crest,.st-rank{grid-row:1 / span 2} .st-streak{grid-column:3;grid-row:1;justify-self:end} .st-road{grid-column:3;grid-row:2;justify-self:end}      /* the streak pill sits in the hero's corner, on the road's right edge (not floating over its middle) */
.st-crest{position:relative;isolation:isolate;width:6.25rem;height:6.25rem;display:grid;place-items:center;animation:medal-drop 900ms var(--ease-bounce) 120ms both}
.st-crest .st-disc{position:relative;width:5.5rem;height:5.5rem;border-radius:50%;display:grid;place-items:center;overflow:hidden;border:.1875rem solid #fff;
  background:radial-gradient(circle at 50% 50%, var(--gold-2) 0 56%, transparent 57%), conic-gradient(from 210deg, var(--gold-1), var(--gold-3), var(--gold-1), var(--gold-4), var(--gold-1), var(--gold-3), var(--gold-1));
  box-shadow:0 .25rem .75rem rgba(120,80,0,.35), inset 0 0 0 .0625rem rgba(140,90,0,.35)}      /* the result card's medal disc: every rank is gold, the tier is the name and the stars */
.st-crest .st-disc::after{content:"";position:absolute;top:-20%;bottom:-20%;left:0;width:34%;background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.75),rgba(255,255,255,0));transform:translateX(-160%) skewX(var(--cp-skew));animation:shine 2600ms var(--ease-soft) 900ms infinite}
.st-star{width:2.75rem;height:2.75rem;fill:#fff7c9;stroke:var(--gold-4);stroke-width:2.5;stroke-linejoin:round;animation:num-pop 600ms var(--ease-bounce) 900ms both}
.st-crown{display:none;width:2.75rem;height:2.1rem;fill:var(--gold-2);stroke:var(--gold-4);stroke-width:1.4;stroke-linejoin:round}
.st-rays{position:absolute;inset:-3rem;z-index:-1;border-radius:50%;pointer-events:none;background:repeating-conic-gradient(rgba(255,211,74,.55) 0 7deg,transparent 7deg 20deg);-webkit-mask:radial-gradient(circle closest-side,#000 25%,transparent 60%);mask:radial-gradient(circle closest-side,#000 25%,transparent 60%);scale:0;animation:st-rays 700ms var(--ease-bounce) 500ms forwards}      /* one shot, no spin: a page that settles. closest-side: the halo is gone by the well's edge (3.6rem out), never a streak under the header */
.st-crest.is-top .st-star{display:none} .st-crest.is-top .st-crown{display:block}      /* the top tier wears the crown */
.st-crest.is-bronze .st-disc{background:radial-gradient(circle at 50% 50%,#e9a06a 0 56%,transparent 57%),conic-gradient(from 210deg,#f6c39a,#b8662a,#f6c39a,#8f4a1a,#f6c39a,#b8662a,#f6c39a);box-shadow:0 .25rem .75rem rgba(120,60,10,.3), inset 0 0 0 .0625rem rgba(120,60,10,.35)} .st-crest.is-bronze .st-star{fill:#ffe3c9;stroke:#8f4a1a} .st-crest.is-bronze .st-rays,.st-crest.is-silver .st-rays{display:none}
.st-crest.is-silver .st-disc{background:radial-gradient(circle at 50% 50%,var(--silver-2) 0 56%,transparent 57%),conic-gradient(from 210deg,#fff,var(--silver-3),#fff,var(--silver-4),#fff,var(--silver-3),#fff);box-shadow:0 .25rem .75rem rgba(60,80,100,.3), inset 0 0 0 .0625rem rgba(60,80,100,.3)} .st-crest.is-silver .st-star{fill:#fff;stroke:var(--silver-4)}
.st-crest.is-platinum .st-disc{background:radial-gradient(circle at 50% 50%,#dff0fb 0 56%,transparent 57%),conic-gradient(from 210deg,#fff,#9cc7e2,#fff,#6fa6c9,#fff,#9cc7e2,#fff)} .st-crest.is-platinum .st-star{fill:#fff;stroke:#4f88ad} .st-crest.is-platinum .st-rays{background:repeating-conic-gradient(rgba(140,200,235,.6) 0 7deg,transparent 7deg 20deg)}
.st-crest.is-diamond .st-disc{background:radial-gradient(circle at 50% 50%,#c4f1ff 0 56%,transparent 57%),conic-gradient(from 210deg,#fff,#5dd0f0,#fff,#1fa9d6,#fff,#5dd0f0,#fff)} .st-crest.is-diamond .st-star{fill:#fff;stroke:#1387b0} .st-crest.is-diamond .st-rays{background:repeating-conic-gradient(rgba(70,200,240,.6) 0 7deg,transparent 7deg 20deg)}
.st-crest.is-legend .st-disc{background:radial-gradient(circle at 50% 50%,#e9d6ff 0 56%,transparent 57%),conic-gradient(from 210deg,#fff,#b48cf5,#fff,#7c4fd8,#fff,#b48cf5,#fff)} .st-crest.is-legend .st-crown{fill:#f3e8ff;stroke:#5b34b0} .st-crest.is-legend .st-rays{background:repeating-conic-gradient(rgba(170,130,240,.6) 0 6deg,transparent 6deg 14deg)}
.st-rank{display:flex;flex-direction:column;gap:.125rem;min-width:0} .st-rank .caps{line-height:1.2}
.st-rank-name{margin:0;font-size:2.5rem;font-weight:400;font-family:var(--font-display);line-height:1;letter-spacing:.02em;color:var(--me-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-rank-cap{margin:0;display:flex;align-items:center;gap:.375rem;font-size:var(--t-sm);line-height:1.15;font-weight:400;font-family:var(--font-display);color:var(--ink-soft);white-space:nowrap} #st-rank-cap:empty{display:none} .st-rank-cap b{font-size:var(--t-lg);font-weight:400;font-family:var(--font-display);color:var(--warn-deep);font-variant-numeric:tabular-nums}      /* the trophy count, in gold */
.st-rank-bar{width:min(100%,20rem);height:.75rem;margin-top:.25rem;border-radius:var(--r-pill);background:var(--sky-3);box-shadow:inset 0 .125rem .25rem rgba(120,170,200,.25);overflow:hidden} .st-rank-bar i{display:block;height:100%;width:calc(100% * var(--p,0));border-radius:inherit;background:linear-gradient(180deg,var(--gold-1),var(--gold-2) 50%,var(--gold-3));box-shadow:inset 0 -.125rem 0 rgba(201,127,8,.4);transform-origin:0 50%;animation:st-track 900ms var(--ease-out) 400ms both}      /* fills to the next tier */
.st-streak{display:flex;flex-direction:column;align-items:flex-end;gap:.25rem;text-align:center;animation:st-swing 800ms var(--ease-bounce) 300ms both;transform-origin:50% 0}
.st-ribbon{display:inline-flex;align-items:center;gap:.5rem;height:3rem;padding:0 1.5rem;border-radius:var(--r-pill);background:#fff;border:.125rem solid var(--line-faint);box-shadow:var(--sh-1);color:var(--ink-strong);font-size:var(--t-lg);font-weight:400;font-family:var(--font-display);letter-spacing:.06em;text-transform:uppercase;white-space:nowrap}      /* a pill, not a notched banner: the game's own vocabulary */
.st-ribbon b{font-size:2.25rem;line-height:1;font-variant-numeric:tabular-nums;animation:num-pop 500ms var(--ease-bounce) 700ms both}
.st-flame{width:1.75rem;height:1.75rem;fill:var(--silver-3);stroke:#fff;stroke-width:1.5;stroke-linejoin:round;flex:none} .is-one .st-flame,.is-hot .st-flame{fill:var(--them);stroke:var(--them-deep)}
.st-streak.is-hot .st-ribbon{background:linear-gradient(180deg,var(--gold-1),var(--gold-2) 55%,var(--gold-3));border-color:var(--gold-3);color:var(--warn-deep);text-shadow:0 .0625rem 0 rgba(255,255,255,.6);box-shadow:0 .1875rem 0 rgba(201,127,8,.28), var(--sh-1)}      /* gold from two wins up: never for one */
.st-streak.is-hot .st-flame{animation:st-flicker 700ms var(--ease-soft) 900ms 3}      /* three flickers, then still */
.st-streak small{font-size:var(--t-sm);font-weight:400;font-family:var(--font-display);color:var(--ink-soft)} .st-streak small b{color:var(--warn-deep)}
/* the Matt badge: the toughest level beaten on a disc in that level's colour, then a chip a level with its record. Any level can be played at any
   time, so nothing here is locked or ordered like a climb: a won chip is ticked, the badge's level is outlined in its colour */
.st-matt{position:relative;isolation:isolate;width:100%;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;column-gap:var(--s-4);padding:var(--s-2) var(--s-4);border-radius:var(--r-lg);background:linear-gradient(180deg,#fff 0%,#f7fbfd 60%,#eef5f9 100%);border:.125rem solid rgba(255,255,255,.9);box-shadow:var(--sh-2);animation:hm-tile 560ms var(--ease-bounce) 300ms backwards;
  --lv:#8fa3b1;--lv-deep:#5d6f7c;--lv-tint:var(--sky-2)}
.st-matt:has(.is-lv0){--lv:#3ecf72;--lv-deep:#13803f;--lv-tint:#e2f8ea} .st-matt:has(.is-lv1){--lv:#3aa0ff;--lv-deep:#1b63b8;--lv-tint:#e3f1ff} .st-matt:has(.is-lv2){--lv:#a77bf3;--lv-deep:#6a3fc2;--lv-tint:#f1e9ff} .st-matt:has(.is-lv3){--lv:var(--gold-2);--lv-deep:var(--warn-deep);--lv-tint:#fff4c9}      /* Rookie green, Club blue, Tour purple, Pro gold (the difficulty order) */
.st-mbadge{position:relative;width:4rem;height:4rem;flex:none}
.st-mdisc{width:100%;height:100%;border-radius:50%;display:grid;place-items:center;border:.25rem solid #fff;background:radial-gradient(circle at 35% 30%,rgba(255,255,255,.55),transparent 55%),var(--lv);box-shadow:0 0 0 .125rem var(--lv-deep), 0 .25rem .625rem rgba(40,70,100,.25)}
.st-mdisc svg{width:2.1rem;height:2.1rem;fill:none;stroke:#fff;stroke-width:2.25;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 .0625rem 0 rgba(0,0,0,.18))}
/* the toughest Matt beaten 11-0: a gold ring round the disc, on Your stats and the public card alike (NOTES 182) */
.st-mbadge.is-flawless .st-mdisc{border-color:var(--gold-1);box-shadow:0 0 0 .1875rem var(--gold-3), 0 0 0 .375rem var(--gold-1), 0 .25rem .625rem rgba(120,80,0,.3)}
.st-mbadge.is-none .st-mdisc{background:linear-gradient(180deg,var(--sky-2),var(--sky-4));box-shadow:0 0 0 .125rem var(--sky-4)} .st-mbadge.is-none .st-mdisc svg{stroke:var(--ink-soft);filter:none}
.st-mtext{min-width:0;display:flex;flex-direction:column;gap:.0625rem} .st-mtext .caps{margin:0}
.st-mbest{margin:0;font-size:var(--t-xl);font-weight:400;font-family:var(--font-display);line-height:1.1;color:var(--lv-deep);white-space:nowrap;overflow:hidden;text-overflow:ellipsis} .st-mbadge.is-none + .st-mtext .st-mbest{color:var(--ink-soft)}
.st-mtext small{font-size:var(--t-xs);font-weight:400;font-family:var(--font-display);color:var(--ink-soft)} .st-mbadge.is-none + .st-mtext small{color:var(--me-ink)}      /* nothing beaten: the coaching line in the player's blue, as on the empty tiles */
.st-mlevels{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,auto);gap:.375rem}
.st-mlv{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:4.25rem;padding:.25rem .5rem;border-radius:var(--r-md);background:var(--sky-2);font-variant-numeric:tabular-nums;line-height:1.15}
.st-mlv b{font-size:var(--t-xs);font-weight:400;font-family:var(--font-display);color:var(--ink-soft);letter-spacing:.02em} .st-mlv small{font-size:var(--t-md);font-weight:400;font-family:var(--font-display);color:var(--ink-strong);white-space:nowrap} .st-mlv small i{font-style:normal;font-size:var(--t-xs);font-weight:400;font-family:var(--font-display);color:var(--ink-soft)}
.st-mlv.is-won{background:#fff;box-shadow:inset 0 0 0 .125rem var(--line-faint)} .st-mlv.is-won b::before{content:"\2713\00a0";color:var(--good-deep)}      /* a tick glyph, not an asset */
.st-chip.is-gold{background:linear-gradient(180deg,#fff8d0,var(--gold-1));color:var(--warn-deep);box-shadow:inset 0 0 0 .0625rem rgba(201,127,8,.35)}
.st-mlv.is-top{background:var(--lv-tint);box-shadow:inset 0 0 0 .125rem var(--lv)} .st-mlv.is-top b{color:var(--lv-deep)}
/* a flawless win (11-0) at a level turns its card gold, the text a darker gold (the owner, 2026-10-03, NOTES 174); it wins over the badge outline */
.st-mlv.is-flawless{background:linear-gradient(180deg,#fff4bd,var(--gold-2));box-shadow:inset 0 0 0 .125rem var(--gold-3), 0 .0625rem .25rem rgba(201,127,8,.25)}
.st-mlv.is-flawless b,.st-mlv.is-flawless small,.st-mlv.is-flawless small i,.st-mlv.is-flawless b::before{color:#8a5200} .st-mlv.is-flawless .st-flame{fill:var(--gold-3);stroke:#8a5200}
/* the tile surface (the home tiles' gloss): the people strip and the three number tiles. White tiles with a gold chip, never gold tiles: gold keeps meaning "best" */
.st-people,.st-tile{position:relative;isolation:isolate;width:100%;padding:var(--s-2) var(--s-4);border-radius:var(--r-lg);background:linear-gradient(180deg,#fff 0%,#f7fbfd 60%,#eef5f9 100%);border:.125rem solid rgba(255,255,255,.9);box-shadow:var(--sh-2);animation:hm-tile 560ms var(--ease-bounce) 400ms backwards}
.st-people::before,.st-tile::before{content:"";position:absolute;inset:.25rem .25rem auto;height:46%;border-radius:calc(var(--r-lg) - .375rem) calc(var(--r-lg) - .375rem) 50% 50% / calc(var(--r-lg) - .375rem) calc(var(--r-lg) - .375rem) 1rem 1rem;background:linear-gradient(180deg,#fff,rgba(255,255,255,.3));pointer-events:none;z-index:-1}
.st-people{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"h h h" "wl bar chips";align-items:center;column-gap:var(--s-4);row-gap:.25rem} .st-people .caps{grid-area:h}
.st-wl{grid-area:wl;margin:0;display:flex;align-items:baseline;gap:.5rem;line-height:1;font-variant-numeric:tabular-nums} .st-wl b{font-size:2.25rem;font-weight:400;font-family:var(--font-display);animation:num-pop 500ms var(--ease-bounce) 800ms both} .st-wl .is-me{color:var(--me-ink)} .st-wl .is-them{color:var(--them-ink)}
.st-wl i{width:1rem;height:.375rem;border-radius:var(--r-pill);background:var(--ink-faint)} .st-wl small{font-size:var(--t-xs);font-weight:400;font-family:var(--font-display);letter-spacing:.06em;text-transform:uppercase;color:var(--ink-soft)}
.st-bar{grid-area:bar;position:relative;display:flex;height:.875rem;margin-bottom:1.25rem;border-radius:var(--r-pill);background:var(--sky-3);box-shadow:inset 0 .0625rem .1875rem rgba(40,80,110,.18)}
.st-bar i{height:100%;border-radius:inherit;width:var(--w,0%);background:linear-gradient(180deg,#8fdcf7,var(--me) 50%,var(--me-deep));transform:scaleX(0);transform-origin:0 50%;animation:bar-fill 700ms var(--ease-out) 900ms forwards} .st-bar i + i{flex:1;width:auto;background:linear-gradient(180deg,#ffc98a,var(--them) 50%,var(--them-deep));transform-origin:100% 50%}
.st-bar.is-empty i{display:none}      /* no match yet: the empty track and the hint under it, no orange "they won it all" */
.st-bar-l,.st-bar-r{position:absolute;top:100%;margin-top:.125rem;font-size:var(--t-xs);font-weight:400;font-family:var(--font-display);color:var(--ink-soft);white-space:nowrap} .st-bar-l{left:0;color:var(--me-ink)} .st-bar-r{right:0} .st-bar-r b{color:var(--ink-strong)}      /* the hint sits in "60% won"'s slot at its size: the same air under the bar either way */
.st-chips{grid-area:chips;margin:0;display:flex;flex-wrap:wrap;gap:.375rem} .st-chip{display:inline-flex;align-items:center;gap:.3rem;height:1.75rem;padding:0 .75rem;border-radius:var(--r-pill);background:var(--sky-2);font-size:var(--t-xs);font-weight:400;font-family:var(--font-display);color:var(--ink-soft);white-space:nowrap} .st-chip b{color:var(--ink-strong);font-variant-numeric:tabular-nums} .st-chip .st-flame{width:1rem;height:1rem}
.st-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--s-3);width:100%} .st-tile{display:flex;flex-direction:column;gap:.125rem} .st-tile:nth-child(3){animation-delay:470ms} .st-tile:nth-child(4){animation-delay:540ms}
.st-badge{position:absolute;top:.5rem;right:var(--s-4);width:2.25rem;height:2.25rem;border-radius:50%;display:grid;place-items:center;background:var(--me-tint);box-shadow:inset 0 0 0 .125rem #fff, var(--sh-1)} .st-badge svg{width:1.25rem;height:1.25rem;fill:none;stroke:var(--me-ink);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.st-num{margin:0;display:flex;align-items:baseline;gap:.125rem;line-height:1;font-variant-numeric:tabular-nums} .st-num b{font-size:2.25rem;font-weight:400;font-family:var(--font-display);color:var(--me-ink);animation:num-pop 500ms var(--ease-bounce) 800ms both} .st-num small{font-size:var(--t-md);font-weight:400;font-family:var(--font-display);color:var(--ink-soft);margin-left:.25rem}
.st-cap{margin:0;display:flex;align-items:center;gap:.5rem;min-width:0;font-size:var(--t-xs);font-weight:400;font-family:var(--font-display);color:var(--ink-soft)} .st-cap > span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap} .st-cap.is-hint{color:var(--me-ink)} .st-tile .st-chip{flex:none;height:1.5rem}      /* is-hint: the coaching line of an empty tile, in the player's blue, never grey */
#screen-lobby .menu-body:has(#lobby-profile:not([hidden])){overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}      /* a short window (1366x500, 760x600): the card scrolls instead of running under the footer. 1280x800 still fits whole */
/* the play row (docs/SHARE.md 3): the return rate is its headline (a ring and the big %), then six compact figures. Hidden when the server sends no profile.play */
.st-play{position:relative;isolation:isolate;container-type:inline-size;width:100%;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;column-gap:var(--s-4);padding:var(--s-2) var(--s-4);border-radius:var(--r-lg);background:linear-gradient(180deg,#fff 0%,#f7fbfd 60%,#eef5f9 100%);border:.125rem solid rgba(255,255,255,.9);box-shadow:var(--sh-2);animation:hm-tile 560ms var(--ease-bounce) 440ms backwards}
.st-ret{display:flex;align-items:center;gap:.75rem;min-width:0;padding-right:var(--s-4);border-right:.125rem solid var(--sky-2)}      /* the headline, its own zone: a hairline to the figures */
.st-ring{position:relative;width:4rem;height:4rem;flex:none;display:grid;place-items:center}
.st-ring svg:first-child{position:absolute;inset:0;width:100%;height:100%;rotate:-90deg} .st-ring circle{fill:none;stroke:var(--sky-3);stroke-width:5}
.st-ring .st-ring-on{stroke:var(--me);stroke-linecap:round;stroke-dasharray:calc(var(--p,0) * 100) 100;filter:drop-shadow(0 .0625rem .0625rem rgba(22,112,216,.3));animation:st-ring 1000ms var(--ease-out) 600ms backwards} .st-ring.is-zero .st-ring-on{display:none}      /* pathLength 100: --p (0-1) is the arc. At 0 a round cap would still draw a dot */
.st-ring-ic{width:1.625rem;height:1.625rem;fill:none;stroke:var(--me-ink);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round} .st-ret.is-hint .st-ring-ic{stroke:var(--ink-faint)}
.st-ret-text{display:flex;flex-direction:column;gap:.125rem;min-width:0}
.st-ret-n{margin:0;display:flex;align-items:baseline;gap:.5rem;line-height:1;white-space:nowrap} .st-ret-n b{font-size:2.25rem;font-weight:400;font-family:var(--font-display);color:var(--me-ink);font-variant-numeric:tabular-nums;animation:num-pop 500ms var(--ease-bounce) 900ms both}
.st-ret-n small{font-size:var(--t-xs);font-weight:400;font-family:var(--font-display);color:var(--ink-soft);font-variant-numeric:tabular-nums} .st-ret.is-hint .st-ret-n small{font-size:var(--t-sm);color:var(--me-ink);line-height:1.3}      /* under 10 chances: the coaching line in the player's blue, as on the empty tiles */
.st-figs{margin:0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.375rem;min-width:0}
.st-fig{display:flex;flex-direction:column-reverse;align-items:center;justify-content:center;gap:.1875rem;min-width:0;padding:.375rem .25rem;border-radius:var(--r-md);background:var(--sky-1);box-shadow:inset 0 0 0 .125rem var(--sky-2);text-align:center;line-height:1.1}      /* dt before dd for screen readers, the number on top for the eye */
.st-fig dd{margin:0;font-size:1.3125rem;font-weight:400;font-family:var(--font-display);color:var(--me-ink);font-variant-numeric:tabular-nums;white-space:nowrap} .st-fig dt{max-width:100%;font-size:max(11px,.75rem);font-weight:400;font-family:var(--font-display);letter-spacing:.04em;text-transform:uppercase;color:var(--ink-soft);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@container (max-width:57rem) { .st-figs{grid-template-columns:repeat(3,minmax(0,1fr))} }      /* 3x2 once six would squeeze a label: rem for the scaled type, px for the 11px floor (1366x500, 1024x768) */
@container (max-width:800px) { .st-figs{grid-template-columns:repeat(3,minmax(0,1fr))} }
@media (min-width:761px) and (max-height:560px) { .st-figs{grid-template-columns:repeat(6,minmax(0,1fr))} .st-fig{padding:.375rem .125rem} .st-fig dt{font-size:max(10px,.6875rem);letter-spacing:0} .st-play{column-gap:var(--s-3)} .st-ret{gap:.5rem;padding-right:var(--s-3)} .st-ret-n{flex-direction:column;align-items:flex-start;gap:.125rem} .st-ret-n b{font-size:1.75rem} .st-ring{width:3rem;height:3rem} }      /* a short landscape window (1366x500): the six stay one row, ~56 px, not a 2x3 block of ~88; "N of M returned" goes under the % to leave them room */
@keyframes st-ring{from{stroke-dasharray:0 100}}
@keyframes st-rays{to{scale:1;opacity:.55}} @keyframes st-swing{from{opacity:0;transform:rotate(-6deg) translateY(-.75rem)}} @keyframes st-flicker{50%{transform:scale(1.15) rotate(5deg)}}
@keyframes st-track{from{transform:scaleX(0)}}
@media (prefers-reduced-motion:reduce){ .st *,.st *::before,.st *::after{animation:none!important} .st-rays{scale:1;opacity:.55} .st-bar i{transform:none} }
/* a phone: one column. The hero stacks, the Matt chips drop under the badge, the tiles become rows */
@media (max-width:760px){
  .st{padding:var(--s-5) var(--s-4)!important;gap:var(--s-2)!important}
  .st-hero{grid-template-columns:auto minmax(0,1fr);grid-template-rows:none;padding:var(--s-4)} .st-crest,.st-rank,.st-streak,.st-road{grid-row:auto} .st-crest{width:5.5rem;height:5.5rem} .st-crest .st-disc{width:5rem;height:5rem} .st-rank-name{font-size:var(--t-xl);white-space:normal} .st-streak{grid-column:2;min-width:0;justify-self:start;align-items:flex-start} .st-road{grid-column:1/-1;justify-self:center}      /* a phone: the pill under the bar, on the rank column's left edge */ .st-ribbon{height:2.5rem} .st-step{width:3rem;height:3rem;--em-h:2.75rem} .st-step .rank-em.is-md{width:2.5rem;height:2.5rem} .st-ribbon{font-size:var(--t-md);padding:0 1.25rem}
  .st-matt{grid-template-columns:auto minmax(0,1fr);row-gap:.5rem} .st-mlevels{grid-column:1/-1;grid-template-columns:repeat(4,minmax(0,1fr))} .st-mlv{min-width:0}
  .st-people{grid-template-columns:1fr;grid-template-areas:"h" "wl" "bar" "chips"} .st-bar{margin-bottom:1.25rem}
  .pf-acct{flex-wrap:wrap;flex:1 1 auto} .pf-acct > .pf-signout,.pf-acct > .pf-signin{flex:1 1 auto}      /* a phone: the buttons share a row, wrapping when they must, and stretch to the cards' right edge (NOTES 139) */
  .st-play{grid-template-columns:1fr;row-gap:.5rem} .st-ret{padding:0 0 .5rem;border-right:0;border-bottom:.125rem solid var(--sky-2)}      /* the ring over the figures */
  .st-tiles{grid-template-columns:1fr} .st-tile{display:grid;grid-template-columns:2.5rem minmax(0,1fr) auto;grid-template-areas:"b l n" "b c n";column-gap:.75rem;align-items:center;min-height:4.5rem;padding:var(--s-2) var(--s-4)}
  .st-badge{position:static;grid-area:b} .st-tile .caps{grid-area:l} .st-cap{grid-area:c} .st-num{grid-area:n;margin:0} .st-num b{font-size:2.25rem} .st-cap{flex-wrap:wrap;row-gap:.25rem}      /* a row keeps its gold chip (a best has to look won); it wraps under the caption when the row is too narrow for both */
}

/* the account cards (9.5, 9.7): one at a time, over everything (the result card too, which keeps its own buttons), on the lobby's frosted veil like .ask */
.acct-layer{position:fixed;inset:0;z-index:calc(var(--z-toast) + 1);display:grid;place-items:center;padding:var(--edge);background:rgba(232,243,249,.72);overscroll-behavior:contain}
.acct-card{position:relative;width:min(30rem,100%);max-height:calc(100dvh - 2 * var(--edge));overflow-y:auto;padding:var(--s-5);text-align:left;outline:0;box-shadow:var(--sh-3), inset 0 0 0 .1875rem #fff}
@media (max-width:480px){ .acct-card{width:min(100%,calc(100vw - 2 * var(--s-5)))} }      /* a phone: the lobby panels' edges (NOTES 139) */
.acct-body{display:flex;flex-direction:column;gap:var(--s-3)}
.acct-body h2{margin:0;font-size:var(--t-lg);font-weight:400;font-family:var(--font-display);line-height:1.2;color:var(--ink-strong)}
.acct-body p{margin:0;font-size:var(--t-sm);line-height:1.5;color:var(--ink)}
.acct-head{display:flex;align-items:center;justify-content:space-between;gap:var(--s-3)} .acct-close{width:2.5rem;height:2.5rem;box-shadow:var(--sh-1), var(--inner-hi)} .acct-close svg{width:1.125rem;height:1.125rem}      /* the one way out, where every dialog has it */
.acct-fine{font-size:var(--t-xs)!important;line-height:1.45;color:var(--ink-soft)!important} .acct-fine .foot-link{font-size:inherit;font-weight:400;font-family:var(--font-display)}      /* the footer's own line, in the footer's own size */
.signin-google{display:grid;place-items:center;min-height:3.5rem}
.signin-btn{display:flex;justify-content:center;min-height:44px}
.acct-err{font-weight:400;font-family:var(--font-display);color:var(--bad-deep)!important} .acct-err:empty{display:none}
.acct-btns{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:var(--s-3);margin-top:var(--s-2)!important}
.acct-body .field{width:100%}
/* the share sheet (docs/SHARE.md 3): the account card's look, a little wider for the picture */
.share-card{width:min(34rem,100%)}
.share-prev{position:relative;margin:0;aspect-ratio:1200/630;border-radius:var(--r-md);overflow:hidden;background:var(--sky-2);box-shadow:var(--sh-1), inset 0 0 0 .125rem var(--sky-3)}
.share-prev img{display:block;width:100%;height:100%;object-fit:cover;transition:opacity var(--d-med) var(--ease-soft)} .share-prev.is-loading img,.share-prev.is-broken img{opacity:0}
.share-prev.is-loading::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(255,255,255,.75),transparent);transform:translateX(-100%);animation:skel 1.2s linear infinite}      /* the skeleton until the picture lands */
.share-prev figcaption{display:none} .share-prev.is-broken figcaption{position:absolute;inset:0;display:grid;place-items:center;padding:var(--s-4);text-align:center;font-size:var(--t-sm);font-weight:400;font-family:var(--font-display);color:var(--ink-soft)}
.acct-body .share-lead{font-size:var(--t-sm);font-weight:400;font-family:var(--font-display);color:var(--ink-soft)}
.share-urlrow{display:flex;gap:var(--s-2)} .acct-body .share-urlrow .field{flex:1;min-width:0;width:auto;height:2.75rem;padding:0 1rem;font-size:var(--t-sm);font-weight:500;color:var(--ink-strong);-webkit-user-select:text;user-select:text;text-overflow:ellipsis}
.share-copy{min-width:7.5rem;padding:0 1.25rem} .share-copy.is-done{color:var(--good-deep);border-color:var(--good)}
.share-btns{display:flex;flex-wrap:wrap;gap:var(--s-2)} .share-btns .btn{flex:1 1 auto;gap:.5rem;padding:0 1rem;font-size:var(--t-sm)} .share-btns svg{width:1.125rem;height:1.125rem;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;flex:none}
.share-lnk{appearance:none;border:0;background:none;padding:.25rem 0;min-height:44px;font:400 var(--t-sm)/1.3 var(--font-display);color:var(--line-deep);text-align:left;text-decoration:underline;text-decoration-thickness:.125rem;text-underline-offset:.2em;cursor:pointer;outline:0} .share-lnk:focus-visible{border-radius:.25rem;box-shadow:var(--glow)}
.share-lnk.is-quiet{flex:none;font-size:var(--t-xs);font-weight:400;font-family:var(--font-display);color:var(--ink-soft)}
.acct-body .share-foot{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:0 var(--s-3);padding-top:0;border-top:.125rem solid var(--sky-2);font-size:var(--t-xs);color:var(--ink-soft)}      /* the quiet end of the card: who can see it, and the way out */
.acct-body .share-confirm{justify-content:flex-end;gap:var(--s-2);padding-top:var(--s-2)} .share-confirm span{flex:1 1 100%;padding:.25rem 0;font-weight:400;font-family:var(--font-display);color:var(--ink)}
body:has(> #acct-layer:not([hidden])) .toast{z-index:calc(var(--z-toast) + 2)}      /* "Link copied" shows over the sheet, not under its veil */
@media (prefers-reduced-motion:reduce){ .share-prev.is-loading::after,.pf-share:hover .pf-share-ic svg{animation:none} }

/* Settings > You: the delete-or-keep question under the switch, a line of its own */
#set-account span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400;font-family:var(--font-display)}
#set-account .btn{height:max(2.25rem,44px);padding:0 1rem;flex:none}

/* the home notice (9.9), under the safety one: the same card, a little quieter */
.name-row #btn-name-change{flex:none;height:max(2.5rem,44px);padding:0 1.125rem}

/* ==========================================================================================================
   THE TROPHY ROW (docs/TROPHIES.md 4; docs/RANKED.md 8.9, 8.10 for the beats): on the ordinary result card of every game, and the rank-up ceremony. Every beat is
   transform / opacity; no backdrop-filter; the count-up is a counter drawn over a number that is final from its first frame (the reduced-motion block at the top clamps the rest).
   ========================================================================================================== */
.rally small{white-space:nowrap}
.result-note-sub{display:block;margin-top:.25rem;font-size:var(--t-sm);font-weight:400;font-family:var(--font-display);color:var(--ink-soft)}      /* under 'Gold I': what the rank means */
/* ---- the trophy moment (8.9, 8.10; NOTES 117): the hero of the card. One centred row: the rank's emblem card (5rem emblem, its name and division
   tag), the total in tally digits over the word 'trophies', the change as a pill with the Rank up / Division up pill under it. The total is final from
   frame one; the counter rolls over it from 1100 ms for 900 ms. A small line under the row says why when nothing changed, or what a new rank means */
.trophy{display:flex;flex-direction:column;align-items:center;gap:.375rem;margin:calc(var(--s-3) * -1) auto var(--s-4)}
.trophy-row{display:flex;align-items:center;justify-content:center;gap:1.25rem}
.trophy-em{position:relative;display:inline-grid;place-items:center;isolation:isolate}
.trophy-em .rank-card-em{position:relative;z-index:1;gap:.625rem} .trophy-em .rank-card-em > b{font-size:max(var(--t-md),13px)}      /* 'Silver III' under the emblem, clear of the tag; never under 12 px at the 10px root */
.trophy-em .rank-em{position:relative;z-index:1;filter:drop-shadow(0 .25rem .375rem rgba(20,60,90,.22))} .trophy-em .rank-card-em::after{z-index:2}      /* the division tag stays over the (grown) emblem */
.trophy-em .medal-rays{top:2.5rem;bottom:auto;width:12rem;height:12rem;margin:-6rem 0 0 -6rem;z-index:0}      /* centred on the emblem (not on the card with its label) */
.trophy-em .rank-em.is-down{animation:rank-down 300ms var(--ease-soft) both}
.trophy-em.is-up .rank-em{scale:1.12;filter:drop-shadow(0 0 .75rem color-mix(in srgb,var(--rank-mid,#ffd34a) 75%,transparent)) drop-shadow(0 .25rem .375rem rgba(20,60,90,.22))}      /* a rank up: the new emblem grows and keeps a halo in its colour (static: glows never animate) */
.rank-card-em.is-flip::after{animation:div-flip 520ms var(--ease-bounce) both}      /* a division up: the numeral flips on its tag */
@keyframes div-flip{0%{opacity:0;scale:1 0}55%{opacity:1;scale:1.25 1.25}100%{opacity:1;scale:1}}
.trophy-count{display:flex;flex-direction:column;align-items:center;gap:.25rem}
.trophy-n{position:relative;font-size:5rem;font-weight:400;font-family:var(--font-display);line-height:1;color:var(--warn-deep);font-variant-numeric:tabular-nums;min-width:2.5ch;text-align:center}      /* tally digits, in trophy gold */
.trophy-n::before{content:counter(n);counter-reset:n var(--n);position:absolute;inset:0;text-align:center;color:var(--warn-deep);opacity:0;pointer-events:none}
.trophy-word{font-size:max(var(--t-xs),12px);font-weight:400;font-family:var(--font-display);line-height:1;letter-spacing:var(--track-caps);text-transform:uppercase;color:var(--ink-soft)}
.trophy-pills{position:relative;display:flex;flex-direction:column;align-items:center;margin-bottom:1.25rem}      /* the pill sits level with the digits' middle; the kicker hangs under it without moving the row */
.trophy-pills .rank-kicker{position:absolute;left:50%;top:calc(100% + .5rem);translate:-50% 0;margin:0;background:color-mix(in srgb,var(--rank-c,var(--gold-4)) 85%,#000)}      /* the rim colour 15% darker, as the rank's other inks: white on it reads at every rank (Silver too) */
.trophy-d{display:inline-flex;align-items:center;height:2.125rem;padding:0 .875rem;border-radius:var(--r-pill);font-size:var(--t-lg);font-weight:400;font-family:var(--font-display);font-variant-numeric:tabular-nums;background:var(--sky-2);color:var(--ink-soft);border:.125rem solid var(--line-faint)}
.trophy-d.is-up{background:#e6f9ee;color:var(--good-deep);border-color:#bfeccf} .trophy-d.is-down{background:#fdecec;color:var(--bad-deep);border-color:#f7c8c8} .trophy-d.is-off{font-size:max(var(--t-md),12px)}
.trophy-note{font-size:max(var(--t-sm),12px);font-weight:400;font-family:var(--font-display);color:var(--ink-soft)} .trophy-note:empty{display:none}
/* the count-up (NOTES 203, ui.js rollTrophies): the real digits go clear while a layer over them climbs one trophy at a time, pulsing on every step; the land is a bigger pop */
.trophy-count{position:relative} .trophy.is-rolling .trophy-n{color:transparent}
.trophy-roll{position:absolute;left:0;right:0;top:0;font-size:5rem;font-weight:400;font-family:var(--font-display);line-height:1;color:var(--warn-deep);font-variant-numeric:tabular-nums;text-align:center;pointer-events:none;transform-origin:50% 60%} #screen-match .trophy-roll{font-size:4rem}
.trophy-roll.is-tick{animation:trophy-tick 160ms var(--ease-out)} @keyframes trophy-tick{0%{scale:1.14;filter:brightness(1.25)}100%{scale:1;filter:none}}
.trophy-n.is-land{animation:trophy-land 520ms var(--ease-bounce)} @keyframes trophy-land{0%{scale:1.32;filter:brightness(1.4) drop-shadow(0 0 .75rem rgba(255,211,74,.9))}60%{scale:.96}100%{scale:1;filter:none}}
.trophy.is-landed .trophy-d.is-up{animation:trophy-pill-land 420ms var(--ease-bounce)} @keyframes trophy-pill-land{0%{scale:1.3}100%{scale:1}}
.trophy-fly{position:fixed;z-index:calc(var(--z-screen) + 5);width:1.5rem;height:1.5rem;margin:-.75rem 0 0 -.75rem;pointer-events:none}
/* the menu's haul (NOTES 203): bigger cups (half as big again) hovering over Quick play under the "+38", which fades before they leave */
.lobby .trophy-fly,body[data-screen="lobby"] .trophy-fly{width:2.25rem;height:2.25rem;margin:-1.125rem 0 0 -1.125rem}
.trophy-fly.is-hover{animation:cup-hover 900ms ease-in-out infinite alternate} @keyframes cup-hover{from{translate:0 -.2rem;rotate:-6deg}to{translate:0 .2rem;rotate:6deg}}
.trophy-haul{position:fixed;z-index:calc(var(--z-screen) + 6);translate:-50% -50%;font-size:3.5rem;font-weight:400;font-family:var(--font-display);line-height:1;color:#fff;text-shadow:0 .375rem 0 var(--gold-4), 0 .75rem 1.25rem rgba(120,80,0,.35);pointer-events:none;
  animation:haul-in 420ms var(--ease-bounce) both;transition:opacity 360ms var(--ease-soft), translate 360ms var(--ease-soft)} .trophy-haul.is-gone{opacity:0;translate:-50% -90%}
@keyframes haul-in{0%{opacity:0;scale:.4}100%{opacity:1;scale:1}} .trophy-fly .cup-ic{width:100%;height:100%;filter:drop-shadow(0 .125rem .25rem rgba(120,80,0,.4))}
.screen.is-active .trophy-row{animation:ov-title-pop 420ms var(--ease-bounce) 900ms both} .screen.is-active .trophy-d{animation:ov-trophy-pop 420ms var(--ease-bounce) 1000ms both} .screen.is-active .trophy-note{animation:ov-title-pop 360ms var(--ease-bounce) 1100ms both}
@keyframes ov-trophy-pop{0%{opacity:0;scale:.4}60%{opacity:1;scale:1.15}100%{opacity:1;scale:1}}
@keyframes rank-down{0%{transform:scale(1)}100%{transform:scale(.9)}}
/* ---- rank up (8.10): the stamp in the rank's colour, rays behind the new emblem */
.trophy-em .medal-rays.is-on{animation:ov-rays-in 420ms var(--ease-bounce) both, ov-spin 8s linear 420ms infinite;background:repeating-conic-gradient(var(--rank-ray,rgba(255,211,74,.55)) 0 7deg,transparent 7deg 20deg)}
@media (max-width:700px){ .trophy-note,.result-note-sub{font-size:max(var(--t-sm),12px)} .result-card.has-trophies h2{font-size:3rem} }
.trophy.is-none .trophy-row{display:none} .trophy.is-none .trophy-note{font-size:max(var(--t-md),12px)}      /* a guest, or an account without a username: one quiet line where the row would be (Sign in to earn trophies) */

/* ==================== the polish pass (NOTES 117). The drama is the emblem, light, motion and layout; never a text slam (NOTES 104) ==================== */
/* a card with a trophy row (.has-trophies, ui.trophyRow) pays for it in rem (1440x900 and 1280x720 share one 52.9rem budget; 1366x600 too): a smaller medal and less
   room around it, a shorter title, the points in 5rem digits. A forfeit's 'Priyanka left' stays in sight */
.result-card.has-trophies{margin-top:5rem;padding-top:6.25rem;padding-bottom:var(--s-6)} .result-card.has-trophies .medal{scale:1}
.result-card.has-trophies .tally-num{font-size:5rem;min-width:5.5rem} .result-card.has-trophies h2{font-size:3.25rem;margin-inline:calc(-1 * var(--s-5));text-wrap:balance} .result-card.has-trophies.is-lose h2{font-size:3rem}
#result-note.is-quiet{position:absolute;width:1px;height:1px;margin:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* the emblems beside the tally names at .is-md, with their division tags; they hang into the row's padding rather than growing it */
.tally-side .rank-badge{margin-block:-.5rem}
/* beside a name in a score tab (.is-xs) only the emblem shows: the generic [data-div]::after rule was drawing the numeral there as bare text under it */
.rank-badge:not(:has(> .is-md, > .is-lg, > .is-xl))::after{content:none}

.ranks-card.is-now{background:linear-gradient(180deg,#fff 0%,color-mix(in srgb,var(--rank-mid,var(--line)) 18%,#fff) 100%)}      /* your own rank's card, tinted in its colour */
@media (prefers-reduced-motion: reduce){ .rank-card-em.is-flip::after{animation:none!important} .trophy-em.is-up .rank-em{scale:1.12} }

/* ---------- Your stats: the crest wears the rank's emblem (one rank per player; ui.rankCrest, docs/TROPHIES.md 4) ---------- */
.st-crest.has-rank .st-disc{display:none}      /* the metal medal of NOTES 107 made way for the ladder's own emblem */
.st-em{position:relative;display:grid;place-items:center;--em-h:5rem;--div-fs:max(.875rem,11px)}
.st-em .rank-em{width:5.25rem;height:5.25rem;filter:drop-shadow(0 .25rem .5rem rgba(20,60,90,.25))}
.st-em[data-div]::after{position:absolute;left:50%;top:var(--em-h);translate:-50% -62%;display:inline-grid;place-items:center;height:1.1em;min-width:1.5em;padding:0 .35em;border-radius:var(--r-pill);background:#fff;color:color-mix(in srgb,var(--rank-ink,var(--ink-strong)) 85%,#000);
  font:400 var(--div-fs)/1 var(--font-display);letter-spacing:.06em;box-shadow:0 .0625rem .1875rem rgba(20,60,90,.35), inset 0 0 0 .0625rem rgba(20,60,90,.12);pointer-events:none;white-space:nowrap}
@media (max-width:900px){ .st-em .rank-em{width:4.5rem;height:4.5rem} .st-em{--em-h:4.25rem} }
/* the rest of the hero (docs/TROPHIES.md 4, ui.rankCrest): the line to the next step beside the count ('270 [cup] · 10 to Gold III'); the keep line and 'Best: Platinum I' under the bar;
   the trophy road under the streak, eight medals in one row (reached ones lit, the current one ringed and breathing with its division numeral, the rest wait at 45 %). Sized so the
   rank column stays the hero's tallest and the card fits 1280x800 whole (NOTES 145). No trophies yet: the count, its cup and the bar go */
.st-next{font-size:var(--t-sm);font-weight:400;font-family:var(--font-display);color:var(--ink-soft);white-space:nowrap} .st-next::before{content:"· "} .st-next[hidden]{display:none}
.st-road{display:flex;flex-wrap:wrap;justify-content:center;gap:.25rem;margin:0;padding:0;list-style:none}
.st-step{position:relative;display:grid;place-items:center;width:2.5rem;height:2.5rem;border-radius:var(--r-md);border:.125rem solid transparent;opacity:.45;transition:opacity var(--d-med) var(--ease-soft);--em-h:2.25rem;--div-fs:max(.6875rem,11px)}
.st-step .rank-em.is-md{width:2rem;height:2rem;filter:drop-shadow(0 .125rem .1875rem rgba(20,60,90,.2))}
.st-step.is-done,.st-step.is-now{opacity:1}
.st-step.is-now{border-color:var(--line);background:linear-gradient(180deg,#fff,var(--sky-2));box-shadow:var(--sh-1)} .st-step.is-now .rank-em{scale:1.1}
.st-step.is-now::before{content:"";position:absolute;inset:-.125rem;border-radius:inherit;box-shadow:var(--glow);opacity:.8;pointer-events:none;animation:glow-pulse var(--d-pulse) var(--ease-soft) infinite}
.st-best{margin-top:.25rem;font-size:var(--t-xs);line-height:1.3;font-weight:400;font-family:var(--font-display);color:var(--me-ink)} .st-best[hidden]{display:none}
/* the (i) beside the rank: opens the Ranks page, where how ranks work is written once (NOTES 158) */
.st-info{flex:none;width:2rem;height:2rem;padding:0;border:0;border-radius:50%;display:grid;place-items:center;background:none;color:var(--ink-soft);cursor:pointer;outline:none;transition:color var(--d-fast),background var(--d-fast)} .st-info svg{width:1.5rem;height:1.5rem;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.st-info:hover,.st-info:focus-visible{color:var(--line-deep);background:#fff;box-shadow:var(--glow)}
.conn-help svg{width:1.5rem;height:1.5rem;fill:none;stroke:currentColor;stroke-width:2.25;stroke-linecap:round}      /* Getting ready: How to play in a new tab, so the pairing QR keeps its session */
.st-mtext small:empty,.st-cap:empty,.pf-who small:empty,.st-ret-n small:empty{display:none}
.st-mlv small i{display:inline-flex;align-items:center;gap:.0625rem;margin-left:.375rem;vertical-align:baseline} .st-mlv .st-flame{width:.875rem;height:.875rem;fill:var(--them);stroke:var(--them-deep)}
.st-hero.is-none .st-rank-cap > .st-tro,.st-hero.is-none .st-rank-bar{display:none}

/* ---------- The Ranks page (#lobby-ranks): every medal to win. Opened from the crest on Your stats ---------- */
.ranks-view{gap:var(--s-3)!important;padding:var(--s-5) var(--s-6)!important;max-height:calc(100dvh - 11rem);overflow-y:auto;overscroll-behavior:contain}
.ranks-lead{margin:0;text-align:center;color:var(--ink-soft);font-weight:400;font-family:var(--font-display)}
.ranks-grid{list-style:none;width:100%;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--s-3)}      /* eight medals (NOTES 124): 4 + 4, or 2 a row on a narrow window (never a lone straggler) */
@media (max-width:900px){ .ranks-grid{grid-template-columns:repeat(2,minmax(0,1fr))} }
.ranks-card{position:relative;min-width:0;display:flex;flex-direction:column;align-items:center;gap:.3rem;padding:var(--s-3) var(--s-3) var(--s-4);border-radius:var(--r-lg);
  background:linear-gradient(180deg,#fff,var(--sky-1));border:.125rem solid var(--line-faint);box-shadow:var(--sh-1);animation:hm-tile 520ms var(--ease-bounce) backwards}
.ranks-card:nth-child(2){animation-delay:50ms} .ranks-card:nth-child(3){animation-delay:100ms} .ranks-card:nth-child(4){animation-delay:150ms} .ranks-card:nth-child(5){animation-delay:200ms} .ranks-card:nth-child(6){animation-delay:250ms} .ranks-card:nth-child(7){animation-delay:300ms} .ranks-card:nth-child(8){animation-delay:350ms}
.ranks-card .rank-em{width:5.25rem;height:5.25rem;filter:drop-shadow(0 .25rem .45rem rgba(20,60,90,.22))}
.ranks-name{font-size:var(--t-lg);font-weight:400;font-family:var(--font-display);color:color-mix(in srgb,var(--rank-ink,var(--ink-strong)) 85%,#000);line-height:1.1}
.ranks-from{color:var(--ink-soft);font-weight:400;font-family:var(--font-display);font-size:var(--t-sm)}
.ranks-divs{display:flex;justify-content:center;gap:.5rem;margin-top:.15rem}
.ranks-evo{display:flex;flex-direction:column;align-items:center;gap:.125rem;min-width:0}      /* a division: its evolved medal, its numeral, the count it starts at (NOTES 124) */
.ranks-card .ranks-evo .rank-em{width:2.5rem;height:2.5rem;filter:drop-shadow(0 .125rem .1875rem rgba(20,60,90,.2))}
.ranks-at{font:400 max(var(--t-xs),11px)/1.2 var(--font-display);color:var(--ink-soft);font-variant-numeric:tabular-nums}
.ranks-div{padding:.1rem .45rem;border-radius:var(--r-pill);font:400 max(var(--t-xs),11px)/1.4 var(--font-display);font-variant-numeric:tabular-nums;color:var(--ink-soft);background:var(--sky-2);white-space:nowrap}
.ranks-div.is-on{background:color-mix(in srgb,var(--rank-ink,var(--line-deep)) 85%,#000);color:#fff}      /* white on the darkened rim colour: 5:1 and up for every rank */
.ranks-tag{margin-top:.2rem;padding:.15rem .6rem;border-radius:var(--r-pill);font:400 max(var(--t-xs),11px)/1.4 var(--font-display);letter-spacing:.04em;background:var(--sky-2);color:var(--ink-soft)}
.ranks-tag.is-keep{background:var(--good-deep);color:#fff;opacity:.85} .ranks-tag.is-now{background:color-mix(in srgb,var(--rank-ink,var(--line-deep)) 85%,#000);color:#fff}
.ranks-card.is-now{border-color:var(--rank-ink,var(--line));box-shadow:var(--sh-2),0 0 0 .25rem color-mix(in srgb,var(--rank-mid,var(--line)) 35%,transparent);transform:translateY(-.25rem)}
.ranks-card.is-done{border-color:var(--line-soft)}
.ranks-note{margin:0;text-align:center}
@media (max-width:900px){ .ranks-card .rank-em{width:4.25rem;height:4.25rem} .ranks-view{padding:var(--s-5) var(--s-4)!important} }
@media (prefers-reduced-motion: reduce){ .ranks-card{animation:none} .ranks-card.is-now{transform:none} }
/* the medal is a link to the Ranks page: a pointer, a small lift on hover, the focus halo on the keyboard */
.st-crest.is-link{cursor:pointer;border-radius:var(--r-lg);transition:scale var(--d-fast) var(--ease-bounce)}
@media (hover:hover){ .st-crest.is-link:hover{scale:1.05} }
.st-crest.is-link:active{scale:.96} .st-crest.is-link:focus-visible{outline:none;box-shadow:var(--glow)}


/* the rank-up's words (no stamp since NOTES 104): a sentence-case chip on the result card's trophy line (ua-views.css draws it; no tracked caps, owner 2026-11-16) */
.rank-kicker{display:inline-grid;place-items:center;height:1.9rem;padding:0 .75rem;margin-left:.5rem;border-radius:var(--r-pill);font:400 max(var(--t-sm),12px)/1 var(--font-display);color:#fff;background:var(--rank-c,var(--gold-4));box-shadow:var(--sh-1);vertical-align:middle;white-space:nowrap}
.rank-kicker.ov-pop{animation:num-pop 450ms var(--ease-bounce)}
@media (prefers-reduced-motion: reduce){ .rank-kicker.ov-pop{animation:none} }


/* ---------- the global leaderboard (NOTES 126): a Global line, three tabs, the top 100 in a scrolling list, the You bar, the show-me switch ---------- */
.lb-view{gap:var(--s-3)!important;padding:var(--s-5) var(--s-6)!important;max-height:calc(100dvh - 11rem);min-height:0;align-items:center}
.lb-scope{margin:0;display:inline-flex;align-items:center;gap:.5rem;padding:var(--s-1) var(--s-4) var(--s-1) var(--s-2);border-radius:var(--r-pill);background:var(--sky-2);color:var(--ink-soft);font-weight:400;font-family:var(--font-display);font-size:var(--t-sm)}
.lb-scope b{color:var(--line-deep);font-weight:400;font-family:var(--font-display);letter-spacing:.08em;text-transform:uppercase}
.lb-globe,.st-place svg{width:1.35rem;height:1.35rem;flex:none;fill:none;stroke:var(--line-deep);stroke-width:2;stroke-linecap:round}
.lb-tabs{align-self:center;margin:0 auto} .lb-tabs .seg-opt{min-width:0;padding:0 1.5rem}
.lb-what{margin:0;color:var(--ink-soft);font-weight:400;font-family:var(--font-display);font-size:var(--t-sm)}
.lb-wrap{position:relative;width:min(40rem,100%);flex:1 1 auto;min-height:8rem;display:flex;flex-direction:column}
.lb-list{list-style:none;margin:0;padding:.25rem;display:flex;flex-direction:column;gap:.375rem;overflow-y:auto;overscroll-behavior:contain;flex:1 1 auto;min-height:0;max-height:24rem}
.lb-row,.lb-you{display:grid;grid-template-columns:3.25rem minmax(0,1fr) auto;align-items:center;gap:.75rem;min-height:3.25rem;padding:.25rem 1rem .25rem .5rem;border-radius:var(--r-lg);background:#fff;border:.125rem solid var(--line-faint);box-shadow:var(--sh-1)}
/* the rows are buttons (NOTES 140): li.lb-item > button.lb-row, like the court list. The entrance is the li's (nth-child counts li's) */
.lb-item{display:block;animation:lb-in 360ms var(--ease-out) backwards} .lb-item:nth-child(2){animation-delay:30ms} .lb-item:nth-child(3){animation-delay:60ms} .lb-item:nth-child(n+4){animation-delay:90ms}
button.lb-row{appearance:none;-webkit-appearance:none;width:100%;margin:0;font:inherit;color:inherit;text-align:left;cursor:pointer;outline:0;-webkit-tap-highlight-color:transparent;
  grid-template-columns:3.25rem minmax(0,1fr) auto .5rem;transition:transform var(--d-fast) var(--ease-bounce),border-color var(--d-fast),box-shadow var(--d-fast)}
button.lb-row::after{content:"";justify-self:end;width:.45rem;height:.45rem;border:solid var(--line-deep);border-width:.1875rem .1875rem 0 0;border-radius:.0625rem;rotate:45deg;translate:-.125rem 0;opacity:.45;transition:opacity var(--d-fast),translate var(--d-fast) var(--ease-bounce)}      /* a chevron: it opens something */
@media (hover:hover){ button.lb-row:hover{border-color:var(--line);box-shadow:var(--sh-1),0 0 0 .1875rem color-mix(in srgb,var(--line) 35%,transparent);transform:translateY(-.0625rem)} button.lb-row:hover::after{opacity:1;translate:0 0} }      /* a tight ring, not --glow: the list scrolls with .25rem of padding and would clip a 1.5rem glow */
button.lb-row:focus-visible{outline:.1875rem solid var(--line-deep);outline-offset:0} button.lb-row:focus-visible::after{opacity:1;translate:0 0}      /* focus has its own mark, a solid deep ring (inside the list's .25rem padding): the pale ring is my own row's at rest, the tight one is hover */
button.lb-row:active{transform:scale(.985)}
.lb-you.is-link{cursor:pointer;-webkit-tap-highlight-color:transparent;outline:0;transition:transform var(--d-fast) var(--ease-bounce)}      /* the You card opens my profile card when I am on the board (NOTES 141): the rows' hover, focus and press */
@media (hover:hover){ .lb-you.is-link:hover{box-shadow:var(--sh-1),0 0 0 .1875rem color-mix(in srgb,var(--line) 60%,transparent);transform:translateY(-.0625rem)} }
.lb-you.is-link:focus-visible{outline:.1875rem solid var(--line-deep);outline-offset:0} .lb-you.is-link:active{transform:scale(.985)}
@media (prefers-reduced-motion:reduce){ .lb-you.is-link{transition:none} .lb-you.is-link:hover,.lb-you.is-link:active{transform:none} }
button.lb-row.is-me:hover{box-shadow:var(--sh-1),0 0 0 .1875rem color-mix(in srgb,var(--line) 60%,transparent)}
@media (prefers-reduced-motion:reduce){ .lb-item{animation:none} button.lb-row,button.lb-row::after{transition:none} button.lb-row:hover,button.lb-row:active{transform:none} }
@keyframes lb-in{from{opacity:0;translate:0 .5rem}}
.lb-rank{justify-self:center;min-width:2.25rem;height:2.25rem;padding:0 .4rem;display:grid;place-items:center;border-radius:var(--r-pill);font:400 var(--t-md)/1 var(--font-display);font-variant-numeric:tabular-nums;color:var(--ink-soft);background:var(--sky-2)}
.lb-row.is-top1 .lb-rank{background:linear-gradient(180deg,var(--gold-1),var(--gold-2) 55%,var(--gold-3));color:var(--warn-deep);box-shadow:0 .125rem 0 rgba(201,127,8,.3)}
.lb-row.is-top2 .lb-rank{background:linear-gradient(180deg,#fff,var(--silver-2) 55%,var(--silver-3));color:var(--silver-4)}
.lb-row.is-top3 .lb-rank{background:linear-gradient(180deg,#f6c39a,#d98a4e 55%,#b8662a);color:#fff}
.lb-row.is-top1{border-color:var(--gold-2)}
.lb-who{display:flex;align-items:center;gap:.4rem;min-width:0}
.lb-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400;font-family:var(--font-display);color:var(--ink-strong)}
.cup-ic{flex:none;width:1.25em;height:1.25em;overflow:visible;filter:drop-shadow(0 .0625rem 0 rgba(201,127,8,.35))} .cup-ic .cup-h{fill:none;stroke:var(--gold-3);stroke-width:2;stroke-linecap:round} .cup-ic .cup-c{fill:var(--gold-2);stroke:var(--gold-3);stroke-width:1.2;stroke-linejoin:round} .cup-ic .cup-s{fill:var(--gold-3)} .cup-ic .cup-b{fill:var(--gold-4)} .cup-ic .cup-g{fill:none;stroke:#fff;stroke-width:1.3;stroke-linecap:round;opacity:.75}      /* the trophy icon in place of the word trophies (NOTES 136) */
.st-rank-cap .cup-ic{width:1.5rem;height:1.5rem;margin-left:-.125rem} .cup{display:inline-flex;vertical-align:-.22em;margin:0 .06em;font-style:normal} .cup .cup-ic{width:1.25em;height:1.25em}      /* the icon inside a sentence (ui.js cupify, NOTES 138) */
.trophy-word .cup .cup-ic{width:2.4em;height:2.4em}
.lb-cup{display:inline-flex;vertical-align:-.2em;margin-left:.25rem} .lb-cup .cup-ic{width:1.35rem;height:1.35rem}
.lb-v{white-space:nowrap;color:var(--ink-soft);font-weight:400;font-family:var(--font-display);font-size:var(--t-sm)} .lb-v b{font-size:var(--t-lg);font-weight:400;font-family:var(--font-display);color:var(--ink-strong);font-variant-numeric:tabular-nums}
.lb-row.is-me,.lb-you.is-on{border-color:var(--line);background:linear-gradient(180deg,#fff,#eef7fc);box-shadow:var(--sh-1),0 0 0 .1875rem color-mix(in srgb,var(--line) 30%,transparent)}
.lb-state{position:absolute;inset:0;margin:0;display:grid;place-items:center;text-align:center;color:var(--ink-soft);font-weight:400;font-family:var(--font-display)}
.lb-you{width:min(39.5rem,calc(100% - .5rem));grid-template-columns:auto minmax(0,1fr) auto auto;min-height:4rem;padding:var(--s-3) var(--s-4) var(--s-3) var(--s-2)}      /* the list's rows sit .25rem inside it: the same width. Its own padding, not a row's (NOTES 134) */
.lb-you:has(> .lb-you-go[hidden]){grid-template-columns:auto minmax(0,1fr) auto}      /* no button: no empty fourth track and its gap, the value lines up with the rows' (NOTES 139) */
.lb-you:not(.is-on){padding-left:var(--s-5)}      /* no rank badge on the left: the text needs its own inset */
.lb-you .lb-rank{min-width:3.25rem;color:var(--line-deep)} .lb-you .lb-rank:empty{display:none}
.lb-you-text{display:flex;flex-direction:column;align-items:flex-start;text-align:left;min-width:0} .lb-you-text small{color:var(--ink-soft);font-weight:400;font-family:var(--font-display);font-size:var(--t-sm);overflow:hidden;text-overflow:ellipsis}
.lb-you:not(.is-on) .lb-you-text{grid-column:1 / 3}
.lb-show{width:min(39.5rem,calc(100% - .5rem));border-radius:var(--r-lg);padding-right:var(--s-4)}
.st-rank-row{display:flex;align-items:center;gap:.625rem;min-width:0}
.st-place{flex:none;display:inline-flex;align-items:center;gap:.3rem;height:2.25rem;padding:0 .75rem 0 .5rem;border-radius:var(--r-pill);border:.125rem solid var(--line-faint);background:#fff;box-shadow:var(--sh-1);color:var(--line-deep);font:400 var(--t-lg)/1 var(--font-display);font-variant-numeric:tabular-nums;cursor:pointer;outline:0;transition:transform var(--d-fast) var(--ease-bounce)}
.st-place:hover,.st-place:focus-visible{border-color:var(--line);box-shadow:var(--glow);transform:translateY(-.0625rem)}
@media (max-width:480px){ .lb-view{padding:var(--s-5) var(--s-4)!important} .lb-tabs .seg-opt{padding:0 .8rem;font-size:var(--t-sm)} .lb-row{padding-right:.625rem;gap:.5rem} .lb-you{padding-right:var(--s-3);gap:var(--s-2)} .lb-you:not(.is-on){padding-left:var(--s-4)} .lb-show{padding-right:.625rem} .lb-tabs .seg-opt{height:max(2.125rem,32px)} }

/* ---------- a player's profile card from the leaderboard (NOTES 140): the share sheet's frame, Your stats' pieces (the emblem, the Matt disc, the figure tiles) ---------- */
/* NOTES 164: the profile card wears Your stats' layout (the .st-* pieces): hero with the flame, Matt badge, people strip, play row, tiles */
.lbp-card{width:min(46rem,100%)} .lbp-card .acct-body{gap:var(--s-2)}
.lbp-card .lbp-hero{grid-template-rows:auto;padding:.5rem 1rem} .lbp-card .lbp-hero > *{grid-row:1} .lbp-card .lbp-hero .st-streak{align-self:center;animation:none} .lbp-hero[hidden],.lbp-mattsec[hidden],.lbp-card .st-streak[hidden]{display:none}
.lbp-card .caps{display:flex;align-items:center;gap:.4rem} .lbp-card .caps svg{width:1.25rem;height:1.25rem;fill:none;stroke:var(--line-deep);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;flex:none}      /* .st .caps, off the stats page */
.lbp-card .st-rank-name{margin:0;font:400 2rem/1.05 var(--font-display);letter-spacing:.02em;color:var(--me-ink)} .lbp-card .st-mbest{margin:0;font:400 var(--t-xl)/1.1 var(--font-display);color:var(--lv-deep)} .lbp-card .st-wl,.lbp-card .st-num,.lbp-card .st-ret-n,.lbp-card .st-chips{margin:0}
.lbp-card .st-wl b{font-size:2.25rem;font-weight:400;font-family:var(--font-display);line-height:1} .lbp-card .st-num b,.lbp-card .st-ret-n b{font-size:2rem;font-weight:400;font-family:var(--font-display);line-height:1;color:var(--me-ink)} .lbp-card .st-fig{padding:.375rem .125rem} .lbp-card .st-fig dd{font-size:1rem;letter-spacing:-.01em} .lbp-card .st-fig dt{white-space:nowrap;letter-spacing:0;font-size:max(10px,.6875rem)} .lbp-card .st-badge svg{animation:none} @media (min-width:761px){ .lbp-card .st-tile .st-badge{display:none} }
.lbp-card .lbp-friend{min-height:0} .lbp-friend.is-none{justify-content:flex-end;padding:0;background:none;box-shadow:none}      /* a stranger: the Add friend button alone, no line beside it (NOTES 158) */ .lbp-card .st-rank-name:empty{height:1.1em;width:9rem;border-radius:var(--r-sm);background:var(--sky-2)}      /* loading a player with no emblem on the row */
.lbp-card .lbp-mattsec{grid-template-columns:auto minmax(0,1fr)} .lbp-card .st-mbadge{width:3.5rem;height:3.5rem} .lbp-mattsec:has(.is-none) .st-mbest{color:var(--ink-soft)}
.lbp-stats{display:flex;flex-direction:column;gap:var(--s-2)} .lbp-card .st-people,.lbp-card .st-tile,.lbp-card .st-matt,.lbp-card .st-play{animation:none} .lbp-card .st-wl b,.lbp-card .st-num b,.lbp-card .st-ret-n b,.lbp-card .st-ribbon b{animation:none} .lbp-card .st-bar i{animation:none;transform:none}
.lbp-card .st-bar-l b{color:inherit} .lbp-card .lbp-figs{grid-template-columns:repeat(5,minmax(0,1fr))} .lbp-card .st-chip .st-flame{fill:var(--them);stroke:var(--them-deep)}
.lbp-card [data-stat].is-none{color:var(--ink-soft)} .lbp-stats.is-skel [data-stat],.lbp-stats.is-skel .st-wl b{color:var(--sky-4)}
.lbp-card[data-state="gone"] .lbp-hero,.lbp-card[data-state="gone"] .lbp-stats,.lbp-card[data-state="error"] .lbp-hero,.lbp-card[data-state="error"] .lbp-stats{display:none}
@media (max-width:760px){ .lbp-card .lbp-figs{grid-template-columns:repeat(3,minmax(0,1fr))} .lbp-card .lbp-hero .st-streak{grid-row:auto} .lbp-card .lbp-hero > *{grid-row:auto} }
.lbp-title{display:flex;align-items:center;flex-wrap:wrap;gap:.375rem .5rem;min-width:0} .lbp-card .lbp-title h2{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--t-xl);font-weight:400;font-family:var(--font-display);line-height:1.15}
.lbp-em{position:relative;display:grid;place-items:center;width:5.75rem;min-height:5.75rem}
.lbp-em::before{content:"";position:absolute;inset:.25rem;border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,var(--rank-mid,var(--sky-3)) 45%,transparent) 0,transparent 70%)}      /* the rank's own colour, a halo behind the medal */
.lbp-em:empty::before{inset:.75rem;background:var(--sky-2);box-shadow:inset 0 0 0 .125rem var(--sky-3)}      /* no trophies yet: a quiet disc where the medal would be */
.lbp-em .st-em{position:relative}
.lbp-card .caps{margin:0;font-size:var(--t-xs);line-height:1.3}
.lbp-card .lbp-tro{display:flex;align-items:center;gap:.35rem;font-weight:400;font-family:var(--font-display);color:var(--ink-soft)} .lbp-tro b{color:var(--ink-strong);font-weight:400;font-family:var(--font-display);font-variant-numeric:tabular-nums} .lbp-tro .cup .cup-ic{width:1.35rem;height:1.35rem}
.lbp-card[data-state="gone"] .lbp-hero,.lbp-card[data-state="gone"] .lbp-stats,.lbp-card[data-state="error"] .lbp-hero,.lbp-card[data-state="error"] .lbp-stats{display:none}
.lbp-card .lbp-msg{margin:0;padding:var(--s-5) var(--s-3);border-radius:var(--r-lg);background:var(--sky-1);text-align:center;font-size:var(--t-md);font-weight:400;font-family:var(--font-display);color:var(--ink-soft)}
.lbp-card .lbp-retry{justify-content:center;margin-top:0!important}
.lbp-foot #btn-lbp-mine{color:var(--line-deep);font-weight:400;font-family:var(--font-display)}
@media (max-width:480px){ .lbp-card{padding:var(--s-4)} .lbp-stat{grid-column:span 6} .lbp-stat.is-hero{grid-column:span 4;padding:.5rem .25rem} .lbp-hero{column-gap:var(--s-3);padding:var(--s-3) var(--s-4) var(--s-3) var(--s-3)} .lbp-em{width:4.75rem;min-height:4.75rem} .lbp-em .st-em{--em-h:4.25rem} .lbp-em .st-em .rank-em{width:4.5rem;height:4.5rem} }
@media (prefers-reduced-motion:reduce){ .lbp-stat.is-skel::after{animation:none;display:none} }
/* opened from a friends list, search or On this court (docs/SOCIAL.md 6): not on a board = no stats and no Matt (only /api/player answered), a quiet line instead */
.lbp-card[data-state="part"] .lbp-stats{display:none}
.lbp-card .lbp-msg.is-note{padding:0 var(--s-3);font-size:var(--t-sm);font-weight:400;font-family:var(--font-display);background:none}      /* a quiet line, not the not-found box */
.lbp-places{list-style:none;margin:0 0 0 .25rem;padding:0;display:flex;flex-wrap:wrap;gap:var(--s-1) var(--s-2)} .lbp-places[hidden]{display:none}      /* the place numbers from /api/player: pills on the name's line (NOTES 150), not a row of their own under the rank */
.lbp-title .lbp-place{padding:.1875rem .625rem;font-size:var(--t-xs)}
.lbp-place{display:inline-flex;align-items:baseline;gap:.375rem;padding:.3125rem .75rem;border-radius:var(--r-pill);background:#fff;box-shadow:var(--sh-1),inset 0 0 0 .125rem var(--sky-2);font-size:var(--t-sm);font-weight:400;font-family:var(--font-display);color:var(--ink-soft);white-space:nowrap}
.lbp-place b{font-weight:400;font-family:var(--font-display);color:var(--line-deep);font-variant-numeric:tabular-nums} .lbp-place.is-top1 b{color:var(--gold-4)} .lbp-place.is-top2 b{color:var(--silver-4)} .lbp-place.is-top3 b{color:#b8662a}
/* the friend row: a figure tile's frame (sky-1, the sky-2 hairline) with what we are on the left and the one thing to do on the right */
.lbp-friend{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:var(--s-2) var(--s-3);min-height:4.25rem;padding:var(--s-2) var(--s-2) var(--s-2) var(--s-4);border-radius:var(--r-md);background:var(--sky-1);box-shadow:inset 0 0 0 .125rem var(--sky-2)} .lbp-friend[hidden]{display:none}
/* NOTES 166: the friend control lives in the header, left of Close: bare buttons, no box. What it has to say is #lbp-st, the line under the name */
.lbp-card .acct-head{align-items:flex-start;gap:var(--s-2)} .lbp-card .lbp-title{flex:1 1 auto}
.lbp-card .lbp-friend,.lbp-card .lbp-friend.is-friend,.lbp-card .lbp-friend.is-confirm{flex:none;min-height:0;padding:0;background:none;box-shadow:none;flex-wrap:nowrap;gap:var(--s-2)} .lbp-card .lbp-fr-acts{margin:0;gap:var(--s-2)}
.lbp-card .lbp-friend .btn{height:2.5rem;min-height:36px;padding:0 var(--s-3);font-size:var(--t-sm);white-space:nowrap} .lbp-card .lbp-friend .btn-icon{width:2.5rem;padding:0} .lbp-fr-no svg{width:1rem;height:1rem;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round}
.lbp-card .lbp-fr-tag.btn{display:inline-flex;align-items:center;gap:.3rem;color:var(--good-deep);letter-spacing:0;text-transform:none}
.lbp-card .lbp-st{flex-basis:100%;margin:0;display:flex;align-items:center;gap:.5rem;font-size:var(--t-sm);font-weight:400;font-family:var(--font-display);color:var(--ink-soft)} .lbp-card .lbp-st[hidden]{display:none}
.lbp-friend.is-gate{justify-content:center;min-height:0;padding:0;background:none;box-shadow:none} .lbp-friend.is-gate .lbp-fr-who{flex:none;align-items:center;text-align:center}      /* a guest, no username: one quiet line, not a tile */
.lbp-friend.is-friend{background:linear-gradient(180deg,#f3fcf6,var(--sky-1));box-shadow:inset 0 0 0 .125rem #cdeed8}
.lbp-friend.is-confirm{background:linear-gradient(180deg,#fff,#fff7f7);box-shadow:inset 0 0 0 .125rem #f3c4c4}
.lbp-fr-who{min-width:0;flex:1 1 9rem;display:flex;flex-direction:column;gap:.125rem}
.lbp-card .lbp-fr-line{margin:0;display:flex;align-items:center;gap:.5rem;font-size:var(--t-md);font-weight:400;font-family:var(--font-display);color:var(--ink-strong);min-width:0}
.lbp-friend.is-none .lbp-fr-line,.lbp-friend.is-gate .lbp-fr-line{font-size:var(--t-sm);font-weight:400;font-family:var(--font-display);color:var(--ink-soft)}
.lbp-friend.is-confirm .lbp-fr-line{color:var(--bad-deep)}
.lbp-card .lbp-fr-tag{display:flex;align-items:center;gap:.25rem;color:var(--good-deep)} .lbp-fr-tag svg{width:.875rem;height:.875rem;fill:none;stroke:currentColor;stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round}
.lbp-fr-acts{flex:none;display:flex;align-items:center;gap:var(--s-2);margin-left:auto}
.lbp-fr-acts .btn{padding:0 var(--s-4)} .lbp-fr-acts .btn:hover{scale:none}
.lbp-fr-go{min-height:44px}
@media (max-width:480px){ .lbp-friend{padding-left:var(--s-3)} .lbp-fr-acts .btn{padding:0 max(.875rem,12px)} }


/* ==========================================================================================================
   FRIENDS (docs/SOCIAL.md 6): one panel (web/social.js) in two places, the lobby view and the in-game friends card (the settings card's look).
   Rows are the leaderboard's (white, rounded, a hairline), the dot is the lobby's 'N online' dot: green online, amber in a match, a ring offline.
   A name opens the profile card (#lbp-card, the leaderboard's): its friend row is styled with that card, below.
   ========================================================================================================== */
.fr-dot{flex:none;display:inline-block;width:.75rem;height:.75rem;border-radius:50%;background:none;box-shadow:inset 0 0 0 .15625rem var(--ink-faint)}
.fr-dot.is-on{background:var(--good);box-shadow:0 0 0 .1875rem rgba(62,207,114,.2)} .fr-dot.is-busy{background:var(--warn);box-shadow:0 0 0 .1875rem rgba(255,181,52,.22)}
.fr-dot[hidden]{display:none}
.tile-line .fr-dot{width:.625rem;height:.625rem;margin-right:.1em}      /* the home tile: '2 online' after the lobby's own dot */
#friends-n:not(.is-off){background:var(--them-tint);border-color:#ffd2ad;color:var(--them-ink)}      /* requests: the other player's orange, so it reads as someone waiting on you */

.fr-panel{display:flex;flex-direction:column;gap:var(--s-3);min-height:0;text-align:left}
.fr-search{position:relative;display:block;flex:none}
.fr-search > svg{position:absolute;left:1rem;top:50%;translate:0 -50%;width:1.25rem;height:1.25rem;fill:none;stroke:var(--ink-soft);stroke-width:2.5;stroke-linecap:round;pointer-events:none}
.fr-q{width:100%;height:3rem;padding:0 3rem 0 2.75rem;font:400 var(--t-md)/1 var(--font-display);color:var(--ink-strong)} .fr-q::placeholder{color:var(--ink-faint);font-weight:500}
.fr-clear{position:absolute;right:.5rem;top:50%;translate:0 -50%;display:grid;place-items:center;width:2rem;height:2rem;padding:0;border:0;border-radius:50%;background:var(--sky-2);cursor:pointer;outline:0}
.fr-clear svg{width:.875rem;height:.875rem;fill:none;stroke:var(--ink);stroke-width:3;stroke-linecap:round} .fr-clear:hover,.fr-clear:focus-visible{background:var(--sky-3);box-shadow:var(--glow)} .fr-clear[hidden]{display:none}
.fr-scroll{display:flex;flex-direction:column;gap:var(--s-4);min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:.25rem;margin:-.25rem}      /* a focus glow never clips at the edge */
.fr-scroll[hidden],.fr-search[hidden],.fr-gate[hidden],.fr-sec[hidden],.fr-list[hidden],.fr-hint[hidden],.fr-empty[hidden]{display:none}
.fr-sec{display:flex;flex-direction:column;gap:.5rem}
.fr-label{display:flex;align-items:center;gap:.5rem;margin:0 0 0 .875rem;font-size:var(--t-xs);font-weight:400;font-family:var(--font-display);letter-spacing:.12em;text-transform:uppercase;color:var(--ink-soft)}      /* the settings card's group label */
.fr-count{min-width:1.375rem;height:1.375rem;padding:0 .375rem;display:inline-grid;place-items:center;border-radius:var(--r-pill);background:var(--them);color:#fff;font-size:max(.75rem,11px);letter-spacing:0} .fr-count:empty{display:none}
.fr-more-n{margin-left:auto;margin-right:.25rem;font-size:var(--t-xs);letter-spacing:0;text-transform:none;font-weight:400;font-family:var(--font-display)} .fr-more-n:empty{display:none}
.fr-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.375rem}
.fr-row{display:flex;align-items:center;gap:.75rem;min-height:3.5rem;padding:.4375rem .5rem .4375rem 1rem;border-radius:var(--r-lg);background:#fff;border:.125rem solid var(--line-faint);box-shadow:var(--sh-1)}
.fr-row.is-off .fr-name{color:var(--ink)}      /* offline friends a shade quieter: the online ones lead */
.fr-row.is-confirm{border-color:#f3a3a3;background:linear-gradient(180deg,#fff,#fff7f7)}
.fr-who{flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:.125rem;min-width:0}
.fr-top{display:flex;align-items:center;max-width:100%;min-width:0}
.fr-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:.125rem .25rem;margin:-.125rem -.25rem;border:0;border-radius:var(--r-xs);background:none;font:400 var(--t-md)/1.2 var(--font-display);color:var(--ink-strong);cursor:pointer;outline:0;-webkit-tap-highlight-color:transparent}
@media (hover:hover){ .fr-name:hover{color:var(--line-deep);text-decoration:underline;text-underline-offset:.2em;text-decoration-thickness:.1em} } .fr-name:focus-visible{box-shadow:var(--glow);color:var(--line-deep)}
.fr-top .reg-badge{margin-left:.3em} .fr-top .rank-badge{margin-left:.35em}
.fr-st{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--t-xs);font-weight:400;font-family:var(--font-display);color:var(--ink-soft)}
.fr-row[data-st="off"] .fr-st{color:var(--ink-faint)}
.fr-acts{flex:none;display:flex;align-items:center;gap:.375rem} .fr-invite{display:flex;gap:.375rem} .fr-invite:empty{display:none}      /* Play / Duel / Watch (slice B) */
.is-opening[aria-busy="true"]{cursor:progress;animation:card-opening 640ms var(--ease-soft) infinite alternate}      /* a name whose profile card is on its way (NOTES 150): it breathes until the card opens, whole */
@keyframes card-opening{to{opacity:.55}}
@media (prefers-reduced-motion:reduce){ .is-opening[aria-busy="true"]{animation:none;opacity:.7} }
/* Add friend (NOTES 150): the person-plus waves hello every few seconds and a shine runs across the pill, so the one thing to do here asks to be pressed;
   hover lifts it and pops the +, a press squashes it, and the Requested line that replaces it pops in. Reduced motion: none of it */
.fr-add{background-image:linear-gradient(105deg,transparent 38%,rgba(255,255,255,.95) 50%,transparent 62%),linear-gradient(180deg,#ffffff 0%,#f7fbfd 47%,#e3eef4 53%,#edf5f9 100%);background-size:260% 100%,auto;background-repeat:no-repeat;background-position:160% 0,0 0;animation:fr-shine 3.6s var(--ease-soft) 1.4s infinite;transition:transform var(--d-fast) var(--ease-bounce)}
.fr-add-ic{flex:none;display:inline-grid;width:1.25em;height:1.25em;margin-right:-.125rem;transform-origin:50% 85%;animation:fr-wave 3.6s var(--ease-soft) 1.4s infinite}
.fr-add-ic svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;overflow:visible} .fr-add-ic .fr-add-plus{stroke:var(--line-deep);stroke-width:2.6;transform-box:fill-box;transform-origin:center}
.fr-ic{flex:none;display:inline-grid;width:1.25em;height:1.25em;margin-right:-.125rem}      /* (NOTES 932) Requested, Accept and Friends: Add friend's person with a clock or a tick (social.js frIc), its stroke and size */
:is(.fr-tag,.lbp-fr-tag,.btn,button) .fr-ic svg,.fr-ic svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;overflow:visible} .fr-ic .fr-ic-mark{stroke-width:2.6}
@media (hover:hover){ .fr-add:hover:not(:disabled){transform:translateY(-.125rem)} .fr-add:hover:not(:disabled) .fr-add-plus{animation:fr-plus 520ms var(--ease-bounce)} }
.fr-add:active:not(:disabled){transform:scale(.94);transition-duration:90ms}
.lbp-friend.is-out .lbp-fr-line,.fr-tag{animation:fr-sent 420ms var(--ease-bounce) backwards}
@keyframes fr-shine{0%,62%{background-position:160% 0,0 0}90%,100%{background-position:-60% 0,0 0}}
@keyframes fr-wave{0%,64%,100%{rotate:0deg;scale:1}70%{rotate:-14deg;scale:1.12}76%{rotate:10deg;scale:1.12}82%{rotate:-6deg;scale:1.06}88%{rotate:0deg;scale:1}}
@keyframes fr-plus{0%{scale:1;rotate:0deg}45%{scale:1.5;rotate:90deg}100%{scale:1;rotate:90deg}}
@keyframes fr-sent{from{opacity:0;scale:.85}}
@media (prefers-reduced-motion:reduce){ .fr-add,.fr-add-ic,.fr-add .fr-add-plus,.lbp-friend.is-out .lbp-fr-line,.fr-tag{animation:none!important} .fr-add:hover,.fr-add:active{transform:none} }
.fr-invite:empty{display:none}      /* slice B's invite buttons */
.fr-act{height:2.5rem;min-height:40px;padding:0 1.125rem;font-size:var(--t-sm);gap:.375rem}
.fr-row .btn:hover{scale:none}      /* in a scroll box: the lift would clip its halo, as in the court list */
.fr-more{width:max(2.5rem,36px);height:max(2.5rem,36px);box-shadow:var(--sh-1), var(--inner-hi)} .fr-more svg{width:1.25rem;height:1.25rem;fill:var(--ink-soft);stroke:none}
.fr-tag{display:inline-flex;align-items:center;gap:.3rem;height:2.25rem;padding:0 .875rem;border-radius:var(--r-pill);background:var(--sky-2);color:var(--ink-soft);font-size:var(--t-sm);font-weight:400;font-family:var(--font-display);white-space:nowrap}
.fr-tag.is-friend{background:#e8f8ee;color:var(--good-deep)} .fr-tag svg{width:1rem;height:1rem;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.fr-tag.is-lg{height:max(2.75rem,44px);min-height:44px;padding:0 1.125rem;font-size:var(--t-md)}      /* beside an is-tall button: one height */
.fr-ask{font-size:var(--t-sm);font-weight:400;font-family:var(--font-display);color:var(--bad-deep);white-space:nowrap;margin-right:.25rem}
.fr-hint{margin:0;padding:var(--s-4) var(--s-3);text-align:center;font-size:var(--t-sm);font-weight:400;font-family:var(--font-display);color:var(--ink-soft)} .fr-hint.is-wait::after,.fr-gate-t.is-wait::after{content:"…"}
.fr-empty{display:flex;flex-direction:column;align-items:center;gap:.375rem;padding:var(--s-5) var(--s-4);border-radius:var(--r-lg);border:.125rem dashed var(--sky-4);background:rgba(255,255,255,.55);text-align:center}
.fr-empty b{font-size:var(--t-md);font-weight:400;font-family:var(--font-display);color:var(--ink-strong)} .fr-empty span{max-width:26rem;font-size:var(--t-sm);font-weight:500;line-height:1.45;color:var(--ink-soft)}
.fr-gate{display:flex;flex-direction:column;align-items:center;gap:.5rem;padding:var(--s-5) var(--s-4);text-align:center}
.fr-gate-t{margin:0;font-size:var(--t-lg);font-weight:400;font-family:var(--font-display);color:var(--ink-strong)} .fr-gate-s{margin:0;max-width:28rem;font-size:var(--t-sm);font-weight:500;line-height:1.45;color:var(--ink-soft)} .fr-gate-b{margin-top:var(--s-2)} .fr-gate-b[hidden],.fr-gate-s[hidden]{display:none}

/* the lobby view: the leaderboard's width and height rules; the lists scroll under a fixed search */
.panel.fr-view{width:min(42rem,92vw);max-height:calc(100dvh - 11rem);min-height:min(26rem,calc(100dvh - 11rem));align-items:stretch;gap:var(--s-4);padding:var(--s-5) var(--s-6)}      /* stretch: a lobby view centres its children, these rows run the card's width */
.fr-view .fr-panel{flex:1 1 auto}
.fr-view .fr-gate{flex:1;justify-content:center}
@media (max-width:480px){ .panel.fr-view{padding:var(--s-4);width:100%} .fr-row{gap:.5rem;padding-left:.75rem} .fr-act,.friends-card .fr-act{padding:0 max(.875rem,12px)} }      /* the 10px rem floor: the buttons keep a real pill's sides */

/* Settings > Friends: a row that goes somewhere (the chevron), its badge and '2 online' at the end */
#grp-social[hidden]{display:none}

/* the friends card: the settings card, a little wider for a row with its buttons; its lists scroll inside it */
.friends-card{width:min(26rem,calc(100vw - 2 * var(--edge)));gap:.75rem}
.fc-head{flex-direction:row;align-items:center;gap:var(--title-gap,1.4rem);padding:0}      /* Back then the title, the Locker's gap */
.fc-head .btn-back{position:relative;left:auto;top:auto;translate:none;flex:none}      /* the one Back (ua-views.css), top left of the card in the header's flow (relative, never static: its plates are absolute pseudo-elements) */
.friends-card .fc-head > h2{align-self:center;margin-bottom:0}      /* the title on Back's centre line, as the Locker's and Settings' (ua-views.css's card h2 sits top left with a gap under it: the head row's own gap is the card's) */
.fc-body{display:flex;flex-direction:column;min-height:0}
.friends-card .fr-panel{gap:.625rem}
.friends-card .fr-q{height:2.625rem;font-size:var(--t-sm)}
.friends-card .fr-row{min-height:3rem;padding:.3125rem .375rem .3125rem .75rem;gap:.5rem;border-radius:var(--r-md)}
.friends-card .fr-name{font-size:var(--t-sm)}
.friends-card .fr-act{height:2.25rem;min-height:36px;padding:0 .75rem;font-size:var(--t-xs)}
.friends-card .fr-more{width:max(2.25rem,36px);height:max(2.25rem,36px)}
.friends-card .fr-tag{height:2rem;padding:0 .625rem;font-size:var(--t-xs)}
.friends-card .fr-gate{padding:var(--s-4) var(--s-2)} .friends-card .fr-gate-t{font-size:var(--t-md)}
.friends-card .fr-empty{padding:var(--s-4) var(--s-3)}
body[data-paused] .friends-card .fr-row{box-shadow:none}
@media (max-width:520px){ .friends-card{width:calc(100vw - 2 * var(--edge))} }

/* ============================================== A PHONE (NOTES 149) ==============================================
   html[data-mobile] (main.js MOBILE, ui.setMobile): a phone is only ever the paddle, so the lobby's home is the phone home: the paddle-code card over
   the tiles a phone can use (Watch a match, Your stats, Leaderboard, Friends). Everything that takes a seat is hidden here AND refused in main.js request() */
html:not([data-mobile]) .m-only{display:none!important}
html[data-mobile] .desk-only{display:none!important}
html[data-mobile] #screen-lobby[data-view="home"] .btn-back{visibility:hidden}      /* home is the top: Back would only lead to the title, which a phone never shows */
html[data-mobile] #btn-join,
html[data-mobile] #btn-ask,html[data-mobile] #btn-tour-warm,html[data-mobile] #btn-tour-start,html[data-mobile] #grp-paddle,html[data-mobile] #grp-match,html[data-mobile] #set-camera,html[data-mobile] #set-airpod,html[data-mobile] #set-sink,html[data-mobile] #sink-hint,html[data-mobile] #btn-find-sinks,html[data-mobile] #tog-cam,html[data-mobile] #tog-body{display:none!important}      /* a phone never sits on a court: no camera inset, no own player model */
html[data-mobile] .code-acts{grid-template-columns:minmax(0,20rem);justify-content:center}      /* Watch alone, centred (Join is hidden) */
html[data-mobile] .keyhints-inline{display:none} html[data-mobile] .foot-agree{flex:1;text-align:center}      /* a phone has no Esc or F key, either way up */
.m-pad{display:grid;grid-template-columns:auto 1fr;grid-template-areas:"art h" "lead lead" "field field" "go go" "err err";align-items:center;column-gap:var(--s-3);row-gap:var(--s-3);width:min(40rem,100%);padding:var(--s-5);text-align:left}
.m-pad-art{grid-area:art;width:3.5rem;height:3.5rem}
.m-pad h2{grid-area:h;margin:0;font-size:max(var(--t-xl),22px);font-weight:400;font-family:var(--font-display);color:var(--ink-strong)}
.m-pad-lead{grid-area:lead;margin:0;color:var(--ink);font-size:max(var(--t-md),15px);line-height:1.45}      /* px floors: a phone's rem sits at 10px */
.m-pad-field{grid-area:field;display:flex;align-items:center;gap:0;height:4.75rem;padding:0 var(--s-4);border-radius:var(--r-pill);background:#fff;border:.1875rem solid var(--sky-4);box-shadow:inset 0 .125rem .375rem rgba(120,170,200,.25)}
.m-pad-field:focus-within{border-color:var(--line);box-shadow:var(--glow), inset 0 .125rem .375rem rgba(120,170,200,.25)}
.m-pad-field.is-error{animation:nudge 420ms var(--ease-soft) 1;border-color:var(--bad)}
.m-pad-pre{font:400 2.6rem/1 var(--font-display);color:var(--ink-soft);letter-spacing:.06em}
.m-pad .field{flex:1;width:auto;height:100%;padding:0 0 0 .25rem;border:0;background:none;box-shadow:none;font:500 2.6rem/1 var(--font);letter-spacing:.3em;text-transform:uppercase}
.m-pad .field::placeholder{color:var(--sky-4);letter-spacing:.3em}
.m-pad .field:focus{box-shadow:none}
.m-pad #m-pad-go{grid-area:go;width:100%;min-width:0}
.m-pad-err{grid-area:err;margin:0;min-height:0;text-align:center;font-size:max(var(--t-sm),14px)} .m-pad-err:empty{display:none}
.m-more{margin:var(--s-2) 0 0;color:var(--ink-soft);font-size:max(var(--t-xs),12px);letter-spacing:var(--track-caps);text-transform:uppercase;font-weight:400;font-family:var(--font-display)}
html[data-mobile] #screen-lobby .menu-body{overflow-y:auto;justify-content:flex-start}
html[data-mobile] .lobby-home{gap:var(--s-3);padding-bottom:var(--s-4)}
html[data-mobile] .lobby-home .tiles{display:grid;grid-template-columns:1fr 1fr;width:min(40rem,100%);gap:var(--s-3)}
html[data-mobile] .lobby-home .tile,html[data-mobile] .lobby-home .tile.is-hero{grid-column:span 1;width:auto;height:10rem;padding:0 var(--s-2);gap:var(--s-2);flex-direction:column;justify-content:center;text-align:center;font-size:max(var(--t-lg),17px)}
html[data-mobile] .lobby-home .tile svg{width:4.25rem;height:4.25rem}
html[data-mobile] .lobby-home .tile .tile-text{align-items:center;text-align:center}
html[data-mobile] .lobby-home .tiles:is([data-n="1"],[data-n="3"]) #btn-courts{grid-column:span 2;height:7.5rem;flex-direction:row;gap:var(--s-4)}      /* an odd count: Watch a match takes the whole first row */
@media (min-aspect-ratio:1/1){      /* a phone on its side: the card on the left, the tiles on the right, both under the header */
  html[data-mobile] .lobby-home{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"pad more" "pad tiles";align-items:start;column-gap:var(--s-5);width:min(80rem,100%);margin:0 auto}
  html[data-mobile] .m-pad{grid-area:pad;width:100%} html[data-mobile] .m-more{grid-area:more;justify-self:center} html[data-mobile] .lobby-home .tiles{grid-area:tiles;width:100%}
  html[data-mobile] .lobby-home .tile,html[data-mobile] .lobby-home .tile.is-hero{height:8rem}
  html[data-mobile] .lobby-home .tiles:is([data-n="1"],[data-n="3"]) #btn-courts{height:6rem}
}

/* ==========================================================================================================
   THE WINNER'S SHOT (NOTES 166). A match's result is drawn on the court, not on a white ground: VICTORY! has the court to itself (2 s),
   then the picture cuts to the winner holding the trophy (scene.js setVictory) and the result card comes in as a panel down the right
   two fifths: the same #result, every row of it. The champion card is the same panel over the podium (NOTES 178: the champion alone on the court).
   A tall or narrow window lays the panel along the bottom instead (ui.js resultPane tells the scene which pane is free).
   ========================================================================================================== */
#screen-match{background:none;flex-direction:row;align-items:stretch;justify-content:flex-end;pointer-events:none}
#screen-match::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:0;transition:opacity 420ms var(--ease-soft);
  background:rgba(var(--cp-ink-rgb),.26)}      /* behind the title the court dims a little, one flat ink wash (no gradient), so the white word on its band reads over grass and sky alike */
#screen-match.is-stamp::before{opacity:1}
#screen-match .result-card{pointer-events:auto;flex:none;width:40vw;height:100%;margin:0;padding:var(--s-5) var(--s-6);border:0;border-left:.25rem solid var(--line);border-radius:0;
  display:flex;flex-direction:column;align-items:center;overflow-y:auto;overscroll-behavior:contain;box-shadow:-.75rem 0 2.5rem rgba(8,34,54,.3), inset .1875rem 0 0 #fff}
#screen-match.is-stamp .result-card{pointer-events:none}      /* out of sight behind VICTORY!: nothing to press yet */
#screen-match.is-active[data-beat] .result-card{animation:vic-panel 560ms var(--ease-out) both}      /* ([data-beat]: outweighs the win / watch / champ panel-in rule above) */
@keyframes vic-panel{from{transform:translateX(104%)}}
/* in the panel the card's rows stack from a centred block (auto margins, so a tall card scrolls from its top instead of losing it) */
#screen-match .result-card > *{flex:none;max-width:100%}
#screen-match .medal{position:relative;left:auto;top:auto;margin:auto 0 var(--s-2);scale:.82;transform-origin:50% 100%}
#screen-match .result-card.has-trophies .medal{scale:.7;margin-bottom:0}
#screen-match .rematch{margin-bottom:auto;width:100%}
#screen-match .result-card h2{margin:0 0 var(--s-4);font-size:3.25rem;text-wrap:balance}
#screen-match .result-card.is-lose h2{font-size:2.75rem}
#screen-match .tally{gap:var(--s-2);padding:var(--s-4) var(--s-3);margin:0 0 var(--s-5);width:100%}
#screen-match .tally-side{min-width:0;flex:1 1 0}
#screen-match .tally-side b{max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.2}
#screen-match .tally-num{font-size:4.5rem;min-width:4.5rem;flex:none}
#screen-match .tally-dash{width:1rem}
#screen-match .trophy{margin:calc(var(--s-2) * -1) 0 var(--s-4)} #screen-match .trophy-row{gap:1rem} #screen-match .trophy-n{font-size:4rem}
#screen-match .result-stats{margin:-.25rem 0 var(--s-4);gap:.5rem}
#screen-match .rematch-btns{width:100%} #screen-match .rematch-btns .btn{min-width:0;flex:1 1 0;padding:0 1rem}
/* the champion (NOTES 178): the gold card as the panel, its big trophy medal brought down to the panel's size (the CHAMPION! title: ua-views.css THE TITLE) */
#screen-match .result-card.is-champion .medal{scale:.95}
/* who wants another game: a tick on their chip, for players and spectators alike */
.tally-side.is-ready::after{content:"\2713";position:absolute;top:2.1rem;left:calc(50% + .7rem);display:grid;place-items:center;width:1.5rem;height:1.5rem;border-radius:50%;background:var(--good-lamp);color:#fff;border:.125rem solid #fff;
  font-size:.9375rem;font-weight:400;font-family:var(--font-display);line-height:1;box-shadow:0 .0625rem .25rem rgba(20,60,90,.35);animation:ov-title-pop 320ms var(--ease-bounce) both}
/* everyone keeps their emotes on the winner's shot (a GG): the bar moves to the court pane's corner, the pops show over the court */
body[data-overlay="match"] .emotes{opacity:1;pointer-events:auto;right:calc(40vw + var(--edge));z-index:calc(var(--z-screen) + 1)}
body[data-overlay="match"] .emote-layer{opacity:1;right:40vw;z-index:calc(var(--z-screen) + 1)}      /* the pops come in at the court pane's edge, never over the panel */
@media (max-aspect-ratio: 1/1), (max-width: 760px){
  #screen-match{flex-direction:column}
  #screen-match .result-card{width:100%;height:auto;max-height:58dvh;padding:var(--s-4) var(--s-5);border-left:0;border-top:.25rem solid var(--line);box-shadow:0 -.75rem 2.5rem rgba(8,34,54,.3), inset 0 .1875rem 0 #fff}
  @keyframes vic-panel{from{transform:translateY(104%)}}
  #screen-match .medal{display:none}      /* the trophy is in the winner's hand, above: the panel keeps its height for the score */
  #screen-match .result-card h2{margin-top:auto}
  body[data-overlay="match"] .emotes{right:var(--edge);top:var(--edge);bottom:auto}
  body[data-overlay="match"] .emote-layer{right:0;bottom:58dvh}
}
@media (prefers-reduced-motion: reduce){ #screen-match::before{display:none} }

/* ---------- Settings from the menu (NOTES 181): the hamburger's card, opened by the title's and the lobby's own button, top right ----------
   Rows that need a court (the status lights, Recenter, Difficulty, Friends: the lobby has its own tile, Leave) are hidden here, not removed */
/* over a menu, Settings is the only thing in focus: the whole page behind it (screen, header, tiles, footer) blurs and softens, under the card
   and over everything else (NOTES 205). pointer-events none: a press outside still reaches ui.js's pointerdown, which closes the card and eats that click */
body::after{content:"";position:fixed;inset:0;z-index:calc(var(--z-screen) + 2);pointer-events:none;opacity:0;visibility:hidden;
  -webkit-backdrop-filter:blur(10px) saturate(1.05);backdrop-filter:blur(10px) saturate(1.05);background:rgba(232,244,251,.28);
  transition:opacity var(--d-med) var(--ease-soft),visibility 0s linear var(--d-med)}
body[data-settings="menu"]::after{opacity:1;visibility:visible;transition-delay:0s}
@media (prefers-reduced-motion:reduce){ body::after{transition:none} }
[data-mobile] .settings #set-music{display:none}      /* a phone's menu: it is the paddle, not the player's screen, and it plays no music */
/* the Product Hunt badge's strip (NOTES 186): the menu pages' content stops above the badge, so a tall panel (Ranks, Courts on a phone) never runs under it */
#screen-title .menu-body,#screen-lobby .menu-body{padding-bottom:calc(2.5rem + 2 * var(--s-3))}
@media (max-width:700px){ #screen-title .menu-body{padding-bottom:calc(2.125rem + 2 * var(--s-3))}
  #screen-lobby .menu-body{padding-bottom:var(--s-4)} #screen-lobby .menu-foot{flex-wrap:wrap;height:auto;justify-content:center;row-gap:var(--s-2);padding-block:var(--s-3)}
  #screen-lobby .menu-foot .ph-badge{position:static;order:-1} #screen-lobby .menu-foot .foot-agree{flex:1 1 100%;text-align:center} }      /* a phone-wide lobby scrolls, so a corner badge would sit over the panels: there it rides in the footer, over the legal line */

/* ---------- the tutorial (web/tutorial.js, NOTES 217): a few cards over the menu, once for a new browser, then Settings > Tutorial ---------- */
.settings:not(.is-menu) #grp-help{display:none}      /* a court's settings card: the cards would cover a live match */
.tut{position:fixed;inset:0;z-index:calc(var(--z-screen) + 6);display:grid;place-items:center;padding:var(--s-4);background:rgba(160,205,230,.45);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);animation:tut-fade var(--d-med) var(--ease-out) both}
.tut[hidden]{display:none}
@keyframes tut-fade{from{opacity:0}}
.tut-card{position:relative;width:min(34rem,100%);max-height:calc(100dvh - 2rem);overflow:auto;padding:var(--s-6) var(--s-6) var(--s-5);display:flex;flex-direction:column;gap:var(--s-4);outline:0;animation:tut-pop 420ms var(--ease-bounce) both}
@keyframes tut-pop{from{opacity:0;transform:translateY(1.25rem) scale(.94)}}
.tut-x{position:absolute;top:var(--s-3);right:var(--s-3);width:2.5rem;height:2.5rem;padding:0;border:0;border-radius:50%;background:none;color:var(--ink-soft);cursor:pointer;display:grid;place-items:center;outline:0}
.tut-x svg{width:1.25rem;height:1.25rem;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round} .tut-x:hover,.tut-x:focus-visible{background:#fff;color:var(--ink-strong);box-shadow:var(--glow)}
.tut-page{display:flex;flex-direction:column;justify-content:center;gap:var(--s-3);min-height:27rem} .tut-body{text-align:center} .tut-body ul,.tut-shot{text-align:left}
.tut-page.is-in{animation:tut-slide 360ms var(--ease-out) both} @keyframes tut-slide{from{opacity:0;transform:translateX(calc(var(--dir,1) * 2.5rem))}}
.tut-art{align-self:center;width:min(17rem,80%);aspect-ratio:240/130;border-radius:var(--r-lg);background:linear-gradient(180deg,#e6f5fd,#fff);border:.1875rem solid var(--line-soft);display:grid;place-items:center;overflow:hidden}
.tut-art svg{width:100%;height:100%}
.tut-title{margin:0;text-align:center;font:400 var(--t-xl)/1.15 var(--font-display);color:var(--ink-strong);letter-spacing:var(--track-title)}
.tut-body{font:500 var(--t-md)/1.45 var(--font);color:var(--ink)} .tut-body p{margin:0 0 var(--s-2)} .tut-body b{color:var(--ink-strong)}
.tut-more{margin:0;padding:var(--s-2) var(--s-3);border-radius:var(--r-md);background:var(--line-faint);font:500 var(--t-sm)/1.4 var(--font);color:var(--ink-soft)} .tut-more a{color:var(--line-deep);font-weight:400;font-family:var(--font-display)}
.tut-facts{margin:0;padding:0;list-style:none;display:grid;gap:var(--s-2)} .tut-facts li{position:relative;padding-left:1.4rem}
.tut-facts li::before{content:"";position:absolute;left:.15rem;top:.45em;width:.7rem;height:.7rem;border-radius:50%;background:var(--ball);box-shadow:inset 0 0 0 .125rem var(--ball-deep)}
.tut-shots{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(2,1fr);gap:var(--s-2)}
.tut-shot{display:grid;grid-template-columns:3rem 1fr;grid-template-rows:auto auto;column-gap:var(--s-2);align-items:center;padding:var(--s-2) var(--s-3);border-radius:var(--r-md);background:#fff;border:.125rem solid var(--line-soft);box-shadow:var(--sh-1)}
.tut-shot svg{grid-row:span 2;width:3rem;height:1.75rem;color:var(--line-deep)} .tut-shot b{font:400 var(--t-md)/1.1 var(--font-display);color:var(--ink-strong)} .tut-shot span{font:500 var(--t-xs)/1.3 var(--font);color:var(--ink-soft)}
.tut-shot:nth-child(2) svg{color:var(--bad-deep)} .tut-shot:nth-child(5) svg{color:var(--them-deep)}
.tut-keys{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(2,1fr);gap:var(--s-2) var(--s-4)} .tut-keys li{display:flex;align-items:center;gap:var(--s-2);font:500 var(--t-sm)/1.25 var(--font)} .tut-keys .keycap{flex:none;background:#fff}
.tut-foot{display:flex;align-items:center;justify-content:space-between;gap:var(--s-3)}
.tut-dots{display:flex;gap:.5rem;margin:0;padding:0;list-style:none} .tut-dots button{width:.75rem;height:.75rem;padding:0;border:0;border-radius:50%;background:var(--sky-4);cursor:pointer;transition:width var(--d-fast) var(--ease-out),background var(--d-fast)}
.tut-dots button[aria-current]{width:1.75rem;border-radius:var(--r-pill);background:var(--line)}
.tut-next.is-last{background:linear-gradient(180deg,#5cc4ff 0%,#3aa0ff 50%,#1f86ec 52%,#2b93f4 100%);color:#fff;border-color:var(--me-deep);text-shadow:0 .0625rem 0 rgba(10,60,130,.4)}
@media (prefers-reduced-motion:no-preference){
  .tut-bob{animation:tut-bob 1.8s var(--ease-soft) infinite} @keyframes tut-bob{50%{transform:translate(190px,64px) scale(1.25)}}
  .tut-beam{animation:tut-dash 1.2s linear infinite} .tut-arc{animation:tut-dash 1.6s linear infinite} @keyframes tut-dash{to{stroke-dashoffset:-22}}
  .tut-swing{transform-origin:120px 104px;animation:tut-swing 1.6s var(--ease-soft) infinite} @keyframes tut-swing{0%,100%{transform:rotate(-55deg)}55%{transform:rotate(48deg)}}
  .tut-pop{transform-origin:196px 46px;animation:tut-hit 1.6s var(--ease-out) infinite} @keyframes tut-hit{0%,50%{transform:scale(1);opacity:1}75%{transform:translate(30px,-26px) scale(.7);opacity:0}76%,100%{transform:none;opacity:1}}
  .tut-ring{transform-origin:150px 100px;animation:tut-ring 1.4s var(--ease-out) infinite} @keyframes tut-ring{0%{transform:scale(.4);opacity:0}40%{opacity:1}100%{transform:scale(1.15);opacity:.2}}
  .tut-swirl{transform-origin:136px 36px;animation:tut-spin 1s linear infinite} @keyframes tut-spin{to{transform:rotate(360deg)}}
  .tut-step{animation:tut-step 2.4s var(--ease-soft) infinite} @keyframes tut-step{25%{transform:translateX(-34px)}75%{transform:translateX(34px)}}
  .tut-bounce{animation:tut-bounce .9s var(--ease-soft) infinite alternate} @keyframes tut-bounce{to{transform:translateY(-14px)}}
}
@media (max-width:480px){ .tut-card{padding:var(--s-5) var(--s-4) var(--s-4)} .tut-shots,.tut-keys{grid-template-columns:1fr} .tut-page{min-height:0} .tut-title{font-size:var(--t-lg)} }
.tut-next.is-last::before{opacity:.3}

.logo-mark [data-l]::before{content:attr(data-l)}      /* NOTES 225: the logo's letters are drawn, so the heading reads "Poddle" (its .vh text) to search engines and screen readers, not "P o d dle" */
/* NOTES 226: add a registered player as a friend from the result card. A row of its own under the name (the side may be a grid of chip, name and badges), the friends card's compact size */
.tally-fr{grid-column:1 / -1;display:flex;justify-content:center;margin-top:.125rem} .tally-fr[hidden]{display:none}
.tally-fr .btn,.tally-fr .fr-tag{height:2rem;min-height:0;padding:0 .75rem;font-size:max(var(--t-xs),12px);white-space:nowrap}
.tally:has(.tally-fr:not([hidden])) .tally-side{align-self:flex-start}      /* the side with the friend control is taller: both names stay level, the score stays centred */
/* NOTES 227, the owner: "make the footer SMALLER, there is way too much stuff in it ... on mobile, it takes up like a quarter of the screen".
   The lobby footer no longer repeats the three page links (the title footer keeps them, NOTES 218). On a computer the legal line and the keys
   share one row; on a phone it is one short block: the legal sentence, then the Product Hunt badge (smaller) beside the age line */
@media (min-width:701px){ html:not([data-mobile]) #screen-lobby .menu-foot .foot-agree{order:0;flex:0 1 auto;text-align:left} }
@media (max-width:700px){
  #screen-lobby .menu-foot{display:grid;grid-template-columns:auto auto;justify-content:center;align-items:center;column-gap:var(--s-3);row-gap:.3125rem;min-height:0;padding-block:.5rem}
  #screen-lobby .menu-foot .foot-agree{display:contents;font-size:12px;line-height:1.25}
  #screen-lobby .menu-foot .foot-agree > span:first-child{grid-column:1 / -1;grid-row:1;justify-self:center}
  #screen-lobby .menu-foot .ph-badge{grid-row:2;grid-column:1;justify-self:end} #screen-lobby .menu-foot .ph-badge img{height:1.625rem;border-radius:.4375rem}
  #screen-lobby .menu-foot .foot-agree > span:last-child{grid-row:2;grid-column:2;justify-self:start}
}

/* ==========================================================================================================
   URBAN AERO (NOTES 268): the owner's approved direction, phase 1 = the design system and the menus.
   Skewed parallelogram plates (10 deg, slightly rounded), chunky outline ink, offset drop plates, dark slanted label plates behind
   Days One, glassy aero highlights; mostly blue and white, the pickleball neon for what matters (the primary action, the selection
   slab, key numbers, live dots), always with outline ink on it. Every plate is drawn on a pseudo-element (::before the face,
   ::after the drop plate), never by skewing the element: the boxes the layout and the data-fit checks measure stay as they were.
   Motion (tilt, punch, the one selection, the screen wipe) is web/aero.js; without it everything here still reads.
   HUD, results, the tutorial, pad.html and the content pages come in a later phase: they only inherit the tokens.
   ========================================================================================================== */
:is(.menu-glass,.menu-bg,.settings,.fc-skin,.acct-card){--font:var(--font-text);font-family:var(--font-text);font-synthesis-weight:none;
  --me-ink:var(--ua-cobalt)}      /* the old --me-ink was also the menus' blue text accent (codes, counts, the rank's name): in the menus it stays blue; red is the player on the court */
:is(.menu-glass,.menu-bg,.settings,.fc-skin,.acct-card) :is(h1,h2,h3,.t-title,.menu-title,.seg-opt,.code-box,.tile b){font-family:var(--font-display);font-weight:400;letter-spacing:0}
:is(.menu-glass,.menu-bg,.settings,.fc-skin,.acct-card) :is(.caps,.name-row label,.logo-tag,.st-fig dt,.br-round,.road-step small,.st-ribbon,.st-wl small,.trophy-word,.rank-kicker,.lb-scope b,.fr-label,.m-more){text-transform:none;letter-spacing:0}      /* normal case everywhere (the owner's rule): no tracked capitals.
   Codes (code boxes, the search field, court codes) stay in capitals: they are codes, not labels */
#screen-lobby .name-row label,#screen-lobby.needs-name .name-row label{text-transform:none;letter-spacing:0}

/* ---------- the glass: the live court under a cobalt sky wash (still the one blur; no new filters, no full-screen art over the renderer) ---------- */
.glass{background:var(--cp-scrim)}      /* FULL SWEEP: the light frosted layer over the court (the blur stays), never a navy dim */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){ .glass{background:var(--cp-well)} }

/* ---------- the plate button: .btn, every size and variant. The face is ::before, the ink drop plate ::after; the neon selection slab
   is a second shadow of the face, so it sits between the two and slides in from the left ---------- */
.btn{border-width:0!important;background:none!important;box-shadow:none!important;border-radius:var(--ua-r);color:var(--cp-sec-label);font-family:var(--font-display);font-weight:400;letter-spacing:0;
  --bf:var(--cp-sec);--bdx:var(--cp-drop-sm-x);--bdy:var(--cp-drop-sm-y);--slab-x:-1.5rem;--slab-c:rgba(var(--cp-main-rgb),0);--slab-o:rgba(var(--cp-ink-rgb),0)}
.btn::before{inset:0;height:auto;clip-path:none;border-radius:var(--ua-r);background:linear-gradient(180deg,rgba(255,255,255,0) 12%,rgba(255,255,255,.42) 12% 30%,rgba(255,255,255,0) 30%),var(--bf);
  border:var(--ua-ol) solid var(--bo,var(--ua-outline));transform:skewX(var(--ua-skew));opacity:1;z-index:-1;
  box-shadow:inset 0 .125rem 0 rgba(255,255,255,.9), var(--slab-x) .375rem 0 0 var(--slab-c), var(--slab-x) .375rem 0 var(--ua-ol) var(--slab-o);
  transition:box-shadow 170ms var(--ua-snap)}
.btn::after,.btn:hover::after,.btn:focus-visible::after,.btn.is-focus::after{inset:0;border-radius:var(--ua-r);background:var(--ua-outline);box-shadow:none;opacity:1;animation:none;z-index:-2;
  transform:translate(var(--bdx),var(--bdy)) skewX(var(--ua-skew));transition:transform 200ms var(--ua-spring)}
.btn.ae-sel,html:not(.ae-on) .btn:focus-visible{--slab-x:-.4375rem;--slab-c:var(--ua-neon);--slab-o:var(--cp-deep)}      /* THE selection (aero.js: the mouse's, else focus, else the primary; without it, focus): the neon slab slides in under it, the drop plate deepens. A dimmed control keeps its focus mark */
.btn:active,.btn.is-pressed{--bf:var(--cp-sec-press);--bdx:.0625rem;--bdy:.125rem}
.btn.is-focus{--bf:var(--ua-neon);--bo:var(--cp-deep);color:#fff;}      /* THE primary action: neon, outline ink on it */
.btn.is-focus:active,.btn.is-focus.is-pressed{--bf:var(--ua-neon-shade)}
.btn-icon[aria-expanded="true"]{--bf:var(--ua-haze)} .btn-icon svg{stroke:var(--ua-outline)} .btn-icon[aria-expanded="true"] svg{stroke:var(--ua-outline)}
.btn-quiet{--bf:rgba(255,255,255,.92)}
.btn-danger{--bf:#fff;color:var(--ua-red-shade)}      /* ONE danger face everywhere (Leave court, Leave tournament): the white plate, the outline, the text in the red shade */
.btn svg{stroke:currentColor}      /* a key letter on a primary keeps its own ink */
.btn-xl{height:5.75rem;font-size:var(--t-2xl);--bdx:var(--cp-drop-x);--bdy:var(--cp-drop-y)}
.btn-xl:is(.ae-sel,:focus-visible){--slab-x:-.75rem}
.btn-lg{--bdx:var(--cp-drop-x);--bdy:var(--cp-drop-y)}

/* ---------- cards: .panel and .well in the menus, the settings card and the account cards. Straight, so a card that scrolls never clips its own
   slant; the chunky outline, a hard offset ink drop and a glassy top band carry the language. Headings sit on dark slanted plates ---------- */
:is(.menu-glass .panel,.menu-bg .panel,.panel.settings,.panel.acct-card){border:var(--ua-ol) solid var(--ua-outline);border-radius:.5rem;
  background:linear-gradient(180deg,#fff 0%,var(--ua-cloud) 50%,var(--cp-sky-2) 100%);box-shadow:var(--cp-drop-x) var(--cp-drop-y) 0 var(--ua-outline), inset 0 .1875rem 0 #fff}
:is(.menu-glass,.menu-bg) .panel::before{inset:.375rem .375rem auto;height:2.25rem;border-radius:.25rem;background:linear-gradient(180deg,rgba(255,255,255,.95),rgba(255,255,255,0))}
.panel.settings{background:linear-gradient(180deg,rgba(255,255,255,.93),rgba(231,239,255,.88));box-shadow:var(--cp-drop-x) var(--cp-drop-y) 0 var(--ua-outline)}
body[data-paused] .panel.settings{background:linear-gradient(180deg,#fff,var(--cp-sky-2))}
:is(.menu-glass,.menu-bg) .panel.panel-sm{border-width:var(--ua-ol)}
:is(.menu-glass,.menu-bg) .panel.is-error{border-color:var(--ua-outline);box-shadow:var(--cp-drop-x) var(--cp-drop-y) 0 var(--cp-ink)}
:is(.menu-glass,.menu-bg,.settings,.fc-skin,.acct-card) .well{border:.125rem solid rgba(var(--cp-ink-rgb),.28);border-radius:var(--ua-r);background:linear-gradient(180deg,var(--sky-2),#fff);box-shadow:inset 0 .125rem .25rem rgba(var(--cp-ink-rgb),.12)}

/* the dark slanted label plate: a heading in white Days One on outline ink, its drop plate in cobalt */
.menu-title,.settings h2,.acct-card h2{position:relative;isolation:isolate}
.menu-title{color:#fff;font-family:var(--font-display);font-weight:400;letter-spacing:0;font-size:var(--t-xl);padding:.3rem 1.375rem .4rem 1.125rem;line-height:1.1}
.menu-title::before,.settings > .set-head h2::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:var(--ua-r);background:var(--ua-outline);transform:skewX(var(--ua-skew));
  box-shadow:inset 0 .125rem 0 rgba(255,255,255,.16), var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--cp-ink)}
.settings > .set-head h2{display:inline-block;color:#fff;padding:.2rem 1rem .3rem .75rem;margin-left:.25rem}
body[data-paused] .settings > .set-head h2{color:#fff}      /* Paused is a heading, not a live thing: white on the ink plate like every heading (the HUD's Paused tag too) */
.settings h2{font-size:var(--t-lg)}

/* ---------- the menu frame: a white header with a heavy ink rule, a cobalt footer ---------- */
:is(.menu-glass,.menu-bg) .menu-head{background:linear-gradient(180deg,#fff 0%,var(--ua-cloud) 100%);border-bottom:var(--ua-ol) solid var(--ua-outline);box-shadow:0 .3125rem 0 rgba(var(--cp-deep-rgb),.5)}
:is(.menu-glass,.menu-bg) .menu-foot{background:var(--ua-cobalt-deep);border-top:var(--ua-ol) solid var(--ua-outline);color:#fff}
:is(.menu-glass,.menu-bg) .menu-foot .foot-link{color:#fff} :is(.menu-glass,.menu-bg) .menu-foot .foot-link.foot-legal{color:var(--ua-haze)}
:is(.menu-glass,.menu-bg) .menu-foot a:not(.foot-link):not(.ph-badge){color:#fff}
:is(.menu-glass,.menu-bg) .menu-foot .keyhints-inline,:is(.menu-glass,.menu-bg) .menu-foot .foot-agree{color:#fff}
:is(.menu-glass,.menu-bg) .menu-foot .keycap{background:#fff;color:var(--ua-outline);border-color:var(--ua-outline);border-bottom-width:.1875rem;border-radius:.25rem}
.lobby-online{color:var(--ua-ink);font-family:var(--font-display);font-weight:400}
.lobby-online::before,.lobby-online::after{background:var(--cp-live);box-shadow:0 0 0 .125rem var(--ua-outline)} .lobby-online::after{box-shadow:none}      /* live: the neon dot */

/* ---------- the title ---------- */
:is(.menu-glass,.menu-bg) .logo-mark{font-family:var(--font-display);font-weight:400;font-size:8.75rem;letter-spacing:-.01em;filter:drop-shadow(0 .05em 0 var(--ua-outline)) drop-shadow(0 .1em .14em rgba(var(--cp-deep-rgb),.45))}
/* the wordmark (owner 2026-11-07, logo lab 18 in Outfit, NOTES 296): all lowercase (the drawn letters only: the heading still reads "Poddle"), white with a soft navy drop; the o is the glossy seven-hole ball */
:is(.menu-glass,.menu-bg) .logo-mark{font-family:var(--font-logo);font-weight:400;letter-spacing:0;text-transform:none;filter:none;text-shadow:0 .05em 0 var(--ua-outline),0 .1em .14em rgba(10,23,71,.35)}
:is(.menu-glass,.menu-bg) .logo-mark > .logo-ball{width:.6em;height:.6em;margin:.2em .03em 0;border-radius:50%;background:var(--ball-holes) 50%/100% no-repeat,var(--ball-body) 50%/100% no-repeat;box-shadow:none;filter:drop-shadow(0 .05em 0 var(--ua-outline))}
:is(.menu-glass,.menu-bg) .logo-ball{width:.56em;height:.56em;margin:.21em .03em 0 .025em;border-radius:50%;      /* the o is the ball: neon with an outline ring at the strokes' weight, and a lit arc */
  background:radial-gradient(circle at 36% 30%, rgba(255,255,255,.75) 0 .05em, transparent .055em), radial-gradient(circle at 50% 50%, var(--ball) 0 .2em, transparent .205em), var(--ua-outline);
  box-shadow:none}
:is(.menu-glass,.menu-bg) .logo-tag{position:relative;isolation:isolate;margin:.5rem 0 0;padding:.3rem 1.125rem .4rem .875rem;font-family:var(--font-display);font-weight:400;font-size:var(--t-lg);color:#fff;text-shadow:none}
:is(.menu-glass,.menu-bg) .logo-tag::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:var(--ua-r);background:var(--ua-outline);transform:skewX(var(--ua-skew));box-shadow:var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--cp-ink)}
:is(.menu-glass,.menu-bg) .t-note{color:#fff;font-weight:400;font-family:var(--font-display);font-size:max(var(--t-md),13px);text-shadow:0 .0625rem 0 var(--ua-outline), 0 0 .5rem rgba(var(--cp-deep-rgb),.8)}
:is(.menu-glass,.menu-bg) .panel .t-note,:is(.menu-glass,.menu-bg) .rooms .t-note{color:var(--ua-ink);font-size:var(--t-sm);text-shadow:none}      /* on a card: ink, not the glass's white */
#screen-title .safety h3{font-family:var(--font-display);font-weight:400;color:var(--ua-outline);letter-spacing:0}
#screen-title .safety p{color:var(--ua-ink)}
.room-pill b{font-family:var(--font-display);font-weight:400;letter-spacing:.06em;color:var(--ua-cobalt)}
.art-line{stroke:var(--ua-outline)} .art-fill{stroke:var(--ua-outline)} .art-skin{stroke:var(--ua-outline)}

/* ---------- the big playful blocks: the lobby home's tiles (data-n 4/5/6 keep their grid). Same plates as a button, bigger: face, drop plate,
   the neon slab, a label on its own slanted plate; they tilt toward the pointer and pop forward (aero.js feeds --rx/--ry) ---------- */
#screen-lobby .tile{border:0;border-radius:var(--ua-r);background:none;box-shadow:none;color:var(--ua-outline);font-family:var(--font-display);font-weight:400;letter-spacing:0;text-shadow:none;
  --tf:#fff;--tg:rgba(var(--cp-main-rgb),.14);--tl:var(--ua-outline);--tlc:#fff;--line:var(--ua-cobalt);
  --dx:var(--cp-drop-x);--dy:var(--cp-drop-y);--slab-x:-2.25rem;--slab-c:rgba(var(--cp-main-rgb),0);--slab-o:rgba(var(--cp-ink-rgb),0);
  transform:perspective(56rem) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));rotate:none;
  transition:transform 200ms var(--ua-spring), translate 220ms var(--ua-spring), scale 220ms var(--ua-spring), opacity var(--d-med) var(--ease-soft)}
#screen-lobby .tile::before{content:"";position:absolute;inset:0;height:auto;border-radius:var(--ua-r);z-index:-1;opacity:1;pointer-events:none;
  background:linear-gradient(180deg,rgba(255,255,255,0) 9%,rgba(255,255,255,.34) 9% 24%,rgba(255,255,255,0) 24%),var(--tf);
  border:var(--ua-ol) solid var(--bo,var(--ua-outline));transform:skewX(var(--ua-skew));
  box-shadow:inset 0 .1875rem 0 rgba(255,255,255,.85), var(--slab-x) .75rem 0 0 var(--slab-c), var(--slab-x) .75rem 0 var(--ua-ol) var(--slab-o);
  transition:box-shadow 170ms var(--ua-snap), translate 220ms var(--ua-spring)}
/* the lift (round 4): the face plate and what sits on it rise (--lift-x/--lift-y on ::before and the children), never the tile's own box: ui-next
   measures the tiles' tops with getBoundingClientRect and they must stay level while Quick play holds the selection at rest */
#screen-lobby .tile::before,#screen-lobby .tile > *{translate:var(--lift-x,0rem) var(--lift-y,0rem)}
#screen-lobby .tile > *{transition:translate 220ms var(--ua-spring)}
#screen-lobby .tile::after,#screen-lobby .tile:is(:hover,:focus-visible)::after{content:"";display:block;position:absolute;inset:0;border-radius:var(--ua-r);background:var(--ua-outline);box-shadow:none;opacity:1;animation:none;z-index:-2;pointer-events:none;
  transform:translate(var(--dx),var(--dy)) skewX(var(--ua-skew));transition:transform 200ms var(--ua-spring)}
#screen-lobby.needs-name .tile::after{display:block}
/* the one selection (aero.js .ae-sel: the tile under the mouse, else keyboard / pad focus; two never show) */
html:not(.ae-on) #screen-lobby .tile:focus-visible,#screen-lobby .tile.ae-sel{--slab-x:-.75rem;--slab-c:var(--ua-neon);--slab-o:var(--cp-deep);--lift-x:-.25rem;--lift-y:-.375rem;z-index:2}
#screen-lobby .tile:hover,#screen-lobby .tile:focus-visible{transform:perspective(56rem) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));rotate:none;background:none;border-color:transparent}
#screen-lobby .tile:active,#screen-lobby .tile:nth-child(n):active{transform:perspective(56rem) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) scale(1,.9);background:none;--dx:.125rem;--dy:.1875rem;--lift-x:0rem;--lift-y:0rem;transition-duration:45ms}
#screen-lobby.needs-name .tile:is(:hover,:focus-visible){--rx:0deg;--ry:0deg;--lift-x:0rem;--lift-y:0rem}
#screen-lobby .tile b,#screen-lobby .tile .tile-text b{position:relative;z-index:1;display:inline-block;padding:.12em .66em .2em .56em;color:var(--tlc);line-height:1.05;white-space:nowrap}
#screen-lobby .tile b::before{content:"";position:absolute;inset:0 .14em;z-index:-1;border-radius:.3125rem;background:var(--tl);transform:skewX(var(--ua-skew));box-shadow:inset 0 0 0 .15625rem var(--ua-outline), inset 0 .1875rem 0 rgba(255,255,255,.4)}
#screen-lobby .tile svg{position:relative;z-index:1;filter:drop-shadow(.1875rem .25rem 0 rgba(var(--cp-ink-rgb),.28))}
#screen-lobby .tile .art-fill{fill:#fff;stroke:var(--ua-outline)} #screen-lobby .tile .art-line{stroke:var(--ua-outline)}
#screen-lobby .tile .art-accent{stroke:var(--line)} #screen-lobby .tile .art-accent-fill{fill:var(--line);stroke:var(--line)}
/* Quick play: THE primary, neon, its label on an ink plate */
#screen-lobby #btn-quick{--tf:var(--ua-neon);--bo:var(--cp-deep);--tg:rgba(var(--cp-deep-rgb),.22);--tl:var(--cp-deep);--tlc:#fff;--line:var(--cp-deep);color:var(--cp-deep);text-shadow:none;background:none}
#screen-lobby #btn-quick::before{opacity:1} #screen-lobby #btn-quick .art-fill{fill:#fff;stroke:var(--ua-outline)} #screen-lobby #btn-quick .art-accent-fill{fill:var(--ua-outline);stroke:var(--ua-outline)}
#screen-lobby #btn-quick:active{background:none}
/* how you play: cobalt blocks with white label plates */
#screen-lobby :is(#btn-courts,#btn-bot){--tf:var(--ua-cobalt);--bo:var(--cp-deep);--tg:rgba(var(--cp-deep-rgb),.45);--tl:#fff;--tlc:var(--ua-outline);--line:var(--ua-outline)}
#screen-lobby #btn-bot .art-accent{stroke:var(--me)}      /* Matt's face keeps his warm mouth */
/* everything else: white blocks; their labels on ink plates (the one rule: ink plates on light blocks, white plates on cobalt) */
#screen-lobby :is(#btn-friends,#btn-profile,#btn-leaderboard){--line:var(--ua-cobalt)}
/* a count on a block ('8 open', friend requests): white on an ink plate (the reference's '14'; a routine count is not a number that matters) */
#screen-lobby .tile .tile-sub{z-index:2;height:1.875rem;padding:0 .75rem .0625rem .625rem;border:0;border-radius:0;background:none;color:#fff;font-family:var(--font-display);font-weight:400;font-size:var(--t-md);isolation:isolate}
#screen-lobby .tile .tile-sub::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:.25rem;background:var(--ua-outline);transform:skewX(var(--ua-skew));box-shadow:var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--cp-ink)}
#screen-lobby .tile .tile-line{font-family:var(--font-display);font-weight:400;color:var(--ua-ink)}
.fr-dot.is-on{background:var(--cp-live);box-shadow:0 0 0 .125rem var(--ua-outline)}      /* online: live, neon */

/* the name row: a white plate, its field straight and inset */
#screen-lobby .name-row{background:none;border:0;box-shadow:none;isolation:isolate}
#screen-lobby .name-row::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:var(--ua-r);background:linear-gradient(180deg,#fff,var(--ua-cloud));border:var(--ua-ol) solid var(--ua-outline);transform:skewX(var(--ua-skew));box-shadow:var(--cp-drop-x) var(--cp-drop-y) 0 var(--ua-outline)}
#screen-lobby .name-row label{font-family:var(--font-display);font-weight:400;font-size:var(--t-md);color:var(--ua-outline)}
#screen-lobby.needs-name .name-row{background:none;border-color:transparent}
#screen-lobby.needs-name .name-row:not(:focus-within)::after{border-radius:var(--ua-r);transform:skewX(var(--ua-skew))}
:is(.menu-glass,.menu-bg,.settings,.fc-skin,.acct-card) .field{border-radius:var(--ua-r);border:.15625rem solid var(--ua-outline);background:#fff;box-shadow:inset 0 .1875rem 0 rgba(var(--cp-ink-rgb),.1);color:var(--ua-outline);font-family:var(--font-text);font-weight:500;caret-color:var(--ua-cobalt)}
:is(.menu-glass,.menu-bg,.settings,.fc-skin,.acct-card) .field:focus{border-color:var(--ua-outline);box-shadow:var(--glow), inset 0 .1875rem 0 rgba(var(--cp-ink-rgb),.1)}

/* ---------- the switch (.seg) and tabs: an ink-ruled track; the pick is a slanted cobalt thumb that slides (a state, not the one selection: the neon is the slab's) ---------- */
:is(.menu-glass,.menu-bg,.settings,.fc-skin,.acct-card) .seg{border-radius:var(--ua-r);background:rgba(var(--cp-ink-rgb),.07);border:.125rem solid rgba(var(--cp-ink-rgb),.3);box-shadow:inset 0 .125rem .25rem rgba(var(--cp-ink-rgb),.12)}
:is(.menu-glass,.menu-bg,.settings,.fc-skin,.acct-card) .seg::before{border-radius:.3125rem;background:var(--ua-cobalt);box-shadow:inset 0 0 0 var(--tb) var(--cp-deep), var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--cp-ink);
  transform:translateX(var(--tx,0)) skewX(var(--ua-skew))}
:is(.menu-glass,.menu-bg,.settings,.fc-skin,.acct-card) .seg-opt{border-radius:.3125rem;color:var(--ua-ink);font-weight:400}
:is(.menu-glass,.menu-bg,.settings,.fc-skin,.acct-card) .seg-opt[aria-checked="true"]{color:#fff;background:var(--ua-cobalt);border-color:var(--cp-deep)}
:is(.menu-glass,.menu-bg,.settings,.fc-skin,.acct-card) .seg.has-thumb > .seg-opt[aria-checked="true"]{background:none;border-color:transparent}
:is(.menu-glass,.menu-bg,.settings,.fc-skin,.acct-card) .seg-n{font-family:var(--font-display);font-weight:400}

/* ---------- code boxes and chips ---------- */
:is(.menu-glass,.menu-bg,.acct-card) .code-box{border-radius:var(--ua-r);border:var(--ua-ol) solid var(--ua-outline);background:#fff;box-shadow:inset 0 .25rem 0 rgba(var(--cp-ink-rgb),.1), var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--ua-outline);color:var(--ua-outline);font-family:var(--font-display);font-weight:400}
:is(.menu-glass,.menu-bg,.acct-card) .code-boxes.is-static .code-box{border-color:var(--ua-outline);color:var(--ua-cobalt)}
:is(.menu-glass,.menu-bg,.acct-card) input.code-box:focus{border-color:var(--ua-outline);box-shadow:var(--glow)}
:is(.menu-glass,.menu-bg) .room-row{border-radius:var(--ua-r);border:.15625rem solid var(--ua-outline);background:#fff;box-shadow:var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--ua-outline);font-family:var(--font-text)}
:is(.menu-glass,.menu-bg) .room-row b{font-family:var(--font-display);font-weight:400;letter-spacing:.08em;color:var(--ua-cobalt)}
:is(.menu-glass,.menu-bg) .room-row::after{border-color:var(--ua-outline)}

/* the court list: each row's go is a cobalt plate; the row you are on lights it neon */
:is(.menu-glass,.menu-bg) .court-go{position:relative;isolation:isolate;border-radius:0;background:none;color:#fff;font-family:var(--font-display);font-weight:400}
:is(.menu-glass,.menu-bg) .court-go::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:var(--ua-r);background:var(--ua-cobalt);border:.125rem solid var(--ua-outline);transform:skewX(var(--ua-skew))}
:is(.menu-glass,.menu-bg) .court[data-kind="ask"] .court-go{background:none;color:#fff} :is(.menu-glass,.menu-bg) .court[data-kind="ask"] .court-go::before{background:var(--ua-ink)}
:is(.menu-glass,.menu-bg) .court-row.is-full .court-go{background:none;color:var(--ua-outline)} :is(.menu-glass,.menu-bg) .court-row.is-full .court-go::before{background:var(--ua-haze)}
:is(.menu-glass,.menu-bg) .court-row[aria-disabled="true"] .court-go{background:none;color:var(--ink-soft)} :is(.menu-glass,.menu-bg) .court-row[aria-disabled="true"] .court-go::before{display:none}
@media (hover:hover){ #screen-lobby:not(.needs-name):not(.is-down) .court-row:not([aria-disabled="true"]):hover .court-go{color:var(--ua-outline)} #screen-lobby:not(.needs-name):not(.is-down) .court-row:not([aria-disabled="true"]):hover .court-go::before{background:var(--ua-neon)} }
:is(.menu-glass,.menu-bg) .court-row:not([aria-disabled="true"]):focus-visible .court-go{color:var(--ua-outline)} :is(.menu-glass,.menu-bg) .court-row:not([aria-disabled="true"]):focus-visible .court-go::before{background:var(--ua-neon)}
:is(.menu-glass,.menu-bg) .seg-n{border-radius:.25rem;background:var(--ua-outline);color:#fff}
:is(.menu-glass,.menu-bg) .seg-opt[aria-checked="true"] .seg-n{background:var(--ua-outline);color:#fff}

#lobby-tour .btn:focus-visible,#tour-card .btn:focus-visible{outline:0}
:is(.menu-glass,.menu-bg) .br-live,.settings .br-live{color:var(--ua-outline)} :is(.menu-glass,.menu-bg) .br-dot,.settings .br-dot{background:var(--cp-live);box-shadow:0 0 0 .125rem var(--ua-outline)}      /* live: neon */
:is(.menu-glass,.menu-bg) .br-match.is-live{border-color:var(--ua-outline)}      /* the neon slab is the focus mark */
.br-match:focus-visible{outline-color:var(--ua-outline)}
.btn small{font-family:var(--font-display);font-weight:400}
#bot-title{font-family:var(--font-display);font-weight:400;font-size:var(--t-lg);color:var(--ua-outline)}
.tour-n b{color:var(--ua-cobalt)}

/* ---------- the settings card's rows ---------- */
.settings .set-row{font-family:var(--font-text);color:var(--ua-outline)}
/* a switch (the settings card's, the leaderboard's Show me): ONE pill track with a round knob, so it reads as one switch and never as two boxes
   (owner 2026-11-07, NOTES 314). Off: a white track, the ink knob on the left. On: the neon track (rule 5: neon is chosen), a white knob on the right. One ink outline */
:is(.settings,.menu-glass) .set-switch i{border-radius:var(--r-pill);background:#fff;box-shadow:inset 0 0 0 .125rem var(--ua-outline)}
:is(.settings,.menu-glass) .set-switch i::before{border-radius:inherit;background:var(--ua-neon);box-shadow:inset 0 0 0 .125rem var(--ua-outline)}
:is(.settings,.menu-glass) .set-switch i::after{left:.25rem;top:.25rem;width:1.375rem;height:1.375rem;border-radius:50%;background:var(--ua-outline);box-shadow:none}
:is(.settings,.menu-glass) .set-switch[aria-checked="true"] i::after{background:#fff;box-shadow:inset 0 0 0 .125rem var(--ua-outline)}

/* ---------- reduced motion: the plates stay, nothing tilts or slides ---------- */
@media (prefers-reduced-motion: reduce){
  #screen-lobby .tile{transform:none!important;translate:none!important}
  #screen-lobby .tile::before,#screen-lobby .tile > *{translate:none!important}
  #screen-lobby .tile::before,.btn::before{transition:none}
}

/* ---------- punch (aero.js): a key press squashes like a click; the flash and the slash ride on .ae-fx, between the face and the label ---------- */
#screen-lobby .tile.ae-down{transform:perspective(56rem) scale(1,.9);--dx:.125rem;--dy:.1875rem;--lift-x:0rem;--lift-y:0rem;transition-duration:45ms}
.btn.ae-down{transform:scale(.955)}
.ae-fx{position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:var(--ua-r);transform:skewX(var(--ua-skew));overflow:hidden}
.ae-fx::before{content:"";position:absolute;inset:0;background:#fff;opacity:0}
.ae-fx::after{content:"";position:absolute;inset:0;background:var(--ae-sweep,#fff);transform:translateX(-101%);opacity:0}      /* --ae-sweep: aero.js punch() makes it neon on a white face, where a white panel is invisible (owner 2026-11-07: "i barely see the button sweep") */      /* the press: one solid white panel sweeps across the face (owner's pick, click lab 3, NOTES 290) */
.ae-punch > .ae-fx::after{animation:ae-slash 230ms cubic-bezier(.3,.1,.25,1)}      /* the panel crosses the face at a speed the eye can follow (the old expo-out landed 3/4 of it in ~50 ms: a blink), and is done before aero.js T.BEAT lets the wipe in (owner 2026-11-07) */
@keyframes ae-flash{0%,30%{opacity:.7}100%{opacity:0}}
@keyframes ae-slash{0%{opacity:.9;transform:translateX(-101%)}100%{opacity:.9;transform:translateX(101%)}}

/* ---------- the screen wipe (aero.js): three slabs at their own slants (sky, white, cobalt), each with an offset edge; the ball flies
   the seam over the cobalt slab and the red stripe it tears is the cobalt slab's own child (.w-stripe, round 5). A lobby view change: one cobalt slash (.w-view) ---------- */
.ae-wipe{position:fixed;inset:0;z-index:100;pointer-events:none;overflow:hidden;visibility:hidden}
.ae-wipe.is-on{visibility:visible}
.ae-wipe > canvas.w-band{position:absolute;inset:0;top:0;left:0;width:100%;height:100%;display:block;background:none;border-radius:0;transform:none}      /* the band sweep (aero.js draw, NOTES 335) */
.ae-wipe > :is(i,b){position:absolute;left:-40%;width:180%;border-radius:.875rem;transform:rotate(var(--a)) translateX(-140%)}
.ae-wipe .w-sky{top:-60%;height:220%;--a:-8deg;background:linear-gradient(180deg,#33ceff,var(--ua-haze))}
/* the seam: the cobalt slab's own box and slant, never moved, so its top edge is the line the ball runs on at every size (aero.js reads the slant from here) */
/* the trail: a tapered streak behind the ball, opaque at the ball, gone ~30vw back; white core, haze body, an ink edge on the cobalt side */

/* ---------- Your stats and the profile card: the trophy count is the number that matters (neon on an ink plate); the progress bars are stacked slanted bars ---------- */
:is(.menu-glass,.menu-bg,.acct-card) .st-rank-cap b{position:relative;isolation:isolate;display:inline-block;padding:.05em .45em .1em .35em;color:var(--ua-neon);font-family:var(--font-display);font-weight:400}
:is(.menu-glass,.menu-bg,.acct-card) .st-rank-cap b::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:.25rem;background:var(--ua-outline);transform:skewX(var(--ua-skew))}
:is(.menu-glass,.menu-bg,.acct-card) .st-rank-name{font-family:var(--font-display);font-weight:400;letter-spacing:0;color:var(--ua-outline)}
:is(.menu-glass,.menu-bg,.acct-card) .st-rank-bar,.head-acct-bar{border-radius:.1875rem;background:rgba(var(--cp-ink-rgb),.12);box-shadow:inset 0 0 0 .125rem var(--ua-outline);transform:skewX(var(--ua-skew))}
:is(.menu-glass,.menu-bg,.acct-card) .st-rank-bar i,.head-acct-bar i{border-radius:0;background:linear-gradient(180deg,#8fe0ff,var(--ua-cobalt) 50%,var(--cp-deep));box-shadow:inset 0 0 0 .125rem var(--ua-outline)}      /* progress is a cobalt bar (the reference's stacked haze / cobalt bars); the neon is the count beside it, not the slab */
:is(.menu-glass,.menu-bg,.acct-card) :is(.st-wl b,.st-num b,.st-ret-n b,.st-mbest){font-family:var(--font-display);font-weight:400;letter-spacing:0}
:is(.menu-glass,.menu-bg,.acct-card) .st-fig dd{font-family:var(--font-display);font-weight:400}      /* five across: Days One would not fit '277h 46m' */
:is(.menu-glass,.menu-bg,.acct-card) .st-wl b.is-me{color:var(--ua-cobalt)} :is(.menu-glass,.menu-bg,.acct-card) .st-wl b.is-them{color:var(--ua-ink)}
.head-acct-n{color:var(--ua-outline);font-family:var(--font-display);font-weight:400}
/* the phone home's paddle code (#m-pad): one inset field, P- and the code in Days One */
:is(.menu-glass,.menu-bg) .m-pad-field{border-radius:var(--ua-r);border:var(--ua-ol) solid var(--ua-outline);background:#fff;box-shadow:inset 0 .1875rem 0 rgba(var(--cp-ink-rgb),.1)}
:is(.menu-glass,.menu-bg) .m-pad-field:focus-within{border-color:var(--ua-outline);box-shadow:var(--glow)}
:is(.menu-glass,.menu-bg) .m-pad .field,:is(.menu-glass,.menu-bg) .m-pad .field:focus{border:0;background:none;box-shadow:none;font-family:var(--font-display);font-weight:400}
:is(.menu-glass,.menu-bg) .m-pad-pre{font-family:var(--font-display);font-weight:400;color:var(--ua-ink)}
:is(.menu-glass,.menu-bg) .m-pad h2{font-family:var(--font-display);font-weight:400;color:var(--ua-outline)}
/* the profile card's figures: Days One runs wide, so its numbers are a size down there (the widest, '277h 46m', fits its tile) */
.acct-card .st-num b,.acct-card .st-ret-n b{font-size:1.625rem}
/* chips and link rows in the menus: small-radius plates with the outline ink, not pills */
:is(.menu-glass,.menu-bg) .tour-chip{border-radius:var(--ua-r);border-color:rgba(var(--cp-ink-rgb),.35);box-shadow:var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--cp-ink)}
:is(.menu-glass,.menu-bg) .tour-chip.is-you{border-color:var(--me);background:var(--me-tint)}
:is(.menu-glass,.menu-bg) .share-link{border-radius:var(--ua-r)}
:is(.menu-glass,.menu-bg) .share-link .addr{border-radius:.25rem}
/* faces that carry a state, routed through --bf now that the face is the plate (the HUD's own restyle is a later phase) */
.g-btn{--bf:#fff}      /* Google's G stays on white */
.btn.ask-yes{--bf:var(--ua-neon);--bo:var(--cp-deep);color:#fff;} .ask-yes .keycap{border-color:var(--ua-outline)}      /* the ask card's primary */
.btn.ask-play[data-s="no"]{--bf:var(--them-tint)}

/* (the result card's rules: ua-views.css THE RESULT PANEL, owner 2026-11-16 rebuild) */

/* ---------- a neon face that holds the selection takes a cobalt-deep slab (neon under neon reads as a misprint); so does Back (navigation is not
   what matters: focus still shows, in blue). Only white and cobalt controls get the neon slab ---------- */
.btn.ae-sel:is(.is-focus,.ask-yes),html:not(.ae-on) .btn:focus-visible:is(.is-focus,.ask-yes),
#screen-match .ae-sel:is(#btn-rematch:not(:disabled),#btn-see-bracket,#btn-champ-back){--slab-c:var(--ua-cobalt-deep)}
#screen-lobby #btn-quick.ae-sel,html:not(.ae-on) #screen-lobby #btn-quick:focus-visible{--slab-c:var(--ua-cobalt-deep)}
/* at rest their (transparent) slab is already cobalt, so the slide-in never blends through yellow on its way to cobalt-deep. (Back is a white button: ONE slab colour for a selected white button, neon) */
.btn.is-focus,.btn.ask-yes{--slab-c:rgba(var(--cp-deep-rgb),0)}
#btn-watch-yes,#screen-match :is(#btn-rematch,#btn-see-bracket,#btn-champ-back),#screen-lobby #btn-quick{--slab-c:rgba(var(--cp-deep-rgb),0)}
/* the slab is a full offset plate (the face's slant, an ink outline), down and to the left, so it reads as a thing that slid in */
.btn{--slab-y:.375rem}
.btn::before{box-shadow:inset 0 .125rem 0 rgba(255,255,255,.9), var(--slab-x) var(--slab-y) 0 0 var(--slab-c), var(--slab-x) var(--slab-y) 0 var(--ua-ol) var(--slab-o)}
.btn.ae-sel,html:not(.ae-on) .btn:focus-visible{--slab-x:-.625rem;--slab-y:.5625rem}
.btn-xl:is(.ae-sel,:focus-visible){--slab-x:-.875rem;--slab-y:.75rem}

/* ---------- phone and narrow widths: 16px from the window's side to the outermost painted pixel (the face's slant, the slab, the lift, the drop).
   The grid is inset by the overhang; the slab drops straight down instead of left; the lift only rises. Bigger labels on the bars ---------- */
@media (max-width:600px){
  #screen-lobby .tiles{box-sizing:border-box;padding-left:1.5rem;padding-right:2rem}
  html:not(.ae-on) #screen-lobby .tile:focus-visible,#screen-lobby .tile.ae-sel{--slab-x:0rem;--lift-x:0rem;--lift-y:-.25rem}
  #screen-lobby .tile{--dx:var(--cp-drop-x);--dy:var(--cp-drop-y)}
  .btn.ae-sel,html:not(.ae-on) .btn:focus-visible{--slab-x:-.375rem}
}
@media (max-width:480px){
  #screen-lobby #btn-quick b{font-size:2.25rem}
  #screen-lobby .tiles .tile:not(#btn-quick) b{font-size:1.75rem}
}
@media (max-width:600px){
  :is(.menu-glass,.menu-bg) .btn-back{left:1.5rem}
  :is(.menu-glass,.menu-bg) .head-end{right:2rem}
}
@media (max-width:600px){
  :is(.menu-glass,.menu-bg) .btn-back{left:2.125rem} :is(.menu-glass,.menu-bg) .head-end{right:2.25rem}
  .btn.ae-sel,html:not(.ae-on) .btn:focus-visible{--slab-x:0rem}
  .settings .set-foot .btn,.tour-card .btn{--bdx:var(--cp-drop-sm-x);--bdy:var(--cp-drop-sm-y)}
}
/* the Courts footer's two buttons: one line each, the same height (Days One runs wider than M PLUS did) */
/* a field's focus ring is ink and cobalt: the neon selection slab is for the controls, so a typed-in field never shows a second neon mark */
:is(.menu-glass,.menu-bg,.settings,.fc-skin,.acct-card) :is(.field:focus,input.code-box:focus),:is(.menu-glass,.menu-bg) .m-pad-field:focus-within{box-shadow:0 0 0 .1875rem var(--ua-outline), 0 0 0 .4375rem var(--ua-cobalt), inset 0 .1875rem 0 rgba(var(--cp-ink-rgb),.1)}
/* a dimmed block (no name yet, the server down): a concrete face, ink at rest, the label plate apron; the neon never fades over the court,
   and a count goes quiet. Held just under .7 (ui-next asserts the dim) */
#screen-lobby:is(.needs-name,.is-down) .tile,#screen-lobby:is(.needs-name,.is-down) #btn-quick,#screen-lobby:is(.needs-name,.is-down) :is(#btn-courts,#btn-bot){
  --tf:var(--cp-panel);--tg:rgba(var(--cp-main-rgb),.1);--tl:var(--cp-panel);--tlc:var(--cp-text-2);--line:var(--cp-off-2);opacity:.68}
#screen-lobby:is(.needs-name,.is-down) .tile .tile-sub{color:var(--cp-text-2)}
#screen-lobby:is(.needs-name,.is-down) .tile .tile-sub::before{background:var(--cp-panel);box-shadow:inset 0 0 0 var(--cp-ol-sm) rgba(var(--cp-ink-rgb),.4)}
#screen-lobby:is(.needs-name,.is-down) .tile .art-accent-fill{fill:var(--cp-off-2);stroke:var(--cp-off-2)}
#screen-lobby:is(.needs-name,.is-down) .tile .art-line,#screen-lobby:is(.needs-name,.is-down) .tile .art-fill{stroke:rgba(var(--cp-ink-rgb),.6)}

/* ---------- status lamps (settings chips, Connect's rows, Trying again): ready = a cobalt dot in an ink ring (a state, not the one selection), waiting = haze, a problem = signal red ---------- */
.light{background:radial-gradient(circle at 35% 30%,#ff9c94,var(--ua-red) 60%,var(--ua-red-shade));box-shadow:0 0 0 .125rem var(--ua-outline)}
.is-ok > .light,.light.is-ok{background:radial-gradient(circle at 35% 30%,#9dc0ff,var(--ua-cobalt) 60%,var(--ua-cobalt-deep));box-shadow:0 0 0 .125rem var(--ua-outline)}
.is-wait > .light,.light.is-wait{background:radial-gradient(circle at 35% 30%,#fff,var(--ua-haze) 60%,#8fe0ff);box-shadow:0 0 0 .125rem var(--ua-outline)}
.is-off > .light,.light.is-off{background:var(--ua-concrete);box-shadow:0 0 0 .125rem var(--ua-outline)}
.lobby-down .light{background:var(--ua-haze);box-shadow:0 0 0 .125rem var(--ua-outline)}

/* ---------- the settings card: its status chips, the note, and the footer that the rows scroll under ---------- */
.settings .set-status li{border-radius:var(--ua-r);background:#fff;box-shadow:inset 0 0 0 .125rem rgba(var(--cp-ink-rgb),.22);font-family:var(--font-display);font-weight:400;color:var(--ua-outline)}
.settings .set-status .is-bad{background:#fff;color:var(--ua-red-shade);box-shadow:inset 0 0 0 .125rem var(--ua-red)} .settings .set-status .is-wait{color:var(--ua-ink)}
.settings .set-note{border-radius:var(--ua-r);background:var(--ua-haze);border:.125rem solid var(--ua-outline);color:var(--ua-outline);font-family:var(--font-display);font-weight:400}
.settings .set-foot,body[data-paused] .settings .set-foot{border-radius:0 0 .3125rem .3125rem;background:linear-gradient(180deg,rgba(236,243,255,0),#ecf3ff 1.25rem)}

/* ---------- Connect, the camera ask and Calibration (.menu-bg): the menus' own language. The ground is the glass's cobalt sky (no court behind),
   the white header with its ink rule, the cobalt footer, straight cards with the outline and the hard drop ---------- */
.menu-bg{background:var(--tex-vignette), linear-gradient(180deg,var(--cp-deep) 0%,var(--cp-sea) 50%,#8fe0ff 100%)}
.status-row{border-radius:var(--ua-r);border:.15625rem solid var(--ua-outline);background:linear-gradient(180deg,#fff,var(--ua-cloud));box-shadow:var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--ua-outline)}
.status-row.is-ok,.status-row.is-bad{border-color:var(--ua-outline)}
.status-row.is-bad{box-shadow:var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--ua-outline)}
.status-name{font-family:var(--font-display);font-weight:400;color:var(--ua-outline)}
.status-text{font-family:var(--font-text);color:var(--ua-ink)}
.status-state,.status-row.is-ok .status-state,.status-row.is-wait .status-state{font-family:var(--font-display);font-weight:400;letter-spacing:0;color:var(--ua-ink)}
.status-row.is-bad .status-state{color:var(--ua-red-shade)}
.menu-bg .pad-pair{border-radius:var(--ua-r);border:.15625rem solid var(--ua-outline);background:#fff;box-shadow:var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--ua-outline)}
.menu-bg .pad-pair h3,.menu-bg .pad-pair h2{font-family:var(--font-display);font-weight:400;color:var(--ua-outline)}
.menu-bg .t-title{font-family:var(--font-display);font-weight:400;letter-spacing:0;color:var(--ua-outline)}
/* Calibration: the step chips are small plates (on: white with an ink outline; done: a neon number), the picture a straight inset well, 'Screen'
   in normal case, the progress a stacked slanted bar, the count an ink plate */
.menu-bg .steps li{border-radius:var(--ua-r);background:rgba(255,255,255,.25);border:.125rem solid rgba(255,255,255,.5);color:#fff;font-family:var(--font-display);font-weight:400}
.menu-bg .steps li > i{border-radius:.25rem;background:rgba(var(--cp-ink-rgb),.35);font-family:var(--font-display);transform:skewX(var(--ua-skew))}
.menu-bg .steps li.is-on{background:#fff;border-color:var(--ua-outline);color:var(--ua-outline);box-shadow:var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--ua-outline)}
.menu-bg .steps li.is-on > i{background:var(--ua-outline);color:#fff}
.menu-bg .steps li.is-done{background:#fff;border-color:var(--ua-outline);color:var(--ua-ink)} .menu-bg .steps li.is-done > i{background:var(--ua-outline);color:#fff}      /* done: ink, like a step that is on; the one neon on the done screen is the check */
.menu-bg .cal-art{border-radius:var(--ua-r);border:.15625rem solid var(--ua-outline);background:linear-gradient(180deg,var(--ua-cloud),#fff);box-shadow:inset 0 .1875rem 0 rgba(var(--cp-ink-rgb),.08)}
.cal-art text{font-family:var(--font-display);font-weight:400;font-size:14px;letter-spacing:0;text-transform:none;fill:var(--ua-ink)}
.menu-bg .cal-bar{border-radius:.1875rem;border:0;background:rgba(var(--cp-ink-rgb),.08);box-shadow:inset 0 0 0 .1875rem var(--ua-outline);transform:skewX(var(--ua-skew));overflow:hidden}
.menu-bg .cal-bar i{border-radius:0;background:linear-gradient(180deg,#33ceff,var(--ua-cobalt) 55%,var(--ua-cobalt-deep));box-shadow:inset 0 0 0 .1875rem var(--ua-outline)}
.menu-bg .cal-bar.is-bad{border:0} .menu-bg .cal-bar.is-bad i{background:var(--ua-red)}
.menu-bg .cal-bar.is-done{border:0}      /* done: the bar stays cobalt; the check beside it is the one neon thing */
.menu-bg .cal-count{border-radius:var(--ua-r);border:0;background:var(--ua-outline);color:#fff;font-family:var(--font-display);font-weight:400;transform:skewX(var(--ua-skew));box-shadow:var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--cp-ink)}
.menu-bg .cal-count svg{stroke:#fff}
.menu-bg .cal-count.is-bad{background:var(--ua-red-shade);color:#fff} .menu-bg .cal-count.is-done{background:var(--ua-neon);box-shadow:0 0 0 .1875rem var(--ua-outline), var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--cp-ink)} .menu-bg .cal-count.is-done svg{stroke:var(--ua-outline)}
.menu-bg .t-lead{font-family:var(--font-text);color:var(--ua-ink)}

/* ---------- notice cards (Court is full / Can't reach the game / Game is full): the icon on a slanted cobalt plate, white strokes; Yes is THE action ---------- */
.panel.notice .notice-icon{position:relative;isolation:isolate;border:0;border-radius:0;background:none;box-shadow:none}
.panel.notice .notice-icon::before{content:"";position:absolute;inset:.25rem;z-index:-1;border-radius:var(--ua-r);background:linear-gradient(180deg,#33ceff,var(--ua-cobalt) 50%,var(--ua-cobalt-deep));
  border:var(--ua-ol) solid var(--ua-outline);transform:skewX(var(--ua-skew));box-shadow:inset 0 .1875rem 0 rgba(255,255,255,.35), var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--ua-outline)}
.panel.notice .notice-icon .art-line{stroke:#fff}
.panel.notice .notice-icon circle[stroke]{stroke:var(--ua-haze)} .panel.notice .notice-icon circle[fill]:not([fill="none"]){fill:var(--ua-haze)}
.panel.notice h2{font-family:var(--font-display);font-weight:400;letter-spacing:0;color:var(--ua-outline)}
.panel.notice p{font-family:var(--font-text);color:var(--ua-ink)}
#btn-watch-yes{--bf:var(--ua-neon);--bo:var(--cp-deep);color:#fff;}
.btn.ae-sel#btn-watch-yes{--slab-c:var(--ua-cobalt-deep)}
.panel.notice.ask{width:auto;max-width:min(46rem,92vw)}
@media (min-width:761px){ .panel.notice.ask h2{white-space:nowrap} }
.veil > .panel{border:var(--ua-ol) solid var(--ua-outline);border-radius:.5rem;font-family:var(--font-text);background:linear-gradient(180deg,#fff 0%,var(--ua-cloud) 50%,var(--cp-sky-2) 100%);box-shadow:var(--cp-drop-x) var(--cp-drop-y) 0 var(--ua-outline), inset 0 .1875rem 0 #fff}
.veil > .panel .t-note{color:var(--ua-ink)} .veil > .panel .addr{border-radius:.25rem}

/* ---------- no tracked capitals anywhere (the owner's rule): every caps label in normal case, the HUD's and the result card's too.
   Codes (code boxes, the search field, the paddle code, court codes) stay capitals: they are codes, not labels; so does a spectator's slam ---------- */
:is(.caps,.rally small,.hud-pill.is-tag,.bot-pick-cap,.br-round,.road-step small,.st-wl small,.trophy-word,.rank-kicker,.lb-scope b,.fr-label,.m-more,.name-row label,.logo-tag,.st-ribbon,.st-fig dt,.vs-round){text-transform:none;letter-spacing:0}

/* ---------- the tournament's VS card: two slanted plates in the players' colours, VS on an ink plate ---------- */
.vs-card{font-family:var(--font-text);border:var(--ua-ol) solid var(--ua-outline);border-radius:.5rem;background:linear-gradient(180deg,#fff 0%,var(--ua-cloud) 55%,var(--cp-sky-2) 100%);box-shadow:var(--cp-drop-x) var(--cp-drop-y) 0 var(--ua-outline), inset 0 .1875rem 0 #fff}
.vs-round{font-family:var(--font-display);font-weight:400;color:var(--ua-ink)}
.vs-side{position:relative;isolation:isolate;padding:.875rem 1.75rem 1rem}
.vs-side::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:var(--ua-r);border:var(--ua-ol) solid var(--ua-outline);transform:skewX(var(--ua-skew));box-shadow:inset 0 .25rem 0 rgba(255,255,255,.35), var(--cp-drop-x) var(--cp-drop-y) 0 var(--ua-outline)}
.vs-side.is-me::before{background:linear-gradient(180deg,#ff6a5f,var(--ua-red) 50%,var(--ua-red-shade))}
.vs-side.is-them::before{background:linear-gradient(180deg,#c3f06e,var(--ua-lime) 50%,var(--ua-lime-shade))}
.vs-side b{font-family:var(--font-display);font-weight:400}
.vs-side.is-me b{color:#fff} .vs-side.is-them b{color:var(--ua-outline)}
.vs-side .chip{box-shadow:0 0 0 .1875rem var(--ua-outline)}
.vs-mark{color:#fff;font-family:var(--font-display);font-weight:400;font-size:4.5rem;padding:.12em .4em .18em .32em}
.vs-mark::after{content:none}
.vs-mark::before{content:"";filter:none;border-radius:var(--ua-r);background:var(--ua-outline);transform:skewX(var(--ua-skew));box-shadow:var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--cp-ink)}
.vs-target{font-family:var(--font-text);color:var(--ua-ink)}
.vs-card .br-tag{border-radius:.25rem}

/* ---------- the tournament lobby and bracket in the palette: me = a signal-red edge, Matt / a bot = a cobalt tag, to-be-decided = haze plates,
   a winner's row an ink edge, 'Ready to start' a neon dot with ink text ---------- */
:is(.menu-glass,.menu-bg) .tour-chip{background:#fff;color:var(--ua-outline);font-family:var(--font-text);border:.15625rem solid var(--ua-outline)}
:is(.menu-glass,.menu-bg) .tour-chip.is-you{border-color:var(--ua-outline);background:#fff;box-shadow:inset .5rem 0 0 var(--ua-red), var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--cp-ink)}
:is(.menu-glass,.menu-bg) .tour-chip.is-empty{border:.125rem dashed var(--ua-apron);background:rgba(166,226,250,.35);box-shadow:none}
:is(.menu-glass,.menu-bg) .tour-chip.is-more{background:var(--ua-haze);border-color:var(--ua-outline)}
.tour-tag{border-radius:.25rem;background:var(--ua-haze);color:var(--ua-outline);font-family:var(--font-text)}
.tour-tag.is-you{background:var(--ua-red);color:#fff} .tour-tag.is-off{background:var(--ua-concrete);color:var(--ua-outline)}
.tour-why{font-family:var(--font-text);color:var(--ua-outline)}
.tour-why.is-ready{display:inline-flex;align-items:center;gap:.5rem;color:var(--ua-outline)}
.tour-why.is-ready::before{content:"";flex:none;width:.75rem;height:.75rem;border-radius:50%;background:var(--cp-live);box-shadow:0 0 0 .125rem var(--ua-outline)}
:is(.menu-glass,.menu-bg,.veil) .br-round{border-radius:var(--ua-r);background:var(--ua-cloud);color:var(--ua-outline);font-family:var(--font-display);font-weight:400}
:is(.menu-glass,.menu-bg) .br-col.is-current .br-round{background:var(--ua-outline);color:#fff} :is(.menu-glass,.menu-bg) .br-col.is-current .br-round small{color:var(--ua-haze)}
:is(.menu-glass,.menu-bg,.veil) .br-match{border-radius:var(--ua-r);border:.15625rem solid var(--ua-outline);box-shadow:var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--ua-outline);font-family:var(--font-text)}
:is(.menu-glass,.menu-bg,.veil) .br-match > .br-p:first-child{border-radius:.1875rem .1875rem 0 0} :is(.menu-glass,.menu-bg,.veil) .br-match > .br-p:last-child{border-radius:0 0 .1875rem .1875rem}
:is(.menu-glass,.menu-bg,.veil) .br-match.is-tbd{border:.125rem dashed var(--ua-apron);background:rgba(166,226,250,.55);box-shadow:none}
:is(.menu-glass,.menu-bg,.veil) .br-match.is-you{border-color:var(--ua-outline);box-shadow:var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--ua-outline)}
:is(.menu-glass,.menu-bg,.veil) .br-p.is-me{background:#fff;box-shadow:inset .375rem 0 0 var(--ua-red)}
:is(.menu-glass,.menu-bg,.veil) .br-p.is-win{box-shadow:inset .25rem 0 0 var(--ua-outline)} :is(.menu-glass,.menu-bg,.veil) .br-p.is-me.is-win{box-shadow:inset .375rem 0 0 var(--ua-red)}
:is(.menu-glass,.menu-bg,.veil) .br-sc{font-family:var(--font-display);font-weight:400}
:is(.menu-glass,.menu-bg,.veil) .br-match.is-live{border-color:var(--ua-outline)}
:is(.menu-glass,.menu-bg,.veil) .br-live{color:var(--ua-outline)}
.br-tag{border-radius:.25rem;background:var(--ua-cobalt);border:0;color:#fff;font-family:var(--font-display);font-weight:400}      /* Tour (Matt in a bracket): a cobalt tag */
.br-col:not(:last-child) .br-match::after,.br-col:not(:first-child) .br-match::before{border-top-color:var(--ua-apron)}
#screen-tour-vs{background:var(--tex-vignette), linear-gradient(180deg,var(--cp-deep) 0%,var(--cp-sea) 50%,#8fe0ff 100%)}

/* ---------- Your stats (and the profile card) inner pieces: straight plates with the outline and a small drop; the W-L bar a stacked slanted bar
   in the players' colours (me red, them lime); the streak on an ink plate; the figures in Days One ---------- */
:is(.menu-glass,.acct-card) :is(.st-matt,.st-people,.st-tile){border-radius:var(--ua-r);border:.15625rem solid var(--ua-outline);background:linear-gradient(180deg,#fff 0%,var(--ua-cloud) 60%,var(--cp-sky-2) 100%);box-shadow:var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--ua-outline)}
:is(.menu-glass,.acct-card) :is(.st-people,.st-tile)::before{inset:.25rem .25rem auto;height:40%;border-radius:.25rem}
:is(.menu-glass,.acct-card) .st-bar{height:1rem;border-radius:.1875rem;background:rgba(var(--cp-ink-rgb),.1);box-shadow:inset 0 0 0 .125rem var(--ua-outline);transform:skewX(var(--ua-skew));overflow:hidden}
:is(.menu-glass,.acct-card) .st-bar i{border-radius:0;background:linear-gradient(180deg,#ff6a5f,var(--ua-red) 50%,var(--ua-red-shade));box-shadow:inset 0 0 0 .125rem var(--ua-outline)}
:is(.menu-glass,.acct-card) .st-bar i + i{background:linear-gradient(180deg,#c3f06e,var(--ua-lime) 50%,var(--ua-lime-shade))}
:is(.menu-glass,.acct-card) :is(.st-bar-l,.st-bar-r){font-family:var(--font-display);font-weight:400}
:is(.menu-glass,.acct-card) :is(.st-wl b,.st-num b,.st-ribbon b){font-family:var(--font-display);font-weight:400;font-variant-numeric:tabular-nums}      /* Days One for every figure (the spec: numbers in Days One). Tried Atkinson 700 here in round 2 for a clearer zero: at 2.25rem its slashed zero drew a no-entry sign on every empty tile (after-r2 shots) */
:is(.menu-glass,.acct-card) .st-wl b.is-me{color:var(--ua-red-shade)} :is(.menu-glass,.acct-card) .st-wl b.is-them{color:var(--ua-lime-shade)}
:is(.menu-glass,.acct-card) .st-wl i{align-self:center;width:.75rem;height:.25rem;border-radius:0;background:var(--ua-outline);transform:skewX(var(--ua-skew))}
:is(.menu-glass,.acct-card) .st-wl small{font-family:var(--font-display);font-weight:400;color:var(--ua-ink)}
:is(.menu-glass,.acct-card) .st-num b{color:var(--ua-outline)}
:is(.menu-glass,.acct-card) .st-ribbon{position:relative;isolation:isolate;border:0;border-radius:0;background:none;box-shadow:none;color:#fff;font-family:var(--font-text)}
:is(.menu-glass,.acct-card) .st-ribbon::before{content:"";position:absolute;inset:0 .3rem;z-index:-1;border-radius:var(--ua-r);background:var(--ua-outline);transform:skewX(var(--ua-skew));box-shadow:var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--cp-ink)}      /* inset by tan(10deg) of half its height: the slant stays inside the pill's box (a skewed plate counts as scrollable overflow; profile-ui measures it) */
:is(.menu-glass,.acct-card) .st-streak.is-hot .st-ribbon{background:none;border:0;color:var(--ua-neon);text-shadow:none}      /* a live streak: the number that matters */
:is(.menu-glass,.acct-card) .st-flame{fill:var(--ua-apron);stroke:var(--ua-outline)} :is(.menu-glass,.acct-card) :is(.is-one,.is-hot) .st-flame{fill:var(--ua-red);stroke:#fff}
:is(.menu-glass,.acct-card) .st-badge{border-radius:.25rem;background:var(--ua-haze);box-shadow:inset 0 0 0 .125rem var(--ua-outline);transform:skewX(var(--ua-skew))}
:is(.menu-glass,.acct-card) .st-badge svg{transform:skewX(calc(-1 * var(--ua-skew)))}      /* undoes exactly its badge's lean (0 where a view sets --ua-skew 0) */
:is(.menu-glass,.acct-card) .st-tile .caps,:is(.menu-glass,.acct-card) .st-people .caps{font-family:var(--font-display);font-weight:400;color:var(--ua-ink)}
:is(.menu-glass,.acct-card) .st-matt .caps{font-family:var(--font-display);font-weight:400;color:var(--ua-ink)}
/* the bot's levels: the one you are on turns cobalt with a white label, the neon slab under it (one click plays it) */
.bot-levels .btn.ae-sel,html:not(.ae-on) .bot-levels .btn:focus-visible{--bf:var(--ua-cobalt);color:#fff}
.bot-levels .btn.ae-sel small,html:not(.ae-on) .bot-levels .btn:focus-visible small{color:var(--ua-haze)}
/* the title's footer: every link one colour; on a phone the links wrap evenly and the music credit takes its own line */
:is(.menu-glass,.menu-bg) .menu-foot .foot-link.foot-legal{color:#fff}
/* 'or swing your paddle to start': clear of Play's drop plate, a small haze plate (the outline, slanted) with ink Atkinson text: no grey translucent pill left on the title */
#title-note{position:relative;isolation:isolate;margin-top:1.125rem;padding:.25rem 1rem .3125rem .875rem;border-radius:var(--ua-r);background:none;color:var(--ua-outline);font-family:var(--font-display);font-weight:400;text-shadow:none}
#title-note::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:var(--ua-r);background:var(--ua-haze);border:.125rem solid var(--ua-outline);transform:skewX(var(--ua-skew));box-shadow:var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--ua-outline)}
/* ---------- Ranks: eight straight plates (the outline, a hard drop); yours lifted on a cobalt-deep drop with 'You · Silver II' neon on an ink plate (the one
   that matters); each division's numeral on a small slanted plate (ink once reached, haze ahead); Reached / Never lost quiet haze plates, normal case ---------- */
:is(.menu-glass,.menu-bg) .ranks-lead{font-family:var(--font-display);font-weight:400;color:var(--ua-ink)}
:is(.menu-glass,.menu-bg) .ranks-card{border-radius:var(--ua-r);border:.15625rem solid var(--ua-outline);background:linear-gradient(180deg,#fff 0%,var(--ua-cloud) 60%,var(--cp-sky-2) 100%);box-shadow:var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--ua-outline)}
:is(.menu-glass,.menu-bg) .ranks-card.is-done{border-color:var(--ua-outline)}
:is(.menu-glass,.menu-bg) .ranks-card.is-now{border-color:var(--ua-outline);background:linear-gradient(180deg,#fff 0%,color-mix(in srgb,var(--rank-mid,var(--ua-cobalt)) 16%,#fff) 100%);box-shadow:var(--cp-drop-x) var(--cp-drop-y) 0 var(--cp-ink), inset 0 .1875rem 0 #fff;transform:translateY(-.25rem)}
:is(.menu-glass,.menu-bg) .ranks-name{font-family:var(--font-display);font-weight:400;letter-spacing:0}
:is(.menu-glass,.menu-bg) :is(.ranks-from,.ranks-at,.ranks-note){font-family:var(--font-display);font-weight:400;color:var(--ua-ink)}
:is(.menu-glass,.menu-bg) .ranks-div{border-radius:.25rem;background:var(--ua-haze);color:var(--ua-outline);font-family:var(--font-display);font-weight:400;transform:skewX(var(--ua-skew))}
:is(.menu-glass,.menu-bg) .ranks-div.is-on{background:var(--ua-outline);color:#fff}
:is(.menu-glass,.menu-bg) .ranks-tag{border-radius:.25rem;background:var(--ua-haze);color:var(--ua-outline);font-family:var(--font-display);font-weight:400;letter-spacing:0;transform:skewX(var(--ua-skew))}
:is(.menu-glass,.menu-bg) .ranks-tag.is-keep{background:var(--ua-cloud);box-shadow:inset 0 0 0 .125rem var(--ua-outline);color:var(--ua-outline);opacity:1}
:is(.menu-glass,.menu-bg) .ranks-tag.is-now{background:var(--ua-outline);color:var(--ua-neon);font-family:var(--font-display);font-weight:400;box-shadow:var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--cp-ink)}
/* 'Can't reach the game. Trying again' hanging from the lobby's header: a white plate with the outline and a hard drop, ink text, the waiting lamp haze (not a warning colour: it is a state, not an error) */
:is(.menu-glass,.menu-bg) .lobby-down{border-radius:var(--ua-r);background:#fff;border:.15625rem solid var(--ua-outline);color:var(--ua-outline);font-family:var(--font-display);font-weight:400;box-shadow:var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--ua-outline)}
:is(.menu-glass,.menu-bg) .lobby-down .dots-wait i{background:var(--ua-cobalt)}

/* ==========================================================================================================
   URBAN AERO, round 2: the HUD's scoreboard and Matt's difficulty row (the rest of the HUD is a later phase).
   Two slanted plates, a signal-red edge for me and a lime edge for them; figures in Days One; your own score neon on an ink plate (the number
   that matters; a spectator's board keeps both in ink); Rally on an ink plate, normal case
   ========================================================================================================== */
.scoreboard{gap:.875rem}
.score-tab,.score-tab.is-them{isolation:isolate;overflow:clip;overflow-clip-margin:.625rem;border:0;border-radius:var(--ua-r);background:none;box-shadow:none;font-family:var(--font-text)}
.score-tab::after,.score-tab.is-them::after{content:"";position:absolute;inset:0 .375rem;height:auto;z-index:-1;border-radius:var(--ua-r);border:var(--ua-ol) solid var(--ua-outline);transform:skewX(var(--ua-skew));
  background:linear-gradient(180deg,rgba(255,255,255,0) 10%,rgba(255,255,255,.55) 10% 24%,rgba(255,255,255,0) 24%),linear-gradient(180deg,#fff,var(--ua-cloud) 60%,#e2ecff);
  box-shadow:inset .625rem 0 0 var(--ua-red), var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--ua-outline)}
.score-tab.is-them::after{box-shadow:inset -.625rem 0 0 var(--ua-lime), var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--ua-outline)}
.score-tab::before{z-index:0}      /* the point's shine (ov-shine) crosses over the plate */
.score-tab{padding-left:1.375rem} .score-tab.is-them{padding-right:1.375rem}
.score-who b{font-family:var(--font-display);font-weight:400;color:var(--ua-outline)}
.score-who small{font-family:var(--font-text);letter-spacing:0;color:var(--ua-ink)}
.score-tab .chip{box-shadow:0 0 0 .125rem var(--ua-outline)}
.score-num,.is-me .score-num,.is-them .score-num{position:relative;isolation:isolate;font-family:var(--font-display);font-weight:400;color:var(--ua-outline);min-width:3.75rem;padding:.125rem .25rem .1875rem}
body:not([data-role="spectator"]) .is-me .score-num{color:var(--ua-neon)}
body:not([data-role="spectator"]) .is-me .score-num::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:var(--ua-r);background:var(--ua-outline);transform:skewX(var(--ua-skew))}
.rally{position:relative;isolation:isolate;border:0;border-radius:var(--ua-r);background:none;box-shadow:none;min-width:4rem}
.rally::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:var(--ua-r);background:var(--ua-outline);transform:skewX(var(--ua-skew));box-shadow:var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--cp-ink)}
.rally small{font-family:var(--font-display);font-weight:400;color:var(--ua-haze)}
.rally b{font-family:var(--font-display);font-weight:400;color:#fff}
/* Matt's difficulty row: a white plate (no blur over the renderer), the menus' slanted cobalt thumb */
.bot-pick{border-radius:var(--ua-r);background:#fff;-webkit-backdrop-filter:none;backdrop-filter:none;border:.15625rem solid var(--ua-outline);box-shadow:var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--ua-outline);font-family:var(--font-text)}
.bot-pick-cap{font-family:var(--font-display);font-weight:400;color:var(--ua-outline)}
.bot-pick .seg{border-radius:var(--ua-r);background:rgba(var(--cp-ink-rgb),.07);border:.125rem solid rgba(var(--cp-ink-rgb),.3)}
.bot-pick .seg::before{border-radius:.3125rem;background:var(--ua-cobalt);box-shadow:inset 0 0 0 var(--tb) var(--cp-deep), var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--cp-ink);transform:translateX(var(--tx,0)) skewX(var(--ua-skew))}
.bot-pick .seg-opt{font-family:var(--font-display);font-weight:400;color:var(--ua-ink);border-radius:.3125rem}
.bot-pick .seg-opt[aria-checked="true"]{color:#fff}

/* ==========================================================================================================
   URBAN AERO, round 2 (NOTES 268): the critics' points on the menus and the result card, then the court: every HUD piece in the plate
   language, light (flat colour, the outline, a hard drop; never a filter over the running renderer), the tournament card, the tutorial.
   ========================================================================================================== */
/* ---------- one selection, singular: the moving slab alone marks it. The primary's face stays full neon whoever holds the slab (round 2 dropped it
   to an olive shade: off-palette, and it read as the opponent's lime; the reference's final_hover leaves the primary untouched) ---------- */


/* ---------- the HUD tournament card (#tour-card): the heading white on its ink plate, the code box and the player chips plates, Start the neon
   primary (the cobalt-deep slab under it), Leave the one quiet danger plate ---------- */
#tour-card > .set-head h2,body[data-paused] #tour-card > .set-head h2{color:#fff}
#tour-card .tc-code{border-radius:var(--ua-r);border:var(--ua-ol) solid var(--ua-outline);background:#fff;box-shadow:inset 0 .25rem 0 rgba(var(--cp-ink-rgb),.1), var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--ua-outline);font-family:var(--font-text)}
#tour-card .tc-code:hover,#tour-card .tc-code:focus-visible{border-color:var(--ua-outline);box-shadow:0 0 0 .1875rem var(--ua-cobalt), inset 0 .25rem 0 rgba(var(--cp-ink-rgb),.1), var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--ua-outline)}
#tour-card .tc-code b{font-family:var(--font-display);font-weight:400;letter-spacing:.08em;color:var(--ua-cobalt)} #tour-card .tc-code small{font-weight:400;font-family:var(--font-display);color:var(--ua-ink)}
#tour-card .tc-n{font-family:var(--font-text);color:var(--ua-outline)} #tour-card .tc-n b{font-family:var(--font-display);font-weight:400;color:var(--ua-cobalt)}
#tour-card .tour-chip{border-radius:var(--ua-r);background:#fff;border:.15625rem solid var(--ua-outline);box-shadow:var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--cp-ink);color:var(--ua-outline);font-family:var(--font-text)}
#tour-card .tour-chip.is-you{box-shadow:inset .5rem 0 0 var(--ua-red), var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--cp-ink)}
#tour-card .tour-chip.is-more{background:var(--ua-haze)}
#tour-card .tour-chip.is-empty{border:.125rem dashed var(--ua-apron);background:rgba(166,226,250,.35);box-shadow:none}
#tour-card .tour-chip.is-off{border-style:dashed}
#btn-tc-start,.tour-go{--bf:var(--ua-neon);--bo:var(--cp-deep);color:#fff;--slab-c:rgba(var(--cp-deep-rgb),0)}
#btn-tc-start.ae-sel,html:not(.ae-on) #btn-tc-start:focus-visible,.tour-go.ae-sel,html:not(.ae-on) .tour-go:focus-visible{--slab-c:var(--ua-cobalt-deep)}
.tour-go{border-color:transparent;box-shadow:none;font-family:var(--font-display);font-weight:400}
/* the tournament pill: no neon ring on a notice; open or hovered it darkens its outline, the focus ring is for :focus-visible only */
.tour-pill:hover,.tour-pill[aria-expanded="true"]{box-shadow:none}
.tour-pill:hover::before,.tour-pill[aria-expanded="true"]::before{box-shadow:0 0 0 .125rem var(--ua-outline), var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--ua-outline)}
.tour-pill:focus-visible{box-shadow:var(--glow)}
.tut-x:hover{box-shadow:0 0 0 .1875rem var(--ua-outline)} .tut-x:focus-visible{box-shadow:var(--glow)}
/* phone gutters: the card's and the lobby tournament view's buttons sit 16px from the window's side after the drop plate */
@media (max-width:600px){
  #tour-card .tc-code-row{padding-right:.25rem} #tour-card .set-foot{padding-right:calc(var(--s-4) + .25rem)}
  #lobby-tour .tour-acts{padding-right:.25rem}
}

/* ---------- the lobby's phone footer: the Product Hunt badge on its own row, never over 'Under 18? Ask a parent.' ---------- */
@media (max-width:700px){
  #screen-lobby .menu-foot .foot-agree > span:last-child{grid-row:2;grid-column:1 / -1;justify-self:center}
  #screen-lobby .menu-foot .ph-badge{grid-row:3;grid-column:1 / -1;justify-self:center}
}

/* ---------- Your stats on a phone: the streak plate pinned to the rank card's top-right corner, as at every other width ---------- */
@media (max-width:760px){
  .st-hero{position:relative} .st-hero .st-streak{position:absolute;top:.5rem;right:.625rem;grid-column:auto;grid-row:auto;align-items:flex-end;animation:none}
  .st-hero .st-rank{padding-right:5rem}
}

/* ---------- the court (phase 2): the HUD's own text face, and every pill a plate ---------- */
#hud,.toast,.ask-card,.inset,.tip{--font:var(--font-text);font-family:var(--font-text)}
.hud-pill{position:relative;isolation:isolate;height:2.125rem;padding:0 .875rem 0 .75rem;border:0;border-radius:var(--ua-r);background:none;box-shadow:none;font:400 max(var(--t-sm),12px)/1 var(--font-display);letter-spacing:0;color:var(--ua-outline)}
.hud-pill::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:var(--ua-r);background:#fff;border:.125rem solid var(--ua-outline);transform:skewX(var(--ua-skew));box-shadow:var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--ua-outline)}
.hud-pill svg{stroke:var(--ua-outline)} .hud-pill svg circle{fill:var(--ua-outline)}
.room-pill b{font-family:var(--font-display);font-weight:400;letter-spacing:.06em;color:var(--ua-cobalt)}
.hud-pill.is-tag{color:#fff;letter-spacing:0;text-transform:none;font-family:var(--font-display);font-weight:400;font-size:max(var(--t-sm),12px)} .hud-pill.is-tag::before{background:var(--ua-outline);box-shadow:var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--cp-ink)}
.hud-pill.is-paused{color:#fff}      /* paused is the opposite of live: a dark plate with white Days One, like the court code's; the HUD's neon is the score, the serve ball and the live dot */
.tour-pill{border:0;padding:.25rem .75rem .25rem .5rem;font-family:var(--font-text)} .tour-pill .tp-sub b{color:var(--ua-cobalt)}
.tour-pill .tour-ic{background:var(--ua-cobalt);stroke:#fff;box-shadow:0 0 0 .125rem var(--ua-outline)}
.tour-pill .keycap,.ask-card .keycap,.keyhints .keycap,.views .keycap,.toast .keycap{border-radius:.25rem;border:.125rem solid var(--ua-outline);border-bottom-width:.25rem;background:#fff;color:var(--ua-outline);font-family:var(--font-display);font-weight:400;text-shadow:none;box-shadow:none}
.keyhints{color:#fff;font-family:var(--font-display);font-weight:400;text-shadow:0 .0625rem 0 var(--ua-outline), 0 0 .5rem rgba(var(--cp-deep-rgb),.7)}
.ping-pill .bars i{background:var(--ua-apron)}
/* the hold card ('Waiting for Sam', the seat hold) and the toasts: white plates, a count on an ink plate */
.hold-card{border:var(--ua-ol) solid var(--ua-outline);border-radius:var(--ua-r);background:linear-gradient(180deg,#fff,var(--ua-cloud) 60%,var(--cp-sky-2));box-shadow:var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--ua-outline);color:var(--ua-outline);font-family:var(--font-display);font-weight:400}
.hold-card b{border-radius:.25rem;background:var(--ua-outline);border:0;color:#fff;font-family:var(--font-display);font-weight:400;transform:skewX(var(--ua-skew))}
.hold-card .dots-wait i,.toast .dots-wait i{background:var(--ua-cobalt)}
.toast{border:var(--ua-ol) solid var(--ua-outline);border-radius:var(--ua-r);background:linear-gradient(180deg,#fff,var(--ua-cloud) 60%,var(--cp-sky-2));color:var(--ua-outline);font-family:var(--font-display);font-weight:400;box-shadow:var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--ua-outline)}
.bhold-bar{border-radius:.1875rem;background:rgba(var(--cp-ink-rgb),.1);box-shadow:inset 0 0 0 .125rem var(--ua-outline);transform:skewX(var(--ua-skew))} .bhold-bar i{border-radius:0;background:linear-gradient(180deg,#33ceff,var(--ua-cobalt))} .bhold.is-done .bhold-bar i{background:var(--ua-cobalt)}
.notices .notice{border:.125rem solid var(--ua-outline);border-radius:var(--ua-r);background:linear-gradient(180deg,#fff,var(--ua-cloud));box-shadow:var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--ua-outline);color:var(--ua-outline);font-family:var(--font-display);font-weight:400}
.notices .notice svg{stroke:var(--ua-outline)} .notices .notice svg circle{fill:var(--ua-outline)}
.notices .notice.is-record svg{fill:var(--ua-neon);stroke:var(--ua-outline);stroke-width:1.75}      /* a new best: the one neon mark */
/* the banner ('Your point', 'Your serve', 'Sam joined') and the countdown's 'Get ready': the animation moves the span, so the plate is its ::before */
.banner-tag > span,.countdown > span{position:relative;isolation:isolate;overflow:visible;border:0;border-radius:var(--ua-r);background:none;box-shadow:none;color:#fff;font-family:var(--font-display);font-weight:400;letter-spacing:0;text-shadow:none;padding:0 1.375rem .125rem 1.125rem}
.banner-tag > span::before,.countdown > span::before{content:"";position:absolute;inset:0;left:0;right:0;top:0;height:auto;z-index:-1;border-radius:var(--ua-r);border:var(--ua-ol) solid var(--ua-outline);
  background:linear-gradient(180deg,rgba(255,255,255,0) 12%,rgba(255,255,255,.25) 12% 30%,rgba(255,255,255,0) 30%),linear-gradient(180deg,#33ceff,var(--ua-cobalt) 55%,var(--cp-deep));transform:skewX(var(--ua-skew));box-shadow:var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--ua-outline)}
.banner-tag.is-them > span{color:var(--ua-outline);text-shadow:none;background:none}
.banner-tag.is-them > span::before{background:linear-gradient(180deg,rgba(255,255,255,0) 12%,rgba(255,255,255,.3) 12% 30%,rgba(255,255,255,0) 30%),linear-gradient(180deg,#c3f06e,var(--ua-lime) 55%,#7fc02a)}
/* the shot name (Smash, Lob, Ace): heavy white Days One on a slanted plate in the striker's colour (the pop animation moves the element, the plate is its ::before) */
.callout{color:#fff;font-family:var(--font-display);font-weight:400;letter-spacing:0;padding:.1em .5em .18em .4em;font-size:calc(var(--t-callout) * .8)}
.callout::before{content:"";z-index:-1;color:transparent;filter:none;border-radius:var(--ua-r);background:linear-gradient(180deg,rgba(255,255,255,0) 12%,rgba(255,255,255,.28) 12% 30%,rgba(255,255,255,0) 30%),linear-gradient(180deg,#ff6a5f,var(--ua-red) 55%,var(--ua-red-shade));
  border:var(--ua-ol) solid var(--ua-outline);transform:skewX(var(--ua-skew));box-shadow:var(--cp-drop-x) var(--cp-drop-y) 0 var(--ua-outline)}
.callout::after{display:none}
.callout.is-them{color:var(--ua-outline)} .callout.is-them::before{background:linear-gradient(180deg,rgba(255,255,255,0) 12%,rgba(255,255,255,.3) 12% 30%,rgba(255,255,255,0) 30%),linear-gradient(180deg,#c3f06e,var(--ua-lime) 55%,#7fc02a)}
.countdown b{color:#fff;font-family:var(--font-display);font-weight:400} .countdown b::before{color:var(--ua-outline);filter:drop-shadow(.08em .1em 0 var(--cp-ink))} .countdown b::after{background:linear-gradient(180deg,#fff 0%,var(--ua-cloud) 50%,var(--ua-haze) 100%);-webkit-background-clip:text;background-clip:text}      /* 3, 2, 1: white in the ink outline (a count, not a key number: the neon is the score) */
/* the view chips (spectators), the emote bar, the ask card and the insets */
.views{font-family:var(--font-display);font-weight:400}
.views::before{border-radius:var(--ua-r);background:#fff;box-shadow:inset 0 0 0 .125rem var(--ua-outline), var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--ua-outline);transform:translate(var(--tx,0),var(--ty,0)) skewX(var(--ua-skew))}
.view-chip{border-radius:var(--ua-r)} .view-chip[aria-pressed="true"]{border-radius:var(--ua-r);background:#fff;border-color:var(--ua-outline);box-shadow:var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--ua-outline);color:var(--ua-outline)}
.view-chip[aria-pressed="true"] .keycap{background:var(--ua-outline);border-color:var(--ua-outline);color:#fff}
.view-chip:focus-visible{border-color:var(--ua-outline);box-shadow:var(--glow)}
.emotes{border-radius:var(--ua-r);background:#fff;border:.15625rem solid var(--ua-outline);box-shadow:var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--ua-outline)}
.emote-btn{border-radius:.25rem;border:.125rem solid rgba(var(--cp-ink-rgb),.28);background:#fff;box-shadow:0 .125rem 0 rgba(var(--cp-ink-rgb),.3)}
.emote-key{color:var(--ua-ink);font-family:var(--font-text)} .emotes::after{background:var(--ua-cobalt)}
.emote-bub{border-radius:var(--ua-r);border:.125rem solid var(--ua-outline);box-shadow:var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--ua-outline)} .emote-bub::after{border-radius:0;box-shadow:.125rem .125rem 0 var(--ua-outline);border:.125rem solid var(--ua-outline);border-top:0;border-left:0}
.emote-pop span{text-shadow:0 .0625rem 0 var(--ua-outline), 0 0 .5rem rgba(var(--cp-deep-rgb),.7)}
.ask-card{border-radius:var(--ua-r);border:var(--ua-ol) solid var(--ua-outline);background:linear-gradient(180deg,#fff,var(--ua-cloud) 60%,var(--cp-sky-2));box-shadow:var(--cp-drop-x) var(--cp-drop-y) 0 var(--ua-outline);font-family:var(--font-text)}
.ask-card::before{width:.5rem;background:var(--ua-lime)} .ask-q{color:var(--ua-ink)} .ask-q b{color:var(--ua-outline)} .ask-q small{color:var(--ua-ink)}
.ask-card .ask-bar{border-radius:.1875rem;background:rgba(var(--cp-ink-rgb),.1);box-shadow:inset 0 0 0 .125rem var(--ua-outline);transform:skewX(var(--ua-skew))} .ask-card .ask-bar i{border-radius:0;background:linear-gradient(180deg,#33ceff,var(--ua-cobalt))}
.btn.ask-play{font-family:var(--font-display);font-weight:400} .ask-play .ask-ring{background:var(--ua-cobalt)} .btn.ask-play[aria-disabled="true"]{color:var(--ua-ink)}
.inset{padding:.25rem;border-radius:var(--ua-r);background:#fff;border:.15625rem solid var(--ua-outline);box-shadow:var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--ua-outline)}
.inset canvas{border-radius:.1875rem} .inset::after{inset:.25rem;border-radius:.1875rem;box-shadow:inset 0 0 0 .0625rem rgba(var(--cp-ink-rgb),.2)}
.inset-pod{background:repeating-linear-gradient(135deg,rgba(var(--cp-main-rgb),.1) 0 6px,transparent 6px 14px),#fff}
.btn-icon[aria-expanded="true"] svg{stroke:var(--ua-outline)}
.tip{border-radius:var(--ua-r);background:var(--ua-outline);font-family:var(--font-display);font-weight:400;letter-spacing:0}
/* the HUD's stats panel and the Matt row keep their cards; the Away tag is drawn in the 3D scene (scene.js: another branch) */

/* ---------- the tutorial (web/tutorial.js): a cobalt wash over the menu (no second blur over the glass), the card in the menus' language ---------- */
.tut{background:rgba(var(--cp-deep-rgb),.45);-webkit-backdrop-filter:none;backdrop-filter:none;font-family:var(--font-text)}
.tut-card{border:var(--ua-ol) solid var(--ua-outline);border-radius:.5rem;background:linear-gradient(180deg,#fff 0%,var(--ua-cloud) 50%,var(--cp-sky-2) 100%);box-shadow:var(--cp-drop-x) var(--cp-drop-y) 0 var(--ua-outline), inset 0 .1875rem 0 #fff}
.tut-title{position:relative;isolation:isolate;align-self:center;display:inline-block;padding:.12em .66em .2em .56em;font-family:var(--font-display);font-weight:400;letter-spacing:0;color:#fff}
.tut-title::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:var(--ua-r);background:var(--ua-outline);transform:skewX(var(--ua-skew));box-shadow:var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--cp-ink)}
.tut-body{font-family:var(--font-text);color:var(--ua-ink)} .tut-body b{color:var(--ua-outline)}
.tut-art{border-radius:var(--ua-r);border:.15625rem solid var(--ua-outline);background:linear-gradient(180deg,var(--ua-cloud),#fff);box-shadow:inset 0 .1875rem 0 rgba(var(--cp-ink-rgb),.08)}
.tut-more{border-radius:var(--ua-r);background:var(--ua-haze);border:.125rem solid var(--ua-outline);color:var(--ua-outline);font-family:var(--font-text)} .tut-more a{color:var(--ua-cobalt-deep)}
.tut-facts li::before{background:var(--ua-cobalt);box-shadow:inset 0 0 0 .125rem var(--ua-outline)}      /* list bullets: cobalt (the neon is never an ornament) */
.tut-shot{border-radius:var(--ua-r);border:.15625rem solid var(--ua-outline);box-shadow:var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--ua-outline);background:#fff}
.tut-shot b{font-family:var(--font-display);font-weight:400;color:var(--ua-outline)} .tut-shot span{font-family:var(--font-text);color:var(--ua-ink)} .tut-shot svg{color:var(--ua-cobalt)}
.tut-shot:nth-child(2) svg{color:var(--ua-red-shade)} .tut-shot:nth-child(5) svg{color:var(--ua-lime-shade)}
.tut-keys li{font-family:var(--font-text);color:var(--ua-ink)} .tut-keys .keycap{min-width:4rem;justify-content:center;text-align:center}      /* one cap width: the words line up in two columns (NOTES 305) */ .tut-keys .keycap{border-radius:.25rem;border:.125rem solid var(--ua-outline);border-bottom-width:.25rem;background:#fff;color:var(--ua-outline)}
.tut-dots button{background:var(--ua-haze);box-shadow:inset 0 0 0 .125rem var(--ua-outline)} .tut-dots button[aria-current]{border-radius:.25rem;background:var(--ua-cobalt);transform:skewX(var(--ua-skew))}
.tut-next.is-last{--bf:var(--ua-neon);--bo:var(--cp-deep);color:#fff;text-shadow:none}      /* Play: the one neon action on the last card */
.tut-x{color:var(--ua-outline)}
/* Your stats at 1280x800 (41rem for the whole card): Days One's taller face took the hero over the line by 5px; its rows sit a touch tighter so the card fits without a scroll again */
.st .st-hero{padding-block:.125rem;row-gap:.25rem}
.tour-pill{height:auto}      /* the pill wraps to three lines: a plate that grows with its text */
@media (max-width:600px){ #tour-card .set-foot{padding-left:calc(var(--s-4) + .25rem)} #lobby-tour .tour-acts{padding-left:.25rem} }      /* the selected primary's slab outline on the left side too */

/* ---------- the Leaderboard view, the Friends view / card, the profile and share cards (checked live: live-cards.mjs, test/lb-profile-ui.mjs,
   test/social-ui.mjs): rows as small plates with the outline and a hard drop; the place numeral on a slanted ink plate, the top three on gold /
   silver / bronze; my own row a signal-red edge; the scope pill a haze plate; figures in Days One ---------- */
:is(.menu-glass,.menu-bg) .lb-scope{border-radius:var(--ua-r);background:var(--ua-haze);border:.125rem solid var(--ua-outline);color:var(--ua-ink);font-family:var(--font-display);font-weight:400}
:is(.menu-glass,.menu-bg) .lb-scope b{color:var(--ua-outline);font-family:var(--font-display);font-weight:400;letter-spacing:0;text-transform:none}
:is(.menu-glass,.menu-bg) .lb-globe{stroke:var(--ua-outline)}
:is(.menu-glass,.menu-bg) .lb-what,:is(.menu-glass,.menu-bg) .lb-state{font-family:var(--font-text);color:var(--ua-ink)}
:is(.menu-glass,.menu-bg) :is(.lb-row,.lb-you){border-radius:var(--ua-r);background:linear-gradient(180deg,#fff,var(--ua-cloud));border:.15625rem solid var(--ua-outline);box-shadow:var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--ua-outline);font-family:var(--font-text)}
:is(.menu-glass,.menu-bg) :is(.lb-row.is-me,.lb-you.is-on){border-color:var(--ua-outline);background:#fff;box-shadow:inset .5rem 0 0 var(--ua-red), var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--ua-outline)}
@media (hover:hover){ :is(.menu-glass,.menu-bg) button.lb-row:hover,:is(.menu-glass,.menu-bg) button.lb-row.is-me:hover,:is(.menu-glass,.menu-bg) .lb-you.is-link:hover{border-color:var(--ua-outline);box-shadow:var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--ua-outline), 0 0 0 .1875rem var(--ua-cobalt)} :is(.menu-glass,.menu-bg) button.lb-row.is-me:hover{box-shadow:inset .5rem 0 0 var(--ua-red), var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--ua-outline), 0 0 0 .1875rem var(--ua-cobalt)} }
:is(.menu-glass,.menu-bg) button.lb-row:focus-visible,:is(.menu-glass,.menu-bg) .lb-you.is-link:focus-visible{outline:0;box-shadow:var(--glow)}
:is(.menu-glass,.menu-bg) button.lb-row::after{border-color:var(--ua-outline)}
:is(.menu-glass,.menu-bg) .lb-rank{border-radius:.25rem;background:var(--ua-outline);color:#fff;font-family:var(--font-display);font-weight:400;transform:skewX(var(--ua-skew));box-shadow:var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--cp-ink)}
:is(.menu-glass,.menu-bg) .lb-row.is-top1 .lb-rank{background:linear-gradient(180deg,var(--gold-1),var(--gold-2) 55%,var(--gold-3));color:var(--ua-outline);box-shadow:inset 0 0 0 .125rem var(--ua-outline), var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--ua-outline)}
:is(.menu-glass,.menu-bg) .lb-row.is-top2 .lb-rank{background:linear-gradient(180deg,#fff,var(--silver-2) 55%,var(--silver-3));color:var(--ua-outline);box-shadow:inset 0 0 0 .125rem var(--ua-outline), var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--ua-outline)}
:is(.menu-glass,.menu-bg) .lb-row.is-top3 .lb-rank{background:linear-gradient(180deg,#f6c39a,#d98a4e 55%,#b8662a);color:#fff;box-shadow:inset 0 0 0 .125rem var(--ua-outline), var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--ua-outline)}
:is(.menu-glass,.menu-bg) .lb-row.is-top1{border-color:var(--ua-outline)}
:is(.menu-glass,.menu-bg) .lb-name{font-family:var(--font-display);font-weight:400;color:var(--ua-outline)}
:is(.menu-glass,.menu-bg) .lb-v{color:var(--ua-ink)} :is(.menu-glass,.menu-bg) .lb-v b{font-family:var(--font-display);font-weight:400;color:var(--ua-outline)}
/* Friends: the search field is the menus' field, the rows plates, a friend's online dot neon (live), the tags haze plates, Add / Accept the cobalt plate */
:is(.menu-glass,.settings,.fc-skin) .fr-row,.friends-card .fr-row{border-radius:var(--ua-r);background:linear-gradient(180deg,#fff,var(--ua-cloud));border:.15625rem solid var(--ua-outline);box-shadow:var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--ua-outline);font-family:var(--font-text)}
:is(.menu-glass,.settings,.fc-skin) .fr-name{font-weight:400;font-family:var(--font-display);color:var(--ua-outline)} :is(.menu-glass,.settings,.fc-skin) .fr-st,:is(.menu-glass,.settings,.fc-skin) .fr-hint,:is(.menu-glass,.settings,.fc-skin) .fr-empty,:is(.menu-glass,.settings,.fc-skin) .fr-gate{font-family:var(--font-text);color:var(--ua-ink)}
:is(.menu-glass,.settings,.fc-skin) .fr-label,:is(.menu-glass,.settings,.fc-skin) .fr-sec{font-family:var(--font-display);font-weight:400;color:var(--ua-cobalt-deep)}
:is(.menu-glass,.settings,.fc-skin) .fr-tag{border-radius:.25rem;background:var(--ua-haze);color:var(--ua-outline);font-family:var(--font-display);font-weight:400;transform:skewX(var(--ua-skew))}
:is(.menu-glass,.settings,.fc-skin) .fr-count,:is(.menu-glass,.settings,.fc-skin) .fr-more-n{border-radius:.25rem;background:var(--ua-outline);color:#fff;font-family:var(--font-display);font-weight:400}
:is(.menu-glass,.settings,.fc-skin) .fr-search > svg{stroke:var(--ua-outline)}

/* ==========================================================================================================
   URBAN AERO, round 3 (NOTES 268): the critics' points. The zero (vendor/fonts: Days One's 0 carries a dot now), the primary never dulls,
   nothing selected on a view with no primary (aero.js), small square controls keep their slab inside their row, the W-L record in ink,
   Paused in white, the status chips legible plates, dimmed blocks dimmed (not lilac), the count plate bigger, the wipe trail sized from
   the ball, the winner's score on the neon plate, the trophy cup inside its plate, the tutorial's Next a primary, danger in ink
   ========================================================================================================== */
/* a small square control (steppers, the close X, icon buttons): a slab of its own size, .25rem down and left, never into the next row */
.btn.btn-icon.ae-sel,html:not(.ae-on) .btn.btn-icon:focus-visible{--slab-x:-.25rem;--slab-y:.25rem}
/* the W-L record: wins in ink, losses softer; the bar under it carries the two colours (red and lime are the seats' colours on scoreboards and result rows only) */
:is(.menu-glass,.menu-bg,.acct-card) .st-wl b.is-me{color:var(--ua-outline)} :is(.menu-glass,.menu-bg,.acct-card) .st-wl b.is-them{color:var(--ink-soft)}
/* the settings card's status chips (AirPod / Game / Camera): white plates with the outline, a hard drop and the lamp (cobalt = ready, haze = waiting), tappable on a phone */
.settings .set-status{gap:.375rem .5rem}
.settings .set-status li{height:auto;min-height:max(1.75rem,28px);padding:0 .625rem 0 .5rem;gap:.375rem;border:.125rem solid var(--ua-outline);border-radius:var(--ua-r);background:#fff;
  box-shadow:var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--ua-outline);font-size:max(var(--t-xs),12px);font-weight:400;font-family:var(--font-display);color:var(--ua-outline)}
.settings .set-status li.is-bad{border-color:var(--ua-red);box-shadow:var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--ua-outline);color:var(--ua-outline)}
.settings .set-status li.is-wait{color:var(--ua-ink)}
/* a dimmed block (no name yet, the server down) keeps its white face and white label plates and simply dims: ink at 60%, the accents apron; the neon
   and the cobalt go (no action is open yet). Held just under .7 (ui-next asserts the dim) */
#screen-lobby:is(.needs-name,.is-down) .tile,#screen-lobby:is(.needs-name,.is-down) #btn-quick,#screen-lobby:is(.needs-name,.is-down) :is(#btn-courts,#btn-bot){
  --tf:#fff;--tg:rgba(var(--cp-main-rgb),.1);--tl:#fff;--tlc:rgba(var(--cp-ink-rgb),.62);--line:var(--ua-apron);opacity:.68}
#screen-lobby:is(.needs-name,.is-down) .tile b::before{box-shadow:inset 0 0 0 .15625rem rgba(var(--cp-ink-rgb),.5), inset 0 .1875rem 0 rgba(255,255,255,.4)}
#screen-lobby:is(.needs-name,.is-down) .tile .tile-sub{color:rgba(var(--cp-ink-rgb),.62)}
#screen-lobby:is(.needs-name,.is-down) .tile .tile-sub::before{background:#fff;box-shadow:inset 0 0 0 .125rem rgba(var(--cp-ink-rgb),.4)}
#screen-lobby:is(.needs-name,.is-down) .tile .art-accent-fill{fill:var(--ua-apron);stroke:var(--ua-apron)}
#screen-lobby:is(.needs-name,.is-down) .tile .art-line,#screen-lobby:is(.needs-name,.is-down) .tile .art-fill{stroke:rgba(var(--cp-ink-rgb),.55)}
/* the count on a block ('8 open', requests): a bigger Days One plate, top right, the reference's '14' */
#screen-lobby .tile .tile-sub{top:.625rem;right:.625rem;height:2.375rem;padding:0 .875rem .125rem .75rem;font-size:var(--t-lg)}
@media (max-width:480px){ #screen-lobby .tile .tile-sub{height:2rem;font-size:var(--t-md);padding:0 .625rem .0625rem .5rem} }
/* the wipe's trail and stripe are sized from the ball: the trail .56 of the ball tall and at least six balls long, tapering and fading to nothing;
   (the stripe is the cobalt slab's child: round 5, below) */
/* the tutorial: Next is the primary (aero.js SCOPE + PRIMARY): neon with the cobalt-deep slab, like Done / Rematch; the last card's Play too */
.tut .tut-next{--bf:var(--ua-neon);--bo:var(--cp-deep);color:#fff;--slab-c:rgba(var(--cp-deep-rgb),0)}
.tut .tut-next.ae-sel,html:not(.ae-on) .tut .tut-next:focus-visible{--slab-c:var(--ua-cobalt-deep)}
.tut .tut-back{--slab-c:rgba(var(--cp-main-rgb),0)}
/* danger (Leave court, Leave tournament): ink text on the white plate; only the outline is signal red. Red text would borrow the boy's colour */
.btn-danger,#btn-leave-room{color:var(--ua-outline)} .btn-danger::before{border-color:var(--ua-red)}
/* the HUD: a touch phone has no keys (hide the C / B hints); the tournament pill's line balances over two lines instead of breaking mid-phrase */
html[data-mobile] .keyhints{display:none}
.tour-pill .tp-long{text-wrap:balance}
/* the Friends view's sign-in gate: three lines need no 26rem card; the card hugs them */
#lobby-friends.fr-view:not(.is-locked):has(> .fr-gate:not([hidden])){min-height:0;height:auto}
#lobby-friends .fr-gate{padding:var(--s-4) var(--s-4) var(--s-3)}

/* ==========================================================================================================
   URBAN AERO, round 4 (NOTES 268): the critics' points. The lift on the face, not the box (above); the zero re-cut (vendor/fonts); the neon audit
   (bullets, bars, the countdown, the trophy total and the opponent's score back to ink / white); the seg's one frame; the Watch plate seated;
   the settings card and the HUD on a phone; the emote keycaps; the wipe ball bigger with its gloss; the count plate's bare number
   ========================================================================================================== */
/* the seg (Leaderboard / Friends tabs, every switch): a keyboard focus on the checked option turns the thumb's own drop plate neon instead of ringing
   the thumb (a cobalt thumb inside a neon ring was two frames round one thing) */
:is(.menu-glass,.menu-bg,.settings,.fc-skin,.acct-card) .seg.has-thumb > .seg-opt[aria-checked="true"]:focus-visible{box-shadow:none}
:is(.menu-glass,.menu-bg,.settings,.fc-skin,.acct-card) .seg.has-thumb:has(> .seg-opt[aria-checked="true"]:focus-visible)::before{box-shadow:inset 0 0 0 var(--tb) var(--cp-deep), var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--ua-neon), var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 .125rem var(--cp-ink)}
/* the court list: Watch is the row's height and sits a deliberate .625rem off it (it stood 6px taller with a 3px gap: a misalignment, not a second plate) */
.court-list li{gap:.625rem}
.court-list .room-watch{align-self:stretch;height:auto;min-height:max(3.5rem,44px)}
/* the settings card on a phone: the first section label clears the status chips' drop plates; the emote bar does not peek under the card's corner;
   the AirPod preview does not bite the card's top-right corner */
@media (max-width:600px){
  .settings .set-status{margin-bottom:.5rem}
  body[data-settings] .emotes,body[data-settings] .inset-pod{opacity:0;pointer-events:none}
}
/* the HUD on a phone: the AirPod preview sits .25rem clear of Matt's scoreboard plate (its drop plate took the gap) */
@media (max-width:480px){ .inset-pod,body[data-screen="hud"] #camwrap[hidden] ~ .inset-pod{top:calc(var(--edge) + 5.6875rem + .5rem + 4.25rem + .5rem + .375rem)} }
/* a touch phone has no number keys: the emote keycaps lose their digit captions at phone width too (the mock has no data-mobile); the caps are
   small plates with the outline and a hard drop, like the scoreboard above them */
.emote-btn{border:.125rem solid var(--ua-outline);border-radius:.25rem;background:#fff;box-shadow:0 .1875rem 0 var(--ua-outline)}
@media (hover:hover){ .emote-btn:hover{border-color:var(--ua-outline);box-shadow:0 .3125rem 0 var(--ua-outline)} } .emote-btn:active{box-shadow:0 0 0 var(--ua-outline)}
/* the count plate on Courts ('8 open'): the figure big and bare in Days One, its word small beside it (the reference's '14'); ui.js writes <b>8</b> open */
#screen-lobby .tile .tile-sub b{position:static;display:inline;padding:0;margin:0 .3em 0 0;font-family:var(--font-display);font-size:1.45em;line-height:1;font-weight:400;color:#fff;white-space:nowrap}      /* no label plate of its own (the tile's b::before is for the big label) */
#screen-lobby .tile .tile-sub b::before{content:none}
#screen-lobby .tile .tile-sub{font-family:var(--font-display);font-weight:400;font-size:var(--t-sm);padding-right:.75rem}
@media (max-width:480px){ #screen-lobby .tile .tile-sub{font-size:max(var(--t-xs),11px)} }
#screen-lobby .tile .tile-sub.pop b{animation:num-pop 450ms var(--ease-bounce)}
/* reduced motion: the wipe, the tilt and the punch are off (aero.js); the screens still cross-fade (the 1 ms clamp above took the fade too) */
@media (prefers-reduced-motion: reduce){ .screen{transition-property:opacity,visibility!important;transition-duration:180ms,0s!important;transition-delay:0s,180ms!important} .screen.is-active{transition-delay:0s!important} }

/* ==========================================================================================================
   URBAN AERO, round 5 (NOTES 268): the critics' points. The dimmed count figure, the stripe on the cobalt slab (aero.js), the trail's cyan core,
   the title note bare, the settings card opaque with its chips in one row docked, the selection slab on the settings rows, Ready's neon lamp,
   the debug panel a plate, the result card's crown and bars, the count plate off the gloss band, the tiles' own figures
   ========================================================================================================== */
/* a dimmed block (no name yet, the server down): the count's figure is ink like its word (it was white on the white plate: '8 open' read 'open') */
#screen-lobby:is(.needs-name,.is-down) .tile .tile-sub b{color:inherit}
/* the wipe's torn stripe lives ON the cobalt slab (a child pinned to its top edge: the slab's slant, its slide and its peel are the stripe's), a thin line
   (~8 px at 1440, the reference's) with the ink edge; it fades as the ball clears the right edge (aero.js), so no frame shows a bar without the ball */
/* the trail: the reference's cyan core on the haze body (final_click_f2: a cyan streak reads at a glance; the white core vanished on the white slab) */
/* the title's note: bare text on the glass (its haze plate under Play read as a second button) */
#title-note{padding:0;margin-top:1rem;color:var(--ua-outline);text-shadow:0 0 .5rem #fff, 0 0 .125rem #fff, 0 0 .125rem #fff}
#title-note::before{content:none}
/* the settings card: an opaque cloud face (the blurred scene bled through it: a pale disc behind the chips, court lines through the rows) */
.panel.settings,body[data-paused] .panel.settings{background:linear-gradient(180deg,#fff,var(--ua-cloud) 55%,var(--cp-sky-2));backdrop-filter:none;-webkit-backdrop-filter:none}
/* docked at <= 600 the card is 23rem of a 12px root: the three chips take the phone's size so AirPod / Game / Camera stay on one row */
@media (max-width:600px){ .settings .set-status{gap:.25rem .3125rem} .settings .set-status li{min-height:max(1.5rem,24px);padding:0 .4375rem 0 .375rem;gap:.25rem;font-size:max(var(--t-xs),11px);box-shadow:.125rem .125rem 0 var(--ua-outline)} .settings .set-status .light{width:.625rem;height:.625rem} }
/* the one selection inside the settings card and the lobby's segs (aero.js PICK): a row, a switch, a stepper key or a seg option under the pointer or the
   keyboard wears the slab's weight (the ink outline and the neon offset plate), the same read as every .btn and tile. Rows are straight (they sit in a list) */
.settings button.set-row{isolation:isolate}
.settings button.set-row.ae-sel,html:not(.ae-on) .settings button.set-row:focus-visible{border-color:var(--ua-outline);border-radius:var(--ua-r);box-shadow:var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--ua-neon), var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 .125rem var(--ua-outline);background:#fff;z-index:2}
.settings button.set-row.ae-sel::before{opacity:1}
.seg-opt.ae-sel:not([aria-checked="true"]),html:not(.ae-on) .seg-opt:focus-visible:not([aria-checked="true"]){border-color:var(--ua-outline);background:#fff;color:var(--ua-outline);box-shadow:var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--ua-neon), var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 .125rem var(--ua-outline)}
.seg.has-thumb:has(> .seg-opt[aria-checked="true"].ae-sel)::before{box-shadow:inset 0 0 0 var(--tb) var(--cp-deep), var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--ua-neon), var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 .125rem var(--cp-ink)}
.seg.has-thumb > .seg-opt[aria-checked="true"].ae-sel{box-shadow:none}
/* Getting ready: a row that is Ready is live (the neon lamp, the brief's live / active indicator); Waiting keeps the hollow haze lamp */
#screen-connect .status-row.is-ok > .light{background:radial-gradient(circle at 35% 30%,#bff5d3,var(--cp-live) 60%,var(--cp-green-deep));box-shadow:0 0 0 .125rem var(--ua-outline)}
#screen-connect .status-row.is-ok .status-state{color:var(--ua-outline)}
/* the swing stats panel (Show stats): a straight white plate with the ink outline and its drop, not the old translucent rounded card */
.dev-panel{border-radius:var(--ua-r);background:#fff;border:.125rem solid var(--ua-outline);box-shadow:var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--ua-outline);color:var(--ua-ink);font-family:var(--font-text)}
.dev-panel b{color:var(--ua-outline)} .dev-panel b.big{font-family:var(--font-display);font-weight:400}
/* the count plate on a block ('8 open', requests, a record, a place): clear of the glossy top band, protruding from the block's top-right corner like the
   reference's '14' */
#screen-lobby .tile .tile-sub{top:-.5rem;right:-.25rem}
@media (max-width:600px){ #screen-lobby .tile .tile-sub{top:.375rem;right:.375rem} }      /* stacked blocks on a phone: the plate stays inside its block (a protruding one sat on the block above) */
/* the tiles' own figures (profile.js feeds them): the record on Your stats ('41-25'), the place on Leaderboard ('#212'), the count on Courts */
#screen-lobby .tile .tile-sub.is-fig{font-family:var(--font-display);font-weight:400;font-size:var(--t-lg);padding-right:.875rem}
#screen-lobby .tile .tile-sub.is-fig b{margin:0;font-size:1em}
#screen-lobby .tile .tile-sub.is-fig i{font-style:normal;margin:0 .1em;color:var(--ua-haze)}

/* ==========================================================================================================
   URBAN AERO, round 6 (NOTES 268): the critics' points. Real gutters between the blocks (nothing touches), the hero with two plates, the
   figure plates clear of the labels at phone width, Quick play over a two-up row at 600, the zero plain (vendor/fonts), the result card's
   slam on the court pane and its trophy block one plate, the countdown on a plate, Join dimmed on a failed code, the settings chips as lamps,
   the spectator's phone stack, the header's online lamp with room, the wipe's ball leaving as the peel starts (aero.js)
   ========================================================================================================== */
/* ---------- the lobby home: a gutter every block clears. A lifted neighbour's slab (1rem into the gutter) and the hero's drop plate (.75rem) never
   meet: 2rem between columns, 1.75rem between rows (>= the column gap: the hero's drop plate stood on the row under it with a 12px gap) ---------- */
.tiles:is([data-n="5"],[data-n="6"]){gap:1.75rem 2rem}
@media (max-aspect-ratio: 1/1){ .tiles:is([data-n="5"],[data-n="6"]){gap:1.5rem 1.5rem} }
/* the hero holds the selection at rest with TWO plates (the face, one drop plate): selected, its ink drop plate turns cobalt-deep and steps out a
   touch further (no third slab out to the left: a neon face already is the primary, the deep blue plate behind it says 'this one') */
#screen-lobby #btn-quick.ae-sel,html:not(.ae-on) #screen-lobby #btn-quick:focus-visible{--slab-c:rgba(var(--cp-deep-rgb),0);--slab-o:rgba(var(--cp-ink-rgb),0);--lift-x:0rem;--lift-y:-.25rem}
#screen-lobby #btn-quick.ae-sel::after,html:not(.ae-on) #screen-lobby #btn-quick:focus-visible::after{background:var(--ua-cobalt-deep);box-shadow:0 0 0 var(--ua-ol) var(--ua-outline)}
#screen-lobby #btn-quick::after{transition:transform 200ms var(--ua-spring), background 170ms var(--ua-snap)}
#screen-lobby #btn-quick{z-index:1}      /* the primary sits over its neighbours' plates; a popped neighbour (z 2) still rises above it, in its own gutter */
/* the one selection on a block beside the primary: the slab keeps its .1875rem ink outline and a .5rem gutter from the hero's plate (above) */
/* 480..600 wide, upright: three blocks (signed out, no stats server) as Quick play the full width over Courts and Play a bot two-up, the hero the
   biggest block at every width (three a third of the width each had label plates smaller than the phone's) */
@media (min-width:481px) and (max-width:600px) and (max-aspect-ratio: 1/1){
  .tiles[data-n="3"]{grid-template-columns:1fr 1fr;gap:1.5rem}
  .tiles[data-n="3"] #btn-quick{grid-column:span 2;height:9rem;flex-direction:row;justify-content:center;gap:var(--s-4)}
  .tiles[data-n="3"] #btn-quick .tile-text{align-items:flex-start;text-align:left}
  .tiles[data-n="3"] .tile:not(#btn-quick){height:11rem}
}
/* the figure plates at <= 600 ('41-25', '#212', '8 open'): out of the block's label, protruding from the top-right corner as at desktop; the row gap
   above (1.5rem) holds the block above's drop plate clear of them */
@media (max-width:600px){
  .tiles:is([data-n="5"],[data-n="6"]){row-gap:1.5rem}
  #screen-lobby .tile .tile-sub{top:-.625rem;right:-.125rem}
}
/* the header's right end: the online lamp gets its own room left of the player card */
:is(.menu-glass,.menu-bg) .head-end{gap:1.5rem}
@media (max-width:700px){ :is(.menu-glass,.menu-bg) .head-end{gap:1rem} }


/* ---------- Courts: a code that was not found dims Join (a white plate, ink at .55, no slab) until the boxes hold a valid code again (ui.js codeError
   toggles .code-boxes.is-bad); the neon returns with a clean code. Watch keeps its white plate ---------- */
#lobby-code:has(.code-boxes.is-bad) #btn-join{--bf:#fff;color:rgba(var(--cp-ink-rgb),.55);--slab-c:rgba(var(--cp-main-rgb),0)!important;--slab-o:rgba(var(--cp-ink-rgb),0)!important;--bdx:var(--cp-drop-sm-x);--bdy:var(--cp-drop-sm-y)}
#lobby-code:has(.code-boxes.is-bad) #btn-join::after{background:rgba(var(--cp-ink-rgb),.55)}
/* the court rows on a phone: a name stays whole; ' is waiting' (ui.js wraps it in .court-wait) goes when the row is narrow */
@media (max-width:480px){ .court-row .court-wait{display:none} }

/* ---------- the settings card's status chips (AirPod / Game / Camera): states, not controls. No plate, no outline: the word with its lamp, neon when
   ready (live), hollow haze while waiting, signal red when something is wrong ---------- */
.settings .set-status{gap:.25rem 1rem;padding:0 .25rem}
.settings .set-status li,.settings .set-status li.is-bad,.settings .set-status li.is-wait{min-height:0;height:auto;padding:0;gap:.4375rem;border:0;border-radius:0;background:none;box-shadow:none;color:var(--ua-outline)}
.settings .set-status li.is-wait{color:var(--ua-ink)} .settings .set-status li.is-bad{color:var(--ua-red-shade)}
.settings .set-status .light{width:.75rem;height:.75rem}
.settings .set-status .is-ok > .light{background:radial-gradient(circle at 35% 30%,#bff5d3,var(--cp-live) 60%,var(--cp-green-deep));box-shadow:0 0 0 .125rem var(--ua-outline)}
.settings .set-status .is-wait > .light{background:#fff;box-shadow:inset 0 0 0 .125rem var(--ua-haze), 0 0 0 .125rem var(--ua-outline)}
@media (max-width:600px){ .settings .set-status{gap:.25rem .75rem;margin-bottom:.25rem} .settings .set-status li{padding:0;box-shadow:none;font-size:max(var(--t-xs),11px)} .settings .set-status .light{width:.625rem;height:.625rem} }

/* ---------- a spectator on a phone: the bottom of the court as one stack: the view row at the bottom, the emote bar above it, Ask to play on its own
   line above both; Matt's difficulty row is the seated player's control (it sat under the Ask plate here) ---------- */
@media (max-width:700px){
  body[data-role="spectator"] .ask-play:not([hidden]){left:var(--edge);right:auto;bottom:calc(var(--edge) + 5.25rem + 2.875rem + .75rem);width:min(16rem,calc(100vw - 2 * var(--edge)))}
  body[data-role="spectator"] .bot-pick{display:none}
}
/* <= 600: the row gap holds the hero's deeper drop plate (.875rem) clear of the protruding '8 open' plate under it */
@media (max-width:600px){ .tiles:is([data-n="3"],[data-n="5"],[data-n="6"]){row-gap:1.875rem} }
/* 480..600, three blocks: the hero's label and art at the hero's size */
@media (min-width:481px) and (max-width:600px) and (max-aspect-ratio: 1/1){ .tiles[data-n="3"] #btn-quick b{font-size:var(--t-xl)} .tiles[data-n="3"] #btn-quick svg{width:5.5rem;height:5.5rem} }
/* the HUD at 480..700 (phase 2 only inherits tokens; this is room, not a restyle): the webcam and AirPod cards smaller so they clear the far
   scoreboard plate and the court pill keeps its line beside the menu button */
@media (min-width:481px) and (max-width:700px){
  .inset-cam{width:9.5rem}
  .inset-pod,body[data-screen="hud"] #camwrap:not([hidden]) ~ .inset-pod{width:6.5rem;top:calc(var(--edge) + 5.625rem + .5rem)}
  .scoreboard{width:min(45.25rem, calc(100vw - 2 * (10.5rem + var(--edge))))}      /* 10.5rem: the smaller webcam card (9.5rem) and a .5rem gap on each side */
  .score-num,.is-me .score-num,.is-them .score-num{min-width:3rem}
}
/* the one selection on a block beside the primary (Courts): the slab slides .625rem out, the face lifts .125rem, so the slab's ink edge stays ~.75rem
   clear of the hero's drop plate in the 2rem gutter (it touched it at -.75rem with the .25rem lift) */
html:not(.ae-on) #screen-lobby .tile:focus-visible,#screen-lobby .tile.ae-sel{--slab-x:-.625rem;--lift-x:-.125rem}
@media (max-width:600px){ html:not(.ae-on) #screen-lobby .tile:focus-visible,#screen-lobby .tile.ae-sel{--slab-x:0rem;--lift-x:0rem} }
/* <= 480: a long title takes two lines between Back and the header's right end, its plate never runs under either */
@media (max-width:480px){ .menu-title{max-width:calc(100vw - 14rem);font-size:var(--t-lg);line-height:1;padding:.25rem .75rem .3rem .625rem;text-align:center;text-wrap:balance} }

/* ==========================================================================================================
   URBAN AERO, round 7 (NOTES 270): THE HOME. The owner's approved layout (poddle-art/ui/urbanaero, final.png), built as it is drawn: one screen
   where the title and the lobby's tile home were. The left half is the kid (live in the rooftop scene, web/scene.js menuKid), the right half the
   blocks. The source is laid out in fixed 1440 px values: everything here is that value / 17 in rem, so the root font-size clamp (17px at
   1440x900, 13.6px at 1280x720, 20.4px at 1920x1080) keeps the same share of the window at every desktop size. No centred column, no max-width.
   ========================================================================================================== */
:root{--hm-red:#ff4a5e;--hm-sky:#33ceff;--hm-sky-hi:#8fe0ff;--hm-sky-2:#b5ecff;--hm-ice:var(--cp-sky-2);--hm-glow:#6cf2ff}      /* Cyan pop: the home's sky blues on the cyan family */
html:not([data-mobile]) #screen-lobby[data-view="home"] .menu-head{display:none}      /* the home has no header: the wordmark, the player card and Settings sit on the scene */
html:not([data-mobile]) #screen-lobby[data-view="home"] .menu-body{position:relative;display:block;padding:0;overflow:visible}
html:not([data-mobile]) #screen-lobby[data-view="home"] #name-row{display:none}      /* the name lives in the player card here */
html:not([data-mobile]) #lobby-home{position:absolute;inset:0;margin:0;overflow:visible;animation:none}
html:not([data-mobile]) #screen-lobby[data-view="home"] #tour-ended,html:not([data-mobile]) #screen-lobby[data-view="home"] #lobby-down{position:absolute;left:50%;top:1.5rem;translate:-50% 0;z-index:5;margin:0}
.home-top{position:absolute;inset:0;pointer-events:none;z-index:2} .home-top > *{pointer-events:auto}
/* the wordmark: the same drawn letters, top left (58 / 40 px, 108 px) */
#screen-lobby .home-wm{position:absolute;left:3.4rem;top:2.35rem;margin:0;font-size:6.35rem}
/* the player card: an ink plate (510 x 128 at 128 / 28 px): the disc, the name with trophies and the streak after it, the rank plate over the division bar */
.pcard{position:absolute;right:7.5rem;top:1.65rem;width:30rem;height:7.5rem;display:flex;flex-direction:column;justify-content:center;gap:.6rem;padding:.7rem 1.75rem .7rem 7.75rem;isolation:isolate;color:#fff;text-align:left;
  transition:translate 200ms var(--ua-spring)}
.pcard::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:var(--ua-r);background:var(--ua-outline);transform:skewX(var(--ua-skew));
  box-shadow:inset 0 0 0 .125rem rgba(255,255,255,.2), inset 0 2.9rem 0 rgba(255,255,255,.06), var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--cp-ink)}
.pcard:not(.is-acct){padding-right:1.5rem} .pcard:not(.is-acct) .pc-r1{gap:1rem}
#btn-home-acct[hidden]{display:none} .pcard:has(#btn-home-acct[hidden]){width:auto;min-width:20rem;height:5.2rem;padding:.5rem 1.75rem}      /* no accounts on this server: the name alone, a shorter plate */
.pc-me{position:absolute;left:1.18rem;top:.8rem;width:5.9rem;height:5.9rem;padding:0;border:.235rem solid #fff;border-radius:50%;background:linear-gradient(180deg,var(--hm-sky-2),var(--hm-sky));box-shadow:0 0 0 .18rem var(--ua-cobalt-deep);
  display:grid;place-items:center;cursor:pointer;color:#fff;transition:scale 200ms var(--ua-spring)}
.pc-me > *{grid-area:1/1} .pc-me .head-acct-ic{width:3.4rem;height:3.4rem;background:rgba(var(--cp-ink-rgb),.28)} .pc-me .head-acct-ic svg{width:2.2rem;height:2.2rem}
.pc-me.is-in .head-acct-ic{background:linear-gradient(180deg,var(--me),var(--me-deep))}
.pc-em{display:grid;place-items:center;width:4.6rem;height:4.6rem} .pc-em[hidden]{display:none} .pc-em .st-em .rank-em{width:4.4rem;height:4.4rem;filter:drop-shadow(0 .125rem .25rem rgba(20,60,90,.35))} .pc-em .st-em::after{display:none}
.pc-me:has(.pc-em:not([hidden])) .head-acct-ic{display:none}
@media (hover:hover){ .pc-me:hover{scale:1.06} } .pc-me:focus-visible{outline:.1875rem solid var(--ua-neon);outline-offset:.125rem}
.pc-r1,.pc-r2{display:flex;align-items:center;gap:.94rem;min-width:0}
.pc-name{display:block;flex:1;min-width:0;position:relative}
#screen-lobby .pc-name .field{display:block;width:100%;min-width:0;height:2.4rem;padding:0 .25rem;margin:0;border:0;border-radius:.25rem;background:none;box-shadow:none;color:#fff;font-family:var(--font-display);font-weight:400;font-size:2rem;line-height:1;caret-color:var(--ua-neon);cursor:text;
  text-overflow:ellipsis;transition:background-color var(--d-fast) linear}
#screen-lobby .pc-name .field::placeholder{color:rgba(255,255,255,.55);font-family:var(--font-text);font-weight:500;font-size:1.25rem}
#screen-lobby .pc-name .field:read-only{cursor:pointer}
@media (hover:hover){ #screen-lobby .pc-name .field:hover{background:rgba(255,255,255,.1)} }
#screen-lobby .pc-name .field:focus{outline:0;background:rgba(255,255,255,.12);box-shadow:inset 0 -.1875rem 0 var(--ua-neon)}      /* editing: a neon rule under the name */
#screen-lobby.needs-name .pcard .field{background:rgba(255,255,255,.14);box-shadow:inset 0 -.1875rem 0 var(--ua-neon)}
#screen-lobby.needs-name .pcard:not(:focus-within)::after{content:"";position:absolute;inset:-.25rem;z-index:-2;border-radius:var(--ua-r);transform:skewX(var(--ua-skew));box-shadow:0 0 0 .25rem rgba(var(--cp-main-rgb),.55), 0 0 1.5rem .25rem rgba(var(--cp-main-rgb),.6);animation:glow-pulse var(--d-pulse) var(--ease-soft) infinite}      /* first visit: the one thing to do breathes until you are in it */
.pcard.is-error{animation:nudge 420ms var(--ease-soft) 1}
.pc-tro,.pc-streak{display:inline-flex;align-items:center;gap:.4rem;flex:none;font-family:var(--font-display);font-weight:400;font-size:1.65rem;line-height:1;color:#fff}
.pc-tro{margin-left:auto} .pc-tro .cup-ic{width:1.5rem;height:1.5rem;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.pc-streak .st-flame{width:1.45rem;height:1.65rem;fill:var(--hm-glow);filter:drop-shadow(0 0 .3rem rgba(108,242,255,.6))}
.pc-tro[hidden],.pc-streak[hidden],.pc-r2[hidden]{display:none}
.pc-rank{position:relative;isolation:isolate;flex:none;padding:.4rem .8rem .35rem .65rem;font-family:var(--font-display);font-weight:400;font-size:1.06rem;line-height:1;color:#fff;white-space:nowrap}
.pc-rank::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:var(--ua-r);background:var(--ua-cobalt);transform:skewX(var(--ua-skew));box-shadow:inset 0 .125rem 0 rgba(255,255,255,.3), inset 0 0 0 .125rem rgba(255,255,255,.18)}
.pc-bar{display:block;flex:1;position:relative;height:.94rem;border-radius:.1875rem;transform:skewX(var(--ua-skew));background:rgba(255,255,255,.16);box-shadow:inset 0 0 0 .125rem rgba(255,255,255,.22);overflow:hidden}
.pc-bar i{position:absolute;left:0;top:0;bottom:0;width:calc(100% * var(--p,0));background:linear-gradient(180deg,#9af7ff,var(--hm-glow) 55%,#34beed);box-shadow:0 0 .6rem rgba(108,242,255,.6);transition:width 400ms var(--ease-out)}
.pcard:not(.is-acct) .pc-r1{padding-right:5rem}
/* Settings: top right beside the card (42 / 56 px, 66 x 72) */
#screen-lobby .home-set{position:absolute;right:2.47rem;top:3.3rem;width:3.9rem;height:4.25rem;z-index:3} #screen-lobby .home-set svg{width:2rem;height:2rem}

/* ---------- the stack: the right half, 744 px wide at 40 / 180, a 20-column grid; Quick play the full row (258 tall), Courts 9 + Play a bot 11, then Friends 6, Your stats 7, Leaderboard 7 (150 tall) ---------- */
html:not([data-mobile]) #lobby-home .tiles,html:not([data-mobile]) #lobby-home .tiles[data-n]{position:absolute;right:2.35rem;top:10.6rem;width:43.75rem;display:grid;grid-template-columns:repeat(20,1fr);gap:2.1rem 1.9rem;justify-content:normal;margin:0;transform-style:preserve-3d}
html:not([data-mobile]) #lobby-home .tile,html:not([data-mobile]) #lobby-home .tiles[data-n] .tile{display:block;width:auto;height:8.8rem;padding:0;margin:0;text-align:left;font-size:1rem;flex:none;grid-column:span 7}
html:not([data-mobile]) #lobby-home .tiles[data-n] #btn-quick{grid-column:1 / -1;height:15.2rem;margin-bottom:.7rem}
html:not([data-mobile]) #lobby-home .tiles[data-n] #btn-courts{grid-column:span 9}
html:not([data-mobile]) #lobby-home .tiles[data-n] #btn-bot{grid-column:span 11}
html:not([data-mobile]) #lobby-home .tiles[data-n] #btn-friends{grid-column:span 6}
html:not([data-mobile]) #lobby-home .tiles[data-n="5"] #btn-profile,html:not([data-mobile]) #lobby-home .tiles[data-n="5"] #btn-leaderboard{grid-column:span 10}      /* no Friends (sign-in off): the two share the row */
html:not([data-mobile]) #lobby-home .tiles[data-n="4"] #btn-profile,html:not([data-mobile]) #lobby-home .tiles[data-n="4"] #btn-leaderboard{grid-column:span 10}
/* the label: bottom left on its plate (26 / 20 px); the figure plate: top right (22 / 18), nearest the viewer */
#lobby-home .tile > b,#lobby-home .tile .tile-text{position:absolute;left:var(--lx,1.53rem);bottom:var(--lb,1.18rem);z-index:2;translate:0 0;transform:translateZ(1.75rem)}
#lobby-home .tile .tile-text{display:flex;flex-direction:row;align-items:center;gap:.6rem;text-align:left}
#lobby-home .tile .tile-text b{position:static;transform:none}
#screen-lobby #lobby-home .tile b{font-size:var(--fs,1.47rem);line-height:1;padding:.2em .5em .16em .38em}
#screen-lobby #lobby-home :is(#btn-courts,#btn-bot){--fs:2.3rem;--lb:.8rem}
#screen-lobby #lobby-home :is(#btn-friends,#btn-profile,#btn-leaderboard){--tl:var(--hm-sky-2);--tlc:var(--ua-outline);--fs:1.47rem;--lx:1.18rem;--lb:1.06rem}
#screen-lobby #lobby-home .tile .tile-sub,#screen-lobby #lobby-home .tiles[data-n] .tile:not(.is-hero) .tile-sub{top:var(--by,1.06rem);right:var(--bx,1.3rem);left:auto;bottom:auto;height:auto;padding:.12em .36em .08em .3em;font-size:var(--bs,2.94rem);line-height:1;transform:translateZ(1.1rem);translate:0 0}
#screen-lobby #lobby-home .tile .tile-sub::before{border-radius:.3125rem;box-shadow:inset 0 .125rem 0 rgba(255,255,255,.16), var(--cp-drop-sm-x) var(--cp-drop-sm-y) 0 var(--cp-ink)}
#screen-lobby #lobby-home #courts-n{--bs:3.4rem;--by:.7rem;--bx:1.06rem} #screen-lobby #lobby-home #courts-n b{margin:0;font-size:1em} #screen-lobby #lobby-home #courts-n{font-size:0} #screen-lobby #lobby-home #courts-n b{font-size:3.4rem}      /* '14' bare: the word 'open' is the label's job */
#screen-lobby #lobby-home #bot-n{--bs:2.35rem;--by:.7rem;--bx:1.06rem}
#screen-lobby #lobby-home :is(#profile-n,#lb-n){--bs:2.94rem;--by:1.4rem}
#screen-lobby #lobby-home .tile .tile-sub.is-fig i{margin:0 .05em}
#screen-lobby #lobby-home #friends-n{top:.6rem;right:auto;left:5.8rem;--bs:1.06rem;min-width:1.9rem;height:1.9rem;padding:0 .4rem;display:inline-flex;align-items:center;justify-content:center;color:var(--ua-outline)}
#screen-lobby #lobby-home #friends-n::before{background:var(--ua-neon);border:.15rem solid var(--ua-outline)}
#screen-lobby #lobby-home #friends-n.is-off{display:none}
/* the faces: Quick play cobalt (its label white on ink, the ball's streak, a red under-plate), Courts and Play a bot sky, the three small ones white */
#screen-lobby #lobby-home #btn-quick{--tf:var(--ua-cobalt);--bo:var(--cp-deep);--tg:rgba(108,242,255,.5);--tl:var(--ua-outline);--tlc:#fff;--line:var(--ua-outline);--fs:4.6rem;--lx:2.6rem;--dx:var(--cp-drop-x);--dy:var(--cp-drop-y)}
#screen-lobby #lobby-home #btn-quick::after{background:var(--hm-red);box-shadow:0 0 0 var(--ua-ol) var(--ua-outline)}
#screen-lobby #lobby-home #btn-quick.ae-sel::after,html:not(.ae-on) #screen-lobby #lobby-home #btn-quick:focus-visible::after{background:var(--hm-red);box-shadow:0 0 0 var(--ua-ol) var(--ua-outline)}
#screen-lobby #lobby-home #btn-quick.ae-sel,html:not(.ae-on) #screen-lobby #lobby-home #btn-quick:focus-visible{--slab-c:var(--ua-neon);--slab-o:var(--cp-deep);--slab-x:-.75rem;}      /* the one selection: the neon slab, on the primary as on every block */
#screen-lobby #lobby-home #btn-quick > b{top:50%;bottom:auto;translate:0 -50%;line-height:.94;padding:.16em .62em .2em .5em}
#screen-lobby #lobby-home #btn-quick > b::before{inset:0 .26em}      /* the two-line plate is tall: its skewed corners stay inside the label's box (scrollWidth: social-ui's 'no label cut' reads it) */
#screen-lobby #lobby-home #btn-quick > b span{display:block} #screen-lobby #lobby-home #btn-quick > b span + span{padding-left:.3em}
#screen-lobby #lobby-home :is(#btn-courts,#btn-bot){--tf:var(--hm-sky);--bo:var(--cp-deep);--tg:rgba(200,250,255,.55);--tl:#fff;--tlc:var(--ua-outline);--line:var(--ua-outline)}
#screen-lobby #lobby-home :is(#btn-friends,#btn-profile,#btn-leaderboard){--tf:#fff;--tg:rgba(146,210,255,.45)}
html:not([data-mobile]) #screen-lobby #lobby-home #btn-friends .tile-line{display:none}      /* the home block: the faces, the request badge and the label (the approved picture); who is online is the Friends view's own line, and the phone home keeps it */
/* the gutters the slab and the drop plates need (round 6) hold: 1.9rem between columns, 2.1rem between rows */
#screen-lobby[data-view="home"].needs-name .tile{opacity:.5}
/* ---------- the footer on the home: one quiet line (the landing pages, Privacy, Terms, the music credit, the Product Hunt badge at its end), the agree line and the key hints on every other view ---------- */
.foot-home{display:none} html:not([data-mobile]) #screen-lobby[data-view="home"] .foot-home{display:inline-flex;flex:1;flex-wrap:wrap;justify-content:center;align-items:center;column-gap:1.25rem;row-gap:.25rem}
html:not([data-mobile]) #screen-lobby[data-view="home"] .menu-foot{height:2.75rem;min-height:0;padding:0 1.5rem;justify-content:center;gap:1.5rem;background:linear-gradient(180deg,rgba(var(--cp-deep-rgb),.72),rgba(8,44,138,.8));border-top-color:rgba(var(--cp-ink-rgb),.6)}
html:not([data-mobile]) #screen-lobby[data-view="home"] .menu-foot :is(.foot-agree,.keyhints-inline){display:none}
html:not([data-mobile]) #screen-lobby[data-view="home"] .menu-foot .foot-link{font-size:max(.85rem,12px);font-weight:400;font-family:var(--font-display);opacity:.92}
html:not([data-mobile]) #screen-lobby[data-view="home"] .menu-foot .ph-badge{position:static;flex:none} html:not([data-mobile]) #screen-lobby[data-view="home"] .menu-foot .ph-badge img{height:2rem}
/* ---------- a narrow desktop window (upright, or under 980 wide): the kid steps out (scene.js), the top row stacks, the blocks take the width: Quick play, two by two ---------- */
@media (max-width:980px), (max-aspect-ratio: 6/5){
  html:not([data-mobile]) #screen-lobby[data-view="home"] .menu-body{overflow-y:auto;overscroll-behavior:contain}
  html:not([data-mobile]) #lobby-home{position:static;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:1.25rem;padding:1rem 1.5rem 1.5rem;min-height:0}
  html:not([data-mobile]) .home-top{position:relative;inset:auto;display:grid;grid-template-columns:1fr auto;grid-template-areas:"wm set" "card card";align-items:center;gap:.9rem 1rem;z-index:2}
  #screen-lobby .home-wm{position:relative;left:auto;top:auto;grid-area:wm;font-size:4.4rem}
  .pcard{position:relative;right:auto;top:auto;grid-area:card;width:100%;height:6.2rem;padding:.5rem 1.25rem .5rem 6.4rem;gap:.4rem} .pc-me{width:4.8rem;height:4.8rem;left:.9rem;top:.7rem} .pc-me .head-acct-ic{width:2.8rem;height:2.8rem}
  #screen-lobby .pc-name .field{font-size:1.6rem} .pc-tro,.pc-streak{font-size:1.35rem}
  #screen-lobby .home-set{position:relative;right:auto;top:auto;grid-area:set;width:3.25rem;height:3.5rem}
  html:not([data-mobile]) #lobby-home .tiles,html:not([data-mobile]) #lobby-home .tiles[data-n]{position:static;width:100%;gap:1.6rem 1.4rem}
  html:not([data-mobile]) #lobby-home .tiles[data-n] #btn-quick{height:11rem;margin-bottom:.4rem}
  html:not([data-mobile]) #lobby-home .tile,html:not([data-mobile]) #lobby-home .tiles[data-n] .tile{height:7.5rem}
  html:not([data-mobile]) #lobby-home .tiles[data-n] :is(#btn-courts,#btn-bot){grid-column:span 10}
  html:not([data-mobile]) #lobby-home .tiles[data-n] :is(#btn-friends,#btn-profile,#btn-leaderboard){grid-column:span 10}
  html:not([data-mobile]) #lobby-home .tiles[data-n="6"] #btn-leaderboard{grid-column:1 / -1}
  #screen-lobby #lobby-home #btn-quick{--fs:3.6rem;--lx:1.5rem}
  #screen-lobby #lobby-home :is(#btn-courts,#btn-bot){--fs:1.9rem}
  #screen-lobby #lobby-home #courts-n b{font-size:2.6rem} #screen-lobby #lobby-home #bot-n{--bs:1.9rem} #screen-lobby #lobby-home :is(#profile-n,#lb-n){--bs:2.2rem;--by:1rem}
  html:not([data-mobile]) #screen-lobby[data-view="home"] .menu-foot{height:auto;min-height:2.75rem;padding:.4rem 1rem;flex-wrap:wrap}
}
@media (max-width:600px){
  html:not([data-mobile]) #lobby-home{padding:1rem 1.25rem 1.25rem;gap:1rem}
  html:not([data-mobile]) #lobby-home .tiles,html:not([data-mobile]) #lobby-home .tiles[data-n]{gap:1.25rem 1rem}
  html:not([data-mobile]) #lobby-home .tiles[data-n] #btn-quick{height:8.5rem}
  html:not([data-mobile]) #lobby-home .tile,html:not([data-mobile]) #lobby-home .tiles[data-n] .tile{height:6.5rem}
  #screen-lobby .home-wm{font-size:3.4rem} .pcard{height:5.4rem;padding-left:5.6rem} .pc-me{width:4.2rem;height:4.2rem;left:.7rem;top:.6rem}
  #screen-lobby #lobby-home #btn-quick{--fs:2.8rem;--lx:1.2rem} #screen-lobby #lobby-home :is(#btn-courts,#btn-bot){--fs:1.5rem;--lb:.8rem}
  #screen-lobby #lobby-home :is(#btn-friends,#btn-profile,#btn-leaderboard){--fs:1.2rem;--lx:.9rem;--lb:.8rem}
  #screen-lobby #lobby-home #courts-n b{font-size:2.1rem} #screen-lobby #lobby-home #bot-n{--bs:1.5rem} #screen-lobby #lobby-home :is(#profile-n,#lb-n){--bs:1.7rem;--by:.8rem}
  #screen-lobby #lobby-home #friends-n{left:4.6rem;top:.5rem}
  html:not([data-mobile]) #screen-lobby[data-view="home"] .menu-foot .ph-badge img{height:1.75rem}
}
/* the phone (html[data-mobile], NOTES 149) keeps its home: the paddle-code card over the blocks it can use; the blocks' labels and plates take their new places */
html[data-mobile] #lobby-home .tile{text-align:left;height:7.5rem}
html[data-mobile] #lobby-home .tile > b,html[data-mobile] #lobby-home .tile .tile-text{position:absolute;left:1rem;bottom:.9rem}
html[data-mobile] #lobby-home .tile .tile-text{align-items:flex-start;text-align:left}
html[data-mobile] #screen-lobby #lobby-home #friends-n{left:auto;right:.9rem;top:.6rem}
html[data-mobile] #screen-lobby #lobby-home :is(#profile-n,#lb-n){--bs:1.8rem;--by:.7rem;--bx:.9rem} html[data-mobile] #screen-lobby #lobby-home #courts-n b{font-size:2rem}
html[data-mobile] #screen-lobby #lobby-home :is(#btn-friends,#btn-profile,#btn-leaderboard,#btn-courts){--fs:1.3rem}
html[data-mobile] .home-top{display:none}
@media (prefers-reduced-motion: reduce){ .pcard,.pc-me{transition:none} .pcard.is-error{animation:none} }
/* the home stands in the scene: the live kid and the court are the picture, nothing in front of them */
body[data-screen="lobby"]:has(#screen-lobby[data-view="home"]) .glass{background:none;-webkit-backdrop-filter:none;backdrop-filter:none}

/* ==========================================================================================================
   CYAN POP FULL SWEEP (core): light and Wii, one cartoon drop, no old font, no old blue (docs/cyanpop/SPEC.md, the bottom sections).
   White faces, pale-sky wells, ink for text / outlines / drops only; every block one ink outline and the --cp-drop / --cp-drop-sm slab
   (deep under cyan); every label, number and title Days One 400. Later than every rule above it, so the same selectors win here
   ========================================================================================================== */
b,strong{font-weight:400;font-family:var(--font-display)}      /* no faux bold: Days One has one weight, and heavy Rubik reads as the old font */
body{font-synthesis:none}
/* the scrims: the light frosted layer (the court shows through), never a navy or cobalt dim */
.tut{background:var(--cp-scrim)}
.menu-bg,#screen-tour-vs{background:linear-gradient(180deg,var(--cp-sky-1) 0%,var(--cp-sky-2) 100%)}
/* the menu frame: a white header and footer with the ink rule; the header's drop the small one */
:is(.menu-glass,.menu-bg) .menu-head{box-shadow:var(--cp-drop-sm)}
:is(.menu-glass,.menu-bg) .menu-foot{background:var(--cp-panel);color:var(--cp-text)}
:is(.menu-glass,.menu-bg) .menu-foot .foot-link,:is(.menu-glass,.menu-bg) .menu-foot .foot-link.foot-legal{color:var(--cp-text)}
:is(.menu-glass,.menu-bg) .menu-foot a:not(.foot-link):not(.ph-badge){color:var(--cp-deep)}
:is(.menu-glass,.menu-bg) .menu-foot .keyhints-inline,:is(.menu-glass,.menu-bg) .menu-foot .foot-agree{color:var(--cp-text)}
:is(.menu-glass,.menu-bg) .t-note{color:var(--cp-text);text-shadow:none}
/* ONE title plate everywhere: white, label ink in Days One, the ink outline and the big drop (Locker, Friends, Ranks, Your stats, Settings, Paused, You win...) */
.menu-title,.settings > .set-head h2,body[data-paused] .settings > .set-head h2,#tour-card > .set-head h2,body[data-paused] #tour-card > .set-head h2,.tut-title,:is(.menu-glass,.menu-bg) .logo-tag,
#screen-match .result-card h2,#screen-match .result-card.is-lose h2,#screen-match .result-card.is-champion h2,#screen-match .result-card.is-watch.is-them-won h2{color:var(--cp-text);text-shadow:none}
.menu-title::before,.settings > .set-head h2::before,.tut-title::before,:is(.menu-glass,.menu-bg) .logo-tag::before,
#screen-match .result-card h2::before,#screen-match .result-card.is-watch.is-them-won h2::before,#screen-match .result-card.is-lose h2::before{
  background:var(--cp-panel);box-shadow:inset 0 0 0 var(--cp-ol) var(--cp-ink), inset 0 .1875rem 0 var(--cp-shine), var(--cp-drop)}
/* the plate button: a flat face (the thin shine is the inset band), the selection keeps the rest drop (no deeper plate) */
.btn::before{background:var(--bf)}
#screen-match .rematch-btns .btn{--bdx:var(--cp-drop-x);--bdy:var(--cp-drop-y)}
/* fields and segs: white fields, pale tracks with no outline of their own; the chosen thumb cyan with its deep edge and small deep drop */
:is(.menu-glass,.menu-bg,.settings,.fc-skin,.acct-card) .field{font-weight:500}
.seg{box-shadow:none}
:is(.menu-glass,.menu-bg,.settings,.fc-skin,.acct-card) .seg,.bot-pick .seg{background:var(--cp-well);border:var(--cp-ol-sm) solid rgba(var(--cp-ink-rgb),.18);box-shadow:none}
:is(.menu-glass,.menu-bg) .seg-n,:is(.menu-glass,.menu-bg) .seg-opt[aria-checked="true"] .seg-n{background:var(--cp-panel);color:var(--cp-text);box-shadow:inset 0 0 0 var(--cp-ol-sm) var(--cp-ink)}
/* the count plates on the blocks ('8 open', a record, a place): white with the ink outline and the small drop */
#screen-lobby .tile .tile-sub{color:var(--cp-text)}
#screen-lobby .tile .tile-sub b{color:inherit}
#screen-lobby .tile .tile-sub::before,#screen-lobby #lobby-home .tile .tile-sub::before{background:var(--cp-panel);box-shadow:inset 0 0 0 var(--cp-ol-sm) var(--cp-ink), var(--cp-drop-sm)}
#screen-lobby .tile .tile-sub.is-fig i{color:var(--cp-text-3)}
#screen-lobby:is(.needs-name,.is-down) .tile .tile-sub::before{box-shadow:inset 0 0 0 var(--cp-ol-sm) rgba(var(--cp-ink-rgb),.4)}
/* the court list's go plate: cyan with a deep edge and the white label in the deep outline; asking to play is the white plate */
:is(.menu-glass,.menu-bg) .court-go::before{border-color:var(--cp-deep)}
:is(.menu-glass,.menu-bg) .court[data-kind="ask"] .court-go,:is(.menu-glass,.menu-bg) .court-row.is-full .court-go{color:var(--cp-text);}
:is(.menu-glass,.menu-bg) .court[data-kind="ask"] .court-go::before{background:var(--cp-panel);border-color:var(--cp-ink)}
/* progress fills: flat cyan (no gradient down to the deep) */
:is(.menu-glass,.menu-bg,.acct-card) .st-rank-bar i,.head-acct-bar i,#screen-match .trophy-bar i,.menu-bg .cal-bar i,#screen-match .rematch-bar i,.bhold-bar i,.ask-card .ask-bar i{background:var(--cp-main)}
/* Your stats and the player card: the trophy count, the streak, the badges on white plates */
:is(.menu-glass,.menu-bg,.acct-card) .st-rank-cap b{color:var(--cp-deep)}
:is(.menu-glass,.menu-bg,.acct-card) .st-rank-cap b::before{background:var(--cp-panel);box-shadow:inset 0 0 0 var(--cp-ol-sm) var(--cp-ink), var(--cp-drop-sm)}
:is(.menu-glass,.acct-card) .st-ribbon{color:var(--cp-text)}
:is(.menu-glass,.acct-card) .st-ribbon::before{background:var(--cp-panel);box-shadow:inset 0 0 0 var(--cp-ol-sm) var(--cp-ink), var(--cp-drop-sm)}
:is(.menu-glass,.acct-card) .st-streak.is-hot .st-ribbon{color:var(--cp-flame-num)}
:is(.menu-glass,.acct-card) .st-badge{background:var(--cp-panel);box-shadow:inset 0 0 0 var(--cp-ol-sm) var(--cp-ink), var(--cp-drop-sm)}
.st-mbadge.is-none .st-mdisc{box-shadow:0 0 0 var(--cp-ol-sm) var(--cp-ink), var(--cp-drop-sm)}
:is(.menu-glass,.settings,.fc-skin) .fr-empty,.fr-empty{border-color:rgba(var(--cp-ink-rgb),.2);background:var(--cp-well)}
:is(.menu-glass,.menu-bg) .lb-scope{background:var(--cp-well-2);box-shadow:inset 0 0 0 var(--cp-ol-sm) var(--cp-ink), var(--cp-drop-sm)}
:is(.menu-glass,.menu-bg) .lb-rank{background:var(--cp-panel);color:var(--cp-text);box-shadow:inset 0 0 0 var(--cp-ol-sm) var(--cp-ink), var(--cp-drop-sm)}
:is(.menu-glass,.settings,.fc-skin) .fr-count,:is(.menu-glass,.settings,.fc-skin) .fr-more-n{background:var(--cp-main);color:#fff;box-shadow:inset 0 0 0 var(--cp-ol-sm) var(--cp-deep)}
:is(.menu-glass,.menu-bg) .ranks-div.is-on,:is(.menu-glass,.menu-bg,.veil) .br-col.is-current .br-round,:is(.menu-glass,.menu-bg) .br-col.is-current .br-round{background:var(--cp-main);color:#fff;box-shadow:inset 0 0 0 var(--cp-ol-sm) var(--cp-deep)}
:is(.menu-glass,.menu-bg) .br-col.is-current .br-round small{color:#fff}
:is(.menu-glass,.menu-bg) .ranks-tag.is-now{background:var(--cp-main);color:#fff;box-shadow:inset 0 0 0 var(--cp-ol-sm) var(--cp-deep), var(--cp-drop-deep-sm)}
:is(.menu-glass,.menu-bg) .ranks-card.is-now{box-shadow:var(--cp-drop), inset 0 .1875rem 0 #fff}
.br-tag{font-family:var(--font-display);font-weight:400;box-shadow:inset 0 0 0 var(--cp-ol-sm) var(--cp-deep)}
/* the HUD: white plates with the ink outline; my own score the cyan plate; Rally, the court tag and Paused white */
body:not([data-role="spectator"]) .is-me .score-num{color:#fff;}
body:not([data-role="spectator"]) .is-me .score-num::before{background:var(--cp-main);box-shadow:inset 0 0 0 var(--cp-ol-sm) var(--cp-deep), var(--cp-drop-deep-sm)}
body:not([data-role="spectator"]) .is-me .score-num{color:var(--cp-ink)} body:not([data-role="spectator"]) .is-me .score-num::before{content:none}      /* (NOTES 889, owner: "whats the point of this blue box. remove it") my score a plain number like theirs: the tab's red edge already says whose it is */
.score-tab::after,.score-tab.is-them::after{background:linear-gradient(180deg,var(--cp-panel),var(--cp-well))}
.score-tab::after{box-shadow:inset .625rem 0 0 var(--ua-red), var(--cp-drop-sm)}
.score-tab.is-them::after{box-shadow:inset -.625rem 0 0 var(--ua-lime), var(--cp-drop-sm)}
.rally::before{background:var(--cp-panel);box-shadow:inset 0 0 0 var(--cp-ol) var(--cp-ink), var(--cp-drop-sm)}
.rally small{color:var(--cp-text-2)} .rally b{color:var(--cp-text)}
.hud-pill.is-tag,.hud-pill.is-paused{color:var(--cp-text)}
.hud-pill.is-tag::before{background:var(--cp-panel);box-shadow:var(--cp-drop-sm)}
.hold-card b,.view-chip[aria-pressed="true"] .keycap{background:var(--cp-main);border-color:var(--cp-deep);color:#fff;box-shadow:inset 0 0 0 var(--cp-ol-sm) var(--cp-deep)}
.toast,.hold-card,.ask-card,.dev-panel{box-shadow:var(--cp-drop)}
.tip{background:var(--cp-panel);color:var(--cp-text);box-shadow:inset 0 0 0 var(--cp-ol-sm) var(--cp-ink), var(--cp-drop);text-shadow:none}
.keycap{box-shadow:var(--cp-drop-sm)}
.tour-pill .keycap,.ask-card .keycap,.keyhints .keycap,.views .keycap,.toast .keycap,:is(.menu-glass,.menu-bg) .menu-foot .keycap{border-bottom-width:var(--cp-ol-sm);box-shadow:var(--cp-drop-sm)}
.emote-btn{box-shadow:var(--cp-drop-sm)}
@media (hover:hover){ .emote-btn:hover{box-shadow:var(--cp-drop-sm), 0 0 0 .25rem var(--cp-glow)} }
.emote-btn:active{box-shadow:none;translate:var(--cp-drop-sm-x) var(--cp-drop-sm-y)}
.banner-tag > span::before,.countdown > span::before{background:var(--cp-main);border-color:var(--cp-deep);box-shadow:inset 0 .1875rem 0 var(--cp-shine), var(--cp-drop-deep-sm)}
.banner-tag.is-them > span::before{background:var(--ua-lime);border-color:var(--cp-ink);box-shadow:inset 0 .1875rem 0 rgba(255,255,255,.4), var(--cp-drop-sm)}
.serve-ind{box-shadow:none}      /* NOTES 480: the logo ball is drawn whole, a white halo by filter (above), no square ring */
/* the tutorial and the notice cards: an icon tile is cyan with a white glyph and a deep edge; the list bullets plain cyan dots */
.panel.notice .notice-icon::before{background:var(--cp-main);border-color:var(--cp-deep);box-shadow:inset 0 .1875rem 0 var(--cp-shine), var(--cp-drop-deep-sm)}
.tut-facts li::before{background:var(--cp-main);box-shadow:none}
.tut-more a{color:var(--cp-deep)}
.cal-art text{fill:var(--cp-text)}
/* Connect, the camera ask, Calibration (.menu-bg, now pale sky): the step chips and the count white plates with ink text */
.menu-bg .steps li{background:var(--cp-panel);border:var(--cp-ol-sm) solid rgba(var(--cp-ink-rgb),.2);color:var(--cp-text-2)}
.menu-bg .steps li.is-on{border-color:var(--cp-ink);color:var(--cp-text);box-shadow:var(--cp-drop-sm)}
.menu-bg .steps li > i{background:var(--cp-well-2);color:var(--cp-text)}
.menu-bg .steps li.is-on > i,.menu-bg .steps li.is-done > i{background:var(--cp-main);color:#fff;box-shadow:inset 0 0 0 var(--cp-ol-sm) var(--cp-deep)}
.menu-bg .cal-count{background:var(--cp-panel);color:var(--cp-text);box-shadow:inset 0 0 0 var(--cp-ol) var(--cp-ink), var(--cp-drop-sm)}
.menu-bg .cal-count svg{stroke:var(--cp-ink)}
.menu-bg .cal-count.is-bad{background:var(--cp-red);color:#fff;box-shadow:inset 0 0 0 var(--cp-ol) var(--cp-red-deep), var(--cp-drop-red-sm)} .menu-bg .cal-count.is-bad svg{stroke:#fff}
.menu-bg .cal-count.is-done{background:var(--cp-main);box-shadow:inset 0 0 0 var(--cp-ol) var(--cp-deep), var(--cp-drop-deep-sm)} .menu-bg .cal-count.is-done svg{stroke:#fff}
/* the tournament VS card: VS on a white plate */
.vs-mark{color:var(--cp-text)}
.vs-mark::before{background:var(--cp-panel);box-shadow:inset 0 0 0 var(--cp-ol) var(--cp-ink), var(--cp-drop)}
/* status lamps: ready is the cyan dot (no cobalt-deep core) */
.is-ok > .light,.light.is-ok{background:radial-gradient(circle at 35% 30%,var(--cp-shine),var(--cp-main) 70%)}
.is-wait > .light,.light.is-wait{background:var(--cp-haze)}      /* (owner 2026-11-12: "why is there shine on the empty one") an unlit lamp is flat; only a lit one shines */
/* the screen wipe's slabs: cyan, never down to the deep (a big slab of deep is the old blue) */
/* the bot levels' one-line descriptions are sentences: Rubik 400 (Days One never at 500) */
.bot-levels .btn small{font-family:var(--font-text);font-weight:400}
.emote-key{font-family:var(--font-display);font-weight:400}
.set-status li{box-shadow:none}
/* ---------- CYAN POP INTEGRATION: the last strays the sweep audit found ---------- */
.btn:disabled::after{display:block}      /* a dimmed button keeps its drop (the phone home's Go before a code): the whole block fades, the drop is not taken away */
#board .score-tab .chip{box-shadow:0 0 0 .125rem var(--cp-ink),var(--cp-drop-sm)}      /* the player's dot is a small block: the small ink drop, not a soft blur */
/* (FULL SWEEP) the spectator's view tabs: every tab a white small block (its own face on the slant, the ink outline, the small drop), the chosen one the cyan thumb with the deep edge and drop,
   its word white with the deep stroke. No bare words over the court */
#views{gap:.4rem .7rem}
#views .view-chip{isolation:isolate;border:0;background:none;color:var(--cp-text);text-shadow:none;}
#views .view-chip::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:var(--ua-r);background:var(--cp-panel);box-shadow:inset 0 0 0 var(--cp-ol-sm) var(--cp-ink), var(--cp-drop-sm);transform:skewX(var(--cp-skew));transition:opacity var(--d-fast)}
#views .view-chip:hover{background:none} #views .view-chip:hover::before{box-shadow:inset 0 0 0 var(--cp-ol-sm) var(--cp-ink), var(--cp-drop-sm), 0 0 0 .2rem var(--cp-glow)}
#views .view-chip[aria-pressed="true"]{background:none;border:0;box-shadow:none;color:#fff;}
#views .view-chip[aria-pressed="true"]::before{background:var(--cp-main);box-shadow:inset 0 0 0 var(--cp-ol-sm) var(--cp-deep), var(--cp-drop-deep-sm)}
#views.has-thumb .view-chip[aria-pressed="true"]::before{opacity:0}      /* the thumb draws the chosen face */
#views::before{background:var(--cp-main);box-shadow:inset 0 0 0 var(--cp-ol-sm) var(--cp-deep), var(--cp-drop-deep-sm)}
/* (FULL SWEEP) the player's key hints over the court (C Calibrate, B Difficulty): each a white small block on the slant, the ink outline and the small drop, label ink; the plate keeps the
   line's height (the strip clears the emote bar by a hair at 900x700) */
#keys.keyhints{text-shadow:none;color:var(--cp-text)}
#keys.keyhints ul{gap:.4rem .8rem}
#keys.keyhints li{position:relative;isolation:isolate;padding:0 .75rem 0 .2rem;color:var(--cp-text);text-shadow:none}
#keys.keyhints li::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:var(--ua-r);background:var(--cp-panel);box-shadow:inset 0 0 0 var(--cp-ol-sm) var(--cp-ink), var(--cp-drop-sm);transform:skewX(var(--cp-skew))}
/* Cyan pop leftovers (NOTES 442): the HUD's difficulty row and emote bar are plates at the one slant, like the key hints above;
   the white plate is a skewed ::before so the words and keys inside stay upright */
.bot-pick,body:not([data-overlay="match"]) .emotes{isolation:isolate;overflow:visible;background:none;border:0;box-shadow:none}
.bot-pick::before,body:not([data-overlay="match"]) .emotes::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:var(--ua-r);background:var(--cp-panel);box-shadow:inset 0 0 0 var(--cp-ol-sm) var(--cp-ink), var(--cp-drop-sm);transform:skewX(var(--cp-skew));pointer-events:none}
.bot-pick .seg{transform:skewX(var(--cp-skew))} .bot-pick .seg-opt{transform:skewX(calc(-1 * var(--cp-skew)))} .bot-pick .seg::before{transform:translateX(var(--tx,0))}
body:not([data-overlay="match"]) .emote-btn{border-radius:.25rem}

/* ---- a figure in its own type, never inside a sentence (owner 2026-11-13, NOTES 508; web/stat-ui.js num(), profile.js nx()) ---- */
.nx{display:inline-flex;align-items:baseline;gap:.25em;white-space:nowrap;font-variant-numeric:tabular-nums}
.nx b{font-family:var(--font-display);font-weight:400;font-size:1.3em;line-height:1;color:var(--ua-outline,var(--ink-strong))}
.nx small{font-size:.85em;font-weight:400;color:inherit;opacity:.85}
.notice.is-record .nx b{color:inherit}
#result-save-text.is-stat{display:inline-flex;align-items:baseline;flex-wrap:wrap;justify-content:center;gap:.5rem}
#result-save-text.is-stat .nx b{font-size:1.6em}
#result-save-text .rs-was{font-family:var(--font-text);font-size:var(--t-sm);padding:.1rem .55rem;border-radius:999px;background:var(--ua-haze,#eef6fb);color:var(--ua-ink,var(--ink-soft))}
.st-next::before{content:"· "} .st-next .nx b{font-size:1.15em}
.nx-chip,[data-bb-price]:not(:empty){display:inline-block;margin-left:.4em;padding:.05rem .5rem;border-radius:999px;background:var(--ua-haze,#eef6fb);color:var(--ua-outline,var(--ink-strong));font-family:var(--font-display);font-size:.9em;font-variant-numeric:tabular-nums}
/* (owner 2026-11-16: "bring the z index of the can't reach the game notice to the very top so it doesnt get crushed by other elements") the "Can't reach the game" pill over everything
   on the lobby (the home's raised blocks, the shop, the sheets); a stacking context of its own, so 3D blocks under it cannot poke through */
#screen-lobby .lobby-down{z-index:2147483600!important;isolation:isolate;transform:translateZ(5rem)}
/* Settings > Show FPS (main.js loop, ui.js fps()): frames drawn a second, a HUD chip like the rally's (white, ink outline, the ink hard drop, skewed at the one angle,
   contents upright), the figure in the display font with "FPS" small beside it. Bottom left, over the menus and the court alike; never takes a press */
.fps{position:fixed;left:var(--edge);bottom:var(--edge);z-index:calc(var(--z-screen) + 1);isolation:isolate;display:flex;align-items:baseline;gap:.3rem;padding:.3rem .7rem .32rem .6rem;pointer-events:none;user-select:none;color:var(--cp-label);line-height:1}
.fps[hidden]{display:none}
.fps::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:var(--ua-r);background:var(--cp-panel);box-shadow:inset 0 0 0 var(--cp-ol-sm) var(--cp-ink),var(--cp-drop-sm);transform:skewX(var(--cp-skew))}
.fps b{font-family:var(--font-display);font-weight:400;font-size:1.25rem;font-variant-numeric:tabular-nums;min-width:2ch;text-align:right}
body[data-role="spectator"] .fps{bottom:calc(var(--edge) + 3.4rem)}      /* watching: over the view chips (Broadcast, Split, Player, Free), which hold that corner */
html[data-mobile] .fps{top:calc(env(safe-area-inset-top,0px) + 10px);bottom:auto;left:10px;font-size:13px}      /* a phone: the top left of its header (its bottom is the scrolling home, the view chips and the emotes) */
html[data-mobile] body[data-role="spectator"] .fps{left:auto;right:10px}      /* a phone watching: top right (the menu button, the court pill and the watchers hold the top left) */
.fps small{font-family:var(--font-display);font-weight:400;font-size:.75rem;color:var(--ink-soft,var(--cp-label));text-transform:none;letter-spacing:0}

/* (NOTES 710, owner 2026-11-18: the rank medal bigger "in the game on the score banner and leaderboard lists", and the profile pictures bigger) */
#board .score-tab .chip{width:3rem;height:3rem}
#board .score-who .rank-badge{margin-block:-.45rem} #board .score-who .rank-badge .rank-em{width:1.9rem;height:1.9rem}
#lobby-leaderboard .lb-row .rank-badge{margin-block:-.5rem;margin-left:.45em} #lobby-leaderboard .lb-row .rank-badge .rank-em{width:2.25rem;height:2.25rem}
/* (NOTES 743, owner 2026-11-18, the in-game emote bar and Ask to play: "these buttons look way too busy and are not skewed correct") one plate at the one slant; the
   ten buttons lose their own outline, drop and notch (eleven frames read as noise) and become flat slots leaning with the plate, the emoji and number upright;
   hover / press a soft sky face. Ask to play is a plain slanted block at the same angle, its words upright */
body:not([data-overlay="match"]) .emote-btn{border:0;border-radius:.3rem;background:transparent;box-shadow:none;transform:skewX(var(--cp-skew));transition:background-color 120ms}
body:not([data-overlay="match"]) .emote-btn > *{transform:skewX(calc(-1 * var(--cp-skew)))}
@media (hover:hover){ body:not([data-overlay="match"]) .emote-btn:hover{background:var(--cp-sky-2,#e3f6ff);box-shadow:none} }
body:not([data-overlay="match"]) .emote-btn:active{background:var(--cp-sky-3,#cdeffc);box-shadow:none;translate:none}
body:not([data-overlay="match"]) .emote-key{opacity:.55;font-size:.6rem}
body:not([data-overlay="match"]) .emotes{gap:.1rem;padding:.3rem .55rem .35rem}
body[data-role="spectator"] .btn.ask-play{border-radius:var(--ua-r)}
/* (NOTES 748, owner 2026-11-18, "remember to fix these": the C Calibrate / B Difficulty chips over the emote bar) a chip is one frame: the key inside it is a flat tinted cap,
   no outline, no drop, no raised bottom (a framed key inside a framed chip read as clutter, as the emote bar's frames did, NOTES 743) */
#keys.keyhints .keycap{min-width:1.6rem;height:1.6rem;padding:0 .4rem;border:0;border-radius:.3rem;background:var(--cp-sky-2,#e3f6ff);box-shadow:none;color:var(--cp-deep,#0068c2);font-family:var(--font-display);font-weight:400}
#keys.keyhints li{gap:.5rem;padding:.15rem .9rem .15rem .35rem}
/* (NOTES 765, owner 2026-11-18: "there's no point of putting the medal with the Roman numerals on the player card or anywhere matter of fact as that's what the emblem tiers are
   supposed to communicate") no I / II / III pill on any medal (the crest, a badge beside a name, the Ranks cards, the result's trophy medal): the medal grows with its division.
   Pro's mastery stars (data-stars) are not a numeral and stay */
.st-em[data-div]::after,:is(.rank-card-em,.rank-badge)[data-div]:not([data-stars])::after{display:none!important}

/* (NOTES 770, owner 2026-11-18) "For the ping icon, I don't know why you made it always red, but make it change based on the number": the lit bars took --me-ink,
   which on a court is the near player's red, at every ping. They follow the number now (ui.js setPing: 4 bars under 60 ms ... 1 bar from 180): green, gold, orange,
   red; the unlit bars a faint ink. "make the FPS ... simple, semi-transparent text in the corner. Supposed to be non-invasive": no plate, frame or drop, the count and
   its label as plain ink text at half strength, never over anything a player presses (pointer-events stay off) */
.ping-pill .bars i,.ping-pill[data-bars] .bars i{background:rgba(var(--cp-ink-rgb),.16)}
.ping-pill[data-bars="4"]{--ping:var(--cp-green)} .ping-pill[data-bars="3"]{--ping:var(--cp-gold)} .ping-pill[data-bars="2"]{--ping:var(--cp-flame)} .ping-pill[data-bars="1"]{--ping:var(--cp-red,#ff3b2f)}
.ping-pill[data-bars="1"] .bars i:nth-child(-n+1),.ping-pill[data-bars="2"] .bars i:nth-child(-n+2),.ping-pill[data-bars="3"] .bars i:nth-child(-n+3),.ping-pill[data-bars="4"] .bars i{background:var(--ping)}
.fps{padding:0;opacity:.5;color:var(--cp-ink,#1c3150);text-shadow:0 0 .35rem rgba(255,255,255,.55)}
.fps::before{content:none}
.fps b{font-size:.95rem;min-width:0} .fps small{font-size:.7rem;color:inherit}
/* (NOTES 770) "Put the ping and any enabled stats on the right side next to the settings": on a computer's court the hamburger is top right (NOTES 744), so the ping
   sits just left of it, centred on its height, at one width so nothing beside it shifts as the number changes; the FPS text left of the ping (or of the button when
   no ping shows: watching, or before the first answer). A phone keeps its own corner */
html:not([data-mobile]) body[data-screen="hud"] #ping-pill{position:fixed;top:calc(var(--edge) + .35rem);right:calc(var(--edge) + 3.5rem);left:auto;z-index:var(--z-hud);min-width:6.4rem;justify-content:center}
html:not([data-mobile]) body[data-screen="hud"] .fps{top:calc(var(--edge) + 1rem);bottom:auto;left:auto;right:calc(var(--edge) + 3.6rem)}
html:not([data-mobile]) body[data-screen="hud"]:not([data-role="spectator"]):has(#ping-pill:not([hidden])) .fps{right:calc(var(--edge) + 3.5rem + 6.4rem + .7rem)}
/* (NOTES 779, owner 2026-11-18: "the speech bubble that comes from players is broken, there's a diamond on the top of it") the tail is a turned square outlined on its
   right and bottom edges only, which face out only for a tail pointing down; under a tab (is-below, pointing up) the outlined edges sat inside the bubble and the
   tail read as a loose white diamond on top, and the side tails had one bare edge. Each direction now outlines its own two outer edges, and the tail has no drop */
.emote-bub::after{border:0 solid var(--ua-outline,#1c3150);box-shadow:none}
.emote-bub.is-below::after{border-top-width:.125rem;border-left-width:.125rem}
.emote-bub.is-side.is-me::after{border-top-width:.125rem;border-right-width:.125rem}
.emote-bub.is-side.is-them::after{border-bottom-width:.125rem;border-left-width:.125rem}
/* (NOTES 799) "Match point": the point banner's plate a size up, dropping with the game point's tom; held a little longer than a point's (the same keyframes, so a
   reduced-motion player gets the plain hold) */
.banner-tag.is-mp > span{height:3.15rem;padding:0 1.9rem .15rem 1.6rem;font-size:1.6rem}
.banner-tag.is-mp.show > span{animation-duration:2300ms}

/* (NOTES 796) the page itself never moves sideways: html and body already clip x; a sideways trackpad swipe no longer rubber-bands or pages the browser back */
html,body{overscroll-behavior-x:none}

/* (NOTES 786, owner 2026-11-18: "why is there no leave button as a spectator?") a spectator's Leave chip in the corner: the court's own pill, a door icon and the word */
#btn-spec-leave{display:inline-flex;align-items:center;gap:.4rem;cursor:pointer;font-family:var(--font-display);font-weight:400}
#btn-spec-leave[hidden]{display:none}
#btn-spec-leave svg{width:1.15rem;height:1.15rem;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}

/* (NOTES 807, owner 2026-11-18: "yes change the pickleball on serve") the serve marker beside the score was the logo ball, which at 1.25rem reads as the flat dotted
   pickleball the owner banned (memory: never again); it is a small paddle now (the Locker's Rackets tab paddle, cyan with the ink edge), still bobbing on the server's tab */
.serve-ind{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-2 -2 28 28'%3E%3Cg transform='rotate%28-32 12 12%29'%3E%3Cpath d='M7.6.4h8.8a4.4 4.4 0 0 1 4.4 4.4v6.6a5.6 5.6 0 0 1-5.6 5.6h-.9l-.5 1.3H10.2l-.5-1.3h-.9a5.6 5.6 0 0 1-5.6-5.6V4.8A4.4 4.4 0 0 1 7.6.4ZM10.1 18.9h3.8v3.6a1.6 1.6 0 0 1-1.6 1.6h-.6a1.6 1.6 0 0 1-1.6-1.6Z' fill='%2300c2ff' stroke='%231c3150' stroke-width='1.8' stroke-linejoin='round'/%3E%3Cpath d='M5.3 11.1V5.1a2.6 2.6 0 0 1 2.6-2.6h8.2a2.6 2.6 0 0 1 2.6 2.6v6' fill='none' stroke='%23fff' stroke-width='.95' stroke-linecap='round' opacity='.75'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat}
/* (NOTES 835) a friend on a court: "Playing vs Matt" with the score as two figures on a small sky chip; Watch / Join / Ask to join beside the invites */
.fr-st .fr-vs{font-weight:400;color:inherit}
.fr-st .fr-sc{display:inline-flex;align-items:baseline;gap:.2em;margin-left:.45em;padding:.05em .45em;border-radius:.3rem;background:var(--cp-sky-2,#e3f6ff);color:var(--cp-ink,#1c3150);font-variant-numeric:tabular-nums}
.fr-st .fr-sc b{font-weight:400} .fr-st .fr-sc i{font-style:normal;opacity:.55} .fr-st .fr-sc .fr-sep::before{content:"\2013"}
.fr-visit{display:flex;gap:.375rem} .fr-visit:empty{display:none}
/* (NOTES 836) a request row opens that player's page from anywhere on it */
.fr-row.is-opens{cursor:pointer}
/* (NOTES 837, owner: "can you make it so it shows the player profile picture?", "why are the ranks incredibly tiny on the friends list?", "also list their trophy count too")
   a friend or request row: the round picture (the leaderboard's) with the presence dot on its corner, the name and its line, then the medal (the leaderboard's size,
   not the name's em-sized badge) with the trophies and the cup, then the buttons. An offline row's last online is one chip style, "Offline" when unknown */
.fr-face{position:relative;flex:none;display:block;width:2.7rem;height:2.7rem}
.fr-face .fr-pic{display:block;width:100%;height:100%;border-radius:50%;background:var(--cp-sky-2,#e3f6ff) url("art/ua-face.png") 50% 50%/cover no-repeat;box-shadow:inset 0 0 0 .1rem var(--cp-ink,#1c3150);overflow:hidden}
.fr-face .fr-dot{position:absolute;right:-.1rem;bottom:-.1rem;width:.85rem;height:.85rem;background:var(--ink-faint,#9aa3b5);box-shadow:0 0 0 .18rem #fff}
.fr-face .fr-dot.is-on{background:var(--good,#1fc15c);box-shadow:0 0 0 .18rem #fff} .fr-face .fr-dot.is-busy{background:var(--warn,#ffb534);box-shadow:0 0 0 .18rem #fff}
.fr-row .fr-who{flex:1 1 auto;min-width:0}
.fr-v{flex:none;display:inline-flex;align-items:center;gap:.25rem;margin-left:auto}
.fr-v.is-empty{display:none}
.fr-v .lb-med{flex:none;display:grid;place-items:center;width:2.3rem;height:2.3rem;margin-right:.15rem}
.fr-v .lb-med .st-em .rank-em{width:2.3rem;height:2.3rem;filter:drop-shadow(0 .08rem .12rem rgba(20,60,90,.3))} .fr-v .lb-med .st-em::after{display:none}
.fr-v b{font-size:1.15rem} .fr-v .lb-cup{margin-left:.1rem} .fr-v .lb-cup .cup-ic{width:1.15rem;height:1.15rem}
.fr-last.is-unknown small{font-family:var(--font-display)}
#pause-bar .pz-fr-row .fr-face{width:2.2rem;height:2.2rem} #pause-bar .pz-fr-row .fr-v .lb-med,#pause-bar .pz-fr-row .fr-v .lb-med .st-em .rank-em{width:1.9rem;height:1.9rem}
html[data-mobile] .fr-face{width:34px;height:34px}
.fr-row .fr-who{min-width:7rem} .fr-st .fr-sc{margin:0 .1em 0 .4em}

.fr-row:has(.fr-visit:not(:empty)) .fr-acts .fr-act{padding:0 .65rem} .fr-row:has(.fr-visit:not(:empty)) .fr-acts{gap:.3rem} .fr-row:has(.fr-visit:not(:empty)) .fr-v .lb-med{display:none}      /* (NOTES 835) a row with Watch / Join: tighter buttons, the medal gives way to the count */

/* (NOTES 933, owner: "this tag with the trophy next to it is a bit funny") the trophy count under the rank (Your stats, a player's page): one chip, the cup inside before the
   number, the house chip (a white face on the one slant, the ink outline; inset, so no drop). The number's own boxes (the menu views' plate, NOTES 763) stand down for it */
.st-rank-cap .st-tro{position:relative;isolation:isolate;flex:none;display:inline-flex;align-items:center;gap:.3em;padding:.14em .6em .14em .45em;line-height:1}
.st-rank-cap .st-tro::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:.3rem;background:var(--cp-panel,#fff);box-shadow:inset 0 0 0 var(--cp-ol-sm,.125rem) var(--cp-ink,#1c3150);transform:skewX(var(--cp-skew,-6deg))}
:is(.menu-glass,.menu-bg,.acct-card,body) .st-rank-cap .st-tro > b{padding:0;line-height:1} :is(.menu-glass,.menu-bg,.acct-card,body) .st-rank-cap .st-tro > b::before{content:none}
.st-rank-cap .st-tro > .cup-ic{margin:0}

/* ---------- (NOTES 946, owner on the spectator's Ask to play: "this button needs to be fixed") the one standard HUD button: the emote bar's height, its bottom
   edge, its outline and small ink drop, the cyan primary face (a spectator's main act) with white words, evenly padded, the content centred. Its key hint (A) is a flat
   chip: white, the ink outline, no drop (drops are for windows and buttons only, NOTES 781), centred on the label with a gap. Every key hint in the HUD and the menus
   loses its drop the same way (they were small ink plates with their own drop) ---------- */
:root .keycap,:root :is(.tour-pill,.ask-card,.keyhints,.views,.toast,.menu-foot,.ask-play) .keycap{box-shadow:none}
:root :is(.tour-pill,.ask-card,.keyhints,.views,.toast,.menu-foot) .keycap{border-bottom-width:var(--cp-ol-sm)}
body[data-role="spectator"] #btn-ask.btn{padding:0 1rem;gap:.55rem;justify-content:center}
@media (min-width:701px){ html:not([data-mobile]) body[data-role="spectator"] #btn-ask.btn{height:calc(2.375rem + .65rem);min-height:0;bottom:var(--edge)} }      /* the emote bar beside it: its height and its bottom edge */
body[data-role="spectator"] #btn-ask.btn:not([aria-disabled="true"]):not([data-s="no"]){--bf:var(--cp-main);--bo:var(--cp-deep);color:#fff}
body[data-role="spectator"] #btn-ask.btn:not([aria-disabled="true"]):not([data-s="no"]):active{--bf:var(--cp-press)}
#btn-ask .keycap{flex:none;align-self:center;min-width:1.5rem;height:1.5rem;margin:0 0 0 .1rem;padding:0 .35rem;border:var(--cp-ol-sm) solid var(--cp-ink);border-radius:.25rem;background:#fff;color:var(--cp-ink);font:400 .85rem/1 var(--font-display);box-shadow:none}
/* Paddle = Keyboard (docs/KEYBOARD.md; ui.js setKb puts data-kb on <html>): the hint strip shows the keyboard's keys and no Calibrate; nothing a phone, an AirPod or a camera draws; never on a phone */
.keyhints .kh-kb{display:none} html[data-kb] .keyhints .kh-kb{display:inline-flex} html[data-kb] .keyhints .kh-pad{display:none}
html[data-kb] .keyhints{max-width:min(46vw,34rem)}
html[data-kb] :is(#podwrap,#camwrap){display:none!important}
html[data-mobile] [data-paddle="keys"]{display:none}
