/* SOLMARA HEAT — page and HUD styling. Dusk-neon palette: deep violet sky,
   sunset orange, teal and magenta neon. All layout is DOM over the WebGL canvas. */

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #160a24; }
body { font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif; color: #fdf6ec; }
.hidden { display: none !important; }

#app { position: fixed; inset: 0; }
#game-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ---------- HUD ---------- */
#hud { position: absolute; inset: 0; pointer-events: none; }
#hud-top-left { position: absolute; top: 16px; left: 16px; text-shadow: 0 2px 6px rgba(0,0,0,.8); }
#hud-health { width: 170px; height: 10px; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.35); border-radius: 4px; overflow: hidden; }
#hud-health-fill { height: 100%; width: 100%; background: linear-gradient(90deg, #ff5a5a, #ffb35e); transition: width .2s; }
#hud-armor { width: 170px; height: 7px; margin-top: 4px; background: rgba(0,0,0,.55); border: 1px solid rgba(155,231,255,.5); border-radius: 4px; overflow: hidden; }
#hud-armor-fill { height: 100%; width: 0; background: linear-gradient(90deg, #2fa8c9, #9be7ff); transition: width .2s; }
#hud-weapon { margin-top: 9px; font-size: 15px; font-weight: 700; letter-spacing: 1px; color: #fdf6ec; }
#hud-weapon-name { color: #ffb75e; text-transform: uppercase; margin-right: 8px; }
#hud-weapon-ammo { color: #dff7ff; }
#hud-weapon .reloading { color: #ff5a5a; }

#hud-top-right { position: absolute; top: 14px; right: 18px; text-align: right; text-shadow: 0 2px 6px rgba(0,0,0,.8); }
#hud-clock { font-size: 13px; font-weight: 700; letter-spacing: 2px; color: #9be7ff; }
#hud-money { font-size: 30px; font-weight: 800; letter-spacing: 1px; color: #ffd75e; line-height: 1.1; }
#hud-wanted { font-size: 24px; letter-spacing: 4px; color: #ffcf3f; min-height: 28px; }
#hud-wanted .star-off { color: rgba(255,255,255,.25); }
#hud-wanted.searching { animation: wanted-flash .55s steps(2, start) infinite; }
@keyframes wanted-flash { to { visibility: hidden; } }
#hud-wanted-label { font-size: 12px; font-weight: 800; letter-spacing: 3px; color: #ff5a5a; min-height: 15px; }
#hud-wanted-label.searching { color: #9be7ff; }

#hud-mission { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); text-align: center;
  background: rgba(12, 4, 26, .62); border: 1px solid rgba(255, 183, 94, .55); border-radius: 10px; padding: 8px 22px 9px; max-width: 560px; }
#hud-mission-name { font-size: 15px; font-weight: 800; letter-spacing: 2px; color: #ffb75e; text-transform: uppercase; }
#hud-mission-stage { font-size: 11px; font-weight: 700; letter-spacing: 2px; color: #9be7ff; margin-top: 1px; }
#hud-mission-stage .timer { color: #ff5a5a; }
#hud-mission-objective { font-size: 16px; margin-top: 2px; }
#hud-mission-distance { font-size: 13px; color: #9be7ff; margin-top: 1px; }

#hud-location { position: absolute; top: 132px; left: 50%; transform: translateX(-50%) translateY(-8px); text-align: center;
  opacity: 0; transition: opacity .5s ease, transform .5s ease; text-shadow: 0 3px 14px rgba(0,0,0,.9); }
#hud-location.on { opacity: 1; transform: translateX(-50%) translateY(0); }
#hud-location-name { font-size: 34px; font-weight: 900; letter-spacing: 6px; text-transform: uppercase; color: #fff; }
#hud-location-sub { font-size: 14px; letter-spacing: 2px; color: #ffd75e; margin-top: 2px; }

#hud-popups { position: absolute; top: 34%; left: 50%; transform: translateX(-50%); text-align: center; }
.hud-popup { font-size: 26px; font-weight: 900; letter-spacing: 2px; color: #ffd75e;
  text-shadow: 0 2px 10px rgba(0,0,0,.9); animation: popup-rise 1.6s ease-out forwards; }
.hud-popup small { display: block; font-size: 15px; font-weight: 700; color: #dff7ff; letter-spacing: 1px; }
@keyframes popup-rise { 0% { opacity: 0; transform: translateY(14px) scale(.9); } 12% { opacity: 1; transform: translateY(0) scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-26px); } }

#hud-toast { position: absolute; bottom: 128px; left: 50%; transform: translateX(-50%);
  background: rgba(12, 4, 26, .78); border: 1px solid rgba(155, 231, 255, .6); color: #dff7ff;
  font-size: 17px; padding: 9px 20px; border-radius: 9px; text-align: center; }
#hud-chatter { position: absolute; bottom: 178px; left: 50%; transform: translateX(-50%); max-width: 640px;
  background: rgba(6, 16, 26, .82); border-left: 4px solid #2fa8c9; color: #cfeeff;
  font-size: 15px; font-style: italic; padding: 7px 16px; border-radius: 4px; text-align: center; }
#hud-chatter b { color: #9be7ff; font-style: normal; letter-spacing: 1px; }
#hud-prompt { position: absolute; bottom: 84px; left: 50%; transform: translateX(-50%);
  background: rgba(12, 4, 26, .72); color: #ffd75e; font-size: 16px; font-weight: 700;
  padding: 7px 16px; border-radius: 8px; }
#hud-radio { position: absolute; right: 22px; bottom: 216px; text-align: right;
  background: rgba(12, 4, 26, .66); border: 1px solid rgba(255, 107, 213, .5); border-radius: 8px; padding: 6px 12px;
  text-shadow: 0 2px 6px rgba(0,0,0,.8); }
#hud-radio-name { font-size: 16px; font-weight: 800; letter-spacing: 1px; color: #ff9de2; }
#hud-radio-genre { font-size: 12px; letter-spacing: 2px; color: #dff7ff; text-transform: uppercase; }
#speedo { position: absolute; right: 14px; bottom: 30px; width: 168px; height: 168px; }
#hud-controls { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); font-size: 12px;
  color: rgba(255,255,255,.75); text-shadow: 0 1px 3px rgba(0,0,0,.9); white-space: nowrap; }

#minimap { position: absolute; left: 16px; bottom: 16px; width: 184px; height: 184px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.55); box-shadow: 0 4px 18px rgba(0,0,0,.6); background: #1c1030; }

/* ---------- Menu ---------- */
#menu { position: absolute; inset: 0; overflow: hidden; }
#menu-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#menu-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,4,30,.88) 0%, rgba(16,4,30,.45) 55%, rgba(16,4,30,.05) 100%); }
#menu-box { position: absolute; left: 64px; top: 50%; transform: translateY(-50%); max-width: 430px; }
#menu-title { font-size: 64px; font-weight: 900; letter-spacing: 2px; line-height: .95; color: #fff;
  text-shadow: 0 4px 24px rgba(0,0,0,.7); }
#menu-title span { color: #ff9d5c; text-shadow: 0 0 22px rgba(255, 94, 58, .8); }
#menu-tagline { margin: 14px 0 26px; font-size: 18px; color: #ffe9c9; text-shadow: 0 2px 8px rgba(0,0,0,.8); }
.menu-btn { display: block; width: 240px; margin: 10px 0; padding: 12px 18px; font-size: 18px; font-weight: 800;
  letter-spacing: 1px; color: #1c0b2e; background: linear-gradient(180deg, #ffd75e, #ff9d5c); border: none;
  border-radius: 9px; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,.5); }
.menu-btn:hover { filter: brightness(1.08); }
#menu-controls { margin-top: 26px; font-size: 13px; line-height: 1.55; color: rgba(255,255,255,.85); max-width: 400px; }
#menu-note { margin-top: 12px; font-size: 12px; color: rgba(255,255,255,.55); }

/* ---------- Pause & banners ---------- */
#pause { position: absolute; inset: 0; background: rgba(10, 2, 20, .66); display: flex; align-items: center; justify-content: center; }
#pause-box { text-align: center; }
#pause-box h2 { font-size: 40px; letter-spacing: 3px; margin-bottom: 18px; }
#pause-box .menu-btn { margin-left: auto; margin-right: auto; }

/* ---------- Garage ---------- */
#garage { position: absolute; inset: 0; background: rgba(10, 2, 20, .72); display: flex; align-items: center; justify-content: center; }
#garage-box { text-align: center; background: rgba(16, 6, 30, .9); border: 1px solid rgba(255, 183, 94, .5); border-radius: 14px; padding: 26px 34px; }
#garage-box h2 { font-size: 30px; letter-spacing: 2px; margin-bottom: 4px; color: #ffb75e; }
#garage-cash { font-size: 20px; font-weight: 800; color: #ffd75e; margin-bottom: 16px; }
.garage-row { display: flex; align-items: center; gap: 14px; margin: 10px 0; text-align: left; }
.garage-info { flex: 1; min-width: 300px; }
.garage-name { font-size: 17px; font-weight: 800; letter-spacing: 1px; }
.garage-pips { color: #ffd75e; letter-spacing: 3px; margin-left: 8px; font-size: 13px; }
.garage-blurb { font-size: 13px; color: rgba(255,255,255,.7); }
.garage-buy { padding: 9px 16px; font-size: 15px; font-weight: 800; color: #1c0b2e; background: linear-gradient(180deg, #ffd75e, #ff9d5c);
  border: none; border-radius: 8px; cursor: pointer; min-width: 118px; }
.garage-buy:disabled { filter: grayscale(.8); opacity: .55; cursor: default; }
#garage-box .menu-btn { margin: 18px auto 0; }

#banner { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 84px; font-weight: 900; letter-spacing: 10px; color: #ff5a5a;
  background: rgba(10, 2, 20, .45); text-shadow: 0 6px 30px rgba(0,0,0,.9); }

#autotest-result { position: absolute; left: 8px; top: 8px; z-index: 50; background: #000; color: #7dff8a;
  font: 12px/1.5 monospace; padding: 8px; white-space: pre-wrap; max-width: 90%; }
