/* SPDX-License-Identifier: MIT */
/* TIDELINE HEAT — HUD + screens. Sunset palette: deep violet UI on amber glass. */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #1a0f2e; font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif; }
#app { position: fixed; inset: 0; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hidden { display: none !important; }

.panel { background: rgba(16, 8, 34, 0.72); border: 2px solid rgba(255, 176, 92, 0.55); border-radius: 10px;
  color: #fff; padding: 10px 14px; backdrop-filter: blur(3px); box-shadow: 0 4px 18px rgba(0,0,0,.45); }

/* mission card — top-left */
#mission-card { position: absolute; top: 14px; left: 14px; width: 340px; }
#mission-job { font-size: 21px; font-weight: 800; letter-spacing: .5px; color: #ffb05c; text-shadow: 0 2px 6px #000; }
#mission-giver { font-size: 14px; color: #ffd9a0; margin-top: 2px; }
#mission-stagebar { height: 10px; background: rgba(255,255,255,.18); border-radius: 5px; margin: 8px 0 6px; overflow: hidden; }
#mission-stagefill { height: 100%; width: 20%; background: linear-gradient(90deg, #ffb05c, #ff5e62); border-radius: 5px; }
#mission-next { font-size: 16px; font-weight: 700; color: #fff; }
#mission-dist { font-size: 14px; color: #9fe8ff; margin-top: 2px; }

/* wanted — top-center */
#wanted { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); text-align: center; }
.wstar { font-size: 34px; color: rgba(255,255,255,.22); text-shadow: 0 0 8px rgba(0,0,0,.7); margin: 0 2px; }
.wstar.lit { color: #ffd21f; text-shadow: 0 0 14px #ff9d00, 0 0 4px #fff; }
#wanted-label { display: block; font-size: 13px; letter-spacing: 4px; color: #ffd21f; font-weight: 800; }

/* cash — top-right */
#cash-panel { position: absolute; top: 14px; right: 14px; text-align: right; min-width: 210px; }
#cash-label { font-size: 13px; letter-spacing: 3px; color: #ffd9a0; font-weight: 700; }
#cash { font-size: 42px; font-weight: 900; color: #7dff8a; text-shadow: 0 2px 8px #000; line-height: 1; }
#cash-sub { font-size: 13px; color: #cfe9ff; margin-top: 3px; }

/* police response — mid-left */
#police-panel { position: absolute; top: 208px; left: 14px; width: 300px; }
.panel-title { font-size: 15px; font-weight: 800; letter-spacing: 1px; color: #ff8f8f; margin-bottom: 6px; }
.police-unit { font-size: 15px; line-height: 1.45; padding: 3px 0; border-top: 1px solid rgba(255,255,255,.14); }
.police-unit b { color: #fff; }
.police-unit .st { float: right; font-weight: 800; }
.st-pursuing { color: #ff5e62; } .st-ramming { color: #ff9d00; } .st-roadblock { color: #ff5e62; }
.st-boxing { color: #c58bff; } .st-search { color: #9fe8ff; } .st-air { color: #9fe8ff; }
#police-none { font-size: 15px; color: #9fe8ff; }

/* minimap — bottom-left */
#minimap-wrap { position: absolute; left: 14px; bottom: 14px; }
#minimap { border-radius: 50%; border: 3px solid rgba(255,176,92,.8); box-shadow: 0 4px 18px rgba(0,0,0,.6); background: #241640; display: block; }
#minimap-label { text-align: center; font-size: 12px; letter-spacing: 2px; color: #ffd9a0; font-weight: 700; margin-top: 4px; text-shadow: 0 1px 4px #000; }

/* speedometer — bottom-right */
#speed-panel { position: absolute; right: 14px; bottom: 14px; text-align: right; min-width: 220px; }
#speed { font-size: 64px; font-weight: 900; line-height: .9; color: #fff; text-shadow: 0 2px 10px #000; }
#speed-unit { font-size: 14px; letter-spacing: 4px; color: #ffb05c; font-weight: 800; }
#vehicle-name { font-size: 17px; font-weight: 800; color: #9fe8ff; margin-top: 4px; }
#condition-bar { height: 9px; background: rgba(255,255,255,.18); border-radius: 5px; margin-top: 6px; overflow: hidden; }
#condition-fill { height: 100%; width: 100%; background: linear-gradient(90deg, #7dff8a, #ffd21f); }
#condition-label { font-size: 12px; color: #cfe9ff; margin-top: 3px; }

/* gear — above speedometer */
#gear-panel { position: absolute; right: 14px; bottom: 196px; text-align: right; }
.wslot { display: inline-block; font-size: 15px; font-weight: 800; padding: 4px 10px; border-radius: 6px; margin-left: 6px; color: #cfe9ff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); }
.wslot.active { color: #1a0f2e; background: #ffb05c; border-color: #ffb05c; }
#radio-line { font-size: 15px; margin-top: 8px; color: #fff; }
#radio-track { color: #ffd9a0; }
#hint-line { font-size: 12px; color: rgba(255,255,255,.65); margin-top: 5px; }

/* dialogue — bottom-center */
#dialogue { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); width: 560px; display: flex; gap: 14px; align-items: center; }
#portrait { width: 64px; height: 64px; min-width: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 900; color: #fff; background: #ff7a59; border: 3px solid #fff; text-shadow: 0 2px 4px rgba(0,0,0,.5); }
#dialogue-name { font-size: 16px; font-weight: 800; color: #ffb05c; }
#dialogue-line { font-size: 18px; line-height: 1.3; color: #fff; margin-top: 2px; }

#toast { position: absolute; top: 110px; left: 50%; transform: translateX(-50%); background: rgba(16,8,34,.85); border: 2px solid #7dff8a;
  color: #7dff8a; font-size: 22px; font-weight: 800; padding: 10px 22px; border-radius: 10px; text-shadow: 0 2px 4px #000; }
#crosshair { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); font-size: 34px; color: #fff; text-shadow: 0 0 6px #000; }
#fx-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.dmg { position: absolute; font-size: 22px; font-weight: 900; color: #ffd21f; text-shadow: 0 2px 4px #000; transform: translate(-50%,-50%); }

/* start screen */
#start-screen { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,10,46,.25) 0%, rgba(26,10,46,.55) 55%, rgba(10,4,24,.92) 100%);
  display: flex; align-items: center; justify-content: center; overflow-y: auto; }
#start-inner { text-align: center; color: #fff; max-width: 760px; padding: 28px 20px; }
#start-kicker { font-size: 14px; letter-spacing: 4px; font-weight: 800; color: #ffb05c; }
#start-inner h1 { font-size: 92px; line-height: .9; font-weight: 900; letter-spacing: 2px; margin: 10px 0;
  background: linear-gradient(180deg, #fff2c9, #ffb05c 55%, #ff5e62); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 6px 30px rgba(255,94,98,.35); }
#start-tag { font-size: 20px; font-weight: 700; color: #ffe9c2; }
#start-story { font-size: 16px; color: #e8dcff; margin: 12px auto; max-width: 620px; line-height: 1.5; }
#start-crew { display: flex; gap: 12px; justify-content: center; margin: 16px 0; flex-wrap: wrap; }
.crew-card { background: rgba(16,8,34,.75); border: 1px solid rgba(255,176,92,.5); border-radius: 10px; padding: 10px 14px; min-width: 190px; }
.crew-face { display: inline-block; width: 44px; height: 44px; border-radius: 50%; line-height: 44px; font-weight: 900; font-size: 17px; margin-right: 8px; vertical-align: middle; }
.crew-card b { font-size: 15px; display: block; margin-top: 6px; }
.crew-card i { font-size: 13px; color: #ffd9a0; }
#start-jobs { font-size: 14px; color: #9fe8ff; font-weight: 700; margin: 10px 0; line-height: 1.5; }
#start-controls { font-size: 14px; color: rgba(255,255,255,.75); margin-bottom: 18px; }
button { font-family: inherit; font-size: 20px; font-weight: 800; letter-spacing: 1px; padding: 14px 34px; border-radius: 10px;
  border: none; cursor: pointer; background: linear-gradient(90deg, #ffb05c, #ff5e62); color: #1a0f2e; margin: 4px; }
button.ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.4); font-size: 16px; padding: 12px 22px; }
button:hover { filter: brightness(1.12); }
#start-foot { margin-top: 14px; font-size: 12px; color: rgba(255,255,255,.55); }

#pause-screen, #jobs-overlay { position: absolute; inset: 0; background: rgba(10,4,24,.45); display: flex; align-items: center; justify-content: center; z-index: 5; }
#pause-screen { background: rgba(10,4,24,.78); }
.pause-box, .jobs-box { background: rgba(26,10,46,.95); border: 2px solid #ffb05c; border-radius: 14px; padding: 28px 34px; color: #fff; max-width: 640px; text-align: center; }
.pause-box h2, .jobs-box h2 { font-size: 34px; color: #ffb05c; margin-bottom: 10px; }
#pause-stats { font-size: 17px; line-height: 1.6; margin-bottom: 14px; }
.job-row { text-align: left; font-size: 16px; padding: 7px 4px; border-bottom: 1px solid rgba(255,255,255,.14); }
.job-row.done { color: #7dff8a; } .job-row.now { color: #ffb05c; font-weight: 800; } .job-row.locked { color: rgba(255,255,255,.5); }

@media (max-width: 900px) {
  #mission-card { width: 250px; } #mission-job { font-size: 16px; } #mission-next { font-size: 13px; }
  #cash { font-size: 30px; } #speed { font-size: 44px; } #dialogue { width: 92%; } #dialogue-line { font-size: 15px; }
  #police-panel { display: none; } #start-inner h1 { font-size: 56px; } .wstar { font-size: 24px; }
}
