:root {
  color-scheme: dark;
  --ink: #111718;
  --panel: #1b2223;
  --line: #394141;
  --muted: #aeb9b7;
  --white: #f4f4ed;
  --red: #ff4936;
  --red-dark: #b72c1c;
  --body: "Inter", "Segoe UI", Arial, sans-serif;
  --display: "Barlow Condensed", "Bahnschrift Condensed", Bahnschrift, "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, "Liberation Mono", monospace;
  --gutter: clamp(20px, 4.5vw, 88px);
  --mast: clamp(48px, 6.8dvh, 68px);
  --footer: 42px;
}
* {box-sizing:border-box}
html, body {width:100%; min-height:100%; margin:0; background:var(--ink); color:var(--white); font-family:var(--body)}
button, a, select {font:inherit; color:inherit}
button {appearance:none; border:0; cursor:pointer; border-radius:0}
button, a, select {-webkit-tap-highlight-color:transparent}
button:focus-visible, a:focus-visible, select:focus-visible {outline:3px solid #ffc883; outline-offset:2px; z-index:2}
button:disabled {opacity:.45; cursor:default}
[hidden] {display:none !important}
.symbols {position:absolute; width:0; height:0; overflow:hidden; pointer-events:none}
.icon, .change {display:block; width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; flex:none}
#screen {
  position:relative; isolation:isolate; width:100%; height:100vh; height:100svh; height:100dvh; min-height:380px;
  display:grid; grid-template-rows:var(--mast) minmax(0, 1fr) auto var(--footer); grid-template-columns:minmax(0, 1fr);
  overflow:hidden; background:var(--ink); font-size:16px;
}
.mast {
  position:relative; z-index:3; grid-area:1 / 1; display:flex; justify-content:space-between; align-items:center; gap:12px;
  padding:0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
  background:#101617; border-bottom:1px solid #343a3a;
}
.mast-left, .tools {display:flex; align-items:center; gap:12px}
.mast-left {gap:clamp(14px, 2.3vw, 35px)}
.arcade {display:inline-flex; align-items:center; gap:7px; text-decoration:none; font-size:13px; font-weight:600; color:#c0c8c6}
.arcade .icon {width:15px; height:15px}
.brand {display:inline-flex; align-items:center; gap:9px; border-left:1px solid var(--line); padding-left:clamp(14px, 2.3vw, 35px); font:italic 780 21px/1 var(--display); letter-spacing:-.03em; white-space:nowrap}
.brand-mark {width:38px; height:24px; color:var(--red)}
.brand b {color:#aeb8b6; font-size:.81em; font-weight:700}
.tools {gap:6px}
.icon-button {display:grid; place-items:center; flex:none; background:transparent; width:39px; height:39px; color:#d7dcd7; border:1px solid transparent}
.icon-button .icon {width:19px; height:19px}
.mute {display:none}
#sound[aria-pressed="false"] {opacity:.63}
#sound[aria-pressed="false"] .icon {color:#b4bebc}
[data-language-slot] {display:flex; align-items:center; border-right:1px solid var(--line); padding-right:12px; margin-right:4px; min-width:0}
[data-language-slot]:empty {display:none}
#screen [data-language-slot] .isk-language {min-height:34px; border-radius:3px; background:#1c2425}
@media (orientation:landscape) and (max-height:460px) {
  #screen [data-language-slot] .isk-language {min-height:26px; padding-block:2px}
}
[data-language-slot] select, [data-language-slot] button {
  background:#161d1e; color:var(--white); border:1px solid var(--line); border-radius:2px;
  padding:5px 8px; max-width:130px; min-height:33px; font:650 12px/1.1 var(--body);
}
#heroScene {position:relative; z-index:0; grid-area:2 / 1; min-width:0; min-height:0; overflow:hidden; background:#4a4b44}
#world {display:block; width:100%; height:100%; touch-action:none}
#menu {display:contents}
.hero-copy {
  z-index:1; position:relative; grid-area:2 / 1; display:flex; align-items:center; padding:12px var(--gutter) 10px;
  pointer-events:none; background:linear-gradient(90deg, rgba(7,15,17,.89) 0%,rgba(9,17,18,.78) 17%,rgba(9,17,18,.54) 33%,rgba(8,16,18,.15) 48%,transparent 67%);
}
.hero-inner {width:min(40vw, 610px); min-width:320px; pointer-events:auto}
.series, .pick-label, .timing-data > div > span, .gear small, .paddock-head h2 {
  display:flex; align-items:center; gap:10px; font:700 12px/1.25 var(--display); letter-spacing:.13em; text-transform:uppercase;
}
.series {color:#e3e6df; letter-spacing:.15em}
.race-bars {display:inline-block; width:27px; height:10px; flex:none; transform:skewX(-28deg); background:repeating-linear-gradient(90deg, var(--red) 0 5px, transparent 5px 8px)}
h1, h2, p {margin:0}
h1 {margin:clamp(14px, 2.25dvh, 27px) 0 0; font:italic 850 clamp(60px, min(7.25vw, 12.2dvh), 142px)/.83 var(--display); letter-spacing:-.072em; text-transform:uppercase; font-stretch:condensed; transform-origin:left center}
h1 span {display:block}
h1 span + span {color:var(--red); margin-top:.07em}
#menuMission {color:#e0e4de; font:500 clamp(14px, 1.15vw, 17px)/1.44 var(--body); margin:clamp(13px, 2.5dvh, 31px) 0 0; max-width:38ch; text-wrap:pretty; text-shadow:0 1px 3px #091010}
#menuMission:empty {display:none}
.hero-actions, .panel-actions {display:flex; align-items:center; flex-wrap:wrap; gap:9px; margin-top:clamp(14px, 2.9dvh, 33px)}
.button-primary, .button-secondary, .button-quiet {
  display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:45px; padding:10px clamp(15px, 1.6vw, 26px);
  font:750 15px/1.15 var(--body); transition:background .14s, border-color .14s, color .14s;
}
.button-primary {background:var(--red); color:#160f0d; border:1px solid var(--red); clip-path:polygon(0 0,100% 0,100% calc(100% - 9px),calc(100% - 9px) 100%,0 100%)}
.button-primary:focus-visible {outline-offset:-4px; outline-color:#fff}
.button-primary .icon, .button-secondary .icon {width:18px; height:18px}
.button-secondary {background:#192022df; color:#f6f4eb; border:1px solid #737976}
.button-quiet {background:transparent; color:#cbd1cc; border:1px solid transparent}
.paddock {position:relative; z-index:2; grid-area:3 / 1; background:var(--ink); border-top:2px solid #404441; padding:clamp(10px, 1.65dvh, 23px) var(--gutter) clamp(15px, 2.15dvh, 29px)}
.paddock-head {display:flex; align-items:center; justify-content:space-between; margin:0 0 clamp(9px, 1.4dvh, 18px)}
.paddock-head h2 {font-size:clamp(14px, 1.15vw, 17px); letter-spacing:.12em; gap:9px; color:#ecefe8}
.paddock-head h2 i {width:15px; height:3px; background:var(--red)}
.standings {display:flex; align-items:center; gap:8px; padding:4px 0 4px 8px; background:transparent; color:#cdd4ce; font-weight:650; font-size:13px}
.standings .icon {width:15px; height:15px; color:#cfaf80}
.points {margin-left:3px; padding:2px 7px; font:550 11px/1.2 var(--mono); color:#c4cbc6; background:#293132}
.configuration {display:grid; grid-template-columns:1.5fr 1.04fr 1fr 1fr; gap:8px}
.pick {
  position:relative; display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:6px; text-align:left;
  min-width:0; min-height:clamp(73px, 11dvh, 108px); padding:13px 32px 13px clamp(12px, 1.3vw, 23px);
  border:1px solid #3a4242; background:linear-gradient(115deg, #202829, #1b2223);
}
.pick::after {content:""; position:absolute; inset:auto 10px 0 auto; width:18px; height:1px; background:#626966}
.pick-label {min-height:15px; max-width:100%; gap:7px; color:#b0bbb8; font-size:11px; letter-spacing:.1em}
.pick-label .icon {width:15px; height:15px; color:#acb5ae}
.pick-label b {color:var(--red); font:600 10px/1 var(--mono); letter-spacing:.035em}
.pick strong {max-width:100%; font:680 clamp(17px, 1.7vw, 27px)/1.08 var(--display); letter-spacing:-.022em; text-wrap:balance}
.pick small {color:#aeb7b3; font:500 11px/1.1 var(--mono)}
.pick .change {position:absolute; right:12px; top:50%; transform:translateY(-50%); width:13px; height:13px; color:#a3aaa6}
.track-pick {padding-right:clamp(65px, 8.5vw, 145px); gap:4px}
#menuMap {position:absolute; right:23px; top:50%; transform:translateY(-50%); width:clamp(48px, 6vw, 106px); height:56%; opacity:.88; pointer-events:none}
.menu-footer {grid-area:4 / 1; display:flex; align-items:center; justify-content:space-between; padding:0 var(--gutter); background:#0f1516; border-top:1px solid #303738; color:#b0bab6; font:500 12px/1 var(--body)}
.key-strip, .key-strip > span {display:flex; align-items:center; gap:5px}
.key-strip {gap:clamp(10px, 1.7vw, 30px)}
kbd {min-width:18px; min-height:17px; padding:1px 3px; text-align:center; font:500 11px/13px var(--mono); border:1px solid #4a5453; border-bottom-width:2px; border-radius:3px; color:#d5d9d5}
.key-strip > span > span {margin-left:2px}
.touch-footer {display:none}
.footer-signature {display:flex; align-items:center; gap:3px; transform:skew(-30deg)}
.footer-signature i {width:17px; height:4px; background:#a5a9a0}
.footer-signature i:first-child {width:42px; background:#4d5652}
.footer-signature i:last-child {width:9px; background:var(--red)}
#screen:not([data-view="menu"]) {display:block; min-height:0}
#screen:not([data-view="menu"]) .mast {display:none}
#screen:not([data-view="menu"]) #heroScene {position:absolute; inset:0}
#hud {position:absolute; inset:0; pointer-events:none; z-index:2; font-variant-numeric:tabular-nums}
.timing, .live-tools, #hudMap, .instruments, #touchControls, #countdown, #hudCue {position:absolute}
.timing {top:max(16px,env(safe-area-inset-top)); left:max(18px,env(safe-area-inset-left)); min-width:220px; border-left:3px solid var(--red); background:#12191aeb; box-shadow:0 2px 8px #1114}
.session {display:flex; align-items:center; gap:8px; padding:7px 12px; border-bottom:1px solid #69706b77; color:#e7eae2; font:720 11px/1.1 var(--display); text-transform:uppercase; letter-spacing:.1em}
.session .race-bars {width:17px; height:7px; background-size:16px}
.timing-data {display:flex; gap:14px; padding:9px 12px}
.timing-data > div {display:grid; gap:4px}
.timing-data > div > span {color:var(--muted); font-size:10px}
.timing-data b {font:650 19px/1 var(--display)}
.live-tools {top:max(16px,env(safe-area-inset-top)); right:max(18px,env(safe-area-inset-right)); display:flex; gap:6px; pointer-events:auto}
.live-tools .icon-button {border:1px solid #6c777288; background:#13191be8}
#hudMap {bottom:max(18px,env(safe-area-inset-bottom)); left:max(18px,env(safe-area-inset-left)); width:clamp(90px, 13vw, 176px); height:clamp(62px, 8.5vw, 112px); border:1px solid #727a7180; background:#12191ad9}
.instruments {bottom:max(18px,env(safe-area-inset-bottom)); right:max(18px,env(safe-area-inset-right)); border-right:3px solid var(--red); padding:8px 11px; background:#11191be8; color:var(--white)}
.readout {display:flex; align-items:baseline; justify-content:flex-end; gap:7px; white-space:nowrap}
#hudSpeed {font:italic 780 clamp(35px, 4.6vw, 76px)/1 var(--display); letter-spacing:-.07em}
.readout > span {font:650 10px/1 var(--display); text-transform:uppercase; color:#ccd2cb}
.gear {border-left:1px solid #69706b; padding-left:10px; align-self:center; text-align:center}
.gear small {font-size:9px; color:#b8c2bc; letter-spacing:.03em}
.gear strong {font:italic 720 28px/.95 var(--display); color:#ff8b6b}
.g-readings {display:flex; justify-content:flex-end; flex-wrap:wrap; gap:7px; border-top:1px solid #69706b99; padding-top:4px; margin-top:5px; color:#c2cbc5; font:500 10px/1.2 var(--mono)}
.g-readings b {color:#f0f0e8}
#hudCue {left:50%; top:15%; transform:translateX(-50%); max-width:78%; padding:5px 10px; color:#fff3d0; background:#121a1de6; border-left:3px solid #ffb96e; text-align:center; font:650 14px/1.2 var(--body)}
#countdown {left:50%; top:33%; transform:translate(-50%,-50%); font:italic 820 clamp(48px, 8vw, 105px)/1 var(--display); text-align:center; text-shadow:0 3px 12px #081011c2; color:#fff4e6}
#hudCue:empty, #countdown:empty {display:none}
#touchControls {display:none; align-items:flex-end; justify-content:space-between; gap:8px; left:max(10px,env(safe-area-inset-left)); right:max(10px,env(safe-area-inset-right)); bottom:max(10px,env(safe-area-inset-bottom))}
.steering, .pedals {display:flex; align-items:stretch; gap:6px}
#touchControls button {display:grid; place-items:center; min-width:48px; height:52px; padding:0 12px; pointer-events:auto; touch-action:none; user-select:none; -webkit-user-select:none; background:#131a1be8; border:1px solid #8c9791aa; color:#eef0e6; font:750 13px/1 var(--display); text-transform:uppercase}
#touchControls [data-drive="left"] .icon {transform:rotate(180deg)}
#touchControls [data-drive="gas"] {background:#e64733f2; color:#160c09; border-color:#e87161; min-width:56px}
#touchControls button:active, #touchControls button.active, #touchControls [aria-pressed="true"] {background:#efe6ce; color:#1e211c}
.overlay {position:absolute; z-index:10; inset:0; display:grid; place-items:center; padding:clamp(12px, 4vw, 50px); background:rgb(6 12 14 / .78); backdrop-filter:blur(4px)}
.panel {width:min(100%, 530px); max-height:100%; overflow:auto; overscroll-behavior:contain; padding:clamp(18px, 3.2vw, 41px); border:1px solid #4e5756; border-top:3px solid var(--red); background:#172021; box-shadow:0 15px 80px #070c0f66}
.panel-head {display:flex; justify-content:space-between; align-items:center; gap:10px; margin-top:-7px}
.panel-head .icon-button {width:36px; height:36px; margin-right:-7px}
.panel h2 {font:italic 780 clamp(32px, 4.4vw, 58px)/1.04 var(--display); letter-spacing:-.045em; text-transform:uppercase; margin:15px 0 17px}
.panel-note {font:500 15px/1.45 var(--body); color:#c6d0c9; margin-bottom:16px}
.panel-note:empty {display:none}
.options {display:grid; gap:6px}
.option {position:relative; display:grid; gap:5px; width:100%; min-height:54px; padding:11px 32px 11px 14px; text-align:left; border:1px solid #485250; border-left:3px solid #485250; background:#20292a; font:670 17px/1.2 var(--body)}
.option small {font:500 13px/1.4 var(--body); color:#bfc8c1}
.option[aria-pressed="true"] {border-color:#83594e; border-left-color:var(--red); background:#302a27}
.option[aria-pressed="true"]::after {content:""; position:absolute; right:12px; top:50%; transform:translateY(-60%) rotate(45deg); width:5px; height:10px; border:solid var(--red); border-width:0 2px 2px 0}
.help-keys {display:grid; grid-template-columns:1fr 1fr; gap:0 24px}
.help-keys > div, .result-row {display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); padding:10px 0; gap:10px}
.help-keys span, .result-row span {color:#c3cdc5; font-size:14px}
.help-keys b, .help-keys b span {font:600 12px/1 var(--mono); white-space:nowrap; color:var(--white)}
.driver-tip {margin-top:18px; color:#c6d0c9; font-size:14px; line-height:1.5}
.result-row b {font:690 19px/1.1 var(--display); text-align:right}
.classification {margin-top:12px; font-size:14px}
.classification summary {cursor:pointer; color:#f3d3ab; padding:8px 0}
.classification .result-row {padding:6px 0}
.result-row.player-row > * {color:#ffc395}
#hudCue[data-urgency="brake"] {border-color:#ff5843; color:#fff2e6; background:#582a23ef}
@media (max-width:355px) and (orientation:portrait) {
  #screen .brand > span {display:none}
  #screen .mast {gap:6px}
  #screen .mast-left {gap:7px}
  #screen .brand {padding-left:8px}
}
.panel-actions {gap:7px; margin-top:22px}
@media (hover:hover) {
  .arcade:hover, .standings:hover, .button-quiet:hover {color:var(--white)}
  .icon-button:hover {background:#2a3233; border-color:#515956}
  .button-primary:hover {background:#ff6955; border-color:#ff6955}
  .button-secondary:hover, .pick:hover, .option:hover {background:#303a39; border-color:#858c82}
  .pick:hover .change {color:var(--red)}
}
@media (pointer:coarse), (max-width:650px) {
  #touchControls {display:flex}
  #hudMap, .instruments {bottom:calc(max(10px, env(safe-area-inset-bottom)) + 62px)}
  .key-strip {display:none}
  .touch-footer {display:inline}
}
@media (max-width:900px) {
  :root {--gutter:clamp(14px, 3.2vw, 29px); --footer:34px}
  .configuration {grid-template-columns:1.37fr 1.07fr .85fr 1fr; gap:6px}
  .pick {padding-right:21px}
  .pick .change {right:7px; width:10px; height:10px}
  .track-pick {padding-right:58px}
  #menuMap {right:12px; width:41px}
  .hero-actions {gap:7px}
  .hero-actions button {padding-inline:14px}
  .hero-inner {width:43vw}
}
@media (orientation:portrait) and (max-width:780px) {
  :root {--mast:49px; --footer:30px; --gutter:clamp(13px, 4vw, 25px)}
  #screen[data-view="menu"] {min-height:540px; grid-template-rows:var(--mast) minmax(90px,1fr) auto auto var(--footer)}
  .mast-left {gap:12px}
  .arcade {font-size:12px; gap:4px}
  .brand {font-size:17px; padding-left:12px; gap:5px}
  .brand-mark {width:28px; height:19px}
  .tools {gap:0}
  .icon-button {width:34px; height:38px}
  [data-language-slot] {padding-right:4px; margin-right:2px; border-right:0}
  [data-language-slot] select, [data-language-slot] button {max-width:min(90px,23vw); padding-inline:4px}
  .hero-copy {grid-area:3 / 1; align-items:start; padding:12px var(--gutter) 14px; background:#182020; border-bottom:1px solid #394240}
  .hero-copy::before {content:""; position:absolute; bottom:100%; left:0; width:100%; height:26px; background:linear-gradient(transparent,#18202080); pointer-events:none}
  .hero-inner {min-width:0; width:100%}
  .series {gap:8px; font-size:10px; letter-spacing:.11em}
  .race-bars {width:21px; height:8px; background-size:8px 8px}
  h1 {font-size:clamp(32px,9.4vw,65px); line-height:.99; margin:6px 0 0; white-space:normal; letter-spacing:-.064em}
  h1 span {display:inline}
  h1 span + span {margin:0}
  #menuMission {margin:5px 0 0; max-width:none; font-size:13px; line-height:1.3}
  .hero-actions {margin-top:10px; gap:6px}
  .hero-actions button {min-height:39px; padding:7px 11px; font-size:13px; gap:6px}
  .hero-actions button .icon {width:16px; height:16px}
  .paddock {grid-area:4 / 1; border-top:0; padding:8px var(--gutter) 12px}
  .paddock-head {margin:0 0 6px}
  .paddock-head h2 {font-size:12px; gap:6px; letter-spacing:.08em}
  .paddock-head h2 i {width:11px; height:2px}
  .standings {font-size:12px; padding-block:5px}
  .configuration {grid-template-columns:1fr 1fr; gap:5px}
  .pick {gap:3px; padding:7px 18px 7px 9px; min-height:51px}
  .pick strong {font-size:16px; line-height:1.05}
  .pick-label {min-height:11px; gap:5px; font-size:9px; letter-spacing:.08em}
  .pick-label b, .pick small {font-size:9px}
  .pick-label .icon {width:12px; height:12px}
  .track-pick {padding-right:20px}
  .track-pick strong, .track-pick small {position:relative; z-index:1}
  #menuMap {right:9px; width:36px; height:25px; opacity:.27}
  .menu-footer {grid-area:5 / 1; font-size:11px}
  .key-strip {display:none}
  .touch-footer {display:inline}
  .timing {left:8px; top:max(9px,env(safe-area-inset-top)); min-width:0}
  .session {padding:5px 8px; font-size:10px}
  .timing-data {gap:10px; padding:6px 8px}
  .timing-data b {font-size:15px}
  .timing-data > div > span {font-size:9px}
  .live-tools {right:8px; top:max(9px,env(safe-area-inset-top)); gap:3px}
  .live-tools .icon-button {width:35px; height:36px}
  #hudMap {left:9px; width:75px; height:52px}
  .instruments {right:9px; max-width:63%; padding:5px 7px}
  #hudSpeed {font-size:37px}
  .g-readings {gap:4px; font-size:9px}
  #hudCue {top:16%; font-size:12px}
  #countdown {top:31%}
  .help-keys {grid-template-columns:1fr}
  .help-keys > div {padding:6px 0}
}
@media (orientation:landscape) and (max-height:560px) {
  :root {--mast:37px; --gutter:clamp(11px, 2.7vw, 32px); --footer:0px}
  #screen {min-height:280px}
  .mast-left {gap:12px}
  .brand {font-size:15px; gap:5px; padding-left:12px}
  .brand-mark {width:25px; height:17px}
  .arcade {font-size:11px}
  .tools, .live-tools {gap:3px}
  .icon-button {width:34px; height:33px}
  .icon-button .icon {width:16px; height:16px}
  [data-language-slot] select, [data-language-slot] button {min-height:26px; padding-block:3px}
  .hero-copy {padding-block:5px}
  .hero-inner {min-width:235px; width:43vw}
  .series {gap:6px; font-size:9px; letter-spacing:.1em}
  .race-bars {width:18px; height:6px}
  h1 {font-size:clamp(32px, min(6.6vw,14dvh),64px); margin:7px 0 0}
  #menuMission {font-size:11px; margin:6px 0 0; line-height:1.2}
  .hero-actions {margin-top:7px; gap:5px}
  .hero-actions button {min-height:30px; padding:5px 9px; font-size:11px; gap:4px}
  .hero-actions button .icon {width:13px; height:13px}
  .paddock {padding:4px var(--gutter) 6px; border-top-width:1px}
  .paddock-head {margin:0 0 3px}
  .paddock-head h2 {font-size:10px; gap:5px}
  .standings {padding:2px 0 2px 4px; gap:5px; font-size:10px}
  .standings .icon {width:12px; height:12px}
  .standings .points {padding:1px 4px; font-size:10px}
  .configuration {gap:4px}
  .pick {min-height:43px; padding:5px 14px 5px 8px; gap:2px}
  .pick-label {min-height:10px; font-size:8px; gap:4px}
  .pick-label b, .pick small {font-size:8px}
  .pick-label .icon {width:11px; height:11px}
  .pick strong {font-size:clamp(12px, 2.2vw, 17px)}
  .track-pick {padding-right:37px}
  #menuMap {right:10px; width:27px}
  .menu-footer {display:none}
  .timing, .live-tools {top:max(7px, env(safe-area-inset-top))}
  .timing {min-width:0; left:max(8px, env(safe-area-inset-left))}
  .live-tools {right:max(8px,env(safe-area-inset-right))}
  .session {font-size:9px; padding:4px 7px}
  .timing-data {padding:4px 7px; gap:11px}
  .timing-data b {font-size:14px}
  .timing-data > div > span {font-size:8px}
  #hudMap {width:65px; height:43px; left:8px}
  .instruments {right:8px; padding:3px 6px}
  #hudSpeed {font-size:27px}
  .gear strong {font-size:19px}
  .g-readings {font-size:8px; margin-top:1px; padding-top:2px}
  #hudCue {top:8%; max-width:39%; font-size:10px}
  #countdown {top:31%; font-size:41px}
  #touchControls {bottom:max(5px,env(safe-area-inset-bottom)); left:max(7px,env(safe-area-inset-left)); right:max(7px,env(safe-area-inset-right))}
  #touchControls button {height:39px; min-width:45px; padding:0 9px; font-size:11px}
  .overlay {padding:9px}
  .panel {padding:12px 18px}
  .panel h2 {margin:6px 0 9px; font-size:27px}
  .panel-head .icon-button {width:30px; height:30px}
  .option {min-height:38px; padding:6px 30px 6px 9px; font-size:14px; gap:2px}
  .option small, .panel-note, .driver-tip {font-size:12px}
  .panel-note, .driver-tip {margin-bottom:6px}
  .help-keys > div, .result-row {padding:5px 0}
  .panel-actions {margin-top:9px}
  .panel-actions button {min-height:34px; padding:5px 10px; font-size:13px}
}
@media (orientation:landscape) and (max-height:560px) and (pointer:coarse), (orientation:landscape) and (max-height:560px) and (max-width:650px) {
  #hudMap, .instruments {bottom:calc(max(5px, env(safe-area-inset-bottom)) + 45px)}
}
@media (prefers-reduced-motion:reduce) {*, *::before, *::after {transition-duration:0s !important}}

/* A pit-wall selection console, with the circuit rendered in the hero above. */
#screen[data-view="menu"] { --footer: 0px; }
.hero-copy { background: linear-gradient(90deg,#0c1419ed,#0d151baa 27%,transparent 66%); }
.hero-copy h1 { letter-spacing: -.065em; }
.hero-copy #menuMission { border-left: 2px solid var(--red); padding-left: .7em; }
.hero-actions .button-primary, .panel-actions .button-primary {
  background: #ff4f35; color: #140e0c; border-radius: 0 14px 0 0;
}
.paddock {
  border-top: 1px solid #68706b;
  background: linear-gradient(110deg,#242a2a,#161d20 75%);
}
.configuration { gap: 0; border-block: 1px solid #56626080; }
.configuration .pick {
  background: transparent; border: 0; border-inline-start: 1px solid #56626080;
}
.configuration .pick:focus-visible, .configuration .pick:hover { background: #34403c; }
.configuration .track-pick { background: #252f30; border-inline-start: 3px solid var(--red); }
.configuration .change { color: var(--red); }
.pick::after { display: none; }
.overlay .panel { border-top: 3px solid var(--red); box-shadow: 0 18px 62px #070c0f88; }
@media (max-width:680px) {
  .hero-copy { background: linear-gradient(100deg,#182125,#111b21); }
  .configuration { gap: 2px; border: 0; }
  .configuration .pick { background: #222b2d; }
}
