/* The big centre callout that used to live here — the 3-2-1-GO standing
   start and DELIVERED! / BUMP! / SPILLED! / MISSED - LOOP BACK — was the
   portrait build's, at 150px across the middle of the screen, and it is gone
   from this file. #callout is painted by the game's own hud.css now: Zuhair
   drew the count in S20b and the messages in S20c, and since Session E every
   callout is his render (442:580). */

/* ---------- screens ---------- */
.screen{position:absolute;inset:0;z-index:5}
.screen.fade{transition:opacity .4s;opacity:1}
.screen.out{opacity:0;pointer-events:none}

/* ---------- idle (146:354) and instructions (146:371) ----------
   TWO FLAT 1920x1080 PNGs, and everything the portrait build drew here is gone:
   #title-bg / #title-veil / #tl-logo / #tl-word / #tl-tag, the START GAME and
   HOW TO PLAY buttons, and the whole #ht-grid of four how-to cards with their
   chips, keycaps and arrow glyphs. None of it was in the Figma; all of it was
   authored against a portrait stage and a dark blue ground the art does not use.

   THE ATTRACT PUSH-IN AND THE REV THROB GO WITH THEM. Both drove #title-bg and
   #title-veil. Their argument was good — "the rig stands idle in front of a
   moving crowd, so a still frame is the one thing the title cannot be" — and it
   no longer applies to THIS screen: on the rig the game's idle is never on
   screen at all, because the shell keeps the iframe hidden until GO
   (game-host.js) and runs its own attract loop on #scr-home. REV_PERIOD paced
   an audio blip on its own after that, and is deleted with it (Session Y: the
   idle screen is the street ambience alone).

   The image is the screen, so there is exactly one rule for it. object-fit is
   `fill` on purpose rather than `cover`: the stage is a fixed 1920x1080 and so
   are both PNGs, so there is nothing to fit — and `cover` would silently crop
   the frame if either ever went out of step, which is the failure that would be
   hardest to spot. `fill` distorts instead, which is visible immediately. */
.screen > img.flat{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;display:block}

/* 442:515's tip line, SINCE SESSION G the one live thing on either screen: the clock
   rule in Zuhair's tip type (442:529, TT Commons Pro Bold 24, black), centred in his
   1005x58 box over his underline. The same numbers as .ar-rule in the rig shell's
   shell.css -- two documents, one frame -- and tests/screens_figma.py and
   tests/armed_figma.py hold BOTH to where his own tip's ink sat, rows 857..875. */
#ht-rule{position:absolute;left:877px;top:837px;width:1005px;height:58px;display:grid;place-items:center;
  font-family:var(--font);font-weight:700;font-size:24px;color:#000;white-space:nowrap;pointer-events:none}

/* THE WEB DEMO'S KEYBOARD LINE (#ht-keys), NOT IN THE FIGMA: the owner's words in the
   rule's type, in the empty left half of the same row -- 442:529's top and height,
   centred at x 553.5, the middle of LEFT OR RIGHT TO STEER's ink (302..805, measured off
   howto.png). The line sets 676px wide; the 800px box holds it and ends at 953.5, short
   of the frame's centre. Painted only under body.web (Input.web): on the rig it is never
   displayed and 442:515 is exactly his. tests/web_demo.py reads both off the screen. */
#ht-keys{display:none;position:absolute;left:153.5px;top:837px;width:800px;height:58px;place-items:center;
  font-family:var(--font);font-weight:700;font-size:24px;color:#000;white-space:nowrap;pointer-events:none}
body.web #ht-keys{display:grid}

/* The whole screen is the button. There is one input on the rig and nothing
   else on either frame is interactive, so a hit target is a transparent sheet
   over the art rather than a drawn control. */
.hit{position:absolute;inset:0;cursor:pointer;pointer-events:auto;background:transparent}
.hit.locked{pointer-events:none}

/* results — ZUHAIR'S 146:861, AND IT IS NOT IN THIS FILE.

   The whole portrait results panel is gone: #rs-glow, #rs-head with its hard
   <br>, #rs-badge and .star, #rs-panel and its four .rrow / .rbox stat rows,
   #rs-div, #rs-total, the two .btn / .tri buttons, the #rs-auto drain, the
   landscape stopgap that gave the panel the left two thirds because head +
   panel + buttons need 1294px of a 1080px stage, and the four `#stage.short`
   overrides that went with it -- `short` has been permanently on since S1 made
   H a const 1080, which was the tell that this block was for a stage that no
   longer exists.

   The screen is score.css now, byte-identical to rig/public/score.css, so this
   document and the rig shell draw the same frame from the same file. See the
   header of score.css, and the block above #scr-results in index.html for what
   the two slots a standalone build cannot fill the shell's way hold instead.

   `.btn` and `.tri` went with the buttons; the last thing using them was
   PLAY AGAIN / BACK TO GAMES, and 146:861 has no buttons. */

/* ---------- safe areas ----------
   Notched phones: keep the top HUD clear of the Dynamic Island and the
   controls clear of the home indicator. Values are injected as px by JS
   because env() can't be read inside the CSS-scaled stage. */
#touchbar{padding-bottom:calc(34px + var(--sa-bottom,0px))}
/* The notch offsets that used to apply to the results screen's two buttons went
   with the buttons. 146:861 is one 1920x1080 frame with nothing anchored to the
   bottom edge of the stage, so there is nothing left here for a home indicator
   to reach. */

/* ---------- loading ---------- */
/* `.btn.locked` was here and went with the buttons. The two things that still
   carry `locked` -- #b-start and #b-howto -- are `.hit`, which has its own
   `pointer-events:none` above, and they are invisible hit targets over a flat
   PNG, so there was never anything for the opacity to dim. */
#loading{position:absolute;left:50%;transform:translateX(-50%);
  bottom:calc(640px + var(--sa-bottom,0px));width:520px;text-align:center;z-index:8;
  transition:opacity .45s}
#loading.done{opacity:0;pointer-events:none}
#load-track{height:6px;border-radius:3px;background:rgba(255,255,255,.16);overflow:hidden}
#load-bar{height:100%;width:0;border-radius:3px;background:linear-gradient(90deg,var(--orange),var(--gold));
  box-shadow:0 0 14px rgba(255,107,0,.8);transition:width .25s ease}
#loading p{margin-top:14px;font-family:var(--font);font-weight:700;font-size:22px;letter-spacing:4px;
  color:rgba(255,255,255,.55)}

/* ---------- touch controls ---------- */
#touchbar{position:absolute;left:0;right:0;bottom:0;height:calc(296px + var(--sa-bottom,0px));display:none;align-items:center;gap:26px;
  padding:0 34px 34px;z-index:6;opacity:0;transition:opacity .3s;pointer-events:none}
#stage.touch #touchbar{display:flex}
#touchbar.on{opacity:1;pointer-events:auto}
#steerpad{flex:1;height:196px;border-radius:98px;position:relative;overflow:visible;touch-action:none;
  background:linear-gradient(180deg,rgba(13,27,42,.94),rgba(8,15,24,.96));
  border:2px solid rgba(255,107,0,.42);
  box-shadow:inset 0 0 40px rgba(0,0,0,.65),0 0 26px rgba(255,107,0,.18)}
#steerpad:before{content:"";position:absolute;left:50%;top:30px;bottom:30px;width:2px;margin-left:-1px;
  background:rgba(255,255,255,.14)}
.tp-cue{position:absolute;top:50%;transform:translateY(-50%);font-family:var(--font);font-weight:900;font-size:52px;
  color:rgba(255,107,0,.42);letter-spacing:2px;pointer-events:none}
.tp-cue.l{left:34px} .tp-cue.r{right:34px}
.tp-lbl{position:absolute;left:0;right:0;top:-38px;text-align:center;font-family:var(--font);font-weight:700;
  font-size:22px;letter-spacing:5px;color:rgba(255,255,255,.34);pointer-events:none}
#steerknob{position:absolute;top:50%;left:50%;width:156px;height:156px;margin:-78px 0 0 -78px;border-radius:50%;
  background:linear-gradient(180deg,#ff8c33,#ff6b00);pointer-events:none;
  box-shadow:0 0 34px rgba(255,107,0,.75),inset 0 -7px 0 rgba(0,0,0,.28),inset 0 3px 0 rgba(255,190,120,.5);
  display:grid;place-items:center;will-change:transform}
#steerknob:after{content:"";width:54px;height:6px;border-radius:3px;background:rgba(255,255,255,.55)}
#boostbtn{width:238px;height:196px;border-radius:98px;flex:none;display:grid;place-items:center;touch-action:none;
  background:linear-gradient(180deg,rgba(13,27,42,.94),rgba(8,15,24,.96));
  border:2px solid rgba(255,107,0,.55);
  box-shadow:inset 0 0 30px rgba(0,0,0,.6),0 0 26px rgba(255,107,0,.22);transition:transform .08s,box-shadow .12s}
#boostbtn span{font-family:var(--font);font-weight:700;font-size:30px;letter-spacing:4px;color:var(--orange);
  text-shadow:0 0 18px rgba(255,107,0,.6)}
#boostbtn.on{transform:scale(.95);
  background:linear-gradient(180deg,#ff8c33,var(--orange) 55%,var(--orange-dk));
  border-color:rgba(255,190,120,.7);
  box-shadow:0 0 60px rgba(255,107,0,.85),inset 0 -6px 0 rgba(0,0,0,.28)}
#boostbtn.on span{color:#fff;text-shadow:0 2px 10px rgba(0,0,0,.45)}
/* lift the game HUD clear of the controls on touch devices */
body.touch #hint{display:none}
#stage.touch #tip{width:600px;font-size:24px;line-height:30px;padding:14px 24px}

/* rotate prompt */
#rotate{position:fixed;inset:0;z-index:40;display:none;flex-direction:column;align-items:center;justify-content:center;gap:26px;
  background:#060d14;text-align:center;padding:40px}
#rotate.on{display:flex}
#rotate .ph{width:96px;height:160px;border-radius:16px;border:4px solid var(--orange);position:relative;
  animation:tilt 1.8s ease-in-out infinite}
@keyframes tilt{0%,45%{transform:rotate(90deg)}60%,100%{transform:rotate(0deg)}}
#rotate p{font-family:var(--font);font-weight:700;font-size:26px;letter-spacing:4px;color:rgba(255,255,255,.7)}

/* control hint */
#hint{position:absolute;left:0;right:0;bottom:14px;opacity:0;transition:opacity .3s;text-align:center;font-family:var(--font);font-weight:700;font-size:22px;
  letter-spacing:3px;color:rgba(255,255,255,.28);z-index:9;pointer-events:none}
#pad{position:absolute;right:16px;top:16px;z-index:9;font-family:var(--font);font-weight:700;font-size:18px;letter-spacing:2px;
  color:rgba(0,229,255,.75);background:rgba(8,15,24,.8);border:1px solid rgba(0,229,255,.35);border-radius:14px;padding:8px 16px;opacity:0;transition:opacity .3s}
#pad.on{opacity:1}
