/* ============================================================
   engine_chase.css  v20261024b  （美术真图接线版 · 分身G）
   「词语大追击」追逃玩法 · 样式与动效
   
   真图接入清单：
     跑道底图  → BG-00b_跑道母版_干净.png
     声控门    → GJ-10(关) / GJ-11(开)
     绊脚糖果  → GJ-20(完整) / GJ-21(碎)
     终点大门  → GJ-30(关) / GJ-31(开)
     Doudou    → DD-10(奔跑·默认) / DD-20(滑倒) / DD-30(沮丧)
     单词卡    → f10_单词卡正面.png（粉紫软糖框+Doudou探头+喇叭+空白+3空星）
   
   6关换色：风的 chase_theme_colors.css 变量已并入，
     .chase-track[data-round="1".."6"] 设置 --track-edge / --accent / --hud-ink
   
   所有 class 使用 .chase- 前缀
   竖屏 9:16 优先，横屏自适应；尊重 prefers-reduced-motion
   ============================================================ */

/* ================================================================
   1. CSS 变量 · 基础 + 6关换色（并入 chase_theme_colors.css）
   ================================================================ */
.chase-root {
  /* 基础色（JS 仍可运行时覆盖 --chase-primary / --chase-secondary） */
  --chase-primary: #6EC6FF;
  --chase-secondary: #FFE082;
  --chase-bg-sky: #E3F2FD;
  --chase-bg-ground: #C8E6C9;
  --chase-track-bg: #F1F8E9;
  --chase-text-dark: #37474F;
  --chase-text-light: #FFFFFF;
  --chase-accent-red: #EF5350;
  --chase-accent-green: #66BB6A;
  --chase-card-bg: #FFFDE7;
  --chase-card-border: #FFD54F;
  --chase-shadow: rgba(0,0,0,0.12);
  --chase-radius-lg: 20px;
  --chase-radius-md: 14px;
  --chase-radius-sm: 10px;
  --chase-font-en: 28px;
  --chase-font-cn: 22px;
  --chase-font-ipa: 16px;
  --chase-safe-top: env(safe-area-inset-top, 0px);
  --chase-safe-bottom: env(safe-area-inset-bottom, 0px);
  /* 6关换色默认值（对应第1关暖橙，可被 data-round 覆盖） */
  --track-edge: #FFB26B;
  --accent: #FF8A3D;
  --hud-ink: #8A4B25;
  --track-main: #FFE8A3;
  --track-main-deep: #F7D774;
  --sky: #9ED8F5;
  --grass: #B6E388;
}

/* ---- 6关换色（data-round="1..6" 挂在 .chase-track 上）---- */
/* U1 认识/交朋友 —— 暖橙 */
.chase-track[data-round="1"] {
  --track-edge: #FFB26B; --accent: #FF8A3D; --hud-ink: #8A4B25;
}
/* U2 我的学校/学习用品 —— 草绿 */
.chase-track[data-round="2"] {
  --track-edge: #9BD66E; --accent: #6FC24A; --hud-ink: #3F6B22;
}
/* U3 颜色/彩色世界 —— 葡萄紫 */
.chase-track[data-round="3"] {
  --track-edge: #B79CF5; --accent: #9A6FF0; --hud-ink: #57408F;
}
/* U4 动物/数字乐趣 —— 天空蓝 */
.chase-track[data-round="4"] {
  --track-edge: #7CC6F5; --accent: #4AA8E8; --hud-ink: #245A80;
}
/* U5 身边植物/关于我 —— 嫩芽青绿 */
.chase-track[data-round="5"] {
  --track-edge: #7FD8BE; --accent: #3FBF9B; --hud-ink: #1F6B57;
}
/* U6 我的家庭/甜蜜的家 —— 蜜桃粉 */
.chase-track[data-round="6"] {
  --track-edge: #FFA3BE; --accent: #FF7BA0; --hud-ink: #8A3852;
}
/* 三版本共用同一套6配色（关序=各版本三上U1-U6），不按教材版本区分颜色。 */

/* ================================================================
   2. 容器 .chase-root
   ================================================================ */
.chase-root {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--chase-bg-sky) 0%, var(--chase-bg-ground) 100%);
  font-family: -apple-system, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  padding-top: var(--chase-safe-top);
  padding-bottom: var(--chase-safe-bottom);
  box-sizing: border-box;
}

/* ================================================================
   3. HUD · 顶部信息栏（文字色跟随 --hud-ink 换色）
   ================================================================ */
.chase-hud {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  min-height: 48px;
  background: rgba(255,255,255,0.85);
  border-bottom: 2px solid var(--accent, var(--chase-secondary));
  box-sizing: border-box;
  z-index: 10;
}

.chase-level {
  font-size: 16px;
  font-weight: 700;
  color: var(--hud-ink, var(--chase-primary));
  white-space: nowrap;
  max-width: 30%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chase-stars {
  display: flex;
  gap: 4px;
  align-items: center;
  font-size: 18px;
}

.chase-stars .chase-star {
  display: inline-block;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  font-size: 18px;
  opacity: 0.3;
  transition: opacity 0.3s, transform 0.3s;
}

.chase-stars .chase-star.active {
  opacity: 1;
  animation: chase-star-pop 0.4s ease-out;
}

/* 8 词进度点 */
.chase-progress {
  display: flex;
  gap: 4px;
  align-items: center;
  flex: 1;
  justify-content: center;
  max-width: 40%;
}

.chase-progress .chase-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #CFD8DC;
  transition: background 0.3s, transform 0.3s;
}

.chase-progress .chase-dot.done {
  background: var(--chase-accent-green);
  transform: scale(1.2);
}

.chase-progress .chase-dot.fail {
  background: var(--chase-accent-red);
}

.chase-progress .chase-dot.current {
  background: var(--accent, var(--chase-secondary));
  animation: chase-dot-pulse 1s ease-in-out infinite;
}

/* ================================================================
   4. 跑道 · 纵向追逃区域（真图底图 BG-00b）
   ================================================================ */
.chase-track {
  flex: 1 1 auto;
  position: relative;
  overflow: hidden;
  min-height: 0;
  /* 真图跑道底图 · cover 铺满 · 6关共享同一母版 */
  background-image: url('assets/chase/track.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: var(--track-main, var(--chase-track-bg));
}

/* 跑道边缘染色叠层 —— 用 --track-edge 色做两侧柔和暗角，给换色以视觉差异 */
.chase-track::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  box-shadow: inset 0 0 40px -10px var(--track-edge, transparent);
}

/* 跑道中线（用主题 --accent 色） */
.chase-track::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: repeating-linear-gradient(
    0deg,
    var(--accent, var(--chase-secondary)) 0px,
    var(--accent, var(--chase-secondary)) 20px,
    transparent 20px,
    transparent 40px
  );
  transform: translateX(-50%);
  opacity: 0.35;
  z-index: 1;
  pointer-events: none;
}

/* 跑道刻度/距离感 */
.chase-distance {
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  opacity: 0.3;
  z-index: 2;
}

.chase-distance::after {
  content: '\25BD\A\25BD\A\25BD\A\25BD\A\25BD';
  white-space: pre;
  font-size: 12px;
  line-height: 1;
  color: var(--hud-ink, var(--chase-text-dark));
  text-align: center;
}

/* ================================================================
   5. Doudou 怪兽（追赶方）· 三态真图 + 脚底对齐
   DD-10 奔跑（默认）/ DD-20 滑倒 / DD-30 沮丧
   统一 100px 宽、background-position: center bottom 脚底锚点
   ================================================================ */
.chase-monster {
  position: absolute;
  left: 50%;
  /* top 由 JS 控制 */
  transform: translateX(-50%);
  width: 100px;
  height: 100px;
  /* 清除 emoji 占位 */
  font-size: 0;
  line-height: 0;
  color: transparent;
  /* 真图：奔跑态（默认） */
  background-image: url('assets/chase/dd_run.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center bottom;
  z-index: 5;
  transition: top 0.6s ease-in-out, transform 0.2s;
  image-rendering: -webkit-optimize-contrast;
}

/* 奔跑循环微动效（CSS transform 位移，非帧动画） */
.chase-monster:not(.chase-monster-slip):not(.chase-monster-sad) {
  animation: chase-doudou-run 0.6s ease-in-out infinite alternate;
}

/* 滑倒态 DD-20 */
.chase-monster.chase-monster-slip {
  background-image: url('assets/chase/dd_slip.png');
  animation: chase-monster-shake 0.4s ease-in-out;
}

/* 沮丧态 DD-30 */
.chase-monster.chase-monster-sad {
  background-image: url('assets/chase/dd_sad.png');
}

/* 逼近抖动+放大 */
.chase-monster.chase-monster-near {
  animation: chase-monster-shake 0.3s ease-in-out;
  transform: translateX(-50%) scale(1.15);
}

/* ---- 主角（逃跑方）保留 emoji 占位，待补主角立绘 ---- */
.chase-runner {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  line-height: 1;
  transition: top 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 6;
  background-color: rgba(110, 198, 255, 0.15);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 50%;
}

.chase-runner.chase-runner-jump {
  animation: chase-runner-bounce 0.5s ease-out;
}

.chase-runner.chase-runner-shake {
  animation: chase-runner-shake 0.4s ease-in-out;
}

/* ================================================================
   6. 机关 · 声控门（真图 GJ-10 关 / GJ-11 开）
   ================================================================ */
.chase-door {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  font-size: 0;
  line-height: 0;
  color: transparent;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  z-index: 4;
  transition: transform 0.12s ease;
}

/* 声控门·关（读对前） */
.chase-door.chase-door-off {
  background-image: url('assets/chase/door_off.png');
}

/* 声控门·开（读对后，露光） */
.chase-door.chase-door-on {
  background-image: url('assets/chase/door_on.png');
  transform: translateX(-50%) scale(1.06);
}

/* ================================================================
   7. 机关 · 绊脚糖果（真图 GJ-20 完整 / GJ-21 碎）
   ================================================================ */
.chase-candy {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  font-size: 0;
  line-height: 0;
  color: transparent;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  z-index: 3;
  transition: transform 0.12s ease;
}

/* 绊脚糖果·待触发（弹簧糖） */
.chase-candy.chase-candy-whole {
  background-image: url('assets/chase/candy_whole.png');
}

/* 绊脚糖果·踩碎（搞笑不疼+星星） */
.chase-candy.chase-candy-broken {
  background-image: url('assets/chase/candy_broken.png');
  transform: translateX(-50%) scale(0.9);
}

/* ================================================================
   8. 机关 · 终点大门（真图 GJ-30 关 / GJ-31 开）
   ================================================================ */
.chase-gate {
  position: absolute;
  left: 50%;
  top: 8%;
  transform: translateX(-50%);
  width: 100px;
  height: 110px;
  font-size: 0;
  line-height: 0;
  color: transparent;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  z-index: 3;
  border: none;
  transition: transform 0.12s ease;
}

/* 终点大门·关（双扇金星） */
.chase-gate.chase-gate-off {
  background-image: url('assets/chase/gate_off.png');
}

/* 终点大门·开（金光彩带） */
.chase-gate.chase-gate-on {
  background-image: url('assets/chase/gate_on.png');
  transform: translateX(-50%) scale(1.06);
}

.chase-gate.chase-gate-open {
  animation: chase-gate-glow 0.8s ease-out;
}

/* ================================================================
   9. 逐词卡片（真图 f10_单词卡正面.png）
   粉紫软糖框 + Doudou 左侧探头 + 右上喇叭 + 中央空白 + 底部3空星
   前端在空白区叠 .chase-card-en / .chase-card-ipa
   三上 .chase-card-cn 隐藏（display:none），K段以后启用
   HUD 星(.chase-stars) 在顶部信息栏，与卡面底部装饰星不重叠
   ================================================================ */
.chase-card {
  position: absolute;
  left: 50%;
  top: 22%;
  transform: translate(-50%, -50%) scale(0.8);
  width: min(82vw, 300px);
  /* 去掉原占位背景/边框/圆角，由 f10 底图提供 */
  padding: 28px 20px 44px 20px;
  background-image: url('assets/chase/card.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  background-color: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  text-align: center;
  z-index: 20;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
}

.chase-card.chase-card-show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  animation: chase-card-pop 0.35s ease-out;
}

/* 英文单词（大号，居中偏上，避开 Doudou 探头与喇叭） */
.chase-card-en {
  font-size: var(--chase-font-en);
  font-weight: 800;
  color: var(--hud-ink, var(--chase-text-dark));
  line-height: 1.3;
  margin-bottom: 6px;
  word-break: break-word;
  text-shadow: 0 1px 2px rgba(255,255,255,0.6);
  padding: 0 16%;
}

/* 三上隐藏中文（保留 class 供 K 段以后用） */
.chase-card-cn {
  display: none;
}

/* 音标 */
.chase-card-ipa {
  font-size: var(--chase-font-ipa);
  color: var(--hud-ink, #90A4AE);
  opacity: 0.7;
  line-height: 1.3;
  font-style: italic;
  padding: 0 16%;
}

/* ---- 连击计数 ---- */
.chase-combo {
  position: absolute;
  top: 12%;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: linear-gradient(135deg, #FF7043, #FF5722);
  color: var(--chase-text-light);
  font-size: 18px;
  font-weight: 800;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
  z-index: 15;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.2s, transform 0.2s;
}

.chase-combo.chase-combo-show {
  opacity: 1;
  transform: scale(1);
  animation: chase-combo-pop 0.3s ease-out;
}

.chase-combo.chase-combo-clear {
  animation: chase-combo-clear 0.5s ease-out;
}

/* ---- 轻提示 toast ---- */
.chase-toast {
  position: absolute;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);
  padding: 8px 20px;
  border-radius: 24px;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
  z-index: 25;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.chase-toast.chase-toast-show {
  opacity: 1;
  animation: chase-toast-up 0.8s ease-out forwards;
}

.chase-toast.chase-toast-correct {
  background: rgba(102, 187, 106, 0.92);
  color: var(--chase-text-light);
}

.chase-toast.chase-toast-wrong {
  background: rgba(239, 83, 80, 0.88);
  color: var(--chase-text-light);
}

.chase-toast.chase-toast-clear {
  background: rgba(255, 167, 38, 0.9);
  color: var(--chase-text-light);
}

/* ================================================================
   10. 放行卡（第 3 次读错 · Annie 带读放行）
   ================================================================ */
.chase-skip {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: min(85vw, 300px);
  padding: 24px 20px;
  background: #FFF8E1;
  border: 3px solid #FFB74D;
  border-radius: var(--chase-radius-lg);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
  text-align: center;
  z-index: 30;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
}

.chase-skip.chase-skip-show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.chase-skip .chase-skip-icon {
  font-size: 48px;
  margin-bottom: 8px;
}

.chase-skip .chase-skip-word {
  font-size: 24px;
  font-weight: 700;
  color: var(--chase-text-dark);
  margin-bottom: 4px;
}

.chase-skip .chase-skip-hint {
  font-size: 15px;
  color: #8D6E63;
  line-height: 1.5;
}

/* ================================================================
   11. 结算页（覆盖整场）
   待补结算底图：win/lose 背景图，目前保留渐变+emoji占位
   ================================================================ */
.chase-settle {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  z-index: 50;
  opacity: 0;
  transition: opacity 0.4s;
  box-sizing: border-box;
}

.chase-settle.chase-settle-show {
  opacity: 1;
}

/* 过关 —— 待补结算底图（f12_win 类），暂用渐变+emoji */
.chase-settle.chase-settle-win {
  background: linear-gradient(180deg, #E8F5E9 0%, #C8E6C9 50%, #A5D6A7 100%);
}

/* 被抓 —— 待补结算底图（f12_lose 类），暂用渐变+emoji */
.chase-settle.chase-settle-lose {
  background: linear-gradient(180deg, #FFF3E0 0%, #FFE0B2 50%, #FFCC80 100%);
}

/* 结算星星展示 */
.chase-settle .chase-stars {
  font-size: 40px;
  gap: 12px;
  margin-bottom: 16px;
}

.chase-settle .chase-stars .chase-star {
  width: 48px;
  height: 48px;
  line-height: 48px;
  font-size: 40px;
}

.chase-settle .chase-settle-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--chase-text-dark);
  margin-bottom: 8px;
}

.chase-settle .chase-settle-sub {
  font-size: 16px;
  color: #546E7A;
  margin-bottom: 4px;
  line-height: 1.5;
}

.chase-settle .chase-settle-beans {
  font-size: 18px;
  font-weight: 700;
  color: #FF8A65;
  margin: 8px 0 16px;
}

/* 结算按钮组 */
.chase-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 12px;
}

.chase-btns button,
.chase-btns .chase-btn-next,
.chase-btns .chase-btn-retry,
.chase-btns .chase-btn-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  padding: 12px 20px;
  font-size: 17px;
  font-weight: 700;
  border: none;
  border-radius: 28px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 12px var(--chase-shadow);
}

.chase-btns button:active,
.chase-btns .chase-btn-next:active,
.chase-btns .chase-btn-retry:active,
.chase-btns .chase-btn-home:active {
  transform: scale(0.95);
}

.chase-btn-next {
  background: linear-gradient(135deg, #66BB6A, #43A047);
  color: var(--chase-text-light);
}

.chase-btn-retry {
  background: linear-gradient(135deg, #FFA726, #FB8C00);
  color: var(--chase-text-light);
}

.chase-btn-home {
  background: linear-gradient(135deg, #BDBDBD, #9E9E9E);
  color: var(--chase-text-light);
}

/* ================================================================
   12. @keyframes 动效（尊重 prefers-reduced-motion）
   ================================================================ */

/* Doudou 奔跑微动效（循环位移，非帧动画） */
@keyframes chase-doudou-run {
  0%   { transform: translateX(-50%) translateY(0); }
  100% { transform: translateX(-50%) translateY(-4px); }
}

/* 读对向前蹦跳 */
@keyframes chase-runner-bounce {
  0%   { transform: translateX(-50%) translateY(0); }
  30%  { transform: translateX(-50%) translateY(-18px) scale(1.1); }
  60%  { transform: translateX(-50%) translateY(-4px); }
  100% { transform: translateX(-50%) translateY(0); }
}

/* 读错抖动 */
@keyframes chase-runner-shake {
  0%, 100% { transform: translateX(-50%) translateX(0); }
  20%  { transform: translateX(-50%) translateX(-6px); }
  40%  { transform: translateX(-50%) translateX(6px); }
  60%  { transform: translateX(-50%) translateX(-4px); }
  80%  { transform: translateX(-50%) translateX(4px); }
}

/* 怪兽逼近抖动+放大 */
@keyframes chase-monster-shake {
  0%, 100% { transform: translateX(-50%) scale(1); }
  25%  { transform: translateX(-50%) scale(1.12) rotate(-3deg); }
  50%  { transform: translateX(-50%) scale(1.15) rotate(3deg); }
  75%  { transform: translateX(-50%) scale(1.12) rotate(-2deg); }
}

/* 卡片弹出 */
@keyframes chase-card-pop {
  0%   { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
  60%  { transform: translate(-50%, -50%) scale(1.05); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* 连击弹出 */
@keyframes chase-combo-pop {
  0%   { transform: scale(0.3); opacity: 0; }
  70%  { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* 连击清零 */
@keyframes chase-combo-clear {
  0%   { transform: scale(1); opacity: 1; }
  50%  { transform: scale(1.3); opacity: 0.5; }
  100% { transform: scale(0.5); opacity: 0; }
}

/* toast 上浮消失 */
@keyframes chase-toast-up {
  0%   { opacity: 1; transform: translate(-50%, -50%); }
  70%  { opacity: 1; transform: translate(-50%, -120%); }
  100% { opacity: 0; transform: translate(-50%, -160%); }
}

/* 星星点亮 */
@keyframes chase-star-pop {
  0%   { transform: scale(0.3); opacity: 0; }
  60%  { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* 进度点脉冲 */
@keyframes chase-dot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%  { transform: scale(1.4); opacity: 0.7; }
}

/* 大门发光 */
@keyframes chase-gate-glow {
  0%   { box-shadow: 0 0 0 rgba(255,213,79,0); }
  50%  { box-shadow: 0 0 30px rgba(255,213,79,0.6); }
  100% { box-shadow: 0 0 0 rgba(255,213,79,0); }
}

/* 过关撒花 */
@keyframes chase-confetti-fall {
  0%   { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.chase-settle-win::before {
  content: '\01F389\01F31F\2728\01F38A\2B50\01F308\2728\01F389\01F31F';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  font-size: 24px;
  letter-spacing: 12px;
  text-align: center;
  animation: chase-confetti-fall 2.5s ease-in forwards;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
}

/* 被抓盖层呼吸感 */
@keyframes chase-lose-breathe {
  0%, 100% { opacity: 1; }
  50%  { opacity: 0.85; }
}

.chase-settle-lose::after {
  content: '\01F917';
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 64px;
  animation: chase-lose-breathe 2s ease-in-out infinite;
  pointer-events: none;
}

/* ================================================================
   13. prefers-reduced-motion · 减弱/关闭动效
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  .chase-monster,
  .chase-runner,
  .chase-card,
  .chase-combo,
  .chase-toast,
  .chase-skip,
  .chase-settle,
  .chase-gate,
  .chase-door,
  .chase-candy,
  .chase-stars .chase-star,
  .chase-progress .chase-dot {
    animation: none !important;
    transition-duration: 0.01s !important;
  }

  .chase-settle-win::before,
  .chase-settle-lose::after {
    display: none !important;
  }
}

/* ================================================================
   14. 横屏适配（landscape）
   ================================================================ */
@media (orientation: landscape) {
  .chase-root {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .chase-hud {
    flex: 0 0 100%;
    order: -1;
    min-height: 40px;
    padding: 4px 16px;
  }

  .chase-track {
    flex: 1 1 65%;
    min-height: 0;
    background-size: cover;
  }

  .chase-card {
    width: min(42vw, 250px);
    top: 38%;
    padding: 20px 14px 36px 14px;
  }

  .chase-card-en {
    font-size: 24px;
  }

  .chase-card-cn {
    font-size: 18px;
  }

  .chase-monster {
    width: 80px;
    height: 80px;
  }

  .chase-runner {
    width: 56px;
    height: 56px;
    font-size: 40px;
  }

  .chase-door {
    width: 64px;
    height: 64px;
  }

  .chase-candy {
    width: 48px;
    height: 48px;
  }

  .chase-gate {
    width: 80px;
    height: 88px;
  }

  .chase-settle {
    padding: 16px 24px;
  }

  .chase-settle .chase-settle-title {
    font-size: 22px;
  }

  .chase-btns button,
  .chase-btns .chase-btn-next,
  .chase-btns .chase-btn-retry,
  .chase-btns .chase-btn-home {
    padding: 10px 16px;
    font-size: 15px;
    min-width: 80px;
  }
}

/* 矮横屏 */
@media (orientation: landscape) and (max-height: 400px) {
  .chase-hud {
    min-height: 34px;
    padding: 2px 10px;
  }

  .chase-level {
    font-size: 13px;
  }

  .chase-card {
    width: min(36vw, 210px);
    padding: 16px 10px 28px 10px;
    top: 42%;
  }

  .chase-card-en {
    font-size: 20px;
    margin-bottom: 4px;
  }

  .chase-card-cn {
    font-size: 15px;
    margin-bottom: 2px;
  }

  .chase-card-ipa {
    font-size: 13px;
  }

  .chase-combo {
    font-size: 14px;
    padding: 4px 8px;
  }

  .chase-monster {
    width: 60px;
    height: 60px;
  }

  .chase-runner {
    width: 44px;
    height: 44px;
    font-size: 32px;
  }

  .chase-door {
    width: 48px;
    height: 48px;
  }

  .chase-gate {
    width: 64px;
    height: 72px;
  }

  .chase-candy {
    width: 40px;
    height: 40px;
  }

  .chase-toast {
    font-size: 14px;
    padding: 6px 14px;
  }
}

/* ================================================================
   15. 小竖屏 (iPhone SE 等 375x667)
   ================================================================ */
@media (max-height: 700px) and (orientation: portrait) {
  .chase-hud {
    min-height: 40px;
    padding: 4px 8px;
  }

  .chase-card {
    width: min(76vw, 250px);
    padding: 22px 14px 36px 14px;
    top: 20%;
  }

  .chase-card-en {
    font-size: 24px;
  }

  .chase-card-cn {
    font-size: 18px;
  }

  .chase-monster {
    width: 80px;
    height: 80px;
  }

  .chase-runner {
    width: 56px;
    height: 56px;
    font-size: 40px;
  }

  .chase-door {
    width: 64px;
    height: 64px;
  }

  .chase-gate {
    width: 80px;
    height: 88px;
  }

  .chase-candy {
    width: 48px;
    height: 48px;
  }

  .chase-settle .chase-settle-title {
    font-size: 22px;
  }
}

/* ================================================================
   大白·引擎A2实际class补位（20261024）：与现有视觉同风格，不改G原有规则
   ================================================================ */
/* A2引擎在纵向刻度条内放 fill，装饰条不承载真实进度（进度由怪兽top表达），
   将其绝对定位、不占 flex 流，避免撑坏刻度排版 */
.chase-distance .chase-distance-fill {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 4px !important;
  height: 0;
  background: var(--accent, #FF8A3D);
  border-radius: 2px;
  opacity: 0.55;
  pointer-events: none;
}
/* 结算·明细（读对N/8 + 最大连击），对应 .chase-settle-sub 视觉 */
.chase-settle .chase-settle-detail {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.35);
  margin: 10px 0 4px;
  text-align: center;
}
/* 结算·被抓鼓励文案 */
.chase-settle .chase-settle-tip {
  font-size: 14px;
  color: #fff;
  opacity: 0.92;
  text-shadow: 0 1px 3px rgba(0,0,0,0.35);
  margin: 2px 0 8px;
  text-align: center;
}
