:root{--page-bg: #f4f2ed;--page-text: #10161b;--shell-gradient: linear-gradient(180deg, rgba(11, 17, 21, .02), transparent 32%);--surface-base: #0b1115;--surface-inset: #0e151a;--surface-raised: #141d23;--surface-interactive: #182229;--surface-selected: #2a2413;--surface-overlay: rgba(9, 15, 19, .95);--border-subtle: rgba(223, 234, 240, .1);--border-default: rgba(223, 234, 240, .18);--border-strong: rgba(223, 234, 240, .32);--text-primary: #f7f9fa;--text-secondary: #c5d0d6;--text-muted: #98a6ae;--text-inverse: #081014;--accent-primary: #f3c73b;--accent-primary-hover: #ffda61;--accent-primary-active: #d9aa22;--accent-primary-text: #0a0d0f;--accent-info: #58a8d8;--accent-info-hover: #79c8ef;--accent-success: #5ee0a0;--accent-warning: #f2c14e;--accent-danger: #ff6b5d;--accent-danger-muted: #ffc7c7;--focus-ring: #78caff;--shadow-panel: 0 1.4rem 3.5rem rgba(0, 0, 0, .32);--shadow-control: 0 .65rem 1.4rem rgba(0, 0, 0, .2);--grid-line: rgba(223, 234, 240, .06);--backdrop: rgba(2, 5, 7, .76);--hud-bg: var(--surface-overlay);--hud-card-bg: var(--surface-inset);--hud-border: var(--border-default);--hud-label: var(--text-secondary);--hud-value: var(--text-primary);--menu-bg: var(--page-bg);--menu-card-bg: var(--surface-base);--menu-card-text: var(--text-primary);--menu-card-muted: var(--text-secondary);--menu-utility-bg: var(--surface-raised);--menu-utility-text: var(--text-primary);--menu-utility-border: var(--border-default);--menu-preview-pit: var(--accent-primary);--weather-dry: var(--accent-primary);--weather-rain: var(--accent-info);color:var(--page-text);background:var(--page-bg);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}:root[data-theme=dark]{--page-bg: #05090c;--page-text: #f5f7f8;--shell-gradient: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent 32%);--surface-overlay: rgba(7, 12, 16, .96);--border-subtle: rgba(223, 234, 240, .11);--border-default: rgba(223, 234, 240, .2);--border-strong: rgba(223, 234, 240, .36);--shadow-panel: 0 1.4rem 3.5rem rgba(0, 0, 0, .5)}*{box-sizing:border-box}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;white-space:nowrap;border:0;clip:rect(0 0 0 0);clip-path:inset(50%)}html,body,#app{width:100%;height:100%;margin:0}body{color:var(--page-text);background:var(--page-bg);overflow:hidden}button{font:inherit}.intro-menu,.race-results-panel,.ghost-dialog-panel,.editor-modal-panel,.editor-topbar-group,.editor-hud,.hud,.controls{color-scheme:dark}.game-shell{position:relative;display:grid;grid-template-rows:minmax(0,1fr) auto auto;width:100%;height:100%;min-width:320px;background:var(--shell-gradient),var(--page-bg)}.hud span{color:var(--hud-label);font-size:.78rem;font-weight:700;text-transform:uppercase}.hud[hidden],.race-status-strip[hidden],.race-results[hidden],.race-start-cue[hidden],.editor-topbar[hidden],.editor-hud[hidden],.controls[hidden]{display:none}.game-stage{position:relative;min-height:0;overflow:hidden;touch-action:none}.game-stage canvas{display:block;width:100%;height:100%}.race-status-strip{position:absolute;top:.65rem;left:.65rem;z-index:5;display:flex;align-items:stretch;gap:.5rem;pointer-events:none}.race-status-card{min-width:5.2rem;padding:.48rem .62rem;border:1px solid var(--hud-border);border-radius:8px;background:var(--hud-bg);box-shadow:0 .75rem 1.75rem #0000002e}.race-weather-card{min-width:6rem}.race-status-card>span{color:var(--hud-label);font-size:.72rem;font-weight:800;line-height:1;text-transform:uppercase}.race-status-card strong{display:block;margin-top:.2rem;color:var(--hud-value);font-size:1rem;font-weight:900;line-height:1}.race-start-cue{position:absolute;top:clamp(1rem,7vh,3.5rem);left:50%;z-index:7;display:grid;justify-items:center;gap:.55rem;transform:translate(-50%);pointer-events:none}.race-start-cue-board{display:grid;grid-template-columns:repeat(5,minmax(1.6rem,2.65rem));gap:.45rem;padding:.55rem;border:1px solid var(--border-default);border-radius:8px;background:var(--surface-overlay);box-shadow:var(--shadow-control)}.race-start-light{aspect-ratio:1;border:1px solid rgba(255,255,255,.08);border-radius:50%;background:#220709;box-shadow:inset 0 .38rem .7rem #000000b8,0 0 #ff322a00}.race-start-light.is-lit{background:#e72f27;box-shadow:inset 0 .28rem .5rem #ffffff3d,0 0 1.2rem #ff322a9e}.race-start-cue strong{min-width:8.5rem;padding:.36rem .65rem;color:#f9fbfc;font-size:.84rem;font-weight:900;line-height:1;text-align:center;text-transform:uppercase;border:1px solid rgba(255,255,255,.13);border-radius:8px;background:#090b0dbd}.race-start-cue[data-phase=go] strong{color:var(--accent-primary-text);background:var(--accent-primary)}.editor-topbar{position:absolute;top:.55rem;right:.65rem;left:.65rem;z-index:6;display:flex;justify-content:space-between;align-items:flex-start;gap:.55rem;pointer-events:none}.editor-topbar-group{min-width:0;display:flex;align-items:center;gap:.35rem;padding:.24rem;border:1px solid var(--hud-border);border-radius:8px;background:var(--hud-bg);box-shadow:var(--shadow-control);pointer-events:auto}.editor-menu-bar{flex:0 1 auto}.editor-track-summary{max-width:min(22rem,calc(100vw - 16rem));padding-right:.42rem}.editor-menu{position:relative}.editor-menu-trigger{min-height:1.85rem;display:flex;align-items:center;padding:0 .72rem;color:var(--text-primary);font-size:.82rem;font-weight:850;line-height:1;border-radius:6px;cursor:pointer;list-style:none;-webkit-user-select:none;user-select:none}.editor-menu-trigger::-webkit-details-marker{display:none}.editor-menu[open] .editor-menu-trigger,.editor-menu-trigger:hover,.editor-menu-trigger:focus-visible{background:var(--surface-selected);outline:none}.editor-menu-panel{position:absolute;top:calc(100% + .32rem);left:0;width:max-content;min-width:12.5rem;display:none;flex-direction:column;gap:.12rem;padding:.32rem;border:1px solid var(--hud-border);border-radius:8px;background:var(--surface-overlay);box-shadow:var(--shadow-panel)}.editor-menu[open] .editor-menu-panel{display:flex}.editor-menu-item,.editor-menu-check-item,.editor-menu-field,.editor-menu-status{min-height:2.15rem;display:flex;align-items:center;gap:.65rem;padding:0 .7rem;color:var(--text-primary);font-size:.82rem;font-weight:750;letter-spacing:0;text-align:left;white-space:nowrap;border:0;border-radius:6px;background:transparent}.editor-menu-item{width:100%;cursor:pointer}.editor-menu-item:hover:not(:disabled),.editor-menu-item:focus-visible{background:var(--surface-selected);outline:none}.editor-menu-item:disabled{color:color-mix(in srgb,var(--text-muted) 52%,transparent);cursor:not-allowed}.editor-menu-item[hidden]{display:none}.editor-menu-danger-item:not(:disabled){color:var(--accent-danger-muted)}.editor-menu-status{justify-content:space-between;color:var(--hud-label);cursor:default}.editor-menu-status output{color:var(--hud-value);font-weight:900}.editor-menu-check-item{min-height:2.15rem;text-transform:none;border:0;border-radius:6px;background:transparent;cursor:pointer}.editor-menu-field{justify-content:space-between;color:var(--hud-label)}.editor-menu-field span{font-weight:750}.editor-publish-kind-select{height:1.75rem;min-width:6.8rem;padding:0 .38rem;color:var(--text-primary);font-size:.78rem;font-weight:800;letter-spacing:0;border:1px solid var(--border-default);border-radius:6px;background:var(--surface-interactive);cursor:pointer}.editor-publish-kind-select:focus-visible{outline:3px solid var(--focus-ring);outline-offset:2px}.editor-save-status{min-width:0;color:var(--accent-info);font-size:.72rem;font-weight:800;line-height:1;text-transform:uppercase}.editor-save-status:empty{display:none}.editor-track-title{min-width:0;padding:0 .35rem 0 .15rem}.editor-track-title span{display:block;color:var(--hud-label);font-size:.66rem;font-weight:800;line-height:1;text-transform:uppercase}.editor-track-title strong{display:block;max-width:14rem;overflow:hidden;color:var(--hud-value);font-size:.92rem;line-height:1.15;text-overflow:ellipsis;white-space:nowrap}.editor-track-name-row{min-width:0;display:flex;align-items:center;gap:.25rem}.editor-track-name-input{width:min(14rem,36vw);min-width:7.5rem;height:1.6rem;color:var(--hud-value);font-size:.92rem;font-weight:900;border:1px solid var(--border-strong);border-radius:6px;background:var(--surface-inset);outline:none;padding:.18rem .4rem}.editor-track-name-input[hidden]{display:none}.editor-track-name-input:focus{box-shadow:0 0 0 2px color-mix(in srgb,var(--focus-ring) 30%,transparent)}.editor-track-name-edit-button{width:1.45rem;aspect-ratio:1;display:grid;place-items:center;flex:0 0 auto;color:var(--hud-label);border:0;border-radius:50%;background:transparent;cursor:pointer}.editor-track-name-edit-button:hover{color:var(--text-primary);background:var(--surface-selected)}.editor-track-name-edit-button svg{width:.92rem;height:.92rem;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2.2}.editor-debug-toggle{min-height:2.15rem;display:flex;align-items:center;gap:.42rem;padding:0 .7rem;color:var(--hud-label);font-size:.74rem;font-weight:800;letter-spacing:0;text-transform:uppercase;border:1px solid var(--hud-border);border-radius:8px;background:var(--surface-raised)}.editor-debug-toggle[hidden]{display:none}.editor-debug-toggle input{width:1rem;height:1rem;accent-color:var(--accent-primary)}.editor-modal[hidden]{display:none}.editor-modal{position:absolute;top:0;right:0;bottom:0;left:0;z-index:8;display:grid;place-items:start center;padding:5rem 1rem 1rem}.editor-modal-backdrop{position:absolute;top:0;right:0;bottom:0;left:0;border:0;background:var(--backdrop);cursor:default}.editor-modal-panel{position:relative;width:min(28rem,calc(100vw - 2rem));max-height:min(30rem,calc(100vh - 7rem));display:flex;flex-direction:column;gap:.8rem;padding:.75rem;border:1px solid var(--hud-border);border-radius:8px;background:var(--hud-bg);box-shadow:var(--shadow-panel)}.editor-modal-header{display:flex;align-items:center;justify-content:space-between;gap:1rem}.editor-modal-header span{display:block;color:var(--hud-label);font-size:.68rem;font-weight:800;line-height:1;text-transform:uppercase}.editor-modal-header h2{margin:.18rem 0 0;color:var(--hud-value);font-size:1rem;line-height:1.15}.editor-modal-close-button{width:2.25rem;aspect-ratio:1;display:grid;place-items:center;flex:0 0 auto;color:var(--text-primary);border:1px solid var(--border-default);border-radius:50%;background:var(--surface-interactive);cursor:pointer}.editor-modal-close-button:hover{border-color:var(--accent-primary);background:var(--surface-selected)}.editor-modal-close-button svg{width:1.1rem;height:1.1rem;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2.2}.editor-options-panel{width:min(24rem,calc(100vw - 2rem))}.editor-options-list{display:grid;gap:.45rem}.editor-option-toggle,.editor-option-range{min-height:3rem;display:grid;align-items:center;gap:.65rem;padding:.62rem .7rem;color:var(--hud-value);border:1px solid var(--hud-border);border-radius:8px;background:var(--surface-raised)}.editor-option-toggle{grid-template-columns:auto minmax(0,1fr);cursor:pointer}.editor-option-toggle:hover,.editor-option-toggle:focus-within,.editor-option-range:focus-within{border-color:var(--accent-primary);background:var(--surface-selected)}.editor-option-toggle input{width:1rem;height:1rem;accent-color:var(--accent-primary)}.editor-option-toggle span,.editor-option-range span{min-width:0;font-size:.86rem;font-weight:850;line-height:1.1}.editor-option-range{grid-template-columns:7.4rem minmax(8rem,1fr) 3.4rem}.editor-option-range input{width:100%;accent-color:var(--accent-primary)}.editor-option-range output{color:var(--accent-primary);font-size:.78rem;font-weight:900;line-height:1;text-align:right}.editor-layout-library-list{min-height:0;display:grid;gap:.9rem;overflow-y:auto;padding-right:.2rem;scrollbar-color:var(--border-strong) var(--border-subtle)}.editor-layout-library-section,.editor-layout-library-entries{display:grid;gap:.45rem}.editor-layout-library-heading{margin:0;color:var(--text-secondary);font-size:.72rem;font-weight:900;letter-spacing:.08em;line-height:1;text-transform:uppercase}.editor-layout-library-button{width:100%;min-height:3rem;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.8rem;padding:.62rem .7rem;color:var(--hud-value);text-align:left;border:1px solid var(--hud-border);border-radius:8px;background:var(--surface-raised);cursor:pointer}.editor-layout-library-button:hover,.editor-layout-library-button:focus-visible{border-color:var(--accent-primary);background:var(--surface-selected);outline:none}.editor-layout-library-button.is-current{color:var(--text-primary);border-color:var(--accent-primary);background:var(--surface-selected)}.editor-layout-library-button strong{min-width:0;overflow:hidden;font-size:.9rem;line-height:1.1;text-overflow:ellipsis;white-space:nowrap}.editor-layout-library-button span{color:currentColor;font-size:.74rem;font-weight:800;line-height:1;opacity:.72}.hud{display:grid;grid-template-columns:repeat(6,minmax(4.7rem,1fr));gap:.5rem;padding:.65rem 1rem;border-top:1px solid var(--border-subtle);background:var(--hud-bg);pointer-events:none}.editor-hud{z-index:4;min-width:0;display:block;overflow:hidden;padding:.75rem 1rem .9rem;border-top:1px solid var(--border-subtle);background:var(--hud-bg)}.hud>div{min-width:0;padding:.55rem .65rem;border:1px solid var(--hud-border);border-radius:8px;background:var(--hud-card-bg)}.editor-piece-button span{color:var(--hud-label);font-size:.74rem;font-weight:800;line-height:1;text-transform:uppercase}.editor-palette-tabs{display:flex;align-items:center;gap:.35rem;margin-bottom:.55rem;overflow-x:auto;scrollbar-width:none}.editor-palette-tabs::-webkit-scrollbar{display:none}.editor-palette-tab{flex:0 0 auto;min-height:2rem;padding:.35rem .72rem;color:var(--hud-label);font-size:.78rem;font-weight:800;letter-spacing:0;text-transform:uppercase;border:1px solid var(--hud-border);border-radius:8px;background:var(--surface-raised);cursor:pointer}.editor-palette-tab.is-active{color:var(--text-primary);border-color:var(--accent-primary);background:var(--surface-selected)}.hud strong{display:block;margin-top:.15rem;color:var(--hud-value);font-size:1rem}.hud .fuel-status{display:grid;grid-template-columns:auto minmax(2.8rem,1fr);align-items:center;gap:.45rem}.hud .fuel-level{min-width:2.45rem;color:var(--hud-value);font-size:.94rem;font-weight:900;line-height:1;text-transform:none}.hud .fuel-bar{position:relative;height:.52rem;overflow:hidden;border-radius:999px;background:#ffffff2e}.hud .fuel-bar-fill{position:absolute;inset:0 auto 0 0;width:100%;border-radius:inherit;background-color:var(--accent-success);transition:width .12s linear,background-color .12s linear}.hud .fuel-status[data-fuel-state=low] .fuel-bar-fill{background-color:var(--accent-warning)}.hud .fuel-status[data-fuel-state=critical] .fuel-bar-fill{background-color:var(--accent-danger)}.renderer-unavailable{display:grid;place-items:center;padding:clamp(1rem,4vw,2rem);color:var(--text-primary);background:var(--surface-raised);text-align:center;line-height:1.5}.game-stage.renderer-unavailable{position:fixed;top:0;right:0;bottom:0;left:0;z-index:30;padding-inline:clamp(2rem,12vw,12rem)}.car-editor-preview-car.renderer-unavailable{width:min(18rem,90%);color:var(--menu-card-text);background:transparent;font-size:.8rem}.hud .tyre-status{display:flex;align-items:center;justify-content:space-between;gap:.45rem}.hud .tyre-compound,.pit-tyre-buttons button{display:inline-flex;align-items:center;gap:.38rem}.hud .tyre-compound:before,.pit-tyre-buttons button:before{width:.62rem;height:.62rem;flex:0 0 auto;border:1px solid rgba(255,255,255,.42);border-radius:50%;background:var(--tyre-color, #f2c14e);content:""}[data-tyre-color=red]{--tyre-color: #f05d5e}[data-tyre-color=yellow]{--tyre-color: #f2c14e}[data-tyre-color=white]{--tyre-color: #f4f6f7}[data-tyre-color=green]{--tyre-color: #5ee0a0}[data-tyre-color=blue]{--tyre-color: #58a8d8}.hud .tyre-condition{color:var(--hud-value);font-size:.94rem;font-weight:900;line-height:1}.hud .tyre-status[data-tyre-state=worn] .tyre-condition{color:var(--accent-warning)}.hud .tyre-status[data-tyre-state=critical] .tyre-condition{color:var(--accent-danger)}.hud .pit-tyre-panel{grid-column:1 / -1;display:flex;align-items:center;gap:.65rem;padding:.5rem .65rem;border:1px solid rgba(88,168,216,.5);border-radius:8px;background:#070c10f0;pointer-events:auto}.hud .pit-tyre-panel[hidden]{display:none}.hud .pit-advisory{grid-column:1 / -1;margin:0;padding:.55rem .7rem;color:#f7f3ea;font-size:.82rem;font-weight:800;line-height:1.35;border:1px solid rgba(242,193,78,.5);border-radius:8px;background:#221b0bf0}.hud .pit-advisory[hidden]{display:none}.pit-tyre-panel>span{flex:0 0 auto}.pit-tyre-buttons{display:flex;flex-wrap:wrap;gap:.38rem}.pit-tyre-buttons button{min-height:2rem;padding:.34rem .58rem;color:var(--hud-value);font-size:.76rem;font-weight:800;border:1px solid var(--hud-border);border-radius:7px;background:var(--hud-card-bg);cursor:pointer}.pit-tyre-buttons button:hover,.pit-tyre-buttons button:focus-visible{border-color:var(--accent-primary);outline:none}.editor-piece-palette{width:100%;min-width:0;max-width:100%;display:flex;gap:.55rem;overflow-x:scroll;overscroll-behavior-x:contain;padding:.1rem .1rem .35rem;scrollbar-color:var(--border-strong) var(--border-subtle);scrollbar-gutter:stable}.editor-piece-palette::-webkit-scrollbar{height:.65rem}.editor-piece-palette::-webkit-scrollbar-track{border-radius:999px;background:var(--border-subtle)}.editor-piece-palette::-webkit-scrollbar-thumb{border-radius:999px;background:var(--border-strong)}.editor-piece-palette::-webkit-scrollbar-thumb:hover{background:var(--text-muted)}.editor-palette-empty{width:100%;min-height:4.8rem;display:grid;place-items:center;margin:0;padding:.75rem;color:var(--hud-label);font-size:.82rem;font-weight:700;text-align:center;border:1px dashed var(--hud-border);border-radius:8px;background:var(--surface-inset)}.editor-piece-button{min-width:9.2rem;display:grid;gap:.28rem;align-content:center;padding:.5rem .68rem .58rem;color:var(--text-primary);text-align:left;border:1px solid var(--hud-border);border-radius:8px;background:var(--surface-raised);cursor:pointer}.editor-piece-preview{width:100%;height:2.35rem;margin-bottom:.06rem;overflow:visible}.editor-piece-preview path{fill:none;stroke-linecap:butt;stroke-linejoin:miter}.editor-piece-preview-shadow{stroke:#00000057}.editor-piece-preview-track{stroke:#303741}.editor-piece-preview-slot{stroke:#05090b}.editor-piece-preview-guide{stroke:#95b9ff}.editor-piece-preview-grid-bracket{stroke:#f1f3f4}.editor-piece-preview-checker-light{fill:#f7fbf6}.editor-piece-preview-checker-dark{fill:#070809}.editor-piece-preview-sensor{fill:#e9f0eb;stroke:#05090b;stroke-width:.8}.editor-piece-button strong{overflow:hidden;color:#fff;font-size:.96rem;line-height:1.15;text-overflow:ellipsis;white-space:nowrap}.editor-piece-button small{overflow:hidden;color:var(--hud-label);font-size:.76rem;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.editor-piece-button.is-selected{color:var(--text-primary);border-color:var(--accent-primary);background:var(--surface-selected)}.editor-piece-button.is-selected span,.editor-piece-button.is-selected small,.editor-piece-button.is-selected strong{color:var(--text-primary)}.editor-piece-button.is-selected .editor-piece-preview-shadow{stroke:#08101433}.editor-piece-button.is-selected .editor-piece-preview-track{stroke:#334046}.race-status-card .weather-status,.hud .weather-status{display:flex;align-items:center;gap:.34rem;min-height:1.35rem}.weather-icon{width:1.18rem;aspect-ratio:1;display:grid;place-items:center;flex:0 0 auto}.weather-symbol{display:none;width:1.18rem;height:1.18rem;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2.1}.weather-icon[data-weather-icon=sun]{color:#f4c152}.weather-icon[data-weather-icon=rain]{color:#5fa8ff}.weather-icon[data-weather-icon=sun] .weather-symbol-sun,.weather-icon[data-weather-icon=rain] .weather-symbol-rain{display:block}.weather-forecast-separator{color:var(--hud-label);font-size:1rem;font-weight:700;line-height:1}.weather-forecast-icon{opacity:.9}.race-results{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;display:grid;place-items:center;padding:1rem;overflow:hidden;background:var(--backdrop);-webkit-backdrop-filter:blur(4px) saturate(.72);backdrop-filter:blur(4px) saturate(.72);pointer-events:auto;overscroll-behavior:contain}.race-results-panel{width:min(54rem,100%);max-height:min(90dvh,52rem);overflow-y:auto;padding:1rem;color:var(--hud-value);border:1px solid var(--hud-border);border-radius:12px;background:var(--hud-bg);box-shadow:var(--shadow-panel);animation:race-results-enter .18s ease-out both}.race-results:focus-visible{outline:3px solid var(--focus-ring);outline-offset:-5px}.race-results-header,.race-results-primary-actions{display:flex;align-items:center;justify-content:space-between;gap:1rem}.race-results-kicker,.race-results-total-time>span,.race-results-metrics dt{margin:0;color:var(--hud-label);font-size:.7rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase}.race-results-header h2,.race-results-section h3{margin:0}.race-results-header h2{margin-top:.2rem;font-size:clamp(1.5rem,4vw,2.25rem);line-height:1}.race-results-header>div{min-width:0}.race-results-kicker{overflow-wrap:anywhere}.race-results-position{flex:0 0 auto;color:var(--accent-primary);font-size:clamp(1.25rem,4vw,2rem);font-variant-numeric:tabular-nums}.race-results-content{display:grid;grid-template-columns:minmax(0,.9fr) minmax(16rem,1.1fr);gap:.75rem;margin-top:1rem}.race-results-summary,.race-results-section{min-width:0;padding:.75rem;border:1px solid var(--hud-border);border-radius:8px;background:var(--hud-card-bg)}.race-results-summary{grid-row:span 2}.race-results-total-time strong{display:block;margin-top:.3rem;font-size:clamp(1.65rem,6vw,2.75rem);font-variant-numeric:tabular-nums;line-height:1}.race-results-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;margin:.85rem 0 0}.race-results-metrics>div{min-width:0;padding:.55rem;border:1px solid var(--hud-border);border-radius:6px;background:color-mix(in srgb,var(--hud-value) 4%,transparent)}.race-results-metrics dt,.race-results-metrics dd{margin:0}.race-results-metrics dd{margin-top:.22rem;overflow-wrap:anywhere;font-size:1rem;font-weight:900;font-variant-numeric:tabular-nums}.race-results-best-card{grid-column:1 / -1}.race-results-best-card small,.race-results-help,.race-results-secondary-actions small,.race-results-ghost-summary,.race-results-ghost-status,.race-results-share-status{display:block;margin-top:.35rem;color:var(--hud-label);font-size:.7rem;line-height:1.4}.race-results[data-new-personal-best=true] .race-results-best-card{border-color:color-mix(in srgb,var(--accent-primary) 65%,var(--hud-border));background:color-mix(in srgb,var(--accent-primary) 12%,var(--hud-card-bg))}.race-results-section h3{font-size:.9rem}.race-results-follow-up{grid-column:1 / -1}.race-results-primary-actions{justify-content:flex-start;margin-top:.65rem}.race-results-primary-actions button,.race-results-secondary-actions button{min-height:2.6rem;padding:.55rem .8rem;color:var(--hud-value);font-weight:900;border:1px solid var(--hud-border);border-radius:7px;background:transparent;cursor:pointer}.race-results-primary-actions button:first-child{color:var(--accent-primary-text);border-color:var(--accent-primary);background:var(--accent-primary)}.race-results-primary-actions button:focus-visible,.race-results-secondary-actions button:focus-visible{outline:3px solid var(--focus-ring);outline-offset:2px}.race-results-secondary-actions{display:grid;grid-template-columns:minmax(0,2fr) minmax(10rem,1fr);gap:.75rem;margin-top:.75rem}.race-results-secondary-actions>div{min-width:0}.race-results-secondary-actions button{width:100%}.race-results-ghost-share h4,.race-results-result-share h4{margin:0;font-size:.8rem}.race-results-ghost-summary,.race-results-ghost-status,.race-results-share-status{margin-bottom:0}.race-results-ghost-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.6rem}.race-results-ghost-actions button{width:auto;flex:1 1 8.5rem}.race-results-ghost-actions .race-results-copy-ghost-button{color:var(--text-inverse);border-color:var(--accent-info);background:var(--accent-info)}.race-results-result-actions{display:grid;gap:.5rem;margin-top:.6rem}.race-results-result-actions .race-results-share-button{color:var(--accent-primary-text);border-color:var(--accent-primary);background:var(--accent-primary)}.race-results-ghost-manual-fallback,.race-results-share-manual-fallback{margin-top:.65rem}.race-results-ghost-manual-fallback label,.race-results-share-manual-fallback label{display:block;color:var(--hud-label);font-size:.68rem;font-weight:800;text-transform:uppercase}.race-results-ghost-manual-fallback textarea,.race-results-share-manual-fallback textarea{width:100%;min-height:4.75rem;margin-top:.35rem;padding:.5rem;resize:vertical;color:var(--hud-value);font:.66rem/1.35 ui-monospace,SFMono-Regular,Consolas,monospace;overflow-wrap:anywhere;border:1px solid var(--hud-border);border-radius:6px;background:color-mix(in srgb,var(--hud-value) 4%,transparent)}.race-results-ghost-manual-fallback textarea:focus-visible,.race-results-share-manual-fallback textarea:focus-visible{outline:3px solid var(--focus-ring);outline-offset:2px}.race-results-primary-actions button:disabled,.race-results-secondary-actions button:disabled{cursor:not-allowed;opacity:.52}@keyframes race-results-enter{0%{opacity:0;transform:translateY(.75rem) scale(.985)}to{opacity:1;transform:none}}.leaderboard-host[hidden]{display:none}.leaderboard-panel{--leaderboard-text: var(--hud-value);--leaderboard-muted: var(--hud-label);--leaderboard-border: var(--hud-border);--leaderboard-surface: var(--hud-card-bg);min-height:7rem;display:grid;gap:.52rem;margin-top:.75rem;padding:.7rem;color:var(--leaderboard-text);border:1px solid var(--leaderboard-border);border-radius:8px;background:var(--leaderboard-surface)}.leaderboard-host-setup{--leaderboard-text: var(--menu-card-text);--leaderboard-muted: var(--menu-card-muted);--leaderboard-border: var(--border-default);--leaderboard-surface: var(--surface-inset)}.leaderboard-panel>header,.leaderboard-actions,.leaderboard-submission{display:flex;align-items:center;justify-content:space-between;gap:.55rem}.leaderboard-category,.leaderboard-status,.leaderboard-submission-description,.leaderboard-submission-status{margin:0;color:var(--leaderboard-muted);font-size:.67rem;line-height:1.35}.leaderboard-category{font-weight:800}.leaderboard-heading{margin:.12rem 0 0;color:var(--leaderboard-text);font-size:.88rem;line-height:1.1}.leaderboard-unverified-badge{flex:0 0 auto;padding:.23rem .42rem;color:var(--leaderboard-muted);font-size:.56rem;font-weight:900;letter-spacing:.04rem;text-transform:uppercase;border:1px solid var(--leaderboard-border);border-radius:999px}.leaderboard-list{display:grid;gap:.24rem;margin:0;padding:0;list-style:none}.leaderboard-list:empty{display:none}.leaderboard-list li{min-width:0;display:grid;grid-template-columns:1.5rem minmax(0,1fr) auto;align-items:center;gap:.45rem;padding:.34rem .42rem;color:var(--leaderboard-muted);font-size:.68rem;border-left:3px solid transparent;border-radius:4px;background:color-mix(in srgb,var(--leaderboard-text) 5%,transparent)}.leaderboard-list li[data-current-browser]{color:var(--leaderboard-text);border-left-color:var(--accent-primary);background:color-mix(in srgb,var(--accent-primary) 12%,var(--leaderboard-surface))}.leaderboard-player-standing{min-width:0;display:grid;grid-template-columns:minmax(5.8rem,auto) minmax(0,1fr) auto;align-items:center;gap:.45rem;margin:0;padding:.42rem;color:var(--leaderboard-text);font-size:.68rem;border-left:3px solid var(--accent-primary);border-radius:4px;background:color-mix(in srgb,var(--accent-primary) 12%,var(--leaderboard-surface))}.leaderboard-player-standing[hidden]{display:none}.leaderboard-player-rank{font-variant-numeric:tabular-nums;font-weight:900}.leaderboard-list strong{min-width:0;overflow:hidden;font-size:inherit;text-overflow:ellipsis;white-space:nowrap}.leaderboard-rank,.leaderboard-time{font-variant-numeric:tabular-nums;font-weight:900}.leaderboard-rank{text-align:center}.leaderboard-actions{justify-content:flex-start}.leaderboard-secondary-button,.leaderboard-submit-button{min-height:2.75rem;padding:.38rem .6rem;color:var(--leaderboard-text);font-size:.66rem;font-weight:900;border:1px solid var(--leaderboard-border);border-radius:6px;background:transparent;cursor:pointer}.leaderboard-submit-button{flex:0 0 auto;color:var(--accent-primary-text);border-color:var(--accent-primary);background:var(--accent-primary)}.leaderboard-submit-button:hover:not(:disabled){background:var(--accent-primary-hover)}.leaderboard-submit-button:active:not(:disabled){background:var(--accent-primary-active)}.leaderboard-submit-button:focus-visible{outline:3px solid var(--focus-ring);outline-offset:2px;box-shadow:0 0 0 6px color-mix(in srgb,var(--focus-ring) 34%,transparent)}.leaderboard-secondary-button:disabled{cursor:wait;opacity:.56}.leaderboard-submit-button:disabled{color:var(--leaderboard-text);border-color:var(--leaderboard-border);background:color-mix(in srgb,var(--leaderboard-text) 8%,transparent);cursor:not-allowed;opacity:1}.leaderboard-submit-button[data-state=loading]{cursor:wait}.leaderboard-submit-button[data-state=unavailable]{border-style:dashed}.leaderboard-submission{align-items:flex-start;flex-wrap:wrap;padding-top:.5rem;border-top:1px solid var(--leaderboard-border)}.leaderboard-submission[hidden],.leaderboard-secondary-button[hidden],.leaderboard-submit-button[hidden]{display:none}.leaderboard-submission-description{flex:1 1 12rem}.leaderboard-submission-status:empty{display:none}.leaderboard-submission-status{flex:1 0 100%}.leaderboard-panel[data-status=offline],.leaderboard-panel[data-status=server-error],.leaderboard-panel[data-status=validation-error],.leaderboard-panel[data-status=throttled]{border-style:dashed}.controls{z-index:4;display:grid;grid-template-columns:minmax(8rem,1fr) minmax(7rem,.8fr) minmax(6rem,.7fr);gap:.75rem;padding:.85rem 1rem 1rem;border-top:1px solid var(--border-subtle);background:var(--hud-bg)}.dev-cruise-control{position:fixed;right:1rem;bottom:11.2rem;z-index:6;display:flex;align-items:center;gap:.65rem;padding:.58rem .7rem;color:var(--hud-value);border:1px solid var(--hud-border);border-radius:8px;background:var(--hud-bg);box-shadow:0 .7rem 1.6rem #0000003d}.dev-cruise-control[hidden]{display:none}.dev-cruise-toggle,.dev-cruise-target{display:flex;align-items:center;gap:.35rem;color:var(--hud-label);font-size:.78rem;font-weight:800;letter-spacing:0;text-transform:uppercase}.dev-cruise-toggle input{width:1rem;height:1rem;accent-color:var(--accent-primary)}.dev-cruise-target input{width:4.4rem;padding:.34rem .42rem;color:var(--hud-value);font:inherit;line-height:1;border:1px solid var(--hud-border);border-radius:6px;background:var(--hud-card-bg)}.hold-button{min-height:3.1rem;color:#f9fbfc;font-size:1rem;font-weight:900;border:1px solid rgba(255,255,255,.16);border-radius:8px;cursor:pointer;-webkit-user-select:none;user-select:none;touch-action:none}.hold-button:active,.hold-button.is-held{transform:translateY(1px)}.throttle-button{background:#d94f2b}.throttle-button.is-held{background:#ff714d}.race-results-standings{display:grid;gap:.28rem;margin:.55rem 0 0;padding:0;list-style:none;color:var(--hud-label);font-size:.72rem;font-weight:700}.race-results-standings li{padding:.35rem .45rem;border-left:3px solid transparent;border-radius:4px;background:var(--hud-card-bg)}.race-results-standings li[data-player]{border-left-color:var(--accent-primary);color:var(--hud-value)}.brake-button{background:#8c3443}.brake-button.is-held{background:#bd4a5d}.lane-button{background:#256b7f}.lane-button.is-held{background:#3294ad}.race-menu-button{position:absolute;top:.65rem;right:.65rem;z-index:6;width:2.75rem;aspect-ratio:1;display:grid;place-items:center;padding:0;color:var(--hud-value);border:1px solid var(--hud-border);border-radius:8px;background:var(--hud-bg);box-shadow:0 .75rem 1.75rem #0000002e;cursor:pointer}.race-menu-button svg{width:1.4rem;height:1.4rem;fill:none;stroke:currentColor;stroke-linecap:round;stroke-width:2.2}.race-menu-button:active{transform:translateY(1px)}button:focus-visible{outline:3px solid var(--focus-ring);outline-offset:2px}.menu-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;display:grid;place-items:center;padding:clamp(1rem,4vw,4rem);color:var(--menu-card-text);background:var(--menu-bg);opacity:1;visibility:visible;transition:opacity .16s ease,visibility .16s ease}.menu-overlay.is-hidden{opacity:0;pointer-events:none;visibility:hidden}.menu-overlay:focus{outline:none}.intro-menu{width:min(35rem,calc(100vw - 2rem));min-height:min(24.8rem,calc(100vh - 8rem));display:flex;flex-direction:column;align-items:center;justify-content:center;padding:clamp(2rem,5vw,3rem) clamp(1.6rem,6vw,5.25rem);text-align:center;border:1px solid var(--border-default);border-radius:30px;background:var(--menu-card-bg);box-shadow:var(--shadow-panel)}.menu-challenge-panel{width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}.menu-overlay[data-menu-view=car-editor] .intro-menu{width:min(64rem,calc(100vw - 2rem));min-height:0;align-items:stretch;justify-content:flex-start;padding:clamp(1.15rem,2.4vw,1.75rem);text-align:left;border-radius:24px}.menu-overlay[data-menu-view=car-editor] .menu-challenge-panel,.car-editor-panel[hidden]{display:none}.car-editor-panel{width:100%;display:grid;grid-template-areas:"preview controls";grid-template-columns:minmax(17rem,.88fr) minmax(23rem,1.12fr);align-items:start;gap:clamp(1rem,2.8vw,1.75rem)}.car-editor-preview{grid-area:preview;min-width:0;padding:.55rem;overflow:hidden;border:1px solid var(--border-default);border-radius:8px;background:linear-gradient(90deg,var(--grid-line) 1px,transparent 1px),linear-gradient(0deg,var(--grid-line) 1px,transparent 1px),var(--surface-inset);background-size:2.6rem 2.6rem}.race-preview-card{min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:.28rem;padding:.55rem;border:1px solid var(--border-default);border-radius:6px;background:var(--surface-base)}.race-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:.5rem;color:var(--menu-card-muted);font-size:.63rem;font-weight:900;letter-spacing:.08rem;line-height:1;text-transform:uppercase}.race-preview-heading [role=status]{color:var(--text-muted);font-size:.58rem;letter-spacing:.04rem}.race-preview-map{width:100%;height:100%;min-height:8.5rem;display:block;overflow:visible}.race-preview-main-path,.race-preview-pit-path{fill:none;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}.race-preview-main-path{stroke:var(--menu-card-text);stroke-width:4}.race-preview-pit-path{stroke:var(--menu-preview-pit);stroke-dasharray:5 6;stroke-width:2.5}.race-preview-pit-path[hidden]{display:none}.race-preview-forecast{min-height:2.25rem;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.22rem;color:var(--menu-card-muted);font-size:.58rem;text-align:center}.race-preview-forecast-item{min-width:0;display:grid;gap:.08rem;padding:.22rem .12rem;border:1px solid var(--border-default);border-radius:4px;background:var(--surface-raised)}.race-preview-forecast-item:before{width:.42rem;aspect-ratio:1;justify-self:center;border:1px solid currentColor;border-radius:50%;content:""}.race-preview-forecast-item[data-weather-icon=sun]:before{background:var(--weather-dry);box-shadow:0 0 0 2px color-mix(in srgb,var(--weather-dry) 22%,transparent)}.race-preview-forecast-item[data-weather-icon=rain]:before{border-radius:50% 50% 60% 40%;background:var(--weather-rain);transform:rotate(35deg)}.race-preview-forecast-item span,.race-preview-forecast-item strong{overflow:hidden;line-height:1;text-overflow:ellipsis;white-space:nowrap}.race-preview-forecast-item strong{color:var(--menu-card-text);font-size:.62rem}.car-editor-preview-car{position:relative;width:5.4rem;height:2.4rem;display:block;flex:0 0 auto}.car-editor-preview-canvas{display:block;width:100%;height:100%}.car-editor-controls{grid-area:controls;min-width:0}.car-editor-controls .menu-kicker{margin-bottom:.55rem}.car-editor-controls h2{margin:0;color:var(--menu-card-text);font-size:clamp(2rem,3.8vw,2.85rem);font-weight:900;line-height:.95}.car-editor-options{display:grid;gap:.18rem;margin-top:.75rem}.car-editor-option-row{min-width:0;min-height:3.1rem;display:grid;grid-template-columns:minmax(4.5rem,.55fr) 2.75rem minmax(0,1fr) 2.75rem;align-items:center;gap:.45rem;padding:.38rem 0;border-bottom:1px solid var(--border-default)}.car-editor-option-row>span{color:var(--menu-card-muted);font-size:.78rem;font-weight:900;line-height:1;text-transform:uppercase}.car-editor-option-value{min-width:0;overflow:hidden;color:var(--menu-card-text);font-size:1.04rem;font-weight:900;line-height:1.15;text-align:center;text-overflow:ellipsis;white-space:nowrap}.car-editor-option-value:has(.car-editor-preview-car){display:flex;align-items:center;justify-content:center;overflow:visible}.race-difficulty-selector{min-width:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.4rem;margin:.7rem 0 0;padding:0;color:var(--menu-card-text);border:0}.race-difficulty-selector legend{width:100%;margin-bottom:.4rem;color:var(--menu-card-muted);font-size:.72rem;font-weight:900;letter-spacing:.08rem;text-transform:uppercase}.race-difficulty-option{position:relative;min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr);min-height:2.75rem;align-items:center;gap:.35rem;padding:.45rem;border:1px solid var(--border-default);border-radius:6px;background:var(--surface-raised);cursor:pointer}.race-difficulty-option:has(input:checked){border-color:var(--accent-primary);background:var(--surface-selected)}.race-difficulty-option:has(input:focus-visible){outline:3px solid var(--focus-ring);outline-offset:2px}.race-difficulty-option input{margin:.1rem 0 0;accent-color:var(--accent-primary)}.race-difficulty-option span{min-width:0;display:grid;gap:.18rem}.race-difficulty-option strong{font-size:.78rem;line-height:1}.race-difficulty-option small{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.race-difficulty-description{min-height:1.1rem;margin:.38rem 0 0;color:var(--menu-card-muted);font-size:.68rem;line-height:1.35}.car-editor-step-button{width:2.75rem;aspect-ratio:1;display:grid;place-items:center;color:var(--text-primary);border:1px solid var(--border-default);border-radius:50%;background:var(--surface-interactive);cursor:pointer}.car-editor-step-button:hover{border-color:var(--accent-primary);background:var(--surface-selected);transform:translateY(-1px)}.car-editor-step-button:active{transform:translateY(1px)}.car-editor-step-button svg{width:1.1rem;height:1.1rem;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2.4}.car-editor-actions{display:grid;grid-template-columns:minmax(6rem,.42fr) minmax(8rem,1fr);gap:.65rem;margin-top:.7rem}.car-editor-secondary-button,.car-editor-start-button{min-height:2.85rem;padding:.65rem .9rem;font-weight:900;border-radius:8px;cursor:pointer}.car-editor-secondary-button{color:var(--menu-card-text);border:1px solid var(--border-default);background:transparent}.car-editor-start-button{color:var(--accent-primary-text);border:1px solid var(--accent-primary);background:var(--accent-primary)}.car-editor-start-button:hover:not(:disabled){background:var(--accent-primary-hover)}.car-editor-start-button:active:not(:disabled){background:var(--accent-primary-active)}.car-editor-start-button:disabled{cursor:wait;opacity:.52}.menu-kicker{margin:0 0 .8rem;color:var(--accent-primary);font-size:.75rem;font-weight:700;letter-spacing:.12rem;text-transform:uppercase}.menu-brand{width:min(100%,28rem);margin:0;line-height:0}.editor-segment-preview{height:2.9rem}.menu-logo{display:block;width:100%;height:auto}.menu-logo-on-light{display:none}.menu-copy{max-width:29rem;margin:.9rem 0 1.55rem;color:var(--menu-card-text);font-size:1rem;line-height:1.55}.menu-question{margin:0 0 1.1rem;color:var(--menu-card-text);font-size:1rem;font-weight:800}.menu-primary-actions{display:flex;justify-content:center;gap:1.25rem;flex-wrap:wrap}.menu-action{min-width:6.2rem;display:grid;justify-items:center;gap:.58rem}.menu-action[hidden],.menu-action-button[hidden]{display:none}.menu-action span{color:var(--menu-card-text);font-size:.82rem;font-weight:800;line-height:1.2}.menu-action-button{width:5.25rem;aspect-ratio:1;display:grid;place-items:center;color:var(--text-primary);border:1px solid var(--border-default);border-radius:50%;background:var(--surface-interactive);cursor:pointer;box-shadow:var(--shadow-control);transition:transform .12s ease,box-shadow .12s ease}.current-f1-button{color:#fff;border-color:color-mix(in srgb,var(--accent-danger) 60%,var(--border-default));background:#b9492f}.track-editor-button{color:#fff;border-color:color-mix(in srgb,var(--accent-success) 50%,var(--border-default));background:#28705f}.menu-action-button:hover,.utility-button:hover{transform:translateY(-1px)}.menu-action-button:active,.utility-button:active{transform:translateY(1px)}.menu-action-button svg{width:2rem;height:2rem}.menu-action-button svg,.utility-button svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2.2}.menu-utility-bar{position:absolute;right:1.25rem;bottom:1.25rem;display:flex;gap:.6rem}.ghost-dialog[hidden]{display:none}.ghost-dialog{position:fixed;top:0;right:0;bottom:0;left:0;z-index:30;display:grid;place-items:center;padding:1rem}.ghost-dialog-backdrop{position:absolute;top:0;right:0;bottom:0;left:0;border:0;background:var(--backdrop);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);cursor:default}.ghost-dialog-panel{position:relative;width:min(46rem,calc(100vw - 2rem));max-height:calc(100vh - 2rem);display:flex;flex-direction:column;gap:1rem;overflow-y:auto;padding:1rem;color:var(--hud-value);border:1px solid var(--hud-border);border-radius:12px;background:var(--hud-bg);box-shadow:var(--shadow-panel)}.ghost-dialog-header,.ghost-section-heading,.ghost-dialog-actions{display:flex;align-items:center;justify-content:space-between;gap:.75rem}.ghost-dialog-header>div>span,.ghost-section-heading span,.ghost-dialog-section>label,.ghost-dialog-section>p{color:var(--hud-label);font-size:.7rem;font-weight:800}.ghost-dialog-header>div>span,.ghost-dialog-section>label{letter-spacing:.06em;text-transform:uppercase}.ghost-dialog-header h2,.ghost-section-heading h3{margin:0}.ghost-dialog-header h2{margin-top:.15rem;font-size:1.25rem}.ghost-dialog-close-button{width:2.5rem;aspect-ratio:1;display:grid;place-items:center;flex:0 0 auto;color:var(--hud-value);border:1px solid var(--hud-border);border-radius:50%;background:var(--surface-interactive);cursor:pointer}.ghost-dialog-close-button svg{width:1.1rem;height:1.1rem;fill:none;stroke:currentColor;stroke-linecap:round;stroke-width:2.2}.ghost-dialog-content{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}.ghost-dialog-section{min-width:0;display:flex;flex-direction:column;gap:.55rem;padding:.8rem;border:1px solid var(--hud-border);border-radius:8px;background:var(--surface-inset)}.ghost-section-heading{align-items:flex-start;min-height:2.4rem}.ghost-section-heading h3{font-size:.95rem}.ghost-section-heading span{max-width:12rem;text-align:right}.ghost-dialog-section textarea{width:100%;min-height:5.25rem;resize:vertical;padding:.65rem;color:var(--hud-value);font:.72rem/1.4 ui-monospace,SFMono-Regular,Consolas,monospace;overflow-wrap:anywhere;border:1px solid var(--hud-border);border-radius:6px;background:var(--surface-base)}.ghost-dialog-section textarea:focus,.ghost-dialog button:focus-visible{outline:3px solid var(--focus-ring);outline-offset:2px}.ghost-dialog-section>p{min-height:1rem;margin:0;line-height:1.4}.ghost-dialog-section button{min-height:2.5rem;padding:.55rem .8rem;color:var(--accent-primary-text);font-weight:900;border:1px solid var(--accent-primary);border-radius:7px;background:var(--accent-primary);cursor:pointer}.ghost-dialog-section button:disabled{cursor:not-allowed;opacity:.42}.ghost-dialog-actions button{flex:1 1 0}.ghost-dialog-actions button:first-child{color:var(--text-primary);border-color:var(--border-default);background:var(--surface-interactive)}.ghost-dialog-actions button:first-child:hover:not(:disabled){border-color:var(--accent-primary);background:var(--surface-selected)}.ghost-preview-summary{padding:.55rem .65rem;color:var(--hud-value)!important;border-left:3px solid var(--accent-info);background:color-mix(in srgb,var(--accent-info) 10%,var(--surface-inset))}.ghost-preview-summary[data-active=true]{border-left-color:var(--accent-success)}.ghost-dialog-status{min-height:1.2rem;margin:0;color:var(--hud-label);font-size:.78rem;line-height:1.45}@media (max-width: 720px){.ghost-dialog-panel{padding:.8rem}.ghost-dialog-content{grid-template-columns:minmax(0,1fr)}.ghost-section-heading{min-height:0}.ghost-dialog-actions{align-items:stretch;flex-direction:column}}.utility-button{width:2.55rem;aspect-ratio:1;display:grid;place-items:center;color:var(--menu-utility-text);border:1px solid var(--menu-utility-border);border-radius:50%;background:var(--menu-utility-bg);cursor:pointer;box-shadow:var(--shadow-control);transition:transform .12s ease,background .12s ease,color .12s ease}.utility-button svg{width:1.25rem;height:1.25rem}.audio-toggle-button .icon-audio-off,.theme-toggle-button .icon-theme-dark,.audio-toggle-button.is-muted .icon-audio-on,:root[data-theme=dark] .theme-toggle-button .icon-theme-light{display:none}.audio-toggle-button.is-muted .icon-audio-off,:root[data-theme=dark] .theme-toggle-button .icon-theme-dark{display:block}@media (max-width: 700px){.editor-topbar{top:.45rem;right:.45rem;left:.45rem;gap:.45rem}.editor-menu-trigger{min-height:1.75rem;padding:0 .54rem;font-size:.78rem}.editor-menu-panel{min-width:11.5rem}.editor-track-summary{max-width:min(10rem,calc(100vw - 14.25rem))}.editor-publish-kind-select{min-width:6.2rem;font-size:.74rem}.editor-track-title strong{max-width:5.8rem;font-size:.82rem}.editor-track-name-input{width:min(10rem,44vw);min-width:6rem}.editor-option-range{grid-template-columns:minmax(0,1fr) 3.4rem}.editor-option-range input{grid-column:1 / -1;grid-row:2}.hud{grid-template-columns:repeat(2,minmax(0,1fr));padding:.55rem 1rem}.race-status-strip{top:.45rem;right:3.65rem;left:.45rem;gap:.35rem}.race-status-card{min-width:0;flex:1 1 0;padding:.42rem .5rem}.race-weather-card{min-width:0}.hud .pit-tyre-panel{align-items:flex-start;flex-direction:column}.race-start-cue{top:4.25rem;gap:.45rem}.race-start-cue-board{grid-template-columns:repeat(5,minmax(1.35rem,2rem));gap:.34rem;padding:.42rem}.race-start-cue strong{min-width:7.2rem;font-size:.76rem}.race-results{padding:.75rem}.race-results-panel{max-height:calc(100dvh - 1.5rem);padding:.75rem}.race-results-content{grid-template-columns:minmax(0,1fr)}.race-results-summary,.race-results-follow-up{grid-column:auto;grid-row:auto}.race-results-primary-actions{align-items:stretch;flex-direction:column}.editor-hud{padding:.65rem 1rem .85rem}.editor-piece-button{min-width:8.2rem}.controls{grid-template-columns:minmax(0,1fr) minmax(0,.85fr) minmax(0,.76fr)}.dev-cruise-control{right:1rem;bottom:19.5rem;left:1rem;justify-content:space-between}.race-menu-button{top:.45rem;right:.45rem}.menu-overlay{align-items:center;padding:1rem}.intro-menu{width:min(calc(100vw - 2rem),28rem);min-height:auto;max-height:calc(100vh - 2rem);padding:1.4rem .75rem;overflow-y:auto;border-radius:24px}.menu-overlay[data-menu-view=car-editor] .intro-menu{width:min(calc(100vw - 2rem),34rem);max-height:calc(100vh - 2rem);overflow-y:auto;padding:1rem}.car-editor-panel{grid-template-areas:"controls" "preview";grid-template-columns:minmax(0,1fr);gap:.9rem}.car-editor-preview{padding:.45rem}.car-editor-controls h2{font-size:clamp(1.85rem,12vw,2.45rem)}.car-editor-option-row{grid-template-columns:minmax(4.2rem,.62fr) 2.75rem minmax(0,1fr) 2.75rem;gap:.35rem}.car-editor-option-value{font-size:.94rem}.car-editor-actions{grid-template-columns:minmax(5rem,.45fr) minmax(7rem,1fr)}.menu-brand{width:min(100%,24rem)}.menu-question{margin-bottom:.8rem}.menu-primary-actions{gap:.75rem}.menu-action{width:4.8rem;min-width:0;flex:0 1 4.8rem;gap:.4rem}.menu-action span{width:100%;overflow-wrap:anywhere;font-size:.72rem}.menu-copy{margin:.65rem 0 1rem;font-size:.95rem;line-height:1.45}.menu-action-button{width:4.8rem}.menu-utility-bar{right:1rem;bottom:1rem}}@media (max-width: 420px){.race-results-secondary-actions{grid-template-columns:minmax(0,1fr)}.menu-overlay[data-menu-view=car-editor] .menu-utility-bar{display:none}.menu-overlay[data-menu-view=car-editor]{padding:.5rem}.menu-overlay[data-menu-view=car-editor] .intro-menu{width:calc(100vw - 1rem);max-height:calc(100dvh - 1rem);padding:.75rem}.car-editor-option-row{grid-template-columns:minmax(3.75rem,.55fr) 2.75rem minmax(0,1fr) 2.75rem;gap:.28rem}.car-editor-option-row>span{font-size:.7rem}.race-difficulty-option{grid-template-columns:minmax(0,1fr);justify-items:center;padding-inline:.25rem;text-align:center}.race-difficulty-option input{position:absolute;opacity:0}}.shared-race-link-notice{max-width:29rem;margin:-.65rem 0 1.2rem;padding:.7rem .8rem;color:var(--menu-card-text);font-size:.82rem;line-height:1.45;border:1px solid color-mix(in srgb,var(--menu-card-text) 24%,transparent);border-left:3px solid var(--weather-dry);border-radius:6px;background:color-mix(in srgb,var(--menu-card-text) 7%,transparent)}.shared-race-link-notice[hidden]{display:none}@media (forced-colors: active){.intro-menu,.race-results-panel,.ghost-dialog-panel,.editor-modal-panel,.leaderboard-panel,.hud>div{forced-color-adjust:auto;border:1px solid CanvasText}.car-editor-start-button,.race-results-primary-actions button:first-child,.leaderboard-submit-button,.race-difficulty-option:has(input:checked),.editor-piece-button.is-selected,.editor-palette-tab.is-active{forced-color-adjust:auto;border:2px solid Highlight}button:focus-visible,textarea:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid Highlight}}@media (prefers-reduced-motion: reduce){.race-results-panel{animation:none;scroll-behavior:auto}}
