/* ==========================================================================
   《重生·节点》游戏感改版样式系统
   1. 选关大厅：5 种独立时代物件卡片 + 4:3 封面图 + 顶部慢速指数跑马灯 + 错峰入场/悬停动效
   2. 人物系统：立绘裁切头像 + 缺图首字兜底 + 怀旧滤镜记忆场景卡 + 现实对话气泡流
   3. 独立媒介：2008 报纸相片&主播电视 / 2010 论坛串&IRC / 2015 炒股App&股吧&群聊 / 1990 锯齿传真&杂志&传单 / 2021 热搜&微信&公司群
   4. 平滑转场：固定顶栏与左栏锚点，纯 CSS transform/opacity 过渡，支持全局跳过动画与 390×844 竖屏
   ========================================================================== */

:root {
  --bg-deep: #090c12;
  --bg-surface: #121722;
  --bg-elevated: #192131;
  --bg-card-hover: #202a3e;
  --border-subtle: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(148, 163, 184, 0.3);

  --accent: #d9ad54;
  --accent-bright: #f2c96d;
  --accent-soft: rgba(217, 173, 84, 0.15);
  --accent-border: rgba(217, 173, 84, 0.44);

  --text-primary: #eef2f7;
  --text-secondary: #9aa7bc;
  --text-muted: #69778d;

  --green: #22c55e;
  --green-soft: rgba(34, 197, 94, 0.14);
  --red: #ef4444;
  --red-soft: rgba(239, 68, 68, 0.15);
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.15);
  --blue: #60a5fa;
  --blue-soft: rgba(96, 165, 250, 0.14);
  --rose: #fb7185;
  --rose-soft: rgba(251, 113, 133, 0.14);

  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", Consolas, "SFMono-Regular", monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.4);
}

/* 5 套时代主题色 */
body[data-theme="2008-crisis"] {
  --bg-deep: #0a0d13;
  --accent: #d9ad54;
  --accent-bright: #f2c96d;
  --accent-soft: rgba(217, 173, 84, 0.15);
  --accent-border: rgba(217, 173, 84, 0.45);
}
body[data-theme="2010-bitcoin"] {
  --bg-deep: #060b08;
  --bg-surface: #0c1510;
  --bg-elevated: #122018;
  --bg-card-hover: #172b20;
  --accent: #f59e0b;
  --accent-bright: #fbbf24;
  --accent-soft: rgba(245, 158, 11, 0.16);
  --accent-border: rgba(245, 158, 11, 0.46);
}
body[data-theme="2015-leverage-bull"] {
  --bg-deep: #11090b;
  --bg-surface: #1b1013;
  --bg-elevated: #25151a;
  --bg-card-hover: #301b22;
  --accent: #ef4444;
  --accent-bright: #f87171;
  --accent-soft: rgba(239, 68, 68, 0.16);
  --accent-border: rgba(239, 68, 68, 0.48);
}
body[data-theme="1990-tokyo-bubble"] {
  --bg-deep: #110e0a;
  --bg-surface: #1b1610;
  --bg-elevated: #261f17;
  --bg-card-hover: #31281d;
  --accent: #e09132;
  --accent-bright: #f5b459;
  --accent-soft: rgba(224, 145, 50, 0.16);
  --accent-border: rgba(224, 145, 50, 0.46);
}
body[data-theme="2021-shuangjian"] {
  --bg-deep: #0b0d12;
  --bg-surface: #131720;
  --bg-elevated: #1b212e;
  --bg-card-hover: #232b3c;
  --accent: #e11d48;
  --accent-bright: #fb7185;
  --accent-soft: rgba(225, 29, 72, 0.15);
  --accent-border: rgba(225, 29, 72, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.serif { font-family: var(--font-serif); }
.hidden { display: none !important; }

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* 全局「跳过动画」与系统无障碍减动效 */
body.no-motion *,
body.no-motion *::before,
body.no-motion *::after {
  animation-duration: 0.001ms !important;
  animation-delay: 0ms !important;
  transition-duration: 0.001ms !important;
  transition-delay: 0ms !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }
}

/* ==========================================================================
   顶部导航 + 时间轴锚点
   ========================================================================== */
.hud-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 12, 18, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.hud-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 9px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.hud-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.brand-mark {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.06em;
  color: var(--accent-bright);
}

.brand-chapter {
  font-size: 12px;
  color: var(--text-secondary);
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.timeline-inline {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  padding: 2px 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.timeline-inline::-webkit-scrollbar { display: none; }

.timeline-nodes {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: max-content;
}

.tl-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  color: var(--text-muted);
  white-space: nowrap;
}
.tl-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(148, 163, 184, 0.3); }
.tl-item.done { color: var(--text-secondary); }
.tl-item.done .tl-dot { background: var(--green); }
.tl-item.current { color: var(--accent-bright); font-weight: 700; }
.tl-item.current .tl-dot {
  width: 9px;
  height: 9px;
  background: var(--accent-bright);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.tl-line { width: 12px; height: 1px; background: rgba(148, 163, 184, 0.22); }
.tl-line.done { background: rgba(34, 197, 94, 0.5); }

.tl-milestone {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px dashed var(--accent-border);
  color: var(--accent-bright);
  white-space: nowrap;
}
.tl-milestone.held { background: var(--accent-soft); border-style: solid; }
.tl-milestone.off { color: var(--red); border-color: rgba(239, 68, 68, 0.5); background: var(--red-soft); }

.hud-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* 按钮体系 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  padding: 9px 15px;
  cursor: pointer;
  transition: transform 0.14s ease, filter 0.16s ease, background 0.16s ease, border-color 0.16s ease;
  user-select: none;
  text-decoration: none;
}
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }
.btn-sm { font-size: 12px; padding: 5px 9px; }
.btn-lg { font-size: 15px; padding: 12px 22px; border-radius: 10px; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent) 100%);
  color: #110d07;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.btn-primary:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn-secondary:hover:not(:disabled) { background: var(--bg-card-hover); border-color: var(--accent-border); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-subtle);
}
.btn-ghost:hover:not(:disabled) { color: var(--text-primary); background: rgba(148, 163, 184, 0.1); }
.btn-ghost.active-toggle {
  color: var(--accent-bright);
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.count-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-bright);
  background: var(--accent-soft);
  padding: 1px 6px;
  border-radius: 999px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.status-badge.safe { color: var(--green); background: var(--green-soft); border-color: rgba(34, 197, 94, 0.35); }
.status-badge.warn { color: var(--amber); background: var(--amber-soft); border-color: rgba(245, 158, 11, 0.42); }
.status-badge.danger { color: var(--red); background: var(--red-soft); border-color: rgba(239, 68, 68, 0.45); }
.status-badge.gold { color: var(--accent-bright); background: var(--accent-soft); border-color: var(--accent-border); }
.status-badge.info { color: var(--blue); background: var(--blue-soft); border-color: rgba(96, 165, 250, 0.35); }
.status-badge.illustrative {
  color: #fde68a;
  background: rgba(217, 119, 6, 0.24);
  border-color: rgba(245, 158, 11, 0.55);
  font-size: 10px;
  padding: 1px 5px;
}

.stage {
  flex: 1;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 16px 20px 42px;
}
.stage.stage-narrow { max-width: 960px; }
.stage.stage-reveal { max-width: 1240px; }

/* ==========================================================================
   通用人物头像组件（1:2 竖幅立绘取上部脸部 + 缺图首字主题色占位）
   ========================================================================== */
.char-avatar {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--accent-soft);
  border: 1.5px solid var(--accent-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.char-avatar.round { border-radius: 50%; }
.char-avatar.sm { width: 34px; height: 34px; border-radius: 8px; }
.char-avatar.md { width: 52px; height: 52px; border-radius: 12px; }
.char-avatar.lg { width: 76px; height: 76px; border-radius: 16px; border-width: 2px; }
.char-avatar.xl { width: 92px; height: 92px; border-radius: 18px; border-width: 2px; }

.char-avatar-fallback {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 16px;
  color: var(--accent-bright);
  user-select: none;
}
.char-avatar.lg .char-avatar-fallback,
.char-avatar.xl .char-avatar-fallback { font-size: 28px; }

.char-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
  display: block;
}
.char-avatar img.img-failed { display: none !important; }

/* 怀旧记忆头像滤镜（去饱和 + 复古棕调 + 暗角） */
.char-avatar.nostalgic {
  border-color: rgba(196, 149, 82, 0.5);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
}
.char-avatar.nostalgic img {
  filter: saturate(0.28) sepia(0.42) contrast(1.08) brightness(0.9);
}
.char-avatar.nostalgic::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 16px rgba(10, 7, 4, 0.82);
  pointer-events: none;
}

/* ==========================================================================
   改动 1：首页——游戏选关界面（慢速跑马灯 + 4:3 封面 + 5 种时代物件造型）
   ========================================================================== */
.hub-hero {
  text-align: center;
  padding: 6px 0 20px;
}

/* 缓慢横向滚动的跨年代行情数字带 */
.hub-ticker-wrap {
  max-width: 1080px;
  margin: 0 auto 14px;
  overflow: hidden;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(12, 16, 24, 0.65);
  padding: 5px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.hub-ticker-track {
  display: flex;
  width: max-content;
  animation: hubMarquee 42s linear infinite;
}

.hub-ticker-seg {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding-right: 26px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(154, 167, 188, 0.72);
  white-space: nowrap;
}
.hub-ticker-seg .tk-up { color: rgba(34, 197, 94, 0.78); }
.hub-ticker-seg .tk-down { color: rgba(239, 68, 68, 0.78); }
.hub-ticker-seg .tk-gold { color: rgba(242, 201, 109, 0.8); }

@keyframes hubMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.hub-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--accent-bright);
  margin-bottom: 6px;
}
.hub-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 6px;
  letter-spacing: 0.08em;
  color: #f8f5ec;
}
.hub-sub {
  margin: 0 auto;
  max-width: 660px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

/* 5 张选关卡网格 */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 15px;
  margin-top: 8px;
  align-items: stretch;
}

@media (max-width: 1320px) {
  .hub-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .hub-grid { grid-template-columns: 1fr; }
}

/* 选关卡公共动效基类（不共用造型，仅提供入场/悬停/按压物理反馈） */
@keyframes stageCardIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stage-select-card {
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  animation: stageCardIn 500ms ease-out both;
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 240ms ease, filter 200ms ease;
  user-select: none;
  min-width: 0;
}

.stage-select-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.62);
}

.stage-select-card:active {
  transition-duration: 100ms;
  transform: translateY(-1px) scale(0.982);
}

/* 顶部约 45% 的 4:3 主题封面图位 + 缺图纯色年份大字占位 */
.stage-cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  flex-shrink: 0;
}

.stage-cover-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 46px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.82);
}

.stage-cover-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}
.stage-select-card:hover .stage-cover-img {
  transform: scale(1.05);
}
.stage-cover-img.img-failed {
  opacity: 0;
}

/* --- 造型 1：2008 报纸头版 (Newspaper Front Page) --- */
.obj-card-newspaper {
  background: linear-gradient(180deg, #f3ead6 0%, #e5d9be 100%);
  color: #1c1813;
  border: 2px solid #2b241b;
  border-radius: 4px;
  padding: 10px 11px 12px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.42);
}
.obj-card-newspaper .np-top-masthead {
  border-top: 2px solid #1c1813;
  border-bottom: 2.5px double #1c1813;
  padding: 4px 0;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-serif);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.obj-card-newspaper .stage-cover-wrap {
  border: 1.5px solid #2b241b;
}
.obj-card-newspaper .stage-cover-fallback { background: #2c3545; }
.obj-card-newspaper .np-body {
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: 8px;
}
.obj-card-newspaper .np-headline {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 900;
  margin: 0 0 4px;
  color: #120f0b;
  line-height: 1.2;
}
.obj-card-newspaper .np-kicker {
  font-size: 11.5px;
  font-weight: 800;
  color: #7c2d12;
  margin: 0 0 5px;
}
.obj-card-newspaper .np-lead {
  font-family: var(--font-serif);
  font-size: 12px;
  color: #3a3228;
  margin: 0;
  line-height: 1.55;
}
.obj-card-newspaper .np-foot {
  border-top: 1px solid rgba(28, 24, 19, 0.35);
  padding-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #3a3228;
}
.obj-card-newspaper .np-go-btn {
  background: #1c1813;
  color: #f5eedc;
  border: none;
  padding: 5px 10px;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 11.5px;
  border-radius: 2px;
  cursor: pointer;
}

/* --- 造型 2：2010 早期论坛帖子 (Early Geek Forum Post) --- */
.obj-card-forum {
  background: #0b1510;
  color: #d1fae5;
  border: 2px solid #22c55e;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.48), inset 0 0 18px rgba(34, 197, 94, 0.06);
}
.obj-card-forum .fm-titlebar {
  background: #143322;
  border-bottom: 1.5px solid #22c55e;
  padding: 6px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #86efac;
}
.obj-card-forum .fm-op-bar {
  background: #0f2117;
  padding: 5px 10px;
  border-bottom: 1px dashed rgba(34, 197, 94, 0.35);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #fbbf24;
}
.obj-card-forum .stage-cover-fallback { background: #132a1d; color: #4ade80; }
.obj-card-forum .fm-body {
  padding: 11px 12px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: 8px;
}
.obj-card-forum .fm-title {
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 800;
  color: #fbbf24;
  margin: 0 0 4px;
}
.obj-card-forum .fm-test {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #4ade80;
  margin: 0 0 5px;
}
.obj-card-forum .fm-desc {
  font-size: 12px;
  color: #a7f3d0;
  margin: 0;
  line-height: 1.55;
}
.obj-card-forum .fm-foot {
  border-top: 1px dashed rgba(34, 197, 94, 0.32);
  padding-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
}
.obj-card-forum .fm-reply-btn {
  background: #22c55e;
  color: #05120a;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 11px;
  border: none;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
}

/* --- 造型 3：2015 营业部行情大屏切片 (Brokerage LED Matrix) --- */
.obj-card-led {
  background:
    radial-gradient(rgba(239, 68, 68, 0.08) 1px, transparent 1px) 0 0 / 6px 6px,
    #16080a;
  color: #fee2e2;
  border: 2px solid #dc2626;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 0 0 18px rgba(220, 38, 38, 0.16);
}
.obj-card-led .led-red-banner {
  background: linear-gradient(90deg, #b91c1c, #ef4444, #b91c1c);
  color: #ffffff;
  padding: 6px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
}
.obj-card-led .led-ticker-strip {
  background: #0b0405;
  border-bottom: 1px solid rgba(239, 68, 68, 0.45);
  padding: 4px 10px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #f87171;
  font-weight: 700;
}
.obj-card-led .stage-cover-fallback { background: #450a0a; color: #fca5a5; }
.obj-card-led .led-body {
  padding: 11px 12px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: 8px;
}
.obj-card-led .led-title {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 900;
  color: #fde047;
  margin: 0 0 4px;
}
.obj-card-led .led-test {
  font-size: 11.5px;
  font-weight: 700;
  color: #f87171;
  margin: 0 0 5px;
}
.obj-card-led .led-desc {
  font-size: 12px;
  color: #fecaca;
  margin: 0;
  line-height: 1.55;
}
.obj-card-led .led-foot {
  border-top: 1px solid rgba(239, 68, 68, 0.35);
  padding-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
}
.obj-card-led .led-btn {
  background: #ef4444;
  color: #fff;
  border: none;
  padding: 5px 10px;
  font-weight: 800;
  font-size: 11.5px;
  border-radius: 3px;
  cursor: pointer;
}

/* --- 造型 4：1990 泡沫时代杂志封面 (Bubble Era Magazine Cover) --- */
.obj-card-magazine {
  background: linear-gradient(180deg, #271a10 0%, #170f09 100%);
  color: #fef3c7;
  border: 3px solid #eab308;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}
.obj-card-magazine .mag-masthead {
  background: #eab308;
  color: #170f09;
  padding: 5px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.1em;
}
.obj-card-magazine .mag-cover-box {
  position: relative;
}
.obj-card-magazine .stage-cover-fallback { background: #3b2412; color: #fde047; }
.obj-card-magazine .mag-vertical-tag {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 2;
  writing-mode: vertical-rl;
  background: rgba(185, 28, 28, 0.92);
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 11px;
  padding: 6px 4px;
  letter-spacing: 0.14em;
  border: 1px solid #fde047;
}
.obj-card-magazine .mag-body {
  padding: 11px 12px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: 8px;
}
.obj-card-magazine .mag-title {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 900;
  color: #fde047;
  margin: 0 0 4px;
}
.obj-card-magazine .mag-test {
  font-size: 11.5px;
  font-weight: 700;
  color: #fb923c;
  margin: 0 0 5px;
}
.obj-card-magazine .mag-desc {
  font-size: 12px;
  color: #fde68a;
  opacity: 0.9;
  margin: 0;
  line-height: 1.55;
}
.obj-card-magazine .mag-foot {
  border-top: 1px solid rgba(234, 179, 8, 0.35);
  padding-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 6px;
}
.obj-card-magazine .mag-barcode {
  background: #f8fafc;
  color: #0f172a;
  padding: 3px 6px 2px;
  border-radius: 2px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}
.obj-card-magazine .mag-barcode-bars {
  width: 58px;
  height: 14px;
  background: repeating-linear-gradient(
    90deg,
    #0f172a 0px, #0f172a 2px,
    transparent 2px, transparent 4px,
    #0f172a 4px, #0f172a 5px,
    transparent 5px, transparent 8px,
    #0f172a 8px, #0f172a 11px,
    transparent 11px, transparent 13px
  );
}
.obj-card-magazine .mag-barcode-num {
  font-family: var(--font-mono);
  font-size: 8.5px;
  line-height: 1.1;
  font-weight: 700;
}
.obj-card-magazine .mag-btn {
  background: #eab308;
  color: #170f09;
  border: none;
  padding: 5px 10px;
  font-weight: 900;
  font-size: 11.5px;
  border-radius: 2px;
  cursor: pointer;
}

/* --- 造型 5：2021 手机锁屏 / 微信通知界面 (Smartphone Lockscreen) --- */
.obj-card-phone {
  background: linear-gradient(180deg, #161c28 0%, #0d111a 100%);
  color: #f1f5f9;
  border: 3px solid #334155;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.obj-card-phone .ph-statusbar {
  background: #0b0f17;
  padding: 7px 14px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: #cbd5e1;
  position: relative;
}
.obj-card-phone .ph-notch {
  width: 48px;
  height: 5px;
  border-radius: 999px;
  background: #1e293b;
}
.obj-card-phone .stage-cover-fallback { background: #1e293b; color: #fb7185; }
.obj-card-phone .ph-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: 8px;
}
.obj-card-phone .ph-wx-notif {
  background: rgba(30, 41, 59, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  padding: 9px 10px;
}
.obj-card-phone .ph-wx-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: #4ade80;
  font-weight: 700;
  margin-bottom: 4px;
}
.obj-card-phone .ph-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 3px;
}
.obj-card-phone .ph-test {
  font-size: 11px;
  font-weight: 700;
  color: #fb7185;
  margin: 0 0 4px;
}
.obj-card-phone .ph-desc {
  font-size: 11.5px;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.5;
}
.obj-card-phone .ph-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 4px;
  font-size: 11px;
  color: #94a3b8;
}
.obj-card-phone .ph-unlock-btn {
  background: #22c55e;
  color: #05180c;
  border: none;
  padding: 5px 11px;
  font-weight: 800;
  font-size: 11.5px;
  border-radius: 999px;
  cursor: pointer;
}

/* ==========================================================================
   改动 2（第一处）：开场（投胎/序章）页——标题旁主角头像 + 「你死了。」+ 角色卡
   ========================================================================== */
.prologue-card {
  background: linear-gradient(180deg, rgba(22, 28, 42, 0.95), rgba(11, 15, 24, 0.98));
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);
  padding: 30px 34px;
  box-shadow: var(--shadow-card);
}

.prologue-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.prologue-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent-bright);
  margin-bottom: 6px;
}
.prologue-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4.2vw, 40px);
  font-weight: 800;
  margin: 0 0 4px;
  color: #f8f5ec;
}
.prologue-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0;
}

/* 「你死了。再睁眼时——」过场标语 */
.reborn-lead-line {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-bright);
  letter-spacing: 0.08em;
  padding: 10px 0 12px;
  border-top: 1px dashed rgba(148, 163, 184, 0.22);
}

/* 带头像的角色档案卡 */
.hero-role-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(8, 11, 18, 0.78);
  border: 1px solid var(--accent-border);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 20px;
}

.hero-role-info {
  flex: 1;
  min-width: 0;
}

.hero-role-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.hero-role-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
}

.hero-role-job {
  font-size: 13px;
  color: var(--accent-bright);
  background: var(--accent-soft);
  padding: 2px 9px;
  border-radius: 999px;
}

.dossier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 8px;
}
.dossier-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 8px 11px;
}
.dossier-item .k { display: block; font-size: 11px; color: var(--text-muted); margin-bottom: 2px; }
.dossier-item .v { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.dossier-item .v.accent { color: var(--accent-bright); }

.prologue-story {
  font-family: var(--font-serif);
  font-size: 16.5px;
  line-height: 1.9;
  color: #e8e1d3;
  background: rgba(244, 239, 228, 0.045);
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  border-radius: 0 10px 10px 0;
  margin-bottom: 20px;
}
.prologue-story p { margin: 0 0 10px; }
.prologue-story p:last-child { margin-bottom: 0; }

.prologue-rules-note {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}
.rule-chip {
  font-size: 12px;
  color: var(--text-secondary);
  background: rgba(148, 163, 184, 0.07);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 12px;
}
.rule-chip strong { display: block; color: var(--text-primary); margin-bottom: 3px; }

.prologue-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.resume-banner {
  margin-top: 14px;
  padding: 11px 15px;
  border-radius: 10px;
  background: var(--blue-soft);
  border: 1px solid rgba(96, 165, 250, 0.38);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #dbeafe;
}

/* ==========================================================================
   固定锚点横屏舞台：左栏锚点不动 + 右侧动态区（节点双栏 / 快进面板）
   ========================================================================== */
.anchored-play-shell {
  display: grid;
  grid-template-columns: 325px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.anchor-left-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 64px;
  min-width: 0;
}

.dynamic-main-area {
  min-width: 0;
}

.node-two-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) 385px;
  gap: 18px;
  align-items: start;
}

.col-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.col-right-sticky {
  position: sticky;
  top: 64px;
}

/* --- 改动 4：转场动画（纯 CSS transform / opacity） --- */
@keyframes blockFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.anim-node-block-1 { animation: blockFadeUp 340ms cubic-bezier(0.22, 1, 0.36, 1) 0ms both; }
.anim-node-block-2 { animation: blockFadeUp 340ms cubic-bezier(0.22, 1, 0.36, 1) 60ms both; }
.anim-node-block-3 { animation: blockFadeUp 340ms cubic-bezier(0.22, 1, 0.36, 1) 120ms both; }

.leaving-300 {
  opacity: 0 !important;
  transform: translateY(-10px) !important;
  transition: opacity 300ms ease, transform 300ms ease !important;
  pointer-events: none;
}

.leaving-250 {
  opacity: 0 !important;
  transform: translateY(-8px) !important;
  transition: opacity 250ms ease, transform 250ms ease !important;
  pointer-events: none;
}

.reveal-enter-300 {
  animation: revealSlideUp 300ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* 快进结束后的三张小结卡依次出现（每张错开 100ms） */
.summary-stagger-card {
  opacity: 0;
  transform: translateY(12px);
}
.reveal-after-panel.visible .summary-stagger-card {
  animation: blockFadeUp 320ms ease-out both;
}
.reveal-after-panel.visible .summary-stagger-card:nth-child(1) { animation-delay: 0ms; }
.reveal-after-panel.visible .summary-stagger-card:nth-child(2) { animation-delay: 100ms; }
.reveal-after-panel.visible .summary-stagger-card:nth-child(3) { animation-delay: 200ms; }
.reveal-after-panel.visible .summary-stagger-card:nth-child(4) { animation-delay: 300ms; }

/* --- 左栏：资产 & 人生状态总控台 --- */
.hero-status-card {
  background: linear-gradient(165deg, var(--bg-elevated) 0%, var(--bg-surface) 100%);
  border: 1.5px solid var(--accent-border);
  border-radius: var(--radius-md);
  padding: 15px 16px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.38);
}

.hero-date-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}
.hero-date-big {
  font-family: var(--font-mono);
  font-size: 23px;
  font-weight: 800;
  color: var(--accent-bright);
  line-height: 1.1;
}
.hero-node-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-bright);
  border: 1px solid var(--accent-border);
  white-space: nowrap;
}

.hero-wealth-block {
  background: rgba(7, 10, 16, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  padding: 11px 13px;
  margin-bottom: 9px;
}
.hero-wealth-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 3px; }
.hero-k { font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.hero-mult-badge {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-bright);
}
.hero-wealth-num {
  font-family: var(--font-mono);
  font-size: 27px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  word-break: break-all;
}

.hero-sub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 9px; }
.hero-sub-tile {
  background: rgba(7, 10, 16, 0.58);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 8px 10px;
}
.hero-sub-tile .k { display: block; font-size: 11px; color: var(--text-muted); margin-bottom: 2px; }
.hero-sub-tile .v { font-family: var(--font-mono); font-size: 15px; font-weight: 800; color: var(--text-primary); }

.life-status-stack { display: flex; flex-direction: column; gap: 7px; }
.life-tile { border-radius: 8px; padding: 8px 11px; border: 1px solid transparent; display: flex; flex-direction: column; gap: 3px; }
.life-tile-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.life-tile-label { font-size: 12px; font-weight: 700; }
.life-tile-val { font-family: var(--font-mono); font-size: 12.5px; font-weight: 800; }
.life-tile-sub { font-size: 11px; opacity: 0.86; }
.life-tile.safe { background: rgba(34, 197, 94, 0.14); border-color: rgba(34, 197, 94, 0.42); color: #bbf7d0; }
.life-tile.warn { background: rgba(245, 158, 11, 0.16); border-color: rgba(245, 158, 11, 0.5); color: #fde68a; }
.life-tile.danger { background: rgba(239, 68, 68, 0.16); border-color: rgba(239, 68, 68, 0.52); color: #fecaca; }
.life-tile.gold { background: var(--accent-soft); border-color: var(--accent-border); color: #fef08a; }
.life-tile.info { background: rgba(96, 165, 250, 0.14); border-color: rgba(96, 165, 250, 0.42); color: #dbeafe; }

.fund-bar { height: 5px; border-radius: 999px; background: rgba(0, 0, 0, 0.35); overflow: hidden; margin-top: 2px; }
.fund-bar-fill { height: 100%; border-radius: 999px; background: currentColor; transition: width 0.3s ease; }

.market-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 13px 15px;
}
.panel-head-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 9px; flex-wrap: wrap; }
.panel-head-title { font-size: 12.5px; font-weight: 700; color: var(--text-primary); }
.color-convention-tag { font-size: 10px; color: var(--text-muted); padding: 2px 6px; border-radius: 4px; background: rgba(148, 163, 184, 0.1); }

.quotes-stack { display: flex; flex-direction: column; gap: 6px; }
.quote-row-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(8, 11, 17, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 8px;
  padding: 7px 10px;
}
.quote-row-card.held { border-color: var(--accent-border); background: var(--accent-soft); }
.quote-left { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.quote-name-line { display: flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; flex-wrap: wrap; }
.quote-id-code { font-size: 10px; color: var(--text-muted); }
.quote-held-sub { font-size: 10.5px; color: var(--accent-bright); }
.quote-right { text-align: right; flex-shrink: 0; }
.quote-price { font-size: 13.5px; font-weight: 800; }
.quote-chg { font-size: 11px; font-weight: 700; }

.chg-up { color: var(--green); }
.chg-down { color: var(--red); }
.chg-red-up { color: var(--red); }
.chg-green-down { color: var(--green); }
.chg-flat { color: var(--text-muted); }

.lots-box { margin-top: 9px; padding-top: 9px; border-top: 1px dashed rgba(148, 163, 184, 0.2); display: flex; flex-direction: column; gap: 5px; }
.lot-pill {
  font-size: 11px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 7px;
  padding: 5px 8px;
  color: #fecaca;
  display: flex;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

/* ==========================================================================
   改动 2（第二、三处）：怀旧记忆场景卡（打字机） + 现实生活对话气泡流
   ========================================================================== */

/* 记忆闪回场景卡：明显偏暗棕黄、怀旧头像 + 逐字打字机 */
.memory-scene-card {
  background:
    radial-gradient(ellipse at 15% 50%, rgba(180, 128, 56, 0.16), transparent 65%),
    linear-gradient(135deg, #21180e 0%, #140f09 100%);
  border: 1px solid rgba(196, 149, 82, 0.44);
  border-left: 4px solid #d49b4b;
  border-radius: var(--radius-md);
  padding: 15px 18px;
  box-shadow: inset 0 0 32px rgba(0, 0, 0, 0.65), 0 8px 22px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  position: relative;
}

.memory-scene-body {
  flex: 1;
  min-width: 0;
}

.memory-scene-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #e3b368;
  letter-spacing: 0.05em;
}
.memory-scene-head.revealed { color: var(--rose); }
.memory-skip-hint {
  font-size: 10.5px;
  font-weight: 500;
  color: rgba(227, 179, 104, 0.65);
}

.memory-typewriter-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  line-height: 1.82;
  color: #eadbc2;
  margin: 0;
  min-height: 1.8em;
}

.tw-cursor {
  display: inline-block;
  margin-left: 2px;
  color: #e3b368;
  animation: twBlink 0.75s steps(2) infinite;
}
@keyframes twBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* 现实生活对话气泡流 */
.life-dialogue-box {
  background: rgba(15, 20, 30, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.life-dialogue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

@keyframes bubblePopIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dialogue-turn {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: bubblePopIn 320ms ease-out both;
}
.dialogue-turn.is-self {
  flex-direction: row-reverse;
}

.dialogue-content {
  max-width: calc(100% - 52px);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.dialogue-turn.is-self .dialogue-content {
  align-items: flex-end;
}

.dialogue-speaker {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
}

.dialogue-bubble {
  background: #1e2738;
  color: #f1f5f9;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 4px 13px 13px 13px;
  padding: 9px 13px;
  font-size: 14px;
  line-height: 1.68;
  word-break: break-word;
}

.dialogue-turn.is-self .dialogue-bubble {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: #fef9ee;
  border-radius: 13px 4px 13px 13px;
}

.dialogue-bubble.alert-danger {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.45);
  color: #fecaca;
}
.dialogue-bubble.alert-safe {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.42);
  color: #dcfce7;
}

/* ==========================================================================
   改动 3：五套完全独立的时代线索媒介组件与微动画（绝不共用套壳！）
   ========================================================================== */

/* ---------- [2008 专属] 印刷报纸(含半调相片位) + 主播台 CRT 电视 ---------- */
@keyframes tvTuneIn {
  0% {
    filter: brightness(2.1) contrast(1.8) grayscale(0.9);
    opacity: 0.45;
    transform: scaleY(0.94);
  }
  45% {
    filter: brightness(1.3) contrast(1.25) grayscale(0.3);
    opacity: 0.92;
    transform: scaleY(1.01);
  }
  100% {
    filter: none;
    opacity: 1;
    transform: scaleY(1);
  }
}

.tv2008-set {
  background: linear-gradient(160deg, #2b303a 0%, #161920 70%, #0f1217 100%);
  border: 2px solid #3c4352;
  border-radius: 18px;
  padding: 12px 14px 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
  margin-bottom: 14px;
}

.tv2008-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #94a3b8;
  margin-bottom: 7px;
}
.tv2008-live { color: #f87171; font-weight: 800; }

.tv2008-screen {
  position: relative;
  border-radius: 12px;
  background: radial-gradient(ellipse at 50% 40%, #1b2c42 0%, #0b1320 78%, #060a11 100%);
  border: 2px solid #080b10;
  padding: 12px 14px;
  overflow: hidden;
  animation: tvTuneIn 440ms ease-out both;
}

/* 低强度扫描线 + 雪花噪点纹理 */
.tv2008-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-radial-gradient(circle at 17% 32%, rgba(255, 255, 255, 0.03) 0, rgba(255, 255, 255, 0.03) 1px, transparent 1px, transparent 4px),
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 0px, rgba(255, 255, 255, 0.035) 1px, transparent 1px, transparent 3px);
  pointer-events: none;
  z-index: 2;
}

.tv2008-studio-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
  position: relative;
  z-index: 1;
}

/* 主播台示意画面区（纯 CSS 绘制演播室背景 + 主播剪影 + 走势屏） */
.tv2008-anchor-stage {
  width: 112px;
  min-height: 78px;
  flex-shrink: 0;
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(30, 58, 138, 0.65) 0%, rgba(15, 23, 42, 0.92) 72%, #334155 72%, #1e293b 100%);
  border: 1px solid rgba(147, 197, 253, 0.3);
  position: relative;
  overflow: hidden;
}
/* 演播室网格地球背景灯 */
.tv2008-anchor-stage::before {
  content: "NYSE";
  position: absolute;
  top: 6px;
  left: 7px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 900;
  color: rgba(147, 197, 253, 0.7);
  background: rgba(15, 23, 42, 0.65);
  padding: 1px 4px;
  border-radius: 2px;
}
/* 主播剪影 */
.tv2008-anchor-figure {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 36px;
}
.tv2008-anchor-figure::before {
  content: "";
  position: absolute;
  top: 0;
  left: 13px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #cbd5e1;
}
.tv2008-anchor-figure::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 2px;
  width: 40px;
  height: 18px;
  border-radius: 10px 10px 0 0;
  background: #1e293b;
  border: 1px solid #64748b;
}
.tv2008-desk-bar {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  height: 17px;
  background: linear-gradient(90deg, #7f1d1d, #b91c1c, #7f1d1d);
  border-top: 1.5px solid #fca5a5;
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.08em;
}

.tv2008-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.tv2008-chyron-tag {
  display: inline-block;
  align-self: flex-start;
  background: #dc2626;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 2px;
  margin-bottom: 5px;
}
.tv2008-headline {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.28;
  margin: 0;
}
.tv2008-ticker {
  margin-top: 9px;
  padding-top: 6px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #93c5fd;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

/* 2008 印刷报纸（保留纸纹与首字下沉 + 黑白半调新闻照片位） */
.paper2008-sheet {
  background:
    radial-gradient(circle at 18% 12%, rgba(160, 132, 84, 0.1), transparent 58%),
    linear-gradient(180deg, #f5efe2 0%, #e8dec8 100%);
  color: #1c1915;
  border-radius: 8px;
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(217, 173, 84, 0.38);
}
.paper2008-masthead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 2.5px solid #1c1915;
  padding-bottom: 5px;
  margin-bottom: 3px;
  gap: 8px;
  flex-wrap: wrap;
}
.paper2008-name { font-family: var(--font-serif); font-weight: 900; font-size: 13.5px; letter-spacing: 0.14em; }
.paper2008-date { font-family: var(--font-mono); font-size: 11px; color: #5b5245; }
.paper2008-subrule { height: 1px; background: rgba(28, 25, 21, 0.35); margin-bottom: 12px; }
.paper2008-headline { font-family: var(--font-serif); font-size: 25px; font-weight: 900; margin: 0 0 12px; color: #110f0c; line-height: 1.24; }

.paper2008-grid {
  display: grid;
  grid-template-columns: 1fr 148px;
  gap: 14px;
  align-items: start;
}
.paper2008-body {
  font-family: var(--font-serif);
  font-size: 15.5px;
  line-height: 1.85;
  color: #2b2620;
  margin: 0;
}
.paper2008-body::first-letter {
  font-size: 28px;
  font-weight: 900;
  float: left;
  line-height: 1;
  padding-right: 6px;
  padding-top: 3px;
  color: #110f0c;
}

/* 黑白半调网点新闻照片图位 */
.paper2008-photo {
  border: 1.5px solid #2b2620;
  background: #d8ceb8;
  padding: 4px;
}
.paper2008-photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    radial-gradient(#1f1c18 1.1px, transparent 1.2px) 0 0 / 4px 4px,
    linear-gradient(155deg, #aba18e 0%, #5c5549 55%, #2b2722 100%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 6px;
}
.paper2008-photo-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.22);
}
.paper2008-photo-frame img.img-failed { display: none !important; }
.halftone-stamp {
  position: relative;
  z-index: 1;
  background: rgba(20, 18, 15, 0.78);
  color: #f5efe2;
  font-family: var(--font-mono);
  font-size: 9.5px;
  padding: 2px 5px;
}
.paper2008-caption {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: #4a4237;
  margin-top: 4px;
  text-align: center;
}

/* ---------- [2010 专属] 早期论坛帖子串 + IRC 聊天记录块 ---------- */
@keyframes postRollIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.forum2010-thread {
  background: #0b140f;
  border: 1.5px solid rgba(34, 197, 94, 0.42);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.forum2010-crumb {
  background: #12281c;
  border-bottom: 1px solid rgba(34, 197, 94, 0.32);
  padding: 8px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #86efac;
}
.forum2010-topic-bar {
  background: #0e1d15;
  padding: 9px 14px;
  border-bottom: 1px solid rgba(34, 197, 94, 0.2);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
  color: #fbbf24;
}

.forum2010-post {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  border-bottom: 1px solid rgba(34, 197, 94, 0.18);
  animation: postRollIn 380ms ease-out both;
}
.forum2010-post:last-child { border-bottom: none; }

.forum2010-author {
  background: rgba(18, 40, 28, 0.55);
  border-right: 1px solid rgba(34, 197, 94, 0.18);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 5px;
}
.forum2010-uname {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: #4ade80;
  word-break: break-all;
}
.forum2010-rank {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: #94a3b8;
}

.forum2010-main {
  padding: 10px 14px 12px;
  min-width: 0;
}
.forum2010-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #6ee7b7;
  opacity: 0.8;
  padding-bottom: 6px;
  margin-bottom: 8px;
  border-bottom: 1px dashed rgba(34, 197, 94, 0.2);
}
.forum2010-quote {
  background: rgba(34, 197, 94, 0.08);
  border-left: 3px solid #4ade80;
  padding: 6px 10px;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #a7f3d0;
}
.forum2010-text {
  font-size: 14px;
  line-height: 1.75;
  color: #ecfdf5;
  margin: 0;
}

.irc2010-box {
  margin-top: 12px;
  background: #050907;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 8px;
  padding: 10px 13px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.65;
  color: #cbd5e1;
  animation: postRollIn 420ms ease-out 140ms both;
}
.irc2010-head {
  color: #fbbf24;
  font-weight: 700;
  margin-bottom: 4px;
  font-size: 10.5px;
}
.irc-ts { color: #64748b; }
.irc-nick { color: #4ade80; font-weight: 700; }

/* ---------- [2015 专属] 手机炒股 App + 股吧帖子流 + 微信群气泡（无电视框！） ---------- */
.stockapp2015-card {
  background: #140c0e;
  border: 1.5px solid rgba(239, 68, 68, 0.42);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  animation: postRollIn 360ms ease-out both;
}
.stockapp2015-topbar {
  background: linear-gradient(90deg, #991b1b, #dc2626);
  color: #fff;
  padding: 7px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
}
.stockapp2015-body {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 12px;
  padding: 12px 14px;
  align-items: center;
}
.intraday-box {
  background: #0b0608;
  border: 1px solid rgba(239, 68, 68, 0.22);
  border-radius: 8px;
  padding: 8px 10px;
}
.intraday-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  margin-bottom: 4px;
}
.intraday-svg { width: 100%; height: 66px; display: block; }

.watchlist-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wl-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  font-size: 12px;
}
.wl-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  color: #fff;
}
.wl-badge.up { background: #dc2626; }
.wl-badge.down { background: #16a34a; }
.wl-badge.flat { background: #475569; }

.guba2015-card {
  margin-top: 12px;
  background: #1b1114;
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: 10px;
  padding: 14px 16px;
  animation: postRollIn 380ms ease-out 90ms both;
}
.guba2015-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #fca5a5;
  margin-bottom: 7px;
  flex-wrap: wrap;
  gap: 6px;
}
.guba2015-tag {
  background: #dc2626;
  color: #fff;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 10.5px;
}
.guba2015-title {
  font-size: 18px;
  font-weight: 800;
  color: #fde047;
  margin: 0 0 7px;
}
.guba2015-body {
  font-size: 14.5px;
  line-height: 1.78;
  color: #fee2e2;
  margin: 0;
}

.wxgroup2015-strip {
  margin-top: 12px;
  background: #141920;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  padding: 10px 13px;
  animation: postRollIn 400ms ease-out 170ms both;
}
.wxgroup2015-head {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 700;
  margin-bottom: 7px;
  display: flex;
  justify-content: space-between;
}

/* ---------- [1990 专属] 锯齿撕纸热敏传真件 + 杂志内页 + 土地传单 ---------- */
@keyframes faxSlideDown {
  from {
    opacity: 0;
    transform: translateY(-22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fax1990-sheet {
  position: relative;
  background: #f1ede4;
  color: #22201c;
  padding: 16px 18px;
  margin-bottom: 13px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.42);
  animation: faxSlideDown 440ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
/* 上下锯齿撕纸边 */
.fax1990-sheet::before,
.fax1990-sheet::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 6px;
  background-size: 12px 6px;
}
.fax1990-sheet::before {
  top: -6px;
  background-image: linear-gradient(135deg, transparent 33.33%, #f1ede4 33.33%, #f1ede4 66.67%, transparent 66.67%),
                    linear-gradient(225deg, transparent 33.33%, #f1ede4 33.33%, #f1ede4 66.67%, transparent 66.67%);
}
.fax1990-sheet::after {
  bottom: -6px;
  background-image: linear-gradient(45deg, #f1ede4 33.33%, transparent 33.33%, transparent 66.67%, #f1ede4 66.67%),
                    linear-gradient(315deg, #f1ede4 33.33%, transparent 33.33%, transparent 66.67%, #f1ede4 66.67%);
}
.fax1990-header {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #57534e;
  border-bottom: 1px dashed #78716c;
  padding-bottom: 6px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.fax1990-line {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #292524;
  font-weight: 700;
}

.mag1990-spread {
  background: linear-gradient(180deg, #fbf4e4 0%, #efe1c4 100%);
  color: #1c140c;
  border: 2px solid #d97706;
  border-radius: 6px;
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: stretch;
  box-shadow: var(--shadow-card);
  animation: postRollIn 400ms ease-out 90ms both;
}
.mag1990-main { flex: 1; min-width: 0; }
.mag1990-eyebrow {
  display: inline-block;
  background: #b91c1c;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 11px;
  font-weight: 900;
  padding: 1px 8px;
  margin-bottom: 7px;
  letter-spacing: 0.1em;
}
.mag1990-title {
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 900;
  margin: 0 0 10px;
  color: #140e07;
  line-height: 1.25;
}
.mag1990-body {
  font-family: var(--font-serif);
  font-size: 15.5px;
  line-height: 1.85;
  color: #2d2216;
  margin: 0;
}
.mag1990-vert {
  writing-mode: vertical-rl;
  border-left: 2px double #9a3412;
  padding-left: 10px;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 12.5px;
  letter-spacing: 0.2em;
  color: #9a3412;
  flex-shrink: 0;
}

.flyer1990-ad {
  margin-top: 12px;
  background: linear-gradient(90deg, #2d1d0e, #3b2612);
  border: 1.5px dashed #f59e0b;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: #fef3c7;
  font-size: 12px;
  animation: postRollIn 420ms ease-out 160ms both;
}

/* ---------- [2021 专属] 微博热搜榜 + 公司群通知卡片 + 微信聊天界面 ---------- */
.weibo2021-card {
  background: #161b26;
  border: 1px solid rgba(251, 113, 133, 0.34);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  animation: postRollIn 360ms ease-out both;
}
.weibo2021-head {
  background: linear-gradient(90deg, #9f1239, #e11d48);
  color: #fff;
  padding: 7px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
}
.weibo2021-list {
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
}
.wb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  font-size: 13px;
}
.wb-row:last-child { border-bottom: none; }
.wb-left { display: flex; align-items: center; gap: 9px; min-width: 0; }
.wb-rank { font-family: var(--font-mono); font-weight: 900; font-size: 13px; color: #f43f5e; width: 16px; flex-shrink: 0; }
.wb-rank.r2 { color: #fb923c; }
.wb-rank.r3 { color: #facc15; }
.wb-topic { font-weight: 700; color: #f1f5f9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.wb-heat { font-family: var(--font-mono); font-size: 11px; color: #94a3b8; }
.wb-tag {
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  padding: 1px 5px;
  border-radius: 3px;
}
.wb-tag.boom { background: #be123c; }
.wb-tag.boil { background: #ea580c; }
.wb-tag.hot { background: #d97706; }

.corp2021-card {
  margin-top: 12px;
  background: #f8fafc;
  color: #0f172a;
  border-radius: 12px;
  padding: 15px 17px;
  border-left: 4px solid #2563eb;
  box-shadow: var(--shadow-card);
  animation: postRollIn 380ms ease-out 90ms both;
}
.corp2021-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}
.corp2021-sender {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 800;
  color: #1e293b;
}
.corp2021-badge {
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
}
.corp2021-title { font-size: 17px; font-weight: 800; margin: 0 0 6px; color: #0f172a; }
.corp2021-body { font-size: 14.5px; line-height: 1.78; color: #334155; margin: 0; }

.wx2021-chat {
  margin-top: 12px;
  background: #11161f;
  border: 1px solid rgba(34, 197, 94, 0.36);
  border-radius: 12px;
  overflow: hidden;
  animation: postRollIn 400ms ease-out 160ms both;
}
.wx2021-topbar {
  background: #1a212e;
  padding: 8px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #e2e8f0;
}
.wx2021-time-pill {
  text-align: center;
  margin: 10px auto 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #94a3b8;
}
.wx2021-msgs {
  padding: 6px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==========================================================================
   右栏：决策操作台
   ========================================================================== */
.decision-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 15px 16px;
}
.decision-section.life-section {
  border-color: rgba(251, 113, 133, 0.36);
  background: linear-gradient(180deg, rgba(30, 21, 32, 0.92), rgba(18, 23, 34, 0.96));
}
.section-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 11px; flex-wrap: wrap; }
.section-title { font-size: 14px; font-weight: 800; margin: 0; }
.section-hint { font-size: 11px; color: var(--text-secondary); }

.life-options-stack { display: flex; flex-direction: column; gap: 8px; }
.life-option-btn {
  text-align: left;
  background: rgba(8, 11, 17, 0.72);
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  padding: 10px 12px;
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.life-option-btn:hover:not(:disabled) { border-color: var(--accent-border); background: var(--bg-card-hover); }
.life-option-btn.selected { border-color: var(--accent-bright); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent-bright); }
.life-option-btn:disabled { opacity: 0.65; cursor: default; }
.life-opt-title { font-size: 13px; font-weight: 600; line-height: 1.45; }
.life-opt-effect { font-size: 11px; color: var(--accent-bright); }

.choices-list { display: flex; flex-direction: column; gap: 8px; }
.choice-card {
  background: rgba(8, 11, 17, 0.74);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 11px 13px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.choice-card:hover:not(.disabled) { border-color: var(--border-strong); background: var(--bg-card-hover); }
.choice-card.selected { border-color: var(--accent-bright); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent-border); }
.choice-card.disabled { opacity: 0.42; cursor: not-allowed; }
.choice-card.exit-choice { border-style: dashed; border-color: rgba(245, 158, 11, 0.45); }

.choice-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.choice-main { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.choice-index {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  border-radius: 5px;
  background: rgba(148, 163, 184, 0.16);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.choice-card.selected .choice-index { background: var(--accent-bright); color: #140f08; }
.choice-text { font-size: 13.5px; font-weight: 600; line-height: 1.45; }

.choice-tag { font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 5px; white-space: nowrap; flex-shrink: 0; }
.choice-tag.buy { color: var(--green); background: var(--green-soft); }
.choice-tag.sell { color: var(--amber); background: var(--amber-soft); }
.choice-tag.rotate { color: var(--blue); background: var(--blue-soft); }
.choice-tag.exit { color: var(--rose); background: var(--rose-soft); }
.choice-tag.hold { color: var(--text-secondary); background: rgba(148, 163, 184, 0.14); }

.choice-config {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(148, 163, 184, 0.22);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.config-group-label { font-size: 11px; color: var(--text-secondary); margin-bottom: 4px; display: block; }
.picker-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pill-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  border-radius: 7px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}
.pill-btn:hover:not(:disabled) { border-color: var(--accent-bright); }
.pill-btn.active { background: var(--accent-soft); border-color: var(--accent-bright); color: var(--accent-bright); }
.pill-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.pill-sub { font-family: var(--font-mono); font-size: 10px; font-weight: 500; color: var(--text-secondary); }
.pill-btn.active .pill-sub { color: #f8e5b8; }

.trade-preview-line { font-size: 12px; color: var(--text-secondary); line-height: 1.55; }
.risk-warning {
  padding: 7px 10px;
  border-radius: 7px;
  background: var(--amber-soft);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fde68a;
  font-size: 11.5px;
  font-weight: 600;
}
.risk-warning.danger { background: var(--red-soft); border-color: rgba(239, 68, 68, 0.5); color: #fecaca; }
.window-closed-box {
  padding: 13px 15px;
  border-radius: 9px;
  background: rgba(239, 68, 68, 0.09);
  border: 1px dashed rgba(239, 68, 68, 0.42);
  color: #fecaca;
  font-size: 13px;
  line-height: 1.65;
}
.confirm-bar { margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--border-subtle); display: flex; flex-direction: column; gap: 8px; }
.confirm-summary { font-size: 12px; color: var(--text-secondary); }

/* ==========================================================================
   快进揭晓面板 + 结局页 + 图鉴弹窗
   ========================================================================== */
.reveal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
}
.reveal-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.reveal-kicker { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; color: var(--accent-bright); margin-bottom: 3px; }
.reveal-heading { font-family: var(--font-serif); font-size: 22px; margin: 0; }
.reveal-ticker-stats { display: flex; gap: 9px; flex-wrap: wrap; }
.ticker-box {
  background: rgba(8, 11, 17, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  padding: 7px 12px;
  min-width: 128px;
}
.ticker-box .k { display: block; font-size: 10.5px; color: var(--text-muted); }
.ticker-box .v { font-family: var(--font-mono); font-size: 18px; font-weight: 800; }

.chart-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 9px; }
.chart-tabs { display: inline-flex; background: rgba(8, 11, 17, 0.8); border: 1px solid var(--border-subtle); border-radius: 8px; padding: 3px; gap: 4px; }
.chart-tab { border: none; background: transparent; color: var(--text-secondary); font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 6px; cursor: pointer; }
.chart-tab.active { background: var(--bg-elevated); color: var(--accent-bright); }

.chart-canvas-wrap { width: 100%; height: 300px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(148, 163, 184, 0.18); margin-bottom: 14px; }
.chart-canvas-wrap canvas { width: 100%; height: 100%; display: block; }

.reveal-after-panel { display: flex; flex-direction: column; gap: 12px; }
.reveal-after-panel:not(.visible) { pointer-events: none; }

.narration-box {
  font-family: var(--font-serif);
  font-size: 16.5px;
  line-height: 1.82;
  color: #f5efe2;
  background: linear-gradient(135deg, var(--accent-soft), rgba(18, 23, 34, 0.88));
  border-left: 4px solid var(--accent-bright);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  white-space: pre-line;
}

.summary-op-box {
  background: rgba(8, 11, 17, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.events-log { display: flex; flex-direction: column; gap: 8px; }
.event-banner { padding: 10px 14px; border-radius: 9px; font-size: 13px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.event-banner.gold { background: var(--accent-soft); border: 1px solid var(--accent-border); color: #fef08a; }
.event-banner.danger { background: var(--red-soft); border: 1px solid rgba(239, 68, 68, 0.48); color: #fecaca; }
.event-banner.cost { background: rgba(148, 163, 184, 0.1); border: 1px solid var(--border-subtle); color: var(--text-secondary); }
.event-banner.warn { background: var(--amber-soft); border: 1px solid rgba(245, 158, 11, 0.48); color: #fde68a; }

.asset-deltas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 8px; }
.asset-delta-card { background: rgba(8, 11, 17, 0.72); border: 1px solid var(--border-subtle); border-radius: 8px; padding: 9px 11px; }
.asset-delta-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; font-size: 12px; gap: 4px; }
.asset-delta-prices { font-family: var(--font-mono); font-size: 11px; color: var(--text-secondary); }
.reveal-footer { display: flex; justify-content: flex-end; gap: 12px; padding-top: 4px; }

/* 结局页 */
.ending-layout { display: grid; grid-template-columns: 390px minmax(0, 1fr); gap: 22px; align-items: start; }
.poster-column { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 70px; }
.poster-frame { background: #090c12; border-radius: 14px; overflow: hidden; border: 1px solid var(--accent-border); box-shadow: 0 18px 46px rgba(0, 0, 0, 0.55); }
.poster-frame canvas { width: 100%; height: auto; display: block; }
.poster-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.review-column { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.panel-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 18px 20px; }
.panel-card h3 { margin: 0 0 12px; font-size: 15px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.journey-canvas-wrap { width: 100%; height: 235px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border-subtle); }
.journey-canvas-wrap canvas { width: 100%; height: 100%; display: block; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.stat-tile { background: rgba(8, 11, 17, 0.68); border: 1px solid var(--border-subtle); border-radius: 8px; padding: 10px 12px; }
.stat-tile .k { display: block; font-size: 11px; color: var(--text-muted); margin-bottom: 3px; }
.stat-tile .v { font-size: 14.5px; font-weight: 800; word-break: break-all; }

.history-list { display: flex; flex-direction: column; gap: 8px; }
.history-row { background: rgba(8, 11, 17, 0.65); border: 1px solid var(--border-subtle); border-radius: 8px; padding: 10px 13px; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.history-left { min-width: 0; }
.history-left .h-meta { font-family: var(--font-mono); font-size: 11px; color: var(--accent-bright); margin-bottom: 2px; }
.history-left .h-choice { font-size: 13px; color: var(--text-primary); }
.history-left .h-life { font-size: 12px; color: #fda4af; margin-top: 2px; }
.history-right { text-align: right; flex-shrink: 0; }
.history-right .h-nw { font-family: var(--font-mono); font-size: 13px; font-weight: 700; }
.history-right .h-delta { font-family: var(--font-mono); font-size: 11px; }

/* 图鉴弹窗 & Toast & 页脚 */
.modal-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(5, 8, 13, 0.8); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-card { width: 100%; max-width: 780px; max-height: 85vh; overflow-y: auto; background: var(--bg-surface); border: 1px solid var(--accent-border); border-radius: var(--radius-lg); padding: 20px 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; gap: 10px; }
.modal-header h2 { margin: 0; font-family: var(--font-serif); font-size: 21px; }
.modal-sub { margin: 4px 0 0; font-size: 12.5px; color: var(--text-secondary); }
.gallery-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.gallery-tab { background: rgba(8, 11, 17, 0.7); border: 1px solid var(--border-subtle); color: var(--text-secondary); border-radius: 8px; padding: 6px 10px; font-size: 12px; font-weight: 600; cursor: pointer; }
.gallery-tab.active { border-color: var(--accent-bright); background: var(--accent-soft); color: var(--accent-bright); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.gallery-card { background: rgba(8, 11, 17, 0.76); border: 1px solid var(--border-subtle); border-radius: 10px; padding: 12px 14px; }
.gallery-card.unlocked { border-color: var(--accent-border); background: var(--accent-soft); }
.gallery-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; gap: 8px; }
.gallery-title { font-family: var(--font-serif); font-size: 15px; font-weight: 700; }
.gallery-card.locked .gallery-title { color: var(--text-muted); }
.gallery-desc { font-size: 12.5px; color: var(--text-secondary); margin: 0; line-height: 1.6; }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 95;
  background: #1d2536;
  color: var(--accent-bright);
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  max-width: 92vw;
  text-align: center;
}

.app-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 12px 16px;
  text-align: center;
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.save-indicator { color: var(--text-secondary); }

/* ==========================================================================
   响应式适配（特别针对平板 & 手机竖屏 390×844 零横向溢出优化）
   ========================================================================== */
@media (max-width: 1200px) {
  .node-two-cols {
    grid-template-columns: 1fr;
  }
  .col-right-sticky { position: static; }
}

@media (max-width: 900px) {
  .anchored-play-shell {
    grid-template-columns: 1fr;
  }
  .anchor-left-col { position: static; }
  .ending-layout { grid-template-columns: 1fr; }
  .poster-column { position: static; max-width: 440px; margin: 0 auto; width: 100%; }
  .timeline-inline { display: none; }
}

@media (max-width: 600px) {
  .hud-inner { padding: 8px 12px; gap: 8px; }
  .brand-mark { font-size: 16px; }
  .brand-chapter { display: none; }
  .stage { padding: 12px 12px 34px; }

  .prologue-card { padding: 20px 16px; }
  .prologue-header-row { flex-direction: row; align-items: center; gap: 12px; }
  .hero-role-card { flex-direction: column; align-items: flex-start; padding: 14px; gap: 12px; }

  .paper2008-sheet { padding: 15px 14px; }
  .paper2008-grid { grid-template-columns: 1fr; }
  .tv2008-studio-row { flex-direction: column; }
  .tv2008-anchor-stage { width: 100%; height: 74px; }

  .forum2010-post { grid-template-columns: 1fr; }
  .forum2010-author {
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid rgba(34, 197, 94, 0.15);
    padding: 8px 12px;
    text-align: left;
  }

  .stockapp2015-body { grid-template-columns: 1fr; }
  .mag1990-spread { padding: 15px 14px; gap: 10px; }
  .mag1990-title { font-size: 21px; }

  .memory-scene-card { padding: 13px 14px; gap: 11px; }
  .reveal-card { padding: 15px 13px; }
  .ticker-box { min-width: calc(50% - 6px); flex: 1; }
  .chart-canvas-wrap { height: 235px; }
  .poster-actions { grid-template-columns: 1fr; }
}


/* ==========================================================================
   账号层与付费关卡引导样式（深藏青 + 暗金统一风格，兼容 390×844 竖屏）
   ========================================================================== */
.auth-mount {
  display: inline-flex;
  align-items: center;
  position: relative;
}

.btn-auth-login {
  background: rgba(217, 173, 84, 0.14);
  border: 1px solid rgba(217, 173, 84, 0.48);
  color: var(--accent-bright);
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
}
.btn-auth-login:hover:not(:disabled) {
  background: rgba(217, 173, 84, 0.26);
  border-color: var(--accent-bright);
}

.auth-user-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.supporter-header-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: #f8dfa1;
  background: linear-gradient(135deg, rgba(217, 173, 84, 0.28), rgba(146, 102, 27, 0.34));
  border: 1px solid rgba(242, 201, 109, 0.68);
  box-shadow: 0 0 12px rgba(217, 173, 84, 0.18);
  white-space: nowrap;
}

.auth-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 10px 3px 4px;
  border-radius: 999px;
  background: rgba(25, 33, 49, 0.9);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 12.5px;
  transition: border-color 160ms ease, background 160ms ease;
}
.auth-user-pill:hover {
  border-color: var(--accent-border);
  background: var(--bg-card-hover);
}

.auth-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(217, 173, 84, 0.22);
  border: 1px solid rgba(217, 173, 84, 0.5);
  flex-shrink: 0;
}
.auth-avatar-fallback {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-bright);
}
.auth-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-nickname {
  max-width: 112px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.auth-caret {
  font-size: 10px;
  color: var(--text-muted);
}

.auth-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 215px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: #131a27;
  border: 1px solid var(--border-strong);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.58);
  z-index: 90;
}
.auth-dd-info {
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}
.auth-dd-name {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text-primary);
}
.auth-dd-email {
  font-size: 11.5px;
  color: var(--text-muted);
  word-break: break-all;
  margin-top: 2px;
}
.auth-dd-supporter {
  margin-top: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent-bright);
  font-family: var(--font-mono);
}
.auth-logout-btn {
  width: 100%;
  justify-content: center;
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}
.auth-logout-btn:hover {
  background: rgba(239, 68, 68, 0.14);
}

.auth-error-banner {
  max-width: 1180px;
  margin: 10px auto 0;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: rgba(127, 29, 29, 0.42);
  border: 1px solid rgba(248, 113, 113, 0.52);
  color: #fecaca;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.auth-err-close {
  background: transparent;
  border: none;
  color: #fecaca;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}

/* 选关卡右上角免费/付费标识 */
.stage-access-pill {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
}
.stage-access-pill.free {
  background: rgba(15, 23, 36, 0.8);
  border: 1px solid rgba(34, 197, 94, 0.55);
  color: #86efac;
}
.stage-access-pill.locked {
  background: rgba(12, 16, 26, 0.86);
  border: 1px solid rgba(217, 173, 84, 0.58);
  color: #f6d588;
  font-family: var(--font-mono);
}
.stage-access-pill.unlocked {
  background: rgba(20, 29, 24, 0.88);
  border: 1px solid rgba(242, 201, 109, 0.65);
  color: #f8dfa1;
}

/* 付费章节登录引导与即将开放方案弹窗 */
.gate-modal-card {
  max-width: 680px;
  width: calc(100% - 24px);
  padding: 22px 24px;
}
.gate-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.gate-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent-bright);
  margin-bottom: 4px;
}
.gate-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--text-primary);
}
.gate-error-box {
  margin-bottom: 14px;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  background: rgba(127, 29, 29, 0.35);
  border: 1px solid rgba(248, 113, 113, 0.5);
  color: #fecaca;
  font-size: 13px;
}
.gate-login-card {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(15, 20, 30, 0.72);
  border: 1px solid var(--border-subtle);
}
.gate-lead {
  margin: 0 0 8px;
  font-size: 14.5px;
  color: var(--text-primary);
  font-weight: 600;
}
.gate-sub {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--text-secondary);
}
.gate-login-actions {
  display: flex;
  gap: 10px;
}
.gate-sync-hint {
  margin-bottom: 12px;
  font-size: 12.5px;
  color: var(--accent-bright);
}
.gate-tiers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.gate-tier-card {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(14, 19, 29, 0.84);
  border: 1px solid var(--border-subtle);
}
.gate-tier-card.featured {
  border-color: rgba(96, 165, 250, 0.45);
  background: linear-gradient(135deg, rgba(18, 28, 45, 0.9), rgba(14, 19, 29, 0.88));
}
.gate-tier-card.supporter {
  border-color: rgba(217, 173, 84, 0.62);
  background: linear-gradient(135deg, rgba(35, 28, 16, 0.88), rgba(16, 20, 30, 0.92));
}
.gate-tier-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.gate-tier-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.gate-chip {
  font-style: normal;
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.18);
  color: #93c5fd;
  border: 1px solid rgba(96, 165, 250, 0.4);
}
.gate-chip.gold {
  background: rgba(217, 173, 84, 0.22);
  color: #f8dfa1;
  border-color: rgba(242, 201, 109, 0.55);
}
.gate-tier-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent-bright);
}
.gate-tier-desc {
  margin: 0 0 10px;
  font-size: 12.8px;
  color: var(--text-secondary);
}
.gate-coming-soon {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(148, 163, 184, 0.12);
  border: 1px dashed var(--border-strong);
}
.gate-coming-soon.gold {
  color: #f6d588;
  background: rgba(217, 173, 84, 0.12);
  border-color: rgba(217, 173, 84, 0.48);
}
.gate-footnote {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .auth-nickname { max-width: 72px; }
  .supporter-header-chip { font-size: 10px; padding: 2px 6px; }
  .gate-modal-card { padding: 16px 14px; }
  .gate-title { font-size: 18px; }
}
