/* The Unity page: the full-window canvas and the page's own loading card (what a browser shows while the player's files come
   down and the engine starts; the game's own screens take over from its first frame).
   The card is the UI refresh's kit (2026-11-12; docs/design-system/ui-refresh, page 01): the night ink #1A0F0A as the ground
   (Bootstrap.LOAD_COLOUR, the game's load cover and the menus' veil: the page, the canvas before its first frame and the card
   are one colour, so nothing changes shade as one hands over to the next), cream #FFF6E8 for the wordmark, the label colour
   #FFE2C8 for the caps line and the note, the action yellow #FFC93C for the bar on a track of cream at 15 % (load.uss
   .ev-load-bar: 10 high, a 5 corner). Before: the web game's navy card (evracer/src/client/style.css: #121d2b, a 6 px bar,
   the Floodlit wordmark in Barlow Condensed with EV on a skewed yellow badge), which faded out over the game's new load cover.
   The faces: the kit's are Lilita One (display) and Nunito 800 / 900 (body, label). Neither is fetched here: the page asks
   nobody else for anything while the game loads, and the template ships no font (the Barlow file that stood beside this sheet
   for the old wordmark went with it). So the wordmark is the system's rounded heavy face where there is one (ui-rounded:
   SF Rounded in Safari; Arial Rounded MT Bold on a Mac's Chrome and on Windows where Office put it), Lilita One itself on a
   machine that has it installed, and the system's sans in its heaviest weight elsewhere; it is on screen for the download only. */
:root { --ground: #1A0F0A; --cream: #FFF6E8; --label: #FFE2C8; --action: #FFC93C; --track: rgba(255, 246, 232, 0.15);
  --display: "Lilita One", ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--ground); color: var(--cream); font-family: var(--body); -webkit-font-smoothing: antialiased; }
#unity-canvas { display: block; width: 100vw; height: 100vh; background: var(--ground); outline: none; touch-action: none; -webkit-user-select: none; user-select: none; } /* a thumb on the canvas drives the car (TouchControls), it does not scroll, zoom or select the page */ /* the focus ring the browser draws on a focused canvas is not part of the game */
/* The card is opaque and goes in one step (index.html: `hidden` the moment the game reports its first frames). It faded out
   over 0.35 s until 2026-11-12, and for that third of a second two loading cards were on screen, this one translucent over
   the game's own (shots2/ui-refresh/web/c1-redmesa-gl-load-b.png). */
#loading { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; background: var(--ground); }
#loading[hidden] { display: none; }
.loading-card { display: flex; flex-direction: column; align-items: center; width: min(440px, 80vw); }
/* The wordmark as the title screen sets it (Game/Hud/TitleScreen.cs, title.uss): EV RACERS in cream, one line, no badge. */
.mark { font: 900 min(56px, 13vw)/1 var(--display); letter-spacing: 0.02em; color: var(--cream); white-space: nowrap; }
.mark span + span { margin-left: 0.26em; }
/* The kit's label: caps, heavy, tracked (Nunito 900 15 with tracking 2 on the kit's 1080 page). */
.loading-label { margin-top: 26px; font: 900 13px/18px var(--body); letter-spacing: 0.15em; text-transform: uppercase; color: var(--label); min-height: 18px; }
.loading-track { margin-top: 10px; width: 100%; height: 10px; border-radius: 5px; background: var(--track); overflow: hidden; }
.loading-bar { height: 100%; width: 100%; border-radius: 5px; background: var(--action); transform-origin: left; transform: scaleX(0); transition: transform 0.25s ease-out; }
.loading-note { margin-top: 22px; font: 800 14px/1.5 var(--body); color: var(--label); opacity: 0.8; text-align: center; max-width: 420px; }
.loading-note[hidden] { display: none; }
