/* ============================================================
   CET 打靶 · 设计系统
   参考「句乐部」的极简风格：白底、大字、紫色主色、细进度条
   ============================================================ */

:root {
  --brand:        #7C3AED;
  --brand-600:    #6D28D9;
  --brand-400:    #A78BFA;
  --brand-300:    #C4B5FD;
  --brand-bg:     #F5F3FF;
  --brand-bg-2:   #EDE9FE;

  --text:         #111827;
  --text-2:       #6B7280;
  --text-3:       #9CA3AF;
  --line:         #E9E9EC;
  --line-2:       #F3F4F6;

  --ok:           #10B981;
  --ok-bg:        #ECFDF5;
  --err:          #EF4444;
  --err-bg:       #FEF2F2;
  --warn:         #F59E0B;

  --bg:           #FFFFFF;
  --bg-soft:      #FAFAFB;

  --radius:       14px;
  --radius-lg:    20px;
  --shadow-sm:    0 1px 2px rgba(17,24,39,.05);
  --shadow:       0 4px 16px rgba(17,24,39,.06);
  --shadow-lg:    0 12px 32px rgba(124,58,237,.14);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, Consolas, monospace;

  --ease: cubic-bezier(.22,1,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

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

/* 纯白底太像「没做完的页面」。铺一层固定的柔光渐变 + 点阵纹理，
   只在视觉底层，不拦截任何点击。 */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(920px 540px at 10% -10%, rgba(124,58,237,.14), transparent 62%),
    radial-gradient(760px 480px at 94% 2%,  rgba(6,182,212,.12),  transparent 60%),
    radial-gradient(720px 540px at 46% 112%, rgba(236,72,153,.11), transparent 64%),
    linear-gradient(180deg, #FCFAFF 0%, #F8F9FE 44%, #FAFAFB 100%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(17,24,39,.05) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 58%);
          mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 58%);
}
#app { position: relative; z-index: 1; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input  { font-family: inherit; }
a { color: inherit; text-decoration: none; }

#app { min-height: 100%; display: flex; flex-direction: column; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- 通用容器 ---------- */
.wrap { width: 100%; max-width: 860px; margin: 0 auto; padding: 0 24px; }
.wrap-wide { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   首页
   ============================================================ */
.home { padding: 56px 0 80px; }

.brand-row {
  display: flex; align-items: center; gap: 12px; margin-bottom: 40px;
}
.brand-mark {
  width: 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-400) 100%);
  display: grid; place-items: center; flex: none;
  box-shadow: 0 6px 18px rgba(124,58,237,.28);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-name { font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.brand-sub  { font-size: 12px; color: var(--text-3); margin-top: 1px; }

/* 顶部小标签：一眼说清这是干嘛的 */
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px 6px 11px; border-radius: 999px; margin-bottom: 16px;
  background: rgba(255,255,255,.8); border: 1px solid var(--brand-300);
  color: var(--brand-600); font-size: 12.5px; font-weight: 600;
  box-shadow: 0 2px 10px rgba(124,58,237,.10);
  backdrop-filter: blur(6px);
}
.hero-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 3px rgba(16,185,129,.18);
}

/* 滚动词条：让首页第一屏就有「这个站真有货」的实感 */
.ticker {
  position: relative; margin-top: 22px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.ticker-in {
  display: inline-flex; gap: 10px; width: max-content;
  animation: tickerRun 46s linear infinite;
}
.ticker:hover .ticker-in { animation-play-state: paused; }
@keyframes tickerRun { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tk {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  padding: 6px 13px 6px 6px; border-radius: 999px;
  background: rgba(255,255,255,.86); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.tk img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; }
.tk b { font-size: 13.5px; font-weight: 650; letter-spacing: -.005em; }
.tk em { font-style: normal; font-size: 12px; color: var(--text-3); }

/* ---------- 激励三卡：连续打卡 / 今日目标 / 段位 ---------- */
.boost {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin: 0 0 38px;
}
.boost-card {
  padding: 18px 18px 16px; border-radius: var(--radius-lg);
  background: rgba(255,255,255,.82); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); backdrop-filter: blur(8px);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.boost-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.bc-top { display: flex; align-items: center; gap: 8px; }
.bc-ico {
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  color: #fff; flex: none;
}
.bc-ico svg { width: 14px; height: 14px; }
.bc-ico.fire  { background: linear-gradient(135deg, #FB7185, #F97316); }
.bc-ico.today { background: linear-gradient(135deg, #38BDF8, #0EA5E9); }
.bc-ico.rank  { background: linear-gradient(135deg, var(--brand), #C026D3); }
.bc-t { font-size: 12px; font-weight: 650; color: var(--text-2); letter-spacing: .02em; }
.bc-val { font-size: 30px; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.bc-val i { font-style: normal; font-size: 13px; font-weight: 600; color: var(--text-3); margin-left: 3px; }
.week { display: flex; gap: 5px; }
.wd {
  width: 100%; height: 6px; border-radius: 999px; background: var(--line-2);
  border: 1px solid var(--line);
}
.wd.on { background: linear-gradient(90deg, #FB923C, #EF4444); border-color: transparent; }
.wd.today { box-shadow: 0 0 0 2px rgba(124,58,237,.16); }
.bc-foot { font-size: 11.5px; color: var(--text-3); line-height: 1.5; }

.bc-ring { position: relative; width: 64px; height: 64px; }
.bc-ring svg { width: 64px; height: 64px; transform: rotate(-90deg); }
.bc-ring circle { fill: none; stroke-width: 6; stroke-linecap: round; }
.ring-bg { stroke: var(--line-2); }
.ring-fg {
  stroke: #0EA5E9;
  transition: stroke-dashoffset .6s var(--ease);
}
.ring-txt {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
}
.ring-txt b { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.ring-txt span { font-size: 10.5px; color: var(--text-3); }

.bc-rank { font-size: 21px; font-weight: 700; letter-spacing: -.015em; }
.rank-bar {
  height: 7px; border-radius: 999px; background: var(--line-2); overflow: hidden;
}
.rank-bar i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), #C026D3);
  transition: width .6s var(--ease);
}

/* v105 头图：标题 + 滚动词条合进同一个描边框，框底是 AI 原创生成的
   二次元清晨校园天空（assets/hero-anime.jpg，站内自制素材无版权问题）。
   上面压一层从左到右的白色渐变：左侧 0.94 不透明度保黑字可读，
   右侧放到 0.40 让云和教学楼透出来 —— 背景「看得见但不抢字」。
   （红框圈掉的 hero-tag 胶囊和长文案 <p> 已从首页模板删除；统计胶囊保留。）
   ⚠️ 别在 app.js 的首页模板字符串里写块注释 —— 会被原样渲染到页面上。 */
.hero { margin-bottom: 30px; }
.hero-box {
  position: relative; overflow: hidden;
  padding: 30px 32px 28px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(124, 58, 237, .20);
  background-image:
    linear-gradient(100deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.80) 46%, rgba(255,255,255,.40) 100%),
    url('../assets/hero-anime.jpg');
  background-size: cover;
  background-position: center;
  box-shadow: 0 6px 24px rgba(124, 58, 237, .10);
}
.hero h1 {
  font-size: 34px; font-weight: 700; letter-spacing: -.025em;
  line-height: 1.25; margin-bottom: 14px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--brand) 0%, #C026D3 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { font-size: 15px; color: var(--text-2); line-height: 1.7; max-width: 620px; }

.stat-row {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px;
}
.stat-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: 999px;
  background: var(--brand-bg); color: var(--brand-600);
  font-size: 12.5px; font-weight: 550;
}
.stat-pill b { font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-pill .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--brand-400); }

/* 模式卡片 */
.section-label {
  font-size: 12px; font-weight: 650; letter-spacing: .07em;
  text-transform: uppercase; color: var(--text-3);
  margin: 0 0 14px 2px;
}
.mode-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.mode-card {
  position: relative; text-align: left;
  padding: 0 20px 20px; border-radius: var(--radius-lg);
  border: 1px solid var(--line); background: var(--bg);
  transition: all .22s var(--ease); overflow: hidden;
  display: flex; flex-direction: column; gap: 9px;
}
.mode-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--brand-bg) 0%, transparent 62%);
  opacity: 0; transition: opacity .22s var(--ease); pointer-events: none;
}
.mode-card:hover { transform: translateY(-3px); border-color: var(--brand-300); box-shadow: var(--shadow-lg); }
.mode-card:hover::after { opacity: 1; }
.mode-card > * { position: relative; z-index: 1; }
/* 入口配图：图标再精致也不如一张实物图好认 */
.mode-pic {
  position: relative; height: 104px; margin: 0 -20px 14px;
  background: linear-gradient(160deg, var(--brand-bg) 0%, var(--brand-bg-2) 100%);
  overflow: hidden;
}
.mode-pic img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s var(--ease);
}
.mode-card:hover .mode-pic img { transform: scale(1.06); }
/* 游戏卡封面是 canvas 画的实景（图库里没有对应的实物图） */
.mode-pic .mode-cv { display: block; width: 100%; height: 100%; }
.mode-pic::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.34) 0%, rgba(255,255,255,0) 46%);
}
.mode-ico {
  position: absolute; left: 14px; bottom: 12px; z-index: 2;
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center; background: rgba(255,255,255,.94);
  color: var(--brand); box-shadow: 0 3px 10px rgba(17,24,39,.14);
  backdrop-filter: blur(4px);
}
.mode-ico svg { width: 19px; height: 19px; }
.mode-card h3 { font-size: 15.5px; font-weight: 650; letter-spacing: -.01em; }
.mode-card p  { font-size: 12.5px; color: var(--text-2); line-height: 1.6; }
.mode-meta {
  margin-top: auto; padding-top: 10px;
  font-size: 11.5px; color: var(--text-3); font-weight: 550;
  display: flex; align-items: center; gap: 6px;
}

/* ============================================================
   游戏界面
   ============================================================ */
/* dvh：手机浏览器的地址栏会吃掉一截 100vh，用动态视口高度才不会把
   底部（屏幕键盘）顶出屏幕。老浏览器读不懂 dvh 会沿用上一行 vh */
.game {
  min-height: 100vh; min-height: 100dvh;
  /* --tkh 由 JS 按屏幕键盘实测高度写进来，键盘有多高就留多少白，
     保证卡片、输入行永远滚得到键盘上方 */
  padding-bottom: var(--tkh, 0px);
  display: flex; flex-direction: column;
  background: var(--bg);
}

.game-top {
  display: flex; align-items: center; gap: 18px;
  padding: 16px 24px; flex: none;
}
.gt-spacer { flex: 1; }

.hud {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 14px; font-weight: 600;
  color: var(--text); font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.hud .hud-ico { width: 17px; height: 17px; color: var(--text-3); flex: none; }
.hud.hud-score .hud-ico { color: var(--brand); }
.hud.hud-combo { color: var(--warn); }

.icon-btn {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center; color: var(--text-2);
  transition: all .16s var(--ease);
}
.icon-btn:hover { background: var(--line-2); color: var(--text); }
.icon-btn svg { width: 19px; height: 19px; }

/* 中央舞台 */
.stage {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 24px; gap: 26px;
  overflow-y: auto;
}

.prompt {
  font-size: 40px; font-weight: 650; letter-spacing: -.03em;
  text-align: center; line-height: 1.4; max-width: 780px;
  animation: promptIn .34s var(--ease);
}
.prompt.is-sentence { font-size: 26px; line-height: 1.6; }
@keyframes promptIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.prompt-hint {
  font-size: 13px; color: var(--text-3); text-align: center;
  margin-top: -18px; font-family: var(--mono); letter-spacing: .02em;
  min-height: 18px;
}
/* 音标被提到题面正下方之后就是主信息了，不再是可有可无的旁注，
   所以字号和颜色都得跟着升一档，否则贴在 40px 的题面下面像句废话 */
.prompt-hint.is-on {
  font-size: 17px; color: var(--text-2); font-weight: 550;
  letter-spacing: .01em; margin-top: -14px;
}

/* 听写挑战：把「这一局什么都不给」说清楚，省得学生以为界面坏了 */
.challenge-tip {
  margin: 2px auto 0; padding: 5px 14px;
  font-size: 12.5px; font-weight: 550; letter-spacing: .02em;
  color: var(--text-3);
  background: var(--surface-2, rgba(127, 127, 127, .08));
  border: 1px dashed var(--line); border-radius: 999px;
  text-align: center;
}

/* 出题朗读流程的阶段提示：①慢读 ②拼读 ③常速。
   念完自己就没了，所以平时 display:none 彻底不占位，
   免得题面在「念」和「不念」之间跳一下。 */
.drill-step { display: none; }
.drill-step.on {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 4px auto 0; padding: 5px 14px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 550;
  letter-spacing: .02em; color: var(--brand-600);
  background: var(--brand-bg); border: 1px solid var(--brand-300);
  border-radius: 999px;
  animation: drillIn .28s var(--ease);
}
/* 前面那颗跳动的圆点 = 「正在念」，念完标签消失，点也跟着走 */
.drill-step.on::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-400); flex: none;
  animation: drillPulse 1s ease-in-out infinite;
}
@keyframes drillPulse {
  0%, 100% { opacity: .35; transform: scale(.8); }
  50%      { opacity: 1;   transform: scale(1.15); }
}
@keyframes drillIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}

/* 输入显示区 */
.typing { width: 100%; max-width: 780px; }

.type-line {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: center; gap: 4px 15px;
  font-family: var(--mono); font-size: 30px;
  letter-spacing: -.01em; min-height: 62px;
  padding: 6px 0;
}
.type-word {
  position: relative; padding: 0 2px 8px;
  transition: color .14s var(--ease);
  border-bottom: 2px solid transparent;
  cursor: text;
}
.type-word:hover { background: var(--line-2); border-radius: 4px; }

/* 点词直达的提示 */
.type-tip {
  text-align: center; font-size: 12px; color: var(--text-3);
  padding: 2px 0 6px;
}
@media (max-width: 620px) { .type-tip { font-size: 11.5px; } }
.type-word.done    { color: var(--text-3); border-bottom-color: var(--line-2); }
.type-word.current { color: var(--brand); border-bottom-color: var(--brand); }
.type-word.bad     { color: var(--err); border-bottom-color: var(--err);
                     background: rgba(220, 38, 38, .07); border-radius: 4px 4px 0 0; }
/* v112 句子题彩字：打对的词按位置循环染色（绿→红→紫→橙→蓝→粉）。
   颜色比原来的灰醒目，一眼能看出「这句话我已经推进到第几个词」；
   打错的词仍走 bad —— 除了红字还带浅红底色，跟彩色里的红区分得开。 */
.type-word.done.tw-c0 { color: #059669; }   /* 绿 */
.type-word.done.tw-c1 { color: #dc2626; }   /* 红 */
.type-word.done.tw-c2 { color: #7c3aed; }   /* 紫 */
.type-word.done.tw-c3 { color: #ea580c; }   /* 橙 */
.type-word.done.tw-c4 { color: #0284c7; }   /* 蓝 */
.type-word.done.tw-c5 { color: #db2777; }   /* 粉 */
.type-word.done.tw-c0, .type-word.done.tw-c1, .type-word.done.tw-c2,
.type-word.done.tw-c3, .type-word.done.tw-c4, .type-word.done.tw-c5 {
  border-bottom-color: currentColor; opacity: .88;
}
/* 未打到的词不再用整词下划线（会和其他词连成一条糊掉的横线），
   改由内部的 .tw-b 逐字母画短线 */
.type-word.pending { color: var(--line); border-bottom-color: transparent; }
.tw-b {
  display: inline-block; width: .5em; height: .8em;
  border-bottom: 2px solid var(--line); border-radius: 1px;
  margin-right: .12em; vertical-align: baseline;
}
.type-word.on  .tw-b { border-bottom-color: var(--brand); }
.type-word.bad .tw-b { border-bottom-color: var(--err); }
/* 听写挑战的占位：固定宽度，不泄露这个词有几个字母 */
.tw-b.tw-blur {
  width: 4.2em; margin-right: 0;
  border-bottom-style: dashed; border-bottom-width: 2px;
  opacity: .75;
}
/* 看过答案（Ctrl+/）后摊开的字母：灰色，一眼能跟自己打出来的区分开 */
.tw-ghost { color: var(--text-3); letter-spacing: .04em; }

/* 光标所在的那个词 —— 跟「对/错」是两回事。
   打错的词也是红色，如果不额外标一下，学员分不清「光标在哪」和「哪儿打错了」，
   退格删错地方就会以为「退格失灵、改不了」。 */
.type-word.on {
  background: var(--brand-bg);
  border-radius: 5px 5px 0 0;
  box-shadow: inset 0 0 0 1px var(--brand-200, rgba(99, 102, 241, .28));
}
.type-word.on.bad { background: rgba(220, 38, 38, .09); }
.type-word.on .type-caret { margin-left: 1px; }

/* ============================================================
   逐词卡片：每个词下面挂 音标 / 词性 / 中文
   默认不显示英文拼写，只给「怎么读、什么词、什么意思」，
   打对了才把英文翻出来做即时确认，所以不会泄露答案
   ============================================================ */
.word-cards {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 7px; max-width: 860px; padding: 0 4px;
}
.wc {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  flex: none; min-width: 54px; max-width: 208px; min-height: 64px;
  justify-content: center; padding: 6px 10px 7px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg-soft); cursor: pointer;
  transition: border-color .16s var(--ease), background .16s var(--ease), box-shadow .16s var(--ease);
}
.wc:hover { border-color: var(--brand-400); background: var(--brand-bg); }
.wc.on {
  border-color: var(--brand); background: var(--brand-bg);
  box-shadow: 0 0 0 3px var(--brand-bg-2);
}
/* 已打对但光标不在这个词上，才用「已完成」的绿色；
   光标就在这儿时必须保持光标态，否则学员又看不出自己在改哪个词 */
.wc.ok:not(.on) { border-color: #BBF7D0; background: var(--ok-bg); }
.wc-ph  { font-family: var(--mono); font-size: 11.5px; color: var(--text-2); white-space: nowrap; }
.wc-pos { font-size: 10px; font-weight: 700; color: var(--brand); letter-spacing: .02em; white-space: nowrap; }
.wc-zh  { font-size: 12px; color: var(--text); line-height: 1.35; text-align: center; }
.wc-en  {
  font-family: var(--mono); font-size: 12.5px; font-weight: 700;
  color: var(--text-3); letter-spacing: .04em;
}
.wc.ok .wc-en { color: var(--ok); }
.wc-form { font-size: 10px; color: var(--text-3); }
.wc-none { opacity: .5; }

/* ============================================================
   单词配图：打字时是模糊剪影，全对之后才解锁清晰大图
   ============================================================ */
.word-pic { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.wp-frame {
  position: relative; width: 320px; max-width: 76vw; height: 236px;
  border-radius: 14px; overflow: hidden; background: var(--line-2);
  border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(17, 24, 39, .08);
}
.wp-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: blur(17px) saturate(.5) brightness(.92);
  transform: scale(1.09);
  transition: filter .55s var(--ease), transform .55s var(--ease);
}
.word-pic.shown .wp-frame img { filter: none; transform: none; }
.wp-lock {
  position: absolute; left: 0; right: 0; bottom: 10px; text-align: center;
  font-size: 11.5px; font-weight: 600; color: #fff;
  text-shadow: 0 1px 5px rgba(0, 0, 0, .65);
}
.word-pic.shown .wp-lock { display: none; }
.wp-swap {
  position: absolute; top: 8px; right: 8px; font-size: 12px;
  /* 手指点得到：至少 32px 高，原来 21px 手机上老点空 */
  min-height: 32px; padding: 6px 13px; border-radius: 999px; border: 0;
  background: rgba(17, 24, 39, .5); color: #fff; cursor: pointer;
}
.wp-swap:hover { background: rgba(17, 24, 39, .72); }
.wp-bad::after {
  content: '配图没加载出来 · 可点「换一张」'; position: absolute; inset: 0;
  display: grid; place-items: center; font-size: 12px; color: var(--text-3);
}
.wp-meta {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  flex-wrap: wrap; font-size: 12.5px; color: var(--text-2);
}
.wp-meta b  { font-family: var(--mono); font-size: 14.5px; color: var(--text); }
.wp-meta i  { font-style: normal; font-family: var(--mono); font-size: 11.5px; }
.wp-meta em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--brand); }
@media (max-width: 620px) {
  .wp-frame { height: 176px; }
  .wc { min-width: 46px; padding: 5px 7px 6px; }
  .wc-zh { font-size: 11.5px; }
  .word-cards { gap: 5px; }
  .stage { gap: 16px; padding: 16px 12px; }
}

.type-caret {
  display: inline-block; width: 2px; height: 30px;
  background: var(--brand); vertical-align: -4px;
  animation: blink 1.05s steps(2, start) infinite;
  margin-left: 1px;
}
@keyframes blink { 50% { opacity: 0; } }

/* 真实输入框：完全透明，但必须留在视口内。
   放在 left:-9999px 会让手机端输入法接不稳 —— 表现为「字打不进去、退格也删不掉」。 */
.type-input {
  position: fixed; top: 28%; left: 4%; width: 92%; height: 40%;
  opacity: 0; background: transparent; border: 0;
  color: transparent; caret-color: transparent;
  pointer-events: none; z-index: 2;
  font-size: 34px; letter-spacing: .06em;
  padding: 0;
}
.type-input::selection { background: transparent; }


/* ================= 屏幕字母键盘（手机 / 平板专用） =================
   没有电脑的学生占多数：手机软键盘默认中文输入法，打不出英文。
   这块键盘是页面自己的，点屏幕就能打字，不依赖系统输入法。
   电脑上（有鼠标悬停）直接隐藏，不占地方。 */
/* fixed 贴底 + .game 留出等高 padding：sticky 会浮在内容上面，
   把例句卡的「继续」按钮盖住（手机上点不到，只能靠「下一题」绕） */
.tkeys {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(248,250,252,.92), #eef2f9);
  border-top: 1px solid rgba(12,32,62,.10);
  box-shadow: 0 -6px 18px rgba(12,32,62,.08);
  user-select: none; -webkit-user-select: none;
  touch-action: manipulation;
}
.tk-row { display: flex; justify-content: center; gap: 5px; margin-bottom: 5px; }
.tk-row:last-child { margin-bottom: 0; }
.tk-key {
  -webkit-appearance: none; appearance: none;
  flex: 1 1 0; min-width: 0; max-width: 44px;
  height: 42px; border-radius: 9px; cursor: pointer;
  border: 1px solid rgba(12,32,62,.16);
  border-bottom-width: 2px;
  background: #fff; color: var(--text);
  font-size: 17px; font-weight: 600; font-family: inherit;
  display: flex; align-items: center; justify-content: center;
  text-transform: lowercase;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background .08s var(--ease), transform .08s var(--ease);
}
.tk-key:active { background: var(--brand-bg); transform: translateY(1px); }
.tk-key.tk-wide { max-width: 74px; font-size: 13px; font-weight: 600; }
.tk-key.tk-space { flex: 2.2 1 0; max-width: 150px; font-size: 13px; }
.tk-key.tk-go {
  max-width: 92px; font-size: 13px; font-weight: 700;
  background: var(--brand); border-color: var(--brand-600); color: #fff;
}
.tk-key.tk-go:active { background: var(--brand-600); }

/* 电脑上不显示屏幕键盘 —— 有物理键盘的人不需要它 */
@media (hover: hover) and (pointer: fine) {
  .tkeys { display: none; }
}
/* 手机上把「Ctrl+某某」这类只属于物理键盘的提示收起来 */
@media (hover: none) {
  /* 手机上没有物理键盘：整条快捷键提示都收起来。
     省下的地方给题面和例句卡（屏幕键盘已经提供了这里列的全部功能） */
  .pc-only { display: none !important; }
  .key-bar { display: none; }
  .type-tip { font-size: 11.5px; }
}

/* 反馈 */
.feedback {
  height: 26px; text-align: center; font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.feedback.ok  { color: var(--ok); }
.feedback.err { color: var(--err); }
.feedback svg { width: 16px; height: 16px; }

/* 屏幕键盘提示 */
.hint-bar, .key-bar {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  color: var(--text-3); font-size: 12px; padding-bottom: 6px;
  flex-wrap: wrap;
}
.key-bar { gap: 16px; padding-top: 4px; }
.key-item { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
/* 「显示答案」是卡住时的救命键，给它一点颜色，别埋在一排灰键里 */
.key-item.key-hi { color: var(--brand); font-weight: 600; }
.key-item.key-hi kbd {
  background: var(--brand-bg); border-color: var(--brand-300); color: var(--brand-600);
}
kbd {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  padding: 2px 6px; border-radius: 5px;
  background: var(--line-2); border: 1px solid var(--line);
  color: var(--text-2);
}

/* 中文释义隐藏态：只留一句提示，逼自己回忆 */
.prompt.is-masked {
  font-size: 19px; font-weight: 500; color: var(--text-3);
  letter-spacing: .02em;
}

/* 掌握 / 生词 徽标 */
.mark-badge { display: flex; justify-content: center; min-height: 22px; margin-top: 2px; }
.mk {
  font-size: 11.5px; font-weight: 600; padding: 2px 9px;
  border-radius: 999px; border: 1px solid transparent;
}
.mk-known { color: #0F6E56; background: #E1F5EE; border-color: #9FE1CB; }
.mk-new   { color: #993C1D; background: #FAECE7; border-color: #F5C4B3; }
.icon-btn.is-off { opacity: .42; }

/* 触屏设备用不到键盘快捷键，直接收起 */
@media (hover: none) { .key-bar { display: none; } }
/* 窄屏保留最常用的几个（含 Ctrl+Z 撤销） */
/* 手机没有 ctrl 键，ctrl+ 开头的提示纯属噪音；但「显示答案」必须留着，
   它是学生卡住时唯一的出口，只把 ctrl 这个键帽收掉、文字提示保留 */
@media (max-width: 620px) {
  .key-bar .key-item:nth-child(2),
  .key-bar .key-item:nth-child(3),
  .key-bar .key-item:nth-child(5),
  .key-bar .key-item:nth-child(6) { display: none; }
  .key-bar kbd.pc-only { display: none; }
}

/* ================= 底部触屏操作区 =================
   顶栏那排图标只有 24px，手指按不准；「切出题顺序」又是个会整局重来的操作，
   所以单独放一块大按钮区在界面下方 —— 触屏能一把按准，鼠标也点得到。 */
.touch-dock {
  width: 100%; max-width: 520px; margin: 12px auto 0;
  padding: 10px 12px 11px; border-radius: var(--radius);
  background: var(--bg-soft); border: 1px solid var(--line);
}
.td-row {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; flex-wrap: wrap;
}
.td-lab { font-size: 12px; font-weight: 700; color: var(--text-3); margin-right: 2px; }
.td-m, .td-reset {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  font-family: inherit; font-weight: 600;
  border-radius: 10px; border: 1px solid var(--line);
  background: #fff; color: var(--text-2);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: background .12s var(--ease), color .12s var(--ease),
              border-color .12s var(--ease);
}
/* 44px 是触屏可点的最小高度（苹果 HIG 的老规矩），桌面上也照这个来，
   不靠媒体查询兜底 —— 设备像素比一变，(hover:none) 不一定命中 */
.td-m { min-height: 44px; padding: 0 14px; font-size: 13.5px; }
.td-m.on {
  background: var(--brand); border-color: var(--brand-600); color: #fff;
  box-shadow: var(--shadow-sm);
}
.td-reset {
  min-height: 44px; padding: 0 11px; font-size: 12.5px;
  color: var(--text-3); border-style: dashed;
}
.td-reset:active { background: var(--brand-bg); color: var(--brand-600); }
.td-note {
  margin-top: 7px; text-align: center;
  font-size: 12px; color: var(--text-3);
}
/* 触屏上再放大一圈，确保一指按准 */
@media (hover: none) {
  .td-m { min-height: 46px; font-size: 14px; }
  .td-reset { min-height: 46px; }
}

/* ================= 选词库页 · 出题顺序 ================= */
.mode-dock {
  max-width: 640px; margin: 26px auto 0;
  padding: 14px 16px 15px; border-radius: var(--radius-lg);
  background: var(--bg-soft); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.md-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 11px; }
.md-lab { font-size: 13px; font-weight: 700; color: var(--text); }
.md-for { font-size: 12px; color: var(--text-3); }
.md-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.md-btn {
  -webkit-appearance: none; appearance: none; cursor: pointer; text-align: left;
  font-family: inherit; min-height: 58px; padding: 10px 13px;
  border-radius: 12px; border: 1px solid var(--line); background: #fff;
  display: flex; flex-direction: column; gap: 3px;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: background .12s var(--ease), border-color .12s var(--ease),
              box-shadow .12s var(--ease);
}
.md-btn b { font-size: 14px; font-weight: 700; color: var(--text); }
.md-btn span { font-size: 11.5px; line-height: 1.45; color: var(--text-3); }
.md-btn.on {
  background: var(--brand); border-color: var(--brand-600); box-shadow: var(--shadow);
}
.md-btn.on b { color: #fff; }
.md-btn.on span { color: rgba(255, 255, 255, .85); }
.md-tip { margin-top: 9px; font-size: 12px; color: var(--text-3); }
@media (max-width: 620px) { .md-btns { grid-template-columns: 1fr; } }

/* 底部进度 */
.progress-wrap { flex: none; padding: 0 24px 26px; }
.progress-track {
  height: 3px; border-radius: 999px; background: var(--line-2);
  overflow: hidden;
}
.progress-fill {
  height: 100%; background: var(--brand); border-radius: 999px;
  transition: width .4s var(--ease); width: 0;
}
.progress-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 10px; font-size: 12px; color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   结算
   ============================================================ */
.result { padding: 60px 0; text-align: center; }
.result-badge {
  width: 92px; height: 92px; border-radius: 28px; margin: 0 auto 24px;
  display: grid; place-items: center;
  background: var(--brand-bg); color: var(--brand);
  animation: pop .5s var(--ease);
}
.result-badge svg { width: 44px; height: 44px; }
@keyframes pop { from { transform: scale(.72); opacity: 0; } to { transform: none; opacity: 1; } }
.result h2 { font-size: 27px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 8px; }
.result .result-sub { color: var(--text-2); font-size: 14px; margin-bottom: 34px; }

.result-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-bottom: 34px;
}
.rs-item {
  padding: 18px 12px; border-radius: var(--radius); background: var(--bg-soft);
  border: 1px solid var(--line);
}
.rs-val {
  font-size: 25px; font-weight: 700; font-family: var(--mono);
  letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.rs-val.ok { color: var(--ok); }
.rs-val.err { color: var(--err); }
.rs-label { font-size: 12px; color: var(--text-3); margin-top: 5px; }

.result-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  padding: 12px 26px; border-radius: 11px; font-size: 14px; font-weight: 600;
  transition: all .18s var(--ease); display: inline-flex;
  align-items: center; gap: 8px; justify-content: center;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: var(--line); }
.btn svg { width: 17px; height: 17px; }

/* 错题回顾 */
.mistakes {
  margin-top: 40px; text-align: left;
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
.mistakes-head {
  padding: 14px 20px; background: var(--bg-soft);
  font-size: 13px; font-weight: 650; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 8px;
}
.mistake-row {
  padding: 14px 20px; border-bottom: 1px solid var(--line-2);
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
}
.mistake-row:last-child { border-bottom: none; }
.mistake-w { font-family: var(--mono); font-weight: 650; font-size: 15px; color: var(--err); }
.mistake-p { font-family: var(--mono); font-size: 12.5px; color: var(--text-3); }
.mistake-m { font-size: 13px; color: var(--text-2); flex: 1; min-width: 140px; }
.speak-btn {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  color: var(--brand); background: var(--brand-bg); transition: all .16s var(--ease);
  flex: none;
}
.speak-btn:hover { background: var(--brand-bg-2); }
.speak-btn svg { width: 15px; height: 15px; }

/* ============================================================
   关卡地图
   ============================================================ */
.levels { padding: 40px 0 80px; }
.lv-toggle {
  display: inline-flex; padding: 4px; border-radius: 11px;
  background: var(--bg-soft); border: 1px solid var(--line); margin-bottom: 26px;
}
.lv-toggle button {
  padding: 8px 20px; border-radius: 8px; font-size: 13.5px; font-weight: 600;
  color: var(--text-2); transition: all .18s var(--ease);
}
.lv-toggle button.on { background: var(--bg); color: var(--brand); box-shadow: var(--shadow-sm); }

.lv-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.lv-card {
  position: relative; aspect-ratio: 1; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; transition: all .2s var(--ease);
}
.lv-card:hover:not(.locked) { border-color: var(--brand-300); transform: translateY(-3px); box-shadow: var(--shadow); }
.lv-card .lv-no { font-size: 19px; font-weight: 700; font-family: var(--mono); letter-spacing: -.03em; }
.lv-card .lv-no svg { width: 17px; height: 17px; color: var(--text-3); }
.lv-card .lv-range { font-size: 10.5px; color: var(--text-3); }
.lv-card.locked { background: var(--bg-soft); color: var(--text-3); cursor: not-allowed; }
.lv-card.locked .lv-no { font-size: 15px; }
.lv-card.done { border-color: var(--brand-300); background: var(--brand-bg); }
.lv-card.done .lv-no { color: var(--brand); }
.lv-stars {
  position: absolute; bottom: 6px; display: flex; gap: 2px;
}
.lv-stars i {
  width: 4px; height: 4px; border-radius: 50%; background: var(--line);
}
.lv-stars i.on { background: var(--brand); }

/* ============================================================
   发音练习
   ============================================================ */
.speak-page { padding: 40px 0 80px; }

/* ---------------- 发音 · 音标 门户页（v114） ---------------- */
.phub { display: grid; gap: 14px; margin-top: 6px; }
.phub-card {
  position: relative; display: block; width: 100%; text-align: left;
  border: 0; cursor: pointer; font-family: inherit;
  padding: 20px 20px 18px; border-radius: 20px; color: #fff;
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.phub-card:active { transform: scale(.975); }
.phub-card b { display: block; font-size: 18px; margin: 10px 0 5px; letter-spacing: .5px; }
.phub-d { display: block; font-size: 13px; opacity: .88; line-height: 1.6; }
.phub-meta {
  display: inline-block; margin-top: 12px; padding: 4px 12px;
  font-size: 11.5px; font-weight: 700; border-radius: 999px;
  background: rgba(255, 255, 255, .18);
}
.phub-ico { position: absolute; top: 18px; right: 18px; opacity: .5; }
.phub-ico svg { width: 44px; height: 44px; }
.phub-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 13px;
  background: rgba(255, 255, 255, .22);
  font-size: 19px; font-weight: 800; font-style: normal;
}
.phub-badge svg { width: 20px; height: 20px; }
.phub-sym {
  background: linear-gradient(135deg, #7C5CFC 0%, #5B8DEF 100%);
}
.phub-word {
  background: linear-gradient(135deg, #FF8A5C 0%, #F65E7A 100%);
}
.phub-quiz {
  background: linear-gradient(135deg, #1FB58F 0%, #149E82 100%);
}
/* v115：大炮 / 地狱模式整屏自建 DOM 用的两件 HUD
   （叠叠乐那套 .sc-side 之外，这两个老游戏自己写了壳，复用同一套视觉） */
.sc-side .sc-fire-side {
  pointer-events: auto; cursor: pointer; border: 0; font-family: inherit;
  height: 40px; padding: 0 15px; border-radius: 12px; margin-top: 2px;
  font-size: 13.5px; font-weight: 800; color: #fff;
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 0 8px 18px rgba(226, 96, 26, .30);
}
.sc.sc-full .sc-rounds-float {
  position: absolute; z-index: 6; pointer-events: none; margin: 0;
  left: calc(62px + env(safe-area-inset-left, 0px)); right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  justify-content: center; gap: 5px; flex-wrap: wrap;
}
.sc.sc-full .sc-rounds-float i { opacity: .92; }
@media (max-width: 620px) {
  .sc.sc-full .sc-rounds-float { left: calc(58px + env(safe-area-inset-left, 0px)); right: 8px; }
  .sc.sc-full .sc-rounds-float i { width: 18px; height: 7px; }
}
@media (min-width: 720px) {
  .phub { grid-template-columns: repeat(3, 1fr); }
  .phub-card b { font-size: 19px; }
}
.sp-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 44px 32px; text-align: center; background: var(--bg);
  box-shadow: var(--shadow-sm);
}
.sp-word {
  font-family: var(--mono); font-size: 52px; font-weight: 650;
  letter-spacing: -.035em; margin-bottom: 16px; word-break: break-word;
}
.sp-phon {
  display: flex; gap: 22px; justify-content: center; margin-bottom: 22px;
  font-family: var(--mono); font-size: 15px; color: var(--text-2); flex-wrap: wrap;
}
.sp-phon span { display: inline-flex; align-items: center; gap: 7px; }
.sp-tag {
  font-size: 10.5px; font-weight: 650; padding: 2px 6px; border-radius: 5px;
  background: var(--line-2); color: var(--text-3); font-family: var(--font);
}
.sp-tag.on { background: var(--brand-bg-2); color: var(--brand-600); }
.sp-mean { font-size: 17px; color: var(--text); margin-bottom: 30px; line-height: 1.6; }
.sp-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }

.sp-ex {
  border-top: 1px solid var(--line); padding-top: 26px; text-align: left;
  max-width: 620px; margin: 0 auto;
}
.sp-ex-item { margin-bottom: 18px; }
.sp-ex-item:last-child { margin-bottom: 0; }
.sp-ex-en {
  font-family: var(--mono); font-size: 14.5px; line-height: 1.65;
  display: flex; gap: 10px; align-items: flex-start;
}
.sp-ex-en .exp-txt { flex: 1; }
.sp-ex-zh { font-size: 13px; color: var(--text-2); margin-top: 5px; padding-left: 40px; }

.sp-nav {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-top: 26px;
}

.search-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg-soft);
  margin-bottom: 22px;
}
.search-bar svg { width: 17px; height: 17px; color: var(--text-3); flex: none; }
.search-bar input {
  flex: 1; border: none; background: none; outline: none;
  font-size: 14px; color: var(--text);
}
.search-bar input::placeholder { color: var(--text-3); }

.suggest {
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  margin-bottom: 22px; max-height: 260px; overflow-y: auto;
}
.suggest-item {
  display: flex; align-items: baseline; gap: 12px; padding: 11px 16px;
  border-bottom: 1px solid var(--line-2); cursor: pointer;
  transition: background .14s var(--ease); text-align: left; width: 100%;
}
.suggest-item:last-child { border-bottom: none; }
.suggest-item:hover { background: var(--brand-bg); }
.suggest-item .sw { font-family: var(--mono); font-weight: 650; font-size: 14px; }
.suggest-item .sm { font-size: 12.5px; color: var(--text-2); flex: 1; }

/* ============================================================
   语法页
   ============================================================ */
.grammar { padding: 40px 0 80px; }
.gr-item {
  border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 10px; overflow: hidden;
}
.gr-head {
  width: 100%; padding: 16px 20px; display: flex; align-items: center; gap: 12px;
  text-align: left; transition: background .16s var(--ease);
}
.gr-head:hover { background: var(--bg-soft); }
.gr-num {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  display: grid; place-items: center; background: var(--brand-bg);
  color: var(--brand); font-size: 12px; font-weight: 700; font-family: var(--mono);
}
.gr-title { flex: 1; font-size: 14.5px; font-weight: 600; }
.gr-arrow { width: 17px; height: 17px; color: var(--text-3); transition: transform .22s var(--ease); }
.gr-item.open .gr-arrow { transform: rotate(90deg); }
.gr-body { padding: 0 20px 20px 58px; display: none; }
.gr-item.open .gr-body { display: block; animation: promptIn .26s var(--ease); }
.gr-body p { font-size: 13.5px; color: var(--text-2); line-height: 1.8; margin-bottom: 12px; }
.gr-formula {
  font-family: var(--mono); font-size: 13px; padding: 12px 16px;
  background: var(--bg-soft); border-radius: 10px; border-left: 3px solid var(--brand-400);
  margin-bottom: 14px; line-height: 1.7; color: var(--text); white-space: pre-wrap;
}
.gr-eg {
  font-family: var(--mono); font-size: 13px; line-height: 1.8;
  padding-left: 14px; border-left: 2px solid var(--line);
}
.gr-eg b { color: var(--brand); font-weight: 650; }
.gr-eg span { color: var(--text-2); font-family: var(--font); }

/* ============================================================
   通用
   ============================================================ */
.page-head { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; }
.page-head h2 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; flex: 1; }

.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 20px);
  background: var(--text); color: #fff; padding: 11px 20px; border-radius: 10px;
  font-size: 13.5px; font-weight: 550; opacity: 0; pointer-events: none;
  transition: all .28s var(--ease); z-index: 999; box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.loading {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 16px; padding: 100px 0; color: var(--text-3);
}
.spinner {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2.5px solid var(--line); border-top-color: var(--brand);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.setting-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 20px; border-bottom: 1px solid var(--line-2);
}
.setting-row:last-child { border-bottom: none; }
.setting-label { font-size: 14px; font-weight: 550; }
.setting-desc { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.seg {
  display: inline-flex; padding: 3px; border-radius: 9px;
  background: var(--bg-soft); border: 1px solid var(--line);
}
.seg button {
  padding: 6px 14px; border-radius: 7px; font-size: 12.5px; font-weight: 600;
  color: var(--text-2); transition: all .16s var(--ease);
}
.seg button.on { background: var(--brand); color: #fff; }

.sp-actions { flex-wrap: wrap; }
.sp-actions .btn.busy { opacity: .6; pointer-events: none; }

/* 发音页：当前老师条 */
.sp-tch {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  margin: 2px auto 4px; padding: 5px 12px 5px 10px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--line);
  font-size: 12px; transition: all .16s var(--ease);
}
.sp-tch:hover { border-color: var(--brand); }
.sp-tch-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ok, #22c55e);
  box-shadow: 0 0 0 3px rgba(34,197,94,.16);
}
.sp-tch-n { font-weight: 650; color: var(--text); }
.sp-tch-m { color: var(--text-3); }
.sp-tch-c { color: var(--brand); font-weight: 600; margin-left: 2px; }

/* 手机访问 */
.lan-box { display: flex; align-items: center; gap: 16px; }
.lan-qr  { width: 96px; height: 96px; border-radius: 10px; border: 1px solid var(--line);
           background: #fff; padding: 4px; flex: none; }
.lan-urls { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lan-u   { font-family: var(--mono); font-size: 13.5px; color: var(--brand);
           text-decoration: none; word-break: break-all; }
.lan-u:hover { text-decoration: underline; }
@media (max-width: 520px) { .lan-box { flex-direction: column; align-items: flex-start; } }

/* 朗读老师选择 */
.setting-block {
  padding: 16px 20px; border-bottom: 1px solid var(--line-2);
}
.setting-block .setting-desc { margin-top: 3px; }
.tch-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 8px;
}
.tch {
  display: flex; flex-direction: column; gap: 3px; text-align: left;
  padding: 10px 12px; border-radius: 11px; cursor: pointer;
  background: var(--bg-soft); border: 1.5px solid var(--line);
  transition: all .16s var(--ease);
}
.tch:hover { border-color: var(--brand-3, var(--brand)); transform: translateY(-1px); }
.tch.on {
  border-color: var(--brand); background: var(--brand-soft, #eef2ff);
  box-shadow: 0 0 0 3px rgba(99,102,241,.1);
}
.tch-n { font-size: 13.5px; font-weight: 650; color: var(--text); }
.tch-m { font-size: 11px; color: var(--text-3); font-weight: 600; }
.tch-d { font-size: 11px; color: var(--text-3); line-height: 1.45; }
.tch.on .tch-n { color: var(--brand); }

.modal-mask {
  position: fixed; inset: 0; background: rgba(17,24,39,.34);
  backdrop-filter: blur(3px); display: grid; place-items: center;
  padding: 24px; z-index: 100; animation: fadeIn .2s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--bg); border-radius: var(--radius-lg); width: 100%;
  max-width: 440px; overflow: hidden; box-shadow: var(--shadow-lg);
  animation: promptIn .26s var(--ease);
}
.modal-head {
  padding: 20px 22px 14px; font-size: 16px; font-weight: 650;
  display: flex; align-items: center;
}
.modal-body { padding-bottom: 8px; }
.modal-foot { padding: 16px 22px 20px; display: flex; gap: 10px; }
.modal-foot .btn { flex: 1; }

/* 手机上设置项有十来个开关，弹窗会被撑到 2000+px 高。
   .modal-mask 是 place-items:center 的 grid —— 内容比屏幕高时它上下一起溢出，
   底部那排「完成 / 取消」正好落在屏幕外；而手机没有 Esc、点遮罩也不一定关得掉，
   学生就彻底卡在设置里出不来（实测弹窗 2179px 高、按钮在 1432~1511px，屏幕只有 844px）。
   所以给弹窗封顶，把中间正文变成自己会滚的区域，头尾固定住。 */
.modal {
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);   /* dvh 才认得手机浏览器的地址栏收放 */
  display: flex; flex-direction: column;
}
.modal-head, .modal-foot { flex: none; }
.modal-body {
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ---------- 响应式 ---------- */
@media (max-width: 780px) {
  .wrap, .wrap-wide { padding: 0 18px; }
  .home { padding: 34px 0 60px; }
  .hero h1 { font-size: 26px; }
  /* v105 手机端头图去杂：
     · 统计胶囊整排收掉（五个数字堆在手机上就是一团噪音，桌面端保留）
     · 描边框收窄内边距、降低圆角，标题缩到 23px，一眼只剩「标题 + 词条」 */
  .stat-row { display: none; }
  .hero-box { padding: 20px 18px 18px; border-radius: 16px; }
  .hero h1 { font-size: 23px; margin-bottom: 12px; }
  /* 三张卡在窄屏并排会挤成一团，改成两列：打卡卡占满一行，其余两张并列 */
  .boost { grid-template-columns: repeat(2, 1fr); gap: 11px; }
  .boost-card:first-child { grid-column: 1 / -1; }
  .boost-card { padding: 15px 15px 13px; }
  .bc-val { font-size: 26px; }
  /* 手机端入口卡：每排两个的大卡（对齐家长看惯的背单词 App 的样式），
     图片大、标题醒目，拇指好点 */
  .mode-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .mode-card { padding: 0 14px 14px; gap: 7px; border-radius: 18px; }
  .mode-pic { height: 112px; margin: 0 -14px 6px; }
  .mode-ico { width: 32px; height: 32px; border-radius: 9px; }
  .mode-ico svg { width: 16px; height: 16px; }
  .mode-card h3 { font-size: 14.5px; }
  .mode-card p  { font-size: 11.5px; line-height: 1.55; }
  .mode-meta { font-size: 10.5px; padding-top: 7px; }
  .lv-grid { grid-template-columns: repeat(4, 1fr); }
  .result-stats { grid-template-columns: repeat(2, 1fr); }
  .prompt { font-size: 29px; }
  .prompt.is-sentence { font-size: 20px; }
  .prompt-hint.is-on { font-size: 15px; }
  .type-line { font-size: 23px; gap: 4px 11px; }
  .sp-word { font-size: 36px; }
  .game-top { padding: 12px 16px; gap: 12px; }
  .hud { font-size: 13px; }
  .progress-wrap { padding: 0 16px 18px; }
  .stage { padding: 18px; gap: 22px; }
}
@media (max-width: 480px) {
  .lv-grid { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 23px; }
}

/* ============================================================
   授权门禁
   ============================================================ */
body.locked { overflow: hidden; }
body.locked #app { display: none; }

#gate {
  position: fixed; inset: 0; z-index: 999;
  background: linear-gradient(160deg, #F7F5FF 0%, #FFFFFF 46%, #F5F3FF 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 24px 18px; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.gt-card {
  width: 100%; max-width: 420px; background: #fff;
  border: 1px solid var(--line); border-radius: 22px;
  padding: 30px 26px 26px; box-shadow: 0 18px 50px rgba(76,29,149,.10);
}
.gt-brand {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em;
  color: var(--brand); background: var(--brand-bg); border-radius: 999px;
  padding: 5px 12px; margin-bottom: 16px;
}
.gt-h  { font-size: 25px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 8px; color: var(--text); }
.gt-sub{ font-size: 13.5px; color: var(--text-2); line-height: 1.65; margin: 0 0 22px; }

.gt-trial {
  width: 100%; border: 0; cursor: pointer; text-align: left;
  background: linear-gradient(135deg, #7C3AED, #A78BFA);
  color: #fff; border-radius: 16px; padding: 16px 18px;
  display: flex; flex-direction: column; gap: 4px;
  box-shadow: 0 8px 22px rgba(124,58,237,.28); transition: transform .15s;
}
.gt-trial:active { transform: scale(.985); }
.gt-trial[disabled] { opacity: .6; cursor: default; }
.gt-trial-t { font-size: 16.5px; font-weight: 700; }
.gt-trial-s { font-size: 12.5px; opacity: .88; }
/* 体验按钮下面那行小字：把「每天 20 个词」说在前面，
   省得学生领完才发现限量，觉得被骗 */
.gt-trial-note {
  margin: 9px 0 0; font-size: 12px; line-height: 1.7; color: var(--text-3);
}

.gt-sep {
  display: flex; align-items: center; gap: 12px; margin: 20px 0 14px;
  color: var(--text-3); font-size: 12px;
}
.gt-sep::before, .gt-sep::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}

.gt-form { display: flex; gap: 8px; }
.gt-form input {
  flex: 1; min-width: 0; height: 46px; padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: 12px;
  font-size: 15px; font-family: var(--mono); letter-spacing: .04em;
  background: var(--bg-soft); color: var(--text); outline: none;
  text-transform: uppercase;
}
.gt-form input:focus { border-color: var(--brand); background: #fff; }
.gt-go {
  flex: none; height: 46px; padding: 0 18px; border: 0; border-radius: 12px;
  background: var(--text); color: #fff; font-size: 14.5px; font-weight: 600; cursor: pointer;
}
.gt-go[disabled] { opacity: .55; cursor: default; }

.gt-msg { min-height: 20px; margin-top: 12px; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.gt-msg.err { color: var(--err); }

.gt-signup {
  margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line);
}
.gt-signup-t { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.ct-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; padding: 5px 0; color: var(--text-2);
}
.ct-row span { flex: none; width: 40px; color: var(--text-3); font-size: 12.5px; }
.ct-copy {
  color: var(--brand); font-weight: 700; cursor: pointer;
  border-bottom: 1px dashed var(--brand-300); user-select: all;
}
.ct-note { margin-top: 8px; font-size: 12.5px; color: var(--text-3); line-height: 1.7; }

.pl-list { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.pl-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-soft); border-radius: 10px; padding: 9px 12px; font-size: 13px;
}
.pl-n { font-weight: 600; color: var(--text); }
.pl-d { color: var(--text-3); font-size: 12px; }
.pl-p { margin-left: auto; color: var(--brand); font-weight: 700; }

/* ---- 立即开通（金色，跟紫色「免费玩」区分开：一个是白嫖入口，一个是付钱入口）---- */
.gt-pay {
  width: 100%; border: 0; cursor: pointer; text-align: left; margin-top: 16px;
  background: linear-gradient(135deg, #F59E0B, #FBBF24);
  color: #3A2606; border-radius: 16px; padding: 16px 18px;
  display: flex; flex-direction: column; gap: 4px;
  box-shadow: 0 8px 22px rgba(245,158,11,.30); transition: transform .15s;
}
.gt-pay:active { transform: scale(.985); }
.gt-pay-t { font-size: 16.5px; font-weight: 800; }
.gt-pay-s { font-size: 12.5px; opacity: .82; }
.gt-pay-note { margin: 9px 0 0; font-size: 12px; line-height: 1.7; color: var(--text-3); }
/* 能自助付款时，联系方式退成兜底，别抢主按钮的风头 */
.gt-signup-min { opacity: .92; }
.gt-signup-min .gt-signup-t { font-size: 13px; color: var(--text-2); }

/* ---- 收银台 ---- */
.pay-price {
  font-size: 34px; font-weight: 800; color: var(--brand);
  letter-spacing: -.02em; margin-bottom: 4px;
}
.pay-step {
  display: flex; align-items: center; gap: 9px; margin: 15px 0 9px;
  font-size: 13.5px; font-weight: 600; color: var(--text);
}
.pay-n {
  flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.pay-order {
  display: flex; align-items: center; gap: 10px; margin-bottom: 4px;
  background: var(--bg-soft); border: 1px dashed var(--brand-300);
  border-radius: 12px; padding: 11px 13px;
}
.pay-order b {
  flex: 1; min-width: 0; font-family: var(--mono); font-size: 17px;
  letter-spacing: .06em; color: var(--text); user-select: all; word-break: break-all;
}
.pay-qrs { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 2px 0 12px; }
.pay-qr { text-align: center; }
.pay-qr img {
  width: 148px; height: 148px; object-fit: contain;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.pay-qr span { display: block; margin-top: 6px; font-size: 12px; color: var(--text-3); }
.pay-hint {
  font-size: 12.5px; color: var(--brand); background: var(--brand-bg);
  border-radius: 10px; padding: 9px 12px; margin: 4px 0 12px;
}
.pay-go {
  width: 100%; height: 48px; border: 0; border-radius: 13px; cursor: pointer;
  background: linear-gradient(135deg, #F59E0B, #FBBF24); color: #3A2606;
  font-size: 15.5px; font-weight: 800; box-shadow: 0 8px 20px rgba(245,158,11,.28);
}
.pay-go[disabled] { opacity: .6; cursor: default; }
.pay-msg { min-height: 20px; margin-top: 10px; font-size: 13px; color: var(--text-2); }
.pay-msg.err { color: var(--err); }
.pay-tip { margin-top: 6px; font-size: 12px; color: var(--text-3); line-height: 1.7; }
.pay-ok { font-size: 22px; font-weight: 800; color: var(--ok); margin-bottom: 8px; }
.pay-err {
  font-size: 13px; color: var(--err); background: #FEF2F2;
  border-radius: 10px; padding: 11px 13px; line-height: 1.7;
}
.pay-loading { font-size: 13.5px; color: var(--text-3); padding: 16px 0; }

/* v101 · 第三方收款模式：粘贴平台发的激活码 */
.pay-code {
  display: block; width: 100%; box-sizing: border-box; height: 50px;
  margin: 4px 0 12px; padding: 0 14px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 12px; outline: none;
  font-family: var(--mono); font-size: 16px; letter-spacing: .04em;
  color: var(--text); text-align: center;
}
.pay-code:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-bg); }
.pay-code::placeholder { font-family: inherit; font-size: 14px; letter-spacing: 0; }

@media (max-width: 420px) {
  .gt-card { padding: 24px 18px 20px; border-radius: 18px; }
  .gt-h { font-size: 22px; }
  .gt-form { flex-direction: column; }
  .gt-go { width: 100%; }
}

/* ============================================================
   模式切换条（发音练习 / 音标练习）
   ============================================================ */
.mode-tabs {
  display: inline-flex; gap: 4px; padding: 4px;
  background: var(--line-2); border-radius: 999px; margin: 0 auto 20px;
}
.mode-tabs button {
  border: 0; background: transparent; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 600; color: var(--text-2);
  padding: 7px 18px; border-radius: 999px; transition: all .18s var(--ease);
  white-space: nowrap;
}
.mode-tabs button.on { background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); }

/* ============================================================
   国际音标练习
   ============================================================ */
.ipa-page { text-align: center; }
.ipa-card {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 30px 24px 26px;
  max-width: 560px; margin: 0 auto;
}
.ipa-word {
  font-family: var(--mono); font-size: 40px; font-weight: 700;
  letter-spacing: .01em; margin-bottom: 12px; word-break: break-word;
}
.ipa-play { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 16px; }
.ipa-play svg { width: 15px; height: 15px; }
.ipa-tip { font-size: 13px; color: var(--text-3); margin-bottom: 18px; }

.ipa-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ipa-opt {
  font-family: var(--mono); font-size: 17px; font-weight: 600;
  padding: 15px 10px; border-radius: 12px; cursor: pointer;
  border: 1.5px solid var(--line); background: #fff; color: var(--text);
  transition: all .16s var(--ease); word-break: break-all;
}
.ipa-opt:hover { border-color: var(--brand-300); background: var(--brand-bg); }
.ipa-opt.on-ok  { border-color: var(--ok);  background: var(--ok-bg);  color: #047857; }
.ipa-opt.on-bad { border-color: var(--err); background: var(--err-bg); color: #B91C1C; }

.ipa-fb {
  min-height: 40px; margin-top: 16px; font-size: 14px; line-height: 1.6;
  display: flex; align-items: center; justify-content: center; color: var(--text-2);
}
.ipa-fb.ok  { color: #047857; font-weight: 600; }
.ipa-fb.err { color: #B91C1C; font-weight: 600; }

.ipa-hud {
  display: flex; justify-content: center; gap: 22px;
  font-size: 13px; color: var(--text-3); margin-top: 22px;
}
.ipa-hud b { color: var(--text); }

@media (max-width: 460px) {
  .ipa-word { font-size: 32px; }
  .ipa-picks { grid-template-columns: 1fr; }
  .ipa-opt { font-size: 16px; padding: 13px 10px; }
}

/* ============================================================
   慢速跟读矫正面板
   ============================================================ */
.shadow-box {
  max-width: 560px; margin: 0 auto 28px;
  background: var(--brand-bg); border: 1px solid var(--brand-300);
  border-radius: var(--radius-lg); padding: 20px 22px 18px; text-align: center;
}
.sh-head b { display: block; font-size: 15px; font-weight: 700; color: var(--brand-600); }
.sh-head span { display: block; font-size: 12px; color: var(--text-2); margin-top: 5px; line-height: 1.6; }

.sh-steps { display: flex; justify-content: center; gap: 8px; margin: 16px 0 14px; flex-wrap: wrap; }
.sh-step {
  font-size: 12px; font-weight: 600; color: var(--text-3);
  padding: 5px 12px; border-radius: 999px;
  background: rgba(255,255,255,.7); border: 1px solid transparent;
  transition: all .18s var(--ease);
}
.sh-step.on {
  color: #fff; background: var(--brand); border-color: var(--brand);
  box-shadow: 0 2px 8px rgba(124,58,237,.25);
}

.sh-main { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 16px; }
.sh-ring {
  flex: none; width: 62px; height: 62px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 2px solid var(--brand-300); color: var(--brand);
  font-size: 22px; font-weight: 700; font-family: var(--mono);
}
.sh-text { text-align: left; }
.sh-text b { display: block; font-size: 15px; color: var(--text); }
.sh-text span { display: block; font-size: 12px; color: var(--text-2); margin-top: 4px; line-height: 1.5; }

.sh-ctrl { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.sh-label { font-size: 12px; color: var(--text-3); margin-right: 2px; }
.sh-gap {
  font-family: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
  padding: 6px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--text-2);
  transition: all .16s var(--ease);
}
.sh-gap.on { border-color: var(--brand); background: var(--brand); color: #fff; }
.sh-run { display: inline-flex; align-items: center; gap: 6px; }
.sh-run svg { width: 14px; height: 14px; }

/* 三按钮弹窗在窄屏换行，别挤成一坨 */
.modal-foot { flex-wrap: wrap; }

@media (max-width: 460px) {
  .sh-main { gap: 12px; }
  .sh-ring { width: 52px; height: 52px; font-size: 19px; }
  .sh-text b { font-size: 14px; }
}

/* 发音页配图 */
.sp-pic { display: flex; justify-content: center; margin-top: 14px; }
.sp-pic img {
  width: 320px; max-width: 78vw; height: 216px; object-fit: cover;
  border-radius: 14px; border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(17, 24, 39, .08);
}
@media (max-width: 620px) { .sp-pic img { height: 168px; } }

/* ============================================================
   48 音标 · 点读页
   ============================================================ */
.phon-page { text-align: left; }
.pn-tip {
  font-size: 13px; line-height: 1.7; color: var(--text-2);
  background: var(--brand-bg); border: 1px solid var(--brand-bg-2);
  border-radius: var(--radius); padding: 11px 14px; margin-bottom: 16px;
}

.pn-panel {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: 18px; margin-bottom: 24px; min-height: 188px;
  transition: opacity .2s var(--ease);
}
.pn-panel.loading { opacity: .45; }
.pn-empty {
  min-height: 150px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  color: var(--text-3); font-size: 13px;
}
.pn-empty svg { width: 26px; height: 26px; opacity: .5; }

/* 空题池落地页：错词本清空后 stale 卡还点得到、零题开局，
   以前会渲染出假「完美通关」结算页（v140 修）。 */
.qz-empty { text-align: center; padding: 46px 20px 60px; }
.qz-empty .pn-empty { min-height: 170px; }
.qz-empty-tip { margin: 0 0 22px; color: var(--text-3); font-size: 14px; line-height: 1.7; }

.pn-sym-big { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pn-big {
  font-family: var(--mono); font-size: 40px; font-weight: 700;
  color: var(--brand); letter-spacing: .5px; line-height: 1.1;
}
.pn-cn { font-size: 17px; font-weight: 600; color: var(--text); }
.pn-g {
  font-size: 12px; color: var(--text-3);
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px;
}

.pn-reading {
  margin-top: 16px; font-size: 13px; color: var(--text-2);
  display: flex; align-items: center; gap: 8px;
}
.pn-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
  animation: pnPulse .9s infinite ease-in-out;
}
@keyframes pnPulse { 0%,100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }

.pn-words {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; margin-top: 16px;
  opacity: 0; transform: translateY(6px);
  transition: opacity .32s var(--ease), transform .32s var(--ease);
}
.pn-words.ready { opacity: 1; transform: none; }
.pn-word {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-family: inherit; cursor: pointer; text-align: center;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 8px;
  transition: all .16s var(--ease);
}
.pn-word:hover { border-color: var(--brand-300); background: var(--brand-bg); }
.pn-word.on { border-color: var(--brand); background: var(--brand-bg); box-shadow: var(--shadow-sm); }
.pn-word b { font-size: 17px; color: var(--text); font-weight: 700; }
.pn-word em { font-family: var(--mono); font-style: normal; font-size: 12px; color: var(--brand-600); }
.pn-word i { font-style: normal; font-size: 12px; color: var(--text-2); }
.pn-hint {
  grid-column: 1 / -1; margin-top: 3px; text-align: center;
  font-size: 12px; color: var(--text-3);
}

.pn-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.pn-head > span { font-size: 14px; font-weight: 700; color: var(--text); }
.pn-total {
  font-size: 12px; font-weight: 700; color: var(--brand);
  background: var(--brand-bg); border: 1px solid var(--brand-bg-2);
  border-radius: 999px; padding: 4px 11px; white-space: nowrap;
}

.pn-chartbox {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 16px 14px;
}
.pn-gname {
  font-size: 12px; font-weight: 700; color: var(--text-3);
  letter-spacing: .5px; margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.pn-gname span {
  font-weight: 600; color: var(--brand); background: var(--brand-bg);
  border-radius: 999px; padding: 0 7px; font-size: 11px;
}
.pn-row { display: flex; flex-wrap: wrap; gap: 7px; }

/* 元音 / 辅音两张大卡：系统性分类（成对的摆一起） */
.pn-cat { display: flex; flex-direction: column; gap: 12px; }
.pn-cat + .pn-cat {
  margin-top: 4px; padding-top: 16px; border-top: 1px dashed var(--line);
}
.pn-cathead { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pn-cathead b { font-size: 17px; font-weight: 800; color: var(--text); letter-spacing: .5px; }
.pn-cathead em {
  font-style: normal; font-size: 11px; font-weight: 700; color: var(--brand);
  background: var(--brand-bg); border-radius: 999px; padding: 2px 8px;
}
.pn-cathead i {
  font-style: normal; font-family: var(--mono); font-size: 11px;
  letter-spacing: .12em; color: var(--text-3);
}
.pn-cattip { font-size: 12px; color: var(--text-3); margin-top: -6px; }
.pn-sub { display: flex; flex-direction: column; gap: 7px; }
.pn-sublabel {
  font-size: 12px; font-weight: 700; color: var(--text-2);
  display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap;
}
.pn-sublabel em { font-style: normal; font-weight: 400; color: var(--text-3); font-size: 11.5px; }
.pn-rowtag { font-size: 11px; color: var(--text-3); margin: -2px 0 -3px; }
.pn-pairs { display: flex; flex-wrap: wrap; gap: 7px; }
.pn-pair {
  display: flex; align-items: center; gap: 5px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 13px; padding: 4px 6px;
}
.pn-pair .pn-sym { border-color: transparent; background: var(--bg); }
.pn-pair .pn-sym:hover { border-color: var(--brand-300); }
.pn-pair .pn-sym.on { border-color: var(--brand); background: var(--brand); }
.pn-link { display: flex; color: var(--brand-300); }
.pn-link svg { width: 15px; height: 15px; }

.pn-sym {
  font-family: inherit; cursor: pointer; min-width: 62px;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 11px; padding: 7px 10px;
  transition: all .15s var(--ease);
}
.pn-sym:hover { border-color: var(--brand-300); background: var(--brand-bg); transform: translateY(-1px); }
.pn-sym.on { border-color: var(--brand); background: var(--brand); }
.pn-sym.on b, .pn-sym.on i { color: #fff; }
.pn-sym b { font-family: var(--mono); font-size: 15px; color: var(--text); }
.pn-sym i { font-style: normal; font-size: 11px; color: var(--text-3); }

@media (max-width: 620px) {
  .pn-words { grid-template-columns: 1fr; }
  .pn-big { font-size: 32px; }
  .pn-panel { padding: 14px; }
  .mode-tabs button { padding: 7px 12px; font-size: 12px; }
  /* 一行两对：成对的音标各自上下叠放，手指才不会点串 */
  .pn-pair { flex-direction: column; gap: 3px; padding: 5px; }
  .pn-pair .pn-link { transform: rotate(90deg); }
  .pn-cathead b { font-size: 16px; }
}

/* ============================================================
   单词打字 · 选词库
   ============================================================ */
.cat-page { padding: 34px 0 80px; }
.cat-tip {
  font-size: 13px; color: var(--text-2); margin: -14px 0 22px;
}
.cat-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cat-card {
  display: flex; gap: 16px; text-align: left;
  padding: 14px; border-radius: var(--radius-lg);
  border: 1px solid var(--line); background: var(--bg);
  transition: all .22s var(--ease); overflow: hidden;
}
.cat-card:hover {
  transform: translateY(-3px); border-color: var(--brand-300);
  box-shadow: var(--shadow-lg);
}
.cat-card.last { border-color: var(--brand-300); background: var(--brand-bg); }
.cat-pic {
  flex: 0 0 112px; height: 112px; border-radius: var(--radius);
  overflow: hidden; background: linear-gradient(160deg, var(--brand-bg) 0%, var(--brand-bg-2) 100%);
}
.cat-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 街机窗口里每个游戏的封面是 canvas 画的实景，跟 img 一样铺满图位 */
.cat-pic canvas { width: 100%; height: 100%; display: block; }
.cat-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.cat-top { display: flex; align-items: center; gap: 8px; }
.cat-top h3 { font-size: 16px; font-weight: 680; letter-spacing: -.01em; }
.cat-last {
  font-size: 10.5px; font-weight: 600; color: var(--brand);
  background: var(--bg); border: 1px solid var(--brand-300);
  padding: 1px 7px; border-radius: 20px; white-space: nowrap;
}
.cat-sub { font-size: 11.5px; color: var(--text-3); font-weight: 550; }
.cat-card p { font-size: 12.5px; color: var(--text-2); line-height: 1.6; }
.cat-meta {
  margin-top: auto; padding-top: 8px; display: flex; align-items: center; gap: 10px;
  font-size: 11.5px; color: var(--text-3); font-weight: 550;
}
.cat-meta b { color: var(--text); font-weight: 700; font-family: var(--mono); }
.cat-meta .sep { width: 1px; height: 10px; background: var(--line); }
.cat-continue {
  margin-top: 20px; width: 100%; display: flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px; border-radius: var(--radius);
  border: 1px dashed var(--brand-300); background: var(--brand-bg);
  color: var(--brand); font-size: 14px; font-weight: 620;
  transition: all .2s var(--ease);
}
.cat-continue:hover { background: var(--brand-bg-2); border-style: solid; }
.cat-continue svg { width: 17px; height: 17px; }

@media (max-width: 760px) {
  .cat-list { grid-template-columns: 1fr; }
  .cat-card { gap: 12px; padding: 11px; }
  .cat-pic { flex: 0 0 84px; height: 84px; }
}

/* ============================================================
   慢读按钮 + 答案门槛
   ============================================================ */
.slow-btn {
  width: auto; padding: 0 9px; gap: 3px;
  grid-auto-flow: column; border-radius: 18px;
}
.slow-btn svg { width: 15px; height: 15px; }
.slow-btn em {
  font-style: normal; font-size: 11.5px; font-weight: 750;
  letter-spacing: .02em;
}

/* 慢读进行中：整行输入轻轻呼吸，让人知道「正在一个音节一个音节地读」 */
.type-line.is-slow { animation: slowPulse 1.1s var(--ease) infinite; }
@keyframes slowPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .62; }
}

/* 露出来的提示字母：跟自己打出来的字明显区分开，不能让人误以为是自己打对了 */
.tw-ghost { color: var(--text-3); letter-spacing: .04em; }

/* 窄屏：工具栏换成**两排**（原来是一行横向滑动）
   11 个按钮实测横排要 648px，390 宽的手机根本放不下：
   后 5 个（提示 / 答案 / 掌握 / 生词 / 设置）落在屏幕外，
   而滚动条被藏掉了，学生不会知道那里还能滑 —— 等于整排按不到。
   改成换行：全部露出来、指尖直接点得到，代价只是上面多占 34px，
   比「按不到」划算。窄屏所以别缩太小，缩到指甲盖大更点不准。 */
@media (max-width: 620px) {
  .game-top {
    flex-wrap: wrap; overflow: visible;
    gap: 8px 10px; padding: 10px 14px;
  }
  /* 这个留白条是给电脑端把按钮顶到右边的，手机上换行后它只会白占一行 */
  .game-top .gt-spacer { display: none; }
  .game-top > * { flex: none; }
  .game-top .icon-btn { width: 34px; height: 34px; }
  .hud { font-size: 13px; }
}

/* 窄屏还要保证：最常用的三个键（发音 / 慢读 / 提示）不用滑就能点到。
   工具栏能横滑了，但滑到一半才找得到发音键就本末倒置了，
   所以窄屏单独给它们排到前面（退出键也留着，防止找不到出口）。 */
@media (max-width: 620px) {
  .game-top [data-act="exit"]   { order: -3; }
  .game-top [data-act="speak"]  { order: -2; }
  /* v107 键盘声：紧跟发音键 —— 这两个都是「声音」，摆一起最好找 */
  .game-top [data-act="keymute"] { order: -2; }
  .game-top [data-act="slow"]   { order: -1; }
  .game-top [data-act="answer"] { order: -1; }
}

/* ============================================================
   连击鼓励气泡
   ============================================================ */
/* 气泡要相对舞台定位，舞台本身没设过 position */
.stage { position: relative; }

.cheer {
  position: absolute; left: 50%; top: 4px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  pointer-events: none; z-index: 6; white-space: nowrap;
  animation: cheerIn .34s cubic-bezier(.2, 1.5, .4, 1) both;
}
@keyframes cheerIn {
  from { opacity: 0; transform: translate(-50%, 16px) scale(.7); }
  to   { opacity: 1; transform: translate(-50%, 0)    scale(1); }
}
.cheer b {
  font-size: 30px; font-weight: 800; letter-spacing: -.03em;
  color: var(--brand); line-height: 1.1;
  text-shadow: 0 3px 14px rgba(99, 102, 241, .22);
}
.cheer span {
  font-size: 12.5px; font-weight: 650; color: var(--text-3);
  font-family: var(--mono); letter-spacing: .02em;
}
/* 连到 5 个以上：更大更烫，让「连击」这件事被看见 */
.cheer.hot b { font-size: 37px; color: var(--warn); text-shadow: 0 3px 16px rgba(245, 158, 11, .3); }
.cheer.bad b  { font-size: 26px; color: var(--warn); }
.cheer.bad span { color: var(--text-3); }

.cheer.out { animation: cheerOut .32s var(--ease) forwards; }
@keyframes cheerOut {
  to { opacity: 0; transform: translate(-50%, -26px) scale(.94); }
}

@media (max-width: 620px) {
  .cheer { top: 2px; }
  .cheer b { font-size: 25px; }
  .cheer.hot b { font-size: 30px; }
  .cheer.bad b { font-size: 22px; }
}

/* ============================================================
   答对后的「图 + 造句」卡
   ============================================================ */
.word-sent { display: none; width: 100%; max-width: 620px; margin: 4px auto 0; }
.word-sent.on { display: block; animation: wsIn .3s var(--ease) both; }
@keyframes wsIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.word-sent .ws-pic {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
  background: var(--line-2); margin-bottom: 12px;
}
.word-sent .ws-pic img { width: 100%; height: 190px; object-fit: cover; display: block; }

.ws-line { display: flex; align-items: flex-start; gap: 10px; }
.ws-en {
  flex: 1; min-width: 0;
  font-size: 16.5px; line-height: 1.72; color: var(--text); letter-spacing: .002em;
}
/* 目标词高亮：一眼看出「这句话是拿这个词造的」 */
.ws-en .hl {
  font-style: normal; font-weight: 750; color: var(--brand);
  background: var(--brand-bg); border-radius: 4px; padding: 0 3px;
}
.ws-zh {
  margin-top: 5px; font-size: 13px; line-height: 1.6; color: var(--text-3);
}
/* 真题原句徽章：说明这句话出自历年四级真题 */
.ws-zh.ws-real {
  display: inline-block; margin-top: 7px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .5px;
  color: #b45309; background: #fef3c7; border: 1px solid #fde68a;
  padding: 2px 9px; border-radius: 999px;
}
/* 真考频 >= 15 套：这是考场上反复出现的核心词，颜色加重一眼认出来 */
.ws-zh.ws-real.ws-hot {
  color: #b91c1c; background: #fee2e2; border-color: #fecaca;
}
.ws-play {
  flex: none; width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line); background: var(--bg);
  color: var(--brand); cursor: pointer; transition: all .18s var(--ease);
}
.ws-play svg { width: 16px; height: 16px; }
.ws-play:hover { background: var(--brand-bg); border-color: var(--brand-300); }
.ws-play:active { transform: scale(.92); }

.ws-phs { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.ws-ph1 {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  font-size: 12px; padding: 4px 10px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--text-2);
}
.ws-ph1 b { font-family: var(--mono); font-weight: 700; color: var(--text); }

.ws-go {
  width: 100%; margin-top: 13px; padding: 12px 14px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: var(--radius); cursor: pointer;
  background: var(--brand); color: #fff;
  font-size: 14.5px; font-weight: 700; font-family: var(--font);
  box-shadow: 0 6px 18px rgba(124, 58, 237, .22);
  transition: all .18s var(--ease);
}
.ws-go:hover { background: var(--brand-600); box-shadow: 0 8px 22px rgba(124, 58, 237, .3); }
.ws-go:active { transform: translateY(1px); }
.ws-go svg { width: 16px; height: 16px; }
.ws-go kbd {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  padding: 1px 6px; border-radius: 5px; margin-left: 2px;
  background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .32);
}

@media (max-width: 620px) {
  .word-sent .ws-pic img { height: 148px; }
  .ws-en { font-size: 15px; line-height: 1.66; }
  .ws-zh { font-size: 12.5px; }
  .ws-ph1 { font-size: 11.5px; padding: 3px 9px; }
  .ws-go { padding: 11px 12px; font-size: 14px; }
}


/* ============================================================
   单词大炮 · 抛物线打靶
   ------------------------------------------------------------
   愤怒的小鸟式玩法：横向长条舞台，左边（或右边）一门炮，
   对面 3 垛 × 3 层共 9 个易拉罐，只有一个是对的。
   打完一发，新炮车从另一边滚出来，两边身份互换。
   ============================================================ */
.sc { padding: 20px 0 64px; }

.sc-top { display: flex; align-items: center; gap: 12px; padding: 12px 0 12px; }
.sc-title { flex: 1; min-width: 0; }
.sc-title b { display: block; font-size: 18px; font-weight: 750; letter-spacing: -.01em; }
.sc-title span { display: block; font-size: 12px; color: var(--text-3); margin-top: 2px; }

.sc-ico {
  flex: none; width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center; color: var(--text-2);
  border: 1px solid var(--line); background: var(--bg);
  transition: all .16s var(--ease);
}
.sc-ico:hover { background: var(--brand-bg); border-color: var(--brand-300); color: var(--brand); }
.sc-ico svg { width: 19px; height: 19px; }

.sc-chips { display: flex; align-items: center; gap: 8px; flex: none; }
.sc-chip {
  display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 12px;
  border-radius: 999px; background: var(--bg); border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 600; color: var(--text-2); white-space: nowrap;
}
.sc-chip svg { width: 15px; height: 15px; }
.sc-chip b { font-family: var(--mono); font-weight: 800; color: var(--text); }
.sc-chip-ball b { color: var(--warn); }
/* 地狱模式「失误 n/10」：剩 3 格起整枚牌子转红，别让人死得莫名其妙 */
.sc-chip-fault b { color: var(--text); }
.sc-chip-fault em { font-style: normal; opacity: .65; font-family: var(--mono); font-weight: 700; }
.sc-chip-fault.danger {
  color: #B91C1C; border-color: #FCA5A5; background: #FEF2F2;
}
.sc-chip-fault.danger b { color: #DC2626; }
.sc-chip-fault.danger svg { color: #DC2626; }
.sc-chip-dir {
  cursor: pointer; color: var(--brand); border-color: var(--brand-300); background: var(--brand-bg);
  transition: all .18s var(--ease);
}
.sc-chip-dir:hover { background: var(--brand-bg-2); }
.sc-chip-dir.rev { color: #0369A1; border-color: #BAE6FD; background: #F0F9FF; }
.sc-chip-auto { cursor: pointer; }
.sc-chip-auto.on { color: #fff; background: var(--brand); border-color: var(--brand); }

/* 舞台：横长屏。窄屏靠 min-height 顶住高度，保证罐子上的字还看得清 */
.sc-stage {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  min-height: min(60vh, 420px);
  min-height: min(60dvh, 420px);
  border-radius: 22px; overflow: hidden;
  border: 1px solid rgba(12, 32, 62, .14);
  box-shadow: 0 18px 46px rgba(12, 32, 62, .18);
  touch-action: none; cursor: crosshair;
  -webkit-tap-highlight-color: transparent;
}
.sc-cv { display: block; width: 100%; height: 100%; }

.sc-load {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: #123; font-size: 14px; background: #D9F2FE;
}

/* 横屏提示（跑酷）：手机竖屏进游戏时盖在舞台上，转过来自动消失 */
.sc-rotate {
  position: absolute; inset: 0; z-index: 9;
  display: grid; place-items: center; text-align: center;
  background: rgba(10, 18, 34, .88); color: #fff; padding: 22px;
}
.sc-rotate-in svg { width: 52px; height: 52px; opacity: .92; animation: sc-rotate-sway 1.7s ease-in-out infinite; }
.sc-rotate-in b { display: block; font-size: 19px; font-weight: 750; margin: 12px 0 7px; }
.sc-rotate-in span { display: block; font-size: 13px; line-height: 1.65; opacity: .78; margin-bottom: 16px; }
.sc-rotate-in .btn { pointer-events: auto; }
@keyframes sc-rotate-sway {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(90deg); }
}

/* 「看答案」按钮（game.js）
   v107：不再「写错 2 次才出现」，改常驻 —— 听写挑战 / 闯关 / 短句速打 / 长句挑战
   都要随时能点。常驻的东西不能做成那颗抢眼的紫色大胶囊（会一直在那儿吸睛），
   改成安静的描边小按钮：找得到、不抢戏。它出现时的弹跳动画也一并去掉了。 */
.show-answer-wrap { text-align: center; margin-top: 12px; }
.show-answer-wrap[hidden] { display: none; }
.show-answer-btn {
  display: inline-block; padding: 8px 22px; border: 1.5px solid var(--line-2, #E4E7EC);
  border-radius: 999px; cursor: pointer;
  background: var(--surface, #fff); color: var(--text-2, #5B6472);
  font-size: 13.5px; font-weight: 700; letter-spacing: .02em;
  box-shadow: 0 2px 8px rgba(17, 24, 39, .06);
  -webkit-tap-highlight-color: transparent;
  transition: filter .15s var(--ease, ease), transform .12s var(--ease, ease);
}
.show-answer-btn:hover { filter: brightness(.97); color: var(--text, #111827); }
.show-answer-btn:active { transform: scale(.97); }

/* v107 顶栏键盘声开关：静音态要一眼看得出来（半透明 + 描边），
   不能让人点完不知道自己关了还是开了。 */
.game-top .icon-btn.key-mute { color: var(--text-2, #5B6472); }
.game-top .icon-btn.key-mute.is-off {
  opacity: .45;
  background: var(--line-2, #F3F4F6);
}

/* 题面：挂在舞台左上角，保证再小的屏也读得清提示词。
   ⚠ 它浮在画布上方，必须 pointer-events:none —— 否则手机上手指点画面上半
   （跑酷「往上换道」、大炮「点罐子」）会点在这块字上，游戏收不到触摸，
   玩家会以为是卡住了。里面的发音按钮单独恢复可点。 */
.sc-pill {
  position: absolute; left: 14px; top: 14px; z-index: 4;
  max-width: min(52%, 460px);
  padding: 9px 15px 11px; border-radius: 16px; color: #fff;
  background: rgba(8, 22, 44, .52);
  border: 1px solid rgba(255, 255, 255, .24);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .2);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}
.sc-pill em {
  display: block; font-style: normal; font-size: 10.5px; letter-spacing: .06em;
  color: rgba(255, 255, 255, .72);
}
.sc-pill-main { display: flex; align-items: center; gap: 10px; margin-top: 3px; }
.sc-pill-main b {
  font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.24;
  word-break: break-word;
}
/* 最多两行：副标题会带「训练模式：答案是 X」，手机上一长就把题面撑得很高，
   把大半个画布盖住看不清 */
.sc-pill-sub {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden; margin-top: 5px;
  font-size: 11.5px; color: rgba(255, 255, 255, .68);
}
/* 题面整块不挡触摸，但发音按钮还得能点 */
.sc-pill .sc-say { pointer-events: auto; }

/* ------------------------------------------------------------
   题面挪到画面下方（大炮 / 跑酷）
   上半屏是罐子垛和跑道，题面缩在左上角又小又要跟画面抢地方；
   挪到下方正中既躲开了战场，也能把字放大。
   代价是要跟「答案卡」「吐司」抢同一条底边，所以让它们往上让位。
   ------------------------------------------------------------ */
.sc-pill.at-bottom {
  left: 50%; top: auto; bottom: 6px;
  transform: translateX(-50%);
  width: max-content; max-width: min(92%, 660px);
  padding: 5px 18px 6px; border-radius: 17px; text-align: center;
}
.sc-pill.at-bottom em { font-size: 9.5px; }
.sc-pill.at-bottom .sc-pill-main { justify-content: center; margin-top: 1px; }
.sc-pill.at-bottom .sc-pill-main b { font-size: 25px; line-height: 1.06; }
.sc-pill.at-bottom .sc-say { width: 22px; height: 22px; position: relative; }
/* 22px 的圆点，手指指腹大约有 40px —— 学生点「再念一遍」经常差一点点没反应，
   还以为坏了。题面卡片的高度是有硬约束的（顶边不能压到大炮的炮口，
   见 e2e_hell 里那条 my <= pillTop 的断言），所以**视觉尺寸一个像素都不动**，
   只把手指的判定区往外撑 6px（22 → 34）。
   题面卡片本身是 pointer-events:none、只有这个按钮是 auto，
   所以往外撑的这一圈是"从空气里抢来的"，不会挡住画布上别处的点击。 */
.sc-pill.at-bottom .sc-say::after {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
}
.sc-pill.at-bottom .sc-say svg { width: 13px; height: 13px; }
.sc-pill.at-bottom .sc-pill-sub {
  -webkit-line-clamp: 1; margin-top: 1px; font-size: 11px;
  white-space: nowrap; text-overflow: ellipsis;
}
.sc.pill-bottom .sc-toast { bottom: 74px; }
.sc.pill-bottom .sc-card { bottom: 74px; }
/* 挑战模式：不给求答案的路子，发音按钮直接不出现 */
.sc-say.hide { display: none; }
@media (max-width: 620px) {
  .sc-pill.at-bottom { max-width: 96%; padding: 4px 14px 5px; }
  .sc-pill.at-bottom .sc-pill-main b { font-size: 21px; }
  .sc-pill.at-bottom .sc-pill-sub { font-size: 10px; }
}
.sc-say {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  color: #fff; background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .3);
  transition: all .16s var(--ease);
}
.sc-say svg { width: 15px; height: 15px; }
.sc-say:hover { background: rgba(255, 255, 255, .3); }
.sc-say:active { transform: scale(.92); }

/* ============================================================
   v112 整屏游戏模式（叠叠乐 full）
   顶栏 / 底栏都不渲染：画布 fixed 铺满整个视口，
   退出 / 心 / 塔高 / 分 / 连击 / 帮助 收进左缘一条竖排侧栏。
   侧栏容器 pointer-events:none，只有按钮本身可点 —— 不挡玩法触控。
   ============================================================ */
.sc.sc-full { position: fixed; inset: 0; z-index: 60; padding: 0; background: #0B1230; }
.sc.sc-full .sc-stage {
  position: absolute; inset: 0; width: 100%; height: 100%;
  aspect-ratio: auto; min-height: 0;
  border-radius: 0; border: none; box-shadow: none;
}
.sc-side {
  position: absolute;
  left: calc(8px + env(safe-area-inset-left, 0px));
  top: calc(8px + env(safe-area-inset-top, 0px));
  z-index: 6; display: flex; flex-direction: column; gap: 8px;
  align-items: flex-start; pointer-events: none;
}
.sc-side .sc-ico, .sc-side .sc-chip { pointer-events: auto; }
.sc.sc-full .sc-ico {
  width: 40px; height: 40px; border-radius: 12px;
  color: #EAF2FF; background: rgba(12, 24, 52, .62);
  border-color: rgba(255, 255, 255, .22);
}
.sc.sc-full .sc-ico:hover {
  background: rgba(40, 60, 110, .78); border-color: rgba(255, 255, 255, .4); color: #fff;
}
.sc-side-chips { flex-direction: column; align-items: flex-start; gap: 6px; }
.sc-side-chips .sc-chip {
  height: 30px; padding: 0 10px; font-size: 11.5px;
  color: #EAF2FF; background: rgba(12, 24, 52, .62);
  border-color: rgba(255, 255, 255, .2);
}
.sc-side-chips .sc-chip b { color: #fff; }
/* 顶部题面（叠叠乐、葡萄串）：往右让开左缘那条竖排 HUD。
   ⚠ 必须 :not(.at-bottom) —— 大炮 / 地狱模式的题面是**贴底**的
   （.sc-pill.at-bottom 走 bottom:6px），被这条 top:8px 一压就会跳到画面顶部，
   正好盖住炮口（e2e_hell 的 my <= pillTop 断言会红）。 */
.sc.sc-full .sc-pill:not(.at-bottom) {
  left: calc(62px + env(safe-area-inset-left, 0px)); top: 8px;
  max-width: min(46%, 430px);
}
/* 贴底题面（大炮 / 地狱）：保持贴底，抬高一点躲开底部浮动进度条，
   再整体右移半个 HUD 宽，别压在左缘竖排 HUD 上 */
.sc.sc-full .sc-pill.at-bottom {
  left: calc(50% + 26px); top: auto;
  bottom: calc(30px + env(safe-area-inset-bottom, 0px));
  max-width: min(84%, 620px);
}
@media (max-width: 620px) {
  .sc.sc-full .sc-pill:not(.at-bottom) {
    left: calc(58px + env(safe-area-inset-left, 0px));
    max-width: calc(100% - 66px);
  }
  .sc.sc-full .sc-pill.at-bottom {
    left: calc(50% + 24px);
    max-width: calc(96% - 60px);
  }
}

/* 鼓励气泡：命中弹 Amazing! ×N，打偏弹 Keep it up! */
.sc-cheer {
  position: absolute; left: 50%; top: 9%; z-index: 7;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  white-space: nowrap; pointer-events: none;
  opacity: 0; transform: translate(-50%, 16px) scale(.78);
  transition: opacity .26s var(--ease), transform .34s cubic-bezier(.2, 1.5, .4, 1);
}
.sc-cheer.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.sc-cheer b {
  font-size: 32px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1;
  color: #FFF; -webkit-text-stroke: 0;
  text-shadow: 0 3px 0 rgba(8, 22, 44, .35), 0 6px 22px rgba(8, 22, 44, .45);
}
.sc-cheer span {
  font-size: 12.5px; font-weight: 700; font-family: var(--mono);
  color: #FFF; text-shadow: 0 2px 8px rgba(8, 22, 44, .6);
}
.sc-cheer.hot b { font-size: 40px; color: #FFE066; }
.sc-cheer.bad b { font-size: 27px; color: #FFD9A0; }

/* 首轮引导 */
.sc-guide {
  /* 提示卡贴到**顶部天空那一条**，别压在罐子垛上 ——
     原来居中（padding-bottom:30%），正好盖住第一排罐子，
     第一次进游戏最需要看清牌面的时候被它挡着（2026-10-02 截图）。 */
  position: absolute; inset: 0; z-index: 6; display: grid;
  place-items: start center;
  padding-top: 12px;
  background: linear-gradient(180deg, rgba(6, 18, 38, .30) 0%, rgba(6, 18, 38, 0) 42%);
  pointer-events: none;
  transition: opacity .32s var(--ease);
}
.sc-guide.off { opacity: 0; }
.sc-guide-in {
  max-width: 88%; padding: 10px 20px 11px; border-radius: 16px; text-align: center;
  background: rgba(8, 22, 44, .74); color: #fff;
  border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .28);
}
.sc-guide-in b { display: block; font-size: 15px; font-weight: 750; }
.sc-guide-in span { display: block; margin-top: 3px; font-size: 11.5px; line-height: 1.6; color: rgba(255, 255, 255, .78); }
/* 图标跟标题排在同一行 —— 竖着排会把卡片顶到 120px 高，就压到罐子上了 */
.sc-guide-hand { display: inline-grid; vertical-align: -4px; margin-right: 6px; }
.sc-guide-hand svg { width: 17px; height: 17px; animation: scAim 1.6s var(--ease) infinite; }
@keyframes scAim {
  0%, 100% { transform: scale(1); opacity: .68; }
  50%      { transform: scale(1.18); opacity: 1; }
}
@keyframes scHand {
  0%, 100% { transform: translateX(10px); opacity: .5; }
  50%      { transform: translateX(-14px); opacity: 1; }
}

/* 命中 / 答案卡 */
.sc-card {
  position: absolute; left: 50%; bottom: 12px; z-index: 8;
  width: min(93%, 660px); padding: 13px 16px 12px;
  border-radius: 18px; background: #fff;
  box-shadow: 0 20px 48px rgba(8, 22, 44, .3);
  opacity: 0; pointer-events: none; transform: translate(-50%, 22px);
  transition: opacity .28s var(--ease), transform .3s var(--ease);
}
.sc-card.on { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.sc-card.ok  { border-top: 4px solid var(--ok); }
.sc-card.bad { border-top: 4px solid var(--warn); }
.sc-card-head { font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--text-3); }
.sc-card.ok  .sc-card-head { color: #047857; }
.sc-card.bad .sc-card-head { color: #B45309; }
.sc-card-body { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.sc-card-pic {
  flex: none; width: 100px; height: 100px; border-radius: 13px; overflow: hidden;
  border: 1px solid var(--line); background: var(--line-2);
}
.sc-card-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-card-txt { flex: 1; min-width: 0; }
.sc-card-w { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.sc-card-w b { font-size: 23px; font-weight: 800; letter-spacing: -.02em; }
.sc-card-w em { font-family: var(--mono); font-style: normal; font-size: 13px; color: var(--brand-600); }
.sc-card-m { margin-top: 4px; font-size: 13.5px; color: var(--text-2); line-height: 1.6; }
.sc-card-ph { margin-top: 6px; font-size: 12.5px; color: var(--text-3); }
.sc-card-ph b { font-family: var(--mono); color: var(--text); margin-right: 7px; }
.sc-card-go {
  width: 100%; margin-top: 12px; padding: 10px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 12px; background: var(--brand); color: #fff;
  font-family: var(--font); font-size: 14px; font-weight: 700;
  transition: background .18s var(--ease);
}
.sc-card-go:hover { background: var(--brand-600); }
/* 三个街机游戏的「继续」带一个内联箭头（大炮用 <em>Enter</em>，所以以前没这条）。
   不写死尺寸的话 SVG 默认 300×150，会把按钮撑成巨型箭头，顺带把左边的文字列挤成一字一行 */
.sc-card-go svg { width: 15px; height: 15px; flex: none; }
.sc-card-go em {
  font-style: normal; font-family: var(--mono); font-size: 11px;
  padding: 1px 6px; border-radius: 5px;
  background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .32);
}

/* 小提示条 */
.sc-toast {
  position: absolute; left: 50%; bottom: 20px; z-index: 5;
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  padding: 8px 16px; border-radius: 999px; font-size: 12.5px; font-weight: 650;
  color: #fff; background: rgba(8, 22, 44, .72);
  transition: all .26s var(--ease);
}
.sc-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 底部进度 */
.sc-foot { display: flex; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.sc-rounds { display: flex; gap: 7px; }
.sc-rounds i {
  width: 26px; height: 8px; border-radius: 999px; background: var(--line);
  transition: all .24s var(--ease);
}
.sc-rounds i.cur { background: var(--brand-300); }
.sc-rounds i.ok  { background: var(--ok); }
.sc-rounds i.bad { background: var(--warn); }
.sc-hint { margin-left: auto; font-size: 12px; color: var(--text-3); }

/* 选词库 + 选身份 */
.sc-dir-pick { display: flex; gap: 9px; flex-wrap: wrap; margin: 0 0 20px; }
.sc-dir-pick button {
  cursor: pointer; font-family: var(--font); font-size: 13px; font-weight: 650;
  padding: 9px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--bg); color: var(--text-2);
  transition: all .18s var(--ease);
}
.sc-dir-pick button:hover { border-color: var(--brand-300); background: var(--brand-bg); }
.sc-dir-pick button.on { border-color: var(--brand); background: var(--brand); color: #fff; }

/* 单词大炮：训练 / 挑战 模式标记 + 底部开炮键 */
.sc-chip-mode { cursor: pointer; }
.sc-chip-mode.on { color: #7A4A00; border-color: #F3C860; background: #FFF6DF; }
.sc-chip-auto { cursor: pointer; }
.sc-chip-auto.on { color: #fff; background: var(--brand); border-color: var(--brand); }

.sc-fire {
  flex: none; height: 44px; padding: 0 24px; border-radius: 13px;
  display: inline-flex; align-items: center; gap: 7px;
  background: linear-gradient(180deg, #FF9F45, #E2601A); color: #fff;
  font-size: 14.5px; font-weight: 800; letter-spacing: .02em;
  box-shadow: 0 8px 18px rgba(226, 96, 26, .30);
  transition: transform .12s var(--ease), box-shadow .16s var(--ease);
}
.sc-fire:hover { box-shadow: 0 10px 22px rgba(226, 96, 26, .40); }
.sc-fire:active { transform: translateY(1px); box-shadow: 0 4px 10px rgba(226, 96, 26, .3); }
.sc-fire em { font-style: normal; font-size: 11px; font-weight: 600; opacity: .82; }

/* 首页动画主图 */
.hero-play {
  position: relative; margin: 22px 0 26px; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(12, 32, 62, .16);
  aspect-ratio: 16 / 5; min-height: 178px; background: #8FD8F7; cursor: pointer;
}
.hp-cv { display: block; width: 100%; height: 100%; }
.hp-mask {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 24px;
  background: linear-gradient(90deg, rgba(6, 18, 38, .66) 0%, rgba(6, 18, 38, .3) 54%, rgba(6, 18, 38, 0) 100%);
  pointer-events: none;
}
/* 主图右上角的游戏切换：三个游戏共用这块横长屏 */
.hp-tabs {
  position: absolute; z-index: 4; top: 12px; right: 14px;
  display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end;
  max-width: 74%;
}
.hp-tab {
  font-size: 11.5px; font-weight: 750; line-height: 1;
  padding: 6px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .38);
  background: rgba(6, 18, 38, .42); color: rgba(255, 255, 255, .86);
  transition: all .18s var(--ease); white-space: nowrap;
}
.hp-tab:hover { background: rgba(255, 255, 255, .22); }
.hp-tab.on {
  background: #fff; color: var(--brand); border-color: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .22);
}
.hp-txt { color: #fff; max-width: min(62%, 620px); }
.hp-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 750; letter-spacing: .06em;
  padding: 4px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .34);
}
.hp-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #7CE38B;
  box-shadow: 0 0 0 0 rgba(124, 227, 139, .7);
  animation: hpPulse 1.6s infinite;
}
@keyframes hpPulse {
  0%   { box-shadow: 0 0 0 0 rgba(124, 227, 139, .7); }
  70%  { box-shadow: 0 0 0 8px rgba(124, 227, 139, 0); }
  100% { box-shadow: 0 0 0 0 rgba(124, 227, 139, 0); }
}
.hp-txt h3 { font-size: 23px; font-weight: 800; letter-spacing: -.02em; margin: 10px 0 7px; line-height: 1.3; }
.hp-txt h3 em { font-style: normal; color: #FFE066; }
.hp-txt p { font-size: 12.5px; line-height: 1.7; color: rgba(255, 255, 255, .84); }
.hp-go {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px;
  background: #fff; color: var(--brand); font-size: 14px; font-weight: 750;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .24);
  transition: transform .18s var(--ease);
  white-space: nowrap;
}
.hp-go svg { width: 16px; height: 16px; }
.hero-play:hover .hp-go { transform: translateX(3px); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .sc-stage { aspect-ratio: 3 / 2; }
}
@media (max-width: 620px) {
  .sc { padding: 10px 0 44px; }
  /* 手机是竖屏，舞台要尽量把屏幕撑满，不然下半屏全是白的 */
  .sc-stage { aspect-ratio: 1 / 1.06; min-height: min(74vh, 540px);
              min-height: min(74dvh, 540px); border-radius: 18px; }
  .sc-top { flex-wrap: wrap; gap: 8px 10px; padding: 8px 0; }
  .sc-title { flex: 1 1 100%; order: -1; }
  .sc-title b { font-size: 16px; }
  .sc-title span { font-size: 11.5px; }
  .sc-chips { flex: 1 1 100%; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .sc-chips::-webkit-scrollbar { display: none; }
  .sc-chip { height: 31px; padding: 0 10px; font-size: 11.5px; }
  .sc-pill { max-width: 74%; padding: 8px 12px 9px; border-radius: 14px; }
  .sc-pill-main b { font-size: 21px; }
  .sc-pill-sub { font-size: 10.5px; }
  .sc-cheer b { font-size: 25px; }
  .sc-cheer.hot b { font-size: 31px; }
  .sc-cheer.bad b { font-size: 21px; }
  .sc-card { width: 94%; padding: 11px 13px 11px; bottom: 9px; }
  .sc-card-pic { width: 74px; height: 74px; border-radius: 11px; }
  .sc-card-w b { font-size: 20px; }
  .sc-card-m { font-size: 12.5px; }
  .sc-card-go { padding: 9px; font-size: 13.5px; }
  .sc-guide-in { padding: 13px 16px 15px; }
  .sc-guide-in b { font-size: 14.5px; }
  .sc-guide-in span { font-size: 11.5px; }
  .sc-hint { margin-left: 0; flex: 1 1 100%; }
  .hero-play { aspect-ratio: 4 / 3; min-height: 210px; }
  .hp-mask {
    flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 12px;
    padding: 16px; background: linear-gradient(0deg, rgba(6, 18, 38, .78) 0%, rgba(6, 18, 38, .3) 62%, rgba(6, 18, 38, .08) 100%);
  }
  .hp-txt { max-width: 100%; }
  .hp-txt h3 { font-size: 19px; margin: 8px 0 5px; }
  .hp-txt p { font-size: 12px; }
  .hp-go { padding: 9px 16px; font-size: 13px; }
}
@media (max-width: 400px) {
  .hp-txt p { display: none; }
}

/* ============================================================
   回顾模式：自己录词单（#/review）
   ============================================================ */
.rv-box {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--bg); padding: 16px;
}
.rv-h { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.rv-ta {
  width: 100%; box-sizing: border-box; resize: vertical;
  min-height: 180px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px;
  font: 15px/1.7 var(--mono); color: var(--text);
  background: var(--bg-soft); outline: none;
}
.rv-ta:focus { border-color: var(--brand-400); background: #fff; }
.rv-note { font-size: 12.5px; color: var(--text-2); margin-top: 8px; }
.rv-acts {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px;
}
.rv-acts .btn { padding: 10px 20px; font-size: 13.5px; }
.rv-stat { font-size: 12px; color: var(--text-2); }
.rv-miss { margin-top: 12px; }
.rv-miss-h { font-size: 13px; font-weight: 600; color: #C2410C; }
.rv-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.rv-chip {
  background: #FEF3C7; color: #92400E; border-radius: 8px;
  padding: 4px 9px; font-size: 12.5px; font-family: var(--mono);
  cursor: pointer; user-select: none; -webkit-user-select: none;
  border: 1px solid transparent; transition: background .12s, color .12s, border-color .12s;
}
/* 选中态（v138）：以前只有 JS 在切 .on，样式表里压根没这条 ——
   点了其实是选中了的，但界面纹丝不动，用户自然以为「点不了」。
   参照 .sc-chip-auto.on 的写法：选中变成实心，一眼能看出来。 */
.rv-chip.on {
  background: #B45309; color: #fff; border-color: #92400E;
}
.rv-chip.on::before { content: '✓ '; }
@media (hover: hover) {
  .rv-chip:hover { border-color: #F3C860; }
}
.rv-goto { margin-top: 18px; text-align: center; }
/* 街机窗口里那条「录入词单」提示 */
.rv-hub {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--brand-bg); border: 1px solid var(--brand-300);
  border-radius: 14px; padding: 11px 14px; margin: 0 0 18px;
  font-size: 13px; color: var(--brand-600);
}
.rv-hub .btn { padding: 9px 18px; font-size: 13px; }
/* 选词库页那张「我的回顾词单」卡：独占一行 */
.rv-card { grid-column: 1 / -1; }
.rv-card .cat-body { width: 100%; }

/* ---------------- 大炮 · 地狱模式：选关页 ----------------
   一关几百个词，所以列表给得密一点：两列格子 + 右上角三颗星。
   「难度飙升」那枚红标只贴在第 2 关（9 → 81 直接翻九倍，得给个心理准备）。 */
.hell-levels { gap: 12px; }
.hell-card .cat-top { align-items: center; gap: 8px; }
.hell-card .cat-body { position: relative; padding-right: 66px; }
.cat-last.hot { background: #FFE7E2; color: #C0392B; border-color: #FFC9BF; }
.hell-stars { position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  display: flex; gap: 3px; }
.hell-stars i { width: 11px; height: 11px; border-radius: 50%;
  background: var(--line-2, #DDE3EA); display: block; }
.hell-stars i.on { background: #FFC13C; box-shadow: 0 0 0 2px rgba(255,193,60,.20); }
.cat-note { margin-top: 14px; text-align: center; font-size: 12.5px; color: var(--text-2); }
.cat-note b { color: var(--brand-700, #4F7A52); }
@media (max-width: 560px) {
  .rv-ta { min-height: 150px; font-size: 14px; }
  .rv-acts .btn { flex: 1; }
}

/* ============================================================
   首页 · 真题考点窗口（v124）
   ------------------------------------------------------------
   这个站唯一跟别人不一样的东西：真考频是拿 67 套四级 + 37 套六级
   真题 PDF 的正文逐词数出来的。首页必须让它第一眼就看得见，
   而且要能点开 —— 光写一句「我们有真题数据」没人信，
   得让人亲手点开一个词、读到那句真题原句，才会信。
   ============================================================ */
.rs-acts { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.rs-btn {
  padding: 8px 16px; font-size: 13px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg); color: var(--text);
}
.rs-btn.primary {
  background: var(--brand, #4F7A52); border-color: var(--brand, #4F7A52); color: #fff; font-weight: 600;
}
/* 考频榜弹层 */
.rs-mask {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 60;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.rs-modal {
  background: var(--bg); border-radius: 16px; width: 100%; max-width: 620px;
  max-height: 82vh; display: flex; flex-direction: column; overflow: hidden;
}
.rs-mhead {
  padding: 16px 18px 12px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.rs-mhead h3 { font-size: 15px; font-weight: 700; margin: 0; color: var(--text); }
.rs-mclose { border: 0; background: transparent; font-size: 20px; cursor: pointer; color: var(--text-3); }
.rs-tabs { display: flex; gap: 8px; padding: 12px 18px 0; }
.rs-tab {
  padding: 5px 14px; font-size: 13px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg); color: var(--text-2);
}
.rs-tab.on { background: var(--brand, #4F7A52); border-color: var(--brand, #4F7A52); color: #fff; }
.rs-list { overflow: auto; padding: 12px 18px 18px; }
.rs-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.rs-row:last-child { border-bottom: 0; }
.rs-rw { display: flex; align-items: baseline; gap: 8px; }
.rs-rw b { font-size: 14.5px; font-weight: 700; color: var(--text); }
.rs-rw em { font-style: normal; font-size: 12px; color: var(--text-3); }
.rs-badge {
  margin-left: auto; font-size: 11.5px; font-weight: 700; color: #B45309;
  background: #FEF3C7; border: 1px solid #FDE68A; padding: 1px 8px; border-radius: 999px;
}
.rs-badge.hot { color: #B91C1C; background: #FEE2E2; border-color: #FECACA; }
.rs-sent { margin: 6px 0 0; font-size: 13px; line-height: 1.7; color: var(--text-2); }
.rs-sent.none { color: var(--text-3); font-size: 12.5px; }
@media (max-width: 560px) {
  .rs-acts .rs-btn { flex: 1; }
}

/* 首页入口分组标题：mode-grid 是网格，小标题要自己占满一整行，
   否则会被塞进某一列、跟卡片挤在一起 */
.mode-grid > .section-label { grid-column: 1 / -1; }
.mode-grid > .section-label:first-child { margin-top: 24px; }

/* ============================================================
   首页顶部 · 真题考点合并卡（v125）
   ------------------------------------------------------------
   原 H1 标题区 + 独立真题板块合并成一张卡，放在最顶上、
   打靶游戏入口上面。云层背景复用 hero-anime.jpg。
   面积刻意收窄：没有大标题，滚动词一行 + 数据来源一行 + 按钮，
   三行解决，把首屏留给下面的游戏入口。
   ============================================================ */
.hr-box { padding: 18px 22px 16px; }
.hr-ticker {
  position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.hr-in {
  display: inline-flex; gap: 8px; width: max-content;
  animation: tickerRun 52s linear infinite;
}
.hr-ticker:hover .hr-in { animation-play-state: paused; }
/* 词 chip：云层上是半透明白胶囊，考过 ≥15 套的换琥珀底强调 */
.hr-chip {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: 6px 12px; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.88); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 13px; font-weight: 650; color: var(--text);
  transition: border-color .15s, transform .15s;
}
.hr-chip:hover { border-color: var(--brand); transform: translateY(-1px); }
.hr-chip b {
  font-size: 11px; font-weight: 700; color: var(--brand-600);
  background: var(--brand-bg); border-radius: 999px; padding: 1px 7px;
  font-variant-numeric: tabular-nums;
}
.hr-chip.hot { background: #FFF7E9; border-color: #F3D9A8; }
.hr-chip.hot b { color: #B45309; background: #FDEBC8; }
/* 数据来源一行：小字说明数字怎么来的，这是可信度的根 */
.hr-meta { margin-top: 12px; font-size: 12px; line-height: 1.7; color: var(--text-2); }
.hr-meta b { font-weight: 700; color: var(--brand-600); font-variant-numeric: tabular-nums; }
.hr-acts { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.hr-acts .rs-btn { padding: 7px 15px; }
@media (max-width: 560px) {
  .hr-box { padding: 14px 14px 13px; }
  .hr-acts .rs-btn { flex: 1; }
}

/* ============================================================
   组句留空卡（v126）：打完 love → 出来 "I ___ you"
   ------------------------------------------------------------
   每个词上面英文、下面自己的中文，按词性分色 —— 颜色不是装饰，
   是在教学生「这个词在这句里扮演什么角色」。
   句子来源：历年真题原句优先（可能是一段截取的片段，会带前导省略号），
   真题里没有这个词的才用词典短句；都没有就不出这张卡，绝不编句子。
   ============================================================ */
.cz-box {
  margin: 0 0 14px; padding: 12px 14px 10px;
  background: var(--bg-2, #F6F8F7); border: 1px solid var(--line); border-radius: 12px;
}
.cz-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.cz-tag {
  font-size: 11px; font-weight: 600; color: var(--brand-600, #4F7A52);
  background: var(--brand-bg, #EAF3E6); border: 1px solid var(--brand-200, #CBE0C4);
  border-radius: 999px; padding: 2px 9px;
}
.cz-tag.hot { color: #A32D2D; background: #FCEBEB; border-color: #F7C1C1; }
.cz-hint { font-size: 11.5px; color: var(--text-3); }
/* 逐词慢读：念到哪个词就把哪个点亮 —— 高亮跟手，一眼知道读到哪儿 */
.cz-speaking {
  background: var(--brand-bg, #EAF3E6) !important;
  outline: 2px solid var(--brand-300, #9CC39A);
  animation: czPulse 1.1s ease-in-out infinite;
}
@keyframes czPulse {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-2px); }
}
/* 组句卡头部的慢读小喇叭：推到最右，别挤着标签 */
.cz-head .ws-play { margin-left: auto; }
/* 一行单词：会换行，每个词自带中文脚注，手机上也能读 */
.cz-line { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 6px; }
.cz-dotdot { font-size: 15px; color: var(--text-3); margin-right: 2px; align-self: center; }
.cz-w, .cz-slot {
  display: inline-flex; flex-direction: column; align-items: center;
  padding: 3px 6px; border-radius: 8px; min-width: 26px;
}
.cz-w b { font-size: 15px; font-weight: 500; line-height: 1.35; cursor: pointer; }
.cz-w i, .cz-slot i {
  font-style: normal; font-size: 10.5px; line-height: 1.4; margin-top: 1px;
  white-space: nowrap; opacity: .85;
}
/* 词性分色：名词蓝 / 动词红 / 形容词绿 / 副词琥珀 / 代词紫 / 虚词灰 */
.cz-w.cz-noun  b { color: #185FA5; } .cz-w.cz-noun  i { color: #378ADD; }
.cz-w.cz-verb  b { color: #A32D2D; } .cz-w.cz-verb  i { color: #D85A30; }
.cz-w.cz-adj   b { color: #3B6D11; } .cz-w.cz-adj   i { color: #639922; }
.cz-w.cz-adv   b { color: #854F0B; } .cz-w.cz-adv   i { color: #BA7517; }
.cz-w.cz-pron  b { color: #534AB7; } .cz-w.cz-pron  i { color: #7F77DD; }
.cz-w.cz-fn    b { color: var(--text-3); } .cz-w.cz-fn i { color: var(--text-3); }
/* 留空的槽：输入框宽度跟着填进去的字长走 */
.cz-slot { padding: 2px 4px; }
.cz-in {
  width: 78px; text-align: center; font-size: 15px; font-weight: 500;
  border: 0; border-bottom: 2px solid var(--brand-600, #4F7A52); background: transparent;
  color: var(--text); padding: 1px 2px; outline: none; font-family: inherit;
}
.cz-in.ok { color: #3B6D11; border-bottom-color: #639922; }
.cz-slot.cz-done { background: #EAF3DE; }
.cz-slot.cz-done b { color: #3B6D11; } .cz-slot.cz-done i { color: #639922; }
.cz-slot.cz-fail { background: #FCEBEB; }
.cz-slot.cz-fail b { color: #A32D2D; } .cz-slot.cz-fail i { color: #D85A30; }
.cz-slot b { font-size: 15px; font-weight: 500; }
.cz-cn { min-height: 15px; }
.cz-shake { animation: czShake .32s ease; }
@keyframes czShake {
  0%,100% { transform: translateX(0); } 25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); } 75% { transform: translateX(-2px); }
}

/* ============================================================
   考点条（v128）· 这个站唯一的记忆点
   ------------------------------------------------------------
   答对一个词之后，卡片上要能立刻回答三个问题：
     ① 这词值不值得记？（真考频：67 套里出现过几套 + 一条进度）
     ② 它在真题里怎么用的？（真搭配：数出来的，不是编的）
     ③ 译得一样的那几个词，该先记谁？（真辨析：拿各自的出场套数比）
   三样缺哪样就不显示哪一行 —— 空一行比编一行强。
   配色沿用卡片的克制风格，只有考频条用品牌紫，其余保持灰阶，
   免得一张卡上五颜六色、反而没人看字。
   ============================================================ */
.kd {
  margin: 12px 0 2px; padding: 11px 13px 12px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg-soft, #FAFAFB);
}
.kd-hd { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.kd-star {
  font-size: 13px; letter-spacing: 1px; color: #B45309; line-height: 1;
}
.kd-core { font-size: 11.5px; font-weight: 600; color: var(--text-2); }
.kd-rf { margin-left: auto; font-size: 11.5px; color: var(--text-3); }
.kd-rf b { font-size: 14px; color: var(--brand, #7C3AED); font-weight: 700; }
.kd-bar {
  margin: 7px 0 2px; height: 5px; border-radius: 3px;
  background: var(--line-2); overflow: hidden;
}
.kd-bar i {
  display: block; height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--brand-400, #A78BFA), var(--brand, #7C3AED));
}
.kd-row {
  display: flex; align-items: flex-start; gap: 8px; margin-top: 9px;
}
.kd-k {
  flex: none; margin-top: 2px; font-size: 10.5px; color: var(--text-3);
  border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px;
  white-space: nowrap;
}
.kd-v { display: flex; flex-wrap: wrap; gap: 5px 6px; min-width: 0; }
/* 真题搭配：点一下念一遍。×N 是它在真题里一起出现的次数 */
.kd-col {
  font-size: 12.5px; line-height: 1.5; color: var(--text); cursor: pointer;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 7px; padding: 2px 8px;
}
.kd-col em { font-style: normal; font-size: 10.5px; color: var(--text-3); margin-left: 3px; }
.kd-col:active { background: var(--brand-bg, #F5F3FF); }
/* 同译辨析：比这个词考得更多的标红（中国习惯：更该小心 = 更显眼） */
.kd-near {
  display: inline-flex; align-items: baseline; gap: 5px;
  font-size: 12px; color: var(--text-2);
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 7px; padding: 2px 8px;
}
.kd-near b { font-weight: 600; color: var(--text); }
.kd-near i { font-style: normal; font-size: 10.5px; color: var(--text-3); }
.kd-near.up { border-color: #F7C1C1; background: #FEF6F6; }
.kd-near.up b { color: #B91C1C; }
@media (max-width: 560px) {
  .kd { padding: 10px 11px 11px; }
  .kd-rf { width: 100%; margin-left: 0; }
}
/* 答完之后把完整的真题原句还给他 —— 上面练的是片段，出处必须是整句 */
.cz-src {
  margin: 10px 0 0; padding-top: 9px; border-top: 1px dashed var(--line);
  font-size: 12.5px; line-height: 1.7; color: var(--text-2);
}
.cz-srctag {
  display: inline-block; margin-right: 6px; font-size: 10.5px; color: var(--text-3);
  border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; vertical-align: 1px;
}
@media (max-width: 560px) {
  .cz-box { padding: 10px 10px 9px; }
  .cz-w b, .cz-slot b, .cz-in { font-size: 14px; }
}

/* ============================================================
   今日任务条（v127）· 首页一键闭环
   ------------------------------------------------------------
   学生进站问的是「我今天练什么」，不是「我选哪个模式」。
   这条把答案直接摆出来：有没记住的词就先复习那批，没有就按考频出新词。
   放在打卡环下面、入口网格上面 —— 它比 9 个入口更该先被看见。
   ============================================================ */
.today-bar {
  display: flex; align-items: center; gap: 12px; margin-top: 14px;
  padding: 13px 16px; border-radius: 14px;
  background: var(--bg); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.today-bar.has-wrong {
  background: linear-gradient(180deg, #FFF9EC, #FFFDF6);
  border-color: #F0DCAE;
}
.tb-ico {
  flex: none; width: 38px; height: 38px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-bg, #EAF3E6); color: var(--brand-600, #4F7A52);
}
.tb-ico svg { width: 20px; height: 20px; }
.today-bar.has-wrong .tb-ico { background: #FBEBC4; color: #A0680B; }
.tb-txt { flex: 1; min-width: 0; }
.tb-title { font-size: 14.5px; font-weight: 700; color: var(--text); line-height: 1.4; }
.tb-sub {
  font-size: 12px; color: var(--text-3); line-height: 1.55; margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tb-btn {
  flex: none; display: inline-flex; align-items: center; gap: 4px;
  padding: 9px 16px; font-size: 13.5px; font-weight: 600; cursor: pointer;
  border: 0; border-radius: 10px; color: #fff;
  background: var(--brand, #4F7A52);
}
.tb-btn svg { width: 15px; height: 15px; }
.today-bar.has-wrong .tb-btn { background: #B45309; }
/* ============================================================
   考试倒计时条（v129）· 「我来不来得及」
   ------------------------------------------------------------
   学生真正想问的是这句。答案必须拿真数据算：真题考点词有多少个
   （real_top.json 数出来的），离考试几天，一天要过几个才刚好过完。
   日期可改 —— 官方只在年初公布具体日子，这里默认按「6/12 月第三个
   周六」推算，并在旁边写明是估的，不装作官方数据。
   ============================================================ */
.exam-bar {
  display: flex; align-items: center; gap: 12px; margin-top: 14px;
  padding: 12px 16px; border-radius: 14px;
  background: var(--bg); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.eb-day {
  flex: none; display: flex; align-items: baseline; gap: 3px;
  color: var(--brand, #7C3AED);
}
.eb-day b { font-size: 27px; font-weight: 800; line-height: 1; }
.eb-day span { font-size: 12px; color: var(--text-3); }
.eb-txt { flex: 1; min-width: 0; }
.eb-title {
  font-size: 13.5px; font-weight: 600; color: var(--text); line-height: 1.5;
}
.eb-sub { font-size: 11.5px; color: var(--text-3); margin-top: 3px; }
.eb-edit {
  border: 0; background: none; padding: 0; margin-left: 2px;
  font-size: 11.5px; color: var(--brand, #7C3AED);
  text-decoration: underline; cursor: pointer; font-family: inherit;
}
.eb-input {
  font: inherit; font-size: 12px; padding: 3px 6px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--bg);
}
@media (max-width: 560px) {
  .exam-bar { padding: 11px 13px; gap: 10px; }
  .eb-day b { font-size: 24px; }
  .eb-title { font-size: 13px; }
}

/* 错题回顾区的一行说明：告诉学生这些词不会被忘掉 */
.mistakes-note {
  margin: 6px 0 10px; font-size: 12px; color: var(--text-3);
  padding-left: 2px;
}
/* 错题行下面挂一行考点（v129）：刚答错这个词，正是最想记住它的时候。
   给的是「它考过几套 / 跟谁容易混」，不是又一遍中文释义。 */
.mr-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kd-mini {
  margin-top: 4px; font-size: 11.5px; line-height: 1.6; color: var(--text-3);
}
.kd-mini b { color: var(--brand, #7C3AED); font-weight: 700; }
@media (max-width: 560px) {
  .today-bar { gap: 10px; padding: 12px 13px; }
  .tb-ico { width: 34px; height: 34px; }
  .tb-title { font-size: 14px; }
  .tb-sub { white-space: normal; }
  .tb-btn { padding: 8px 13px; }
}

/* ============================================================
   v146 暖阳奶油 · 街机外壳统一改暖
   ------------------------------------------------------------
   只覆盖颜色 / 描边 / 阴影，**尺寸、定位、可点区一个都不动** ——
   所有 e2e 里关于高度、位置、点击热区的断言都不受影响。
   ============================================================ */
.sc-pill {
  color: #4A3A2E;
  background: rgba(255, 250, 243, .93);
  border: 1px solid rgba(201, 168, 133, .55);
  box-shadow: 0 10px 26px rgba(120, 86, 54, .16);
}
.sc-pill em { color: rgba(124, 96, 70, .78); }
.sc-pill-main b { color: #3F3128; }
.sc-pill-sub { color: rgba(124, 96, 70, .86); }
.sc-pill .sc-say { color: #8C6A46; }

.sc-say {
  color: #8C6A46;
  background: rgba(255, 231, 204, .95);
  border-color: rgba(201, 168, 133, .6);
}
.sc-say:hover { background: #FFE0BF; }

.sc-toast {
  color: #4A3A2E;
  background: rgba(255, 249, 240, .95);
  border: 1px solid rgba(201, 168, 133, .5);
  box-shadow: 0 8px 20px rgba(120, 86, 54, .14);
}

.sc-guide { background: linear-gradient(180deg, rgba(255, 214, 178, .34) 0%, rgba(255, 214, 178, 0) 42%); }
.sc-guide-in {
  background: rgba(255, 250, 243, .95);
  color: #4A3A2E;
  border: 1px solid rgba(201, 168, 133, .55);
  box-shadow: 0 14px 32px rgba(120, 86, 54, .16);
}
.sc-guide-in span { color: rgba(124, 96, 70, .86); }

.sc-card {
  background: #FFFDF8;
  border: 1px solid rgba(226, 205, 180, .9);
  box-shadow: 0 20px 44px rgba(120, 86, 54, .18);
}
.sc-card-go { background: #F0916A; color: #fff; }
.sc-card-go:hover { background: #E07C55; }
.sc-card-pic { background: #F7E9D8; border-color: #EADBC9; }

.sc-ico { color: #6B5442; }
.sc-ico:hover { background: #FFF1E2; border-color: #E5CBAE; color: #C4703F; }
.sc-chip { border-color: #EADBC9; background: #FFFDF8; color: #6B5442; }
.sc-chip b { color: #3F3128; }
.sc-title b { color: #3F3128; }
.sc-title span { color: #A08A75; }
.sc-rounds i { background: #EADBC9; }

/* 画布上的暖色罩与极淡纸感：放在 CSS 里做，GPU 一次合成。
   不在 canvas 每帧做全屏 mixed-blend —— 手机上那是实打实的掉帧。 */
.sc-stage::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 236, 210, .16), rgba(255, 214, 180, .05) 58%, rgba(120, 86, 54, .10) 100%);
  mix-blend-mode: multiply;
  opacity: .9;
}
