:root{color-scheme:dark;--ink:#eaf1d8;--accent:#d4f574;--muted:#abbcb1;--panel:#121c24f2;--line:#ffffff26;font:16px/1.4 "Bahnschrift","Segoe UI",system-ui,sans-serif}
*{box-sizing:border-box}body{margin:0;background:#152c39;color:var(--ink);overflow:hidden}button{font:inherit;font-weight:700;color:inherit;background:#22313b;border:1px solid var(--line);border-radius:6px;padding:.45rem .8rem;cursor:pointer}button:hover{border-color:var(--accent)}button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}button:active{background:#374b47}button:disabled{opacity:.5}
#game{position:relative;width:100%;height:100dvh;isolation:isolate;overflow:hidden;touch-action:none}#world{position:absolute;inset:0;width:100%;height:100%;display:block}.top{position:absolute;inset:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px 25px;background:linear-gradient(#0c131ce8,transparent)}.brand,.top-actions{display:flex;align-items:center;gap:12px}.brand-icon{display:grid;place-items:center;background:var(--accent);color:#192727;width:44px;height:44px;border-radius:7px;font:900 37px/1 system-ui;transform:rotate(-5deg)}h1,h2,p{margin:0}h1{font-size:clamp(1.1rem,3vw,1.75rem);font-weight:900;line-height:1;letter-spacing:-.05em}#district,.clock{color:#d1dfcd;font-size:.85rem}.cash{color:var(--accent);font-weight:800;font-variant-numeric:tabular-nums}.objective,.mini,.speed,.notice,.prompt{background:var(--panel);border:1px solid var(--line);border-radius:9px;box-shadow:0 4px 18px #05101640}.objective{position:absolute;top:84px;left:20px;width:min(310px,calc(100% - 40px));padding:10px 14px;border-left:3px solid var(--accent);pointer-events:none}.objective h2{font-size:1.1rem;line-height:1.22;margin:3px 0}.objective p{font-size:.875rem;color:#c5d0c6}.objective progress{height:6px;margin-top:6px;width:100%}small{font-weight:800;letter-spacing:.12em;color:var(--accent);font-size:.73rem}.notice,.prompt{position:absolute;left:50%;translate:-50% 0;padding:8px 12px;text-align:center;max-width:calc(100% - 32px);pointer-events:none}.notice{top:24%;opacity:0;transition:opacity .18s}.notice.active{opacity:1}.prompt{bottom:12%;display:flex;gap:10px;align-items:center;white-space:nowrap}.prompt[hidden]{display:none}kbd{font:700 .75rem/1.2 monospace;background:#324050;border:1px solid #aabbcc48;border-radius:4px;padding:3px 5px}.mini{position:absolute;left:20px;bottom:20px;padding:5px;overflow:hidden;text-align:left}.mini canvas{width:144px;height:112px;display:block;border-radius:5px;background:#223b4a}.mini span{padding:3px 4px;color:#d0dcd0;font-size:.76rem}.speed{padding:9px 13px;width:125px}.speed strong{font-size:2rem;line-height:1;color:#fcfbdc;font-variant-numeric:tabular-nums}.speed div span{font-size:.7rem;color:var(--muted)}progress{accent-color:var(--accent)}.speed progress{height:6px;width:100%;display:block;margin-top:6px}.keys-hint{position:absolute;bottom:18px;left:50%;translate:-50% 0;color:#e4ede0;background:#121c24d9;padding:5px 9px;border-radius:5px;white-space:nowrap;font-size:.8rem}.keys-hint kbd:not(:first-child){margin-left:6px}.touch{position:absolute;inset:auto 20px 20px;display:flex;justify-content:flex-end;pointer-events:none}.touch-actions{display:none}
dialog{max-height:94dvh;overflow:auto;width:min(790px,calc(100% - 24px));border:1px solid #526258;border-radius:12px;background:#14212b;color:var(--ink);padding:15px;box-shadow:0 12px 80px #000b}dialog::backdrop{background:#090e16b5}.dialog-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}.dialog-top h2{font-size:1.5rem}.dialog-top button{font-size:1.25rem;padding:0 11px}#bigMap{width:100%;height:auto;max-height:64dvh;object-fit:contain;display:block;background:#102833;border-radius:6px;cursor:crosshair}.map-footer,.legend{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:8px;font-size:.84rem;color:#c3d0c6}.legend{justify-content:flex-start;flex-wrap:wrap;gap:6px 17px}.legend i{display:inline-block;width:.7em;height:.7em;border-radius:50%;margin-right:5px;background:#fff}.legend .mission-dot{background:#d4f574}.legend .target-dot{background:#ffba76}.legend .collect-dot{background:#ff8aab}.legend .garage-dot{background:#7be9e0}#helpDialog{max-width:530px}#helpDialog p{color:#c8d6cb;margin:10px 0}dl{display:grid;grid-template-columns:minmax(104px,auto) 1fr;gap:8px 12px;font-size:.92rem}dt{color:var(--accent);font-weight:700}dd{margin:0}.primary{background:var(--accent);color:#192727;margin-top:8px}
@media(pointer:coarse),(max-width:720px){.top{padding:10px 10px 23px}.brand,.top-actions{gap:6px}.brand-icon{width:32px;height:32px;font-size:27px}.clock,.keys-hint{display:none}.top-actions button{padding:.3rem .55rem}.objective{top:64px;left:10px;width:min(260px,calc(100% - 20px))}.speed{width:95px}.mini{bottom:130px;left:10px}.mini canvas{width:90px;height:70px}.prompt{bottom:38%;font-size:.85rem}.touch{inset:auto max(10px,var(--safe-right)) max(10px,var(--safe-bottom)) max(10px,var(--safe-left));justify-content:space-between}.touch button{pointer-events:auto;touch-action:none;user-select:none;background:#17252ce8;min-height:43px;padding:4px 9px;border-color:#d3ecc354}.touch button[aria-pressed="true"]{background:#54725a}.touch-actions{display:grid;grid-template-columns:auto auto;align-content:end;gap:4px}.touch-actions #touchAction{grid-column:1/-1;background:#d4f574;color:#152726}.notice{top:28%}}@media(max-height:490px){.mini{bottom:97px}.objective{padding:5px 9px}.prompt{bottom:19%}.notice{top:33%}}
.loadout{position:absolute;right:20px;top:84px;background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:8px 10px;text-align:right;min-width:130px;font-size:.82rem;font-weight:750;pointer-events:none}.loadout progress{display:block;width:100%;height:6px;margin-top:4px}.wanted{color:#ffad8d;font-size:.85rem;margin-top:4px;white-space:nowrap}.legend .gear-dot{background:#cbb0ff}.legend .patrol-dot{background:#fb8585}@media(pointer:coarse),(max-width:720px){.loadout{top:64px;right:10px;min-width:95px;padding:6px;font-size:.68rem}.objective{max-width:calc(100% - 125px)}.touch button{min-height:39px}}
.shop-items{display:grid;gap:8px}.shop-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px;border:1px solid var(--line);border-radius:7px}.shop-item strong{display:block}.shop-item span,#shop-message{color:#c1cec3;font-size:.86rem}.shop-item button{min-width:80px}#shopDialog{max-width:495px}#shop-message{min-height:1.3em;margin:8px 0 0}.condition{display:block;letter-spacing:0;color:#c1cec3;font-size:.72rem;margin-top:6px}.speed #vehicle-health{accent-color:#ffb176}#armor-readout{color:#98d7ff;font-size:.72rem;margin-top:5px}#armor{accent-color:#83beeb}.legend .shop-dot{background:#f5db80}
#escape-readout{font-size:.74rem;color:#f5deb7}.legend .hideout-dot{background:#9ed3ff}
.flight-hint{max-width:205px;text-align:right;background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:6px 9px;font-size:.8rem;pointer-events:none}#detailDialog{max-width:610px}.job-board-row p{color:#c1cec3;font-size:.86rem}.job-board-row small{letter-spacing:0}.job-board-row button{flex:none}.contact-brief{color:#e3e9dd;margin:0 0 12px}.detail-actions{display:flex;gap:8px;flex-wrap:wrap}@media(max-width:540px){.top-actions{gap:4px}.top-actions button{font-size:.75rem;padding:.25rem .35rem}.brand-icon{display:none}.top .brand h1{font-size:1rem}.flight-hint{max-width:135px}}
