@import"https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@400;500;600;700;800&display=swap";:root{font-family:Inter,sans-serif;color:#252525;background:#000;font-synthesis:none;--paper:#f1f0e8;--ink:#252525;--muted:#7e7e7e;--red:#dc2828}*{box-sizing:border-box}body{margin:0;overflow:hidden}button,input{font:inherit}button{cursor:pointer;color:inherit}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--red);outline-offset:3px}button{border:0}button:disabled{opacity:.45;cursor:not-allowed}.hidden{display:none!important}#world{position:fixed;inset:0;width:100%;height:100%;display:block}header{position:fixed;top:0;left:0;right:0;z-index:5;display:flex;align-items:center;justify-content:space-between;padding:28px 40px;pointer-events:none}header>*{pointer-events:auto}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink);font-size:14px;letter-spacing:2px;font-weight:800;line-height:1.1}.racing{display:block;font-size:11px;letter-spacing:5.1px;margin-top:4px}.brand-mark{font-family:Anton,sans-serif;font-size:46px;line-height:40px;letter-spacing:-8px;transform:skew(-10deg)}.brand-mark span{font-size:32px;color:var(--red)}.edition{font-size:10px;font-weight:600;letter-spacing:1.5px;display:flex;align-items:center;gap:12px}.edition i{width:5px;height:5px;background:var(--red);border-radius:50%}#home{position:fixed;inset:0;background:linear-gradient(90deg,#eeeee5 0% 30%,#eeeee5e8 38%,#eeeee500 65%);padding:126px 40px 65px;overflow:auto}.intro{max-width:480px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:700;display:flex;align-items:center;gap:8px}.eyebrow>span{display:inline-block;width:20px;height:2px;background:var(--red)}h1{font-family:Anton,Impact,sans-serif;font-size:clamp(64px,7.8vh,94px);line-height:.96;font-weight:700;letter-spacing:-1.5px;margin:22px 0}h1 em{font-style:normal;color:var(--red)}p{font-size:12px;line-height:1.7;color:#6f6f6f}.intro p{margin:0 0 22px}.stage-panel{max-width:370px}.section-line{display:flex;justify-content:space-between;border-top:1px solid #bebebe;padding-top:14px;font-size:9px;letter-spacing:1.5px;margin-bottom:10px}.stage-card{position:relative;display:block;text-align:left;width:100%;background:transparent;border:1px solid transparent;border-bottom-color:#d4d4d4;padding:12px 30px 12px 12px;margin:4px 0;transition:background .2s}.stage-card.selected{border-color:#a6a6a6;background:#fafaf266}.stage-card:hover{background:#fff8}.stage-card strong{display:block;font-size:14px;font-weight:600}.stage-card small{display:block;font-size:10px;color:#7a7a7a;margin-top:5px}.stage-card>span{position:absolute;right:12px;top:12px;color:var(--red);font-size:20px}#stage-list{max-height:220px;overflow:auto}.stage-stats{display:flex;justify-content:space-between;padding:15px 0}.stage-stats div{display:grid;gap:5px}.stage-stats span{font-size:8px;letter-spacing:1px;color:#828282}.stage-stats b{font-size:12px;font-weight:500}.primary,.secondary{display:flex;align-items:center;justify-content:space-between;width:100%;padding:14px 18px;font-size:12px;font-weight:600;transition:background .2s}.primary{color:#fff8ee;background:var(--red)}.primary:hover{background:#b31f26}.secondary{background:transparent;border:1px solid #b0b0b0;margin-top:8px}.secondary:hover{background:#fff7}.primary>span,.secondary>span{font-size:18px}.caption{font-size:9px;line-height:1.5;color:#7f7f7f;margin-top:12px}.scene-caption{position:fixed;bottom:110px;right:50px;display:grid;gap:9px;color:#f5f2e5;text-shadow:0 1px 12px #343434}.scene-caption>span{font-size:11px;letter-spacing:3px}.scene-caption strong{font-family:Anton,sans-serif;font-size:34px;font-weight:500}.scene-caption small{font-size:9px;letter-spacing:1.5px}footer{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:space-between;padding:18px 40px;border-top:1px solid #64646433;color:#474747;font-size:9px;letter-spacing:1.8px;background:#e9e8df66}kbd{font:10px Inter,sans-serif;border:1px solid #cecece80;padding:3px 5px;border-radius:2px;margin-right:4px}.small{padding:10px 14px;background:#f0eee5dd;font-size:11px}body[data-mode=driving] .edition,body[data-mode=paused] .edition,body[data-mode=finished] .edition{display:none}body[data-mode=driving] .brand,body[data-mode=paused] .brand,body[data-mode=finished] .brand{color:#fff7e6;text-shadow:0 1px 8px #262626}#hud{position:fixed;inset:0;pointer-events:none;color:#fff9e9;background:linear-gradient(0deg,#23232388,transparent 24%)}.run-info{position:absolute;top:120px;left:40px;display:grid;gap:8px;text-shadow:0 1px 10px #2b2b2b}.run-info>span{font-size:12px}.run-info b{font-size:32px;font-weight:500;font-variant-numeric:tabular-nums}.run-info small{font-size:10px;letter-spacing:1px}.progress-track{width:170px;height:2px;background:#fff5;margin-top:4px}.progress-track i{display:block;height:2px;background:#ef4549}#surface{position:absolute;top:120px;right:40px;letter-spacing:2px;font-size:9px;padding:9px;background:#35353555}.offroad{background:#b8492c!important}.speed{position:absolute;right:40px;bottom:77px;display:flex;align-items:baseline;gap:10px}.speed strong{font-family:Anton,sans-serif;font-size:96px;font-weight:600;line-height:1}.speed>span{border:1px solid #fff5;padding:5px 10px;align-self:center;font-size:20px}.speed small{font-size:10px;letter-spacing:2px}.camera-controls{position:absolute;left:40px;bottom:93px;display:flex;align-items:center;gap:6px;pointer-events:auto}.camera-controls>span{font-size:9px;letter-spacing:2px;margin-right:9px}.camera-controls button{background:#3335;color:#eee;padding:10px 12px;font-size:10px;border:1px solid #f1f1f144}.camera-controls button.active{background:#ededed;color:#3e3e3e;border-color:#ededed}.drive-help{position:absolute;bottom:25px;left:40px;display:flex;gap:20px;font-size:10px;color:#e4e4e4}.overlay{position:fixed;inset:0;z-index:8;background:#24242466;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);display:grid;place-items:center}.modal{background:var(--paper);padding:38px;width:360px;max-width:90vw}.modal h2,#editor h2{font-family:Anton,sans-serif;font-size:44px;margin:18px 0 8px;font-weight:600}.modal p{margin:8px 0 28px}.text-button{background:transparent;padding:12px 0;font-size:11px;text-decoration:underline;text-underline-offset:4px}.modal .text-button{display:block;margin:auto}#result{font-size:40px;font-weight:500}#editor{position:fixed;inset:0;background:var(--paper);z-index:7;padding:30px 5vw;overflow:auto}.editor-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.editor-header .secondary{width:auto}.editor-header h2{margin-top:8px!important}.editor-grid{display:grid;grid-template-columns:minmax(300px,1fr) 320px;gap:50px;max-width:1200px;margin:auto}.map-paper{position:relative;background:#e2e2e2;align-self:start}.map-paper svg{width:100%;aspect-ratio:1;display:block;touch-action:none;cursor:crosshair;max-height:calc(100vh - 180px)}.map-paper>span{display:block;font-size:8px;letter-spacing:2px;padding:12px}.editor-fields>label{display:grid;gap:7px;margin:15px 0;font-size:11px}.editor-fields input:not([type=file]){border:1px solid #c2c2c2;background:#fff8;padding:10px;width:100%;color:var(--ink)}.editor-fields p{margin-top:0}.editor-fields .editor-message{min-height:36px;color:#ac492a;font-size:11px}.editor-fields small{display:block;color:#818181;font-size:10px;line-height:1.7}.file-actions{display:flex;gap:20px;font-size:10px;margin:20px 0 4px}.file-actions button{background:none;padding:0;text-decoration:underline}.file-label{cursor:pointer;text-decoration:underline}.file-label input{position:absolute;width:1px;height:1px;opacity:0}#toast:not(:empty){position:fixed;bottom:60px;left:50%;transform:translate(-50%);z-index:20;background:#373737;color:#fff5e4;padding:14px 22px;font-size:12px;max-width:90vw}@media(max-height:850px)and (min-width:761px){#home{padding-top:106px}h1{font-size:64px;margin:16px 0}.intro p{margin-bottom:14px}.stage-card{padding-top:9px;padding-bottom:9px}.stage-stats{padding:10px 0}.primary,.secondary{padding:11px 15px}.caption{margin-top:8px}.scene-caption{bottom:95px}}@media(max-width:760px){header{padding:20px}.edition{display:none}#home{padding:100px 22px 70px;background:linear-gradient(90deg,#eeeee5f5,#eeeee5c9 65%,#eeeee555)}h1{font-size:66px}.scene-caption{display:none}.stage-panel{max-width:360px}footer{padding:15px 22px;font-size:7px}.run-info{left:20px;top:100px}#surface{right:20px;top:100px}.speed{right:20px;bottom:140px}.speed strong{font-size:70px}.camera-controls{left:20px;bottom:80px}.camera-controls>span{display:none}.drive-help{left:20px;right:20px;bottom:18px;gap:10px;flex-wrap:wrap;font-size:8px}.editor-grid{grid-template-columns:1fr;gap:20px}.editor-header h2{font-size:32px!important}.map-paper svg{max-height:55vh}.editor-header{gap:10px}.editor-header .secondary{font-size:10px;white-space:nowrap}#editor{padding:22px}.editor-fields{padding-bottom:30px}}.telemetry{position:absolute;right:40px;bottom:185px;width:190px;font-size:10px;letter-spacing:1px;display:grid;gap:8px}.rpm-track{height:4px;background:#fff4}.rpm-track i{display:block;height:100%;background:#ed7246;max-width:100%}.rally-controls{pointer-events:auto;position:absolute;right:40px;top:162px;display:flex;gap:6px}.rally-controls button{color:#fff8e9;background:#35353599;border:1px solid #ffffff33;padding:9px;font-size:9px}.audio-volume{display:flex;align-items:center;gap:14px;font-size:12px;margin-bottom:20px}.audio-volume input{accent-color:var(--red);width:100%}#grip{font-size:9px}.drive-help{gap:13px}@media(max-width:760px){.telemetry{right:20px;bottom:230px;width:140px}.rally-controls{right:20px;top:142px}.drive-help{gap:8px}}#geo-credit{position:fixed;bottom:3px;right:12px;z-index:6;background:#eeeeddde;padding:4px 7px;font-size:8px;color:#414141}#geo-credit a{color:inherit}.editor-fields select{width:100%;padding:8px;background:#fff8;color:var(--ink);border:1px solid #c2c2c2}.decor-fields label,.route-fields label{display:grid;gap:5px;font-size:11px;margin:8px 0}.editor-fields .text-button{padding:6px 0}.editor-fields>label{margin:9px 0}.vehicle-picker{border-top:1px solid #bebebe;margin:5px 0 14px;padding-top:12px}.vehicle-picker label{display:block;font-size:9px;letter-spacing:1.5px;margin-bottom:8px}.vehicle-picker select{width:100%;padding:10px;border:1px solid #b0b0b0;background:#f6f6ee;color:var(--ink);font:inherit;font-size:13px}.vehicle-picker p{font-size:9px;line-height:1.5;margin:6px 0}.vehicle-picker small{display:block;font-size:10px;margin-top:4px}select:focus-visible{outline:3px solid var(--red);outline-offset:3px}body[data-mode=home] h1{font-size:clamp(48px,6vh,72px);margin:16px 0}#home{padding-bottom:110px}#stage-list{max-height:180px}.intro p{margin-bottom:16px}@media(max-width:760px){body[data-mode=home] h1{font-size:54px}#home{padding-bottom:140px}footer{letter-spacing:.3px;gap:12px;line-height:1.5}}.touch-only,#touch-controls{display:none}.touch-enabled .touch-only{display:block}.rotate-advice{font-size:11px!important}.touch-enabled #touch-controls{position:fixed;inset:0;z-index:6;pointer-events:none}body.touch-enabled[data-mode=driving] #touch-controls{display:block}#touch-controls button{pointer-events:auto;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;background:#313131de;color:#fff7e8;border:1px solid #eaeaea99;border-radius:12px;min-width:54px;min-height:48px;font-size:12px;font-weight:700;box-shadow:0 2px 8px #20202033}#touch-controls button.held{background:#e26838;border-color:#fff;color:#fff;transform:translateY(2px)}.touch-steer{position:absolute;left:max(16px,env(safe-area-inset-left));bottom:max(20px,env(safe-area-inset-bottom));display:flex;gap:10px}.touch-steer button{width:68px;height:68px;font-size:25px!important}.touch-recover{position:absolute;left:max(16px,env(safe-area-inset-left));bottom:100px;padding:0 12px}.touch-shifts{position:absolute;bottom:max(18px,env(safe-area-inset-bottom));left:50%;transform:translate(-50%);display:flex;gap:8px}.touch-shifts button{font-size:24px!important;width:48px}.touch-pedals{position:absolute;right:max(16px,env(safe-area-inset-right));bottom:max(20px,env(safe-area-inset-bottom));display:grid;gap:10px}.touch-pedals>div{display:flex;gap:10px}.touch-pedals>div button{height:68px;width:68px}.touch-handbrake{width:100%;min-height:48px}.touch-pedals .touch-throttle{background:#bd4b28ee!important}.touch-pedals .touch-throttle.held{background:#fa8349!important}.touch-enabled #hud,.touch-enabled #world{touch-action:none}.touch-enabled .drive-help{display:none}.touch-enabled .camera-controls{top:max(12px,env(safe-area-inset-top));bottom:auto;left:50%;transform:translate(-50%);gap:4px}.touch-enabled .camera-controls>span{display:none}.touch-enabled .camera-controls button{min-height:44px;padding:8px 10px;font-size:10px}.touch-enabled .rally-controls{top:66px;right:max(16px,env(safe-area-inset-right))}.touch-enabled .rally-controls button{min-height:44px}.touch-enabled #surface{top:118px;right:max(16px,env(safe-area-inset-right));padding:6px}.touch-enabled .run-info{left:max(16px,env(safe-area-inset-left));top:62px;gap:4px}.touch-enabled .run-info b{font-size:24px}.touch-enabled .run-info>span{font-size:10px}.touch-enabled .progress-track{width:130px}.touch-enabled .speed{left:50%;right:auto;bottom:72px;transform:translate(-50%);gap:6px}.touch-enabled .speed strong{font-size:52px}.touch-enabled .speed>span{font-size:16px;padding:4px 7px}.touch-enabled .speed small{font-size:8px}.touch-enabled .telemetry{left:50%;right:auto;bottom:134px;transform:translate(-50%);width:105px;gap:4px;font-size:9px}.touch-enabled #grip{font-size:8px}.touch-enabled[data-mode=driving] header{padding:12px max(16px,env(safe-area-inset-right)) 12px max(16px,env(safe-area-inset-left))}.touch-enabled[data-mode=driving] .brand{font-size:10px;gap:6px;letter-spacing:1px}.touch-enabled[data-mode=driving] .racing{font-size:8px;letter-spacing:2px}.touch-enabled[data-mode=driving] .brand-mark{font-size:30px;line-height:30px}.touch-enabled[data-mode=driving] .brand-mark span{font-size:20px}.touch-enabled #menu-button{min-height:44px}.touch-enabled #menu-button kbd{display:none}.touch-enabled[data-mode=driving] #geo-credit{font-size:6px;padding:2px;bottom:0;left:50%;right:auto;transform:translate(-50%);width:max-content;max-width:95vw}.overlay{overflow:auto;padding:max(12px,env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom))}.modal{max-height:100%;overflow:auto}.touch-enabled .modal{padding:20px}.touch-enabled .modal h2{font-size:32px;margin:8px 0}.touch-enabled .modal p{margin:6px 0 12px}.touch-enabled .modal .primary{margin-top:10px;min-height:44px}.touch-enabled .modal .secondary{min-height:44px}@media(orientation:landscape){.rotate-advice{display:none!important}}@media(orientation:landscape)and (max-height:600px){.touch-enabled #home{padding-top:80px;padding-bottom:70px}.touch-enabled #home .intro{display:none}.touch-enabled #home .stage-panel{max-width:340px}.touch-enabled #home #stage-list{max-height:130px}.touch-enabled #home .scene-caption,.touch-enabled .edition{display:none}.touch-enabled header{padding:14px 20px}.touch-enabled footer{font-size:7px;padding:8px 16px}.touch-enabled .overlay{align-items:start}.touch-enabled .modal{width:430px}.touch-enabled .modal .eyebrow{display:none}}@media(orientation:portrait){.touch-enabled .camera-controls{top:auto;bottom:172px;left:50%}.touch-enabled .telemetry{bottom:228px}.touch-enabled .speed{bottom:260px}.touch-enabled #touch-controls .touch-steer button,.touch-enabled #touch-controls .touch-pedals>div button{width:56px;height:64px}.touch-enabled .touch-steer,.touch-enabled .touch-pedals{gap:6px}.touch-enabled .touch-pedals>div{gap:6px}.touch-enabled .touch-shifts{bottom:99px}.touch-enabled .touch-shifts button{min-width:40px;width:40px}.touch-enabled .touch-recover{font-size:10px!important;padding:0 5px}.touch-enabled .touch-handbrake{font-size:9px!important}}@media(max-height:350px)and (orientation:landscape){.touch-enabled .run-info small,.touch-enabled .progress-track,.touch-enabled #surface{display:none}.touch-enabled .run-info{top:54px}.touch-enabled .telemetry{display:none}.touch-enabled .touch-steer button,.touch-enabled .touch-pedals>div button{height:56px}.touch-enabled .touch-recover{bottom:88px}}.touch-enabled[data-mode=driving] #toast:not(:empty){bottom:auto;top:42%;pointer-events:none;text-align:center;padding:10px 14px;font-size:11px}html{touch-action:manipulation}body[data-mode=driving]{touch-action:none}.touch-steer button{display:grid;place-items:center;border-radius:16px;background:linear-gradient(145deg,#474747ee,#282828ee)!important;box-shadow:inset 0 1px #ffffff20,0 3px 12px #20202044}.touch-steer button svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.touch-steer button.held{background:#d65b32!important;box-shadow:inset 0 2px 5px #80361966}body[data-mode=driving]{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}#camera-toggle{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;min-width:110px;border-radius:10px;background:#313131de;color:#fff7e8;touch-action:manipulation}#camera-toggle svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.touch-enabled .speed{left:auto;right:max(16px,env(safe-area-inset-right));top:116px;bottom:auto;transform:none;gap:5px}.touch-enabled .speed strong{font-size:42px}.touch-enabled .speed>span{font-size:14px}.touch-enabled .speed small{font-size:7px}.touch-enabled .telemetry{left:auto;right:max(16px,env(safe-area-inset-right));top:162px;bottom:auto;transform:none;width:120px;gap:3px}.touch-enabled #surface{top:116px;right:155px;font-size:8px}@media(orientation:portrait){.touch-enabled #surface{top:202px;right:16px}}@media(max-height:350px)and (orientation:landscape){.touch-enabled .speed{top:112px}.touch-enabled .speed strong{font-size:32px}}.touch-enabled .touch-shifts{left:max(16px,env(safe-area-inset-left));bottom:156px;transform:none;gap:10px}.touch-enabled .touch-shifts button{width:68px}@media(orientation:portrait){.touch-enabled .camera-controls{top:max(12px,env(safe-area-inset-top));bottom:auto}.touch-enabled .touch-shifts button{width:56px;min-width:56px}}#loading{z-index:100;background:#1f1f1f}#loading progress{width:100%;height:10px;accent-color:var(--red)}#loading small{color:#767676}#loading-percent{font-variant-numeric:tabular-nums}.vehicle-label{display:block;font-size:9px;letter-spacing:1.5px;margin-bottom:8px}#open-garage{gap:12px}#open-garage span{font-size:12px}#open-garage span:last-child{font-size:10px;white-space:nowrap}#garage{position:fixed;inset:0;margin:auto;width:min(1180px,96vw);max-width:96vw;height:min(780px,94dvh);max-height:94dvh;padding:24px;border:1px solid #acacac;background:var(--paper);color:var(--ink);overflow:auto}#garage::backdrop{background:#1e1e1ee8;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.garage-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.garage-heading h2{font-family:Anton,sans-serif;font-size:38px;margin:8px 0 18px}.garage-heading .secondary{width:auto;white-space:nowrap;margin:0}.garage-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:24px;height:calc(100% - 88px);min-height:340px}.garage-view{position:relative;min-height:260px;overflow:hidden;background:#e0e0e0}#garage-canvas{display:block;width:100%;height:100%;position:static;touch-action:none;outline-offset:-4px}.garage-tools{position:absolute;bottom:12px;left:12px;right:12px;display:flex;flex-wrap:wrap;gap:6px}.garage-tools button{padding:10px 12px;background:#f4f4eae8;border:1px solid #a3a3a3;color:var(--ink);font-size:10px;min-height:40px}.garage-details{align-self:center}.garage-details h3{font-family:Anton,sans-serif;font-size:32px;margin:14px 0 24px}.garage-details label{display:block;font-size:11px;margin-bottom:8px}.garage-details select{width:100%;padding:12px;background:#f8f8ee;border:1px solid #b0b0b0;font:inherit;color:var(--ink);font-size:13px}.garage-navigation{display:flex;gap:8px}.garage-navigation button{justify-content:center;font-size:11px}.garage-details p{font-size:12px;line-height:1.6}.garage-details small{display:block;margin-top:14px;font-size:10px;line-height:1.6}#garage-status{min-height:40px;color:#6d6d6d}#garage button:disabled{opacity:.45;cursor:wait}#garage-retry[hidden]{display:none}#garage-canvas:focus-visible{outline:3px solid var(--red)}@media(max-width:700px){#garage{padding:16px;width:96vw;height:94dvh}.garage-heading h2{font-size:28px;margin-bottom:12px}.garage-heading .eyebrow{font-size:8px}.garage-heading .secondary{padding:10px}.garage-layout{display:flex;flex-direction:column;height:auto;gap:20px}.garage-view{height:38dvh;min-height:250px;flex-shrink:0}.garage-details{width:100%}.garage-details h3{margin:4px 0 12px;font-size:28px}.garage-details p{margin:12px 0}.garage-tools{left:8px;right:8px;bottom:8px;gap:4px}.garage-tools button{padding:8px;font-size:9px}.garage-details>.eyebrow{font-size:8px}}@media(max-height:500px)and (min-width:701px){#garage{padding:12px}.garage-heading h2{font-size:24px;margin:4px 0 8px}.garage-heading .eyebrow{font-size:8px}.garage-layout{grid-template-columns:minmax(0,1fr) 240px;height:calc(100% - 56px);min-height:220px;gap:16px}.garage-view{min-height:220px}.garage-details h3{font-size:23px;margin:4px 0 8px}.garage-details>p:not(#garage-status),.garage-details>small,.garage-details>.eyebrow{display:none}.garage-details select{padding:8px}.garage-details .primary,.garage-details .secondary{padding:10px}.garage-tools button{padding:7px}#garage-status{font-size:10px;min-height:28px;margin:8px 0}}#retry-pending[hidden],#ranking-retry[hidden],#ranking-alias-form[hidden],#leaderboard-refresh[hidden]{display:none}.finish-leaderboard{border-top:1px solid #b1b1b1;margin-top:20px;padding-top:8px}.finish-leaderboard h3{font-size:16px}.finish-leaderboard p{font-size:12px;line-height:1.6;margin:10px 0}.finish-leaderboard label{display:block;font-size:12px;margin:10px 0}#player-alias{display:block;width:100%;font:inherit;padding:12px;border:1px solid #a1a1a1;background:#fffdf5;color:var(--ink)}.finish-leaderboard small{display:block;font-size:10px;line-height:1.5;margin:8px 0}.finish-leaderboard .text-button{margin:4px 0}#finish{overflow:auto;padding:24px 12px;align-items:safe center}#finish>.modal{width:540px;max-width:94vw}#finish-ranking{max-height:270px;overflow:auto}.ranking-table{width:100%;border-collapse:collapse;font-size:12px;text-align:left}.ranking-table th{font-size:10px;text-transform:uppercase;letter-spacing:.6px;padding:12px 6px;border-bottom:1px solid #adadad}.ranking-table td{padding:12px 6px;border-bottom:1px solid #c2c2c255;vertical-align:middle}.ranking-table td:last-child{white-space:nowrap;font-variant-numeric:tabular-nums}.ranking-table small{display:block;font-size:9px;margin:4px 0 0;color:#717171}.ranking-table strong{display:block;overflow-wrap:anywhere}.ranking-table .my-time{background:#e3e3e3}.ranking-summary{font-size:11px;color:#6b6b6b}#leaderboard-dialog{position:fixed;inset:0;margin:auto;width:min(700px,94vw);max-height:90dvh;padding:24px;background:var(--paper);color:var(--ink);border:1px solid #a9a9a9;overflow:auto}#leaderboard-dialog::backdrop{background:#1e1e1edc;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.ranking-heading{display:flex;gap:20px;align-items:center;justify-content:space-between}.ranking-heading h2{font-family:Anton,sans-serif;font-size:30px}.ranking-heading .secondary{width:auto;white-space:nowrap}.ranking-heading+p{font-size:12px;line-height:1.6}@media(max-width:600px){#leaderboard-dialog{padding:16px}.ranking-heading{gap:10px}.ranking-heading h2{font-size:25px}#finish>.modal{padding:22px}.ranking-table{font-size:11px}.ranking-table td{padding:10px 4px}}#finish,#leaderboard-dialog{--race-line:#d8d3c7;--race-muted:#706e64;--race-tint:#f5e5d9;color:var(--ink)}#finish{background:#1d1d1dd6;padding:32px 18px;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px)}#finish>.result-dashboard{max-height:none;overflow:visible;width:1060px;max-width:96vw;padding:0;background:var(--paper);border-top:5px solid var(--red);box-shadow:0 24px 100px #0004}.result-masthead,.ranking-masthead{display:flex;gap:13px;align-items:center;padding:20px 28px;border-bottom:1px solid var(--race-line);font-size:10px;font-weight:800;letter-spacing:1.7px}.result-masthead i{font-style:normal;color:var(--red);padding:0 8px}.result-session{margin-left:auto;font-size:9px;color:var(--race-muted)}.finish-flag{display:block;flex-shrink:0;width:26px;height:20px;background:conic-gradient(var(--ink) 25%,transparent 0 50%,var(--ink) 0 75%,transparent 0) 0 0/10px 10px;transform:skew(-12deg)}.result-grid{display:grid;grid-template-columns:1fr 1.03fr;min-width:0}.result-performance{padding:35px 34px 32px;min-width:0;background:linear-gradient(145deg,transparent 65%,#e8e4d780 65%,#e8e4d780 67%,transparent 67%)}#finish-title{font-family:Anton,Impact,sans-serif;font-size:64px;font-weight:800;line-height:.9;text-transform:uppercase;letter-spacing:-1.4px;margin:24px 0 22px}#finish-title em{font-style:italic;color:var(--red)}#finish .result-stage{font-size:16px;font-weight:700;line-height:1.4;color:var(--ink);margin:0 0 4px}#finish .result-vehicle{font-size:11px;color:var(--race-muted);margin:0 0 28px}.result-clock{border-top:1px solid var(--race-line);padding:21px 0 19px}.result-clock>span,.result-stats>div>span{display:block;font-size:9px;letter-spacing:1.8px;font-weight:700;color:var(--race-muted)}#finish #result{display:block;font-family:Anton,Impact,sans-serif;font-size:clamp(56px,7vw,88px);font-weight:700;font-style:italic;line-height:1.04;font-variant-numeric:tabular-nums;letter-spacing:-1.6px;margin:8px 0;white-space:nowrap}#finish #result-detail{font-size:11px;color:var(--race-muted);margin:0;line-height:1.5}.result-stats{display:grid;grid-template-columns:.75fr 1.25fr;border-top:1px solid var(--race-line);border-bottom:1px solid var(--race-line);padding:18px 0;gap:18px}.result-stats>div+div{border-left:1px solid var(--race-line);padding-left:22px}.result-stats strong{display:block;font-family:Anton,Impact,sans-serif;font-size:36px;line-height:1.1;font-weight:700;font-variant-numeric:tabular-nums;margin:9px 0 4px}.result-stats small{font-size:9px;color:var(--race-muted)}#result-rank{color:var(--red)}.result-actions{display:grid;grid-template-columns:1.12fr 1fr;gap:10px;margin-top:24px}.result-actions .secondary{margin:0}#finish .primary,#leaderboard-dialog .primary{background:var(--red);color:var(--paper)}#finish .primary:hover,#leaderboard-dialog .primary:hover{background:color-mix(in srgb,var(--red) 86%,var(--ink))}#finish .secondary,#leaderboard-dialog .secondary{border-color:var(--race-line);color:var(--ink);min-height:44px}#finish .secondary:hover,#leaderboard-dialog .secondary:hover{background:var(--race-tint);border-color:var(--red)}#finish .finish-leaderboard{min-width:0;margin:0;padding:35px 28px 28px;border:0;border-left:1px solid var(--race-line);background:#faf9f3}.result-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.result-section-heading .eyebrow{font-size:8px;letter-spacing:1.5px;color:var(--race-muted)}#finish .finish-leaderboard h3{font-family:Anton,Impact,sans-serif;font-size:32px;font-weight:700;margin:6px 0 15px}.ranking-global{border:1px solid var(--race-line);padding:6px 8px;font-size:8px;font-weight:700;letter-spacing:1px}#finish .result-notice{padding:13px 14px;border-left:3px solid var(--red);background:var(--race-tint);font-size:12px;line-height:1.6;color:var(--ink);margin:5px 0 10px}#finish .result-notice[data-state=best]{background:var(--ink);color:var(--paper)}#finish .result-notice[data-state=error]{border-left-width:5px}#finish .result-notice[data-state=identity]{background:transparent;padding-left:0;border:0;font-size:14px;font-weight:500}#finish #ranking-alias-form{padding:0 0 16px;border-bottom:1px solid var(--race-line)}#finish #player-alias{background:var(--paper);border-color:var(--race-line)}#finish .finish-leaderboard small,#finish #finish-board-status{color:var(--race-muted)}#finish #finish-board-status{font-size:10px;margin:10px 0}#finish #change-alias{font-size:10px;padding:6px 0;color:var(--race-muted)}#finish-ranking{max-height:300px;overflow:auto;overscroll-behavior:contain}#finish .ranking-table,#leaderboard-dialog .ranking-table{font-size:12px}#finish .ranking-table th,#leaderboard-dialog .ranking-table th{background:var(--ink);color:var(--paper);font-size:8px;font-weight:500;letter-spacing:1px;padding:11px 10px;border:0;position:sticky;top:0;z-index:1}#finish .ranking-table td,#leaderboard-dialog .ranking-table td{border-bottom:1px solid var(--race-line);padding:13px 10px}#finish .ranking-table td:last-child,#leaderboard-dialog .ranking-table td:last-child{font-family:Anton,sans-serif;font-size:21px;font-weight:600;text-align:right}#finish .ranking-table th:last-child,#leaderboard-dialog .ranking-table th:last-child{text-align:right}.ranking-position{font-family:Anton,Impact,sans-serif;font-weight:700;font-style:italic;font-size:25px;color:var(--race-muted)}.top-finisher .ranking-position{color:var(--red)}#finish .ranking-table .my-time,#leaderboard-dialog .ranking-table .my-time{background:var(--race-tint)}.ranking-table .my-time td:first-child{box-shadow:inset 3px 0 var(--red)}#finish .ranking-table small,#leaderboard-dialog .ranking-table small{font-family:Inter,sans-serif;font-size:9px;font-weight:400;color:var(--race-muted);margin-top:5px}#finish .ranking-summary,#leaderboard-dialog .ranking-summary{color:var(--race-muted);font-size:10px;margin:14px 0}#finish .ranking-empty,#leaderboard-dialog .ranking-empty{border:1px dashed var(--race-line);padding:30px 22px;text-align:center;font-size:14px;color:var(--race-muted);line-height:1.6;background:var(--paper)}#finish-show-leaderboard{margin-top:18px;font-size:10px}.result-footnote{border-top:1px solid var(--race-line);padding:15px 28px;display:flex;justify-content:space-between;font-size:8px;letter-spacing:1.5px;color:var(--race-muted)}.result-footnote span:last-child{color:var(--red);font-weight:700}#leaderboard-dialog{width:min(780px,94vw);padding:0 28px 24px;border:0;border-top:5px solid var(--red);background:var(--paper);box-shadow:0 24px 100px #0004}#leaderboard-dialog::backdrop{background:#1d1d1dd6;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px)}.ranking-masthead{margin:0 -28px;padding:18px 28px;font-size:9px}.ranking-heading{gap:20px}.ranking-heading h2{font-family:Anton,Impact,sans-serif;font-size:38px;text-transform:uppercase;font-style:italic;font-weight:700;line-height:1.05;margin:24px 0 16px}.ranking-heading .secondary{font-size:10px}#leaderboard-status{color:var(--race-muted);font-size:11px}#leaderboard-refresh{font-size:11px}@media(max-width:700px){#finish{padding:16px 10px}#finish>.result-dashboard{max-width:100%;width:100%}.result-masthead{padding:16px 18px;font-size:8px;letter-spacing:1px}.result-session{display:none}.result-grid{grid-template-columns:1fr}.result-performance{padding:25px 22px}.result-performance>.eyebrow{font-size:8px}#finish-title{font-size:53px;margin:20px 0}#finish .result-vehicle{margin-bottom:18px}#finish #result{font-size:76px}.result-clock{padding:16px 0}.result-stats strong{font-size:32px}.result-actions{margin-top:20px}#finish .finish-leaderboard{border-left:0;border-top:1px solid var(--race-line);padding:26px 22px}.result-footnote{padding:14px 18px;font-size:7px;letter-spacing:.8px}#finish-ranking{max-height:320px}#leaderboard-dialog{padding:0 18px 20px}.ranking-masthead{margin:0 -18px;padding:16px 18px;font-size:8px;letter-spacing:1px}.ranking-heading h2{font-size:30px}.ranking-heading .secondary{padding:10px}#leaderboard-dialog .ranking-table td{padding:12px 7px}}@media(max-height:500px)and (min-width:701px){#finish{padding:12px}.result-masthead{padding:12px 22px}.result-performance,#finish .finish-leaderboard{padding:22px}#finish-title{font-size:48px;margin:18px 0}#finish #result{font-size:68px}.result-performance>.eyebrow{font-size:8px}.result-footnote{padding:12px 22px}}.garage-details{align-self:start;max-height:100%;overflow:auto;padding-right:5px}.vehicle-specs{margin:12px 0;font-size:12px}.vehicle-specs>div{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #c9c5bd}.vehicle-specs dt{color:#666}.vehicle-specs dd{margin:0;text-align:right;font-weight:600}.vehicle-character{border-left:3px solid var(--red);padding-left:10px}.electric-car .touch-shifts,.electric-car .drive-help span:nth-last-child(-n+2){display:none}@media(max-width:700px){.garage-details{max-height:none;overflow:visible}}#loading .modal{border-top:5px solid var(--red,#dc2828)}#loading-quote{margin:28px 0 8px;padding-top:24px;border-top:1px solid #25252525;font-size:clamp(19px,3vw,26px);font-style:italic;line-height:1.35;color:#252525}#loading-author{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#67625b}#loading-author a{color:inherit;text-underline-offset:3px}#export-pending[hidden]{display:none}.split-reference-label{display:grid;gap:6px;margin:10px 0;font-size:10px;color:var(--ink)}#split-reference{width:100%;padding:8px;background:var(--paper);border:1px solid #b0b0b0;color:var(--ink);font:inherit}#split-live{position:fixed;top:78px;left:50%;transform:translate(-50%);z-index:6;max-width:80vw;padding:12px 18px;background:#252525ec;color:#fff4df;border-left:4px solid var(--red);font-size:13px;font-variant-numeric:tabular-nums;pointer-events:none}#split-live[hidden],#split-comparison[hidden]{display:none}.split-results{margin:16px 0;border-top:1px solid #25252530;padding-top:14px}.split-results summary{cursor:pointer;font-size:13px;font-weight:600}.split-scroll{overflow-x:auto}.split-table td{white-space:nowrap}.split-table th{min-width:65px}.split-table th:first-child{min-width:110px}@media(max-height:520px){#split-live{top:12px;max-width:64vw;font-size:11px;padding:8px 12px}}#pause .audio-volume{display:grid;grid-template-columns:110px minmax(0,1fr);gap:12px}#pause-music{margin-bottom:18px}.rally-controls{flex-wrap:wrap;max-width:270px}@media(max-width:760px){.rally-controls{max-width:230px}}#rotate-dialog{width:min(420px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;box-sizing:border-box;padding:28px;border:1px solid var(--ink);background:var(--paper,#f2eedf);color:var(--ink);text-align:center}#rotate-dialog::backdrop{background:#201e1bd9;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}#rotate-dialog h2{font-size:36px;margin:16px 0}#rotate-dialog p{font-size:14px;line-height:1.6}#rotate-status{min-height:24px;color:var(--red);font-weight:700}#rotate-dialog .primary{width:100%;margin:12px 0 18px}#rotate-dialog .primary:disabled{opacity:.45;cursor:default}#rotate-dialog .text-button{min-height:44px}.rotate-phone{width:100px;height:90px;fill:none;stroke:var(--red);stroke-width:4;stroke-linecap:round;stroke-linejoin:round}@media(orientation:landscape)and (max-height:600px){#rotate-dialog{padding:16px 24px}.rotate-phone{display:none}#rotate-dialog h2{font-size:28px;margin:8px 0}#rotate-dialog p{margin:8px 0}#rotate-dialog .primary{margin:4px 0}}html,body,#app{background-color:#000}html,body{min-height:100%;overscroll-behavior:none}#world{width:100%;height:100%;height:100dvh;background:#000}#control-settings{width:min(540px,92vw);max-height:88dvh;overflow:auto;padding:24px;background:#eee9dc;color:#242424;border:1px solid #69665d;border-radius:16px}#control-settings::backdrop{background:#000a}#control-settings h2{margin:12px 0 22px}#control-settings label{display:block;margin:14px 0;font-weight:600}#control-settings select{width:100%;padding:12px;margin-top:8px}#control-settings input[type=range]{width:65%;vertical-align:middle;accent-color:#dc2828}#control-settings output{margin-left:12px}#control-settings .control-check{display:flex;gap:12px;align-items:center}#control-settings p{font-size:14px;line-height:1.5}#control-settings button{width:100%;margin-top:8px}#control-settings [hidden]{display:none}#touch-controls{--control-scale:1;--control-bottom:16px}#touch-controls .touch-steer,#touch-controls .touch-pedals{bottom:var(--control-bottom);transform:scale(var(--control-scale));transform-origin:bottom left}#touch-controls .touch-pedals{transform-origin:bottom right}.analog-steer{position:absolute;left:max(16px,env(safe-area-inset-left));bottom:var(--control-bottom);width:clamp(160px,26vw,240px);height:108px;pointer-events:auto;touch-action:none;-webkit-user-select:none;user-select:none;border:1px solid #eee8;border-radius:24px;background:#202020bb;color:#fff;transform:scale(var(--control-scale));transform-origin:bottom left;text-align:center}.steer-guide,.steer-hint{position:absolute;left:0;width:100%;font-size:10px;letter-spacing:1px;pointer-events:none}.steer-guide{top:12px}.steer-hint{bottom:10px}.steer-track{position:absolute;left:12%;width:76%;top:52px;height:3px;background:#fff5}.steer-track:before{content:"";position:absolute;left:50%;height:24px;top:-11px;border-left:1px solid #fff7}.steer-knob{position:absolute;left:calc(50% - var(--steer,0)*50%);top:50%;width:38px;height:38px;background:#dc2828;border:2px solid #ffc4c8;border-radius:50%;transform:translate(-50%,-50%);transition:left .1s}.active .steer-knob{transition:none}.steer-wheel{display:none}#touch-controls:not([data-steering=buttons]):not([data-steering=drag]) .touch-steer{display:none}#touch-controls[data-steering=buttons] .analog-steer,#touch-controls[data-steering=drag] .analog-steer{display:none}#touch-controls[data-steering=wheel] .analog-steer{width:156px;height:156px;border:0;background:transparent}#touch-controls[data-steering=wheel] .steer-track,#touch-controls[data-steering=wheel] .steer-guide,#touch-controls[data-steering=wheel] .steer-hint{display:none}.steer-wheel{position:absolute;inset:5px;border:12px solid #252525e8;box-shadow:0 0 0 2px #ddd9,inset 0 0 0 2px #ddd9;border-radius:50%;transition:transform .1s;pointer-events:none}#touch-controls[data-steering=wheel] .steer-wheel{display:block}.active .steer-wheel{transition:none}.steer-wheel:before,.steer-wheel:after{content:"";position:absolute;background:#444e;left:0;right:0;top:50%;height:13px}.steer-wheel:after{left:calc(50% - 7px);right:auto;top:50%;bottom:0;width:14px;height:auto}.steer-wheel i{position:absolute;left:calc(50% - 6px);top:-12px;width:12px;height:12px;background:#ef4549}.steer-wheel b{position:absolute;left:calc(50% - 20px);top:calc(50% - 14px);width:40px;height:40px;background:#353535;border-radius:50%;z-index:1}#touch-controls[data-steering=joystick] .analog-steer{border-radius:50%;width:144px;height:144px}#touch-controls[data-steering=joystick] .steer-track{top:70px}#touch-controls[data-steering=tilt] .analog-steer,#touch-controls[data-steering=gamepad] .analog-steer{height:40px;pointer-events:none}#touch-controls[data-steering=tilt] .steer-track,#touch-controls[data-steering=tilt] .steer-guide,#touch-controls[data-steering=gamepad] .steer-track,#touch-controls[data-steering=gamepad] .steer-guide{display:none}#touch-controls [data-hold=throttle],#touch-controls [data-hold=brake]{background-image:linear-gradient(to top,#ffffff30 var(--pedal,0%),transparent var(--pedal,0%))}#touch-controls.controls-mirrored .analog-steer,#touch-controls.controls-mirrored .touch-steer,#touch-controls.controls-mirrored .touch-shifts,#touch-controls.controls-mirrored .touch-recover{left:auto;right:max(16px,env(safe-area-inset-right));transform-origin:bottom right}#touch-controls.controls-mirrored .touch-pedals{right:auto;left:max(16px,env(safe-area-inset-left));transform-origin:bottom left}@media(max-height:450px){.analog-steer{height:90px}.steer-track{top:44px}#touch-controls[data-steering=wheel] .analog-steer{width:130px;height:130px}}#touch-controls[data-steering=wheel] .touch-recover,#touch-controls[data-steering=joystick] .touch-recover{bottom:calc(var(--control-bottom) + 164px * var(--control-scale))}#touch-controls[data-steering=wheel] .touch-shifts,#touch-controls[data-steering=joystick] .touch-shifts{bottom:calc(var(--control-bottom) + 214px * var(--control-scale))}#touch-controls[data-steering=slider] .touch-recover{bottom:calc(var(--control-bottom) + 116px * var(--control-scale))}#touch-controls[data-steering=slider] .touch-shifts{bottom:calc(var(--control-bottom) + 166px * var(--control-scale))}#touch-controls[data-steering=joystick] .analog-steer.active .steer-track{left:calc(var(--joystick-origin-x) - 42%);width:84%;top:var(--joystick-origin-y)}@media(max-height:450px){#touch-controls[data-steering=wheel] .touch-recover,#touch-controls[data-steering=joystick] .touch-recover{bottom:calc(var(--control-bottom) + 148px * var(--control-scale))}#touch-controls[data-steering=wheel] .touch-shifts,#touch-controls[data-steering=joystick] .touch-shifts{bottom:calc(var(--control-bottom) + 198px * var(--control-scale))}#touch-controls[data-steering=slider] .touch-recover{bottom:calc(var(--control-bottom) + 98px * var(--control-scale))}#touch-controls[data-steering=slider] .touch-shifts{bottom:calc(var(--control-bottom) + 148px * var(--control-scale))}}#touch-controls:is([data-steering=wheel],[data-steering=joystick]){--steer-width:156px}#touch-controls:is([data-steering=wheel],[data-steering=joystick]) :is(.touch-recover,.touch-shifts){left:calc(max(16px,env(safe-area-inset-left)) + var(--steer-width)*var(--control-scale) + 10px);right:auto;bottom:var(--control-bottom)}#touch-controls:is([data-steering=wheel],[data-steering=joystick]) .touch-shifts{bottom:calc(var(--control-bottom) + 54px);gap:4px}#touch-controls:is([data-steering=wheel],[data-steering=joystick]) .touch-shifts button{width:42px;height:44px}#touch-controls:is([data-steering=wheel],[data-steering=joystick]) .touch-recover{font-size:11px;width:88px;height:44px;padding:4px}#touch-controls.controls-mirrored:is([data-steering=wheel],[data-steering=joystick]) :is(.touch-recover,.touch-shifts){left:auto;right:calc(max(16px,env(safe-area-inset-right)) + var(--steer-width)*var(--control-scale) + 10px)}#touch-controls.controls-mirrored[data-steering=slider] :is(.touch-recover,.touch-shifts){left:auto;right:calc(max(16px,env(safe-area-inset-right)) + clamp(160px,26vw,240px)*var(--control-scale) + 10px);bottom:var(--control-bottom)}#touch-controls.controls-mirrored[data-steering=slider] .touch-shifts{bottom:calc(var(--control-bottom) + 54px);gap:4px}#touch-controls.controls-mirrored[data-steering=slider] .touch-shifts button{width:42px;height:44px}#touch-controls.controls-mirrored[data-steering=slider] .touch-recover{font-size:11px;width:88px;height:44px;padding:4px}@media(max-height:450px){#touch-controls:is([data-steering=wheel],[data-steering=joystick]){--steer-width:144px}}.setup-editor{margin:14px 0;padding:14px;border:1px solid #45464b;background:#14161b;color:#eee}.setup-editor summary{cursor:pointer;font-weight:700;text-transform:uppercase;letter-spacing:.07em}.setup-editor p,.setup-editor small{font-size:12px;color:#b7b8bd;line-height:1.5}.setup-editor label{display:block;margin-top:12px;font-size:13px}.setup-editor select,.setup-editor input:not([type=range]){width:100%;box-sizing:border-box}.setup-range{margin:16px 0}.setup-range label{display:flex;justify-content:space-between;gap:12px}.setup-range output{color:#fff;font-weight:700}.setup-range input[type=range]{width:100%;height:32px;accent-color:#dc2828;margin:0}.setup-range input:disabled{opacity:.35}.setup-extremes{display:flex;justify-content:space-between;font-size:11px;color:#ccc}.setup-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}.setup-actions button{min-height:40px;font-size:12px;padding:8px}#ready-setup{font-size:12px;color:#b8bec8;margin-top:-12px;margin-bottom:18px}@media(orientation:landscape)and (max-height:500px){#garage:has(.setup-editor[open]) .garage-layout{display:block;height:calc(100% - 50px);min-height:0}#garage:has(.setup-editor[open]) .garage-view{display:none}#garage:has(.setup-editor[open]) .garage-details{height:100%;max-height:100%;overflow:auto;padding:0;width:100%}#garage:has(.setup-editor[open]) .garage-details>:is(.eyebrow,h3,.garage-navigation,#garage-status,#garage-specs,small,label){display:none}#garage:has(.setup-editor[open]) .garage-details>#vehicle-select{margin:0 0 6px}#garage .setup-editor[open]{margin:0 0 8px;padding:10px}#garage .setup-editor[open] .setup-ranges{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}#garage .setup-editor[open] .setup-range{margin:6px 0}#garage .setup-editor[open] .setup-range label{display:block;margin:8px 0 0}#garage .setup-editor[open] .setup-range output{display:block;min-height:20px;margin-top:4px}#garage .setup-editor[open] .setup-range small{font-size:10px;margin-top:8px}}#graphics-error{max-width:560px;width:calc(100vw - 36px);max-height:calc(100dvh - 32px);overflow:auto;box-sizing:border-box;background:#181b22;color:#efeee7;border:1px solid #dc2828;padding:24px;z-index:100}#graphics-error::backdrop{background:#090b10ee}#graphics-error h2{font-size:28px;line-height:1.2}#graphics-error p{font-size:14px;line-height:1.5}#graphics-error button{display:block;width:100%;margin-top:10px;min-height:44px}#graphics-code{display:block;color:#aaa;margin-top:12px}#graphics-mode{font-size:12px;margin-top:12px}:root{--red:#dc2828;--paper:#efeee7;--ink:#181b22;--panel:#1c2028;--line:#ffffff24;--race-line:#25252524;--race-tint:#dc28280a;color-scheme:dark;font-family:Inter,system-ui,sans-serif}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid #fff;outline-offset:4px}button{touch-action:manipulation}button[hidden],[hidden]{display:none!important}body{background:#101318}header{height:88px;padding:20px 36px;color:#f1f0ea}header .brand{color:#f1f0ea;font-family:Anton,Impact,sans-serif;font-weight:400;letter-spacing:1.5px;gap:14px}header .brand-emblem{width:70px;height:38px;object-fit:contain}.brand .racing{letter-spacing:5px;font-size:10px;color:#d3d4d8}.edition{color:#bfc1c7;font-size:9px}.edition i{background:var(--red)}h1,h2,h3{font-family:Anton,Impact,sans-serif;font-weight:400!important}h1 em{color:var(--red)}.eyebrow{font-size:10px;font-weight:600;letter-spacing:2px;color:#bdc0c9}.primary{background:var(--red);color:#fff;border:1px solid transparent;border-radius:2px;min-height:48px;font-size:13px;padding:14px 22px;letter-spacing:.3px}.primary:hover{background:#f0343a}.secondary{color:inherit;border:1px solid currentColor;border-color:#ffffff35;min-height:44px;border-radius:2px}.secondary:hover{background:#ffffff0a}.text-button{color:inherit}select,input[type=text],input[type=number]{background:#242932;color:#fff;border:1px solid #ffffff28;border-radius:2px;padding:11px}input[type=range]{accent-color:var(--red)}p{color:#bfc1c7}#home{padding:94px 36px 58px;overflow:hidden;background:linear-gradient(90deg,#101318f5,#101318c9 27%,#10131822 58%,transparent);color:var(--paper);isolation:isolate}#home:not([data-screen=hub]):before{content:"";position:absolute;inset:0;background:#101318ee;z-index:-1}#home[data-screen=ready]:before{background:linear-gradient(90deg,#101318f7,#101318c9 40%,#10131866)}.console-screen{height:100%;min-height:0;display:flex;flex-direction:column;animation:menu-enter .2s ease-out}.hub-screen{position:relative;justify-content:center}.hub-copy{width:min(39vw,480px);padding-bottom:14px}.hub-copy h1{font-size:clamp(46px,7.4vh,84px);line-height:1.06;letter-spacing:-1px;margin:16px 0 26px}.hub-nav{display:grid;gap:4px;max-width:385px}.hub-action{display:flex;align-items:center;width:100%;gap:16px;padding:12px 16px;text-align:left;min-height:64px;color:#f2f1ea;background:#ffffff06;border:1px solid transparent;border-left:3px solid transparent;border-radius:0;transition:background .15s,border-color .15s}.hub-action:hover,.hub-action:focus-visible{background:#ffffff10;border-left-color:var(--red)}#play-menu{background:var(--red);color:#fff}.hub-number{font-size:10px;opacity:.6;font-weight:600}.hub-action>span:nth-child(2){font-family:Anton,Impact,sans-serif;font-size:28px;font-weight:400}.hub-action small{display:block;font:10px Inter,sans-serif;letter-spacing:.3px;color:#aeb2bb;margin-top:3px}.hub-action b{margin-left:auto;font-size:23px;font-weight:400}.hub-action:first-child small{color:#ddd}#play-menu small{color:#ffe2e3}.hub-secondary{margin-top:14px}.hub-secondary .secondary{border:0;width:auto;padding:8px 0;font-size:11px;color:#a5a9b2;min-height:32px}.hub-secondary .secondary span{font-size:14px;margin-left:14px}.hub-car-label{position:absolute;right:4%;bottom:28px;text-align:right}.hub-car-label #vehicle-name{display:block;color:#fff;font:28px Anton,sans-serif;letter-spacing:.5px;margin:8px 0}.hub-car-label small{font-size:8px;letter-spacing:2px;color:#a3a8b2}.car-label-line{display:block;height:2px;width:70px;background:var(--red);margin:12px 0 12px auto}.screen-heading{display:flex;align-items:center;gap:20px;padding-bottom:22px;flex-shrink:0}.screen-heading h2{font-size:45px;line-height:1.1;margin:7px 0 0;color:#f4f3eb}.back-button{background:transparent;border:1px solid #ffffff35;color:#fff;width:44px;height:44px;flex-shrink:0;font-size:20px}.setup-steps{font-size:9px;letter-spacing:2px;color:#b7bbc4;margin-left:auto}.setup-steps i{font-style:normal;margin:0 10px;color:var(--red)}.stage-layout{display:grid;grid-template-columns:minmax(245px,31%) 1fr;gap:24px;flex:1;min-height:0}.stage-choices{min-height:0}#stage-list{max-height:none;height:100%;overflow:auto;scrollbar-width:thin;scrollbar-color:#515762 transparent;padding-right:6px}.stage-card{background:#ffffff05;color:#f0f0eb;min-height:78px;margin:0 0 8px;padding:16px 32px 16px 18px;border:1px solid #ffffff16;border-radius:2px}.stage-card strong{font-family:Anton,Impact,sans-serif;font-weight:400;font-size:22px;line-height:1.15}.stage-card small{color:#949ba8;font-size:10px;line-height:1.4;margin-top:7px}.stage-card.selected{background:#fff1;border-color:#ffffff50;border-left:3px solid var(--red);padding-left:16px}.stage-card:hover{background:#ffffff12}.stage-card>span{color:#f14a50;font-size:22px;top:15px}.stage-card:focus-visible{outline-offset:-4px}.stage-preview{position:relative;min-height:0;overflow:hidden;background:#242c2f;border:1px solid #ffffff18}.stage-photo,.stage-shade{position:absolute;width:100%;height:100%;inset:0;object-fit:cover}.stage-photo{opacity:.8}.stage-shade{background:linear-gradient(0deg,#090d13,#0a101755 60%,#0a101733)}.stage-location{position:absolute;top:22px;left:24px;font-size:9px;letter-spacing:2px;color:#fff}.stage-map{position:absolute;right:-3%;top:0;width:58%;height:70%;object-fit:contain}.stage-preview-copy{position:absolute;bottom:26px;left:30px;right:26px}.stage-preview-copy h3{font-size:clamp(30px,3.7vw,58px);line-height:1.15;margin:10px 0 20px;color:#fff}.preview-stats{display:flex;gap:42px;margin:0}.preview-stats dt,.ready-specs dt{font-size:8px;letter-spacing:1.4px;color:#a5abb6}.preview-stats dd{font-size:21px;font-weight:600;font-variant-numeric:tabular-nums;margin:7px 0 0;color:#fff}.screen-actions{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-top:18px;flex-shrink:0}.screen-actions .primary{width:260px}.screen-note{font-size:11px;color:#8f97a4}.ready-layout{display:grid;grid-template-columns:minmax(300px,43%) 1fr;gap:40px;min-height:0;flex:1}.ready-info{overflow:auto;padding:14px 10px 12px 0;scrollbar-width:thin}.ready-info h3{font-size:44px;line-height:1.15;margin:12px 0;color:#fff}.ready-info>p{font-size:17px;color:#ddd;margin:0 0 28px}.ready-specs{display:flex;gap:32px;margin:0 0 28px}.ready-specs dd{font-size:17px;font-weight:600;margin:8px 0 0}.ready-reference label{font-size:10px;letter-spacing:.4px;color:#c4c7cf;display:block;margin-bottom:8px}.ready-reference select{width:100%;font-size:12px}.ready-edit{display:flex;gap:10px;margin:14px 0}.ready-edit .secondary{margin:0;font-size:11px;padding:10px 14px}.ready-map-wrap{position:relative;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#ffffff02}.ready-map{width:100%;max-height:85%;object-fit:contain}.ready-map-wrap>span{font-size:9px;letter-spacing:3px;color:#a3aab6}.ready-map-wrap i{font-style:normal;color:var(--red);margin:0 25px}.settings-screen .setup-steps{display:none}.settings-layout{display:grid;grid-template-columns:1fr 1fr;gap:20px;overflow:auto;min-height:0}.settings-layout article{padding:26px;background:#ffffff04;border:1px solid #ffffff18}.settings-layout h3{font-size:28px;color:#f5f2eb;margin:15px 0}.settings-layout p{font-size:12px}.settings-layout label{display:flex;align-items:center;gap:16px;margin:18px 0;font-size:12px}.settings-layout input{flex:1;min-width:40px}.settings-extra{grid-column:1/-1}.settings-extra .secondary{width:auto;display:inline-flex;margin-right:10px}.settings-extra p{margin:12px 0}.settings-layout a{text-decoration:none}#footer{height:42px;padding:12px 36px;background:#101318ec;color:#949ba7;border-top:1px solid #ffffff14;font-size:8px;letter-spacing:1px;z-index:7;align-items:center}#footer i{font-style:normal;color:var(--red)}#footer a{color:#bdc2cd;text-decoration:none;margin-left:20px}#footer a:first-child{color:#eee}#footer span{white-space:nowrap}#loading{padding:0;background:#101318;overflow:hidden;color:#fff}#loading .loading-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.7}#loading .loading-photo:not([src]){display:none}.loading-vignette{position:absolute;inset:0;background:linear-gradient(0deg,#0c1017 2%,#0c101788 55%,#0c101755),linear-gradient(90deg,#0c1017bb,transparent)}.loading-brand{position:absolute;top:34px;left:36px;display:flex;align-items:center;gap:20px;font:22px Anton,sans-serif;letter-spacing:5px}.loading-brand img{width:90px;height:48px;object-fit:contain}.loading-route{position:absolute;right:8%;top:10%;width:45%;height:58%}.loading-route img{width:100%;height:100%;object-fit:contain}#loading .modal{position:absolute;bottom:62px;left:36px;right:36px;width:auto;max-width:none;background:transparent;padding:0;border:0;box-shadow:none;text-align:left;max-height:70%;overflow:auto}#loading .eyebrow{color:#d4d8df}#loading h2{font-size:clamp(40px,5.3vw,76px);line-height:1.06;width:70%;margin:18px 0 24px;color:#fff}#loading-label{font-size:12px;color:#d2d7e0;width:65%}#loading-progress{display:block;width:65%;height:4px;accent-color:var(--red);appearance:none;border:0;background:#ffffff26;border-radius:0}#loading-progress::-webkit-progress-bar{background:#ffffff26}#loading-progress::-webkit-progress-value{background:var(--red)}#loading-progress::-moz-progress-bar{background:var(--red)}#loading-percent{font:26px Anton,sans-serif;color:#fff;margin:12px 0}#loading-quote{position:absolute;right:0;bottom:36px;width:28%;font-size:14px;line-height:1.7;border:0;margin:0;color:#dadce2}#loading-author{position:absolute;right:0;bottom:0;width:28%;font-size:10px;color:#9aa1ae;margin:0}#loading-author a{color:inherit}#loading-retry{max-width:340px}#garage{width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;border:0;border-top:3px solid var(--red);border-radius:0;padding:24px 36px;background:#15181e;color:var(--paper)}#garage::backdrop{background:#101318}.garage-heading{height:64px;align-items:center}.garage-heading h2{font-size:34px;color:#fff;margin:6px 0}.garage-heading .secondary{width:auto;margin:0}.garage-layout{height:calc(100% - 78px);grid-template-columns:minmax(0,1.65fr) minmax(270px,1fr);gap:28px}.garage-view{min-height:0;background:#15181e;border:1px solid #ffffff16}.garage-view canvas{width:100%;height:100%;min-height:0;touch-action:none}.garage-tools{bottom:12px;gap:5px}.garage-tools button{background:#292f39;color:#ecebe7;border-color:#ffffff26;min-height:36px;padding:8px 12px}.garage-details{padding:16px 8px 10px 0}.garage-details h3{font-size:34px;color:#f3f1eb;margin:14px 0}.garage-details label,.garage-details small,.vehicle-specs dt{color:#aeb5c0}.garage-details select{width:100%;margin-top:8px}.vehicle-specs>div{border-color:#ffffff1c;padding:10px 0}.vehicle-specs dd{color:#eee}.garage-navigation{gap:8px}.garage-navigation .secondary{font-size:11px;padding:10px 12px}.vehicle-character{color:#c5cbd6}.garage-details>small{font-size:9px}.garage-details #garage-confirm{position:sticky;bottom:0;box-shadow:0 -8px 15px #15181e}#pause{background:#0c101ae6;padding:28px;color:var(--paper);-webkit-backdrop-filter:none;backdrop-filter:none}#pause .modal{background:transparent;width:min(950px,95vw);max-width:none;display:grid;grid-template-columns:1fr 1fr;gap:70px;padding:24px;max-height:90dvh;overflow:auto;text-align:left;box-shadow:none}.pause-copy h2{font-size:74px;line-height:1;margin:22px 0;color:#fff}.pause-copy p{font-size:14px}.pause-actions{display:flex;flex-direction:column;gap:8px}.pause-actions .secondary{margin:0}.pause-extras{margin-top:8px;border-top:1px solid #ffffff26;padding-top:12px;font-size:12px}.pause-extras summary{cursor:pointer;padding:10px 0;color:#d5d9e0}.pause-extras label{margin:16px 0}.pause-extras input{accent-color:var(--red)}.pause-extras .secondary{margin-top:8px}.pause-actions #leave{padding:12px;text-align:left;color:#bbb}#control-settings{color:var(--paper);background:#1a1e26;border:1px solid #ffffff25;border-top:3px solid var(--red);border-radius:0;width:min(660px,94vw);padding:26px;max-height:90dvh}#control-settings h2{font-size:40px;color:#fff}#control-settings select{background:#2a303b;color:#fff;border:1px solid #ffffff25}#control-settings p{color:#b8c0cc}#control-settings label{font-size:12px;border-bottom:1px solid #ffffff13;padding-bottom:12px}#control-settings output{font-variant-numeric:tabular-nums;color:#fff}#control-settings::backdrop{background:#090c12dd}#leaderboard-dialog,#finish .result-dashboard{color-scheme:light;color:var(--ink)}#leaderboard-dialog::backdrop{background:#090c12ed;-webkit-backdrop-filter:none;backdrop-filter:none}#leaderboard-dialog .eyebrow,#finish .eyebrow{color:#676c76}#leaderboard-dialog .secondary,#finish .secondary{color:var(--ink);border-color:#25252540}#leaderboard-dialog p,#finish p{color:#666b73}#leaderboard-dialog select{background:#fff;color:var(--ink);width:100%;margin:0 0 15px;border:1px solid #25252530}#leaderboard-dialog h2,#finish h2{color:var(--ink);font-family:Anton,Impact,sans-serif}#leaderboard-dialog button:focus-visible,#finish button:focus-visible{outline-color:var(--red)}#finish{background:#090c12e8;-webkit-backdrop-filter:none;backdrop-filter:none}#finish>.result-dashboard{max-height:94dvh;overflow:auto}#finish .result-masthead,#leaderboard-dialog .ranking-masthead{color:#343944}#finish .result-stage{color:#9f2228}#finish .result-clock b{font-family:Anton,sans-serif;font-weight:400}#finish .ranking-global{color:#ad252b;background:#dc28280c}#finish .result-footnote{color:#555}#finish input{background:#fff;color:var(--ink)}#rotate-dialog{background:#1a1e26;color:#fff;border:0;border-top:3px solid var(--red);border-radius:0}#rotate-dialog h2{color:#fff}#rotate-dialog p{color:#bac2cf}#rotate-dialog::backdrop{background:#090c12ed}#editor{color-scheme:light}#editor select,#editor input{background:#fff;color:#252525}#editor h2{color:#252525}#editor .secondary{color:#252525;border-color:#25252540}#touch-controls .touch-throttle{background-color:var(--red)}#touch-controls .steer-knob{background:var(--red);border-color:#ffc4c8}.progress-track i,.rpm-track i{background:var(--red)}@keyframes menu-enter{0%{transform:translateY(7px)}to{transform:none}}@media(max-width:1000px),(max-height:650px){header{height:64px;padding:14px 24px}.brand-emblem{width:54px!important;height:30px!important}#home{padding:72px 24px 48px}.hub-copy{width:42vw}.hub-copy h1{font-size:48px;margin:10px 0 16px}.hub-action{min-height:52px;padding:8px 12px}.hub-action>span:nth-child(2){font-size:24px}.screen-heading{padding-bottom:14px;gap:14px}.screen-heading h2{font-size:36px}.stage-layout{gap:16px;grid-template-columns:minmax(220px,33%) 1fr}.stage-card{min-height:64px;padding:12px 28px 12px 14px}.stage-card.selected{padding-left:12px}.stage-card strong{font-size:20px}.stage-card small{font-size:9px;margin-top:4px}.stage-preview-copy{left:20px;bottom:20px}.stage-preview-copy h3{font-size:36px;margin-bottom:14px}.preview-stats dd{font-size:17px}.ready-info h3{font-size:34px}.ready-info>p{margin-bottom:18px;font-size:14px}.ready-specs{margin-bottom:18px;gap:24px}.settings-layout article{padding:18px}.settings-layout h3{font-size:24px}#footer{padding-left:24px;padding-right:24px}.hub-car-label #vehicle-name{font-size:23px}#garage{padding:16px 24px}.garage-layout{gap:18px}.garage-details h3{font-size:27px}.garage-heading{height:50px}.garage-heading h2{font-size:28px}.garage-layout{height:calc(100% - 60px)}}@media(orientation:landscape)and (max-height:500px){header{height:48px;padding:9px max(16px,env(safe-area-inset-left)) 9px max(16px,env(safe-area-inset-right))}.edition{display:none}header .brand{font-size:12px;gap:9px}.brand .racing{font-size:8px;letter-spacing:3px}.brand-emblem{width:43px!important;height:25px!important}#home{padding:55px max(16px,env(safe-area-inset-right)) 34px max(16px,env(safe-area-inset-left))}.hub-copy{width:40%;padding:0}.hub-copy>.eyebrow{font-size:8px;letter-spacing:1.1px}.hub-copy h1{font-size:36px;margin:8px 0 12px}.hub-nav{gap:2px}.hub-action{min-height:44px;padding:6px 10px;gap:10px}.hub-action>span:nth-child(2){font-size:21px}.hub-action small{display:none}.hub-secondary{margin-top:3px}.hub-secondary .secondary{font-size:9px;min-height:26px;padding:4px 0}.hub-car-label{right:1%;bottom:15px;max-width:48%}.hub-car-label #vehicle-name{font-size:20px}.hub-car-label .eyebrow{font-size:8px}.hub-car-label small{font-size:7px}.car-label-line{margin:8px 0 8px auto}.screen-heading{gap:12px;padding-bottom:10px;min-height:44px}.screen-heading h2{font-size:28px;margin:4px 0 0}.screen-heading .eyebrow{font-size:8px}.setup-steps{font-size:7px;letter-spacing:1px}.setup-steps i{margin:0 4px}.back-button{width:36px;height:36px}.stage-layout{grid-template-columns:32% 1fr;gap:12px}.stage-card{min-height:54px;padding:9px 25px 9px 11px;margin-bottom:5px}.stage-card.selected{padding-left:9px}.stage-card strong{font-size:17px}.stage-card small{display:none}.stage-card>span{top:8px;font-size:18px}.stage-location{top:12px;left:14px;font-size:7px}.stage-preview-copy{left:14px;right:12px;bottom:12px}.stage-preview-copy h3{font-size:27px;margin:5px 0 10px}.stage-preview-copy .eyebrow{font-size:7px}.preview-stats{gap:24px}.preview-stats dt{font-size:7px}.preview-stats dd{font-size:13px;margin-top:4px}.stage-map{width:48%;height:75%;right:0;top:-5%}.screen-actions{padding-top:8px;gap:12px}.screen-actions .primary{min-height:40px;padding:10px 16px;width:220px;font-size:11px}.screen-note{font-size:9px}.ready-layout{grid-template-columns:52% 1fr;gap:18px}.ready-info{padding-top:0}.ready-info>.eyebrow{display:none}.ready-info h3{font-size:26px;margin:0 0 6px}.ready-info>p{font-size:12px;margin-bottom:12px}.ready-specs{gap:22px;margin-bottom:12px}.ready-specs dt{font-size:7px}.ready-specs dd{font-size:12px;margin-top:4px}.ready-reference label{font-size:9px;margin-bottom:4px}.ready-reference select{font-size:10px;padding:8px}.ready-edit{margin:8px 0;gap:6px}.ready-edit .secondary{min-height:34px;padding:7px 10px;font-size:10px}.ready-start .primary{min-height:42px;padding:10px 16px;font-size:12px}.settings-layout{gap:12px}.settings-layout article{padding:15px}.settings-layout h3{font-size:22px;margin:9px 0}.settings-layout p{font-size:10px}.settings-layout .eyebrow{font-size:8px}.settings-layout .secondary{font-size:10px;padding:9px 12px;min-height:38px}.settings-layout label{font-size:10px;margin:13px 0}#footer{height:27px;padding:7px 16px;font-size:6px;letter-spacing:.7px}#footer a{margin-left:12px}#loading .modal{left:24px;right:24px;bottom:23px;max-height:72%}#loading h2{font-size:38px;margin:10px 0 15px}#loading-label{font-size:10px;margin:8px 0}#loading-percent{font-size:20px;margin:9px 0 0}#loading .eyebrow{font-size:8px}.loading-brand{top:18px;left:24px;font-size:16px;gap:12px}.loading-brand img{width:64px;height:34px}.loading-route{top:5%;height:57%;right:2%}#loading-quote{font-size:10px;line-height:1.55;bottom:30px}#loading-author{font-size:8px}#garage{padding:10px 16px}.garage-heading{height:40px}.garage-heading h2{font-size:24px}.garage-heading .eyebrow{font-size:8px}.garage-heading .secondary{min-height:34px;padding:8px 12px;font-size:10px}.garage-layout{height:calc(100% - 50px);grid-template-columns:57% 1fr;gap:16px}.garage-details{padding-top:5px;max-height:100%;overflow:auto}.garage-details>.eyebrow{font-size:7px}.garage-details h3{font-size:24px;margin:8px 0}.garage-details select{padding:8px;font-size:11px}.garage-details label{font-size:10px}.garage-navigation .secondary{min-height:34px;padding:8px;font-size:9px}.vehicle-character,.vehicle-specs{font-size:10px}.vehicle-specs>div{padding:6px 0}.garage-tools{bottom:8px;left:8px;right:8px;gap:4px;flex-wrap:wrap;justify-content:center}.garage-tools button{min-height:30px;padding:6px 8px;font-size:9px}.garage-details #garage-confirm{min-height:40px;padding:10px 14px;font-size:11px}.garage-details>small{font-size:8px}#pause{padding:12px}#pause .modal{padding:16px;gap:35px;max-height:94dvh}.pause-copy h2{font-size:54px}.pause-copy p{font-size:12px}.pause-actions{gap:5px}.pause-actions .primary,.pause-actions .secondary{min-height:40px;padding:10px 14px;font-size:11px}.pause-actions #leave{padding:8px;font-size:10px}.pause-extras{margin:0;padding-top:4px;font-size:10px}.pause-extras summary{padding:6px 0}#control-settings{max-height:94dvh;padding:18px 24px;width:min(660px,92vw)}#control-settings h2{font-size:30px;margin:10px 0}#leaderboard-dialog{max-height:94dvh}#finish>.result-dashboard{max-height:94dvh}#finish-title{font-size:42px}}@media(orientation:landscape)and (max-height:350px){.hub-copy h1{display:none}.hub-copy>.eyebrow{margin-bottom:10px}.hub-action{min-height:44px}.screen-heading h2{font-size:25px}.screen-heading{padding-bottom:7px}.stage-preview-copy h3{font-size:24px}.stage-preview-copy .eyebrow,.stage-location,.screen-note{display:none}.stage-map{height:95%;width:45%}.screen-actions{justify-content:flex-end}.ready-map-wrap{display:none}.ready-layout{grid-template-columns:1fr}.ready-info{display:grid;grid-template-columns:1fr 1fr;gap:8px 20px;align-content:start}.ready-info h3{font-size:24px}.ready-info>p{grid-column:1;margin:0}.ready-specs{grid-column:1;grid-row:3;margin:0}.ready-reference{grid-column:2;grid-row:1/3}.ready-edit{grid-column:2;grid-row:3;margin:0}.ready-start{grid-column:2;grid-row:4}.loading-route{top:0;height:58%}#loading h2{font-size:32px}.hub-car-label{bottom:12px}}@media(orientation:portrait)and (max-width:700px){header{height:62px;padding:14px 18px}.edition{display:none}#home{padding:75px 18px 48px;overflow:auto;background:linear-gradient(90deg,#101318ee,#101318a0)}.hub-copy{width:100%;max-width:360px}.hub-copy h1{font-size:46px}.hub-car-label{display:none}.hub-screen{min-height:550px}.stage-layout{grid-template-columns:1fr;grid-template-rows:180px minmax(220px,1fr);overflow:auto}.stage-preview{min-height:240px}.stage-screen{min-height:610px}.setup-steps{display:none}.screen-heading h2{font-size:30px}.stage-card{min-height:58px}.stage-card small{display:none}.stage-map{height:75%}.stage-preview-copy h3{font-size:32px}.screen-note{display:none}.screen-actions{justify-content:flex-end}.ready-layout{grid-template-columns:1fr}.ready-map-wrap{display:none}.ready-screen{min-height:510px}.settings-layout{grid-template-columns:1fr;overflow:visible}.settings-screen{height:auto}.settings-extra{grid-column:auto}.settings-layout article{padding:18px}#footer{height:35px;padding:10px 16px}#footer>span:first-child{display:none}#footer a{margin:0 12px 0 0;font-size:7px}#garage{padding:14px}.garage-layout{height:calc(100% - 60px);grid-template-columns:1fr;grid-template-rows:40% 1fr;gap:10px;overflow:auto}.garage-details{max-height:none}.garage-heading h2{font-size:25px}.garage-heading .secondary{padding:8px;font-size:10px}.garage-details h3{font-size:26px}.garage-view{min-height:220px}#pause .modal{grid-template-columns:1fr;gap:15px;padding:14px}.pause-copy h2{font-size:44px;margin:12px 0}.pause-copy p{display:none}#loading .modal{left:22px;right:22px;bottom:35px;max-height:65%}#loading h2{width:100%;font-size:44px}#loading-label,#loading-progress{width:100%}#loading-quote,#loading-author{position:static;width:100%;margin-top:14px}#loading-quote{font-size:12px}#loading-author{font-size:9px}.loading-brand{top:24px;left:22px}.loading-route{width:85%;right:0;top:10%;height:38%}}@media(prefers-reduced-motion:reduce){.console-screen{animation:none}*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}#open-garage.hub-action>span:nth-child(2){font-size:28px}#loading #loading-progress{min-width:0;width:65%;height:4px}.ready-start{justify-content:space-between}.ready-start #start{width:260px}@media(max-width:1000px),(max-height:650px){#open-garage.hub-action>span:nth-child(2){font-size:24px}}@media(orientation:landscape)and (max-height:500px){.hub-copy h1{font-size:28px;line-height:1.02;margin:6px 0 9px}.hub-copy>.eyebrow{line-height:1.2}.hub-action{height:44px;min-height:44px}.hub-action>span:nth-child(2),#open-garage.hub-action>span:nth-child(2){font-size:21px}.ready-start #start{width:220px}.ready-info>p{margin-bottom:8px}.ready-specs{margin-bottom:8px}.ready-edit{margin-bottom:0}.ready-start{flex-shrink:0}}@media(orientation:landscape)and (max-height:350px){.ready-start{display:flex;grid-column:auto;grid-row:auto;justify-content:flex-end}.ready-start #start{width:220px}}@media(orientation:portrait)and (max-width:700px){#loading #loading-progress{width:100%}.ready-start{justify-content:flex-end}}body[data-mode=home] #home .hub-copy h1{font-size:clamp(46px,7.4vh,84px);margin:16px 0 26px}#home #stage-list,.touch-enabled #home #stage-list{max-height:none}#home #split-reference{background:#242932;color:#fff;border-color:#ffffff28;font:12px Inter,sans-serif}@media(max-width:1000px),(max-height:650px){body[data-mode=home] #home .hub-copy h1{font-size:48px;margin:10px 0 16px}}@media(orientation:landscape)and (max-height:600px){.touch-enabled #home{padding-top:72px;padding-bottom:48px}}@media(orientation:landscape)and (max-height:500px){.touch-enabled #home{padding-top:55px;padding-bottom:34px}body[data-mode=home] #home .hub-copy h1{font-size:28px;margin:6px 0 9px}.touch-enabled header{padding:9px max(16px,env(safe-area-inset-right)) 9px max(16px,env(safe-area-inset-left))}#home #split-reference{font-size:10px}.touch-enabled #pause{align-items:center}}@media(orientation:portrait)and (max-width:700px){body[data-mode=home] #home .hub-copy h1{font-size:46px}}body:is([data-mode=driving],[data-mode=paused],[data-mode=finished]) header{display:none}#hud{--race-edge:28px;color:#f5f4ed;background:linear-gradient(180deg,#080c1444,transparent 25%,transparent 75%,#080c1422);font-family:Inter,system-ui,sans-serif}#hud .run-info{top:var(--race-edge);left:max(var(--race-edge),env(safe-area-inset-left));width:260px;gap:0;padding:16px 18px 14px;background:linear-gradient(110deg,#11151ded,#11151db0);border-left:3px solid var(--red);text-shadow:none}#hud .race-kicker{display:block;font-size:8px;letter-spacing:1.8px;color:#c1c6d1;margin-bottom:12px}#hud #run-name{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:.2px;color:#f0f1f5}#hud .race-time-row{display:flex;align-items:center;gap:12px;margin:7px 0 13px}#hud #time{font:500 38px/1.05 Inter,sans-serif;letter-spacing:-1.8px;font-variant-numeric:tabular-nums;font-feature-settings:"tnum"}#hud #race-penalty{border:1px solid #ee626270;color:#fff;background:#a9222b;font-size:10px;padding:4px 6px;white-space:nowrap}#hud .race-progress-label{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px;font-size:8px;letter-spacing:.1px;color:#aab3c2}#hud #progress{display:block;font-size:8px;letter-spacing:0}#hud #race-next{color:#f5f4ed;font-size:9px;font-weight:600;white-space:nowrap}#hud .progress-track{display:block;position:relative;width:100%;height:3px;margin:0;background:#ffffff29}#hud #progress-bar{height:3px;max-width:100%;background:#e83139}#hud .race-split-marker{position:absolute;top:-3px;width:2px;height:9px;background:#cdd0d8;transform:translate(-50%)}#hud .race-split-marker.passed{background:#e83139}#hud .race-tools{position:absolute;top:var(--race-edge);right:max(var(--race-edge),env(safe-area-inset-right));display:flex;align-items:center;gap:8px;pointer-events:auto}#hud .rally-controls,#hud .camera-controls{position:static;transform:none;display:flex;gap:8px;margin:0}#hud .race-tools button{display:flex;justify-content:center;align-items:center;gap:8px;min-height:44px;padding:10px 12px;border:1px solid #ffffff38;border-radius:3px;background:#11151dde;color:#e8ecf2;font:600 9px Inter,sans-serif;box-shadow:none;touch-action:manipulation}#hud .race-tools button:hover{background:#272f3ced}#hud .race-tools button:focus-visible{outline:2px solid white;outline-offset:3px}#hud .race-tools button svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;fill:none;pointer-events:none}#hud .race-tools button[aria-pressed=false]{color:#9fa5b1;border-color:#ffffff24}#hud .race-tools button[aria-pressed=false]:after{content:"";width:5px;height:5px;border-radius:50%;background:#ee474d}#hud #camera-toggle{min-width:110px}#hud #menu-button{background:#eeeeea;color:#181c24;min-width:72px;border-color:transparent}#hud #menu-button:hover{background:#fff}#hud .race-instruments{position:absolute;bottom:68px;right:max(var(--race-edge),env(safe-area-inset-right));width:235px;padding:17px 18px 14px;background:linear-gradient(120deg,#11151dee,#11151dbb);border-top:3px solid var(--red);border-radius:3px 3px 0 0;display:grid;grid-template-columns:1fr auto;gap:10px}#hud .speed{position:static;transform:none;display:grid;grid-template-columns:46px 1fr auto;gap:12px;align-items:center;grid-column:1/-1;margin:0}#hud #gear{font:400 39px/1 Anton,sans-serif;align-self:center;text-align:center;padding:8px 0;border:1px solid #ffffff4d;border-bottom:3px solid var(--red);color:#f1f0ea}#hud #speed{font:400 76px/.95 Anton,sans-serif;text-align:right;letter-spacing:0;font-variant-numeric:tabular-nums;color:#fff}#hud .speed small{font-size:8px;letter-spacing:1px;writing-mode:vertical-rl;align-self:end;padding-bottom:3px}#hud .telemetry{position:static;transform:none;width:auto;display:flex;flex-direction:column;gap:7px;font-size:9px;letter-spacing:.6px;grid-column:1/-1}#hud #rpm{order:1;color:#b8c2cf;font-variant-numeric:tabular-nums}#hud .rpm-track{order:0;height:6px;background:#fff2;position:relative}#hud .rpm-track:after{content:"";position:absolute;inset:0;background:repeating-linear-gradient(90deg,transparent 0,transparent calc(10% - 2px),#161b24 calc(10% - 2px),#161b24 10%)}#hud #rpm-bar{background:#f0eee6;height:100%}#hud .race-redline #rpm-bar{background:#f03b43}#hud .race-redline #gear{background:#c9222b}#hud #grip{font-size:8px;letter-spacing:.8px;color:#f0f0e8;min-height:10px;padding-top:2px;order:2}#hud #surface{position:static;grid-column:2;grid-row:2;font-size:8px;letter-spacing:1px;padding:0;background:none;color:#aab4c3;align-self:end;display:none}#hud .race-alert{border-top-color:#fff}#hud .race-alert #grip{color:#ff8f93}#hud .drive-help{left:28px;bottom:24px;gap:18px;color:#e2e5eb;font-size:9px;text-shadow:0 1px 5px #000;flex-wrap:wrap;right:270px}#hud .drive-help kbd{border-color:#fff3;background:#11151d99;font-size:8px}#split-live{top:28px;left:50%;width:230px;max-width:32vw;padding:12px 18px;display:grid;gap:5px;border:1px solid #ffffff28;border-left:3px solid #fff;background:#11151df2;color:#f6f5ee;box-shadow:0 8px 24px #0002;z-index:6;text-align:left;transform:translate(-50%)}#split-live .split-heading{font-size:9px;letter-spacing:1px;color:#c3cad6}#split-live .split-delta{font:400 34px/1.05 Anton,sans-serif;font-variant-numeric:tabular-nums}#split-live .split-reference{font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#bdc5d2}#split-live[data-comparison=behind]{border-left-color:var(--red)}#split-live[data-comparison=behind] .split-delta{color:#ff686e}#touch-controls button{border:1px solid #ffffff55;border-radius:5px;background:#131a23c9;color:#f7f5ee;box-shadow:inset 0 1px #ffffff0b;font:600 11px Inter,sans-serif}#touch-controls button.held,#touch-controls .touch-steer button.held{background-color:#dc2828!important;border-color:#fff;transform:none;box-shadow:inset 0 0 0 1px #fff3}#touch-controls .touch-pedals .touch-throttle{background-color:#ba222be3!important}#touch-controls .touch-pedals .touch-throttle.held{background-color:#ef343d!important}#touch-controls .touch-steer button{background:#131a23c9!important;border-radius:5px;box-shadow:none}#touch-controls .analog-steer{border-radius:7px;border-color:#ffffff42;background:linear-gradient(125deg,#131a23c9,#131a2380);box-shadow:inset 0 1px #ffffff10}#touch-controls .steer-guide{font-size:8px;letter-spacing:1.3px;color:#d1d8e3}#touch-controls .steer-hint{font-size:7px;letter-spacing:1px;color:#a8b4c7}#touch-controls .steer-track{background:#ffffff45;height:2px}#touch-controls .steer-knob{width:34px;height:34px;border:2px solid #f7f5e9;background:#dc2828;box-shadow:0 2px 9px #0004}#touch-controls .steer-wheel{border-color:#17202ddd;background:#151c2533;box-shadow:0 0 0 2px #dce2eb88,inset 0 0 0 2px #dce2eb55}#touch-controls .steer-wheel:before,#touch-controls .steer-wheel:after{background:#aab5c3}#touch-controls .steer-wheel b{background:#1c2531;border:1px solid #aab5c3}#touch-controls .steer-wheel i{background:#ed343d}#touch-controls[data-steering=wheel] .analog-steer{background:none;box-shadow:none}#touch-controls[data-steering=joystick] .analog-steer{border-radius:50%}@media(max-width:1150px){#split-live{top:110px}}body.touch-enabled #hud{--race-edge:12px}body.touch-enabled #hud .run-info{width:210px;padding:10px 12px;top:12px}body.touch-enabled #hud .race-kicker{font-size:7px;letter-spacing:1px;margin-bottom:7px}body.touch-enabled #hud #run-name{font-size:10px}body.touch-enabled #hud #time{font-size:31px;letter-spacing:-1.3px}body.touch-enabled #hud .race-time-row{margin:5px 0 9px;gap:8px}body.touch-enabled #hud #race-penalty{font-size:8px;padding:3px 4px}body.touch-enabled #hud .race-tools{gap:5px;top:12px}body.touch-enabled #hud .rally-controls,body.touch-enabled #hud .camera-controls{gap:5px}body.touch-enabled #hud .race-tools button{min-width:44px;width:44px;height:44px;padding:8px}body.touch-enabled #hud #transmission{width:65px;font-size:9px;letter-spacing:.1px}body.touch-enabled #hud .race-tools .race-button-label,body.touch-enabled #hud #camera-name{display:none}body.touch-enabled #hud .race-tools button[aria-pressed=false]:after{position:absolute;margin:24px 0 0 22px;width:4px;height:4px}body.touch-enabled #hud .race-instruments{top:68px;bottom:auto;width:154px;padding:10px 12px;gap:6px}body.touch-enabled #hud .speed{grid-template-columns:30px 1fr auto;gap:8px}body.touch-enabled #hud #speed{font-size:46px}body.touch-enabled #hud #gear{font-size:26px;padding:6px 0}body.touch-enabled #hud .speed small{font-size:7px}body.touch-enabled #hud .telemetry{gap:4px}body.touch-enabled #hud #rpm{font-size:8px}body.touch-enabled #hud #grip{font-size:7px;letter-spacing:.2px;min-height:8px}body.touch-enabled #hud .rpm-track{height:4px}body.touch-enabled #split-live{top:14px;max-width:29vw;width:192px;padding:9px 12px;gap:4px}body.touch-enabled #split-live .split-heading{font-size:8px;letter-spacing:.2px}body.touch-enabled #split-live .split-delta{font-size:27px}body.touch-enabled #split-live .split-reference{font-size:8px}#touch-controls{--steer-height:108px;--thumb-edge:max(16px,env(safe-area-inset-left));--aux-bottom:calc(var(--control-bottom) + var(--steer-height) * var(--control-scale) + 10px)}#touch-controls[data-steering=wheel]{--steer-height:156px}#touch-controls[data-steering=joystick]{--steer-height:144px}#touch-controls[data-steering=buttons],#touch-controls[data-steering=drag]{--steer-height:68px}#touch-controls[data-steering=tilt],#touch-controls[data-steering=gamepad]{--steer-height:40px}#touch-controls .touch-shifts{left:var(--thumb-edge);right:auto;bottom:var(--aux-bottom);transform:none;gap:6px}#touch-controls .touch-shifts button{width:44px;min-width:44px;height:40px;min-height:40px;font-size:21px!important}#touch-controls .touch-recover{left:calc(var(--thumb-edge) + 100px);right:auto;bottom:var(--aux-bottom);height:40px;min-height:40px;padding:0 10px;font-size:9px!important;display:flex;align-items:center;gap:5px}#touch-controls .touch-recover>span:first-child{font-size:19px}#touch-controls.controls-mirrored .touch-shifts{left:auto;right:max(16px,env(safe-area-inset-right));transform:none}#touch-controls.controls-mirrored .touch-recover{left:auto;right:calc(max(16px,env(safe-area-inset-right)) + 100px)}.electric-car #touch-controls .touch-recover{left:var(--thumb-edge)}.electric-car #touch-controls.controls-mirrored .touch-recover{left:auto;right:max(16px,env(safe-area-inset-right))}#touch-controls .touch-pedals{gap:8px}#touch-controls .touch-pedals>div{gap:8px}#touch-controls .touch-pedals>div button{width:74px;height:76px;font-size:11px}#touch-controls .touch-handbrake{min-height:40px;height:40px;font-size:9px;letter-spacing:1px}@media(max-height:450px){#touch-controls{--steer-height:90px}#touch-controls[data-steering=wheel],#touch-controls[data-steering=joystick]{--steer-height:130px}#touch-controls[data-steering=joystick] .analog-steer{width:130px;height:130px}#touch-controls .touch-shifts,#touch-controls .touch-recover{bottom:var(--aux-bottom)}}@media(orientation:landscape)and (max-height:350px){body.touch-enabled #hud .run-info{width:190px;padding:8px 10px}body.touch-enabled #hud .race-kicker{display:none}body.touch-enabled #hud .race-time-row{margin:4px 0 6px}body.touch-enabled #hud #time{font-size:27px}body.touch-enabled #hud .race-progress-label{margin-bottom:7px}body.touch-enabled #hud #progress{display:none}body.touch-enabled #hud #race-next{font-size:8px}body.touch-enabled #hud .race-instruments{top:64px;padding:8px 10px;width:144px}body.touch-enabled #hud #speed{font-size:40px}body.touch-enabled #hud #gear{font-size:23px}body.touch-enabled #hud .race-tools{gap:4px}body.touch-enabled #hud #transmission{width:58px;font-size:8px}body.touch-enabled #hud #grip{font-size:7px}#touch-controls[data-steering=wheel],#touch-controls[data-steering=joystick]{--steer-height:100px}#touch-controls[data-steering=wheel] .analog-steer,#touch-controls[data-steering=joystick] .analog-steer{width:100px;height:100px}#touch-controls .touch-pedals>div button{height:64px}#touch-controls[data-steering=joystick] .steer-track{top:49px}#touch-controls .touch-shifts,#touch-controls .touch-recover{bottom:var(--aux-bottom)}}@media(max-width:760px){body.touch-enabled #split-live{top:100px;width:170px;max-width:28vw}}@media(orientation:portrait){body.touch-enabled #hud .race-tools{top:130px}body.touch-enabled #hud .race-instruments{top:190px}}@media(prefers-reduced-motion:reduce){#hud *,#split-live *,#touch-controls *{transition:none!important}}#hud .race-status{order:2;display:flex;justify-content:space-between;align-items:center;gap:6px}#hud .race-status #surface{display:block;font-size:7px;letter-spacing:.3px;color:#c0c7d3;background:none!important;white-space:nowrap}#hud .race-status #surface.offroad{color:#ff858a}#hud .race-alert .race-status #surface{display:none}#touch-controls[data-steering] .touch-shifts,#touch-controls[data-steering] .touch-recover{bottom:var(--aux-bottom)}#hud .rally-controls{max-width:none;flex-wrap:nowrap;flex-shrink:0}body.touch-enabled #hud #camera-toggle,body.touch-enabled #hud #menu-button{min-width:44px;width:44px}body #touch-controls[data-steering] .touch-shifts{left:var(--thumb-edge);right:auto;bottom:var(--aux-bottom);gap:6px;transform:none}body #touch-controls[data-steering] .touch-recover{left:calc(var(--thumb-edge) + 100px);right:auto;bottom:var(--aux-bottom);width:84px;height:40px;padding:0 7px}body #touch-controls[data-steering] .touch-shifts button{width:44px;height:40px}body #touch-controls.controls-mirrored[data-steering] .touch-shifts{left:auto;right:max(16px,env(safe-area-inset-right));bottom:var(--aux-bottom)}body #touch-controls.controls-mirrored[data-steering] .touch-recover{left:auto;right:calc(max(16px,env(safe-area-inset-right)) + 100px);bottom:var(--aux-bottom)}body.electric-car #touch-controls[data-steering] .touch-recover{left:var(--thumb-edge);right:auto}body.electric-car #touch-controls.controls-mirrored[data-steering] .touch-recover{left:auto;right:max(16px,env(safe-area-inset-right))}body.touch-enabled:has(#touch-controls.controls-mirrored) #hud .run-info{left:auto;right:max(var(--race-edge),env(safe-area-inset-right))}body.touch-enabled:has(#touch-controls.controls-mirrored) #hud .race-tools{right:auto;left:max(var(--race-edge),env(safe-area-inset-left))}body.touch-enabled:has(#touch-controls.controls-mirrored) #hud .race-instruments{right:auto;left:max(var(--race-edge),env(safe-area-inset-left))}@media(orientation:landscape)and (max-height:350px){body.touch-enabled #hud .race-instruments{padding:6px 10px;gap:5px}body.touch-enabled #hud #speed{font-size:32px}body.touch-enabled #hud #gear{font-size:21px;padding:3px 0}body.touch-enabled #hud #rpm{display:none}body.touch-enabled #hud .telemetry{gap:4px}body.touch-enabled #hud #grip{min-height:0;padding-top:0}}
