/* OMNIRUSH — a Lab page around the original full-window game.
   Part 1 is the Lab page shell (fonts for the shared top bar, the game stage,
   footer, helpers). Part 2 is the game's original stylesheet, one rule per
   line; its changes are marked "Lab:". Dark only, like the game. */

@font-face { font-family: "Press Start 2P"; font-style: normal; font-weight: 400; font-display: swap; src: url("/press-start-2p.woff2") format("woff2"); }
@font-face { font-family: "Press Start 2P Fallback"; src: local("Courier New"); size-adjust: 166.64%; ascent-override: 60%; descent-override: 0%; line-gap-override: 0%; }

/* ===================== 1. Lab page shell ===================== */

html { color-scheme: dark; background: #132526; }

/* The game was built for the whole window. It now lives in this box, which
   fills the window below the Lab top bar (app.js measures --omni-top), and
   never gets shorter than 600px (or the window, if that is smaller).
   Layout containment makes the box the containing block of the game's
   position: fixed layers; the size container lets the stylesheet query its
   height. */
.omni-stage {
  --omni-top: 110px;
  position: relative;
  width: 100%;
  height: calc(100vh - var(--omni-top));
  height: max(calc(100dvh - var(--omni-top)), min(100dvh, 600px));
  overflow: hidden;
  contain: layout paint;
  container: omni / size;
  background: var(--ink);
}
@media (max-width: 900px) {
  .omni-stage { --omni-top: 210px; }
  /* On a phone a race gets the whole window; app.js scrolls the stage into view. */
  body.racing .omni-stage { height: 100vh; height: 100dvh; }
}
/* Embedded in the portfolio: the frame grows to the content, so use a fixed shape. */
html[data-embed="1"] .omni-stage { height: auto; aspect-ratio: 16 / 10; min-height: 520px; max-height: 900px; }
/* Before a race the page must still scroll with a swipe on the 3D scene. */
body:not(.racing) #world-canvas { touch-action: pan-y; }

.skip-link {
  position: absolute; left: 16px; top: -120px; z-index: 1000;
  padding: 12px 16px; border-radius: 4px;
  background: #d9fa45; color: #132526;
  font: 700 13px/1 Arial, Helvetica, sans-serif; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* The shared chrome hides this header and moves its EN/TR switch into the Lab
   top bar; it only shows if that bar is missing. */
.site-header { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 16px; }
.site-header .lab-link { color: #d9fa45; font: 700 12px/1 Arial, Helvetica, sans-serif; letter-spacing: 1px; text-decoration: none; }
.site-header p { margin: 0; }
.site-header .level { font-size: 11px; letter-spacing: 1.5px; color: #a8b7b5; }
.site-header .lab-wordmark { font-size: 22px; letter-spacing: -1px; }
.site-header .tagline { font-size: 12px; color: #a8b7b5; }

.site-footer {
  padding: 28px 16px 40px;
  text-align: center;
  color: #a8b7b5;
  font: 12px/1.7 Arial, Helvetica, sans-serif;
}
.site-footer p { margin: 4px 0; }
.site-footer a { color: #d9fa45; text-underline-offset: 3px; }
.site-footer a:focus-visible { outline: 2px solid #d9fa45; outline-offset: 3px; }

/* ===================== 2. The game (original stylesheet) ===================== */

:root{--ink:#132526;--panel:#17282b;--panel-2:#203438;--line:rgba(217,231,221,.14);--paper:#f1f2e9;--muted:#a8b7b5;--lime:#d9fa45;--orange:#f3a177;--font:Arial,Helvetica,sans-serif}
*{box-sizing:border-box}
/* Lab: was html,body{…;width:100%;height:100%;overflow:hidden}. The page now scrolls (Lab top bar, game, footer) and the game fills .omni-stage. */
body{margin:0;background:var(--ink);color:var(--paper);font-family:var(--font);font-size:14px}
:where(.omni-stage) button,:where(.omni-stage) input,:where(.omni-stage) select{font:inherit}
:where(.omni-stage) button{cursor:pointer;color:inherit;background:none;border:0;padding:0}
:where(.omni-stage) button:focus-visible,:where(.omni-stage) input:focus-visible,:where(.omni-stage) select:focus-visible{outline:2px solid var(--lime);outline-offset:4px}
:where(.omni-stage) button:disabled{cursor:default;opacity:.38}
:where(.omni-stage) button,:where(.omni-stage) button *{-webkit-tap-highlight-color:transparent}
:where(.omni-stage) button:hover{filter:brightness(1.1)}
:where(.omni-stage) button:active:not(:disabled){transform:translateY(1px)}
:where(.omni-stage) svg{display:block;flex-shrink:0}
.hidden{display:none!important}
#world-canvas{display:block;position:fixed;inset:0;width:100%;height:100%;touch-action:none}
#home-shade{position:fixed;inset:0;pointer-events:none;background:linear-gradient(90deg,rgba(13,31,30,.98) 0%,rgba(13,31,30,.88) 26%,rgba(13,31,30,.12) 62%,rgba(13,31,30,0) 78%),linear-gradient(0deg,rgba(13,29,28,.98) 0%,rgba(13,29,28,.83) 14%,transparent 44%,transparent 89%,rgba(13,29,28,.34) 100%)}
#main-header{position:absolute;left:44px;right:44px;top:0;height:98px;display:flex;align-items:center;gap:76px;border-bottom:1px solid var(--line);z-index:5}
.brand{display:flex;gap:12px;align-items:center;white-space:nowrap}
.brand svg{width:34px;height:32px;fill:var(--lime)}
.brand>span{font-size:26px;font-style:italic;font-weight:900;letter-spacing:-1.4px}
.brand b{font-weight:900;color:var(--lime)}
:where(.omni-stage) nav{display:flex;gap:32px;height:100%;align-items:center}
.nav-link{font-size:12px;font-weight:700;letter-spacing:1.6px;color:#ccd5ce;position:relative;height:100%}
.nav-link.active{color:var(--paper)}
.nav-link.active:after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:3px;background:var(--lime)}
.nav-link small{font-size:10px;color:#aabaaf;margin-left:4px;letter-spacing:0}
.header-tools{display:flex;gap:9px;margin-left:auto;align-items:center}
.credit-counter{display:flex;align-items:center;gap:7px;margin-right:16px;font-size:14px}
.credit-counter b{font-weight:500;font-variant-numeric:tabular-nums}
.coin-symbol{font-size:22px;color:var(--lime)}
.icon-button{width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;border:1px solid rgba(223,235,225,.21);border-radius:50%;background:rgba(21,41,39,.16);transition:background .15s}
.icon-button:hover{background:rgba(239,251,238,.12)}
.icon-button svg{width:17px;height:17px}
.icon-button.on{color:var(--lime)}
#home-screen{position:absolute;inset:0;pointer-events:none}
.home-copy{position:absolute;left:64px;top:19%;pointer-events:auto}
:where(.omni-stage) h1{font-family:'Arial Black',Arial,sans-serif;font-size:clamp(54px,5.2vw,88px);font-weight:900;line-height:.98;letter-spacing:-4.5px;font-style:italic;margin:0 0 24px}
:where(.omni-stage) h1 em{color:var(--lime);font-style:italic}
.home-copy>p{font-size:16px;line-height:1.65;color:#c6d1c8;margin:0 0 26px}
.home-actions{display:flex;gap:23px;align-items:center}
.primary-button{display:inline-flex;align-items:center;justify-content:space-between;gap:28px;min-height:56px;padding:0 24px;border-radius:4px;background:var(--lime);color:#16271c;font-size:13px;letter-spacing:1px;font-weight:800;box-shadow:0 2px 0 rgba(0,0,0,.12);white-space:nowrap}
.primary-button svg{width:19px;height:19px}
.primary-button:hover{background:#e0ff60}
.button-arrow svg{width:19px;height:19px}
.text-button{font-size:13px;font-weight:600;display:flex;gap:14px;align-items:center;padding:15px 0;color:#e3e9df}
.small-arrow svg{width:16px;height:16px}
.setup-link{display:flex;gap:8px;align-items:center;margin-top:15px;font-size:11px;color:#a9bbb0}
.setup-link svg{width:13px;height:13px}
.world-shortcut{display:flex;align-items:center;gap:17px;width:357px;margin-top:33px;padding:17px 0;border-top:1px solid var(--line);text-align:left}
.world-shortcut>span:first-child{height:68px;width:86px;background:#263e3e;border:1px solid #445958;border-radius:4px;display:flex;align-items:center;justify-content:center}
.world-shortcut-copy{display:flex;flex-direction:column;gap:6px}
.world-shortcut-copy small{font-size:9px;letter-spacing:1.7px;color:#a7b5ab}
.world-shortcut-copy b{font-size:16px;font-weight:600}
.world-shortcut-copy>span{font-size:10px;color:#a9bcb2}
.world-shortcut-arrow{margin-left:auto}
.world-shortcut-arrow svg{width:16px;height:16px}
.hero-ride{position:absolute;width:345px;right:7%;bottom:20.5%;pointer-events:auto}
.ride-index{font-size:11px;letter-spacing:1.6px;color:#d5e0d3}
.ride-title-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:15px 0 20px}
.ride-title-row small{display:block;font-size:9px;font-weight:600;letter-spacing:2px;color:#c2d1c6;margin-bottom:9px}
.hero-ride h2{font-weight:700;font-style:italic;letter-spacing:-1.6px;font-size:42px;margin:0;line-height:1}
.round-button{display:flex;align-items:center;justify-content:center;width:44px;height:44px;flex-shrink:0;border-radius:50%;border:1px solid #bdc8b780;background:#18342d44}
.round-button svg{width:19px;height:19px}
.ride-stat-row{display:flex;justify-content:space-between;border-top:1px solid #c7d9c437;padding-top:16px}
.ride-stat-row>span{display:flex;flex-direction:column;gap:7px}
.ride-stat-row b{font-size:24px;letter-spacing:-.8px;font-weight:500}
.ride-stat-row b span{font-size:11px;color:#9fb7a7;letter-spacing:0;margin-left:3px}
.ride-stat-row small{font-size:8px;letter-spacing:1px;color:#acbeb2}
.home-bottom{position:absolute;left:64px;right:64px;bottom:50px;display:flex;align-items:center;gap:26px;border-top:1px solid var(--line);padding-top:24px;pointer-events:auto}
.quick-garage-label{display:flex;flex-direction:column;gap:8px;min-width:145px}
.quick-garage-label>span{font-size:9px;letter-spacing:1.5px;font-weight:600}
.quick-garage-label small{font-size:10px;color:#95ab9c}
#quick-categories{display:flex;gap:8px;flex:1}
.quick-category{display:flex;align-items:center;gap:10px;flex:1;padding:12px 10px;border:1px solid var(--line);border-radius:4px;max-width:140px}
.quick-category svg{width:23px;height:23px;color:#b6c7b8}
.quick-category span{display:flex;flex-direction:column;gap:3px;font-size:11px;font-weight:600}
.quick-category small{font-size:8px;color:#859c90;font-weight:400}
.quick-category:hover{background:#29443b;border-color:#829b83}
.help-button{display:flex;align-items:center;gap:8px;margin-left:14px;font-size:10px;color:#b8c7bb;white-space:nowrap}
/* Lab: only the "?" badge; the label next to it is a span too (data-i18n). */
.help-button>span:first-child{display:flex;align-items:center;justify-content:center;width:18px;height:18px;border:1px solid #6c8577;border-radius:50%;font-size:10px}
.home-note{position:absolute;left:64px;bottom:17px;font-size:8px;letter-spacing:1.4px;color:#6f897d}
#loading{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;background:var(--ink);z-index:100;transition:opacity .35s}
.wordmark{font-size:45px;font-style:italic;font-weight:900;letter-spacing:-3px}
.wordmark span{color:var(--lime)}
#loading p{font-size:12px;color:var(--muted);margin-top:20px}
.loading-line{width:160px;height:2px;background:#3b5147;margin-top:14px;overflow:hidden}
.loading-line:after{content:"";display:block;width:45%;height:100%;background:var(--lime);animation:loading 1s ease-in-out infinite}
@keyframes loading{from{transform:translateX(-100%)}to{transform:translateX(330%)}}
#game-modal{color:var(--paper);background:var(--panel);border:1px solid #3b5052;border-radius:10px;padding:0;width:calc(100vw - 100px);max-width:1280px;max-height:calc(100dvh - 80px);height:min(790px,calc(100dvh - 80px));box-shadow:0 30px 120px #0009;overflow:hidden}
#game-modal::backdrop{background:rgba(7,18,20,.77);backdrop-filter:blur(9px)}
#game-modal.compact{width:680px;max-width:calc(100vw - 40px);height:auto;max-height:calc(100dvh - 48px);overflow:auto}
#game-modal.wide-help{max-width:960px;height:auto;overflow:auto}
.modal-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:26px 30px 23px;border-bottom:1px solid var(--line)}
.modal-header .modal-eyebrow{font-size:9px;font-weight:600;letter-spacing:1.6px;color:var(--lime);display:block;margin-bottom:9px}
.modal-header h2{font-family:'Arial Black',Arial,sans-serif;font-style:italic;font-weight:900;font-size:32px;letter-spacing:-1.5px;line-height:1.12;margin:0}
.modal-header .icon-button{width:34px;height:34px;flex-shrink:0}
.modal-header-right{display:flex;gap:20px;align-items:center}
.search-field{border:1px solid #43585a;border-radius:5px;background:#122326;color:var(--paper);font-size:12px;width:210px;height:39px;padding:0 13px}
.search-field::placeholder{color:#7e9894}
.garage-layout{display:flex;flex:1;min-height:0}
.garage-content{display:flex;flex-direction:column;height:100%}
.garage-sidebar{width:184px;flex-shrink:0;padding:24px 15px;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:5px}
.garage-filter{display:flex;align-items:center;gap:11px;padding:13px 12px;border-radius:4px;color:#a1b5b0;text-align:left;font-size:11px}
.garage-filter svg{width:19px;height:19px}
.garage-filter small{font-size:9px;margin-left:auto;color:#7c9890}
.garage-filter.active{background:#d9fa4516;color:var(--lime)}
.garage-filter.active small{color:var(--lime)}
.garage-sidebar-note{margin-top:auto;font-size:10px;line-height:1.8;color:#809990;padding:20px 12px 0}
.garage-scroll{padding:20px;overflow:auto;flex:1;min-width:0}
.garage-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.ride-card{min-width:0;text-align:left;border:1px solid #354d50;border-radius:5px;overflow:hidden;background:#1d3033;position:relative;transition:border-color .18s,background .18s}
.ride-card.selected{border-color:var(--lime);box-shadow:0 0 0 1px var(--lime)}
.ride-card:hover{border-color:#8bada0;background:#2a3e40}
.ride-card-image{height:auto;aspect-ratio:1.65;display:flex;align-items:center;justify-content:center;background:#294044;overflow:hidden}
.ride-card-image img{width:100%;height:100%;object-fit:cover;display:block}
.ride-card-image>svg{width:48px;height:48px;color:#68877f}
.ride-card-number{position:absolute;top:10px;left:11px;z-index:1;font-size:9px;color:#c4d5ca90;letter-spacing:1px}
.ride-card-check{position:absolute;right:9px;top:9px;display:flex;justify-content:center;align-items:center;width:19px;height:19px;background:var(--lime);color:var(--ink);border-radius:50%}
.ride-card-check svg{width:12px;height:12px}
.ride-card-copy{padding:13px 12px}
.ride-card-copy b{display:block;font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ride-card-copy span{display:flex;justify-content:space-between;gap:5px;font-size:9px;color:#9bb2a9;margin-top:7px}
.ride-card-copy em{font-style:normal;color:#d6e2d9}
.garage-footer{padding:20px 26px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:18px;background:#14272a}
.garage-selected{max-width:400px}
.garage-selected>b{font-size:18px;letter-spacing:-.3px}
.garage-selected p{font-size:11px;color:#a5b9ae;line-height:1.6;margin:7px 0 0}
.garage-footer-actions{display:flex;align-items:center;gap:15px}
.paint-control{display:flex;gap:5px;margin-top:12px}
.paint-swatch{height:18px;width:18px;border-radius:50%;border:2px solid transparent;background:var(--swatch);box-shadow:inset 0 0 0 2px #13252611}
.paint-swatch.active{border-color:#fff;outline:1px solid #fff;outline-offset:2px}
.secondary-button{border:1px solid #5b7570;color:#d7e4d8;display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:47px;border-radius:4px;padding:0 17px;font-size:11px;font-weight:600;letter-spacing:.5px}
.secondary-button svg{width:16px;height:16px}
.secondary-button:hover{background:#2e4842}
.empty-search{grid-column:1/-1;text-align:center;padding:60px 20px;color:#a8bdb3}
.empty-search b{display:block;color:#dde7dd;font-size:20px;margin-bottom:10px}
.track-layout{display:grid;grid-template-columns:1.1fr 1fr;gap:24px;padding:24px 30px;min-height:0;flex:1;overflow:auto}
.track-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.track-card{padding:15px 12px;display:flex;align-items:center;gap:12px;border:1px solid #355051;border-radius:5px;background:#1c3336;text-align:left;min-height:88px}
.track-card.active{border-color:var(--lime);background:#284134}
.track-card>svg{width:58px;height:48px;flex-shrink:0}
.track-card>span{display:flex;flex-direction:column;gap:7px;min-width:0}
.track-card b{font-size:11px;font-weight:600;line-height:1.3}
.track-card small{font-size:9px;color:#a3b7af}
.track-preview{background:#1b3032;border:1px solid #365050;border-radius:6px;display:flex;flex-direction:column;padding:25px;min-width:0;justify-content:space-between}
.track-preview-art{flex:1;min-height:165px;display:flex;align-items:center;justify-content:center;background-image:linear-gradient(#aac3b807 1px,transparent 1px),linear-gradient(90deg,#aac3b807 1px,transparent 1px);background-size:25px 25px}
.track-preview-art svg{width:95%;height:100%;max-height:270px}
.track-preview small{font-size:9px;letter-spacing:1.8px;color:var(--lime)}
.track-preview h3{font-size:29px;font-style:italic;letter-spacing:-1px;margin:12px 0 9px}
.track-preview p{font-size:12px;color:#aec4b9;line-height:1.7;margin:0 0 18px}
.track-measures{display:flex;gap:25px;padding-top:17px;border-top:1px solid var(--line)}
.track-measures strong{font-size:19px;font-weight:500}
.track-measures span{display:flex;flex-direction:column;gap:6px;font-size:8px;color:#91afa1;letter-spacing:1px}
.modal-footer{padding:19px 28px;border-top:1px solid var(--line);display:flex;gap:15px;align-items:center;justify-content:space-between}
.modal-footer p{font-size:10px;color:#8aa697;line-height:1.6;margin:0;max-width:410px}
.settings-body{padding:11px 30px 20px}
.setting-row{display:flex;justify-content:space-between;gap:24px;padding:17px 0;border-bottom:1px solid var(--line);align-items:center}
.setting-row>label,.setting-row>.setting-copy{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:600}
.setting-row small{font-size:10px;color:#8eaaa0;font-weight:400;line-height:1.5}
.setting-row select{min-width:145px;max-width:200px;border:1px solid #43605b;border-radius:4px;background:#203a37;color:var(--paper);padding:9px 13px;font-size:11px}
.setting-row input[type=checkbox]{width:34px;height:20px;accent-color:var(--lime)}
.mode-options{display:flex;border:1px solid #476056;border-radius:4px;overflow:hidden}
.mode-button{font-size:10px;padding:10px 11px;border-right:1px solid #476056}
.mode-button:last-child{border-right:0}
.mode-button.active{background:var(--lime);color:var(--ink);font-weight:700}
.save-tools{display:flex;gap:10px;align-items:center;margin-top:18px}
.save-tools button{font-size:10px;color:#b8d0c0;text-decoration:underline;text-underline-offset:4px}
.save-tools span{font-size:9px;color:#739086;margin-left:auto}
.tune-body{padding:24px 28px}
.tune-intro{font-size:12px;color:#a4bdae;line-height:1.7;margin:0 0 22px}
.upgrade-row{border:1px solid #3c5750;border-radius:6px;padding:20px;display:flex;gap:18px;align-items:center;margin-bottom:12px}
.upgrade-icon{width:37px;height:37px;display:flex;align-items:center;justify-content:center;background:#d9fa4512;color:var(--lime);border-radius:5px}
.upgrade-icon svg{width:21px}
.upgrade-copy{flex:1}
.upgrade-copy b{font-size:13px}
.upgrade-copy p{font-size:10px;color:#a2b8aa;margin:7px 0 10px}
.upgrade-levels{display:flex;gap:4px}
.upgrade-levels i{display:block;height:4px;width:25px;background:#3a554b}
.upgrade-levels i.filled{background:var(--lime)}
.upgrade-row button{font-size:11px;padding:12px 14px;border-radius:4px;background:#d9fa4517;color:var(--lime);border:1px solid #728751}
.control-guide{padding:26px 30px}
.guide-intro{font-size:13px;line-height:1.8;color:#acc1b5;margin:0 0 26px}
.guide-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 40px}
.guide-row{display:flex;gap:16px;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:13px 0;font-size:11px;color:#c8d8cc}
.guide-row>span{display:flex;gap:5px}
:where(.omni-stage) kbd{font:10px var(--font);border:1px solid #c4d9c544;padding:4px 6px;border-radius:3px;color:#d4e2d6;background:#101f2044;white-space:nowrap}
.guide-note{margin-top:25px;display:grid;grid-template-columns:1fr 1fr;gap:25px}
.guide-note p{font-size:11px;line-height:1.8;color:#99b6a6;margin:0}
.guide-note b{color:var(--lime);font-weight:600}
.pause-content{text-align:center;padding:39px 36px}
.pause-content h2{font:italic 900 43px/.98 'Arial Black',Arial,sans-serif;letter-spacing:-2px;margin:15px 0}
.pause-content p{font-size:12px;color:#97b3a3;line-height:1.8}
.pause-content .pause-symbol{width:60px;height:60px;display:flex;align-items:center;justify-content:center;border:1px solid #53705e;border-radius:50%;color:var(--lime);margin:0 auto 22px}
.pause-actions{display:flex;flex-direction:column;gap:10px;max-width:310px;margin:26px auto 0}
.pause-actions .primary-button{justify-content:center}
.pause-actions .text-button{justify-content:center;font-size:11px}
.results-body{padding:26px 30px}
.result-heading{display:flex;align-items:center;gap:25px}
.result-position{font:italic 900 93px/.9 'Arial Black',Arial,sans-serif;color:var(--lime);letter-spacing:-8px}
.result-position small{font-size:21px;letter-spacing:-1px}
.result-heading h3{font-size:25px;font-style:italic;letter-spacing:-.7px;margin:0 0 9px}
.result-heading p{font-size:11px;color:#9eb9aa;line-height:1.7;margin:0}
.record-label{display:inline-block;font-size:9px;font-weight:600;letter-spacing:1.2px;color:var(--lime);margin-top:12px}
.result-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:25px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:20px 0}
.result-stats>span{display:flex;flex-direction:column;gap:8px}
.result-stats small{font-size:8px;letter-spacing:1.3px;color:#8da99b}
.result-stats b{font-size:23px;font-weight:500;font-variant-numeric:tabular-nums}
.result-stats>span:last-child b{color:var(--lime)}
.standings-caption{font-size:9px;color:#90aa9e;margin-bottom:9px;letter-spacing:.4px}
.standings-table{width:100%;border-collapse:collapse;font-size:10px}
.standings-table td{border-bottom:1px solid #314a425c;padding:9px 5px;color:#9eb7a9}
.standings-table td:first-child{width:26px;font-size:9px}
.standings-table td:last-child{text-align:right;font-variant-numeric:tabular-nums}
.standings-table tr.you td{color:var(--lime);background:#d9fa450b}
.standings-table td:nth-child(2){font-weight:600;color:#d0dece}
.lap-list{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}
.lap-list>span{font-size:9px;color:#849f91}
.lap-list b{color:#c5d6c8;font-weight:500;margin-left:5px}
#race-hud{position:fixed;inset:0;pointer-events:none;text-shadow:0 1px 6px #10232055}
#race-hud button{pointer-events:auto}
.hud-gradient{position:absolute;inset:0;background:linear-gradient(180deg,#1023238c 0%,transparent 25%,transparent 68%,#10232387 100%);pointer-events:none}
.race-top{position:absolute;top:31px;left:35px;display:flex;align-items:flex-start;gap:33px}
.race-top small{display:block;font-size:9px;letter-spacing:2px;color:#e4e9dfcc}
.race-position>div,.race-lap>div{display:flex;align-items:baseline;gap:8px;margin-top:5px}
.race-position strong,.race-lap strong{font-size:53px;font-style:italic;font-weight:800;letter-spacing:-3px;line-height:1.15}
.race-position>div>span,.race-lap>div>span{font-size:15px;color:#d5ddcaaa}
.race-position strong{color:var(--lime)}
.race-lap{border-left:1px solid #eef0d63d;padding-left:30px}
.race-timer{padding-top:1px;border-left:1px solid #eef0d63d;padding-left:30px}
.race-timer strong{font-variant-numeric:tabular-nums;font-size:26px;font-weight:500;letter-spacing:-.7px;display:block;margin-top:11px}
.race-timer>span{font-size:8px;color:#d2ddceaa;margin-top:7px;display:block}
.race-controls-top{position:absolute;top:30px;right:34px;text-align:right}
.race-controls-top>div{display:flex;gap:8px;justify-content:flex-end}
.race-controls-top>.icon-button{background:#19323066}
.race-controls-top>span{display:block;font-size:9px;letter-spacing:1.5px;margin-top:15px;color:#f1f2e5}
.race-controls-top>span:last-child{font-size:8px;margin-top:6px;color:#dbe5d3b3}
#checkpoint-label{position:absolute;top:38px;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;gap:9px;text-align:center;font-size:10px;letter-spacing:1.4px;color:#dbe7d3}
#checkpoint-label b{font-weight:500;font-size:19px;letter-spacing:-.3px}
#countdown{position:absolute;left:50%;top:43%;transform:translate(-50%,-50%);text-align:center}
#countdown small{font-size:11px;letter-spacing:2px;color:#f4f5e7;display:block;text-shadow:0 2px 20px #0c231d}
#countdown strong{display:block;font:italic 900 142px/.95 'Arial Black',Arial,sans-serif;letter-spacing:-8px;color:var(--lime);text-shadow:0 5px 40px #23453660;margin-top:15px}
#leaderboard{position:absolute;top:156px;right:34px;width:138px;display:flex;flex-direction:column;gap:2px}
.leader-row{display:flex;gap:12px;font-size:10px;padding:8px 12px;background:#1127288c;border-radius:2px;backdrop-filter:blur(5px);color:#e2e8d7;align-items:center}
.leader-row>b{font-size:8px;color:#bdccb5aa;width:8px;font-weight:400}
.leader-row.you{background:#d9fa45db;color:#142820;font-weight:700}
.leader-row.you>b{color:#29452b}
.leader-row small{font-size:8px;margin-left:auto;color:inherit;opacity:.6}
#off-course{position:absolute;bottom:215px;left:50%;transform:translateX(-50%);padding:13px 20px;border-radius:4px;background:#f5b07c;color:#3f3020;font-size:11px;font-weight:800;letter-spacing:1px;text-align:center}
#off-course span{font-size:8px;display:block;margin-top:5px;font-weight:500;letter-spacing:1.1px}
.minimap-panel{position:absolute;left:32px;bottom:56px;width:211px;padding:13px 14px 11px;background:#11282bb5;border:1px solid #d6e5d32d;backdrop-filter:blur(8px);border-radius:5px}
.minimap-panel>div,.minimap-panel>footer{display:flex;justify-content:space-between;gap:6px;font-size:8px;letter-spacing:1px}
.minimap-panel>div>span:last-child{color:var(--lime);font-size:7px;letter-spacing:.4px}
.minimap-panel canvas{display:block;width:100%;height:139px}
.minimap-panel footer{color:#bdd1bd;font-size:8px;letter-spacing:.5px}
.speedometer{position:absolute;right:31px;bottom:50px;width:231px;height:224px;text-align:center}
.speedometer>svg{position:absolute;inset:0;width:100%;height:210px;overflow:visible}
.speed-track{fill:none;stroke:#e3ecdc44;stroke-width:3;stroke-linecap:round}
#speed-arc{fill:none;stroke:var(--lime);stroke-width:5;stroke-linecap:round;stroke-dasharray:100;stroke-dashoffset:100;transition:stroke-dashoffset .12s}
.speed-ticks{stroke:#e3ecdc88;stroke-width:1.5;fill:none}
.speed-number{position:absolute;top:67px;width:100%;display:flex;flex-direction:column;align-items:center}
.speed-number b{font:italic 700 70px/.9 Arial,sans-serif;letter-spacing:-4px;font-variant-numeric:tabular-nums;padding-right:7px}
.speed-number>span{font-size:9px;letter-spacing:2px;color:#d8e7d3b3;margin-top:10px}
.boost-meter{position:absolute;left:18px;right:18px;bottom:17px}
.boost-meter>div:first-child{display:flex;justify-content:space-between;align-items:center;margin-bottom:7px;font-size:8px;letter-spacing:.8px}
.boost-meter kbd{font-size:7px;padding:3px 4px;border-color:#e4f0df55}
.boost-track{background:#213f428c;height:6px;border-radius:2px;overflow:hidden}
.boost-track i{display:block;background:var(--lime);height:100%;width:100%;box-shadow:0 0 15px #d9fa4533;transition:width .12s}
.speedometer.boosting #speed-arc{stroke:#ecffa2}
.speedometer.boosting .boost-track i{background:#f2ffa5}
#ride-hud-label{position:absolute;left:0;right:0;bottom:-6px;font-size:8px;letter-spacing:1.5px;color:#cbdcc6a6}
#race-hints{position:absolute;bottom:22px;left:50%;transform:translateX(-50%);display:flex;gap:19px;white-space:nowrap}
#race-hints>span{display:flex;gap:7px;align-items:center;font-size:8px;color:#d5e2cdcc;letter-spacing:.45px}
#race-hints kbd{font-size:8px;padding:4px 5px}
#altitude-display{position:absolute;right:43px;bottom:305px;text-align:right;display:flex;flex-direction:column;gap:7px}
#altitude-display small{font-size:8px;letter-spacing:1.2px;color:#d3e2cccc}
#altitude-display>b{font-size:25px;font-weight:500;font-variant-numeric:tabular-nums}
#altitude-display b>span{font-size:10px}
#altitude-display>span{font-size:9px;color:#cee0cbaa}
#toast{position:fixed;top:122px;left:50%;transform:translate(-50%,-12px);max-width:90vw;padding:13px 22px;background:#162b2bed;border:1px solid #b7d1b436;border-radius:5px;box-shadow:0 6px 30px #00171422;color:#edf6df;font-size:11px;letter-spacing:.1px;z-index:150;pointer-events:none;opacity:0;transition:opacity .2s,transform .2s;text-align:center}
#toast.show{opacity:1;transform:translate(-50%,0)}
#fatal-error{position:fixed;inset:0;background:#132526;z-index:300;display:flex;align-items:center;justify-content:center}
#fatal-error>div{max-width:560px;padding:35px}
#fatal-error h2{font-size:33px;line-height:1.2;font-style:italic;letter-spacing:-1px}
#fatal-error p{font-size:14px;line-height:1.8;color:#a9c3b4;margin-bottom:25px}
#touch-controls{display:none}
body.racing #home-screen,body.racing #home-shade,body.racing #main-header{display:none}
body:not(.racing) #race-hud{display:none}
@media(min-width:1600px) {
  .home-copy{left:6%;top:19%}
  .home-bottom,.home-note{left:6%;right:6%}
  .hero-ride{right:9%;bottom:23%}
  .world-shortcut{margin-top:40px}
  :where(.omni-stage) h1{font-size:88px}
  .home-copy>p{font-size:18px;margin-bottom:30px}
  .primary-button{min-height:60px;font-size:14px}
  .home-bottom{bottom:65px;padding-top:27px}
  .quick-category{max-width:160px;padding:15px}
  .home-note{bottom:25px}
}
/* Lab: was @media(max-height:800px) and (min-width:900px); the stage is shorter than the window by the Lab top bar. */
@container omni (max-height:800px) and (min-width:900px) {
  #main-header{height:78px}
  .home-copy{top:16%;left:48px}
  :where(.omni-stage) h1{font-size:64px;margin-bottom:19px}
  .home-copy>p{font-size:14px;margin-bottom:20px;line-height:1.55}
  .primary-button{min-height:49px}
  .world-shortcut{margin-top:19px;padding-top:13px}
  .world-shortcut>span:first-child{height:52px;width:68px}
  .home-bottom{left:48px;right:48px;bottom:38px;padding-top:16px}
  .hero-ride{bottom:21%}
  .hero-ride h2{font-size:35px}
  .ride-title-row{margin:10px 0 14px}
  .home-note{left:48px;bottom:11px}
  .home-copy .setup-link{margin-top:12px}
  .quick-category{padding:9px}
  .home-bottom{gap:16px}
}
@media(max-width:1150px) and (min-width:760px) {
  #main-header{left:28px;right:28px;gap:37px}
  :where(.omni-stage) nav{gap:23px}
  .brand>span{font-size:23px}
  .hero-ride{right:5%;width:285px}
  .hero-ride h2{font-size:35px}
  .home-bottom{gap:14px}
  .quick-garage-label{display:none}
  .quick-category{gap:7px}
  .help-button{margin-left:0}
  .home-copy{left:43px}
  :where(.omni-stage) h1{font-size:65px}
  .garage-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .garage-sidebar{width:160px}
  .garage-footer .primary-button{padding:0 16px;font-size:11px}
  .garage-footer-actions{gap:10px}
  .garage-selected{max-width:320px}
  .garage-footer .secondary-button{padding:0 11px}
  .hero-ride .ride-stat-row b{font-size:22px}
  .hero-ride .ride-stat-row small{font-size:7px}
  .race-top{gap:22px}
  .race-lap,.race-timer{padding-left:22px}
  #checkpoint-label{left:60%}
  .track-layout{gap:15px;padding:20px}
  .track-card{gap:8px;padding:12px 8px}
  .track-card>svg{width:42px;height:42px}
}
@media(max-width:759px) {
  #main-header{top:0;left:20px;right:20px;height:75px;gap:12px}
  .brand{gap:8px}
  .brand>span{font-size:23px;letter-spacing:-1.1px}
  .brand svg{width:27px;height:26px}
  #main-header nav{display:none}
  .header-tools{gap:6px}
  .header-tools .icon-button{width:31px;height:31px}
  .header-tools .icon-button svg{width:14px;height:14px}
  .credit-counter{margin-right:4px;font-size:11px;gap:4px}
  .coin-symbol{font-size:17px}
  #fullscreen-toggle{display:none}
  #home-shade{background:linear-gradient(180deg,#0f2527ad 0%,#102a2b73 28%,transparent 49%,#102724a8 63%,#102724f7 81%)}
  .home-copy{left:24px;right:24px;top:98px;pointer-events:none}
  :where(.omni-stage) h1{font-size:44px;letter-spacing:-2.7px;line-height:.96;margin-bottom:15px}
  .home-copy>p{font-size:11px;line-height:1.6;margin-bottom:20px;color:#d3dfd1;max-width:200px}
  .home-actions{position:fixed;left:24px;right:24px;bottom:141px;gap:20px;pointer-events:auto}
  .home-actions .primary-button{flex:1;min-height:51px;font-size:12px;max-width:260px}
  .home-actions .text-button{font-size:11px;white-space:nowrap;gap:8px}
  .setup-link{position:fixed;left:24px;bottom:119px;margin-top:0;pointer-events:auto;font-size:9px}
  .world-shortcut{position:fixed;left:24px;right:24px;bottom:63px;max-width:none;width:calc(100% - 48px);border-top:0;margin:0;padding:0;gap:10px;pointer-events:auto}
  .world-shortcut>span:first-child{width:54px;height:40px}
  .world-shortcut-copy{gap:3px}
  .world-shortcut-copy small{font-size:7px;letter-spacing:1.1px}
  .world-shortcut-copy b{font-size:12px}
  .world-shortcut-copy>span{font-size:8px}
  .hero-ride{left:24px;right:24px;bottom:220px;width:auto;display:flex;justify-content:space-between;align-items:center;gap:12px}
  .ride-index{display:none}
  .ride-title-row{margin:0;flex:1}
  .hero-ride h2{font-size:29px;letter-spacing:-1px}
  .ride-title-row small{font-size:7px;letter-spacing:1.7px;margin-bottom:7px}
  .ride-title-row>.round-button{width:35px;height:35px;display:flex;margin-left:15px;flex-shrink:0}
  .ride-title-row>.round-button svg{width:16px;height:16px}
  .ride-stat-row{padding:0;margin-left:6px;border:0;gap:10px}
  .ride-stat-row>span:not(:first-child){display:none}
  .ride-stat-row b{font-size:24px}
  .ride-stat-row small{font-size:6px;letter-spacing:.4px;white-space:nowrap}
  .home-bottom{bottom:15px;left:24px;right:24px;padding:9px 0 0;gap:0}
  .quick-garage-label,.help-button,.home-note{display:none}
  #quick-categories{gap:7px;justify-content:space-between}
  .quick-category{border:0;padding:3px 0;justify-content:center;max-width:none;flex:0;gap:6px}
  .quick-category svg{width:20px;height:20px}
  .quick-category span{font-size:8px;font-weight:400}
  .quick-category small{display:none}
  .garage-sidebar{width:100%;padding:13px 16px;display:flex;flex-direction:row;overflow:auto;gap:5px;border-right:0;border-bottom:1px solid var(--line);flex-shrink:0}
  .garage-filter{padding:8px 10px;font-size:10px;white-space:nowrap;gap:7px}
  .garage-filter svg{width:15px;height:15px}
  .garage-filter small{display:none}
  .garage-sidebar-note{display:none}
  .garage-layout{flex-direction:column}
  .garage-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .garage-scroll{padding:15px}
  .garage-footer{padding:14px 16px;gap:14px;flex-direction:column;align-items:stretch}
  .garage-selected{max-width:none}
  .garage-selected>b{font-size:16px}
  .garage-selected p{font-size:10px;line-height:1.5;margin-top:4px}
  .paint-control{margin-top:11px;gap:8px}
  .garage-footer-actions{justify-content:space-between;gap:10px}
  .garage-footer-actions .primary-button{font-size:10px;min-height:42px;padding:0 14px;flex:1;justify-content:center;gap:17px}
  .garage-footer-actions .secondary-button{min-height:42px;font-size:10px;padding:0 14px}
  .garage-footer-actions .secondary-button svg{width:14px;height:14px}
  .modal-header{padding:19px 18px;gap:12px}
  .modal-header h2{font-size:24px;letter-spacing:-1px}
  .modal-header .modal-eyebrow{font-size:8px;letter-spacing:1.3px;margin-bottom:7px}
  .modal-header-right{gap:9px}
  .search-field{width:100%;max-width:none;height:34px;font-size:11px}
  .garage-search-header{display:flex;flex-direction:column;align-items:stretch;gap:14px}
  .garage-header-main{display:flex;justify-content:space-between;gap:12px;align-items:center}
  .modal-header-right .search-field{display:none}
  #game-modal{width:calc(100vw - 24px);height:calc(100dvh - 30px);max-height:calc(100dvh - 30px);border-radius:7px}
  #game-modal.compact,#game-modal.wide-help{width:calc(100vw - 24px);max-width:calc(100vw - 24px);height:auto;max-height:calc(100dvh - 30px)}
  .track-layout{display:flex;flex-direction:column;padding:16px;gap:16px}
  .track-grid{gap:8px}
  .track-card{min-height:76px;padding:11px 10px;gap:9px}
  .track-card>svg{width:42px;height:40px}
  .track-card b{font-size:10px}
  .track-card small{font-size:8px}
  .track-preview{padding:18px;min-height:290px}
  .track-preview-art{min-height:120px;max-height:160px}
  .track-preview h3{font-size:24px}
  .track-preview p{font-size:11px}
  .track-measures{padding-top:12px}
  .modal-footer{padding:15px 18px;gap:12px}
  .modal-footer .primary-button{min-height:46px;font-size:11px;padding:0 17px;gap:20px}
  .modal-footer p{font-size:9px;max-width:180px}
  .settings-body{padding:8px 20px 18px}
  .setting-row{gap:17px;padding:15px 0}
  .setting-row>label,.setting-copy{font-size:11px}
  .setting-row small{font-size:9px;max-width:200px}
  .setting-row select{min-width:110px;max-width:150px;font-size:10px}
  .mode-button{font-size:9px;padding:9px}
  .save-tools span{font-size:8px}
  .control-guide{padding:20px}
  .guide-grid{grid-template-columns:1fr;gap:0}
  .guide-note{grid-template-columns:1fr;gap:16px}
  .guide-intro{font-size:12px;margin-bottom:18px}
  .guide-row{font-size:11px}
  .pause-content{padding:30px 23px}
  .pause-content h2{font-size:37px}
  .pause-content p{font-size:11px}
  .tune-body{padding:20px}
  .upgrade-row{padding:14px;gap:12px}
  .upgrade-copy b{font-size:12px}
  .upgrade-copy p{font-size:9px}
  .upgrade-icon{width:31px;height:31px}
  .upgrade-row button{font-size:9px;padding:10px}
  .tune-intro{font-size:11px}
  .results-body{padding:22px 20px}
  .result-position{font-size:78px}
  .result-heading{gap:22px}
  .result-heading h3{font-size:21px}
  .result-heading p{font-size:10px}
  .result-stats{gap:12px;margin:20px 0;padding:17px 0}
  .result-stats b{font-size:19px}
  .result-stats small{font-size:7px}
  .standings-table{font-size:9px}
  .standings-table td{padding:8px 4px}
  .race-top{left:20px;top:22px;gap:16px}
  .race-top small{font-size:7px;letter-spacing:1px}
  .race-position strong,.race-lap strong{font-size:36px;letter-spacing:-2px}
  .race-position>div>span,.race-lap>div>span{font-size:11px}
  .race-position>div,.race-lap>div{gap:5px;margin-top:5px}
  .race-lap{padding-left:14px}
  .race-timer{padding-left:14px}
  .race-timer strong{font-size:18px;margin-top:10px}
  .race-timer>span{font-size:6px;margin-top:6px}
  .race-controls-top{top:87px;right:18px}
  .race-controls-top>div{gap:7px}
  .race-controls-top .icon-button{height:33px;width:33px;background:#0e282c70}
  .race-controls-top .icon-button svg{width:14px}
  .race-controls-top>span{font-size:7px;letter-spacing:.8px;margin-top:10px}
  .race-controls-top>span:last-child{font-size:6px}
  .minimap-panel{left:17px;bottom:125px;width:136px;padding:9px 9px 8px}
  .minimap-panel canvas{height:89px}
  .minimap-panel>div>span:first-child{font-size:6px;letter-spacing:.5px}
  .minimap-panel>div>span:last-child{font-size:5px;letter-spacing:0}
  .minimap-panel footer{font-size:6px;letter-spacing:0}
  .speedometer{right:12px;bottom:130px;width:166px;height:161px}
  .speedometer>svg{height:151px}
  .speed-number{top:48px}
  .speed-number b{font-size:49px;letter-spacing:-3px}
  .speed-number>span{font-size:7px;margin-top:8px}
  .boost-meter{left:13px;right:13px;bottom:11px}
  .boost-meter>div:first-child{font-size:6px;letter-spacing:.6px;margin-bottom:5px}
  .boost-meter kbd{font-size:6px;padding:2px 3px}
  .boost-track{height:5px}
  #ride-hud-label{font-size:6px;bottom:-4px;letter-spacing:.8px}
  #race-hints{display:none}
  #checkpoint-label{top:26px;left:auto;right:19px;transform:none;font-size:6px;letter-spacing:.7px;gap:7px}
  #checkpoint-label b{font-size:16px}
  #leaderboard{top:178px;right:18px;width:110px}
  .leader-row{padding:6px 8px;font-size:8px;gap:8px}
  .leader-row small{font-size:6px}
  #altitude-display{bottom:322px;right:24px}
  #altitude-display small{font-size:7px}
  #altitude-display>b{font-size:21px}
  #altitude-display>span{font-size:8px}
  #off-course{bottom:313px;font-size:9px;max-width:210px;width:210px;padding:11px}
  #off-course span{font-size:7px}
  #countdown strong{font-size:114px}
  #countdown small{font-size:8px;letter-spacing:1.5px}
  #toast{top:86px;font-size:10px;padding:11px 16px;max-width:90vw;width:max-content}
}
@media(pointer:coarse),(max-width:899px) {
  #touch-controls{position:absolute;left:18px;right:18px;bottom:22px;display:flex;justify-content:space-between;align-items:flex-end;pointer-events:none;gap:8px}
  #touch-controls button{pointer-events:auto;touch-action:none;user-select:none;-webkit-user-select:none;width:53px;height:61px;border-radius:8px;border:1px solid #d4e4ce5c;background:#102d30b3;backdrop-filter:blur(7px);color:#e4efd5;font-size:16px;font-weight:600;line-height:1.6}
  #touch-controls button:active,#touch-controls button.pressed{background:#a9cc7b99;border-color:#d9fa45}
  .touch-steering,.touch-pedals{display:flex;gap:7px;align-items:flex-end}
  #touch-controls .touch-action{font-size:8px;width:44px;height:45px;margin-left:2px}
  #touch-controls .touch-throttle{height:79px;background:#d9fa45d9;border-color:#e5ff83;color:#253b26;font-size:12px;width:58px}
  #touch-controls .touch-boost{width:48px;font-size:8px;height:45px;border-color:#d9fa4580;color:var(--lime)}
  .touch-pedals button[data-key=KeyS]{font-size:8px;width:46px}
  #touch-flight{position:absolute;bottom:90px;left:50%;transform:translateX(-50%);display:flex;gap:8px}
  #touch-flight button{width:56px;height:33px;font-size:8px}
  .minimap-panel{bottom:130px}
  .speedometer{bottom:135px}
  #race-hints{display:none}
}
@media(max-width:899px) and (orientation:landscape) {
  #main-header{height:60px}
  .home-copy{top:83px;left:28px}
  :where(.omni-stage) h1{font-size:39px;line-height:.95;letter-spacing:-2px;margin-bottom:12px}
  .home-copy>p{font-size:10px;line-height:1.5;margin-bottom:12px}
  .home-actions{position:static;gap:14px;max-width:300px}
  .home-actions .primary-button{min-height:39px;font-size:10px}
  .home-actions .text-button{font-size:10px}
  .setup-link{position:static;margin-top:10px;font-size:8px}
  .world-shortcut{position:static;margin-top:14px;width:285px}
  .world-shortcut>span:first-child{height:39px;width:50px}
  .hero-ride{left:auto;right:34px;bottom:90px;width:260px;display:block}
  .hero-ride h2{font-size:25px}
  .ride-title-row small{font-size:7px}
  .ride-stat-row{display:flex;margin:14px 0 0;padding-top:12px;border-top:1px solid var(--line)}
  .ride-stat-row>span:not(:first-child){display:flex}
  .ride-stat-row b{font-size:19px}
  .ride-stat-row small{font-size:6px}
  .home-bottom{left:28px;right:28px;bottom:16px}
  .home-note{display:none}
  .quick-garage-label{display:none}
  .quick-category{padding:6px 10px}
  .quick-category span{font-size:9px}
  .quick-category small{display:none}
  .quick-category svg{width:19px;height:19px}
  .help-button{font-size:9px}
  .race-top{top:18px;left:23px;gap:17px}
  .race-top small{font-size:7px}
  .race-position strong,.race-lap strong{font-size:35px}
  .race-timer strong{font-size:19px}
  .race-controls-top{top:17px;right:22px}
  .race-controls-top>span{font-size:7px;margin-top:8px}
  #checkpoint-label{top:23px;left:57%;right:auto;font-size:7px;gap:6px}
  #checkpoint-label b{font-size:16px}
  #leaderboard{display:none}
  .minimap-panel{bottom:108px;left:22px;width:133px;padding:8px}
  .minimap-panel canvas{height:81px}
  .minimap-panel>div,.minimap-panel footer{font-size:6px}
  .minimap-panel>div>span:last-child{font-size:5px}
  .speedometer{right:22px;bottom:108px;width:159px;height:152px}
  .speedometer>svg{height:145px}
  .speed-number{top:46px}
  .speed-number b{font-size:45px}
  .speed-number>span{font-size:7px;margin-top:7px}
  .boost-meter{left:12px;right:12px;bottom:10px}
  .boost-meter>div:first-child{font-size:6px}
  .boost-meter kbd{font-size:6px}
  #ride-hud-label{font-size:6px}
  #touch-controls{bottom:17px;left:22px;right:22px}
  #touch-controls button{height:54px;width:56px}
  #touch-controls .touch-throttle{height:64px}
  #off-course{bottom:96px;font-size:9px;padding:10px 16px}
  #off-course span{font-size:7px}
  #countdown strong{font-size:95px}
  #countdown small{font-size:8px}
  #altitude-display{right:195px;bottom:127px}
  #altitude-display>b{font-size:22px}
  #touch-flight{bottom:0;left:50%}
  #game-modal{height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);width:calc(100vw - 32px)}
  .garage-sidebar{width:146px;flex-direction:column;overflow:auto}
  .garage-layout{flex-direction:row}
  .garage-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .garage-footer{flex-direction:row;padding:12px 18px}
  .garage-selected p{display:none}
  .garage-selected>b{font-size:13px}
  .garage-footer-actions .primary-button{min-height:39px;font-size:9px}
  .garage-footer-actions .secondary-button{min-height:39px;font-size:9px}
  .garage-footer .paint-control{margin-top:9px}
  .paint-swatch{width:14px;height:14px}
  .garage-filter{padding:9px;font-size:9px}
  .modal-header{padding:15px 20px}
  .modal-header h2{font-size:24px}
  .modal-header .modal-eyebrow{font-size:7px}
  .track-layout{display:grid;grid-template-columns:1.15fr 1fr}
  .track-preview{min-height:250px}
  .track-card>svg{width:32px}
  .track-card{padding:9px;min-height:69px}
  .track-card b{font-size:9px}
  .track-card small{font-size:7px}
  .track-preview h3{font-size:21px}
  .track-preview-art{min-height:115px}
  .pause-content{padding:22px}
  .pause-content h2{font-size:31px}
  .pause-content .pause-symbol{display:none}
  .pause-actions{display:grid;grid-template-columns:1fr 1fr;max-width:none}
  .pause-actions .text-button{grid-column:1/-1}
  .guide-grid{grid-template-columns:1fr 1fr}
  .guide-note{grid-template-columns:1fr 1fr}
  .modal-footer .primary-button{min-height:41px}
  .home-shade{opacity:1}
}
@media(max-width:380px) and (orientation:portrait) {
  .brand>span{font-size:20px}
  .header-tools{gap:5px}
  .credit-counter{display:none}
  .home-copy{top:94px}
  :where(.omni-stage) h1{font-size:39px}
  .quick-category span{display:none}
  .home-actions{gap:16px}
  .hero-ride h2{font-size:26px}
  .hero-ride .ride-stat-row{display:none}
  .race-timer{padding-left:11px}
  .race-top{gap:12px}
  .race-lap{padding-left:12px}
  .race-controls-top>span{font-size:6px}
  #touch-controls{left:12px;right:12px;gap:5px}
  #touch-controls button{width:46px}
  #touch-controls .touch-throttle{width:49px}
  #touch-controls .touch-boost{width:40px}
  #touch-controls .touch-action{width:38px}
  .touch-steering,.touch-pedals{gap:5px}
}
@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after{transition:none!important;animation:none!important}
}
.result-actions{display:flex;gap:12px;align-items:center}
.result-position>svg{width:82px;height:90px}
.settings-body button:disabled,.setting-row select:disabled{opacity:.45;cursor:not-allowed}
.save-tools button svg{width:15px;height:15px}
.setup-link svg{width:12px;height:12px;vertical-align:middle;margin-left:9px}
.ride-card-image>svg{width:54px;height:54px;opacity:.2}
.paint-control>small{font-size:8px;letter-spacing:1.2px;margin-right:5px;color:var(--muted)}
.standings-caption{color:var(--muted);font-size:9px;letter-spacing:1.5px}
.track-measures strong small{font-size:12px}
.modal-header .icon-button{flex-shrink:0}
.ride-card img{object-fit:contain;width:100%;height:100%}
.guide-note strong{font-size:10px;letter-spacing:1px}
.settings-body .toggle-switch{accent-color:var(--lime);width:36px;height:22px;cursor:pointer}
.garage-footer-actions .primary-button svg{width:18px;height:18px}
.garage-selected{min-width:0}
.garage-selected p{max-width:690px}
.home-actions svg{width:21px;height:21px}
.text-button svg{width:15px;height:15px}
.result-actions .secondary-button{font-size:10px}
.upgrade-copy p{max-width:290px}
.save-tools{flex-wrap:wrap}
.save-tools span{flex-basis:100%}
#game-modal.compact{overflow:auto}
.track-preview-art svg{width:100%;height:100%;max-height:275px}
.search-field{min-width:190px}
.modal-header-right{display:flex;gap:20px;align-items:center}
.garage-filter span{flex:1;text-align:left}
@media(max-width:759px) {
  .modal-header-right{gap:10px}
  .search-field{display:flex!important;min-width:0;max-width:126px}
  .search-field input{width:90px;font-size:10px}
  .search-field svg{width:12px;min-width:12px}
  .modal-header:has(#ride-search){flex-wrap:wrap;gap:13px}
  .modal-header:has(#ride-search) .modal-header-right{width:100%;justify-content:space-between}
  .modal-header:has(#ride-search) .search-field{max-width:none;flex:1}
  .modal-header:has(#ride-search) input{width:100%}
  .result-actions{gap:8px}
  .result-actions .secondary-button{font-size:8px;padding:0 10px;min-height:42px}
  .result-actions .primary-button{padding:0 13px;font-size:9px;gap:12px}
  .modal-footer:has(.result-actions){flex-wrap:wrap}
  .modal-footer:has(.result-actions) p{max-width:none}
  .result-actions{width:100%}
  .result-actions button{flex:1}
  .paint-control>small{font-size:6px}
  .track-preview-art svg{max-height:150px}
  .upgrade-copy p{max-width:170px}
}
.search-field{display:flex;align-items:center;gap:9px;flex-shrink:0}
.search-field>svg{width:16px;height:16px;min-width:16px;flex-shrink:0;color:#8ba79e}
.search-field>input{color:var(--paper);background:none;border:0;outline:0;min-width:0;width:100%;font:inherit;padding:0}
.search-field>input::placeholder{color:#93aba4}
.ride-card:not(.selected) .ride-card-check{display:none}
.ride-card-copy{display:block}
.ride-stat-row small{white-space:nowrap}
.race-timer strong{font-variant-numeric:tabular-nums}
.garage-filter svg{flex-shrink:0}
.result-position>svg{max-width:100%}
