@font-face{font-family:Oswald;src:url("fonts/oswald-bold.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}
:root{color-scheme:dark;--bg:#101316;--card:#1a1e22;--line:#30363a;--muted:#a1a9af;--light:#f3f5f2;--acid:#d8f45d;--mono:"SFMono-Regular",Consolas,"Liberation Mono",monospace;--display:Oswald,"Arial Narrow",Impact,sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--light);font:16px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;-webkit-font-smoothing:antialiased}button,select{font:inherit;color:inherit}button{cursor:pointer}button:focus-visible,select:focus-visible,.stage:focus-visible{outline:3px solid var(--acid);outline-offset:3px}button:disabled{cursor:default}button svg{pointer-events:none}button{touch-action:manipulation;-webkit-tap-highlight-color:transparent}.symbol-bank{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}.ico{display:inline-block;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.wrap{width:min(1464px,calc(100% - clamp(48px,7vw,116px)));margin-inline:auto}.top{border-bottom:1px solid var(--line);background:#121619}.top-inner{height:62px;display:flex;align-items:center;gap:20px}.brand{display:inline-flex;align-items:center;gap:9px;line-height:1;color:#f1f3ee;white-space:nowrap}.brand b{font:italic 700 26px/1 var(--display);letter-spacing:-1.5px;transform:skew(-3deg)}.brand b span{color:var(--acid)}.brand-bars{display:inline-flex;gap:3px;transform:skew(-19deg);padding-inline:3px}.brand-bars i{width:5px;height:21px;background:var(--acid)}.brand-bars i:first-child{opacity:.48}.brand-bars i:nth-child(2){opacity:.73}.brand-divider{height:20px;width:1px;background:#3a4042}.brand-section{font-size:14px;color:#b7bec1}.help-button{margin-left:auto;display:flex;align-items:center;gap:8px;padding:8px 0 8px 12px;color:#d6dbdc;background:none;border:none;font-size:14px;font-weight:550}.help-button:hover{color:var(--acid)}.help-button .ico{width:18px;height:18px}
.main{padding:clamp(25px,3.2vh,40px) 0 24px}.intro{margin-bottom:21px}.intro-line{display:flex;align-items:center;gap:10px;font:700 11px/1.3 var(--mono);letter-spacing:.125em;color:var(--acid)}.dash{width:24px;height:2px;background:var(--acid)}h1,h2,p{margin:0}h1{font:700 clamp(44px,4.75vw,75px)/1.13 var(--display);text-transform:uppercase;letter-spacing:-.035em;transform:skew(-7deg);transform-origin:left bottom;margin:5px 0 8px 1px}h1 span{color:var(--acid)}.intro p{color:#acb3b8;font-size:clamp(14px,1.05vw,17px);line-height:1.45}.dashboard{display:grid;grid-template-columns:minmax(0,1fr) clamp(290px,25.2vw,365px);gap:16px;align-items:stretch}.game-area{display:flex;flex-direction:column;min-width:0;background:var(--card);border:1px solid #343c40;border-radius:13px;overflow:hidden}.stage{isolation:isolate;position:relative;flex:1;min-height:clamp(376px,46vh,595px);overflow:hidden;background:#a6bcc5}.stage:focus-visible{outline-offset:-3px}.stage #scene{position:absolute;inset:0;display:block;width:100%;height:100%}.stage::after{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;box-shadow:inset 0 0 40px #24374622}.stage-top,.stage-bottom{position:absolute;left:16px;right:16px;display:flex;justify-content:space-between;align-items:flex-start;pointer-events:none;z-index:1}.stage-top{top:16px}.stage-bottom{bottom:14px;align-items:flex-end}.stage-label,.track-tag,.minimap,.square{background:#182025ed;color:#f0f4f4;box-shadow:0 1px 4px #16212622}.stage-label{display:flex;align-items:center;gap:8px;height:32px;padding:0 12px;border-radius:5px;font:bold 10px/1 var(--mono);letter-spacing:.075em}.stage-label i{display:block;width:6px;height:6px;border-radius:50%;background:var(--acid);box-shadow:0 0 0 3px #d8f45d16}.stage-tools{display:flex;gap:7px;pointer-events:auto}.square{border:1px solid #ffffff20;border-radius:6px;display:grid;place-items:center;width:34px;height:34px;padding:0}.square:hover,.track-tag:hover{background:#2c3537}.square .ico{width:17px;height:17px}.track-tag{border-radius:4px;font:600 11px/1.1 var(--mono);padding:8px 9px;display:flex;gap:7px;align-items:center}.checkers{background:repeating-conic-gradient(#dfe4e2 0 25%,transparent 0 50%) 0 0/6px 6px;display:block;width:13px;height:10px;transform:skew(-9deg)}.minimap{width:109px;height:68px;overflow:hidden;border:1px solid #ffffff2e;border-radius:7px}.minimap canvas{width:100%;height:100%;display:block}.pause-overlay{position:absolute;inset:0;display:grid;place-items:center;background:#11181b66;z-index:2}.pause-overlay[hidden]{display:none}.pause-overlay button{border:0;border-radius:8px;color:#19200b;background:var(--acid);display:inline-flex;align-items:center;gap:8px;padding:11px 16px;font-weight:650}.runbar{display:flex;min-height:56px;align-items:center;justify-content:space-between;background:#1b2024;padding:7px 16px;border-top:1px solid var(--line)}.time{display:flex;gap:9px;align-items:center;color:#b3bac0;font-size:13px}.time .ico{height:17px;width:17px}.time output{font:600 15px/1 var(--mono);font-variant-numeric:tabular-nums;color:#edf1f0}#demoButton{background:#272e32;border:1px solid #40484c;color:#eaefed;border-radius:6px;font-size:13px;font-weight:600;display:inline-flex;gap:7px;align-items:center;padding:8px 13px}#demoButton .ico{width:13px;height:13px;color:var(--acid)}#demoButton:hover{border-color:#78824b}#demoButton.active{color:var(--acid);border-color:#78824b}.touch-controls{display:none}
.panel{background:var(--card);border:1px solid var(--line);border-radius:13px;overflow:hidden;display:flex;flex-direction:column}.panel section{padding:22px clamp(18px,1.6vw,29px)}.telemetry{border-bottom:1px solid var(--line)}.section-title{display:flex;align-items:center;gap:10px}.section-title .ico{color:var(--acid);width:19px;height:19px}.section-title h2{font:700 19px/1.1 var(--display);text-transform:uppercase;letter-spacing:.012em}.meters{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:23px 0 15px}.metric-label,.field-label{font-size:13px;color:var(--muted);display:block}.metric-label{white-space:nowrap}.number{display:flex;gap:5px;align-items:baseline;margin-top:3px;color:#f1f4ee;line-height:1}.number output{font:700 clamp(36px,3.05vw,46px)/1.12 var(--display);font-variant-numeric:tabular-nums}.number small{color:#adb4b6;font:500 13px/1 var(--mono)}.slip-bar{height:6px;display:flex;gap:3px;align-items:stretch}.slip-bar i{flex:1;background:#353d42;transform:skew(-16deg);border-radius:1px}.slip-bar i.lit{background:var(--acid)}.setup{flex:1}.setup .section-title{margin-bottom:21px}.field-label{margin-bottom:7px}.drives{display:flex;gap:4px;padding:4px;border:1px solid #333a3e;background:#111619;border-radius:7px}.drives button{flex:1;border:0;background:transparent;color:#c0c6c8;font:700 17px/1.1 var(--display);letter-spacing:.05em;padding:8px;border-radius:4px}.drives button:hover{background:#2b3334}.drives button[aria-pressed=true]{background:var(--acid);color:#202509}.drive-detail{display:flex;align-items:center;gap:12px;padding:13px 0 17px;min-height:84px}.drive-icon{width:42px;height:48px;flex:0 0 42px;display:grid;place-items:center;background:#22292d;border:1px solid #333c40;border-radius:5px;color:#657075}.drive-icon svg{width:29px;height:40px}.front-wheels,.rear-wheels{fill:#586369}#axles[data-active=fwd] .front-wheels,#axles[data-active=rwd] .rear-wheels,#axles[data-active=awd] g{fill:var(--acid)}.drive-detail strong{font-size:14px;font-weight:650}.drive-detail p{color:#abb2b6;font-size:13px;line-height:1.4;margin-top:3px}.surface-select{position:relative;display:flex;align-items:center}.surface-select select{width:100%;appearance:none;border:1px solid #3a4348;background:#252b2f;color:#edf0ed;border-radius:6px;font-size:14px;padding:10px 34px 10px 39px;cursor:pointer}.surface-select>.ico{position:absolute;right:12px;width:16px;height:16px;pointer-events:none;color:#b8c0c4}.surface-select .surface-icon{right:auto;left:13px;color:#c9d7e0}
.keybar{margin-top:15px;display:flex;gap:clamp(12px,2.25vw,38px);background:#161b1f;border:1px solid #2b3237;border-radius:10px;align-items:center;min-height:61px;padding:12px 20px}.keytitle,.keypair{display:flex;align-items:center;gap:7px;color:#b7bfc2;font-size:13px;white-space:nowrap}.keytitle{color:#e5ebe9;font-weight:650;padding-right:clamp(5px,1vw,16px);border-right:1px solid var(--line)}.keytitle .ico{color:var(--acid)}kbd{font:600 12px/1 var(--mono);display:inline-grid;place-items:center;min-width:23px;height:23px;padding:0 5px;border:1px solid #444e52;border-bottom:2px solid #465055;border-radius:4px;color:#d2d8d7;background:#282e32}.arrow-note{margin-left:auto;color:#939ca1;font-size:12px}.touch-controls .right{transform:rotate(180deg)}dialog{border:1px solid #3f494d;border-radius:12px;color:var(--light);background:#20262a;padding:23px;width:min(420px,calc(100vw - 28px));max-height:85vh;box-shadow:0 20px 90px #0008}dialog::backdrop{background:#060b10a8}dialog p{font-size:15px;color:#c3c9cd;margin:15px 0}.dialog-head{display:flex;justify-content:space-between;align-items:center}.dialog-head h2{font:700 26px/1.15 var(--display);text-transform:uppercase}dialog dl{margin:0}dialog dl div{display:flex;justify-content:space-between;gap:10px;padding:7px 0;border-bottom:1px solid var(--line)}dialog dd{margin:0;font:14px/1.5 var(--mono)}dialog .model-note{font-size:13px;color:#a3adb2;margin-bottom:0}
@media(min-width:1600px){.stage{min-height:535px}}
@media(max-width:920px){.wrap{width:calc(100% - 36px)}.dashboard{grid-template-columns:minmax(0,1fr) 270px;gap:12px}.panel section{padding:18px 15px}.arrow-note{display:none}.keybar{justify-content:space-between}.intro{margin-bottom:16px}}
@media(max-width:720px){.dashboard{grid-template-columns:1fr}.main{padding-top:19px}.top-inner{height:50px;gap:14px}.brand b{font-size:23px}.brand-bars i{height:18px;width:4px}.brand-section,.help-button{font-size:13px}.intro-line{font-size:10px}.intro p{font-size:14px}.intro h1{font-size:clamp(35px,7vw,48px)}.stage{min-height:0;height:clamp(260px,43svh,420px);flex:auto}.panel{display:grid;grid-template-columns:.88fr 1.12fr}.panel section{padding:15px}.telemetry{border-bottom:0;border-right:1px solid var(--line)}.meters{margin-top:16px}.keybar{flex-wrap:wrap}}
@media(pointer:coarse),(max-width:720px){.touch-controls{display:flex;align-items:stretch;gap:6px;background:#1b2024;padding:0 12px 12px}.touch-controls button{touch-action:none;user-select:none;-webkit-user-select:none;display:grid;place-items:center;min-width:44px;height:48px;padding:0 9px;background:#30383d;border:1px solid #485358;border-radius:6px;font-size:13px;font-weight:bold}.touch-controls button.held{background:#505e65;transform:translateY(1px)}.steer-pair{display:flex;gap:5px;margin-right:auto}.touch-controls .gas{color:#202609;background:var(--acid);border-color:#d8f45d;flex:0 1 100px}.touch-controls .brake{color:#f2f3ee;flex:0 1 84px}.touch-controls .gas.held{background:#a8c237}.touch-controls .hand{font-size:12px}.keybar{display:none}.stage-top{top:11px;left:11px;right:11px}.square{width:42px;height:42px}.stage-bottom{left:11px;right:11px;bottom:10px}.minimap{width:85px;height:52px}.runbar{min-height:50px;padding-inline:12px}.help-button{min-height:44px}.stage-label{height:30px}.stage-tools{gap:5px}.surface-select select{min-height:44px}.drives button{min-height:38px}}
@media(max-width:535px){.wrap{width:calc(100% - 24px)}.top-inner{height:46px}.main{padding-bottom:16px}.intro{margin:0 0 14px}.intro h1{margin:4px 0 5px}.intro p{font-size:13px}.panel{display:flex}.telemetry{border-right:0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:1.05fr 1.45fr;align-items:center;gap:10px}.section-title h2{font-size:17px}.section-title{gap:7px}.meters{margin:0;gap:5px}.metric-label,.field-label{font-size:12px}.number output{font-size:27px}.number small{font-size:10px}.slip-bar{grid-column:1/-1;height:4px}.panel .setup{padding:15px}.setup .section-title{margin-bottom:14px}.drive-detail{min-height:64px;padding:10px 0}.drive-detail p{font-size:13px}.stage{height:clamp(235px,37svh,340px)}.time{gap:6px}#demoButton{padding:8px 10px}.stage-label{font-size:9px}.track-tag{font-size:9px}.intro-line{letter-spacing:.08em}.brand-section{font-size:12px}}
@media(max-width:359px){.wrap{width:calc(100% - 16px)}.touch-controls{padding-inline:6px;gap:4px}.touch-controls button{padding:0 6px}.telemetry{grid-template-columns:.85fr 1.45fr}.intro p{font-size:12px}}
@media(max-height:530px) and (orientation:landscape) and (pointer:coarse){.top,.intro,.panel,.keybar{display:none}.main{width:100%;padding:0}.dashboard{display:block}.game-area{border:0;border-radius:0}.stage{height:calc(100svh - 105px)}.runbar{min-height:41px}.touch-controls{padding-bottom:max(6px,env(safe-area-inset-bottom))}}
@media(max-height:530px) and (orientation:landscape) and (pointer:coarse){.panel{display:grid;grid-template-columns:1fr 1fr;margin:12px}.dashboard{padding-bottom:1px}.telemetry{border-right:1px solid var(--line);border-bottom:0}}
.embedded .top{display:none}.embedded .main{padding-top:12px}.embedded .intro{margin-bottom:12px}.embedded .intro-line{display:none}.embedded .intro h1{font-size:clamp(31px,4.5vw,48px)}.embedded .stage{height:clamp(250px,49vw,485px);min-height:0}.embedded .wrap{width:calc(100% - 24px)}
.run-actions{display:flex;align-items:center;gap:7px}.quick-drive,.embed-help{display:none}.embedded .embed-help{display:grid}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(pointer:coarse),(max-width:720px){.quick-drive{position:relative;display:block}.quick-drive select{appearance:none;border:1px solid #59603f;border-radius:6px;background:#272e27;color:var(--acid);font:700 15px/1 var(--display);padding:9px 24px 9px 9px;min-height:38px}.quick-drive .ico{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:14px;height:14px;pointer-events:none}.run-actions #demoButton{min-height:38px}}
@media(max-height:530px) and (orientation:landscape) and (pointer:coarse){.embed-help{display:grid}}
.reverse-lamp{align-self:center;margin-left:2px;padding:3px 5px;border:1px solid #657745;border-radius:3px;color:var(--acid);font:700 12px/1 var(--mono)}.reverse-lamp[hidden],#soundButton[hidden]{display:none}
.stage-top{gap:6px}.stage-label{min-width:0}.stage-label i,.stage-tools{flex-shrink:0}.stage-label span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(pointer:coarse),(max-width:720px){.touch-controls .reverse{color:#d7e5ed}.touch-controls .hand,.touch-controls .reverse,.touch-controls .brake,.touch-controls .gas{min-width:44px;padding-inline:7px}}
@media(max-width:450px){.touch-controls{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;padding-inline:6px}.touch-controls .steer-pair{grid-column:span 2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin:0}.touch-controls button,.touch-controls .hand,.touch-controls .reverse,.touch-controls .brake,.touch-controls .gas{min-width:0;padding-inline:1px;font-size:12px}.embedded .stage-label{padding-inline:7px}}

.stage-hud{display:grid;grid-template-columns:minmax(0,1fr);justify-items:start;gap:5px;min-width:0}
.stage-hud .stage-label{max-width:100%}
.stage-hud .time{gap:8px;padding:6px 10px;border:1px solid #ffffff24;border-radius:5px;background:#151d21f5;color:var(--acid);box-shadow:0 1px 4px #16212622}
.stage-hud .time output{font:700 22px/1.1 var(--mono);font-variant-numeric:tabular-nums;color:#fff;white-space:nowrap}
.stage-bottom{justify-content:flex-end}
.runbar .track-tag{background:transparent;box-shadow:none;padding-inline:0}
@media(max-width:535px){.stage-hud .time{gap:6px;padding:5px 8px}.stage-hud .time output{font-size:19px}.stage-hud .time .ico{width:14px;height:14px}}
@media(max-width:375px){.stage-hud{row-gap:16px}}
