/* 《青松苑 4 号楼》一屏流沉浸样式系统 (v1.1.0)
 * - 锁定 100dvh 零外层滚动，选项永远处于首屏底端
 * - 去提示化：隐藏冗余数字角标与红边剧透，用时钟、微光与光影传递压迫感
 */

:root {
  --paper: #0E1013;
  --surface: #151920;
  --surface-elev: #1B2028;
  --ink: #F0F2F5;
  --ink2: #C8CFD8;
  --mute: #8D96A3;
  --hair: #2A303A;

  --yellow-paper: #EAE3D2;
  --paper-ink: #1C1B18;
  --stamp-red: #C83226;
  --accent: #D93829;
  --accent-text: #FF8577;
  --ballpoint-blue: #2A5CA8;
  --accent-2: #3B8EE6;
  --accent-2-text: #85C4FF;
  --crt-green: #4E8C62;
  --crt-bright: #68C184;
  --rust-brown: #8C4A2B;
  --gold-seal: #C9A86A;
  --red-pen: #9E2A2B;

  --font-display: "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --font-body: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ambient-tint: rgba(78, 140, 98, 0.06);
  --ambient-line: rgba(78, 140, 98, 0.35);
  --vignette-alpha: 0.14;
  --vignette-color: 0, 0, 0;
}

html[data-book="B1"] { --ambient-tint: rgba(130, 195, 160, 0.07); --ambient-line: #4E8C62; }
html[data-book="B2"] { --ambient-tint: rgba(78, 140, 98, 0.10); --ambient-line: #68C184; }
html[data-book="B3"] { --ambient-tint: rgba(186, 118, 56, 0.09); --ambient-line: #8C4A2B; }
html[data-book="B4"] { --ambient-tint: rgba(205, 214, 224, 0.07); --ambient-line: #8E96A0; }

html[data-exposure-tier="0"] { --vignette-alpha: 0.12; --vignette-color: 0, 0, 0; }
html[data-exposure-tier="1"] { --vignette-alpha: 0.32; --vignette-color: 8, 4, 6; }
html[data-exposure-tier="2"] { --vignette-alpha: 0.56; --vignette-color: 48, 8, 12; }
html[data-exposure-tier="3"] { --vignette-alpha: 0.78; --vignette-color: 70, 6, 10; }

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

*::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

body {
  background-image:
    radial-gradient(ellipse at 50% 0%, var(--ambient-tint) 0%, transparent 65%),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.012) 0px,
      rgba(255, 255, 255, 0.012) 1px,
      transparent 1px,
      transparent 3px
    );
}

.hidden { display: none !important; }
.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }

/* 雨夜粒子底层画布 */
.rain-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 38;
}

/* 时间倒流过场遮罩 */
.rewind-layer {
  position: fixed;
  inset: 0;
  z-index: 118;
  background: rgba(8, 10, 13, 0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.rewind-layer.active {
  opacity: 1;
  pointer-events: all;
}
.rewind-clock {
  font-size: 42px;
  font-weight: 700;
  color: var(--accent-text);
  letter-spacing: 0.08em;
  text-shadow: 0 0 18px rgba(217, 56, 41, 0.45);
}
.rewind-sub {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--yellow-paper);
  text-align: center;
  letter-spacing: 0.04em;
}

/* 视觉污染层 */
.exposure-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  background: radial-gradient(
    circle at 50% 45%,
    transparent 42%,
    rgba(var(--vignette-color), var(--vignette-alpha)) 100%
  );
  transition: background 0.45s ease;
}

.exposure-scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 41;
  opacity: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(104, 193, 132, 0.04) 0px,
    rgba(104, 193, 132, 0.04) 1px,
    transparent 1px,
    transparent 3px
  );
  transition: opacity 0.4s ease;
}

html[data-book="B2"] .exposure-scanlines { opacity: 0.75; }

@keyframes fluorescent-flicker {
  0%, 96%, 100% { opacity: 1; }
  97% { opacity: 0.86; }
  98% { opacity: 0.98; }
  99% { opacity: 0.89; }
}
html[data-book="B1"] .app-shell { animation: fluorescent-flicker 11s infinite; }

@keyframes clock-glitch {
  0%, 92%, 100% { transform: translateX(0); color: var(--ink); }
  93% { transform: translateX(-1px); color: var(--accent-text); }
  95% { transform: translateX(1px); color: var(--accent-2-text); }
}
html[data-exposure-tier="1"] .hud-clock,
html[data-exposure-tier="2"] .hud-clock { animation: clock-glitch 18s infinite; }

@keyframes pulse-red {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.hud-clock.is-urgent {
  color: var(--accent-text);
  animation: pulse-red 1.3s infinite;
}

html[data-exposure-tier="2"] .option-btn.is-hallucination {
  text-shadow: -1px 0 rgba(217, 56, 41, 0.7), 1px 0 rgba(59, 142, 230, 0.7);
}

/* 悬浮非占位证物提示（丝滑升降） */
@keyframes toastSlideIn {
  from { opacity: 0; transform: translate(-50%, -10px) scale(0.96); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

.floating-toast {
  position: fixed;
  top: 46px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  pointer-events: none;
  background: rgba(18, 24, 34, 0.95);
  border: 1px solid rgba(59, 142, 230, 0.6);
  color: #CFE6FF;
  font-size: 12px;
  padding: 5px 12px;
  white-space: nowrap;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
  animation: toastSlideIn 0.24s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.floating-toast.is-hiding {
  opacity: 0;
  transform: translate(-50%, -8px) scale(0.97);
}

/* 黑屏过渡层 */
.exposure-blackout {
  position: fixed;
  inset: 0;
  background: #050506;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.exposure-blackout.active { opacity: 1; pointer-events: all; }
.blackout-quote {
  max-width: 340px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.7;
  color: #EAE3D2;
}

/* 一屏锁定视口 */
.app-shell {
  width: 100%;
  max-width: 460px;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(14, 16, 19, 0.94);
  border-left: 1px solid rgba(42, 48, 58, 0.5);
  border-right: 1px solid rgba(42, 48, 58, 0.5);
  position: relative;
}

/* 40px 顶部固定细栏 HUD */
.top-hud {
  flex: 0 0 40px;
  height: 40px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(14, 16, 19, 0.96);
  border-bottom: 1px solid var(--hair);
  box-shadow: 0 1px 0 var(--ambient-line);
  z-index: 30;
}

.hud-left, .hud-right {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.hud-icon-btn {
  background: transparent;
  border: 1px solid var(--hair);
  color: var(--ink2);
  height: 26px;
  padding: 0 7px;
  font-size: 11.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.hud-clock {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ap-dots {
  display: flex;
  gap: 4px;
  align-items: center;
}

.ap-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--crt-bright);
  box-shadow: 0 0 5px rgba(104, 193, 132, 0.55);
}
.ap-dot.spent { background: #262C35; box-shadow: none; }
.ap-dot.danger { background: var(--accent); box-shadow: 0 0 7px rgba(217, 56, 41, 0.9); }

.anomaly-track {
  width: 36px;
  height: 3px;
  background: #232832;
  overflow: hidden;
}
.anomaly-fill {
  height: 100%;
  background: var(--accent-2);
  transition: width 0.35s ease, background 0.35s ease;
}
html[data-exposure-tier="1"] .anomaly-fill { background: #D49A45; }
html[data-exposure-tier="2"] .anomaly-fill,
html[data-exposure-tier="3"] .anomaly-fill { background: var(--accent); animation: pulse-red 1.2s infinite; }

/* 主视口容器：一屏内部自适应 */
.main-stage {
  flex: 1 1 auto;
  min-height: 0;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* PLAY 视图上下分区：文档区可微滚，选项区永远固定在首屏底端 */
@keyframes docEnter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes optEnter {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.play-layout {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.play-layout.is-leaving {
  opacity: 0;
  transform: translateY(-4px);
}

.stage-doc-zone {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 1px 2px;
}

.stage-doc-zone > * {
  animation: docEnter 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.stage-options-zone {
  flex: 0 0 auto;
  padding-top: 4px;
  border-top: 1px solid rgba(42, 48, 58, 0.55);
}

.stage-options-zone .option-btn {
  animation: optEnter 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.stage-options-zone .option-btn:nth-child(1) { animation-delay: 0.03s; }
.stage-options-zone .option-btn:nth-child(2) { animation-delay: 0.05s; }
.stage-options-zone .option-btn:nth-child(3) { animation-delay: 0.07s; }
.stage-options-zone .option-btn:nth-child(4) { animation-delay: 0.09s; }
.stage-options-zone .option-btn:nth-child(5) { animation-delay: 0.11s; }
.stage-options-zone .option-btn:nth-child(6) { animation-delay: 0.13s; }

.scene-banner-img {
  width: 100%;
  height: 74px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--hair);
  filter: contrast(1.06) brightness(0.86);
  flex-shrink: 0;
}

/* =========================================================
 * 三幕互动式开场分镜 (ColdOpen)
 * ========================================================= */
.cold-open-view {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  overflow: hidden;
  animation: docEnter 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.cold-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 0 0 auto;
}
.cold-mini-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--hair);
  color: var(--ink2);
  font-size: 11.5px;
  padding: 4px 8px;
  cursor: pointer;
}
.cold-dots { display: flex; gap: 6px; align-items: center; }
.cold-dot { width: 16px; height: 3px; background: #2A303A; transition: background 0.25s ease; }
.cold-dot.done { background: var(--accent-2); }
.cold-dot.active { background: var(--stamp-red); }

.cold-stage-center {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  gap: 12px;
  overflow-y: auto;
  overflow-x: hidden;
}
.cold-stage-center.compact-gap { gap: 8px; }
.cold-caption-wrap { text-align: center; }
.cold-eyebrow { font-size: 11px; color: var(--accent-text); letter-spacing: 0.08em; margin-bottom: 4px; }
.cold-headline {
  font-family: var(--font-display);
  font-size: 19.5px;
  font-weight: 900;
  line-height: 1.3;
  margin: 0;
  color: var(--ink);
}

/* 第1幕：执勤证登记卡 */
.badge-card {
  background: var(--surface-elev);
  border: 1px solid var(--hair);
  border-top: 3px solid var(--accent-2);
  padding: 13px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.badge-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--accent-2-text);
  border-bottom: 1px solid var(--hair);
  padding-bottom: 6px;
}
.badge-seal {
  border: 1px solid var(--stamp-red);
  color: var(--accent-text);
  padding: 1px 5px;
  font-size: 10px;
}
.badge-field { display: flex; flex-direction: column; gap: 5px; }
.badge-label { font-size: 11.5px; color: var(--mute); }
.badge-name-row { display: flex; gap: 6px; }
.badge-input {
  flex: 1;
  min-width: 0;
  background: #0D1014;
  border: 1px solid #353D4B;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14.5px;
  padding: 7px 10px;
  outline: none;
}
.badge-input:focus { border-color: var(--accent-2); }
.badge-rand-btn {
  background: var(--surface);
  border: 1px solid var(--hair);
  color: var(--ink2);
  font-size: 12px;
  padding: 0 10px;
  cursor: pointer;
  white-space: nowrap;
}
.gender-pills { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gender-pill {
  background: #101318;
  border: 1px solid var(--hair);
  color: var(--mute);
  padding: 7px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.gender-pill.active {
  border-color: var(--accent-2);
  background: rgba(59, 142, 230, 0.14);
  color: var(--ink);
}
.badge-duty {
  background: rgba(0, 0, 0, 0.28);
  border-left: 2px solid var(--stamp-red);
  padding: 7px 10px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink2);
}

/* 第2幕：孤楼疑云对比 */
.intel-grid { display: flex; flex-direction: column; gap: 10px; }
.intel-card {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-left: 3px solid var(--accent-2);
  padding: 10px 12px;
}
.intel-card.is-red { border-left-color: var(--stamp-red); }
.intel-tag { font-size: 11px; color: var(--accent-2-text); margin-bottom: 6px; }
.intel-card.is-red .intel-tag { color: var(--accent-text); }
.intel-desc { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink2); }
.mini-elev-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  padding: 6px 8px;
  background: #090B0E;
  border: 1px solid #252B34;
}
.mini-led { font-size: 13.5px; font-weight: 700; color: #FF5B4D; min-width: 72px; }
.mini-led.is-glitch { color: #FFF; text-shadow: -1px 0 #FF3B30, 1px 0 #3B8EE6; }
.mini-keys { display: flex; gap: 5px; }
.mini-keys span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #4A5260;
  color: var(--ink2);
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mini-keys span.welded { border-style: dashed; border-color: #5C2B2E; color: #8A4348; }

/* 第3幕：拦停与录音机紧凑样式 */
.scene-quote-bar {
  background: rgba(200, 50, 38, 0.1);
  border-left: 2px solid var(--stamp-red);
  padding: 7px 10px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #EBD8D5;
}
.recorder-box.compact { padding: 7px 10px; }
.recorder-box.compact .recorder-head { margin-bottom: 5px; }
.wave-strip.compact { height: 20px; }
.witness-stack.compact { gap: 5px; }
.witness-card.compact { padding: 6px 9px; }
.witness-card.compact .witness-quote { font-size: 12.5px; line-height: 1.42; }
.dossier-head { display: flex; justify-content: space-between; align-items: center; }

/* 废弃旧版电梯面板样式已清理，改用 .mini-elev-row */

/* 分镜2：录音机与动态声波 */
.recorder-box {
  background: #0A0D10;
  border: 1px solid #2A323C;
  padding: 10px 12px;
}
.recorder-head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--crt-bright);
  margin-bottom: 8px;
}
.wave-strip {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
@keyframes wavePulse {
  0%, 100% { height: 22%; opacity: 0.55; }
  50% { height: 95%; opacity: 1; }
}
.wave-bar {
  flex: 1;
  height: 40%;
  background: var(--crt-bright);
  animation: wavePulse 0.72s ease-in-out infinite;
}
.wave-bar:nth-child(3n) { background: var(--accent); }

.witness-stack { display: flex; flex-direction: column; gap: 7px; }
.witness-card {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-left: 3px solid var(--accent-2);
  padding: 8px 10px;
  animation: docEnter 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.witness-who { font-size: 11px; color: var(--accent-2-text); margin-bottom: 2px; }
.witness-quote { font-size: 13px; line-height: 1.48; color: var(--ink); }

/* 分镜3：档案袋与撕封条动效 */
.dossier-envelope {
  position: relative;
  background: #D9CEB2;
  color: #1D1B17;
  padding: 16px 14px 20px;
  border: 1px solid #B7AA8A;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.52);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
}
.dossier-envelope.is-torn { transform: scale(1.04); opacity: 0.12; }
.dossier-head {
  font-size: 11px;
  font-weight: 700;
  color: #5C523D;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  padding-bottom: 6px;
  margin-bottom: 10px;
}
.dossier-body-text p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.6; color: #24211C; }
.dossier-seal-band {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.seal-half {
  flex: 1;
  background: var(--stamp-red);
  color: #FFF5F2;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  padding: 6px 4px;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.42s ease;
}
.seal-knot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #9E1F16;
  color: #FFE7E2;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #F2B5AA;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.dossier-envelope.is-torn .seal-half.left { transform: translateX(-28px) rotate(-6deg); opacity: 0; }
.dossier-envelope.is-torn .seal-half.right { transform: translateX(28px) rotate(6deg); opacity: 0; }
.dossier-envelope.is-torn .seal-knot { transform: scale(1.4); opacity: 0; }

.btn-primary.cold-cta,
.cold-cta {
  flex: 0 0 auto;
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
}
@keyframes ctaBreath {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200, 50, 38, 0.55); }
  50% { box-shadow: 0 0 0 8px rgba(200, 50, 38, 0); }
}
.cold-cta.pulse-cta { animation: ctaBreath 1.8s infinite; }

/* =========================================================
 * 一屏流档案大厅
 * ========================================================= */
.lobby-view {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.lobby-banner {
  position: relative;
  height: 72px;
  border: 1px solid var(--hair);
  overflow: hidden;
  flex-shrink: 0;
}
.lobby-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.48) contrast(1.08);
  display: block;
}
.lobby-banner-overlay {
  position: absolute;
  inset: 0;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, rgba(14, 16, 19, 0.88), rgba(14, 16, 19, 0.4));
}
.lobby-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  margin: 0;
  line-height: 1.2;
}
.lobby-sub {
  font-size: 11.5px;
  color: var(--mute);
  margin-top: 2px;
}
.lobby-counter {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink2);
  line-height: 1.45;
}

.book-list {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 7px;
  overflow-y: auto;
  overflow-x: hidden;
}

.book-card {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-left: 3px solid var(--hair);
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.book-card.unlocked { border-left-color: var(--accent-2); }
.book-card.completed { border-left-color: var(--gold-seal); }
.book-tag-rec {
  border: 1px solid rgba(201, 168, 106, 0.55);
  background: rgba(201, 168, 106, 0.1);
  padding: 1px 5px;
}

.book-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.book-title {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}
.book-meta {
  font-size: 11.5px;
  color: var(--mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.book-teaser {
  font-size: 12.5px;
  color: var(--ink2);
  margin: 0;
  line-height: 1.4;
}
.book-actions {
  display: flex;
  gap: 6px;
}

.lobby-footer-bar {
  flex: 0 0 auto;
  display: flex;
  gap: 6px;
}

.btn-primary, .btn-secondary, .btn-danger {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 10px;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--stamp-red); color: #FFF7F5; flex: 1; }
.btn-secondary { background: transparent; border-color: var(--hair); color: var(--ink2); }
.btn-danger { background: transparent; border-color: var(--stamp-red); color: var(--accent-text); }
.btn-primary:disabled, .btn-secondary:disabled { opacity: 0.4; cursor: not-allowed; }

/* =========================================================
 * 六大 DocStyle 紧凑拟真皮肤
 * ========================================================= */
.doc-card.style-narrative { padding: 2px 2px; }
.doc-card.style-narrative .doc-title {
  font-family: var(--font-display);
  font-size: 17.5px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink);
}
.doc-card.style-narrative p {
  margin: 0 0 8px;
  font-size: 14.5px;
  line-height: 1.68;
  color: #DCE1E8;
}
.doc-card.style-narrative p:last-child { margin-bottom: 0; }
.doc-card.style-narrative p.audio-cue {
  padding-left: 10px;
  border-left: 2px solid var(--ambient-line);
  color: var(--ink2);
  font-style: italic;
}

.doc-card.style-red_stamp_notice {
  position: relative;
  background: var(--yellow-paper);
  color: var(--paper-ink);
  padding: 13px 14px 16px;
  border: 1px solid #C8BE9E;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.42);
}
.notice-header {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
  color: var(--stamp-red);
  padding-bottom: 5px;
  margin-bottom: 9px;
  border-bottom: 2px double var(--stamp-red);
}
.doc-card.style-red_stamp_notice p {
  font-family: var(--font-display);
  font-size: 13.5px;
  line-height: 1.62;
  color: #211F1B;
  margin: 0 0 6px;
}
.doc-card.style-red_stamp_notice p:last-of-type { margin-bottom: 0; }
.official-seal-wrap {
  position: absolute;
  right: 10px;
  bottom: 8px;
  width: 74px;
  height: 74px;
  opacity: 0.72;
  transform: rotate(-8deg);
  pointer-events: none;
}

.doc-card.style-blue_handwrite {
  position: relative;
  margin-top: 8px;
  background: #EFE7CF;
  color: var(--ballpoint-blue);
  padding: 16px 14px 12px;
  border: 1px solid #CFC3A2;
  transform: rotate(-0.5deg);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.42);
}
.tape-strip {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(1.5deg);
  width: 72px;
  height: 16px;
  background: rgba(236, 229, 200, 0.58);
  border-left: 1px dashed rgba(0, 0, 0, 0.18);
  border-right: 1px dashed rgba(0, 0, 0, 0.18);
}
.doc-card.style-blue_handwrite .doc-title {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ballpoint-blue);
  margin: 0 0 7px;
  border-bottom: 1px dashed rgba(42, 92, 168, 0.35);
  padding-bottom: 4px;
}
.doc-card.style-blue_handwrite p {
  font-size: 13.8px;
  line-height: 1.62;
  color: var(--ballpoint-blue);
  margin: 0 0 6px;
}
.doc-card.style-blue_handwrite p.red-ink { color: var(--red-pen); font-weight: 600; }
.doc-card.style-blue_handwrite p.imprint-line {
  color: rgba(42, 92, 168, 0.62);
  font-size: 12.5px;
  border-top: 1px dotted rgba(42, 92, 168, 0.3);
  padding-top: 6px;
  margin-top: 6px;
}

.doc-card.style-wechat_group {
  background: #111317;
  border: 1px solid #2A2E35;
  overflow: hidden;
}
.wx-topbar {
  background: #181B20;
  border-bottom: 1px solid #262A32;
  padding: 7px 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
}
.wx-feed { padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.wx-time-pill {
  align-self: center;
  background: rgba(255, 255, 255, 0.07);
  color: var(--mute);
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 1px 7px;
}
.wx-sys-note { align-self: center; font-size: 11.5px; color: #7E8794; }
.wx-msg { display: flex; gap: 8px; align-items: flex-start; }
.wx-msg.is-me { flex-direction: row-reverse; }
.wx-avatar {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  background: #272E3A;
  border: 1px solid #3A4252;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.wx-avatar.cat { background: #14171D; border-color: var(--accent-2); color: var(--accent-2-text); }
.wx-avatar.manager { background: #2D1819; border-color: var(--stamp-red); color: var(--accent-text); }
.wx-bubble-col { max-width: 80%; display: flex; flex-direction: column; gap: 2px; }
.wx-sender-row { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--mute); }
.wx-ts-anomaly {
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: 10px;
  border: 1px solid rgba(217, 56, 41, 0.45);
  padding: 0 4px;
}
.wx-bubble {
  background: #232730;
  color: var(--ink);
  padding: 7px 10px;
  font-size: 13px;
  line-height: 1.48;
  border: 1px solid #2F3542;
}
.wx-msg.is-me .wx-bubble { background: #24573D; border-color: #327252; }

.doc-card.style-cctv_log {
  background: #07100B;
  border: 1px solid #22462F;
  padding: 11px 12px;
  font-family: var(--font-mono);
  color: var(--crt-bright);
}
.cctv-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #1E3E29;
  padding-bottom: 6px;
  margin-bottom: 8px;
  font-size: 11px;
}
.rec-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 4px;
  animation: pulse-red 1s infinite;
}
.cctv-delay-tag { color: var(--accent-text); border: 1px solid rgba(217, 56, 41, 0.5); padding: 0 4px; }
.doc-card.style-cctv_log p {
  font-family: var(--font-mono);
  font-size: 12.2px;
  line-height: 1.56;
  margin: 0 0 6px;
  color: #8DE0A6;
}
.doc-card.style-cctv_log p:last-child { margin-bottom: 0; }

.doc-card.style-express_slip {
  background: #E5E1D8;
  color: #1A1A19;
  padding: 12px;
  border-top: 2px dashed #8F897B;
  border-bottom: 2px dashed #8F897B;
  position: relative;
  overflow: hidden;
}
.express-waterstain {
  position: absolute;
  right: -18px;
  top: -18px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(140, 74, 43, 0.22), transparent 70%);
  pointer-events: none;
}
.express-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #1A1A19;
  padding-bottom: 6px;
  margin-bottom: 8px;
}
.express-waybill { font-family: var(--font-mono); font-size: 13.5px; font-weight: 700; }
.doc-card.style-express_slip p { font-size: 13px; line-height: 1.52; color: #20201E; margin: 0 0 5px; }
.express-sign-row {
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px dashed #6B6559;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #46423A;
}

/* =========================================================
 * 选项区：双列紧凑网格 + 单列自适应
 * ========================================================= */
.options-stack {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.options-stack.is-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.options-stack.is-grid .option-btn.span-full {
  grid-column: 1 / -1;
}

.option-btn {
  width: 100%;
  text-align: left;
  padding: 10px 11px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-left: 3px solid var(--ambient-line);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.38;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.12s cubic-bezier(0.22, 1, 0.36, 1);
}
.option-btn:hover:not(:disabled) { background: var(--surface-elev); border-color: var(--ink2); }
.option-btn:active:not(:disabled),
.btn-primary:active:not(:disabled),
.btn-secondary:active:not(:disabled),
.dock-btn:active,
.clue-card:active,
.verdict-choice:active {
  transform: scale(0.982);
}
.option-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* 42px 底部常驻双入口 */
.bottom-dock {
  flex: 0 0 42px;
  height: 42px;
  width: 100%;
  background: rgba(14, 16, 19, 0.98);
  border-top: 1px solid var(--hair);
  display: flex;
  align-items: stretch;
  z-index: 35;
}
.dock-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  position: relative;
  transition: background 0.16s ease, transform 0.12s ease;
}
.dock-btn:hover { background: rgba(255, 255, 255, 0.03); }

@keyframes hintBreath {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59, 142, 230, 0.55); }
  50% { box-shadow: 0 0 0 5px rgba(59, 142, 230, 0); }
}

.dock-btn.has-hint .dock-dot.blue {
  animation: hintBreath 1.6s infinite;
}
.dock-btn.has-hint::after {
  content: "可比对";
  font-size: 10px;
  color: var(--accent-2-text);
  border: 1px solid rgba(59, 142, 230, 0.45);
  padding: 0 4px;
  margin-left: 2px;
}
.dock-divider { width: 1px; background: var(--hair); margin: 8px 0; }
.dock-dot { width: 6px; height: 6px; border-radius: 50%; }
.dock-dot.red { background: var(--stamp-red); }
.dock-dot.blue { background: var(--accent-2); }
.dock-badge { font-size: 11px; padding: 1px 5px; background: #232832; color: var(--ink2); }

/* =========================================================
 * 一屏一题《结案推理卷》
 * ========================================================= */
.verdict-view {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}
.verdict-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--hair);
  padding-bottom: 8px;
}
.verdict-dots { display: flex; gap: 6px; }
.verdict-step-dot {
  width: 22px;
  height: 22px;
  border: 1px solid var(--hair);
  background: var(--surface);
  color: var(--mute);
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
}
.verdict-step-dot.answered { border-color: var(--accent-2); color: var(--accent-2-text); }
.verdict-step-dot.active { background: var(--stamp-red); border-color: var(--stamp-red); color: #FFF; }
.verdict-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 9px;
  animation: docEnter 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.verdict-q-title { font-weight: 700; font-size: 15.5px; line-height: 1.5; color: var(--ink); }
.verdict-choice {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 10px 11px;
  background: var(--surface);
  border: 1px solid var(--hair);
  cursor: pointer;
  font-size: 13.5px;
  color: var(--ink2);
}
.verdict-choice.checked {
  border-color: var(--accent-2);
  background: rgba(59, 142, 230, 0.12);
  color: var(--ink);
}
.verdict-footer { display: flex; gap: 8px; flex: 0 0 auto; }

/* =========================================================
 * 一屏三栏切页结局页
 * ========================================================= */
.ending-view {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}
.ending-head-card {
  background: var(--surface);
  border: 1px solid var(--hair);
  padding: 10px 12px;
  flex-shrink: 0;
}
.ending-tier-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 1px 6px;
  margin-bottom: 4px;
  border: 1px solid currentColor;
}
.ending-tier-badge.TE { color: var(--gold-seal); }
.ending-tier-badge.NE { color: #9BA5B2; }
.ending-tier-badge.BE { color: var(--accent-text); }
.ending-title { font-family: var(--font-display); font-size: 20px; font-weight: 900; margin: 0 0 6px; }
.ending-metrics { display: flex; gap: 12px; font-size: 12px; color: var(--mute); }

.ending-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  flex-shrink: 0;
}
.ending-tab-btn {
  padding: 7px 6px;
  background: var(--surface);
  border: 1px solid var(--hair);
  color: var(--mute);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.ending-tab-btn.active {
  border-color: var(--ambient-line);
  color: var(--ink);
  background: var(--surface-elev);
}
.ending-panel {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--surface);
  border: 1px solid var(--hair);
  padding: 12px;
}
.share-preview-img {
  max-height: min(35dvh, 250px);
  width: auto;
  max-width: 100%;
  display: block;
  border: 1px solid var(--hair);
  margin: 8px auto;
}
.ending-actions-bar { flex: 0 0 auto; display: flex; gap: 6px; }

/* 抽屉丝滑滑入滑出 */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 80;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  transition: background 0.24s ease;
}
.drawer-backdrop.is-open {
  background: rgba(0, 0, 0, 0.68);
}
.drawer-sheet {
  width: 100%;
  max-width: 460px;
  max-height: 80dvh;
  background: #13161B;
  border-top: 2px solid var(--ambient-line);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.drawer-backdrop.is-open .drawer-sheet {
  transform: translateY(0);
}

/* 首次入场引导浮层 */
.guide-backdrop {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(6, 8, 10, 0.78);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.24s ease;
}
.guide-backdrop.is-open {
  opacity: 1;
}
.guide-card {
  width: 100%;
  max-width: 410px;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  overflow-x: hidden;
  background: #14181F;
  border: 1px solid var(--hair);
  border-top: 3px solid var(--stamp-red);
  padding: 16px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.65);
  transform: translateY(12px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.guide-backdrop.is-open .guide-card {
  transform: translateY(0) scale(1);
}
.guide-eyebrow {
  font-size: 10.5px;
  color: var(--accent-text);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.guide-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  margin: 0 0 10px;
  color: var(--ink);
}
.guide-context {
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid var(--ambient-line);
  padding: 7px 10px;
  font-size: 12.5px;
  color: var(--ink2);
  margin-bottom: 10px;
}
.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 14px;
}
.guide-step {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--hair);
  padding: 9px 10px;
}
.guide-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-2-text);
  border: 1px solid rgba(59, 142, 230, 0.4);
  padding: 1px 5px;
  flex-shrink: 0;
  margin-top: 2px;
}
.guide-step strong {
  display: block;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 2px;
}
.guide-step p {
  margin: 0;
  font-size: 12px;
  line-height: 1.48;
  color: var(--ink2);
}
.guide-confirm-btn {
  width: 100%;
  padding: 10px;
  font-size: 13.5px;
}
.drawer-header {
  padding: 11px 14px;
  border-bottom: 1px solid var(--hair);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.drawer-eyebrow { font-size: 10.5px; color: var(--mute); }
.drawer-title { margin: 2px 0 0; font-family: var(--font-display); font-size: 16.5px; }
.drawer-close {
  background: transparent;
  border: 1px solid var(--hair);
  color: var(--ink2);
  width: 28px;
  height: 28px;
  cursor: pointer;
}
.drawer-body {
  padding: 12px 14px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rule-item {
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-left: 3px solid var(--stamp-red);
}
.rule-item.is-survivor { border-left-color: var(--accent-2); }
.rule-item.is-refuted { opacity: 0.65; border-left-style: dashed; }
.rule-source { font-size: 11px; color: var(--mute); margin-bottom: 3px; display: flex; justify-content: space-between; }
.rule-text { font-size: 13.5px; color: var(--ink); }
.rule-text.struck { text-decoration: line-through; color: var(--mute); }

.compare-tray { background: #181C23; border: 1px solid var(--hair); padding: 10px; }
.compare-slots { display: grid; grid-template-columns: 1fr 22px 1fr; align-items: center; gap: 6px; margin-bottom: 8px; }
.compare-slot {
  min-height: 40px;
  border: 1px dashed #3A4252;
  padding: 5px 6px;
  font-size: 11.5px;
  color: var(--mute);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.compare-slot.filled { border-style: solid; border-color: var(--accent-2); color: var(--ink); background: rgba(59, 142, 230, 0.08); }
.compare-wire { height: 2px; background: var(--hair); }
.compare-wire.matched { background: var(--stamp-red); box-shadow: 0 0 8px rgba(217, 56, 41, 0.8); }
.clue-grid { display: flex; flex-direction: column; gap: 7px; }
.clue-card { padding: 9px 10px; background: var(--surface); border: 1px solid var(--hair); cursor: pointer; }
.clue-card.selected { border-color: var(--accent-2); background: rgba(59, 142, 230, 0.1); }
.clue-card-head { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; margin-bottom: 3px; }
.clue-card-desc { font-size: 12px; color: var(--ink2); line-height: 1.45; }
.verified-contra-box {
  padding: 8px 10px;
  background: rgba(200, 50, 38, 0.12);
  border: 1px solid var(--stamp-red);
  font-size: 12.5px;
  line-height: 1.5;
}
.codex-item {
  padding: 9px 10px;
  background: var(--surface);
  border: 1px solid var(--hair);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.codex-item.locked { opacity: 0.45; }

/* =========================================================
 * 紧凑视口高度自适应（IDE 预览面板 / 分屏 / 小屏一屏免滚动）
 * ========================================================= */
@media (max-height: 750px) {
  .top-hud { flex: 0 0 36px; height: 36px; }
  .main-stage { padding: 7px 10px; }
  .bottom-dock { flex: 0 0 38px; height: 38px; }

  /* 开场四幕一屏无溢出 */
  .cold-open-view { gap: 7px; }
  .cold-stage-center { gap: 8px; }
  .cold-stage-center.compact-gap { gap: 5px; }
  .cold-headline { font-size: 17.5px; }
  .badge-card { padding: 10px 11px; gap: 7px; }
  .intel-grid { gap: 7px; }
  .intel-card { padding: 8px 10px; }
  .scene-quote-bar { padding: 5px 8px; font-size: 12px; line-height: 1.42; }
  .recorder-box.compact { padding: 5px 8px; }
  .wave-strip.compact { height: 15px; }
  .witness-card.compact { padding: 5px 8px; }
  .witness-card.compact .witness-quote { font-size: 12px; line-height: 1.36; }
  .dossier-envelope { padding: 12px 12px 14px; }
  .dossier-body-text p { font-size: 12.8px; line-height: 1.5; margin-bottom: 6px; }
  .btn-primary.cold-cta, .cold-cta { padding: 9px 12px; font-size: 13.5px; }

  /* 档案大厅 4 张卷宗卡一屏全显 */
  .lobby-view { gap: 6px; }
  .lobby-banner { height: 54px; }
  .lobby-title { font-size: 17.5px; }
  .book-list { gap: 5px; }
  .book-card { padding: 6px 10px; gap: 3px; }
  .book-title { font-size: 14.5px; }
  .book-teaser {
    font-size: 11.8px;
    line-height: 1.32;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .book-actions .btn-primary,
  .book-actions .btn-secondary,
  .lobby-footer-bar button { padding: 5px 8px; font-size: 12px; }

  /* 游玩视图文档与双列选项紧凑化 */
  .play-layout { gap: 6px; }
  .stage-doc-zone { gap: 6px; }
  .scene-banner-img { height: 52px; }
  .doc-card.style-narrative .doc-title { font-size: 16px; margin-bottom: 5px; }
  .doc-card.style-narrative p { font-size: 13.5px; line-height: 1.54; margin-bottom: 5px; }
  .doc-card.style-red_stamp_notice,
  .doc-card.style-blue_handwrite,
  .doc-card.style-cctv_log,
  .doc-card.style-express_slip { padding: 9px 11px; }
  .doc-card.style-red_stamp_notice p,
  .doc-card.style-blue_handwrite p,
  .doc-card.style-express_slip p { font-size: 12.8px; line-height: 1.48; margin-bottom: 4px; }
  .wx-topbar { padding: 5px 9px; font-size: 12px; }
  .wx-feed { padding: 7px 8px; gap: 5px; }
  .wx-avatar { width: 26px; height: 26px; font-size: 11px; }
  .wx-bubble { padding: 5px 8px; font-size: 12.4px; line-height: 1.4; }
  .options-stack, .options-stack.is-grid { gap: 5px; }
  .option-btn { padding: 7px 9px; font-size: 12.8px; line-height: 1.32; }

  /* 推理卷 / 结局页 / 引导浮层 */
  .verdict-body { gap: 6px; }
  .verdict-q-title { font-size: 14.5px; line-height: 1.42; }
  .verdict-choice { padding: 8px 10px; font-size: 12.8px; }
  .ending-head-card { padding: 7px 10px; }
  .ending-title { font-size: 17.5px; margin-bottom: 3px; }
  .ending-panel { padding: 9px 10px; }
  .share-preview-img { max-height: min(28dvh, 185px); }
  .guide-card { padding: 12px 14px; }
  .guide-steps { gap: 6px; margin-bottom: 10px; }
  .guide-step { padding: 6px 8px; }
}

@media (max-height: 640px) {
  .lobby-banner { height: 46px; }
  .scene-banner-img { height: 40px; }
  .cold-headline { font-size: 16px; }
  .dossier-envelope { padding: 9px 11px 11px; }
}
