/* ═══════════════════════════════════════════════════════════════════
   WILD HUNT · interface system
   ═══════════════════════════════════════════════════════════════════ */
:root {
  --paper: #eee6d2;
  --paper-dim: #cfc8b6;
  --muted: #8f998b;
  --ink: #070d0a;
  --ink-2: #0c1510;
  --panel: rgba(8, 15, 11, 0.66);
  --panel-heavy: rgba(6, 12, 9, 0.88);
  --line: rgba(232, 224, 200, 0.15);
  --line-strong: rgba(232, 224, 200, 0.32);
  --accent: #80e5d8;
  --accent-2: #e3bc6d;
  --danger: #c2765f;
  --font-display: "Bodoni 72", "Didot", "Songti SC", "STSong", "SimSun", serif;
  --font-ui: "Bahnschrift", "DIN Alternate", "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  --font-mono: "Cascadia Mono", "Consolas", "SFMono-Regular", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body.mode-realistic {
  --accent: #d7a35d;
  --accent-2: #c16b55;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overscroll-behavior: none; }
body {
  overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #152019 0%, #050a07 75%);
  color: var(--paper);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  user-select: none;
}
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
::selection { color: #07100c; background: var(--accent); }
.hidden { display: none !important; }

#viewport {
  position: fixed;
  inset: 0;
  z-index: 0;
}
#viewport canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.screen-grain {
  position: fixed;
  inset: -50%;
  z-index: 80;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
  animation: grain 0.24s steps(2) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(2%, 2%); }
  100% { transform: translate(-1%, -1%); }
}
.screen-vignette {
  position: fixed;
  inset: 0;
  z-index: 81;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 48%, rgba(1, 5, 3, 0.24) 78%, rgba(1, 4, 2, 0.64) 105%);
}

/* ─────────────────────────── common ─────────────────────────── */
.fullscreen { position: fixed; inset: 0; }
.screen { z-index: 50; }
kbd {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 1.9em;
  height: 1.8em;
  padding: 0 0.45em;
  border: 1px solid var(--line-strong);
  border-bottom-color: rgba(0, 0, 0, 0.6);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--paper-dim);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}
.hud-label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  display: inline-block;
  margin-right: 6px;
  animation: livePulse 2.2s ease-in-out infinite;
}
@keyframes livePulse { 50% { opacity: 0.35; } }

/* ─────────────────────────── loading ─────────────────────────── */
.loading-screen {
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #050a07;
}
.loading-bg {
  position: absolute;
  inset: -3%;
  background-size: cover;
  background-position: center;
  filter: blur(8px) saturate(0.72) brightness(0.48);
  transform: scale(1.04);
  animation: loadingDrift 14s ease-in-out infinite alternate;
}
@keyframes loadingDrift { to { transform: scale(1.1) translate3d(-1.5%, 1%, 0); } }
.loading-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 46%, transparent 0 20%, rgba(3, 8, 5, 0.4) 55%, #030805 100%);
}
.loading-content {
  position: relative;
  z-index: 2;
  width: min(440px, 80vw);
  text-align: center;
  animation: fadeUp 0.9s var(--ease) both;
}
.loading-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 28px;
}
.reticle-mark {
  width: 28px;
  height: 28px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 22px rgba(128, 229, 216, 0.2);
}
.reticle-mark::before, .reticle-mark::after {
  content: "";
  position: absolute;
  background: var(--accent);
}
.reticle-mark::before { width: 1px; height: 38px; left: 13px; top: -6px; }
.reticle-mark::after { height: 1px; width: 38px; top: 13px; left: -6px; }
.loading-brand { font-size: 12px; letter-spacing: 0.42em; }
.loading-content h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: 0.1em;
}
.loading-content p {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  margin: 13px 0 30px;
  min-height: 1.2em;
}
.loading-track {
  height: 1px;
  background: rgba(232, 224, 200, 0.16);
  overflow: hidden;
}
.loading-track i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 12px var(--accent);
  transition: width 0.35s var(--ease);
}
.loading-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 11px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: rgba(232, 224, 200, 0.38);
}

/* ─────────────────────────── start screen ─────────────────────────── */
.start-screen {
  z-index: 50;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: transparent;
  animation: menuReveal 1.2s var(--ease) both;
}
@keyframes menuReveal { from { opacity: 0; } to { opacity: 1; } }
.menu-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 7, 4, 0.9) 0%, rgba(3, 9, 5, 0.72) 30%, rgba(3, 9, 5, 0.24) 58%, rgba(3, 8, 5, 0.82) 100%),
    linear-gradient(0deg, rgba(2, 6, 4, 0.85) 0%, transparent 28%, transparent 72%, rgba(2, 6, 4, 0.6) 100%);
  backdrop-filter: blur(1.5px) saturate(0.9);
}
.menu-shade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 64% 38%, transparent 0 22%, rgba(3, 8, 5, 0.36) 70%);
}
.start-grid {
  position: relative;
  z-index: 2;
  width: min(1720px, 91vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(400px, 470px);
  align-items: center;
  gap: clamp(40px, 7vw, 130px);
  padding: 6vh 0 10vh;
}
.hero-copy {
  max-width: 790px;
  padding-left: clamp(0px, 1vw, 18px);
  animation: fadeUp 1s 0.15s var(--ease) both;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  color: rgba(238, 230, 210, 0.65);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  margin-bottom: clamp(26px, 5vh, 62px);
}
.eyebrow i {
  width: 28px;
  height: 1px;
  background: var(--accent-2);
  box-shadow: 0 0 9px rgba(227, 188, 109, 0.5);
}
.game-title {
  margin: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.title-en {
  display: block;
  font-family: var(--font-ui);
  font-size: clamp(82px, 10.4vw, 176px);
  font-weight: 200;
  line-height: 0.72;
  letter-spacing: -0.055em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(238, 230, 210, 0.32);
  text-shadow: 0 0 50px rgba(238, 230, 210, 0.05);
  transform: translateX(-6px);
}
.title-cn {
  display: block;
  margin-top: clamp(19px, 2.7vh, 34px);
  font-family: var(--font-display);
  font-size: clamp(48px, 5.3vw, 86px);
  font-weight: 400;
  letter-spacing: 0.21em;
  line-height: 1;
  color: var(--paper);
  text-shadow: 0 5px 34px rgba(0, 0, 0, 0.55);
}
.title-cn::after {
  content: "";
  display: inline-block;
  width: clamp(70px, 8vw, 150px);
  height: 1px;
  margin-left: 26px;
  margin-bottom: 0.22em;
  background: linear-gradient(90deg, var(--accent-2), transparent);
  vertical-align: middle;
}
.hero-lede {
  margin: clamp(26px, 4vh, 44px) 0 0;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.45vw, 23px);
  line-height: 1.75;
  letter-spacing: 0.07em;
  color: rgba(238, 230, 210, 0.82);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: clamp(30px, 5vh, 54px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  width: min(100%, 650px);
}
.hero-meta > div {
  padding: 15px 30px 15px 0;
  margin-right: 30px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.hero-meta > div:last-child { border-right: none; }
.hero-meta span { color: var(--muted); font-size: 9px; letter-spacing: 0.2em; }
.hero-meta strong { font-size: 11px; font-weight: 400; letter-spacing: 0.08em; color: var(--paper-dim); }
.hero-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.06em;
}
.hero-controls span { display: inline-flex; align-items: center; gap: 5px; }

.start-panel {
  position: relative;
  padding: clamp(24px, 3vw, 38px);
  max-height: calc(100vh - 46px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(238, 230, 210, 0.22) transparent;
  background: linear-gradient(155deg, rgba(10, 19, 14, 0.82), rgba(5, 11, 8, 0.7));
  border: 1px solid rgba(238, 230, 210, 0.17);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(22px) saturate(1.05);
  animation: fadeUp 1s 0.3s var(--ease) both;
}
.start-panel::before, .start-panel::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1px solid var(--accent-2);
  opacity: 0.65;
}
.start-panel::before { left: -1px; top: -1px; border-right: none; border-bottom: none; }
.start-panel::after { right: -1px; bottom: -1px; border-left: none; border-top: none; }
.panel-topline {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.19em;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.start-panel h2 {
  margin: 25px 0 5px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: 0.1em;
}
.panel-sub { margin: 0 0 20px; color: var(--muted); font-size: 10px; letter-spacing: 0.06em; line-height: 1.55; }
.mode-cards { display: flex; flex-direction: column; gap: 10px; }
.mode-card {
  position: relative;
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.022);
  padding: 17px 17px 15px 44px;
  cursor: pointer;
  transition: border-color 0.28s var(--ease), background 0.28s var(--ease), transform 0.28s var(--ease);
}
.mode-card:hover { border-color: rgba(238, 230, 210, 0.36); background: rgba(255, 255, 255, 0.045); transform: translateX(2px); }
.mode-card.is-selected {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: linear-gradient(100deg, color-mix(in srgb, var(--accent) 10%, transparent), rgba(255, 255, 255, 0.025));
  box-shadow: inset 2px 0 0 var(--accent), 0 12px 34px rgba(0, 0, 0, 0.16);
}
.mode-check {
  position: absolute;
  left: 16px;
  top: 20px;
  width: 15px;
  height: 15px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: border-color 0.25s;
}
.mode-check i { width: 5px; height: 5px; border-radius: 50%; background: transparent; transition: all 0.25s; }
.mode-card.is-selected .mode-check { border-color: var(--accent); }
.mode-card.is-selected .mode-check i { background: var(--accent); box-shadow: 0 0 9px var(--accent); }
.mode-badge {
  position: absolute;
  right: 14px;
  top: 14px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  padding: 3px 5px;
}
.mode-title { display: block; font-size: 15px; letter-spacing: 0.08em; font-weight: 500; }
.mode-en { display: block; margin-top: 2px; color: var(--muted); font-family: var(--font-mono); font-size: 7.5px; letter-spacing: 0.16em; }
.mode-desc { display: block; margin-top: 8px; color: rgba(207, 200, 182, 0.68); font-size: 10px; line-height: 1.58; letter-spacing: 0.02em; max-width: 330px; }
.mode-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.mode-tags em {
  font-style: normal;
  color: rgba(238, 230, 210, 0.52);
  font-size: 8px;
  letter-spacing: 0.04em;
  border: 1px solid rgba(238, 230, 210, 0.12);
  padding: 2px 5px;
}
.primary-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  margin-top: 19px;
  padding: 16px 18px;
  border: 1px solid transparent;
  background: var(--paper);
  color: #0a120d;
  cursor: pointer;
  text-align: left;
  transition: background 0.25s, color 0.25s, transform 0.25s var(--ease);
  overflow: hidden;
}
.primary-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform 0.6s var(--ease);
}
.primary-btn:hover { background: var(--accent-2); transform: translateY(-1px); }
.primary-btn:hover::before { transform: translateX(110%); }
.primary-btn:active { transform: translateY(0); }
.btn-label { font-size: 15px; letter-spacing: 0.14em; font-weight: 600; }
.btn-meta { font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.13em; opacity: 0.5; margin-left: auto; }
.btn-arrow { font-size: 20px; line-height: 1; margin-left: 2px; font-weight: 300; }
.primary-btn.compact { width: auto; padding: 13px 21px; margin-top: 0; }
.primary-btn.compact .btn-meta { display: none; }
.start-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.08em;
}
.start-foot .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent-2); display: inline-block; margin-right: 5px; vertical-align: 1px; }
.text-btn { background: none; border: none; padding: 2px 0; color: var(--muted); font-size: 9px; cursor: pointer; letter-spacing: 0.08em; }
.text-btn:hover { color: var(--paper); }
.menu-footer {
  position: absolute;
  z-index: 3;
  left: 4.5vw;
  right: 4.5vw;
  bottom: 26px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid rgba(238, 230, 210, 0.12);
  padding-top: 13px;
  color: rgba(207, 200, 182, 0.38);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.18em;
}
.menu-footer-center { color: rgba(207, 200, 182, 0.55); letter-spacing: 0.2em; }
.menu-footer-brand { color: rgba(207, 200, 182, 0.48); }
.menu-footer-brand a {
  color: var(--accent-2);
  text-decoration: none;
  border-bottom: 1px solid rgba(227, 188, 109, 0.35);
  padding-bottom: 1px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.menu-footer-brand a:hover,
.menu-footer-brand a:focus-visible { color: var(--paper); border-bottom-color: var(--accent-2); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ═══════════════════════════ HUD ═══════════════════════════ */
.hud {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.hud.is-visible { opacity: 1; }
.hud-top-left { position: absolute; top: 26px; left: 34px; }
.hud-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}
.hud-reticle {
  width: 13px;
  height: 13px;
  border: 1px solid var(--accent-2);
  border-radius: 50%;
  display: inline-block;
  position: relative;
}
.hud-reticle::after { content: ""; position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--accent-2); left: 4px; top: 4px; box-shadow: 0 0 6px var(--accent-2); }
.hud-objective { margin-top: 9px; color: rgba(238, 230, 210, 0.62); font-size: 9px; letter-spacing: 0.08em; }
.hud-objective b { color: var(--line-strong); font-weight: 400; margin: 0 4px; }
.hud-top-center { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.timer-block {
  display: flex;
  align-items: baseline;
  gap: 11px;
  background: linear-gradient(160deg, rgba(6, 12, 9, 0.82), rgba(6, 12, 9, 0.42));
  border: 1px solid rgba(238, 230, 210, 0.18);
  border-top: none;
  padding: 7px 20px 8px;
  min-width: 173px;
  justify-content: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 9px 28px rgba(0, 0, 0, 0.2);
}
.timer-block strong { font-family: var(--font-mono); font-weight: 400; font-size: 23px; letter-spacing: 0.06em; color: var(--paper); text-shadow: 0 0 20px rgba(238, 230, 210, 0.22); }
.timer-block.is-low strong { color: #e39472; animation: lowTime 1s ease-in-out infinite; }
@keyframes lowTime { 50% { opacity: 0.55; } }
.compass { margin-top: 10px; display: flex; flex-direction: column; align-items: center; width: 370px; position: relative; }
.compass-window { width: 100%; height: 26px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.compass-strip { display: flex; align-items: flex-start; height: 100%; will-change: transform; transition: transform 0.08s linear; }
.compass-tick { flex: 0 0 26px; height: 7px; border-left: 1px solid rgba(238, 230, 210, 0.22); position: relative; }
.compass-tick.major { border-left-color: rgba(238, 230, 210, 0.55); height: 10px; }
.compass-tick span {
  position: absolute;
  top: 12px;
  left: -14px;
  width: 28px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.07em;
  color: rgba(238, 230, 210, 0.37);
}
.compass-tick.major span { color: var(--paper); font-size: 9px; }
.compass-tick.cardinal span { color: var(--accent-2); font-size: 10px; font-weight: 600; }
.compass-needle {
  position: absolute;
  bottom: -1px;
  left: 50%;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--accent);
  transform: translateX(-50%);
  filter: drop-shadow(0 0 4px var(--accent));
}
.compass-bearing {
  position: absolute;
  top: 93px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(238, 230, 210, 0.36);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.hud-top-right { position: absolute; top: 26px; right: 32px; text-align: right; }
.score-block { display: flex; align-items: baseline; justify-content: flex-end; gap: 12px; }
.score-block strong { font-family: var(--font-mono); font-weight: 300; font-size: 33px; line-height: 1; letter-spacing: 0.05em; text-shadow: 0 2px 22px rgba(0, 0, 0, 0.42); }
.score-sub { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 7px; color: rgba(238, 230, 210, 0.48); font-size: 8px; letter-spacing: 0.09em; }
.score-sub i { width: 2px; height: 2px; border-radius: 50%; background: var(--line-strong); }
.sound-toggle {
  pointer-events: auto;
  position: relative;
  margin-top: 10px;
  width: 28px;
  height: 25px;
  border: 1px solid rgba(238, 230, 210, 0.14);
  background: rgba(6, 12, 9, 0.4);
  color: var(--paper-dim);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}
.sound-toggle:hover { border-color: var(--accent); color: var(--accent); }
.sound-toggle svg { width: 14px; fill: currentColor; }
.sound-toggle.is-muted { opacity: 0.4; }
.sound-toggle.is-muted::after { content: ""; position: absolute; width: 19px; height: 1px; background: var(--danger); transform: rotate(-45deg); }

.side-feed {
  position: absolute;
  right: 32px;
  top: 44%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  width: 300px;
}
.feed-item {
  position: relative;
  width: 100%;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  padding: 7px 10px;
  background: linear-gradient(90deg, transparent, rgba(5, 11, 8, 0.65));
  border-right: 1px solid var(--accent);
  color: var(--paper-dim);
  font-size: 9px;
  letter-spacing: 0.05em;
  animation: feedIn 0.35s var(--ease) both;
  text-align: right;
}
.feed-item.is-out { animation: feedOut 0.4s var(--ease) both; }
.feed-item b { color: var(--accent); font-weight: 500; }
.feed-item .feed-score { font-family: var(--font-mono); color: var(--accent-2); font-size: 10px; margin-left: 6px; }
.feed-item.alert { border-right-color: var(--danger); }
.feed-item.alert b { color: var(--danger); }
@keyframes feedIn { from { opacity: 0; transform: translateX(20px); } }
@keyframes feedOut { to { opacity: 0; transform: translateX(14px); } }

.hud-bottom-left { position: absolute; left: 33px; bottom: 28px; width: 290px; }
.weapon-line { display: flex; align-items: center; gap: 8px; color: rgba(238, 230, 210, 0.38); font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.15em; }
.weapon-line i { width: 20px; height: 1px; background: var(--line-strong); }
.weapon-line #weapon-name { color: rgba(238, 230, 210, 0.72); letter-spacing: 0.09em; font-family: var(--font-ui); font-size: 10px; }
.ammo-display { display: flex; align-items: baseline; margin-top: 4px; text-shadow: 0 3px 18px rgba(0, 0, 0, 0.5); }
#ammo-mag { font-family: var(--font-mono); font-size: 47px; line-height: 1; font-weight: 300; letter-spacing: -0.03em; }
.ammo-sep { font-family: var(--font-mono); font-size: 19px; color: rgba(238, 230, 210, 0.27); margin: 0 7px; }
#ammo-reserve { font-family: var(--font-mono); font-size: 17px; color: rgba(238, 230, 210, 0.5); }
.ammo-label { margin-left: 12px; color: var(--muted); font-size: 8px; letter-spacing: 0.2em; }
.reload-track { width: 180px; height: 2px; background: rgba(238, 230, 210, 0.12); margin-top: 7px; opacity: 0; transition: opacity 0.2s; }
.reload-track.is-reloading { opacity: 1; }
.reload-track i { display: block; width: 0%; height: 100%; background: var(--accent); box-shadow: 0 0 7px var(--accent); }
.weapon-hint { margin-top: 9px; color: rgba(238, 230, 210, 0.32); font-size: 8px; letter-spacing: 0.08em; }

.hud-bottom-right { position: absolute; right: 32px; bottom: 28px; display: flex; flex-direction: column; align-items: flex-end; gap: 9px; }
.weapon-slots { display: flex; gap: 6px; pointer-events: auto; }
.weapon-slot {
  position: relative;
  width: 214px;
  height: 58px;
  border: 1px solid rgba(238, 230, 210, 0.11);
  background: linear-gradient(145deg, rgba(5, 11, 8, 0.68), rgba(5, 11, 8, 0.35));
  color: rgba(238, 230, 210, 0.5);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  cursor: pointer;
  text-align: left;
  backdrop-filter: blur(8px);
  transition: border-color 0.22s, background 0.22s, color 0.22s, transform 0.22s var(--ease);
}
.weapon-slot:hover { border-color: rgba(238, 230, 210, 0.25); transform: translateY(-1px); }
.weapon-slot.is-active { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: linear-gradient(145deg, rgba(10, 20, 15, 0.9), rgba(6, 12, 9, 0.5)); color: var(--paper-dim); box-shadow: inset 2px 0 0 var(--accent), 0 5px 20px rgba(0, 0, 0, 0.3); }
.slot-number { position: absolute; top: 5px; left: 5px; font-family: var(--font-mono); font-size: 8px; color: rgba(238, 230, 210, 0.4); }
.weapon-slot.is-active .slot-number { color: var(--accent); }
.slot-icon { width: 53px; height: 25px; flex: 0 0 53px; margin-top: 5px; opacity: 0.55; }
.weapon-slot.is-active .slot-icon { opacity: 0.95; }
.slot-icon svg { width: 100%; height: 100%; fill: currentColor; }
.slot-info { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.slot-info b { font-size: 11px; letter-spacing: 0.08em; font-weight: 500; }
.slot-info small { font-size: 8px; letter-spacing: 0.05em; color: var(--muted); }
.slot-ammo { align-self: flex-end; font-family: var(--font-mono); font-size: 8px; color: rgba(238, 230, 210, 0.38); white-space: nowrap; }
.weapon-slot.is-active .slot-ammo { color: var(--accent-2); }
.hud-hint { color: rgba(238, 230, 210, 0.35); font-size: 8px; letter-spacing: 0.06em; }
.hud-hint kbd { min-width: 1.5em; height: 1.45em; font-size: 7.5px; }

/* crosshair */
.crosshair {
  --spread: 7px;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  transform: translate(-50%, -50%);
  opacity: 0.95;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.95));
  transition: opacity 0.15s;
}
.ch-dot { position: absolute; left: 50%; top: 50%; width: 3px; height: 3px; margin: -1.5px; border-radius: 50%; background: #fff8e8; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45), 0 0 5px rgba(0, 0, 0, 0.75); }
.ch-line { position: absolute; background: rgba(255, 248, 232, 0.94); box-shadow: 0 0 2px rgba(0, 0, 0, 0.9), 0 0 6px rgba(0, 0, 0, 0.55); transition: transform 0.12s var(--ease); }
.ch-top, .ch-bottom { width: 1px; height: 8px; left: 50%; }
.ch-left, .ch-right { height: 1px; width: 8px; top: 50%; }
.ch-top { top: calc(50% - var(--spread) - 8px); }
.ch-bottom { bottom: calc(50% - var(--spread) - 8px); }
.ch-left { left: calc(50% - var(--spread) - 8px); }
.ch-right { right: calc(50% - var(--spread) - 8px); }
.ch-ring { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px; border: 1px solid rgba(255, 248, 232, 0.23); border-radius: 50%; box-shadow: 0 0 3px rgba(0, 0, 0, 0.55); }
body.scoped .crosshair { opacity: 0; }
body.scoped .hud-bottom-left, body.scoped .hud-bottom-right, body.scoped .side-feed { opacity: 0.25; }
body.scoped .hud-top-left, body.scoped .hud-top-right { opacity: 0.62; }
.hud-bottom-left, .hud-bottom-right, .side-feed, .hud-top-left, .hud-top-right { transition: opacity 0.25s; }

.hitmarker {
  position: absolute;
  left: 50%; top: 50%;
  width: 34px; height: 34px;
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0;
}
.hitmarker i { position: absolute; width: 9px; height: 1px; background: #fff; box-shadow: 0 0 4px rgba(0, 0, 0, 0.9); }
.hitmarker i:nth-child(1) { left: 0; top: 6px; transform: rotate(45deg); }
.hitmarker i:nth-child(2) { right: 0; top: 6px; transform: rotate(-45deg); }
.hitmarker i:nth-child(3) { left: 0; bottom: 6px; transform: rotate(-45deg); }
.hitmarker i:nth-child(4) { right: 0; bottom: 6px; transform: rotate(45deg); }
.hitmarker.show { animation: hitmark 0.3s var(--ease); }
.hitmarker.head i, .hitmarker.vital i { background: var(--accent-2); }
@keyframes hitmark { 0% { opacity: 1; transform: translate(-50%, -50%) scale(0.7); } 40% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1); } }
.shot-feedback {
  position: absolute;
  left: 50%; top: calc(50% + 40px);
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--accent-2);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.shot-feedback.show { opacity: 1; }

.interaction {
  position: absolute;
  left: 50%;
  bottom: 138px;
  transform: translateX(-50%) translateY(8px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 13px 8px 8px;
  border: 1px solid rgba(238, 230, 210, 0.2);
  background: rgba(5, 11, 8, 0.72);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s var(--ease);
}
.interaction.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.interaction.cooldown .interaction-key { border-color: var(--danger); color: var(--danger); }
.interaction.cooldown b { color: var(--danger); }
.interaction-key { width: 27px; height: 27px; border: 1px solid var(--accent); color: var(--accent); display: grid; place-items: center; font-family: var(--font-mono); font-size: 11px; }
.interaction span:last-child { display: flex; flex-direction: column; gap: 2px; }
.interaction b { font-size: 10px; letter-spacing: 0.08em; font-weight: 500; }
.interaction small { color: var(--muted); font-size: 8px; letter-spacing: 0.04em; }
.lock-hint {
  position: absolute;
  left: 50%;
  top: calc(50% + 110px);
  transform: translateX(-50%);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border: 1px solid rgba(238, 230, 210, 0.2);
  background: rgba(5, 11, 8, 0.72);
  color: var(--paper-dim);
  font-size: 9px;
  letter-spacing: 0.08em;
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.lock-hint.show { opacity: 1; }
body.fallback-aim .crosshair { opacity: 0.95; }
body.fallback-aim .lock-hint { border-color: rgba(227, 188, 109, 0.55); }
.lock-icon {
  width: 15px; height: 11px;
  border: 1px solid var(--accent);
  position: relative;
  display: inline-block;
}
.lock-icon::before {
  content: "";
  position: absolute;
  left: 3px; top: -7px;
  width: 7px; height: 7px;
  border: 1px solid var(--accent);
  border-bottom: none;
  border-radius: 5px 5px 0 0;
}

/* 未锁定鼠标时的“点击画面”引导：点击后会申请 Pointer Lock */
.aim-gate {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: auto;
  cursor: pointer;
  background: radial-gradient(circle at 50% 46%, rgba(3, 8, 5, 0.1), rgba(3, 8, 5, 0.55));
  animation: aimGateIn 0.25s var(--ease);
}
.aim-gate-card {
  margin-top: 10vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 30px 18px;
  max-width: min(86vw, 430px);
  border: 1px solid rgba(238, 230, 210, 0.22);
  background: rgba(5, 11, 8, 0.8);
  backdrop-filter: blur(14px);
  text-align: center;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.5);
}
.aim-gate-card strong { font-size: 15px; font-weight: 500; letter-spacing: 0.16em; color: var(--paper); }
.aim-gate-card small { color: var(--muted); font-size: 9px; letter-spacing: 0.06em; line-height: 1.7; }
.aim-gate-card kbd { min-width: 1.6em; height: 1.5em; font-size: 8px; }
.aim-gate-mouse {
  position: relative;
  width: 20px; height: 30px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  margin-bottom: 2px;
}
.aim-gate-mouse::before {
  content: "";
  position: absolute;
  left: 50%; top: 5px;
  width: 1px; height: 6px;
  margin-left: -0.5px;
  background: var(--accent);
  animation: aimGateWheel 1.5s ease-in-out infinite;
}
.aim-gate-mouse::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 3px; height: 3px;
  margin: -1.5px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 6px var(--accent-2);
}
.aim-gate-skip {
  margin-top: 3px;
  padding: 6px 12px;
  border: 1px solid rgba(238, 230, 210, 0.2);
  background: rgba(238, 230, 210, 0.04);
  color: var(--paper-dim);
  font-size: 9px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.aim-gate-skip:hover { border-color: var(--accent); color: var(--paper); }
@keyframes aimGateIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes aimGateWheel { 0%, 100% { opacity: 0.3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(3px); } }
body.is-touch .aim-gate { display: none !important; }

.objective-tip {
  position: absolute;
  left: 33px;
  bottom: 222px;
  width: 342px;
  padding: 13px 38px 13px 45px;
  background: linear-gradient(100deg, rgba(7, 14, 10, 0.7), rgba(7, 14, 10, 0.2));
  border-left: 1px solid var(--accent-2);
  backdrop-filter: blur(8px);
  transition: opacity 0.35s, transform 0.35s var(--ease);
}
.objective-tip.is-hidden { opacity: 0; transform: translateX(-12px); pointer-events: none; }
.tip-index { position: absolute; left: 13px; top: 15px; font-family: var(--font-mono); font-size: 8px; color: var(--accent-2); }
.objective-tip b { display: block; font-size: 10px; letter-spacing: 0.1em; font-weight: 500; }
.objective-tip p { margin: 4px 0 0; color: rgba(207, 200, 182, 0.57); font-size: 9px; line-height: 1.55; }
.objective-tip button { position: absolute; right: 7px; top: 5px; background: none; border: none; color: rgba(238, 230, 210, 0.4); cursor: pointer; font-size: 17px; pointer-events: auto; padding: 4px 7px; }
.objective-tip button:hover { color: var(--paper); }
.hud-alert {
  position: absolute;
  top: 152px;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px 8px 8px;
  border: 1px solid rgba(194, 118, 95, 0.35);
  background: rgba(15, 10, 7, 0.6);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s var(--ease);
}
.hud-alert.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.hud-alert > span { width: 23px; height: 23px; display: grid; place-items: center; border: 1px solid var(--danger); color: var(--danger); font-family: var(--font-mono); font-size: 13px; }
.hud-alert div { display: flex; flex-direction: column; gap: 2px; }
.hud-alert b { font-size: 9px; letter-spacing: 0.1em; color: #e4b29f; font-weight: 500; }
.hud-alert small { font-size: 8px; color: rgba(207, 200, 182, 0.5); }

/* ───────────────────────── world labels ───────────────────────── */
.world-labels { position: fixed; inset: 0; z-index: 18; pointer-events: none; overflow: hidden; transition: opacity 0.18s; }
body.scoped .world-labels { opacity: 0; }
.animal-tag {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transform: translate(-50%, -100%);
  opacity: 0;
  transition: opacity 0.3s;
  width: 104px;
}
.animal-tag.show { opacity: 1; }
.animal-tag .animal-head { display: flex; align-items: center; gap: 5px; color: rgba(238, 230, 210, 0.82); font-size: 8px; letter-spacing: 0.08em; text-shadow: 0 1px 6px #000; white-space: nowrap; }
.animal-tag .alert-glyph {
  width: 15px; height: 15px; display: grid; place-items: center;
  border: 1px solid var(--accent-2); color: var(--accent-2); border-radius: 50%;
  font-family: var(--font-mono); font-size: 9px; font-weight: 600;
  background: rgba(5, 10, 7, 0.35);
}
.animal-tag.is-flee .alert-glyph { border-color: var(--danger); color: #f0b09b; animation: alertBlink 0.6s ease-in-out infinite; }
@keyframes alertBlink { 50% { opacity: 0.3; } }
.animal-tag .aware-track { width: 60px; height: 2px; background: rgba(0, 0, 0, 0.35); overflow: hidden; }
.animal-tag .aware-track i { display: block; height: 100%; width: 0%; background: var(--accent-2); box-shadow: 0 0 5px var(--accent-2); }
.animal-tag.is-flee .aware-track i { background: var(--danger); }
.animal-tag .animal-zone { font-family: var(--font-mono); font-size: 7px; letter-spacing: 0.1em; color: rgba(238, 230, 210, 0.35); }
.score-pop {
  position: absolute;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 17px;
  letter-spacing: 0.03em;
  color: var(--accent-2);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
  animation: scoreFloat 1.2s var(--ease) both;
}
.score-pop small { display: block; text-align: center; font-family: var(--font-ui); font-size: 8px; letter-spacing: 0.12em; color: var(--paper); opacity: 0.8; margin-top: 2px; }
.score-pop.vital { color: var(--accent); }
.score-pop.capture { font-size: 22px; color: var(--paper); }
@keyframes scoreFloat { 0% { opacity: 0; transform: translate(-50%, -20%) scale(0.8); } 18% { opacity: 1; transform: translate(-50%, -55%) scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -115%) scale(0.96); } }

/* ═══════════════════════════ scope ═══════════════════════════ */
.scope-overlay {
  position: fixed;
  inset: 0;
  z-index: 15;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s var(--ease);
}
body.scoped .scope-overlay { opacity: 1; visibility: visible; }
.scope-mask {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 min(31vw, 41vh), rgba(2, 4, 3, 0.16) min(31vw, 41vh), rgba(2, 4, 3, 0.6) calc(min(31vw, 41vh) + 1px), #020403 calc(min(31vw, 41vh) + 22px), #000 100%);
}
.scope-lens {
  position: absolute;
  left: 50%; top: 50%;
  width: min(62vw, 82vh);
  height: min(62vw, 82vh);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(226, 234, 218, 0.22),
    0 0 0 9px rgba(0, 0, 0, 0.42),
    0 0 0 12px rgba(180, 190, 175, 0.12),
    inset 0 0 70px 26px rgba(0, 0, 0, 0.7),
    inset 0 0 12px 2px rgba(6, 9, 7, 0.9);
  background: radial-gradient(circle at 50% 46%, rgba(128, 163, 124, 0.035), rgba(6, 9, 6, 0.14) 70%, rgba(0, 0, 0, 0.48) 100%);
}
.scope-dust { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.52; mix-blend-mode: screen; pointer-events: none; }
.scope-reticle { position: absolute; inset: 0; }
.sr { position: absolute; background: rgba(10, 14, 10, 0.88); }
.sr.horizontal { left: 0; right: 0; top: 50%; height: 1px; }
.sr.vertical { top: 0; bottom: 0; left: 50%; width: 1px; }
.sr-center { position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px; border: 1px solid rgba(9, 13, 9, 0.95); border-radius: 50%; box-shadow: 0 0 0 1px rgba(238, 230, 210, 0.22); }
.sr-dot { position: absolute; left: 50%; width: 3px; height: 3px; margin-left: -1.5px; border-radius: 50%; background: rgba(9, 13, 9, 0.9); }
.sr-dot.d1 { top: calc(50% + 5.8%); }
.sr-dot.d2 { top: calc(50% + 11.6%); }
.sr-dot.d3 { top: calc(50% + 17.4%); }
.sr-dot.d4 { top: calc(50% + 23.2%); }
.sr-tick { position: absolute; top: 50%; width: 8px; height: 1px; background: rgba(9, 13, 9, 0.9); }
.sr-tick.t1 { left: 15%; } .sr-tick.t2 { left: 25%; } .sr-tick.t3 { right: 15%; } .sr-tick.t4 { right: 25%; }
.scope-data { position: absolute; top: 25%; display: flex; flex-direction: column; gap: 3px; color: rgba(10, 14, 10, 0.82); }
.scope-data-left { left: 14%; }
.scope-data-right { right: 14%; text-align: right; }
.scope-data strong { font-family: var(--font-mono); font-size: 18px; font-weight: 400; letter-spacing: 0.05em; }
.scope-data strong em { font-size: 10px; font-style: normal; }
.scope-small { font-family: var(--font-mono); font-size: 7px; letter-spacing: 0.12em; opacity: 0.7; }
.scope-scale { position: absolute; left: 50%; bottom: 16%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 18px; align-items: center; }
.scope-scale span { color: rgba(10, 14, 10, 0.58); font-family: var(--font-mono); font-size: 7px; }
.scope-scale span::before { content: ""; display: inline-block; width: 9px; height: 1px; background: currentColor; margin-right: 5px; vertical-align: 2px; }
.scope-edge { position: absolute; inset: 0; box-shadow: inset 0 0 160px rgba(0, 0, 0, 0.9); }
body.scoped .hud-hint, body.scoped .weapon-hint, body.scoped .objective-tip { opacity: 0.2; }

/* ═══════════════════════════ feedback ═══════════════════════════ */
.vital-flash {
  position: fixed;
  left: 50%;
  top: 27%;
  z-index: 32;
  transform: translate(-50%, -10px);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s, transform 0.32s var(--ease);
}
.vital-flash.show { opacity: 1; transform: translate(-50%, 0); }
.vf-kicker { display: block; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.4em; color: var(--accent-2); margin-bottom: 7px; }
.vital-flash strong { display: block; font-family: var(--font-display); font-size: clamp(30px, 4vw, 54px); font-weight: 400; letter-spacing: 0.06em; color: #fff8e5; text-shadow: 0 0 40px rgba(128, 229, 216, 0.5), 0 4px 32px rgba(0, 0, 0, 0.8); }
.vital-flash em { font-style: normal; color: var(--accent-2); }
.vf-line { display: block; width: 120px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); margin: 13px auto 0; }
.xray-panel {
  position: fixed;
  z-index: 33;
  right: 36px;
  top: 22%;
  width: 334px;
  padding: 12px;
  border: 1px solid rgba(127, 233, 255, 0.32);
  background: linear-gradient(160deg, rgba(4, 16, 19, 0.9), rgba(2, 8, 9, 0.82));
  box-shadow: 0 0 60px rgba(48, 181, 205, 0.13), inset 0 0 35px rgba(54, 178, 200, 0.06);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateX(24px);
  pointer-events: none;
  transition: opacity 0.22s, transform 0.32s var(--ease);
}
.xray-panel.show { opacity: 1; transform: translateX(0); }
.xray-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(120, 230, 255, 0.035) 0 1px, transparent 1px 4px);
  pointer-events: none;
}
.xray-top, .xray-bottom { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 7.5px; letter-spacing: 0.13em; color: rgba(127, 233, 255, 0.8); }
.xray-live { color: #9df0ff; display: flex; align-items: center; gap: 4px; }
.xray-live i { width: 4px; height: 4px; border-radius: 50%; background: #8eeaff; box-shadow: 0 0 6px #8eeaff; animation: livePulse 1s infinite; }
.xray-body { display: flex; gap: 10px; align-items: stretch; padding: 8px 0; }
.xray-body > svg { width: 62%; height: auto; }
.xray-outline { fill: rgba(82, 187, 204, 0.07); stroke: rgba(124, 224, 241, 0.35); stroke-width: 1; }
.xray-spine { fill: none; stroke: rgba(150, 231, 245, 0.22); stroke-width: 1; }
.xray-lung { fill: rgba(95, 214, 235, 0.17); stroke: rgba(146, 237, 255, 0.65); stroke-width: 1; filter: url(#xglow); }
.xray-heart { fill: rgba(255, 163, 119, 0.25); stroke: #ffc29d; stroke-width: 1.1; filter: url(#xglow); animation: heartBeat 1.1s ease-in-out infinite; transform-origin: 111px 95px; }
.xray-target { fill: none; stroke: rgba(127, 233, 255, 0.55); stroke-width: 0.8; stroke-dasharray: 2 5; transform-origin: 111px 101px; animation: scanSpin 8s linear infinite; }
.xray-scan { opacity: 0.55; animation: xrayScan 2.3s linear infinite; }
.xray-caption { fill: rgba(146, 237, 255, 0.62); font-family: var(--font-mono); font-size: 7px; letter-spacing: 0.08em; }
@keyframes xrayScan { from { transform: translateY(-10px); } to { transform: translateY(170px); } }
@keyframes scanSpin { to { transform: rotate(360deg); } }
@keyframes heartBeat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.08); } 24% { transform: scale(1); } 34% { transform: scale(1.04); } }
.xray-side { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 2px; border-left: 1px solid rgba(127, 233, 255, 0.18); padding-left: 11px; }
.xray-side span { font-family: var(--font-mono); font-size: 6.5px; letter-spacing: 0.15em; color: rgba(127, 233, 255, 0.48); margin-top: 7px; }
.xray-side strong { font-size: 11px; font-weight: 500; letter-spacing: 0.05em; color: #d8fbff; }
.xray-side strong.cyan { color: #91efff; font-family: var(--font-mono); font-size: 18px; }
.xray-side strong.ok { color: #9be3b7; }
.xray-bottom { border-top: 1px solid rgba(127, 233, 255, 0.16); padding-top: 8px; color: rgba(127, 233, 255, 0.46); }

.capture-banner {
  position: fixed;
  left: 50%;
  top: 17%;
  z-index: 34;
  transform: translate(-50%, -10px) scale(0.96);
  padding: 14px 34px 13px;
  border-top: 1px solid var(--accent-2);
  border-bottom: 1px solid rgba(238, 230, 210, 0.14);
  background: linear-gradient(90deg, transparent, rgba(6, 12, 9, 0.72) 22%, rgba(6, 12, 9, 0.72) 78%, transparent);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s, transform 0.4s var(--ease);
}
.capture-banner.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.cap-kicker { display: block; font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.3em; color: var(--accent-2); }
.capture-banner strong { display: block; margin: 5px 0 2px; font-family: var(--font-display); font-size: 31px; letter-spacing: 0.18em; font-weight: 400; color: #fff9e9; }
.cap-sub { display: block; color: rgba(238, 230, 210, 0.55); font-size: 9px; letter-spacing: 0.12em; }
.damage-flash { position: fixed; inset: 0; z-index: 31; pointer-events: none; opacity: 0; background: radial-gradient(circle, transparent 45%, rgba(140, 34, 16, 0.6)); transition: opacity 0.15s; }

/* ═══════════════════════════ modals ═══════════════════════════ */
.modal-screen { z-index: 60; display: grid; place-items: center; }
.modal-veil { position: absolute; inset: 0; background: rgba(2, 6, 4, 0.6); backdrop-filter: blur(8px) saturate(0.75); }
.modal-card {
  position: relative;
  width: min(620px, 90vw);
  max-height: 90vh;
  overflow-y: auto;
  padding: clamp(26px, 4vw, 48px);
  background: linear-gradient(155deg, rgba(11, 20, 15, 0.97), rgba(6, 12, 9, 0.94));
  border: 1px solid rgba(238, 230, 210, 0.18);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: cardIn 0.45s var(--ease) both;
  scrollbar-width: thin;
  scrollbar-color: rgba(238, 230, 210, 0.2) transparent;
}
.modal-card::before, .modal-card::after { content: ""; position: absolute; width: 8px; height: 8px; border: 1px solid var(--accent-2); }
.modal-card::before { left: -1px; top: -1px; border-right: none; border-bottom: none; }
.modal-card::after { right: -1px; bottom: -1px; border-left: none; border-top: none; }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px) scale(0.985); } }
.modal-eyebrow { color: var(--accent-2); font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.28em; margin-bottom: 12px; }
.modal-card h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(32px, 4vw, 46px); letter-spacing: 0.12em; }
.modal-card > p { color: var(--muted); font-size: 10px; line-height: 1.7; letter-spacing: 0.05em; margin: 8px 0 0; }
.pause-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 26px 0 22px; }
.pause-stats > div { background: #0b1410; padding: 13px 14px; display: flex; flex-direction: column; gap: 3px; }
.pause-stats span { color: var(--muted); font-size: 8px; letter-spacing: 0.11em; }
.pause-stats strong { font-family: var(--font-mono); font-size: 21px; font-weight: 300; letter-spacing: 0.04em; }
.sensitivity-row { display: flex; align-items: center; gap: 13px; margin: 18px 0 25px; color: var(--muted); font-size: 9px; letter-spacing: 0.08em; }
.sensitivity-row label { flex: 0 0 auto; }
.sensitivity-row input { flex: 1; height: 2px; appearance: none; background: rgba(238, 230, 210, 0.16); outline: none; }
.sensitivity-row input::-webkit-slider-thumb { appearance: none; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); cursor: pointer; box-shadow: 0 0 9px rgba(128, 229, 216, 0.5); }
.sensitivity-row input::-moz-range-thumb { width: 11px; height: 11px; border: none; border-radius: 50%; background: var(--accent); cursor: pointer; }
.sensitivity-row span { width: 45px; text-align: right; font-family: var(--font-mono); color: var(--paper-dim); }
.modal-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.ghost-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: rgba(238, 230, 210, 0.62);
  padding: 13px 18px;
  cursor: pointer;
  font-size: 10px;
  letter-spacing: 0.1em;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.ghost-btn:hover { border-color: var(--line-strong); color: var(--paper); background: rgba(255, 255, 255, 0.04); }
.pause-foot { margin-top: 20px; color: rgba(207, 200, 182, 0.3); font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.09em; }

.report-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.report-head p { margin: 7px 0 0; color: var(--muted); font-size: 10px; letter-spacing: 0.05em; }
.rank-badge { flex: 0 0 77px; height: 88px; border: 1px solid var(--accent-2); display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(160deg, rgba(227, 188, 109, 0.12), transparent); position: relative; }
.rank-badge::after { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(227, 188, 109, 0.22); }
.rank-badge span { font-family: var(--font-mono); font-size: 7px; letter-spacing: 0.2em; color: var(--accent-2); }
.rank-badge strong { font-family: var(--font-display); font-size: 40px; font-weight: 400; color: var(--paper); line-height: 1; margin-top: 3px; }
.report-score { margin: 26px 0 24px; padding: 18px 20px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.022); display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.report-score > span { color: var(--muted); font-size: 9px; letter-spacing: 0.13em; }
.report-score > strong { font-family: var(--font-mono); font-weight: 300; font-size: 42px; line-height: 1; letter-spacing: 0.03em; }
.report-mode { margin-left: auto; color: var(--accent); font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.12em; border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); padding: 4px 6px; }
.report-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 22px; }
.report-grid > div { background: #0a130f; padding: 11px 13px; display: flex; flex-direction: column; gap: 3px; }
.report-grid span { color: var(--muted); font-size: 8px; letter-spacing: 0.08em; }
.report-grid strong { font-family: var(--font-mono); font-size: 17px; font-weight: 300; }
.report-quote { color: rgba(238, 230, 210, 0.48); font-family: var(--font-display); font-size: 14px; letter-spacing: 0.06em; margin-bottom: 23px; }

/* ───────────────────────── mobile / misc ───────────────────────── */
.mobile-warning { position: fixed; z-index: 200; inset: 0; display: grid; place-items: center; background: #060c08; padding: 30px; }
.mobile-warning > div { max-width: 360px; border-left: 1px solid var(--accent-2); padding: 14px 0 14px 20px; }
.mobile-warning strong { display: block; font-family: var(--font-display); font-size: 27px; font-weight: 400; letter-spacing: 0.08em; }
.mobile-warning p { color: var(--muted); font-size: 11px; line-height: 1.7; }
.fade { position: fixed; inset: 0; z-index: 120; background: #030805; opacity: 0; pointer-events: none; transition: opacity 0.5s var(--ease); }
.fade.show { opacity: 1; }
body.locked { cursor: none; }
body:not(.locked) .crosshair { opacity: 0.2; }

@media (max-width: 1180px) {
  .start-grid { grid-template-columns: minmax(0, 1fr) minmax(360px, 410px); gap: 4vw; }
  .title-en { font-size: clamp(70px, 10vw, 120px); }
  .hero-meta > div { padding-right: 18px; margin-right: 18px; }
  .weapon-slot { width: 186px; }
  .hud-bottom-left { width: 250px; }
}
@media (max-width: 900px) {
  .start-grid { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 25px; padding-top: 6vh; overflow-y: auto; }
  .hero-copy { max-width: none; }
  .hero-meta, .hero-controls { display: none; }
  .title-en { font-size: clamp(70px, 16vw, 110px); }
  .title-cn { font-size: clamp(38px, 8vw, 58px); margin-top: 17px; }
  .hero-lede { font-size: 16px; margin-top: 20px; }
  .start-panel { width: min(480px, 100%); margin: 0 auto; }
  .menu-footer-center { display: none; }
  .compass { width: 280px; }
  .hud-top-left { top: 18px; left: 18px; }
  .hud-top-right { top: 18px; right: 18px; }
  .side-feed { display: none; }
  .hud-bottom-right { right: 18px; bottom: 18px; }
  .hud-bottom-left { left: 18px; bottom: 18px; }
  .weapon-slot { width: 150px; height: 52px; }
  .slot-icon { width: 38px; flex-basis: 38px; }
  .slot-info small, .slot-ammo { display: none; }
  .objective-tip { left: 18px; bottom: 170px; width: 290px; }
  .xray-panel { width: 280px; right: 14px; }
}
@media (pointer: coarse) {
  #mobile-warning:not(.hidden) { display: grid; }
}

/* ═══════════════════════════ V2 · DAILY / CONTRACTS / FIELD DATA ═══════════════════════════ */
.start-action-stack { display: flex; flex-direction: column; gap: 8px; margin-top: 19px; }
.start-action-stack .primary-btn { margin-top: 0; }
.daily-btn {
  position: relative;
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--accent-2) 35%, transparent);
  background: linear-gradient(100deg, rgba(227, 188, 109, 0.10), rgba(255, 255, 255, 0.025));
  color: var(--paper-dim);
  padding: 11px 42px 11px 16px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.22s, background 0.22s, transform 0.22s var(--ease);
}
.daily-btn:hover { border-color: var(--accent-2); background: rgba(227, 188, 109, 0.14); transform: translateY(-1px); }
.daily-btn-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--accent-2); font-size: 12px; letter-spacing: 0.12em; }
.daily-btn-top #daily-date { font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.08em; opacity: 0.72; }
.daily-btn-sub { display: block; margin-top: 3px; color: rgba(238, 230, 210, 0.5); font-size: 8px; letter-spacing: 0.06em; }
.daily-btn-best { display: block; margin-top: 4px; color: var(--muted); font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.04em; }
.daily-btn-best b { color: var(--paper-dim); font-weight: 500; }
.daily-btn-arrow { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--accent-2); font-weight: 300; }
.start-foot-actions { display: flex; align-items: center; gap: 14px; }

.hud-contracts {
  position: absolute;
  top: 105px;
  left: 34px;
  width: 300px;
  padding: 10px 12px 11px;
  border-left: 1px solid var(--accent-2);
  background: linear-gradient(100deg, rgba(4, 10, 7, 0.86), rgba(4, 10, 7, 0.52));
  backdrop-filter: blur(8px);
  transition: opacity 0.25s;
}
.hud-alert { top: 184px; }
.contracts-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 7px; border-bottom: 1px solid rgba(238, 230, 210, 0.12); color: rgba(238, 230, 210, 0.5); font-family: var(--font-mono); font-size: 7.5px; letter-spacing: 0.12em; }
.contracts-tally { color: var(--accent-2); white-space: nowrap; }
.contracts-tally strong { color: var(--accent-2); font-size: 12px; font-weight: 400; }
.contracts-tally i { font-style: normal; color: var(--accent-2); }
.contract-list { display: flex; flex-direction: column; gap: 5px; padding-top: 7px; }
.contract-item { display: grid; grid-template-columns: 13px 1fr auto; gap: 7px; align-items: start; opacity: 0.9; }
.contract-item .c-mark { width: 11px; height: 11px; margin-top: 3px; border: 1px solid rgba(238, 230, 210, 0.3); border-radius: 50%; display: grid; place-items: center; }
.contract-item .c-mark::after { content: ""; width: 3px; height: 3px; border-radius: 50%; background: transparent; }
.contract-item.done .c-mark { border-color: var(--accent-2); background: rgba(227, 188, 109, 0.15); }
.contract-item.done .c-mark::after { background: var(--accent-2); box-shadow: 0 0 6px var(--accent-2); }
.contract-item.done .c-name { color: rgba(238, 230, 210, 0.45); }
.contract-item.done .c-name::after { content: " ✓"; color: var(--accent-2); }
.c-name { display: block; color: rgba(255, 248, 232, 0.92); font-size: 10px; letter-spacing: 0.04em; line-height: 1.35; }
.c-desc { display: block; color: rgba(207, 200, 182, 0.6); font-size: 8px; line-height: 1.45; margin-top: 1px; }
.c-progress { color: var(--accent-2); font-family: var(--font-mono); font-size: 8px; padding-top: 2px; }
body.scoped .hud-contracts { opacity: 0.24; }

.tracking-banner {
  position: absolute;
  top: 132px;
  left: 50%;
  transform: translate(-50%, -6px);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  border: 1px solid rgba(175, 98, 75, 0.45);
  background: linear-gradient(100deg, rgba(20, 10, 8, 0.78), rgba(7, 12, 9, 0.5));
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s var(--ease);
  white-space: nowrap;
}
.tracking-banner.show { opacity: 1; transform: translate(-50%, 0); }
.tracking-dot { width: 7px; height: 7px; border-radius: 50%; background: #c66f53; box-shadow: 0 0 10px #c66f53; animation: livePulse 1.3s infinite; }
body.mode-age .tracking-dot { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.tracking-copy { display: flex; flex-direction: column; gap: 1px; }
.tracking-copy b { font-size: 9px; color: #e7c2ae; font-weight: 500; letter-spacing: 0.06em; }
body.mode-age .tracking-copy b { color: var(--accent); }
.tracking-copy small { color: rgba(238, 230, 210, 0.5); font-size: 7.5px; letter-spacing: 0.04em; }
.tracking-arrow { display: inline-block; color: var(--accent-2); font-size: 17px; line-height: 1; width: 19px; text-align: center; transform-origin: 50% 50%; }

.field-meter {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  align-items: stretch;
  border: 1px solid rgba(238, 230, 210, 0.14);
  background: rgba(5, 11, 8, 0.56);
  backdrop-filter: blur(9px);
}
.field-cell { min-width: 92px; padding: 7px 10px 6px; display: flex; align-items: baseline; gap: 5px; border-right: 1px solid rgba(238, 230, 210, 0.1); }
.field-cell:last-child { border-right: none; }
.field-label { color: rgba(238, 230, 210, 0.36); font-family: var(--font-mono); font-size: 7px; letter-spacing: 0.13em; margin-right: 2px; }
.wind-arrow { display: inline-block; color: var(--accent); font-size: 14px; line-height: 1; transform-origin: 50% 50%; }
#wind-speed { color: var(--paper-dim); font-family: var(--font-mono); font-size: 11px; font-weight: 400; }
.wind-cell small { color: var(--muted); font-size: 7px; }
.noise-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 13px; }
.noise-bars i { width: 3px; height: 4px; background: rgba(238, 230, 210, 0.18); transition: background 0.15s, height 0.15s; }
.noise-bars i:nth-child(2) { height: 6px; }
.noise-bars i:nth-child(3) { height: 8px; }
.noise-bars i:nth-child(4) { height: 10px; }
.noise-bars i:nth-child(5) { height: 13px; }
.noise-bars i.on { background: var(--accent); }
.noise-bars i.on.high { background: var(--danger); }
.noise-cell small { color: var(--muted); font-size: 7px; }
.cover-cell strong { color: var(--paper-dim); font-size: 9px; font-weight: 500; letter-spacing: 0.04em; }
.cover-cell.covered strong { color: var(--accent); }
body.scoped .field-meter, body.scoped .tracking-banner { opacity: 0.3; }

.contract-toast {
  position: fixed;
  left: 50%;
  top: 19%;
  z-index: 35;
  transform: translate(-50%, -10px);
  padding: 11px 28px;
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid rgba(238, 230, 210, 0.13);
  background: linear-gradient(90deg, transparent, rgba(5, 12, 8, 0.82) 20%, rgba(5, 12, 8, 0.82) 80%, transparent);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.35s var(--ease);
}
.contract-toast.show { opacity: 1; transform: translate(-50%, 0); }
.contract-toast > span { display: block; color: var(--accent); font-family: var(--font-mono); font-size: 7.5px; letter-spacing: 0.26em; }
.contract-toast strong { display: block; margin-top: 4px; color: var(--paper); font-family: var(--font-display); font-size: 22px; font-weight: 400; letter-spacing: 0.08em; }
.contract-toast small { display: block; margin-top: 3px; color: var(--accent-2); font-family: var(--font-mono); font-size: 9px; }
body.scoped .contract-toast { opacity: 0; }

.star-result { display: flex; align-items: center; gap: 7px; margin-top: 12px; color: rgba(238, 230, 210, 0.18); font-size: 20px; letter-spacing: 0.12em; }
.star-result span.on { color: var(--accent-2); text-shadow: 0 0 18px rgba(227, 188, 109, 0.46); }
.star-result em { margin-left: 8px; color: var(--muted); font-family: var(--font-mono); font-size: 9px; font-style: normal; letter-spacing: 0.06em; }
.report-contracts { margin: 20px 0 0; border-top: 1px solid var(--line); padding-top: 14px; }
.report-section-head { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.11em; margin-bottom: 8px; }
.report-section-head strong { color: var(--accent-2); font-weight: 400; }
.over-contract { display: flex; justify-content: space-between; gap: 14px; padding: 5px 0; border-bottom: 1px solid rgba(238, 230, 210, 0.07); color: rgba(238, 230, 210, 0.62); font-size: 9px; }
.over-contract:last-child { border-bottom: none; }
.over-contract b { color: var(--accent-2); font-weight: 500; }
.over-contract.done { color: var(--paper-dim); }
.over-contract.fail { color: rgba(194, 118, 95, 0.8); }
.daily-result { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.submit-row { display: flex; gap: 8px; margin-top: 4px; }
.submit-row input { flex: 1; min-width: 0; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.035); color: var(--paper); padding: 10px 12px; font-size: 10px; letter-spacing: 0.05em; }
.submit-row input::placeholder { color: rgba(238, 230, 210, 0.28); }
.submit-row .ghost-btn { padding: 10px 13px; white-space: nowrap; }
.submit-status { margin: 7px 0 0; color: var(--muted); font-size: 8px; letter-spacing: 0.03em; }
.mini-leaderboard { list-style: none; padding: 0; margin: 8px 0 9px; }
.mini-leaderboard li { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid rgba(238, 230, 210, 0.07); font-size: 9px; color: var(--paper-dim); }
.mini-leaderboard li:last-child { border-bottom: none; }
.mini-leaderboard .lb-rank { width: 20px; color: var(--muted); font-family: var(--font-mono); font-size: 8px; }
.mini-leaderboard .lb-name { flex: 1; }
.mini-leaderboard .lb-stars { color: var(--accent-2); font-size: 8px; letter-spacing: 0.06em; }
.mini-leaderboard .lb-score { color: var(--accent-2); font-family: var(--font-mono); font-size: 10px; }
#over-leaderboard-btn { margin-top: 2px; padding-left: 0; }

.leaderboard-card { width: min(650px, 92vw); overflow-x: hidden; scrollbar-width: none; }
.leaderboard-card::-webkit-scrollbar { width: 0; height: 0; }
.lb-top-badge { flex: 0 0 67px; height: 72px; }
.lb-top-badge strong { font-size: 30px; }
.lb-source { margin: 18px 0 8px; color: var(--muted); font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.06em; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 8px 0; }
.lb-list { list-style: none; padding: 0; margin: 0 0 22px; overflow: hidden; }
.lb-list li { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-bottom: 1px solid rgba(238, 230, 210, 0.08); min-width: 0; }
.lb-list li:last-child { border-bottom: none; }
.lb-list .lb-rank { width: 28px; color: var(--accent-2); font-family: var(--font-mono); font-size: 11px; }
.lb-list .lb-name { flex: 1; min-width: 0; color: var(--paper-dim); font-size: 11px; letter-spacing: 0.06em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-list .lb-detail { color: var(--muted); font-family: var(--font-mono); font-size: 8px; }
.lb-list .lb-stars { color: var(--accent-2); letter-spacing: 0.08em; font-size: 10px; width: 38px; }
.lb-list .lb-score { color: var(--accent-2); font-family: var(--font-mono); font-size: 14px; min-width: 50px; text-align: right; }
.lb-list .lb-empty { justify-content: center; color: var(--muted); font-size: 10px; padding: 30px 0; }
.lb-you { background: rgba(128, 229, 216, 0.05); }
body.mode-realistic .lb-you { background: rgba(227, 188, 109, 0.06); }

#contracts-panel { transition: opacity 0.25s; }
@media (max-width: 1180px) {
  .hud-contracts { width: 260px; }
  .field-meter { transform: translateX(-50%) scale(0.94); transform-origin: bottom center; }
}
@media (max-height: 820px) {
  .start-panel { padding-top: 20px; padding-bottom: 20px; }
  .panel-topline { padding-bottom: 10px; }
  .start-panel h2 { margin-top: 16px; font-size: 25px; }
  .panel-sub { margin-bottom: 13px; }
  .mode-card { padding-top: 12px; padding-bottom: 11px; }
  .mode-desc { margin-top: 5px; }
  .daily-btn { padding-top: 8px; padding-bottom: 8px; }
  .start-action-stack { margin-top: 12px; gap: 6px; }
}
@media (max-width: 900px) {
  .hud-contracts { top: 78px; left: 18px; width: 245px; }
  .field-meter { bottom: 78px; transform: translateX(-50%) scale(0.88); transform-origin: bottom center; }
  .tracking-banner { top: 108px; }
  .start-foot-actions { gap: 9px; }
  .daily-btn-sub { display: none; }
}

/* V2 states */
.animal-tag.is-wounded .alert-glyph { border-color: var(--danger); color: #f3b09c; }
body.mode-age .animal-tag.is-wounded .alert-glyph { border-color: var(--accent); color: var(--accent); }
.animal-tag.is-wounded .aware-track i { background: var(--danger); box-shadow: 0 0 6px var(--danger); }
body.mode-age .animal-tag.is-wounded .aware-track i { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.animal-tag.is-wounded .animal-zone { color: rgba(243, 176, 156, 0.8); }
body.mode-age .animal-tag.is-wounded .animal-zone { color: rgba(128, 229, 216, 0.8); }

.hud-alert.danger { border-color: rgba(194, 84, 60, 0.65); background: rgba(28, 9, 6, 0.72); }
.hud-alert.danger > span { border-color: #e08a6e; color: #f3b09c; }
.hud-alert.danger b { color: #f3b09c; }
.damage-flash.show { opacity: 1; }
body.is-damaged #viewport { filter: saturate(0.75) brightness(0.85); }
.lb-list .lb-empty { justify-content: center; color: var(--muted); font-size: 10px; padding: 26px 0; }
.over-contract span { max-width: 78%; line-height: 1.5; }
#over-stars { margin-bottom: 4px; }
#over-leaderboard-btn { background: none; border: none; color: var(--muted); text-align: left; cursor: pointer; }
#over-leaderboard-btn:hover { color: var(--paper); }
.daily-result .report-section-head { margin-bottom: 10px; }

/* Compact report: every block has a named cell, so there are no auto-placement gaps. */
.over-card {
  width: min(920px, 94vw);
  max-height: 94vh;
  padding: clamp(20px, 2.4vw, 30px);
  scrollbar-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  grid-template-areas:
    "eyebrow eyebrow"
    "head head"
    "score contracts"
    "stars contracts"
    "stats contracts"
    "objectives daily"
    "story daily"
    "legendary daily"
    "quote quote"
    "actions actions";
  column-gap: clamp(16px, 2.4vw, 28px);
  row-gap: 3px;
  align-items: start;
  overflow-x: hidden;
}
.over-card:not(:has(.report-contracts:not(.hidden), .daily-result:not(.hidden))) {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "eyebrow"
    "head"
    "score"
    "stars"
    "stats"
    "objectives"
    "story"
    "legendary"
    "quote"
    "actions";
}
/* Daily run: keep the leaderboard full-width under the two report columns. */
.over-card:has(.daily-result:not(.hidden)) {
  grid-template-areas:
    "eyebrow eyebrow"
    "head head"
    "score contracts"
    "stars contracts"
    "stats daily"
    "story story"
    "legendary legendary"
    "quote quote"
    "actions actions";
}
.over-card > * { min-width: 0; }
.over-card::-webkit-scrollbar { width: 0; height: 0; }
.over-card > .modal-eyebrow { grid-area: eyebrow; }
.over-card > .report-head { grid-area: head; }
.over-card > .result-strip { grid-area: score; margin-top: 0; }
.over-card > .star-result { grid-area: stars; margin-top: 4px; }
.over-card > .report-grid { grid-area: stats; margin: 2px 0 0; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.over-card > .report-grid > div { padding: 9px 12px; }
.over-card > .report-objectives { grid-area: objectives; margin-top: 5px; padding-top: 8px; }
.over-card > .over-story { grid-area: story; margin-top: 5px; padding: 10px 12px; }
.over-card > .over-legendary { grid-area: legendary; margin-top: 5px; }
.over-card > .report-contracts { grid-area: contracts; margin: 0; padding: 0; border-top: none; }
.over-card > .daily-result { grid-area: daily; margin: 6px 0 0; padding: 8px 0 0; border-top: 1px solid var(--line); }
.over-card > .report-quote { grid-area: quote; margin: 9px 0 9px; }
.over-card > .modal-actions { grid-area: actions; margin-top: 2px; }
@media (max-width: 1040px) {
  .over-card { display: block; width: min(650px, 92vw); overflow-x: hidden; }
  .over-card:not(:has(.report-contracts:not(.hidden), .daily-result:not(.hidden))) { display: block; }
  .over-card > .report-contracts { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
  .over-card > .daily-result { margin-top: 12px; padding-top: 10px; }
  .over-card > .report-quote { margin: 10px 0 10px; }
  .over-card > .report-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


