.debug-trigger{display:flex;align-items:center;gap:9px;min-height:37px;padding:0 13px;border:1px solid rgba(41,78,73,.23);border-radius:5px;background:#f5f5e3d4;backdrop-filter:blur(8px);font-size:12px;font-weight:600}.debug-trigger[aria-expanded=true]{color:#f6f1df;background:#294e49}.debug-trigger kbd{font-size:10px;opacity:.65}.debug-panel{--debug-paper: #f2f2e6;--debug-ink: #294e49;--debug-muted: #71857a;--debug-line: #cdd5c8;--debug-warn: #a45e39;--debug-data: "SFMono-Regular", Consolas, "Liberation Mono", monospace;position:absolute;z-index:15;top:86px;right:20px;bottom:20px;width:414px;max-width:calc(100% - 32px);display:flex;flex-direction:column;min-height:0;overflow:hidden;color:var(--debug-ink);background:var(--debug-paper);border:1px solid rgba(41,78,73,.27);border-radius:9px;box-shadow:0 12px 50px #132c2538;text-align:left;font-size:12px}.debug-panel button,.debug-panel input,.debug-panel select{font:inherit}.debug-panel button:disabled{cursor:default;opacity:.5}.debug-panel button:focus-visible,.debug-panel input:focus-visible,.debug-panel select:focus-visible{outline:2px solid #a45e39;outline-offset:2px}.debug-header{display:flex;align-items:center;justify-content:space-between;padding:18px 20px 12px;border-top:4px solid var(--debug-ink)}.debug-eyebrow{font-size:9px;letter-spacing:1.6px;color:var(--debug-muted)}.debug-header h2{margin:4px 0 0;font-family:"Noto Serif SC",serif;font-size:21px;font-weight:600;letter-spacing:1px}.debug-close{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#e3e8dc;font-size:23px!important}.debug-close:hover{background:#d6dfce}.debug-session{display:flex;align-items:center;gap:8px;min-height:34px;margin:0 20px 12px;font-size:10px;color:var(--debug-muted)}.debug-status{display:inline-flex;align-items:center;gap:5px;color:var(--debug-ink);white-space:nowrap}.debug-status i{width:5px;height:5px;border-radius:50%;background:#9da699}.debug-status.live i{background:#438575}.debug-session button{margin-left:auto;padding:7px 9px;border:1px solid var(--debug-line);border-radius:4px;background:transparent;color:var(--debug-ink);white-space:nowrap}.debug-session button:hover{background:#e3e8dc}.debug-tabs{flex-shrink:0;display:grid;grid-template-columns:1fr 1fr;border-block:1px solid var(--debug-line)}.debug-tabs button{min-height:41px;padding:9px 16px;border-bottom:2px solid transparent;background:transparent;color:var(--debug-muted)}.debug-tabs button[aria-selected=true]{border-bottom-color:var(--debug-ink);background:#e7ecdf;color:var(--debug-ink);font-weight:600}.debug-tabs b{display:inline-grid;place-items:center;min-width:17px;height:17px;margin-left:4px;border-radius:50%;background:#b76a48;color:#fff;font-size:10px}.debug-tab-fps{margin-left:8px;font:9px var(--debug-data);opacity:.7}.debug-scroll{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#98aa98 transparent;flex:1}.debug-preset-row{display:flex;align-items:center;gap:12px;padding:16px 20px 12px}.debug-preset-row label{color:var(--debug-muted);white-space:nowrap}.debug-preset-row select{flex:1;width:0;padding:8px 10px;border:1px solid var(--debug-line);border-radius:4px;color:var(--debug-ink);background:#fffef4}.debug-groups{display:flex;flex-wrap:wrap;gap:5px;padding:0 20px 13px;border-bottom:1px solid var(--debug-line)}.debug-groups button{padding:6px 8px;border-radius:3px;background:#e5eadd;font-size:10px}.debug-groups button[aria-pressed=true]{color:#fffef4;background:#55796a}.debug-parameters{padding:0 20px}.debug-parameter{padding:15px 0 11px;border-bottom:1px solid #dde1d5}.debug-parameter-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.debug-parameter-heading>label{font-size:11px;font-weight:500}.debug-number-wrap{display:flex;align-items:center;gap:5px;flex-shrink:0}.debug-number-wrap input{width:73px;height:27px;border:1px solid var(--debug-line);border-radius:3px;background:#fffef7;padding:3px 4px;color:var(--debug-ink);text-align:right;font-family:var(--debug-data);font-size:11px}.debug-number-wrap>span{min-width:32px;font-size:9px;color:var(--debug-muted)}.debug-range{display:block;width:100%;height:16px;margin:0;accent-color:#55796a;cursor:ew-resize}.debug-range-scale{display:flex;justify-content:space-between;color:var(--debug-muted);font:9px var(--debug-data);margin-top:4px}.debug-range-scale>span:nth-child(2){font-family:inherit;font-size:9px}.debug-file-actions{display:flex;gap:6px;padding:18px 20px}.debug-file-actions button{flex:1;padding:9px 6px;border:1px solid var(--debug-line);border-radius:4px;background:transparent;font-size:11px}.debug-file-actions button:hover{background:#e2e8d9}.debug-file-input{display:none}.debug-footer{flex-shrink:0;padding:12px 20px 14px;border-top:1px solid var(--debug-line);background:#e9eddf}.debug-apply-status{display:flex;justify-content:space-between;gap:10px;margin-bottom:9px;font-size:10px;color:var(--debug-muted)}.debug-apply-status .pending{color:var(--debug-warn);font-weight:600}.debug-apply{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:39px;padding:10px 13px;border-radius:4px;background:var(--debug-ink);color:#fffef4;font-weight:500!important}.debug-apply:hover:not(:disabled){background:#3a6557}.debug-apply>span{font-size:18px;line-height:1}.debug-explainer{margin:9px 0 0;font-size:10px;line-height:1.7;color:var(--debug-muted)}.debug-error,.debug-message{margin:0 0 9px;padding:8px 10px;font-size:11px;line-height:1.6;border-radius:3px}.debug-error{color:#9a3f2a;background:#f4dfd4}.debug-message{color:#3c6655;background:#dce8d7}#debug-telemetry{padding:18px 20px 20px}.debug-live-readouts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px}.debug-live-readouts>div{display:flex;flex-direction:column;gap:5px}.debug-live-readouts>div>span{color:var(--debug-muted);font-size:10px}.debug-live-readouts strong{font:26px/1.15 var(--debug-data);letter-spacing:-1.5px}.debug-live-readouts small{margin-left:6px;font-size:10px;letter-spacing:0;color:var(--debug-muted)}.debug-g-readouts{display:flex;justify-content:space-between;gap:5px;padding:11px 0;margin-top:16px;border-block:1px solid var(--debug-line);font-size:10px;color:var(--debug-muted)}.debug-g-readouts b{display:inline-block;margin-left:3px;color:var(--debug-ink);font:11px var(--debug-data)}.debug-section-heading{display:flex;justify-content:space-between;align-items:baseline;margin:18px 0 10px}.debug-section-heading h3{margin:0;font-size:12px;font-weight:600}.debug-section-heading>span{font-size:9px;color:var(--debug-muted)}.debug-wheels{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:10px 22px}.debug-wheels:before{content:"";position:absolute;top:17px;bottom:17px;left:50%;width:6px;transform:translate(-50%);border-inline:1px solid #b1c1ae;background:repeating-linear-gradient(to bottom,transparent,transparent 12px,#b1c1ae 12px,#b1c1ae 13px);pointer-events:none}.debug-wheel{position:relative;padding:10px;border:1px solid #c6d1c0;border-radius:5px;background:#e8eddf}.debug-wheel.airborne{opacity:.65;background:#e7e7de}.debug-wheel-title{display:flex;justify-content:space-between;align-items:center;font-size:10px}.debug-wheel-title>span{font-size:9px;color:var(--debug-muted)}.debug-wheel>strong{display:block;font:19px var(--debug-data);margin:9px 0 7px}.debug-wheel>strong>small{font-size:9px;color:var(--debug-muted);margin-left:5px}.debug-usage{height:4px;margin-bottom:7px;border-radius:1px;overflow:hidden;background:#ced8c7}.debug-usage>span{display:block;height:100%;background:#638975}.debug-usage[aria-valuenow="100"]>span{background:#b76a48}.debug-wheel-pair{display:flex;justify-content:space-between;gap:6px;line-height:1.9;font-size:9px;color:var(--debug-muted)}.debug-wheel-pair b{font:10px/1.9 var(--debug-data);color:var(--debug-ink)}.debug-detail-list{margin:0}.debug-detail-list>div{display:flex;align-items:center;justify-content:space-between;padding:8px 0;border-bottom:1px solid #dde1d5}.debug-detail-list dt{font-size:10px;color:var(--debug-muted)}.debug-detail-list dd{margin:0;font:11px var(--debug-data)}.debug-lap-label{font-size:10px;line-height:1.5;margin-top:10px;color:#a45e39}.debug-open .minimap,.debug-open .speedometer{visibility:hidden}@media(max-width:1000px){.debug-open .weather{display:none}.debug-panel{width:380px}}@media(max-width:700px){.debug-trigger{min-height:32px;padding:0 9px;font-size:11px}.debug-trigger kbd{display:none}.debug-panel{top:68px;right:8px;bottom:8px;width:354px;max-width:calc(100% - 16px)}.debug-header{padding:12px 15px 8px}.debug-header h2{font-size:18px}.debug-session{margin:0 15px 8px}.debug-footer{padding:10px 15px}.debug-parameters{padding:0 15px}.debug-preset-row,.debug-groups{padding-inline:15px}.debug-open .top-actions{gap:6px}}@media(max-height:650px){.debug-panel{top:72px;bottom:8px}.debug-header{padding-top:9px;padding-bottom:6px}.debug-header h2{font-size:17px}.debug-eyebrow{display:none}.debug-session{margin-bottom:5px;min-height:29px}.debug-footer{padding-top:8px;padding-bottom:8px}.debug-tabs button{min-height:35px;padding-block:7px}}:root{font-family:Avenir Next,Avenir,PingFang SC,Microsoft YaHei,sans-serif;color:#203f3d;background:#d6e4dc;font-synthesis:none;--ink: #203f3d;--muted: #64776d;--paper: #eef1e7;--cream: #f7f7ec;--coral: #b65d43;--line: #203f3d24;--panel: #f1f3e9f2;--display: "Songti SC", "STSong", "Noto Serif CJK SC", serif}*{box-sizing:border-box}html,body,#root{width:100%;height:100%;margin:0;overflow:hidden}button,input{font:inherit}button{color:inherit;cursor:pointer;border:0;touch-action:manipulation;-webkit-tap-highlight-color:transparent}button,summary,input{outline-offset:4px}button:focus-visible,input:focus-visible,summary:focus-visible,[tabindex="0"]:focus-visible{outline:2px solid var(--coral)}button{transition:background .18s,color .18s,border-color .18s,transform .18s}button:active{transform:translateY(1px)}button:disabled{cursor:wait;opacity:.5}button svg{flex-shrink:0}button,a,input{-webkit-tap-highlight-color:transparent}.app{width:100%;height:100svh;height:100dvh;min-height:0;position:relative;overflow:hidden}.game-viewport,.game-viewport canvas,.interface-layer{position:absolute;inset:0;width:100%;height:100%}.game-viewport canvas{display:block}.interface-layer{pointer-events:none;z-index:3}.interface-layer button,.interface-layer input,.interface-layer nav{pointer-events:auto}.interface-layer[inert],.interface-layer[inert] button{pointer-events:none}.film-grain{position:absolute;inset:0;pointer-events:none;opacity:.022;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.6' filter='url(%23n)'/%3E%3C/svg%3E");z-index:2}.menu-shade{position:absolute;inset:0;background:linear-gradient(90deg,#e7eedfe8 0%,#e7eedfc4 23%,#e7eedf40 43%,transparent 65%),linear-gradient(0deg,#e7eedfb5,transparent 28%);pointer-events:none}.topbar{position:absolute;inset:max(28px,env(safe-area-inset-top)) max(40px,env(safe-area-inset-right)) auto max(40px,env(safe-area-inset-left));display:flex;align-items:center;justify-content:space-between;height:44px;gap:24px;z-index:5}.brand{display:flex;align-items:center;gap:12px;padding:0;min-height:44px;background:none;font-size:13px;font-weight:650;letter-spacing:2px;text-align:left}.bird{display:flex;width:39px}.bird svg{width:100%}.brand-rally{display:block;font-size:8px;font-weight:600;letter-spacing:6px;margin-top:3px}.header-section{margin-right:auto;margin-left:36px;font-size:13px;letter-spacing:2px}.header-section span{color:var(--muted);font-size:10px;letter-spacing:1px;margin-left:14px}.top-actions{display:flex;align-items:center;gap:8px}.icon-button{display:grid;place-items:center;width:42px;height:42px;padding:0;border:1px solid #eef3e845;border-radius:50%;background:#f3f6e9b8;backdrop-filter:blur(12px)}.icon-button:hover{background:#f7f8edf5}.roof-toggle{display:flex;align-items:center;justify-content:center;gap:8px;padding:0 14px;min-height:42px;min-width:42px;border:1px solid #f2f6e873;border-radius:24px;background:#f3f6e9c7;backdrop-filter:blur(12px);white-space:nowrap;font-size:11px}.roof-toggle[aria-pressed=true]{background:#d1e3d3ed;border-color:#52786240}.roof-toggle.moving{border-color:var(--coral)}.roof-toggle:hover{background:#f7f8edf5}.debug-trigger{opacity:.6;width:30px;height:30px;background:#f3f6e950}.main-menu{position:absolute;top:clamp(138px,23vh,250px);left:7.4%;width:355px}.edition,.eyebrow{margin:0 0 18px;font-size:10px;letter-spacing:3px;font-weight:500;color:var(--muted)}.edition{display:flex;align-items:center;gap:12px}.edition:before{content:"";width:28px;height:2px;background:var(--coral)}.game-title{font-family:var(--display);font-size:clamp(60px,5.5vw,88px);font-weight:800;line-height:1.18;letter-spacing:.055em;white-space:nowrap;margin:0}.tagline{font-family:var(--display);font-size:17px;font-weight:500;letter-spacing:2.5px;margin:24px 0 0}.menu-entry{margin-top:clamp(32px,5vh,64px);width:296px}.primary{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:50px;padding:15px 21px;border:1px solid transparent;border-radius:5px;background:var(--ink);color:var(--cream);font-size:14px;font-weight:500;letter-spacing:.6px;white-space:nowrap;box-shadow:0 8px 24px #203f3d12}.primary:hover{background:#315d53}.primary:focus-visible{outline-color:var(--coral)}.start-button{width:100%;min-height:78px;padding:18px 23px;text-align:left;font-size:19px}.start-button small{display:block;color:#f7f7ecb5;font-size:10px;font-weight:400;letter-spacing:1px;margin-top:7px}.garage-entry{width:100%;display:flex;align-items:center;gap:13px;min-height:77px;padding:16px 3px;background:transparent;border-bottom:1px solid var(--line);text-align:left}.garage-entry>i{display:block;width:5px;height:31px;border-radius:1px;box-shadow:inset 0 0 0 1px #203f3d20}.garage-entry>span:nth-child(2){display:flex;flex-direction:column;gap:6px}.garage-entry small{color:var(--muted);font-size:10px}.garage-entry strong{font-size:14px;font-weight:500;letter-spacing:1px}.garage-entry-label{display:flex;gap:15px;align-items:center;margin-left:auto;font-size:11px;color:var(--muted)}.garage-entry:hover .garage-entry-label{color:var(--ink)}.best-menu{display:flex;align-items:center;gap:8px;padding-top:20px;font-size:10px;color:var(--muted)}.best-menu strong{color:var(--ink);margin-left:auto;font-size:15px;font-weight:500;font-variant-numeric:tabular-nums}.route-card{position:absolute;right:5%;bottom:92px;display:flex;align-items:center;gap:21px;padding:20px 25px;border-radius:5px;border:1px solid #f4f6e580;background:#eef2e9cf;backdrop-filter:blur(16px);min-width:300px}.route-card>svg{width:79px;height:80px;overflow:visible}.route-card polyline{fill:none;stroke:var(--ink);stroke-width:5;stroke-linecap:round;stroke-linejoin:round}.route-card p{font-size:9px;letter-spacing:1.5px;color:var(--muted);margin:0 0 8px}.route-card h2{font-family:var(--display);font-size:23px;letter-spacing:2px;font-weight:600;margin:0 0 10px}.route-card div>span{display:flex;align-items:center;gap:9px;font-size:10px;color:var(--muted)}.route-card i{width:1px;height:9px;background:var(--line)}.menu-footer{position:absolute;inset:auto 40px max(26px,env(safe-area-inset-bottom));display:flex;align-items:center;justify-content:space-between;gap:20px}.copyright{font-size:9px;letter-spacing:1.8px;background:transparent;padding:10px 0;color:#3f5e53}.help-entry{display:flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:8px 0 8px 12px;background:none;font-size:11px}.help-entry:hover{color:var(--coral)}.garage{position:absolute;left:6.5%;top:120px;bottom:46px;display:flex;flex-direction:column;width:310px;max-height:760px;pointer-events:auto;overflow-y:auto;scrollbar-width:thin;padding:0 6px 4px}.back-link{display:flex;align-items:center;align-self:flex-start;gap:8px;padding:8px 0;min-height:36px;font-size:11px;background:none;color:var(--muted)}.garage-info{margin:22px 0 24px}.garage-info .eyebrow{font-size:9px;letter-spacing:2px;margin-bottom:10px}.garage-info h1{font-family:var(--display);font-size:46px;font-weight:700;line-height:1.15;margin:0 0 12px;letter-spacing:3px}.vehicle-class{font-size:10px;letter-spacing:1.5px;color:var(--muted)}.vehicle-selection{width:100%;min-width:0}.vehicle-picker{display:grid;gap:5px}.vehicle-picker button{display:flex;align-items:center;gap:12px;position:relative;min-height:51px;padding:9px 13px;text-align:left;border:1px solid #203f3d14;border-radius:4px;background:#eef2e8a8}.vehicle-picker button>i{display:block;width:4px;height:26px;border-radius:1px;box-shadow:inset 0 0 0 1px #203f3d20}.vehicle-picker button>span:nth-child(2){min-width:0}.vehicle-picker strong{display:block;font-size:12px;font-weight:500;letter-spacing:.5px}.vehicle-picker small{display:block;margin-top:4px;font-size:8px;letter-spacing:1px;color:var(--muted);white-space:nowrap}.vehicle-picker button:hover{border-color:#203f3d66;background:#f3f5e9ec}.vehicle-picker .selected{border-color:#203f3d80;background:#f5f6ebf5}.vehicle-check{display:grid;place-items:center;min-width:20px;margin-left:auto;font-size:10px}.vehicle-picker .pending{border-color:var(--coral)}.vehicle-switch-error{color:#a03e2d;font-size:11px;line-height:1.7;margin:12px 0 0}.vehicle-specs{display:grid;grid-template-columns:1fr 1fr 1fr;margin:24px 0;padding:0}.vehicle-specs dt{font-size:10px;color:var(--muted);margin-bottom:8px}.vehicle-specs dd{margin:0;font-size:20px;font-weight:500}.vehicle-specs dd small{font-size:9px;color:var(--muted);font-weight:400}.vehicle-specs dd.drive-type{font-size:15px;line-height:26px}.garage>.primary{width:100%;margin-top:auto;flex-shrink:0}.timing{position:absolute;top:104px;left:40px;width:237px;padding:18px 20px 17px;background:#eff3e7de;border:1px solid #f2f6e887;border-radius:5px;backdrop-filter:blur(14px)}.lap-label{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:10px;letter-spacing:.8px}.lap-label>span{font-size:8px;color:var(--muted);letter-spacing:.5px}.time-current{margin:12px 0 13px;line-height:1.15;font-size:34px;font-weight:500;letter-spacing:-.6px;font-variant-numeric:tabular-nums}.time-best{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:var(--muted)}.time-best strong{font-size:12px;font-weight:500;font-variant-numeric:tabular-nums}.race-progress{height:2px;background:#203f3d20;margin-top:18px}.race-progress>span{display:block;height:100%;background:var(--coral);transition:width .2s}.checkpoint-label{display:flex;align-items:center;justify-content:space-between;margin-top:11px;font-size:9px;color:var(--muted)}.checkpoint-label strong{font-size:12px;color:var(--ink);font-weight:500}.checkpoint-label strong>span{color:var(--muted);font-size:10px}.debug-lap-label{font-size:9px;color:var(--coral);margin-top:10px}.minimap{position:absolute;bottom:36px;left:40px;width:178px;padding:14px 10px 7px;border-radius:5px;background:#eff3e7b5;border:1px solid #f2f6e84d;backdrop-filter:blur(12px)}.map-heading{display:flex;justify-content:space-between;padding:0 6px;font-size:9px;letter-spacing:1px}.map-heading span:last-child{color:var(--muted);font-size:8px}.minimap svg{display:block;width:100%;height:151px}.map-road-under{fill:none;stroke:#52736726;stroke-width:9;stroke-linecap:round;stroke-linejoin:round}.map-road{fill:none;stroke:#527367a8;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.map-gate{fill:var(--coral)}.map-car-halo{fill:#f5ffe8;opacity:.75}.map-car{fill:#1b665f;stroke:#f5ffe8;stroke-width:1.2}.hud-bottom{position:absolute;right:40px;bottom:35px;display:flex;flex-direction:column-reverse;align-items:center;gap:18px;color:#f8f7ea;filter:drop-shadow(0 2px 10px #203f3d30);pointer-events:none}.wind-meter{width:172px;padding:12px 14px;border-radius:5px;background:#203f3d6b;border:1px solid #f5f6e421;backdrop-filter:blur(12px)}.wind-meter>div:first-child{display:flex;align-items:center;gap:8px;font-size:10px}.wind-meter strong{margin-left:auto;font-size:17px;font-weight:500;font-variant-numeric:tabular-nums}.wind-meter strong>small{font-size:9px;margin-left:2px;font-weight:400}.energy-track{height:3px;margin-top:10px;background:#f5f6e43d;border-radius:2px;overflow:hidden}.energy-track>span{display:block;height:100%;background:#e2c78c;transition:width .1s}.wind-meter.boosting{background:#1d665cb8}.wind-meter.collecting .energy-track>span{background:#dcf0bf}.speedometer{width:190px;height:158px;position:relative;text-shadow:0 2px 9px #203f3d60}.speedometer>svg{width:180px;height:120px;position:absolute;top:0;left:5px;overflow:visible}.speed-arc{fill:none;stroke:#ffffe654;stroke-width:1.5}.speed-arc-fill{fill:none;stroke:#f3e7bb;stroke-width:3}.speedometer line{stroke:#ffffe1bd;stroke-width:1}.speed-readout{position:absolute;inset:33px 0 auto;display:flex;align-items:center;flex-direction:column}.speed-readout strong{font-size:63px;font-weight:500;line-height:1;letter-spacing:-2px;font-variant-numeric:tabular-nums}.speed-readout>span{margin-top:5px;font-size:9px;letter-spacing:2px;opacity:.8}.gear{position:absolute;bottom:0;left:0;right:0;display:flex;align-items:center;justify-content:center;gap:9px}.gear>span,.gear>i{font-size:8px;font-style:normal;letter-spacing:1px;opacity:.75}.gear>b{min-width:26px;padding:1px 5px;font-size:20px;font-weight:500;text-align:center;border:1px solid #f8f7ea63;border-radius:3px;background:#f8f7ea14}.race-controls{display:flex;gap:4px;position:absolute;bottom:30px;left:50%;transform:translate(-50%);padding:4px;border-radius:6px;background:#203f3d42;border:1px solid #f5f6e426;backdrop-filter:blur(12px)}.race-controls button{display:flex;align-items:center;gap:8px;background:none;padding:10px 12px;min-height:38px;color:#f8f7ea;font-size:10px;border-radius:3px}.race-controls button:hover{background:#f8f7ea21}kbd{display:inline-block;font-family:inherit;font-size:10px;line-height:1;padding:5px 7px;border:1px solid var(--line);border-radius:3px;font-variant-numeric:tabular-nums;white-space:nowrap}.race-controls kbd{font-size:9px;border-color:#f8f7ea45;padding:3px 4px;margin-left:3px;opacity:.75}.countdown{position:absolute;inset:28% 0 auto;display:flex;flex-direction:column;align-items:center;color:#fff9e9;text-shadow:0 3px 24px #203f3d5c;pointer-events:none}.countdown>span{font-size:11px;letter-spacing:5px}.countdown b{font-size:145px;font-weight:500;line-height:1.35;animation:count-in .7s ease-out}.notice{position:absolute;top:24%;left:50%;transform:translate(-50%,5px);opacity:0;padding:11px 20px;background:#203f3dba;backdrop-filter:blur(12px);color:var(--cream);border-radius:5px;font-size:12px;letter-spacing:1px;white-space:nowrap;transition:opacity .2s,transform .2s;pointer-events:none}.notice.visible{opacity:1;transform:translate(-50%)}.driving-warning{position:absolute;top:34%;left:50%;transform:translate(-50%);display:flex;align-items:center;gap:14px;padding:9px 15px;background:#9d4b34e0;border-radius:5px;color:#fff8e7;font-size:11px;white-space:nowrap}.driving-warning button{display:flex;align-items:center;gap:6px;min-height:28px;padding:3px 8px;background:#fff8e726;border-radius:3px;color:inherit;font-size:10px}.drift-indicator{position:absolute;bottom:150px;left:50%;transform:translate(-50%);color:#fff7df;text-shadow:0 2px 7px #203f3d70;display:flex;align-items:center;gap:12px;font-size:11px}.drift-indicator strong{font-size:25px;font-weight:500}.drift-indicator small{font-size:16px}.drift-indicator.spin{color:#ffd7c6}.touch-controls{display:none}.modal-scrim{position:absolute;inset:0;z-index:15;display:flex;align-items:center;justify-content:center;padding:max(24px,env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left));background:#173c376b;backdrop-filter:blur(12px)}.dialog{position:relative;width:min(420px,100%);max-height:calc(100dvh - 48px);padding:36px;border:1px solid #faffee80;border-radius:10px;background:var(--panel);box-shadow:0 28px 100px #143f362e;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;outline:none}.dialog h2{font-family:var(--display);font-size:31px;font-weight:650;letter-spacing:2px;line-height:1.3;margin:0}.dialog .eyebrow{font-size:9px;letter-spacing:1px;margin:0 0 12px}.dialog-symbol{display:flex;margin-bottom:26px;color:#5b7769}.dialog>.primary{width:100%;margin-top:28px}.secondary{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:46px;margin-top:9px;padding:12px;border:1px solid var(--line);border-radius:5px;background:transparent;font-size:12px}.secondary:hover{background:#203f3d0c}.pause-session{display:flex;justify-content:space-between;align-items:center;gap:10px;border-top:1px solid var(--line);margin-top:28px;padding-top:17px;font-size:11px;color:var(--muted)}.pause-session strong{font-size:16px;color:var(--ink);font-weight:500;font-variant-numeric:tabular-nums}.dialog-links{display:flex;justify-content:space-between;gap:12px;margin-top:24px}.dialog-links button{font-size:11px;color:var(--muted);background:transparent;padding:8px 0;min-height:34px}.dialog-links button:hover,.text-button:hover{color:var(--coral)}.text-button{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:44px;margin-top:12px;padding:10px;background:transparent;font-size:12px;color:var(--muted)}.dialog-caption{font-size:12px;color:var(--muted);margin:16px 0 0;line-height:1.8}.dialog-header{display:flex;align-items:flex-start;justify-content:space-between;padding:28px 30px 22px;flex-shrink:0}.dialog-header .eyebrow{font-size:8px;letter-spacing:1.5px;margin-bottom:8px}.dialog-header h2{font-size:28px}.close-button{width:36px;height:36px;background:#203f3d08;border-color:var(--line)}.settings{width:min(600px,100%);display:flex;flex-direction:column;overflow:hidden;padding:0}.settings-tabs{display:flex;gap:24px;padding:0 30px;border-bottom:1px solid var(--line);flex-shrink:0}.settings-tabs button{position:relative;min-height:44px;padding:0 1px 13px;background:transparent;font-size:12px;color:var(--muted);white-space:nowrap}.settings-tabs button[aria-selected=true]{color:var(--ink)}.settings-tabs button[aria-selected=true]:after{content:"";position:absolute;height:2px;background:var(--ink);bottom:-1px;left:0;right:0}.settings-body{min-height:310px;padding:6px 30px 18px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:22px;min-height:72px;border-bottom:1px solid var(--line)}.setting-row:last-child{border-bottom:0}.setting-row>label,.setting-row>span{font-size:13px}.segmented{display:flex;border-radius:5px;background:#203f3d0a;border:1px solid #203f3d12;padding:3px}.segmented button{min-width:52px;min-height:38px;padding:7px 13px;border-radius:3px;background:transparent;font-size:11px}.segmented button:hover{background:#203f3d0d}.segmented button.selected{background:var(--ink);color:var(--cream)}.switch{position:relative;width:42px;height:25px;padding:3px;background:#becac0;border-radius:24px}.switch:before{content:"";position:absolute;inset:-10px -3px}.switch>span{display:block;width:19px;height:19px;border-radius:50%;background:#fafaf0;box-shadow:0 1px 3px #203f3d20;transition:transform .2s}.switch.on{background:var(--ink)}.switch.on>span{transform:translate(17px)}.volume-control{display:flex;align-items:center;gap:15px}.volume-control input{width:150px;accent-color:var(--ink);cursor:pointer}.volume-control output{font-size:11px;min-width:30px;text-align:right;font-variant-numeric:tabular-nums;color:var(--muted)}.settings-body .vehicle-selection{padding-top:15px}.settings-body .vehicle-picker{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.settings-body .vehicle-picker button{min-height:69px;padding:12px}.settings-note{font-size:10px;color:var(--muted);margin:17px 0 0}.settings-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:17px 30px;background:#e6ece050;border-top:1px solid var(--line);flex-shrink:0}.settings-footer>span{color:var(--muted);font-size:10px}.settings-footer>.primary{min-height:42px;padding:10px 17px;font-size:12px;min-width:110px}.controls-guide{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:28px;padding-top:6px}.controls-guide>div{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:46px;border-bottom:1px solid #203f3d14;font-size:12px}.controls-guide kbd{color:var(--muted);background:#fffef43d;font-size:9px}.touch-guide{display:flex;align-items:center;gap:13px;padding-top:18px;color:var(--muted)}.touch-guide p{margin:0;font-size:10px;line-height:1.9}.results{width:min(480px,100%);text-align:center;padding:35px 38px 25px}.finish-icon{display:grid;place-items:center;margin:0 auto 23px;width:58px;height:58px;border:1px solid #203f3d24;border-radius:50%}.finish-icon.new-record{color:var(--coral);border-color:#b65d4340;background:#b65d4308}.result-time{font-size:clamp(40px,4vw,58px);font-weight:500;letter-spacing:-1.5px;font-variant-numeric:tabular-nums;margin:25px 0 26px}.result-stats{display:grid;grid-template-columns:1fr 1fr;padding:20px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);text-align:left}.result-stats>div:last-child{text-align:right}.result-stats span{display:block;font-size:10px;color:var(--muted);margin-bottom:9px}.result-stats strong{font-size:15px;font-weight:500;font-variant-numeric:tabular-nums}.result-stats .improved{color:#34765b}.result-note{color:var(--muted);font-size:10px;margin:16px 0 0}.error-details{color:var(--muted);font-size:11px;line-height:1.8;margin-top:22px}.error-details summary{cursor:pointer;min-height:30px}.error-details p{overflow-wrap:anywhere}.loading-screen{position:absolute;inset:0;z-index:20;background:#e5ecdf;display:flex;flex-direction:column;align-items:center;justify-content:center}.loading-brand{display:flex;align-items:center;gap:12px;font-size:11px;letter-spacing:2px}.loading-bird{display:flex;width:40px}.loading-content{width:min(310px,calc(100% - 60px));margin-top:60px}.loading-content h1{font-family:var(--display);font-size:46px;font-weight:700;letter-spacing:5px;margin:0 0 36px;text-align:center}.loading-status{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:var(--muted)}.loading-status strong{color:var(--ink);font-size:17px;font-weight:500;font-variant-numeric:tabular-nums}.loading-status small{margin-left:4px;font-size:10px;font-weight:400}.load-track{height:2px;background:#203f3d24;margin-top:12px}.load-track span{display:block;height:100%;background:var(--ink);transition:width .25s}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@keyframes count-in{0%{opacity:0;transform:scale(1.13)}to{opacity:1;transform:scale(1)}}@media(min-width:1600px){.main-menu{width:430px}.menu-entry{width:320px}}@media(max-height:760px)and (min-width:701px){.main-menu{top:20%}.game-title{font-size:66px}.tagline{margin-top:17px;font-size:16px}.menu-entry{margin-top:30px}.garage{top:98px;bottom:25px}.garage-info{margin:10px 0 17px}.garage-info h1{font-size:39px}.garage-info .eyebrow{margin-bottom:7px}.vehicle-picker button{min-height:45px;padding:6px 12px}.vehicle-specs{margin:18px 0}.garage>.primary{min-height:46px}.route-card{bottom:82px}.timing{top:94px}.minimap{width:153px}.minimap svg{height:130px}}@media(max-width:1000px){.topbar{left:28px;right:28px}.header-section{margin-left:0}.main-menu{left:6%;width:320px}.game-title{font-size:64px}.route-card{min-width:250px;right:28px;padding:17px 20px;gap:15px}.route-card>svg{width:64px;height:68px}.route-card h2{font-size:21px}.menu-footer{left:28px;right:28px}.garage{left:5%;width:285px}.timing{left:28px;width:220px}.time-current{font-size:31px}.minimap{left:28px}.hud-bottom{right:28px}.race-controls button{padding:9px;gap:6px}}@media(max-width:700px){.topbar{inset:max(18px,calc(env(safe-area-inset-top) + 10px)) max(20px,calc(env(safe-area-inset-right) + 12px)) auto max(20px,calc(env(safe-area-inset-left) + 12px));height:40px;gap:12px}.brand{gap:8px;font-size:10px;letter-spacing:1.5px;min-height:40px}.bird{width:30px}.brand-rally{font-size:6px;letter-spacing:5px}.icon-button{width:42px;height:42px}.top-actions{gap:6px}.fullscreen-button{display:none}.roof-toggle{min-width:42px;min-height:42px;padding:0 8px}.roof-toggle span{display:none}.phase-menu:not(.garage-open) .roof-toggle{display:none}.header-section{display:none}.phase-racing .brand>span:last-child,.phase-countdown .brand>span:last-child,.phase-paused .brand>span:last-child,.phase-finished .brand>span:last-child,.garage-open .brand>span:last-child{display:none}.phase-racing .sound-button,.phase-countdown .sound-button,.phase-paused .sound-button,.phase-finished .sound-button{display:none}.menu-shade{background:linear-gradient(180deg,#e7eedfc4,#e7eedf85 25%,#e7eedf00 43% 52%,#e7eedfeb 75%),linear-gradient(90deg,#e7eedf45,transparent 90%)}.main-menu{inset:0 24px;width:auto;pointer-events:none}.menu-heading{position:absolute;top:clamp(105px,16vh,160px);left:0}.edition{font-size:9px;letter-spacing:2px;margin-bottom:14px}.edition:before{width:20px}.game-title{font-size:clamp(48px,11.8vw,67px);letter-spacing:.06em}.tagline{margin-top:18px;font-size:14px;letter-spacing:2px}.menu-entry{position:absolute;bottom:max(138px,calc(env(safe-area-inset-bottom) + 123px));left:0;right:0;width:100%;margin:0}.start-button{min-height:65px;font-size:17px;padding:14px 20px}.start-button small{font-size:9px;margin-top:5px}.garage-entry{min-height:64px;padding:12px 3px}.garage-entry strong{font-size:13px}.garage-entry small{font-size:9px}.garage-entry>i{height:27px}.best-menu{display:none}.route-card{position:absolute;left:24px;right:24px;bottom:max(70px,calc(env(safe-area-inset-bottom) + 55px));min-width:0;padding:0;border:0;background:transparent;backdrop-filter:none;gap:12px}.route-card>svg{width:40px;height:43px}.route-card>div{display:grid;grid-template-columns:1fr auto;align-items:center;gap:7px 20px;flex:1}.route-card p{display:none}.route-card h2{font-family:inherit;font-size:12px;letter-spacing:1px;font-weight:500;margin:0}.route-card div>span{font-size:9px}.menu-footer{inset:auto 24px max(16px,env(safe-area-inset-bottom))}.copyright{font-size:7px;letter-spacing:1px}.help-entry{font-size:10px;min-height:36px}.garage-shade{background:linear-gradient(0deg,#e7eedff5,#e7eedff0 32%,#e7eedf00 57%),linear-gradient(180deg,#e7eedf8c,transparent 30%)}.garage{inset:auto 20px max(22px,env(safe-area-inset-bottom));width:auto;max-height:calc(100dvh - 100px);padding:0;overflow:visible}.back-link{position:fixed;top:max(77px,calc(env(safe-area-inset-top) + 66px));left:22px;background:#edf1e3b5;border-radius:4px;padding:7px 10px}.garage-info{margin:0 0 18px}.garage-info .eyebrow{font-size:8px;margin-bottom:8px}.garage-info h1{display:inline-block;font-size:32px;margin:0 15px 0 0;letter-spacing:2px}.vehicle-class{font-size:9px}.garage .vehicle-picker{display:flex;gap:7px;overflow-x:auto;padding:3px 2px 10px;margin:-3px -2px -5px;scrollbar-width:none;scroll-snap-type:x proximity;touch-action:pan-x}.garage .vehicle-picker button{flex:0 0 128px;min-height:56px;padding:10px;gap:9px;scroll-snap-align:start}.garage .vehicle-picker strong{font-size:11px}.garage .vehicle-picker small{font-size:7px;letter-spacing:.6px}.garage .vehicle-check{display:none}.garage .vehicle-specs{margin:18px 0}.vehicle-specs dd{font-size:19px}.vehicle-specs dt{font-size:9px;margin-bottom:5px}.garage>.primary{min-height:48px;font-size:13px}.timing{top:83px;left:20px;width:177px;padding:13px 14px}.lap-label{font-size:9px;gap:5px}.lap-label>span{font-size:7px}.time-current{font-size:27px;margin:10px 0}.time-best{font-size:8px}.time-best strong{font-size:10px}.race-progress{margin-top:13px}.checkpoint-label{font-size:8px;margin-top:8px}.checkpoint-label strong{font-size:11px}.minimap{inset:83px 20px auto auto;width:113px;padding:10px 6px 5px}.map-heading{font-size:7px;padding:0 2px}.map-heading span:last-child{font-size:6px}.minimap svg{height:97px}.hud-bottom{right:18px;left:18px;bottom:91px;flex-direction:row;align-items:flex-end;justify-content:space-between;gap:0}.wind-meter{width:145px;padding:11px 12px;margin-bottom:1px}.wind-meter>div:first-child{font-size:9px;gap:6px}.wind-meter strong{font-size:16px}.speedometer{width:155px;height:132px}.speedometer>svg{width:145px;height:98px}.speed-readout{top:27px}.speed-readout strong{font-size:51px}.gear>b{font-size:17px;min-width:24px}.gear>span,.gear>i{font-size:7px}.race-controls{bottom:max(25px,env(safe-area-inset-bottom));max-width:calc(100% - 30px);white-space:nowrap}.race-controls button{padding:8px 10px;min-height:37px;font-size:9px;gap:6px}.race-controls kbd{display:none}.notice{top:31%;font-size:11px;max-width:calc(100% - 40px);white-space:normal;text-align:center;padding:10px 15px}.driving-warning{top:39%;font-size:10px}.drift-indicator{bottom:250px}.countdown{top:30%}.countdown b{font-size:115px}.modal-scrim{padding:max(16px,env(safe-area-inset-top)) 16px max(16px,env(safe-area-inset-bottom))}.dialog{padding:28px;max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));border-radius:8px}.dialog h2{font-size:27px}.dialog-symbol{margin-bottom:22px}.dialog>.primary{margin-top:25px}.settings{padding:0}.dialog-header{padding:23px 22px 18px}.dialog-header h2{font-size:25px}.settings-tabs{padding:0 22px;gap:0;justify-content:space-between}.settings-tabs button{font-size:11px;padding-bottom:12px}.settings-body{padding:6px 22px 18px;min-height:min(310px,45dvh)}.setting-row{min-height:69px;gap:12px}.setting-row>label,.setting-row>span{font-size:12px}.segmented button{min-width:43px;padding:7px 10px;font-size:10px}.volume-control{gap:10px}.volume-control input{width:110px}.settings-body .vehicle-picker{gap:7px}.settings-body .vehicle-picker button{gap:9px;padding:10px;min-height:65px}.settings-body .vehicle-picker strong{font-size:11px}.settings-body .vehicle-picker small{font-size:7px;letter-spacing:.4px}.settings-footer{padding:15px 22px}.controls-guide{column-gap:16px}.controls-guide>div{gap:7px;font-size:11px;min-height:43px}.controls-guide kbd{font-size:8px;padding:5px}.touch-guide p{font-size:9px}.result-time{font-size:43px;margin:23px 0}.result-stats strong{font-size:13px}}@media(max-width:360px){.brand>span:last-child{display:none}.main-menu{left:20px;right:20px}.controls-guide,.settings-body .vehicle-picker{grid-template-columns:1fr}.route-card{left:20px;right:20px}.route-card div>span{font-size:8px;gap:7px}.garage .vehicle-picker button{flex-basis:120px}}@media(max-height:550px)and (min-width:701px){.topbar{top:16px}.main-menu{top:94px}.game-title{font-size:52px}.edition{margin-bottom:12px}.tagline{font-size:13px;margin-top:13px}.menu-entry{margin-top:23px}.start-button{min-height:62px;padding:12px 19px;font-size:16px}.garage-entry{min-height:60px}.best-menu{display:none}.route-card{bottom:74px;padding:14px 20px}.garage{top:84px;bottom:22px;width:285px}.garage-info{margin:6px 0 13px}.garage-info h1{font-size:32px;margin-bottom:7px}.garage .vehicle-picker{grid-template-columns:repeat(2,minmax(0,1fr))}.garage .vehicle-picker button{min-height:44px;padding:6px;gap:7px}.garage .vehicle-picker small{font-size:6px}.garage .vehicle-check{display:none}.vehicle-specs{margin:13px 0}.vehicle-specs dd{font-size:17px}.vehicle-specs dt{margin-bottom:3px}.back-link{min-height:28px}.settings-body{min-height:160px}.dialog-header{padding:18px 25px}.settings-footer{padding:13px 25px}.timing{top:77px;padding:12px 15px}.time-current{font-size:28px;margin:8px 0}.minimap{display:none}.hud-bottom{bottom:24px;gap:10px}.speedometer{transform:scale(.85);transform-origin:bottom;margin-top:-20px}.wind-meter{padding:10px 12px}}@media(max-width:700px)and (max-height:690px)and (orientation:portrait){.menu-heading{top:100px}.game-title{font-size:46px}.tagline{font-size:12px;margin-top:12px}.menu-entry{bottom:128px}.route-card{bottom:65px}.garage-info h1{font-size:28px}.garage-info{margin-bottom:12px}.garage .vehicle-specs{margin:13px 0}}@media(max-height:500px)and (orientation:landscape){.topbar{top:max(12px,env(safe-area-inset-top));left:max(22px,env(safe-area-inset-left));right:max(22px,env(safe-area-inset-right))}.main-menu{top:83px;bottom:58px;left:max(30px,env(safe-area-inset-left));right:auto;width:280px}.menu-heading{position:static}.edition{display:none}.game-title{font-size:44px}.tagline{font-size:12px;margin-top:10px}.menu-entry{position:static;width:260px;margin-top:23px}.start-button{min-height:58px;padding:11px 17px;font-size:15px}.garage-entry{min-height:54px;padding:9px 2px}.garage-entry small,.best-menu{display:none}.route-card{left:auto;right:max(28px,env(safe-area-inset-right));bottom:70px;min-width:220px;max-width:250px;padding:14px 17px;background:#eef2e9c7}.route-card>svg{width:55px;height:60px}.route-card>div{display:block}.route-card h2{margin-bottom:8px;font-size:16px}.route-card p{display:none}.route-card div>span{font-size:9px}.garage{left:max(28px,env(safe-area-inset-left));top:74px;bottom:20px;width:270px;right:auto;overflow-y:auto;padding-right:3px}.garage .back-link{position:static;background:none;padding:3px 0}.garage-info{margin:10px 0}.garage-info h1{font-size:28px;margin-bottom:7px}.garage-info .eyebrow{display:none}.garage .vehicle-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:0;padding:0;gap:4px;overflow:visible}.garage .vehicle-picker button{min-height:39px;padding:6px;gap:7px}.garage .vehicle-picker small{font-size:6px}.garage .vehicle-specs{margin:10px 0}.vehicle-specs dt{margin-bottom:2px}.vehicle-specs dd{font-size:16px}.garage>.primary{min-height:42px;font-size:12px}.garage-shade{background:linear-gradient(90deg,#e7eedfe8,#e7eedfa3 33%,transparent 64%)}.settings-body{min-height:130px}.dialog-header{padding:16px 22px}.dialog-header h2{font-size:23px}.settings-footer{padding:11px 22px}.dialog{max-height:calc(100dvh - 28px)}.pause-dialog{padding:23px 28px}.pause-dialog .dialog-symbol{display:none}.pause-session{margin-top:16px;padding-top:12px}.pause-dialog>.primary{margin-top:17px;min-height:42px}.pause-dialog .secondary{min-height:38px;padding:8px}.pause-dialog .dialog-links{margin-top:12px}.results{width:min(650px,100%);display:grid;grid-template-columns:1fr 1fr;column-gap:34px;padding:24px 30px 18px;text-align:left}.results .finish-icon{display:none}.results .eyebrow{grid-column:1 / -1;margin-bottom:10px}.results h2{grid-column:1;font-size:24px}.result-time{grid-column:1;grid-row:3;font-size:42px;margin:15px 0}.result-stats{grid-column:2;grid-row:2 / 4;display:flex;flex-direction:column;justify-content:center;gap:20px;padding:0 0 0 25px;border:0;border-left:1px solid var(--line)}.result-stats>div:last-child{text-align:left}.result-stats span{margin-bottom:5px}.result-note{grid-column:1 / -1;margin:5px 0 0}.results>.primary{grid-column:1 / -1;margin-top:15px;min-height:44px}.results>.text-button{grid-column:1 / -1;margin-top:4px;min-height:34px}.loading-content{margin-top:30px}.loading-content h1{margin-bottom:25px;font-size:38px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}@media(prefers-reduced-transparency:reduce){.dialog,.timing,.minimap,.route-card{background:var(--paper);backdrop-filter:none}.wind-meter,.race-controls{background:#203f3de8;backdrop-filter:none}}@media(max-width:700px)and (orientation:portrait){.hud-bottom{inset:243px 18px auto;align-items:flex-start}.speedometer{width:135px;height:114px}.speedometer>svg{width:127px;height:86px;left:4px}.speed-readout{top:23px}.speed-readout strong{font-size:45px}.gear{gap:5px}.gear>b{font-size:15px;min-width:22px}.gear>span,.gear>i{font-size:6px}.wind-meter{width:139px;margin-top:8px}.map-test .hud-bottom{top:180px}}.app:not(.phase-menu):not(.phase-loading) .brand{justify-content:center;width:42px;min-height:42px;padding:8px;border-radius:50%;background:#f3f6e9b8;backdrop-filter:blur(12px)}.app:not(.phase-menu):not(.phase-loading) .brand>span:last-child{display:none}.app.input-touch{height:100svh;height:100dvh;min-height:0;overscroll-behavior:none;-webkit-user-select:none;user-select:none;--touch-zone: calc(var(--touch-key) * 1.85 + 64px);--touch-key: clamp(58px, 8vw, 76px);--steer-key: clamp(64px, 9vw, 84px)}.input-touch .game-viewport{touch-action:none}.input-touch .touch-controls{display:flex;position:absolute;left:max(16px,calc(env(safe-area-inset-left) + 12px));right:max(16px,calc(env(safe-area-inset-right) + 12px));bottom:max(18px,calc(env(safe-area-inset-bottom) + 12px));justify-content:space-between;align-items:flex-end;pointer-events:none;z-index:6}.touch-direction,.touch-pedal-group{position:relative}.touch-steering{display:flex;gap:10px}.touch-pedals{display:grid;grid-template-columns:repeat(2,var(--touch-key));grid-template-rows:calc(var(--touch-key) * .85) var(--touch-key);gap:10px}.touch-controls .touch-key{pointer-events:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:5px;color:#fff9e0bd;background:#27463b33;border:1px solid rgb(244 245 214 / 37%);border-radius:16px;box-shadow:inset 0 1px #fffce11a,0 3px 12px #162b2114;touch-action:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;transition:background 90ms,color 90ms,transform 90ms}.touch-key svg{opacity:.8}.touch-key>span{font-size:10px;line-height:1;letter-spacing:1px;opacity:.8}.touch-controls .touch-left,.touch-controls .touch-right{width:var(--steer-key);height:var(--steer-key);border-radius:19px}.touch-left svg,.touch-right svg{width:32px;height:32px}.touch-controls .touch-throttle{background:#bbd4a533;border-color:#f0f9cb7d}.touch-controls .touch-boost{color:#d3f4f6d6}.touch-controls .touch-handbrake{color:#ffe5c0cc}.touch-controls .touch-key.held,.touch-controls .touch-key:active{color:#fffde6f5;background:#e8f2ca54;border-color:#fffbd3c9;transform:scale(.96)}.touch-key.held svg{opacity:1}.touch-controls.automatic .touch-brake{grid-column:1 / -1;flex-direction:row;gap:12px}.auto-throttle-badge{position:absolute;bottom:calc(100% + 12px);right:2px;display:flex;align-items:center;gap:6px;color:#eff8d9e0;font-size:10px;letter-spacing:1px;text-shadow:0 1px 4px #233d3580}.auto-throttle-badge i{width:5px;height:5px;border-radius:50%;background:#d7e9a9c9}.touch-tools{display:flex;gap:8px;margin-bottom:16px}.touch-tools button{pointer-events:auto;display:grid;place-items:center;width:42px;height:36px;border:1px solid #eff4d52e;border-radius:11px;color:#f8f4dbab;background:#294e4924;-webkit-tap-highlight-color:transparent;touch-action:manipulation}.touch-tools svg{width:19px;height:19px;opacity:.75}.input-touch .race-controls{display:none}.input-touch .topbar{top:max(14px,calc(env(safe-area-inset-top) + 8px));left:max(18px,calc(env(safe-area-inset-left) + 12px));right:max(18px,calc(env(safe-area-inset-right) + 12px))}.input-touch .fullscreen-button{display:none}.input-touch .hud-bottom{inset:auto max(18px,calc(env(safe-area-inset-right) + 12px)) calc(var(--touch-zone) + env(safe-area-inset-bottom)) max(18px,calc(env(safe-area-inset-left) + 12px));display:flex;flex-direction:row;align-items:flex-end;justify-content:space-between;gap:0;filter:none}.input-touch .wind-meter{width:148px;padding:10px 12px;margin:0}.input-touch .wind-meter>div:first-child{font-size:9px;gap:6px}.input-touch .wind-meter strong{font-size:17px}.input-touch .energy-track{margin-top:9px}.input-touch .speedometer{width:154px;height:128px;transform:none}.input-touch .speedometer>svg{width:144px;height:96px;left:5px}.input-touch .speed-readout{top:25px}.input-touch .speed-readout strong{font-size:49px}.input-touch .speed-readout>span{font-size:8px;margin-top:3px}.input-touch .gear{gap:6px}.input-touch .gear>b{font-size:17px;min-width:24px}.input-touch .drift-indicator{bottom:calc(var(--touch-zone) + 145px + env(safe-area-inset-bottom))}.input-touch .touch-direction,.input-touch .touch-pedal-group{pointer-events:none}@media(max-width:380px){.app.input-touch{--steer-key: 60px;--touch-key: 56px}.input-touch .touch-steering{gap:7px}.input-touch .touch-pedals{gap:8px}.input-touch .timing{width:166px;left:18px}.input-touch .minimap{width:103px;right:18px}.input-touch .wind-meter{width:136px}.input-touch .speedometer{width:140px}}@media(max-height:500px)and (orientation:landscape){.app.input-touch{--touch-key: 57px;--steer-key: 66px;--touch-zone: 153px}.input-touch .touch-tools{margin-bottom:12px}.input-touch .topbar{top:max(10px,env(safe-area-inset-top))}.input-touch .top-actions .icon-button{width:36px;height:36px}.input-touch .timing{top:66px;left:max(20px,calc(env(safe-area-inset-left) + 12px));width:182px;padding:12px 14px}.input-touch .time-current{font-size:25px;margin:6px 0}.input-touch .time-best{font-size:8px}.input-touch .race-progress{margin-top:9px}.input-touch .checkpoint-label{margin-top:7px}.input-touch .minimap{display:none}.input-touch .hud-bottom{inset:66px max(18px,calc(env(safe-area-inset-right) + 12px)) auto auto;flex-direction:row;align-items:flex-start;justify-content:flex-end;gap:15px}.input-touch .wind-meter{width:128px;margin-top:4px}.input-touch .wind-meter svg{display:none}.input-touch .speedometer{width:118px;height:100px}.input-touch .speedometer>svg{width:112px;height:76px;left:3px}.input-touch .speed-readout{top:21px}.input-touch .speed-readout strong{font-size:39px}.input-touch .gear>span,.input-touch .gear>i{display:none}.input-touch .gear>b{font-size:14px}.input-touch .notice{top:35%}.input-touch .driving-warning{top:45%}.input-touch .drift-indicator{bottom:160px}}@media(prefers-reduced-motion:reduce){.touch-controls .touch-key{transition:none}}@media(max-width:700px)and (orientation:portrait){.input-touch .hud-bottom{inset:243px max(18px,calc(env(safe-area-inset-right) + 12px)) auto max(18px,calc(env(safe-area-inset-left) + 12px));align-items:flex-start}.input-touch .wind-meter{width:139px;margin-top:8px}.input-touch .speedometer{width:135px;height:114px}.input-touch .speedometer>svg{width:127px;height:86px;left:4px}.input-touch .speed-readout{top:23px}.input-touch .speed-readout strong{font-size:45px}.input-touch .gear>b{font-size:15px;min-width:22px}.input-touch.map-test .hud-bottom{top:180px}}
