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

body {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  background: linear-gradient(180deg, #eaeef8 0%, #dee4f3 55%, #ccd4e9 100%);  /* 与地图星空同源 */
  color: #46485a;
  height: 100vh;
  overflow: hidden;
}

/* ---------- 布局 ----------
 * 地图画布全屏铺底，所有 UI 以浮动卡片形式盖在地图上，
 * 房间延伸到面板下方自然滑出，没有截断边框
 */
#stage {
  position: fixed;
  inset: 0;
}
#mapc {
  width: 100%; height: 100%;
  display: block;
  cursor: pointer;
}
/* 教学引导层：透明叠在地图上，只画金圈和金手指（每帧只清画这一层，不动地图） */
#guidec {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 14;
}
#minimap {
  position: absolute; top: 108px; left: 12px; z-index: 15;
  background: rgba(238, 240, 250, .88);
  border: 1px solid #b4bad2; border-radius: 8px;
  box-shadow: 0 3px 10px rgba(90, 100, 140, .25);
  backdrop-filter: blur(6px);
  pointer-events: none;
}

/* ---------- 士兵模型 ---------- */
.figures {
  display: flex; flex-wrap: wrap; gap: 2px;
  align-items: center; justify-content: center;
  filter: drop-shadow(0 1px 1px rgba(60, 40, 15, .35));
}
.unit { width: 15px; height: 21px; flex-shrink: 0; }
.cnt {
  font-size: 13px; font-weight: bold; color: #2c4f84; margin-left: 3px;
  text-shadow: 0 1px 0 rgba(255, 250, 235, .8);
}
.enemy-cnt { color: #a03024; }
.panel-figs { justify-content: flex-start; margin-bottom: 3px; filter: none; }
.panel-figs .unit { width: 17px; height: 24px; margin-right: 5px; }
.base-ico, .res-ico, .camp-ico, .ret-ico { font-size: 15px; }

/* ---------- 面板通用（冷白纸面，与星空协调） ---------- */
.panel {
  background: rgba(252, 253, 255, .88);
  border: 1px solid #ccd2e4;
  border-radius: 10px;
  padding: 8px 12px;
  box-shadow: 0 3px 12px rgba(90, 100, 140, .16);
  backdrop-filter: blur(8px);
  font-size: 13px;
}
.panel h2 {
  font-size: 13px; color: #5f6b8a; margin-bottom: 5px;
  border-bottom: 1px solid #dde2ee; padding-bottom: 3px;
}
.dim { color: #8a90a8; font-size: 12px; }

/* 顶部状态栏 */
#topbar {
  position: fixed; top: 8px; left: 12px; right: 290px; z-index: 20;
  background: rgba(252, 253, 255, .88);
  border: 1px solid #ccd2e4; border-radius: 10px;
  padding: 6px 14px;
  box-shadow: 0 3px 12px rgba(90, 100, 140, .16);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
#topbar h1 { font-size: 16px; color: #4f5b80; font-family: "STKaiti", "KaiTi", serif; white-space: nowrap; }
#topbar .sub { font-size: 14px; color: #6a7392; font-weight: normal; margin-left: 8px; }
#status { display: flex; gap: 14px; font-size: 13px; flex-wrap: wrap; }
#st-ap { color: #3f6fb5; }
#st-wood { color: #7a6a52; }
#objective { font-size: 11px; color: #7a7f96; flex-basis: 100%; line-height: 1.4; }

/* 右侧整列：军队（弹性滚动） / 位置 / 行动——flex 排布，杜绝遮挡 */
#right-col {
  position: fixed; top: 8px; right: 12px; bottom: 8px; width: 264px; z-index: 20;
  display: flex; flex-direction: column; gap: 8px;
}
#army-panel { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
#room-panel, #action-panel { flex: 0 0 auto; }
#army-info, #room-info { font-size: 12px; line-height: 1.7; }

/* 左下：日志 */
#panel-bl {
  position: fixed; bottom: 8px; left: 12px; width: 320px; z-index: 20;
}
#log {
  height: 190px; overflow-y: auto;
  font-size: 12px; line-height: 1.6;
}
#log p { border-bottom: 1px solid #e4e8f2; padding: 2px 0; }
#log p.bad { color: #b04030; }
#log p.good { color: #4e7d3a; }
#log p.day { color: #3f6fb5; }

/* 右下：行动按钮（在 #right-col 内，随列排布） */
#actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}
button {
  background: #f4f6fb; color: #4a5068;
  border: 1px solid #c4cbdf; border-radius: 6px;
  padding: 6px 8px; font-size: 12px; cursor: pointer;
  box-shadow: 0 1px 2px rgba(90, 100, 140, .15);
}
button:hover:not(:disabled) { background: #fbfcff; border-color: #a8b2d0; }
button:disabled { opacity: .4; cursor: not-allowed; }
button.armed { background: #e8c07a; border-color: #b3814d; }
#btn-endday {
  width: 100%; margin-top: 7px;
  background: #7ba05b; border-color: #5f8145; color: #fffbe8;
  font-size: 13px; padding: 8px;
}
#btn-endday:hover:not(:disabled) { background: #8ab068; }
/* 超编驻扎确认待命：红底警示 */
#btn-endday.armed { background: #b3452e; border-color: #8d3322; color: #ffe9d8; }
#btn-endday.armed:hover:not(:disabled) { background: #c2502f; }
/* 顶栏兵力超编：红字脉冲 */
#st-army.overcap { color: #c0392b; font-weight: 700; animation: capPulse 1s ease-in-out infinite; }
@keyframes capPulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
/* 顶栏兵力增减：绿增红减 + 弹跳 */
#st-army.army-up, #st-army.army-down { display: inline-block; font-weight: 700; animation: armyPop .48s ease; }
#st-army.army-up { color: #3d8b4f; }
#st-army.army-down { color: #c0392b; }
@keyframes armyPop { 0% { transform: scale(1); } 30% { transform: scale(1.3); } 100% { transform: scale(1); } }
/* 右侧兵种数字增减：变色弹跳后渐隐回原色 */
.u-num.num-up, .u-num.num-down { display: inline-block; }
.u-num.num-up { animation: numUp .9s ease; }
.u-num.num-down { animation: numDown .9s ease; }
@keyframes numUp { 0% { color: #3d8b4f; transform: scale(1.4); } 55% { color: #3d8b4f; } 100% { color: inherit; transform: scale(1); } }
@keyframes numDown { 0% { color: #c0392b; transform: scale(1.4); } 55% { color: #c0392b; } 100% { color: inherit; transform: scale(1); } }
#btn-retreat { grid-column: 1 / -1; background: #5f8fa8; border-color: #4a7388; color: #f2f8fb; }
#edge-hint { margin-top: 6px; font-size: 12px; color: #b3602a; }

/* ---------- 军队卡片（元气骑士风） ---------- */
.unit-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ucard {
  background: #f7f9ff; border: 1px solid #c9d2ea; border-radius: 8px;
  padding: 5px 6px; text-align: center;
  transition: transform .12s, box-shadow .12s;
}
.ucard:hover { transform: translateY(-1px); box-shadow: 0 3px 8px rgba(90, 100, 140, .2); }
.ucard.empty { opacity: .45; }
.u-ico { display: flex; justify-content: center; }
.u-ico .unit { width: 22px; height: 30px; }
.u-name { font-size: 12px; color: #4a5068; }
.u-num { margin-left: 4px; color: #2c4f84; font-size: 14px; }
.u-role { font-size: 10px; color: #8a90a8; margin-top: 1px; }
.power-line { margin-top: 6px; font-size: 12px; }

.skill-block { margin-top: 6px; border-top: 1px dashed #dde2ee; padding-top: 5px; font-size: 12px; }
.sk-row { display: grid; grid-template-columns: auto auto 1fr; gap: 5px; align-items: center; margin-top: 3px; }
.sk-name { color: #4f5b80; font-weight: bold; }
.sk-pips { color: #d9a441; letter-spacing: 1px; }
.sk-add { padding: 0 6px; font-size: 11px; justify-self: start; }
.sk-desc { grid-column: 1 / -1; font-size: 10px; }

/* 底部中央：宝藏横条 */
#panel-bc {
  position: fixed; bottom: 40px; left: 346px; right: 310px; z-index: 20;
}
#treasure-panel { padding: 6px 10px; }
#treasure-panel h2 { margin-bottom: 4px; }

/* ---------- 宝藏卡片（稀有度色框，横向武器栏） ---------- */
.t-cards { display: flex; gap: 6px; overflow-x: auto; padding-top: 8px; }
.tcard {
  position: relative; background: #f8faff; flex: 0 0 auto; width: 92px;
  border: 1.5px solid #c9cede; border-radius: 8px;
  padding: 5px 4px 4px; text-align: center; cursor: pointer;
  transition: transform .12s, box-shadow .12s;
}
.tcard:hover { transform: translateY(-2px); }
.tcard.q-blue { border-color: #4a7adf; box-shadow: 0 0 6px rgba(74, 122, 223, .25); }
.tcard.q-blue:hover { box-shadow: 0 0 10px rgba(74, 122, 223, .45); }
.tcard.q-purple { border-color: #9a5fd0; box-shadow: 0 0 8px rgba(154, 95, 208, .35); }
.tcard.q-purple:hover { box-shadow: 0 0 12px rgba(154, 95, 208, .5); }
.tcard.passive { border-style: dashed; cursor: default; }
.tcard.passive:hover { transform: none; }
.t-ico { font-size: 18px; line-height: 1.2; }
.t-name { font-size: 11px; font-weight: bold; color: #4a5068; margin-top: 2px; }
.t-desc { font-size: 9px; color: #8a90a8; margin-top: 2px; line-height: 1.3; min-height: 24px; }
.t-tag {
  position: absolute; top: -7px; right: -5px;
  background: #eef1fa; border: 1px solid #c9cede; border-radius: 6px;
  font-size: 9px; padding: 0 4px; color: #6a7089;
}
.t-tag.use { background: #e8f0ff; border-color: #4a7adf; color: #3f6fb5; }
.tcard.q-purple .t-tag.use { background: #f3eaff; border-color: #9a5fd0; color: #8a4fb0; }
.q-white { color: #5a6070; }
.q-blue { color: #3f6fb5; }
.q-purple { color: #8a4fb0; }

#legend {
  position: fixed; bottom: 8px; left: 50%; transform: translateX(-50%); z-index: 20;
  font-size: 11px; color: #6a7089;
  display: flex; gap: 12px; flex-wrap: wrap;
  background: rgba(252, 253, 255, .85);
  border: 1px solid #dde2ee; border-radius: 8px;
  backdrop-filter: blur(6px);
  padding: 4px 12px;
}
.lg { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; }
.lg-player { background: #3f6fb5; }
.lg-enemy { background: #b03a2e; }
.lg-base { background: #82402f; }
.lg-res { background: #b3814d; }
.lg-safe { background: #84a562; }
.lg-retreat { background: #6f97b0; }

.hidden { display: none !important; }

#overlay {
  position: fixed; inset: 0;
  background: rgba(250, 245, 230, .8);
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
}
#overlay-box {
  background: #fffcf4; border: 2px solid #d9a441;
  border-radius: 12px; padding: 32px 48px; text-align: center;
  box-shadow: 0 10px 40px rgba(120, 95, 50, .3);
}
#overlay-box h2 { color: #8a6a2f; margin-bottom: 12px; font-size: 26px; font-family: "STKaiti", "KaiTi", serif; }
#overlay-box p { color: #7a6a48; margin-bottom: 20px; }
#overlay-box button { font-size: 14px; padding: 8px 24px; }

/* ---------- 下层暗色主题（body[data-layer="lower"]） ---------- */
body[data-layer="lower"] { color: #d8d2e8; }
body[data-layer="lower"] .panel,
body[data-layer="lower"] #topbar {
  background: rgba(22, 17, 38, .88);
  border-color: rgba(130, 105, 190, .35);
  box-shadow: 0 3px 14px rgba(0, 0, 0, .45);
}
body[data-layer="lower"] .panel h2 { color: #b3a4e0; border-bottom-color: rgba(130, 105, 190, .3); }
body[data-layer="lower"] #topbar h1 { color: #c9bdf0; }
body[data-layer="lower"] #topbar .sub,
body[data-layer="lower"] .dim { color: #9a90b8; }
body[data-layer="lower"] #objective { color: #a89ad0; }
body[data-layer="lower"] #st-ap { color: #7fa8e8; }
body[data-layer="lower"] #st-wood { color: #c9a877; }
body[data-layer="lower"] #log p { border-bottom-color: rgba(130, 105, 190, .18); }
body[data-layer="lower"] #log p.bad { color: #e07060; }
body[data-layer="lower"] #log p.good { color: #7fc47f; }
body[data-layer="lower"] #log p.day { color: #7fa8e8; }
body[data-layer="lower"] button {
  background: rgba(46, 36, 72, .92); color: #d8d2e8;
  border-color: rgba(130, 105, 190, .4);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .4);
}
body[data-layer="lower"] button:hover:not(:disabled) { background: rgba(62, 50, 96, .95); border-color: #9a7fd0; }
body[data-layer="lower"] button:disabled { opacity: .35; }
body[data-layer="lower"] button.armed { background: #6a4a80; border-color: #b38fd9; }
body[data-layer="lower"] #btn-endday { background: #3f6a3a; border-color: #54a04a; color: #d8f0d0; }
body[data-layer="lower"] #btn-endday:hover:not(:disabled) { background: #4a7c44; }
body[data-layer="lower"] .ucard { background: rgba(38, 30, 60, .9); border-color: rgba(120, 100, 180, .35); }
body[data-layer="lower"] .u-name { color: #cfc6ea; }
body[data-layer="lower"] .u-num { color: #9fc2e8; }
body[data-layer="lower"] .u-role { color: #9a90b8; }
body[data-layer="lower"] .skill-block { border-top-color: rgba(130, 105, 190, .3); }
body[data-layer="lower"] .sk-name { color: #b3a4e0; }
body[data-layer="lower"] #legend {
  background: rgba(22, 17, 38, .85); color: #b0a6cc;
  border-color: rgba(130, 105, 190, .3);
}
body[data-layer="lower"] #minimap {
  background: rgba(18, 14, 32, .88);
  border-color: rgba(130, 105, 190, .35);
}
body[data-layer="lower"] .tcard { background: rgba(38, 30, 60, .92); }
body[data-layer="lower"] .t-name { color: #cfc6ea; }
body[data-layer="lower"] .t-desc { color: #9a90b8; }
body[data-layer="lower"] .t-tag { background: rgba(46, 36, 72, .95); color: #b0a6cc; }
body[data-layer="lower"] .q-white { color: #b0a6cc; }

/* ---------- 进入界面 ---------- */
/* 登录框与主页同在一个 #start-screen（共用 #startc 画布背景），居中叠放、互斥显示；
 * 必须定位（relative）——画布为绝对定位，非定位元素会被它盖住。
 * 米色半透明卡片底：文字/输入框不再与画布背景互相干扰 */
#login-box {
  position: relative; text-align: center; width: 360px; box-sizing: border-box;
  padding: 26px 32px 20px;
  background: rgba(255, 250, 235, .92);
  border: 2px solid #d9a441; border-radius: 16px;
  box-shadow: 0 10px 36px rgba(120, 90, 30, .35), inset 0 1px 0 rgba(255, 252, 240, .9);
}
#login-box h1 {
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 52px; letter-spacing: 10px; text-indent: 10px;
  color: #6a4a1a; text-shadow: 0 1px 0 rgba(255,250,230,.9);
  margin-bottom: 2px;
}
#login-box .en { font-size: 14px; letter-spacing: 7px; text-indent: 7px; color: #8a6a2f; font-weight: bold; }
#login-box .tag { margin: 14px 0 18px; font-size: 12.5px; color: #7a6a48; }
#login-nick {
  width: 100%; box-sizing: border-box; padding: 12px 16px; font-size: 17px;
  text-align: center; border-radius: 10px;
  background: #fffdf4; border: 2px solid #c9a25e; color: #4a3a22;
  outline: none;
  box-shadow: inset 0 1px 3px rgba(140, 110, 50, .12);
}
#login-nick:focus { border-color: #b3814d; box-shadow: 0 0 0 3px rgba(201,162,94,.3); }
#login-pass {
  width: 100%; box-sizing: border-box; padding: 12px 16px; margin-top: 10px; font-size: 17px;
  text-align: center; border-radius: 10px;
  background: #fffdf4; border: 2px solid #c9a25e; color: #4a3a22;
  outline: none;
  box-shadow: inset 0 1px 3px rgba(140, 110, 50, .12);
}
#login-pass:focus { border-color: #b3814d; box-shadow: 0 0 0 3px rgba(201,162,94,.3); }
#login-go {
  width: 100%; margin-top: 14px; padding: 12px; font-size: 17px; letter-spacing: 6px; text-indent: 6px;
  font-family: "STKaiti", "KaiTi", serif; cursor: pointer;
  background: linear-gradient(180deg, #e8c07a, #c9974f);
  border: 2px solid #a8763a; border-radius: 10px; color: #4a2f10;
  box-shadow: 0 4px 16px rgba(140,100,40,.4), inset 0 1px 0 rgba(255,240,210,.6);
}
#login-go:hover:not(:disabled) { filter: brightness(1.06); }
#login-go:disabled { opacity: .6; cursor: wait; }
#login-msg { min-height: 18px; margin-top: 10px; font-size: 13px; color: #8a5a2a; }
.login-hint { margin-top: 12px; font-size: 12px; line-height: 1.8; color: #7a6a48; }
.login-off {
  display: inline-block; margin-top: 4px; font-size: 12px; color: #8a6a2f;
  text-decoration: underline; cursor: pointer;
}
.login-off:hover { color: #6a4a1a; }

/* 主页右上角：用户名徽标 + 退出 */
#user-badge {
  position: fixed; top: 14px; right: 18px; z-index: 5;
  padding: 5px 12px; border-radius: 14px; font-size: 12.5px;
  background: rgba(255,252,244,.85); border: 1.5px solid #c9a25e; color: #8a6a2f;
  box-shadow: 0 2px 10px rgba(120,90,30,.25);
}
#user-badge b { color: #6a4a1a; margin-right: 8px; }
#btn-setpass { color: #b3814d; text-decoration: underline; cursor: pointer; margin-right: 8px; }
#btn-setpass:hover { color: #8a5a2a; }
#btn-logout { color: #b3814d; text-decoration: underline; cursor: pointer; }
#btn-logout:hover { color: #8a5a2a; }

/* 设置密码/忘记密码弹窗（save.js svPrompt） */
#sv-modal {
  position: fixed; inset: 0; z-index: 260;
  background: rgba(30, 28, 40, .45);
  display: flex; align-items: center; justify-content: center;
}
#sv-box {
  width: 360px; background: #fffcf4; border: 2px solid #d9a441; border-radius: 12px;
  padding: 18px 24px; box-shadow: 0 10px 40px rgba(30, 20, 10, .45);
}
#sv-box h3 { color: #8a6a2f; font-family: "STKaiti", "KaiTi", serif; font-size: 17px; margin-bottom: 8px; }
#sv-box p { font-size: 13px; line-height: 1.7; color: #4a3a22; margin: 0 0 10px; }
#sv-box input {
  width: 100%; box-sizing: border-box; padding: 10px 14px; font-size: 15px; text-align: center;
  border-radius: 8px; border: 2px solid #c9a25e; background: #fffdf4; color: #4a3a22; outline: none;
}
#sv-box input:focus { border-color: #b3814d; box-shadow: 0 0 0 3px rgba(201,162,94,.25); }
#sv-btns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
#sv-btns button {
  padding: 6px 18px; border-radius: 8px; cursor: pointer; font-size: 13px;
  background: linear-gradient(180deg, #e8c07a, #c9974f); border: 1.5px solid #a8763a; color: #4a2f10; font-weight: bold;
}
#sv-btns button:hover { filter: brightness(1.06); }

#start-screen {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .5s;
}
#start-screen.fade { opacity: 0; pointer-events: none; }
#startc { position: absolute; inset: 0; width: 100%; height: 100%; }
#start-title { position: relative; text-align: center; }
#start-title h1 {
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 84px; letter-spacing: 18px; text-indent: 18px;
  color: #6a4a1a;
  text-shadow: 0 2px 0 rgba(255,250,230,.8), 0 6px 24px rgba(120,90,30,.35);
  margin-bottom: 6px;
}
#start-title .en {
  font-size: 20px; letter-spacing: 10px; text-indent: 10px;
  color: #8a6a2f; font-weight: bold;
  text-shadow: 0 1px 0 rgba(255,250,230,.7);
}
#start-title .tag {
  margin-top: 22px; font-size: 14px; color: #7a6a48;
  text-shadow: 0 1px 0 rgba(255,250,230,.6);
}
#btn-start {
  margin-top: 30px; font-size: 18px; padding: 12px 56px;
  font-family: "STKaiti", "KaiTi", serif; letter-spacing: 6px; text-indent: 6px;
  background: linear-gradient(180deg, #e8c07a, #c9974f);
  border: 2px solid #a8763a; border-radius: 10px; color: #4a2f10;
  box-shadow: 0 4px 16px rgba(140,100,40,.4), inset 0 1px 0 rgba(255,240,210,.6);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
#btn-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(140,100,40,.5), inset 0 1px 0 rgba(255,240,210,.6);
}
/* 继续游戏（云端存档入口，与开始突围同风格） */
#btn-continue {
  margin-top: 22px; font-size: 15px; padding: 9px 38px;
  font-family: "STKaiti", "KaiTi", serif; letter-spacing: 4px; text-indent: 4px;
  background: linear-gradient(180deg, #bcd8a8, #8fae6f);
  border: 2px solid #6f8f52; border-radius: 10px; color: #2f4a1a;
  box-shadow: 0 4px 14px rgba(90,120,60,.35), inset 0 1px 0 rgba(240,255,225,.6);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
#btn-continue:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(90,120,60,.45); }
#save-info { margin-top: 8px; font-size: 12px; color: #6f8f52; }

/* ---------- 主帅选择界面 ---------- */
#commander-screen {
  position: fixed; inset: 0; z-index: 190;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #f6efdd, #ece1c6);
  transition: opacity .4s;
}
#commander-screen.hidden { display: none; }
#commander-screen h2 {
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 40px; letter-spacing: 10px; text-indent: 10px; color: #6a4a1a;
  text-shadow: 0 2px 0 rgba(255,250,230,.8);
  margin-bottom: 6px;
}
#commander-screen .cmd-sub { font-size: 14px; color: #8a7a55; margin-bottom: 28px; }
#commander-cards { display: flex; gap: 22px; }
.cmd-card {
  width: 250px; padding: 20px 18px 16px;
  background: linear-gradient(180deg, #fffdf6, #f5ecd4);
  border: 2px solid #c9b083; border-radius: 14px;
  box-shadow: 0 4px 14px rgba(140,100,40,.18), inset 0 1px 0 rgba(255,255,255,.8);
  cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s;
}
.cmd-card:hover { transform: translateY(-4px); box-shadow: 0 10px 22px rgba(140,100,40,.28); }
.cmd-card.sel { border-color: var(--cc, #a8763a); box-shadow: 0 10px 24px rgba(140,100,40,.35), 0 0 0 3px color-mix(in srgb, var(--cc, #a8763a) 35%, transparent); }
.cmd-card .cmd-name {
  font-family: "STKaiti", "KaiTi", serif; font-size: 30px; letter-spacing: 6px;
  color: var(--cc, #4a2f10);
}
.cmd-card .cmd-title { font-size: 13px; color: #8a7a55; letter-spacing: 3px; margin: 2px 0 12px; }
.cmd-card .cmd-passive {
  font-size: 12.5px; line-height: 1.55; color: #5a4a2a;
  background: rgba(200,170,100,.16); border-radius: 8px; padding: 8px 10px; margin-bottom: 10px;
}
.cmd-card .cmd-line { font-size: 12.5px; color: #6a5a38; margin-top: 6px; }
.cmd-card .cmd-line b { color: var(--cc, #4a2f10); }
#btn-commander-confirm {
  margin-top: 30px; font-size: 18px; padding: 12px 56px;
  font-family: "STKaiti", "KaiTi", serif; letter-spacing: 6px; text-indent: 6px;
  background: linear-gradient(180deg, #e8c07a, #c9974f);
  border: 2px solid #a8763a; border-radius: 10px; color: #4a2f10;
  box-shadow: 0 4px 16px rgba(140,100,40,.4), inset 0 1px 0 rgba(255,240,210,.6);
  cursor: pointer; transition: transform .15s, box-shadow .15s;
}
#btn-commander-confirm:disabled { opacity: .45; cursor: not-allowed; }
#btn-commander-confirm:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(140,100,40,.5), inset 0 1px 0 rgba(255,240,210,.6);
}

/* ---------- 中层商店弹窗（元气骑士风） ---------- */
#shop-modal {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(60, 45, 25, .35);
  display: flex; align-items: center; justify-content: center;
}
#shop-modal.hidden { display: none; }
#shop-box {
  width: 720px; padding: 18px 22px 16px;
  background: linear-gradient(180deg, #f8f0da, #efdfba);
  border: 3px solid #a8763a; border-radius: 16px;
  box-shadow: 0 12px 40px rgba(60, 40, 10, .45), inset 0 1px 0 rgba(255,250,235,.8);
}
#shop-keeper { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
#shop-keeper-cv {
  background: linear-gradient(180deg, #e9d9b4, #dcc79a);
  border: 2px solid #c9a875; border-radius: 10px;
}
#shop-keeper-say {
  flex: 1; font-size: 14px; color: #6a4a20; font-style: italic;
  background: rgba(255, 252, 240, .75); border: 1px solid #d4ba8a;
  border-radius: 10px; padding: 10px 14px; position: relative;
}
#shop-keeper-say::before {
  content: ''; position: absolute; left: -7px; top: 50%; margin-top: -6px;
  border: 6px solid transparent; border-right-color: #d4ba8a; border-left: 0;
}
#shop-items { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; max-width: 1060px; }   /* 8 件商品两行排开 */
.shop-card {
  width: 158px; padding: 10px 10px 12px; text-align: center;
  background: linear-gradient(180deg, #fffaf0, #f3e5c4);
  border: 2px solid #c9a875; border-radius: 12px;
  box-shadow: 0 4px 10px rgba(120, 90, 40, .25);
  position: relative; transition: transform .12s;
}
.shop-card:not(.soldout):hover { transform: translateY(-3px); }
.shop-card canvas { display: block; margin: 0 auto 4px; }
.shop-card .si-name { font-weight: bold; font-size: 15px; color: #5a3a15; }
.shop-card .si-desc { font-size: 11px; color: #8a7450; line-height: 1.4; min-height: 30px; margin: 3px 0 6px; }
.shop-card .si-price {
  display: inline-block; font-size: 13px; font-weight: bold; color: #7a5a10;
  background: linear-gradient(180deg, #f2d98f, #e0bd60);
  border: 1px solid #b08d3a; border-radius: 8px; padding: 2px 10px; margin-bottom: 8px;
}
.shop-card .si-stock {
  position: absolute; top: 6px; right: 6px;
  font-size: 10px; color: #fff; background: #8a6a3f; border-radius: 6px; padding: 1px 6px;
}
.shop-card button {
  font-size: 13px; padding: 5px 18px; border-radius: 8px; cursor: pointer;
  background: linear-gradient(180deg, #9ec97a, #6fa04e);
  border: 1px solid #4e7a34; color: #203a10; font-weight: bold;
}
.shop-card button:disabled { filter: grayscale(.8); opacity: .5; cursor: not-allowed; }
.shop-card.soldout { filter: grayscale(.9); opacity: .65; }
.shop-card.soldout::after {
  content: '售罄'; position: absolute; top: 42%; left: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  font-size: 22px; font-weight: bold; color: #a03024;
  border: 3px solid #a03024; border-radius: 8px; padding: 2px 10px;
  background: rgba(255, 250, 240, .85);
}
/* 购买动画：卡片弹跳 + 金光脉冲 */
@keyframes shopBounce {
  0% { transform: scale(1); } 35% { transform: scale(1.08) rotate(-1.5deg); }
  70% { transform: scale(.96); } 100% { transform: scale(1); }
}
.shop-card.bought { animation: shopBounce .45s ease; }
@keyframes shopGlow {
  0% { box-shadow: 0 0 0 0 rgba(232, 190, 80, .9); }
  100% { box-shadow: 0 0 0 22px rgba(232, 190, 80, 0); }
}
.shop-card.bought { animation: shopBounce .45s ease, shopGlow .55s ease-out; }
/* 买不起：左右抖动 */
@keyframes shopShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); }
}
.shop-card.denied { animation: shopShake .3s ease; }
/* 从价签飘出的扣款/获得文字 */
.shop-fly {
  position: absolute; left: 50%; top: 38%; transform: translateX(-50%);
  font-size: 15px; font-weight: bold; color: #8a6a20; pointer-events: none;
  animation: shopFly .9s ease-out forwards; z-index: 5;
}
@keyframes shopFly {
  0% { opacity: 0; transform: translate(-50%, 6px) scale(.7); }
  25% { opacity: 1; transform: translate(-50%, -4px) scale(1.1); }
  100% { opacity: 0; transform: translate(-50%, -34px) scale(1); }
}
#shop-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
#shop-wood { font-size: 15px; font-weight: bold; color: #7a5a10; }
#shop-wood.pulse { animation: shopBounce .4s ease; display: inline-block; }

/* ---------- 推岛方向罗盘弹窗 ---------- */
#push-modal {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(60, 45, 25, .3);
  display: flex; align-items: center; justify-content: center;
}
#push-modal.hidden { display: none; }
#push-box {
  padding: 18px 22px 16px; text-align: center;
  background: linear-gradient(180deg, #f8f0da, #efdfba);
  border: 3px solid #a8763a; border-radius: 16px;
  box-shadow: 0 12px 40px rgba(60, 40, 10, .45), inset 0 1px 0 rgba(255,250,235,.8);
}
#push-box h3 { margin: 0 0 14px; color: #6a4a1a; font-size: 17px; letter-spacing: 2px; }
#push-compass {
  display: grid; grid-template-columns: repeat(3, 54px); gap: 8px;
  justify-content: center; margin-bottom: 14px;
}
#push-compass button {
  width: 54px; height: 54px; font-size: 22px; cursor: pointer;
  background: linear-gradient(180deg, #fdf6e3, #eedfb8);
  border: 2px solid #c9a875; border-radius: 10px; color: #4a5a78;
  transition: transform .12s, box-shadow .12s, background .12s;
}
#push-compass button:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #d8ecf4, #bcdcee);
  border-color: #2a9aa8; color: #1d7a88;
  box-shadow: 0 6px 14px rgba(42, 154, 168, .35);
}
#push-target {
  width: 54px; height: 54px; display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: #2a9aa8;
}
#btn-push-cancel {
  font-size: 14px; padding: 7px 26px; border-radius: 9px; cursor: pointer;
  background: linear-gradient(180deg, #e8c07a, #c9974f);
  border: 2px solid #a8763a; color: #4a2f10; font-weight: bold;
}
#btn-shop-close {
  font-size: 14px; padding: 7px 22px; border-radius: 9px; cursor: pointer;
  background: linear-gradient(180deg, #e8c07a, #c9974f);
  border: 2px solid #a8763a; color: #4a2f10; font-weight: bold;
}

/* ---------- 新手教程（压暗 + 金色高亮圈 + 气泡） ---------- */
#tut-overlay { position: fixed; inset: 0; z-index: 180; background: rgba(30, 28, 40, .42); cursor: pointer; }
#tut-spot {
  position: fixed; display: none; border: 2.5px solid #e8c07a; border-radius: 10px;
  box-shadow: 0 0 0 9999px rgba(30, 28, 40, .42), 0 0 18px rgba(232, 192, 122, .8);
  background: rgba(255, 250, 235, .06);
}
#tut-box {
  position: fixed; left: 50%; bottom: 15%; transform: translateX(-50%);
  max-width: 520px; min-width: 340px;
  background: #fffcf4; border: 2px solid #d9a441; border-radius: 12px;
  padding: 16px 20px 12px; box-shadow: 0 10px 40px rgba(30, 20, 10, .45);
  animation: tutIn .25s ease;
}
@keyframes tutIn { 0% { opacity: 0; transform: translate(-50%, 10px); } 100% { opacity: 1; transform: translate(-50%, 0); } }
#tut-text { font-size: 14px; line-height: 1.7; color: #4a3a22; }
#tut-foot { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; }
#tut-step { color: #a88f5f; }
#tut-hint { color: #b3814d; font-weight: bold; animation: capPulse 1.2s ease-in-out infinite; }

/* ---------- 帮助按钮 + 战场手册 ---------- */
#btn-help {
  margin-left: 8px; width: 24px; height: 24px; border-radius: 50%;
  font-family: "Segoe UI", Arial, sans-serif; font-size: 14px; font-weight: bold;
  padding: 0 0 1px 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
  background: #f3e8cf; border: 1.5px solid #c9a25e; color: #8a6a2f;
}
#btn-help:hover { background: #eadfc2; }
#help-modal {
  position: fixed; inset: 0; z-index: 185; background: rgba(60, 45, 25, .4);
  display: flex; align-items: center; justify-content: center;
}
#help-box {
  width: 560px; max-height: 82vh; overflow-y: auto;
  background: #fffcf4; border: 2px solid #d9a441; border-radius: 12px;
  padding: 20px 26px; box-shadow: 0 10px 40px rgba(30, 20, 10, .45);
}
#help-box h2 { color: #8a6a2f; font-family: "STKaiti", "KaiTi", serif; margin-bottom: 8px; }
#help-box h3 { color: #a8763a; font-size: 14px; margin: 12px 0 3px; }
#help-box p { font-size: 13px; line-height: 1.7; color: #4a3a22; margin: 0; }
#help-foot { display: flex; justify-content: space-between; margin-top: 16px; }
#help-foot button { padding: 6px 18px; border-radius: 8px; cursor: pointer; font-size: 13px; }
#btn-scen-menu { background: #f3e8cf; border: 1.5px solid #c9a25e; color: #8a6a2f; }
#btn-help-close { background: linear-gradient(180deg, #e8c07a, #c9974f); border: 2px solid #a8763a; color: #4a2f10; font-weight: bold; }
body[data-layer="lower"] #help-box { background: #241d38; border-color: #7a5fb0; }
body[data-layer="lower"] #help-box h2 { color: #cfc6ea; }
body[data-layer="lower"] #help-box h3 { color: #b38fd9; }
body[data-layer="lower"] #help-box p { color: #b0a6cc; }
body[data-layer="lower"] #tut-box { background: #241d38; border-color: #7a5fb0; }
body[data-layer="lower"] #tut-text { color: #cfc6ea; }

/* 首页新手引导开关 */
#start-tut { display: block; margin-top: 14px; font-size: 13px; color: #e8d8b0; cursor: pointer; text-shadow: 0 1px 3px rgba(40, 25, 10, .5); }
#start-tut input { margin-right: 5px; vertical-align: -2px; accent-color: #c9974f; cursor: pointer; }

/* ---------- 教学演练 ---------- */
#scen-panel {
  position: fixed; top: 296px; left: 12px; z-index: 22; max-width: 300px;
  background: rgba(255, 252, 244, .88); border: 1.5px solid #d9a441; border-radius: 10px;
  padding: 6px 12px; font-size: 12px; color: #4a3a22;
}
#scen-panel b { color: #8a6a2f; font-size: 12px; }
#scen-panel .scen-prog { color: #a08a5a; font-size: 11px; margin-left: 8px; }
#scen-panel .scen-cur { margin-top: 2px; font-size: 12px; color: #8a6a2f; }
.scen-obj { margin-top: 4px; line-height: 1.5; }
.scen-obj.done { color: #3d8b4f; }
#scen-modal {
  position: fixed; inset: 0; z-index: 210; background: rgba(30, 28, 40, .45);
  display: flex; align-items: center; justify-content: center;
}
#scen-box {
  width: 440px; max-height: 82vh; overflow-y: auto;
  background: #fffcf4; border: 2px solid #d9a441; border-radius: 12px;
  padding: 20px 24px; box-shadow: 0 10px 40px rgba(30, 20, 10, .45);
}
#scen-box h3 { color: #8a6a2f; font-family: "STKaiti", "KaiTi", serif; font-size: 18px; margin-bottom: 8px; }
#scen-box p { font-size: 13.5px; line-height: 1.8; color: #4a3a22; margin: 0 0 14px; }
.scen-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px dashed #e0d2ae; font-size: 13.5px; color: #4a3a22; }
.scen-row button, #scen-btns button {
  padding: 5px 16px; border-radius: 8px; cursor: pointer; font-size: 13px;
  background: linear-gradient(180deg, #e8c07a, #c9974f); border: 1.5px solid #a8763a; color: #4a2f10; font-weight: bold;
}
#scen-btns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }

/* 途中事件弹卡：金边卡片 + 图标 + 结果 */
#travel-event {
  position: fixed; inset: 0; z-index: 190; background: rgba(30, 28, 40, .35);
  display: flex; align-items: center; justify-content: center;
}
#tev-box {
  width: 340px; background: #fffcf4; border: 2px solid #d9a441; border-radius: 12px;
  padding: 16px 22px; text-align: center; box-shadow: 0 10px 40px rgba(30, 20, 10, .45);
  animation: tevpop .28s ease-out;
}
@keyframes tevpop { from { transform: scale(.9); } to { transform: scale(1); } }   /* 不动透明度：动画被截停也不影响可读性 */
#tev-box h3 { color: #8a6a2f; font-family: "STKaiti", "KaiTi", serif; font-size: 17px; margin: 6px 0 8px; }
#tev-box p { font-size: 13.5px; line-height: 1.8; color: #4a3a22; margin: 0 0 12px; }
#tev-btns button {
  padding: 5px 22px; border-radius: 8px; cursor: pointer; font-size: 13px;
  background: linear-gradient(180deg, #e8c07a, #c9974f); border: 1.5px solid #a8763a; color: #4a2f10; font-weight: bold;
}
#tev-btns button:hover { filter: brightness(1.07); }
#tev-btns button.tev-alt { background: #f0e6d0; border-color: #b09a70; color: #6a5638; font-weight: normal; }

/* 行囊页：宝藏图鉴 + 资源一览 */
#inv-modal {
  position: fixed; inset: 0; z-index: 205; background: rgba(30, 28, 40, .45);
  display: flex; align-items: center; justify-content: center;
}
#inv-box {
  width: 620px; max-height: 80vh; overflow-y: auto;
  background: #fffcf4; border: 2px solid #d9a441; border-radius: 12px;
  padding: 18px 24px; box-shadow: 0 10px 40px rgba(30, 20, 10, .45);
}
#inv-box h3 { color: #8a6a2f; font-family: "STKaiti", "KaiTi", serif; font-size: 18px; margin: 0 0 10px; }
.inv-sec { font-size: 13px; font-weight: bold; color: #8a6a2f; border-bottom: 1px dashed #e0d2ae; padding-bottom: 3px; margin: 12px 0 8px; }
.inv-resrow { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: #4a3a22; }
.inv-res b { color: #8a6a2f; }
.inv-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.inv-cell {
  border: 2px solid #c9c2b0; border-radius: 10px; padding: 8px 4px 6px;
  text-align: center; background: linear-gradient(180deg, #fffaf0, #f3e5c4);
  cursor: pointer; transition: transform .12s;
}
.inv-cell:hover { transform: translateY(-2px); }
.inv-cell.q-blue { border-color: #4a7adf; box-shadow: 0 0 6px rgba(74, 122, 223, .25); }
.inv-cell.q-purple { border-color: #9a5fd0; box-shadow: 0 0 8px rgba(154, 95, 208, .35); }
.inv-cell.passive { border-style: dashed; cursor: default; }
.inv-cell.passive:hover { transform: none; }
.inv-cell .t-ico { font-size: 26px; line-height: 1.2; }
.inv-cell .t-name { font-size: 11px; color: #5a3a15; margin-top: 2px; }
.inv-cell .t-tag { display: inline-block; font-size: 10px; color: #8a7450; border: 1px solid #c9b98f; border-radius: 5px; padding: 0 6px; margin-top: 3px; }
.inv-cell .t-use {
  display: inline-block; font-size: 10px; margin-top: 3px; padding: 1px 10px;
  border: 1px solid #4a7adf; border-radius: 5px; background: #e8f0ff; color: #3f6fb5;
}
.inv-cell:hover .t-use { background: #d6e6ff; }
.inv-cell.q-purple .t-use { border-color: #9a5fd0; background: #f3eaff; color: #8a4fb0; }
.inv-cell.q-purple:hover .t-use { background: #eadcfb; }

/* 悬停提示：地图图标功能说明（跟随光标） */
#map-tip {
  position: fixed; z-index: 230; width: 235px; pointer-events: none;
  background: rgba(255, 252, 244, .96); border: 1.5px solid #d9a441; border-radius: 8px;
  padding: 7px 11px; font-size: 12px; line-height: 1.7; color: #4a3a22;
  box-shadow: 0 4px 16px rgba(40, 30, 10, .3);
}
body[data-layer="lower"] #map-tip { background: rgba(36, 29, 56, .94); border-color: #7a5fb0; color: #cfc6ea; }
#tev-btns { display: flex; justify-content: center; gap: 10px; }
#tev-btns button + button { margin-left: 0; }
body[data-layer="lower"] #scen-panel { background: rgba(36, 29, 56, .92); border-color: #7a5fb0; color: #b0a6cc; }
body[data-layer="lower"] #scen-panel b { color: #cfc6ea; }

/* 教程气泡：跳过引导 */
#tut-skip { color: #b0a48a; font-size: 11px; text-decoration: underline; cursor: pointer; }
#tut-skip:hover { color: #8a6a2f; }

/* 教学引导：当前目标按钮的金色脉冲描边 */
button.scen-guided {
  outline: 2.5px solid #d9a441; outline-offset: 2px;
  animation: guidePulse 1.1s ease-in-out infinite;
}
/* 教学引导：非按钮目标（顶栏信息位、小地图、目标面板等）同样金圈脉冲——
 * 否则讲解顶栏（如兵力栏）时目标毫无高亮，金手指看起来像是悬在蒙版里 */
#topbar .scen-guided, #minimap.scen-guided, #goal-panel.scen-guided, #scen-panel.scen-guided {
  outline: 2px solid #d9a441; outline-offset: 3px; border-radius: 6px;
  animation: guidePulse 1.1s ease-in-out infinite;
}
@keyframes guidePulse {
  0%, 100% { outline-color: rgba(217,164,65,.45); }
  50% { outline-color: rgba(217,164,65,1); box-shadow: 0 0 12px rgba(217,164,65,.55); }
}
.scen-obj.cur { color: #b3814d; font-weight: bold; }

/* 教学引导：行动栏金手指（指尖指向目标按钮，不拦截点击） */
#scen-hand {
  position: fixed; z-index: 177; pointer-events: none; font-size: 32px;   /* 高于作用卡蒙层 175 */
  transform: translateX(-50%);
  animation: scenHandBob 1.1s ease-in-out infinite;
  filter: drop-shadow(0 2px 3px rgba(120, 85, 20, .45));
}
@keyframes scenHandBob { 0%, 100% { margin-top: 0; } 50% { margin-top: 7px; } }

/* 教学作用卡（两拍式第一拍：先讲作用） */
#scen-why {
  position: fixed; left: 50%; bottom: 22%; transform: translateX(-50%);
  max-width: 460px; z-index: 176;
  background: #fffcf4; border: 2px solid #d9a441; border-radius: 12px;
  padding: 14px 18px 12px; box-shadow: 0 10px 40px rgba(30, 20, 10, .45);
  animation: tutIn .25s ease;
}
#scen-why-text { font-size: 13.5px; line-height: 1.75; color: #4a3a22; }
/* 讲解卡页标题（开篇等）：居中放大 */
#scen-why-text .scen-page-title {
  text-align: center; font-size: 19px; font-weight: bold; letter-spacing: 3px;
  font-family: "STKaiti", "KaiTi", serif; color: #8a6a2f;
  margin: 2px 0 12px;
}
body[data-layer="lower"] #scen-why-text .scen-page-title { color: #cfc6ea; }
#scen-why-ok {
  display: block; margin: 10px 0 0 auto; padding: 5px 16px; border-radius: 8px; cursor: pointer;
  font-size: 13px; font-weight: bold;
  background: linear-gradient(180deg, #e8c07a, #c9974f); border: 1.5px solid #a8763a; color: #4a2f10;
}
body[data-layer="lower"] #scen-why { background: #241d38; border-color: #7a5fb0; }
body[data-layer="lower"] #scen-why-text { color: #cfc6ea; }

/* 实战「当前目标」面板 */
#goal-panel {
  position: fixed; top: 296px; left: 12px; z-index: 22; width: 210px;
  background: rgba(255, 252, 244, .92); border: 1.5px solid #7ba05b; border-radius: 10px;
  padding: 8px 12px; font-size: 12px; color: #4a3a22;
}
#goal-panel b { color: #5f8145; font-size: 12.5px; }
#goal-panel div { margin-top: 3px; line-height: 1.55; }
.goal-arr { color: #d9a441; }

/* 教学弹窗：跳过入口（低调小字） */
#scen-btns button.scen-skip {
  background: none; border: none; color: #a88f5f; font-weight: normal;
  font-size: 12px; text-decoration: underline; padding: 5px 8px;
}
#scen-btns button.scen-skip:hover { color: #8a6a2f; }

/* 教学弹窗：跳过入口（低调小字） */
#scen-btns button.scen-skip {
  background: none; border: none; color: #a88f5f; font-weight: normal;
  font-size: 12px; text-decoration: underline; padding: 5px 8px;
}
#scen-btns button.scen-skip:hover { color: #8a6a2f; }

/* 顶栏「跳过教学」小按钮 */
#btn-skiptut {
  margin-left: 8px; padding: 1px 9px; border-radius: 10px; cursor: pointer;
  font-size: 11px; background: none; border: 1.2px solid #c9b58a; color: #a88f5f;
}
#btn-skiptut:hover { border-color: #b3814d; color: #8a6a2f; }
body[data-layer="lower"] #btn-skiptut { border-color: #6a5a95; color: #9a8cc0; }

/* 作用卡蒙层：压暗并吃掉所有点击（第一拍） */
#scen-why-dim { position: fixed; inset: 0; z-index: 175; background: rgba(30, 28, 40, .42); }
/* 作用卡蒙层挖洞点：目标那一块蒙版直接去掉（透明中心 + 9999px 扩散阴影充当其余暗幕） */
#scen-why-spot {
  position: fixed; z-index: 176; pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(30, 28, 40, .42);
}
/* 讲解卡必须高于挖洞点：挖洞点后创建、同级 z-index 会压在卡上，扩散阴影把整张卡蒙灰 */
#scen-why { z-index: 178; }

/* 上/下层自由视口：抓手光标 */
body[data-layer="upper"] #mapc, body[data-layer="lower"] #mapc { cursor: grab; }
