#shift-hud{--night-ink:#15232cf5;--night-line:#586a6d;--night-paper:#f3e6c6;--night-amber:#ffc66d;pointer-events:none;color:var(--night-paper);position:fixed;inset:0}#shift-instruments{background:var(--night-ink);border:1px solid var(--night-line);grid-template-columns:max-content minmax(0,1fr);align-items:center;gap:2px 9px;max-width:min(35vw,350px);padding:5px 8px;line-height:1.25;display:grid;position:absolute;top:14px;left:14px}#shift-clock{color:var(--night-amber);letter-spacing:-.035em;font-variant-numeric:tabular-nums;font-size:20px;font-weight:700}#shift-location{color:#c5d3d1;text-transform:uppercase;letter-spacing:.06em;grid-column:1/-1;margin:3px 0 1px;font-size:10px}#shift-stars{gap:2px;display:flex}#shift-stars svg,#shift-factors svg{width:13px;height:13px;display:block}#shift-stars svg{fill:#29414c;stroke:#a5b1aa;stroke-width:1.05px}#shift-stars .lit{fill:var(--night-amber);stroke:var(--night-amber)}#shift-objective,#shift-factors,#shift-factor-note,#shift-comms{grid-column:1/-1}#shift-objective{color:#f3e6c6;overflow-wrap:anywhere;font-size:11px}#shift-objective strong{color:var(--night-amber)}#shift-objective p{margin:0;display:inline}#shift-objective p:before{content:" · "}#shift-objective[data-step]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}#shift-factors{gap:4px;display:flex}#shift-factors:not(:has(button:not([hidden]))){display:none}#shift-factors button{pointer-events:auto;background:var(--night-ink);color:#cbd7d2;border:1px solid var(--night-line);place-items:center;width:23px;height:21px;padding:0;display:grid}#shift-factors button:hover,#shift-factors button[aria-pressed=true],#shift-factors button[data-elevated=true]{color:var(--night-amber);border-color:var(--night-amber)}#shift-factors svg{stroke:currentColor;stroke-width:1.45px;fill:none;stroke-linejoin:round}#shift-factor-note{font-size:10px}#shift-comms{border-top:1px solid var(--night-line);align-items:baseline;gap:5px;padding-top:3px;font-size:11px;line-height:1.25;display:flex}#shift-channel{color:var(--night-amber);text-transform:uppercase;flex:none;font-size:9px}#shift-ticker{color:#c6d5cc}#shift-hint,#shift-toast{color:var(--night-amber)}#shift-hud [hidden]{display:none}#shift-title{border:1px solid var(--night-line);background:var(--night-ink);text-align:center;min-width:min(230px,75vw);padding:13px 27px 15px;animation:2.05s ease-in-out both night-card;position:absolute;top:34%;left:50%;translate:-50% -50%}#shift-title strong{color:var(--night-amber);letter-spacing:.045em;font-size:clamp(20px,4vw,33px);font-weight:700;line-height:1.18;display:block}#shift-title-night{color:#cbd7d2;font-size:12px}@keyframes night-card{0%,62%{opacity:1}to{opacity:0}}@media (prefers-reduced-motion:reduce){#shift-title{animation:none}}#debug-panel{z-index:2}#map-panel{z-index:4}#shift-controls{margin-top:.7rem}#shift-controls div{flex-wrap:wrap;gap:4px;margin-top:4px;display:flex}#shift-controls button,#shift-controls select{color:#ede5cb;font:inherit;background:#20313a;border:1px solid #4b6166;padding:0 5px}#shift-controls button[aria-pressed=true]{color:#ffc66d;border-color:#ffc66d}@media (max-width:600px){#shift-instruments{max-width:min(54vw,250px);top:8px;left:8px}}body:has(#play-controls[data-touch=true]){--touch-deck-height:94px;--touch-deck-bottom:max(12px, env(safe-area-inset-bottom));--above-touch-controls:calc(var(--touch-deck-height) + var(--touch-deck-bottom) + 10px)}body:has(#play-controls[data-touch=true][data-mode=foot]){--touch-deck-height:142px}body:has(#play-controls[data-touch=true][data-mode=drive]){--touch-deck-height:156px}body:has(#play-controls[data-touch=true]:not([hidden]))>:is(main,#shift-hud,#mini-map-button){touch-action:none}#play-controls{--touch-left:max(12px, env(safe-area-inset-left));--touch-right:max(12px, env(safe-area-inset-right));--stick-width:96px;--stick-height:96px;z-index:3;pointer-events:none;-webkit-user-select:none;user-select:none;position:fixed;inset:0}#play-controls[data-mode=drive]{--stick-width:clamp(94px, 30vw, 134px);--stick-height:68px}#play-controls button,.touch-stick{pointer-events:auto;touch-action:none}#play-controls button{color:#eee7cf;background:#18272ef5;border:1px solid #6b7978;font:600 12px/1.2 ui-monospace,monospace}.key-strip{bottom:max(10px, env(safe-area-inset-bottom));white-space:nowrap;color:#e8dfc7;background:#15232cf0;border:1px solid #576969;align-items:center;gap:12px;padding:3px 4px 3px 10px;font-size:11px;display:flex;position:absolute;left:50%;translate:-50%}.key-help{padding:4px 8px}.touch-deck,#play-controls[data-touch=true] .key-strip{display:none}#play-controls[data-touch=true] .touch-deck{display:block}.touch-stick{bottom:var(--touch-deck-bottom);left:var(--touch-left);width:var(--stick-width);height:var(--stick-height);border:1px solid #bbbfabb3;border-radius:50%;place-items:center;display:grid;position:absolute}.touch-stick i{border-radius:inherit;background:#667366dd;border:2px solid #ebd7a5;width:36px;height:36px}.touch-stick span{color:#fff3cf;font:600 10px/1 monospace;position:absolute;bottom:8px}.touch-stick[data-held] span{visibility:hidden}.touch-zoom{bottom:calc(var(--touch-deck-bottom) + var(--stick-height) + 6px);left:var(--touch-left);width:var(--stick-width);grid-template-columns:repeat(2,1fr);gap:4px;display:grid;position:absolute}#play-controls .touch-zoom button{min-width:44px;min-height:44px;padding:0;font-size:22px}.touch-actions{right:var(--touch-right);bottom:var(--touch-deck-bottom);width:min(250px, calc(100vw - var(--stick-width) - var(--touch-left) - var(--touch-right) - 12px));grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;display:grid;position:absolute}.touch-actions button,.action-drawer button{overflow-wrap:anywhere;min-width:44px;min-height:44px;padding:4px 8px}.touch-actions .more-actions{grid-area:1/3}.touch-quick{grid-area:1/1}.touch-secondary{grid-area:1/2}.touch-space{grid-area:2/1}.touch-use{grid-area:2/2/auto/span 2}.touch-grab{grid-area:2/1}.touch-fart{grid-area:2/2}.touch-new-car{grid-area:2/3}#play-controls .touch-actions :is(.touch-grab,.touch-fart,.touch-new-car){color:#ffe0aa;background:#323126f5;border-color:#b8935d}#play-controls[data-mode=foot] .touch-actions :is(.touch-space,.touch-use){grid-row:3}#play-controls button[data-code=KeyE]{color:#ffe2a5;background:#4a3825eb;border-color:#efb75c}#play-controls button[data-vehicle]{color:#172029;background:#f2bd58;border-color:#ffdd98;font-size:14px}#play-controls[data-report-ready] :where(.more-actions,.action-buttons [data-code=KeyV]){color:#ffe2a5;border-color:#efb75c}#play-controls[data-mode=drive] .touch-new-car{grid-area:1/2}#play-controls[data-mode=drive] .touch-use{grid-area:2/1/auto/-1}.touch-reverse{grid-area:3/1}#play-controls .touch-gas{color:#172029;background:#f2bd58;border-color:#ffdd98;grid-area:3/3;min-height:58px}#play-controls .touch-brake{color:#ffe0c4;background:#362925f5;border-color:#ad7865;grid-area:3/2;min-height:58px}#play-controls .touch-actions :is(.touch-grab,.touch-fart,.touch-new-car)[data-held],#play-controls button[data-held],#play-controls button:active{color:#14252c;background:#f9cc77}.action-drawer{pointer-events:auto;bottom:var(--above-touch-controls);right:var(--touch-right);box-sizing:border-box;max-height:min(45dvh, calc(100dvh - var(--above-touch-controls) - max(8px, env(safe-area-inset-top))));touch-action:pan-y;width:min(320px, calc(100vw - var(--touch-left) - var(--touch-right)));background:#14242cf7;border:1px solid #7d8981;padding:6px;position:absolute;overflow-y:auto}body:has(#play-controls[data-touch=true]) #interaction-hud{text-align:center;width:max-content;max-width:80vw;padding:4px 8px;bottom:var(--above-touch-controls)!important}body:has(#play-controls[data-touch=true]) #interaction-hud canvas{display:none!important}body:has(#play-controls[data-touch=true]) #interaction-hud:before{content:attr(aria-label)}body:has(#play-controls[data-touch=true]) .nw-job{bottom:var(--above-touch-controls);max-height:44dvh;overflow:auto}body:has(#play-controls[data-touch=true]) .caught-scene{bottom:var(--above-touch-controls)}@media (max-width:680px){.key-strip{white-space:normal;justify-content:space-between;width:calc(100vw - 40px)}}@media (max-width:370px){.touch-actions button{padding-inline:3px}}.touch-stick{box-sizing:border-box;background:linear-gradient(90deg,#0000 49%,#bcc7b47a 49% 51%,#0000 51%) 50% 9px/12px 7px no-repeat,linear-gradient(#bcc7b47a,#bcc7b47a) 8px/6px 2px no-repeat,linear-gradient(#bcc7b47a,#bcc7b47a) right 8px center/6px 2px no-repeat,#16242dcf}#play-controls[data-mode=drive] .touch-stick{background:linear-gradient(#6e8789,#6e8789) 50% calc(50% - 7px)/calc(100% - 22px) 2px no-repeat,#16242df0;border-radius:13px;grid-template-rows:1fr 14px}#play-controls[data-mode=drive] .touch-stick i{border-radius:6px;width:32px;height:28px}#play-controls[data-mode=drive] .touch-stick span{visibility:visible;bottom:6px}#play-controls[data-mode=drive] .touch-stick span:before{content:"‹ "}#play-controls[data-mode=drive] .touch-stick span:after{content:" ›"}.action-pages{gap:2px;margin-bottom:5px;display:flex}#play-controls .action-pages button{touch-action:manipulation;flex:1;min-width:0;padding:2px}#play-controls .action-pages [aria-pressed=true]{color:#ffe2a5;border-color:#efb75c}.action-buttons{grid-template-columns:repeat(3,1fr);gap:4px;display:grid}#play-controls .action-buttons button{touch-action:none}body:has(#play-controls[data-touch=true]) #mini-map-button{width:clamp(86px,26vw,138px);top:max(8px, env(safe-area-inset-top));right:max(8px, env(safe-area-inset-right))}body:has(#play-controls[data-touch=true]) #shift-instruments{top:max(8px, env(safe-area-inset-top));left:max(8px, env(safe-area-inset-left));box-sizing:border-box;width:max-content;max-width:min(350px, calc(100vw - clamp(86px, 26vw, 138px) - max(8px, env(safe-area-inset-left)) - max(8px, env(safe-area-inset-right)) - 10px))}body:has(#play-controls[data-touch=true]) #shift-objective[data-step]{text-overflow:clip;white-space:normal;overflow:visible}body:has(#play-controls[data-touch=true]) .shift-watch{white-space:normal;min-width:0}body:has(#play-controls[data-touch=true]) #map-close{min-height:44px}.controls-card{box-sizing:border-box;max-height:78dvh;overflow-y:auto}body:has(#play-controls:not([hidden])) #flight-hud{bottom:3rem!important}body:has(#play-controls[data-touch=true]:not([hidden])) #flight-hud{box-sizing:border-box;bottom:calc(154px + var(--touch-deck-bottom))!important;left:max(8px, env(safe-area-inset-left))!important;max-width:min(60vw,320px)!important;padding:4px 6px!important}body[data-scenario-accident] .nw-job.nw-prompt{display:none}
