/* Direction: Sunset Syndicate — dusk navy HUD, hot amber sun, chrome edges, condensed display type */
/* Completed by the platform from the short form: both modes, every
   palette token, each text-on-ground pair at its floor. To restyle, write the
   short form again (the decisions in one :root) and it is completed again. */

:root {
  color-scheme: dark;
  --canvas: #0a0e1c;
  --surface: #121a30;
  --surface-2: #1b2443;
  --border: #2b3660;
  --border-strong: #545660;
  --ink: #f4eee2;
  --muted: #9ba6c6;
  --accent: #ff8a3d;
  --accent-hover: #ff9c5a;
  --accent-ink: #0a0e1c;
  --accent-text: #ffb168;
  --accent-strong: #ffb882;
  --accent-soft: #2a2036;
  --accent-border: #78462b;
  --success: #4ad98a;
  --success-ink: #ffffff;
  --success-soft: #183b34;
  --success-strong: #4ad98a;
  --warning: #ffc44d;
  --warning-ink: #ffffff;
  --warning-soft: #403627;
  --warning-strong: #ffc44d;
  --danger: #ff5566;
  --danger-ink: #ffffff;
  --danger-soft: #401e2c;
  --danger-strong: #ff5566;
  --chart-1: #ff8a3d;
  --chart-2: #c4c625;
  --chart-3: #0eae8a;
  --chart-4: #61ccfc;
  --chart-5: #947cef;
  --chart-6: #fd9ac9;

  --font-display: "Bebas Neue", Impact, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --display-weight: 400;
  --display-tracking: 0.02em;
  --radius-card: 12px;
  --radius-btn: 8px;
  --x-hud: rgba(10, 14, 28, 0.6);
  --x-hud-edge: rgba(255, 177, 104, 0.32);
  --x-glass: rgba(255, 255, 255, 0.07);
  --x-neon: #5ce1e6;
  --font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans: "Inter", system-ui, sans-serif;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="light"] {
  color-scheme: light;
  --canvas: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f3f4;
  --border: #dddddf;
  --border-strong: #b6b7bb;
  --ink: #0a0e1c;
  --muted: #6c6e77;
  --accent: #ff8a3d;
  --accent-hover: #d97534;
  --accent-ink: #0a0e1c;
  --accent-text: #a85b28;
  --accent-strong: #9b5425;
  --accent-soft: #ffefe4;
  --accent-border: #ffcaa8;
  --success: #4ad98a;
  --success-ink: #0a0e1c;
  --success-soft: #e9faf1;
  --success-strong: #29794d;
  --warning: #ffc44d;
  --warning-ink: #0a0e1c;
  --warning-soft: #fff8ea;
  --warning-strong: #846528;
  --danger: #ff5566;
  --danger-ink: #0a0e1c;
  --danger-soft: #ffebed;
  --danger-strong: #b73d49;
  --chart-1: #e3711b;
  --chart-2: #979911;
  --chart-3: #1b9274;
  --chart-4: #11a0d2;
  --chart-5: #7d63d4;
  --chart-6: #e167a5;
}

/* Metro City Street — HUD, overlays and touch pad. Tokens only. */

html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
#c { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }

.hud-panel {
  background: var(--x-hud);
  border: 1px solid var(--x-hud-edge);
  border-radius: var(--radius-card);
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.hud-label {
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--muted);
}
.hud-num { font-family: var(--font-display); line-height: 1; letter-spacing: 0.04em; }

.meter { height: 7px; border-radius: 99px; background: var(--x-glass); overflow: hidden; }
.meter > i { display: block; height: 100%; border-radius: 99px; transition: width 0.25s linear; }

#minimap-wrap {
  width: 168px; height: 168px; border-radius: 50%;
  border: 2px solid var(--x-hud-edge);
  background: var(--x-hud);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.28), 0 10px 30px rgba(0, 0, 0, 0.45);
  overflow: hidden; position: relative;
}
#minimap { width: 100%; height: 100%; display: block; }
#minimap-wrap::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, transparent 58%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
}

#banner { transition: opacity 0.4s ease, transform 0.4s ease; }
#banner.off { opacity: 0; transform: translateY(-10px); }

#crosshair {
  position: fixed; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px;
  pointer-events: none; opacity: 0.9;
}
#crosshair::before, #crosshair::after {
  content: ""; position: absolute; background: var(--accent-text);
}
#crosshair::before { left: 50%; top: 0; width: 2px; height: 100%; margin-left: -1px; }
#crosshair::after { top: 50%; left: 0; height: 2px; width: 100%; margin-top: -1px; }

.stars span { display: inline-block; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6)); }
.star-on { color: var(--warning); }
.star-off { color: var(--border); }

.overlay {
  position: fixed; inset: 0; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--accent) 18%, transparent), color-mix(in srgb, var(--canvas) 94%, transparent) 60%);
  backdrop-filter: blur(3px); z-index: 30;
}
.overlay.hidden, .hidden { display: none !important; }

.title-mark {
  font-family: var(--font-display); line-height: 0.86; letter-spacing: 0.01em;
  text-shadow: 0 0 40px color-mix(in srgb, var(--accent) 45%, transparent);
}
.scan { position: fixed; inset: 0; pointer-events: none; z-index: 20;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay; }
.vignette { position: fixed; inset: 0; pointer-events: none; z-index: 19;
  background: radial-gradient(110% 80% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.55) 100%); }

#loadbar > i { display: block; height: 100%; width: 0%; background: var(--accent); transition: width 0.2s ease; }

/* touch controls */
#touch { position: fixed; inset: 0; z-index: 25; pointer-events: none; }
#touch.on { display: block; }
#stick {
  position: absolute; left: 22px; bottom: 26px; width: 130px; height: 130px; border-radius: 50%;
  border: 2px solid var(--x-hud-edge); background: var(--x-hud); pointer-events: auto;
}
#knob {
  position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px;
  border-radius: 50%; background: var(--accent); opacity: 0.85;
}
.tbtn {
  pointer-events: auto; position: absolute; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-display); font-size: 15px;
  letter-spacing: 0.08em; color: var(--ink);
  background: var(--x-hud); border: 1px solid var(--x-hud-edge); user-select: none;
}
.tbtn:active { background: var(--accent); color: var(--canvas); }
#t-fire { right: 22px; bottom: 112px; width: 80px; height: 80px; }
#t-jump { right: 108px; bottom: 44px; }
#t-car { right: 26px; bottom: 30px; }
#t-run { right: 112px; bottom: 134px; }
#t-look { position: absolute; right: 0; top: 0; width: 55%; height: 62%; pointer-events: auto; }

@media (max-width: 760px) {
  #minimap-wrap { width: 118px; height: 118px; }
}
