/* 一句入戏 v2 — 单屏步骤机 */
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;padding:0;height:100%}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{
  background:#e9eff5;color:#12263a;
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  overscroll-behavior:none;
}
button{font:inherit;color:inherit;border:0;background:none;cursor:pointer;touch-action:manipulation}
:focus-visible{outline:3px solid #369fe2;outline-offset:2px;border-radius:8px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

.app{
  position:relative;display:flex;flex-direction:column;
  height:100vh;height:100dvh;width:min(100%,560px);margin:0 auto;background:#fff;overflow:hidden;
}
@media(min-width:600px){.app{box-shadow:0 30px 80px #102c4d26}}

/* ── 顶栏 ── */
.topbar{flex:none;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;
  padding:11px 18px;background:#102c4d;color:#fff}
.brand{font-size:17px;font-weight:900;color:#ffe7a6;letter-spacing:.02em;white-space:nowrap}
.brand s{text-decoration:none;margin-right:5px}
.pips{display:flex;gap:5px;justify-content:center}
.pip{width:20px;height:5px;padding:7px 0;box-sizing:content-box;border:0;cursor:pointer;
  border-radius:3px;background:#ffffff2b;background-clip:content-box;transition:.28s;
  -webkit-tap-highlight-color:transparent}
.pip:active{transform:scaleY(1.6)}
.pip.on{background:#ffe7a6;background-clip:content-box;width:26px}
.pip.done{background:#ff5f88;background-clip:content-box}
.again{font-size:12px;font-weight:800;padding:7px 11px;border-radius:11px;background:#ffffff1f;color:#dfe9f2}

/* ── 舞台 ── */
.stage{position:relative;flex:1;min-height:0}
.scene{
  --accent:#369fe2;--tint:#e8f5ff;--tintInk:#1a76a9;
  position:absolute;inset:0;display:none;flex-direction:column;overflow-y:auto;overflow-x:hidden;
  padding:15px 18px 4px;-webkit-overflow-scrolling:touch;
}
.scene.on{display:flex;justify-content:flex-start;animation:sceneIn .34s cubic-bezier(.2,.8,.3,1)}
@keyframes sceneIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
/* 七步各自的色：第 2 步「懂意思」用青，第 3 步木鱼用木色，后面几步沿用原来的色 */
.scene[data-step="2"]{--accent:#2fa39a;--tint:#e6f8f5;--tintInk:#1d7d76}
.scene[data-step="3"]{--accent:#d78f4a;--tint:#fdf1e2;--tintInk:#a9671f}
.scene[data-step="4"]{--accent:#ff8b39;--tint:#fff2e2;--tintInk:#bd6416}
.scene[data-step="5"]{--accent:#7757e8;--tint:#f1ecff;--tintInk:#6244d8}
.scene[data-step="6"]{--accent:#ff5f88;--tint:#ffedf3;--tintInk:#c93d68}
.scene[data-step="7"]{--accent:#12a06a;--tint:#e6f8f0;--tintInk:#0b7d52}

.mid{flex:1;display:flex;flex-direction:column;justify-content:center;min-height:0;padding:2px 0 8px}

.kicker{display:flex;align-items:center;gap:9px;margin:0 0 11px;flex:none}
.kicker .n{width:27px;height:27px;border-radius:9px;display:grid;place-items:center;
  font-size:14px;font-weight:900;color:#fff;background:var(--accent);flex:none}
.kicker h2{margin:0;font-size:17.5px;font-weight:900;letter-spacing:-.01em;white-space:nowrap}
.kicker .tag{margin-left:auto;font-size:11px;font-weight:800;padding:4px 9px;border-radius:20px;
  background:var(--tint);color:var(--tintInk);white-space:nowrap;flex:none}

/* ── 视频 ── */
.frame{position:relative;flex:none;border-radius:18px;overflow:hidden;background:#08131f;
  box-shadow:0 10px 26px #102c4d24}
.frame video{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;background:#08131f}
.play{position:absolute;inset:0;display:grid;place-items:center;background:#08131f3d;transition:.2s}
.play i{width:62px;height:62px;border-radius:50%;display:grid;place-items:center;font-style:normal;
  font-size:20px;color:#fff;border:2px solid #ffffffcc;background:#102c4ddb;box-shadow:0 8px 22px #0006;
  padding-left:3px}
.frame.playing .play{opacity:0;pointer-events:none}
.frame.playing .play i{transform:scale(.9)}

.cap{margin:13px 2px 0;font-size:14px;line-height:1.62;color:#54708a;flex:none}
.cap b{color:#12263a;font-weight:800}

/* ── 句子 ── */
.line{display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-end;gap:8px;
  margin:2px 0 6px;flex:none}
.chip{font-family:Georgia,"Times New Roman",serif;font-weight:800;
  font-size:clamp(23px,6.9vw,31px);line-height:1.16;padding:7px 13px;border-radius:15px;
  border:1px solid #e3edf4;background:#fff;color:#12263a;box-shadow:0 2px 7px #102c4d0d;
  transition:transform .15s,background .15s,color .15s,box-shadow .15s}
.chip:active{transform:scale(.97)}
.chip.per{font-size:clamp(23px,6.9vw,31px);color:#12263a;border:0;background:none;box-shadow:none;
  padding:0 0 6px 0;align-self:flex-end;line-height:1}
.chip.hot{background:#ff5f88;border-color:#ff5f88;color:#fff;transform:translateY(-3px) scale(1.05);
  box-shadow:0 10px 20px #ff5f8842}
.chip.gone{color:#8ea8bc;background:#eef5fa;border-style:dashed;border-color:#c9dced;box-shadow:none;letter-spacing:.1em}
.chip.hintpin{border-color:#c9d9e5}
.zh{margin:2px 0 0;text-align:center;font-size:14px;color:#7a90a3;font-weight:700;flex:none}
.zh b{color:#12263a}

/* ── 第 2 步：这句在说什么 ── */
.zhbig{margin:0 0 16px;text-align:center;font-size:clamp(21px,6vw,27px);line-height:1.35;
  font-weight:900;color:#12263a;letter-spacing:.01em;flex:none}
.zhbig .q{display:block;margin-top:7px;font-size:13px;font-weight:800;color:#1d7d76;
  letter-spacing:.06em}
.listenall{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;
  min-height:52px;margin-top:16px;border-radius:16px;font-size:16px;font-weight:900;
  background:#e6f8f5;color:#1d7d76;transition:.18s;flex:none}
.listenall i{font-style:normal;font-size:18px}
.listenall.on{background:#2fa39a;color:#fff;box-shadow:0 10px 22px #2fa39a3d}
.scene[data-step="2"] .chip{background:#fbfefd;border-color:#d8ece9}
.scene[data-step="2"] .chip.hot{background:#2fa39a;border-color:#2fa39a;color:#fff;
  box-shadow:0 10px 20px #2fa39a3d}
/* 第 2 步顶上那一幕：和第一步的视频框同一个形状，接上画面不割裂 */
.shot img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;background:#08131f}
.shot{width:100%;max-width:420px;margin:0 auto 14px}
/* 长句：截图压扁一点，把竖向空间让给英文 */
.shot.compact{height:126px}
.shot.compact img{height:100%;aspect-ratio:auto;object-fit:cover;object-position:center 42%}

/* ── 速度 ── */
.speeds{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:14px;flex:none}
.speed{border-radius:16px;padding:11px 5px 9px;background:#f5f9fc;transition:.18s;
  display:flex;flex-direction:column;align-items:center;gap:1px}
.speed .em{font-size:17px;line-height:1.1}
.speed .nm{font-size:13px;font-weight:900}
.speed .rt{font-size:11px;font-weight:800;color:#7d93a6}
.speed.live{background:#fff;box-shadow:0 0 0 3px #ff5f88,0 8px 18px #ff5f8830}
.speed.locked{opacity:.42}
.speed .dots{display:flex;gap:4px;margin-top:5px;height:6px}
.dt{width:6px;height:6px;border-radius:50%;background:#d3e0ea;transition:.2s}
.dt.on{background:#ff5f88;transform:scale(1.15)}

/* ── 进度条 ── */
.track{margin-top:14px;padding:11px 14px;border-radius:14px;background:#f6fafc;flex:none}
.track .row{display:flex;justify-content:space-between;align-items:baseline;
  font-size:12px;font-weight:800;color:#6b8698}
.track .row b{font-size:15px;color:#12263a}
.bar{height:6px;border-radius:4px;background:#e3edf4;overflow:hidden;margin-top:8px}
.bar i{display:block;height:100%;width:0;border-radius:4px;background:#ff5f88;transition:width .35s}

/* ── 通用小件 ── */
.note{margin:12px 0 0;font-size:12.5px;line-height:1.55;color:#7a90a3;flex:none}
.note b{color:#ff5f88}
.center{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;min-height:0}
.mini{font-size:12.5px;font-weight:800;color:#7c93a5;background:#f4f9fc;border-radius:11px;padding:9px 13px}

/* 遮字 */
.maskbox{margin-top:10px;flex:none;display:grid;grid-template-columns:1fr 1.45fr;gap:9px}
.ghostbtn{background:#f4f9fc;color:#3d5a72}
.ladder{display:flex;gap:6px;justify-content:center;margin:0 0 16px;flex:none}
.rung{font-size:10.5px;font-weight:900;letter-spacing:.02em;padding:5px 10px;border-radius:20px;
  background:#f1f5f9;color:#a3b5c4;transition:.2s}
.rung.on{background:#7757e8;color:#fff}
.rung.past{background:#e9e2ff;color:#6a4fd0}
.scene[data-step="5"] .chip{font-size:clamp(25px,7.4vw,33px)}
.maskbtn{width:100%;min-height:48px;border-radius:14px;font-size:15px;font-weight:900;
  background:var(--tint);color:var(--tintInk)}
.rhythm{display:flex;gap:7px;justify-content:center;margin:12px 0 0;height:12px}
.rhythm i{width:9px;height:9px;border-radius:50%;background:#d6e3ee;transition:.25s}
.rhythm i.on{background:#7757e8;transform:scale(1.25)}

/* 配音 */
.recwrap{display:flex;flex-direction:column;align-items:center;gap:11px;margin-top:16px;flex:none}
.meter{display:flex;align-items:flex-end;gap:4px;height:46px}
.meter i{width:5px;height:8px;border-radius:3px;background:#ffb7cb;transition:height .08s linear}
.micwarn{margin:12px 0 0;padding:10px 12px;border-radius:12px;background:#fff4e8;color:#a9642a;
  font-size:12px;line-height:1.55;font-weight:700;text-align:center}
.micwarn a{color:#d1456e;font-weight:900}
.scene{position:absolute;inset:0}
.ghost{position:absolute;right:2px;top:-18px;font-family:Georgia,serif;font-weight:900;
  font-size:132px;line-height:.9;color:var(--tint);opacity:.45;user-select:none;
  pointer-events:none;z-index:0}
.scene>*{position:relative;z-index:1}
.rec{width:86px;height:86px;border-radius:50%;background:#ff5f88;color:#fff;font-size:30px;
  display:grid;place-items:center;box-shadow:0 12px 28px #ff5f8847;transition:.18s}
.rec.on{background:#e23358;animation:pulse 1.1s ease-in-out infinite}
@keyframes pulse{0%,100%{transform:scale(1);box-shadow:0 0 0 0 #e2335866}50%{transform:scale(1.05);box-shadow:0 0 0 16px #e2335800}}
.rec .lbl{font-size:12px;font-weight:900}
.rec-tip{font-size:13px;color:#7a90a3;font-weight:700;text-align:center;line-height:1.5}
.replay{font-size:13.5px;font-weight:900;color:#c93d68;background:#ffedf3;border-radius:12px;padding:10px 16px}

/* 验证 */
.ask{margin-top:16px;flex:none}
.ask h3{margin:0 0 3px;font-size:16px;font-weight:900}
.ask p{margin:0 0 11px;font-size:13px;color:#7a90a3;line-height:1.5}
.choices{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.choice{min-height:52px;border-radius:15px;font-size:14px;font-weight:900;
  background:#f5f9fc;color:#2c4a61;padding:8px}
.choice.yes{background:#e6f8f0;color:#0b7d52}

/* ── 第 2 步：敲木鱼 ── */
.mh-prog{display:flex;flex-wrap:wrap;gap:4px;margin:0 0 10px;flex:none}
.mhp{width:16px;height:5px;border-radius:3px;background:#ecdfcd;transition:.25s}
.mhp.done{background:#d78f4a}
.mhp.cur{background:#a9671f;width:26px}

.mh-top{display:flex;align-items:center;gap:10px;flex:none;margin-bottom:9px}
.mh-monk{width:66px;height:66px;flex:none;border-radius:19px;background:var(--tint);
  display:grid;place-items:center;transition:.14s}
.mh-monk:active{transform:scale(.94)}
.mh-monk-art{width:56px;height:56px;display:block}
.mh-bubble{position:relative;flex:1;min-width:0;background:#fff;border:1.5px dashed #e6d4ba;
  border-radius:15px;padding:9px 12px}
.mh-bubble b{display:block;font-size:19px;font-weight:900;color:#a2865f;letter-spacing:.08em}
.mh-bubble b em{font-style:normal;font-family:Georgia,"Times New Roman",serif;font-size:23px;
  color:#12263a;letter-spacing:0}
.mh-bubble span{display:block;margin-top:4px;font-size:11.5px;font-weight:800;color:#a08a6e}

.scene[data-step="3"] .mid{justify-content:flex-start;padding-top:2px}
/* 整句还摆在那儿：不敲的词淡掉，当前这个词是空缺 */
.mh-line[hidden]{display:none!important}
.mh-line{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:center;
  gap:5px 7px;margin:0 0 12px;padding:9px 10px;border-radius:14px;
  background:#fbfaf7;border:1px solid #f0e6d6;flex:none}
.mh-line .mtok{font-family:Georgia,"Times New Roman",serif;font-weight:800;
  font-size:clamp(15px,4.3vw,19px);line-height:1.15;color:#c3b8a8;transition:.2s}
.mh-line .mtok.key{color:#8a7a63}
.mh-line .mtok.past{color:#d78f4a}
.mh-line .mtok.cur{color:#a9671f}
.mh-line .mtok.cur i{display:inline-block;min-width:1.6em;border-bottom:2px solid #d78f4a;
  font-style:normal;color:transparent}
.mh-line .mpun{font-family:Georgia,serif;font-weight:800;font-size:15px;color:#cfc4b3}
.mh-line.long .mtok{font-size:clamp(13px,3.7vw,16px)}
/* 全过之后：重点词用木色标出来，其余保持白底 */
.mh-all{width:100%}
.mh-all .chip{font-size:clamp(17px,4.8vw,22px);padding:5px 9px;border-radius:12px}
.mh-all .chip.per{font-size:clamp(17px,4.8vw,22px);padding:0 0 4px 0}
.mh-all .chip.on-key{background:#fdf1e2;border-color:#e8d2b0;color:#8a5a1c}
.mh-stage{flex:0 0 auto;display:flex;align-items:center;justify-content:center;
  min-height:152px;padding:4px 0}
.mh-stage.shake{animation:mhShake .4s}
@keyframes mhShake{0%,100%{transform:none}20%{transform:translateX(-6px)}
  45%{transform:translateX(5px)}70%{transform:translateX(-3px)}}
.mh-houses{display:flex;align-items:flex-end;justify-content:center;flex-wrap:wrap;gap:9px;
  padding-bottom:4px}
.mh-hut{display:flex;flex-direction:column;align-items:center;min-width:70px;transition:opacity .2s;
  animation:mhIn .3s backwards cubic-bezier(.2,.9,.3,1.3)}
@keyframes mhIn{from{opacity:0;transform:translateY(8px) scale(.9)}}
.mh-roof{width:100%;height:27px;background:#ecdfcd;border-radius:5px 5px 0 0;
  clip-path:polygon(50% 0,100% 55%,100% 100%,0 100%,0 55%)}
.mh-hut.is-cur .mh-roof{background:#f0c68e}
.mh-hut.is-done .mh-roof{background:#cfe3c4}
.mh-hut.is-wait{opacity:.5}
.mh-body{position:relative;display:flex;flex-direction:column;align-items:center;background:#fff;
  border:1.5px solid #ece0cf;border-top:0;border-radius:0 0 11px 11px;padding:11px 12px 9px;min-width:70px}
.mh-hut.is-cur .mh-body{border-color:#d78f4a;box-shadow:0 0 0 3px #d78f4a1f,0 6px 15px #d78f4a2b}
.mh-hut.is-done .mh-body{border-color:#cfe3c4;background:#fbfff8}
.mh-letters{display:flex;gap:3px;font-family:Georgia,"Times New Roman",serif;font-weight:800;
  font-size:32px;line-height:1.12}
.mh-lt.v{color:#e8547d}
.mh-lt.c{color:#1b2b46}
.mh-lt.n{color:#c2cbd8}
.mh-slot{display:block;width:22px;height:28px;border-bottom:3px solid #e8dcc9;border-radius:2px}
.mh-hut.is-cur .mh-slot{border-bottom-color:#d78f4a;background:#fdf1e2;border-radius:4px;opacity:1}
.mh-houses.few{gap:14px}
.mh-houses.few .mh-hut{min-width:88px}
.mh-houses.few .mh-body{padding:14px 16px 11px;min-width:88px}
.mh-houses.few .mh-letters{font-size:34px}
.mh-houses.few .mh-slot{width:22px;height:28px}
.mh-houses.many{gap:6px}
.mh-houses.many .mh-hut{min-width:54px}
.mh-houses.many .mh-body{padding:9px 8px 7px;min-width:54px}
.mh-houses.many .mh-letters{font-size:25px}
.mh-houses.many .mh-slot{width:17px;height:22px}
.mh-houses.many .mh-roof{height:22px}
.mh-ipa{font-style:normal;margin-top:3px;font-size:11px;font-weight:800;color:#e8547d}
.mh-ck{position:absolute;right:-7px;top:-7px;width:18px;height:18px;border-radius:50%;
  background:#7fbf5a;color:#fff;font-size:11px;display:grid;place-items:center;font-weight:900}

.mh-ask{display:flex;align-items:flex-start;gap:8px;margin-top:12px;flex:none}
.mh-ask[hidden]{display:none!important}
.mh-tiles{display:flex;flex-wrap:wrap;gap:7px;flex:1}
.mh-tile{min-width:46px;height:52px;border-radius:13px;background:#fff;border:1.5px solid #ece0cf;
  font-family:Georgia,"Times New Roman",serif;font-size:23px;font-weight:800;
  box-shadow:0 2px 6px #102c4d0f}
.mh-tile.v{color:#e8547d;border-color:#f6d6e0}
.mh-tile.c{color:#1b2b46}
.mh-tile:active{transform:translateY(2px);box-shadow:none}
.mh-undo{flex:none;height:52px;padding:0 12px;border-radius:13px;background:#f7efe4;
  color:#8a6a3f;font-size:12.5px;font-weight:900}
.mh-fb{margin:9px 0 0;min-height:16px;flex:none;text-align:center;font-size:12.5px;
  font-weight:800;color:#c9581f}

.mh-follow{display:flex;flex-direction:column;align-items:center;gap:9px;width:100%}
.mh-word{font-family:Georgia,"Times New Roman",serif;font-size:35px;font-weight:800;
  letter-spacing:-.01em;color:#12263a;line-height:1.1}
.mh-tapdots{display:flex;gap:6px}
.mh-tapdots i{width:8px;height:8px;border-radius:50%;background:#e8ddcd}
.mh-tapdots i.on{background:#7fbf5a}
.mh-wood{display:flex;align-items:center;gap:8px;padding:8px 16px 8px 9px;border-radius:17px;
  background:var(--tint);color:var(--tintInk);font-size:14px;font-weight:900;
  box-shadow:0 6px 16px #d78f4a29}
.mh-wood:active{transform:translateY(2px)}
.mh-muyu-art{width:44px;height:40px;display:block}

.mh-win{display:flex;flex-direction:column;align-items:center;width:100%;padding:6px 0 2px;
  animation:pop .34s cubic-bezier(.2,.9,.3,1.2)}
.mh-win-word{font-family:Georgia,"Times New Roman",serif;font-size:36px;font-weight:800;color:#12263a}
.mh-win-zh{margin-top:2px;font-size:13px;font-weight:800;color:#7a90a3}
.mh-win-tip{margin-top:7px;font-size:12.5px;font-weight:900;color:#0b7d52}
.mh-all{display:flex;flex-direction:column;align-items:center;gap:10px;width:100%}
.mh-all .line{margin:0}
.mh-all-tip{font-size:12.5px;font-weight:800;color:#7a90a3;text-align:center;line-height:1.5}

/* ── 单词浮层：生手卡 / 熟手卡 ── */
.sheet{position:absolute;inset:0;z-index:30;display:none}
.sheet.on{display:block}
.scrim{position:absolute;inset:0;background:#102c4d73;animation:fade .22s ease-out}
@keyframes fade{from{opacity:0}}
.card{position:absolute;left:0;right:0;bottom:0;max-height:92%;overflow-y:auto;background:#fff;
  border-radius:24px 24px 0 0;padding:8px 18px calc(22px + env(safe-area-inset-bottom));
  animation:up .32s cubic-bezier(.2,.85,.3,1);box-shadow:0 -14px 40px #102c4d33}
@keyframes up{from{transform:translateY(102%)}}
.grab{width:42px;height:4px;border-radius:3px;background:#dde8f0;margin:6px auto 10px}
.card .x{position:absolute;right:12px;top:12px;width:32px;height:32px;border-radius:50%;
  background:#f2f7fa;color:#7c93a5;font-size:15px;display:grid;place-items:center}

.cardtop{display:flex;align-items:center;gap:8px;margin:2px 0 8px}
.ctag{font-size:11px;font-weight:900;letter-spacing:.04em;padding:4px 10px;border-radius:20px;
  background:#eef4ff;color:#3358c4}
.ctag.beginner{background:#fdeef5;color:#c0396b}
.csub{font-size:11px;font-weight:800;color:#a3b4c3}

.wordrow{display:flex;align-items:baseline;gap:10px;padding-right:40px}
.cw{margin:0;font-family:Georgia,"Times New Roman",serif;font-weight:800;font-size:38px;
  letter-spacing:-.01em;line-height:1.1}
.cw .c{color:#1b2b46}
.cw .v{color:#e8547d}
.cw .n{color:#9fb0c0}
.czh{font-size:14px;font-weight:800;color:#c05a79}

.ipa{display:inline-block;margin:8px 0 2px;padding:5px 13px;border-radius:12px;background:#f4f7fb;
  font-size:18px;font-weight:700;letter-spacing:.01em}
.ipa .c{color:#7d8ea3}
.ipa .v{color:#e8547d}
.ipa .n{color:#b8c4d1;font-weight:400}

.yard{position:relative;margin:12px 2px 3px;padding:22px 8px 18px;border:1px solid #e6eff8;
  border-radius:18px;background:#fafdff;display:flex;justify-content:center;align-items:flex-end;
  overflow:hidden}
.houses{position:relative;display:flex;align-items:flex-end;gap:6px;padding-bottom:9px}
.houses:after{content:"";position:absolute;left:-18px;right:-18px;bottom:0;height:24px;
  border-radius:50%;background:#cfe3c4;z-index:0}
.hut{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;
  width:var(--w,58px);transform-origin:50% 100%;
  animation:hutIn .34s backwards cubic-bezier(.2,.9,.3,1.3)}
@keyframes hutIn{from{opacity:0;transform:translateY(10px) scale(.86)}to{opacity:1;transform:none}}
.hut .roof{position:relative;width:104%;margin-left:-2%;height:34px;background:#dceafa;
  border-radius:6px 6px 0 0;
  clip-path:polygon(50% 0,100% 58%,100% 100%,0 100%,0 58%)}
.hut .roof:after{content:"";position:absolute;left:0;right:0;bottom:0;height:6px;background:#c9dcf2}
.hut.s .roof{height:25px}
.hut .body{width:100%;display:flex;background:#fff;border:1px solid #dbe7f2;border-top:0;
  border-radius:0 0 10px 10px;padding:8px 1px 7px;box-shadow:0 3px 7px #1b2b4612}
.hut .col{flex:1;display:flex;flex-direction:column;align-items:center;min-width:0;
  padding:2px 1px 3px;border-radius:8px;transition:background .13s,box-shadow .13s}
.hut .col+.col{border-left:1px solid #eef4fa}
.hut .lt{font-family:Georgia,"Times New Roman",serif;font-weight:800;font-size:26px;line-height:1.05;
  display:block;transform-origin:50% 85%}
.hut.s .lt{font-size:22px}
.hut .ph{font-style:normal;font-size:10px;font-weight:700;margin-top:3px;letter-spacing:-.02em}
.hut .lt.c,.hut .ph.c{color:#1b2b46}
.hut .lt.v,.hut .ph.v{color:#e8547d}
.hut .lt.n{color:#9fb0c0}
.hut .ph.cc{color:#8b9cad;font-weight:600}
.hut .ph.vv{color:#e8547d}
/* 音轨走到哪一拍，哪个字母就亮、就跳 —— 幅度「中」：抬起 7px、放大 1.18 */
.hut .col.on{background:linear-gradient(180deg,#fff0b8,#ffe28a);box-shadow:inset 0 0 0 2px #eec352,0 3px 9px #e0ab2f45}
.hut .col.on .lt{animation:ltPop .34s cubic-bezier(.2,.9,.3,1.4);color:#0f2b4a}
.hut .col.on .ph{color:#8a6b1f}
@keyframes ltPop{0%{transform:translateY(0) scale(1)}38%{transform:translateY(-7px) scale(1.18)}100%{transform:translateY(0) scale(1)}}
.hut.hot .roof{background:#f7e3b0}
.hut.hot .roof:after{background:#eed49a}
.hut.tap .body{animation:tapHut .34s}
/* 只有一两间房的短词（I'm / not 之外的多半是它）：房子放大一点，别在框里晃着一小块 */
.yard.sparse .hut .lt{font-size:38px}
.yard.sparse .hut.s .lt{font-size:34px}
.yard.sparse .hut .ph{font-size:13px;margin-top:5px}
.yard.sparse .hut .roof{height:50px}
.yard.sparse .hut.s .roof{height:40px}
.yard.sparse .hut .body{padding:11px 2px 10px}
@keyframes tapHut{50%{transform:translateY(-4px)}}

.acts{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
.act{min-height:50px;border-radius:15px;font-size:14.5px;font-weight:900;background:#fff;
  color:#24466b;border:1.5px solid #dbe6f1;transition:.16s}
.act.pri{background:#102c4d;color:#fff;border-color:#102c4d;box-shadow:0 8px 18px #102c4d33}
.act:active{transform:scale(.985)}
.act.on{background:#e8436d;border-color:#e8436d;color:#fff}
.acts.one{grid-template-columns:1fr}
.yard[hidden],.acts .act[hidden],.ipa[hidden]{display:none!important}
.yard[hidden]+.acts{margin-top:4px}

.rule{margin:11px 0 0;padding:9px 12px;border-radius:12px;background:#fff7de;color:#6a5a33;
  font-size:12.5px;line-height:1.5;font-weight:700}

/* ── 成就 ── */
.veil{position:fixed;inset:0;z-index:60;display:none;place-items:center;padding:22px;
  background:#0b1f33f0;animation:fade .3s}
.veil.on{display:grid}
.veil>div{width:100%;max-width:340px}
.film{position:relative;width:100%;max-width:340px;background:#102c4d;color:#fff;
  border-radius:18px;padding:24px 20px 20px;text-align:center;overflow:hidden;
  box-shadow:0 24px 60px #000a;animation:pop .45s cubic-bezier(.2,.9,.3,1.2)}
@keyframes pop{from{transform:scale(.86) translateY(14px);opacity:0}}
.film:before,.film:after{content:"";position:absolute;top:0;bottom:0;width:13px;
  background:repeating-linear-gradient(#ffffff2e 0 7px,transparent 7px 16px)}
.film:before{left:0}.film:after{right:0}
.film .no{font-size:11px;font-weight:900;letter-spacing:.16em;color:#ffe7a6b3}
.film .en{font-family:Georgia,serif;font-size:26px;font-weight:800;color:#ffe7a6;
  margin:9px 0 4px;line-height:1.25}
.film .zhs{font-size:13px;color:#ffffffa8;font-weight:700}
.film .say{margin-top:15px;font-size:13.5px;line-height:1.6;color:#fff;font-weight:800}
.film .say em{font-style:normal;color:#ffb3c8}
.reel{display:grid;grid-template-columns:repeat(25,1fr);gap:2px;margin-top:16px}
.reel i{height:5px;border-radius:2px;background:#ffffff26}
.reel i.on{background:#ff5f88}
.reelcap{margin-top:7px;font-size:11px;color:#ffffff8c;font-weight:800}
.veil .close{margin-top:18px;font-size:13.5px;font-weight:900;color:#102c4d;
  background:#ffe7a6;padding:12px 26px;border-radius:14px;animation:pop .5s .12s both}

/* ── 底栏 ── */
.dock{flex:none;padding:9px 18px calc(11px + env(safe-area-inset-bottom));
  background:#fff;border-top:1px solid #edf3f7;box-shadow:0 -8px 22px #102c4d0d}
.hint{margin:0 0 8px;min-height:18px;text-align:center;font-size:12.5px;line-height:1.45;
  color:#7a90a3;font-weight:700}
.hint b{color:#d1456e}
.cta{width:100%;min-height:52px;border-radius:16px;background:#ff5f88;color:#fff;
  font-size:16.5px;font-weight:900;letter-spacing:.02em;box-shadow:0 8px 20px #ff5f8840;
  transition:.18s}
.cta:disabled{background:#e8eef3;color:#96a9b8;box-shadow:none}
.cta:active:not(:disabled){transform:translateY(1px)}
@media(max-width:360px){
  .kicker h2{font-size:15.5px}
  .chip{font-size:22px;padding:6px 10px}
  .kicker .tag{display:none}
}

/* 长句（>9 个词）自动缩小词块，避免在 390 宽上把主卡片撑爆 */
.line.tight{gap:6px}
.line.tight .chip{font-size:clamp(20px,5.7vw,27px);padding:6px 10px;border-radius:13px}
.line.tight .chip.per{font-size:clamp(20px,5.7vw,27px);padding:0 0 5px 0}
.line.tighter{gap:5px}
.line.tighter .chip{font-size:clamp(17px,4.9vw,23px);padding:5px 8px;border-radius:12px}
.line.tighter .chip.per{font-size:clamp(17px,4.9vw,23px);padding:0 0 4px 0}
.line.long{gap:6px}
.line.long .chip{font-size:clamp(16px,4.4vw,21px);padding:5px 9px;border-radius:12px}
.line.long .chip.per{font-size:clamp(16px,4.4vw,21px);padding:0 0 4px 0}

/* 成就卡下面的「看全部」出口 */
.tolist{text-align:center;margin-top:12px}
.tolist a{color:#ffe7a6;font-size:13px;font-weight:800;text-decoration:none;
  padding:8px 14px;border-radius:11px;background:#ffffff1a}
