/* Ditbury Loaded HUD and menus. Sized for 1280x720 and still legible when shrunk to 768x480:
   key numbers at 30px and up, dark outlines on light text, panels on dark glass. */
:root {
  --ink: #fffaf0;
  --glass: rgba(10, 14, 24, 0.62);
  --cash: #7dffb2;
  --star: #ffd23f;
  --heat: #ff4d5e;
  --sun: #ff9f43;
  --sea: #3ec6e0;
  --outline: 0 2px 0 #000, 0 0 3px #000, 2px 0 0 #000, -2px 0 0 #000, 0 -2px 0 #000;
  --title: Impact, 'Arial Black', 'Trebuchet MS', sans-serif;
  --text: 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif;
}
html, body { margin: 0; height: 100%; overflow: hidden; background: #0c1016; color: var(--ink); font-family: var(--text); }
#world-view, #world-view canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#hud-root { position: fixed; inset: 0; pointer-events: none; }
.shot-mode * { transition: none !important; }

.hud-status { position: absolute; top: 18px; right: 26px; text-align: right; }
.hud-stars { font-size: 34px; line-height: 1; letter-spacing: 2px; }
.hud-stars .star { color: rgba(255, 255, 255, 0.28); text-shadow: 0 2px 0 #000, 0 0 4px #000; }
.hud-stars .star.on { color: var(--star); text-shadow: var(--outline), 0 0 14px rgba(255, 190, 40, 0.8); }
.hud-stars.flashing .star.on { animation: starflash 0.5s steps(2) infinite; }
@keyframes starflash { 50% { color: #6a7cff; } }
.hud-response { font: bold 16px var(--text); color: #ffe7a3; text-shadow: var(--outline); min-height: 19px; margin-top: 2px; white-space: nowrap; }
/* the heat line: IN SIGHT (red) or SEARCHING (blue), and who has him */
.hud-heat { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; background: rgba(20, 40, 90, 0.78); border-radius: 4px; padding: 3px 10px 3px 4px; white-space: nowrap; }
.hud-heat b { font: 15px var(--title); letter-spacing: 1px; background: #4d8bff; color: #fff; padding: 1px 7px; border-radius: 3px; }
.hud-heat span { font: bold 14px var(--text); color: #dfe8ff; }
.hud-heat.hot { background: rgba(110, 14, 24, 0.82); }
.hud-heat.hot b { background: #ff3346; animation: heatpulse 0.8s steps(2) infinite; }
@keyframes heatpulse { 50% { background: #a3101e; } }
.shot-mode .hud-heat.hot b { animation: none; }
.hud-cashline { display: flex; justify-content: flex-end; align-items: baseline; gap: 14px; margin-top: 2px; }
.hud-money { font: 38px var(--title); color: var(--cash); text-shadow: var(--outline); letter-spacing: 1px; line-height: 1.05; }
.hud-clock { font: bold 19px var(--text); color: var(--ink); text-shadow: var(--outline); }
/* the weapon slot bar under the cash: number, name, rounds; the one in hand lit, the rest LOCKED */
.hud-slots { display: flex; justify-content: flex-end; gap: 5px; margin-top: 6px; }
.slot { position: relative; width: 76px; background: var(--glass); border: 2px solid rgba(255, 255, 255, 0.16); border-radius: 4px; padding: 1px 3px 2px 3px; text-align: center; white-space: nowrap; }
.slot i { position: absolute; left: 3px; top: 1px; font: 12px var(--title); font-style: normal; color: #ffd27a; }
.slot b { display: block; font: bold 11px var(--text); color: #e8eef5; margin-top: 1px; padding-left: 8px; overflow: hidden; text-overflow: ellipsis; }
.slot span { display: block; font: 15px var(--title); letter-spacing: 1px; color: #fff; }
.slot.on { border-color: var(--sun); background: rgba(255, 159, 67, 0.32); box-shadow: 0 0 10px rgba(255, 159, 67, 0.55); }
.slot.on span { color: #ffe08a; }
.slot.locked { opacity: 0.45; }
.slot.locked span { font-size: 13px; color: #aab6c2; }
/* the response unit list under the REP bar: callsign, distance, a coloured tag for what it does */
.hud-units { width: 330px; white-space: nowrap; background: var(--glass); border-left: 6px solid var(--heat); border-radius: 4px; padding: 4px 10px 5px 12px; text-align: left; box-sizing: border-box; }
.units-title { font: 16px var(--title); letter-spacing: 1px; color: #ff9aa5; text-shadow: 0 2px 0 #000; }
.unit { display: grid; grid-template-columns: 1fr 50px 126px; align-items: center; font: bold 14px var(--text); color: #dfe8f0; line-height: 1.38; }
.unit b { font-weight: bold; color: #9fc6ff; }
.unit i { font-style: normal; text-align: right; padding-right: 8px; color: #c8d2dc; }
.tag { justify-self: end; font: 13px var(--title); letter-spacing: 0.5px; padding: 0 6px; border-radius: 3px; line-height: 17px; color: #10141c; background: #8e99a6; }
.tag.red { background: #ff3b4e; color: #fff; }
.tag.yellow { background: #ffcc33; }
.tag.blue { background: #4d8bff; color: #fff; }
.units-foot { font: bold 12px var(--text); color: #aab6c2; margin-top: 1px; letter-spacing: 0.5px; }
/* STREET REP under the clock: level, name and the bar to the next level; then the activity tally */
.hud-rep { margin: 5px 0 0 auto; width: 260px; }
.rep-head { display: flex; justify-content: flex-end; align-items: baseline; gap: 8px; white-space: nowrap; }
.rep-head b { font: 20px var(--title); letter-spacing: 1px; color: #d9a8ff; text-shadow: var(--outline); }
.rep-head span { font: bold 14px var(--text); color: #f0e6ff; text-shadow: var(--outline); }
.rep-bar { height: 8px; margin-top: 2px; background: rgba(0, 0, 0, 0.6); border: 2px solid rgba(0, 0, 0, 0.85); border-radius: 3px; overflow: hidden; }
.rep-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #7b5cff, #ff5fd2); }
.hud-tally { font: bold 13px var(--text); color: #e8eef5; text-shadow: var(--outline); margin-top: 4px; white-space: nowrap; letter-spacing: 0.3px; }
/* a side activity under way: the Human Taxi meter, or a race's position and standings */
.hud-activity { margin: 10px 0 0 auto; width: 372px; background: var(--glass); border-right: 5px solid #7dffb2; border-radius: 4px; padding: 6px 12px 8px; text-align: left; }
.hud-activity.warn { border-right-color: var(--heat); }
.act-title { font: 22px var(--title); letter-spacing: 1px; color: #7dffb2; text-shadow: 0 2px 0 #000; white-space: nowrap; }
.act-lines div { font: bold 18px var(--text); color: #eef4fa; line-height: 1.35; }
.act-lines div:last-child { font-size: 16px; color: #c8d2dc; }
.hud-activity.warn .act-lines div:first-child { color: #ff9aa4; }
.race-count { position: absolute; left: 50%; top: 34%; transform: translate(-50%, -50%); font: 200px var(--title); color: #d9a8ff;
  text-shadow: 0 8px 0 #000, 0 0 40px rgba(180, 92, 255, 0.8); opacity: 0; }
/* a shop counter's menu: Ricochet Rick's, Charles's workshop */
.shop-menu { position: absolute; right: 26px; top: 50%; transform: translateY(-40%); width: 500px; background: rgba(10, 14, 24, 0.88);
  border-top: 5px solid #ff7a3d; border-radius: 6px; padding: 14px 18px 12px; display: none; }
.shop-menu.show { display: block; }
.shop-title { font: 38px var(--title); letter-spacing: 2px; color: #ffb27a; text-shadow: 0 3px 0 #000; }
.shop-tag { font: italic bold 17px var(--text); color: #cfd8e2; margin-bottom: 8px; }
.shop-row { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.shop-row b { font: 26px var(--title); text-align: center; background: #fffaf0; color: #10141c; border-radius: 5px; box-shadow: 0 3px 0 #8a8f99; }
.shop-name { font: 22px var(--title); letter-spacing: 1px; color: #fff; }
.shop-detail { font: bold 15px var(--text); color: #b8c4d0; }
.shop-row span { font: 26px var(--title); color: var(--cash); }
.shop-row.off { opacity: 0.45; }
.shop-foot { font: bold 16px var(--text); color: #ffd27a; margin-top: 8px; letter-spacing: 0.5px; }

/* the left column: the job box, the DPD's units, the driving combo, the feed, stacked */
.hud-left { position: absolute; top: 18px; left: 22px; width: 440px; max-height: 410px; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.hud-units-slot:empty { display: none; }
.hud-objective { max-width: 440px; background: var(--glass); border-left: 6px solid var(--sun); padding: 6px 14px 8px; border-radius: 4px; box-sizing: border-box; }
.obj-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.obj-title { font: 23px var(--title); letter-spacing: 1px; color: #ffd27a; text-shadow: 0 2px 0 #000; white-space: nowrap; }
.obj-title em { font-style: normal; color: #fff1cf; }
.obj-clock { font: 22px var(--title); letter-spacing: 1px; color: #ff9aa4; text-shadow: 0 2px 0 #000; white-space: nowrap; }
.obj-text { font: bold 17px var(--text); color: var(--ink); line-height: 1.2; margin-top: 1px; }
.obj-stage { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.obj-stage:empty, .obj-next:empty { display: none; }
.obj-stage b { font: 14px var(--title); letter-spacing: 1px; color: #ffd27a; white-space: nowrap; }
.obj-segs { display: flex; gap: 3px; }
.obj-segs i { width: 26px; height: 7px; border-radius: 2px; background: rgba(255, 255, 255, 0.18); }
.obj-segs i.on { background: var(--sun); }
.obj-segs i.now { box-shadow: 0 0 8px rgba(255, 190, 80, 0.9); }
.obj-next { font: bold 14px var(--text); color: #cfe3f5; margin-top: 3px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.obj-next b { font: 13px var(--title); letter-spacing: 1px; color: var(--sea); }
/* the driving combo under the units: its tricks on one line, then the multiplier and the total */
.hud-combo { display: none; background: linear-gradient(90deg, rgba(90, 20, 110, 0.85), rgba(10, 14, 24, 0.55)); border-left: 6px solid #ff5fd2; border-radius: 4px; padding: 3px 12px 5px; max-width: 330px; box-sizing: border-box; }
.hud-combo.show { display: block; }
.cb-lines { display: flex; flex-wrap: wrap; gap: 0 8px; }
.cb-lines div { font: 14px var(--title); letter-spacing: 0.5px; color: #fff; text-shadow: 0 2px 0 #000; line-height: 1.15; white-space: nowrap; }
.cb-lines div:last-child { color: #ffe08a; }
.cb-total { display: flex; gap: 10px; align-items: baseline; }
.cb-total b { font: 21px var(--title); letter-spacing: 1px; color: #ff7be0; text-shadow: 0 2px 0 #000; }
.cb-total span { font: 21px var(--title); color: var(--cash); text-shadow: 0 2px 0 #000; }
.cb-time { height: 5px; margin-top: 3px; background: rgba(0, 0, 0, 0.5); border-radius: 3px; overflow: hidden; }
.cb-time i { display: block; height: 100%; background: linear-gradient(90deg, #ff5fd2, #ffe08a); }
.hud-combo.banked { border-left-color: var(--cash); background: linear-gradient(90deg, rgba(10, 80, 50, 0.85), rgba(10, 14, 24, 0.55)); }
.hud-combo.lost { border-left-color: #777; opacity: 0.8; }
.hud-feed { width: 460px; display: flex; flex-direction: column; gap: 8px; }
.feed-card { background: var(--glass); border-radius: 4px; padding: 8px 14px; border-left: 5px solid var(--sea); }
.feed-card b { display: block; font: 22px var(--title); letter-spacing: 1px; }
.feed-card span { font: bold 19px var(--text); color: #dfe8f0; }
.feed-crime { border-left-color: var(--heat); }
.feed-crime b { color: #ff8a95; }
.feed-good b { color: var(--cash); }
.feed-phone { border-left-color: #b98cff; }
.feed-phone b { color: #d5bbff; }

.hud-radar { position: absolute; left: 22px; bottom: 16px; width: 218px; }
.hud-radar-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; margin-bottom: 5px; white-space: nowrap; }
.hud-district { font: 22px var(--title); letter-spacing: 1px; text-shadow: var(--outline); color: var(--ink); }
.hud-gps { font: 15px var(--title); letter-spacing: 1px; text-shadow: var(--outline); }
#hud-minimap { display: block; width: 218px; height: 218px; border-radius: 50%; box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.55), 0 6px 18px rgba(0, 0, 0, 0.5); }
.hud-bars { display: flex; gap: 8px; margin-top: 8px; }
.bar { height: 10px; flex: 1; background: rgba(0, 0, 0, 0.6); border: 2px solid rgba(0, 0, 0, 0.8); border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 100%; }
.bar-health i { background: linear-gradient(#5dff8a, #22b553); }
.bar-armor i { background: linear-gradient(#6fc3ff, #2b7fd6); }
.bar-damage i { background: linear-gradient(#ffd27a, #ff8a3d); }

/* the car panel: name and status, speed with the gear, condition and tyres, the condition bar */
.hud-vehicle { position: absolute; right: 26px; bottom: 16px; text-align: right; width: 300px; opacity: 0; transition: opacity 0.3s; }
.veh-head { display: flex; justify-content: flex-end; align-items: baseline; gap: 8px; white-space: nowrap; }
.veh-name { font: 19px var(--title); letter-spacing: 1px; color: #ffd27a; text-shadow: var(--outline); }
.veh-tag { font: bold 13px var(--text); color: #cfe3f5; text-shadow: var(--outline); }
.veh-tag.hot { color: #ff8a95; }
.veh-speed { line-height: 0.92; white-space: nowrap; }
.veh-speed b { font: 60px var(--title); text-shadow: var(--outline); }
.veh-speed span { font: bold 18px var(--text); margin-left: 5px; text-shadow: var(--outline); }
.veh-gear { display: inline-block; font: 25px var(--title); font-style: normal; margin-left: 9px; padding: 0 7px; border: 3px solid #fff; border-radius: 6px; vertical-align: 12px; text-shadow: 0 2px 0 #000; box-shadow: 0 2px 0 #000; }
.veh-row { display: flex; justify-content: flex-end; gap: 12px; font: 15px var(--title); letter-spacing: 1px; text-shadow: var(--outline); margin: 2px 0 3px; white-space: nowrap; }
.veh-tyres { color: #e8eef5; }
.veh-tyres.hot { color: #ff4d5e; }

/* weapon panel, crosshair, hit marker, hurt edge */
.wpn-panel { position: absolute; right: 26px; bottom: 22px; text-align: right; min-width: 300px; opacity: 0; transition: opacity 0.25s; }
.wpn-name { font: 34px var(--title); letter-spacing: 2px; color: #ffd27a; text-shadow: var(--outline); }
.wpn-ammo b { font: 64px var(--title); text-shadow: var(--outline); }
.wpn-ammo span { font: bold 30px var(--text); margin-left: 6px; text-shadow: var(--outline); color: #e8eef5; }
.wpn-mode { font: bold 22px var(--text); color: #cfe9ff; text-shadow: var(--outline); margin-top: 2px; }
.wpn-mode.warn { color: #ff9a6b; }
.crosshair { position: absolute; left: 50%; top: 50%; width: 0; height: 0; opacity: 0; }
.crosshair i { position: absolute; left: 0; top: 0; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.85); }
.crosshair .ch-t, .crosshair .ch-b { width: 3px; height: 12px; }
.crosshair .ch-l, .crosshair .ch-r { width: 12px; height: 3px; }
.crosshair.locked i { background: #ff4d5e; }
.ch-lock { position: absolute; left: 22px; top: 18px; white-space: nowrap; font: bold 18px var(--text); color: #ff8a95; text-shadow: var(--outline); }
.hitmarker { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; opacity: 0; }
.hm-x { font: bold 30px var(--text); color: #fff; text-shadow: var(--outline); }
.hm-text { position: absolute; left: 50%; top: -52px; transform: translateX(-50%); font: 30px var(--title); letter-spacing: 2px; color: #fff; text-shadow: var(--outline); white-space: nowrap; }
.hitmarker.head .hm-x, .hitmarker.head .hm-text { color: #ff4d5e; }
.hurt-edge { position: absolute; inset: 0; opacity: 0; box-shadow: inset 0 0 90px 6px rgba(255, 30, 50, 0.7); }

.hud-banner { position: absolute; left: 50%; top: 212px; transform: translateX(-50%); text-align: center; white-space: nowrap; opacity: 0; }
.shot-mode .hud-banner { display: none; } /* a staged scene: the radar already names the district */
/* the radio over the speedometer: station, genre, song, artist */
.hud-radio { position: absolute; right: 26px; bottom: 150px; width: 300px; text-align: right; background: var(--glass); border-right: 5px solid #ff5fd2;
  border-radius: 4px; padding: 3px 10px 4px; display: none; box-sizing: border-box; }
.radio-station { white-space: nowrap; }
.radio-station b { font: 18px var(--title); letter-spacing: 1px; text-shadow: 0 2px 0 #000; }
.radio-station span { font: bold 12px var(--text); color: #c8d2dc; margin-left: 6px; }
.radio-now { font: bold 15px var(--text); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radio-now b { font-weight: bold; }
.radio-now span { font-style: italic; color: #dfe8f0; }
.radio-hint { font: bold 10px var(--text); color: #8a96a3; letter-spacing: 0.5px; }
.banner-name { font: 58px var(--title); letter-spacing: 2px; color: #fff; text-shadow: var(--outline), 0 0 24px rgba(255, 140, 60, 0.7); }
.banner-tag { font: italic bold 22px var(--text); color: #ffe2b8; text-shadow: var(--outline); }
/* the dialogue box: portrait, name in the speaker's colour, role, ON THE PHONE, the line */
.hud-subtitle { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); width: 500px; display: flex; gap: 10px; align-items: stretch;
  background: rgba(8, 10, 18, 0.78); border-radius: 6px; padding: 5px 12px 6px 5px; opacity: 0; box-sizing: border-box; border-top: 3px solid rgba(255, 255, 255, 0.14); }
.dlg-face { flex: none; width: 64px; height: 64px; border-radius: 6px; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25); }
.dlg-body { flex: 1; min-width: 0; }
.dlg-head { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.dlg-who { font: 20px var(--title); letter-spacing: 1px; text-shadow: 0 2px 0 #000; }
.dlg-role { font: bold 11px var(--text); color: #9fb0c0; letter-spacing: 0.5px; overflow: hidden; text-overflow: ellipsis; }
.dlg-phone { font: 12px var(--title); font-style: normal; letter-spacing: 1px; background: #3ddc84; color: #0b1a10; padding: 0 5px; border-radius: 3px; }
.dlg-text { font: bold 16px var(--text); color: #fff; line-height: 1.2; margin-top: 1px; }
/* the WANTED banner, across the top for a few seconds when the heat goes up */
.hud-wanted { position: absolute; left: 50%; top: 96px; transform: translateX(-50%); text-align: center; opacity: 0; white-space: nowrap; }
.wb-title { font: 70px var(--title); letter-spacing: 6px; color: #fff; text-shadow: 0 5px 0 #000, 0 0 30px rgba(255, 40, 60, 0.9); line-height: 1; }
.wb-stars { color: var(--star); letter-spacing: 2px; }
.wb-stars s { text-decoration: none; color: rgba(255, 255, 255, 0.3); }
.wb-level { display: inline-block; font: 22px var(--title); letter-spacing: 2px; color: #fff; background: #d81f33; padding: 2px 14px; border-radius: 3px; margin-top: 6px; }
.wb-reason { font: italic bold 20px var(--text); color: #ffe7a3; text-shadow: var(--outline); margin-top: 4px; }
/* HUD SIZE: LARGE (Settings). The corner panels a quarter bigger, for a small window or a screen
   across the room, and only the essentials: the job's NEXT line, the activity tally, the response
   list's footer and fourth row, the radio hint, the weapon slots not in hand and the speaker's
   role are left out to make room. */
.hud-large .hud-status, .hud-large .hud-left, .hud-large .hud-vehicle, .hud-large .hud-radio, .hud-large .wpn-panel { zoom: 1.25; }
.hud-large .hud-radar { zoom: 1.12; }
.hud-large .obj-next, .hud-large .hud-tally, .hud-large .units-foot, .hud-large .radio-hint, .hud-large .slot:not(.on), .hud-large .dlg-role { display: none; }
.hud-large .hud-units .unit:nth-child(n+5), .hud-large .feed-card ~ .feed-card { display: none; }
.hud-large .hud-subtitle { width: 600px; bottom: 16px; }
.hud-large .dlg-face { width: 76px; height: 76px; }
.hud-large .dlg-who { font-size: 25px; }
.hud-large .dlg-text { font-size: 20px; }

/* the key prompt that floats over a car door or a robotaxi */
.interact { position: absolute; transform: translate(-50%, -100%); display: flex; align-items: center; gap: 10px; white-space: nowrap;
  background: rgba(10, 14, 24, 0.78); padding: 6px 14px 6px 6px; border-radius: 6px; opacity: 0; transition: opacity 0.15s; }
.interact-key { display: inline-block; min-width: 34px; height: 34px; line-height: 34px; text-align: center; border-radius: 5px;
  background: #fffaf0; color: #10141c; font: 24px var(--title); box-shadow: 0 3px 0 #8a8f99; }
.interact-text { font: bold 20px var(--text); color: #fffaf0; letter-spacing: 1px; }
.interact.crime .interact-text { color: #ff8a95; }

/* the phone, right-hand side under the cash */
.phone { position: absolute; right: 26px; top: 250px; width: 290px; background: #0d1117; border: 4px solid #2a2f38; border-radius: 26px;
  padding: 10px 12px 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); transform: translateX(340px); transition: transform 0.3s; }
.phone.show { transform: none; }
.shot-mode .phone { transition: none; }
.phone-top { display: flex; justify-content: space-between; font: bold 14px var(--text); color: #9fb0c0; padding: 0 6px 8px; }
.phone-body { background: linear-gradient(#18202c, #101620); border-radius: 14px; min-height: 120px; padding: 10px; }
.phone-title { font: 20px var(--title); letter-spacing: 2px; color: #cfe9ff; margin-bottom: 6px; }
.text-bubble { background: #233041; border-radius: 10px; padding: 7px 10px; margin-top: 7px; }
.text-bubble b { display: block; font: 17px var(--title); letter-spacing: 1px; }
.text-bubble span { font: bold 16px var(--text); color: #e8eef5; line-height: 1.25; }
.call-avatar { width: 74px; height: 74px; border-radius: 50%; margin: 6px auto 8px; font: 44px var(--title); color: #1a0b2e; text-align: center; line-height: 74px; }
.call-name { font: 30px var(--title); letter-spacing: 2px; text-align: center; }
.call-tag { font: bold 16px var(--text); color: #9fb0c0; text-align: center; }
.call-time { font: bold 18px var(--text); color: var(--cash); text-align: center; margin-top: 10px; }
.phone-hint { font: bold 12px var(--text); color: #6c7a88; text-align: center; margin-top: 6px; }
/* Charles's favours, under the texts while the phone is held up */
.favours-title { margin-top: 10px; color: #ffb02e; }
.favour { display: grid; grid-template-columns: 22px 1fr auto; gap: 0 6px; align-items: baseline; background: #1a2230; border-radius: 8px; padding: 5px 8px; margin-top: 5px; opacity: 0.6; }
.favour.ready { opacity: 1; border-left: 3px solid #3ddc84; }
.favour i { font: 15px var(--title); font-style: normal; text-align: center; background: #fffaf0; color: #10141c; border-radius: 4px; }
.favour b { font: 14px var(--title); letter-spacing: 0.5px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.favour em { font: 13px var(--title); font-style: normal; color: #3ddc84; }
.favour span { grid-column: 2 / span 2; font: bold 12px var(--text); color: #9fb0c0; }

/* job cards: start, passed, failed */
.mission-card { position: absolute; left: 47.5%; top: 150px; transform: translateX(-50%); text-align: center; opacity: 0; width: 820px; }
.mc-label { font: bold 26px var(--text); letter-spacing: 4px; color: #ffe7a3; text-shadow: var(--outline); }
.mc-title { font: 92px var(--title); letter-spacing: 6px; color: #ffd23f; text-shadow: 0 5px 0 #000, 0 0 24px rgba(0, 0, 0, 0.8); line-height: 1.05; }
.mc-lines div { font: bold 28px var(--text); color: #fff; text-shadow: var(--outline); margin-top: 4px; }
.mission-card.passed .mc-label { color: var(--cash); font-size: 34px; }
.mission-card.passed .mc-lines { display: flex; justify-content: center; align-items: baseline; gap: 26px; }
.mission-card.passed .mc-lines div:first-child { font: 64px var(--title); color: var(--cash); }
.mission-card.passed .mc-lines div:last-child { font: 34px var(--title); letter-spacing: 2px; color: #ffe7a3; }
/* the job's numbers under MISSION PASSED, and the next job */
.mc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; width: 640px; margin: 10px auto 0; }
.mc-stats:empty, .mc-next:empty { display: none; }
.mc-stats div { background: rgba(10, 14, 24, 0.78); border-top: 3px solid var(--cash); border-radius: 4px; padding: 4px 6px 6px; }
.mc-stats span { display: block; font: bold 14px var(--text); letter-spacing: 1px; color: #9fb0c0; }
.mc-stats b { display: block; font: 28px var(--title); letter-spacing: 1px; color: #fff; }
.mc-next { display: flex; align-items: baseline; gap: 12px; width: 640px; box-sizing: border-box; margin: 8px auto 0; background: rgba(10, 14, 24, 0.85); border-left: 6px solid #ffe14d; border-radius: 4px; padding: 6px 14px; text-align: left; white-space: nowrap; overflow: hidden; }
.mc-next em { font: 16px var(--title); font-style: normal; letter-spacing: 1px; color: #ffe14d; }
.mc-next b { font: 26px var(--title); letter-spacing: 1px; color: #fff; }
.mc-next span { font: bold 16px var(--text); color: #cfd8e2; overflow: hidden; text-overflow: ellipsis; }
.mission-card.failed .mc-label { color: #ff6b7a; font-size: 34px; }
.mission-card.failed .mc-title { color: #ff9aa4; }

.result-card { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.82)); opacity: 0; pointer-events: none; transition: opacity 0.4s; }
.result-card.show { opacity: 1; }
.result-title { font: 132px var(--title); letter-spacing: 6px; text-shadow: 0 6px 0 #000, 0 0 40px rgba(0, 0, 0, 0.9); }
.result-line { font: italic bold 30px var(--text); color: #fff3dc; text-shadow: var(--outline); margin-top: 6px; }
.result-details { list-style: none; padding: 0; margin: 22px 0 0; text-align: center; }
.result-details li { font: bold 26px var(--text); color: #e8eef5; text-shadow: var(--outline); margin: 6px 0; }

/* menus: title, pause, settings, map */
.title-screen, .pause-menu, .settings-panel, .city-map { position: fixed; display: none; pointer-events: auto; }
.title-screen.show, .pause-menu.show, .city-map.show { display: flex; }
.settings-panel.show { display: block; }
.title-screen { inset: 0; background: linear-gradient(90deg, rgba(12, 6, 30, 0.82) 0%, rgba(12, 6, 30, 0.35) 48%, rgba(0, 0, 0, 0) 70%); }
.title-left { position: absolute; left: 64px; top: 36px; }
.title-logo { display: flex; flex-direction: column; line-height: 0.86; }
.logo-a, .logo-b { font: 150px var(--title); letter-spacing: 4px; background: linear-gradient(180deg, #ffe08a 0%, #ff9f43 45%, #ff4f8b 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 0 #1a0b2e) drop-shadow(0 0 22px rgba(255, 120, 80, 0.55)); }
.logo-b { font-size: 132px; letter-spacing: 18px; background: linear-gradient(180deg, #7dfcff 0%, #3ec6e0 50%, #7b5cff 100%); -webkit-background-clip: text; background-clip: text; }
.title-tag { font: italic bold 28px var(--text); color: #fff3dc; text-shadow: var(--outline); margin: 18px 0 30px 6px; }
.title-menu, .pause-panel { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.title-menu button, .pause-panel button, .settings-panel button { font: 34px var(--title); letter-spacing: 2px; color: #fff; background: rgba(10, 14, 24, 0.7);
  border: 0; border-left: 6px solid var(--sun); padding: 8px 26px 8px 18px; cursor: pointer; text-shadow: 0 2px 0 #000; }
.title-menu button:hover, .pause-panel button:hover, .settings-panel button:hover { background: var(--sun); color: #1a0b2e; text-shadow: none; }
.title-save { font: bold 20px var(--text); color: #cfe9ff; margin-top: 16px; text-shadow: var(--outline); }
.title-save:empty { display: none; }
/* the SAVE FILE card under the menu */
.save-card { box-sizing: border-box; background: rgba(10, 14, 24, 0.84); border-left: 6px solid #3ddc84; border-radius: 6px; padding: 10px 16px 12px; }
.save-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; white-space: nowrap; }
.save-head b { font: 24px var(--title); letter-spacing: 2px; color: #3ddc84; }
.save-head span { font: bold 15px var(--text); color: #cfe3f5; overflow: hidden; text-overflow: ellipsis; }
.save-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; margin-top: 6px; }
.save-grid span { display: block; font: bold 13px var(--text); letter-spacing: 1px; color: #9fb0c0; }
.save-grid b { font: 26px var(--title); letter-spacing: 1px; color: #fff; }
.save-bar { height: 8px; background: rgba(255, 255, 255, 0.12); border-radius: 4px; overflow: hidden; margin-top: 8px; }
.save-bar i { display: block; height: 100%; background: linear-gradient(90deg, #3ddc84, #ffe14d); }
.save-next { font: bold 16px var(--text); color: #e8eef5; margin-top: 8px; }
.save-next em { font: 16px var(--title); font-style: normal; letter-spacing: 1px; color: #ffe14d; margin-right: 4px; }
.title-right { position: absolute; right: 48px; top: 40px; width: 560px; display: flex; flex-direction: column; gap: 14px; }
.title-controls { background: rgba(10, 14, 24, 0.72); padding: 12px 22px 14px; border-radius: 6px; border-top: 4px solid var(--sea); }
.title-controls h3, .pause-record h3 { margin: 0 0 10px; font: 26px var(--title); letter-spacing: 2px; color: var(--sea); }
.title-controls dl { display: grid; grid-template-columns: auto auto; gap: 4px 18px; margin: 0; }
.title-controls dt { font: bold 17px var(--text); color: #ffd27a; }
.title-controls dd { margin: 0; font: bold 17px var(--text); }
.title-foot { position: absolute; left: 64px; bottom: 24px; font: italic 17px var(--text); color: rgba(255, 255, 255, 0.75); }
.pause-menu { inset: 0; background: rgba(6, 8, 16, 0.6); align-items: center; justify-content: center; gap: 60px; }
.pause-panel h2, .settings-panel h2 { font: 64px var(--title); letter-spacing: 4px; margin: 0 0 8px; color: #ffd27a; text-shadow: 0 4px 0 #000; }
.pause-record { background: rgba(10, 14, 24, 0.86); padding: 16px 24px 18px; border-radius: 6px; width: 720px; box-sizing: border-box; }
.pause-job { font: 20px var(--title); letter-spacing: 1px; color: #ffe14d; margin: -4px 0 10px; }
.pause-save { font: bold 16px var(--text); color: #cfe9ff; margin-top: 14px; max-width: 300px; }
/* the STATS page: a completion ring and checklist on the left, the career table on the right */
.pause-stats { display: grid; grid-template-columns: 150px 1fr 280px; grid-template-rows: auto 1fr; gap: 6px 18px; align-items: start; }
.stats-ring { grid-row: 1 / span 2; width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(#3ddc84 calc(var(--pct) * 1%), rgba(255, 255, 255, 0.12) 0); }
.stats-ring div { width: 116px; height: 116px; border-radius: 50%; background: #0d1320; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.stats-ring b { font: 34px var(--title); color: #fff; line-height: 1; }
.stats-ring span { font: 14px var(--title); letter-spacing: 2px; color: #3ddc84; }
.stats-list { grid-column: 2; grid-row: 1 / span 2; list-style: none; margin: 0; padding: 0; }
.stats-list li { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; margin-bottom: 5px; }
.stats-list b { font: 15px var(--title); letter-spacing: 1px; color: #e8eef5; white-space: nowrap; }
.stats-list span { font: 15px var(--title); color: var(--cash); }
.stats-list i { grid-column: 1 / span 2; height: 5px; background: rgba(255, 255, 255, 0.12); border-radius: 3px; overflow: hidden; }
.stats-list u { display: block; height: 100%; background: linear-gradient(90deg, #3ddc84, #ffe14d); }
.stats-list li.full b { color: #3ddc84; }
.pause-stats h3 { grid-column: 3; grid-row: 1; margin: 0; font: 20px var(--title); letter-spacing: 2px; color: var(--sea); }
.stats-career { grid-column: 3; grid-row: 2; width: 100%; font: bold 15px var(--text); border-collapse: collapse; }
.stats-career td { padding: 3px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.stats-career td:last-child { text-align: right; color: var(--cash); white-space: nowrap; }
.settings-panel { left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(10, 14, 24, 0.94); padding: 26px 34px; border-radius: 8px; min-width: 520px; z-index: 5; }
.settings-rows label { display: grid; grid-template-columns: 220px 1fr 60px; align-items: center; gap: 12px; font: bold 20px var(--text); margin: 10px 0; }
.settings-check { display: block; font: bold 20px var(--text); margin: 14px 0 18px; }
/* CAR CAMERA and HUD SIZE: a row of buttons, the one in use lit, and what it does under them */
.settings-choice { display: grid; grid-template-columns: 220px 1fr; align-items: center; gap: 4px 12px; margin: 12px 0; }
.settings-choice > span { font: bold 20px var(--text); }
.settings-choice > div { display: flex; gap: 6px; }
.settings-panel .settings-choice button { font: 18px var(--title); letter-spacing: 1px; padding: 5px 12px; border-left-width: 3px; border-left-color: rgba(255, 255, 255, 0.25); }
.settings-panel .settings-choice button.on { background: var(--sun); color: #1a0b2e; text-shadow: none; border-left-color: #fff; }
.settings-choice em { grid-column: 2; font: italic bold 14px var(--text); color: #aab6c2; }
.city-map { inset: 0; background: radial-gradient(ellipse at 30% 50%, #0c2236, #04080f); align-items: center; justify-content: center; gap: 28px; z-index: 4; }
.city-map canvas { width: 690px; height: 690px; border-radius: 8px; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15), 0 10px 40px rgba(0, 0, 0, 0.6); }
.map-side { width: 470px; }
.map-side h2 { font: 64px var(--title); letter-spacing: 6px; margin: 0; color: #ffd27a; line-height: 1; }
.map-complete { font: 22px var(--title); letter-spacing: 1px; color: #fff; margin-top: 4px; }
.map-complete b { font-size: 34px; color: var(--cash); }
.map-complete span { display: block; font: bold 15px var(--text); letter-spacing: 0.5px; color: #9fb0c0; }
.map-bar { height: 10px; background: rgba(255, 255, 255, 0.12); border-radius: 5px; overflow: hidden; margin: 6px 0 10px; }
.map-bar i { display: block; height: 100%; background: linear-gradient(90deg, #3ddc84, #ffe14d); }
.map-jobs { list-style: none; padding: 0; margin: 0; }
.map-jobs li { display: grid; grid-template-columns: 30px 150px 1fr auto; align-items: center; gap: 8px; padding: 3px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); white-space: nowrap; }
.map-jobs i { font: 18px var(--title); font-style: normal; text-align: center; border-radius: 50%; width: 26px; height: 26px; line-height: 26px; background: #5d6672; color: #e8eef5; }
.map-jobs b { font: 20px var(--title); letter-spacing: 1px; color: #c8d2dc; }
.map-jobs span { font: bold 14px var(--text); color: #8a96a3; overflow: hidden; text-overflow: ellipsis; }
.map-jobs em { font: 13px var(--title); font-style: normal; letter-spacing: 1px; padding: 0 6px; border-radius: 3px; }
.map-jobs .done i { background: #3ddc84; color: #111; }
.map-jobs .done b { color: #b8f5cf; }
.map-jobs .done em { background: #3ddc84; color: #111; }
.map-jobs .next i, .map-jobs .next em { background: #ffe14d; color: #111; }
.map-jobs .next b { color: #ffe14d; }
.map-jobs .now i, .map-jobs .now em { background: #ff4fd8; color: #111; }
.map-jobs .now b { color: #ff9ae8; }
.map-jobs .locked { opacity: 0.6; }
.map-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; margin: 10px 0 8px; font: bold 14px var(--text); color: #cfd8e2; }
.map-acts b { color: var(--cash); }
.map-legend { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 3px 14px; }
.map-legend li { font: bold 14px var(--text); display: flex; align-items: center; gap: 8px; color: #dfe8f0; white-space: nowrap; }
.map-legend li i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #111; display: inline-block; text-align: center; font: bold 12px var(--text); font-style: normal; line-height: 20px; color: #111; }
.map-hint { margin-top: 12px; font: bold 16px var(--text); color: rgba(255, 255, 255, 0.6); }
/* the credits after KILL SWITCH: a dark veil, lines rolling up the middle */
.credits { position: fixed; inset: 0; z-index: 6; overflow: hidden; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 4, 18, 0.9), rgba(20, 6, 30, 0.82) 60%, rgba(40, 12, 20, 0.86)); }
.credits-roll { position: absolute; left: 0; right: 0; top: 0; text-align: center; color: var(--ink); text-shadow: var(--outline); }
.credits-title { font: 110px var(--title); letter-spacing: 8px; color: var(--star); }
.credits-head { font: 34px var(--title); letter-spacing: 3px; color: var(--sun); margin-top: 10px; }
.credits-line { font: bold 26px var(--text); line-height: 1.55; }
.credits-gap { height: 44px; }
