:root{color:#fbf7ee;font-synthesis:none;--ink:#151c20;--cream:#fbf7ee;--orange:#ff9c54;--edge:#f9e7d833;background:#141b20;font-family:Avenir Next,Avenir,system-ui,sans-serif}*,:before,:after{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;overflow:hidden}button{font:inherit}button:focus-visible{outline-offset:4px;outline:2px solid #fff}.game,.scene,.menu,.hud,.pause{position:absolute;inset:0}.game{width:100%;height:100%;min-height:280px;overflow:hidden}.scene{background:#3f515a}.scene canvas{touch-action:none;width:100%;height:100%;display:block}.menu{isolation:isolate;background:linear-gradient(90deg,#111a20f7 0%,#111a20e8 19%,#141c22bb 34%,#161d2351 55%,#0000 77%),linear-gradient(#0000 76%,#141b20d9);grid-template-rows:1fr auto;padding:4.5vh clamp(1.25rem,6.25vw,7.5rem) 5vh;display:grid}.menu-main{align-self:center;max-width:31rem;margin-top:1vh}.eyebrow{color:#ffe4d0;letter-spacing:.15em;text-transform:uppercase;align-items:center;gap:.65rem;width:max-content;max-width:100%;font-size:.83rem;font-weight:700;line-height:1.5;display:flex}.location-mark{border:2px solid var(--orange);width:.58rem;height:.58rem;transform:rotate(45deg)}.divider{background:#ffe4d05c;width:1px;height:.82rem}.wordmark{width:min(100%,clamp(16.5rem,51vh,29rem));margin:1.15rem 0 .4rem -.22rem}.wordmark svg{width:100%;height:auto;display:block;overflow:visible}.wordmark-block{fill:#fff3de;stroke:#1a182a;stroke-width:6px;paint-order:stroke fill;filter:drop-shadow(-.24rem .3rem #bfb6ec)drop-shadow(-.16rem .28rem #161825)}.wordmark-script{stroke:#ff83bc;stroke-width:7px;filter:drop-shadow(0 2px 1px #3b1837)drop-shadow(0 0 .6rem #ed3d9766)}.wordmark-six{stroke-width:9.5px}.wordmark-flourish{stroke-width:3px}.wordmark-caption{color:#ffb5d6;text-transform:uppercase;letter-spacing:.32em;margin:0;font-size:.68rem;font-weight:800;line-height:1.5}.menu-copy{color:#f5e5d7;max-width:31ch;margin:1.8rem 0;font-size:clamp(1rem,1.26vw,1.18rem);line-height:1.55}.menu-actions{flex-wrap:wrap;gap:.7rem;display:flex}.button{cursor:pointer;border:1px solid #0000;border-radius:.26rem;justify-content:center;align-items:center;gap:.9rem;min-height:3.1rem;padding:.65rem 1.15rem;font-size:.99rem;font-weight:750;transition:background .16s,border-color .16s;display:inline-flex}.button:disabled{cursor:wait;opacity:.66}.primary{color:#211810;background:var(--orange)}.primary:hover:not(:disabled){background:#ffb27b}.primary kbd{background:#2118100c;border-color:#2118103d}.secondary{color:var(--cream);background:#161e246e;border-color:#fbf7ee69}.secondary:hover:not(:disabled){background:#3a4148dd;border-color:#fbf7eed9}.loading{color:#ffe4d0;max-width:34ch;margin:1rem 0 0;font-size:.94rem}.menu-controls{color:#f3e7dc;flex-wrap:wrap;align-self:end;gap:.75rem 1.35rem;width:max-content;max-width:100%;display:flex}.menu-controls>div,.controls-hint>div{align-items:center;gap:.22rem;display:flex}.menu-controls>div>span:last-child,.controls-hint>div>span:last-child{margin-left:.28rem;font-size:.875rem}kbd{background:#f5e5d712;border:1px solid #f5e5d759;border-radius:.22rem;place-items:center;min-width:1.45rem;min-height:1.45rem;padding:.1rem .29rem;font:650 .78rem/1.25 ui-monospace,monospace;display:inline-grid}.mouse-icon{border:1px solid #f5e5d799;border-radius:.55rem;width:1rem;height:1.35rem;position:relative}.mouse-icon:before{content:"";background:#f5e5d7;width:1px;height:.38rem;position:absolute;top:.23rem;left:50%}.hud{pointer-events:none;--margin:clamp(.8rem, 2.3vw, 2rem)}.hud-left{left:var(--margin);top:var(--margin);max-width:min(22rem,57vw);position:absolute}.objective,.toast,.map-frame,.icon-button,.prompt,.controls-hint,.location-panel{border:1px solid var(--edge);background:#141c23ed;border-radius:.35rem;box-shadow:0 4px 22px #141b2028}.objective{border-left:.21rem solid var(--orange);padding:.81rem 1rem .9rem}.hud-label{color:var(--orange);letter-spacing:.13em;text-transform:uppercase;margin:0 0 .17rem;font-size:.75rem;font-weight:750}.objective h2{margin:0;font-size:1.15rem;line-height:1.22}#job-detail{color:#e4dace;margin:.37rem 0 0;font-size:.88rem;line-height:1.35}.toast{color:#ffd5b7;margin-top:.6rem;padding:.6rem .9rem;font-size:.87rem}.hud-right{right:var(--margin);top:var(--margin);align-items:flex-start;gap:.48rem;display:flex;position:absolute}.map-frame{color:inherit;text-align:left;cursor:pointer;pointer-events:auto;width:clamp(7.8rem,17vw,13.6rem);padding:0;transition:width .2s;overflow:hidden}.map-frame.expanded{width:min(65vw,67vh,41rem)}.map-top{letter-spacing:.1em;color:#fff0dc;justify-content:space-between;align-items:center;padding:.45rem .54rem;font-size:.65rem;font-weight:750;display:flex}.map-top kbd{min-width:1.05rem;min-height:1.05rem;font-size:.64rem}.map-frame canvas{background:#25333c;width:100%;height:auto;display:block}.icon-button{pointer-events:auto;width:2.2rem;height:2.2rem;color:var(--cream);cursor:pointer;place-items:center;font-weight:800;display:grid}.icon-button:hover{background:#3a4148}.interaction-area{justify-items:center;gap:.5rem;padding-inline:1rem;display:grid;position:absolute;inset:auto 0 max(16%,4.75rem)}.prompt{white-space:nowrap;align-items:center;gap:.55rem;padding:.44rem .75rem .44rem .46rem;font-size:.98rem;font-weight:700;display:flex}.prompt kbd{color:var(--ink);background:var(--orange);border:0}.hud-footer{inset:auto var(--margin) var(--margin);justify-content:space-between;align-items:end;gap:.6rem;display:flex;position:absolute}.controls-hint{flex-wrap:wrap;gap:.42rem .85rem;padding:.45rem .6rem;display:flex}.location-panel{text-align:right;white-space:nowrap;margin-left:auto;padding:.5rem .75rem}#street-name{font-size:.83rem;font-weight:700}.speed{justify-content:flex-end;align-items:baseline;gap:.24rem;line-height:1.15;display:flex}.speed strong{font-variant-numeric:tabular-nums;color:var(--orange);font-size:1.65rem}.speed span{letter-spacing:.08em;font-size:.64rem}.pause{background:#12191dc2;place-items:center;padding:1rem;display:grid}.pause-dialog{background:var(--ink);border:1px solid var(--edge);border-radius:.35rem;gap:.62rem;width:min(23rem,100%);padding:1.6rem;display:grid;box-shadow:0 16px 65px #0b101468}.pause-dialog h2{margin:0 0 .5rem;font-size:2.5rem;line-height:1}.pause-dialog p{color:#e4dace;margin:.45rem 0 0;font-size:.88rem;line-height:1.5}.pause-brand{text-transform:none}.sr-only{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;padding:0;position:absolute;overflow:hidden}@media (width<=620px){.menu{background:linear-gradient(90deg,#111a20ed,#111a2099 62%,#111a2044),linear-gradient(#0000 74%,#141b20d9)}.menu-copy{margin-block:1.35rem}.controls-hint{display:none}.hud-left{max-width:48vw}.map-frame{width:7.5rem}.map-top{letter-spacing:.03em;font-size:.57rem}}@media (height<=530px){.menu{padding-block:3.5vh}.wordmark{width:min(100%,clamp(10rem,42vh,18rem));margin:.75rem 0 .25rem -.15rem}.menu-copy{margin:.7rem 0 1rem}.pause-dialog{padding:1rem}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition:none!important}}.vehicle-readout{min-width:8.7rem;padding:.15rem 0 .45rem}.vehicle-condition{color:#eee1d4;align-items:center;gap:.42rem;margin-top:.31rem;font-size:.72rem;display:flex}.vehicle-condition meter{accent-color:#ffd098;flex:1;width:4.35rem;height:.32rem}#body-condition-value{font-variant-numeric:tabular-nums;min-width:2.55rem}.drift-label{color:#ffc27e;letter-spacing:.1em;text-transform:uppercase;margin-bottom:.22rem;font-size:.68rem;font-weight:800}.touch-controls,.touch-tools,.touch-menu-help,.touch-pause-help{display:none}.touch-mode{--touch-left:max(14px, calc(env(safe-area-inset-left,0px) + 10px));--touch-right:max(14px, calc(env(safe-area-inset-right,0px) + 10px));--touch-top:max(10px, calc(env(safe-area-inset-top,0px) + 6px));--touch-bottom:max(13px, calc(env(safe-area-inset-bottom,0px) + 8px));--stick-size:clamp(86px, 26vh, 118px);--touch-size:clamp(44px, 13vh, 57px);--pedal-width:max(var(--touch-size), 59px);-webkit-user-select:none;user-select:none;min-height:0}.touch-mode .menu{padding:var(--touch-top) max(var(--touch-right), 5vw) var(--touch-bottom) max(var(--touch-left), 5vw)}.touch-mode .menu-main{margin-top:0}.touch-mode .wordmark{width:min(100%,clamp(9rem,46vh,16rem));margin-block:.45rem .32rem}.touch-mode .menu-copy{max-width:45ch;margin-block:.5rem .85rem;font-size:.94rem}.touch-mode #start kbd,.touch-mode .menu-controls,.touch-mode .keyboard-pause-help,.touch-mode .controls-hint,.touch-mode .map-top kbd{display:none}.touch-mode .touch-menu-help,.touch-mode .touch-pause-help{color:#e4dace;margin:.35rem 0 0;font-size:.83rem;display:block}.touch-mode .pause-dialog{grid-template-columns:repeat(2,1fr);width:min(27rem,100%)}.touch-mode .pause-dialog .eyebrow,.touch-mode .pause-dialog h2,.touch-mode .pause-dialog p{grid-column:1/-1}.touch-mode .hud-left{inset:var(--touch-top) auto auto var(--touch-left);max-width:min(39vw,15rem)}.touch-mode .objective{padding:.5rem .65rem .55rem}.touch-mode .objective h2{font-size:.98rem}.touch-mode .hud-label,.touch-mode #job-detail{font-size:.72rem}.touch-mode .hud-right{inset:var(--touch-top) var(--touch-right) auto auto;grid-template-columns:auto auto;gap:.33rem .42rem;display:grid}.touch-mode .map-frame{width:clamp(96px,27vh,118px)}.touch-mode .map-frame.expanded{width:min(49vw,43vh,360px)}.touch-mode .map-top{letter-spacing:.025em;padding:.34rem .33rem;font-size:.55rem}.touch-mode .map-top>span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.touch-mode .icon-button{touch-action:manipulation;width:44px;height:44px}.touch-mode .touch-tools{pointer-events:auto;grid-column:1/-1;justify-content:end;gap:.24rem;display:flex}.touch-tools button{border:1px solid var(--edge);width:44px;height:44px;color:var(--cream);touch-action:manipulation;background:#18232bdf;border-radius:9px;padding:0;font:650 1.25rem/1 system-ui,sans-serif}.touch-tools button:active{background:#425361}.touch-mode .hud-footer{inset:auto var(--touch-right) var(--touch-bottom) var(--touch-left);justify-content:center}.touch-mode .location-panel{text-align:center;white-space:normal;background:#141c23d1;max-width:37vw;margin:0;padding:.35rem .55rem}.touch-mode .vehicle-readout{min-width:0;padding:0 0 .22rem}.touch-mode .vehicle-condition meter{width:clamp(20px,6vw,48px)}.touch-mode #body-condition-value{min-width:auto}.touch-mode .speed{justify-content:center}.touch-mode .speed strong{font-size:1.35rem}.touch-mode #street-name{font-size:.73rem}.touch-mode .interaction-area{bottom:calc(var(--touch-bottom) + clamp(66px, 23vh, 92px))}.touch-mode .prompt{white-space:normal;text-align:center;max-width:min(43vw,21rem);padding:.35rem .55rem;font-size:.83rem}.touch-mode .touch-controls{pointer-events:none;display:block;position:absolute;inset:0}.touch-stick{--thumb-x:0px;--thumb-y:0px;left:var(--touch-left);bottom:var(--touch-bottom);width:var(--stick-size);height:var(--stick-size);pointer-events:auto;touch-action:none;-webkit-tap-highlight-color:transparent;background:radial-gradient(circle,#0000 42%,#e4dfd526 43%,#0000 44%),radial-gradient(circle,#141e26a8,#141e26df);border:1px solid #f8ede573;border-radius:50%;position:absolute;box-shadow:0 2px 11px #080d125e,inset 0 0 0 4px #0e182653}.touch-stick.held{border-color:#ffbb82}.touch-stick-thumb{width:36%;height:36%;transform:translate(calc(-50% + var(--thumb-x)), calc(-50% + var(--thumb-y)));pointer-events:none;background:radial-gradient(circle at 38% 31%,#78878d,#3c4c54 80%);border:1px solid #fdf1e997;border-radius:50%;position:absolute;top:50%;left:50%;box-shadow:0 2px 9px #0a131a9a}.touch-stick-label{text-align:center;color:#fff1e2;letter-spacing:.085em;text-transform:uppercase;pointer-events:none;font:750 .61rem/1 system-ui,sans-serif;position:absolute;inset:auto 0 10%}.touch-actions{right:var(--touch-right);bottom:var(--touch-bottom);justify-items:end;gap:6px;display:grid;position:absolute}.touch-command-row,.touch-pedals{justify-content:end;gap:6px;display:flex}.touch-button{min-width:var(--touch-size);min-height:var(--touch-size);color:var(--cream);pointer-events:auto;touch-action:none;-webkit-tap-highlight-color:transparent;background:#1d2a34e6;border:1px solid #f8ede568;border-radius:13px;padding:0 .44rem;font-size:.69rem;font-weight:750}.touch-pedals .touch-button{min-width:var(--pedal-width);border-radius:16px}.touch-button:disabled{opacity:.47}.touch-button.prompted{border-color:#ffc093;box-shadow:inset 0 0 0 1px #ffad70}.touch-pedals .touch-gas{background:#553c2eeb;border-color:#ffb176ae}.touch-button:not(:disabled):active,.touch-button.held,.touch-pedals .touch-gas.held{color:#241b15;background:#ffb176}.rotate-screen{z-index:2;color:var(--cream);text-align:center;background:#151c20;flex-direction:column;justify-content:center;align-items:center;gap:1.1rem;padding:1.75rem;display:flex;position:absolute;inset:0}.rotate-screen h2{max-width:15ch;margin:0;font-size:clamp(1.5rem,6vw,2.25rem)}.rotate-icon{border:2px solid var(--orange);width:4.3rem;height:2.7rem;color:var(--orange);border-radius:.5rem;place-items:center;font-size:1.75rem;line-height:1;display:grid}@media (width<=690px){.touch-mode .hud-footer{right:calc(var(--touch-right) + var(--pedal-width) * 3 + 20px);left:calc(var(--touch-left) + var(--stick-size) + 8px)}}@media (height<=345px){.touch-mode .hud-right:has(.map-frame.expanded) .touch-tools{display:none}}
