/* ═══════════════════════════════════════════════════════════════════════════
   荒野猎境 · v3 界面扩展
   战役大厅 / 关卡选择 / 剧情提示 / 总结 / 账号 / 挑战码 / 天气与生命 HUD / 触屏
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --hunt-gold: #e3bc6d;
  --hunt-cyan: #80e5d8;
  --hunt-red: #d1785f;
  --hunt-green: #7fb98c;
  --hunt-line: rgba(232, 224, 200, 0.14);
  --hunt-panel: rgba(7, 14, 10, 0.82);
}

/* ───────────────────────────── hub ───────────────────────────── */
.hub-grid {
  align-items: center;
  padding: 84px 0 48px;
  gap: clamp(24px, 5vw, 80px);
}
.hub-grid .title-en { font-size: clamp(64px, 8.4vw, 132px); }
.hub-grid .hero-lede { margin-top: 20px; font-size: clamp(14px, 1.25vw, 19px); line-height: 1.7; }
.hub-grid .hero-meta { margin-top: 20px; width: min(100%, 610px); }
.hub-grid .hero-meta > div { padding: 10px 18px 10px 0; margin-right: 18px; }
.hub-grid .hero-meta > div:nth-child(3) { flex: 1 1 100%; border-right: none; padding-bottom: 8px; }
.hub-grid .eyebrow { margin-bottom: 18px; }
.hub-panel { max-height: calc(100vh - 104px); }
.start-panel::-webkit-scrollbar { width: 3px; }
.start-panel::-webkit-scrollbar-thumb { background: rgba(238, 230, 210, 0.2); }
.hub-topbar { position: fixed; }
.hub-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(232, 224, 200, 0.08);
  background: linear-gradient(180deg, rgba(4, 9, 6, 0.72), rgba(4, 9, 6, 0));
}
.hub-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--paper-dim);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
}
.hub-brand em {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 15px;
  font-style: normal;
  letter-spacing: 0.08em;
}
.hub-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.hub-link {
  padding: 7px 10px;
  border: 1px solid transparent;
  background: none;
  color: rgba(238, 230, 210, 0.62);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.hub-link:hover { color: var(--paper); border-color: var(--hunt-line); }
.account-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px !important;
  border: 1px solid var(--hunt-line) !important;
  background: rgba(6, 12, 9, 0.6) !important;
  cursor: pointer;
  min-height: 34px;
  text-align: left;
}
.account-chip span:not(.account-dot) { font-size: 9px; letter-spacing: 0.06em; color: var(--paper-dim); }
.account-chip small { display: block; color: var(--muted); font-size: 7.5px; letter-spacing: 0.04em; line-height: 1.15; }
.account-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 transparent; flex: 0 0 auto; }
.account-chip.is-online .account-dot { background: var(--hunt-green); box-shadow: 0 0 9px var(--hunt-green); }
.account-chip.is-admin .account-dot { background: var(--hunt-gold); box-shadow: 0 0 9px var(--hunt-gold); }
.icon-btn {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--hunt-line);
  background: rgba(6, 12, 9, 0.56);
  color: var(--paper-dim);
  font-size: 13px;
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--hunt-gold); color: var(--hunt-gold); }
.back-btn { position: static; font-size: 17px; }

.hub-grid { padding-top: 88px; }
.hub-progress-card {
  margin: 0 0 16px;
  padding: 13px 15px;
  border: 1px solid var(--hunt-line);
  border-left: 2px solid var(--hunt-gold);
  background: linear-gradient(110deg, rgba(7, 14, 10, 0.86), rgba(7, 14, 10, 0.4));
}
.hub-progress-head { display: flex; justify-content: space-between; align-items: baseline; color: var(--muted); font-family: var(--font-mono); font-size: 7.5px; letter-spacing: 0.12em; }
.hub-progress-head strong { color: var(--hunt-gold); font-weight: 400; font-size: 10px; }
.hub-progress-head b { font-weight: 400; }
.hub-progress-track { height: 3px; margin: 9px 0 7px; background: rgba(238, 230, 210, 0.1); overflow: hidden; }
.hub-progress-track i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--hunt-cyan), var(--hunt-gold)); transition: width 0.6s var(--ease); }
.hub-progress-foot { display: flex; justify-content: space-between; gap: 12px; color: rgba(238, 230, 210, 0.5); font-size: 8px; letter-spacing: 0.04em; }
.hub-progress-foot b { color: var(--paper-dim); font-weight: 500; }
.device-badges { display: flex; gap: 7px; margin-top: 12px; flex-wrap: wrap; }
.device-badges span {
  padding: 4px 9px;
  border: 1px solid rgba(232, 224, 200, 0.12);
  color: var(--muted);
  font-size: 7.5px;
  letter-spacing: 0.1em;
}
.compact-modes .mode-card { min-height: 92px; }
.compact-modes .mode-desc { display: none; }
.hub-action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hub-action-row .ghost-btn { padding: 11px 8px; }
.hub-announce {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-left: 2px solid var(--hunt-cyan);
  background: rgba(128, 229, 216, 0.06);
  color: var(--paper-dim);
  font-size: 9px;
  line-height: 1.7;
}

/* ───────────────────────────── level select ───────────────────────────── */
.level-screen {
  z-index: 55;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 72% 8%, rgba(38, 62, 46, 0.48), rgba(3, 7, 5, 0.96) 60%),
    linear-gradient(180deg, #0b1611, #050a07);
  overflow: hidden;
}
.level-topbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px clamp(14px, 3vw, 38px);
  border-bottom: 1px solid var(--hunt-line);
  background: rgba(5, 11, 8, 0.76);
  backdrop-filter: blur(10px);
  flex: 0 0 auto;
}
.level-heading { flex: 1; min-width: 0; }
.eyebrow.small { margin-bottom: 3px; font-size: 7.5px; }
.level-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 400;
  letter-spacing: 0.1em;
}
.level-summary { display: flex; align-items: center; gap: 14px; color: var(--muted); font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.06em; }
.level-summary b { color: var(--hunt-gold); font-weight: 400; font-size: 11px; }
.rank-pill { padding: 5px 10px; border: 1px solid rgba(227, 188, 109, 0.3); color: var(--hunt-gold); font-family: var(--font-ui); letter-spacing: 0.08em; }
.level-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 330px;
  gap: 0;
}
.chapter-rail {
  padding: 16px 10px 24px;
  overflow-y: auto;
  border-right: 1px solid var(--hunt-line);
  background: rgba(4, 9, 6, 0.5);
}
.chapter-item {
  width: 100%;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 8px;
  align-items: center;
  padding: 10px 9px;
  margin-bottom: 3px;
  border: 1px solid transparent;
  border-left: 2px solid transparent;
  background: none;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}
.chapter-item:hover { background: rgba(255, 255, 255, 0.03); color: var(--paper-dim); }
.chapter-item.is-active { border-color: var(--hunt-line); border-left-color: var(--hunt-gold); background: rgba(227, 188, 109, 0.06); color: var(--paper); }
.chapter-item .ch-num { font-family: var(--font-mono); font-size: 11px; color: var(--hunt-gold); }
.chapter-item .ch-name { display: block; font-size: 10px; letter-spacing: 0.06em; line-height: 1.35; }
.chapter-item .ch-meta { display: block; margin-top: 2px; font-family: var(--font-mono); font-size: 7px; color: var(--muted); letter-spacing: 0.06em; }
.chapter-item.is-locked { opacity: 0.48; }
.level-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chapter-banner {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px clamp(14px, 2.4vw, 26px);
  border-bottom: 1px solid var(--hunt-line);
  background: linear-gradient(90deg, rgba(227, 188, 109, 0.055), transparent);
}
.chapter-index { font-family: var(--font-display); font-size: 28px; color: rgba(227, 188, 109, 0.55); line-height: 1; }
.chapter-banner h3 { margin: 0; font-family: var(--font-display); font-size: 19px; font-weight: 400; letter-spacing: 0.1em; }
.chapter-banner p { margin: 3px 0 0; color: var(--muted); font-family: var(--font-mono); font-size: 7.5px; letter-spacing: 0.1em; }
.chapter-banner .text-btn { margin-left: auto; }
.level-grid {
  flex: 1;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  padding: 14px clamp(14px, 2.4vw, 26px) 28px;
  align-content: start;
}
.level-card {
  position: relative;
  min-height: 92px;
  padding: 10px 11px;
  border: 1px solid var(--hunt-line);
  background: linear-gradient(140deg, rgba(12, 22, 16, 0.9), rgba(6, 12, 9, 0.5));
  color: var(--paper-dim);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s var(--ease), background 0.2s;
}
.level-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--scene-color, var(--hunt-cyan));
  opacity: 0.55;
}
.level-card:hover { transform: translateY(-2px); border-color: rgba(227, 188, 109, 0.44); }
.level-card.is-active { border-color: var(--hunt-gold); background: rgba(227, 188, 109, 0.08); }
.level-card.is-locked { opacity: 0.46; cursor: not-allowed; }
.level-card.is-boss { background: linear-gradient(140deg, rgba(58, 32, 16, 0.55), rgba(10, 10, 8, 0.6)); }
.level-card .lc-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.level-card .lc-num { font-family: var(--font-mono); font-size: 9px; color: var(--hunt-gold); letter-spacing: 0.1em; }
.level-card .lc-scene { color: var(--muted); font-size: 7px; letter-spacing: 0.04em; }
.level-card .lc-name { display: block; margin-top: 9px; font-family: var(--font-display); font-size: 15px; font-weight: 400; letter-spacing: 0.06em; color: var(--paper); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.level-card .lc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 6px; }
.level-card .lc-stars { color: rgba(238, 230, 210, 0.18); font-size: 10px; letter-spacing: 0.1em; }
.level-card .lc-stars b { color: var(--hunt-gold); font-weight: 400; }
.level-card .lc-best { color: var(--muted); font-family: var(--font-mono); font-size: 7.5px; }
.level-card .lc-boss { position: absolute; top: 8px; right: 8px; color: var(--hunt-gold); font-size: 8px; }
.level-card.is-locked .lc-lock { position: absolute; right: 9px; bottom: 9px; color: var(--muted); font-size: 10px; }
.level-detail {
  border-left: 1px solid var(--hunt-line);
  padding: 18px 18px 26px;
  overflow-y: auto;
  background: rgba(5, 11, 8, 0.66);
  position: relative;
}
.detail-close {
  display: none;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 1px solid var(--hunt-line);
  background: rgba(5, 11, 8, 0.8);
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
}
.detail-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 39;
  background: rgba(3, 7, 5, 0.55);
  backdrop-filter: blur(2px);
}
.detail-backdrop.show { display: block; }
@media (min-width: 1041px) {
  .detail-backdrop { display: none !important; }
  .level-detail { transform: none !important; }
}
.detail-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; min-height: 60%; color: var(--muted); text-align: center; font-size: 9px; line-height: 1.8; }
.detail-kicker { color: var(--hunt-gold); font-family: var(--font-mono); font-size: 7.5px; letter-spacing: 0.14em; }
.level-detail h3 { margin: 6px 0 4px; font-family: var(--font-display); font-size: 26px; font-weight: 400; letter-spacing: 0.06em; color: var(--paper); }
.detail-beat { margin: 0 0 9px; color: rgba(238, 230, 210, 0.78); font-size: 10.5px; line-height: 1.8; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 16px; }
.detail-tags span { padding: 3px 7px; border: 1px solid rgba(232, 224, 200, 0.2); color: rgba(238, 230, 210, 0.72); font-size: 7.5px; letter-spacing: 0.06em; }
.detail-section { margin-bottom: 15px; }
.detail-label { display: block; margin-bottom: 7px; color: rgba(238, 230, 210, 0.55); font-family: var(--font-mono); font-size: 7.5px; letter-spacing: 0.12em; }
#detail-objectives, .intro-objectives ol { margin: 0; padding: 0 0 0 16px; color: rgba(244, 238, 222, 0.9); font-size: 10px; line-height: 1.9; }
#detail-objectives li::marker, .intro-objectives li::marker { color: var(--hunt-gold); }
.detail-intel { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.detail-intel div { padding: 7px 8px; border: 1px solid rgba(232, 224, 200, 0.09); background: rgba(255, 255, 255, 0.02); }
.detail-intel span { display: block; color: var(--muted); font-size: 7px; letter-spacing: 0.08em; }
.detail-intel b { display: block; margin-top: 3px; color: var(--paper-dim); font-size: 9.5px; font-weight: 500; }
.detail-best { margin: 4px 0 14px; padding: 8px 9px; border-left: 2px solid var(--hunt-gold); background: rgba(227, 188, 109, 0.05); color: var(--muted); font-size: 8px; line-height: 1.6; }
.detail-best b { color: var(--hunt-gold); font-weight: 500; }
.detail-actions { display: flex; flex-direction: column; gap: 8px; }
.detail-lock { margin-top: 10px; padding: 8px 9px; border: 1px dashed rgba(209, 120, 95, 0.4); color: #d8a18f; font-size: 8px; line-height: 1.7; }

/* ───────────────────────────── intro ───────────────────────────── */
.intro-card {
  width: min(1040px, 94vw);
  max-height: 90vh;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.9fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.intro-left { padding: clamp(22px, 4vw, 42px); overflow-y: auto; }
.intro-left h2 { margin: 8px 0 10px; font-family: var(--font-display); font-size: clamp(30px, 4vw, 46px); font-weight: 400; letter-spacing: 0.08em; }
.intro-beat { margin: 0 0 14px; color: var(--hunt-gold); font-size: 12px; line-height: 1.9; letter-spacing: 0.03em; }
.intro-story { color: rgba(238, 230, 210, 0.7); font-size: 11px; line-height: 2; white-space: pre-line; }
.intro-hint { margin-top: 16px; padding: 10px 12px; border-left: 2px solid var(--hunt-cyan); background: rgba(128, 229, 216, 0.05); color: var(--paper-dim); font-size: 9px; line-height: 1.8; }
.intro-meta { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.intro-meta span { color: var(--muted); font-family: var(--font-mono); font-size: 7.5px; letter-spacing: 0.08em; }
.intro-right { display: flex; flex-direction: column; gap: 16px; padding: clamp(22px, 4vw, 36px); border-left: 1px solid var(--hunt-line); background: rgba(4, 10, 7, 0.52); overflow-y: auto; }
.intro-objectives { flex: 1; }
.intro-objectives ol { padding-left: 18px; font-size: 10.5px; line-height: 2.1; }
.intro-conditions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.intro-conditions div { padding: 8px 9px; border: 1px solid rgba(232, 224, 200, 0.1); }
.intro-conditions span { display: block; color: var(--muted); font-size: 7px; letter-spacing: 0.08em; }
.intro-conditions b { display: block; margin-top: 3px; font-size: 10px; font-weight: 500; color: var(--paper-dim); }
.intro-legend { padding: 13px 14px; border: 1px solid rgba(227, 188, 109, 0.36); background: linear-gradient(120deg, rgba(62, 38, 16, 0.6), rgba(12, 10, 6, 0.5)); }
.legend-kicker { display: block; color: var(--hunt-gold); font-family: var(--font-mono); font-size: 7px; letter-spacing: 0.16em; }
.intro-legend strong { display: block; margin-top: 6px; font-family: var(--font-display); font-size: 22px; font-weight: 400; color: #f2d79b; letter-spacing: 0.06em; }
.intro-legend small { display: block; margin-top: 2px; color: rgba(238, 230, 210, 0.5); font-size: 8px; }
.intro-foot { margin: 0; color: var(--muted); font-size: 7.5px; line-height: 1.6; }

/* ───────────────────────────── HUD additions ───────────────────────────── */
.vitals-panel {
  position: absolute;
  left: 33px;
  bottom: 160px;
  width: 290px;
  padding: 9px 11px 8px;
  border-left: 2px solid var(--hunt-green);
  background: linear-gradient(100deg, rgba(4, 10, 7, 0.8), rgba(4, 10, 7, 0.35));
  backdrop-filter: blur(8px);
}
.health-cell { display: flex; flex-direction: column; gap: 5px; }
.health-track { position: relative; height: 5px; background: rgba(238, 230, 210, 0.12); overflow: hidden; }
.health-track i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #8bd6a2, #cfe8b7); transform-origin: left; transition: width 0.22s linear, background 0.3s; }
.health-row { display: flex; align-items: baseline; justify-content: space-between; }
.health-row strong { color: #cfe8b7; font-family: var(--font-mono); font-size: 15px; font-weight: 400; }
.health-row span { color: var(--muted); font-size: 7.5px; letter-spacing: 0.06em; }
.vitals-panel.is-hurt { border-left-color: var(--hunt-red); }
.vitals-panel.is-hurt .health-track i { background: linear-gradient(90deg, #d1785f, #f0a98f); }
.vitals-panel.is-hurt .health-row strong { color: #f0b09c; }
.danger-cell { display: flex; align-items: center; gap: 6px; margin-top: 7px; padding-top: 6px; border-top: 1px solid rgba(232, 224, 200, 0.08); color: var(--muted); font-size: 7.5px; letter-spacing: 0.05em; }
.danger-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
.vitals-panel.is-danger .danger-cell { color: #e8a08a; }
.vitals-panel.is-danger .danger-dot { background: var(--hunt-red); box-shadow: 0 0 8px var(--hunt-red); animation: livePulse 0.9s infinite; }

.weather-panel {
  position: absolute;
  right: 32px;
  top: 104px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border: 1px solid rgba(232, 224, 200, 0.13);
  background: rgba(5, 11, 8, 0.62);
  backdrop-filter: blur(8px);
  transition: opacity 0.25s;
}
.weather-glyph { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid rgba(128, 229, 216, 0.35); color: var(--hunt-cyan); font-family: var(--font-display); font-size: 13px; }
.weather-panel > div { display: flex; flex-direction: column; gap: 1px; }
.weather-panel strong { color: var(--paper-dim); font-size: 10px; font-weight: 500; letter-spacing: 0.06em; }
.weather-panel small { color: var(--muted); font-size: 7px; letter-spacing: 0.03em; }
.weather-panel.is-storm .weather-glyph { color: #f0d08c; border-color: rgba(227, 188, 109, 0.5); }
.weather-panel.is-snow .weather-glyph { color: #d8ecf4; }
body.scoped .weather-panel, body.scoped .vitals-panel { opacity: 0.4; }

.level-objectives {
  position: absolute;
  top: 105px;
  left: 34px;
  width: 300px;
  padding: 10px 12px 11px;
  border-left: 1px solid var(--hunt-gold);
  background: linear-gradient(100deg, rgba(4, 10, 7, 0.86), rgba(4, 10, 7, 0.52));
  backdrop-filter: blur(8px);
}
.level-objectives ol { list-style: none; margin: 0; padding: 8px 0 0; display: flex; flex-direction: column; gap: 6px; }
.level-objectives li { display: grid; grid-template-columns: 13px 1fr auto; gap: 7px; align-items: start; color: rgba(238, 230, 210, 0.78); font-size: 9px; line-height: 1.5; }
.level-objectives li .o-mark { width: 11px; height: 11px; margin-top: 2px; border: 1px solid rgba(238, 230, 210, 0.3); border-radius: 50%; }
.level-objectives li.done .o-mark { border-color: var(--hunt-gold); background: rgba(227, 188, 109, 0.18); box-shadow: inset 0 0 0 2px rgba(227, 188, 109, 0.4); }
.level-objectives li.done span.o-label { color: rgba(238, 230, 210, 0.45); text-decoration: line-through; }
.level-objectives li .o-progress { color: var(--hunt-gold); font-family: var(--font-mono); font-size: 8px; }
body.scoped .level-objectives { opacity: 0.3; }

.legendary-banner {
  position: absolute;
  top: 96px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 13px;
  border: 1px solid rgba(227, 188, 109, 0.5);
  background: linear-gradient(100deg, rgba(42, 25, 9, 0.85), rgba(10, 9, 6, 0.6));
  box-shadow: 0 0 24px rgba(227, 188, 109, 0.12);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}
.legendary-mark { color: var(--hunt-gold); font-size: 13px; text-shadow: 0 0 12px var(--hunt-gold); }
.legendary-banner div { display: flex; flex-direction: column; gap: 1px; }
.legendary-banner b { color: #f2d79b; font-size: 10px; font-weight: 500; letter-spacing: 0.08em; }
.legendary-banner small { color: rgba(238, 230, 210, 0.5); font-size: 7.5px; }
.legendary-banner > span:last-child { color: var(--hunt-gold); font-family: var(--font-mono); font-size: 9px; }
.legendary-banner.is-near { animation: legendPulse 1.6s infinite; }
@keyframes legendPulse { 0%, 100% { box-shadow: 0 0 18px rgba(227, 188, 109, 0.1); } 50% { box-shadow: 0 0 34px rgba(227, 188, 109, 0.32); } }

.call-chip { display: inline-flex; align-items: center; gap: 6px; margin-left: 9px; padding-left: 9px; border-left: 1px solid rgba(238, 230, 210, 0.12); position: relative; }
.call-chip button { border: 1px solid rgba(128, 229, 216, 0.3); background: rgba(128, 229, 216, 0.06); color: var(--hunt-cyan); padding: 3px 7px; font-size: 8px; letter-spacing: 0.04em; cursor: pointer; }
.call-chip button b { font-weight: 500; }
.call-chip button:hover { border-color: var(--hunt-cyan); }
.call-chip button:disabled { opacity: 0.4; cursor: default; }
.call-chip i { position: absolute; left: 9px; right: 0; bottom: -5px; height: 2px; background: rgba(238, 230, 210, 0.1); }
.call-chip i::after { content: ""; display: block; height: 100%; width: var(--cd, 0%); background: var(--hunt-cyan); }

.danger-vignette {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse at center, transparent 38%, rgba(120, 22, 10, 0.5) 100%);
  transition: opacity 0.35s;
}
.danger-vignette.show { opacity: 1; animation: dangerPulse 1.4s infinite; }
@keyframes dangerPulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 0.95; } }

/* lightning */
.lightning-flash {
  position: fixed;
  inset: 0;
  z-index: 36;
  pointer-events: none;
  background: rgba(220, 236, 255, 0.55);
  opacity: 0;
  transition: opacity 0.08s;
}
.lightning-flash.show { opacity: 1; }
body.scoped .lightning-flash { opacity: 0 !important; }

/* summary extras */
.over-level-name { display: block; margin-top: 7px; color: var(--hunt-gold); font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.1em; }
.result-strip { display: flex; align-items: baseline; gap: 12px; margin-top: 15px; padding: 10px 12px; border: 1px solid var(--hunt-line); border-left: 2px solid var(--hunt-green); background: rgba(127, 185, 140, 0.05); }
.result-strip.fail { border-left-color: var(--hunt-red); background: rgba(209, 120, 95, 0.06); }
.result-strip span { color: var(--hunt-green); font-size: 11px; letter-spacing: 0.1em; }
.result-strip.fail span { color: var(--hunt-red); }
.result-strip b { margin-left: auto; color: var(--paper); font-family: var(--font-mono); font-size: 22px; font-weight: 400; }
.result-strip small { color: var(--muted); font-family: var(--font-mono); font-size: 8px; }
.report-objectives { margin: 16px 0 0; border-top: 1px solid var(--line); padding-top: 12px; }
.over-objective { 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.66); font-size: 9px; }
.over-objective b { color: var(--hunt-gold); font-weight: 500; white-space: nowrap; }
.over-objective.fail { color: rgba(209, 120, 95, 0.8); }
.over-objective.fail b { color: var(--hunt-red); }
.over-story { margin: 14px 0 0; padding: 12px 13px; border-left: 2px solid var(--hunt-cyan); background: rgba(128, 229, 216, 0.045); color: rgba(238, 230, 210, 0.68); font-size: 9.5px; line-height: 1.85; white-space: pre-line; }
.over-legendary { margin-top: 12px; padding: 10px 12px; border: 1px solid rgba(227, 188, 109, 0.4); background: linear-gradient(110deg, rgba(58, 36, 14, 0.55), rgba(10, 9, 6, 0.4)); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.over-legendary span { color: var(--hunt-gold); font-family: var(--font-mono); font-size: 7px; letter-spacing: 0.14em; }
.over-legendary strong { font-family: var(--font-display); font-size: 17px; font-weight: 400; color: #f2d79b; }

/* pause extras */
.pause-objectives { margin: 12px 0 0; display: flex; flex-direction: column; gap: 4px; }
.pause-objectives div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid rgba(238, 230, 210, 0.07); color: var(--muted); font-size: 8.5px; }
.pause-objectives div.done { color: var(--hunt-gold); }
.pause-quality-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; color: var(--muted); font-size: 9px; }
.pause-quality-row select, .settings-grid select { flex: 1; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: var(--paper); padding: 7px 8px; font-size: 9px; }

/* ───────────────────────────── auth / code / settings ───────────────────────────── */
.auth-card, .code-card, .settings-card { width: min(480px, 92vw); max-height: 90vh; overflow-y: auto; }
.auth-sub { margin: 8px 0 16px; color: var(--muted); font-size: 9px; line-height: 1.8; }
.auth-tabs { display: flex; gap: 4px; margin-bottom: 15px; border-bottom: 1px solid var(--line); }
.auth-tab { flex: 1; padding: 9px 6px; border: none; border-bottom: 2px solid transparent; background: none; color: var(--muted); font-size: 10px; letter-spacing: 0.08em; cursor: pointer; }
.auth-tab.is-active { color: var(--hunt-gold); border-bottom-color: var(--hunt-gold); }
.auth-form { display: flex; flex-direction: column; gap: 11px; }
.auth-field span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 8px; letter-spacing: 0.06em; }
.auth-field input { width: 100%; padding: 10px 11px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.035); color: var(--paper); font-size: 10px; }
.auth-field input:focus { border-color: var(--hunt-cyan); outline: none; }
.auth-remember { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 8.5px; }
.auth-msg { min-height: 15px; margin: 0; color: #d8a18f; font-size: 8.5px; line-height: 1.6; }
.auth-msg.ok { color: var(--hunt-green); }
.auth-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 11px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.modal-close { position: absolute; top: 10px; right: 12px; width: 30px; height: 30px; border: 1px solid var(--line); background: none; color: var(--muted); font-size: 17px; cursor: pointer; z-index: 2; }
.modal-close:hover { color: var(--paper); border-color: var(--hunt-gold); }
.code-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.code-preview { margin-top: 16px; padding: 12px; border: 1px solid rgba(227, 188, 109, 0.36); background: rgba(227, 188, 109, 0.05); }
.code-preview > span { color: var(--muted); font-family: var(--font-mono); font-size: 7px; letter-spacing: 0.13em; }
.code-preview strong { display: block; margin: 6px 0 9px; color: #f2d79b; font-family: var(--font-mono); font-size: 22px; letter-spacing: 0.14em; }
.code-preview > div { display: flex; gap: 8px; }
.code-note { margin-top: 14px; color: var(--muted); font-size: 8px; line-height: 1.7; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.settings-grid label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 8.5px; }
.settings-grid label b { color: var(--hunt-gold); font-family: var(--font-mono); font-size: 8px; font-weight: 400; }
.settings-grid input[type="range"] { width: 100%; accent-color: var(--hunt-gold); }
.settings-grid .check { flex-direction: row; align-items: center; gap: 7px; }
.settings-help { margin-top: 17px; padding-top: 13px; border-top: 1px solid var(--line); color: rgba(238, 230, 210, 0.6); font-size: 8.5px; line-height: 1.95; }
.settings-help h3 { margin: 0 0 5px; color: var(--paper-dim); font-family: var(--font-display); font-size: 14px; font-weight: 400; letter-spacing: 0.08em; }
.settings-help h3:not(:first-child) { margin-top: 12px; }
.settings-help p { margin: 0 0 6px; }

/* ───────────────────────────── touch controls ───────────────────────────── */
.touch-layer { position: fixed; inset: 0; z-index: 45; pointer-events: none; }
.touch-stick {
  position: absolute;
  left: max(18px, env(safe-area-inset-left));
  bottom: max(24px, env(safe-area-inset-bottom));
  width: 118px;
  height: 118px;
  border: 1px solid rgba(238, 230, 210, 0.2);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 12, 9, 0.32), rgba(6, 12, 9, 0.12));
  pointer-events: auto;
  touch-action: none;
}
.touch-stick::after { content: ""; position: absolute; inset: 33%; border: 1px solid rgba(238, 230, 210, 0.14); border-radius: 50%; }
#touch-knob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border-radius: 50%;
  border: 1px solid rgba(128, 229, 216, 0.55);
  background: rgba(128, 229, 216, 0.14);
  box-shadow: 0 0 18px rgba(128, 229, 216, 0.18);
  pointer-events: none;
}
.touch-zone { position: absolute; inset: 0; pointer-events: none; }
.touch-actions {
  position: absolute;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  width: 200px;
  height: 200px;
  pointer-events: none;
}
.touch-btn {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid rgba(238, 230, 210, 0.25);
  border-radius: 50%;
  background: rgba(6, 12, 9, 0.5);
  color: rgba(238, 230, 210, 0.82);
  font-size: 9px;
  letter-spacing: 0.04em;
  pointer-events: auto;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}
.touch-btn:active { background: rgba(128, 229, 216, 0.18); }
.touch-fire { width: 72px; height: 72px; right: 4px; bottom: 26px; border-color: rgba(209, 120, 95, 0.5); font-size: 11px; }
.touch-ads { width: 54px; height: 54px; right: 82px; bottom: 104px; }
.touch-reload { width: 44px; height: 44px; right: 18px; bottom: 108px; font-size: 8px; }
.touch-call { width: 48px; height: 48px; right: 84px; bottom: 30px; border-color: rgba(227, 188, 109, 0.5); }
.touch-weapon { width: 40px; height: 40px; right: 20px; bottom: 158px; font-size: 8px; }
.touch-crouch { width: 40px; height: 40px; right: 76px; bottom: 158px; font-size: 8px; }
.touch-use { width: 40px; height: 40px; left: 8px; bottom: 96px; }
.touch-pause { position: fixed; width: 42px; height: 42px; right: 12px; top: 104px; border-radius: 8px; font-size: 9px; }
body.is-touch .touch-layer { display: block; }
body:not(.is-touch) .touch-layer { display: none !important; }
body.is-touch .daily-btn-arrow { display: none; }
body.is-touch .hud-hint, body.is-touch .lock-hint { display: none !important; }
body.is-touch .field-meter { bottom: 10px; transform: translateX(-50%) scale(0.82); }
body.is-touch .hud-bottom-left { bottom: 262px; left: 12px; width: 186px; }
body.is-touch .hud-bottom-right { display: none; }
body.is-touch .weapon-slots { display: none; }
body.is-touch .hud-brand { display: none; }
body.is-touch .hud-objective { display: none; }
body.is-touch .compass { display: none; }
body.is-touch .compass-bearing { display: none; }
body.is-touch .hud-top-left { top: 10px; left: 12px; }
body.is-touch .hud-top-center { top: 8px; }
body.is-touch .hud-top-right { top: 8px; right: 12px; }
body.is-touch .level-objectives, body.is-touch .hud-contracts { top: 88px; left: 12px; width: 212px; }
body.is-touch .vitals-panel { bottom: 360px; left: 12px; width: 186px; }
body.is-touch .weather-panel { top: auto; bottom: 360px; right: 12px; width: 148px; }
body.is-touch .call-chip { position: static; margin-left: 6px; padding-left: 6px; }
body.is-touch .call-chip i { display: none; }
body.is-touch .weapon-line, body.is-touch .weapon-hint, body.is-touch .reload-track { display: none; }
body.is-touch .ammo-display { font-size: 20px; }
body.is-touch .objective-tip { display: none !important; }
body.is-touch .tracking-banner { top: auto; bottom: 370px; }
body.is-touch .legendary-banner { top: 54px; max-width: 210px; }
body.is-touch .legendary-banner small { display: none; }
body.is-touch .side-feed { top: 250px; right: 8px; width: 180px; }
body.is-touch .contract-toast { top: 28%; }

/* ───────────────────────────── responsive ───────────────────────────── */
@media (max-width: 1240px) {
  .level-body { grid-template-columns: 178px minmax(0, 1fr) 290px; }
  .level-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
  .hub-grid { gap: 26px; }
}
@media (max-width: 1040px) {
  .level-body { grid-template-columns: 156px minmax(0, 1fr); }
  .level-detail { position: fixed; right: 0; top: 0; bottom: 0; z-index: 40; width: min(360px, 88vw); transform: translateX(100%); transition: transform 0.3s var(--ease); background: #07100c; box-shadow: -16px 0 60px rgba(0, 0, 0, 0.55); padding: 58px 18px 28px; }
  .level-detail.is-open { transform: translateX(0); }
  .detail-close { display: block; }
  .level-detail::before { content: none; }
  .intro-card { grid-template-columns: 1fr; max-height: 92vh; overflow-y: auto; }
  .intro-right { border-left: none; border-top: 1px solid var(--hunt-line); }
  .hub-grid { grid-template-columns: 1fr; }
  .start-panel.hub-panel { max-width: 560px; }
}
@media (max-width: 760px) {
  .pause-stats { grid-template-columns: 1fr 1fr !important; }
  .pause-foot { display: none; }
  .pause-card { max-height: 92vh; overflow-y: auto; }
  .start-screen { overflow-y: auto; overflow-x: hidden; display: block; }
  .hub-topbar { padding: 12px 14px; gap: 10px; position: fixed; background: rgba(4, 9, 6, 0.78); backdrop-filter: blur(12px); }
  .hub-brand em { display: none; }
  .hub-links { gap: 2px; }
  .hub-link { padding: 6px; font-size: 8px; }
  .hub-link:nth-child(2) { display: none; }
  .account-chip { min-height: 30px; padding: 4px 8px !important; }
  .account-chip small { display: none; }
  .hub-grid { display: flex; flex-direction: column; align-items: stretch; width: 100%; padding: 78px 16px 38px; gap: 18px; }
  .hub-grid .eyebrow { font-size: 7px; letter-spacing: 0.16em; margin-bottom: 14px; }
  .hub-grid .title-en { font-size: 68px; }
  .hub-grid .title-cn { font-size: 38px; margin-top: 14px; }
  .hub-grid .title-cn::after { width: 44px; margin-left: 14px; }
  .hub-grid .hero-lede { margin-top: 14px; font-size: 13px; line-height: 1.7; }
  .hub-grid .hero-meta { display: none; }
  .hub-progress-card { margin-bottom: 10px; }
  .hub-panel { max-height: none; width: 100%; padding: 18px; }
  .hub-panel h2 { font-size: 26px; }
  .compact-modes .mode-card { min-height: 78px; }
  .hub-action-row { grid-template-columns: 1fr 1fr; }
  .device-badges { margin-top: 8px; }
  .menu-footer { display: none; }
  .level-topbar { padding: 10px 12px; gap: 10px; }
  .level-summary { gap: 8px; font-size: 7px; }
  .level-summary .rank-pill { display: none; }
  .level-body { grid-template-columns: 1fr; }
  .chapter-rail { display: flex; align-items: center; gap: 4px; overflow-x: auto; overflow-y: hidden; padding: 8px 10px; border-right: none; border-bottom: 1px solid var(--hunt-line); flex: 0 0 auto; height: 66px; }
  .chapter-item { flex: 0 0 auto; width: auto; min-width: 96px; height: 48px; margin: 0; padding: 6px 8px; grid-template-columns: 20px 1fr; align-self: center; }
  .chapter-item .ch-meta { display: none; }
  .chapter-banner { padding: 10px 12px; }
  .chapter-index { font-size: 21px; }
  .chapter-banner h3 { font-size: 15px; }
  .chapter-banner .text-btn { display: none; }
  .level-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; padding: 10px 12px 40px; }
  .level-card { min-height: 72px; padding: 8px; }
  .level-card .lc-name { font-size: 13px; margin-top: 5px; }
  .level-card .lc-scene { display: none; }
  .level-card .lc-stars { font-size: 8px; }
  .level-card .lc-best { display: none; }
  .intro-left, .intro-right { padding: 18px; }
  .intro-left h2 { font-size: 28px; }
  .intro-story { font-size: 10px; line-height: 1.9; }
  .modal-card { padding: 18px; }
  .over-card { width: 94vw; padding: 18px; max-height: 92vh; overflow-y: auto; }
  .report-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .report-head h2 { font-size: 25px; }
  .rank-badge { flex-basis: 54px; height: 62px; }
  .rank-badge strong { font-size: 22px; }
  .result-strip b { font-size: 18px; }
  .over-card .modal-actions { flex-wrap: wrap; }
  .over-card .modal-actions > button { flex: 1 1 42%; }
  .settings-grid { grid-template-columns: 1fr; }
  .auth-card, .code-card, .settings-card { width: 94vw; padding: 18px; }
  .hud-contracts, .level-objectives { top: 62px; width: 190px; padding: 7px 8px; }
  .hud-contracts .c-desc, .level-objectives li .o-progress { display: none; }
  .hud-top-left { top: 12px; left: 14px; }
  .hud-top-center { top: 10px; }
  .timer-block strong { font-size: 18px; }
  .compass { width: 160px; }
  .hud-top-right { top: 12px; right: 14px; }
  .score-block strong { font-size: 18px; }
  .weather-panel { top: 84px; right: 12px; padding: 5px 7px; }
  .weather-panel small { display: none; }
  .vitals-panel { bottom: 140px; left: 14px; width: 190px; }
  .hud-bottom-left { bottom: 12px; left: 14px; width: 190px; }
  .hud-bottom-right { bottom: 12px; right: 12px; }
  .weapon-slots { transform: scale(0.8); transform-origin: bottom right; }
  .field-meter { display: none; }
  .tracking-banner { top: 60px; }
  .legendary-banner { top: 44px; }
  .hud-alert { top: auto; bottom: 210px; }
  .menu-footer { display: none; }
  .start-screen .hero-controls { display: none; }
}
@media (max-height: 820px) and (min-width: 761px) {
  .start-screen { overflow-y: auto; display: block; }
  .hub-grid { padding-top: 76px; padding-bottom: 30px; align-items: start; }
  .hub-grid .title-en { font-size: 72px; }
  .hub-grid .title-cn { font-size: 40px; margin-top: 12px; }
  .hub-grid .hero-lede { margin-top: 12px; font-size: 14px; }
  .hub-grid .hero-meta { margin-top: 14px; }
  .hub-grid .hero-controls { display: none; }
  .hub-panel { max-height: none; }
}

@media (max-width: 480px) {
  .level-grid { grid-template-columns: repeat(2, 1fr); }
  .hud-contracts, .level-objectives { width: 164px; }
  .level-objectives li { font-size: 8px; }
  .vitals-panel { width: 160px; }
  .hud-bottom-left { width: 160px; }
  .weapon-slots .slot-info small { display: none; }
}
@media (max-height: 520px) and (orientation: landscape) {
  body.is-touch .hud-contracts, body.is-touch .level-objectives { display: none; }
  body.is-touch .vitals-panel { bottom: auto; top: 58px; left: 12px; }
  body.is-touch .weather-panel { display: none; }
  body.is-touch .hud-bottom-left { bottom: 12px; }
  body.is-touch .hud-bottom-right { bottom: 12px; }
  body.is-touch .touch-stick { width: 92px; height: 92px; }
  body.is-touch .touch-actions { width: 170px; height: 170px; }
  body.is-touch .touch-fire { width: 60px; height: 60px; }
  .intro-card { grid-template-columns: 1.2fr 1fr; }
  .intro-right { border-top: none; border-left: 1px solid var(--hunt-line); }
}
/* ═══════════════════════════════════════════════════════════════════════
   手机竖屏 / 横屏适配 · v3.1
   目标：不强制横屏、不出现横屏提示；字号收敛；所有对话框完整可滚动。
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 760px) {
  html, body { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  .fullscreen { width: 100%; max-width: 100vw; }
  .loading-content h2 { font-size: 24px; }
  .loading-content p { font-size: 9px; }
  .loading-brand { font-size: 10px; }
  .loading-foot { font-size: 6.5px; }

  /* ── 大厅：收敛标题与面板 ── */
  .hub-grid { padding: 72px 14px 30px; gap: 14px; }
  .hub-grid .eyebrow { font-size: 6.5px; letter-spacing: 0.14em; margin-bottom: 11px; }
  .hub-grid .title-en { font-size: 40px; line-height: 0.8; }
  .hub-grid .title-cn { font-size: 24px; margin-top: 8px; letter-spacing: 0.14em; }
  .hub-grid .title-cn::after { width: 30px; margin-left: 9px; }
  .hub-grid .hero-lede { margin-top: 10px; font-size: 10.5px; line-height: 1.65; }
  .hub-progress-card { padding: 9px 11px; margin-bottom: 10px; }
  .hub-progress-head { font-size: 6.5px; }
  .hub-progress-head strong { font-size: 9px; }
  .hub-progress-foot { font-size: 7px; }
  .device-badges { gap: 4px; margin-top: 8px; }
  .device-badges span { padding: 3px 6px; font-size: 6.5px; }
  .hub-topbar { padding: 8px 12px; }
  .hub-brand { font-size: 8px; letter-spacing: 0.14em; }
  .hub-link { padding: 5px 6px; font-size: 7.5px; }
  .account-chip { padding: 4px 7px !important; min-height: 28px; }
  .account-chip span:not(.account-dot) { font-size: 8px; }
  .hub-panel { padding: 14px; }
  .hub-panel h2 { font-size: 21px; }
  .panel-sub { font-size: 8.5px; line-height: 1.65; margin-bottom: 10px; }
  .compact-modes .mode-card { min-height: 64px; padding: 8px 10px; }
  .compact-modes .mode-card .mode-check, .compact-modes .mode-card .mode-check i { display: none; }
  .compact-modes .mode-card { padding-left: 12px; }
  .mode-title { font-size: 14px; }
  .mode-en { font-size: 6.5px; }
  .mode-badge { font-size: 6.5px; padding: 2px 5px; }
  .primary-btn { padding: 11px 13px; }
  .primary-btn .btn-label { font-size: 11px; }
  .primary-btn .btn-meta { font-size: 6.5px; }
  .ghost-btn { padding: 9px 8px; font-size: 9px; }
  .daily-btn { padding: 8px 10px; }
  .daily-btn-arrow { display: none; }
  .daily-btn-top { font-size: 9px; padding-right: 4px; }
  .daily-btn-sub, .daily-btn-best { font-size: 6.5px; }
  .start-foot { font-size: 7px; }
  .text-btn { font-size: 8px; }
  .menu-footer { display: none; }

  /* ── 关卡页：去掉网格拉伸造成的大块空白 ── */
  .level-body { display: block; overflow-y: auto; overflow-x: hidden; min-height: 0; }
  .level-main { display: block; min-height: 0; }
  .chapter-rail { height: auto; min-height: 58px; align-items: center; }
  .chapter-item { height: 46px; min-height: 46px; }
  .chapter-banner { padding: 9px 12px; }
  .chapter-index { font-size: 19px; }
  .chapter-banner h3 { font-size: 14px; }
  .chapter-banner p { font-size: 6.5px; }
  .level-heading h2 { font-size: 20px; }
  .level-summary { font-size: 6.5px; gap: 7px; }
  .level-summary b { font-size: 9px; }
  .level-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: min-content;
    overflow: visible;
    padding: 9px 12px 34px;
    gap: 6px;
  }
  .level-card { min-height: 66px; padding: 7px 8px; }
  .level-card .lc-name { font-size: 12px; margin-top: 4px; }
  .level-card .lc-num { font-size: 8px; }
  .level-card .lc-stars { font-size: 7.5px; }
  .level-detail { width: min(92vw, 360px); max-height: 100dvh; padding: 15px 14px calc(22px + env(safe-area-inset-bottom)); }
  .level-detail h3 { font-size: 22px; }
  .detail-beat { font-size: 9.5px; }
  .detail-tags span { font-size: 7px; }
  #detail-objectives { font-size: 9px; }
  .detail-intel b { font-size: 8.5px; }
  .detail-close { display: block; width: 36px; height: 36px; }

  /* ── 所有对话框：宽度、最大高度、滚动、安全区 ── */
  .modal-screen { padding: max(6px, env(safe-area-inset-top)) 8px max(6px, env(safe-area-inset-bottom)); }
  .modal-card {
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 15px 14px calc(16px + env(safe-area-inset-bottom)) !important;
  }
  .modal-card h2 { font-size: 24px !important; letter-spacing: 0.06em; }
  .modal-eyebrow { font-size: 6.5px; letter-spacing: 0.16em; margin-bottom: 7px; }
  .modal-card > p { font-size: 8.5px; line-height: 1.65; }
  .modal-close { width: 34px; height: 34px; font-size: 18px; top: 6px; right: 6px; }
  .modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
  .modal-actions > button { width: 100%; justify-content: center; padding: 10px 8px; }
  .modal-actions > button .btn-label { font-size: 10.5px; }

  /* 剧情提示 */
  .intro-card {
    width: calc(100vw - 12px) !important;
    max-width: calc(100vw - 12px) !important;
    max-height: calc(100vh - 12px);
    max-height: calc(100dvh - 12px) !important;
    padding: 0 !important;
    display: block;
    overflow-y: auto !important;
  }
  .intro-left, .intro-right { padding: 14px; }
  .intro-left h2 { font-size: 23px !important; margin: 5px 0 7px; }
  .intro-beat { font-size: 10px; line-height: 1.7; margin-bottom: 10px; }
  .intro-story { font-size: 9.5px; line-height: 1.8; }
  .intro-objectives { margin-top: 4px; }
  .intro-objectives ol { font-size: 9.5px; line-height: 1.9; padding-left: 16px; }
  .intro-conditions { gap: 5px; }
  .intro-conditions div { padding: 6px 7px; }
  .intro-conditions b { font-size: 9px; }
  .intro-legend { padding: 9px 10px; }
  .intro-legend strong { font-size: 17px; }
  .intro-foot { font-size: 6.5px; }

  /* 暂停 / 总结 */
  .pause-card {
    width: calc(100vw - 16px) !important;
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px) !important;
    overflow-y: auto !important;
    padding: 16px 14px calc(16px + env(safe-area-inset-bottom)) !important;
  }
  .pause-card h2 { font-size: 24px !important; }
  .pause-stats { grid-template-columns: 1fr 1fr !important; }
  .pause-stats strong { font-size: 18px; }
  .pause-objectives div { font-size: 8px; }
  .over-card {
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px) !important;
    padding: 15px 14px calc(12px + env(safe-area-inset-bottom)) !important;
  }
  .over-card h2 { font-size: 23px !important; }
  .report-head h2 { font-size: 23px !important; }
  .report-head p { font-size: 8.5px; }
  .over-level-name { font-size: 7px; }
  .result-strip { padding: 8px 10px; margin-top: 10px; }
  .result-strip span { font-size: 9px; }
  .result-strip b { font-size: 17px; }
  .result-strip small { font-size: 6.5px; }
  .star-result { font-size: 16px; gap: 5px; margin-top: 9px; }
  .star-result em { font-size: 7px; }
  .report-grid { gap: 5px; margin-top: 10px; }
  .report-grid > div { padding: 7px 8px; }
  .report-grid span { font-size: 7px; }
  .report-grid strong { font-size: 16px; }
  .over-objective { font-size: 8px; padding: 4px 0; }
  .over-story { font-size: 8.5px; line-height: 1.75; padding: 9px 10px; }
  .over-legendary strong { font-size: 14px; }
  .report-quote { font-size: 10px; margin: 12px 0; }
  .over-card .modal-actions {
    position: sticky;
    bottom: 0;
    z-index: 3;
    padding: 8px 0 2px;
    background: linear-gradient(180deg, rgba(7, 14, 10, 0), rgba(7, 14, 10, 0.96) 28%);
  }

  /* 账号 / 挑战码 / 设置 */
  .auth-card, .code-card, .settings-card {
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
  }
  .auth-sub { font-size: 8.5px; line-height: 1.7; margin: 6px 0 10px; }
  .auth-tabs { margin-bottom: 10px; }
  .auth-tab { padding: 8px 4px; font-size: 9px; }
  .auth-form { gap: 8px; }
  .auth-field span { font-size: 7.5px; margin-bottom: 4px; }
  .auth-field input {
    font-size: 13px !important;
    line-height: 1.3;
    padding: 9px 10px;
    min-height: 40px;
  }
  .auth-remember { font-size: 8px; }
  .auth-msg { font-size: 8px; }
  .auth-foot { margin-top: 10px; padding-top: 9px; }
  .code-actions { gap: 7px; }
  .code-preview { padding: 9px; margin-top: 11px; }
  .code-preview strong { font-size: 17px; letter-spacing: 0.1em; }
  .code-note { font-size: 7.5px; }
  .settings-grid { gap: 8px; margin-top: 4px; }
  .settings-grid label { font-size: 8px; gap: 4px; }
  .settings-grid select { font-size: 13px !important; min-height: 38px; }
  .settings-grid label span { font-size: 8px; }
  .settings-help { margin-top: 12px; padding-top: 10px; font-size: 7.5px; line-height: 1.8; }
  .settings-help h3 { font-size: 12px; margin-bottom: 3px; }
  .settings-help p { margin: 0 0 5px; }
  .settings-card .modal-actions { margin-top: 8px; }
  .auth-card .modal-actions, .code-card .modal-actions { margin-top: 8px; }

  /* 游戏内 HUD：竖屏收敛 */
  body.is-touch .timer-block strong { font-size: 19px; }
  body.is-touch .score-block strong { font-size: 19px; }
  body.is-touch .level-objectives { width: 204px; padding: 7px 9px; }
  body.is-touch .level-objectives li { font-size: 8px; }
  body.is-touch .vitals-panel { width: 168px; }
  body.is-touch .weather-panel { width: 128px; }
  body.is-touch .hud-bottom-left { width: 168px; }
  body.is-touch .ammo-display { font-size: 15px; }
  body.is-touch .touch-btn { font-size: 8.5px; }
  body.is-touch .touch-fire { font-size: 10px; }
}

/* 超窄机（iPhone SE 等） */
@media (max-width: 370px) {
  .hub-grid .title-en { font-size: 40px; }
  .hub-grid .title-cn { font-size: 24px; }
  .hub-grid .hero-lede { font-size: 10.5px; }
  .hub-panel h2 { font-size: 19px; }
  .modal-card h2, .over-card h2, .report-head h2, .intro-left h2 { font-size: 21px !important; }
  .intro-story { font-size: 9px; }
  .modal-actions { grid-template-columns: 1fr; }
  .level-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.is-touch .level-objectives { width: 188px; }
  body.is-touch .vitals-panel { width: 162px; }
  body.is-touch .hud-bottom-left { width: 162px; }
}

/* 平板竖屏（768 / 810 / 834 等）：介于手机与桌面之间 */
@media (pointer: coarse) and (min-width: 761px) and (max-width: 1100px) {
  .start-screen { display: block; overflow-y: auto; overflow-x: hidden; }
  .hub-grid { display: flex; flex-direction: column; align-items: stretch; padding: 88px 0 42px; gap: 20px; }
  .hub-grid .title-en { font-size: clamp(54px, 7.4vw, 76px); }
  .hub-grid .title-cn { font-size: clamp(32px, 4vw, 44px); }
  .hub-grid .hero-lede { font-size: 13px; line-height: 1.7; }
  .hub-progress-head { font-size: 7px; }
  .hub-panel { max-height: none; max-width: 620px; align-self: center; width: 100%; }
  .hub-panel h2 { font-size: 30px; }
  .menu-footer { display: none; }
  .modal-card {
    width: min(680px, calc(100vw - 28px)) !important;
    max-height: calc(100vh - 28px);
    max-height: calc(100dvh - 28px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  .modal-card h2 { font-size: 30px !important; }
  .intro-card { max-height: calc(100dvh - 28px) !important; overflow-y: auto; }
  .intro-left h2 { font-size: 32px !important; }
  .over-card { max-height: calc(100dvh - 28px) !important; overflow-y: auto; }
  .settings-card, .auth-card, .code-card, .pause-card { width: min(560px, calc(100vw - 28px)) !important; }
  .settings-help { font-size: 8.5px; line-height: 1.8; }
  .auth-field input { font-size: 14px !important; min-height: 44px; }
}

/* 手机横屏：大厅两栏、HUD 与触屏控件整体缩小 */
@media (orientation: landscape) and (max-height: 560px) {
  .start-screen { display: block; overflow-y: auto; overflow-x: hidden; }
  .hub-topbar { padding: 6px 14px; }
  .hub-brand { font-size: 8px; }
  .hub-brand em { font-size: 12px; }
  .hub-links { gap: 4px; }
  .hub-link { font-size: 7px; padding: 4px 6px; }
  .account-chip { min-height: 26px; padding: 3px 7px !important; }
  .account-chip small { display: none; }
  .hub-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    align-items: start;
    gap: 14px;
    width: calc(100vw - 24px);
    padding: 58px 0 18px;
  }
  .hub-grid .eyebrow, .hub-grid .hero-meta, .hub-grid .hero-controls, .hub-grid .device-badges { display: none; }
  .hub-grid .title-en { font-size: 38px; line-height: 0.8; }
  .hub-grid .title-cn { font-size: 22px; margin-top: 5px; letter-spacing: 0.12em; }
  .hub-grid .title-cn::after { width: 28px; margin-left: 8px; }
  .hub-grid .hero-lede { margin-top: 8px; font-size: 9.5px; line-height: 1.5; }
  .hub-progress-card { margin: 8px 0; padding: 7px 9px; }
  .hub-progress-head { font-size: 6px; }
  .hub-progress-head strong { font-size: 8px; }
  .hub-progress-track { margin: 6px 0 5px; }
  .hub-progress-foot { font-size: 6.5px; }
  .hub-panel { max-height: none; padding: 12px; }
  .hub-panel h2 { font-size: 18px; margin: 2px 0 4px; }
  .hub-panel .panel-sub { font-size: 7px; line-height: 1.5; margin: 0 0 7px; }
  .compact-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
  .compact-modes .mode-card { min-height: 50px; padding: 7px 8px; }
  .mode-title { font-size: 12px; }
  .mode-en, .mode-badge { font-size: 6px; }
  .mode-card .mode-check { display: none; }
  .start-action-stack { gap: 5px; margin-top: 7px; }
  .primary-btn { padding: 8px 11px; }
  .primary-btn .btn-label { font-size: 10px; }
  .primary-btn .btn-meta { font-size: 6px; }
  .hub-action-row { gap: 5px; }
  .hub-action-row .ghost-btn { padding: 7px 6px; font-size: 8px; }
  .daily-btn { padding: 6px 9px; }
  .daily-btn-top { font-size: 8px; }
  .daily-btn-arrow { display: none; }
  .daily-btn-sub, .daily-btn-best { display: none; }
  .start-foot, .menu-footer { display: none; }

  /* 对话框在横屏手机上占满高度，内部滚动 */
  .modal-card, .intro-card, .over-card, .pause-card, .settings-card, .auth-card, .code-card {
    max-height: calc(100dvh - 12px) !important;
    overflow-y: auto !important;
  }
  .auth-card, .code-card, .settings-card, .pause-card {
    max-width: min(600px, calc(100vw - 24px)) !important;
    margin-left: auto;
    margin-right: auto;
  }
  .over-card { max-width: min(760px, calc(100vw - 24px)) !important; margin-left: auto; margin-right: auto; }
  .intro-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr); overflow: hidden !important; }
  .intro-left, .intro-right { max-height: calc(100dvh - 12px); overflow-y: auto; }
  .intro-right { border-left: 1px solid var(--hunt-line); border-top: none; }
  .modal-card h2, .intro-left h2 { font-size: 22px !important; }
  .settings-help { font-size: 7.5px; }
  .settings-help { column-count: 2; column-gap: 18px; font-size: 7px; line-height: 1.65; }
  .settings-help h3 { break-after: avoid; font-size: 11px; }
  .settings-help p { break-inside: avoid; margin-bottom: 4px; }
  .over-card .modal-actions { position: sticky; bottom: 0; }

  /* HUD 缩小 */
  body.is-touch .hud-top-left, body.is-touch .hud-objective { display: none; }
  body.is-touch .hud-top-center { top: 4px; }
  body.is-touch .hud-top-right { top: 4px; right: 8px; }
  body.is-touch .timer-block { padding: 3px 8px; }
  body.is-touch .timer-block strong { font-size: 19px; }
  body.is-touch .score-block strong { font-size: 20px; }
  body.is-touch .score-sub { font-size: 6.5px; }
  body.is-touch .hud-contracts, body.is-touch .level-objectives { display: none !important; }
  body.is-touch .vitals-panel { top: 48px; left: 8px; bottom: auto; width: 148px; padding: 6px 8px; }
  body.is-touch .health-row strong { font-size: 15px; }
  body.is-touch .weather-panel { display: none; }
  body.is-touch .hud-bottom-left { bottom: 114px; left: 8px; width: 150px; }
  body.is-touch .ammo-display { font-size: 14px; display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; }
  body.is-touch .ammo-label { display: none; }
  body.is-touch .call-chip { margin-left: 3px; padding-left: 3px; }
  body.is-touch .call-chip .call-word { display: none; }
  body.is-touch .call-chip button { font-size: 7px; padding: 2px 4px; white-space: nowrap; }
  body.is-touch .hud-bottom-right { display: none; }
  body.is-touch .side-feed { top: 48px; right: 8px; width: 190px; }
  body.is-touch .legendary-banner { top: 40px; max-width: 200px; }
  body.is-touch .tracking-banner { bottom: 190px; }
  body.is-touch .touch-stick { width: 100px; height: 100px; left: 10px; bottom: 12px; }
  body.is-touch .touch-actions {
    width: 250px;
    height: 240px;
    right: max(8px, env(safe-area-inset-right));
    bottom: max(6px, env(safe-area-inset-bottom));
  }
  body.is-touch .touch-fire { width: 78px; height: 78px; right: 4px; bottom: 66px; font-size: 12px; }
  body.is-touch .touch-call { width: 52px; height: 52px; right: 16px; bottom: 4px; font-size: 9px; }
  body.is-touch .touch-ads { width: 58px; height: 58px; right: 100px; bottom: 108px; font-size: 10px; }
  body.is-touch .touch-reload { width: 48px; height: 48px; right: 16px; bottom: 152px; font-size: 8.5px; }
  body.is-touch .touch-weapon { width: 42px; height: 42px; right: 166px; bottom: 178px; font-size: 8px; }
  body.is-touch .touch-crouch { width: 42px; height: 42px; right: 112px; bottom: 182px; font-size: 8px; }
  body.is-touch .touch-use { width: 44px; height: 44px; left: 0; bottom: 108px; font-size: 9px; }
  body.is-touch .touch-pause { width: 34px; height: 34px; top: 46px; right: 8px; font-size: 8px; }
  body.is-touch .field-meter { display: none; }
  body.is-touch .objective-tip { display: none !important; }
  body.is-touch .ammo-display .call-chip { margin-left: 4px; }
}

/* 超小屏手机横屏：只保留入口面板，避免两栏挤在一起 */
@media (orientation: landscape) and (max-height: 560px) and (max-width: 620px) {
  .hub-grid { display: block; width: calc(100vw - 20px); padding: 52px 0 16px; }
  .hub-grid .hero-copy { display: none; }
  .hub-panel { width: 100%; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   猎场地图 · RESERVE MAP（航拍实景）
   ═══════════════════════════════════════════════════════════════════════════ */
.reserve-map-screen {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  background: #040906;
  color: var(--paper);
  isolation: isolate;
}
.reserve-map-screen.hidden { display: none !important; }
body.rm-open { overflow: hidden; }

.rm-topbar {
  position: relative;
  z-index: 4;
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(14px, 2.6vw, 30px) 13px;
  border-bottom: 1px solid rgba(232, 224, 200, 0.11);
  background:
    radial-gradient(120% 180% at 18% 0%, rgba(45, 74, 52, 0.5), transparent 62%),
    linear-gradient(180deg, #091009, #060b08);
}
.rm-heading { min-width: 0; }
.rm-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--hunt-gold);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.24em;
}
.rm-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.8vw, 25px);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.1;
}
.rm-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}
.rm-tools { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.rm-tool {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(232, 224, 200, 0.16);
  background: rgba(6, 12, 9, 0.55);
  color: var(--paper-dim);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.rm-tool:hover { color: var(--hunt-gold); border-color: rgba(227, 188, 109, 0.55); background: rgba(227, 188, 109, 0.06); }
.rm-close {
  width: 34px;
  height: 32px;
  border: 1px solid rgba(232, 224, 200, 0.16);
  background: rgba(6, 12, 9, 0.55);
  color: var(--paper-dim);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.rm-close:hover { color: #f0c9a8; border-color: rgba(209, 120, 95, 0.6); }

.rm-body {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 372px;
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
}

/* ── stage / 底图 ── */
.rm-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  background:
    radial-gradient(120% 90% at 50% 0%, #102018 0%, #060d09 55%, #040806 100%);
}
.rm-stage::before {
  content: "";
  position: absolute;
  inset: -60px;
  z-index: 0;
  pointer-events: none;
  background: url("./assets/maps/reserve-aerial-lqip.jpg") center / cover no-repeat;
  filter: blur(34px) saturate(0.65) brightness(0.42);
  opacity: 0.5;
  transform: scale(1.08);
}
.rm-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(130% 100% at 50% 46%, transparent 48%, rgba(3, 8, 5, 0.42) 100%),
    linear-gradient(180deg, rgba(3, 8, 5, 0.28), transparent 18%, transparent 82%, rgba(3, 8, 5, 0.36));
}
.reserve-map-screen.is-dragging .rm-stage { cursor: grabbing; }
.reserve-map-screen.is-dragging .rm-site,
.reserve-map-screen.is-dragging .rm-poi { pointer-events: none; }

.rm-canvas {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: 600px;
  height: 600px;
  transform-origin: 0 0;
  will-change: transform;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  background: #0b120d;
}
.reserve-map-screen.is-flying .rm-canvas { transition: transform 0.58s var(--ease); }

.rm-map-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: blur(14px) saturate(0.8);
  transform: scale(1.04);
}
.rm-map-pic { position: absolute; inset: 0; display: block; }
.rm-map-pic img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
  user-select: none;
  -webkit-user-drag: none;
}
.reserve-map-screen.is-ready .rm-map-pic img { opacity: 1; transform: none; }

.rm-zones,
.rm-trails {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.rm-zones { z-index: 1; }
.rm-trails { z-index: 2; pointer-events: none; }
.rm-zone { cursor: pointer; transition: fill-opacity 0.2s, stroke-opacity 0.2s; }
.rm-zone:hover { fill-opacity: 0.23; stroke-opacity: 0.9; }
.rm-zone.is-active { fill-opacity: 0.2; stroke: var(--hunt-gold); stroke-opacity: 0.95; }

.rm-layer { position: absolute; inset: 0; }
.rm-zone-labels { z-index: 3; pointer-events: none; }
.rm-poi-layer { z-index: 5; }
.rm-site-layer { z-index: 6; }

/* 分区名 */
.rm-zone-label,
.rm-buffer-label {
  position: absolute;
  transform: translate(-50%, -50%) scale(var(--rm-inv, 1));
  transform-origin: center;
  white-space: nowrap;
  padding: 3px 7px;
  border: 1px solid rgba(238, 230, 210, 0.16);
  background: rgba(5, 11, 8, 0.58);
  color: rgba(242, 236, 220, 0.82);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.2em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(3px);
}
.rm-zone-label.is-active { color: #ffe9b6; border-color: rgba(227, 188, 109, 0.7); }
.rm-buffer-label {
  color: rgba(226, 168, 146, 0.85);
  border-color: rgba(201, 138, 118, 0.35);
  background: rgba(30, 10, 8, 0.4);
  letter-spacing: 0.16em;
}

/* 章节节点 */
.rm-site {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--paper);
  cursor: pointer;
  transform: translate(-50%, -50%) scale(var(--rm-inv, 1));
  transform-origin: center;
  transition: filter 0.2s;
}
.rm-site.is-left { flex-direction: row-reverse; }
.rm-site-pin {
  position: relative;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(227, 188, 109, 0.85);
  border-radius: 50%;
  background: rgba(5, 11, 8, 0.9);
  box-shadow: 0 0 0 3px rgba(5, 11, 8, 0.5), 0 4px 14px rgba(0, 0, 0, 0.55);
}
.rm-site-pin b {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #ffe1a2;
}
.rm-site-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(var(--hunt-gold) 0 var(--p, 0%), rgba(238, 230, 210, 0.12) var(--p, 0%) 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  pointer-events: none;
}
.rm-site-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  padding: 4px 8px 4px 7px;
  border-left: 1px solid rgba(227, 188, 109, 0.45);
  background: linear-gradient(90deg, rgba(5, 11, 8, 0.82), rgba(5, 11, 8, 0.52));
  backdrop-filter: blur(4px);
  text-align: left;
  white-space: nowrap;
}
.rm-site.is-left .rm-site-copy {
  border-left: 0;
  border-right: 1px solid rgba(227, 188, 109, 0.45);
  background: linear-gradient(270deg, rgba(5, 11, 8, 0.82), rgba(5, 11, 8, 0.52));
  text-align: right;
  align-items: flex-end;
}
.rm-site-copy b {
  color: #f4ecd8;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.9);
}
.rm-site-copy small {
  display: flex;
  gap: 5px;
  color: rgba(238, 230, 210, 0.55);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.06em;
}
.rm-site-copy small i { font-style: normal; color: rgba(227, 188, 109, 0.72); }
.rm-site-stars { color: var(--hunt-gold); letter-spacing: 0; }
.rm-site:hover,
.rm-site.is-active { filter: drop-shadow(0 0 10px rgba(227, 188, 109, 0.45)); }
.rm-site.is-active .rm-site-pin { background: #2a2213; border-color: #ffe1a2; }
.rm-site.is-active .rm-site-copy {
  border-color: #ffe1a2;
  background: linear-gradient(90deg, rgba(38, 30, 15, 0.92), rgba(10, 16, 11, 0.62));
}
.rm-site.is-locked { filter: saturate(0.4); opacity: 0.58; }
.rm-site.is-locked .rm-site-pin { border-style: dashed; }
.rm-site.is-locked .rm-site-copy b { color: rgba(238, 230, 210, 0.65); }

/* 地标 */
.rm-poi {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--paper-dim);
  cursor: pointer;
  transform: translate(-50%, -50%) scale(var(--rm-inv, 1));
  transform-origin: center;
}
.rm-poi-icon {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(238, 230, 210, 0.38);
  border-radius: 50%;
  background: rgba(5, 11, 8, 0.78);
  color: #d9e6d7;
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}
.rm-poi-label {
  padding: 2px 5px;
  background: rgba(5, 11, 8, 0.62);
  color: rgba(238, 230, 210, 0.8);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.07em;
  white-space: nowrap;
  backdrop-filter: blur(3px);
  opacity: 0.94;
  transition: opacity 0.2s, color 0.2s;
}
.rm-poi[data-poi="main-lake"] .rm-poi-icon,
.rm-poi[data-poi="stream"] .rm-poi-icon { color: #9fd4dd; border-color: rgba(111, 169, 181, 0.7); }
.rm-poi[data-poi^="tower"] .rm-poi-icon { color: #e3bc6d; border-color: rgba(227, 188, 109, 0.65); }
.rm-poi[data-poi="cabin"] .rm-poi-icon { color: #d8a986; border-color: rgba(216, 169, 134, 0.65); }
.rm-poi:hover .rm-poi-icon,
.rm-poi.is-active .rm-poi-icon { border-color: #ffe1a2; color: #ffe1a2; box-shadow: 0 0 12px rgba(227, 188, 109, 0.45); }
.rm-poi:hover .rm-poi-label,
.rm-poi.is-active .rm-poi-label { color: #ffe9bd; opacity: 1; }

/* 地图控件 */
.rm-north {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;
  width: 38px;
  height: 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1px solid rgba(238, 230, 210, 0.2);
  background: rgba(5, 11, 8, 0.65);
  color: var(--paper-dim);
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.rm-north span { font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.1em; color: var(--hunt-gold); }
.rm-north i { font-style: normal; font-size: 13px; line-height: 1; }
.rm-north:hover { border-color: rgba(227, 188, 109, 0.6); }

.rm-controls {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border: 1px solid rgba(238, 230, 210, 0.18);
  background: rgba(5, 11, 8, 0.72);
  backdrop-filter: blur(6px);
}
.rm-controls button {
  width: 36px;
  height: 32px;
  border: 0;
  border-bottom: 1px solid rgba(238, 230, 210, 0.1);
  background: none;
  color: var(--paper-dim);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.rm-controls button:hover { color: var(--hunt-gold); background: rgba(227, 188, 109, 0.08); }
.rm-controls span {
  padding: 5px 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.05em;
  text-align: center;
}

.rm-scale {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  gap: 7px;
  pointer-events: none;
}
.rm-scale i {
  display: block;
  height: 7px;
  min-width: 18px;
  border: 1px solid rgba(238, 230, 210, 0.8);
  border-top: 0;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}
.rm-scale span {
  color: rgba(238, 230, 210, 0.78);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 4px #000;
}
.rm-coords {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 4;
  transform: translateX(-50%);
  color: rgba(238, 230, 210, 0.6);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.12em;
  text-shadow: 0 1px 4px #000;
  pointer-events: none;
  min-height: 10px;
}

.rm-loading {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #060c08;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  transition: opacity 0.5s;
}
.rm-loading span {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(227, 188, 109, 0.25);
  border-top-color: var(--hunt-gold);
  border-radius: 50%;
  animation: rmSpin 0.9s linear infinite;
}
.reserve-map-screen.is-ready .rm-loading { opacity: 0; pointer-events: none; }
@keyframes rmSpin { to { transform: rotate(360deg); } }

/* ── panel ── */
.rm-panel {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-left: 1px solid rgba(232, 224, 200, 0.12);
  background:
    radial-gradient(90% 60% at 0% 0%, rgba(33, 55, 39, 0.35), transparent 60%),
    linear-gradient(180deg, #0a120d, #060b08);
}
.rm-panel-body {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px 20px 30px;
  scrollbar-width: thin;
  scrollbar-color: rgba(238, 230, 210, 0.22) transparent;
}
.rm-panel-body::-webkit-scrollbar { width: 4px; }
.rm-panel-body::-webkit-scrollbar-thumb { background: rgba(238, 230, 210, 0.2); }
.rm-panel-inner { display: flex; flex-direction: column; gap: 11px; }

.rm-panel-inner h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.rm-en {
  margin: -6px 0 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.18em;
}
.rm-lead {
  margin: 3px 0 0;
  color: rgba(238, 230, 210, 0.76);
  font-size: 10.5px;
  line-height: 1.95;
  letter-spacing: 0.02em;
}
.rm-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.rm-tags span {
  padding: 3px 7px;
  border: 1px solid rgba(232, 224, 200, 0.14);
  color: rgba(238, 230, 210, 0.7);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}
.rm-quote {
  margin: 2px 0 0;
  padding: 9px 11px;
  border-left: 2px solid rgba(227, 188, 109, 0.55);
  background: rgba(227, 188, 109, 0.05);
  color: rgba(238, 230, 210, 0.8);
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1.6;
}
.rm-progress { height: 3px; margin-top: 2px; background: rgba(238, 230, 210, 0.1); overflow: hidden; }
.rm-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--hunt-cyan), var(--hunt-gold)); transition: width 0.5s var(--ease); }
.rm-progress-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: -4px;
  color: rgba(238, 230, 210, 0.48);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.04em;
}

.rm-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 4px 0 2px;
  background: rgba(232, 224, 200, 0.1);
  border: 1px solid rgba(232, 224, 200, 0.1);
}
.rm-stats div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 8px;
  background: #08100b;
}
.rm-stats span { color: var(--muted); font-family: var(--font-mono); font-size: 6.5px; letter-spacing: 0.12em; }
.rm-stats b { color: var(--paper-dim); font-weight: 400; font-size: 11px; }

.rm-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(232, 224, 200, 0.12);
}
.rm-section-head span { color: var(--paper-dim); font-size: 9px; letter-spacing: 0.14em; }
.rm-section-head b { color: rgba(227, 188, 109, 0.75); font-family: var(--font-mono); font-size: 7px; font-weight: 400; letter-spacing: 0.14em; }

.rm-zone-list { display: flex; flex-direction: column; gap: 1px; }
.rm-zone-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 7px;
  border: 1px solid transparent;
  border-bottom-color: rgba(232, 224, 200, 0.06);
  background: none;
  color: var(--paper-dim);
  text-align: left;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}
.rm-zone-item:hover { background: rgba(227, 188, 109, 0.05); border-color: rgba(227, 188, 109, 0.22); }
.rm-zone-item i { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; box-shadow: 0 0 8px currentColor; }
.rm-zone-item span { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.rm-zone-item b { font-size: 10px; font-weight: 400; letter-spacing: 0.05em; }
.rm-zone-item small { color: var(--muted); font-family: var(--font-mono); font-size: 6.5px; letter-spacing: 0.05em; }
.rm-zone-item em { font-style: normal; color: rgba(227, 188, 109, 0.6); font-size: 10px; }

.rm-level-list { display: flex; flex-direction: column; gap: 1px; }
.rm-level {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 6px;
  border: 1px solid transparent;
  border-bottom-color: rgba(232, 224, 200, 0.07);
  background: none;
  color: var(--paper-dim);
  text-align: left;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}
.rm-level:hover { background: rgba(227, 188, 109, 0.06); border-color: rgba(227, 188, 109, 0.24); }
.rm-level-num { color: rgba(227, 188, 109, 0.75); font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.04em; }
.rm-level-copy { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.rm-level-copy b { color: var(--paper-dim); font-size: 9.5px; font-weight: 400; letter-spacing: 0.04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-level-copy small { color: var(--muted); font-family: var(--font-mono); font-size: 6.5px; letter-spacing: 0.05em; }
.rm-level-go { color: rgba(227, 188, 109, 0.6); font-size: 9px; }
.rm-level.is-locked { opacity: 0.4; cursor: not-allowed; }
.rm-level.is-locked:hover { background: none; border-color: transparent; border-bottom-color: rgba(232, 224, 200, 0.07); }
.rm-locked-note {
  margin: 2px 0 0;
  padding: 7px 9px;
  border: 1px dashed rgba(232, 224, 200, 0.16);
  color: rgba(238, 230, 210, 0.5);
  font-size: 8px;
  line-height: 1.7;
}

.rm-tip {
  padding: 9px 11px;
  border: 1px solid rgba(128, 229, 216, 0.18);
  background: rgba(128, 229, 216, 0.04);
}
.rm-tip b { display: block; margin-bottom: 4px; color: var(--hunt-cyan); font-family: var(--font-mono); font-size: 7px; font-weight: 400; letter-spacing: 0.16em; }
.rm-tip p { margin: 0; color: rgba(238, 230, 210, 0.7); font-size: 9.5px; line-height: 1.8; }

.rm-near-list { display: flex; flex-direction: column; gap: 1px; }
.rm-near-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 6px;
  border: 1px solid transparent;
  border-bottom-color: rgba(232, 224, 200, 0.07);
  background: none;
  color: var(--paper-dim);
  text-align: left;
  cursor: pointer;
}
.rm-near-item:hover { background: rgba(227, 188, 109, 0.06); border-color: rgba(227, 188, 109, 0.24); }
.rm-near-item span { color: rgba(227, 188, 109, 0.7); font-family: var(--font-mono); font-size: 8px; }
.rm-near-item b { flex: 1; font-size: 9.5px; font-weight: 400; }
.rm-near-item small { color: var(--muted); font-family: var(--font-mono); font-size: 6.5px; }

.rm-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 6px; }
.rm-actions .primary-btn,
.rm-actions .ghost-btn { min-height: 36px; }
.rm-hint-block {
  margin-top: 4px;
  padding: 9px 11px;
  border: 1px solid rgba(232, 224, 200, 0.1);
  background: rgba(232, 224, 200, 0.02);
}
.rm-hint-block b { display: block; margin-bottom: 4px; color: var(--muted); font-family: var(--font-mono); font-size: 7px; font-weight: 400; letter-spacing: 0.14em; }
.rm-hint-block p { margin: 0; color: rgba(238, 230, 210, 0.55); font-size: 8.5px; line-height: 1.75; }
.rm-foot {
  margin: 4px 0 0;
  color: rgba(238, 230, 210, 0.32);
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.06em;
  line-height: 1.7;
}

/* 图例 */
.rm-legend {
  position: absolute;
  top: 78px;
  right: 20px;
  z-index: 8;
  width: 272px;
  padding: 13px 14px;
  border: 1px solid rgba(232, 224, 200, 0.18);
  background: rgba(6, 12, 9, 0.94);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
}
.rm-legend-layers { padding-bottom: 10px; border-bottom: 1px solid rgba(232, 224, 200, 0.12); }
.rm-legend-title { display: block; margin-bottom: 7px; color: var(--muted); font-family: var(--font-mono); font-size: 7px; letter-spacing: 0.16em; }
.rm-layer { display: flex; align-items: center; gap: 6px; padding: 2px 0; color: var(--paper-dim); font-size: 8.5px; cursor: pointer; }
.rm-layer input { width: 11px; height: 11px; accent-color: #c9a75f; }
.rm-legend-list { display: flex; flex-direction: column; gap: 7px; padding-top: 10px; }
.rm-legend-row { display: grid; grid-template-columns: 22px 1fr; grid-template-rows: auto auto; column-gap: 7px; align-items: center; }
.rm-legend-row b { color: var(--paper-dim); font-size: 8.5px; font-weight: 400; letter-spacing: 0.05em; }
.rm-legend-row small { grid-column: 2; color: var(--muted); font-family: var(--font-mono); font-size: 6.5px; letter-spacing: 0.04em; }
.rm-legend-mark {
  grid-row: 1 / span 2;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(232, 224, 200, 0.25);
  border-radius: 50%;
  color: var(--paper-dim);
  font-family: var(--font-mono);
  font-size: 7px;
}
.rm-legend-mark.is-site { border-color: rgba(227, 188, 109, 0.7); color: #ffe1a2; }
.rm-legend-mark.is-tower { border-radius: 2px; color: #e3bc6d; }
.rm-legend-mark.is-water { color: #9fd4dd; border-color: rgba(111, 169, 181, 0.6); }
.rm-legend-mark.is-cabin { border-radius: 2px; color: #d8a986; }
.rm-legend-mark.is-buffer { color: #e2a892; border-color: rgba(201, 138, 118, 0.5); }
.rm-legend-mark.is-trail { border: 0; color: var(--hunt-gold); }

/* 图层开关 */
.rm-hide-zones .rm-zones,
.rm-hide-zones .rm-zone-labels { display: none; }
.rm-hide-trails .rm-trails { display: none; }
.rm-hide-sites .rm-site-layer { display: none; }
.rm-hide-pois .rm-poi-layer { display: none; }

/* 关卡页地图入口（顶栏图标） */
.level-map-btn { flex: 0 0 auto; width: 36px; height: 36px; }
.level-map-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.level-map-btn:hover { color: var(--hunt-gold); border-color: rgba(227, 188, 109, 0.6); }

/* ── 响应式 ── */
@media (max-width: 1100px) {
  .rm-body { grid-template-columns: minmax(0, 1fr) 330px; }
  .rm-panel-body { padding: 18px 16px 26px; }
}

@media (max-width: 860px) {
  .rm-topbar { align-items: center; padding: 10px 13px; }
  .rm-heading h2 { font-size: 17px; }
  .rm-heading p { display: none; }
  .rm-tool { min-height: 29px; padding: 0 9px; font-size: 7.5px; }
  .rm-close { height: 29px; width: 30px; }
  .rm-body { display: flex; flex-direction: column; }
  .rm-stage { flex: 1 1 56%; min-height: 0; }
  .rm-panel { flex: 1 1 44%; min-height: 0; border-left: 0; border-top: 1px solid rgba(232, 224, 200, 0.14); }
  .rm-panel-body { padding: 14px 14px 22px; }
  .rm-panel-inner { gap: 8px; }
  .rm-panel-inner h3 { font-size: 20px; }
  .rm-lead { font-size: 9.5px; line-height: 1.8; }
  .rm-stats { grid-template-columns: repeat(3, 1fr); }
  .rm-stats div { padding: 7px 6px; }
  .rm-legend { top: 62px; right: 10px; width: min(280px, calc(100vw - 20px)); }
  .rm-north { top: 10px; right: 10px; width: 32px; height: 38px; }
  .rm-controls { right: 10px; bottom: 12px; }
  .rm-scale { left: 12px; bottom: 12px; }
  .rm-coords { display: none; }
  .rm-zone-label, .rm-buffer-label { font-size: 6.5px; letter-spacing: 0.12em; padding: 2px 5px; }
  .rm-site-copy { display: none; }
  .rm-site.is-active .rm-site-copy { display: flex; position: absolute; left: 34px; top: 50%; transform: translateY(-50%); }
  .rm-site.is-left.is-active .rm-site-copy { left: auto; right: 34px; }
  .rm-poi-label { display: none; }
  .rm-poi.is-active .rm-poi-label { display: block; position: absolute; left: 24px; top: 50%; transform: translateY(-50%); }
}

@media (max-width: 520px) {
  .rm-heading h2 { font-size: 15px; letter-spacing: 0.03em; }
  .rm-eyebrow { font-size: 6.5px; }
  .rm-tool { padding: 0 7px; }
  .rm-stats { grid-template-columns: repeat(2, 1fr); }
  .rm-zone-label { display: none; }
  .rm-buffer-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reserve-map-screen.is-flying .rm-canvas { transition: none; }
  .rm-map-pic img { transition: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   手机触控布局 v5.8
   左下摇杆参考星屿火线：149px 外圈 + 内环 + 58px 摇杆帽
   右下：射击 1.2×，换弹正上方、换枪再上、开镜左上 45°、蹲伏左侧平齐
   ═══════════════════════════════════════════════════════════════════════════ */
body.is-touch .touch-actions {
  --edge-r: max(8px, env(safe-area-inset-right));
  --edge-b: max(8px, env(safe-area-inset-bottom));
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

body.is-touch .touch-stick {
  left: max(14px, env(safe-area-inset-left));
  bottom: max(18px, env(safe-area-inset-bottom));
  width: 149px;
  height: 149px;
  border: 1px solid rgba(226, 216, 187, 0.24);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.055), rgba(8, 11, 7, 0.25) 65%, rgba(8, 11, 7, 0.5));
  transition: border-color 0.15s ease;
}
body.is-touch .touch-stick::after {
  inset: 33px;
  border-color: rgba(226, 216, 187, 0.15);
}
body.is-touch .touch-stick::before {
  content: "移动";
  position: absolute;
  left: 50%;
  bottom: -11px;
  transform: translateX(-50%);
  color: rgba(238, 230, 210, 0.58);
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.12em;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}
body.is-touch .touch-stick.active {
  border-color: rgba(227, 188, 109, 0.7);
}
body.is-touch #touch-knob {
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  border: 1px solid rgba(227, 188, 109, 0.55);
  background: rgba(227, 188, 109, 0.18);
  box-shadow: 0 0 16px rgba(227, 188, 109, 0.13);
}

body.is-touch .touch-fire {
  width: 94px;
  height: 94px;
  right: var(--edge-r);
  bottom: var(--edge-b);
  border-width: 2px;
  border-color: rgba(227, 188, 109, 0.68);
  background: radial-gradient(circle at 38% 32%, rgba(227, 188, 109, 0.4), rgba(209, 120, 95, 0.22) 60%, rgba(6, 12, 9, 0.72));
  box-shadow: 0 0 24px rgba(209, 120, 95, 0.18), inset 0 0 24px rgba(227, 188, 109, 0.09);
  color: #fff0d2;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}
body.is-touch .touch-ads {
  width: 70px;
  height: 70px;
  right: calc(var(--edge-r) + 94px);
  bottom: calc(var(--edge-b) + 94px);
  font-size: 12px;
}
body.is-touch .touch-reload {
  width: 58px;
  height: 58px;
  right: calc(var(--edge-r) + 18px);
  bottom: calc(var(--edge-b) + 102px);
  font-size: 10px;
}
body.is-touch .touch-weapon {
  width: 50px;
  height: 50px;
  right: calc(var(--edge-r) + 22px);
  bottom: calc(var(--edge-b) + 168px);
  font-size: 9.5px;
}
body.is-touch .touch-crouch {
  width: 50px;
  height: 50px;
  right: calc(var(--edge-r) + 102px);
  bottom: var(--edge-b);
  font-size: 9.5px;
}
body.is-touch .touch-use {
  left: auto;
  width: 48px;
  height: 48px;
  right: calc(var(--edge-r) + 160px);
  bottom: var(--edge-b);
  font-size: 9.5px;
}
body.is-touch .touch-call {
  width: 48px;
  height: 48px;
  right: calc(var(--edge-r) + 216px);
  bottom: var(--edge-b);
  border-color: rgba(227, 188, 109, 0.5);
  font-size: 9.5px;
}
body.is-touch .touch-btn.is-on {
  border-color: rgba(227, 188, 109, 0.72);
  background: rgba(227, 188, 109, 0.14);
  color: #ffe1a2;
}
body.is-touch .touch-btn:active {
  background: rgba(227, 188, 109, 0.2);
}

/* 生命值固定在左上角 */
body.is-touch .vitals-panel {
  top: max(8px, env(safe-area-inset-top));
  left: max(8px, env(safe-area-inset-left));
  bottom: auto;
  width: 148px;
  padding: 6px 8px;
}
body.is-touch .health-row strong { font-size: 16px; }

/* 弹药条移到摇杆上方，避免和触控区重叠 */
body.is-touch .hud-bottom-left {
  left: 12px;
  bottom: 172px;
  width: 170px;
}
body.is-touch .call-chip { display: none; }
body.is-touch .ammo-display { font-size: 16px; }

/* 小屏：整体等比缩小，保持同样的相对位置 */
@media (max-width: 620px) {
  body.is-touch .touch-actions {
    --edge-r: max(6px, env(safe-area-inset-right));
    --edge-b: max(6px, env(safe-area-inset-bottom));
  }
  body.is-touch .touch-stick {
    width: 118px;
    height: 118px;
    left: max(8px, env(safe-area-inset-left));
    bottom: max(18px, env(safe-area-inset-bottom));
  }
  body.is-touch .touch-stick::after { inset: 26px; }
  body.is-touch #touch-knob {
    width: 48px;
    height: 48px;
    margin: -24px 0 0 -24px;
  }
  body.is-touch .touch-fire {
    width: 84px;
    height: 84px;
    font-size: 12.5px;
  }
  body.is-touch .touch-reload {
    width: 58px;
    height: 58px;
    right: calc(var(--edge-r) + 13px);
    bottom: calc(var(--edge-b) + 96px);
    font-size: 9.5px;
  }
  body.is-touch .touch-weapon {
    width: 44px;
    height: 44px;
    right: calc(var(--edge-r) + 20px);
    bottom: calc(var(--edge-b) + 160px);
    font-size: 8.5px;
  }
  body.is-touch .touch-ads {
    width: 66px;
    height: 66px;
    right: calc(var(--edge-r) + 84px);
    bottom: calc(var(--edge-b) + 84px);
    font-size: 11px;
  }
  body.is-touch .touch-crouch {
    width: 50px;
    height: 50px;
    right: calc(var(--edge-r) + 92px);
    bottom: var(--edge-b);
    font-size: 8.5px;
  }
  body.is-touch .touch-use {
    width: 44px;
    height: 44px;
    right: calc(var(--edge-r) + 150px);
    bottom: var(--edge-b);
    font-size: 8.5px;
  }
  body.is-touch .touch-call {
    width: 44px;
    height: 44px;
    right: calc(var(--edge-r) + 202px);
    bottom: var(--edge-b);
    font-size: 8.5px;
  }
  body.is-touch .vitals-panel { width: 136px; top: max(6px, env(safe-area-inset-top)); }
  body.is-touch .hud-bottom-left { bottom: 140px; width: 150px; left: 8px; }
  body.is-touch .ammo-display { font-size: 14px; }
}

/* 320–380px 窄屏再缩一档 */
@media (max-width: 380px) {
  body.is-touch .touch-stick {
    width: 104px;
    height: 104px;
    left: 6px;
    bottom: 18px;
  }
  body.is-touch .touch-stick::after { inset: 23px; }
  body.is-touch #touch-knob {
    width: 42px;
    height: 42px;
    margin: -21px 0 0 -21px;
  }
  body.is-touch .touch-fire { width: 70px; height: 70px; }
  body.is-touch .touch-reload {
    width: 46px;
    height: 46px;
    right: calc(var(--edge-r) + 12px);
    bottom: calc(var(--edge-b) + 76px);
  }
  body.is-touch .touch-weapon {
    width: 38px;
    height: 38px;
    right: calc(var(--edge-r) + 16px);
    bottom: calc(var(--edge-b) + 128px);
  }
  body.is-touch .touch-ads {
    width: 52px;
    height: 52px;
    right: calc(var(--edge-r) + 70px);
    bottom: calc(var(--edge-b) + 70px);
  }
  body.is-touch .touch-crouch {
    width: 42px;
    height: 42px;
    right: calc(var(--edge-r) + 76px);
  }
  body.is-touch .touch-use {
    width: 36px;
    height: 36px;
    right: calc(var(--edge-r) + 124px);
  }
  body.is-touch .touch-call {
    width: 36px;
    height: 36px;
    right: calc(var(--edge-r) + 166px);
  }
  body.is-touch .hud-bottom-left { bottom: 124px; width: 140px; }
}
body.is-touch .touch-btn { text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7); }
