/* ==========================================================================
   《军训生活之退伍后大学军训教官是我手下兵》· 样式表
   风格取向：军营夜训 —— 深墨绿底 + 作训网格 + 军旗红与橄榄绿点缀
   全部动画均为 CSS 实现，无任何外部字体/图片依赖（断网可用）
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 设计变量与基础重置
   -------------------------------------------------------------------------- */
:root {
  --bg-deep: #080b09;
  --bg-mid: #0f150f;
  --panel: rgba(19, 26, 20, 0.82);
  --panel-solid: #131a14;
  --line: rgba(168, 190, 130, 0.16);
  --line-strong: rgba(168, 190, 130, 0.32);
  --ink: #ebe6d9;
  --muted: #98a288;
  --dim: #6d7663;
  --accent: #cf5340;      /* 军旗红：强调、代价、危险 */
  --accent-soft: rgba(207, 83, 64, 0.14);
  --olive: #b3c486;       /* 橄榄绿：正向数值 */
  --olive-soft: rgba(179, 196, 134, 0.14);
  --gold: #e2c073;        /* 卡其金：荣誉、冠军 */
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
          "Noto Sans CJK SC", "WenQuanYi Micro Hei", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--ink);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button { font-family: inherit; cursor: pointer; }

/* 隐藏式但可访问的滚动条美化 */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(168, 190, 130, 0.18);
  border-radius: 10px;
  border: 3px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(168, 190, 130, 0.34); background-clip: content-box; }

/* --------------------------------------------------------------------------
   2. 背景层：作训网格 + 光晕 + 暗角 + 浮尘
   -------------------------------------------------------------------------- */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; }

/* 缓慢平移的作训网格，营造"操场"的空间感 */
.bg-grid {
  position: absolute;
  inset: -50%;
  background-image:
    linear-gradient(rgba(168, 190, 130, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 190, 130, 0.055) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px;
  transform: perspective(600px) rotateX(58deg) translateY(-10%);
  animation: gridPan 26s linear infinite;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 78%);
}

/* 中央暖色光晕，像操场探照灯 */
.bg-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 45% at 50% 8%, rgba(226, 192, 115, 0.10), transparent 70%),
    radial-gradient(ellipse 70% 60% at 12% 90%, rgba(207, 83, 64, 0.09), transparent 70%),
    linear-gradient(180deg, var(--bg-mid), var(--bg-deep) 70%);
}

/* 暗角，让视线聚焦中央 */
.bg-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 90% 80% at 50% 50%, transparent 40%, rgba(0, 0, 0, 0.72) 100%);
}

/* 浮尘：8 颗缓慢上浮的光点 */
.dust { position: absolute; inset: 0; }
.dust i {
  position: absolute;
  bottom: -10px;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(226, 192, 115, 0.55);
  box-shadow: 0 0 8px rgba(226, 192, 115, 0.7);
  animation: floatUp linear infinite;
}
.dust i:nth-child(1) { left: 8%;  animation-duration: 19s; animation-delay: 0s;   }
.dust i:nth-child(2) { left: 21%; animation-duration: 27s; animation-delay: 3s;   }
.dust i:nth-child(3) { left: 34%; animation-duration: 22s; animation-delay: 7s;   }
.dust i:nth-child(4) { left: 47%; animation-duration: 31s; animation-delay: 1s;   }
.dust i:nth-child(5) { left: 61%; animation-duration: 24s; animation-delay: 9s;   }
.dust i:nth-child(6) { left: 73%; animation-duration: 29s; animation-delay: 4s;   }
.dust i:nth-child(7) { left: 86%; animation-duration: 20s; animation-delay: 11s;  }
.dust i:nth-child(8) { left: 94%; animation-duration: 34s; animation-delay: 6s;   }

@keyframes gridPan {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 0 64px, 64px 0; }
}
@keyframes floatUp {
  0%   { transform: translateY(0) scale(0.6); opacity: 0; }
  10%  { opacity: 0.9; }
  90%  { opacity: 0.5; }
  100% { transform: translateY(-100vh) scale(1.15); opacity: 0; }
}

/* --------------------------------------------------------------------------
   3. 页面骨架
   -------------------------------------------------------------------------- */
.app {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 18px 16px;
  gap: 10px;
}

/* --------------------------------------------------------------------------
   4. 顶部状态栏
   -------------------------------------------------------------------------- */
.hud {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  animation: dropIn 0.6s cubic-bezier(0.2, 0.8, 0.25, 1) both;
}

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

/* 品牌方块：一枚"肩章" */
.brand-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 9px;
  background: linear-gradient(150deg, var(--accent), #8d2f22);
  color: #fff2ea;
  font-size: 19px; font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 6px 18px rgba(207, 83, 64, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text b { font-size: 15px; letter-spacing: 1.5px; }
.brand-text em {
  font-style: normal;
  font-size: 11.5px;
  color: var(--gold);
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

/* 进度条 */
.hud-progress { flex: 1 1 auto; display: flex; align-items: center; gap: 10px; min-width: 120px; }
.progress-track {
  flex: 1 1 auto;
  height: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--olive), var(--gold));
  box-shadow: 0 0 12px rgba(226, 192, 115, 0.5);
  transition: width 0.6s cubic-bezier(0.2, 0.8, 0.25, 1);
}
.progress-label { font-size: 11.5px; color: var(--muted); white-space: nowrap; letter-spacing: 0.5px; }

.hud-actions { display: flex; gap: 8px; flex: 0 0 auto; }

.ghost-btn {
  padding: 7px 12px;
  font-size: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all 0.22s ease;
  white-space: nowrap;
}
.ghost-btn:hover { color: var(--ink); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.07); }
.ghost-btn.on { color: var(--gold); border-color: rgba(226, 192, 115, 0.5); background: rgba(226, 192, 115, 0.1); }

/* --------------------------------------------------------------------------
   5. 数值面板
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  animation: dropIn 0.7s 0.06s cubic-bezier(0.2, 0.8, 0.25, 1) both;
  transition: grid-template-columns 0.3s;
}
/* 打开「老兵模式」后，多出隐藏值【旧账】一栏 */
body.veteran .stats { grid-template-columns: repeat(4, 1fr); }

.stat {
  padding: 9px 13px 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.35s, transform 0.35s;
}
.stat:hover { border-color: var(--line-strong); }

.stat-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.stat-name { font-size: 12.5px; letter-spacing: 2px; color: var(--muted); }
.stat-val { font-size: 17px; font-weight: 700; color: var(--olive); font-variant-numeric: tabular-nums; }

.bar { height: 5px; border-radius: 5px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.bar i {
  display: block; height: 100%; width: 20%;
  border-radius: 5px;
  background: linear-gradient(90deg, #7e9159, var(--olive));
  transition: width 0.7s cubic-bezier(0.2, 0.8, 0.25, 1);
}
.stat-desc { margin-top: 6px; font-size: 10.5px; color: var(--dim); letter-spacing: 0.3px; }

/* 数值变化时的脉冲反馈 */
.stat.bump-up   { animation: bumpUp 0.6s ease; }
.stat.bump-down { animation: bumpDown 0.6s ease; }
@keyframes bumpUp {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(179, 196, 134, 0.5); }
  40% { transform: scale(1.045); box-shadow: 0 0 0 8px rgba(179, 196, 134, 0); }
  100% { transform: scale(1); }
}
@keyframes bumpDown {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(207, 83, 64, 0.5); }
  40% { transform: scale(1.045); box-shadow: 0 0 0 8px rgba(207, 83, 64, 0); }
  100% { transform: scale(1); }
}

/* 隐藏值【旧账】：老兵模式关闭时整栏不占位 */
.stat-secret { display: none; }
body.veteran .stat-secret { display: block; animation: blkIn 0.4s both; }
.stat-secret .stat-val { color: var(--accent); }
.stat-secret .bar i { background: linear-gradient(90deg, #8d2f22, var(--accent)); }

/* --------------------------------------------------------------------------
   6. 剧情日志
   -------------------------------------------------------------------------- */
.stage { position: relative; flex: 1 1 auto; min-height: 0; }

.log {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 6px 90px 2px;
  scroll-behavior: smooth;
}

/* 单个剧情块 */
.blk {
  margin: 0 0 14px;
  padding: 14px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: blkIn 0.45s cubic-bezier(0.2, 0.8, 0.25, 1) both;
}
@keyframes blkIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 章节分隔条 */
.blk-chapter {
  background: linear-gradient(90deg, rgba(207, 83, 64, 0.16), rgba(207, 83, 64, 0.02));
  border-left-color: var(--accent);
  text-align: center;
  letter-spacing: 5px;
  font-size: 16px;
  font-weight: 700;
  color: #f3ded6;
  padding: 16px;
}

/* 场景小标题 */
.blk-title {
  font-size: 12.5px;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}

/* 台词/旁白行 */
.line { margin: 0 0 9px; font-size: 15px; line-height: 1.85; letter-spacing: 0.2px; }
.line:last-child { margin-bottom: 0; }

/* 【旁白】【闪回】等前缀标签 */
.tag {
  display: inline-block;
  margin-right: 7px;
  padding: 1px 7px;
  font-size: 11px;
  letter-spacing: 0.5px;
  border-radius: 5px;
  background: rgba(168, 190, 130, 0.14);
  color: var(--olive);
  vertical-align: 2px;
}
.tag-em { background: var(--accent-soft); color: #e88a76; }
.tag-sys { background: rgba(226, 192, 115, 0.15); color: var(--gold); }

/* 台词（有人物名的行）与旁白做视觉区分 */
.line-dialog { color: #fdf8ec; }
.line-narr { color: #cdd3c2; }

/* 选择结果块：左侧红色竖条 + 轻微染底 */
.blk-result {
  border-left-color: var(--accent);
  background: linear-gradient(100deg, rgba(207, 83, 64, 0.10), var(--panel) 42%);
}
.blk-result .blk-title { color: #e88a76; border-bottom-color: rgba(207, 83, 64, 0.28); }

/* 数值变化标签 */
.deltas { display: flex; flex-wrap: wrap; gap: 7px; margin: 11px 0 0; }
.delta {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  font-size: 11.5px;
  border-radius: 999px;
  background: var(--olive-soft);
  color: var(--olive);
  border: 1px solid rgba(179, 196, 134, 0.28);
  animation: chipPop 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
.delta.minus { background: var(--accent-soft); color: #e88a76; border-color: rgba(207, 83, 64, 0.3); }
.delta.flag  { background: rgba(226, 192, 115, 0.13); color: var(--gold); border-color: rgba(226, 192, 115, 0.3); }
@keyframes chipPop {
  from { opacity: 0; transform: scale(0.7) translateY(6px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* 打字机光标 */
.caret {
  display: inline-block;
  width: 8px; height: 1.05em;
  margin-left: 2px;
  background: var(--gold);
  vertical-align: -2px;
  animation: blink 0.85s steps(1) infinite;
}
@keyframes blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

/* 滚动提示 */
.scroll-hint {
  position: absolute;
  left: 50%; bottom: 6px;
  transform: translateX(-50%);
  padding: 4px 14px;
  font-size: 11.5px;
  color: var(--gold);
  background: rgba(19, 26, 20, 0.9);
  border: 1px solid rgba(226, 192, 115, 0.25);
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
  animation: hintBob 1.6s ease-in-out infinite;
}
.scroll-hint.show { opacity: 1; }
@keyframes hintBob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 5px); } }

/* --------------------------------------------------------------------------
   7. 选项按钮
   -------------------------------------------------------------------------- */
.choices {
  padding: 14px 18px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  animation: blkIn 0.45s cubic-bezier(0.2, 0.8, 0.25, 1) both;
}
.choices-title {
  font-size: 12.5px; letter-spacing: 2px; color: var(--gold);
  margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.choices-title::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(226, 192, 115, 0.35), transparent);
}

.choice {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 9px;
  padding: 13px 16px 13px 46px;
  text-align: left;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.25, 1), background 0.24s, border-color 0.24s, color 0.24s;
  animation: choiceIn 0.4s cubic-bezier(0.2, 0.8, 0.25, 1) both;
  overflow: hidden;
}
.choice::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.25, 1);
}
/* 选项序号 A / B / C / D */
.choice::after {
  content: attr(data-key);
  position: absolute; left: 16px; top: 50%;
  transform: translateY(-50%);
  font-size: 13px; font-weight: 700;
  color: var(--dim);
  transition: color 0.24s;
}
.choice:hover:not(:disabled) {
  transform: translateX(7px);
  background: rgba(207, 83, 64, 0.09);
  border-color: rgba(207, 83, 64, 0.42);
}
.choice:hover:not(:disabled)::before { transform: scaleY(1); }
.choice:hover:not(:disabled)::after { color: var(--accent); }
.choice:active:not(:disabled) { transform: translateX(7px) scale(0.99); }

.choice:disabled { opacity: 0.42; cursor: not-allowed; }
.choice.locked { opacity: 0.5; cursor: not-allowed; border-style: dashed; }
.choice .lock-note { display: block; margin-top: 5px; font-size: 11.5px; color: var(--accent); letter-spacing: 0.3px; }

@keyframes choiceIn {
  from { opacity: 0; transform: translateX(-14px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* 继续按钮 */
.continue-wrap { display: flex; justify-content: center; padding: 6px 0 4px; animation: blkIn 0.4s both; }
.continue-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 30px;
  font-size: 14px; letter-spacing: 3px;
  color: #14180f;
  background: linear-gradient(135deg, var(--gold), #c9a457);
  border: none; border-radius: 999px;
  box-shadow: 0 8px 24px rgba(226, 192, 115, 0.28);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
  animation: pulseGlow 2.4s ease-in-out infinite;
}
.continue-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(226, 192, 115, 0.4); filter: brightness(1.06); }
.continue-btn:active { transform: translateY(0) scale(0.98); }
.continue-btn .arrow { animation: arrowMove 1.3s ease-in-out infinite; }
@keyframes arrowMove { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 8px 24px rgba(226, 192, 115, 0.22); }
  50%      { box-shadow: 0 8px 32px rgba(226, 192, 115, 0.45); }
}

/* --------------------------------------------------------------------------
   8. 章节切换闪场
   -------------------------------------------------------------------------- */
.chapter-flash {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px;
  background: radial-gradient(ellipse at center, rgba(10, 14, 10, 0.93), rgba(4, 6, 4, 0.99));
  opacity: 0; pointer-events: none;
  transition: opacity 0.45s ease;
}
.chapter-flash.show { opacity: 1; }
.cf-text {
  font-size: clamp(20px, 4vw, 34px);
  font-weight: 700;
  letter-spacing: 8px;
  color: var(--gold);
  text-shadow: 0 0 32px rgba(226, 192, 115, 0.45);
  transform: translateY(10px);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.25, 1);
}
.chapter-flash.show .cf-text { transform: translateY(0); }
.cf-line {
  display: block; width: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transition: width 0.7s cubic-bezier(0.2, 0.8, 0.25, 1);
}
.chapter-flash.show .cf-line { width: min(420px, 70vw); }

/* --------------------------------------------------------------------------
   9. 结算覆盖层
   -------------------------------------------------------------------------- */
.overlay {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(4, 7, 5, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.45s ease;
}
.overlay.show { opacity: 1; pointer-events: auto; }

.overlay-card {
  width: min(560px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  padding: 26px 28px 24px;
  background: linear-gradient(180deg, #182018, #101610);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75);
  text-align: center;
  transform: scale(0.9) translateY(18px);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.2, 1.2, 0.35, 1), opacity 0.45s;
}
.overlay.show .overlay-card { transform: scale(1) translateY(0); opacity: 1; }

/* 评级徽章 */
.ov-rank { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin-bottom: 14px; }
.rank-label { font-size: 12px; letter-spacing: 3px; color: var(--muted); }
.rank-letter {
  font-size: 58px; font-weight: 800; line-height: 1;
  color: var(--gold);
  text-shadow: 0 0 34px rgba(226, 192, 115, 0.6);
  animation: rankIn 0.8s cubic-bezier(0.2, 1.5, 0.4, 1) both;
}
.rank-title { font-size: 13px; letter-spacing: 2px; color: var(--olive); }
.rank-letter.grade-a { color: #dfe6c8; text-shadow: 0 0 30px rgba(223, 230, 200, 0.55); }
.rank-letter.grade-b { color: #b9c98a; text-shadow: 0 0 26px rgba(185, 201, 138, 0.5); }
.rank-letter.grade-c { color: #cf9b6a; text-shadow: 0 0 24px rgba(207, 155, 106, 0.45); }
.rank-letter.grade-d { color: #cf5340; text-shadow: 0 0 24px rgba(207, 83, 64, 0.5); }
@keyframes rankIn {
  from { opacity: 0; transform: scale(0.4) rotate(-12deg); }
  to   { opacity: 1; transform: scale(1) rotate(0); }
}

.ov-ending { margin: 0 0 4px; font-size: 21px; letter-spacing: 2px; color: #fdf5e6; }
.ov-sub { margin: 0 0 18px; font-size: 12.5px; letter-spacing: 3px; color: var(--gold); }

.ov-score {
  padding: 14px;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.score-main { display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.score-main b {
  font-size: 46px; font-weight: 800; line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.score-main span { font-size: 12px; letter-spacing: 3px; color: var(--muted); }
.score-formula { margin-top: 8px; font-size: 11.5px; color: var(--dim); letter-spacing: 0.5px; }

/* 结算里的三条数值条 */
.ov-stats { display: flex; flex-direction: column; gap: 9px; margin-bottom: 18px; }
.ov-stat { text-align: left; }
.ov-stat-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.ov-stat-top b { color: var(--olive); font-variant-numeric: tabular-nums; }
.ov-bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.ov-bar i {
  display: block; height: 100%; width: 0;
  border-radius: 6px;
  background: linear-gradient(90deg, #7e9159, var(--olive));
  transition: width 1s cubic-bezier(0.2, 0.8, 0.25, 1);
}
.ov-bar.debt i { background: linear-gradient(90deg, #8d2f22, var(--accent)); }

.ov-flags { margin-bottom: 16px; }
.ov-flags h3 { margin: 0 0 9px; font-size: 12px; letter-spacing: 2px; color: var(--muted); font-weight: 500; }
.flag-list { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; }
.flag-tag {
  padding: 4px 11px;
  font-size: 11.5px;
  color: var(--gold);
  background: rgba(226, 192, 115, 0.11);
  border: 1px solid rgba(226, 192, 115, 0.28);
  border-radius: 999px;
  animation: chipPop 0.4s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
.flag-empty { font-size: 12px; color: var(--dim); }

.ov-quote {
  padding: 13px 16px;
  margin-bottom: 20px;
  font-size: 13.5px;
  line-height: 1.8;
  color: #e6dcc4;
  background: rgba(207, 83, 64, 0.08);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  text-align: left;
}

.ov-buttons { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.primary-btn {
  padding: 11px 26px;
  font-size: 13.5px;
  letter-spacing: 2px;
  color: #14180f;
  background: linear-gradient(135deg, var(--gold), #c9a457);
  border: none;
  border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
  box-shadow: 0 8px 22px rgba(226, 192, 115, 0.25);
}
.primary-btn:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 12px 28px rgba(226, 192, 115, 0.36); }
.primary-btn.ghost {
  color: var(--gold);
  background: transparent;
  border: 1px solid rgba(226, 192, 115, 0.4);
  box-shadow: none;
}
.primary-btn.ghost:hover { background: rgba(226, 192, 115, 0.1); }

/* --------------------------------------------------------------------------
   10. 入场动画与响应式
   -------------------------------------------------------------------------- */
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 860px) {
  .app { padding: 10px 12px 12px; gap: 8px; }
  .hud { flex-wrap: wrap; gap: 10px; padding: 10px 12px; }
  .hud-progress { order: 3; flex-basis: 100%; }
  .hud-actions { margin-left: auto; }
  .stats, body.veteran .stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stat-desc { display: none; }
  .line { font-size: 14.5px; }
  .blk { padding: 12px 14px; }
  .choice { font-size: 14px; padding: 12px 14px 12px 42px; }
  .overlay-card { padding: 20px 18px; }
  .rank-letter { font-size: 46px; }
}

@media (max-width: 420px) {
  .brand-text b { font-size: 13.5px; }
  .ghost-btn { padding: 6px 9px; font-size: 11px; }
}

/* 尊重系统「减少动态效果」偏好 */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.08s !important; }
  .bg-grid, .dust i { animation: none; }
}
