/* Tavronitis Run — UI styles */

:root {
  --bg: #091017;
  --panel: rgba(10, 16, 23, 0.72);
  --panel-border: rgba(255, 255, 255, 0.13);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.58);
  --accent: #8fbdcf;
  --gold: #ffd979;
  --health: #9ef6ac;
  --danger: #ff5a4f;
  --radius: 14px;
  --font: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
}

#game {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
  touch-action: none;
}

[hidden] { display: none !important; }

.muted { color: var(--muted); }

.glass {
  background: linear-gradient(180deg, rgba(10, 16, 23, 0.78), rgba(7, 11, 16, 0.6));
  border: 1px solid var(--panel-border);
  box-shadow: 0 12px 45px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
}

/* ---------- HUD ---------- */

#hud {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

#hud-player {
  position: absolute;
  top: 18px;
  left: 18px;
  min-width: 260px;
  padding: 12px 14px;
}

#hud-name { font-size: 18px; font-weight: 850; }

#hud-area {
  margin-top: 2px;
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  opacity: 0.63;
}

.bar {
  height: 6px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
}

.bar-fill {
  width: 100%;
  height: 100%;
  background: var(--health);
  transition: width 0.2s ease, background 0.2s ease;
}

.hud-stats {
  display: flex;
  gap: 14px;
  margin-top: 7px;
  font-size: 12px;
  font-weight: 700;
}

.hp { color: var(--health); }
.cash { color: var(--gold); }

#hud-mission {
  position: absolute;
  top: 18px;
  right: 18px;
  max-width: 330px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.4;
  text-align: right;
}

#hud-mission b { display: block; margin-bottom: 3px; color: var(--gold); }
#hud-mission .who {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #10161c;
  background: var(--accent);
}
#hud-mission .who.Giannis { background: #f0b544; }
#hud-mission .who.Stefanos { background: #6fb6e8; }
#hud-mission .side { display: block; margin-top: 7px; font-size: 12px; color: var(--muted); }
#hud-mission.switch #hud-mission-text { color: #f0b544; font-weight: 700; }

#hud-waypoint {
  position: absolute;
  top: 64px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(8, 12, 16, 0.7);
  border: 1px solid var(--panel-border);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
#hud-waypoint-arrow { font-size: 16px; line-height: 1; transition: transform 0.08s linear; }

#hud-progress {
  position: absolute;
  bottom: 130px;
  left: 50%;
  width: 260px;
  padding: 8px 12px;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
#hud-progress .bar { margin-top: 6px; }
#hud-progress .bar-fill { background: var(--gold); }

#hud-banner {
  position: absolute;
  top: 26%;
  left: 50%;
  width: min(640px, 90vw);
  transform: translateX(-50%);
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
  animation: banner-in 0.4s ease-out;
  pointer-events: none;
}
#hud-banner-title { font-size: 44px; font-weight: 900; letter-spacing: 3px; color: var(--gold); }
#hud-banner.good #hud-banner-title { color: #9ef6ac; }
#hud-banner.bad #hud-banner-title { color: var(--danger); }
#hud-banner-subtitle { margin-top: 4px; font-size: 20px; font-weight: 800; letter-spacing: 2px; }
#hud-banner-text { margin-top: 8px; font-size: 15px; color: rgba(255, 255, 255, 0.9); }
@keyframes banner-in { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translateX(-50%); } }

.mission-list { margin: 14px 0 0; padding: 0; list-style: none; font-size: 13px; text-align: left; }
.mission-list li { padding: 3px 0; color: var(--muted); }
.mission-list li.done { color: #9ef6ac; }
.mission-list li.active { color: var(--gold); font-weight: 700; }

#hud-player .portrait {
  float: left;
  width: 58px;
  height: 58px;
  margin: -4px 10px 0 -4px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.25), rgba(0, 0, 0, 0.35));
  border: 2px solid rgba(255, 255, 255, 0.35);
  object-fit: cover;
}
.message .avatar {
  float: left;
  width: 34px;
  height: 34px;
  margin: 0 8px 0 -2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

#hud-messages {
  position: absolute;
  top: 140px;
  left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 300px;
}
.message {
  padding: 8px 12px;
  border-radius: 12px 12px 12px 3px;
  background: rgba(20, 60, 40, 0.88);
  border: 1px solid rgba(160, 255, 190, 0.25);
  font-size: 13px;
  line-height: 1.35;
  animation: toast-in 0.25s ease-out;
}
.message b { display: block; font-size: 11px; color: #9ef6ac; letter-spacing: 0.4px; }

#crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  transform: translate(-50%, -50%);
  opacity: 0.85;
}

#crosshair::before,
#crosshair::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
}

#crosshair::before { top: 9px; left: 3px; width: 14px; height: 1px; }
#crosshair::after { top: 3px; left: 9px; width: 1px; height: 14px; }
#crosshair.hit::before, #crosshair.hit::after { background: var(--danger); }

#hud-weapon {
  position: absolute;
  bottom: 26px;
  left: 50%;
  padding: 8px 12px;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
}

#hud-wanted {
  position: absolute;
  top: 18px;
  left: 50%;
  padding: 6px 12px;
  transform: translateX(-50%);
  color: #ffd979;
  font-size: 20px;
  letter-spacing: 4px;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.7);
  animation: wanted-flash 0.5s steps(2) infinite;
}

@keyframes wanted-flash { 50% { color: #7fb2ff; } }
#hud-wanted.searching { animation: none; color: rgba(255, 255, 255, 0.45); }

#hud-prompt {
  position: absolute;
  bottom: 80px;
  left: 50%;
  padding: 8px 12px;
  transform: translateX(-50%);
  font-size: 13px;
}

#hud-toasts {
  position: absolute;
  top: 104px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transform: translateX(-50%);
}

.toast {
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(8, 12, 16, 0.82);
  border: 1px solid var(--panel-border);
  font-size: 13px;
  font-weight: 700;
  animation: toast-in 0.25s ease-out;
}

.toast.good { color: var(--gold); }
.toast.bad { color: var(--danger); }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

#hud-controls {
  position: absolute;
  bottom: 18px;
  left: 18px;
  padding: 10px 12px;
  font-size: 11px;
  line-height: 1.55;
  opacity: 0.88;
}

#damage-flash {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(circle, transparent 45%, rgba(190, 20, 10, 0.55));
  transition: opacity 0.35s ease;
}

/* ---------- Weapon wheel ---------- */

#wheel-shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

#weapon-wheel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 350px;
  height: 350px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: radial-gradient(circle at center, rgba(10, 15, 20, 0.1) 0 20%, rgba(8, 11, 16, 0.88) 21% 100%);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.65);
}

.wheel-slot {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 106px;
  height: 64px;
  margin: -32px 0 0 -53px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(28, 35, 42, 0.84);
  font-size: 12px;
  font-weight: 850;
  text-align: center;
  line-height: 1.25;
  transition: transform 0.08s ease;
}

.wheel-slot.selected { background: rgba(235, 241, 244, 0.96); color: #111; transform: scale(1.07); }
.wheel-slot.locked { opacity: 0.3; }

.wheel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  margin: -46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #0c1117;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

/* ---------- Overlays ---------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 72% 20%, rgba(109, 177, 211, 0.24), transparent 32%),
    linear-gradient(180deg, rgba(38, 61, 73, 0.96) 0%, rgba(24, 38, 47, 0.96) 48%, rgba(11, 17, 23, 0.97) 100%);
}

.overlay.dim { background: rgba(20, 0, 0, 0.55); }

/* The start screen lets the orbiting village show through. */
#start-screen {
  background:
    radial-gradient(circle at 72% 20%, rgba(109, 177, 211, 0.2), transparent 32%),
    linear-gradient(90deg, rgba(8, 14, 20, 0.82) 0%, rgba(8, 14, 20, 0.45) 60%, rgba(8, 14, 20, 0.25) 100%);
}

.card {
  width: min(760px, calc(100% - 40px));
  padding: 30px 32px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(6, 10, 14, 0.82);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6);
}

.card.small { width: min(420px, calc(100% - 40px)); }
.card.center { text-align: center; }

h1 { margin: 0; font-size: 42px; letter-spacing: -1.5px; }
h2 { margin: 4px 0 0; font-size: 28px; letter-spacing: -0.8px; }
h2.danger { color: var(--danger); font-size: 48px; letter-spacing: 2px; }

.eyebrow {
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.lead { max-width: 660px; color: #c5d0d6; line-height: 1.55; }

.chips span {
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(118, 191, 215, 0.25);
  background: rgba(76, 147, 171, 0.14);
  color: #b9e6f7;
  font-size: 11px;
}

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.actions.column { flex-direction: column; }

button {
  padding: 12px 17px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  pointer-events: auto;
}

button.primary { border-color: transparent; background: #eaf1f3; color: #10161a; }
button:hover { filter: brightness(1.12); }
button:disabled { opacity: 0.45; cursor: progress; }

.note { margin-top: 14px; color: #87949d; font-size: 11px; line-height: 1.4; }

.note.attribution a { color: #9fc3d4; }

/* Nitro: speed streaks and a warm glow round the screen edges. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s;
  background:
    radial-gradient(ellipse at center, transparent 55%, rgba(255, 140, 40, 0.28) 100%),
    repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 255, 255, 0.10) 0deg 1.2deg, transparent 1.2deg 9deg);
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 38%, #000 80%);
  mask-image: radial-gradient(ellipse at center, transparent 38%, #000 80%);
  z-index: 2;
}
body.nitro::after {
  opacity: 1;
  animation: nitro-streaks 0.12s steps(2) infinite;
}
@keyframes nitro-streaks {
  from { transform: rotate(0deg) scale(1.02); }
  to { transform: rotate(2deg) scale(1.05); }
}


/* ---------- Big-screen HUD: everything scales with --s (set from the window size) ---------- */
:root { --s: 1; }

#hud-player { transform-origin: top left; transform: scale(var(--s)); top: calc(18px * var(--s)); left: calc(18px * var(--s)); }
#hud-mission {
  transform-origin: top right;
  transform: scale(var(--s));
  top: calc(18px * var(--s));
  right: calc(18px * var(--s));
  max-width: 400px;
  padding: 14px 16px;
  font-size: 15px;
  text-align: left;
  border: 1px solid rgba(255, 210, 74, 0.35);
}
#hud-mission b { font-size: 13px; letter-spacing: 0.8px; }
#hud-mission-text { display: block; font-size: 17px; font-weight: 700; line-height: 1.35; }
#hud-mission .objective-head { display: flex; gap: 6px; margin: 2px 0 6px; }
#hud-mission .objective-head:empty { display: none; }
#hud-mission .step {
  padding: 1px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #10161c;
  background: var(--gold);
}
#hud-mission .hint {
  display: block;
  margin-top: 8px;
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(255, 210, 74, 0.1);
  border-left: 3px solid var(--gold);
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
}
#hud-mission .hint::before { content: 'CLUE  '; font-weight: 900; color: var(--gold); letter-spacing: 0.6px; }
#hud-mission .hint.ask { background: none; border-left-color: rgba(255, 255, 255, 0.2); color: var(--muted); font-size: 12px; }
#hud-mission .hint.ask::before { content: ''; }
#hud-mission .hint.stuck { animation: hint-pulse 1.2s ease-in-out infinite; }
@keyframes hint-pulse { 50% { background: rgba(255, 210, 74, 0.32); } }

#hud-waypoint {
  top: calc(62px * var(--s));
  transform: translateX(-50%) scale(var(--s));
  transform-origin: top center;
  gap: 12px;
  padding: 8px 18px 8px 12px;
  font-size: 15px;
}
#hud-waypoint-arrow { font-size: 30px; filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.8)); }
#hud-waypoint .wp-lines { display: flex; flex-direction: column; line-height: 1.15; }
#hud-waypoint-dist { font-size: 20px; font-weight: 900; }

/* Screen-space marker over the objective (clamped to the screen edge when it's off-screen). */
#hud-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  --c: #ffd24a;
}
#hud-marker .marker-diamond {
  position: absolute;
  width: calc(22px * var(--s));
  height: calc(22px * var(--s));
  margin: calc(-11px * var(--s)) 0 0 calc(-11px * var(--s));
  transform: rotate(45deg);
  border: calc(3px * var(--s)) solid var(--c);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 calc(12px * var(--s)) var(--c);
  animation: marker-bob 1.2s ease-in-out infinite;
}
@keyframes marker-bob { 50% { margin-top: calc(-17px * var(--s)); } }
#hud-marker .marker-label {
  position: absolute;
  top: calc(18px * var(--s));
  left: 0;
  transform: translateX(-50%);
  padding: calc(3px * var(--s)) calc(9px * var(--s));
  border-radius: 999px;
  background: rgba(8, 12, 16, 0.75);
  border: 1px solid var(--c);
  white-space: nowrap;
  font-size: calc(13px * var(--s));
  font-weight: 700;
  text-align: center;
}
#hud-marker .marker-label b { margin-left: 0.5em; color: var(--c); }
#hud-marker .marker-arrow {
  position: absolute;
  display: none;
  width: calc(40px * var(--s));
  margin: calc(-20px * var(--s)) 0 0 calc(-20px * var(--s));
  color: var(--c);
  font-size: calc(34px * var(--s));
  line-height: calc(40px * var(--s));
  text-align: center;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.9);
}
#hud-marker.edge .marker-arrow { display: block; }
#hud-marker.edge .marker-diamond { display: none; }
#hud-marker.edge .marker-label { top: calc(26px * var(--s)); }

/* "Next step" callout: shown for a few seconds whenever the objective changes. */
#hud-callout {
  position: absolute;
  bottom: calc(150px * var(--s));
  left: 50%;
  width: 620px;
  transform: translateX(-50%) scale(var(--s));
  transform-origin: bottom center;
  padding: 14px 22px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(20, 16, 4, 0.9), rgba(10, 10, 8, 0.82));
  border: 2px solid var(--gold);
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.55);
  text-align: center;
  animation: callout-in 0.35s ease-out;
}
#hud-callout.fade { opacity: 0; transition: opacity 0.6s ease; }
#hud-callout-head { font-size: 13px; font-weight: 900; letter-spacing: 2px; color: var(--gold); }
#hud-callout-text { margin-top: 5px; font-size: 22px; font-weight: 800; line-height: 1.3; }
#hud-callout-hint { margin-top: 7px; font-size: 14px; color: rgba(255, 255, 255, 0.78); }
#hud-callout-hint:empty { display: none; }
@keyframes callout-in { from { opacity: 0; margin-bottom: -14px; } to { opacity: 1; margin-bottom: 0; } }

#hud-progress { bottom: calc(118px * var(--s)); transform: translateX(-50%) scale(var(--s)); transform-origin: bottom center; width: 320px; font-size: 14px; }
#hud-progress .bar { height: 9px; }
#hud-banner { transform: translateX(-50%) scale(var(--s)); transform-origin: top center; }
@keyframes banner-in { from { opacity: 0; transform: translate(-50%, 10px) scale(var(--s)); } to { opacity: 1; transform: translateX(-50%) scale(var(--s)); } }
#hud-messages { top: calc(150px * var(--s)); left: calc(18px * var(--s)); transform: scale(var(--s)); transform-origin: top left; width: 330px; }
.message { font-size: 14px; }
#hud-weapon { bottom: calc(24px * var(--s)); transform: translateX(-50%) scale(var(--s)); transform-origin: bottom center; font-size: 14px; }
#hud-prompt {
  bottom: calc(72px * var(--s));
  transform: translateX(-50%) scale(var(--s));
  transform-origin: bottom center;
  padding: 9px 16px;
  font-size: 16px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
#hud-wanted { top: calc(14px * var(--s)); transform: translateX(-50%) scale(var(--s)); transform-origin: top center; }
#hud-toasts { top: calc(118px * var(--s)); transform: translateX(-50%) scale(var(--s)); transform-origin: top center; }
.toast { font-size: 14px; }
#hud-controls { bottom: calc(18px * var(--s)); left: calc(18px * var(--s)); transform: scale(min(var(--s), 1.15)); transform-origin: bottom left; }
#crosshair { transform: translate(-50%, -50%) scale(var(--s)); }
#weapon-wheel { transform: translate(-50%, -50%) scale(var(--s)); }
body::after { z-index: 2; }

/* Weapon wheel with icons (8 slots). */
#weapon-wheel { width: 420px; height: 420px; }
.wheel-slot {
  flex-direction: column;
  gap: 1px;
  width: 104px;
  height: 78px;
  margin: -39px 0 0 -52px;
  font-size: 11px;
}
.wheel-slot .weapon-icon { width: 58px; height: 29px; }
.wheel-slot .name { line-height: 1.1; }
.wheel-slot small { opacity: 0.65; font-size: 10px; }
.wheel-slot.selected .weapon-icon { color: #b8322a; }
.wheel-center { width: 110px; height: 110px; margin: -55px; font-size: 12px; }
#hud-weapon { display: flex; align-items: center; gap: 8px; }
#hud-weapon .weapon-icon { width: 40px; height: 20px; }
#hud-prompt, #hud-weapon, #hud-callout { z-index: 1; }

/* ---------- Character wheel (GTA V style) ---------- */
/* Character wheel: bottom-right corner, out of the way of the action. */
#char-wheel {
  position: absolute;
  right: calc(16px * var(--s));
  bottom: calc(16px * var(--s));
  width: 330px;
  height: 300px;
  transform: scale(calc(var(--s) * 0.72));
  transform-origin: bottom right;
  pointer-events: none;
  z-index: 4;
  transition: opacity 0.35s;
}
#char-wheel.fade { opacity: 0; }
#char-wheel .cw-ring {
  position: absolute;
  inset: 20px 35px 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.15) 30%, rgba(0, 0, 0, 0.55) 70%, transparent 71%);
}
#char-wheel .cw-slot {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 110px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
  opacity: 0.75;
  transition: transform 0.15s, opacity 0.15s;
}
#char-wheel .cw-slot img {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.55);
  background: #2a3138;
  object-fit: cover;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}
#char-wheel .cw-slot kbd {
  padding: 0 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.6);
  font: inherit;
  font-size: 11px;
}
#char-wheel .cw-slot.top { top: 0; left: 50%; margin-left: -55px; }
#char-wheel .cw-slot.left { top: 150px; left: 0; }
#char-wheel .cw-slot.right { top: 150px; right: 0; }
#char-wheel .cw-slot.active { opacity: 1; transform: scale(1.15); }
#char-wheel .cw-slot.active img { border-color: #6fe08f; box-shadow: 0 0 0 4px rgba(111, 224, 143, 0.35), 0 6px 24px rgba(0, 0, 0, 0.6); }
#char-wheel .cw-slot.locked { opacity: 0.4; }
#char-wheel .cw-slot.locked img { filter: grayscale(1) brightness(0.5); }
#char-wheel .cw-slot.locked span::after { content: ' · MISSING'; color: #ff8a80; }

/* ---------- Compass (top right, above the objectives) ---------- */
#hud-compass {
  position: absolute;
  top: calc(18px * var(--s));
  right: calc(18px * var(--s));
  width: 400px;
  height: 46px;
  overflow: hidden;
  transform: scale(var(--s));
  transform-origin: top right;
  border-radius: 12px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
}
#compass-strip { position: absolute; top: 0; left: 50%; height: 100%; will-change: transform; }
#compass-strip .cp-tick {
  position: absolute;
  top: 4px;
  width: 30px;
  margin-left: -15px;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 700;
  font-size: 11px;
  line-height: 1;
  padding-top: 14px;
}
#compass-strip .cp-tick::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 7px;
  margin-left: -1px;
  background: rgba(255, 255, 255, 0.45);
}
#compass-strip .cp-major { font-size: 17px; padding-top: 11px; color: #fff; }
#compass-strip .cp-major::before { height: 10px; background: #fff; }
#compass-strip .cp-minor-name { font-size: 12px; padding-top: 13px; color: rgba(255, 255, 255, 0.75); }
#compass-strip .cp-north { color: #ff6b5e; }
#compass-strip .cp-north::after { content: '≈'; display: block; font-size: 10px; color: #7cc7ff; margin-top: 1px; }
#hud-compass .compass-needle {
  position: absolute;
  left: 50%;
  top: 0;
  width: 0;
  height: 0;
  margin-left: -7px;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 9px solid var(--gold);
}
#compass-deg {
  position: absolute;
  right: 12px;
  bottom: 4px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.5px;
}
#compass-goal {
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--c, var(--gold));
  box-shadow: 0 0 8px var(--c, var(--gold));
}
#compass-goal.edge { opacity: 0.6; }
/* The objectives card sits under the compass. */
#hud-mission { top: calc(72px * var(--s)); }
