:root {
  --bg: #0f172a;
  --bg2: #1e293b;
  --card: #1e2a44;
  --card2: #263453;
  --ink: #f1f5f9;
  --ink-soft: #94a3b8;
  --brand: #7c6cff;
  --brand2: #4f8cff;
  --good: #34d399;
  --bad: #fb7185;
  --gold: #ffd54a;
  --line: rgba(255,255,255,.08);
  --r: 20px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, "PingFang SC", "HarmonyOS Sans", "Noto Sans SC", system-ui, sans-serif;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
}
#app { max-width: 480px; margin: 0 auto; min-height: 100%; position: relative; }

button { font-family: inherit; cursor: pointer; border: none; color: inherit; }
.screen { padding: calc(16px + var(--safe-t)) 16px calc(24px + var(--safe-b)); animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }

/* ---------- top bar ---------- */
.topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 4px 18px;
}
.avatar-chip {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; font-size: 26px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  flex: 0 0 auto;
}
.topbar .who { flex: 1; min-width: 0; }
.topbar .who .hi { font-size: 13px; color: var(--ink-soft); }
.topbar .who .nm { font-size: 18px; font-weight: 700; }
.stat {
  display: flex; align-items: center; gap: 5px;
  background: var(--card); padding: 8px 12px; border-radius: 999px;
  font-weight: 700; font-size: 15px;
}
.stat.gold { color: var(--gold); }
.stat.fire { color: #ff9d5c; }

/* ---------- level map ---------- */
.unit-head {
  margin: 22px 4px 10px; display: flex; align-items: baseline; gap: 8px;
}
.unit-head .u { font-size: 13px; font-weight: 800; color: var(--brand); letter-spacing: .5px; }
.unit-head .t { font-size: 15px; color: var(--ink-soft); }

.path { display: flex; flex-direction: column; gap: 0; padding: 4px 0; }
.node-row { display: flex; justify-content: center; padding: 6px 0; }
.node-row:nth-child(4n+1) { justify-content: flex-start; padding-left: 14%; }
.node-row:nth-child(4n+2) { justify-content: center; }
.node-row:nth-child(4n+3) { justify-content: flex-end; padding-right: 14%; }
.node-row:nth-child(4n+4) { justify-content: center; }

.node {
  position: relative;
  width: 78px; height: 78px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--card2);
  border: 3px solid var(--line);
  transition: transform .12s;
}
.node:active { transform: scale(.94); }
.node.locked { opacity: .5; }
.node.unlocked {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  border-color: rgba(255,255,255,.25);
  box-shadow: 0 8px 20px -6px rgba(124,108,255,.6);
}
.node.done {
  background: linear-gradient(135deg, #34d399, #10b981);
  border-color: rgba(255,255,255,.3);
  box-shadow: 0 8px 20px -6px rgba(52,211,153,.5);
}
.node .idx { font-size: 26px; font-weight: 800; }
.node .lock { font-size: 26px; }
.node .stars {
  position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 1px; font-size: 13px; white-space: nowrap;
}
.node .cnt {
  position: absolute; top: -6px; right: -6px;
  background: var(--bg2); color: var(--ink-soft);
  font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px;
  border: 1px solid var(--line);
}

/* daily review banner */
.review-card {
  margin: 8px 4px 4px; padding: 16px;
  background: linear-gradient(120deg, #f59e0b22, #ef444422);
  border: 1px solid #f59e0b44; border-radius: var(--r);
  display: flex; align-items: center; gap: 14px;
}
.review-card.empty { background: var(--card); border-color: var(--line); }
.review-card .em { font-size: 30px; }
.review-card .txt { flex: 1; }
.review-card .txt b { display: block; font-size: 16px; }
.review-card .txt span { font-size: 13px; color: var(--ink-soft); }
.review-card button {
  background: var(--gold); color: #4a3600; font-weight: 800;
  padding: 10px 16px; border-radius: 999px; font-size: 14px;
}

/* 每日复习卡片 */
.daily-hero { margin: 10px 4px 6px; padding: 18px; border-radius: var(--r);
  background: linear-gradient(135deg, var(--brand), var(--brand2)); }
.daily-hero .dh-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.daily-hero .dh-em { font-size: 34px; }
.daily-hero .dh-top b { display: block; font-size: 18px; font-weight: 800; }
.daily-hero .dh-top span { font-size: 13px; opacity: .9; }
.daily-hero .btn { width: 100%; margin: 0; }

/* encouragement from uncle */
.note-card {
  margin: 14px 4px 0; padding: 14px 16px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); font-size: 14px; line-height: 1.5;
}
.note-card .from { color: var(--brand); font-weight: 700; font-size: 12px; margin-bottom: 4px; }

/* ---------- big buttons ---------- */
.btn {
  display: block; width: 100%; padding: 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff; font-size: 17px; font-weight: 800;
  border-radius: 16px; text-align: center;
  box-shadow: 0 8px 20px -6px rgba(79,140,255,.6);
  transition: transform .12s;
}
.btn:active { transform: scale(.97); }
.btn.ghost { background: var(--card); box-shadow: none; color: var(--ink); }
.btn.good { background: linear-gradient(135deg, #34d399, #10b981); box-shadow: 0 8px 20px -6px rgba(52,211,153,.5); }
.btn[disabled] { opacity: .4; pointer-events: none; }

/* ---------- avatar picker ---------- */
.picker { text-align: center; padding-top: calc(8vh + var(--safe-t)); }
.picker h1 { font-size: 24px; margin: 0 0 6px; }
.picker p { color: var(--ink-soft); margin: 0 0 24px; }
.ava-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 20px; }
.ava {
  aspect-ratio: 1; border-radius: 50%; font-size: 32px;
  display: grid; place-items: center; background: var(--card); border: 3px solid transparent;
}
.ava.sel { border-color: var(--brand); background: var(--card2); transform: scale(1.05); }
.name-in {
  width: 100%; padding: 14px 16px; font-size: 17px; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  color: var(--ink); margin-bottom: 18px;
}
.name-in:focus { outline: 2px solid var(--brand); }

/* ---------- learn cards ---------- */
.phase-bar { display: flex; align-items: center; gap: 12px; padding: 8px 4px 16px; }
.phase-bar .x { font-size: 26px; color: var(--ink-soft); background: none; padding: 0 4px; line-height: 1; }
.progress { flex: 1; height: 12px; background: var(--card); border-radius: 999px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand2)); border-radius: 999px; transition: width .3s; }

.flash {
  background: var(--card); border: 1px solid var(--line); border-radius: 24px;
  padding: 34px 22px; text-align: center; margin: 10px 0 20px; animation: pop .3s;
}
.flash .kind { font-size: 12px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 1px; }
.flash .emoji { font-size: 60px; line-height: 1; margin: 12px 0 2px; animation: pop .35s; }
.flash .word { font-size: 40px; font-weight: 800; margin: 12px 0 6px; word-break: break-word; }
.flash .ph { color: var(--brand2); font-size: 17px; margin-bottom: 4px; font-family: "Times New Roman", serif; }
.flash .pos { color: var(--ink-soft); font-size: 14px; }
.flash .mean { font-size: 22px; font-weight: 700; margin: 14px 0; }
.flash .ex { color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
.flash .ex b { color: var(--ink); font-weight: 600; }
.speaker {
  margin: 8px auto 4px; width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  display: grid; place-items: center; font-size: 30px;
  box-shadow: 0 8px 20px -6px rgba(124,108,255,.6);
}
.speaker:active { transform: scale(.9); }
.speaker.playing { animation: ring .6s ease; }
@keyframes ring { 0%,100% { transform: scale(1); } 40% { transform: scale(1.15); } }

/* ---------- quiz ---------- */
.q-stem { text-align: center; padding: 18px 0 8px; }
.q-stem .prompt { font-size: 14px; color: var(--ink-soft); margin-bottom: 14px; }
.q-stem .big { font-size: 34px; font-weight: 800; word-break: break-word; }
.q-stem .big.zh { font-size: 26px; }
.q-listen {
  margin: 6px auto 14px; width: 96px; height: 96px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  display: grid; place-items: center; font-size: 44px;
  box-shadow: 0 10px 24px -6px rgba(124,108,255,.6);
}
.q-listen:active { transform: scale(.93); }

.options { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.opt {
  padding: 16px 18px; border-radius: 16px; background: var(--card);
  border: 2px solid var(--line); font-size: 18px; font-weight: 600; text-align: left;
  transition: transform .1s;
}
.opt:active { transform: scale(.98); }
.opt.correct { background: #10b98122; border-color: var(--good); color: var(--good); }
.opt.wrong { background: #fb718522; border-color: var(--bad); color: var(--bad); }
.opt.dim { opacity: .4; }

/* spell */
.spell-slots { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 18px 0; min-height: 52px; }
.slot {
  width: 40px; height: 50px; border-radius: 10px; background: var(--card);
  border-bottom: 3px solid var(--line); display: grid; place-items: center;
  font-size: 24px; font-weight: 800; text-transform: lowercase;
}
.slot.filled { border-bottom-color: var(--brand); }
.letters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.letter {
  width: 46px; height: 52px; border-radius: 12px; background: var(--card2);
  border: 1px solid var(--line); font-size: 22px; font-weight: 800; text-transform: lowercase;
}
.letter:active { transform: scale(.9); }
.letter.used { opacity: .25; pointer-events: none; }

/* feedback bar */
.feedback {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  max-width: 480px; margin: 0 auto;
  padding: 18px 16px calc(20px + var(--safe-b));
  border-radius: 24px 24px 0 0; animation: up .25s ease;
}
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
.feedback.ok { background: #10251d; }
.feedback.no { background: #2a161c; }
.feedback .head { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.feedback.ok .head { color: var(--good); }
.feedback.no .head { color: var(--bad); }
.feedback .ans { font-size: 15px; color: var(--ink-soft); margin-bottom: 14px; }
.feedback .ans b { color: var(--ink); }

/* ---------- result ---------- */
.result { text-align: center; padding-top: calc(8vh + var(--safe-t)); }
.result .big-stars { font-size: 56px; letter-spacing: 6px; margin: 10px 0; }
.result .big-stars .s { display: inline-block; animation: pop .4s backwards; }
.result .big-stars .s:nth-child(2) { animation-delay: .12s; }
.result .big-stars .s:nth-child(3) { animation-delay: .24s; }
.result h2 { font-size: 26px; margin: 6px 0; }
.result .sub { color: var(--ink-soft); margin-bottom: 6px; }
.result .acc { font-size: 15px; color: var(--ink-soft); margin-bottom: 30px; }
.result .actions { display: flex; flex-direction: column; gap: 12px; }
.confetti { font-size: 44px; margin-bottom: 4px; animation: pop .5s; }

.muted-note { text-align:center; color: var(--ink-soft); font-size: 12px; margin-top: 22px; padding: 0 8px; line-height:1.5; }
.parent-entry { text-align:center; margin: 14px 0 4px; display:flex; gap:10px; justify-content:center; }
.parent-entry a { display:inline-block; color: var(--ink-soft); font-size: 12px; text-decoration: none;
  background: var(--card); padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); }
.parent-entry a:active { background: var(--card2); }

/* ---------- 个人中心底部弹层 ---------- */
.avatar-chip.tap { cursor: pointer; transition: transform .1s; }
.avatar-chip.tap:active { transform: scale(.92); }
.sheet-mask { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 100;
  display: flex; align-items: flex-end; justify-content: center; animation: fade .2s ease; }
.sheet { width: 100%; max-width: 480px; background: var(--bg2); border-radius: 22px 22px 0 0;
  padding: 10px 18px calc(22px + var(--safe-b)); animation: slideup .26s cubic-bezier(.2,.8,.2,1); }
@keyframes slideup { from { transform: translateY(100%); } to { transform: none; } }
.sheet-handle { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 6px auto 16px; }
.prof-top { text-align: center; margin-bottom: 18px; }
.prof-av { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
  font-size: 40px; margin: 0 auto 8px; background: linear-gradient(135deg, var(--brand), var(--brand2)); }
.prof-name { font-size: 20px; font-weight: 800; }
.prof-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 18px; }
.prof-stats > div { background: var(--card); border-radius: 14px; padding: 12px 6px; text-align: center; }
.prof-stats b { display: block; font-size: 20px; font-weight: 800; }
.prof-stats span { font-size: 12px; color: var(--ink-soft); }
.prof-item { width: 100%; display: flex; justify-content: space-between; align-items: center;
  background: var(--card); border-radius: 14px; padding: 15px 16px; margin-bottom: 10px; font-size: 16px; }
.prof-item:active { background: var(--card2); }
.prof-item.danger { color: var(--bad); }
.prof-item .chev { color: var(--ink-soft); font-size: 20px; }

/* 年级切换入口 + 弹层 */
.book-switch { display: flex; align-items: center; justify-content: space-between; width: 100%;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 11px 16px; margin: 2px 0 10px; font-size: 15px; font-weight: 700; }
.book-switch:active { background: var(--card2); }
.book-switch .caret { color: var(--brand2); font-size: 13px; font-weight: 600; }
.book-group-label { font-size: 13px; color: var(--ink-soft); font-weight: 700; margin: 14px 2px 8px; }
.book-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.book-item { background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 10px; font-size: 15px; font-weight: 600; position: relative; }
.book-item.on { border-color: var(--brand); background: var(--card2); color: var(--brand2); }
.book-item.locked { opacity: .5; }
.book-item .soon { display: block; font-size: 11px; color: var(--ink-soft); font-weight: 400; margin-top: 3px; }

/* ---------- 幸运大转盘 ---------- */
.wheel-box { width: 100%; max-width: 360px; margin: auto; background: var(--bg2);
  border-radius: 24px; padding: 22px 18px calc(22px + var(--safe-b)); text-align: center; animation: pop .3s; }
.wheel-title { font-size: 22px; margin: 0 0 2px; }
.wheel-sub { color: var(--ink-soft); font-size: 13px; margin: 0 0 16px; }
.wheel-wrap { position: relative; width: 240px; height: 240px; margin: 6px auto 18px; }
.wheel-pointer { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); z-index: 3;
  width: 0; height: 0; border-left: 12px solid transparent; border-right: 12px solid transparent;
  border-top: 20px solid var(--gold); filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); }
.wheel { position: relative; width: 240px; height: 240px; border-radius: 50%;
  border: 6px solid var(--card2); box-shadow: 0 6px 24px rgba(0,0,0,.4); transform: rotate(0deg); }
.wheel::after { content: ''; position: absolute; left: 50%; top: 50%; width: 26px; height: 26px;
  margin: -13px; border-radius: 50%; background: var(--gold); z-index: 2; }
.wheel-emo { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px;
  display: grid; place-items: center; font-size: 26px; }
.wheel-result { min-height: 10px; }
.wheel-prize { font-size: 64px; animation: pop .4s backwards; }
.wheel-win { font-size: 18px; margin: 4px 0 8px; }
.wheel-goal { font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin: 0 0 8px; }
.wheel-note { font-size: 13px; color: var(--gold); margin: 0 0 14px; }

/* ---------- 奖品兑换 Tab ---------- */
.prize-card { text-align: center; border-radius: var(--r); padding: 22px; margin: 10px 4px 18px;
  background: linear-gradient(135deg, var(--brand), var(--brand2)); }
.prize-card.earned { background: linear-gradient(135deg, #f59e0b, #f43f5e); }
.prize-emoji { font-size: 60px; line-height: 1; }
.prize-name { font-size: 22px; font-weight: 800; margin-top: 8px; }
.prize-tag { font-size: 13px; opacity: .9; margin-top: 4px; }
.prize-steps { display: flex; flex-direction: column; gap: 10px; }
#prize-cta { margin-top: 18px; }
#prize-cta .btn { margin: 0; }
.pstep { display: flex; gap: 12px; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px; }
.pstep.cur { border-color: var(--brand); }
.pstep.lock { opacity: .6; }
.pstep-ic { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 50%; background: var(--card2);
  display: grid; place-items: center; font-size: 15px; font-weight: 800; }
.pstep.ok .pstep-ic { background: var(--good); }
.pstep-main { flex: 1; min-width: 0; }
.pstep-main b { font-size: 15px; }
.pstep-main span { display: block; font-size: 12px; color: var(--ink-soft); margin-top: 3px; }
.pbar { height: 8px; border-radius: 99px; background: var(--card2); overflow: hidden; margin: 8px 0 4px; }
.pbar i { display: block; height: 100%; border-radius: 99px; background: var(--brand); transition: width .4s; }
.prize-done { text-align: center; background: linear-gradient(135deg, #f59e0b22, #f43f5e22);
  border: 1px solid #f59e0b55; border-radius: 14px; padding: 18px; margin-top: 16px; font-size: 16px; font-weight: 700; }
.prize-done small { font-weight: 400; color: var(--ink-soft); font-size: 13px; }
.exam-score { font-size: 64px; font-weight: 800; line-height: 1; margin: 14px 0 4px; }
.exam-score small { font-size: 22px; font-weight: 700; margin-left: 4px; }
.exam-score.pass { color: var(--good); }
.exam-score.fail { color: var(--bad); }

/* ---------- 登录 / 注册界面 ---------- */
.auth { max-width: 420px; margin: 0 auto; text-align: center; padding-top: calc(9vh + var(--safe-t)); }
.auth-logo { font-size: 48px; margin-bottom: 6px; }
.auth h1 { font-size: 24px; margin: 4px 0 6px; }
.auth-sub { color: var(--ink-soft); font-size: 14px; margin: 0 0 24px; }
.auth-role { display:flex; align-items:center; gap:14px; width:100%; text-align:left;
  background: var(--card); border:1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin-bottom: 14px; }
.auth-role .ic { font-size: 30px; }
.auth-role b { display:block; font-size: 17px; }
.auth-role small { color: var(--ink-soft); font-size: 13px; }
.auth-role:active { background: var(--card2); }
.auth-in { width:100%; background: var(--bg2); border:1px solid var(--line); color: var(--ink);
  border-radius: 12px; padding: 13px 14px; font-size: 16px; font-family: inherit; margin-bottom: 12px; }
.auth-btn { width:100%; background: linear-gradient(135deg, var(--brand), var(--brand2)); color:#fff;
  border-radius: 12px; padding: 14px; font-size: 16px; font-weight: 700; margin-top: 4px; }
.auth-btn.ghost { background: var(--card); color: var(--ink-soft); }
.auth-err { color: var(--bad); font-size: 13px; min-height: 18px; margin-bottom: 6px; }
.auth-back { background:none; color: var(--ink-soft); font-size: 14px; padding: 6px 0; margin: -6px 0 10px; display:block; }
.auth-students { display:grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-top: 8px; }
.auth-stu { background: var(--card); border:1px solid var(--line); border-radius: 16px; padding: 18px 10px; }
.auth-stu .av { display:block; font-size: 40px; margin-bottom: 8px; }
.auth-stu b { font-size: 16px; }
.auth-stu:active { background: var(--card2); }
.auth-pick { margin-bottom: 8px; } .auth-pick .av { font-size: 52px; display:block; } .auth-pick b { font-size: 20px; }
.auth-switch { margin-top: 18px; color: var(--ink-soft); font-size: 14px; }
.auth-switch a { color: var(--brand2); text-decoration: none; font-weight: 600; }

/* ---------- 底部 Tab 栏 ---------- */
/* 应用外壳：钉死在视口四边的固定容器（不用会变的高度单位，全屏模式下打开也不抖），
   内容区内部滚动，底栏作为常驻 flex 子项，永远在最底。 */
.tabbed {
  position: fixed; top: 0; bottom: 0; left: 0; right: 0;   /* 钉满视口：全屏模式=整屏，tab 落最底 */
  max-width: 480px; margin: 0 auto;
  display: flex; flex-direction: column;
}
.tabbed > .screen { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.tabbar {
  flex-shrink: 0; z-index: 30;
  display: flex; background: rgba(15,23,42,.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding-bottom: var(--safe-b);
}
.tab {
  flex: 1; background: none; padding: 10px 0 8px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--ink-soft); font-size: 11px; transition: transform .1s;
}
.tab:active { transform: scale(.92); }
.tab .ic { font-size: 22px; filter: grayscale(.6) opacity(.7); }
.tab.on { color: var(--brand2); }
.tab.on .ic { filter: none; }
.tab.on .lb { font-weight: 700; }

.tab-title { font-size: 22px; margin: 8px 4px 2px; }
.tab-sub { color: var(--ink-soft); font-size: 13px; margin: 0 4px 14px; line-height: 1.5; }

/* ---------- 句子列表 ---------- */
.sent-row {
  width: 100%; text-align: left; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 14px; margin-bottom: 10px;
  display: flex; align-items: center; gap: 12px; transition: transform .1s;
}
.sent-row:active { transform: scale(.99); }
.sent-main { flex: 1; min-width: 0; }
.sent-en { font-size: 16px; font-weight: 600; line-height: 1.4; }
.sent-zh { font-size: 13px; color: var(--ink-soft); margin-top: 3px; }
.sent-play {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  display: grid; place-items: center; font-size: 19px;
}
.sent-play.playing { animation: ring .6s ease; }

/* ---------- SRS 统计条 ---------- */
.srs-stat {
  display: flex; gap: 8px; margin: 0 0 16px;
}
.srs-stat span {
  flex: 1; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 6px; text-align: center;
  font-size: 12px; color: var(--ink-soft);
}
.srs-stat b { display: block; font-size: 20px; color: var(--ink); margin-top: 2px; }
.list-label { font-size: 13px; color: var(--ink-soft); font-weight: 700; margin: 6px 4px 8px; }

/* ---------- 错题行 ---------- */
.mrow {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 14px; margin-bottom: 10px;
}
.mrow-emo { font-size: 28px; flex: 0 0 auto; width: 34px; text-align: center; }
.mrow-emo.dot { color: var(--ink-soft); font-size: 20px; }
.mrow-main { flex: 1; min-width: 0; }
.mrow-main b { font-size: 18px; }
.mrow-ph { color: var(--brand2); font-size: 13px; margin-left: 6px; font-family: "Times New Roman", serif; }
.mrow-mn { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.mrow-x { font-size: 12px; color: var(--bad); font-weight: 700; flex: 0 0 auto; }
.mrow-due { font-size: 11px; color: var(--gold); font-weight: 700; flex: 0 0 auto; background: #ffd54a1a; padding: 3px 7px; border-radius: 999px; }
.mbar { display: flex; gap: 3px; margin-top: 6px; }
.mbar i { width: 16px; height: 5px; border-radius: 3px; background: var(--line); }
.mbar i.on { background: linear-gradient(90deg, var(--good), #10b981); }
.mrow-play {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
  background: var(--card2); font-size: 17px;
}
.mrow-play.playing { animation: ring .6s ease; }

/* ---------- 卡片配图（图标/照片替换 emoji） ---------- */
.card-img {
  width: 140px; height: 140px; margin: 8px auto 4px;
  border-radius: 24px; background: #fff;
  background-size: 74%; background-repeat: no-repeat; background-position: center;
  box-shadow: 0 8px 20px -8px rgba(0,0,0,.5); animation: pop .35s;
}
