/* Layout: full-screen portrait arena with overlays centered. Black outer space.
   Brand colours (2026-11-13, the user's call): the logo's three rings, blue #3fa9f5 first (every
   "do this" button), then green #8bd94a and yellow #f8d020; white; dark #121212. */
:root{
  --ink:#fff; --stone:#0b1d30; --accent:#f8d020; --blue:#3fa9f5; --blue-edge:#1f74bd; --green:#8bd94a; --green-edge:#4e9a22; --dark:#121212; --panel:#14233a;
  --display:"Rubik",system-ui,-apple-system,sans-serif; /* one plain font everywhere since 2026-11-13, the games' canvases included (the user's call; Lilita One, the cartoony one, is gone) */
  --body:"Rubik",system-ui,-apple-system,sans-serif;
  color-scheme:dark;
}
[hidden]{display:none!important} /* .overlay sets display:flex, which would otherwise beat the hidden attribute */
html,body{height:100%;margin:0;overflow:hidden;overscroll-behavior:none}
body{background:var(--dark);color:var(--ink);font-family:var(--body);-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
#wrap{position:relative;height:100%;width:100%}
#c{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none}
/* Road Race's vignette (2026-11-20): a soft dark edge over the game layer, under the overlays and the faces; drawn by the browser, not the game's canvas */
#vignette{position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse 75% 70% at 50% 50%,rgba(0,0,0,0) 58%,rgba(0,0,0,.34) 100%)}
#vignette[hidden]{display:none}
/* The Fields of France: the thing behind you, a dark shadow rising from the bottom (render.js chaseShadow, 2026-11-26) */
#chase{position:absolute;left:0;right:0;bottom:0;height:44%;pointer-events:none;background:linear-gradient(to top,rgba(12,6,4,.94),rgba(16,9,5,.8) 22%,rgba(20,12,7,.5) 50%,rgba(24,14,8,.18) 78%,rgba(24,14,8,0));transform:translateY(100%);transition:transform .6s ease-out;will-change:transform}
#chase[hidden]{display:none}
/* Escape by Night: only your lights in the dark (render.js headlights, 2026-11-26): clear where your beam reaches down the road, dark past it */
/* The Scout's Run: the mud on the screen (render.js mudLens, 2026-11-26): spatters round the edges, at once; running off when you're out */
#mudlens{position:absolute;inset:0;pointer-events:none;opacity:0;transition:opacity 1.6s ease-in;will-change:opacity;
  background:radial-gradient(circle at 8% 88%,rgba(62,44,24,.85) 0 5%,rgba(62,44,24,0) 7%),radial-gradient(circle at 17% 95%,rgba(70,50,28,.8) 0 3.5%,rgba(70,50,28,0) 5%),
  radial-gradient(circle at 4% 70%,rgba(58,40,22,.75) 0 2.5%,rgba(58,40,22,0) 4%),radial-gradient(circle at 90% 92%,rgba(64,46,26,.85) 0 6%,rgba(64,46,26,0) 8%),
  radial-gradient(circle at 96% 74%,rgba(56,40,22,.7) 0 3%,rgba(56,40,22,0) 4.5%),radial-gradient(circle at 80% 98%,rgba(70,50,28,.75) 0 2.5%,rgba(70,50,28,0) 4%),
  radial-gradient(circle at 28% 99%,rgba(60,42,24,.7) 0 2%,rgba(60,42,24,0) 3.2%),radial-gradient(circle at 70% 12%,rgba(60,42,24,.55) 0 1.6%,rgba(60,42,24,0) 2.6%),
  radial-gradient(circle at 12% 20%,rgba(60,42,24,.5) 0 1.2%,rgba(60,42,24,0) 2.2%)}
#mudlens.on{opacity:1;transition:opacity .05s linear}
/* Phosphor City: an old monitor's scanlines and its darker corners (render.js crtScreen, 2026-11-27) */
#crt{position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(to bottom,rgba(0,0,0,0) 0 2px,rgba(0,0,0,.22) 2px 3px),radial-gradient(ellipse 80% 75% at 50% 50%,rgba(0,0,0,0) 60%,rgba(0,0,0,.45) 100%)}
#crt[hidden]{display:none}
#vignette.close{background:radial-gradient(ellipse 72% 64% at 50% 62%,rgba(0,0,0,0) 40%,rgba(0,0,0,.55) 75%,rgba(0,0,0,.92) 100%);transform-origin:50% 62%;will-change:transform} /* Germany: the world closing in (render.js closeVignette) */
#debug{position:absolute;left:0;right:0;bottom:0;padding:4px 8px;font:11px/1.3 ui-monospace,Menlo,Consolas,monospace;
  color:#7dffb2;background:rgba(0,0,0,.6);pointer-events:none}
/* Overlays scroll on screens too short for everything, and center their content otherwise (margin:auto). */
.overlay{position:absolute;inset:0;display:flex;flex-direction:column;overflow-y:auto;
  padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px));
  background:rgba(0,0,0,.72);backdrop-filter:blur(3px);text-align:center}
#start{background:radial-gradient(130% 55% at 50% 0%,#12304f 0%,var(--dark) 70%) var(--dark);backdrop-filter:none} /* the home screen is the brand's dark with a faint blue glow at the top, not the game showing through */
.menu{display:flex;flex-direction:column;align-items:center;gap:18px;width:100%;max-width:360px;margin:auto;
  padding:max(18px,env(safe-area-inset-top,0px)) 0 max(18px,env(safe-area-inset-bottom,0px))}
/* The logo: the two phones over "videochat" and ".games", stacked, cut from the brand sheet (scripts/logo.py). */
h1{display:flex;flex-direction:column;align-items:center;gap:8px;margin:0;line-height:0}
#start h1{margin-top:22px} /* room above the logo, under the top bar (2026-11-17, the user's ask: "give more top margin above the logo") */
h1 .logo{height:min(62px,16vw);width:auto}
/* humans.racing's header (2026-11-20): the name in the circuit intro's heavy italic, gold, over "Around The Globe" */
.racing-site h1{line-height:1;gap:2px}
.racing-name{font:italic 900 clamp(30px,9vw,46px)/1 Rubik,system-ui,sans-serif;color:#f8d020;letter-spacing:.01em;-webkit-text-stroke:1.5px #0b1d30;text-shadow:0 3px 0 #0b1d30}
.racing-sub{font:italic 800 clamp(14px,4vw,18px)/1.2 Rubik,system-ui,sans-serif;color:#fff7ec;letter-spacing:.12em;text-transform:uppercase} /* the phones left of "videochat" over ".games" (917x240; 2026-11-17, the user's ask: less vertical space) */
/* Faces are the top layer of every screen: their own canvas over the whole page, touches
   passing through. A .faces-row holds the room for a row of them; render.js sizes it. */
#faces{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:7}
.faces-row{display:block;flex:none}
button{font-family:var(--display);font-weight:700;font-size:26px;letter-spacing:0;color:var(--stone);background:var(--blue);border:0;border-radius:999px;
  padding:14px 44px;box-shadow:0 5px 0 var(--blue-edge);cursor:pointer}
button:active{transform:translateY(3px);box-shadow:0 2px 0 var(--blue-edge)}
button:focus-visible{outline:3px solid var(--accent);outline-offset:4px}
button.ghost{font-size:18px;padding:10px 26px;background:transparent;color:var(--ink);box-shadow:inset 0 0 0 2px var(--ink)}
button.ghost:active{transform:none;box-shadow:inset 0 0 0 2px var(--blue)}
.icon{width:1.25em;height:1.25em;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.note{font-size:13px;opacity:.7;max-width:290px;line-height:1.4}
/* No longer shown (2026-11-16): sideways games on an upright phone are drawn turned instead (turn.js). */
#turn{background:var(--dark);backdrop-filter:none;z-index:4}
#turnText{font-family:var(--display);font-weight:700;font-size:clamp(32px,9vw,48px);margin:0;color:var(--accent);text-wrap:balance}
.phone{width:96px;height:96px;fill:none;stroke:var(--ink);stroke-width:3;stroke-linecap:round;stroke-linejoin:round;
  animation:turn-phone 2.4s ease-in-out infinite}
@keyframes turn-phone{0%,25%{transform:rotate(0)}55%,85%{transform:rotate(-90deg)}100%{transform:rotate(0)}}
@media (prefers-reduced-motion:reduce){.phone{animation:none;transform:rotate(-90deg)}}
#winner{font-family:var(--display);font-weight:700;font-size:clamp(38px,11vw,60px);margin:0;color:var(--ink)}
/* Road Race's final results (2026-11-19, the user: "a better end game screen. like a mario kart style end game and rankings"; the
   look is Claude's DRAFT): the circuit's name, then a row a racer, best first, sliding in from the right one after another: a
   place badge (gold, silver, bronze), the face (drawn on the faces canvas over .spot), the name, the gap to the winner, the total time. */
.ranks{display:flex;flex-direction:column;align-items:center;gap:6px;width:min(100%,460px);overflow:hidden;padding:2px 0}
.ranks-cup{margin:0;font:italic 900 clamp(28px,9vw,44px)/1 var(--display);color:var(--accent);text-shadow:0 3px 0 rgba(0,0,0,.5)}
.ranks-title{margin:0;font:800 13px/1 var(--display);letter-spacing:.16em;text-transform:uppercase;color:rgba(255,247,236,.75)}
#ranksList{list-style:none;margin:8px 0 0;padding:0 2px;width:100%;box-sizing:border-box;display:flex;flex-direction:column;gap:5px}
.rank{--h:clamp(34px,6.2vh,52px);display:flex;align-items:center;gap:9px;height:var(--h);padding:0 14px 0 5px;border-radius:calc(var(--h) / 2);
  background:rgba(30,36,70,.96);font:700 17px/1 var(--display);color:var(--ink);
  animation:rank-in .5s cubic-bezier(.2,.9,.3,1) both;animation-delay:calc(var(--k) * 110ms + 300ms)}
.rank .pos{flex:none;width:calc(var(--h) - 10px);height:calc(var(--h) - 10px);border-radius:50%;display:grid;place-items:center;
  font-weight:900;font-size:calc(var(--h) * .42);background:rgba(255,255,255,.14)}
.rank.r1 .pos{background:linear-gradient(#fff27a,#ffb800);color:#3a2a00}
.rank.r2 .pos{background:linear-gradient(#fff,#9fb6cc);color:#1c2a3a}
.rank.r3 .pos{background:linear-gradient(#ffd2a0,#d0742c);color:#3a1c00}
.rank .spot{flex:none;width:calc(var(--h) - 6px);height:calc(var(--h) - 6px);border-radius:50%}
.rank .who{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}
.rank .gap{flex:none;font-size:13px;opacity:.7;font-variant-numeric:tabular-nums}
.rank .time{flex:none;font-weight:800;font-variant-numeric:tabular-nums}
.rank.r1{background:linear-gradient(90deg,rgba(122,94,8,.97),rgba(58,46,12,.97));box-shadow:inset 0 0 0 2px var(--accent)}
.rank.me .who,.rank.me .time{color:var(--accent)}
@keyframes rank-in{from{transform:translateX(105%);opacity:0}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.rank{animation:none}}
#over.ranked .menu{max-width:460px;gap:12px}
/* humans.racing's podium (2026-11-20, menus step 4; Claude's draft): 2nd, 1st, 3rd on steps of three heights, each face (faces canvas, over .spot)
   with its name and total time over its step; the steps rise one after another. */
.podium{display:flex;align-items:flex-end;justify-content:center;gap:6px;width:100%;margin-top:4px}
.podium[hidden]{display:none}
.step{flex:0 1 30%;display:flex;flex-direction:column;align-items:center;gap:3px;min-width:0;animation:step-up .6s cubic-bezier(.2,.9,.3,1) both;animation-delay:calc(var(--k) * 260ms + 250ms)}
.step .spot{width:clamp(54px,17vw,84px);height:clamp(54px,17vw,84px);border-radius:50%}
.step.p1 .spot{width:clamp(66px,21vw,104px);height:clamp(66px,21vw,104px)}
.step .who{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:800 15px/1.1 var(--display);color:var(--ink)}
.step.me .who{color:var(--accent)}
.step .time{font:700 13px/1 var(--display);color:rgba(255,247,236,.75);font-variant-numeric:tabular-nums}
.step .block{width:100%;display:grid;place-items:center;border-radius:10px 10px 0 0;font:italic 900 clamp(26px,8vw,40px)/1 var(--display);color:rgba(0,0,0,.55)}
.step.p1 .block{height:clamp(70px,13vh,110px);background:linear-gradient(#fff27a,#ffb800)}
.step.p2 .block{height:clamp(50px,9vh,80px);background:linear-gradient(#fff,#9fb6cc)}
.step.p3 .block{height:clamp(36px,6.5vh,58px);background:linear-gradient(#ffd2a0,#d0742c)}
@keyframes step-up{from{transform:translateY(40%);opacity:0}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.step{animation:none}}
#over.ranked #winner{font-size:clamp(24px,7.5vw,38px)}
/* Personal bests (2026-11-16): a line under the winner; beaten, a yellow badge that pops in and glows. */
#best{margin:0;font:700 18px/1.2 var(--display);color:rgba(255,247,236,.85);text-align:center}
#best.cheer{padding:8px 18px;border-radius:999px;background:var(--accent);color:var(--stone);font-size:22px;
  animation:best-pop .6s cubic-bezier(.2,1.6,.4,1) both,best-glow 1.6s ease-in-out .6s 3}
@keyframes best-pop{from{transform:scale(.3);opacity:0}to{transform:none;opacity:1}}
@keyframes best-glow{50%{box-shadow:0 0 0 8px rgba(248,208,32,.25),0 0 24px rgba(248,208,32,.6)}}
@media (prefers-reduced-motion:reduce){#best.cheer{animation:none}}
.info .best{margin:-4px 0 0;font:700 16px/1.3 var(--body);color:var(--accent)}
.info .times{margin:-4px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:2px;font:600 15px/1.3 var(--body);color:var(--ink)} /* a best time per race (2026-11-16) */
.info .times .head{font-weight:700;color:var(--accent)}
#listen{position:absolute;left:50%;bottom:max(24px,env(safe-area-inset-bottom,0px));transform:translateX(-50%);z-index:5;
  font-size:20px;padding:12px 28px;white-space:nowrap}
#listen:active{transform:translateX(-50%) translateY(3px)}
#lost{position:absolute;left:50%;top:max(14px,env(safe-area-inset-top,0px));transform:translateX(-50%);z-index:5;
  padding:6px 14px;border-radius:999px;background:rgba(180,40,40,.85);font-weight:700;font-size:14px;white-space:nowrap;pointer-events:none}
:root{--good:var(--green)}
/* Section headings on the home screen (2026-11-13): what to do first, then the games, both 28px (the user's call). */
.menu h2{margin:0 0 -4px;font:700 19px/1.2 var(--display);color:var(--ink);text-wrap:balance}
.menu h2.pick{font-size:28px}
.menu h2.pick{margin-top:24px}
/* Room under the games and under Send feedback (the user's call, 2026-11-13). */
.games{margin-bottom:26px}
#feedback,#feedbackForm{margin-bottom:26px}
/* The steps (Mike's words and ask, 2026-11-16): one blue box under the faces, three numbered lines with
   the actions as small buttons in them, the games under it. The camera and microphone buttons: off, a
   yellow ring breathing gently so a newcomer sees what to tap first; on, green with a check (the user's
   calls, 2026-11-13); for a few seconds after a failed start, red with the reason. The invite is green. */
:root{--good:var(--green)}
.steps{width:100%;box-sizing:border-box;padding:14px 12px 16px 12px;border-radius:20px;background:rgba(63,169,245,.2);
  box-shadow:inset 0 0 0 2.5px var(--blue);text-align:left}
.steps .howto{margin:0 0 10px;font:700 19px/1.2 var(--display);color:var(--ink);text-wrap:balance}
.steps ol{margin:0;padding:0 0 0 22px;display:flex;flex-direction:column;gap:12px;font:600 17px/1.3 var(--body);color:var(--ink)}
.steps li{padding-left:2px;line-height:36px}
.steps li::marker{font:700 18px var(--display);color:var(--blue)}
.steps .paused{margin:2px 0 0;font:600 14px/1.3 var(--body);color:#ffb3a8}
.steps .paused[hidden]{display:none}
.chip{display:inline-flex;align-items:center;gap:5px;vertical-align:middle;margin:0 1px;padding:5px 10px 5px 7px;border-radius:999px;
  font-size:15px;line-height:1.1;white-space:nowrap;box-shadow:0 3px 0 var(--blue-edge)}
.chip .icon{width:19px;height:19px;flex:none}
.chip:active{transform:translateY(2px);box-shadow:0 1px 0 var(--blue-edge)}
.chip.toggle{background:rgba(248,208,32,.18);color:var(--ink);box-shadow:inset 0 0 0 2px var(--accent);animation:nudge 2.6s ease-in-out infinite}
.chip.toggle .icon:not(.check){color:var(--accent)}
.chip.toggle:active{transform:none;background:rgba(248,208,32,.32)}
.chip.toggle .check{display:none;width:16px;height:16px;padding:2px;border-radius:50%;background:var(--good);color:var(--dark);stroke-width:3;box-sizing:border-box}
.chip.toggle.on{background:#16290f;box-shadow:inset 0 0 0 2px var(--good);animation:none}
.chip.toggle.on .icon:not(.check){color:var(--good)}
.chip.toggle.on .check{display:block}
.chip.toggle.note{background:#3a1414;box-shadow:inset 0 0 0 2px #ff8a7a;animation:none;font-size:14px;white-space:normal}
.chip.invite{background:var(--green);color:#132a08;box-shadow:0 3px 0 var(--green-edge)}
.chip.invite:active{box-shadow:0 1px 0 var(--green-edge)}
.chip.invite:disabled{background:rgba(255,255,255,.14);color:var(--ink);box-shadow:none;cursor:default}
@keyframes nudge{0%,100%{box-shadow:inset 0 0 0 2px var(--accent),0 0 0 0 rgba(248,208,32,0)}50%{box-shadow:inset 0 0 0 2px var(--accent),0 0 0 5px rgba(248,208,32,.2)}}
@media (prefers-reduced-motion:reduce){.chip.toggle{animation:none}}
/* In the steps box the camera, mic and invite are links in the sentence, not buttons (the user, 2026-11-17: "just
   text with blue color and underline"): no pill, no icon; a tick after camera or mic once it's on. */
.steps .chip,.steps .chip.toggle,.steps .chip.invite,.steps .chip.toggle.on,.steps .chip.toggle.note{display:inline;padding:0;margin:0;border-radius:0;
  background:none;box-shadow:none;animation:none;font:inherit;line-height:inherit;color:var(--blue);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:2px;vertical-align:baseline}
.steps .chip:active,.steps .chip.toggle:active,.steps .chip.invite:active{transform:none;box-shadow:none;background:none;opacity:.7}
.steps .chip .icon:not(.check){display:none}
.steps .chip span{display:inline}
.steps .chip.toggle.on .check{display:inline-block;vertical-align:-3px;margin-left:4px}
.steps .chip.toggle.note{color:#ff8a7a}
.steps .chip.invite:disabled{color:var(--ink);text-decoration:none;opacity:.8}
/* Your name (2026-11-13, the user's design): drawn under your face in the faces row, "Mike" with a
   pencil over "(You)"; this see-through button covers your face and name to open the box. */
#barFaces{position:relative}
.name-hit{position:absolute;padding:0;margin:0;background:transparent;box-shadow:none;border-radius:16px}
.name-hit:active{transform:none;box-shadow:none;background:rgba(63,169,245,.15)}
/* The pitch under the logo (2026-11-13, the user's ask: inviting friends
   must be obvious, and so must the video chat that sets this apart). */
.tagline{margin:-6px 0 0;max-width:320px;font:500 16px/1.35 var(--body);color:rgba(255,255,255,.82);text-wrap:balance}
.tagline b{color:var(--accent);font-weight:700}
/* A room's link without its key (main.js showOldLink): a small card under the tagline, once per room. */
.oldlink{position:relative;max-width:340px;margin:2px auto 0;padding:12px 38px 12px 14px;border-radius:16px;background:rgba(248,208,32,.12);border:2px solid var(--accent);text-align:center}
.oldlink[hidden]{display:none}
.oldlink p{margin:0 0 8px;font:600 15px/1.35 var(--body);color:var(--ink)}
.oldlink p.small{margin:8px 0 0;font-size:13px;opacity:.8}
.oldlink #oldLinkNew{font-size:17px;padding:8px 18px}
.oldlink #oldLinkShut{position:absolute;top:4px;right:4px;width:32px;height:32px;padding:0;font-size:16px;background:none;color:var(--ink);box-shadow:none}
.tagline .lead{display:block;margin-bottom:5px;font:700 19px/1.25 var(--display);color:var(--ink)} /* the headline; the sentence under it explains */
/* Typing your own name: the name button turns into this box and a Save button. */
.name-form{display:flex;gap:8px;align-items:stretch;width:min(300px,100%);margin-top:-8px}
.name-form input{flex:1;min-width:0;font:600 17px var(--body);padding:8px 16px;border-radius:999px;border:0;
  background:var(--panel);color:var(--ink);box-shadow:inset 0 0 0 2px rgba(255,247,236,.5)}
.name-form input:focus{outline:none;box-shadow:inset 0 0 0 2px var(--blue)}
.name-form button{padding:8px 18px;font-size:17px}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* Always there in a game, top left: back to the home screen in one tap. Right up in the corner
   (the user's ask, 2026-11-14: it sat low): it used to keep below the phone's reported safe area,
   which in fullscreen is the camera's cutout, but that's at the top center, so the corner is free. */
#back{position:absolute;z-index:6;top:8px;left:max(10px,env(safe-area-inset-left,0px));
  width:46px;height:46px;padding:0;display:flex;align-items:center;justify-content:center;border-radius:50%;
  background:rgba(12,24,40,.7);color:var(--ink);box-shadow:inset 0 0 0 2px rgba(255,247,236,.7)}
#back .icon{width:26px;height:26px;stroke-width:2.6}
#back:active{transform:none;background:rgba(12,24,40,.95)}
/* The games: two tiles a row, more rows as games are added. Icon above the name. */
.games{display:grid;grid-template-columns:1fr 1fr;grid-auto-flow:row dense;gap:12px;width:min(340px,100%)}
/* Each tile is a picture of its game (img/games/*.svg, 2026-11-13), its name on a shade along the bottom. */
.games > button{position:relative;display:block;padding:0;aspect-ratio:4/3;overflow:hidden;border-radius:18px;background:#222;
  box-shadow:0 4px 0 #000,inset 0 0 0 2px rgba(255,255,255,.12)}
.games > button:active{transform:translateY(3px);box-shadow:0 1px 0 #000}
.games .art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.games > button > span{position:absolute;left:0;right:0;bottom:0;padding:22px 6px 8px;font-size:19px;line-height:1.05;color:#fff;
  text-shadow:0 2px 0 rgba(0,0,0,.55);background:linear-gradient(rgba(0,0,0,0),rgba(0,0,0,.72) 55%);text-wrap:balance}
.games > button::after{position:absolute;top:7px;right:7px;font-family:var(--body);font-weight:700;font-size:11px;text-transform:uppercase;
  letter-spacing:.06em;line-height:1}
.games > button.live{box-shadow:0 4px 0 #000,inset 0 0 0 3px var(--accent)}
.games > button.live::after{content:"on now";padding:5px 8px;border-radius:999px;background:var(--accent);color:var(--stone)}
/* The home screen's sticky face bar (2026-11-16): over the top of the menu once the faces row has scrolled
   away; the faces themselves are drawn on the faces canvas, over it. */
#facebar{position:absolute;z-index:3;top:0;left:0;right:0;display:flex;justify-content:center;align-items:center;
  padding:max(10px,env(safe-area-inset-top,0px)) 16px 6px;border-radius:0;background:#101a26;
  box-shadow:0 2px 0 rgba(63,169,245,.35),0 6px 14px rgba(0,0,0,.45);animation:bar-in .25s ease-out}
#facebar:active{transform:none}
#facebar{flex-direction:column;gap:4px}
/* Since 2026-11-17 (the user's ask) the bar is always there on the home screen, and the faces live in it:
   "Players:", the faces, and an empty seat with the green invite (the 2026-11-13 design, back). */
#facebar .bar-row{display:flex;align-items:flex-start;gap:10px;width:100%}
/* Since 2026-11-17 (the user's ask): "Players:" above the faces, with the mic and camera beside it. Off: grey
   with a red slash; on: green. */
#facebar .bar-top{display:flex;align-items:center;justify-content:space-between;width:100%;gap:10px}
#facebar .players{flex:none;font:700 15px var(--display);color:var(--ink)}
#facebar .bar-av{display:flex;gap:8px}
#facebar .av{position:relative;width:46px;height:36px;padding:0;border-radius:18px;display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.1);color:var(--ink);box-shadow:inset 0 0 0 2px rgba(255,255,255,.25)}
#facebar .av:active{transform:none;background:rgba(255,255,255,.2)}
#facebar .av .icon{width:22px;height:22px}
#facebar .av .slash{position:absolute;inset:0;margin:auto;color:#ff6a5a;stroke-width:2.6}
#facebar .av.on{background:#16290f;color:var(--good);box-shadow:inset 0 0 0 2px var(--good)}
#facebar .av.on .slash{display:none}
#facebar .av:disabled{opacity:.6}
#barSlot{flex:1;min-width:0;display:flex;justify-content:flex-start;align-items:flex-start;gap:8px}
.seats{flex:none;position:relative;width:64px;height:64px;display:flex;align-items:center;justify-content:center;box-sizing:border-box;border-radius:50%}
.seats[hidden]{display:none}
.seats.big{border:2.5px dashed rgba(255,255,255,.4);background:radial-gradient(circle at 50% 40%,rgba(255,255,255,.07),rgba(255,255,255,0) 70%)}
.seats button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;padding:0;border-radius:50%;
  width:86%;height:86%;font:700 10px/1.05 var(--display);background:var(--green);color:#132a08;box-shadow:0 3px 0 var(--green-edge)}
.seats button:active{box-shadow:0 1px 0 var(--green-edge)}
.seats button .icon{width:20px;height:20px}
.seats button span{max-width:48px;text-wrap:balance}
#barStatus{font:700 14px/1.2 var(--body);color:var(--accent);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
/* A game you're playing alone, waiting for you on the home screen (2026-11-17): back to it, or stop it. */
.solo-now{width:min(420px,100%);box-sizing:border-box;margin:4px auto 10px;padding:12px 14px;border-radius:16px;background:var(--panel);
  box-shadow:inset 0 0 0 2px var(--accent);display:flex;flex-direction:column;gap:10px;align-items:center}
.solo-now[hidden]{display:none}
.solo-now p{margin:0;font:700 17px/1.25 var(--body);color:var(--ink);text-align:center}
.solo-now .solo-buttons{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.solo-now button{font-size:18px;padding:9px 20px}
.solo-now button.ghost.sure{background:#e8322b;color:#fff;box-shadow:none}
/* Starting a game with friends (2026-11-16): a sheet at the bottom, under the faces layer (z 7). */
#gather{position:fixed;z-index:6;left:0;right:0;bottom:0;display:flex;justify-content:center;pointer-events:none}
#gather .sheet{pointer-events:auto;width:min(420px,100%);box-sizing:border-box;margin:0 auto;padding:14px 16px max(14px,env(safe-area-inset-bottom,0px));
  border-radius:22px 22px 0 0;background:var(--panel);box-shadow:0 -2px 0 var(--blue),0 -8px 24px rgba(0,0,0,.5);
  display:grid;grid-template-columns:72px 1fr;gap:6px 12px;align-items:center;animation:sheet-in .25s ease-out}
#gather .art{width:72px;height:54px;border-radius:10px;object-fit:cover;grid-row:span 2}
#gather h2{margin:0;font:700 19px/1.2 var(--display);color:var(--ink);text-wrap:balance}
#gather .rules{margin:0;padding:0 0 0 18px;font:500 14px/1.3 var(--body);color:rgba(255,247,236,.85)}
#gather .rules:empty,#gatherWho:empty{display:none}
#gather .gather-race{grid-column:1/-1;display:flex;flex-direction:column;gap:8px}
#gather .gather-race[hidden]{display:none}
#gather .gather-race .what{margin:0;font:italic 900 18px/1.2 var(--display);color:var(--accent);text-transform:uppercase;letter-spacing:.03em}
#gather .gather-race .hr-races li{padding:7px 10px;font-size:14px}
#gatherWho{margin:0;grid-column:1/-1;font:600 14px/1.4 var(--body);color:rgba(255,247,236,.85);white-space:pre-wrap}
#gather .gather-buttons{grid-column:1/-1;display:flex;gap:10px}
#gather .gather-buttons button{flex:1;font-size:22px;padding:10px 12px}
#gather .gather-buttons button.ghost{flex:0 0 auto;font-size:17px}
#gather .timer{grid-column:1/-1;height:5px;border-radius:3px;background:rgba(255,255,255,.12);overflow:hidden}
#gather .timer i{display:block;height:100%;width:100%;background:var(--accent);transition:width .1s linear}
@keyframes sheet-in{from{transform:translateY(100%)}to{transform:none}}
@media (prefers-reduced-motion:reduce){#gather .sheet{animation:none}}
.info .play:disabled{background:rgba(255,255,255,.14);color:var(--ink);box-shadow:none;font-size:18px;opacity:1}
#facebar .faces-row{margin:0}
@keyframes bar-in{from{transform:translateY(-100%)}to{transform:none}}
@media (prefers-reduced-motion:reduce){#facebar{animation:none}}
/* The games in categories (MENU in config.js, 2026-11-16): a heading and a grid each. */
.game-list{display:flex;flex-direction:column;align-items:center;gap:14px;width:100%}
.game-list h2.pick{font-size:24px;margin-top:18px}
.game-list .games{margin-bottom:0}
.game-list .games:last-child{margin-bottom:26px}
.games > button[aria-expanded="true"]{box-shadow:0 4px 0 #000,inset 0 0 0 3px var(--blue)}
/* A game's panel: a tile tapped opens it on the row under it, with the rules box's lines, the game's
   options if any, and Play. */
.games .info{grid-column:1/-1;display:flex;flex-direction:column;gap:12px;padding:14px 16px 16px;border-radius:20px;
  background:var(--panel);box-shadow:inset 0 0 0 2px var(--blue);text-align:left}
.info h3{margin:0;font:700 22px/1.15 var(--display);color:var(--accent)}
.info .rules{margin:0;padding:0 0 0 20px;display:flex;flex-direction:column;gap:6px;font:500 17px/1.35 var(--body);color:var(--ink)}
.info .options{display:flex;flex-wrap:wrap;gap:8px}
.info .choice{flex:1 1 auto;font-size:16px;padding:9px 14px;background:transparent;color:var(--ink);box-shadow:inset 0 0 0 2px rgba(255,255,255,.45)}
.info .choice[aria-pressed="true"]{background:var(--accent);color:var(--stone);box-shadow:none}
.info .choice:active{transform:none}
.info .play{align-self:stretch;font-size:24px;padding:10px 20px}
.info .circuits{display:grid;grid-template-columns:1fr 1fr;gap:10px}
/* Downhill's circuits: a row under its tile, shown by tapping it (main.js fills it in). */
.games .circuits{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:10px;border-radius:22px;box-shadow:inset 0 0 0 2px var(--blue)}
.games .circuits p{grid-column:1/-1;margin:0;text-align:center;font-weight:700;font-size:14px;color:var(--ink)}
/* Each circuit is a picture tile like the games' (img/games/circuit1.svg, circuit2.svg: its four looks), name and races along the bottom. */
.games .circuits button{position:relative;display:block;padding:0;aspect-ratio:4/3;overflow:hidden;border-radius:16px;background:#222;
  box-shadow:0 4px 0 #000,inset 0 0 0 2px rgba(255,255,255,.12)}
.games .circuits button:active{transform:translateY(3px);box-shadow:0 1px 0 #000}
.games .circuits button > span{position:absolute;left:0;right:0;bottom:0;padding:18px 4px 6px;font-size:17px;line-height:1.05;color:#fff;
  text-shadow:0 2px 0 rgba(0,0,0,.55);background:linear-gradient(rgba(0,0,0,0),rgba(0,0,0,.78) 45%)}
.games .circuits small{display:block;margin-top:3px;font-family:var(--body);font-weight:600;font-size:11px;line-height:1.25}
.games button.soon::after{content:"soon"}
.games button.soon{background:transparent;color:var(--ink);opacity:.45;box-shadow:inset 0 0 0 2px rgba(255,247,236,.5);cursor:default}
@media (max-height:700px){.menu{gap:12px}h1 .logo{height:54px}} /* fit the faces and every button on short screens */

/* The game-over screen on a phone held sideways (after a sideways game): the faces in one row,
   the winner under them, and both buttons side by side, so nothing is below the fold (the user's call). */
@media (orientation:landscape) and (max-height:540px){
  #over .menu{flex-direction:row;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px 16px;max-width:min(760px,100%);
    padding:max(8px,env(safe-area-inset-top,0px)) 0 max(8px,env(safe-area-inset-bottom,0px))}
  #over #winner{flex-basis:100%;font-size:clamp(26px,9vh,38px);line-height:1.1}
  #over button{font-size:20px;padding:9px 30px;box-shadow:0 4px 0 var(--blue-edge)}
  #over button.ghost{font-size:16px;padding:9px 22px;box-shadow:inset 0 0 0 2px var(--ink)}
}
/* The same on an upright phone whose game layer is turned for a sideways game (turn.js): the media query sees an upright screen. */
html.turned #over .menu{flex-direction:row;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px 16px;max-width:min(760px,100%);padding:8px 0}
html.turned #over #winner{flex-basis:100%;font-size:clamp(26px,9vw,38px);line-height:1.1}
html.turned #over button{font-size:20px;padding:9px 30px;box-shadow:0 4px 0 var(--blue-edge)}
html.turned #over button.ghost{font-size:16px;padding:9px 22px;box-shadow:inset 0 0 0 2px var(--ink)}

/* Opened inside another app's browser, where cameras often fail: how to get out, on the home screen only then. */
.inapp{display:flex;flex-direction:column;align-items:center;gap:10px;width:min(320px,100%);padding:14px 16px;border-radius:16px;
  background:#2a1220;box-shadow:inset 0 0 0 2px #ff8a7a;box-sizing:border-box}
.inapp p{margin:0;font-size:15px;line-height:1.4}
.inapp button{font-size:19px;padding:10px 26px}
.inapp button.ghost{font-size:16px;padding:8px 20px}
/* Send feedback (2026-11-13): a quiet button under the game tiles that opens a box to type in,
   an optional email for a reply, and Send. Then Privacy and Terms, small, at the very bottom. */
button.small{display:flex;align-items:center;gap:8px;font-size:16px;padding:8px 20px;opacity:.85}
.feedback-form{display:flex;flex-direction:column;gap:10px;width:min(320px,100%)}
.feedback-form textarea,.feedback-form input{font:500 16px/1.4 var(--body);padding:10px 14px;border-radius:14px;border:0;
  background:var(--panel);color:var(--ink);box-shadow:inset 0 0 0 2px rgba(255,247,236,.5);resize:vertical;
  -webkit-user-select:text;user-select:text}
.feedback-form input{border-radius:999px}
.feedback-form textarea:focus,.feedback-form input:focus{outline:none;box-shadow:inset 0 0 0 2px var(--blue)}
.feedback-form .note{margin:0;align-self:center}
.feedback-form h2{margin:0;font-size:22px}
.feedback-form .sub{margin:-6px 0 2px;font-size:15px;line-height:1.4;opacity:.8;text-wrap:balance}
.feedback-form .trap{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.feedback-buttons{display:flex;gap:10px;justify-content:center}
.feedback-buttons button{padding:8px 22px;font-size:17px}
#feedbackSend{background:var(--blue);color:var(--stone);box-shadow:none}
#feedbackDone{margin:0}
.legal{display:flex;gap:8px;font-size:13px;opacity:.6}
.legal a{color:var(--ink);text-decoration:none;padding:4px}
.legal a:active{color:var(--accent)}

/* A room that won't have you (full, or its link expired), over everything, with a way to start fresh. */
#shut{position:fixed;inset:0;z-index:60;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;
  padding:24px;background:#121212;color:var(--ink);text-align:center}
#shut[hidden]{display:none}
#shut h2{margin:0;font-size:30px}
#shut p{margin:0;max-width:320px;font-size:17px;line-height:1.4;opacity:.85}
#shut button{font-size:20px;padding:12px 28px;margin-top:8px}
/* Camera or microphone blocked in the browser's settings (2026-11-14, the user's ask: undoing a
   "Never allow" was a pain): a sheet from the bottom with the steps for this phone's browser. */
#unblock{position:fixed;inset:0;z-index:55;display:flex;align-items:flex-end;justify-content:center;background:rgba(0,0,0,.6)}
#unblock[hidden]{display:none}
#unblock .sheet{width:min(440px,100%);padding:22px 20px calc(20px + env(safe-area-inset-bottom));border-radius:24px 24px 0 0;
  background:#1d2230;color:var(--ink);display:flex;flex-direction:column;gap:12px;box-shadow:0 -6px 30px rgba(0,0,0,.5)}
#unblock h2{margin:0;font-size:24px;text-align:center}
#unblock p{margin:0;font-size:16px;line-height:1.4;opacity:.85;text-align:center}
#unblock ol{margin:0;padding:12px 14px 12px 36px;border-radius:16px;background:rgba(255,255,255,.07);font-size:17px;line-height:1.45}
#unblock li+li{margin-top:6px}
#unblock b{color:var(--accent)}
#unblock button{font-size:20px;padding:12px 20px}
#unblock button.ghost{font-size:16px;padding:8px 20px}
/* "Sam joined": a pill at the top for a few seconds, on every screen. */
#arrived{position:fixed;z-index:55;left:50%;top:max(64px,calc(env(safe-area-inset-top,0px) + 54px));transform:translateX(-50%);
  padding:8px 18px;border-radius:999px;background:rgba(18,18,18,.88);color:#fff7ec;font:700 17px Rubik,system-ui,sans-serif;
  box-shadow:0 0 0 2px #f8d020;pointer-events:none;white-space:nowrap}
#arrived[hidden]{display:none}

/* App feel (2026-11-16, Mike's "more app like"; additive): no grey flash on a tapped control, no double-tap
   zoom on controls or the menus, the menus' scroll doesn't drag the page, pictures can't be dragged or
   long-pressed for "Save image", the tiles' picture passes the tap to its tile. */
html{background:var(--dark)}
body{-webkit-tap-highlight-color:transparent}
button,.overlay{touch-action:manipulation}
.overlay{overscroll-behavior:contain}
img{-webkit-user-drag:none}
.games .art{pointer-events:none}
.info .choice:active,.info .play:active{filter:brightness(1.12)}
/* A game's panel slides open (closing is instant: a hidden element can't animate out without script). */
.games .info:not([hidden]){animation:info-in .2s ease-out}
@keyframes info-in{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.games .info:not([hidden]){animation:none}}
/* Notched phones held sideways: the sticky bar and the join sheet keep clear of the side cut-outs. */
#facebar{padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
#gather .sheet{padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
/* Today's tracks (docs/DAILY.md, dailyUI.js; 2026-11-16): in Road Race's panel, its own button under Play,
   your best today, and the day's boards (First run, Best, This room); on the game-over screen, my run
   and where it stands; and the question about showing a name. */
.info .daily{display:flex;flex-direction:column;gap:10px;margin-top:2px;padding-top:12px;border-top:1px solid rgba(255,255,255,.16)}
.info .daily .best{margin:0}
.daily-note{margin:0;font:500 14px/1.3 var(--body);color:rgba(255,255,255,.75)}
.board{display:flex;flex-direction:column;gap:8px;text-align:left}
.board h4{margin:4px 0 0;font:700 18px/1.2 var(--display);color:var(--accent)}
.board-tabs{display:flex;gap:6px}
.info .board-tabs .choice{flex:1 1 0;font-size:14px;padding:8px 4px;white-space:nowrap}
.info .board-tabs .choice[aria-selected="true"]{background:var(--accent);color:var(--stone);box-shadow:none}
.board-note,.board-you{margin:0;font:500 15px/1.35 var(--body);color:rgba(255,255,255,.8)}
.board-you{font-weight:700;color:var(--accent)}
.board-rows{width:100%;border-collapse:collapse;font:600 15px/1.2 var(--body);font-variant-numeric:tabular-nums}
.board-rows th{font:700 11px/1 var(--body);text-transform:uppercase;color:rgba(255,255,255,.6);padding:0 2px 5px;text-align:right}
.board-rows td{padding:5px 2px;text-align:right;border-top:1px solid rgba(255,255,255,.1)}
.board-rows .place{width:24px;text-align:center;color:rgba(255,255,255,.75)}
.board-rows td.who{text-align:left;max-width:0;width:99%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.board-rows .time{font-weight:700;padding-left:8px}
.board-rows .n{width:44px;color:rgba(255,255,255,.8)}
.board-rows tr.you td{color:var(--accent)}
.board-rows tr.gap td{text-align:center;border-top:0;padding:0;color:rgba(255,255,255,.5)}
.daily-over{display:flex;flex-direction:column;align-items:center;gap:6px;flex-basis:100%;width:min(320px,100%);padding:12px 14px;border-radius:16px;background:rgba(20,35,58,.9);box-shadow:inset 0 0 0 2px rgba(248,208,32,.5)}
.daily-over p{margin:0}
.daily-title{font:700 20px/1.2 var(--display);color:var(--accent)}
.daily-splits{list-style:none;margin:0;padding:0;width:100%;font:500 15px/1.3 var(--body);font-variant-numeric:tabular-nums}
.daily-splits li{display:flex;justify-content:space-between;gap:12px}
.daily-counts{font:600 15px/1.3 var(--body);color:rgba(255,255,255,.85)}
.daily-ranks{font:700 16px/1.3 var(--body);color:var(--ink);white-space:pre-line}
.daily-ranks:empty,.daily-ask:empty{display:none}
.daily-ask{display:flex;flex-direction:column;align-items:center;gap:8px;width:100%;padding-top:6px;border-top:1px solid rgba(255,255,255,.16)}
.daily-asked,.bname-line{font:600 15px/1.3 var(--body);color:var(--ink);margin:0}
.bname{display:flex;flex-direction:column;align-items:center;gap:8px;width:100%}
.bname-row{display:flex;flex-wrap:wrap;justify-content:center;gap:6px}
.bname .choice{font-size:15px;padding:8px 12px;background:transparent;color:var(--ink);box-shadow:inset 0 0 0 2px rgba(255,255,255,.45)}
.bname .choice:active{transform:none;filter:brightness(1.12)}
.bname .name-form{margin-top:0}
.bname-note{margin:0;font:700 14px/1.2 var(--body);color:#ff9d7a}
.board-name{display:flex;flex-direction:column;align-items:center;gap:8px;width:min(320px,100%);margin-top:-6px}

/* Phone Band: the video you just recorded (2026-11-17, bandRec.js): the video beside its buttons when the
   game layer is wide (it always is in Phone Band), stacked when it's tall. Over the faces layer: the faces are in the video. */
/* The game-over screen's close button, top right (Phone Band only, 2026-11-17). */
.over-x{display:none}
#over.closable .over-x{display:block;position:absolute;z-index:2;top:max(10px,env(safe-area-inset-top,0px));right:max(12px,env(safe-area-inset-right,0px));
  width:48px;height:48px;padding:0;border-radius:50%;font:400 34px/46px var(--body);color:var(--ink);background:rgba(255,255,255,.14);box-shadow:none}
#clip{position:absolute;inset:0;z-index:56;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.72);
  padding:max(8px,env(safe-area-inset-top,0px)) max(12px,env(safe-area-inset-right,0px)) max(8px,env(safe-area-inset-bottom,0px)) max(12px,env(safe-area-inset-left,0px));box-sizing:border-box}
#clip[hidden]{display:none}
#clip .sheet{position:relative;width:min(780px,100%);max-height:100%;overflow:auto;box-sizing:border-box;padding:14px;border-radius:20px;background:#1d2230;color:var(--ink);
  display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:14px;align-items:center;box-shadow:0 6px 30px rgba(0,0,0,.5)}
/* Close, top right of the box (2026-11-17, Mike's ask), over the video's corner when side by side. */
#clip .clip-x{position:absolute;z-index:1;top:8px;right:8px;width:40px;height:40px;padding:0;border-radius:50%;font:400 30px/38px var(--body);color:var(--ink);background:rgba(0,0,0,.55);box-shadow:none}
#clip .clip-x.sure{background:#e8322b;color:#fff}
#clip h2{padding-right:40px}
#clip video{width:100%;aspect-ratio:2/1;object-fit:contain;background:#000;border-radius:12px}
#clip .side{display:flex;flex-direction:column;gap:9px;min-width:0}
#clip h2{margin:0;font:700 22px/1.2 var(--display)}
#clip p{margin:0;font:500 14px/1.35 var(--body);color:rgba(255,247,236,.85)}
#clip p:empty{display:none}
#clip button{font-size:20px;padding:9px 16px}
#clip button.ghost{font-size:15px;padding:8px 14px}
#clip button.gone{font-size:14px;padding:6px 12px;color:#ff8a80;box-shadow:inset 0 0 0 2px rgba(255,138,128,.6)}
#clip button[hidden]{display:none}
#clip .row{display:flex;gap:8px}
#clip .row button{flex:1}
#clip .link-row{display:flex;gap:8px;align-items:center}
#clip .link-row[hidden]{display:none}
/* Get Sharable Link: the share icon (three dots joined) before the words (Mike, 2026-11-17). */
#clipShare{display:flex;align-items:center;justify-content:center;gap:9px}
#clipShare .share-ic{width:22px;height:22px;flex:none;fill:currentColor;stroke:currentColor;stroke-width:2;stroke-linecap:round}
/* Phone Band's Exit box (2026-11-17): asks first; as #clip's, smaller. */
#bandExit{position:absolute;inset:0;z-index:57;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.72);padding:12px;box-sizing:border-box}
#bandExit[hidden]{display:none}
#bandExit .sheet{position:relative;width:min(420px,100%);box-sizing:border-box;padding:18px;border-radius:20px;background:#1d2230;color:var(--ink);display:flex;flex-direction:column;gap:10px;box-shadow:0 6px 30px rgba(0,0,0,.5)}
#bandExit .clip-x{position:absolute;top:8px;right:8px;width:40px;height:40px;padding:0;border-radius:50%;font:400 30px/38px var(--body);color:var(--ink);background:rgba(0,0,0,.55);box-shadow:none}
#bandExit h2{margin:0;padding-right:40px;font:700 22px/1.2 var(--display)}
#bandExit p{margin:0;font:500 15px/1.35 var(--body);color:rgba(255,247,236,.85)}
#bandExit button{font-size:20px;padding:9px 16px}
#bandExit button.gone{font-size:16px;padding:8px 14px;color:#ff8a80;box-shadow:inset 0 0 0 2px rgba(255,138,128,.6)}
#bandExit button[hidden]{display:none}
/* Phone Band's panel: "Your songs" (2026-11-17), the songs saved on this phone, a row each. */
.info .songs{display:flex;flex-direction:column;gap:6px}
.info .songs[hidden]{display:none}
.info .songs h4{margin:4px 0 0;font:700 17px/1.2 var(--display)}
.info .song{display:flex;gap:6px}
.info .song .open{flex:1;min-width:0;text-align:left;font-size:17px;padding:9px 14px;background:rgba(255,255,255,.12);color:var(--ink);box-shadow:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.info .song .del{flex:none;min-width:44px;font-size:20px;padding:6px 10px;background:rgba(255,255,255,.08);color:var(--ink);box-shadow:none}
.info .song .del.sure{background:#e8322b;color:#fff;font-size:15px}
@media (max-aspect-ratio:1/1){html:not(.turned) #clip .sheet{grid-template-columns:minmax(0,1fr)}}
#clip .link-row input{flex:1;min-width:0;font:500 14px var(--body);color:var(--ink);background:rgba(255,255,255,.08);border:0;border-radius:10px;padding:9px 10px;-webkit-user-select:text;user-select:text}

/* ---- Humans Racing's menus (humans.racing only, 2026-11-20; docs/HUMANS-RACING-MENUS.md; the look Claude's draft) ----
   On that site the home screen's own parts are hidden and #hr shows a screen at a time: Back top left, the screen's
   name in the intro's heavy italic, big cards, one big button at the bottom. Screens slide in from the right going
   forward and from the left going back. */
.racing-site #start{background:radial-gradient(120% 60% at 50% 0%,#1b4f9a 0%,#0e1f45 45%,#070b18 100%) #070b18}
.racing-site #start h1,.racing-site .tagline,.racing-site .steps,.racing-site #games{display:none}
.hr{width:100%;display:flex;flex-direction:column;align-items:center}
.hr-screen{width:100%;display:flex;flex-direction:column;align-items:center;gap:14px}
.hr-screen.from-right{animation:hrIn .28s cubic-bezier(.2,.8,.2,1)}
.hr-screen.from-left{animation:hrBack .28s cubic-bezier(.2,.8,.2,1)}
@keyframes hrIn{from{opacity:0;transform:translateX(40px)}to{opacity:1;transform:none}}
@keyframes hrBack{from{opacity:0;transform:translateX(-40px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.hr-screen.from-right,.hr-screen.from-left{animation:none}}
.hr-logo{width:min(46vw,190px);height:auto;margin-top:18px;filter:drop-shadow(0 6px 18px rgba(0,0,0,.5))}
.hr-stand{position:relative;width:min(72vw,280px);aspect-ratio:1.45}
.hr-stand canvas{position:absolute;inset:0;width:100%;height:100%}
.hr-next{margin:-6px 0 0;font:italic 800 16px/1.2 var(--display);color:#cfe3ff;letter-spacing:.02em;text-align:center}
.hr-go{width:100%;max-width:340px;font:italic 900 34px/1 var(--display);letter-spacing:.06em;padding:18px 20px;color:#1a1200;
  background:linear-gradient(#ffe45c,#f8b414);box-shadow:0 6px 0 #b8770a,0 10px 24px rgba(248,180,20,.25)}
.hr-go:active{box-shadow:0 2px 0 #b8770a}
.hr-go:disabled{filter:grayscale(.7) brightness(.8);font-size:20px;letter-spacing:0}
.hr-go.long{font-size:22px;letter-spacing:.01em} /* Join, Back to the game: Play's own words, smaller */
/* The title's two buttons under START GLOBAL RACE, side by side; the gear in the top right corner (2026-11-20) */
.hr-pair{width:100%;max-width:340px;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.hr-pair .hr-link{padding:12px 6px;font-size:16px}
.hr-screen[data-screen="title"]{position:relative}
.hr-corner{position:absolute;top:6px;right:0;z-index:1}
/* Settings: speed as two buttons in a row */
.hr-seg{display:grid;grid-template-columns:auto 1fr 1fr;align-items:center;gap:8px;width:100%;box-sizing:border-box;padding:12px 14px;border-radius:18px;background:rgba(255,255,255,.07)}
.hr-seg b{font:italic 900 21px/1.1 var(--display);color:#fff;margin-right:6px}
.hr-seg button{padding:10px 6px;font:italic 800 17px var(--display);background:transparent;color:#fff;box-shadow:inset 0 0 0 2px rgba(255,255,255,.4)}
.hr-seg button[aria-pressed="true"]{background:var(--accent);color:#1a1200;box-shadow:none}
.hr-seg3{grid-template-columns:auto 1fr 1fr 1fr}.hr-seg3 button{font-size:15px}
.hr-gear{width:46px;height:46px;padding:0;border-radius:50%;background:transparent;color:#fff;box-shadow:inset 0 0 0 2px rgba(255,255,255,.75);display:grid;place-items:center}
.hr-gear .icon{width:24px;height:24px;stroke:currentColor;fill:none;stroke-width:2.2;stroke-linecap:round}
.hr-gear:active{transform:none;box-shadow:inset 0 0 0 2px var(--accent)}
/* Options (2026-11-20, step 5): big rows, a switch at the right of each; looks Claude's draft. */
.hr-switch{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;column-gap:14px;row-gap:3px;align-items:center;text-align:left;width:100%;
  padding:14px 16px;border-radius:20px;background:linear-gradient(#1a3266,#122450);color:#fff;box-shadow:inset 0 0 0 2px rgba(120,170,255,.35),0 5px 0 #0a1530}
.hr-switch b{font:italic 900 21px/1.1 var(--display)}
.hr-switch small{grid-row:2;font:600 13px/1.3 var(--display);color:#bcd2f5}
.hr-switch i{grid-column:2;grid-row:1/3;width:54px;height:32px;border-radius:16px;background:rgba(255,255,255,.18);position:relative;transition:background .15s}
.hr-switch i::after{content:"";position:absolute;top:4px;left:4px;width:24px;height:24px;border-radius:50%;background:#fff;transition:transform .15s}
.hr-switch[aria-pressed="true"] i{background:var(--accent)}
.hr-switch[aria-pressed="true"] i::after{transform:translateX(22px)}
.hr-switch:active{transform:translateY(3px)}
.hr-note{margin:6px 0 0;font:600 14px/1.4 var(--display);color:rgba(255,247,236,.75);text-align:center}
/* Leave the race? (step 5): a sheet at the bottom, Keep racing big. */
/* (at the top since 2026-11-24, the user: "when you tap back button from a race the modal to keep racing or leave should be at the top of the
   screen not the bottom": the back arrow is top left, so the answer is where the thumb already is; it drops down from the top) */
.hr-leave{position:fixed;inset:0;z-index:20;display:flex;align-items:flex-start;justify-content:center;background:rgba(4,6,20,.55)}
.hr-leave[hidden]{display:none}
.hr-leave .sheet{width:min(420px,100%);box-sizing:border-box;padding:max(18px,env(safe-area-inset-top,0px)) 16px 18px;border-radius:0 0 22px 22px;background:var(--panel);
  box-shadow:0 2px 0 var(--blue),0 8px 24px rgba(0,0,0,.5);display:flex;flex-direction:column;gap:10px;animation:hrDrop .25s ease-out}
@keyframes hrDrop{from{transform:translateY(-100%)}to{transform:none}}
@media (prefers-reduced-motion:reduce){.hr-leave .sheet{animation:none}}
.hr-leave h2{margin:0 0 4px;text-align:center;font:italic 900 24px/1.1 var(--display);color:var(--accent)}
.hr-leave #hrKeep{font-size:24px;padding:14px}
.hr-leave #hrQuit{font-size:17px}
.hr-head{position:relative;width:100%;display:flex;align-items:center;justify-content:center;min-height:52px;margin-top:10px}
.hr-head h2{margin:0;font:italic 900 24px/1.1 var(--display);color:var(--accent);text-shadow:0 2px 0 #0b1d30;letter-spacing:.01em;text-align:center;padding:0 52px}
.hr-back{position:absolute;left:0;top:50%;transform:translateY(-50%);width:46px;height:46px;padding:0;border-radius:50%;background:rgba(255,255,255,.12);
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.5);color:#fff;display:grid;place-items:center}
.hr-back:active{transform:translateY(-50%) scale(.94);box-shadow:inset 0 0 0 2px var(--accent)}
.hr-back .icon{width:24px;height:24px;stroke:currentColor;fill:none;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.hr-races{width:100%;margin:0;padding:0;list-style:none;display:grid;grid-template-columns:1fr 1fr;gap:8px}
.hr-races li{padding:10px 12px;border-radius:14px;background:rgba(255,255,255,.07);font:italic 800 15px/1.2 var(--display);color:#fff}
.hr-races li span{display:block;font:700 11px/1.2 var(--display);color:var(--accent);letter-spacing:.1em}
.hr-races li.soon{opacity:.45}
.hr-races li small{display:block;font:600 11px/1.2 var(--display);color:rgba(255,255,255,.7);letter-spacing:.06em;text-transform:uppercase;margin-top:2px}

/* ---- Humans Racing as a game, not a web page (2026-11-24, the user: "when you load the web page there's no scrolling just menus ... as if
   you turned on the Nintendo game on your TV. No scrolling. It should not have website qualities"; the look Claude's draft) ----
   The home screen fills the screen and never scrolls; the world map (hrMap.js) lies behind every screen, dimmed on the title; headings and
   buttons in Exo 2 Black Italic; panels are dark glass with a light rim; the big button is gold and slanted. Wide screens (a computer) put
   the title in two columns and the map's panel at the right. */
/* Humans Racing's one palette (2026-11-24, the user: "get a better app wide unified color theme particularly I'm seeing on the immediately after the
   race screen for ui I don't really like those colors"; Claude's DRAFT, from the logo's navy and gold): every screen of the site takes its
   colours from here, and render.js's HR_UI has the same for what's drawn on the canvas (the results between races, the pre-race box).
   night: behind everything; navy: ink on gold, outlines; deep: sheets; glass: panels over the map or the race; rim: a panel's pale edge;
   gold: what to press, you, winners; sky: small headings; soft: second lines; up and down: places gained and lost. No purples, no olive. */
.racing-site{--hr-font:"Exo 2","Rubik",system-ui,sans-serif;--hr-gold:#ffd21e;--hr-navy:#0a1638;--hr-glass:rgba(9,18,48,.84);--hr-rim:rgba(130,180,255,.32);
  --hr-night:#050916;--hr-deep:#0c1a40;--hr-panel:rgba(14,30,72,.95);--hr-sky:#9fc4ff;--hr-soft:#bcd2f5;--hr-up:#5fe07a;--hr-down:#ff6b5e;--hr-mine:rgba(80,140,255,.26);
  --hr-gold-grad:linear-gradient(#fff48a,#ffd21e 48%,#ffb000 52%,#ff8c00);
  --hr-backdrop:radial-gradient(120% 70% at 50% 0%,rgba(22,58,124,.93),rgba(5,9,22,.97) 62%)}
.racing-site #start{overflow:hidden;background:#050916;padding-left:0;padding-right:0}
.racing-site #start .menu{max-width:none;height:100%;margin:0;box-sizing:border-box;gap:0;padding-bottom:0}
.racing-site #start .legal,.racing-site #feedback{display:none}
.racing-site #hr{flex:1;min-height:0;width:100%}
.hr-world{position:absolute;inset:0;z-index:0;overflow:hidden;transition:opacity .6s,filter .6s}
#hr[data-at="map"] .hr-world{touch-action:none} /* (swipes on the map change circuit, nothing scrolls) */
.hr-world::after{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(120% 80% at 50% 45%,transparent 40%,rgba(3,6,18,.75) 100%)}
#hr[data-at="options"] .hr-world{opacity:.6}
#hr[data-at="title"] .hr-world .hr-map,#hr[data-at="options"] .hr-world .hr-map{pointer-events:none}
#hr:not([data-at="map"]) .hr-map .mark{display:none!important}
#hr .hr-screen{position:relative;z-index:1;flex:1;min-height:0;box-sizing:border-box;padding:0 max(14px,env(safe-area-inset-right,0px)) max(14px,env(safe-area-inset-bottom,0px)) max(14px,env(safe-area-inset-left,0px));gap:10px}
#hr .hr-screen[hidden]{display:none}
/* the facebar: a HUD strip over the map */
.racing-site #facebar{background:linear-gradient(rgba(4,8,26,.92),rgba(4,8,26,.7));box-shadow:0 1px 0 var(--hr-rim);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.racing-site #facebar{flex-direction:row;flex-wrap:wrap;align-items:center;gap:4px 10px}
.racing-site #facebar .bar-top{order:2;width:auto;flex:none}
.racing-site #facebar .players{display:none}
.racing-site #facebar .bar-row{order:1;flex:1;min-width:0;width:auto}
.racing-site #barStatus{order:3;flex-basis:100%}

/* the title (the user's layout, 2026-11-24): the map at the top, the name, the microphone and camera, your kart, the menu */
.racing-site #facebar{display:none!important}
/* nothing over the menus on this site: the box for a game held for you pushed the title down under the map (the user's "gap", 2026-11-24);
   the big button says Back to the game instead */
.racing-site #soloNow,.racing-site #boardName{display:none!important}
.racing-site #hr{position:relative}
.hr-screen[data-screen="title"]{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto auto auto auto;align-content:start;
  grid-template-areas:"map" "word" "sub" "stand" "crew" "menu";justify-items:center;align-items:center;row-gap:10px;padding-top:max(8px,env(safe-area-inset-top,0px));
  padding-bottom:calc(16px + env(safe-area-inset-bottom,0px))}
/* (the user, 2026-11-24: the name right under the map, "Around the World" under it, less room over the karts, the buttons up, a little
   margin under the last one: everything packed from the top, the name and subtitle tight together) */
.hr-screen[data-screen="title"] .hr-word{margin-top:-2px}
.hr-sub{grid-area:sub;margin:-8px 0 0;font:italic 800 clamp(13px,3.6vw,18px)/1 var(--hr-font);letter-spacing:.32em;text-transform:uppercase;color:#bcd6ff;
  text-shadow:0 2px 0 var(--hr-navy),0 4px 10px rgba(0,0,0,.6);padding-left:.32em;animation:hrLogo .7s .1s cubic-bezier(.2,1.4,.4,1) both}
.hr-mapslot{grid-area:map;width:100%;aspect-ratio:1.93;max-height:38vh} /* (the whole world, 78N to 58S, is 1.93 times as wide as it is tall) */
@media (max-height:700px){.hr-mapslot{max-height:30vh}.hr-screen[data-screen="title"]{row-gap:4px}.racing-site .hr-screen[data-screen="title"] .hr-go{padding-top:12px;padding-bottom:13px}}
/* Track of the Day, the big button: its name, then the record and your time; Join / Back to the game in its place while a race is on */
.racing-site .hr-go.hr-daily{display:flex;flex-direction:column;align-items:center;gap:2px;padding:9px 14px 11px}
.hr-daily small{font:italic 800 13px var(--hr-font);letter-spacing:.18em;text-transform:uppercase;opacity:.8}
.hr-daily b{font:italic 900 30px/1 var(--hr-font);letter-spacing:.03em;text-transform:uppercase;white-space:nowrap;overflow:hidden;max-width:100%}
.hr-daily span{font:700 14px/1.2 var(--body);font-style:normal;white-space:nowrap;text-shadow:none}
.hr-daily .state{display:none}
.hr-daily.busy small,.hr-daily.busy #hrDailyName,.hr-daily.busy span{display:none}
.hr-daily.busy .state{display:block;padding:8px 0}
.racing-site .hr-menu #hrChoose{width:100%}
.hr-word{grid-area:word;margin:0;font:italic 900 clamp(30px,9.5vw,54px)/1 var(--hr-font);letter-spacing:.02em;text-transform:uppercase;white-space:nowrap;
  filter:drop-shadow(0 3px 0 var(--hr-navy)) drop-shadow(0 6px 14px rgba(0,0,0,.6));animation:hrLogo .7s cubic-bezier(.2,1.4,.4,1) both}
.hr-word span{background-clip:text;-webkit-background-clip:text;color:transparent;padding:0 .06em}
.hr-word .h{background-image:linear-gradient(#fff 30%,#bcd6ff)}
.hr-word .r{background-image:linear-gradient(#fff48a,#ffd21e 45%,#ff9a00)}
@keyframes hrLogo{from{opacity:0;transform:scale(.8)}to{opacity:1;transform:none}}
.hr-crew{grid-area:crew;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px}
.hr-crew .bar-av{display:flex;gap:10px}
.hr-crew .av{position:relative;height:42px;border-radius:21px;display:flex;align-items:center;justify-content:center;padding:0 14px;margin:0;
  color:#fff;background:var(--hr-glass);box-shadow:inset 0 0 0 2px var(--hr-rim),0 3px 0 rgba(0,0,0,.5);border:0;width:auto;min-width:52px}
.hr-crew .av .icon{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.hr-crew .av .slash{position:absolute;inset:0;margin:auto;color:#ff6a5a;stroke-width:2.6}
.hr-crew .av.on{color:#7dffb2;box-shadow:inset 0 0 0 2px #7dffb2,0 3px 0 rgba(0,0,0,.5)}
.hr-crew .av.on .slash{display:none}
/* Invite, round, over the empty kart's seat (render.js sets --seat-x, --seat-y, --seat-d) */
.hr-stand #seat{position:absolute;left:var(--seat-x,75%);top:var(--seat-y,40%);width:var(--seat-d,56px);height:var(--seat-d,56px);transform:translate(-50%,-50%);
  border:2.5px dashed rgba(255,255,255,.55);background:rgba(255,255,255,.06);z-index:1}
.hr-stand #seat button{width:calc(100% - 6px);height:calc(100% - 6px);font:italic 800 clamp(9px,calc(var(--seat-d,56px) * .19),13px)/1.05 var(--hr-font);color:var(--hr-navy);
  background:var(--hr-gold);box-shadow:inset 0 0 0 2px var(--hr-navy),0 3px 0 rgba(0,0,0,.5)}
.hr-stand #seat button .icon{width:38%;height:38%;stroke:currentColor}
.hr-stand #seat button span{display:none}
.hr-stand #seat button::after{content:"Invite"} /* (one word fits the round seat) */
.hr-crew #barStatus{flex-basis:100%;text-align:center;font:600 13px var(--body);color:var(--hr-soft)}
.hr-stand{grid-area:stand;position:relative;width:min(92vw,380px);height:auto;aspect-ratio:300/116;max-height:25vh;min-height:90px} /* (the karts' own shape: no room over them) */
.hr-menu{grid-area:menu;width:100%;max-width:380px;display:flex;flex-direction:column;align-items:stretch;gap:12px}
.hr-next{margin:0;font:italic 700 15px/1.2 var(--hr-font);color:#cfe3ff;letter-spacing:.04em;text-align:center;text-shadow:0 2px 6px #000}
.hr-corner{position:absolute;top:8px;right:max(14px,env(safe-area-inset-right,0px));z-index:2}
#hr[data-at="title"] .hr-map .dots,#hr[data-at="options"] .hr-map .dots{display:none}
/* a circuit's or a race's view shows only its own races (numbered pins), no other circuit's dots (the user, 2026-11-24) */
.hr-map[data-zoom="circuit"] .dots,.hr-map[data-zoom="race"] .dots{display:none}
@media (min-aspect-ratio:5/4) and (min-height:420px){
  .hr-screen[data-screen="title"]{align-content:stretch;grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    grid-template-areas:"map map" "word menu" "sub menu" "stand menu" "crew menu";grid-template-rows:minmax(0,1fr) auto auto auto auto;column-gap:4vw;row-gap:6px;padding:1vh 5vw 2vh}
  .hr-mapslot{aspect-ratio:auto;height:100%;max-height:none;min-height:0}
  .hr-word{font-size:clamp(34px,3.6vw,60px);align-self:end}
  .hr-crew{align-self:start}
  .hr-stand{width:100%;max-width:400px;max-height:24vh;height:24vh;aspect-ratio:auto}
  .hr-menu{align-self:center}
  .hr-menu{max-width:400px}
}

/* buttons: the big gold one, slanted; the others dark glass */
.racing-site .hr-go{width:100%;max-width:none;font:italic 900 30px/1 var(--hr-font);letter-spacing:.04em;padding:16px 18px 17px;border-radius:14px;color:var(--hr-navy);
  background:var(--hr-gold-grad);border:3px solid var(--hr-navy);transform:skewX(-7deg);
  box-shadow:0 6px 0 var(--hr-navy),0 10px 30px rgba(255,170,0,.35);text-shadow:0 1px 0 rgba(255,255,255,.55)}
.racing-site .hr-go:active{transform:skewX(-7deg) translateY(4px);box-shadow:0 2px 0 var(--hr-navy),0 6px 18px rgba(255,170,0,.3)}
.racing-site .hr-go.long{font-size:22px;letter-spacing:.02em}
.racing-site .hr-go:disabled{filter:grayscale(.85) brightness(.75);font-size:20px;animation:none}
.racing-site #hrRace:not(:disabled){animation:hrPulse 2.2s ease-in-out infinite}
@keyframes hrPulse{50%{box-shadow:0 6px 0 var(--hr-navy),0 10px 44px rgba(255,190,40,.7)}}
.hr-pair{width:100%;max-width:none;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.hr-btn{display:flex;align-items:center;justify-content:center;gap:8px;padding:12px 8px;border-radius:12px;font:italic 800 16px/1.1 var(--hr-font);letter-spacing:.02em;color:#fff;
  background:var(--hr-glass);border:2px solid var(--hr-rim);box-shadow:0 4px 0 rgba(0,0,0,.55);transform:skewX(-7deg)}
.hr-btn .icon{width:20px;height:20px;flex:none;stroke:var(--hr-gold);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.hr-btn:active{transform:skewX(-7deg) translateY(3px);box-shadow:0 1px 0 rgba(0,0,0,.55);border-color:var(--hr-gold)}
.racing-site .hr-gear{width:46px;height:46px;background:var(--hr-glass);box-shadow:inset 0 0 0 2px var(--hr-rim),0 3px 0 rgba(0,0,0,.5)}
.racing-site .hr-gear .icon{stroke:#fff}
.racing-site .hr-back{background:var(--hr-glass);box-shadow:inset 0 0 0 2px var(--hr-rim),0 3px 0 rgba(0,0,0,.5)}
.racing-site .hr-head{margin-top:6px;min-height:50px;flex:none}
.racing-site .hr-head h2{font:italic 900 26px/1 var(--hr-font);color:#fff;letter-spacing:.04em;text-transform:uppercase;text-shadow:0 3px 0 var(--hr-navy),0 0 18px rgba(0,0,0,.6)}
.racing-site .hr-head .hr-corner{top:50%;right:0;transform:translateY(-50%)}

/* Settings: one glass panel */
.hr-panel{width:100%;max-width:520px;box-sizing:border-box;padding:14px;border-radius:22px;background:var(--hr-glass);box-shadow:inset 0 0 0 2px var(--hr-rim),0 12px 30px rgba(0,0,0,.45);overflow:auto;min-height:0}
.racing-site .hr-switch,.racing-site .hr-seg{background:rgba(255,255,255,.05);box-shadow:inset 0 0 0 1px rgba(130,180,255,.18);border-radius:14px}
.racing-site .hr-switch b,.racing-site .hr-seg b{font:italic 900 19px/1.1 var(--hr-font);letter-spacing:.02em}
.racing-site .hr-seg button{font:italic 800 16px var(--hr-font);border-radius:10px}
.racing-site .hr-seg button[aria-pressed="true"]{background:var(--hr-gold);color:var(--hr-navy)}
.racing-site .hr-switch[aria-pressed="true"] i{background:var(--hr-gold)}
.hr-about{display:flex;align-items:center;justify-content:center;gap:18px;flex-wrap:wrap;margin-top:4px}
.hr-about .hr-btn{transform:none;padding:10px 16px}
.hr-about a{font:600 14px var(--body);color:var(--hr-soft)}
/* the feedback form, over everything on this site (it would sit below the fold otherwise) */
.racing-site #feedbackForm:not([hidden]),.racing-site #feedbackDone:not([hidden]){position:fixed;z-index:9;left:50%;top:50%;transform:translate(-50%,-50%);width:min(440px,calc(100% - 28px));box-sizing:border-box;
  padding:18px;border-radius:22px;background:var(--hr-deep);box-shadow:inset 0 0 0 2px var(--hr-rim),0 20px 60px rgba(0,0,0,.7)}

/* the world map: the svg behind, the screen's own parts over it */
.hr-mapscreen{display:flex;flex-direction:column;pointer-events:none}
.hr-mapscreen > *{pointer-events:auto}
.hr-mapscreen .hr-head h2{transition:opacity .2s}
.hr-dock{margin-top:auto;width:100%;max-width:560px;align-self:center;box-sizing:border-box;padding:10px 12px 12px;border-radius:22px;display:flex;flex-direction:column;gap:9px;
  background:var(--hr-glass);box-shadow:inset 0 0 0 2px var(--hr-rim),0 14px 34px rgba(0,0,0,.55);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);animation:hrDock .35s cubic-bezier(.2,.8,.2,1)}
@keyframes hrDock{from{opacity:0;transform:translateY(30px)}to{opacity:1;transform:none}}
.hr-cbar{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;gap:8px}
.hr-arrow{width:44px;height:44px;padding:0;border-radius:50%;display:grid;place-items:center;background:var(--hr-gold);color:var(--hr-navy);box-shadow:0 3px 0 var(--hr-navy),inset 0 0 0 2px var(--hr-navy)}
.hr-arrow .icon{width:24px;height:24px;stroke:currentColor;fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.hr-arrow:active{transform:translateY(2px);box-shadow:0 1px 0 var(--hr-navy),inset 0 0 0 2px var(--hr-navy)}
.hr-ctitle{display:flex;align-items:center;justify-content:center;gap:10px;min-width:0}
.hr-ctext{display:flex;flex-direction:column;align-items:center;text-align:center;min-width:0;flex:0 1 auto}
.hr-ciconbox{flex:none;display:grid;place-items:center}
.hr-ctitle b{max-width:100%;white-space:nowrap;overflow:hidden;font:italic 900 26px/1.05 var(--hr-font);letter-spacing:.03em;text-transform:uppercase;color:#fff;text-shadow:0 2px 0 var(--hr-navy)}
.hr-ctext span{font:500 13px/1.25 var(--body);color:var(--hr-soft);max-width:100%;text-wrap:balance} /* (wraps: every word shows, the user's ask) */
.hr-cicon{display:block;width:58px;height:52px}
.hr-cicon use,.hr-cicon .ice{fill:#fff;filter:drop-shadow(0 2px 0 var(--hr-navy))}
.hr-cicon .waves{fill:none;stroke:#fff;stroke-width:9;stroke-linecap:round}
.hr-rcard .row{display:flex;align-items:center;gap:8px;min-width:0}
.hr-rcard .row b{min-width:0;white-space:normal;overflow-wrap:normal} /* (a long name wraps to two lines beside its flag, never cut) */
.hr-flag{flex:none;width:63px;height:42px;border-radius:5px;box-shadow:0 0 0 1px rgba(0,0,0,.45)} /* (nearly the card's height, the user's ask) */
.hr-racecards{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.hr-rcard{position:relative;display:flex;flex-direction:column;align-items:stretch;justify-content:center;min-height:52px;padding:5px 8px 5px 5px;border-radius:12px;overflow:hidden;text-align:left;color:#fff;
  background:#102352;box-shadow:inset 0 0 0 2px rgba(130,180,255,.25),0 3px 0 rgba(0,0,0,.5);transition:transform .15s}
.hr-rcard .n{position:absolute;top:2px;left:2px;z-index:1;width:15px;height:15px;border-radius:50%;display:grid;place-items:center;font:italic 900 9px/1 var(--hr-font);color:var(--hr-navy);background:var(--hr-gold);box-shadow:0 0 0 1.5px var(--hr-navy)} /* (tiny, in the corner over the flag) */
.hr-rcard b{font:italic 900 16px/1.15 var(--hr-font);letter-spacing:.01em;white-space:nowrap;overflow:hidden}
.hr-rcard small{padding-top:2px;font:600 11px/1.2 var(--body);color:#9fe0ff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hr-rcard small:empty{display:none}
.hr-rcard[aria-pressed="true"]{box-shadow:inset 0 0 0 3px var(--hr-gold),0 3px 0 rgba(0,0,0,.5);transform:translateY(-4px)}
.hr-rcard:active{transform:translateY(2px)}
.hr-rcard:disabled{opacity:.5}
.hr-rcard:disabled .n{background:#7d8aa8}
.hr-dock .hr-go{font-size:26px;padding:13px 14px}
.hr-dock .hr-go.long{font-size:19px}
@media (min-aspect-ratio:5/4) and (min-height:420px){
  .hr-mapscreen{display:grid;grid-template-columns:1fr min(400px,38vw);grid-template-rows:auto 1fr;column-gap:16px}
  .hr-mapscreen .hr-head{grid-column:1/-1}
  .hr-dock{grid-column:2;grid-row:2;align-self:end;max-width:none;margin:0}
  .hr-racecards{grid-template-columns:1fr 1fr;gap:9px}
  .hr-racecards{grid-template-columns:1fr}
  .hr-rcard b{font-size:18px}.hr-rcard small{font-size:12px}
}
/* the map's own look */
.hr-map{position:absolute;inset:0;width:100%;height:100%;display:block;background:radial-gradient(130% 90% at 50% 40%,#0b1020,#03050a 75%)}
.hr-map *{vector-effect:non-scaling-stroke}
.hr-map.clipped .wrap{clip-path:url(#hrClip)}
/* the land twice: its outline, then its fill over it (the copies overlap a little, so the edges where the map wraps are covered) */
.hr-map .coast{fill:none;stroke:#56657f;stroke-width:2px;stroke-linejoin:round}
.hr-map .land{fill:#1b2333}
.hr-map .route path{fill:none;stroke-linecap:round;stroke-linejoin:round}
.hr-map .route .under{stroke:#03050a;stroke-width:6px;stroke-opacity:.8}
.hr-map .route .line{stroke:#e8352c;stroke-width:3px}
.hr-map .dot path{fill:none;stroke-linecap:round}
.hr-map .dot .halo{stroke:#ff4b3a;stroke-opacity:.28;stroke-width:20px}
.hr-map .dot .ring{stroke:#fff;stroke-width:11px}
.hr-map .dot .core{stroke:#e8352c;stroke-width:6px}
.hr-map .dot.soon .core{stroke:#7d8aa8}
.hr-map .dot.on .halo{stroke-width:34px;stroke-opacity:.4;animation:hrGlow 1.2s ease-in-out infinite alternate}
@keyframes hrGlow{to{stroke-opacity:.15}}
.hr-map[data-zoom="circuit"] .dot.in,.hr-map[data-zoom="race"] .dot.in{display:none}
.hr-map .mark{display:none}
.hr-map[data-zoom="world"] .circuit-mark,.hr-map:not([data-zoom="world"]) .race-mark.in{display:inline}
.hr-map .race-mark .place{display:none}
.hr-map .race-mark.on .place{display:inline}
.hr-map .pin{fill:#e8352c;stroke:#fff;stroke-width:3px}
.hr-map .race-mark.on .pin{fill:#fff;stroke:#e8352c}
.hr-map .soon .pin{fill:#7d8aa8}
.hr-map .num{font:italic 900 14px var(--hr-font);fill:#fff;text-anchor:middle}
.hr-map .race-mark.on .num{fill:#e8352c}
.hr-map .place{font:italic 900 16px var(--hr-font);fill:#fff;paint-order:stroke;stroke:#03050a;stroke-width:5px;stroke-linejoin:round}
.hr-map .hit{fill:transparent;cursor:pointer}
.hr-map .circuit-mark{cursor:pointer}
/* the World Map's continents (2026-11-24, the user's ask): each circuit's land a button in a faint colour of its own, its name on it */
.hr-map .region{fill:var(--rc);fill-opacity:.18;stroke:none;cursor:pointer;transition:fill-opacity .2s}
.hr-map .region.on{fill-opacity:.36}
#hr:not([data-at="map"]) .hr-map .regions{display:none}
.hr-map .r-africa{--rc:#f0a040}.hr-map .r-europe{--rc:#4f8cff}.hr-map .r-asia{--rc:#ff5a8a}.hr-map .r-pacific{--rc:#2fd0d8}
.hr-map .r-namerica{--rc:#a879ff}.hr-map .r-samerica{--rc:#46d06a}.hr-map .r-antarctica{--rc:#cfe8ff}
.hr-map .cname{font:italic 900 13px var(--hr-font);letter-spacing:.08em;text-anchor:middle;fill:#fff;fill-opacity:.85;paint-order:stroke;stroke:#03050a;stroke-width:4px;stroke-linejoin:round;pointer-events:none}
.hr-map .circuit-mark.on .cname{fill:var(--hr-gold);fill-opacity:1}
/* the route's Antarctic part only once a circuit is framed; the race dots nowhere (the user: "remove the dots non tappable between") */
.hr-map .route .whole,.hr-map .dots{display:none}
.hr-map[data-zoom="world"] .route .whole,.hr-map[data-zoom="backdrop"] .route .whole{display:inline}
.hr-map[data-zoom="world"] .route .full,.hr-map[data-zoom="backdrop"] .route .full{display:none}
/* the Track of the Day's place on the map behind the title, pulsing (2026-11-24, the user's ask; the look Claude's DRAFT; hrMap.js setToday) */
.hr-map .today{display:none;pointer-events:none}
#hr[data-at="title"] .hr-map .today{display:inline}
.hr-map .today .spot{fill:var(--hr-gold);stroke:var(--hr-navy);stroke-width:2px}
.hr-map .today .ping{fill:none;stroke:var(--hr-gold);stroke-width:2.5px}
.hr-map .today .pulse{transform-box:fill-box;transform-origin:center;animation:hrPing 1.6s ease-out infinite}
@keyframes hrPing{from{transform:scale(1);opacity:.95}to{transform:scale(3.4);opacity:0}}
/* EVERY RACE ON THE TITLE (2026-11-30, the user: "Forget cups. Just put all races on homepage. And track of day at top and a race all
   button"): no world map; a night sky behind; the title the name, your kart, the mic and camera, then the Track of the Day, a button a race
   (two columns, scrolling inside its box if a short phone can't fit them) and RACE ALL. */
.racing-site .hr-world{background:radial-gradient(90% 60% at 50% 0%,rgba(255,200,60,.18),transparent 70%),linear-gradient(#0b1638,#050916 70%)}
.hr-screen[data-screen="title"]{grid-template-areas:"word" "stand" "crew" "menu";grid-template-rows:auto auto auto minmax(0,1fr);align-content:stretch;row-gap:8px;padding-top:max(14px,env(safe-area-inset-top,0px))}
.hr-screen[data-screen="title"] .hr-word{margin:0;font-size:clamp(26px,8vw,46px)}
/* (since 2026-11-30, the user: "make the ... car area much smaller, keep face same, make car smaller, so it takes up less vertical space and
   more fits above fold"): the karts a small box, the mic and camera beside it on the same row */
.hr-screen[data-screen="title"]{grid-template-columns:auto auto;grid-template-areas:"word word" "stand crew" "menu menu";grid-template-rows:auto auto minmax(0,1fr);justify-content:center;column-gap:10px}
.hr-screen[data-screen="title"] .hr-stand{width:210px;height:104px;max-height:none;min-height:0;aspect-ratio:auto}
.hr-screen[data-screen="title"] .hr-crew{flex-direction:column;gap:8px}
.hr-screen[data-screen="title"] .hr-crew .bar-av{flex-direction:column;gap:8px}
.hr-screen[data-screen="title"] .hr-crew #barStatus{flex-basis:auto;max-width:120px}
.hr-screen[data-screen="title"] .hr-menu{width:min(380px,calc(100vw - 28px))}
.hr-screen[data-screen="title"] .hr-menu{align-self:stretch;justify-self:center;min-height:0;gap:10px}
.racing-site .hr-screen[data-screen="title"] .hr-go.hr-daily{flex:none}
/* (since 2026-12-01, the user: "make it single column race buttons. remove the 'play all' button. allow scrolling down to see other races
   below fold": one button a row; the menu under the karts (the Track of the Day, How to play, the races) scrolls as one, so the races get the screen; sizes Claude's) */
.hr-screen[data-screen="title"] .hr-menu{overflow-x:hidden;overflow-y:auto;padding:6px 8px max(14px,env(safe-area-inset-bottom,0px));width:min(396px,calc(100vw - 12px));box-sizing:border-box;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y}
.hr-screen[data-screen="title"] .hr-menu>*{flex:none}
.hr-races{display:grid;grid-template-columns:1fr;gap:8px;padding:0;align-content:start}
.hr-races .hr-rcard{flex-direction:row;align-items:center;gap:10px;min-height:58px;padding:7px 12px 7px 8px}
.hr-races .hr-rcard b{font-size:19px;min-width:0;flex:1}
.hr-races .hr-flag{flex:none;width:48px;height:32px;border-radius:4px}
.hr-races .hr-rcard .col{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.hr-races .hr-rcard .col b{flex:none}
.hr-races .hr-rcard .col small{padding:0;font:600 12px/1.2 var(--body);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hr-races .hr-rcard .col .wr{color:var(--hr-gold)}
.hr-races .hr-rcard .col .me{color:#9fe0ff}
@media (min-aspect-ratio:5/4) and (min-height:420px){
  .hr-screen[data-screen="title"]{grid-template-columns:auto auto minmax(0,480px);grid-template-areas:"word word menu" "stand crew menu";grid-template-rows:1fr 1fr;align-content:stretch;column-gap:14px}
  .hr-screen[data-screen="title"] .hr-word{align-self:end}
  .hr-screen[data-screen="title"] .hr-stand,.hr-screen[data-screen="title"] .hr-crew{align-self:start}
  .hr-screen[data-screen="title"] .hr-menu{max-width:480px;align-self:center;max-height:100%}
  .racing-site .hr-screen[data-screen="title"] .hr-go.hr-daily{width:calc(100% - 58px)} /* (room for the gear at the top right) */
}
@media (prefers-reduced-motion:reduce){.hr-word,.hr-sub,.hr-dock,.racing-site #hrRace,.hr-map .dot.on .halo,.hr-map .today .pulse{animation:none}}
/* Humans Racing's screens outside the race, in the menus' look (2026-11-24): the results and podium, the Join sheet, Leave the race? */
.racing-site #over{background:var(--hr-backdrop);backdrop-filter:blur(4px)}
/* (the palette on the end screen, 2026-11-24: rows navy with a pale rim, yours a brighter blue with a gold edge, as on the results between races;
   a circuit's end says so over its results; "Next circuit: Europe" with "First race: Turkey" small under it) */
.racing-site .rank{color:#fff}
.racing-site .rank .pos{background:rgba(130,180,255,.16);color:var(--hr-soft)}
.racing-site .rank .gap{color:var(--hr-soft);opacity:1}
.racing-site .rank.me{background:linear-gradient(var(--hr-mine),var(--hr-mine)),var(--hr-panel);box-shadow:inset 0 0 0 2px var(--hr-gold)}
.racing-site .rank.me .who,.racing-site .rank.me .time,.racing-site .step.me .who{color:var(--hr-gold)}
.racing-site .step .who{color:#fff}
.racing-site .step .time{color:var(--hr-soft)}
.ranks-done{margin:0;font:italic 900 clamp(24px,7.4vw,36px)/1.1 var(--hr-font);text-transform:uppercase;letter-spacing:.02em;text-align:center;text-wrap:balance;color:transparent;
  background:var(--hr-gold-grad);-webkit-background-clip:text;background-clip:text;filter:drop-shadow(0 3px 0 var(--hr-navy)) drop-shadow(0 0 2px var(--hr-navy))}
.racing-site #again small{display:block;margin-top:6px;font:italic 800 15px/1 var(--hr-font);letter-spacing:.06em;opacity:.8}
.racing-site #again.next-circuit{font-size:clamp(19px,6vw,25px)} /* (one line: "Next circuit: Europe", its first race under it) */
.racing-site .ranks-cup{font:italic 900 clamp(34px,11vw,56px)/1 var(--hr-font);text-transform:uppercase;letter-spacing:.02em;color:transparent;
  background:var(--hr-gold-grad);-webkit-background-clip:text;background-clip:text;filter:drop-shadow(0 3px 0 var(--hr-navy)) drop-shadow(0 0 2px var(--hr-navy))}
.racing-site .ranks-title{font:italic 800 13px/1 var(--hr-font);letter-spacing:.24em;color:var(--hr-sky)}
.racing-site #winner{font:italic 900 clamp(26px,8vw,40px)/1.1 var(--hr-font);letter-spacing:.02em;text-transform:uppercase;color:#fff;text-shadow:0 3px 0 var(--hr-navy)}
.racing-site .rank{background:var(--hr-glass);box-shadow:inset 0 0 0 1px var(--hr-rim);font-family:var(--hr-font);font-style:italic}
.racing-site .rank.r1{box-shadow:inset 0 0 0 2px var(--hr-gold)}
.racing-site .step .who{font:italic 800 15px/1.1 var(--hr-font)}
.racing-site .step .block{font-family:var(--hr-font);box-shadow:inset 0 -6px 0 rgba(0,0,0,.18),0 0 0 3px var(--hr-navy)}
.racing-site #over .menu > button{width:100%;max-width:360px}
.racing-site #again{font:italic 900 28px/1 var(--hr-font);letter-spacing:.04em;text-transform:uppercase;padding:15px 18px;border-radius:14px;color:var(--hr-navy);
  background:var(--hr-gold-grad);border:3px solid var(--hr-navy);transform:skewX(-7deg);box-shadow:0 6px 0 var(--hr-navy),0 10px 30px rgba(255,170,0,.35)}
.racing-site #again:active{transform:skewX(-7deg) translateY(4px);box-shadow:0 2px 0 var(--hr-navy)}
.racing-site #hrChange,.racing-site #over #menu{font:italic 800 18px/1.1 var(--hr-font);padding:12px 16px;border-radius:12px;color:#fff;background:var(--hr-glass);
  border:2px solid var(--hr-rim);box-shadow:0 4px 0 rgba(0,0,0,.55);transform:skewX(-7deg)}
.racing-site #hrChange:active,.racing-site #over #menu:active{transform:skewX(-7deg) translateY(3px)}
.racing-site #gather .sheet,.racing-site .hr-leave .sheet{background:var(--hr-deep);box-shadow:inset 0 0 0 2px var(--hr-rim),0 -10px 40px rgba(0,0,0,.6)}
.racing-site .hr-leave .sheet{box-shadow:inset 0 0 0 2px var(--hr-rim),0 10px 40px rgba(0,0,0,.6)}
.racing-site #gather h2,.racing-site .hr-leave h2{font:italic 900 22px/1.15 var(--hr-font);letter-spacing:.02em;text-transform:uppercase;color:#fff}
.racing-site #gather .gather-race .what{font-family:var(--hr-font);color:var(--hr-gold)}
.racing-site #gatherJoin,.racing-site #gatherNow,.racing-site #hrKeep{font:italic 900 22px/1 var(--hr-font);text-transform:uppercase;color:var(--hr-navy);border-radius:12px;
  background:var(--hr-gold-grad);border:3px solid var(--hr-navy);box-shadow:0 5px 0 var(--hr-navy)}
.racing-site #gather .gather-buttons button.ghost,.racing-site #hrQuit{font:italic 800 16px var(--hr-font);border-radius:12px;color:#fff;background:transparent;box-shadow:inset 0 0 0 2px var(--hr-rim)}
.racing-site #gather .timer i{background:var(--hr-gold)}
.racing-site #back{background:var(--hr-glass);box-shadow:inset 0 0 0 2px var(--hr-rim),0 3px 0 rgba(0,0,0,.5)}
.racing-site .hr-pair .hr-btn{white-space:nowrap;overflow:hidden;min-width:0}
.racing-site .hr-seg3 button{font-size:14px;white-space:nowrap;padding:10px 4px}
/* The Track of the Day's result (2026-11-24, the user: "It should show your score relative to the world record"; the look is Claude's DRAFT):
   the race's name, a badge for a new record or best, your time big, the record and your best beside each other with the gap, and Share my time. */
.tod-over{display:flex;flex-direction:column;align-items:center;gap:8px;width:min(100%,420px)}
.tod-over[hidden],#todShare[hidden]{display:none}
.tod-over p{margin:0}
.tod-kicker{font:800 13px/1 var(--display);letter-spacing:.24em;text-transform:uppercase;color:#9fc4ff}
.tod-name{font:italic 900 clamp(34px,11vw,56px)/1 var(--display);text-transform:uppercase;color:var(--accent);text-shadow:0 3px 0 rgba(0,0,0,.5);text-align:center}
.tod-badge{padding:6px 16px;border-radius:999px;background:linear-gradient(#fff27a,#ffb800);color:#3a2a00;font:italic 900 18px/1 var(--display);letter-spacing:.04em;text-transform:uppercase;
  animation:best-pop .6s cubic-bezier(.2,1.6,.4,1) .2s both}
.tod-badge.pb{background:linear-gradient(#bff7c9,#46d06a);color:#08321a}
.tod-time{font:italic 900 clamp(44px,15vw,76px)/1 var(--display);color:#fff;font-variant-numeric:tabular-nums;text-shadow:0 4px 0 rgba(0,0,0,.45)}
.tod-vs{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%;margin:4px 0 0}
.tod-vs div{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 6px;border-radius:12px;background:rgba(30,36,70,.9)}
.tod-vs dt{font:800 11px/1 var(--display);letter-spacing:.16em;text-transform:uppercase;color:rgba(255,247,236,.7)}
.tod-vs dd{margin:0;font:800 20px/1.15 var(--display);color:var(--ink);font-variant-numeric:tabular-nums;text-align:center}
.tod-vs dd small{display:block;font-size:13px;font-weight:700}
.tod-vs .off{color:#ffb0a0}.tod-vs .on{color:#8ff0a4}
.tod-beat{font:700 15px/1.25 var(--display);color:rgba(255,247,236,.85);text-align:center}
.racing-site .tod-kicker{font-family:var(--hr-font);font-style:italic}
.racing-site .tod-name{font-family:var(--hr-font);color:transparent;background:var(--hr-gold-grad);-webkit-background-clip:text;background-clip:text;
  filter:drop-shadow(0 3px 0 var(--hr-navy)) drop-shadow(0 0 2px var(--hr-navy));text-shadow:none}
.racing-site .tod-time,.racing-site .tod-badge,.racing-site .tod-vs dd{font-family:var(--hr-font);font-style:italic}
.racing-site .tod-vs div{background:var(--hr-glass);box-shadow:inset 0 0 0 1px var(--hr-rim)}
.racing-site #todShare{font:italic 900 24px/1 var(--hr-font);letter-spacing:.04em;text-transform:uppercase;padding:14px 18px;border-radius:14px;color:var(--hr-navy);
  background:var(--hr-gold-grad);border:3px solid var(--hr-navy);transform:skewX(-7deg);box-shadow:0 6px 0 var(--hr-navy),0 10px 30px rgba(255,170,0,.35)}
.racing-site #todShare:active{transform:skewX(-7deg) translateY(4px);box-shadow:0 2px 0 var(--hr-navy)}
/* (on the Track of the Day's screen Race again steps down to the glass look: Share my time is the gold one) */
.racing-site #over.tod #again{font:italic 800 20px/1.1 var(--hr-font);padding:12px 16px;border-radius:12px;color:#fff;background:var(--hr-glass);border:2px solid var(--hr-rim);box-shadow:0 4px 0 rgba(0,0,0,.55)}
@media (prefers-reduced-motion:reduce){.tod-badge{animation:none}}
/* The title's Track of the Day button, opened from a shared time: the time to beat (main.js hrChallenge) */
.hr-daily .hr-beat{display:inline-block;margin-top:5px;padding:3px 10px;border-radius:999px;background:rgba(11,22,52,.88);font:italic 800 13px/1.15 var(--hr-font);color:#8ff0a4}
#over.tod #best,#over.tod #hrChange{display:none}

/* Grades (2026-11-30, grades.js): a letter on a dark chip, coloured by grade, beside My Best on the title and on the result screens */
.hr-grade{display:inline-grid;place-items:center;min-width:1.7em;padding:.08em .32em;border-radius:.4em;background:#0a1638;box-shadow:inset 0 0 0 1.5px currentColor;font:italic 900 1em/1.15 var(--hr-font,var(--display));letter-spacing:0;color:#ffd21e;text-shadow:none;vertical-align:baseline}
.hr-grade[hidden]{display:none}
.hr-grade[data-g="A"]{color:#ffd21e}.hr-grade[data-g="B"]{color:#8ff0a4}.hr-grade[data-g="C"]{color:#9fe0ff}.hr-grade[data-g="D"]{color:#ffb0a0}
.hr-races .hr-rcard .col .me .hr-grade{margin-left:5px;font-size:11px}
/* The Track of the Day's box: the two times side by side with your grade, the bell curve under them */
.racing-site .hr-go.hr-daily{padding:12px 14px 12px;gap:4px;border-radius:16px;transform:skewX(-3deg)} /* (a tall box: less of the buttons' slant) */
.racing-site .hr-go.hr-daily:active{transform:skewX(-3deg) translateY(4px)}
.hr-daily .hr-dstats{display:flex;align-items:center;justify-content:center;gap:14px;width:100%;margin-top:3px}
.hr-daily .hr-dstats>span{display:flex;flex-direction:column;align-items:center;gap:1px}
.hr-daily .hr-dstats i{font:italic 800 10.5px/1 var(--hr-font);letter-spacing:.14em;text-transform:uppercase;opacity:.75}
.hr-daily .hr-dstats b{font:italic 900 21px/1 var(--hr-font);letter-spacing:.01em;font-variant-numeric:tabular-nums}
.hr-daily .hr-grade.big{font-size:26px;min-width:1.6em}
.hr-daily .hr-curve{display:block;width:100%;height:58px;margin-top:2px;transform:skewX(3deg)} /* (upright in the slanted button) */
.hr-daily .hr-curve:empty{display:none}
.hr-daily .hr-curve svg{display:block;width:100%;height:100%;overflow:visible}
.hr-daily .hr-curve .bell{fill:rgba(10,22,56,.3);stroke:#0a1638;stroke-width:2;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.hr-daily .hr-curve .base{stroke:#0a1638;stroke-width:2;vector-effect:non-scaling-stroke}
.hr-daily .hr-curve .wr{stroke:#0a1638;stroke-width:1.5;stroke-dasharray:3 3;vector-effect:non-scaling-stroke}
.hr-daily .hr-curve .you{stroke:#fff;stroke-width:3;vector-effect:non-scaling-stroke;filter:drop-shadow(0 0 2px #0a1638)}
.hr-daily .hr-curve .dot{fill:#fff;stroke:#0a1638;stroke-width:2;vector-effect:non-scaling-stroke}
.hr-daily .hr-curve text{font:italic 900 10px var(--hr-font);fill:#0a1638;letter-spacing:.06em}
.hr-daily #hrDailyTimes{font:italic 800 14px/1.2 var(--hr-font);white-space:normal;text-align:center}
.hr-daily.busy .hr-dstats,.hr-daily.busy .hr-curve{display:none}
/* Your grade on a result screen */
.ranks-grade{display:flex;align-items:center;justify-content:center;gap:10px;margin:2px 0 4px;font:italic 800 16px/1.2 var(--hr-font,var(--display));color:#fff}
.ranks-grade[hidden]{display:none}
.ranks-grade .hr-grade{font-size:34px}
.ranks-grade small{display:block;font:600 12px/1.2 var(--body);color:var(--hr-soft,#9fc4ff)}

/* How to play: Driving School's button on the title (2026-11-30), a slim row; gold-rimmed and beating until it has been driven once */
.hr-school{flex:none;display:flex;align-items:baseline;justify-content:center;gap:10px;width:100%;padding:9px 12px;border-radius:12px;color:#fff;background:var(--hr-glass);border:2px solid var(--hr-rim);box-shadow:0 3px 0 rgba(0,0,0,.5)}
.hr-school b{font:italic 900 18px/1 var(--hr-font);letter-spacing:.04em;text-transform:uppercase}
.hr-school small{font:600 12px/1 var(--body);color:#9fe0ff}
.hr-school.new{border-color:var(--hr-gold);animation:hrSchool 1.6s ease-in-out infinite}
.hr-school.new b{color:var(--hr-gold)}
.hr-school:active{transform:translateY(2px)}
@keyframes hrSchool{50%{box-shadow:0 3px 0 rgba(0,0,0,.5),0 0 22px rgba(255,210,30,.65)}}
@media (prefers-reduced-motion:reduce){.hr-school.new{animation:none}}

/* After a whole circuit (2026-12-01, the user: the podium only "after they do all 12", and "that screen needs to be better we need to have
   your total time for the whole circuit accurately where you stand"): where you came, big and gold, your total under it. */
.ranks-sum{margin:6px 0 2px;padding:10px 12px;border-radius:14px;background:rgba(255,200,60,.12);border:2px solid var(--hr-gold,#ffc21a);text-align:center;display:flex;flex-direction:column;gap:3px}
.ranks-sum b{font:italic 900 24px/1.1 var(--display);color:var(--hr-gold,#ffc21a);letter-spacing:.02em}
.ranks-sum small{font:600 13px/1.3 var(--body);color:#fff}

/* A race's button with its picture behind it (2026-12-01, the user: "restyle the home screen race level buttons so their bg is like a
   representation of the race's level ... stylized and awesome"; hrArt.js; the look Claude's DRAFT): taller, the picture across it (its
   landmarks on the right), a gold rim, the words with a dark edge so they read over any sky. */
.hr-races .hr-rcard.art{min-height:72px;background-size:cover;background-position:right center;background-repeat:no-repeat;border:2px solid rgba(255,255,255,.28);box-shadow:0 3px 0 rgba(0,0,0,.45),inset 0 0 0 1px rgba(0,0,0,.35)}
.hr-races .hr-rcard.art:active{border-color:var(--hr-gold,#ffc21a);transform:translateY(2px);box-shadow:0 1px 0 rgba(0,0,0,.45)}
.hr-races .hr-rcard.art b{font-size:22px;letter-spacing:.01em;text-shadow:0 2px 0 rgba(0,0,0,.65),0 0 8px rgba(0,0,0,.6)}
.hr-races .hr-rcard.art .col small{text-shadow:0 1px 2px rgba(0,0,0,.9)}
.hr-races .hr-rcard.art .hr-flag{box-shadow:0 0 0 2px rgba(255,255,255,.85),0 2px 4px rgba(0,0,0,.5)}
