/* Play mode: full-screen canvas plus HTML overlays. Tokens come from style.css. */
body.play { overflow: hidden; height: 100svh; touch-action: none; user-select: none; -webkit-user-select: none; }
#game { position: fixed; inset: 0; width: 100vw; height: 100svh; display: block; }

.keys {
  display: inline-block; font-family: var(--font-mono), monospace; font-size: 11.5px; padding: 1px 7px;
  border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; color: var(--ink);
}

/* ---------- HUD ---------- */
.hud-top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 5; pointer-events: none;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  padding: max(14px, env(safe-area-inset-top)) 16px 0;
}
.hud-top > * { pointer-events: auto; }
.hud-btn { background: rgba(6,8,13,.75); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hud-title { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); padding-top: 8px; }
#minimap {
  width: 150px; height: 150px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: rgba(6,8,13,.8);
}
.hud-hint {
  position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 5;
  font-size: 12.5px; color: var(--ink-3); background: rgba(6,8,13,.7); padding: 8px 14px; border-radius: 10px;
  border: 1px solid var(--line); white-space: nowrap; transition: opacity .4s;
}
.enter-prompt {
  position: fixed; left: 50%; bottom: 76px; transform: translateX(-50%); z-index: 6;
  font: inherit; font-size: 15px; color: var(--bg); background: var(--c-cyan); border: 0; border-radius: 12px;
  padding: 12px 20px; cursor: pointer; box-shadow: 0 0 30px rgba(86,227,209,.45); animation: bob 1.4s ease-in-out infinite;
}
.enter-prompt .keys { color: var(--bg); border-color: rgba(6,8,13,.4); margin-left: 6px; }
@keyframes bob { 50% { transform: translate(-50%, -4px); } }

/* ---------- touch ---------- */
.touch { display: none; }
.touch-only { display: none; }
@media (hover: none) and (pointer: coarse) {
  .touch { display: block; }
  .touch-only { display: block; }
  .hud-hint { display: none; }
  .enter-prompt .keys { display: none; }
  .enter-prompt { bottom: calc(max(28px, env(safe-area-inset-bottom)) + 190px); left: auto; right: 18px; transform: none; animation: none; max-width: 52vw; }
  .desk-only { display: none; }
}
.stick {
  position: fixed; left: 26px; bottom: max(28px, env(safe-area-inset-bottom)); z-index: 6;
  width: 128px; height: 128px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: rgba(6,8,13,.55);
}
.knob {
  position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%;
  background: rgba(86,227,209,.25); border: 1px solid var(--c-cyan);
}
.touch-btns {
  position: fixed; right: 14px; bottom: max(28px, env(safe-area-inset-bottom)); z-index: 6;
  display: grid; grid-template-columns: repeat(2, 52px); gap: 8px;
}
.tbtn {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(6,8,13,.6);
  color: var(--ink); font-size: 22px; touch-action: none; user-select: none; -webkit-user-select: none;
}
.tbtn.down { background: rgba(86,227,209,.3); border-color: var(--c-cyan); }

/* ---------- boost meter ---------- */
.boost-meter {
  position: fixed; left: 18px; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 5; display: flex; align-items: center; gap: 8px;
  font-size: 11px; color: var(--ink-3); background: rgba(6,8,13,.7); padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line);
}
#clock { color: var(--ink-2); padding-right: 8px; margin-right: 2px; border-right: 1px solid var(--line); }
.boost-bar { width: 90px; height: 6px; border-radius: 3px; background: rgba(148,163,194,.15); overflow: hidden; }
.boost-bar i { display: block; height: 100%; width: 100%; background: var(--c-amber); border-radius: 3px; }
.boost-meter.on .boost-bar i { box-shadow: 0 0 10px var(--c-amber); background: #ffe2a8; }
@media (max-width: 900px) and (hover: hover) { .boost-meter { bottom: 64px; } }
@media (hover: none) and (pointer: coarse) { .boost-meter { left: 26px; bottom: calc(max(28px, env(safe-area-inset-bottom)) + 140px); } }

@media (max-width: 640px) {
  #minimap { width: 104px; height: 104px; }
  .hud-title { display: none; }
}

/* ---------- intro ---------- */
.intro {
  position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 16px;
  background: rgba(6,8,13,.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.intro[hidden] { display: none; }
.intro-card { max-width: 460px; padding: 28px; }
.intro-card h1 { font-size: clamp(28px, 6vw, 38px); line-height: 1.05; letter-spacing: -0.03em; margin: 12px 0 10px; }
.intro-card p { color: var(--ink-2); margin: 0 0 18px; }
.intro-keys { display: grid; gap: 8px; font-size: 13px; color: var(--ink-2); margin-bottom: 22px; }

/* ---------- building cards ---------- */
.card-layer {
  position: fixed; inset: 0; z-index: 9; display: grid; place-items: center; padding: 16px;
  background: rgba(6,8,13,.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.card-layer[hidden] { display: none; }
.game-card {
  position: relative; width: min(640px, 100%); max-height: min(82svh, 760px); overflow-y: auto;
  padding: 28px; background: var(--panel-solid); animation: cardIn .35s cubic-bezier(.2,.8,.2,1);
  border-color: var(--accent, var(--line-strong)); user-select: text; -webkit-user-select: text; touch-action: pan-y;
}
.game-card[hidden] { display: none; }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.game-card .eyebrow { color: var(--accent, var(--c-cyan)); }
.game-card h2 { font-size: clamp(24px, 4vw, 32px); line-height: 1.1; letter-spacing: -0.02em; margin: 10px 0 12px; }
.card-body { color: var(--ink-2); margin: 0 0 14px; }
.game-card ul { margin: 0 0 16px; padding-left: 20px; color: var(--ink-2); }
.game-card li { margin-bottom: 8px; }
.card-close {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 10px; cursor: pointer;
  background: none; border: 1px solid var(--line-strong); color: var(--ink-2); font-size: 20px; line-height: 1;
}
.card-close:hover { color: var(--ink); border-color: var(--ink-3); }
.card-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 4px 0 18px; }
.card-stats div { border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.card-stats b { display: block; font-size: 26px; letter-spacing: -0.02em; }
.card-stats span { font-size: 13px; color: var(--ink-2); }
.card-group { margin-bottom: 12px; }
.card-group b { display: block; font-size: 14px; margin-bottom: 6px; }
.card-note { font-size: 13px; color: var(--ink-3); margin: 0 0 14px; }
.card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.card-foot { font-size: 12px; color: var(--ink-3); margin-top: 20px; }

/* ---------- career run ---------- */
.runner { position: fixed; inset: 0; z-index: 20; background: #06080d; }
.runner[hidden] { display: none; }
#runner-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.runner-hud {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: center; gap: 16px;
  padding: max(14px, env(safe-area-inset-top)) 16px 0; pointer-events: none;
}
.runner-hud > * { pointer-events: auto; }
.runner-progress { flex: 1; display: flex; align-items: center; gap: 12px; min-width: 0; }
.runner-bar { flex: 1; height: 6px; border-radius: 99px; background: rgba(148,163,194,.18); overflow: hidden; }
.runner-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--c-cyan), var(--c-violet), var(--c-pink)); border-radius: 99px; }
.runner-progress span { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; min-width: 6ch; }
.runner-score { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; background: rgba(6,8,13,.7); padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line); }
.runner-toast {
  position: absolute; z-index: 2; left: 50%; top: 74px; transform: translateX(-50%); width: min(560px, calc(100% - 32px));
  padding: 14px 18px; background: rgba(17,22,33,.92); animation: cardIn .35s cubic-bezier(.2,.8,.2,1);
}
.runner-toast[hidden] { display: none; }
.runner-toast b { display: block; font-size: 17px; margin: 4px 0 4px; }
.runner-toast p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.runner-screen { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; padding: 16px; background: rgba(6,8,13,.6); }
.runner-screen[hidden] { display: none; }
.runner-screen .chips { margin: 4px 0 6px; }
@media (max-width: 640px) {
  .runner-hud { flex-wrap: wrap; gap: 10px; }
  .runner-progress { order: 3; flex-basis: 100%; }
  .runner-toast { top: 118px; padding: 12px 14px; }
  .runner-toast p { font-size: 13px; }
}
.runner-combo {
  position: absolute; z-index: 2; right: 18px; top: 70px; font-size: 22px; font-weight: 500; color: var(--c-amber);
  text-shadow: 0 0 18px rgba(255,191,94,.6); animation: pop .3s;
}
.runner-combo[hidden] { display: none; }
@keyframes pop { from { transform: scale(1.5); opacity: 0; } }
.runner-best { font-size: 13px; color: var(--c-amber); margin: -8px 0 18px; }
.runner-screen .intro-card { max-height: calc(100svh - 32px); overflow-y: auto; }
.medal { display: inline-flex; align-items: center; gap: 10px; margin: 12px 0 0; font-family: var(--font-mono), monospace; font-size: 13px; color: var(--ink-2); }
.medal i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; color: #06080d; }
.medal.gold i { background: #ffd166; box-shadow: 0 0 20px rgba(255,209,102,.6); }
.medal.silver i { background: #cfd8e3; box-shadow: 0 0 16px rgba(207,216,227,.5); }
.medal.bronze i { background: #d08c5b; box-shadow: 0 0 16px rgba(208,140,91,.5); }
.recap { margin: 0 0 12px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.recap summary { cursor: pointer; font-size: 14px; color: var(--ink); }
.recap ol { margin: 10px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 14px; }
.recap li { margin-bottom: 6px; }
.recap li b { color: var(--ink); font-weight: 550; }
.recap .chips { margin-top: 10px; }
@media (max-width: 640px) { .runner-combo { top: 120px; } }

/* Progress: a thin line across the very top at every width (overrides the earlier flex layout). */
.runner-progress, .runner-hud .runner-progress {
  position: absolute; left: 0; right: 0; top: 0; height: 4px; order: 0; flex-basis: auto; gap: 0;
}
.runner-bar { height: 4px; border-radius: 0; }
.runner-progress span { display: none; }
.runner-hud { justify-content: space-between; padding-top: max(16px, env(safe-area-inset-top)); }
.runner-hud .runner-score { margin-left: auto; }
@media (max-width: 640px) {
  .runner-hud { flex-wrap: nowrap; gap: 8px; }
  .runner-score { font-size: 11.5px; padding: 6px 9px; }
  .runner-toast { top: 66px; }
  .runner-combo { top: 64px; }
}
@media (max-width: 640px) { .wide-only { display: none; } }
.runner-combo, .runner-hud ~ .runner-combo { top: auto; bottom: calc(24% - 52px); right: 22px; }
@media (max-width: 640px) { .runner-combo { top: auto; } }

/* ---------- missions, walk, toasts ---------- */
.hud-left { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; max-width: 60vw; }
.hud-left .keys { margin-left: 4px; font-size: 10.5px; padding: 0 5px; }
#walk-btn[aria-pressed="true"] { border-color: var(--c-green); color: var(--c-green); }
.city-toast {
  position: fixed; z-index: 7; left: 50%; top: 70px; transform: translateX(-50%); width: min(460px, calc(100% - 32px));
  padding: 12px 16px; background: rgba(17,22,33,.94); animation: cardIn .35s cubic-bezier(.2,.8,.2,1);
  font-size: 14px; color: var(--ink-2);
}
.city-toast[hidden] { display: none; }
.city-toast b { color: var(--ink); display: block; margin-bottom: 2px; }
.city-toast .chips { margin-top: 8px; }
.mission { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
.mission.done { border-color: rgba(126,224,122,.5); }
.mission-top { display: flex; justify-content: space-between; gap: 10px; }
.mission-progress { font-size: 12.5px; color: var(--ink-3); }
.mission.done .mission-progress { color: var(--c-green); }
.mission p { margin: 6px 0 10px; color: var(--ink-2); font-size: 14px; }
.mission-bar { height: 5px; border-radius: 99px; background: rgba(148,163,194,.15); overflow: hidden; }
.mission-bar i { display: block; height: 100%; width: 0; background: var(--c-cyan); border-radius: 99px; transition: width .6s; }
.mission.done .mission-bar i { background: var(--c-green); }
.mission-list { margin-top: 10px; }
.mission-list .chip.seen { border-color: rgba(126,224,122,.5); color: var(--c-green); }
@media (max-width: 640px) {
  .hud-left { max-width: calc(100vw - 140px); }
  .city-toast { top: auto; bottom: 170px; }
}

/* ---------- street readout ---------- */
.street-chip {
  position: fixed; top: 66px; left: 50%; transform: translateX(-50%); z-index: 4; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center;
  font-size: 12px; color: var(--ink-2); background: rgba(6,8,13,.7); padding: 6px 12px; border-radius: 10px;
  border: 1px solid var(--line); max-width: min(70vw, 420px);
}
.street-chip:has(#street-name:empty) { display: none; }
#gps-info { color: var(--c-cyan); font-size: 11.5px; }
.street-chip { transition: opacity .25s; }
body:has(.city-toast:not([hidden])) .street-chip { opacity: 0; }
#minimap { cursor: pointer; }
@media (max-width: 640px) { .street-chip { top: 118px; font-size: 11px; } }

/* ---------- full map ---------- */
.map-layer {
  position: fixed; inset: 0; z-index: 9; display: grid; place-items: center; padding: 16px;
  background: rgba(6,8,13,.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.map-layer[hidden] { display: none; }
.map-panel { width: min(1000px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: 18px; }
.map-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.map-head h2 { margin: 4px 0 0; font-size: 22px; }
.map-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.map-tools .card-close { position: static; }
.map-body { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 16px; }
#bigmap { width: min(100%, calc(100dvh - 170px)); aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--line-strong); background: #06080d; cursor: crosshair; touch-action: manipulation; justify-self: center; }
.map-dest { display: flex; flex-direction: column; gap: 14px; overflow: auto; max-height: calc(100dvh - 170px); }
.map-dest h3 { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 0 0 6px; font-family: 'JetBrains Mono', monospace; font-weight: 500; }
.map-dest .dest-list { display: flex; flex-wrap: wrap; gap: 6px; }
.dest {
  font: inherit; font-size: 12.5px; color: var(--ink); background: rgba(148,163,194,.08); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.dest i { width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }
.dest:hover, .dest.on { border-color: var(--c-cyan); background: rgba(86,227,209,.12); }
.map-foot { font-size: 12px; color: var(--ink-3); margin: 12px 0 0; }
@media (max-width: 760px) {
  .map-body { grid-template-columns: 1fr; }
  .map-dest { max-height: none; }
}

/* ---------- coins ---------- */
.coins { cursor: default; }
.coins b { color: var(--c-amber); }
.btn .coin-ico, .mission .coin-ico, .wallet-line .coin-ico { margin: 0 0 0 4px; width: 11px; height: 11px; }
.coin-ico { display: inline-block; width: 13px; height: 13px; border-radius: 50%; vertical-align: -2px; margin-right: 6px;
  background: radial-gradient(circle at 35% 35%, #ffe2a8, #ffbf5e 55%, #a8701e); box-shadow: 0 0 8px rgba(255,191,94,.5); }
.coins.pop { animation: coinPop .35s ease; }
@keyframes coinPop { 40% { transform: scale(1.15); box-shadow: 0 0 18px rgba(255,191,94,.5); } }

/* ---------- shop ---------- */
.shop h3 { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 18px 0 8px; font-family: 'JetBrains Mono', monospace; font-weight: 500; }
.wallet-line { font-size: 13px; color: var(--ink-2); margin: 0 0 6px; }
.wallet-line b { color: var(--c-amber); }
.shop-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.shop-item .swatch { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--sw); box-shadow: 0 0 10px var(--sw); }
.shop-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.shop-text span { font-size: 13px; color: var(--ink-3); }
.shop-btns { display: flex; gap: 6px; flex: none; }
.shop-btns .btn[disabled] { opacity: .55; cursor: default; }
.quests-head { font-size: 18px; margin: 22px 0 4px; }
.q-mark { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--c-amber); color: var(--bg); font-size: 12px; }

/* ---------- talking ---------- */
.talk {
  position: fixed; z-index: 8; left: 16px; right: 16px; margin: 0 auto; bottom: max(24px, env(safe-area-inset-bottom));
  max-width: 560px; padding: 16px 18px; background: rgba(17,22,33,.96);
  border-color: var(--accent, var(--line-strong)); animation: cardIn .25s cubic-bezier(.2,.8,.2,1);
}
.talk[hidden] { display: none; }
.talk-who { display: flex; align-items: center; gap: 8px; }
.talk-who i { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.talk-who span { font-size: 12px; color: var(--ink-3); }
.talk p { margin: 8px 0 12px; color: var(--ink); font-size: 15px; line-height: 1.5; }
.talk-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (hover: none) and (pointer: coarse) { .talk { bottom: auto; top: 120px; } }

/* ---------- races and jobs ---------- */
.race-hud {
  position: fixed; top: 66px; left: 50%; transform: translateX(-50%); z-index: 5; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 16px; border-radius: 12px;
  background: rgba(6,8,13,.8); border: 1px solid rgba(157,140,255,.5); font-size: 12px; color: var(--ink-2);
}
.race-hud[hidden] { display: none; }
.race-hud b { font-size: 22px; color: var(--ink); font-variant-numeric: tabular-nums; }
.race-hud.hurry b { color: var(--c-red, #ff5d73); }
.race-esc { font-size: 10.5px; color: var(--ink-3); }
.race-quit { pointer-events: auto; margin-top: 4px; }
body.racing .street-chip { display: none; }
@media (max-width: 640px) { .race-hud { top: 118px; } }
.countdown {
  position: fixed; inset: 0; z-index: 7; display: grid; place-items: center; pointer-events: none;
  font: 700 min(30vw, 180px)/1 'Space Grotesk', sans-serif; color: var(--c-amber); text-shadow: 0 0 40px rgba(255,191,94,.6);
}
.countdown[hidden] { display: none; }
.swatch.medal-gold { --sw: #ffbf5e; } .swatch.medal-silver { --sw: #cfd8e3; } .swatch.medal-bronze { --sw: #d9a066; }
.swatch.medal-none { --sw: rgba(148,163,194,.25); box-shadow: none; }

/* ---------- tunnel fade ---------- */
.fade { position: fixed; inset: 0; z-index: 20; background: #000; opacity: 0; pointer-events: none; transition: opacity .4s; }
.fade.on { opacity: 1; }

/* ---------- photo mode ---------- */
body.photo .hud-top, body.photo .hud-hint, body.photo .boost-meter, body.photo .street-chip,
body.photo .enter-prompt, body.photo .city-toast, body.photo .race-hud, body.photo .touch-btns { display: none !important; }
.photo-bar {
  position: fixed; z-index: 8; left: 16px; right: 16px; margin: 0 auto; bottom: max(18px, env(safe-area-inset-bottom)); max-width: 640px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; background: rgba(17,22,33,.9);
}
.photo-bar[hidden] { display: none; }
.photo-bar > span { font-size: 12px; color: var(--ink-3); flex: 1; }
.photo-btns { display: flex; gap: 6px; }
@media (hover: none) and (pointer: coarse) { .photo-bar { top: 16px; bottom: auto; } }

/* ---------- sticker book and achievements ---------- */
.quests-head .mono { font-size: 13px; color: var(--ink-3); font-weight: 400; margin-left: 6px; }
.sticker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.sticker { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border: 1px dashed var(--line); border-radius: 10px; text-align: center; }
.sticker i { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-style: normal; font-weight: 700; color: var(--ink-3); background: rgba(148,163,194,.08); }
.sticker span { font-size: 11px; color: var(--ink-3); line-height: 1.2; }
.sticker.got { border-style: solid; border-color: var(--c); }
.sticker.got i { background: var(--c); color: var(--bg); box-shadow: 0 0 12px var(--c); }
.sticker.got span { color: var(--ink); }
.ach-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; margin-bottom: 8px; }
.ach { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; gap: 2px; opacity: .6; }
.ach b { font-size: 13.5px; } .ach span { font-size: 12px; color: var(--ink-3); }
.ach.got { opacity: 1; border-color: rgba(255,191,94,.5); }

/* ---------- wanted and busted ---------- */
.wanted {
  position: fixed; top: 66px; left: 50%; transform: translateX(-50%); z-index: 6; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 16px; border-radius: 12px; min-width: 220px;
  background: rgba(20,6,10,.85); border: 1px solid #ff2d4b; color: var(--ink-2); font-size: 12px; text-align: center;
  animation: wantedPulse 1s ease-in-out infinite;
}
.wanted[hidden] { display: none; }
.wanted b { color: #ff5d73; font-size: 14px; letter-spacing: .1em; }
.wanted-bar { width: 100%; height: 5px; border-radius: 3px; background: rgba(255,93,115,.15); overflow: hidden; }
.wanted-bar i { display: block; height: 100%; width: 0; background: #ff2d4b; }
.wanted.hot { border-color: #fff; }
@keyframes wantedPulse { 50% { box-shadow: 0 0 24px rgba(255,45,75,.45), 0 0 0 1px rgba(59,130,255,.6); } }
body.is-wanted .street-chip { display: none; }
body.is-wanted .race-hud { top: 150px; }
@media (max-width: 640px) { .wanted { top: 118px; } body.is-wanted .race-hud { top: 200px; } }
.busted { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 16px; background: rgba(20,4,8,.8); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.busted[hidden] { display: none; }
.busted h1 { color: #ff5d73; }

/* ---------- skills ---------- */
.role-verdict { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid rgba(86,227,209,.5); border-radius: 12px; background: rgba(86,227,209,.06); margin: 6px 0 4px; }
.role-verdict b { font-size: 24px; }
.role-verdict span:last-child { color: var(--ink-2); font-size: 14px; }
.role { padding: 10px 0; border-top: 1px solid var(--line); }
.role-top { display: flex; justify-content: space-between; }
.role p { margin: 6px 0 0; font-size: 12.5px; line-height: 1.6; }
.role-hit { color: var(--ink); } .role-miss { color: var(--ink-3); opacity: .7; }
.skill-tier { margin: 10px 0; display: flex; flex-direction: column; gap: 6px; }
.skill-tier > b { font-size: 12px; font-family: 'JetBrains Mono', monospace; font-weight: 500; }
.skill-chip { opacity: .45; }
.skill-chip.got { opacity: 1; border-color: var(--c); color: var(--ink); box-shadow: 0 0 8px color-mix(in srgb, var(--c) 40%, transparent); }
