/* ==========================================================================
   星屿火线 · IRONLINE — 界面样式
   ========================================================================== */

:root {
  --bg: #0e110d;
  --bg-deep: #080a07;
  --panel: rgba(13, 17, 12, 0.72);
  --panel-solid: #151a13;
  --panel-light: rgba(29, 35, 25, 0.74);
  --line: rgba(222, 213, 187, 0.17);
  --line-strong: rgba(236, 225, 195, 0.32);
  --text: #eee9d9;
  --text-bright: #fffbf0;
  --muted: #a6a18e;
  --muted-2: #767764;
  --accent: #ff9a3c;
  --accent-deep: #e57316;
  --accent-soft: #ffd7a1;
  --green: #8dcc72;
  --amber: #e6b454;
  --danger: #e25b43;
  --danger-soft: #ff8c74;
  --font-display: "Bahnschrift SemiCondensed", "Bahnschrift", "DIN Alternate", "Arial Narrow", "Microsoft YaHei", sans-serif;
  --font-ui: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Segoe UI", sans-serif;
  --font-mono: "Cascadia Mono", "Consolas", "SFMono-Regular", monospace;
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body { user-select: none; }
button, input { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 1px solid rgba(255, 175, 94, .82);
  outline-offset: 3px;
}
a { color: inherit; text-decoration: none; }
svg { display: block; }
.hidden { display: none !important; }

::selection { background: var(--accent); color: #141006; }

#app {
  position: fixed;
  inset: 0;
  z-index: 1;
}
#app canvas {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
}

/* --------------------------------------------------------------------------
   全局质感
   -------------------------------------------------------------------------- */
.fx-grain {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  opacity: 0.052;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.fx-scanline {
  position: fixed;
  inset: 0;
  z-index: 69;
  pointer-events: none;
  opacity: 0.12;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.035) 0 1px, transparent 1px 3px);
}
.fx-damage {
  position: fixed;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(ellipse at center, transparent 35%, rgba(112, 12, 5, 0.34) 76%, rgba(97, 8, 3, 0.76) 100%),
    linear-gradient(90deg, rgba(150, 20, 8, .16), transparent 24%, transparent 76%, rgba(150, 20, 8, .16));
  transition: opacity .22s ease-out;
}
.fx-damage.low {
  animation: low-health-pulse 1.5s ease-in-out infinite;
}

.screen {
  position: fixed;
  inset: 0;
  z-index: 20;
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 5px;
  border: 1px solid rgba(228, 218, 190, .27);
  border-bottom-color: rgba(228, 218, 190, .42);
  border-radius: 3px;
  background: rgba(255,255,255,.055);
  color: #d8d2be;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .17em;
  color: var(--accent-soft);
  text-transform: uppercase;
}
.eyebrow i {
  width: 18px;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(255,154,60,.65);
}

.btn-deploy {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 252px;
  height: 64px;
  padding: 0 20px 0 16px;
  border: 1px solid rgba(255, 207, 147, .5);
  background:
    linear-gradient(105deg, rgba(255, 199, 130, .22), transparent 45%),
    linear-gradient(135deg, #f08a25, #d96613);
  color: #fff9ed;
  box-shadow:
    0 16px 40px rgba(211, 99, 20, .2),
    inset 0 1px 0 rgba(255,255,255,.34);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  transition: filter .16s ease, transform .16s ease;
}
.btn-deploy::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.22) 48%, transparent 62%);
  transform: translateX(-110%);
  transition: transform .45s ease;
}
.btn-deploy:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-deploy:hover::after { transform: translateX(110%); }
.btn-deploy:active { transform: translateY(1px); filter: brightness(.96); }
.deploy-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 50%;
  position: relative;
}
.deploy-icon::before, .deploy-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #fff8eb;
}
.deploy-icon::before { width: 12px; height: 1px; }
.deploy-icon::after { width: 1px; height: 12px; }
.deploy-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.deploy-copy b { font-size: 17px; font-weight: 700; letter-spacing: .08em; }
.deploy-copy small { font-family: var(--font-mono); font-size: 8px; letter-spacing: .16em; opacity: .78; }
.deploy-arrow { margin-left: auto; font-size: 22px; font-weight: 300; opacity: .82; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  background: rgba(15, 19, 14, .5);
  color: var(--text);
  font-size: 12px;
  letter-spacing: .1em;
  transition: border-color .16s, background .16s, color .16s;
}
.btn-outline:hover { border-color: rgba(255,154,60,.55); background: rgba(255,154,60,.07); color: var(--accent-soft); }
.btn-outline.danger:hover { border-color: rgba(226,91,67,.55); background: rgba(226,91,67,.08); color: #ff9b86; }

/* --------------------------------------------------------------------------
   Loading
   -------------------------------------------------------------------------- */
.loading-screen {
  z-index: 60;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px 38px;
  background:
    radial-gradient(ellipse at 60% 45%, rgba(255,154,60,.055), transparent 44%),
    linear-gradient(135deg, #0b0f0a, #11160f 60%, #080b07);
  transition: opacity .5s ease, visibility .5s ease;
}
.loading-screen.leaving { opacity: 0; visibility: hidden; pointer-events: none; }
.loading-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(198, 202, 161, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198, 202, 161, .035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at center, black, transparent 78%);
}
.loading-topline, .loading-foot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .2em;
  color: var(--muted-2);
}
.loading-core {
  position: relative;
  align-self: center;
  width: min(460px, 72vw);
  text-align: center;
}
.loading-sight {
  position: relative;
  width: 52px;
  height: 52px;
  margin: 0 auto 26px;
  border: 1px solid rgba(255, 185, 105, .35);
  border-radius: 50%;
  animation: slow-spin 12s linear infinite;
}
.loading-sight::before, .loading-sight::after {
  content: "";
  position: absolute;
  background: rgba(255, 194, 120, .45);
}
.loading-sight::before { left: 50%; top: -9px; width: 1px; height: 70px; }
.loading-sight::after { top: 50%; left: -9px; height: 1px; width: 70px; }
.loading-sight i {
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: var(--accent);
  border-style: solid;
}
.loading-sight i:nth-child(1) { left: -3px; top: 3px; border-width: 1px 0 0 1px; }
.loading-sight i:nth-child(2) { right: -3px; top: 3px; border-width: 1px 1px 0 0; }
.loading-sight i:nth-child(3) { left: -3px; bottom: 3px; border-width: 0 0 1px 1px; }
.loading-sight i:nth-child(4) { right: -3px; bottom: 3px; border-width: 0 1px 1px 0; }
.loading-kicker {
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .22em;
  color: var(--muted);
}
.loading-core h1 {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-size: clamp(27px, 4vw, 40px);
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--text-bright);
}
.loading-core h1 span { color: var(--accent-soft); }
.loading-track {
  height: 2px;
  background: rgba(255,255,255,.09);
  overflow: hidden;
}
.loading-track i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #c96d1d, var(--accent), #ffe0b0);
  box-shadow: 0 0 15px rgba(255,154,60,.6);
  transition: width .35s ease;
}
.loading-core p {
  margin: 15px 0 0;
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--muted);
}
.loading-foot span:last-child { color: var(--accent-soft); }

/* --------------------------------------------------------------------------
   主菜单
   -------------------------------------------------------------------------- */
.menu-screen {
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(90deg, rgba(8,11,7,.94) 0%, rgba(8,11,7,.7) 38%, rgba(8,11,7,.16) 70%, rgba(8,11,7,.5) 100%),
    linear-gradient(0deg, rgba(8,11,7,.86) 0%, transparent 33%, transparent 76%, rgba(8,11,7,.62) 100%);
  overflow: hidden;
}
.menu-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 72% 42%, transparent 10%, rgba(4,6,3,.26) 75%);
}
.menu-screen::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  left: calc(50% + 296px);
  background: linear-gradient(transparent, rgba(255,154,60,.18) 22%, rgba(255,154,60,.1) 68%, transparent);
  pointer-events: none;
}
.menu-header {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 38px;
  border-bottom: 1px solid rgba(222, 213, 187, .1);
  background: linear-gradient(180deg, rgba(8,11,7,.52), transparent);
}
.brand-lockup { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 33px;
  height: 33px;
  position: relative;
  border: 1px solid rgba(255,154,60,.65);
  background: rgba(255,154,60,.08);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}
.brand-mark::before, .brand-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent);
}
.brand-mark::before { width: 15px; height: 1px; }
.brand-mark::after { width: 1px; height: 15px; }
.brand-mark span {
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(255,211,155,.38);
  border-radius: 50%;
}
.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-text strong { font-family: var(--font-display); font-size: 16px; font-weight: 600; letter-spacing: .15em; }
.brand-text small { font-family: var(--font-mono); font-size: 7px; letter-spacing: .16em; color: var(--muted); }
.menu-nav { display: flex; align-items: center; gap: 8px; }
.nav-link, .nav-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .08em;
  transition: color .15s, border-color .15s, background .15s;
}
.nav-link:hover, .nav-button:hover { color: var(--text); border-color: var(--line); background: rgba(255,255,255,.03); }
.nav-button { font-family: var(--font-ui); }
.nav-lock { border-color: rgba(222,213,187,.1); }
.lock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(255,154,60,.6);
}
.sound-icon { font-size: 13px; color: var(--accent-soft); }
.nav-button[aria-pressed="false"] { color: var(--muted-2); }
.nav-button[aria-pressed="false"] .sound-icon { color: var(--muted-2); }

.account-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  margin-right: 3px;
  padding: 3px 10px 3px 4px;
  border: 1px solid rgba(226,216,187,.14);
  background: rgba(12,16,11,.44);
  text-align: left;
  transition: border-color .16s, background .16s;
}
.account-chip:hover { border-color: rgba(255,154,60,.38); background: rgba(255,154,60,.045); }
.account-chip.is-online { border-color: rgba(141,204,114,.3); background: rgba(141,204,114,.045); }
.account-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 1px solid rgba(255,154,60,.36);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,196,126,.25), rgba(255,154,60,.04));
  color: var(--accent-soft);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}
.account-chip.is-online .account-avatar { border-color: rgba(141,204,114,.5); color: var(--green); background: rgba(141,204,114,.08); }
.account-chip-copy { display: flex; flex-direction: column; gap: 1px; min-width: 84px; }
.account-chip-copy b { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; font-weight: 600; letter-spacing: .03em; color: var(--text); }
.account-chip-copy small { font-family: var(--font-mono); font-size: 6px; letter-spacing: .07em; color: var(--muted-2); white-space: nowrap; }
.icp-link {
  display: inline-flex;
  align-items: center;
  margin-left: 5px;
  color: rgba(202,198,180,.65);
  text-decoration: underline;
  text-decoration-color: rgba(202,198,180,.25);
  text-underline-offset: 2px;
}
.icp-link:hover { color: var(--accent-soft); }
.footer-site { white-space: nowrap; }
.admin-config-link {
  display: inline-block;
  margin-top: 6px;
  color: var(--accent-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.menu-main {
  position: relative;
  z-index: 3;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(330px, .78fr);
  align-items: center;
  gap: clamp(32px, 6vw, 100px);
  width: min(1440px, calc(100vw - 100px));
  margin: 0 auto;
  padding: 24px 0 20px;
}
.menu-hero { max-width: 720px; padding-left: 6px; }
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .2em;
  color: var(--accent-soft);
  text-shadow: 0 1px 12px rgba(0,0,0,.6);
}
.hero-kicker i { width: 24px; height: 1px; background: var(--accent); box-shadow: 0 0 10px rgba(255,154,60,.5); }
.game-logo { display: flex; flex-direction: column; margin: 0 0 18px; line-height: .83; }
.logo-en {
  font-family: var(--font-display);
  font-size: clamp(75px, 9.4vw, 154px);
  font-weight: 700;
  font-stretch: condensed;
  letter-spacing: -.035em;
  color: var(--text-bright);
  text-shadow:
    0 4px 30px rgba(0,0,0,.5),
    0 0 60px rgba(255,154,60,.05);
}
.logo-en span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 183, 102, .86);
  text-shadow: 0 0 35px rgba(255,154,60,.13);
}
.logo-cn {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.1vw, 30px);
  font-weight: 500;
  letter-spacing: .48em;
  color: var(--accent-soft);
  text-shadow: 0 2px 18px rgba(0,0,0,.7);
}
.hero-lede {
  margin: 0 0 24px;
  max-width: 490px;
  font-size: 13px;
  line-height: 1.9;
  letter-spacing: .035em;
  color: rgba(230, 225, 207, .72);
  text-shadow: 0 1px 12px rgba(0,0,0,.55);
}
.hero-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 30px; }
.hero-tags span {
  padding: 5px 10px;
  border: 1px solid rgba(226,216,187,.14);
  background: rgba(12,15,10,.35);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .12em;
  color: var(--muted);
}
.hero-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-actions .btn-outline { height: 64px; min-width: 136px; }
.menu-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 28px;
  font-size: 9px;
  color: var(--muted-2);
}
.menu-hints span { display: inline-flex; align-items: center; gap: 5px; }

.briefing {
  position: relative;
  align-self: center;
  width: 100%;
  max-width: 400px;
  border: 1px solid rgba(226,216,187,.16);
  background:
    linear-gradient(150deg, rgba(37,43,30,.54), rgba(11,14,9,.72) 58%),
    rgba(9,12,8,.62);
  box-shadow: 0 28px 70px rgba(0,0,0,.32);
  backdrop-filter: blur(10px);
}
.briefing::before, .briefing::after {
  content: "";
  position: absolute;
  width: 17px;
  height: 17px;
  border-color: var(--accent);
  border-style: solid;
  opacity: .72;
}
.briefing::before { left: -1px; top: -1px; border-width: 1px 0 0 1px; }
.briefing::after { right: -1px; bottom: -1px; border-width: 0 1px 1px 0; }
.brief-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px 13px;
  border-bottom: 1px solid rgba(226,216,187,.11);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
}
.brief-head em {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 8px;
  font-style: normal;
  letter-spacing: .13em;
  color: var(--green);
}
.brief-head em i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 9px rgba(141,204,114,.85);
  animation: blink 1.7s ease-in-out infinite;
}
.brief-map {
  position: relative;
  height: 188px;
  overflow: hidden;
  border-bottom: 1px solid rgba(226,216,187,.11);
}
.brief-map svg { width: 100%; height: 100%; opacity: .9; }
.brief-map::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,154,60,.055) 1px, transparent 1px),
    linear-gradient(rgba(255,154,60,.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse at center, transparent 20%, black 100%);
  opacity: .5;
}
.map-label, .map-scale {
  position: absolute;
  bottom: 10px;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: .14em;
  color: rgba(220,213,190,.55);
}
.map-label { left: 14px; }
.map-scale { right: 14px; }
.brief-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid rgba(226,216,187,.11);
}
.brief-stats > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 16px;
  border-right: 1px solid rgba(226,216,187,.08);
  border-bottom: 1px solid rgba(226,216,187,.08);
}
.brief-stats > div:nth-child(2n) { border-right: 0; }
.brief-stats > div:nth-child(n+3) { border-bottom: 0; }
.brief-stats span { font-size: 9px; color: var(--muted-2); }
.brief-stats b { font-family: var(--font-display); font-size: 14px; font-weight: 600; letter-spacing: .04em; color: var(--text); }
.brief-loadout { padding: 14px 16px 16px; }
.loadout-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .16em;
  color: var(--muted);
}
.loadout-title span { color: var(--muted-2); letter-spacing: .08em; }
.loadout-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.loadout-weapon {
  position: relative;
  padding: 9px 10px 10px;
  border: 1px solid rgba(226,216,187,.1);
  background: rgba(255,255,255,.025);
  transition: border-color .16s, background .16s;
}
.loadout-weapon:hover { border-color: rgba(255,154,60,.3); background: rgba(255,154,60,.035); }
.loadout-weapon svg { width: 100%; height: 34px; margin-bottom: 5px; }
.loadout-weapon svg path { fill: rgba(220,215,194,.58); }
.loadout-weapon svg .accent { fill: rgba(255,154,60,.85); }
.loadout-weapon span { display: flex; align-items: baseline; justify-content: space-between; }
.loadout-weapon b { font-family: var(--font-display); font-size: 13px; letter-spacing: .05em; }
.loadout-weapon small { font-size: 8px; color: var(--muted-2); }
.loadout-weapon kbd { position: absolute; right: 7px; top: 7px; opacity: .55; }
.menu-footer {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 38px 18px;
  border-top: 1px solid rgba(222,213,187,.08);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: .14em;
  color: rgba(161,158,139,.55);
  background: linear-gradient(0deg, rgba(7,10,6,.5), transparent);
}

/* --------------------------------------------------------------------------
   HUD
   -------------------------------------------------------------------------- */
.hud {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  font-family: var(--font-ui);
}
.hud-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 20px;
  padding: 20px 24px 0;
}
.objective-panel {
  justify-self: start;
  min-width: 264px;
  padding: 13px 18px 14px 16px;
  border-left: 2px solid var(--accent);
  background: linear-gradient(90deg, rgba(8,12,7,.76), rgba(8,12,7,.16));
  box-shadow: 0 8px 30px rgba(0,0,0,.14);
}
.obj-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: .16em;
  color: var(--accent-soft);
  opacity: .9;
}
.obj-kicker i { width: 13px; height: 1px; background: var(--accent); }
.obj-title {
  margin: 5px 0 10px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .09em;
  color: var(--text-bright);
}
.obj-stats { display: flex; align-items: flex-end; gap: 14px; }
.obj-big { display: flex; align-items: baseline; gap: 7px; }
.obj-big b { font-family: var(--font-display); font-size: 32px; line-height: .9; font-weight: 600; color: var(--accent-soft); }
.obj-big span, .obj-small span { font-size: 9px; letter-spacing: .06em; color: var(--muted); }
.obj-small { display: flex; align-items: baseline; gap: 5px; }
.obj-small b { display: inline-block; transform-origin: left center; font-family: var(--font-display); font-size: 17px; font-weight: 500; color: var(--text); }
.obj-divider { width: 1px; height: 24px; background: var(--line); }

.compass {
  justify-self: center;
  width: min(360px, 32vw);
  padding-top: 1px;
  text-align: center;
}
.compass-window {
  position: relative;
  height: 34px;
  overflow: hidden;
  border-top: 1px solid rgba(226,216,187,.18);
  border-bottom: 1px solid rgba(226,216,187,.18);
  background: linear-gradient(90deg, rgba(8,11,7,.4), rgba(8,11,7,.16), rgba(8,11,7,.4));
  mask-image: linear-gradient(90deg, transparent, black 16%, black 84%, transparent);
}
.compass-strip { position: absolute; top: 0; left: 0; height: 100%; will-change: transform; }
.compass-tick {
  position: absolute;
  top: 7px;
  width: 1px;
  height: 7px;
  background: rgba(229,221,199,.48);
}
.compass-tick.major { top: 5px; height: 15px; background: rgba(245,238,216,.86); }
.compass-label {
  position: absolute;
  top: 21px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .08em;
  color: rgba(242,234,209,.82);
  text-shadow: 0 1px 3px rgba(0,0,0,.9);
}
.compass-label.cardinal { color: var(--accent-soft); font-size: 9px; font-weight: 600; }
.compass-center {
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 1px;
  height: 8px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(255,154,60,.8);
  transform: translateX(-50%);
}
.compass-readout {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .14em;
  color: rgba(217,211,189,.7);
}

.status-panel {
  justify-self: end;
  display: flex;
  align-items: stretch;
  border: 1px solid rgba(226,216,187,.13);
  background: rgba(8,12,7,.55);
  backdrop-filter: blur(7px);
}
.status-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 75px;
  padding: 9px 13px;
  border-right: 1px solid rgba(226,216,187,.09);
}
.status-cell:last-child { border-right: 0; }
.status-cell span { font-size: 8px; letter-spacing: .08em; color: var(--muted-2); }
.status-cell b { font-family: var(--font-display); font-size: 14px; font-weight: 500; letter-spacing: .07em; color: var(--text); }
.status-sep b { color: var(--accent-soft); }

.killfeed {
  position: absolute;
  top: 132px;
  right: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  max-width: 340px;
}
.kill-entry {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(226,216,187,.13);
  background: rgba(8,11,7,.72);
  backdrop-filter: blur(6px);
  font-size: 10px;
  color: var(--muted);
  animation: feed-in .22s ease-out both;
}
.kill-entry.out { animation: feed-out .3s ease-in both; }
.kill-entry .kf-name { color: var(--text); font-weight: 600; }
.kill-entry .kf-weapon { font-family: var(--font-mono); font-size: 8px; letter-spacing: .05em; color: var(--accent-soft); }
.kill-entry .kf-head { color: var(--danger-soft); font-family: var(--font-mono); font-size: 8px; }
.kill-entry .kf-mark { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 7px rgba(255,154,60,.7); }

.hud-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.crosshair {
  position: relative;
  width: 120px;
  height: 120px;
  --gap: 8px;
  transition: opacity .15s ease;
}
.ch { position: absolute; background: rgba(247,241,224,.86); box-shadow: 0 0 2px rgba(0,0,0,.9); }
.ch-top, .ch-bottom { left: 50%; width: 1px; height: 8px; transform: translateX(-50%); }
.ch-left, .ch-right { top: 50%; height: 1px; width: 8px; transform: translateY(-50%); }
.ch-top { top: calc(50% - var(--gap) - 8px); }
.ch-bottom { top: calc(50% + var(--gap)); }
.ch-left { left: calc(50% - var(--gap) - 8px); }
.ch-right { left: calc(50% + var(--gap)); }
.ch-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(255,246,226,.95);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 3px rgba(0,0,0,.8);
}
.crosshair.scoped { opacity: 0; }
.hitmarker {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.hitmarker i {
  position: absolute;
  width: 9px;
  height: 2px;
  background: #fff6e2;
  box-shadow: 0 0 5px rgba(255,154,60,.8);
  transform-origin: center;
}
.hitmarker i:nth-child(1) { transform: rotate(45deg) translate(10px, 0); }
.hitmarker i:nth-child(2) { transform: rotate(-45deg) translate(10px, 0); }
.hitmarker i:nth-child(3) { transform: rotate(45deg) translate(-10px, 0); }
.hitmarker i:nth-child(4) { transform: rotate(-45deg) translate(-10px, 0); }
.hitmarker.show { animation: hitmarker-pop .25s ease-out both; }
.hitmarker.kill i { background: var(--danger-soft); }
.hitmarker.head i { width: 12px; background: #ffe1a0; }

.reload-hint {
  position: absolute;
  left: 50%;
  top: calc(50% + 54px);
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .12em;
  color: var(--accent-soft);
  text-shadow: 0 1px 5px #000;
}
.reload-hint .reload-track {
  width: 92px;
  height: 2px;
  background: rgba(255,255,255,.14);
  overflow: hidden;
}
.reload-hint .reload-track i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(255,154,60,.65);
}
.reload-hint b { font-weight: 500; color: var(--muted); }
.weapon-hint-center {
  position: absolute;
  left: 50%;
  top: calc(50% + 82px);
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--muted);
  text-shadow: 0 1px 5px #000;
  opacity: 0;
  transition: opacity .2s;
}
.weapon-hint-center.show { opacity: 1; }

.hud-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 0 24px 22px;
}
.health-panel {
  width: 320px;
  padding: 12px 15px 11px;
  border-left: 2px solid rgba(141,204,114,.7);
  background: linear-gradient(90deg, rgba(7,10,7,.78), rgba(7,10,7,.18));
}
.health-panel.low { border-left-color: var(--danger); }
.health-head { display: flex; align-items: baseline; justify-content: space-between; }
.health-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--text);
}
.health-label em { font-family: var(--font-mono); font-size: 7px; font-style: normal; letter-spacing: .1em; color: var(--muted-2); }
.health-cross {
  position: relative;
  width: 12px;
  height: 12px;
  display: inline-block;
}
.health-cross::before, .health-cross::after {
  content: "";
  position: absolute;
  background: var(--green);
  box-shadow: 0 0 6px rgba(141,204,114,.5);
}
.health-cross::before { left: 5px; top: 0; width: 2px; height: 12px; }
.health-cross::after { left: 0; top: 5px; width: 12px; height: 2px; }
.health-panel.low .health-cross::before, .health-panel.low .health-cross::after { background: var(--danger); box-shadow: 0 0 7px rgba(226,91,67,.5); }
.health-head > b {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: .9;
  font-weight: 500;
  color: var(--text-bright);
}
.health-track {
  position: relative;
  height: 8px;
  margin: 8px 0 5px;
  background: rgba(255,255,255,.12);
  overflow: hidden;
}
.health-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #75bb5c, #a6d37e);
  box-shadow: 0 0 10px rgba(141,204,114,.24);
  transition: width .18s ease, background .25s;
}
.health-panel.low .health-fill { background: linear-gradient(90deg, #b93a27, #e25b43); }
.health-segments {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 2px), rgba(7,10,7,.86) calc(10% - 2px) 10%);
}
.health-foot {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: .09em;
  color: var(--muted-2);
}
.health-foot span:last-child { color: rgba(216,210,189,.5); }

.bottom-hint {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 460px;
  padding-bottom: 4px;
  font-size: 8px;
  color: rgba(200,195,174,.48);
  transition: opacity .6s;
}
.bottom-hint span { display: inline-flex; align-items: center; gap: 4px; }
.bottom-hint kbd { height: 17px; min-width: 18px; font-size: 8px; opacity: .7; }
.bottom-hint.fade { opacity: 0; }

.weapon-panel {
  position: relative;
  display: grid;
  grid-template-columns: 78px minmax(128px, 1fr) auto;
  align-items: center;
  gap: 11px;
  width: 388px;
  min-height: 98px;
  padding: 12px 14px 22px 12px;
  border-right: 2px solid rgba(255,154,60,.72);
  background: linear-gradient(270deg, rgba(7,10,7,.82), rgba(7,10,7,.25));
  overflow: hidden;
}
.weapon-panel::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: rgba(255,255,255,.08);
}
.weapon-silhouette {
  position: relative;
  height: 54px;
  border: 1px solid rgba(226,216,187,.1);
  background: rgba(255,255,255,.025);
}
.weapon-svg {
  position: absolute;
  inset: 6px 4px;
  width: calc(100% - 8px);
  height: calc(100% - 12px);
  transition: opacity .18s, transform .18s;
}
.weapon-svg path { fill: rgba(224,218,198,.72); }
.weapon-svg .w-accent { fill: var(--accent); }
.weapon-svg .w-light { fill: rgba(255,255,255,.45); }
.weapon-panel[data-weapon="rifle"] .svg-sniper,
.weapon-panel[data-weapon="sniper"] .svg-rifle { opacity: 0; transform: translateY(4px); }
.weapon-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.weapon-mode {
  align-self: flex-start;
  padding: 2px 5px;
  background: rgba(255,154,60,.14);
  border: 1px solid rgba(255,154,60,.24);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: .06em;
  color: var(--accent-soft);
}
.weapon-meta strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--text-bright);
  white-space: nowrap;
}
.weapon-meta small {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: .1em;
  color: var(--muted-2);
  white-space: nowrap;
}
.ammo-block { display: flex; align-items: baseline; gap: 4px; min-width: 80px; justify-content: flex-end; }
.ammo-block b {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: .9;
  font-weight: 500;
  color: var(--text-bright);
  text-shadow: 0 1px 10px rgba(0,0,0,.3);
}
.ammo-block span { color: var(--muted-2); font-size: 13px; }
.ammo-block em {
  font-family: var(--font-mono);
  font-size: 12px;
  font-style: normal;
  color: var(--muted);
}
.weapon-panel.reloading .ammo-block b { color: var(--accent-soft); }
.weapon-panel.empty .ammo-block b { color: var(--danger-soft); animation: blink 1.1s infinite; }
.weapon-switch-hint {
  position: absolute;
  left: 12px;
  right: 14px;
  bottom: 6px;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: .08em;
  color: rgba(183,180,160,.5);
}
.weapon-switch-hint kbd { height: 15px; min-width: 16px; padding: 0 3px; font-size: 7px; }

.damage-indicator {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 11;
  width: 230px;
  height: 230px;
  margin: -115px 0 0 -115px;
  border: 2px solid transparent;
  border-top-color: rgba(226, 78, 52, 0);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity .5s ease-out;
}
.damage-indicator.show { opacity: 1; transition-duration: .06s; }

.toast {
  position: absolute;
  left: 50%;
  bottom: 132px;
  transform: translate(-50%, 8px);
  padding: 8px 14px;
  border: 1px solid rgba(226,216,187,.2);
  background: rgba(8,11,7,.8);
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.warn { border-color: rgba(226,91,67,.35); color: #ffb19e; }
.lock-hint {
  position: absolute;
  left: 50%;
  bottom: 44%;
  transform: translateX(-50%);
  padding: 9px 16px;
  border: 1px solid rgba(255,154,60,.28);
  background: rgba(8,11,7,.8);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--accent-soft);
  animation: blink 2s infinite;
}

.hud.low-health .health-panel { animation: low-panel 1.4s ease-in-out infinite; }
.hud.paused { opacity: .24; filter: blur(1.2px); transition: opacity .2s, filter .2s; }
.hud.dead .crosshair,
.hud.dead .reload-hint,
.hud.dead .hud-top,
.hud.dead .hud-bottom,
.hud.dead .killfeed { opacity: .25; transition: opacity .3s; }
.hud.dead .crosshair { opacity: 0 !important; }
.hud.dead .hud-bottom { opacity: .32; }
.hud.dead { filter: saturate(.55); }
body.pointer-locked { cursor: none; }
body.pointer-locked * { cursor: none !important; }
#hudKills.pulse { animation: kill-pulse .4s ease-out; }
.key-input-row input.invalid { border-color: rgba(226,91,67,.8); box-shadow: 0 0 0 2px rgba(226,91,67,.12); }
@keyframes kill-pulse {
  0% { color: var(--accent-soft); transform: scale(1.35); text-shadow: 0 0 15px rgba(255,154,60,.8); }
  100% { color: var(--text); transform: scale(1); }
}

/* --------------------------------------------------------------------------
   开镜
   -------------------------------------------------------------------------- */
.scope-overlay {
  position: fixed;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 50% 50%, transparent 0, transparent min(31vmin, 330px), rgba(3,4,3,.995) min(31.2vmin, 332px), #030403 100%);
}
.scope-mask {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 18vmin 10vmin rgba(0,0,0,.45);
  background:
    radial-gradient(circle at 50% 50%, transparent 0 29.6vmin, rgba(255,255,255,.045) 30vmin, transparent 30.4vmin),
    radial-gradient(circle at 50% 50%, rgba(125, 147, 125, .035), transparent 31vmin);
}
.scope-reticle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58vmin;
  height: 58vmin;
  max-width: 660px;
  max-height: 660px;
  transform: translate(-50%, -50%);
}
.scope-reticle svg { width: 100%; height: 100%; overflow: visible; }
.ret-ring { fill: none; stroke: rgba(25,29,22,.95); stroke-width: 14; }
.ret-ring-thin { fill: none; stroke: rgba(221,214,191,.33); stroke-width: 1.2; }
.ret-line { fill: none; stroke: rgba(31,35,27,.9); stroke-width: 3.5; }
.ret-thin { fill: none; stroke: rgba(221,214,191,.5); stroke-width: 1; }
.ret-tick { fill: none; stroke: rgba(230,223,200,.65); stroke-width: 1.5; }
.ret-dot { fill: rgba(18,22,16,.9); }
.ret-dot-core { fill: rgba(255,190,118,.95); }
.ret-scale { fill: none; stroke: rgba(225,218,194,.44); stroke-width: 1; }
.scope-hud {
  position: absolute;
  left: 50%;
  bottom: calc(50% - 26vmin);
  width: min(50vmin, 560px);
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .16em;
  color: rgba(215,209,187,.62);
}
.scope-hint {
  position: absolute;
  left: 50%;
  bottom: calc(50% - 31vmin);
  transform: translateX(-50%);
  font-size: 8px;
  letter-spacing: .1em;
  color: rgba(215,209,187,.4);
}
.scope-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(156, 179, 150, .06), transparent 55%);
  mix-blend-mode: screen;
}

/* --------------------------------------------------------------------------
   暂停
   -------------------------------------------------------------------------- */
.screen-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(16,20,13,.35), rgba(4,6,3,.86) 72%),
    rgba(4,6,3,.38);
  backdrop-filter: blur(6px);
}
.pause-screen { display: flex; align-items: center; justify-content: center; }
.pause-wrap {
  position: relative;
  width: min(660px, calc(100vw - 48px));
  padding: 30px 32px 24px;
  border: 1px solid rgba(226,216,187,.18);
  background:
    linear-gradient(150deg, rgba(31,37,25,.88), rgba(10,13,9,.94) 56%),
    rgba(9,12,8,.92);
  box-shadow: 0 40px 100px rgba(0,0,0,.48);
  animation: pause-in .24s ease-out both;
}
.pause-wrap::before, .pause-wrap::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--accent);
  border-style: solid;
}
.pause-wrap::before { left: -1px; top: -1px; border-width: 1px 0 0 1px; }
.pause-wrap::after { right: -1px; bottom: -1px; border-width: 0 1px 1px 0; }
.pause-head h2 {
  margin: 7px 0 5px;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--text-bright);
}
.pause-head p { margin: 0; font-size: 11px; color: var(--muted); }
.pause-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 20px 0 46px;
  border-top: 1px solid rgba(226,216,187,.12);
  border-bottom: 1px solid rgba(226,216,187,.12);
}
.pause-stats div {
  padding: 11px 10px;
  border-right: 1px solid rgba(226,216,187,.09);
}
.pause-stats div:last-child { border-right: 0; }
.pause-stats span { display: block; margin-bottom: 4px; font-size: 8px; color: var(--muted-2); letter-spacing: .06em; }
.pause-stats b { font-family: var(--font-display); font-size: 18px; font-weight: 500; color: var(--text); letter-spacing: .04em; }
.pause-actions {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 8px;
  margin-bottom: 22px;
}
.pause-primary { grid-row: span 2; height: 100% !important; min-height: 104px; }
.pause-actions .btn-outline { height: 48px; }
.pause-settings {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 0 16px;
  border-top: 1px solid rgba(226,216,187,.1);
  border-bottom: 1px solid rgba(226,216,187,.1);
}
.setting-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 10px;
  color: var(--muted);
}
.setting-row > span { width: 155px; flex: 0 0 auto; }
.setting-row em { display: block; margin-top: 2px; font-family: var(--font-mono); font-size: 7px; font-style: normal; letter-spacing: .08em; color: var(--muted-2); }
.setting-row input[type="range"] { flex: 1; }
.setting-row b { width: 42px; text-align: right; font-family: var(--font-mono); font-size: 9px; font-weight: 400; color: var(--accent-soft); }
.pause-note { padding-top: 2px; font-size: 8px; color: var(--muted-2); }
.pause-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 15px;
  font-size: 8px;
  color: var(--muted-2);
}
.pause-controls span { display: inline-flex; align-items: center; gap: 4px; }
.pause-controls kbd { height: 17px; font-size: 7px; }

input[type="range"] {
  appearance: none;
  -webkit-appearance: none;
  height: 3px;
  border-radius: 0;
  background: linear-gradient(90deg, var(--accent), rgba(255,154,60,.5)) no-repeat, rgba(255,255,255,.15);
  background-size: var(--fill, 50%) 100%;
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border: 1px solid #ffd9a8;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(255,154,60,.55);
}
input[type="range"]::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: 1px solid #ffd9a8;
  border-radius: 50%;
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   管理员
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   注册玩家设置
   -------------------------------------------------------------------------- */
.settings-modal { z-index: 46; }
.settings-dialog {
  position: relative;
  width: min(680px, calc(100vw - 40px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 24px 27px 20px;
  border: 1px solid rgba(226,216,187,.2);
  background:
    radial-gradient(ellipse at 90% 0%, rgba(255,154,60,.08), transparent 46%),
    linear-gradient(155deg, rgba(36,43,29,.96), rgba(10,13,9,.99) 60%),
    #0b0e0a;
  box-shadow: 0 45px 120px rgba(0,0,0,.58);
}
.settings-head { display: flex; justify-content: space-between; gap: 18px; padding-bottom: 14px; border-bottom: 1px solid rgba(226,216,187,.12); }
.settings-head h2 { margin: 5px 0 6px; font-family: var(--font-display); font-size: 30px; font-weight: 500; letter-spacing: .08em; color: var(--text-bright); }
.settings-head p { max-width: 500px; margin: 0; font-size: 10px; line-height: 1.7; color: var(--muted); }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.settings-block { padding: 12px 13px; border: 1px solid rgba(226,216,187,.12); background: rgba(255,255,255,.018); }
.settings-difficulty-block { grid-column: 1 / -1; }
.settings-label, .settings-range-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; font-size: 10px; color: var(--text); }
.settings-label em, .settings-range-row em { font-family: var(--font-mono); font-size: 6px; font-style: normal; letter-spacing: .1em; color: var(--muted-2); }
.settings-range-row b { font-family: var(--font-display); font-size: 17px; font-weight: 500; color: var(--accent-soft); }
.settings-range { width: 100%; accent-color: var(--accent); }
.settings-difficulty-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.settings-difficulty-list button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-height: 40px; padding: 6px 9px; border: 1px solid rgba(226,216,187,.14); background: rgba(9,12,8,.5); color: var(--muted); text-align: left; }
.settings-difficulty-list b { font-size: 11px; font-weight: 500; color: var(--text); }
.settings-difficulty-list small { font-family: var(--font-mono); font-size: 5px; letter-spacing: .1em; color: var(--muted-2); }
.settings-difficulty-list button.on { border-color: rgba(255,154,60,.65); background: rgba(255,154,60,.1); }
.settings-difficulty-list button.on b { color: var(--accent-soft); }
.settings-note { margin-top: 12px; font-size: 8px; line-height: 1.6; color: var(--muted-2); }
.settings-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.settings-actions .btn-outline { min-width: 100px; height: 48px; }
.settings-actions .btn-deploy { min-width: 210px; height: 48px; }

.modal { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3,5,2,.72);
  backdrop-filter: blur(7px);
}
.admin-dialog {
  position: relative;
  width: min(880px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 25px 28px 26px;
  border: 1px solid rgba(226,216,187,.2);
  background:
    linear-gradient(155deg, rgba(39,44,30,.92), rgba(10,13,9,.97) 58%),
    #0c0f0b;
  box-shadow: 0 45px 120px rgba(0,0,0,.55);
  animation: pause-in .24s ease-out both;
  scrollbar-width: none;
}
.admin-dialog::-webkit-scrollbar { width: 0; height: 0; display: none; }
.pause-wrap { scrollbar-width: none; }
.pause-wrap::-webkit-scrollbar { width: 0; display: none; }
.admin-dialog::before, .admin-dialog::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--accent);
  border-style: solid;
}
.admin-dialog::before { left: -1px; top: -1px; border-width: 1px 0 0 1px; }
.admin-dialog::after { right: -1px; bottom: -1px; border-width: 0 1px 1px 0; }
.admin-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid rgba(226,216,187,.12); }
.admin-head h2 { margin: 6px 0 0; font-family: var(--font-display); font-size: 28px; font-weight: 500; letter-spacing: .08em; color: var(--text-bright); }
.modal-close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(226,216,187,.15);
  color: var(--muted);
  font-size: 21px;
  line-height: 1;
  transition: color .15s, border-color .15s;
}
.modal-close:hover { color: var(--text); border-color: rgba(255,154,60,.45); }
.admin-lock { display: flex; flex-direction: column; align-items: center; padding: 30px 10px 8px; text-align: center; }
.admin-lock-icon {
  position: relative;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border: 1px solid rgba(255,154,60,.3);
  border-radius: 50%;
  background: rgba(255,154,60,.05);
}
.admin-lock-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 16px;
  width: 15px;
  height: 13px;
  transform: translateX(-50%);
  border: 1px solid var(--accent-soft);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}
.admin-lock-icon span {
  position: absolute;
  left: 50%;
  top: 27px;
  width: 19px;
  height: 14px;
  transform: translateX(-50%);
  border: 1px solid var(--accent-soft);
  background: rgba(255,154,60,.1);
}
.admin-lock-icon span::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  width: 2px;
  height: 4px;
  background: var(--accent);
}
.admin-lock h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: 21px; font-weight: 500; letter-spacing: .08em; color: var(--text-bright); }
.admin-lock > p { max-width: 510px; margin: 0 0 18px; font-size: 11px; line-height: 1.8; color: var(--muted); }
.admin-login-btn { display: flex; align-items: center; justify-content: center; width: min(280px, 100%); min-height: 42px; margin: 4px auto 0; font-size: 10px; }
.auth-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 12px;
  border: 1px solid rgba(226,216,187,.1);
  background: rgba(255,255,255,.025);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .07em;
  color: var(--muted);
}
.auth-status i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted-2); animation: blink 1.3s infinite; }
.auth-status.ok { border-color: rgba(141,204,114,.3); color: var(--green); }
.auth-status.ok i { background: var(--green); animation: none; }
.auth-status.fail i { background: var(--amber); animation: none; }
.admin-key-form { width: min(390px, 100%); text-align: left; }
.admin-key-form label { display: flex; justify-content: space-between; margin-bottom: 7px; font-size: 10px; letter-spacing: .04em; color: var(--muted); }
.admin-key-form label em { font-family: var(--font-mono); font-size: 7px; font-style: normal; letter-spacing: .1em; color: var(--muted-2); }
.key-input-row { display: flex; gap: 6px; }
.key-input-row input {
  flex: 1;
  height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(226,216,187,.2);
  background: rgba(4,7,3,.55);
  outline: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.key-input-row input:focus { border-color: rgba(255,154,60,.55); box-shadow: 0 0 0 2px rgba(255,154,60,.08); }
.key-input-row button {
  width: 88px;
  border: 1px solid rgba(255,188,116,.4);
  background: linear-gradient(135deg, #df7a1d, #c55a10);
  color: #fff8eb;
  font-size: 11px;
  letter-spacing: .08em;
}
.key-input-row button:hover { filter: brightness(1.08); }
.admin-footnote { margin: 15px 0 0 !important; font-size: 8px !important; color: var(--muted-2) !important; }
.admin-footnote code { padding: 1px 4px; background: rgba(255,255,255,.06); font-family: var(--font-mono); font-size: 8px; color: var(--accent-soft); }
.admin-context {
  margin: 16px 0 18px;
  padding: 9px 12px;
  border-left: 2px solid var(--accent);
  background: rgba(255,154,60,.055);
  font-size: 10px;
  color: var(--accent-soft);
}
.admin-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 22px; }
.admin-section { padding: 15px 16px; border: 1px solid rgba(226,216,187,.12); background: rgba(255,255,255,.018); }
.admin-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.admin-section-head h3 { margin: 0; font-family: var(--font-display); font-size: 15px; font-weight: 500; letter-spacing: .06em; color: var(--text); }
.admin-section-head b { font-family: var(--font-display); font-size: 26px; font-weight: 500; color: var(--accent-soft); }
.admin-section-head b small { font-family: var(--font-mono); font-size: 9px; color: var(--muted-2); }
.admin-range { width: 100%; margin: 3px 0 9px; }
.range-marks { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 7px; color: var(--muted-2); }
.admin-help { margin: 13px 0 0; font-size: 9px; line-height: 1.7; color: var(--muted-2); }
.admin-airdrop-section { margin-top: 16px; }
.admin-mode-airdrop-section { margin-top: 16px; }
.admin-mode-airdrops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.admin-mode-airdrop { min-width: 0; padding: 7px; border: 1px solid rgba(226,216,187,.12); background: rgba(0,0,0,.1); }
.admin-mode-airdrop > b { display: block; margin-bottom: 5px; font-family: var(--font-display); font-size: 9px; font-weight: 500; letter-spacing: .05em; color: var(--accent-soft); }
.admin-airdrop-count { font-family: var(--font-mono) !important; font-size: 8px !important; color: var(--muted-2) !important; }
.admin-airdrop-list { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 8px; }
.admin-airdrop-row { display: grid; grid-template-columns: 24px 48px minmax(0, 1fr); align-items: start; gap: 5px; min-width: 0; padding: 5px 6px; border: 1px solid rgba(226,216,187,.1); background: rgba(0,0,0,.12); }
.admin-airdrop-row.off { opacity: .45; }
.admin-airdrop-row > b { font-family: var(--font-mono); font-size: 7px; font-weight: 400; color: var(--accent-soft); padding-top: 7px; }
.admin-airdrop-toggle { display: flex; align-items: center; gap: 3px; padding-top: 6px; font-size: 7px; color: var(--muted-2); }
.admin-airdrop-toggle input { width: 11px; height: 11px; accent-color: var(--accent); }
.admin-airdrop-items { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.admin-airdrop-slot { display: grid; grid-template-columns: minmax(0, 1fr) 38px; gap: 4px; min-width: 0; }
.admin-airdrop-row select, .admin-airdrop-row input[type="number"] { width: 100%; height: 23px; min-width: 0; padding: 0 4px; border: 1px solid rgba(226,216,187,.14); background: #11140d; color: var(--text); font-family: var(--font-mono); font-size: 7px; }
.admin-airdrop-row input[type="number"] { text-align: center; }
.difficulty-tag { padding: 2px 8px; border: 1px solid rgba(240,191,98,.3); background: rgba(240,191,98,.08); font-family: var(--font-mono); font-size: 8px; font-weight: 400; color: var(--amber); }
.difficulty-list { display: flex; flex-direction: column; gap: 6px; }
.difficulty-list button {
  display: grid;
  grid-template-columns: 8px 48px 1fr;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid rgba(226,216,187,.11);
  background: rgba(255,255,255,.02);
  text-align: left;
  transition: border-color .15s, background .15s;
}
.difficulty-list button:hover { border-color: rgba(255,154,60,.28); }
.difficulty-list button.active { border-color: rgba(255,154,60,.45); background: rgba(255,154,60,.06); box-shadow: inset 0 0 0 1px rgba(255,154,60,.08); }
.diff-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--diff); box-shadow: 0 0 8px color-mix(in srgb, var(--diff) 65%, transparent); }
.difficulty-list strong { font-family: var(--font-display); font-size: 13px; font-weight: 500; letter-spacing: .06em; color: var(--text); }
.difficulty-list small { font-family: var(--font-mono); font-size: 7px; letter-spacing: .08em; color: var(--muted-2); }
.difficulty-list em { grid-column: 3; margin-top: -2px; font-size: 8px; font-style: normal; color: var(--muted); }
.admin-live {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 18px;
  border: 1px solid rgba(226,216,187,.11);
  background: rgba(0,0,0,.12);
}
.admin-live div { padding: 9px 12px; border-right: 1px solid rgba(226,216,187,.09); }
.admin-live div:last-child { border-right: 0; }
.admin-live span { display: block; margin-bottom: 3px; font-size: 8px; color: var(--muted-2); }
.admin-live b { font-family: var(--font-display); font-size: 13px; font-weight: 500; color: var(--text); }
.admin-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.admin-actions .btn-outline { min-width: 100px; }
.admin-apply { min-width: 200px; height: 52px !important; }

/* --------------------------------------------------------------------------
   星屿乐园 CIP 账号
   -------------------------------------------------------------------------- */
.account-modal { z-index: 45; }
.account-side { display: none; }
.account-content { min-width: 0; }
.account-dialog {
  position: relative;
  width: min(650px, calc(100vw - 48px));
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  padding: 24px 27px 22px;
  border: 1px solid rgba(226,216,187,.2);
  background:
    radial-gradient(ellipse at 90% 0%, rgba(255,154,60,.07), transparent 45%),
    linear-gradient(155deg, rgba(36,43,29,.94), rgba(10,13,9,.98) 58%),
    #0b0e0a;
  box-shadow: 0 45px 120px rgba(0,0,0,.56);
  animation: pause-in .24s ease-out both;
  scrollbar-width: none;
}
.account-dialog::-webkit-scrollbar { width: 0; display: none; }
.account-dialog::before, .account-dialog::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--accent);
  border-style: solid;
}
.account-dialog::before { left: -1px; top: -1px; border-width: 1px 0 0 1px; }
.account-dialog::after { right: -1px; bottom: -1px; border-width: 0 1px 1px 0; }
.account-head { display: flex; justify-content: space-between; gap: 18px; padding-bottom: 16px; border-bottom: 1px solid rgba(226,216,187,.12); }
.account-head h2 { margin: 5px 0 5px; font-family: var(--font-display); font-size: 26px; font-weight: 500; letter-spacing: .07em; color: var(--text-bright); }
.account-head p { max-width: 470px; margin: 0; font-size: 10px; line-height: 1.7; color: var(--muted); }
.account-status {
  margin: 12px 0 0;
  padding: 8px 11px;
  border: 1px solid rgba(226,216,187,.12);
  background: rgba(255,255,255,.025);
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
}
.account-status.ok { border-color: rgba(141,204,114,.32); background: rgba(141,204,114,.06); color: var(--green); }
.account-status.err { border-color: rgba(226,91,67,.36); background: rgba(226,91,67,.06); color: #ff9e89; }
.account-offline {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 2px solid var(--amber);
  background: rgba(240,191,98,.055);
}
.account-offline strong { font-family: var(--font-display); font-size: 12px; font-weight: 500; letter-spacing: .06em; color: var(--amber); }
.account-offline span { font-size: 9px; line-height: 1.65; color: var(--muted); }
.account-tabs { display: flex; gap: 0; margin: 16px 0 17px; border-bottom: 1px solid rgba(226,216,187,.12); }
.account-tab {
  position: relative;
  flex: 1;
  height: 36px;
  color: var(--muted-2);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .08em;
  transition: color .15s, background .15s;
}
.account-tab:hover { color: var(--text); background: rgba(255,255,255,.025); }
.account-tab.on { color: var(--accent-soft); }
.account-tab.on::after {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(255,154,60,.5);
}
.account-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.account-field > span { font-size: 9px; letter-spacing: .04em; color: var(--muted); }
.account-field > span b { color: var(--accent); font-weight: 500; }
.account-field input {
  width: 100%;
  height: 39px;
  padding: 0 11px;
  border: 1px solid rgba(226,216,187,.18);
  background: rgba(4,7,3,.5);
  outline: none;
  font-size: 11px;
  color: var(--text);
  transition: border-color .15s, background .15s;
}
.account-field input::placeholder { color: rgba(156,154,137,.52); }
.account-field input:focus { border-color: rgba(255,154,60,.58); background: rgba(4,7,3,.72); }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.account-form-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 13px; font-size: 9px; color: var(--muted-2); }
.account-form-row a { color: var(--accent-soft); }
.account-form-row a:hover { text-decoration: underline; }
.account-check { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.account-check input { accent-color: var(--accent); width: 12px; height: 12px; margin: 0; }
.account-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  border: 1px solid rgba(255,205,148,.5);
  background: linear-gradient(135deg, #ee891f, #d46612);
  color: #fff8eb;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  box-shadow: 0 12px 30px rgba(211,99,20,.16), inset 0 1px 0 rgba(255,255,255,.26);
  transition: filter .15s, transform .15s;
}
.account-submit:hover { filter: brightness(1.07); }
.account-submit:active { transform: translateY(1px); }
.account-submit:disabled { filter: saturate(.4) brightness(.75); cursor: wait; }
.account-rule { margin: 0 0 10px; font-size: 8px; line-height: 1.7; color: var(--muted-2); }
.account-details { margin: 2px 0 13px; border: 1px solid rgba(226,216,187,.09); background: rgba(255,255,255,.016); }
.account-details summary {
  padding: 9px 11px;
  cursor: pointer;
  font-size: 9px;
  letter-spacing: .04em;
  color: var(--muted);
}
.account-details[open] summary { border-bottom: 1px solid rgba(226,216,187,.08); color: var(--accent-soft); }
.account-details .account-grid { padding: 11px 11px 2px; }
.account-guest-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid rgba(226,216,187,.09);
  font-size: 8px;
  line-height: 1.6;
  color: var(--muted-2);
}
.account-guest-note button {
  flex: 0 0 auto;
  border: 1px solid rgba(226,216,187,.16);
  padding: 6px 9px;
  font-size: 8px;
  color: var(--muted);
}
.account-guest-note button:hover { border-color: rgba(255,154,60,.4); color: var(--accent-soft); }
.account-profile { display: flex; align-items: center; gap: 17px; padding: 21px 0 18px; }
.account-avatar-lg {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  flex: 0 0 auto;
  border: 1px solid rgba(141,204,114,.35);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(141,204,114,.2), rgba(141,204,114,.03));
  color: var(--green);
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
}
.account-profile-copy { min-width: 0; }
.account-profile-kicker { font-family: var(--font-mono); font-size: 7px; letter-spacing: .14em; color: var(--green); }
.account-profile-copy h3 { margin: 4px 0 2px; font-family: var(--font-display); font-size: 24px; font-weight: 500; letter-spacing: .05em; color: var(--text-bright); }
.account-profile-copy p { margin: 0 0 6px; font-family: var(--font-mono); font-size: 9px; color: var(--muted-2); }
.account-role { display: inline-block; padding: 2px 7px; border: 1px solid rgba(226,216,187,.14); font-size: 8px; color: var(--muted); }
.account-role.is-admin { border-color: rgba(255,154,60,.33); background: rgba(255,154,60,.07); color: var(--accent-soft); }
.account-logged-actions { display: grid; grid-template-columns: 1.4fr 1fr; gap: 7px; }
.account-logged-actions .account-submit { grid-row: span 2; height: 100%; min-height: 78px; }
.account-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid rgba(226,216,187,.15);
  font-size: 9px;
  letter-spacing: .05em;
  color: var(--muted);
  transition: border-color .15s, color .15s;
}
.account-link-btn:hover { border-color: rgba(255,154,60,.38); color: var(--accent-soft); }
.account-link-btn.danger:hover { border-color: rgba(226,91,67,.4); color: #ff9b86; }
.account-logged-note { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid rgba(226,216,187,.09); font-size: 8px; line-height: 1.7; color: var(--muted-2); }
.account-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 17px; padding-top: 12px; border-top: 1px solid rgba(226,216,187,.09); font-family: var(--font-mono); font-size: 7px; letter-spacing: .05em; color: var(--muted-2); }
.account-foot a { color: var(--muted); }
.account-foot a:hover { color: var(--accent-soft); }

/* --------------------------------------------------------------------------
   结算
   -------------------------------------------------------------------------- */
.result-screen { display: flex; align-items: center; justify-content: center; }
.result-wrap {
  position: relative;
  width: min(680px, calc(100vw - 48px));
  padding: 34px 38px 30px;
  border: 1px solid rgba(226,216,187,.18);
  background:
    linear-gradient(145deg, rgba(37,43,30,.88), rgba(9,12,8,.95) 60%),
    rgba(9,12,8,.94);
  box-shadow: 0 45px 110px rgba(0,0,0,.5);
  animation: pause-in .3s ease-out both;
}
.result-wrap::before, .result-wrap::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--accent);
  border-style: solid;
}
.result-wrap::before { left: -1px; top: -1px; border-width: 1px 0 0 1px; }
.result-wrap::after { right: -1px; bottom: -1px; border-width: 0 1px 1px 0; }
.result-wrap h2 {
  margin: 8px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 47px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: .08em;
  color: var(--text-bright);
}
.result-screen.defeat .result-wrap h2 { color: #ff9d89; }
.result-wrap > p { margin: 0; font-size: 11px; line-height: 1.8; color: var(--muted); }
.result-grade {
  position: absolute;
  right: 38px;
  top: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border: 1px solid rgba(255,154,60,.3);
  border-radius: 50%;
  background: rgba(255,154,60,.045);
}
.result-grade span { font-family: var(--font-display); font-size: 42px; line-height: .9; font-weight: 600; color: var(--accent-soft); }
.result-grade small { margin-top: 3px; font-family: var(--font-mono); font-size: 5px; letter-spacing: .1em; color: var(--muted-2); }
.result-screen.defeat .result-grade { border-color: rgba(226,91,67,.32); background: rgba(226,91,67,.05); }
.result-screen.defeat .result-grade span { color: var(--danger-soft); }
.result-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 26px 0 28px;
  border-top: 1px solid rgba(226,216,187,.12);
  border-left: 1px solid rgba(226,216,187,.12);
}
.result-stats div { padding: 13px; border-right: 1px solid rgba(226,216,187,.12); border-bottom: 1px solid rgba(226,216,187,.12); }
.result-stats span { display: block; margin-bottom: 4px; font-size: 8px; letter-spacing: .06em; color: var(--muted-2); }
.result-stats b { font-family: var(--font-display); font-size: 24px; font-weight: 500; color: var(--text); }
.result-actions { display: flex; gap: 8px; align-items: stretch; }
.result-actions .btn-deploy { min-width: 240px; height: 56px; }
.result-actions .btn-outline { height: 56px; }
.result-note { margin-top: 14px !important; font-family: var(--font-mono); font-size: 7px !important; letter-spacing: .09em; color: var(--muted-2) !important; }

/* --------------------------------------------------------------------------
   模式选择 / 战术强化 / 排行榜 / 新 HUD
   -------------------------------------------------------------------------- */
.mode-select {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;  width: min(660px, 100%);
  margin: 16px 0 7px;
}
.map-select { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; width: min(660px, 100%); margin: 0 0 10px; }
.map-select button { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; min-width: 0; height: 31px; padding: 0 9px; border: 1px solid rgba(226,216,187,.14); background: rgba(9,12,8,.45); color: var(--muted); text-align: left; }
.map-select button b { font-family: var(--font-display); font-size: 9px; font-weight: 500; letter-spacing: .05em; color: var(--text); }
.map-select button small { font-family: var(--font-mono); font-size: 5px; color: var(--muted-2); white-space: nowrap; }
.map-select button.active { border-color: rgba(255,154,60,.62); background: rgba(255,154,60,.09); }
.map-select button.active b { color: var(--accent-soft); }
.map-select button.locked { opacity: .45; position: relative; }
.map-select button.locked::after { content: "需注册"; position: absolute; right: 3px; top: -5px; padding: 0 3px; border: 1px solid rgba(255,154,60,.3); background: #0b0e09; font-family: var(--font-mono); font-size: 4px; color: var(--accent-soft); }
.mode-card {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 47px;
  padding: 7px 9px;
  border: 1px solid rgba(226,216,187,.16);
  background: rgba(8,12,7,.48);
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.mode-card:hover { border-color: rgba(255,154,60,.46); background: rgba(34,38,27,.72); transform: translateY(-1px); }
.mode-card.active {
  border-color: rgba(255,154,60,.7);
  background: linear-gradient(135deg, rgba(255,154,60,.14), rgba(15,18,11,.65));
  box-shadow: inset 0 0 0 1px rgba(255,154,60,.12);
}
.mode-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 27px;
  height: 27px;
  border: 1px solid rgba(255,154,60,.3);
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--accent-soft);
  background: rgba(255,154,60,.05);
}
.mode-card.active .mode-icon { color: #171108; background: var(--accent); border-color: var(--accent); }
.mode-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mode-copy b { font-family: var(--font-display); font-size: 10px; letter-spacing: .06em; color: var(--text); white-space: nowrap; }
.mode-copy small { font-family: var(--font-mono); font-size: 5.5px; letter-spacing: .08em; color: var(--muted-2); white-space: nowrap; }
.mode-card.active .mode-copy small { color: var(--accent-soft); }
.mode-description {
  min-height: 15px;
  margin: 0 0 13px;
  font-size: 9px;
  letter-spacing: .03em;
  color: var(--muted);
}
.mode-description::before { content: "// "; color: var(--accent); }

.status-score { min-width: 82px; }
.status-score b { color: var(--accent-soft); font-size: 17px; letter-spacing: .03em; }

.obj-progress {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(226,216,187,.12);
}
.obj-progress-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 7px; letter-spacing: .08em; color: var(--muted-2); }
.obj-progress-head b { font-family: var(--font-mono); font-size: 9px; font-weight: 500; color: var(--accent-soft); }
.obj-track { height: 4px; margin: 5px 0 4px; background: rgba(255,255,255,.12); overflow: hidden; }
.obj-track i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #c67e32, var(--accent)); box-shadow: 0 0 8px rgba(255,154,60,.4); transition: width .2s linear; }
.obj-progress small { display: block; font-size: 7px; color: var(--muted-2); letter-spacing: .03em; }

.combo-hud {
  position: absolute;
  top: 76px;
  right: 24px;
  width: 128px;
  padding: 7px 9px 6px;
  border: 1px solid rgba(255,154,60,.28);
  background: rgba(13,14,9,.7);
  backdrop-filter: blur(6px);
  pointer-events: none;
}
.combo-main { display: flex; align-items: baseline; gap: 6px; }
.combo-main span { font-size: 7px; letter-spacing: .08em; color: var(--muted-2); }
.combo-main b { margin-left: auto; font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--accent-soft); }
.combo-main em { font-family: var(--font-mono); font-size: 8px; font-style: normal; color: var(--text); }
.combo-track { height: 2px; margin-top: 4px; background: rgba(255,255,255,.1); }
.combo-track i { display: block; width: 100%; height: 100%; background: var(--accent); box-shadow: 0 0 6px rgba(255,154,60,.55); transition: width .1s linear; }
.combo-hud small { display: block; margin-top: 3px; font-family: var(--font-mono); font-size: 5.5px; letter-spacing: .1em; color: var(--muted-2); }

.weather-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  padding: 3px 7px;
  border: 1px solid rgba(226,216,187,.14);
  background: rgba(8,12,7,.4);
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: .08em;
  color: var(--muted);
}
.weather-chip i { width: 4px; height: 4px; border-radius: 50%; background: #b8c7c0; box-shadow: 0 0 6px rgba(184,199,192,.55); }
.weather-chip.storm i { background: #d3a766; box-shadow: 0 0 6px rgba(211,167,102,.6); }
.weather-chip.rain i { background: #8db6c7; box-shadow: 0 0 6px rgba(141,182,199,.6); }

.boss-bar {
  position: absolute;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  width: min(460px, 44vw);
  padding: 7px 11px 8px;
  border-top: 1px solid rgba(255,115,94,.6);
  background: linear-gradient(180deg, rgba(38,16,10,.75), rgba(9,11,7,.62));
  backdrop-filter: blur(7px);
  z-index: 5;
}
.boss-head { display: flex; align-items: baseline; gap: 8px; }
.boss-head span { font-family: var(--font-mono); font-size: 6px; letter-spacing: .12em; color: var(--danger-soft); }
.boss-head b { font-family: var(--font-display); font-size: 11px; font-weight: 500; letter-spacing: .08em; color: var(--text); }
.boss-head em { margin-left: auto; font-family: var(--font-mono); font-size: 8px; font-style: normal; color: var(--danger-soft); }
.boss-track { height: 4px; margin-top: 6px; background: rgba(255,255,255,.13); overflow: hidden; }
.boss-track i { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, #b33b2e, #ff735e); box-shadow: 0 0 9px rgba(255,115,94,.55); transition: width .15s linear; }

.armor-row { display: flex; align-items: center; gap: 7px; margin-top: 7px; font-size: 7px; letter-spacing: .08em; color: var(--muted-2); }
.armor-row > span { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.armor-shield { display: inline-block; width: 7px; height: 7px; border: 1px solid rgba(120,169,212,.75); transform: rotate(45deg); }
.armor-track { flex: 1; height: 4px; background: rgba(255,255,255,.11); overflow: hidden; }
.armor-track i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #4c779c, #8cc6ee); box-shadow: 0 0 7px rgba(120,169,212,.35); transition: width .18s ease; }
.armor-row b { font-family: var(--font-mono); font-size: 8px; font-weight: 400; color: #a8cce4; }

.score-popup {
  position: absolute;
  left: 50%;
  top: calc(50% + 66px);
  display: flex;
  align-items: baseline;
  gap: 7px;
  opacity: 0;
  transform: translate(-50%, 8px);
  pointer-events: none;
  font-family: var(--font-mono);
}
.score-popup.show { animation: score-pop .9s ease-out both; }
.score-popup b { font-family: var(--font-display); font-size: 24px; color: var(--accent-soft); text-shadow: 0 2px 12px rgba(0,0,0,.8); }
.score-popup span { font-size: 8px; letter-spacing: .1em; color: var(--text); }
.score-popup em { font-size: 7px; font-style: normal; color: var(--danger-soft); }
@keyframes score-pop {
  0% { opacity: 0; transform: translate(-50%, 12px) scale(.92); }
  18% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  72% { opacity: 1; transform: translate(-50%, -3px) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -16px) scale(.98); }
}

.wave-banner {
  position: absolute;
  top: 22%;
  left: 50%;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%);
  padding: 10px 34px 12px;
  border-top: 1px solid rgba(255,154,60,.5);
  border-bottom: 1px solid rgba(226,216,187,.16);
  background: linear-gradient(90deg, transparent, rgba(8,11,7,.78), transparent);
  text-align: center;
  pointer-events: none;
}
.wave-banner span { font-family: var(--font-mono); font-size: 7px; letter-spacing: .24em; color: var(--accent); }
.wave-banner b { margin-top: 3px; font-family: var(--font-display); font-size: 24px; font-weight: 500; letter-spacing: .18em; color: var(--text-bright); }
.wave-banner small { margin-top: 4px; font-size: 8px; color: var(--muted); letter-spacing: .06em; }
.wave-banner.in { animation: wave-in .42s ease-out both; }
.wave-banner.out { animation: wave-out .4s ease-in both; }
@keyframes wave-in { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes wave-out { from { opacity: 1; } to { opacity: 0; transform: translate(-50%, -8px); } }

.perk-screen { z-index: 36; display: flex; align-items: center; justify-content: center; padding: 24px; }
.perk-screen .screen-shade { background: rgba(5,7,4,.76); backdrop-filter: blur(5px); }
.perk-wrap {
  position: relative;
  width: min(980px, 94vw);
  padding: 30px 32px 26px;
  border: 1px solid rgba(226,216,187,.18);
  background: linear-gradient(150deg, rgba(35,38,27,.94), rgba(8,11,7,.97));
  box-shadow: 0 40px 100px rgba(0,0,0,.5);
}
.perk-wrap h2 { margin: 7px 0 5px; font-family: var(--font-display); font-size: clamp(30px, 4vw, 44px); font-weight: 500; letter-spacing: .1em; color: var(--text-bright); }
.perk-wrap > p { margin: 0 0 22px; font-size: 11px; color: var(--muted); }
.perk-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.perk-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-height: 200px;
  padding: 18px 17px 17px;
  border: 1px solid rgba(226,216,187,.16);
  background: linear-gradient(160deg, rgba(255,154,60,.055), rgba(10,13,8,.52));
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.perk-card:hover { border-color: var(--perk-color, var(--accent)); transform: translateY(-3px); background: linear-gradient(160deg, rgba(255,154,60,.11), rgba(10,13,8,.7)); }
.perk-key { position: absolute; top: 11px; right: 11px; display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid rgba(226,216,187,.2); font-family: var(--font-mono); font-size: 8px; color: var(--muted); }
.perk-icon { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 3px; border: 1px solid color-mix(in srgb, var(--perk-color, var(--accent)) 55%, transparent); border-radius: 50%; font-family: var(--font-display); font-size: 20px; color: var(--perk-color, var(--accent)); background: color-mix(in srgb, var(--perk-color, var(--accent)) 9%, transparent); }
.perk-card b { font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: .06em; color: var(--text-bright); }
.perk-card small { font-family: var(--font-mono); font-size: 6px; letter-spacing: .13em; color: var(--muted-2); }
.perk-card p { margin: 5px 0 0; font-size: 10px; line-height: 1.7; color: var(--muted); }
.perk-foot { margin-top: 18px; padding-top: 12px; border-top: 1px solid rgba(226,216,187,.1); font-size: 8px; letter-spacing: .04em; color: var(--muted-2); }
.perk-foot kbd { margin: 0 1px; }

.leaderboard-modal { z-index: 48; }
.leaderboard-dialog {
  position: relative;
  width: min(780px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  padding: 28px 30px 22px;
  border: 1px solid rgba(226,216,187,.18);
  background: linear-gradient(150deg, rgba(35,38,27,.96), rgba(8,11,7,.98) 60%);
  box-shadow: 0 45px 110px rgba(0,0,0,.58);
}
.leaderboard-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.leaderboard-head h2 { margin: 7px 0 4px; font-family: var(--font-display); font-size: 34px; font-weight: 500; letter-spacing: .1em; color: var(--text-bright); }
.leaderboard-head p { margin: 0; font-size: 9px; color: var(--muted); }
.leaderboard-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 22px 0 12px; padding-bottom: 10px; border-bottom: 1px solid rgba(226,216,187,.12); }
.leaderboard-tabs, .leaderboard-diffs { display: flex; gap: 4px; }
.leaderboard-tabs button, .leaderboard-diffs button {
  padding: 6px 11px;
  border: 1px solid rgba(226,216,187,.14);
  background: rgba(8,11,7,.4);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .08em;
  color: var(--muted);
  cursor: pointer;
}
.leaderboard-tabs button:hover, .leaderboard-diffs button:hover { color: var(--text); border-color: rgba(255,154,60,.35); }
.leaderboard-tabs button.on, .leaderboard-diffs button.on { border-color: rgba(255,154,60,.55); color: var(--accent-soft); background: rgba(255,154,60,.1); }
.leaderboard-status { min-height: 17px; font-size: 8px; letter-spacing: .04em; color: var(--muted-2); }
.leaderboard-table { margin-top: 6px; border-top: 1px solid rgba(226,216,187,.13); }
.leaderboard-row {
  display: grid;
  grid-template-columns: 42px minmax(120px, 1fr) 105px 62px 72px;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 8px;
  border-bottom: 1px solid rgba(226,216,187,.08);
  font-size: 9px;
  color: var(--muted);
}
.leaderboard-row.head { min-height: 27px; font-family: var(--font-mono); font-size: 7px; letter-spacing: .08em; color: var(--muted-2); border-bottom-color: rgba(226,216,187,.14); }
.leaderboard-row.me { background: rgba(255,154,60,.07); color: var(--text); }
.leaderboard-row .board-rank { font-family: var(--font-mono); font-size: 8px; color: var(--accent-soft); }
.leaderboard-row .board-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.leaderboard-row .board-score { font-family: var(--font-display); font-size: 15px; color: var(--text-bright); letter-spacing: .04em; }
.leaderboard-body { max-height: min(400px, 46vh); overflow: auto; }
.leaderboard-empty { padding: 34px 10px; text-align: center; font-family: var(--font-mono); font-size: 8px; letter-spacing: .18em; color: var(--muted-2); }
.leaderboard-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 15px; padding-top: 12px; border-top: 1px solid rgba(226,216,187,.1); font-family: var(--font-mono); font-size: 7px; letter-spacing: .06em; color: var(--muted-2); }
.leaderboard-foot #leaderboardSource { color: var(--accent-soft); }

.result-score-block {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 18px 0 0;
  padding: 12px 110px 12px 14px;
  border-left: 2px solid var(--accent);
  background: linear-gradient(90deg, rgba(255,154,60,.09), transparent);
}
.result-score-block > span { font-family: var(--font-mono); font-size: 7px; letter-spacing: .13em; color: var(--muted-2); }
.result-score-block b { font-family: var(--font-display); font-size: 38px; line-height: .9; font-weight: 600; color: var(--accent-soft); letter-spacing: .04em; }
.result-score-block em { margin-left: auto; font-family: var(--font-mono); font-size: 8px; font-style: normal; letter-spacing: .03em; color: var(--muted); text-align: right; }
.result-score-block em.rank-cloud { color: var(--accent-soft); }
.result-score-block em.rank-local { color: #a8cce4; }
.result-score-block em.rank-muted { color: var(--muted-2); }
.result-stats { grid-template-columns: repeat(4, 1fr) !important; }
.result-actions { flex-wrap: wrap; }
.result-actions .btn-deploy { min-width: 205px; }
.result-actions .btn-outline { min-width: 112px; }
.result-wrap { width: min(700px, calc(100vw - 48px)); }

.pause-stats { grid-template-columns: repeat(3, 1fr) !important; }

@media (max-width: 940px) {
  .mode-select { grid-template-columns: repeat(2, 1fr); width: 100%; max-width: 420px; }
  .perk-cards { grid-template-columns: 1fr; }
  .perk-card { min-height: 0; }
  .leaderboard-toolbar { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 700px) {
  .status-panel .status-cell { min-width: 57px; padding: 8px 8px; }
  .status-panel .status-cell span { font-size: 6px; }
  .status-panel .status-cell b { font-size: 11px; }
  .status-score { min-width: 63px; }
  .combo-hud { top: 68px; right: 12px; }
  .killfeed { top: 142px; right: 12px; }
  .leaderboard-row { grid-template-columns: 30px minmax(80px,1fr) 80px 48px 54px; }
  .leaderboard-dialog { padding: 20px 16px; }
  .leaderboard-head h2 { font-size: 27px; }
  .result-stats { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-height: 820px) and (min-width: 941px) {
  .mode-description { display: none; }
  .mode-card { min-height: 40px; padding: 5px 8px; }
  .mode-select { margin-bottom: 10px; }
}

.fatal-error {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: #090c08;
  text-align: center;
}
.fatal-error h2 { font-family: var(--font-display); font-size: 30px; font-weight: 500; letter-spacing: .08em; }
.fatal-error p { max-width: 500px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.fatal-error button { margin-top: 18px; min-width: 150px; height: 44px; padding: 0 18px; border: 1px solid rgba(255,154,60,.55); background: rgba(255,154,60,.1); color: var(--accent-soft); font-family: var(--font-display); font-size: 15px; letter-spacing: .08em; }

/* --------------------------------------------------------------------------
   动画
   -------------------------------------------------------------------------- */
@keyframes slow-spin { to { transform: rotate(360deg); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .32; } }
@keyframes low-health-pulse { 0%, 100% { opacity: .38; } 50% { opacity: .7; } }
@keyframes low-panel { 0%, 100% { filter: none; } 50% { filter: drop-shadow(0 0 10px rgba(226,91,67,.14)); } }
@keyframes hitmarker-pop {
  0% { opacity: 0; transform: scale(.55); }
  18% { opacity: 1; transform: scale(1.15); }
  100% { opacity: 0; transform: scale(1.35); }
}
@keyframes feed-in { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } }
@keyframes feed-out { to { opacity: 0; transform: translateX(8px); } }
@keyframes pause-in { from { opacity: 0; transform: translateY(12px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* --------------------------------------------------------------------------
   响应式 / 较窄桌面
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .menu-main { width: calc(100vw - 56px); gap: 42px; grid-template-columns: minmax(0, 1fr) 340px; }
  .logo-en { font-size: clamp(68px, 9vw, 114px); }
  .menu-screen::after { display: none; }
  .briefing { max-width: 360px; }
  .weapon-panel { width: 352px; }
  .health-panel { width: 290px; }
  .hud-top { gap: 12px; }
  .status-cell { min-width: 68px; padding: 8px 10px; }
  .account-chip-copy { min-width: 68px; }
  .account-chip-copy b { max-width: 92px; }
}

@media (max-width: 1120px) {
  .bottom-hint { display: none; }
}

@media (max-width: 940px) {
  .menu-screen { overflow-y: auto; }
  .menu-header { padding: 18px 22px; }
  .menu-nav .nav-link { display: none; }
  .menu-main {
    grid-template-columns: 1fr;
    gap: 26px;
    width: calc(100vw - 44px);
    padding: 28px 0;
  }
  .menu-hero { max-width: 680px; }
  .briefing { max-width: 100%; }
  .brief-map { height: 140px; }
  .menu-footer { padding: 14px 22px; flex-wrap: wrap; }
  .menu-footer span:nth-child(2) { display: none; }
  .hud-top { padding: 14px 14px 0; grid-template-columns: 1fr 1fr; }
  .compass { display: none; }
  .objective-panel { min-width: 0; }
  .status-panel .status-sep { display: none; }
  .hud-bottom { padding: 0 14px 14px; }
  .health-panel { width: 250px; }
  .weapon-panel { width: 320px; grid-template-columns: 62px 1fr auto; }
  .bottom-hint { display: none; }
  .admin-grid { grid-template-columns: 1fr; }
  .pause-wrap { max-height: calc(100vh - 24px); overflow-y: auto; }
  .pause-stats { margin-bottom: 16px; }
  .result-stats { grid-template-columns: repeat(2, 1fr); }
  .account-chip { height: 36px; padding-right: 7px; }
  .account-avatar { width: 26px; height: 26px; font-size: 12px; }
  .account-chip-copy b { font-size: 8px; }
  .account-dialog { padding: 20px 20px 18px; }
}

@media (max-width: 680px) {
  .menu-header { gap: 10px; }
  .menu-nav { gap: 3px; }
  .menu-nav .nav-button span:not(.lock-dot):not(.sound-icon) { display: none; }
  .nav-button { padding: 0 8px; }
  .account-chip-copy { display: none; }
  .account-chip { padding: 3px; }
  .game-logo { line-height: .86; }
  .logo-en { font-size: clamp(58px, 17vw, 92px); }
  .logo-cn { font-size: 19px; letter-spacing: .3em; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn-outline { height: 46px; }
  .btn-deploy { width: 100%; min-width: 0; }
  .brief-stats { grid-template-columns: 1fr; }
  .brief-stats > div { border-right: 0; border-bottom: 1px solid rgba(226,216,187,.08) !important; }
  .brief-stats > div:last-child { border-bottom: 0 !important; }
  .loadout-row { grid-template-columns: 1fr; }
  .menu-hints { gap: 8px; }
  .killfeed { top: 84px; right: 12px; }
  .objective-panel { padding: 9px 12px; }
  .obj-title { font-size: 12px; margin-bottom: 6px; }
  .obj-big b { font-size: 25px; }
  .status-panel .status-cell:first-child { display: none; }
  .health-panel { width: 215px; }
  .health-head > b { font-size: 25px; }
  .weapon-panel { width: 230px; grid-template-columns: 1fr auto; padding-bottom: 20px; }
  .weapon-silhouette { display: none; }
  .weapon-meta strong { font-size: 13px; }
  .weapon-meta small { display: none; }
  .ammo-block b { font-size: 32px; }
  .weapon-switch-hint { left: 12px; }
  .pause-wrap { padding: 22px 18px 18px; }
  .pause-head h2 { font-size: 27px; }
  .pause-stats { grid-template-columns: 1fr 1fr; }
  .pause-stats div:nth-child(2) { border-right: 0; }
  .pause-actions { grid-template-columns: 1fr; }
  .pause-primary { grid-row: auto; min-height: 58px !important; }
  .setting-row > span { width: 120px; }
  .admin-dialog { padding: 18px 16px 20px; }
  .admin-head h2 { font-size: 22px; }
  .admin-live { grid-template-columns: 1fr; }
  .admin-live div { border-right: 0; border-bottom: 1px solid rgba(226,216,187,.09); }
  .admin-live div:last-child { border-bottom: 0; }
  .admin-actions { flex-direction: column; }
  .admin-actions .btn-outline, .admin-apply { width: 100%; }
  .result-wrap { padding: 24px 20px 20px; }
  .result-grade { position: static; margin: 16px 0; width: 72px; height: 72px; }
  .result-wrap h2 { font-size: 32px; }
  .result-stats { grid-template-columns: 1fr 1fr; }
  .result-actions { flex-direction: column; }
  .result-actions .btn-deploy, .result-actions .btn-outline { width: 100%; }
  .account-grid { grid-template-columns: 1fr; }
  .account-guest-note { flex-direction: column; align-items: flex-start; }
  .account-logged-actions { grid-template-columns: 1fr; }
  .account-logged-actions .account-submit { grid-row: auto; min-height: 50px; }
  .account-profile { gap: 12px; }
  .account-avatar-lg { width: 56px; height: 56px; font-size: 24px; }
  .account-profile-copy h3 { font-size: 20px; }
}

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

.loadout-dialog::-webkit-scrollbar,
.daily-dialog::-webkit-scrollbar,
.leaderboard-dialog::-webkit-scrollbar,
.account-dialog::-webkit-scrollbar,
.admin-dialog::-webkit-scrollbar,
.pause-screen::-webkit-scrollbar,
.result-screen::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
.loadout-dialog::-webkit-scrollbar-track,
.daily-dialog::-webkit-scrollbar-track,
.leaderboard-dialog::-webkit-scrollbar-track,
.account-dialog::-webkit-scrollbar-track,
.admin-dialog::-webkit-scrollbar-track,
.pause-screen::-webkit-scrollbar-track,
.result-screen::-webkit-scrollbar-track {
  background: rgba(8,11,7,.7);
}
.loadout-dialog::-webkit-scrollbar-thumb,
.daily-dialog::-webkit-scrollbar-thumb,
.leaderboard-dialog::-webkit-scrollbar-thumb,
.account-dialog::-webkit-scrollbar-thumb,
.admin-dialog::-webkit-scrollbar-thumb,
.pause-screen::-webkit-scrollbar-thumb,
.result-screen::-webkit-scrollbar-thumb {
  background: rgba(255,154,60,.3);
  border: 1px solid rgba(255,154,60,.18);
}
.loadout-dialog,
.daily-dialog,
.leaderboard-dialog,
.account-dialog,
.admin-dialog,
.pause-screen,
.result-screen { scrollbar-color: rgba(255,154,60,.3) rgba(8,11,7,.7); scrollbar-width: thin; }

/* --------------------------------------------------------------------------
   战前配装 / 每日挑战 / 投掷物
   -------------------------------------------------------------------------- */
.loadout-summary {
  margin-top: 9px;
  padding-top: 7px;
  border-top: 1px solid rgba(226,216,187,.09);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: .04em;
  color: var(--muted-2);
  line-height: 1.6;
}
.daily-btn { border-color: rgba(255,154,60,.34) !important; color: var(--accent-soft) !important; }
.daily-mods {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(255,154,60,.16);
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: .04em;
  color: var(--accent-soft);
  line-height: 1.5;
}
.throwable-hud {
  position: absolute;
  right: 24px;
  bottom: 120px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid rgba(226,216,187,.16);
  background: rgba(8,11,7,.62);
  backdrop-filter: blur(6px);
  pointer-events: none;
}
.throwable-hud > span { color: var(--accent-soft); font-size: 15px; }
.throwable-hud div { display: flex; flex-direction: column; gap: 1px; }
.throwable-hud b { font-family: var(--font-display); font-size: 15px; font-weight: 500; color: var(--text); line-height: 1; }
.throwable-hud small { font-family: var(--font-mono); font-size: 6px; letter-spacing: .05em; color: var(--muted-2); }
.throwable-hud kbd { margin-left: 2px; }
.throwable-hud.empty { opacity: .4; }
.medkit-hud {
  position: absolute;
  left: 24px;
  bottom: 128px;
  display: flex;
  align-items: baseline;
  gap: 5px;
  padding: 4px 8px;
  border-left: 2px solid rgba(141,204,114,.5);
  background: rgba(8,11,7,.48);
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: .06em;
  color: var(--muted-2);
  pointer-events: none;
}
.medkit-hud b { font-family: var(--font-display); font-size: 12px; color: var(--text); }
.medkit-hud.spent { opacity: .38; }

.loadout-modal { z-index: 49; }
.loadout-dialog {
  position: relative;
  width: min(850px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
  overflow: auto;
  padding: 28px 30px 24px;
  border: 1px solid rgba(226,216,187,.18);
  background: linear-gradient(150deg, rgba(36,39,28,.97), rgba(8,11,7,.99) 65%);
  box-shadow: 0 45px 110px rgba(0,0,0,.6);
}
.loadout-head, .daily-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.loadout-head h2, .daily-head h2 { margin: 7px 0 4px; font-family: var(--font-display); font-size: 34px; font-weight: 500; letter-spacing: .1em; color: var(--text-bright); }
.loadout-head p, .daily-head p { margin: 0; max-width: 650px; font-size: 9px; line-height: 1.6; color: var(--muted); }
.loadout-budget {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 18px 0 12px;
  padding: 8px 11px;
  border-left: 2px solid var(--accent);
  background: rgba(255,154,60,.055);
  font-size: 8px;
  letter-spacing: .05em;
  color: var(--muted);
}
.loadout-budget b { font-family: var(--font-display); font-size: 26px; color: var(--accent-soft); line-height: 1; }
.loadout-budget em { font-family: var(--font-mono); font-style: normal; color: var(--muted-2); }
.loadout-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.loadout-group { min-width: 0; }
.loadout-group-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; padding-bottom: 4px; border-bottom: 1px solid rgba(226,216,187,.1); }
.loadout-group-head b { font-size: 10px; letter-spacing: .08em; color: var(--text); }
.loadout-group-head span { font-family: var(--font-mono); font-size: 6px; letter-spacing: .08em; color: var(--muted-2); }
.loadout-options { display: flex; flex-direction: column; gap: 4px; }
.loadout-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 7px 9px;
  border: 1px solid rgba(226,216,187,.12);
  background: rgba(8,11,7,.3);
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}
.loadout-option:hover { border-color: rgba(255,154,60,.4); background: rgba(255,154,60,.04); }
.loadout-option.on { border-color: rgba(255,154,60,.58); background: rgba(255,154,60,.09); }
.lo-label { font-size: 9px; color: var(--text); letter-spacing: .04em; }
.loadout-option.on .lo-label { color: var(--accent-soft); }
.lo-desc { font-size: 7px; line-height: 1.45; color: var(--muted-2); padding-right: 30px; }
.lo-cost { position: absolute; right: 7px; top: 7px; font-family: var(--font-mono); font-size: 6px; color: var(--muted-2); }
.loadout-option.on .lo-cost { color: var(--accent-soft); }
.loadout-presets { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 16px; font-size: 8px; color: var(--muted-2); }
.loadout-presets > span { margin-right: 4px; font-family: var(--font-mono); font-size: 6px; letter-spacing: .08em; }
.loadout-presets button { padding: 5px 10px; border: 1px solid rgba(226,216,187,.14); background: rgba(8,11,7,.35); color: var(--muted); font-size: 8px; cursor: pointer; }
.loadout-presets button:hover { border-color: var(--accent); color: var(--accent-soft); }
.loadout-actions, .daily-actions { display: flex; justify-content: flex-end; align-items: stretch; gap: 8px; margin-top: 18px; padding-top: 13px; border-top: 1px solid rgba(226,216,187,.1); }
.loadout-actions .btn-deploy, .daily-actions .btn-deploy { min-width: 220px; min-height: 52px; padding: 7px 13px; }
.loadout-actions .btn-outline, .daily-actions .btn-outline { min-width: 120px; height: 52px; }

.daily-modal { z-index: 49; }
.daily-dialog {
  position: relative;
  width: min(800px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
  overflow: auto;
  padding: 28px 30px 24px;
  border: 1px solid rgba(226,216,187,.18);
  background: linear-gradient(150deg, rgba(36,39,28,.97), rgba(8,11,7,.99) 65%);
  box-shadow: 0 45px 110px rgba(0,0,0,.6);
}
.daily-main { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; margin-top: 18px; }
.daily-card { padding: 13px; border: 1px solid rgba(226,216,187,.12); background: rgba(8,11,7,.3); }
.daily-mode-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 7px; color: var(--muted-2); }
.daily-mode-row b { margin-right: 9px; font-family: var(--font-display); font-size: 13px; color: var(--text); }
.daily-modifiers { display: flex; flex-direction: column; gap: 7px; margin-top: 12px; }
.daily-modifier { position: relative; padding: 8px 9px 8px 32px; border: 1px solid rgba(255,154,60,.15); background: rgba(255,154,60,.035); }
.daily-modifier .dm-icon { position: absolute; left: 9px; top: 8px; color: var(--accent-soft); font-size: 14px; }
.daily-modifier b { display: inline-block; margin-right: 5px; font-size: 9px; color: var(--text); }
.daily-modifier small { font-family: var(--font-mono); font-size: 5.5px; letter-spacing: .08em; color: var(--muted-2); }
.daily-modifier p { margin: 3px 0 0; font-size: 7px; line-height: 1.5; color: var(--muted); }
.daily-best { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; padding-top: 9px; border-top: 1px solid rgba(226,216,187,.1); font-size: 7px; color: var(--muted-2); }
.daily-best b { color: var(--accent-soft); font-family: var(--font-mono); font-weight: 400; text-align: right; }
.daily-board { padding: 12px; border: 1px solid rgba(226,216,187,.12); background: rgba(8,11,7,.3); }
.daily-board-head { display: flex; justify-content: space-between; padding-bottom: 7px; border-bottom: 1px solid rgba(226,216,187,.1); font-size: 8px; color: var(--text); }
.daily-board-head em { font-family: var(--font-mono); font-size: 6px; font-style: normal; color: var(--muted-2); }
.daily-board-body { margin-top: 5px; }
.daily-board-row { display: grid; grid-template-columns: 24px 1fr auto 34px; align-items: center; gap: 6px; min-height: 27px; border-bottom: 1px solid rgba(226,216,187,.06); font-size: 7px; color: var(--muted); }
.daily-board-row span { font-family: var(--font-mono); font-size: 6px; color: var(--accent-soft); }
.daily-board-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-weight: 500; }
.daily-board-row em { font-family: var(--font-display); font-size: 11px; font-style: normal; color: var(--text-bright); }
.daily-board-row small { font-family: var(--font-mono); font-size: 6px; color: var(--muted-2); text-align: right; }
.daily-board-row.me { background: rgba(255,154,60,.07); }
.daily-board-empty { padding: 20px 4px; text-align: center; font-family: var(--font-mono); font-size: 7px; color: var(--muted-2); }

/* --------------------------------------------------------------------------
   手机 / 平板
   -------------------------------------------------------------------------- */
body.touch-ui { overscroll-behavior: none; }
body.touch-ui #game-canvas { touch-action: none; }
body.touch-ui #game-canvas.looking { cursor: crosshair; }
.mobile-hud { display: none; }
.mobile-hud, .mobile-hud * { box-sizing: border-box; }

body.touch-ui #hud .hud-top,
body.touch-ui #hud .hud-bottom,
body.touch-ui #hud .killfeed,
body.touch-ui #hud .combo-hud,
body.touch-ui #hud .boss-bar,
body.touch-ui #hud .throwable-hud,
body.touch-ui #hud .medkit-hud,
body.touch-ui #hud .wave-banner {
  display: none !important;
}
body.touch-ui #hud:not(.hidden) .mobile-hud:not(.hidden) { display: block; }

.mobile-hud {
  position: absolute;
  inset: 0;
  z-index: 12;
  pointer-events: none;
  font-family: var(--font-mono);
  color: var(--text);
  user-select: none;
}
.mobile-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: max(8px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left));
}
.mobile-enemy {
  display: flex;
  flex-direction: column;
  min-width: 74px;
  padding: 6px 9px;
  border-left: 2px solid var(--accent);
  background: linear-gradient(90deg, rgba(8,11,7,.72), rgba(8,11,7,.12));
}
.mobile-enemy span { font-size: 6px; letter-spacing: .08em; color: var(--muted-2); }
.mobile-enemy b { margin-top: 1px; font-family: var(--font-display); font-size: 24px; line-height: .95; color: var(--accent-soft); }
.mobile-enemy small { margin-top: 2px; font-size: 5.5px; letter-spacing: .06em; color: var(--muted); white-space: nowrap; }
.mobile-vitals { width: min(32vw, 300px); min-width: 180px; padding: 6px 9px 5px; background: rgba(7,10,7,.66); border-bottom: 1px solid rgba(141,204,114,.35); }
.mobile-health-line { display: flex; align-items: baseline; gap: 6px; }
.mobile-health-line span { font-size: 6px; color: var(--muted-2); letter-spacing: .08em; }
.mobile-health-line b { font-family: var(--font-display); font-size: 23px; line-height: .9; color: var(--text-bright); }
.mobile-health-line em { margin-left: auto; font-family: var(--font-mono); font-size: 7px; font-style: normal; color: #9dc9e3; }
.mobile-health-line em::before { content: "护甲 "; font-size: 5.5px; color: var(--muted-2); }
.mobile-health-track { height: 5px; margin-top: 4px; background: rgba(255,255,255,.12); overflow: hidden; }
.mobile-health-track i { display: block; width: 100%; height: 100%; background: linear-gradient(90deg,#75bb5c,#a6d37e); transition: width .15s linear; }
.mobile-armor-track { height: 2px; margin-top: 2px; background: rgba(255,255,255,.08); overflow: hidden; }
.mobile-armor-track i { display: block; width: 0; height: 100%; background: #78a9d4; }
.mobile-daily-mods { margin-top: 3px; font-size: 5.5px; letter-spacing: .02em; color: var(--accent-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mobile-meta { display: flex; align-items: flex-start; gap: 6px; }
.mobile-account {
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 120px;
  padding: 4px 6px;
  border: 1px solid rgba(226,216,187,.15);
  background: rgba(8,11,7,.6);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 7px;
  pointer-events: auto;
}
.mobile-account > span { display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid rgba(141,204,114,.55); border-radius: 50%; font-family: var(--font-display); font-size: 9px; color: #b9e3a1; }
.mobile-account b { max-width: 78px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 7px; font-weight: 400; color: var(--muted); }
.mobile-stat { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; padding: 3px 0; }
.mobile-stat span { font-family: var(--font-mono); font-size: 8px; color: var(--text); letter-spacing: .05em; }
.mobile-stat b { font-family: var(--font-display); font-size: 16px; line-height: 1; color: var(--accent-soft); }
.mobile-pause {
  width: 29px;
  height: 29px;
  border: 1px solid rgba(226,216,187,.2);
  background: rgba(8,11,7,.62);
  color: var(--text);
  font-size: 10px;
  pointer-events: auto;
}
.mobile-objective {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  max-width: 54vw;
  text-align: center;
  text-shadow: 0 1px 6px #000;
}
.mobile-objective b { font-family: var(--font-display); font-size: 13px; font-weight: 500; letter-spacing: .08em; color: var(--text-bright); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.mobile-objective span { font-family: var(--font-mono); font-size: 6px; letter-spacing: .08em; color: var(--muted); }
.mobile-boss { position: absolute; top: 99px; left: 50%; transform: translateX(-50%); width: min(54vw, 420px); padding: 4px 6px; border-top: 1px solid rgba(255,115,94,.55); background: rgba(30,12,8,.62); }
.mobile-boss span { display: block; font-size: 6px; color: var(--danger-soft); letter-spacing: .05em; }
.mobile-boss > div { height: 3px; margin-top: 3px; background: rgba(255,255,255,.12); }
.mobile-boss i { display: block; width: 100%; height: 100%; background: #ff735e; }
.mobile-boss b { display: block; margin-top: 2px; text-align: right; font-family: var(--font-mono); font-size: 6px; font-weight: 400; color: var(--danger-soft); }

.mobile-bottom { position: absolute; inset: 0; pointer-events: none; }
.mobile-move { position: absolute; left: max(18px, env(safe-area-inset-left)); bottom: max(18px, env(safe-area-inset-bottom)); width: 149px; height: 149px; pointer-events: none; }
.mobile-joystick {
  position: relative;
  width: 149px;
  height: 149px;
  border: 1px solid rgba(226,216,187,.24);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.055), rgba(8,11,7,.25) 65%, rgba(8,11,7,.5));
  pointer-events: auto;
  touch-action: none;
  transition: border-color .15s ease;
}
.mobile-joystick.active { border-color: rgba(255,154,60,.7); }
.joystick-ring { position: absolute; inset: 33px; border: 1px solid rgba(226,216,187,.15); border-radius: 50%; }
.joystick-stick {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  border: 1px solid rgba(255,154,60,.55);
  border-radius: 50%;
  background: rgba(255,154,60,.18);
  box-shadow: 0 0 16px rgba(255,154,60,.13);
  pointer-events: none;
}
.joystick-label { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); font-family: var(--font-mono); font-size: 5.5px; letter-spacing: .1em; color: var(--muted-2); }
.mobile-jump {
  position: absolute;
  right: -60px;
  bottom: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(226,216,187,.22);
  border-radius: 50%;
  background: rgba(8,11,7,.45);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 11px;
  pointer-events: auto;
  touch-action: none;
}
.mobile-combat { position: absolute; right: max(12px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); width: 310px; height: 280px; pointer-events: none; }
.mobile-fire {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 125px;
  height: 125px;
  border: 2px solid rgba(255,154,60,.65);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, rgba(255,177,91,.42), rgba(255,132,34,.16) 60%, rgba(8,11,7,.72));
  box-shadow: 0 0 24px rgba(255,154,60,.16), inset 0 0 24px rgba(255,154,60,.08);
  color: #ffe7c4;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: .1em;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
}
.mobile-fire.pressed { transform: scale(.94); background: radial-gradient(circle at 38% 32%, rgba(255,196,128,.7), rgba(255,132,34,.28) 60%, rgba(8,11,7,.7)); }
.mobile-small-action {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 60px;
  height: 60px;
  border: 1px solid rgba(226,216,187,.22);
  border-radius: 50%;
  background: rgba(8,11,7,.58);
  color: var(--muted);
  pointer-events: auto;
  touch-action: none;
}
.mobile-small-action span { font-size: 15px; line-height: 1; color: var(--text); }
.mobile-small-action small { font-family: var(--font-display); font-size: 6px; letter-spacing: .04em; color: var(--muted-2); }
.mobile-small-action.action-reload { right: 137px; bottom: 4px; }
.mobile-small-action.action-ads { right: 109px; bottom: 109px; }
.mobile-small-action.action-switch { right: 36px; bottom: 137px; }
.mobile-small-action.action-grenade { right: 36px; bottom: 205px; }
.mobile-small-action.action-ads.on { border-color: rgba(255,154,60,.72); background: rgba(255,154,60,.16); }
.mobile-small-action.action-ads.on span { color: var(--accent-soft); }
.mobile-small-action.action-grenade i { position: absolute; right: -2px; top: -2px; display: grid; place-items: center; min-width: 17px; height: 17px; padding: 0 3px; border: 1px solid rgba(255,154,60,.55); border-radius: 9px; background: #17140c; font-family: var(--font-mono); font-size: 7px; font-style: normal; color: var(--accent-soft); }
.mobile-small-action.empty { opacity: .4; }
.mobile-ammo { position: absolute; right: 204px; bottom: 8px; display: flex; align-items: baseline; gap: 2px; white-space: nowrap; text-shadow: 0 1px 5px #000; }
.mobile-ammo b { font-family: var(--font-display); font-size: 24px; line-height: 1; color: var(--text-bright); }
.mobile-ammo span { font-family: var(--font-mono); font-size: 8px; color: var(--muted-2); }
.mobile-ammo em { font-family: var(--font-mono); font-size: 8px; font-style: normal; color: var(--muted); }
.mobile-ammo small { margin-left: 3px; font-family: var(--font-mono); font-size: 5.5px; color: var(--muted-2); }

.orientation-gate {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  background: #0a0d08;
  text-align: center;
}
body.touch-ui.portrait .orientation-gate { display: flex; }
.orientation-gate.hidden { display: none !important; }
.orientation-icon { width: 50px; height: 82px; border: 2px solid var(--accent); border-radius: 8px; transform: rotate(90deg); box-shadow: 0 0 28px rgba(255,154,60,.18); }
.orientation-gate h2 { margin: 16px 0 0; font-family: var(--font-display); font-size: 24px; font-weight: 500; letter-spacing: .08em; color: var(--text-bright); }
.orientation-gate p { margin: 0; max-width: 360px; font-size: 10px; line-height: 1.7; color: var(--muted); }
.orientation-gate > span { margin-top: 8px; font-family: var(--font-mono); font-size: 7px; letter-spacing: .2em; color: var(--muted-2); }

/* 手机菜单与弹窗 */
.mobile-landing { display: none; }
.mode-card.locked, .ml-options button.locked, .btn-outline.locked, #dailyBtn.locked, #mobileDailyBtn.locked { opacity: .45; }
.mode-card.locked { position: relative; }
.mode-card.locked::after, .ml-options button.locked::after { content: "需注册"; position: absolute; right: 4px; top: 4px; padding: 1px 4px; border: 1px solid rgba(255,154,60,.35); font-family: var(--font-mono); font-size: 5px; letter-spacing: .04em; color: var(--accent-soft); background: rgba(8,11,7,.7); }
.ml-options button.locked { position: relative; }
.ml-options button.locked::after { right: 2px; top: 2px; padding: 0 3px; font-size: 4px; }

body.touch-ui .mobile-landing {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(226px, .74fr);
  gap: 10px;
  height: calc(100dvh - 48px);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  overflow: hidden;
}
body.touch-ui .menu-main, body.touch-ui .menu-footer { display: none !important; }
body.touch-ui .menu-screen { min-height: 100dvh; height: 100dvh; overflow: hidden; }
.ml-left { min-width: 0; min-height: 0; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; scrollbar-color: rgba(255,154,60,.25) transparent; }
.ml-left::-webkit-scrollbar { width: 5px; }
.ml-left::-webkit-scrollbar-thumb { background: rgba(255,154,60,.25); }
.ml-head { padding: 2px 0 7px; border-bottom: 1px solid rgba(226,216,187,.12); }
.ml-kicker { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 6px; letter-spacing: .18em; color: var(--accent-soft); }
.ml-kicker i { width: 14px; height: 1px; background: var(--accent); }
.ml-head h1 { margin: 3px 0 0; font-family: var(--font-display); font-size: clamp(23px, 4.4vh, 31px); font-weight: 500; line-height: 1; letter-spacing: .06em; color: var(--text-bright); }
.ml-head h1 span { margin-left: 9px; font-family: var(--font-mono); font-size: 6px; letter-spacing: .16em; color: var(--muted-2); }
.ml-head p { margin: 4px 0 0; font-size: 7px; line-height: 1.45; color: var(--muted); }
.ml-block { margin-top: 7px; }
.ml-block-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.ml-block-head b { font-family: var(--font-mono); font-size: 6px; font-weight: 400; letter-spacing: .1em; color: var(--muted); }
.ml-block-head span { font-family: var(--font-mono); font-size: 5px; letter-spacing: .15em; color: var(--muted-2); }
.ml-options { display: grid; gap: 4px; }
.ml-modes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ml-compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ml-options button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 30px;
  padding: 4px 5px;
  border: 1px solid rgba(226,216,187,.14);
  background: rgba(9,12,8,.5);
  color: var(--muted);
  font-size: 8px;
  line-height: 1.2;
  text-align: left;
  touch-action: manipulation;
}
.ml-modes button { justify-content: flex-start; padding-left: 6px; }
.ml-options button b { display: grid; place-items: center; width: 18px; height: 18px; flex: 0 0 18px; border: 1px solid rgba(255,154,60,.35); color: var(--accent-soft); font-family: var(--font-display); font-size: 9px; font-weight: 500; }
.ml-options button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-options button small { display: none; }
.ml-options button.on { border-color: rgba(255,154,60,.62); background: rgba(255,154,60,.1); color: var(--text-bright); box-shadow: inset 0 0 18px rgba(255,154,60,.05); }
.ml-options button.on b { background: var(--accent); color: #1a1206; border-color: var(--accent); }
.ml-compact button { min-height: 27px; padding: 3px 4px; font-size: 7px; }
.ml-diff { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ml-maps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ml-maps button { justify-content: flex-start; }
.ml-assist-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; padding: 5px 2px 0; border-top: 1px solid rgba(226,216,187,.12); }
.ml-assist-row > span { display: flex; align-items: baseline; gap: 5px; font-size: 7px; color: var(--muted); }
.ml-assist-row > span small { font-family: var(--font-mono); font-size: 4.5px; letter-spacing: .1em; color: var(--muted-2); }
.ml-assist-row button { min-width: 46px; height: 22px; padding: 0 8px; border: 1px solid rgba(226,216,187,.2); background: rgba(9,12,8,.5); color: var(--muted); font-size: 7px; }
.ml-assist-row button.on { border-color: rgba(141,204,114,.55); background: rgba(141,204,114,.1); color: #a9e28f; }

.ml-right { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 7px; }
.ml-hero { position: relative; flex: 1; min-height: 0; overflow: hidden; border: 1px solid rgba(226,216,187,.18); background: #12150d; }
.ml-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) brightness(.78) contrast(1.08); }
.ml-hero-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 48%, transparent 0 1.5px, rgba(247,239,218,.45) 2px, transparent 2.5px),
    linear-gradient(180deg, #526273 0%, #7d8270 38%, #77734e 53%, #4d4b2d 54%, #33351f 100%);
}
.ml-hero-art::before {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  top: 39%;
  height: 29%;
  background:
    radial-gradient(ellipse at 28% 62%, rgba(54,58,38,.9) 0 18%, transparent 19%),
    radial-gradient(ellipse at 72% 58%, rgba(45,48,31,.9) 0 22%, transparent 23%),
    linear-gradient(180deg, transparent, rgba(30,34,20,.55));
  filter: blur(1px);
}
.ml-hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(232,222,191,.055) 24px, transparent 25px),
    repeating-linear-gradient(90deg, transparent 0 23px, rgba(232,222,191,.045) 24px, transparent 25px);
  mask-image: linear-gradient(180deg, transparent, #000 35%, #000 72%, transparent);
}
.ml-hero-art i {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border: 1px solid rgba(247,239,218,.38);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(247,239,218,.08);
}
.ml-hero-art i::before, .ml-hero-art i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: rgba(247,239,218,.55);
}
.ml-hero-art i::before { width: 1px; height: 16px; margin: -8px 0 0 -0.5px; }
.ml-hero-art i::after { width: 16px; height: 1px; margin: -0.5px 0 0 -8px; }
.ml-hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,9,6,.1), rgba(6,9,6,.15) 42%, rgba(6,9,6,.88)); }
.ml-hero-top { position: absolute; left: 7px; right: 7px; top: 6px; display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 5px; letter-spacing: .08em; color: rgba(247,239,218,.72); text-shadow: 0 1px 4px #000; }
.ml-live { display: flex; align-items: center; gap: 4px; }
.ml-live i { width: 4px; height: 4px; border-radius: 50%; background: #8fce72; box-shadow: 0 0 6px #8fce72; }
.ml-profile { position: absolute; left: 8px; right: 8px; bottom: 31px; display: flex; align-items: center; gap: 6px; }
.ml-avatar { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border: 1px solid rgba(255,154,60,.6); border-radius: 50%; background: rgba(8,11,7,.7); color: var(--accent-soft); font-family: var(--font-display); font-size: 13px; }
.ml-profile b { display: block; font-size: 8px; font-weight: 500; color: var(--text-bright); text-shadow: 0 1px 5px #000; }
.ml-profile span { display: block; margin-top: 1px; font-family: var(--font-mono); font-size: 5px; letter-spacing: .1em; color: var(--muted-2); }
.ml-hero-bottom { position: absolute; left: 8px; right: 8px; bottom: 7px; display: flex; justify-content: space-between; gap: 6px; font-family: var(--font-mono); font-size: 5px; letter-spacing: .06em; color: rgba(247,239,218,.72); }
.ml-hero-bottom b { color: var(--accent-soft); font-weight: 400; white-space: nowrap; }
.ml-deploy-actions { flex: 0 0 auto; display: flex; flex-direction: column; gap: 5px; }
.ml-deploy { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 54px; padding: 7px 10px 7px 12px; border: 0; background: linear-gradient(120deg, #e88625, #d16c18); color: #fff8e8; text-align: left; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%); }
.ml-deploy span { display: flex; flex-direction: column; gap: 1px; }
.ml-deploy b { font-family: var(--font-display); font-size: 18px; font-weight: 500; letter-spacing: .08em; line-height: 1; }
.ml-deploy small { font-family: var(--font-mono); font-size: 5px; letter-spacing: .13em; color: rgba(255,248,232,.7); }
.ml-deploy em { font-size: 20px; font-style: normal; }
.ml-utility { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.ml-utility button { min-height: 30px; border: 1px solid rgba(226,216,187,.2); background: rgba(9,12,8,.52); color: var(--muted); font-size: 7px; touch-action: manipulation; }
.ml-utility button:active { border-color: var(--accent); color: var(--accent-soft); }

@media (max-width: 1100px) {
  body.touch-ui .menu-nav .nav-link,
  body.touch-ui .menu-nav #menuConfigLink { display: none; }
}
body.touch-ui .menu-screen { min-height: 100dvh; }
body.touch-ui .menu-main {
  display: block;
  width: min(820px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 8px 0 4px;
}
body.touch-ui .briefing { display: none; }
body.touch-ui .menu-hero { max-width: 100%; padding: 0; }
body.touch-ui .hero-kicker, body.touch-ui .hero-lede, body.touch-ui .hero-tags, body.touch-ui .mode-description, body.touch-ui .menu-hints { display: none; }
body.touch-ui .game-logo { flex-direction: row; align-items: baseline; gap: 12px; margin-bottom: 12px; }
body.touch-ui .logo-en { font-size: clamp(42px, 8vh, 64px); }
body.touch-ui .logo-cn { margin: 0; font-size: 15px; letter-spacing: .24em; }
body.touch-ui .mode-select { width: 100%; max-width: none; grid-template-columns: repeat(4, 1fr); margin: 8px 0 10px; }
body.touch-ui .mode-card { min-height: 43px; padding: 5px 8px; gap: 6px; }
body.touch-ui .mode-icon { width: 24px; height: 24px; font-size: 10px; }
body.touch-ui .mode-copy b { font-size: 9px; }
body.touch-ui .mode-copy small { display: none; }
body.touch-ui .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
body.touch-ui #startBtn { grid-column: 1 / -1; height: 52px; }
body.touch-ui .hero-actions .btn-outline { height: 42px; min-width: 0; font-size: 9px; padding: 0 7px; }
body.touch-ui .menu-footer { position: relative; bottom: auto; margin-top: 6px; padding: 4px 14px; font-size: 6px; }
body.touch-ui .menu-footer > span:first-child { display: none; }
body.touch-ui .menu-header { height: 48px; padding: 0 12px; }
body.touch-ui .menu-brand .brand-sub { display: none; }
body.touch-ui .menu-brand { gap: 7px; }
body.touch-ui .account-chip { padding: 4px 7px; }
body.touch-ui .account-chip-copy small { display: none; }
body.touch-ui .nav-button { padding: 5px 7px; font-size: 8px; }
body.touch-ui .perk-screen { padding: 8px; }
body.touch-ui .perk-wrap { padding: 18px 20px 16px; max-height: calc(100vh - 16px); overflow: auto; }
body.touch-ui .perk-wrap h2 { font-size: 28px; }
body.touch-ui .perk-cards { grid-template-columns: repeat(3, 1fr) !important; gap: 8px; }
body.touch-ui .perk-card { min-height: 148px; padding: 13px 11px; }
body.touch-ui .perk-icon { width: 30px; height: 30px; font-size: 16px; }
body.touch-ui .perk-card b { font-size: 13px; }
body.touch-ui .perk-card p { font-size: 8px; line-height: 1.5; }
body.touch-ui .perk-key { top: 6px; right: 6px; }
body.touch-ui .perk-foot { margin-top: 10px; padding-top: 7px; }
body.touch-ui .pause-screen, body.touch-ui .result-screen { align-items: flex-start; overflow: auto; padding: 8px; }
body.touch-ui .pause-wrap, body.touch-ui .result-wrap { max-height: none; margin: 0 auto; padding: 18px 20px 16px; }
body.touch-ui .pause-head h2 { font-size: 28px; }
body.touch-ui .pause-stats { margin: 12px 0 16px; }
body.touch-ui .pause-actions { grid-template-columns: 1fr 1fr; }
body.touch-ui .pause-primary { grid-row: auto; min-height: 52px !important; }
body.touch-ui .pause-settings { display: none; }
body.touch-ui .pause-controls { display: none; }
body.touch-ui .result-score-block b { font-size: 30px; }
body.touch-ui .result-wrap h2 { font-size: 32px; }
body.touch-ui .result-stats { grid-template-columns: repeat(4, 1fr) !important; }
body.touch-ui .result-stats div { padding: 8px; }
body.touch-ui .result-stats b { font-size: 17px; }
body.touch-ui .result-actions { flex-direction: row; flex-wrap: wrap; }
body.touch-ui .result-actions .btn-deploy { min-width: 180px; height: 48px; }
body.touch-ui .result-actions .btn-outline { height: 48px; flex: 1; }
/* 手机结算页：不滚动，分数与战斗等级并排右上，统计压成一行 */
body.touch-ui .result-screen { align-items: center; overflow: hidden; padding: 6px; }
body.touch-ui .result-wrap {
  width: min(560px, calc(100vw - 32px));
  max-height: none;
  padding: 14px 16px 12px;
  overflow: hidden;
}
body.touch-ui .result-wrap > p { display: none; }
body.touch-ui #resultKicker { font-size: 6px; }
body.touch-ui .result-wrap h2 {
  max-width: calc(100% - 286px);
  margin: 5px 0 8px;
  overflow: hidden;
  font-size: clamp(25px, 6.4vw, 33px);
  line-height: 1.05;
  white-space: nowrap;
  text-overflow: ellipsis;
}
body.touch-ui .result-score-block {
  position: absolute;
  top: 15px;
  right: 82px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  width: 172px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}
body.touch-ui .result-score-block > span { font-size: 5px; letter-spacing: .12em; }
body.touch-ui .result-score-block b { font-size: 27px; line-height: 1; }
body.touch-ui .result-score-block em {
  width: 100%;
  margin: 3px 0 0;
  overflow: hidden;
  font-size: 6px;
  line-height: 1.35;
  text-align: right;
  white-space: nowrap;
  text-overflow: ellipsis;
}
body.touch-ui .result-grade {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 58px;
  height: 58px;
  margin: 0;
}
body.touch-ui .result-grade span { font-size: 29px; }
body.touch-ui .result-grade small { display: none; }
body.touch-ui .result-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  margin: 8px 0 10px;
}
body.touch-ui .result-stats div { padding: 6px 7px; }
body.touch-ui .result-stats div:nth-child(n+5) { display: none; }
body.touch-ui .result-stats span { margin-bottom: 2px; font-size: 6px; }
body.touch-ui .result-stats b { font-size: 16px; }
body.touch-ui .result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1.35fr;
  gap: 5px;
}
body.touch-ui .result-actions #resultMenuBtn { order: 1; }
body.touch-ui .result-actions #resultLeaderboardBtn { order: 2; }
body.touch-ui .result-actions #resultRestartBtn { order: 3; }
body.touch-ui .result-actions .btn-deploy { min-width: 0; height: 42px; }
body.touch-ui .result-actions .btn-outline { min-width: 0; height: 42px; padding: 0 4px; font-size: 8px; }
body.touch-ui .result-note { display: none; }
body.touch-ui .loadout-modal, body.touch-ui .daily-modal, body.touch-ui .leaderboard-modal { align-items: flex-start; overflow: auto; padding: 8px; }
body.touch-ui .loadout-dialog, body.touch-ui .daily-dialog, body.touch-ui .leaderboard-dialog, body.touch-ui .account-dialog {
  max-height: calc(100dvh - 16px);
  overflow-y: auto;
  margin: 0 auto;
  padding: 18px 20px 16px;
  -webkit-overflow-scrolling: touch;
}
body.touch-ui .loadout-head h2, body.touch-ui .daily-head h2 { font-size: 28px; }
body.touch-ui .loadout-groups { grid-template-columns: 1fr 1fr; gap: 8px 12px; }
body.touch-ui .loadout-option { padding: 5px 7px; }
body.touch-ui .lo-desc { display: none; }
body.touch-ui .loadout-actions, body.touch-ui .daily-actions { margin-top: 10px; padding-top: 8px; }
body.touch-ui .loadout-actions {
  position: sticky;
  bottom: -1px;
  z-index: 2;
  padding: 8px 0;
  background: linear-gradient(180deg, rgba(15,18,11,.82), rgba(15,18,11,.98));
}
body.touch-ui .daily-main { grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 10px; }
body.touch-ui .daily-modifier { padding: 6px 7px 6px 28px; }
body.touch-ui .daily-modifier p { display: none; }
body.touch-ui .account-modal { align-items: flex-start; overflow: auto; padding: 8px; }
body.touch-ui .account-dialog {
  display: grid;
  grid-template-columns: clamp(188px, 30vw, 258px) minmax(0, 1fr);
  width: calc(100vw - 16px);
  height: calc(100dvh - 16px);
  max-height: calc(100dvh - 16px);
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
}
body.touch-ui .account-side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 18px 16px 14px;
  border-right: 1px solid rgba(226,216,187,.14);
  background:
    radial-gradient(circle at 20% 10%, rgba(255,154,60,.16), transparent 44%),
    linear-gradient(170deg, rgba(45,50,35,.8), rgba(8,11,7,.98));
  overflow: hidden;
}
body.touch-ui .account-side-brand { display: flex; align-items: center; gap: 8px; }
body.touch-ui .account-side-logo { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid rgba(255,154,60,.55); color: var(--accent-soft); font-family: var(--font-display); font-size: 15px; }
body.touch-ui .account-side-brand b { display: block; font-family: var(--font-display); font-size: 15px; font-weight: 500; letter-spacing: .08em; color: var(--text-bright); }
body.touch-ui .account-side-brand small { display: block; margin-top: 1px; font-family: var(--font-mono); font-size: 5px; letter-spacing: .15em; color: var(--muted-2); }
body.touch-ui .account-side-mark { display: flex; align-items: center; gap: 8px; margin-top: 22px; }
body.touch-ui .account-side-mark i { width: 36px; height: 36px; border: 1px solid rgba(255,154,60,.5); transform: rotate(45deg); box-shadow: inset 0 0 16px rgba(255,154,60,.12); }
body.touch-ui .account-side-mark span { font-family: var(--font-mono); font-size: 5px; line-height: 1.5; letter-spacing: .17em; color: var(--accent-soft); }
body.touch-ui .account-side h3 { margin: 16px 0 7px; font-family: var(--font-display); font-size: clamp(22px, 3vw, 30px); font-weight: 500; line-height: 1.08; letter-spacing: .06em; color: var(--text-bright); }
body.touch-ui .account-side > p { margin: 0; font-size: 8px; line-height: 1.65; color: var(--muted); }
body.touch-ui .account-side ul { display: flex; flex-direction: column; gap: 5px; margin: 13px 0 0; padding: 0; list-style: none; }
body.touch-ui .account-side li { display: flex; flex-direction: column; gap: 1px; padding: 6px 0; border-top: 1px solid rgba(226,216,187,.1); }
body.touch-ui .account-side li b { font-size: 8px; font-weight: 500; color: var(--text); }
body.touch-ui .account-side li span { font-size: 6px; line-height: 1.4; color: var(--muted-2); }
body.touch-ui .account-side-foot { margin-top: auto; padding-top: 8px; font-family: var(--font-mono); font-size: 4.5px; letter-spacing: .12em; color: var(--muted-2); }
body.touch-ui .account-content {
  min-width: 0;
  height: 100%;
  overflow-y: auto;
  padding: 18px 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,154,60,.3) transparent;
}
body.touch-ui .account-content::-webkit-scrollbar { width: 5px; }
body.touch-ui .account-content::-webkit-scrollbar-thumb { background: rgba(255,154,60,.3); }
body.touch-ui .account-head h2 { font-size: 24px; }
body.touch-ui .account-head p { font-size: 8px; }
body.touch-ui .account-grid { grid-template-columns: 1fr; }
body.touch-ui .account-field input { height: 36px; font-size: 10px; }
body.touch-ui .account-submit { height: 42px; }
body.touch-ui .account-foot { margin-top: 12px; padding-top: 9px; }
body.touch-ui .admin-modal { align-items: flex-start; overflow: auto; padding: 8px; }
body.touch-ui .admin-dialog { max-height: calc(100dvh - 16px); overflow-y: auto; margin: 0 auto; }
body.touch-ui .admin-airdrop-list { grid-template-columns: 1fr; }
body.touch-ui .admin-mode-airdrops { grid-template-columns: 1fr; }
body.touch-ui .settings-modal { align-items: flex-start; overflow: auto; padding: 8px; }
body.touch-ui .settings-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); overflow-y: auto; padding: 16px 18px 14px; }
body.touch-ui .settings-head h2 { font-size: 25px; }
body.touch-ui .settings-head p { font-size: 8px; }
body.touch-ui .settings-grid { gap: 7px; margin-top: 9px; }
body.touch-ui .settings-block { padding: 8px 10px; }
body.touch-ui .settings-difficulty-list button { min-height: 34px; }
body.touch-ui .settings-actions .btn-outline { height: 40px; }
body.touch-ui .settings-actions .btn-deploy { height: 40px; }
body.touch-ui .scope-overlay .scope-hint { display: none; }

@media (orientation: portrait) {
  body.touch-ui #hud, body.touch-ui .menu-screen { pointer-events: none; }
}

@media (max-height: 430px) and (orientation: landscape) {
  body.touch-ui .mobile-top { padding-top: max(4px, env(safe-area-inset-top)); }
  body.touch-ui .mobile-objective { top: 61px; }
  body.touch-ui .mobile-boss { top: 87px; }
  body.touch-ui .mobile-move { width: 149px; height: 149px; left: max(14px, env(safe-area-inset-left)); bottom: max(12px, env(safe-area-inset-bottom)); }
  body.touch-ui .mobile-joystick { width: 149px; height: 149px; }
  body.touch-ui .mobile-jump { right: -60px; width: 40px; height: 40px; }
  body.touch-ui .mobile-combat { transform: scale(.9); transform-origin: right bottom; }
  body.touch-ui .mobile-account { max-width: 98px; }
  body.touch-ui .game-logo { margin-bottom: 7px; }
  body.touch-ui .mode-select { margin: 5px 0 7px; }
  body.touch-ui .mode-card { min-height: 38px; }
  body.touch-ui .hero-actions { gap: 5px; }
  body.touch-ui #startBtn { height: 46px; }
  body.touch-ui .hero-actions .btn-outline { height: 36px; }
}

