/* ===================================================================
   style.css — 军事指挥终端风格：暗色金属 + 琥珀色数码字 + 硬边框
   布局：左侧战场自适应铺满，右侧固定宽度侧边栏（红警式）
   =================================================================== */

:root {
  --bg: #0a0d0b;
  --panel: #171b17;
  --panel2: #1f251f;
  --panel3: #2a322a;
  --line: #38423a;
  --line2: #4d5a4c;
  --amber: #e8c14a;
  --amber-dim: #8f7a34;
  --green: #6fd36f;
  --red: #e5533a;
  --blue: #58a8e8;
  --txt: #cfd6cb;
  --txt-dim: #8b968a;
  --side-w: 236px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--txt);
  font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 13px;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

#app { position: relative; width: 100%; height: 100%; display: flex; }

/* ============================ 战场 ============================ */
#stage { position: relative; flex: 1; min-width: 0; overflow: hidden; }
#game { display: block; width: 100%; height: 100%; background: #0d100e; }

/* ---------- 左上状态条 ---------- */
#topbar {
  position: absolute; top: 8px; left: 8px;
  display: flex; gap: 4px;
  pointer-events: none;
}
.tb-item {
  background: rgba(12,16,13,0.78);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 3px 8px 4px;
  display: flex; flex-direction: column; align-items: center;
  min-width: 56px;
}
.tb-item em {
  font-style: normal; font-size: 9px; letter-spacing: 1px;
  color: var(--txt-dim); text-transform: uppercase;
}
.tb-item b {
  font-family: "Consolas", monospace; font-size: 14px;
  color: var(--amber); line-height: 1.1;
}
.tb-diff b { color: var(--red); }

/* ---------- 提示条 ---------- */
#toasts {
  position: absolute; left: 10px; bottom: 84px;
  display: flex; flex-direction: column-reverse; gap: 3px;
  pointer-events: none; max-width: 420px;
}
.toast {
  background: rgba(10,14,11,0.86);
  border-left: 3px solid var(--amber);
  padding: 4px 10px; font-size: 12px;
  color: #e6ebe3;
  animation: toastIn 0.18s ease-out;
}
.toast.warn { border-left-color: var(--red); color: #ffd9d0; }
@keyframes toastIn { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }

/* ---------- 模式提示 ---------- */
#modehint {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  background: rgba(20,26,20,0.9);
  border: 1px solid var(--amber-dim);
  color: var(--amber);
  padding: 4px 14px; font-size: 12px; letter-spacing: 1px;
  pointer-events: none;
}

/* ---------- 底部选中信息 ---------- */
#selbar {
  position: absolute; left: 8px; bottom: 8px;
  display: flex; align-items: stretch; gap: 8px;
  background: rgba(12,16,13,0.85);
  border: 1px solid var(--line);
  padding: 6px;
  max-width: calc(100% - 20px);
}
#sel-icon { width: 56px; height: 46px; background: #0e120f; border: 1px solid var(--line); flex: none; }
#sel-icon canvas { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
#sel-info { min-width: 128px; display: flex; flex-direction: column; justify-content: center; }
#sel-name { font-size: 13px; color: var(--amber); font-weight: 600; }
#sel-detail { font-size: 11px; color: var(--txt-dim); line-height: 1.5; }
#sel-list { display: flex; flex-wrap: wrap; gap: 2px; align-content: center; max-width: 420px; max-height: 46px; overflow: hidden; }
.sel-chip {
  font-size: 10px; padding: 1px 5px;
  background: var(--panel2); border: 1px solid var(--line);
  color: var(--txt); border-radius: 2px;
}
.sel-chip b { color: var(--amber); font-weight: 600; }

/* ============================ 侧边栏 ============================ */
#side {
  width: var(--side-w); flex: none;
  background: linear-gradient(180deg, #1b211b, #12160f);
  border-left: 2px solid var(--line2);
  display: flex; flex-direction: column;
  padding: 6px;
  gap: 6px;
}

/* ---------- 资源 ---------- */
#res { background: #0d110e; border: 1px solid var(--line); padding: 5px 7px; }
.res-credits { display: flex; justify-content: space-between; align-items: baseline; }
.res-label { font-size: 10px; letter-spacing: 1px; color: var(--txt-dim); }
#credits {
  font-family: "Consolas", monospace; font-size: 20px; color: var(--amber);
  text-shadow: 0 0 8px rgba(232,193,74,0.35);
}
.res-power { margin-top: 4px; }
.pw-track {
  position: relative; height: 7px; background: #060806;
  border: 1px solid var(--line); overflow: hidden;
}
.pw-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #3f7f3f, var(--green)); transition: width 0.25s; }
.pw-fill.low { background: linear-gradient(90deg, #8a3020, var(--red)); }
.pw-mark { position: absolute; top: -2px; bottom: -2px; width: 2px; background: #e8e8d0; opacity: 0.8; }
.res-power span { font-size: 10px; color: var(--txt-dim); display: block; margin-top: 2px; }
.res-power span.low { color: var(--red); }

/* ---------- 小地图 ---------- */
#minimap {
  width: 100%; height: 222px;
  background: #070a08; border: 1px solid var(--line2);
  display: block; cursor: crosshair;
  image-rendering: pixelated;
}

/* ---------- 超级武器 ---------- */
#swbar #sw-btn {
  position: relative; width: 100%;
  background: #10160f; border: 1px solid var(--line);
  color: var(--txt); padding: 5px 8px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; cursor: pointer; overflow: hidden;
}
#swbar #sw-btn .sw-name { color: var(--blue); font-weight: 600; z-index: 1; }
#swbar #sw-btn .sw-state { color: var(--txt-dim); z-index: 1; font-family: Consolas, monospace; }
#swbar #sw-btn .sw-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0%;
  background: rgba(88,168,232,0.22);
}
#swbar #sw-btn.ready { border-color: var(--blue); animation: swPulse 1.1s infinite; }
#swbar #sw-btn.ready .sw-state { color: var(--blue); }
@keyframes swPulse { 0%,100% { box-shadow: 0 0 0 rgba(88,168,232,0); } 50% { box-shadow: 0 0 10px rgba(88,168,232,0.5); } }

/* ---------- 分类页签 ---------- */
#tabs { display: flex; gap: 2px; }
.tab {
  flex: 1; padding: 5px 0; text-align: center;
  background: var(--panel); border: 1px solid var(--line);
  color: var(--txt-dim); font-size: 11px; cursor: pointer;
  position: relative;
}
.tab:hover { background: var(--panel2); color: var(--txt); }
.tab.active { background: var(--panel3); color: var(--amber); border-color: var(--amber-dim); }
.tab.locked { opacity: 0.38; cursor: not-allowed; }
.tab .tab-hk {
  position: absolute; top: 1px; right: 3px;
  font-size: 8px; color: var(--amber-dim); opacity: 0.7;
  font-weight: bold;
}
.tab.active .tab-hk { color: var(--amber); opacity: 1; }

/* ---------- 建造列表 ---------- */
#buildlist {
  flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  align-content: start;
  padding-right: 2px;
}
#buildlist::-webkit-scrollbar { width: 6px; }
#buildlist::-webkit-scrollbar-track { background: #0b0e0b; }
#buildlist::-webkit-scrollbar-thumb { background: var(--line2); }

.bcard {
  position: relative; background: #0e120f;
  border: 1px solid var(--line);
  cursor: pointer; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 74px;
}
.bcard:hover { border-color: var(--line2); background: #131813; }
.bcard.locked { opacity: 0.34; cursor: not-allowed; filter: grayscale(0.7); }
.bcard.active { border-color: var(--amber); }
.bcard.ready { border-color: var(--green); animation: readyPulse 1s infinite; }
@keyframes readyPulse { 0%,100% { background: #0e120f; } 50% { background: #1a2a18; } }

.bcard-icon { width: 100%; height: 44px; background: #0a0d0a; }
.bcard-icon canvas { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.bcard-icon.fb {
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--txt-dim); text-align: center; line-height: 1.2;
}
.bcard-name { font-size: 10.5px; padding: 2px 4px 0; color: var(--txt); line-height: 1.25; }
.bcard-cost {
  font-family: Consolas, monospace; font-size: 10px;
  color: var(--amber-dim); padding: 0 4px 3px;
  display: flex; justify-content: space-between;
}
.bcard-cost .afford { color: var(--amber); }
.bcard-cost .no { color: var(--red); }
.bcard-key {
  position: absolute; top: 1px; right: 2px;
  font-size: 9px; color: var(--txt-dim);
  background: rgba(0,0,0,0.5); padding: 0 3px; border-radius: 2px;
}
.bcard-prog {
  position: absolute; left: 0; bottom: 0; height: 3px;
  background: var(--green); width: 0%;
}
.bcard-mask {
  position: absolute; left: 0; right: 0; top: 0;
  background: rgba(0,0,0,0.62); pointer-events: none;
  height: 0%;
}
.bcard-badge {
  position: absolute; left: 2px; top: 1px;
  font-size: 10px; font-weight: 700; color: #0a0d0a;
  background: var(--amber); padding: 0 4px; border-radius: 2px;
}
.bcard-state {
  position: absolute; left: 0; right: 0; bottom: 3px;
  text-align: center; font-size: 10px; font-weight: 600;
  color: #0a0d0a; background: rgba(232,193,74,0.85);
  padding: 1px 0;
}
.bcard-state.hold { background: rgba(229,83,58,0.85); color: #fff; }
.bcard-state.ready { background: rgba(111,211,111,0.9); }

/* ---------- 工具按钮 ---------- */
#tools { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 3px; }
.tool {
  background: var(--panel); border: 1px solid var(--line);
  color: var(--txt-dim); padding: 5px 0; font-size: 11px; cursor: pointer;
}
.tool:hover { background: var(--panel2); color: var(--txt); }
.tool.on { background: var(--amber-dim); color: #0a0d0a; border-color: var(--amber); font-weight: 600; }

/* ============================ 全屏界面 ============================ */
.screen {
  position: absolute; inset: 0; z-index: 40;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(60,80,50,0.16), transparent 62%),
    linear-gradient(160deg, #0b0f0c 0%, #12160f 55%, #090b08 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 24px;
  overflow-y: auto;
}
.screen.hidden, .hidden { display: none !important; }

/* ---- 标题界面专属背景：雷达网纹暗色金属 ---- */
#scr-title {
  background:
    radial-gradient(ellipse at 50% 22%, rgba(70,100,60,0.20), transparent 58%),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(90,130,90,0.045) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(90,130,90,0.045) 39px 40px),
    linear-gradient(160deg, #0a0e0a 0%, #11140d 55%, #060806 100%);
}

/* ---- 标志性雷达盘 ---- */
.radar {
  position: relative; width: 156px; height: 156px; flex: none;
  border-radius: 50%;
  background: radial-gradient(circle, #0e1a0e 0%, #0a130a 64%, #050805 100%);
  box-shadow:
    0 0 0 2px #1d2e1d,
    0 0 0 4px #0a0f0a,
    0 0 0 5px #2a3a2a,
    0 0 34px rgba(90,210,110,0.16),
    inset 0 0 22px rgba(0,0,0,0.65);
  overflow: hidden;
}
.radar-rings {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle, transparent 27%, rgba(90,210,110,0.22) 27.4%, transparent 30%),
    radial-gradient(circle, transparent 52%, rgba(90,210,110,0.18) 52.4%, transparent 55%),
    radial-gradient(circle, transparent 77%, rgba(90,210,110,0.14) 77.4%, transparent 80%);
}
.radar-grid {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    linear-gradient(rgba(90,210,110,0.16), rgba(90,210,110,0.16)) center/1px 100% no-repeat,
    linear-gradient(90deg, rgba(90,210,110,0.16), rgba(90,210,110,0.16)) center/100% 1px no-repeat;
}
.radar-grid::before, .radar-grid::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 1px; height: 50%; background: rgba(90,210,110,0.10);
  transform-origin: top center;
}
.radar-grid::before { transform: translate(-50%, -100%) rotate(45deg); }
.radar-grid::after  { transform: translate(-50%, -100%) rotate(-45deg); }
.radar-sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg,
    rgba(120,230,130,0.50), rgba(120,230,130,0.06) 55deg,
    transparent 95deg, transparent 360deg);
  animation: radar-sweep 3.4s linear infinite;
}
@keyframes radar-sweep { to { transform: rotate(360deg); } }
.radar-blips { position: absolute; inset: 0; }
.radar-blips::before, .radar-blips::after, .radar-blips i {
  content: ''; position: absolute; width: 5px; height: 5px; border-radius: 50%;
  background: #8ff0a0; box-shadow: 0 0 8px #6fe07f;
  animation: blip 2.4s ease-in-out infinite;
}
.radar-blips::before { top: 32%; left: 58%; }
.radar-blips::after  { top: 64%; left: 38%; animation-delay: 1.1s; }
.radar-blips i       { top: 46%; left: 70%; animation-delay: 0.6s; }
@keyframes blip { 0%,100%{opacity:0.15} 50%{opacity:1} }
.radar-core {
  position: absolute; left: 50%; top: 50%; width: 14px; height: 14px;
  margin: -7px 0 0 -7px; border-radius: 50%;
  background: radial-gradient(circle, #e8c14a, #8f7a34);
  box-shadow: 0 0 10px rgba(232,193,74,0.6);
}

/* ---- 标题 ---- */
.title-art { text-align: center; position: relative; }
.title-badge {
  display: inline-block; padding: 2px 14px; margin-bottom: 10px;
  font-size: 10px; letter-spacing: 4px; color: #1a0c0c; font-weight: 700;
  background: linear-gradient(90deg, #c0392b, #e5533a);
  box-shadow: 0 0 12px rgba(229,83,58,0.35);
}
.title-art h1 {
  font-size: 58px; letter-spacing: 12px; font-weight: 800;
  color: #e9e3cf;
  text-shadow: 0 0 22px rgba(232,193,74,0.30), 0 4px 0 #2a2f22;
}
.title-art h2 {
  font-size: 15px; letter-spacing: 7px; color: var(--amber-dim);
  font-weight: 500; margin-top: 2px;
}
.tagline { margin-top: 10px; color: var(--txt-dim); font-size: 13px; }

/* 结局界面标题（保留通用） */
.scr-title {
  font-size: 24px; letter-spacing: 6px; color: var(--amber);
  font-weight: 700;
}
.scr-sub { color: var(--txt-dim); font-size: 13px; }

/* ---- 遭遇战面板（红警金属玻璃） ---- */
.skirm-panel {
  position: relative; min-width: 480px; padding: 14px 22px 16px;
  background: linear-gradient(160deg, rgba(32,42,32,0.74), rgba(16,22,16,0.74));
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    inset 0 0 0 1px #2c3a2c,
    0 0 0 1px #0a0f0a,
    0 10px 30px rgba(0,0,0,0.55);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.skirm-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; padding-bottom: 7px;
  border-bottom: 1px solid rgba(120,150,120,0.18);
}
.skirm-label { font-size: 12px; letter-spacing: 4px; color: var(--amber); font-weight: 600; }
.skirm-status {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; letter-spacing: 2px; color: var(--green);
}
.skirm-status::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px var(--green);
  animation: blip 1.6s ease-in-out infinite;
}

.setup { display: flex; flex-direction: column; gap: 7px; }
.setup-row { display: flex; align-items: center; gap: 12px; padding: 2px 0; }
.setup-label {
  width: 86px; text-align: right; font-size: 12px;
  color: var(--txt-dim); letter-spacing: 2px; flex: none;
}
.opt-group { display: flex; gap: 5px; flex-wrap: wrap; flex: 1; }
.opt {
  position: relative; min-width: 92px;
  background: linear-gradient(180deg, #232a23, #141a14);
  color: var(--txt-dim); padding: 5px 12px; font-size: 12px; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), inset 0 0 0 1px #2c3a2c;
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
}
.opt:hover { background: linear-gradient(180deg, #2c352c, #1a211a); color: var(--txt); }
.opt.on {
  color: var(--amber);
  background: linear-gradient(180deg, #2e2a1a, #1a1810);
  box-shadow: inset 0 0 0 1px var(--amber-dim), inset 0 0 12px rgba(232,193,74,0.18);
  filter: drop-shadow(0 0 5px rgba(232,193,74,0.35));
}
.opt small { display: block; font-size: 10px; opacity: 0.7; margin-top: 1px; }

/* 滑块 / 下拉 / 复选框（遭遇战选项） */
.setup-select {
  flex: 1; min-width: 0;
  background: linear-gradient(180deg, #1c221c, #0e120e);
  color: var(--txt); border: 1px solid #2c3a2c;
  padding: 5px 8px; font-size: 12px; font-family: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.setup-select:focus { outline: none; border-color: var(--amber-dim); }
.setup-select option { background: #11160f; color: var(--txt); }
.setup-slider {
  flex: 1; min-width: 0; height: 14px; cursor: pointer;
  background: linear-gradient(180deg, #0d110d, #1a211a);
  appearance: none; -webkit-appearance: none;
  border: 1px solid #2c3a2c; outline: none;
}
.setup-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 14px; height: 18px;
  background: linear-gradient(180deg, #e8c14a, #a8822c);
  border: 1px solid #5c4a18; cursor: pointer;
  box-shadow: 0 0 5px rgba(232,193,74,0.45);
}
.setup-slider::-moz-range-thumb {
  width: 14px; height: 18px; border: 1px solid #5c4a18;
  background: linear-gradient(180deg, #e8c14a, #a8822c);
  cursor: pointer;
}
.setup-check {
  flex: 1; display: flex; align-items: center; gap: 8px;
  color: var(--txt-dim); font-size: 12px; cursor: pointer;
}
.setup-check input { accent-color: var(--amber); width: 14px; height: 14px; cursor: pointer; }
.setup-label b {
  color: var(--amber); font-weight: 600;
  margin-left: 4px; font-size: 12px;
}
#row-maplist { transition: opacity 0.15s; }
#row-maplist.disabled { opacity: 0.35; pointer-events: none; }

/* ---- 菜单按钮（红警斜切角金属） ---- */
.menu { display: flex; gap: 9px; flex-wrap: wrap; justify-content: center; }
.btn {
  position: relative;
  background: linear-gradient(180deg, #2c352c, #1a211a);
  color: var(--txt); padding: 10px 26px; font-size: 13px; letter-spacing: 3px; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), inset 0 0 0 1px #3a4a3a;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.btn:hover {
  background: linear-gradient(180deg, #384438, #212a21); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), inset 0 0 0 1px #4a5a4a;
}
.btn-major {
  color: var(--amber);
  background: linear-gradient(180deg, #3a3320, #1f1c12);
  box-shadow: inset 0 1px 0 rgba(255,230,150,0.12), inset 0 0 0 1px var(--amber-dim),
    inset 0 0 16px rgba(232,193,74,0.18);
  filter: drop-shadow(0 0 7px rgba(232,193,74,0.32));
}
.btn-major:hover { color: #fff5cf; }
.hint-line { font-size: 11px; color: #5f6a5e; letter-spacing: 1px; }

/* ---------- 说明 ---------- */
.help-cols { display: flex; gap: 30px; flex-wrap: wrap; justify-content: center; }
.help-col { min-width: 300px; }
.help-col h4 {
  font-size: 12px; color: var(--amber); letter-spacing: 3px;
  border-bottom: 1px solid var(--line); padding-bottom: 4px; margin-bottom: 6px;
}
.kv { display: flex; gap: 10px; align-items: baseline; padding: 2px 0; font-size: 12px; }
kbd {
  font-family: Consolas, monospace; font-size: 11px;
  background: #0d110e; border: 1px solid var(--line2);
  padding: 1px 6px; color: var(--amber); flex: none; min-width: 92px; text-align: center;
}
.kv span { color: var(--txt-dim); }
.help-note {
  max-width: 700px; font-size: 12px; line-height: 1.8;
  color: var(--txt-dim); border-top: 1px solid var(--line); padding-top: 10px;
}
.help-note b { color: var(--txt); }

/* ---------- 科技树 ---------- */
.tech-body { max-width: 940px; width: 100%; display: flex; flex-direction: column; gap: 14px; }
.tech-tier { border: 1px solid var(--line); background: rgba(13,17,14,0.6); padding: 8px 10px; }
.tech-tier h4 { font-size: 12px; color: var(--amber); letter-spacing: 2px; margin-bottom: 6px; }
.tech-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.tech-item {
  border: 1px solid var(--line); background: #0e120f;
  padding: 4px 8px; font-size: 11px; min-width: 150px;
}
.tech-item b { color: var(--txt); display: block; }
.tech-item i { color: var(--amber-dim); font-style: normal; font-family: Consolas, monospace; }
.tech-item em { color: #6f7a6d; font-style: normal; display: block; font-size: 10px; line-height: 1.4; }

/* ---------- 统计块 ---------- */
.stat-block {
  display: grid; grid-template-columns: repeat(2, minmax(190px, 1fr));
  gap: 4px 22px; font-size: 12px;
  border: 1px solid var(--line); padding: 10px 16px;
  background: rgba(13,17,14,0.6);
}
.stat-row { display: flex; justify-content: space-between; gap: 12px; }
.stat-row span { color: var(--txt-dim); }
.stat-row b { color: var(--amber); font-family: Consolas, monospace; }

.opt-row {
  display: flex; gap: 18px; flex-wrap: wrap; justify-content: center;
  font-size: 12px; color: var(--txt-dim);
}
.opt-row label { display: flex; align-items: center; gap: 6px; }
.opt-row input[type=range] { width: 110px; }

#over-title.win { color: var(--green); }
#over-title.lose { color: var(--red); }

/* ---------- 载入 ---------- */
#loading {
  position: absolute; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  background: #080b09; color: var(--amber-dim);
  font-size: 14px; letter-spacing: 4px;
}

/* ---------- 窄屏兜底 ---------- */
@media (max-width: 900px) {
  :root { --side-w: 190px; }
  #minimap { height: 170px; }
  .setup { min-width: 0; width: 100%; }
  .title-art h1 { font-size: 40px; letter-spacing: 8px; }
}
