/* ==========================================================================
   LEP 听说中国 · 草船借箭 demo
   横屏 16:9 优先；所有尺寸随视口缩放（vmin 基准），避免小程序/WebView 里溢出
   ========================================================================== */

:root {
  --ink: #16202a;
  --ink-soft: #3d4c5a;
  --paper: #f2ead9;
  --paper-dim: rgba(242, 234, 217, 0.72);
  --gold: #c9a227;
  --gold-soft: rgba(201, 162, 39, 0.5);
  --vermilion: #b23a2f;
  --fog: rgba(238, 240, 238, 0.92);
  --glass: rgba(12, 20, 28, 0.58);
  --glass-line: rgba(242, 234, 217, 0.16);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --font-cn: "Source Han Serif SC", "Noto Serif SC", "Songti SC", STSong, "Microsoft YaHei", serif;
  --font-en: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: calc(9px + 0.75vmin);
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #0b1219;
  color: var(--paper);
  font-family: var(--font-cn);
  -webkit-font-smoothing: antialiased;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

body {
  overscroll-behavior: none;
}

.app {
  position: relative;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
}

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  animation: screenIn 0.42s ease-out both;
}

@keyframes screenIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 翻页转场：雾从画面下方涌上来，在最浓的时候换页，再错峰散开。
   这个故事叫「雾锁大江」，第 3 页的正文就是 thick fog covers the river——
   用雾做转场不是装饰，是把标题演一遍。

   三层雾分工：
     far    最远最慢，蓝灰，给雾"厚度"，也让散开时最晚褪干净；
     near   纯白最快，负责遮干净（换页那一帧全靠它挡住）；
     plume  画面中下部的两团亮部，给雾一点体积起伏，否则三层平铺像一块白布。

   每层都做成 160% 高、上下各溢出 30%。这样雾的羽化上缘在推进过程中会扫过
   画面，推到位时那道软边已经跑到画面外了——换页瞬间顶部不会漏光，也不必为了
   遮住顶部而把上缘做成硬边（硬边看起来就是"一块布被拉上来"）。 */
.fog-veil {
  position: fixed;
  left: -10%;
  right: -10%;
  top: -30%;
  bottom: -30%;
  z-index: 90;
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
}

/* 画面顶部落在 veil 的 18.75% 处（30 / 160）。三个渐变的 0~18% 是羽化区，
   18% 之后必须接近实心，否则换页那一帧顶部会透出旧页。 */
.fog-veil--far {
  background: linear-gradient(
    180deg,
    rgba(96, 142, 190, 0) 0%,
    rgba(104, 150, 196, 0.55) 9%,
    rgba(118, 164, 206, 0.9) 18%,
    rgba(128, 172, 212, 0.97) 34%,
    rgba(120, 164, 204, 0.99) 100%
  );
}

.fog-veil--near {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.62) 8%,
    rgba(251, 253, 255, 0.95) 17%,
    #ffffff 32%
  );
}

.fog-veil--plume {
  background:
    radial-gradient(38% 24% at 22% 62%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 74%),
    radial-gradient(34% 20% at 70% 72%, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0) 76%),
    radial-gradient(30% 16% at 46% 46%, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0) 78%);
}

/* 故事页：画面轻推 + 旁白/台词条依次入场，翻页才有"新的一幕"的感觉 */
.screen-story .stage { animation: stagePush 0.7s cubic-bezier(0.22, 0.9, 0.28, 1) backwards; }
.screen-story .narrator { animation: riseIn 0.55s 0.12s cubic-bezier(0.22, 0.9, 0.28, 1) backwards; }
/* 必须是 backwards 而不是 both：both 会让动画终态永久压住 .is-hidden 的位移，
   台词条就收不回去，反馈文案会和台词叠在一起（线上第一版真出现过）。 */
.screen-story .linebar { animation: riseIn 0.55s 0.2s cubic-bezier(0.22, 0.9, 0.28, 1) backwards; }

@keyframes stagePush {
  from { transform: scale(1.035); opacity: 0.35; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes riseIn {
  from { transform: translateY(1.4rem); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* 答题页也保留场景，不切成一块纯黑屏 */
.stage--dim {
  opacity: 0.42;
  filter: saturate(0.55) brightness(0.85);
  pointer-events: none;
}

.quiz-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(78% 72% at 50% 44%, rgba(8, 13, 18, 0.34), rgba(8, 13, 18, 0.72) 80%),
    linear-gradient(180deg, rgba(8, 13, 18, 0.32), rgba(8, 13, 18, 0.74));
}

/* --------------------------------- 通用控件 -------------------------------- */

.btn {
  font-family: var(--font-cn);
  font-size: 1.5rem;
  line-height: 1;
  border: 0;
  border-radius: 999px;
  padding: 1.4rem 2.4rem;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.2s ease, opacity 0.2s ease;
  touch-action: manipulation;
}

.btn:active {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.4;
  pointer-events: none;
}

.btn-primary {
  background: linear-gradient(180deg, #d8b23c, #b8901f);
  color: #1a1508;
  font-weight: 700;
  box-shadow: 0 0.6rem 1.6rem rgba(201, 162, 39, 0.28);
}

.btn-ghost {
  background: rgba(242, 234, 217, 0.1);
  color: var(--paper);
  border: 1px solid var(--glass-line);
  font-size: 1.3rem;
}

.btn-lg {
  font-size: 1.8rem;
  padding: 1.7rem 4rem;
}

.ico {
  font-size: 1.2em;
  margin-right: 0.4rem;
}

/* --------------------------------- 竖屏遮罩 -------------------------------- */

.rotate-mask {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  background: #0b1219;
  text-align: center;
}

@media (orientation: portrait) {
  .rotate-mask { display: flex; }
}

.rotate-mask.is-dismissed {
  display: none !important;
}

.rotate-inner p {
  font-size: 1.6rem;
  letter-spacing: 0.1em;
  color: var(--paper-dim);
  margin: 1.6rem 0 2rem;
}

.rotate-icon {
  font-size: 4rem;
  color: var(--gold);
  transform: rotate(-90deg);
  animation: tilt 2.4s ease-in-out infinite;
}

@keyframes tilt {
  0%, 100% { transform: rotate(-90deg); }
  50% { transform: rotate(0deg); }
}

#rotateSkip {
  background: none;
  border: 1px solid var(--glass-line);
  color: var(--paper-dim);
  border-radius: 999px;
  padding: 0.8rem 2rem;
  font-size: 1.2rem;
  font-family: var(--font-cn);
}

/* 环境提示条（微信 / 非 https） */
.envbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  padding: 1rem 2rem;
  padding-top: calc(1rem + var(--safe-t));
  background: var(--vermilion);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1.5;
  text-align: center;
}

/* ---------------------------------- 封面 ---------------------------------- */

.screen-cover {
  justify-content: center;
  align-items: flex-start;
  background: #0b1219;
}

/* 左暗右亮：文字在左，船在右，一眼看到画面又读得清标题 */
.screen-cover .stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(96deg, rgba(7, 12, 17, 0.94) 0%, rgba(7, 12, 17, 0.82) 38%, rgba(7, 12, 17, 0.3) 62%, rgba(7, 12, 17, 0) 84%);
}

.cover-scroll {
  position: relative;
  z-index: 3;
  text-align: left;
  padding: 0 4rem 0 calc(5.4rem + var(--safe-l));
  max-width: 62%;
}

.cover-eyebrow {
  font-size: 1.32rem;
  letter-spacing: 0.42em;
  color: var(--gold);
  margin: 0 0 1.8rem;
  text-indent: 0.42em;
}

.cover-title {
  font-family: var(--font-en);
  font-size: 4.2rem;
  line-height: 1.14;
  margin: 0;
  color: var(--paper);
  letter-spacing: 0.01em;
  text-shadow: 0 0.4rem 2.4rem rgba(0, 0, 0, 0.66);
}

.cover-title span {
  display: block;
}

.cover-title span:last-child {
  color: rgba(242, 234, 217, 0.86);
}

.cover-title-zh {
  font-size: 2.4rem;
  letter-spacing: 0.5em;
  color: var(--gold);
  margin: 1rem 0 0;
  text-indent: 0.5em;
}

.cover-pitch {
  font-size: 1.4rem;
  color: var(--paper-dim);
  letter-spacing: 0.12em;
  margin: 1.8rem 0 2.6rem;
  text-shadow: 0 0.2rem 1.2rem rgba(0, 0, 0, 0.7);
}

.cover-note {
  font-size: 1.1rem;
  color: rgba(242, 234, 217, 0.42);
  letter-spacing: 0.14em;
  margin: 1.6rem 0 0;
}

/* ---------------------------------- 舞台 ---------------------------------- */

.stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.stage svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* 水墨底图是浅底，顶部 HUD（标题/进度/关闭）的白字会糊进天光里。
   压一层极淡的上下压角，既救了对比度，也把画面的"腰"提出来。 */
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 12, 18, 0.55) 0%, rgba(7, 12, 18, 0.22) 12%, rgba(7, 12, 18, 0) 28%),
    linear-gradient(0deg, rgba(7, 12, 18, 0.42) 0%, rgba(7, 12, 18, 0) 26%);
}

/* 时辰：改天空/水面渐变与月日可见性 */
.stage svg[data-time="night"] .sun { opacity: 0; }
.stage svg[data-time="night"] .moon { opacity: 1; }
.stage svg[data-time="morning"] .sun { opacity: 0.9; }
.stage svg[data-time="morning"] .moon { opacity: 0; }
.stage svg[data-time="dawn"] .sun { opacity: 1; }
.stage svg[data-time="dawn"] .moon { opacity: 0; }
.sun, .moon, .js-glow { transition: opacity 1.2s ease; }

.stage svg[data-time="night"] .js-sky-top { stop-color: #0a1420; }
.stage svg[data-time="night"] .js-sky-mid { stop-color: #1b2c3a; }
.stage svg[data-time="night"] .js-sky-bot { stop-color: #35505f; }
.stage svg[data-time="morning"] .js-sky-top { stop-color: #8fa5ad; }
.stage svg[data-time="morning"] .js-sky-mid { stop-color: #c3cfcb; }
.stage svg[data-time="morning"] .js-sky-bot { stop-color: #e6e9df; }
.stage svg[data-time="dawn"] .js-sky-top { stop-color: #4a3f52; }
.stage svg[data-time="dawn"] .js-sky-mid { stop-color: #b07a68; }
.stage svg[data-time="dawn"] .js-sky-bot { stop-color: #f0c69b; }

.stage svg[data-time="night"] .js-water-top { stop-color: #1b2f3d; }
.stage svg[data-time="night"] .js-water-bot { stop-color: #080f16; }
.stage svg[data-time="morning"] .js-water-top { stop-color: #a3b5b9; }
.stage svg[data-time="morning"] .js-water-bot { stop-color: #62787f; }
.stage svg[data-time="dawn"] .js-water-top { stop-color: #c79471; }
.stage svg[data-time="dawn"] .js-water-bot { stop-color: #6b4b3d; }

/* ---------------------- 水墨底图模式 ---------------------- */
/* 三张水墨底图按时辰交叉淡入；几何天空/远山/日月全部让位，
   否则会和底图里的山打架。水面波纹保留但压淡：宣纸上的淡墨水纹是加分项，深色渐变不是。 */
.bgbg { opacity: 0; transition: opacity 1.1s ease; }
.stage svg[data-time="night"] .bg-night,
.stage svg[data-time="morning"] .bg-morning,
.stage svg[data-time="dawn"] .bg-dawn { opacity: 1; }

.stage svg.has-bg .sky-fill,
.stage svg.has-bg .hills,
.stage svg.has-bg .sun,
.stage svg.has-bg .moon,
.stage svg.has-bg .glow { display: none; }

.stage svg.has-bg .water-fill { opacity: 0.1; }
.stage svg.has-bg .waves path { stroke: rgba(34, 54, 66, 0.15); }
.stage svg.has-bg .js-reflect { opacity: 0; }

/* 夜里江水不能是空白宣纸。但直接给水面矩形上色会在水线上留一道硬边，
   所以让水渐变从"完全透明"往下走到"墨黑"，边界自然化开。 */
.stage svg.has-bg[data-time="night"] .water-fill { opacity: 0.62; }
.stage svg.has-bg[data-time="night"] .js-water-top { stop-opacity: 0; }
.stage svg.has-bg[data-time="night"] .js-water-bot { stop-opacity: 1; }
.stage svg.has-bg[data-time="night"] .waves path { stroke: rgba(196, 214, 220, 0.13); }
/* 底图自带雾，SVG 雾团再满功率铺一层就把船洗没了。
   注意只能压单个雾团：.js-fog-front 的 opacity 是 JS 直接写 inline style，
   在祖先组上压不回来。 */
.stage svg.has-bg .fog-puff { opacity: calc(var(--op, 0.6) * 0.5); }

/* 宣纸是浅底，前景必须转墨色，否则草人直接消失。
   草人不能用亮金填充 —— 暗场里整排会变成一串发光灯泡。 */
.stage svg.has-bg .boat .hull { fill: #3a4b53; stroke: rgba(24, 34, 40, 0.42); }
.stage svg.has-bg .boat .hull-line { stroke: rgba(240, 244, 240, 0.26); }
.stage svg.has-bg .boat .pole { stroke: #5b4a30; }
.stage svg.has-bg .boat .mast { stroke: #4b3d28; }
.stage svg.has-bg .boat .sail { fill: rgba(58, 72, 78, 0.14); stroke: rgba(40, 54, 60, 0.36); }
.stage svg.has-bg .boat .wake { stroke: rgba(240, 244, 240, 0.32); }
.stage svg.has-bg .boat .storso { fill: #8a7040; stroke: #57431f; }
.stage svg.has-bg .boat .shead { fill: #8d7443; stroke: #57431f; }
.stage svg.has-bg .boat .sarm { stroke: #7b6335; }
.stage svg.has-bg .boat .sgrass { stroke: #6b562c; }
.stage svg.has-bg .boat .spole,
.stage svg.has-bg .boat .sstraw,
.stage svg.has-bg .boat .stie { stroke: #57431f; }

.stage svg.has-bg .camp .campbank { fill: #4a5a62; opacity: 0.45; }
.stage svg.has-bg .camp .tent { fill: #3b4b53; }
.stage svg.has-bg .camp .tent--b { fill: #2f3d45; }
.stage svg.has-bg .camp .flagpole { stroke: #4a3d24; }
.stage svg.has-bg .camp .flag { fill: #9c3527; }
.stage svg.has-bg .camp .archers circle,
.stage svg.has-bg .camp .archers path { fill: #2c3a42; stroke: #2c3a42; }

/* 夜里山最沉，船和草人再暗一档；黎明偏暖，草人带一点赭 */
.stage svg.has-bg[data-time="night"] .boat .hull { fill: #2f4049; }
.stage svg.has-bg[data-time="night"] .boat .storso { fill: #7d6539; }
.stage svg.has-bg[data-time="night"] .boat .shead { fill: #806840; }
.stage svg.has-bg[data-time="morning"] .boat .hull { fill: #46585f; }
.stage svg.has-bg[data-time="dawn"] .boat .hull { fill: #4a3e3c; }
.stage svg.has-bg[data-time="dawn"] .boat .storso { fill: #94764a; }
.stage svg.has-bg[data-time="dawn"] .boat .shead { fill: #987a4d; }

/* 月与日 */
.moon circle { fill: #f7f1dd; }
.sun circle { fill: #ffdca8; }
.js-glow circle { opacity: 0.55; }

/* 三层山：越远越淡，雾越浓越淡 */
.hills--far {
  fill: #33505f;
  opacity: calc(var(--depth, 0.9) * 0.5);
  transition: opacity 0.9s ease, fill 0.9s ease;
}
.hills--mid {
  fill: #24404f;
  opacity: calc(var(--depth, 0.9) * 0.72);
  transition: opacity 0.9s ease, fill 0.9s ease;
}
.hills--near {
  fill: #162b37;
  opacity: calc(var(--depth, 0.9) * 0.92);
  transition: opacity 0.9s ease, fill 0.9s ease;
}
.stage svg[data-time="morning"] .hills--far { fill: #8ba2a8; }
.stage svg[data-time="morning"] .hills--mid { fill: #6b8289; }
.stage svg[data-time="morning"] .hills--near { fill: #4a616a; }
.stage svg[data-time="dawn"] .hills--far { fill: #a5806f; }
.stage svg[data-time="dawn"] .hills--mid { fill: #7a5a52; }
.stage svg[data-time="dawn"] .hills--near { fill: #4d3733; }

.waves path {
  fill: none;
  stroke: rgba(242, 234, 217, 0.14);
  stroke-width: 1.6;
  animation: waveMove 7s ease-in-out infinite;
}

.waves path:nth-child(2) { animation-delay: -1.8s; opacity: 0.7; }
.waves path:nth-child(3) { animation-delay: -3.4s; opacity: 0.45; }

@keyframes waveMove {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-26px); }
}

.camp { opacity: calc(var(--depth, 0.6) * 1); transition: opacity 0.9s ease; }
.camp .campbank { fill: #24384a; opacity: 0.55; }
.camp .tent { fill: #1e3140; stroke: rgba(242, 234, 217, 0.12); stroke-width: 1.4; }
.camp .tent--b { fill: #172733; }
.camp .flagpole { stroke: #6b5a3a; stroke-width: 3; }
.camp .flag { fill: var(--vermilion); opacity: 0.9; }
.camp .archers circle { fill: #14202a; }
.camp .archers path { stroke: #14202a; stroke-width: 4; }
/* 有时辰差异的是"没有底图"的那套几何场景；有底图时一律走上方 has-bg 段，
   所以这里全部加 :not(.has-bg)。否则同为 (0,4,1) 特异性、源序在后的本组规则会把底图配色顶掉。 */
.stage svg[data-time="morning"]:not(.has-bg) .camp .tent { fill: #5a6f78; }
.stage svg[data-time="morning"]:not(.has-bg) .camp .tent--b { fill: #4a5d66; }
.stage svg[data-time="morning"]:not(.has-bg) .camp .campbank { fill: #6a7f86; opacity: 0.4; }
.stage svg[data-time="dawn"]:not(.has-bg) .camp .tent { fill: #4a3630; }
.stage svg[data-time="dawn"]:not(.has-bg) .camp .tent--b { fill: #3c2b26; }
.stage svg[data-time="dawn"]:not(.has-bg) .camp .campbank { fill: #7a5a48; opacity: 0.4; }

/* 船：清晰的剪影，船体提亮 + 亮边，确保在暗水上分得开 */
.boat .shadow { fill: url(#gShadow); }
.boat .hull { fill: #2c4353; stroke: rgba(242, 234, 217, 0.5); stroke-width: 2.4; }
.boat .hull-line { fill: none; stroke: rgba(242, 234, 217, 0.26); stroke-width: 1.5; }
.boat .pole { stroke: #7a6448; stroke-width: 4; stroke-linecap: round; }
.boat .wake { fill: none; stroke: rgba(242, 234, 217, 0.16); stroke-width: 2; }
.boat--back { opacity: 0.68; }
.boat--mid { opacity: 0.88; }
.boat--main { opacity: 1; }

/* 夜间水面很暗，船体必须比水面亮一档，否则整条船消失 */
.stage svg[data-time="night"]:not(.has-bg) .boat .hull { fill: #43687d; stroke: rgba(242, 234, 217, 0.62); }
.stage svg[data-time="morning"]:not(.has-bg) .boat .hull { fill: #3f5866; }
.stage svg[data-time="dawn"]:not(.has-bg) .boat .hull { fill: #4a3a3a; }

/* 船体呼吸：三条船相位错开，整队才像浮在水上而不是贴在画上 */
.boat .bob {
  animation: boatBob 5.6s ease-in-out infinite;
  animation-delay: var(--phase, 0s);
  transform-box: fill-box;
  transform-origin: 50% 80%;
}

@keyframes boatBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  40% { transform: translateY(-5px) rotate(-0.6deg); }
  70% { transform: translateY(2px) rotate(0.5deg); }
}

/* 草人：干草本色的草把，箭才有地方"扎"进去。
   亮度必须压住 —— 一旦用亮金填充，暗场里整排草人会像一串发光灯泡。 */
.boat .spole { stroke: #7d6435; stroke-width: 4; stroke-linecap: round; fill: none; }
.boat .storso { fill: #c2a469; stroke: #8a6f3a; stroke-width: 1.7; }
.boat .sgrass { fill: none; stroke: #9c8148; stroke-width: 1.5; stroke-linecap: round; }
.boat .sarm { fill: none; stroke: #ac8f52; stroke-width: 7; stroke-linecap: round; }
.boat .shead { fill: #c8aa6d; stroke: #8a6f3a; stroke-width: 1.7; }
.boat .sstraw { stroke: #9c8148; stroke-width: 2.4; stroke-linecap: round; fill: none; }
.boat .stie { stroke: #6f582c; stroke-width: 2.4; stroke-linecap: round; fill: none; }

/* 有时辰差异：清晨偏冷、黎明偏暖、夜里最沉（仅无底图时生效） */
.stage svg[data-time="morning"]:not(.has-bg) .boat .storso { fill: #b6b08a; stroke: #7d7a58; }
.stage svg[data-time="morning"]:not(.has-bg) .boat .shead { fill: #bdb792; stroke: #7d7a58; }
.stage svg[data-time="dawn"]:not(.has-bg) .boat .storso { fill: #cbb083; stroke: #8e7350; }
.stage svg[data-time="dawn"]:not(.has-bg) .boat .shead { fill: #d0b689; stroke: #8e7350; }

/* 箭：外层 attribute transform 定位+朝向，内层做"从曹营飞来 → 扎入 → 震颤" */
.arrow-inner {
  transform: translate(210px, -150px) rotate(-26deg) scale(0.9);
  opacity: 0;
  transition:
    transform 0.4s cubic-bezier(0.22, 0.86, 0.32, 1),
    opacity 0.16s ease-out;
  transform-box: fill-box;
  transform-origin: 50% 96%;
}

.arrow.on .arrow-inner {
  transform: translate(0, 0) rotate(0deg) scale(1);
  opacity: 1;
  animation: arrowThud 0.22s 0.4s ease-out;
}

/* 扎进去的一下：轻微回弹，箭才有重量 */
@keyframes arrowThud {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  35% { transform: translate(-2px, 4px) rotate(-1.6deg) scale(1); }
  70% { transform: translate(1px, -1.5px) rotate(0.8deg) scale(1); }
  100% { transform: translate(0, 0) rotate(0deg) scale(1); }
}

.arrow .shaft,
.volley .shaft {
  stroke: #6b4a22;
  stroke-width: 3.6;
  stroke-linecap: round;
  fill: none;
}

.arrow .head,
.volley .head {
  fill: #3a2a16;
  stroke: none;
}

.boats,
.arrows {
  transition: transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.stage svg.no-anim .arrow-inner { transition: none; animation: none; }

/* 齐射：说成那一刻从曹营射来的箭，落定即消失 */
.volley .flyer-inner {
  transform: translate(560px, -210px) rotate(-30deg);
  animation: volleyFly 0.32s var(--d, 0ms) cubic-bezier(0.3, 0.9, 0.35, 1) both;
  transform-box: fill-box;
  transform-origin: 50% 96%;
}

@keyframes volleyFly {
  0% { transform: translate(560px, -210px) rotate(-30deg); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
}

.volley .shaft { stroke: #8a5f2c; stroke-width: 4; stroke-linecap: round; fill: none; }
.volley .head { fill: #4a3418; }

.volley .dust {
  fill: none;
  stroke: rgba(232, 214, 178, 0.85);
  stroke-width: 2.4;
  transform-box: fill-box;
  transform-origin: center;
  animation: dustBurst 0.62s ease-out both;
}

@keyframes dustBurst {
  0% { transform: scale(0.3); opacity: 0.95; }
  100% { transform: scale(5.5); opacity: 0; }
}

/* 曹营被惊动：旗急摆、弓手一晃 —— 让"我的声音惊动了敌人"看得见 */
.camp .flag { transform-box: fill-box; transform-origin: left center; }

.camp.is-hit .flag { animation: flagFlap 0.8s ease-out; }
.camp.is-hit .archers { animation: archerJolt 0.7s ease-out; }

@keyframes flagFlap {
  0% { transform: skewY(0deg) scaleX(1); }
  18% { transform: skewY(-7deg) scaleX(0.9); }
  42% { transform: skewY(5deg) scaleX(1.06); }
  68% { transform: skewY(-3deg) scaleX(0.97); }
  100% { transform: skewY(0deg) scaleX(1); }
}

@keyframes archerJolt {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-3px) translateX(-2px); }
  55% { transform: translateY(1.5px); }
}

/* 雾：椭圆 + 径向渐变雾团（柔边、体积感），不再用硬边横条 */
.fog-puff {
  transform-box: fill-box;
  transform-origin: center;
  pointer-events: none;
  opacity: var(--op, 0.6);
  animation: fogDrift 26s ease-in-out infinite;
}

/* 每个雾团各自漂：时长、方向、相位都错开，整体才不像一条带子在平移 */
.fog-h1 { animation-duration: 31s; animation-delay: -4s; }
.fog-h2 { animation-duration: 37s; animation-delay: -13s; animation-direction: reverse; }
.fog-w1 { animation-duration: 24s; animation-delay: -2s; }
.fog-w2 { animation-duration: 29s; animation-delay: -9s; animation-direction: reverse; }
.fog-w3 { animation-duration: 33s; animation-delay: -17s; }
.fog-w4 { animation-duration: 21s; animation-delay: -6s; animation-direction: reverse; }

@keyframes fogDrift {
  0%, 100% { transform: translateX(0) translateY(0) scale(1); }
  35% { transform: translateX(64px) translateY(-7px) scale(1.06); }
  70% { transform: translateX(-48px) translateY(6px) scale(0.96); }
}

.fog {
  transition: opacity 1.4s ease;
}

.stage svg.no-fog-anim .fog {
  transition: none;
}

/* 芦苇是水草剪影，不是金色装饰线：用金色会被读成一条 UI 分隔线 */
.reeds path {
  fill: none;
  stroke: rgba(214, 228, 230, 0.16);
  stroke-width: 3;
  stroke-linecap: round;
}

.stage svg[data-time="morning"] .reeds path { stroke: rgba(40, 70, 78, 0.28); }
.stage svg[data-time="dawn"] .reeds path { stroke: rgba(70, 50, 46, 0.3); }

/* 声音环：说话时从主船荡开的涟漪，音量越大越亮越大 */
.voice-ring circle {
  fill: none;
  stroke: rgba(232, 244, 246, 0.9);
  stroke-width: 2.6;
}

.voice-ring {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(1);
}

.voice-ring circle:nth-child(2) { stroke-width: 1.8; opacity: 0.6; }

/* 战鼓：说成那一刻从水面荡开的金色声波 */
.drum-wave circle {
  fill: none;
  stroke: var(--gold);
  stroke-width: 3;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.drum-wave.pulse circle { animation: drumPulse 1.5s ease-out; }
.drum-wave.pulse circle:nth-child(2) { animation-delay: 0.16s; }
.drum-wave.pulse circle:nth-child(3) { animation-delay: 0.32s; }

@keyframes drumPulse {
  0% { opacity: 0.85; transform: scale(0.4); }
  100% { opacity: 0; transform: scale(1.6); }
}
/* ---------------------------------- HUD ----------------------------------- */

.hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  padding: 1.2rem 2.4rem;
  padding-top: calc(1.2rem + var(--safe-t));
  padding-left: calc(2.4rem + var(--safe-l));
  padding-right: calc(2.4rem + var(--safe-r));
  background: linear-gradient(180deg, rgba(8, 14, 20, 0.72), transparent);
}

.hud--solid {
  position: static;
  background: rgba(10, 17, 24, 0.9);
  border-bottom: 1px solid var(--glass-line);
}

.hud-title {
  font-size: 1.35rem;
  letter-spacing: 0.2em;
  color: var(--paper-dim);
}

.hud-progress {
  margin-left: auto;
  font-family: var(--font-en);
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  color: rgba(242, 234, 217, 0.6);
}

.hud-close {
  background: rgba(242, 234, 217, 0.1);
  border: 1px solid var(--glass-line);
  color: var(--paper-dim);
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

/* --------------------------------- 旁白条 --------------------------------- */

.narrator {
  position: absolute;
  top: calc(5.6rem + var(--safe-t));
  left: calc(2.4rem + var(--safe-l));
  max-width: 44%;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  z-index: 8;
}

/* 旁白压在亮山体上就废了 —— 用一块柔边墨晕垫底。
   注意不能用 radial-gradient 铺满 ::before：渐变到盒子边缘时还有 30% 不透明度，
   屏幕上会变成一块带硬边的灰卡片。模糊一块实心底，边缘自然化开。 */
.narrator::before {
  content: "";
  position: absolute;
  inset: -1.3rem -2.4rem -1.5rem -1.6rem;
  background: rgba(7, 13, 19, 0.6);
  border-radius: 3rem;
  filter: blur(1.5rem);
  pointer-events: none;
  z-index: -1;
}

.narrator-replay {
  flex: 0 0 auto;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  border: 1px solid var(--glass-line);
  background: rgba(10, 17, 24, 0.55);
  color: var(--paper);
  font-size: 1.25rem;
  cursor: pointer;
}

.narrator-text {
  font-family: var(--font-en);
  font-size: 1.32rem;
  line-height: 1.62;
  margin: 0;
  color: rgba(242, 234, 217, 0.86);
  text-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.7);
}

/* --------------------------------- 台词条 --------------------------------- */

.linebar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 12;
  padding: 1.6rem 2.4rem calc(1.6rem + var(--safe-b));
  padding-left: calc(2.4rem + var(--safe-l));
  padding-right: calc(2.4rem + var(--safe-r));
  background: linear-gradient(180deg, transparent, rgba(8, 13, 18, 0.82) 26%, rgba(8, 13, 18, 0.96));
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "task actions"
    "line actions"
    "zh actions";
  column-gap: 2.4rem;
  align-items: end;
  transition: transform 0.3s ease;
}

.linebar-task {
  grid-area: task;
  font-size: 1.22rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.linebar-line {
  grid-area: line;
  font-family: var(--font-en);
  font-size: 2.5rem;
  line-height: 1.24;
  color: var(--paper);
  text-shadow: 0 0.3rem 1.6rem rgba(0, 0, 0, 0.6);
}

.linebar-zh {
  grid-area: zh;
  font-size: 1.2rem;
  color: rgba(242, 234, 217, 0.5);
  margin-top: 0.4rem;
}

.linebar-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding-bottom: 0.4rem;
}

.linebar.is-demoing .linebar-line {
  color: var(--gold);
}

.linebar.is-shake {
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.linebar.is-done .linebar-actions {
  opacity: 0.32;
  pointer-events: none;
}

/* 反馈抽屉接管底部时，台词条让位（否则两层叠在一起会糊成一片） */
.linebar.is-hidden {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}

/* 按住说话 */
.btn-talk {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: linear-gradient(180deg, #c3453a, #9a2b22);
  color: #fff5ee;
  font-size: 1.5rem;
  font-weight: 600;
  padding: 1.4rem 2.6rem;
  border-radius: 999px;
  box-shadow: 0 0.6rem 2rem rgba(178, 58, 47, 0.36);
  touch-action: none;
  user-select: none;
}

.talk-dot {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: #fff0e8;
  transition: transform 0.2s ease;
}

.btn-talk.is-recording {
  background: linear-gradient(180deg, #e0554a, #b23a2f);
  animation: recPulse 1.1s ease-in-out infinite;
}

.btn-talk.is-recording .talk-dot {
  transform: scale(0.6);
  background: #ffe2d8;
}

@keyframes recPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224, 85, 74, 0.55); }
  50% { box-shadow: 0 0 0 1.4rem rgba(224, 85, 74, 0); }
}

.skip {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 1rem;
  background: none;
  border: 0;
  color: rgba(242, 234, 217, 0.3);
  font-size: 1.1rem;
  font-family: var(--font-cn);
  padding: 0.4rem 0;
  cursor: pointer;
}

.skip.is-holding {
  color: var(--gold);
}

/* 三步淡出的手指提示：贴在说话按钮正上方，绝不压住台词条 */
.finger-tip {
  position: absolute;
  right: calc(3.2rem + var(--safe-r));
  bottom: calc(9.9rem + var(--safe-b));
  z-index: 14;
  font-size: 1.2rem;
  color: var(--gold);
  background: rgba(10, 17, 24, 0.9);
  border: 1px solid rgba(201, 162, 39, 0.42);
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;
  animation: fingerBlink 1.8s ease-in-out infinite;
}

.finger-tip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.55rem;
  width: 0.9rem;
  height: 0.9rem;
  margin-left: -0.45rem;
  background: rgba(10, 17, 24, 0.98);
  border-right: 1px solid rgba(201, 162, 39, 0.42);
  border-bottom: 1px solid rgba(201, 162, 39, 0.42);
  transform: rotate(45deg);
}

@keyframes fingerBlink {
  0%, 100% { opacity: 0.5; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-5px); }
}

/* --------------------------------- 反馈层 --------------------------------- */
/* 底部抽屉：不遮舞台，孩子要能看见"雾变浓 / 箭落船"是他自己说出来的 */

.feedback {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 16;
  display: grid;
  grid-template-columns: 1fr auto auto;
  grid-template-areas:
    "plot stars action"
    "echo stars action";
  align-items: center;
  column-gap: 2.4rem;
  row-gap: 0.3rem;
  padding: 2rem calc(2.4rem + var(--safe-r)) calc(2.2rem + var(--safe-b)) calc(2.6rem + var(--safe-l));
  background: linear-gradient(180deg, rgba(9, 15, 21, 0) 0%, rgba(9, 15, 21, 0.9) 16%, rgba(9, 15, 21, 0.99) 100%);
  opacity: 0;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.feedback.is-in {
  opacity: 1;
  transform: translateY(0);
}

.feedback-plot {
  grid-area: plot;
  font-size: 2rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin: 0;
  text-shadow: 0 0.2rem 1.2rem rgba(0, 0, 0, 0.7);
}

.feedback-echo {
  grid-area: echo;
  font-family: var(--font-en);
  font-size: 1.36rem;
  color: var(--paper-dim);
  margin: 0;
  line-height: 1.4;
}

.feedback-stars {
  grid-area: stars;
  font-size: 1.9rem;
  letter-spacing: 0.36em;
  color: var(--gold);
  text-indent: 0.36em;
  white-space: nowrap;
}

.feedback .btn {
  grid-area: action;
  white-space: nowrap;
}

/* --------------------------------- 配音段 --------------------------------- */

.screen-dubbing .stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 13, 18, 0.2), rgba(8, 13, 18, 0.86) 62%);
}

.dub-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 47%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: 1.2rem 2.2rem;
  padding-right: calc(2.6rem + var(--safe-r));
  padding-top: calc(1.8rem + var(--safe-t));
  padding-bottom: calc(1.8rem + var(--safe-b));
  background: linear-gradient(92deg, rgba(9, 15, 21, 0.62) 0%, rgba(9, 15, 21, 0.94) 22%, rgba(9, 15, 21, 0.98) 100%);
  border-left: 1px solid rgba(242, 234, 217, 0.1);
}

.dub-lead {
  font-size: 1.4rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin: 0;
}

.dub-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.dub-line {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.1rem;
  border-radius: 0.8rem;
  background: rgba(242, 234, 217, 0.06);
  border: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.dub-line:has(.dub-state.is-ok) {
  border-color: rgba(201, 162, 39, 0.4);
}

.dub-no {
  font-family: var(--font-en);
  font-size: 1.2rem;
  color: var(--gold);
  width: 1.6rem;
}

.dub-text {
  font-family: var(--font-en);
  font-size: 1.6rem;
  line-height: 1.35;
  flex: 1;
}

.dub-state {
  font-size: 1.1rem;
  color: rgba(242, 234, 217, 0.42);
  margin-left: auto;
}

/* 每句单独试听：配音段比正文更难，示范必须随手可得 */
.dub-hear {
  flex: none;
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 39, 0.38);
  background: rgba(201, 162, 39, 0.1);
  color: var(--gold);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.dub-hear:active {
  transform: scale(0.92);
  background: rgba(201, 162, 39, 0.24);
}

.dub-line.is-recording .dub-hear,
.dub-line.is-done .dub-hear {
  opacity: 0.4;
  pointer-events: none;
}

.dub-state.is-ok {
  color: var(--gold);
}

.dub-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  align-items: center;
}

/* 录音是唯一的主动作，必须独占整行且最显眼 */
.dub-actions .js-dub-record {
  grid-column: 1 / -1;
}

.dub-note {
  font-size: 1.1rem;
  color: rgba(242, 234, 217, 0.42);
  line-height: 1.6;
  margin: 0;
}

/* --------------------------------- 故事回声 -------------------------------- */

.screen-quiz {
  background:
    radial-gradient(80% 70% at 50% 0%, rgba(201, 162, 39, 0.1), transparent 60%),
    #0b1219;
}

.quiz-body {
  flex: 1;
  min-height: 0;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 2rem 4rem calc(2rem + var(--safe-b));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* 手机横屏可视高度只有 350–420px，选项卡必须压缩，否则底部会被切掉（真机上必现） */
@media (max-height: 460px) {
  .quiz-body { gap: 0.7rem; padding: 1rem 3rem calc(1rem + var(--safe-b)); justify-content: flex-start; }
  .quiz-prompt { font-size: 1.75rem; }
  .quiz-prompt-zh { font-size: 1.1rem; margin-bottom: 0.6rem; }
  .quiz-options { gap: 1.4rem; }
  .quiz-opt { width: 15rem; padding: 1.1rem 0.8rem; gap: 0.5rem; }
  .qicon { width: 3.4rem; height: 3.4rem; }
  .quiz-opt-label { font-size: 1.3rem; }
  .quiz-opt-zh { font-size: 1rem; }
  .screen-quiz .skip { margin-top: 0.8rem; }
}

.quiz-prompt {
  font-family: var(--font-en);
  font-size: 2.2rem;
  margin: 0;
  text-align: center;
}

.quiz-prompt-zh {
  font-size: 1.3rem;
  color: rgba(242, 234, 217, 0.5);
  margin: 0 0 1.6rem;
}

.quiz-options {
  display: flex;
  gap: 2rem;
}

.quiz-opt {
  width: 17rem;
  padding: 2rem 1rem;
  border-radius: 1.2rem;
  background: rgba(242, 234, 217, 0.06);
  border: 2px solid var(--glass-line);
  color: var(--paper);
  font-family: var(--font-cn);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  transition: transform 0.16s ease, border-color 0.2s ease, background 0.2s ease;
}

.quiz-opt:active {
  transform: scale(0.97);
}

.quiz-opt.is-right {
  border-color: var(--gold);
  background: rgba(201, 162, 39, 0.16);
}

.quiz-opt.is-wrong {
  border-color: var(--vermilion);
  opacity: 0.7;
}

.qicon {
  display: block;
  width: 4.6rem;
  height: 4.6rem;
  color: var(--gold);
  opacity: 0.92;
}

.qicon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.quiz-opt.is-right .qicon { color: #f0cd68; }
.quiz-opt.is-wrong .qicon { color: rgba(242, 234, 217, 0.5); }

.quiz-opt-label {
  font-family: var(--font-en);
  font-size: 1.5rem;
}

.quiz-opt-zh {
  font-size: 1.1rem;
  color: rgba(242, 234, 217, 0.5);
}

.screen-quiz .hud { position: relative; z-index: 1; }

.screen-quiz .skip {
  margin-top: 2rem;
}

/* ---------------------------------- 成就 ---------------------------------- */

.screen-achieve {
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(70% 60% at 50% 30%, rgba(201, 162, 39, 0.18), transparent 62%),
    #0b1219;
}

.achieve-card {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 3rem;
  max-width: 62rem;
}

/* 成就页也要有"兑现"的动作：金光扩一次 + 元素依次浮现 + 数字滚动 */
.achieve-bloom {
  position: absolute;
  left: 50%;
  top: 38%;
  width: 34rem;
  height: 34rem;
  margin-left: -17rem;
  margin-top: -17rem;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(232, 197, 96, 0.34), rgba(201, 162, 39, 0.08) 45%, transparent 68%);
  animation: bloom 1.6s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}

@keyframes bloom {
  0% { transform: scale(0.35); opacity: 0; }
  35% { opacity: 1; }
  100% { transform: scale(1.35); opacity: 0.55; }
}

.achieve-card > * {
  animation: riseIn 0.6s cubic-bezier(0.22, 0.9, 0.28, 1) backwards;
}

.achieve-card > :nth-child(1) { animation-delay: 0.12s; }
.achieve-card > :nth-child(2) { animation-delay: 0.2s; }
.achieve-card > :nth-child(3) { animation-delay: 0.34s; }
.achieve-card > :nth-child(4) { animation-delay: 0.46s; }
.achieve-card > :nth-child(5) { animation-delay: 0.58s; }
.achieve-card > :nth-child(6) { animation-delay: 0.7s; }

.achieve-title {
  animation: titleSettle 1.1s 0.2s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

@keyframes titleSettle {
  0% { transform: scale(1.09); opacity: 0; letter-spacing: 0.12em; }
  100% { transform: scale(1); opacity: 1; }
}

.achieve-eyebrow {
  font-size: 1.3rem;
  letter-spacing: 0.5em;
  color: var(--gold);
  margin: 0 0 1rem;
  text-indent: 0.5em;
}

.achieve-title {
  font-size: 3.6rem;
  margin: 0 0 1rem;
  letter-spacing: 0.06em;
}

.achieve-sub {
  font-size: 1.35rem;
  color: var(--paper-dim);
  margin: 0 0 2.4rem;
  line-height: 1.7;
}

.achieve-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-bottom: 2.6rem;
}

.achieve-stats div {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.achieve-stats b {
  font-family: var(--font-en);
  font-size: 2.6rem;
  color: var(--gold);
  font-weight: 400;
}

.achieve-stats span {
  font-size: 1.1rem;
  color: rgba(242, 234, 217, 0.5);
  letter-spacing: 0.14em;
}

.achieve-actions {
  display: flex;
  gap: 1.4rem;
  justify-content: center;
}

.report-entry {
  margin-top: 2.4rem;
  background: none;
  border: 0;
  color: rgba(242, 234, 217, 0.28);
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  font-family: var(--font-cn);
  cursor: pointer;
}

/* ---------------------------------- 报告 ---------------------------------- */

.screen-report {
  background: #0b1219;
}

.report-body {
  flex: 1;
  overflow-y: auto;
  padding: 2rem 4rem calc(2rem + var(--safe-b));
  -webkit-overflow-scrolling: touch;
}

.report-summary {
  display: flex;
  gap: 4rem;
  padding: 1.6rem 0 2.4rem;
  border-bottom: 1px solid var(--glass-line);
  flex-wrap: wrap;
}

.report-summary div {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.report-summary b {
  font-family: var(--font-en);
  font-size: 2.4rem;
  color: var(--gold);
  font-weight: 400;
}

.report-summary span {
  font-size: 1.05rem;
  color: rgba(242, 234, 217, 0.5);
  letter-spacing: 0.12em;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  font-size: 1.2rem;
}

.report-table th {
  text-align: left;
  font-weight: 400;
  color: rgba(242, 234, 217, 0.45);
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--glass-line);
}

.report-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(242, 234, 217, 0.06);
  font-family: var(--font-en);
}

.cell-line {
  font-family: var(--font-en) !important;
  color: var(--paper-dim);
}

.band {
  font-family: var(--font-cn);
  font-size: 1.05rem;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
}

.band--great { background: rgba(201, 162, 39, 0.2); color: var(--gold); }
.band--ok { background: rgba(242, 234, 217, 0.1); color: var(--paper-dim); }
.band--retry { background: rgba(178, 58, 47, 0.2); color: #e08b80; }

.report-note {
  margin-top: 2rem;
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(242, 234, 217, 0.4);
}

/* --------------------------------- 居中弹层 -------------------------------- */

.screen-center {
  align-items: center;
  justify-content: center;
  background: #0b1219;
}

.dialog {
  max-width: 52rem;
  text-align: center;
  padding: 2rem;
}

.dialog h2 {
  font-size: 2.2rem;
  margin: 0 0 1.4rem;
  letter-spacing: 0.08em;
}

.dialog p {
  font-size: 1.3rem;
  line-height: 1.8;
  color: var(--paper-dim);
  margin: 0 0 2.4rem;
}

.dialog-actions {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
}

/* 矮屏（横屏手机高度 ≤ 420px）压一压尺寸 */
@media (max-height: 430px) {
  html { font-size: calc(8px + 0.7vmin); }
  .linebar-line { font-size: 2.2rem; }
  .cover-title { font-size: 4.4rem; }
  .narrator { top: calc(5rem + var(--safe-t)); }
}
