:root{color-scheme:dark;--ink:#182629;--panel:#19272a;--panel-2:#253538;--muted:#b8c8c2;--base:#fff2d3;--mint:#8ce4bf;--gold:#ffd065;--line:#ffffff20;font-family:"Segoe UI",system-ui,sans-serif}
*{box-sizing:border-box}
html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#19272a}
button{font:inherit;color:inherit;cursor:pointer}
button:focus-visible{outline:2px solid var(--mint);outline-offset:3px}
[hidden]{display:none!important}
.game{position:relative;width:100%;height:100%;isolation:isolate;color:var(--base);--target:var(--mint)}
.game[data-phase="ride"],.game[data-phase="exiting"]{--target:var(--gold)}
#street,.vignette{position:absolute;inset:0;width:100%;height:100%;display:block}
.vignette{pointer-events:none;background:linear-gradient(180deg,#1722272f,transparent 22%,transparent 66%,#19282a63)}
.topbar,.job,.gps,.drive-panel,.toast,.street-alert,.receipt{border:1px solid #fff3db27;background:#19272af5;box-shadow:0 12px 32px #151c2540}
.topbar{position:absolute;z-index:3;top:18px;left:20px;right:20px;display:flex;align-items:center;gap:21px;min-height:65px;padding:9px 11px 9px 12px;border-radius:16px}
.brand{display:flex;align-items:center;gap:10px;margin-right:auto;min-width:max-content}
.brand-icon,.dialog-icon{width:42px;height:42px;display:grid;place-items:center;background:var(--gold);border-radius:9px;flex:none}
.brand-icon img,.dialog-icon img{width:37px;height:37px}
.brand h1,.brand p{margin:0}
.brand h1{font-size:22px;font-weight:900;letter-spacing:-.045em;line-height:1.04}
.brand p{margin-top:4px;font-size:10px;font-weight:750;letter-spacing:.135em;text-transform:uppercase;color:#c3d4ca}
.shift,.money{min-height:39px;padding:3px 18px 2px 0;border-right:1px solid var(--line);white-space:nowrap}
.shift>div:first-child{display:flex;gap:14px;align-items:baseline}
.shift span,.money span{font-size:10px;color:var(--muted);font-weight:800;text-transform:uppercase;letter-spacing:.12em}
.shift strong{font-size:12px;font-variant-numeric:tabular-nums}
.meter{display:flex;gap:4px;margin-top:8px}
.meter i{flex:1;height:4px;border-radius:2px;background:#455453}
.meter i.done{background:var(--gold)}
.money{display:grid;justify-items:end;gap:2px}
.money strong{color:var(--gold);font-size:18px;line-height:1}
.top-actions{display:flex;align-items:center;gap:6px}
.top-actions button{background:#273639;border:1px solid #ffffff20;border-radius:8px;padding:8px 10px;display:flex;align-items:center;justify-content:center;gap:6px;font-size:12px;white-space:nowrap;font-weight:700;min-height:33px}
.top-actions button:hover{background:#3b4b49}
.top-actions .pause-button{background:var(--gold);color:#292f2b;border-color:#ffdd85}
.top-actions .pause-button:hover,.primary:hover{background:#ffe098}
.pause-button i{display:block;width:8px;height:11px;border-inline:2px solid currentColor}
kbd{font:750 10px/1 "Segoe UI",sans-serif;padding:3px 4px;border:1px solid #ffffff30;border-radius:4px;color:#ffecc6;background:#26383b}
.job{position:absolute;z-index:2;top:98px;left:20px;width:min(302px,41vw);border-radius:13px;padding:15px 16px 16px}
.job-head{display:flex;align-items:center;gap:7px;color:var(--target);font-weight:850;font-size:11px;letter-spacing:.13em;text-transform:uppercase}
.job-indicator{width:8px;height:8px;border-radius:50%;background:var(--target);box-shadow:0 0 9px color-mix(in srgb,var(--target),transparent 50%)}
.job-count{margin-left:auto;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.job h2{margin:8px 0 5px;font-size:clamp(22px,3vw,31px);line-height:1;letter-spacing:-.05em}
.job p{margin:7px 0 0;color:#d0dcd4;font-size:13px;line-height:1.35}
.fare-timer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);margin-top:12px;padding-top:8px;color:#d0dcd4;font-size:11px;font-weight:700}
.fare-timer strong{color:var(--gold);font-size:20px;font-variant-numeric:tabular-nums;line-height:1}
.toast,.street-alert{position:absolute;z-index:3;left:50%;transform:translateX(-50%);border-radius:8px;padding:9px 13px;font-size:13px;text-align:center;max-width:85vw;width:max-content}
.toast{bottom:114px;max-width:min(390px,41vw);color:#fff0d3;text-align:left;line-height:1.35}
.toast strong{display:block;margin-bottom:3px;color:var(--mint);font-size:10px;font-weight:850;letter-spacing:.12em;text-transform:uppercase}
.street-alert{top:94px;background:#302b28;border-color:#ffe0a76b;color:#ffdc9c;font-weight:700}
.drive-panel{position:absolute;z-index:2;bottom:56px;left:20px;border-radius:12px;display:flex;align-items:center;min-width:176px;gap:11px;padding:8px 11px}
.speed{display:flex;align-items:baseline;gap:4px}
.speed output{font-size:28px;line-height:1;font-weight:900;letter-spacing:-.06em;font-variant-numeric:tabular-nums}
.speed span,.quick-controls{color:#d5dfd3;font-size:9px;font-weight:800;letter-spacing:.08em}
.drive-details{display:grid;gap:3px;border-left:1px solid var(--line);padding-left:10px}
.drive-details strong{font-size:12px}
.drive-details span{font-size:10px;color:var(--muted)}
.quick-controls{position:absolute;bottom:21px;left:20px;z-index:2;display:flex;gap:13px;align-items:center;border-radius:7px;padding:5px 8px;background:#182629e8;white-space:nowrap;text-transform:uppercase}
.quick-controls span{display:flex;gap:3px;align-items:center}
.gps{position:absolute;right:20px;bottom:21px;width:242px;border-radius:13px;padding:10px;z-index:2}
.gps-top{display:flex;justify-content:space-between;align-items:center;margin:0 1px 7px}
.gps-top span,.gps-top b{font-size:10px;font-weight:850;letter-spacing:.12em;text-transform:uppercase}
.gps-top span i{width:6px;height:6px;display:inline-block;margin-right:3px;background:var(--mint);border-radius:50%}
.gps-top b{color:var(--target);letter-spacing:.035em;font-variant-numeric:tabular-nums}
.gps-instruction{display:flex;align-items:center;gap:8px;min-height:41px;background:#2a3c3e;border-radius:6px;padding:4px 7px;margin-bottom:7px}
.gps-instruction>span{font-size:25px;width:29px;line-height:1;text-align:center;color:var(--target);font-weight:900}
.gps-instruction strong,.gps-instruction small{display:block;line-height:1.26}
.gps-instruction strong{font-size:12px}
.gps-instruction small{color:var(--muted);font-size:10px}
#map{display:block;width:100%;aspect-ratio:240/212;background:#233337;border-radius:6px}
.gps-key{display:flex;align-items:center;gap:12px;margin:8px 0 1px;font-size:9px;color:#c8d6cc;font-weight:700}
.gps-key span{display:flex;align-items:center;gap:5px}
.gps-key i{display:inline-block;width:6px;height:6px;background:#fff1cf;border-radius:50%}
.gps-key .key-stop{background:var(--target);border-radius:1px;transform:rotate(45deg)}
.gps-key .key-closure{background:#f89376;border-radius:1px}
.receipt{position:absolute;z-index:4;left:20px;bottom:112px;padding:9px 11px;border-radius:10px;width:min(216px,38vw);pointer-events:none;border-color:#d5a45971}
.receipt-top,.receipt-pay{display:flex;align-items:center;justify-content:space-between;gap:9px}
.receipt-top span{font-size:10px;text-transform:uppercase;letter-spacing:.08em;font-weight:850;color:#c6d4c6}
.receipt-top i{font:900 11px/1 ui-sans-serif,sans-serif;color:#1b342f;background:var(--mint);border-radius:50%;display:inline-grid;place-items:center;width:17px;height:17px;margin-right:4px}
.receipt strong{color:var(--gold);font-size:23px;line-height:1;letter-spacing:-.045em}
.receipt-pay{margin-top:5px;justify-content:flex-start}
.receipt p{font-size:12px;margin:2px 0}
.receipt small{font-size:11px;color:var(--muted)}
.game:not([data-receipt="fresh"]) .receipt :is(#receipt-breakdown,#receipt-reason,#receipt-destination){display:none}
.game[data-receipt="fresh"] .receipt{top:100px;bottom:auto;left:50%;width:min(342px,48vw);transform:translateX(-50%);border:2px solid #e7ba65;background:#172c2afc;box-shadow:0 8px 28px #0b1c20bc,0 0 0 3px #302c297a;padding:12px 15px;animation:receipt-in .26s ease-out both}
.game[data-receipt="fresh"] .receipt strong{font-size:clamp(32px,4.6vw,51px)}
.game[data-receipt="fresh"] .receipt-pay{display:grid;grid-template-columns:max-content 1fr;align-items:center;gap:13px;margin:8px 0 5px}
.game[data-receipt="fresh"] .receipt-top span:first-child{font-size:12px;color:var(--mint)}
.game[data-receipt="fresh"] .street-alert{left:auto;right:20px;top:132px;transform:none}
@keyframes receipt-in{from{transform:translate(-50%,-7px) scale(.985)}to{transform:translate(-50%,0) scale(1)}}
.job-contract{display:grid;gap:2px;border-left:2px solid var(--gold);background:#ffd06517;padding:6px 7px;margin-top:8px;border-radius:3px}
.job-contract strong{color:var(--gold);font-size:11px}
.job-contract small{color:var(--muted);font-size:10px;line-height:1.3}
.dash{display:none;position:absolute;pointer-events:none;z-index:1;bottom:0;left:0;right:0;height:19%;overflow:hidden}
.dash-hood{position:absolute;top:3px;left:25%;right:24%;height:49%;border-radius:50% 50% 0 0;background:linear-gradient(175deg,#ffdc75,#d7983f);border:1px solid #714a2c}
.dash-top{position:absolute;inset:35% -2% 0;border-radius:42% 43% 0 0;background:linear-gradient(180deg,#536768 5%,#2a3b3f 14%,#263638 32%,#141f24 100%);box-shadow:0 -4px 8px #3e3b42a0}
.wheel{position:absolute;width:235px;height:235px;bottom:-168px;left:28%;border-radius:50%;border:17px solid #253339;box-shadow:inset 0 2px #526364,0 -3px #5f7171}
.game[data-camera="driver"] .dash{display:block}
.game[data-camera="driver"] .gps{right:13%;bottom:18px;width:212px;box-shadow:0 0 0 5px #202d32,0 12px 20px #111}
.game[data-camera="driver"] .gps #map{max-height:142px}
.game[data-camera="driver"] .toast{bottom:26%;left:46%}
dialog{border:1px solid #fff0d54a;border-radius:18px;background:#18292bfd;color:var(--base);padding:23px;width:min(455px,calc(100% - 30px));max-height:calc(100% - 30px);box-shadow:0 28px 100px #142023b5}
dialog::backdrop{background:#152223aa;backdrop-filter:blur(3px)}
.dialog-top{display:flex;align-items:center;gap:10px;text-transform:uppercase;color:var(--gold);font-weight:850;font-size:11px;letter-spacing:.15em}
dialog h2{font-size:clamp(34px,6vw,47px);letter-spacing:-.065em;margin:8px 0 8px;line-height:1}
dialog p{color:#d8dfd2;font-size:13px;line-height:1.45}
dialog dl{display:grid;grid-template-columns:auto 1fr;gap:7px 15px;font-size:13px;margin:16px 0}
dialog dt{font-weight:800;color:var(--mint)}
dialog dd{margin:0;color:#e1e6d5}
.primary{display:block;margin-top:17px;width:100%;border:0;border-radius:9px;background:var(--gold);color:#263236;font-weight:850;padding:12px}
.summary-totals{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:16px 0}
.summary-totals div{display:grid;gap:4px;background:#293b3c;padding:8px 10px;border-radius:7px}
.summary-totals span{color:#d1dccf;font-size:10px;text-transform:uppercase;letter-spacing:.08em}
.summary-totals strong{font-size:23px;color:var(--gold)}
dialog table{width:100%;border-collapse:collapse;font-size:12px}
dialog td{padding:6px 3px;border-bottom:1px solid var(--line)}
dialog td:last-child{text-align:right;color:var(--mint);white-space:nowrap}
.dialog-actions{display:flex;gap:8px;margin-top:15px}
.dialog-actions .primary{margin:0}
.secondary{flex:none;border:1px solid #9cb7aa6b;border-radius:9px;background:#263c3d;padding:10px 13px;font-size:13px;font-weight:800}
.secondary:hover,.upgrade-buy:hover:enabled{background:#3c5552}
.wallet-line{display:flex;justify-content:space-between;gap:8px;margin:13px 1px;color:var(--muted);font-size:12px}
.wallet-line b{color:var(--base)}
dialog[data-screen="garage"]{width:min(510px,calc(100% - 24px))}
.garage-balance{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0 9px;padding:9px 12px;border-radius:8px;background:#33403a}
.garage-balance div{display:grid;gap:1px}
.garage-balance small,.garage-part header span{color:var(--muted);font-size:10px;font-weight:850;letter-spacing:.09em;text-transform:uppercase}
.garage-balance strong{color:var(--gold);font-size:24px;line-height:1}
.garage-balance>span{color:var(--mint);font-size:12px;font-weight:700}
.garage-parts{display:grid;gap:7px}
.garage-part{padding:9px 11px;border:1px solid var(--line);border-radius:9px;background:#223537}
.garage-part header{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.garage-part h3{font-size:15px;margin:0}
.garage-part p{margin:3px 0;color:#d0ddd3;font-size:12px;line-height:1.3}
.garage-current{color:var(--muted);font-size:11px}
.garage-offer{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-top:7px;padding-top:7px;border-top:1px solid var(--line)}
.garage-offer strong,.garage-offer small{display:block}
.garage-offer strong{font-size:12px}
.garage-offer small{margin-top:2px;color:var(--mint);font-size:11px}
.upgrade-buy{flex:none;border:1px solid #ffd0658a;border-radius:6px;background:#3a4239;color:var(--gold);padding:6px 9px;font-size:12px;font-weight:850}
.upgrade-buy:disabled{opacity:.48;cursor:default}
.garage-installed{margin-top:7px;color:var(--mint);font-size:11px}
.game[data-menu="true"]>:not(#street):not(.vignette):not(dialog){visibility:hidden}
.game[data-menu="true"] #street{filter:saturate(1.13)}
dialog[data-screen="title"]{width:min(505px,calc(100% - 28px));padding:27px;border-top:3px solid var(--gold)}
dialog[data-screen="title"] h2{font-size:clamp(48px,8vw,76px);line-height:.90;margin:18px 0 13px}
dialog[data-screen="title"] .title-tagline{font-size:15px;max-width:310px}
.title-slot{border-top:1px solid var(--line);padding-top:13px;margin:22px 0 0;color:var(--mint);font-weight:760}
.pause-menu{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0 4px}
.pause-menu .secondary{padding:7px 10px;font-size:11px;border-color:#91b2a649}
.pause-menu [data-menu="restart"]{color:#f4b7a3}
dialog[data-screen="restart"] .primary{background:#f0a684}
dialog[data-screen="restart"] .primary:hover{background:#ffc1a4}
.save-slots{display:grid;gap:8px;margin:15px 0 4px}
.save-card{display:flex;justify-content:space-between;align-items:center;gap:11px;text-align:left;border:1px solid #b1d0bf42;border-radius:11px;background:#283d3d;padding:12px 13px}
.save-card:hover{background:#3b5350}
.save-card span{display:grid;gap:4px}
.save-card strong{font-size:16px}
.save-card small{color:var(--muted);font-size:12px}
.save-card b{color:var(--gold);font-size:13px}
.station-caption{position:absolute;z-index:2;right:23px;top:95px;border:1px solid #a4cfb768;background:#233737f5;padding:7px 10px;border-radius:8px;color:#e6efcf;font-size:12px;font-weight:760}
.shift-quote{margin:0;padding:6px 0 7px 10px;border-left:2px solid #8ce4bf6b;color:var(--base);font-size:12px;line-height:1.35}
.shift-quote strong{display:block;color:var(--mint);padding-bottom:2px}
.shift-grade,.shift-next,.dispatch-status{display:flex;justify-content:space-between;gap:8px;align-items:center;border:1px solid #f4c16a43;background:#364439;padding:7px 9px;border-radius:7px;font-size:12px;color:#d7e0d0}
.shift-grade strong,.shift-next strong,.dispatch-status strong{color:var(--gold)}
.shift-grade[data-grade="1"] strong,[data-grade="1"]{color:#efaa84}
.shift-grade[data-grade="2"] strong,[data-grade="2"]{color:#c3d4e3}
.shift-grade[data-grade="3"] strong,[data-grade="3"]{color:#ffda81}
.shift-next{margin:8px 0;background:#233d3c;border-color:#92b4a56b}
.shift-next small{color:#c5d6cb;white-space:nowrap}
dialog[data-screen="dispatch"]{width:min(770px,calc(100% - 24px))}
.dispatch-status{margin:13px 0;background:#263d3b}
.dispatch-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.dispatch-district{border:1px solid #a3c1b04e;border-radius:10px;overflow:hidden;background:#223132}
.dispatch-district header{display:flex;align-items:baseline;justify-content:space-between;gap:4px;flex-wrap:wrap;padding:10px 9px 13px;background:linear-gradient(117deg,#4b6954,#334d50)}
.dispatch-district[data-district="waterfront"] header{background:linear-gradient(117deg,#426d81,#315762)}
.dispatch-district[data-district="crown"] header{background:linear-gradient(117deg,#665381,#4f4964)}
.dispatch-district h3{margin:0;font-size:15px}
.dispatch-district header span{color:#dfeacf;font-size:10px;text-transform:uppercase;font-weight:800;letter-spacing:.08em}
.dispatch-district ol{list-style:none;margin:0;padding:1px 8px}
.dispatch-district li{display:flex;justify-content:space-between;align-items:baseline;gap:5px;padding:8px 0;border-bottom:1px solid var(--line);font-size:11px}
.dispatch-district li b{font-size:10px;white-space:nowrap}
.dispatch-district [data-grade="0"]{color:#b1c4bf}
.dispatch-district button{margin:7px 8px 8px;padding:5px 7px;font-size:11px;color:var(--gold)}
.garage-paint{margin:10px 0 0;padding:8px 9px;border:1px solid var(--line);border-radius:9px}
.garage-paint h3{margin:0 0 6px;font-size:13px}
.garage-paint>div{display:flex;flex-wrap:wrap;gap:5px}
.paint-choice{display:flex;align-items:center;gap:5px;padding:4px 6px;border:1px solid #738b836e;border-radius:5px;background:#273a3b;font-size:10px}
.paint-choice[aria-pressed="true"]{border-color:var(--gold);color:var(--gold)}
.paint-choice:disabled{opacity:.39;cursor:default}
.paint-choice i{width:10px;height:10px;border-radius:50%;background:var(--paint)}
.dash-hood{background:linear-gradient(175deg,color-mix(in srgb,var(--cab-paint,#fbc34c) 82%,#fff6c3),color-mix(in srgb,var(--cab-paint,#fbc34c) 82%,#734725))}
.touch-drive{display:none}
#street{background:linear-gradient(180deg,#7daebf,#c9dce3 57%,#dce5df)}
.game[data-light="golden"] #street{background:linear-gradient(180deg,#776886,#dc9c91 34%,#f3ba8b 58%,#ffd9a0)}
.game[data-light="blue"] #street{background:linear-gradient(180deg,#292e55,#687294 48%,#ac809c 70%,#ab8aa0)}
.game[data-light="night"] #street{background:linear-gradient(180deg,#191e3c,#394566 49%,#746c95 75%,#8f7793)}
#radio{min-width:101px}
@media(max-width:750px){
  .topbar{left:10px;right:10px;top:10px;gap:9px;padding:7px;min-height:53px;border-radius:11px}
  #radio{min-width:0}
  .station-caption{right:10px;top:70px}
  .brand-icon,.brand-icon img{width:32px;height:32px}
  .brand h1{font-size:17px}.brand p{font-size:8px}
  .brand{gap:5px}.top-actions{gap:3px}.top-actions button{font-size:10px;padding:5px;min-height:28px}
  .shift,.money{padding-right:6px;min-height:33px}.shift>div:first-child{gap:4px}.shift span,.money span{font-size:8px}
  .shift strong{font-size:10px}.money strong{font-size:14px}
  .job{left:10px;top:72px;padding:10px;width:min(248px,46vw)}.job p{font-size:11px}
  .gps,.game[data-camera="driver"] .gps{width:min(183px,40vw);bottom:10px;right:10px;padding:6px}
  .gps-key{gap:7px}.drive-panel,.quick-controls,.receipt{left:10px}
  .receipt{bottom:82px}
  .game[data-receipt="fresh"] .receipt{top:72px}
  .game[data-receipt="fresh"] .street-alert{top:auto;bottom:84px;right:12px}
  .street-alert{top:auto;bottom:80px;left:43%;max-width:35vw}.toast{bottom:128px;left:46%;max-width:38vw}
  .drive-panel{bottom:39px;padding:5px 7px;min-width:0}.quick-controls{bottom:10px;gap:5px;font-size:8px}
}
@media(max-width:480px){
  .brand p,.top-actions kbd,.shift span,.money span{display:none}
  .topbar{gap:5px}.brand h1{font-size:14px}.brand-icon,.brand-icon img{width:25px;height:25px}
  .shift,.money{min-height:auto}.meter{margin-top:4px}.top-actions button{font-size:9px}
  .top-actions .pause-button{gap:3px}.gps-instruction{gap:3px}
  .gps-instruction strong{font-size:10px}.quick-controls span:nth-child(2){display:none}
  .top-actions #radio{max-width:55px;white-space:normal;line-height:1.1;padding:4px}
  .top-actions #camera span{font-size:0}
  .top-actions #camera span::after{content:'View';font-size:9px}
  .game[data-receipt="fresh"] .receipt{top:158px;width:min(295px,87vw)}
  .dispatch-grid{grid-template-columns:1fr}
}
@media(max-height:540px){
  #map{max-height:117px}.game[data-camera="driver"] .gps #map{max-height:104px}
  .toast{bottom:24px}.street-alert{top:auto;bottom:67px}.job h2{font-size:21px}
  .receipt{bottom:96px}.gps{bottom:12px}
}
@media(prefers-reduced-motion:reduce){.game[data-receipt="fresh"] .receipt{animation:none}}
@media(pointer:coarse){
  .quick-controls{display:none}
  .touch-drive{display:flex;justify-content:space-between;position:absolute;z-index:4;left:12px;right:12px;bottom:max(12px,env(safe-area-inset-bottom));pointer-events:none}
  .touch-drive>div{display:flex;gap:7px}
  .touch-drive button{pointer-events:auto;touch-action:none;user-select:none;min-width:51px;height:49px;padding:5px 8px;border:1px solid #e8d29d76;border-radius:11px;background:#203433eb;color:#f9e9c7;font-size:15px;font-weight:850}
  .touch-drive button:active,.touch-drive button[data-drive="up"]{background:var(--gold);color:#2f322a}
  .drive-panel,.gps,.game[data-camera="driver"] .gps{bottom:75px}
  .receipt{bottom:130px}
}
