/* ==========================================================================
   长征 · 现场  —— 思想道德与法治智教课堂视觉系统 v3
   设计语言：史诗电影感（深色舞台） × 红色档案（宣纸 / 朱砂 / 鎏金）
   ========================================================================== */
:root {
  --ink: #0a0d11;
  --ink-2: #11151b;
  --panel: rgba(17, 16, 15, 0.86);
  --panel-solid: #15130f;
  --panel-2: rgba(28, 25, 21, 0.92);
  --line: rgba(255, 236, 200, 0.10);
  --line-2: rgba(255, 236, 200, 0.18);

  --red: #c62a1f;
  --red-hi: #e8452f;
  --red-deep: #7a130d;
  --gold: #d6a344;
  --gold-hi: #f2d38b;
  --gold-deep: #8a6420;
  --jade: #2f9e72;
  --jade-hi: #7fe0b6;
  --wrong: #e0574a;

  --text: #ede6d8;
  --text-2: #c9bfad;
  --muted: #8f8676;

  --paper: #efe4cb;
  --paper-2: #e6d7b6;
  --paper-ink: #2b1d14;
  --paper-red: #a8231a;

  --serif: "Noto Serif SC", "Source Han Serif SC", "Source Han Serif CN", "Songti SC", "STZhongsong", "STSong", "SimSun", serif;
  --sans: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  --kai: "KaiTi", "STKaiti", "Kaiti SC", "楷体", serif;
  --mono: Consolas, "JetBrains Mono", "Cascadia Mono", "Courier New", monospace;
  --math: "Cambria Math", "Times New Roman", Georgia, serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --noise-paper: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .42  0 0 0 0 .3  0 0 0 0 .16  0 0 0 .14 0'/></filter><rect width='100%' height='100%' filter='url(%23p)'/></svg>");
  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button { font-family: inherit; cursor: pointer; color: inherit; }
img.ico { display: block; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; }

/* 深色细滚动条 */
* { scrollbar-width: thin; scrollbar-color: rgba(214, 163, 68, .35) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: rgba(214, 163, 68, .28); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background-color: rgba(214, 163, 68, .5); }

/* ================= 舞台 ================= */
#app { position: fixed; inset: 0; }

#stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: radial-gradient(120% 90% at 55% 45%, #131a22 0%, #0a0d11 70%);
}
#map, #gl, #labels { position: absolute; inset: 0; width: 100%; height: 100%; }
#gl { display: block; touch-action: none; cursor: grab; }
#gl:active { cursor: grabbing; }
#labels { pointer-events: none; overflow: hidden; }

.vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(130% 100% at 50% 50%, transparent 55%, rgba(5, 7, 10, .72) 100%),
    linear-gradient(180deg, rgba(8, 10, 13, .78) 0%, transparent 16%, transparent 80%, rgba(8, 10, 13, .9) 100%);
}
.grain {
  position: absolute; inset: -50%; pointer-events: none;
  background-image: var(--noise);
  opacity: .07;
  mix-blend-mode: overlay;
  z-index: 40;
}

/* ================= 顶部 HUD ================= */
.hud {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  z-index: 20;
  pointer-events: none;
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.hud > * { pointer-events: auto; }
body.is-intro .hud, body.is-cine .hud { opacity: 0; transform: translateY(-12px); pointer-events: none; }
body.is-intro .hud > *, body.is-cine .hud > * { pointer-events: none; }

.brand { display: flex; align-items: center; gap: 12px; }
.seal {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 6px;
  background: linear-gradient(145deg, #d1352a, #8e1810);
  box-shadow: inset 0 0 0 1.5px rgba(255, 220, 160, .55), 0 6px 18px rgba(198, 42, 31, .35);
  font-family: var(--serif);
  font-weight: 900;
  font-size: 13.5px;
  line-height: 1.05;
  color: #fff1d2;
  text-align: center;
  letter-spacing: 1px;
}
.brand h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 3px;
  color: #fbf3e2;
}
.brand p { margin: 2px 0 0; font-size: 11.5px; letter-spacing: 1px; color: var(--muted); }

.hud-right { display: flex; align-items: center; gap: 8px; }

.tally {
  display: flex; align-items: center; gap: 2px;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(14, 13, 12, .72);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.tally-item {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px 2px 4px;
  font-size: 13px; font-weight: 700;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.tally-item .ico-wrap { width: 22px; height: 22px; }
.tally-item b { color: #fff3d8; font-weight: 800; }
.tally-item small { color: var(--muted); font-weight: 600; }
.tally-sep { width: 1px; height: 18px; background: var(--line-2); margin: 0 2px; }

.hud-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px;
  padding: 0 12px 0 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(14, 13, 12, .72);
  backdrop-filter: blur(8px);
  font-size: 13px; font-weight: 600;
  color: var(--text-2);
  transition: border-color .2s, background .2s, color .2s;
}
.hud-btn .ico-wrap { width: 22px; height: 22px; }
.hud-btn em {
  font-style: normal;
  min-width: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(214, 163, 68, .18);
  color: var(--gold-hi);
  font-size: 11.5px; font-weight: 800;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.hud-btn em.warn { background: rgba(224, 87, 74, .22); color: #ffaea4; }
.hud-btn:hover { border-color: rgba(214, 163, 68, .5); color: #fff3d8; }

.btn-reunion {
  border-color: rgba(242, 211, 139, .7);
  background: linear-gradient(135deg, rgba(198, 42, 31, .85), rgba(160, 98, 22, .85));
  color: #fff6e0;
  box-shadow: 0 0 24px rgba(214, 163, 68, .35);
}

.user-chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px;
  padding: 0 12px 0 4px;
  border-radius: 999px;
  border: 1px solid rgba(214, 163, 68, .38);
  background: rgba(14, 13, 12, .78);
  font-size: 13px; font-weight: 700;
  color: #fff3d8;
}
.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #c62a1f, #7a130d);
  font-family: var(--serif); font-weight: 900; font-size: 13px;
  color: #ffe9bf;
  box-shadow: inset 0 0 0 1px rgba(255, 220, 160, .5);
}
.sync-dot { width: 7px; height: 7px; border-radius: 50%; background: #c2903c; box-shadow: 0 0 0 3px rgba(194, 144, 60, .18); }
.sync-dot.online { background: #43d394; box-shadow: 0 0 0 3px rgba(67, 211, 148, .18); }

/* ================= 开场片头 ================= */
.intro {
  position: absolute; inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  padding: 0 7vw;
  background:
    linear-gradient(90deg, rgba(7, 9, 12, .94) 0%, rgba(7, 9, 12, .78) 34%, rgba(7, 9, 12, .12) 62%, transparent 80%);
  transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out);
}
.intro.leaving { opacity: 0; transform: translateX(-40px); pointer-events: none; }
.intro-inner { max-width: 640px; }

.intro-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 22px;
  font-size: 13px; letter-spacing: 4px;
  color: var(--gold);
  opacity: 0; animation: rise .9s .2s var(--ease-out) forwards;
}
.intro-kicker::before { content: ""; width: 34px; height: 1px; background: var(--gold); }

.intro-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(56px, 7.4vw, 104px);
  line-height: 1;
  letter-spacing: .08em;
  color: #fbf2df;
  text-shadow: 0 8px 40px rgba(0, 0, 0, .6);
  display: flex; align-items: baseline; gap: .12em;
}
.intro-title span { white-space: nowrap; opacity: 0; animation: rise 1.1s var(--ease-out) forwards; }
.intro-title span:nth-child(1) { animation-delay: .35s; }
.intro-title span:nth-child(2) { animation-delay: .55s; color: var(--red-hi); }
.intro-title span:nth-child(3) {
  animation-delay: .75s;
  background: linear-gradient(180deg, #ffe7a6 0%, #d6a344 60%, #9c6f22 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.intro-poem {
  margin: 28px 0 0;
  font-family: var(--kai);
  font-size: clamp(20px, 1.8vw, 26px);
  letter-spacing: .35em;
  color: var(--text-2);
  display: flex; flex-wrap: wrap; gap: .2em 1.2em;
}
.intro-poem span { opacity: 0; animation: ink 1.6s var(--ease-out) forwards; }
.intro-poem span:nth-child(1) { animation-delay: 1.05s; }
.intro-poem span:nth-child(2) { animation-delay: 1.55s; }

.intro-facts {
  list-style: none;
  display: flex; gap: 0;
  margin: 40px 0 0; padding: 0;
  opacity: 0; animation: rise 1s 1.9s var(--ease-out) forwards;
}
.intro-facts li {
  padding: 0 26px;
  border-left: 1px solid var(--line-2);
  display: flex; flex-direction: column; gap: 4px;
}
.intro-facts li:first-child { padding-left: 0; border-left: none; }
.intro-facts b { font-family: var(--serif); font-size: 34px; font-weight: 900; color: #fbf2df; line-height: 1; white-space: nowrap; }
.intro-facts span { font-size: 12px; letter-spacing: 2px; color: var(--muted); }

.intro-cta-row {
  display: flex; align-items: center; gap: 22px;
  margin-top: 46px;
  opacity: 0; animation: rise 1s 2.2s var(--ease-out) forwards;
}
.btn-depart {
  position: relative;
  display: inline-flex; align-items: center; gap: 14px;
  height: 58px;
  padding: 0 30px 0 10px;
  border: none;
  border-radius: 4px;
  background: linear-gradient(135deg, #d0342a 0%, #a01d14 100%);
  box-shadow: 0 14px 40px rgba(198, 42, 31, .42), inset 0 0 0 1px rgba(255, 210, 150, .35);
  font-family: var(--serif);
  font-size: 19px; font-weight: 900; letter-spacing: 6px;
  color: #fff3dc;
  transition: transform .25s var(--ease-out), box-shadow .25s;
}
.btn-depart::after {
  content: ""; position: absolute; inset: 0; border-radius: 4px;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 240, 210, .28) 50%, transparent 70%);
  background-size: 250% 100%;
  animation: sheen 3.6s 3s infinite;
}
.btn-depart:hover { transform: translateY(-2px); box-shadow: 0 18px 48px rgba(198, 42, 31, .55), inset 0 0 0 1px rgba(255, 210, 150, .5); }
.btn-depart .flag-ico { width: 40px; height: 40px; padding: 4px; border-radius: 3px; background: rgba(0, 0, 0, .18); }
.intro-user { margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.intro-user b { color: var(--gold-hi); font-weight: 700; }

.intro-foot {
  position: absolute; left: 7vw; bottom: 34px;
  font-size: 11.5px; letter-spacing: 2px; color: rgba(201, 191, 173, .45);
}

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes ink { from { opacity: 0; filter: blur(6px); letter-spacing: .6em; } to { opacity: 1; filter: blur(0); } }
@keyframes sheen { 0% { background-position: 150% 0; } 30%, 100% { background-position: -50% 0; } }

/* ================= 电影遮幅 / 行军字幕 ================= */
.cine { position: absolute; inset: 0; z-index: 28; pointer-events: none; }
.cine-bar {
  position: absolute; left: 0; right: 0; height: 11vh;
  background: #050608;
  transition: transform .9s var(--ease-io);
}
.cine-bar.top { top: 0; transform: translateY(-100%); }
.cine-bar.bottom { bottom: 0; transform: translateY(100%); }
.cine.on .cine-bar { transform: none; }
.cine.on { pointer-events: auto; cursor: pointer; }

.cine-caption {
  position: absolute; left: 6vw; bottom: calc(11vh + 34px);
  opacity: 0; transform: translateY(16px);
  transition: opacity .35s, transform .35s;
}
.cine.on .cine-caption { opacity: 1; transform: none; transition: opacity .8s .35s var(--ease-out), transform .8s .35s var(--ease-out); }
.cine-kicker { font-size: 12.5px; letter-spacing: 4px; color: var(--gold); }
.cine-title {
  margin: 8px 0 6px;
  font-family: var(--serif);
  font-size: clamp(30px, 3.6vw, 52px);
  font-weight: 900; letter-spacing: .12em;
  color: #fbf2df;
  text-shadow: 0 6px 30px rgba(0, 0, 0, .7);
}
.cine-title .arrow { color: var(--red-hi); margin: 0 .3em; font-weight: 400; }
.cine-sub { margin: 0; font-size: 14px; letter-spacing: 2px; color: var(--text-2); }

.cine-li {
  white-space: nowrap;
  position: absolute; right: 6vw; bottom: calc(11vh + 34px);
  text-align: right;
  opacity: 0; transition: opacity .3s;
}
.cine.on .cine-li { opacity: 1; transition: opacity .8s .5s; }
.cine-li > span { display: block; font-size: 12px; letter-spacing: 4px; color: var(--muted); }
.cine-li b {
  display: block;
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 900;
  color: var(--gold-hi);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.cine-li b small { font-size: .4em; color: var(--text-2); margin-left: 6px; letter-spacing: 2px; }

.cine-skip {
  position: absolute; left: 50%; bottom: calc(11vh * .5); transform: translate(-50%, 50%);
  font-size: 11.5px; letter-spacing: 3px; color: rgba(201, 191, 173, .5);
  opacity: 0; transition: opacity .2s;
}
.cine.on .cine-skip { opacity: 1; transition: opacity .6s 1s; }

/* 抵达印章 */
.arrive {
  position: absolute; left: 50%; top: 30%;
  transform: translate(-50%, -50%);
  z-index: 29;
  pointer-events: none;
  text-align: center;
  opacity: 0;
}
.arrive.on { animation: arrive 2.3s var(--ease-out) forwards; }
.arrive-frame {
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 18px 40px 20px;
  border: 2px solid rgba(232, 69, 47, .85);
  outline: 1px solid rgba(232, 69, 47, .45);
  outline-offset: 5px;
  background: rgba(10, 8, 7, .55);
  backdrop-filter: blur(4px);
}
.arrive-kicker { font-size: 12.5px; letter-spacing: 8px; color: var(--red-hi); font-weight: 700; }
.arrive-name { font-family: var(--serif); font-size: 46px; font-weight: 900; letter-spacing: .25em; color: #fbf2df; margin-right: -.25em; }
.arrive-date { font-size: 13px; letter-spacing: 3px; color: var(--gold); }
@keyframes arrive {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); filter: blur(6px); }
  14% { opacity: 1; transform: translate(-50%, -50%) scale(.97); filter: blur(0); }
  22% { transform: translate(-50%, -50%) scale(1); }
  78% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -54%) scale(1); }
}

/* ================= 地图控制 ================= */
.map-controls {
  position: absolute; top: 76px; left: 22px;
  z-index: 15;
  display: flex; flex-direction: column; gap: 8px;
  transition: opacity .5s;
}
body.is-intro .map-controls, body.is-cine .map-controls { opacity: 0; pointer-events: none; }
.ctrl-group {
  display: inline-flex; gap: 2px;
  padding: 3px;
  border-radius: 8px;
  background: rgba(14, 13, 12, .74);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  width: max-content;
}
.ctrl-btn, .filter-pill {
  height: 28px;
  padding: 0 11px;
  border: none; border-radius: 6px;
  background: transparent;
  font-size: 12.5px; font-weight: 600;
  color: var(--muted);
  transition: background .2s, color .2s;
}
.ctrl-btn:hover, .filter-pill:hover { color: var(--text); }
.ctrl-btn.active, .filter-pill.active { background: rgba(214, 163, 68, .18); color: var(--gold-hi); }
.ctrl-hint { font-size: 11px; letter-spacing: 1px; color: rgba(143, 134, 118, .75); padding-left: 4px; }

/* ================= 3D 地标（分级显示） ================= */
.mk {
  position: absolute; left: 0; top: 0;
  pointer-events: auto;
  display: flex; align-items: center; gap: 8px;
  padding: 0; border: none; background: none;
  will-change: transform;
  z-index: 3;
}
.mk:hover, .mk.is-selected, .mk.st-frontier { z-index: 9; }
.mk-pin {
  position: relative;
  flex-shrink: 0;
  display: grid; place-items: center;
}
.mk-label {
  display: none;
  flex-direction: column;
  padding: 5px 11px 6px;
  border-radius: 4px;
  background: rgba(14, 12, 10, .86);
  border: 1px solid var(--line-2);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .5);
  text-align: left; white-space: nowrap; line-height: 1.25;
  backdrop-filter: blur(4px);
}
.mk.expanded .mk-label, .mk:hover .mk-label { display: flex; }
.mk-label b { font-family: var(--serif); font-size: 13.5px; font-weight: 900; letter-spacing: 1.5px; color: #fbf2df; }
.mk-label small { font-size: 11px; color: var(--text-2); margin-top: 1px; }

/* 主线 */
.mk-main .mk-pin {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #3b352d, #17140f);
  border: 1.5px solid rgba(214, 163, 68, .55);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .6);
}
.pin-num { font-family: var(--serif); font-weight: 900; font-size: 14px; color: var(--gold-hi); }
.pin-medal { position: absolute; right: -9px; top: -10px; width: 22px; height: 22px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .6)); }
.mk-main.st-locked .mk-pin { border-color: rgba(143, 134, 118, .35); background: rgba(16, 15, 13, .85); }
.mk-main.st-locked .pin-num { color: #6f685c; }
.mk-main.st-locked .mk-label { opacity: .78; }
.mk-main.st-passed .mk-pin { border-color: var(--gold); background: radial-gradient(circle at 35% 30%, #5a4520, #1f170c); }
.mk-main.st-frontier .mk-pin {
  width: 36px; height: 36px;
  border: 2px solid #ffd59a;
  background: radial-gradient(circle at 35% 30%, #ec4a35, #8a170f);
  box-shadow: 0 0 0 4px rgba(232, 69, 47, .25), 0 0 26px rgba(232, 69, 47, .7);
}
.mk-main.st-frontier .pin-num { color: #fff3dc; font-size: 15px; }
.mk-main.st-frontier .mk-pin::before, .mk-main.st-frontier .mk-pin::after {
  content: ""; position: absolute; inset: -2px; border-radius: 50%;
  border: 2px solid rgba(232, 69, 47, .8);
  animation: ripple 2.2s infinite var(--ease-out);
}
.mk-main.st-frontier .mk-pin::after { animation-delay: 1.1s; }
.mk-main.st-frontier .mk-label { border-color: rgba(232, 69, 47, .65); background: linear-gradient(135deg, rgba(120, 22, 14, .92), rgba(20, 12, 10, .92)); }
.mk.is-selected .mk-label { border-color: var(--gold); }
.mk-main.is-selected .mk-pin { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
@keyframes ripple { from { transform: scale(1); opacity: .9; } to { transform: scale(2.3); opacity: 0; } }

/* 支线 */
.mk-side .mk-pin { width: 26px; height: 26px; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .65)); }
.mk-side.st-open .mk-pin img { filter: saturate(.55) brightness(.85); }
.mk-side .mk-label { border-color: rgba(214, 163, 68, .4); }
.mk-side .mk-label b { color: var(--gold-hi); }

/* 诗词 */
.mk-poem .mk-pin { width: 24px; height: 24px; }
.mk-poem.st-dim .mk-pin { animation: breathe 2.8s infinite ease-in-out; }
.mk-poem .mk-label b { font-family: var(--kai); font-weight: 700; color: #ffe6ad; letter-spacing: 2px; }
@keyframes breathe { 0%, 100% { opacity: .7; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.06); } }

/* 次级路标（仅显示，不可点击，不计入关卡） */
.mk-landmark { pointer-events: none; cursor: default; z-index: 3; }
.mk-landmark .mk-pin {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(232, 212, 174, .75);
  border: 1.5px solid rgba(15, 13, 11, .9);
  box-shadow: 0 0 0 2px rgba(214, 163, 68, .35), 0 2px 8px rgba(0, 0, 0, .7);
}
.mk-landmark .mk-label {
  padding: 3px 8px;
  background: rgba(14, 13, 12, .76);
  border: 1px solid rgba(255, 236, 200, .18);
}
.mk-landmark .mk-label b {
  font-size: 12px; font-weight: 600; color: #d8ccb8; letter-spacing: 1.5px;
}
.mk-landmark .mk-label small {
  font-size: 10.5px; color: rgba(186, 174, 152, .82);
}
.mk.label-left .mk-label {
  position: absolute;
  right: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
}
.mk.label-below .mk-label {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
}

/* 会师终章（1936.10 会宁 / 将台堡 · 蓝色菱形独立标注） */
.mk-meeting { pointer-events: none; cursor: default; z-index: 8; }
.mk-meeting .mk-pin {
  width: 22px; height: 22px;
  display: grid; place-items: center;
}
.mk-meeting .meeting-diamond {
  width: 14px; height: 14px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #7ed3f7 0%, #2d87b8 100%);
  border: 1.5px solid #e6f8ff;
  box-shadow: 0 0 14px rgba(84, 186, 235, .75), 0 0 0 3px rgba(64, 162, 212, .25);
}
.mk-meeting .mk-label {
  border-color: rgba(110, 198, 240, .5);
  background: rgba(11, 20, 28, .9);
}
.mk-meeting .mk-label b { color: #b9e8ff; font-size: 13px; letter-spacing: 1px; }
.mk-meeting .mk-label small { color: #7ec2e0; font-size: 11px; }

/* 第四幕示范课强调 */
.mk-main.is-demo .mk-label { border-color: rgba(242, 211, 139, .55); }
.mk-main.is-demo .mk-label b { color: #ffe5a3; }

.drawer-actions { display: flex; flex-direction: column; gap: 10px; }
.drawer-actions .btn-ghost.block { width: 100%; }

/* ================= 右侧 站点档案 ================= */
.drawer {
  position: absolute; right: 22px; top: 80px;
  z-index: 16;
  width: 360px; max-width: calc(100vw - 44px);
  padding: 22px 22px 20px;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(22, 19, 16, .94), rgba(14, 12, 10, .94));
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .55);
  backdrop-filter: blur(14px);
  animation: drawerIn .55s var(--ease-out);
}
.drawer::before {
  content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 3px;
  background: linear-gradient(180deg, var(--red-hi), var(--red-deep));
}
.drawer.side::before { background: linear-gradient(180deg, var(--gold-hi), var(--gold-deep)); }
@keyframes drawerIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

.dossier-head { display: flex; align-items: center; justify-content: space-between; }
.dossier-no { font-size: 12px; letter-spacing: 3px; color: var(--red-hi); font-weight: 700; }
.drawer.side .dossier-no { color: var(--gold); }
.dossier-date { font-size: 12px; letter-spacing: 2px; color: var(--muted); margin-left: 10px; }
.icon-close {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid transparent; background: transparent;
  color: var(--muted); font-size: 18px; line-height: 1;
}
.icon-close:hover { border-color: var(--line-2); color: var(--text); }

.dossier-name {
  margin: 10px 0 6px;
  font-family: var(--serif);
  font-size: 34px; font-weight: 900;
  letter-spacing: .18em;
  color: #fbf2df;
}
.dossier-topic { display: flex; flex-direction: column; gap: 2px; margin-bottom: 16px; }
.dossier-topic strong { font-size: 15.5px; color: var(--gold-hi); font-weight: 700; }
.dossier-topic span { font-size: 12px; color: var(--muted); letter-spacing: 1px; }
.dossier-quote {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: 13.5px; line-height: 1.85;
  color: var(--text-2);
}
.dossier-record {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-radius: 4px;
  background: rgba(255, 240, 210, .04);
  border: 1px solid var(--line);
  margin-bottom: 16px;
}
.dossier-record .rec-medal { width: 40px; height: 40px; flex-shrink: 0; }
.dossier-record b { display: block; font-size: 14px; color: #fbf2df; }
.dossier-record small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.dossier-hint { margin: 10px 0 0; text-align: center; font-size: 12px; color: var(--muted); letter-spacing: 1px; }

/* ================= 按钮 ================= */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px;
  padding: 0 24px;
  border: none; border-radius: 4px;
  background: linear-gradient(135deg, #d0342a, #9f1c13);
  box-shadow: 0 10px 26px rgba(198, 42, 31, .35), inset 0 0 0 1px rgba(255, 210, 150, .3);
  font-size: 15px; font-weight: 800; letter-spacing: 2px;
  color: #fff3dc;
  transition: transform .2s var(--ease-out), box-shadow .2s, filter .2s;
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-primary.block { width: 100%; }
.btn-primary.gold { background: linear-gradient(135deg, #e3b65a, #a4741f); color: #2a1a06; box-shadow: 0 10px 26px rgba(214, 163, 68, .35); }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px;
  border-radius: 4px;
  border: 1px solid var(--line-2);
  background: rgba(255, 240, 210, .04);
  font-size: 14px; font-weight: 600;
  color: var(--text-2);
  transition: border-color .2s, color .2s, background .2s;
}
.btn-ghost:hover { border-color: rgba(214, 163, 68, .55); color: #fff3d8; background: rgba(214, 163, 68, .08); }
.btn-text { border: none; background: none; padding: 6px 4px; font-size: 13.5px; color: var(--muted); }
.btn-text:hover { color: var(--gold-hi); }

/* ================= Toast ================= */
.toast {
  position: absolute; bottom: 112px; left: 50%;
  transform: translateX(-50%);
  z-index: 35;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px 10px 12px;
  border-radius: 4px;
  background: rgba(16, 13, 11, .94);
  border: 1px solid rgba(214, 163, 68, .45);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .55);
  font-size: 13.5px; font-weight: 600;
  color: #fbf2df;
  animation: toastIn .4s var(--ease-out);
}
.toast .ico-wrap { width: 22px; height: 22px; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ================= 底部 行军路线条 ================= */
.trailbar {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 18;
  height: 92px;
  display: flex; align-items: center; gap: 28px;
  padding: 0 26px 6px;
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
body.is-intro .trailbar, body.is-cine .trailbar { opacity: 0; transform: translateY(14px); pointer-events: none; }

.li-meter { flex-shrink: 0; min-width: 150px; white-space: nowrap; }
.li-meter > span { display: block; font-size: 11px; letter-spacing: 3px; color: var(--muted); }
.li-meter b {
  display: block;
  font-family: var(--serif);
  font-size: 26px; font-weight: 900;
  color: var(--gold-hi);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.li-meter b small { font-size: 12px; color: var(--text-2); font-weight: 600; margin-left: 4px; letter-spacing: 1px; }
.li-meter i { display: block; font-style: normal; font-size: 11px; color: rgba(143, 134, 118, .8); letter-spacing: 1px; }

.trail { position: relative; flex: 1; height: 56px; min-width: 0; }
.trail-line {
  position: absolute; left: 14px; right: 14px; top: 15px; height: 2px;
  background: repeating-linear-gradient(90deg, rgba(214, 163, 68, .45) 0 6px, transparent 6px 12px);
}
.trail-fill {
  position: absolute; left: 0; top: -1px; height: 4px; width: 0;
  background: linear-gradient(90deg, #8f1810, #e8452f 70%, #ffb38a);
  box-shadow: 0 0 12px rgba(232, 69, 47, .7);
  border-radius: 4px;
}
.trail-nodes { position: absolute; left: 14px; right: 14px; top: 0; bottom: 0; }
.trail-node {
  position: absolute; top: 0;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 0; border: none; background: none;
}
.trail-dot {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: #16130f;
  border: 1.5px solid rgba(143, 134, 118, .4);
  font-family: var(--serif); font-weight: 900; font-size: 13px;
  color: #6f685c;
  position: relative;
  transition: transform .25s var(--ease-out), border-color .2s;
}
.trail-dot img { position: absolute; inset: 3px; width: 22px; height: 22px; }
.trail-name {
  font-size: 11.5px; letter-spacing: 1px;
  color: #6f685c;
  white-space: nowrap;
  transition: color .2s;
}
.trail-node:hover .trail-dot { transform: scale(1.12); }
.trail-node.passed .trail-dot { border-color: var(--gold); background: #22190c; }
.trail-node.passed .trail-name { color: var(--text-2); }
.trail-node.frontier .trail-dot {
  border: 2px solid #ffd59a;
  background: radial-gradient(circle at 35% 30%, #ec4a35, #8a170f);
  color: #fff3dc;
  box-shadow: 0 0 0 4px rgba(232, 69, 47, .22), 0 0 20px rgba(232, 69, 47, .6);
}
.trail-node.frontier .trail-name { color: #fff3dc; font-weight: 700; font-family: var(--serif); font-size: 12.5px; }
.trail-node.active .trail-dot { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

.btn-sides {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 18px 0 10px;
  border-radius: 4px;
  border: 1px solid rgba(214, 163, 68, .45);
  background: rgba(30, 24, 14, .82);
  font-size: 13.5px; font-weight: 700; letter-spacing: 1px;
  color: var(--gold-hi);
  backdrop-filter: blur(8px);
}
.btn-sides .ico-wrap { width: 28px; height: 28px; }
.btn-sides small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.btn-sides:hover { border-color: var(--gold); }

/* ================= 弹窗基础 ================= */
dialog {
  padding: 0; border: none; margin: auto;
  color: var(--text);
  background: transparent;
  max-width: 96vw; max-height: 94vh;
}
dialog::backdrop { background: rgba(4, 5, 7, .72); backdrop-filter: blur(6px); }
dialog[open] { animation: dlgIn .45s var(--ease-out); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }

.dlg-dark {
  width: min(980px, 94vw);
  max-height: 88vh;
  background: linear-gradient(180deg, #1a1713, #110f0d);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .7);
  overflow: hidden;
}
.dlg-dark[open] { display: flex; flex-direction: column; }
.dlg-head {
  flex-shrink: 0;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  padding: 22px 28px 18px;
  border-bottom: 1px solid var(--line);
}
.dlg-kicker { margin: 0 0 6px; font-size: 12px; letter-spacing: 3px; color: var(--gold); }
.dlg-head h2 { margin: 0; font-family: var(--serif); font-size: 24px; font-weight: 900; letter-spacing: 3px; color: #fbf2df; }
.dlg-body { flex: 1; min-height: 0; overflow-y: auto; padding: 22px 28px 30px; }

/* ================= 宣纸弹窗（登记 / 证书） ================= */
.dlg-paper {
  position: relative;
  color: var(--paper-ink);
  background:
    var(--noise-paper),
    radial-gradient(120% 90% at 20% 10%, #f8f1df 0%, var(--paper) 50%, var(--paper-2) 100%);
  border-radius: 3px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .7), inset 0 0 80px rgba(120, 80, 30, .18);
}

.login-dlg { width: 470px; }
.login-box { position: relative; padding: 38px 40px 34px; }
.login-box::before {
  content: ""; position: absolute; inset: 12px;
  border: 1px solid rgba(168, 35, 26, .35);
  outline: 3px double rgba(168, 35, 26, .25);
  outline-offset: 4px;
  pointer-events: none;
}
.login-seal {
  position: absolute; right: 32px; top: 30px;
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border: 2.5px solid var(--paper-red);
  border-radius: 4px;
  color: var(--paper-red);
  font-family: var(--serif); font-weight: 900; font-size: 15px; line-height: 1.1;
  text-align: center; letter-spacing: 2px;
  transform: rotate(-8deg);
  opacity: .82;
}
.login-kicker { margin: 0; font-size: 12px; letter-spacing: 4px; color: var(--paper-red); font-weight: 700; }
.login-box h2 { margin: 8px 0 8px; font-family: var(--serif); font-size: 28px; font-weight: 900; letter-spacing: 6px; }
.login-desc { margin: 0 0 22px; font-size: 13px; line-height: 1.7; color: #6a5641; max-width: 300px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field span { font-size: 12.5px; font-weight: 700; letter-spacing: 2px; color: #5b4632; }
.field input {
  height: 42px; padding: 0 2px;
  border: none; border-bottom: 1.5px solid rgba(60, 40, 22, .35);
  background: transparent;
  font-family: var(--serif); font-size: 18px; font-weight: 700; letter-spacing: 2px;
  color: var(--paper-ink);
}
.field input::placeholder { color: rgba(90, 70, 50, .4); font-weight: 400; font-size: 15px; letter-spacing: 1px; }
.field input:focus { outline: none; border-bottom-color: var(--paper-red); }
.class-row { display: flex; gap: 8px; align-items: flex-end; }
.class-row input { flex: 1; min-width: 0; }
.cls-preset {
  height: 30px; padding: 0 10px;
  border: 1px solid rgba(168, 35, 26, .4);
  border-radius: 2px;
  background: transparent;
  font-size: 12px; font-weight: 700;
  color: var(--paper-red);
  white-space: nowrap;
  flex-shrink: 0;
}
.cls-preset:hover { background: rgba(168, 35, 26, .08); }
.login-actions { margin-top: 26px; }
.login-actions .btn-primary { width: 100%; height: 50px; font-family: var(--serif); font-size: 17px; letter-spacing: 6px; }

/* ================= 作战舱（多环节主舱） ================= */
body.is-cabin #map { filter: blur(4px) brightness(.65); transition: filter .4s var(--ease-out); }
body.is-diving #map { filter: none !important; }
body.is-diving .hud,
body.is-diving .trailbar,
body.is-diving .map-controls,
body.is-diving .drawer { opacity: 0; pointer-events: none; transition: opacity .35s; }

.dive-banner {
  position: absolute;
  left: 5vw;
  bottom: 6vh;
  z-index: 32;
  padding: 14px 22px;
  border-left: 3px solid var(--red-hi);
  background: rgba(10, 13, 17, .78);
  border-radius: 0 4px 4px 0;
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
}
.dive-banner.on { opacity: 1; transform: none; }
.dive-kicker { display: block; font-size: 12.5px; letter-spacing: 3px; color: var(--gold); margin-bottom: 4px; }
.dive-banner strong { font-family: var(--serif); font-size: 26px; font-weight: 900; letter-spacing: 3px; color: #fbf2df; }

.sheet {
  width: min(1680px, 95vw);
  height: min(940px, 92vh);
  background: #12100d;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  box-shadow: 0 50px 120px rgba(0, 0, 0, .75);
  overflow: hidden;
  transition: opacity .55s var(--ease-out);
}
.sheet[open] { display: flex; }
.sheet.is-diving { opacity: 0; pointer-events: none; }
.sheet::backdrop {
  background: rgba(4, 5, 7, .72);
  backdrop-filter: blur(7px);
  transition: opacity .55s var(--ease-out);
}
.sheet.is-diving::backdrop { opacity: 0; }

.sheet-side {
  position: relative;
  flex-shrink: 0;
  width: 128px;
  display: flex; flex-direction: column; align-items: center;
  padding: 26px 0 22px;
  background:
    var(--noise),
    linear-gradient(180deg, #8f1a11 0%, #5d0f0a 100%);
  background-blend-mode: overlay, normal;
  border-right: 1px solid rgba(255, 210, 150, .18);
}
.sheet-side.side { background: var(--noise), linear-gradient(180deg, #6b4c17 0%, #3a280b 100%); background-blend-mode: overlay, normal; }
.sheet-side::after {
  content: ""; position: absolute; inset: 10px;
  border: 1px solid rgba(255, 215, 150, .22);
  pointer-events: none;
}
.side-no { font-size: 13px; letter-spacing: 4px; color: rgba(255, 228, 180, .82); writing-mode: horizontal-tb; font-weight: 700; }
.side-name {
  flex: 1;
  margin: 18px 0;
  writing-mode: vertical-rl;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 40px; font-weight: 900;
  letter-spacing: .32em;
  color: #fff0cf;
  text-shadow: 0 4px 18px rgba(0, 0, 0, .45);
}
.side-date { font-size: 12.5px; letter-spacing: 2px; color: rgba(255, 228, 180, .75); writing-mode: vertical-rl; margin-bottom: 14px; }
.side-medal { width: 54px; height: 54px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); }

.sheet-main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: radial-gradient(120% 80% at 50% 0%, #191611, #100e0c 70%); }
.sheet-head {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 26px 0;
}
.sheet-kicker { margin: 0 0 4px; font-size: 12.5px; letter-spacing: 2px; color: var(--gold); }
.sheet-title { margin: 0; font-family: var(--serif); font-size: 21px; font-weight: 900; color: #fbf2df; letter-spacing: 1px; }
.sheet-tabs {
  flex-shrink: 0;
  display: flex; gap: 6px;
  padding: 0 26px;
  margin-top: 12px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.q-tab {
  position: relative;
  display: inline-flex; align-items: center; gap: 7px;
  height: 44px; padding: 0 14px;
  border: none; background: none;
  font-size: 14.5px; font-weight: 700; letter-spacing: 1.5px;
  color: var(--muted);
  white-space: nowrap;
  transition: color .18s;
}
.q-tab:hover { color: var(--text-2); }
.q-tab .tab-num { font-family: var(--mono); font-size: 11.5px; color: var(--gold); opacity: .7; }
.q-tab.active { color: #fbf2df; }
.q-tab.active .tab-num { color: var(--gold-hi); opacity: 1; }
.q-tab.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2.5px;
  background: linear-gradient(90deg, var(--red-hi), var(--gold));
}
.sheet-body { flex: 1; min-height: 0; overflow-y: auto; padding: 22px 26px 28px; }
.sheet-body.seg-type-interactive,
.sheet-body.seg-type-scene3d { padding: 0; overflow: hidden; display: flex; flex-direction: column; }

/* 速记卡 */
.brief-quote {
  position: relative;
  margin: 0 0 22px;
  padding: 16px 20px 16px 62px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(198, 42, 31, .16), rgba(198, 42, 31, .02));
  border-left: 3px solid var(--red-hi);
  font-family: var(--serif);
  font-size: 14.5px; line-height: 1.85;
  color: #f0e6d2;
}
.brief-quote::before {
  content: "“"; position: absolute; left: 20px; top: 6px;
  font-family: Georgia, serif; font-size: 46px; line-height: 1; color: rgba(232, 69, 47, .7);
}
.brief-grid { display: grid; gap: 14px; }
.brief-card {
  padding: 18px 20px;
  border-radius: 4px;
  background: rgba(255, 240, 210, .03);
  border: 1px solid var(--line);
}
.brief-card h3 {
  margin: 0 0 12px;
  display: flex; align-items: baseline; gap: 12px;
  font-family: var(--serif); font-size: 17px; font-weight: 900; letter-spacing: 1px;
  color: #fbf2df;
}
.brief-card h3 i { font-style: normal; font-size: 12px; letter-spacing: 2px; color: var(--gold); font-family: var(--sans); font-weight: 700; }
.brief-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.brief-card li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px; line-height: 1.75;
  color: #ddd3c0;
}
.brief-card li::before {
  content: ""; position: absolute; left: 2px; top: .72em;
  width: 6px; height: 6px; transform: rotate(45deg);
  background: var(--gold);
}
.brief-cta { display: flex; justify-content: center; margin-top: 24px; }

/* 题目进度条 */
.q-seg { display: flex; gap: 6px; margin-bottom: 18px; }
.q-seg span {
  flex: 1; height: 4px; border-radius: 4px;
  background: rgba(255, 240, 210, .08);
  transition: background .3s;
}
.q-seg span.cur { background: linear-gradient(90deg, var(--gold), var(--gold-hi)); }
.q-seg span.ok { background: var(--jade); }
.q-seg span.bad { background: var(--wrong); }
.q-seg-label { display: flex; justify-content: space-between; margin: -10px 0 16px; font-size: 12px; color: var(--muted); letter-spacing: 1px; }

/* 题卡 */
.q-card { animation: qIn .45s var(--ease-out); }
@keyframes qIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.q-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.q-head-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.q-type {
  padding: 3px 10px;
  border-radius: 2px;
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  color: var(--gold-hi);
  background: rgba(214, 163, 68, .12);
  border: 1px solid rgba(214, 163, 68, .35);
}
.q-type.t-multi { color: #ffd4b8; background: rgba(198, 42, 31, .16); border-color: rgba(232, 69, 47, .48); }
.q-tag {
  padding: 3px 9px;
  border-radius: 2px;
  font-size: 11.5px; letter-spacing: 1px;
  color: var(--text-2);
  background: rgba(255, 240, 210, .05);
  border: 1px solid var(--line);
}
.q-multi-tip {
  margin: -8px 0 14px;
  font-size: 12.5px; letter-spacing: 1px;
  color: var(--gold);
}
.q-options.is-multiple .opt-key { border-radius: 4px; }
.q-keys { font-size: 11.5px; color: rgba(143, 134, 118, .85); letter-spacing: 1px; }
.q-keys kbd {
  display: inline-block; min-width: 18px; padding: 0 5px; margin: 0 1px;
  border-radius: 3px; border: 1px solid var(--line-2);
  font-family: var(--mono); font-size: 11px; color: var(--text-2); text-align: center;
}
.q-stem {
  margin-bottom: 20px;
  font-family: var(--serif);
  font-size: 18px; font-weight: 700; line-height: 1.75;
  color: #fbf2df;
}

.q-options { display: flex; flex-direction: column; gap: 10px; }
.q-opt {
  display: flex; align-items: center; gap: 14px;
  width: 100%;
  padding: 13px 16px;
  border-radius: 4px;
  border: 1px solid var(--line-2);
  background: rgba(255, 240, 210, .025);
  font-size: 15px; line-height: 1.6; text-align: left;
  color: var(--text);
  transition: border-color .18s, background .18s, transform .18s var(--ease-out);
}
.q-opt:hover:not(:disabled) { border-color: rgba(214, 163, 68, .55); background: rgba(214, 163, 68, .05); transform: translateX(3px); }
.opt-key {
  flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 3px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  font-family: var(--serif); font-weight: 900; font-size: 15px;
  color: var(--gold-hi);
}
.q-opt.selected { border-color: var(--gold); background: rgba(214, 163, 68, .10); }
.q-opt.selected .opt-key { background: var(--gold); border-color: var(--gold); color: #24160a; }
.q-opt.is-right { border-color: var(--jade) !important; background: rgba(47, 158, 114, .14) !important; }
.q-opt.is-right .opt-key { background: var(--jade) !important; border-color: var(--jade) !important; color: #fff !important; }
.q-opt.is-wrong { border-color: var(--wrong) !important; background: rgba(224, 87, 74, .12) !important; animation: shake .4s; }
.q-opt.is-wrong .opt-key { background: var(--wrong) !important; border-color: var(--wrong) !important; color: #fff !important; }
.q-opt:disabled { cursor: default; }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

.q-judge { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.judge-btn {
  height: 84px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  border-radius: 4px;
  border: 1px solid var(--line-2);
  background: rgba(255, 240, 210, .025);
  font-family: var(--serif); font-size: 22px; font-weight: 900; letter-spacing: 6px;
  color: var(--text);
  transition: all .18s;
}
.judge-btn svg { width: 28px; height: 28px; }
.judge-btn:hover:not(:disabled) { border-color: rgba(214, 163, 68, .55); }
.judge-btn.selected { border-color: var(--gold); background: rgba(214, 163, 68, .1); }
.judge-btn.is-right { border-color: var(--jade) !important; background: rgba(47, 158, 114, .16) !important; }
.judge-btn.is-wrong { border-color: var(--wrong) !important; background: rgba(224, 87, 74, .14) !important; animation: shake .4s; }

.q-actions { display: flex; align-items: center; justify-content: flex-end; margin-top: 22px; }
.btn-submit:disabled { opacity: .35; cursor: not-allowed; filter: grayscale(.4); transform: none; }

/* 即时解析与老班长提示 */
.q-feedback {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: 4px;
  border: 1px solid;
  animation: rise .45s var(--ease-out);
}
.q-feedback.fb-ok { background: rgba(47, 158, 114, .08); border-color: rgba(47, 158, 114, .45); }
.q-feedback.fb-bad { background: rgba(224, 87, 74, .07); border-color: rgba(224, 87, 74, .45); }
.fb-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.fb-ico { width: 24px; height: 24px; flex-shrink: 0; }
.fb-title { font-family: var(--serif); font-size: 17px; font-weight: 900; letter-spacing: 2px; }
.fb-ok .fb-title { color: var(--jade-hi); }
.fb-bad .fb-title { color: #ffa196; }
.fb-answer { margin-left: auto; font-size: 13.5px; color: var(--text-2); }
.fb-answer strong { color: var(--gold-hi); }
.fb-explain { font-size: 14.5px; line-height: 1.85; color: #e2d9c7; }
.fb-explain.fb-laobanzhang {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 4px;
  background: rgba(214, 163, 68, .08);
  border-left: 3px solid var(--gold);
}
.fb-explain-label { display: inline-block; margin-right: 8px; padding: 0 6px; font-size: 12px; font-weight: 700; letter-spacing: 2px; color: var(--gold); border: 1px solid rgba(214, 163, 68, .4); border-radius: 2px; }
.fb-next { display: flex; justify-content: flex-end; margin-top: 16px; }

/* 行内富文本 */
.inline-code {
  padding: 1px 6px;
  border-radius: 3px;
  background: rgba(214, 163, 68, .12);
  border: 1px solid rgba(214, 163, 68, .25);
  color: var(--gold-hi);
  font-family: var(--mono);
  font-size: .88em;
  font-weight: 500;
}
mark.hl { background: none; color: var(--gold-hi); font-weight: 800; box-shadow: inset 0 -.38em 0 rgba(214, 163, 68, .18); }

/* ================= 授章结算 ================= */
.award {
  position: relative;
  text-align: center;
  padding: 6px 20px 4px;
  overflow: hidden;
}
.award-stage { position: relative; width: 150px; height: 150px; margin: 0 auto 2px; }
.award-rays {
  position: absolute; inset: -60px;
  background: repeating-conic-gradient(from 0deg, rgba(242, 211, 139, .16) 0deg 6deg, transparent 6deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 18%, transparent 62%);
  mask: radial-gradient(circle, #000 18%, transparent 62%);
  animation: spin 24s linear infinite;
  opacity: 0;
  animation-name: spin, fadeIn;
  animation-duration: 24s, 1.2s;
  animation-delay: 0s, .6s;
  animation-iteration-count: infinite, 1;
  animation-fill-mode: none, forwards;
}
.award.fail .award-rays { display: none; }
.award-medal {
  position: absolute; inset: 14px;
  width: 122px; height: 122px;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .6));
  animation: medalDrop 1.1s var(--ease-out) both;
}
.award-glint {
  position: absolute; inset: 14px; border-radius: 50%;
  background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%);
  background-size: 300% 100%;
  -webkit-mask: url("../assets/icons/medal-gold.svg") center / contain no-repeat;
  mask: url("../assets/icons/medal-gold.svg") center / contain no-repeat;
  animation: glint 2.4s 1.2s var(--ease-io) both;
  mix-blend-mode: screen;
}
.award.fail .award-glint { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes medalDrop {
  0% { opacity: 0; transform: translateY(-120px) scale(1.25) rotate(-12deg); }
  55% { opacity: 1; transform: translateY(6px) scale(.96) rotate(2deg); }
  75% { transform: translateY(-4px) scale(1.02) rotate(0); }
  100% { transform: none; }
}
@keyframes glint { from { background-position: 120% 0; } to { background-position: -40% 0; } }

.award-kicker { margin: 4px 0 0; font-size: 12.5px; letter-spacing: 8px; color: var(--red-hi); font-weight: 700; animation: rise .6s .8s var(--ease-out) both; }
.award.fail .award-kicker { color: var(--muted); }
.award-title {
  margin: 6px 0 10px;
  font-family: var(--serif);
  font-size: 32px; font-weight: 900; letter-spacing: .16em;
  color: #fbf2df;
  animation: rise .7s .95s var(--ease-out) both;
}
.award-score {
  display: inline-flex; align-items: baseline; gap: 18px;
  margin-bottom: 12px;
  font-size: 13px; letter-spacing: 1px; color: var(--muted);
  animation: rise .7s 1.1s var(--ease-out) both;
}
.award-score b { font-family: var(--serif); font-size: 34px; font-weight: 900; color: var(--gold-hi); margin-right: 3px; }
.award-score .sep { width: 1px; height: 26px; background: var(--line-2); align-self: center; }
.award-review { display: flex; justify-content: center; gap: 8px; margin-bottom: 14px; animation: rise .7s 1.2s var(--ease-out) both; }
.award-review span {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800;
  border: 1.5px solid;
}
.award-review .ok { border-color: var(--jade); color: var(--jade-hi); background: rgba(47, 158, 114, .12); }
.award-review .bad { border-color: var(--wrong); color: #ffaea4; background: rgba(224, 87, 74, .12); }
.award-msg {
  max-width: 620px; margin: 0 auto 16px;
  font-family: var(--serif);
  font-size: 15px; line-height: 1.9;
  color: var(--text-2);
  animation: rise .7s 1.3s var(--ease-out) both;
}
.award-poem {
  display: inline-flex; align-items: center; gap: 14px;
  margin: 0 auto 16px;
  padding: 8px 14px 8px 10px;
  border-radius: 4px;
  border: 1px solid rgba(214, 163, 68, .45);
  background: rgba(214, 163, 68, .07);
  text-align: left;
  animation: rise .7s 1.45s var(--ease-out) both;
  cursor: pointer;
}
.award-poem .ico-wrap { width: 40px; height: 40px; }
.award-poem small { display: block; font-size: 11.5px; letter-spacing: 2px; color: var(--gold); }
.award-poem b { font-family: var(--kai); font-size: 18px; color: #ffe6ad; letter-spacing: 2px; }
.award-actions {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  animation: rise .7s 1.6s var(--ease-out) both;
}
.award-actions .row { display: flex; gap: 6px; }
.award-actions .btn-primary { min-width: 360px; height: 52px; font-size: 16px; }

/* ================= 错题本 ================= */
.wb-summary { display: flex; gap: 22px; margin-bottom: 18px; font-size: 13px; color: var(--muted); }
.wb-summary b { font-family: var(--serif); font-size: 22px; color: #fbf2df; margin-right: 4px; }
.wb-list { display: flex; flex-direction: column; gap: 12px; }
.wb-item {
  position: relative;
  padding: 16px 20px 16px 22px;
  border-radius: 4px;
  background: rgba(255, 240, 210, .025);
  border: 1px solid var(--line);
}
.wb-item::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; background: var(--wrong); }
.wb-item.resolved::before { background: var(--jade); }
.wb-item.resolved { opacity: .72; }
.wb-top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 12px; letter-spacing: 1px; }
.wb-status { font-weight: 700; color: #ffa196; }
.wb-item.resolved .wb-status { color: var(--jade-hi); }
.wb-source { color: var(--gold); }
.wb-stem { font-family: var(--serif); font-size: 15.5px; font-weight: 700; line-height: 1.7; margin-bottom: 8px; color: #fbf2df; }
.wb-explain { font-size: 13.5px; line-height: 1.75; color: var(--text-2); margin-bottom: 12px; }
.wb-foot { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.wb-foot code { font-family: var(--mono); color: #ffb3aa; }
.wb-redo-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; font-size: 13px; color: var(--muted); }
.wb-redo-head strong { color: var(--gold-hi); }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state .ico-wrap { width: 72px; height: 72px; margin: 0 auto 16px; opacity: .85; }
.empty-state h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 20px; letter-spacing: 3px; color: #fbf2df; }
.empty-state p { margin: 0; font-size: 13.5px; line-height: 1.7; }

/* ================= 诗词星火集 ================= */
.poem-intro { margin: 0 0 20px; font-size: 13.5px; line-height: 1.7; color: var(--muted); }
.poem-intro b { color: var(--gold-hi); }
.poem-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.poem-card {
  position: relative;
  min-height: 210px;
  padding: 20px 18px;
  border-radius: 3px;
  border: 1px solid var(--line);
  background: rgba(255, 240, 210, .02);
  text-align: left;
  display: flex; flex-direction: column;
  transition: transform .25s var(--ease-out), border-color .25s;
}
.poem-card.lit {
  color: var(--paper-ink);
  border-color: transparent;
  background: var(--noise-paper), radial-gradient(120% 100% at 30% 0%, #f8f1df, var(--paper) 55%, var(--paper-2));
  box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
}
.poem-card.lit:hover { transform: translateY(-4px); }
.poem-card .pc-icon { width: 34px; height: 34px; margin-bottom: 14px; }
.poem-card h3 { margin: 0 0 6px; font-family: var(--kai); font-size: 20px; font-weight: 700; letter-spacing: 1px; color: #f1e7d3; }
.poem-card.lit h3 { color: var(--paper-ink); }
.poem-card .pc-loc { font-size: 12px; letter-spacing: 1px; color: var(--muted); }
.poem-card.lit .pc-loc { color: #7b6347; }
.poem-card .pc-line { margin-top: auto; padding-top: 16px; font-family: var(--kai); font-size: 15.5px; letter-spacing: 2px; color: #5a4430; }
.poem-card .pc-lock { margin-top: auto; padding-top: 16px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.poem-card .pc-go { margin-top: 10px; align-self: flex-start; }
.poem-card .pc-seal {
  position: absolute; right: 16px; top: 18px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 2px solid var(--paper-red); border-radius: 3px;
  color: var(--paper-red);
  font-family: var(--serif); font-size: 11px; font-weight: 900; line-height: 1.1; text-align: center;
  transform: rotate(-6deg); opacity: .78;
}

/* 卷轴详情 */
.scroll-view { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 26px; align-items: stretch; }
.scroll-paper {
  position: relative;
  min-height: 460px;
  padding: 40px 34px;
  border-radius: 2px;
  color: var(--paper-ink);
  background: var(--noise-paper), radial-gradient(130% 100% at 70% 0%, #f8f1df, var(--paper) 50%, #dfcfa8);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .5), inset 0 0 60px rgba(120, 80, 30, .2);
  display: flex; justify-content: center;
  overflow-x: auto;
}
.scroll-paper::before, .scroll-paper::after {
  content: ""; position: absolute; top: -6px; bottom: -6px; width: 14px;
  background: linear-gradient(90deg, #3e2a17, #7a5532, #3e2a17);
  border-radius: 6px;
}
.scroll-paper::before { left: -7px; }
.scroll-paper::after { right: -7px; }
.scroll-text {
  writing-mode: vertical-rl;
  font-family: var(--kai);
  height: 430px;
  display: flex; flex-direction: column; flex-wrap: nowrap;
}
.scroll-text h3 { margin: 0 0 0 28px; font-size: 32px; font-weight: 700; letter-spacing: 8px; }
.scroll-text .st-author { margin: 0 0 0 26px; font-size: 13px; letter-spacing: 3px; color: #7b6347; padding-top: 160px; }
.scroll-text p.st-line { margin: 0 0 0 12px; font-size: 22px; letter-spacing: 6px; line-height: 1.5; opacity: 0; animation: inkV 1.1s var(--ease-out) forwards; }
@keyframes inkV { from { opacity: 0; filter: blur(4px); transform: translateY(-10px); } to { opacity: 1; filter: none; transform: none; } }
.scroll-seal {
  position: absolute; left: 30px; bottom: 34px;
  width: 54px; height: 54px;
  display: grid; place-items: center;
  background: var(--paper-red);
  color: #f6e3c8;
  font-family: var(--serif); font-weight: 900; font-size: 15px; line-height: 1.1; text-align: center; letter-spacing: 2px;
  border-radius: 3px;
  transform: rotate(-5deg);
  box-shadow: inset 0 0 0 2px rgba(246, 227, 200, .35);
  opacity: .9;
}
.scroll-side { display: flex; flex-direction: column; gap: 16px; }
.scroll-meta small { font-size: 12px; letter-spacing: 3px; color: var(--gold); }
.scroll-meta h3 { margin: 6px 0 4px; font-family: var(--kai); font-size: 28px; letter-spacing: 2px; color: #fbf2df; }
.scroll-meta p { margin: 0; font-size: 13px; color: var(--muted); }
.scroll-reflect {
  padding: 18px 20px;
  border-radius: 4px;
  border-left: 3px solid var(--red-hi);
  background: rgba(198, 42, 31, .08);
  font-family: var(--serif); font-size: 14.5px; line-height: 1.95;
  color: #e9dfcb;
}

/* ================= 支线任务 ================= */
.sides-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.side-card {
  position: relative;
  display: flex; gap: 16px;
  padding: 18px 20px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: rgba(255, 240, 210, .025);
  transition: border-color .2s, transform .2s var(--ease-out);
}
.side-card:hover { border-color: rgba(214, 163, 68, .5); transform: translateY(-2px); }
.side-card .sc-icon { width: 54px; height: 54px; flex-shrink: 0; }
.side-card:not(.passed) .sc-icon img { filter: saturate(.5) brightness(.85); }
.side-card small.sc-kicker { font-size: 11.5px; letter-spacing: 2px; color: var(--gold); }
.side-card h3 { margin: 4px 0 6px; font-family: var(--serif); font-size: 17px; font-weight: 900; letter-spacing: 1px; color: #fbf2df; }
.side-card p { margin: 0 0 12px; font-size: 13px; line-height: 1.7; color: var(--text-2); }
.side-card .sc-foot { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); }
.side-card.passed { border-color: rgba(214, 163, 68, .5); background: rgba(214, 163, 68, .05); }
.side-card .sc-badge { color: var(--gold-hi); font-weight: 700; }

/* ================= 会师证书 ================= */
.reunion-dlg { width: min(860px, 94vw); max-height: 94vh; overflow-y: auto; }
.cert { position: relative; padding: 46px 56px 40px; text-align: center; }
.cert::before {
  content: ""; position: absolute; inset: 16px;
  border: 2px solid rgba(168, 35, 26, .7);
  outline: 1px solid rgba(168, 35, 26, .4);
  outline-offset: 6px;
  pointer-events: none;
}
.cert::after {
  content: ""; position: absolute; inset: 30px;
  border: 1px solid rgba(168, 120, 40, .45);
  pointer-events: none;
}
.cert-star { width: 74px; height: 74px; margin: 0 auto 10px; }
.cert-sup { margin: 0; font-size: 13px; letter-spacing: 6px; color: var(--paper-red); font-weight: 700; }
.cert-title { margin: 10px 0 18px; font-family: var(--serif); font-size: 46px; font-weight: 900; letter-spacing: .4em; margin-right: -.4em; color: var(--paper-red); }
.cert-to { margin: 0 0 22px; font-family: var(--serif); font-size: 17px; line-height: 2; color: var(--paper-ink); }
.cert-to b { font-size: 24px; letter-spacing: 4px; border-bottom: 1.5px solid var(--paper-ink); padding: 0 10px; }
.cert-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 0 auto 24px; max-width: 680px; border-top: 1px solid rgba(60, 40, 22, .25); border-bottom: 1px solid rgba(60, 40, 22, .25); }
.cert-stats div { padding: 14px 6px; border-left: 1px solid rgba(60, 40, 22, .15); }
.cert-stats div:first-child { border-left: none; }
.cert-stats span { display: block; font-size: 11.5px; letter-spacing: 2px; color: #7b6347; }
.cert-stats b { display: block; margin-top: 4px; font-family: var(--serif); font-size: 21px; font-weight: 900; color: var(--paper-ink); }
.cert-quote { max-width: 640px; margin: 0 auto 26px; font-family: var(--kai); font-size: 16.5px; line-height: 2; color: #3e2c1e; text-align: left; text-indent: 2em; }
.cert-foot { display: flex; align-items: flex-end; justify-content: space-between; max-width: 680px; margin: 0 auto; }
.cert-date { text-align: left; font-family: var(--serif); font-size: 13px; line-height: 1.9; color: #5b4632; }
.cert-seal {
  width: 96px; height: 96px; border-radius: 50%;
  display: grid; place-items: center;
  border: 3px solid var(--paper-red);
  color: var(--paper-red);
  font-family: var(--serif); font-weight: 900; font-size: 15px; line-height: 1.25; letter-spacing: 2px;
  transform: rotate(-12deg);
  opacity: .85;
  position: relative;
}
.cert-seal::before { content: "★"; position: absolute; top: 8px; font-size: 14px; }
.cert-actions { margin-top: 28px; display: flex; justify-content: center; gap: 12px; }
.cert-actions .btn-ghost { color: #5b4632; border-color: rgba(60, 40, 22, .35); background: transparent; }

@media (max-width: 1100px) {
  .tally-item small, .hud-btn span.lbl { display: none; }
  .poem-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .brand p { display: none; }
  .trail-name { display: none; }
  .trail-node.frontier .trail-name { display: block; }
  .sheet-side { display: none; }
  .sides-grid, .scroll-view { grid-template-columns: 1fr; }
  .palette.sym { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cert-stats { grid-template-columns: repeat(2, 1fr); }
  .li-meter { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
}

/* ================= 补充 ================= */
.ico-wrap { display: inline-block; flex-shrink: 0; line-height: 0; }

.finale-video {
  position: absolute; inset: 0; z-index: 45;
  background: #000;
  display: grid; place-items: center;
}
.finale-video video { width: 100%; height: 100%; object-fit: cover; }
.finale-skip {
  position: absolute; right: 28px; bottom: 24px;
  padding: 8px 16px !important;
  border: 1px solid rgba(255, 255, 255, .25) !important;
  border-radius: 999px;
  color: rgba(255, 255, 255, .7) !important;
  letter-spacing: 3px;
}

@media print {
  body * { visibility: hidden !important; }
  #dlg-reunion, #dlg-reunion * { visibility: visible !important; }
  #dlg-reunion { position: fixed; inset: 0; margin: 0; width: 100%; max-height: none; box-shadow: none; }
  .cert-actions { display: none !important; }
}

/* ================= 作战舱多环节内容样式 ================= */
.media-watermark {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 4;
  padding: 4px 11px;
  border-radius: 3px;
  background: rgba(10, 13, 17, .74);
  border: 1px solid rgba(255, 236, 200, .2);
  font-size: 12.5px;
  letter-spacing: 1.5px;
  color: rgba(237, 230, 216, .88);
  pointer-events: none;
}

/* 1. 漫剧占位 */
.comic-placeholder { display: flex; flex-direction: column; gap: 16px; height: 100%; min-height: 520px; }
.comic-poster-frame {
  position: relative;
  flex: 1;
  min-height: 440px;
  border-radius: 4px;
  border: 1px solid var(--line-2);
  overflow: hidden;
  background: #0a0d11;
}
.comic-poster-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; display: block; }
.comic-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 13, 17, .35) 0%, transparent 35%, rgba(10, 13, 17, .90) 100%),
    linear-gradient(90deg, rgba(10, 13, 17, .75) 0%, transparent 55%);
}
.comic-status-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: 4px;
  background: rgba(17, 15, 13, .88);
  border: 1px solid rgba(214, 163, 68, .55);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .55);
}
.comic-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold-hi);
  box-shadow: 0 0 10px var(--gold-hi);
}
.comic-status-badge strong { font-family: var(--serif); font-size: 16px; color: var(--gold-hi); letter-spacing: 2px; }
.comic-status-badge small { font-size: 12.5px; color: var(--text-2); border-left: 1px solid var(--line-2); padding-left: 10px; }
.comic-overlay {
  position: absolute;
  left: 28px;
  bottom: 24px;
  max-width: 680px;
  z-index: 3;
}
.comic-kicker { margin: 0 0 6px; font-size: 13px; letter-spacing: 3px; color: var(--gold); font-weight: 700; }
.comic-overlay h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 32px; font-weight: 900; letter-spacing: 2px; color: #fbf2df; }
.comic-summary { margin: 0; font-size: 16.5px; line-height: 1.65; color: var(--text); }
.seg-next-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 4px;
}
.seg-next-bar span { font-size: 14px; color: var(--muted); letter-spacing: 1px; }

/* 2. 短片播放器 */
.video-stage { display: flex; flex-direction: column; gap: 14px; height: 100%; }
.video-frame {
  position: relative;
  flex: 1;
  min-height: 440px;
  background: #050709;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.video-frame video { width: 100%; height: 100%; max-height: 66vh; object-fit: contain; display: block; background: #000; }
.video-frame .media-watermark { bottom: 54px; right: 16px; }
.video-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 16px;
  background: rgba(21, 19, 15, .92);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.video-verse { display: flex; align-items: center; gap: 14px; }
.verse-tag {
  padding: 3px 10px;
  border-radius: 2px;
  background: rgba(198, 42, 31, .16);
  border: 1px solid rgba(232, 69, 47, .45);
  color: var(--gold-hi);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.video-verse p { margin: 0; font-family: var(--kai); font-size: 21px; letter-spacing: 2px; color: #fbf2df; }

/* 3. iframe 交互页 / 3D 铁索 */
.iframe-host {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: var(--ink);
}
.scene3d-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 18px;
  background: #13110d;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.scene3d-note { color: var(--muted); }
.scene3d-status { color: var(--gold-hi); font-weight: 700; letter-spacing: 1px; }
.cabin-iframe {
  flex: 1;
  width: 100%;
  min-height: 0;
  border: 0;
  display: block;
  background: var(--ink);
}

/* 4. 史料导览卡 */
.archive-stage { display: flex; flex-direction: column; gap: 18px; max-width: 1180px; margin: 0 auto; }
.archive-hero {
  padding: 18px 22px;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(122, 19, 13, .22), rgba(21, 19, 15, .95));
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--red-hi);
}
.archive-kicker { margin: 0 0 6px; font-size: 13px; letter-spacing: 3px; color: var(--gold); font-weight: 700; }
.archive-heading { margin: 0 0 12px; font-family: var(--serif); font-size: 26px; font-weight: 900; color: #fbf2df; letter-spacing: 1px; }
.archive-question {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding-top: 10px; border-top: 1px solid var(--line);
}
.archive-question span {
  padding: 2px 9px; border-radius: 2px;
  background: rgba(214, 163, 68, .16); border: 1px solid rgba(214, 163, 68, .4);
  font-size: 12.5px; font-weight: 700; color: var(--gold-hi); letter-spacing: 2px;
}
.archive-question strong { font-family: var(--serif); font-size: 19px; color: #fff3dc; line-height: 1.5; }

.archive-paper {
  position: relative;
  padding: 22px 26px;
  border-radius: 3px;
  color: var(--paper-ink);
  background: var(--noise-paper), radial-gradient(120% 90% at 25% 0%, #f8f1df 0%, var(--paper) 55%, var(--paper-2) 100%);
  border: 1px solid #b59e78;
  border-top: 3px solid var(--paper-red);
  outline: 1px solid rgba(168, 35, 26, .24);
  outline-offset: -6px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .42), inset 0 0 42px rgba(120, 80, 30, .14);
}
.archive-paper-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding-bottom: 10px; margin-bottom: 12px;
  border-bottom: 1px solid rgba(168, 35, 26, .24);
}
.archive-paper-head span { font-family: var(--serif); font-size: 18px; font-weight: 900; color: var(--paper-red); letter-spacing: 2px; }
.archive-paper-head small { font-size: 13.5px; color: #6e573e; }
.archive-guide { margin: 0 0 14px; font-size: 17px; line-height: 1.8; color: var(--paper-ink); }
.archive-source-row {
  padding-top: 10px; border-top: 1px dashed rgba(100, 70, 35, .3);
  font-size: 14.5px; color: #5b4632; line-height: 1.6; overflow-wrap: anywhere;
}
.archive-source-row .src-label { font-weight: 800; color: var(--paper-red); }
.archive-source-row a { display: inline-block; margin-left: 8px; color: var(--paper-red); font-weight: 600; text-underline-offset: 3px; }

/* 5. 1935→2026 理论升华页 */
.sublimation-stage { display: flex; flex-direction: column; gap: 20px; max-width: 1320px; margin: 0 auto; }
.time-divider {
  display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap;
  padding: 14px 24px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(122, 19, 13, .22), rgba(21, 19, 15, .95) 35%, rgba(21, 19, 15, .95) 65%, rgba(214, 163, 68, .18));
  border: 1px solid var(--line-2);
}
.time-divider .yr { font-family: var(--serif); font-size: 36px; font-weight: 900; letter-spacing: 4px; line-height: 1; }
.time-divider .yr-past { color: #ffaba0; }
.time-divider .yr-now { color: var(--gold-hi); }
.time-divider .divider-pipe { font-size: 28px; color: var(--gold); font-weight: 300; }
.time-divider .divider-sub { font-size: 15px; letter-spacing: 2px; color: var(--text-2); border-left: 1px solid var(--line-2); padding-left: 16px; }

.sublimation-cols { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.28fr); gap: 18px; align-items: stretch; }
.sub-col {
  padding: 22px 24px;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(25, 22, 17, .96), var(--panel-solid));
  border: 1px solid var(--line-2);
  display: flex; flex-direction: column;
}
.sub-history { border-top: 3px solid var(--red-hi); }
.sub-communique { border-top: 3px solid var(--gold); }
.sub-col-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line);
}
.col-tag {
  padding: 3px 10px; border-radius: 2px;
  background: rgba(198, 42, 31, .16); border: 1px solid rgba(232, 69, 47, .45);
  color: #ffb8af; font-size: 13px; font-weight: 700; letter-spacing: 2px;
}
.col-tag.gold { background: rgba(214, 163, 68, .15); border-color: rgba(214, 163, 68, .45); color: var(--gold-hi); }
.sub-col-head small { font-size: 13px; color: var(--muted); }
.sub-history h3 { margin: 0 0 12px; font-family: var(--serif); font-size: 24px; font-weight: 900; color: #fbf2df; letter-spacing: 1px; }
.sub-summary { margin: 0 0 16px; font-size: 16.5px; line-height: 1.8; color: var(--text-2); }
.sub-points { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.sub-points li {
  position: relative; padding-left: 18px;
  font-size: 15.5px; line-height: 1.65; color: #e9dfcb;
}
.sub-points li::before {
  content: ""; position: absolute; left: 2px; top: .68em;
  width: 6px; height: 6px; transform: rotate(45deg); background: var(--red-hi);
}

.communique-list { display: flex; flex-direction: column; gap: 14px; }
.communique-quote {
  margin: 0;
  padding: 16px 18px;
  border-radius: 3px;
  background: rgba(214, 163, 68, .05);
  border-left: 3px solid var(--gold);
  border-top: 1px solid rgba(214, 163, 68, .14);
  border-right: 1px solid rgba(214, 163, 68, .14);
  border-bottom: 1px solid rgba(214, 163, 68, .14);
}
.communique-quote p {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 17.5px;
  line-height: 1.85;
  color: #fbf2df;
  font-weight: 600;
}
.communique-quote footer { font-size: 13.5px; color: var(--gold); text-align: right; letter-spacing: .5px; }

/* 6. 第五幕：给老班长写信（宣纸信笺） */
.letter-stage { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .85fr); gap: 18px; align-items: stretch; }
.letter-paper {
  position: relative;
  padding: 28px 32px 24px;
  border-radius: 3px;
  color: var(--paper-ink);
  background:
    var(--noise-paper),
    repeating-linear-gradient(180deg, transparent 0 38px, rgba(168, 35, 26, .12) 38px 39px),
    radial-gradient(120% 100% at 25% 0%, #f8f1df 0%, var(--paper) 58%, var(--paper-2) 100%);
  border: 1px solid #b59e78;
  outline: 1px solid rgba(168, 35, 26, .3);
  outline-offset: -8px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, .5), inset 0 0 56px rgba(120, 80, 30, .18);
  display: flex; flex-direction: column; gap: 12px;
}
.letter-seal {
  position: absolute; right: 28px; top: 24px;
  width: 54px; height: 54px; display: grid; place-items: center;
  border: 2.5px solid var(--paper-red); border-radius: 4px;
  color: var(--paper-red); font-family: var(--serif); font-weight: 900; font-size: 14px; line-height: 1.1;
  text-align: center; letter-spacing: 2px; transform: rotate(-7deg); opacity: .82;
}
.letter-paper-head { display: flex; flex-direction: column; gap: 3px; padding-right: 70px; border-bottom: 1.5px solid rgba(168, 35, 26, .35); padding-bottom: 10px; }
.lp-kicker { font-family: var(--serif); font-size: 16px; font-weight: 900; letter-spacing: 3px; color: var(--paper-red); }
.letter-paper-head small { font-size: 12.5px; color: #6e573e; }

.letter-salutation, .letter-sign-row input {
  -webkit-appearance: none; appearance: none;
  border: none; border-bottom: 1.5px solid rgba(100, 65, 35, .32);
  background: transparent;
  font-family: var(--kai); font-size: 22px; font-weight: 700; color: var(--paper-ink);
  padding: 4px 2px;
}
.letter-salutation:focus, .letter-sign-row input:focus, .letter-textarea:focus { outline: none; border-color: var(--paper-red); }
.letter-textarea {
  -webkit-appearance: none; appearance: none;
  width: 100%; min-height: 240px; resize: vertical;
  border: 1px dashed rgba(168, 35, 26, .28); border-radius: 3px;
  background: rgba(255, 250, 238, .28);
  padding: 12px 14px;
  font-family: var(--kai); font-size: 21px; line-height: 1.85; color: var(--paper-ink);
}
.letter-textarea::placeholder { color: rgba(91, 70, 50, .48); font-size: 17px; font-family: var(--sans); }
.letter-sign-row { display: flex; align-items: baseline; justify-content: flex-end; gap: 12px; }
.letter-sign-row label { font-size: 14px; font-weight: 700; color: #6e573e; }
.letter-sign-row input { width: 220px; text-align: right; font-size: 20px; }
.letter-form-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.btn-gold-outline {
  height: 46px; padding: 0 18px; border-radius: 4px;
  border: 1.5px solid var(--paper-red); background: rgba(168, 35, 26, .08);
  font-size: 15px; font-weight: 800; color: var(--paper-red); letter-spacing: 1px;
}
.btn-gold-outline:hover { background: rgba(168, 35, 26, .16); }
.letter-msg { font-size: 14px; font-weight: 700; color: #246f4e; }
.letter-msg[data-error="true"] { color: var(--paper-red); }

.letter-drawer {
  padding: 18px 20px;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(25, 22, 17, .96), var(--panel-solid));
  border: 1px solid var(--line-2);
  border-top: 2px solid var(--gold);
  display: flex; flex-direction: column; gap: 12px;
}
.ld-head h3 { margin: 0 0 4px; font-family: var(--serif); font-size: 19px; color: var(--gold-hi); }
.ld-head small { font-size: 12.5px; color: var(--muted); }
.letter-saved-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; max-height: 440px; }
.letter-empty { padding: 26px 14px; text-align: center; font-size: 14px; line-height: 1.8; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 4px; }
.saved-letter-card {
  padding: 12px 14px; border-radius: 4px;
  background: rgba(255, 240, 210, .03); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
}
.sl-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; }
.sl-head strong { font-size: 15px; color: var(--gold-hi); font-family: var(--serif); }
.sl-head span { color: var(--muted); }
.sl-excerpt { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sl-actions { display: flex; justify-content: space-between; align-items: center; }
.btn-gold-sm {
  padding: 4px 12px; border-radius: 3px;
  border: 1px solid rgba(214, 163, 68, .55); background: rgba(214, 163, 68, .14);
  font-size: 13px; font-weight: 700; color: var(--gold-hi);
}
.btn-gold-sm:hover { background: rgba(214, 163, 68, .25); }
.btn-text-sm { border: none; background: none; font-size: 12.5px; color: var(--muted); }
.btn-text-sm:hover { color: #ff9d92; }

/* 全屏朗读弹窗 */
.letter-fullscreen {
  width: 100vw; max-width: 100vw;
  height: 100vh; max-height: 100vh;
  margin: 0; padding: 36px; border: 0;
  background: rgba(6, 8, 11, .92);
  display: none; place-items: center;
}
.letter-fullscreen[open] { display: grid; }
.letter-fullscreen::backdrop { background: rgba(4, 5, 7, .88); backdrop-filter: blur(8px); }
.lf-sheet {
  position: relative;
  width: min(1060px, 92vw);
  max-height: 88vh;
  overflow-y: auto;
  padding: 52px 64px 44px;
  color: var(--paper-ink);
  background:
    var(--noise-paper),
    repeating-linear-gradient(180deg, transparent 0 48px, rgba(168, 35, 26, .13) 48px 49px),
    radial-gradient(120% 90% at 25% 0%, #f8f1df 0%, var(--paper) 55%, var(--paper-2) 100%);
  border-radius: 3px;
  outline: 2px solid rgba(168, 35, 26, .45);
  outline-offset: -14px;
  box-shadow: 0 40px 110px rgba(0, 0, 0, .82), inset 0 0 80px rgba(120, 80, 30, .2);
}
.lf-seal {
  position: absolute; left: 52px; bottom: 42px;
  width: 68px; height: 68px; display: grid; place-items: center;
  border: 3px solid var(--paper-red); border-radius: 4px;
  color: var(--paper-red); font-family: var(--serif); font-weight: 900; font-size: 16px; line-height: 1.15;
  text-align: center; letter-spacing: 2px; transform: rotate(-8deg); opacity: .82;
}
.lf-close {
  position: absolute; right: 28px; top: 24px;
  padding: 6px 14px; border-radius: 4px;
  border: 1px solid rgba(168, 35, 26, .45); background: rgba(168, 35, 26, .08);
  color: var(--paper-red); font-size: 14px; font-weight: 700;
}
.lf-kicker { margin: 0 0 18px; font-size: 14px; letter-spacing: 4px; color: var(--paper-red); font-weight: 700; }
.lf-salutation { margin: 0 0 18px; font-family: var(--kai); font-size: 32px; font-weight: 700; color: var(--paper-ink); }
.lf-body { font-family: var(--kai); font-size: 28px; line-height: 1.95; color: var(--paper-ink); min-height: 180px; }
.lf-footer { margin-top: 32px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-family: var(--serif); }
.lf-author { font-size: 24px; font-weight: 900; color: var(--paper-ink); }
.lf-date { font-size: 15px; color: #6e573e; }

@media (max-width: 980px) {
  .sublimation-cols, .letter-stage { grid-template-columns: 1fr; }
}

/* ================= 第四幕 · 写实互动漫剧预告（comicTeaser.js） ================= */
.sheet-body.seg-type-comic.has-teaser { padding: 14px 18px 16px; overflow: hidden; display: flex; flex-direction: column; }
.ct-wrap { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; container-type: size; }
.ct-stage {
  position: relative;
  width: min(100cqw, calc(100cqh * 16 / 9));
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  background: #050607;
  border: 1px solid rgba(214, 163, 68, .28);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
  container-type: inline-size;
  outline: none;
  user-select: none;
}
.ct-stage.is-paused *, .ct-stage.is-paused *::before, .ct-stage.is-paused *::after { animation-play-state: paused !important; }

.ct-visuals, .ct-visual, .ct-layer { position: absolute; inset: 0; }
.ct-layer { pointer-events: none; }
.ct-layer > * { pointer-events: auto; }
.ct-visual { transition: opacity .7s var(--ease-io), filter 1.2s var(--ease-io), transform 1.6s var(--ease-out); }
.ct-visual.is-entering { opacity: 0; }
.ct-visual.is-leaving { opacity: 0; }
.ct-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: #050607; }
.ct-kb { animation: ct-kenburns 14s ease-in-out infinite alternate; transform-origin: 60% 45%; }
@keyframes ct-kenburns {
  from { transform: scale(1.03) translate(0, 0); }
  to   { transform: scale(1.16) translate(-2.2%, -1.2%); }
}
.ct-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, .55) 100%),
    linear-gradient(180deg, rgba(5, 6, 7, .45) 0%, transparent 18%, transparent 62%, rgba(5, 6, 7, .78) 100%);
}

/* 分格 */
.ct-panels { background: #050607; }
.ct-panel {
  position: absolute; top: 0; bottom: 0;
  overflow: hidden;
  opacity: 0;
  filter: brightness(.15) saturate(.4);
  transform: translateY(1.2%) scale(1.015);
  transition: opacity .8s var(--ease-out), filter 1.1s var(--ease-out), transform 1.1s var(--ease-out);
}
.ct-panel.lit { opacity: 1; filter: brightness(1) saturate(1); transform: none; }
.ct-panel::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(242, 211, 139, .22), inset 0 0 60px rgba(0, 0, 0, .55);
}
.ct-breakout { transition: clip-path .9s var(--ease-out), opacity .7s var(--ease-io), filter 1.2s var(--ease-io); }

/* 状态：定格 / 压暗 */
.ct-visual.is-frozen { filter: grayscale(1) contrast(1.12) brightness(.72); transform: scale(1.06); }
.ct-visual.is-frozen .ct-kb { animation-play-state: paused; }
.ct-visual.is-dimmed { filter: brightness(.38) saturate(.7) blur(2px); transform: scale(1.04); }
.ct-stage.is-frozen-stage .ct-vignette {
  background:
    radial-gradient(70% 60% at 50% 50%, rgba(5, 6, 7, .35), rgba(5, 6, 7, .82) 100%);
}

/* 宋体旁白框 */
.ct-caption {
  position: absolute; left: 3.2%; top: 11%;
  max-width: 34%;
  padding: 1.1cqw 1.4cqw 1.2cqw;
  background: linear-gradient(135deg, rgba(14, 12, 10, .92), rgba(22, 18, 14, .86));
  border: 1px solid rgba(214, 163, 68, .4);
  border-left: 3px solid var(--gold);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .55);
  animation: ct-rise .6s var(--ease-out) both;
  transition: opacity .35s;
}
.ct-caption.is-leaving { opacity: 0; }
.ct-caption-tag { display: block; margin-bottom: .5cqw; font-size: max(11px, .78cqw); letter-spacing: .35em; color: var(--gold); font-weight: 700; }
.ct-caption p { margin: 0; min-height: 3.2em; font-family: var(--serif); font-size: max(15px, 1.32cqw); line-height: 1.7; color: #f4ead6; letter-spacing: .06em; }

/* 黑金对白条 */
.ct-line {
  position: absolute; left: 4%; right: 4%; bottom: 4.6%;
  display: flex; align-items: center; gap: 1.6cqw;
  min-height: 9.4cqw;
  padding: 1.2cqw 2cqw 1.2cqw 1.4cqw;
  background: linear-gradient(180deg, rgba(14, 12, 10, .93), rgba(6, 6, 7, .96));
  border: 1px solid rgba(214, 163, 68, .5);
  border-top: 2px solid var(--gold);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .65), inset 0 0 0 1px rgba(255, 230, 180, .05);
  animation: ct-rise .5s var(--ease-out) both;
  transition: opacity .3s;
}
.ct-line.is-leaving { opacity: 0; }
.ct-avatar {
  flex-shrink: 0;
  width: 7.4cqw; height: 7.4cqw; min-width: 64px; min-height: 64px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--gold-hi), var(--gold-deep));
  box-shadow: 0 8px 20px rgba(0, 0, 0, .6);
}
.ct-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.ct-line-body { flex: 1; min-width: 0; }
.ct-plate {
  display: inline-block;
  margin-bottom: .55cqw;
  padding: .2cqw 1cqw;
  font-family: var(--serif); font-weight: 900;
  font-size: max(13px, 1.02cqw); letter-spacing: .3em;
  border-radius: 2px;
}
.plate-red .ct-plate { background: linear-gradient(135deg, var(--red), var(--red-deep)); color: #fff0d6; box-shadow: inset 0 0 0 1px rgba(255, 210, 150, .35); }
.plate-gold .ct-plate { background: linear-gradient(135deg, #e3b65a, #8a6420); color: #241606; box-shadow: inset 0 0 0 1px rgba(255, 240, 200, .4); }
.ct-line-text {
  margin: 0;
  min-height: 1.6em;
  font-family: var(--serif); font-weight: 700;
  font-size: max(17px, 1.75cqw); line-height: 1.6;
  color: #fbf2df; letter-spacing: .05em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .6);
}
.ct-cta { flex-shrink: 0; opacity: 0; pointer-events: none; transform: translateX(10px); transition: opacity .5s, transform .5s var(--ease-out); }
.ct-cta.in { opacity: 1; pointer-events: auto; transform: none; }

/* 定格抉择 */
.ct-freeze {
  position: absolute; left: 50%; top: 47%;
  width: min(76%, 980px);
  transform: translate(-50%, -46%);
  text-align: center;
  opacity: 0;
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.ct-freeze.in { opacity: 1; transform: translate(-50%, -50%); }
.ct-freeze-kicker { margin: 0 0 1cqw; font-size: max(12px, .9cqw); letter-spacing: .6em; color: var(--red-hi); font-weight: 800; }
.ct-freeze-q {
  margin: 0 0 2.2cqw;
  font-family: var(--serif); font-weight: 900;
  font-size: max(26px, 3.1cqw); letter-spacing: .1em;
  color: #fff6e4;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .85);
}
.ct-choices { display: flex; flex-direction: column; align-items: center; gap: .9cqw; }
.ct-choice {
  display: flex; align-items: center; gap: 1.1cqw;
  width: min(100%, 40cqw);
  min-height: 3.6cqw;
  padding: .7cqw 1.6cqw;
  border: 1px solid rgba(214, 163, 68, .5);
  border-radius: 3px;
  background: rgba(10, 9, 8, .82);
  font-family: var(--serif); font-weight: 700;
  font-size: max(16px, 1.42cqw); letter-spacing: .08em;
  color: #f4ead6; text-align: left;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s var(--ease-out), opacity .3s;
}
.ct-choice:hover:not(:disabled) { background: rgba(122, 19, 13, .85); border-color: var(--gold-hi); transform: translateX(4px); }
.ct-choice-no {
  flex-shrink: 0;
  width: 2.1cqw; height: 2.1cqw; min-width: 24px; min-height: 24px;
  display: inline-grid; place-items: center;
  border: 1px solid var(--gold); border-radius: 50%;
  font-family: var(--mono); font-size: max(12px, .95cqw); color: var(--gold-hi);
}
.ct-freeze.answered .ct-choice { cursor: default; opacity: .45; }
.ct-freeze.answered .ct-choice.picked { opacity: 1; background: linear-gradient(135deg, var(--red), var(--red-deep)); border-color: var(--gold-hi); }
.ct-freeze-note {
  margin: 1.8cqw auto 0;
  min-height: 1.6em;
  font-family: var(--serif); font-size: max(15px, 1.35cqw); letter-spacing: .08em;
  color: var(--gold-hi);
  opacity: 0; transform: translateY(6px);
  transition: opacity .6s, transform .6s var(--ease-out);
}
.ct-freeze-note.in { opacity: 1; transform: none; }
.ct-freeze-timer { width: 40cqw; max-width: 100%; height: 2px; margin: 1.2cqw auto 0; background: rgba(255, 236, 200, .12); overflow: hidden; }
.ct-freeze-timer i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--red-hi), var(--gold)); transform-origin: left; transform: scaleX(1); }
.ct-freeze-timer i.run { animation: ct-countdown linear forwards; }
.ct-freeze.answered .ct-freeze-timer { opacity: 0; transition: opacity .3s; }
@keyframes ct-countdown { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* 角色走出画格 */
.ct-stepout { position: absolute; inset: 0; pointer-events: none; }
.ct-so-frame {
  position: absolute; right: 9%; top: 10%;
  width: 30%; height: 62%;
  clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
  background: #0b0b0c;
  transition: opacity 1s;
}
.ct-so-frame::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 2px rgba(242, 211, 139, .55); }
.ct-so-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: filter 1.2s, opacity 1.2s; }
.ct-so-figure {
  position: absolute; right: 9%; top: 10%;
  width: 30%; height: 62%;
  clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
  transition: all 1.3s var(--ease-out);
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .7));
}
.ct-so-figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }
.ct-stepout.out .ct-so-frame img { filter: grayscale(1) brightness(.18); }
.ct-stepout.out .ct-so-figure {
  right: 36%; top: 7%;
  width: 31cqw; height: 31cqw;
  clip-path: polygon(-30% -30%, 130% -30%, 130% 130%, -30% 130%);
  border-radius: 50%;
  overflow: hidden;
  filter: none;
  box-shadow: 0 0 0 4px rgba(214, 163, 68, .9), 0 0 0 10px rgba(122, 19, 13, .55), 0 30px 70px rgba(0, 0, 0, .75);
}
.ct-so-kicker {
  position: absolute; left: 4%; top: 13%;
  padding: .5cqw 1.2cqw;
  font-family: var(--serif); font-size: max(13px, 1.05cqw); letter-spacing: .3em;
  color: var(--gold-hi);
  border-left: 3px solid var(--red);
  background: rgba(10, 9, 8, .75);
  opacity: 0; transform: translateX(-10px);
  transition: opacity .7s .9s, transform .7s .9s var(--ease-out);
}
.ct-stepout.out .ct-so-kicker { opacity: 1; transform: none; }

/* 黑场字幕 / 结尾 */
.ct-blackout { background: radial-gradient(80% 70% at 50% 50%, #14100c, #030304 75%); display: grid; place-items: center; }
.ct-title { text-align: center; }
.ct-title h2 {
  margin: 0;
  font-family: var(--serif); font-weight: 900;
  font-size: max(36px, 5.2cqw); letter-spacing: .5em; text-indent: .5em;
  color: var(--gold-hi);
  text-shadow: 0 0 36px rgba(214, 163, 68, .35), 0 4px 18px rgba(0, 0, 0, .9);
  animation: ct-title-in 2.6s var(--ease-out) both;
}
.ct-title p {
  margin: 1.6cqw 0 0;
  font-family: var(--serif); font-size: max(14px, 1.2cqw); letter-spacing: .4em;
  color: var(--text-2);
  animation: ct-fade 1.2s 1.4s both;
}
@keyframes ct-title-in { from { opacity: 0; letter-spacing: .9em; filter: blur(6px); } to { opacity: 1; letter-spacing: .5em; filter: none; } }
@keyframes ct-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ct-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.ct-stage.is-ended .ct-title { transform: translateY(-14%); transition: transform 1s var(--ease-out); }
.ct-endcard {
  position: absolute; left: 0; right: 0; bottom: 18%;
  display: flex; justify-content: center; gap: 16px;
  animation: ct-rise .7s .3s var(--ease-out) both;
}

/* HUD */
.ct-progress { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: rgba(255, 236, 200, .08); z-index: 6; }
.ct-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red-hi), var(--gold)); transition: width .8s var(--ease-out); }
.ct-parts {
  position: absolute; left: 2.2%; top: 3.6%; z-index: 6;
  display: flex; align-items: center; gap: .5cqw;
  padding: .45cqw .9cqw;
  background: rgba(8, 8, 9, .72);
  border: 1px solid rgba(214, 163, 68, .3);
  border-radius: 3px;
}
.ct-parts span {
  width: 2.1cqw; height: 2.1cqw; min-width: 24px; min-height: 24px;
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 900; font-size: max(13px, 1.05cqw);
  color: var(--muted);
  border-radius: 2px;
  transition: background .4s, color .4s;
}
.ct-parts span.done { color: var(--gold); }
.ct-parts span.active { background: linear-gradient(135deg, var(--red), var(--red-deep)); color: #fff0d6; box-shadow: 0 0 14px rgba(198, 42, 31, .55); }
.ct-parts b { width: .8cqw; min-width: 8px; height: 1px; background: rgba(214, 163, 68, .35); }
.ct-topright { position: absolute; right: 2.2%; top: 3.6%; z-index: 6; display: flex; flex-direction: column; align-items: flex-end; gap: .6cqw; }
.ct-badge {
  display: flex; align-items: center; gap: 8px;
  padding: .4cqw 1cqw;
  font-family: var(--serif); font-size: max(12px, .92cqw); letter-spacing: .2em;
  color: var(--gold-hi);
  background: rgba(8, 8, 9, .78);
  border: 1px solid rgba(214, 163, 68, .5);
  border-radius: 3px;
}
.ct-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red-hi); box-shadow: 0 0 8px var(--red-hi); animation: ct-blink 1.6s ease-in-out infinite; }
@keyframes ct-blink { 50% { opacity: .3; } }
.ct-controls { display: flex; gap: 6px; opacity: .55; transition: opacity .2s; }
.ct-stage:hover .ct-controls, .ct-stage.is-paused .ct-controls { opacity: 1; }
.ct-ctl {
  height: 28px; padding: 0 10px;
  border: 1px solid rgba(255, 236, 200, .2); border-radius: 3px;
  background: rgba(8, 8, 9, .72);
  font-size: 12.5px; letter-spacing: 1px; color: var(--text-2);
  cursor: pointer;
}
.ct-ctl:hover { border-color: var(--gold); color: #fff3d8; }
.ct-ctl kbd { margin-left: 4px; font-family: var(--sans); font-size: 11px; color: var(--muted); }
.ct-paused-tip {
  position: absolute; left: 50%; top: 50%; z-index: 7;
  transform: translate(-50%, -50%);
  padding: 10px 22px;
  font-family: var(--serif); font-size: 18px; letter-spacing: .3em;
  color: var(--gold-hi);
  background: rgba(8, 8, 9, .82);
  border: 1px solid rgba(214, 163, 68, .5);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.ct-stage.is-paused .ct-paused-tip { opacity: 1; }
.ct-watermark { z-index: 6; right: 1.4%; bottom: 1.2%; font-size: max(11px, .78cqw); }
.ct-stage .ct-line { bottom: 6%; }

.ct-stage.is-ended .ct-controls { display: none; }
.ct-so-frame, .ct-so-figure { top: 15%; height: 56%; right: 7%; }
