/* A light, chapter-local shell; the shared animation engine keeps its original coordinate system. */
:root {
  --lesson-bg: #f7f7f2;
  --lesson-paper: #fffdf7;
  --lesson-ink: #302e29;
  --lesson-muted: #6c6e64;
  --lesson-line: #e5e5dc;
  --lesson-blue: #246aab;
  --lesson-blue-soft: #edf3f8;
  --lesson-green: #3e744a;
}
html:has(.lesson-page) { height: auto; overflow: auto; background: var(--lesson-bg); }
body.lesson-page { height: auto; min-height: 100vh; overflow: visible; background: var(--lesson-bg); color: var(--lesson-ink); font: 15px/1.6 "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif; }
.lesson-page * { -webkit-tap-highlight-color: transparent; }
.lesson-page ::selection { background: #d5e8f6; color: #213b4a; }
.lesson-page button, .lesson-page a, .lesson-page input { touch-action: manipulation; }
.lesson-page button { line-height: inherit; }
.body-cards-hint .during-answer,
#stage:has(.findw [role="button"]) .body-cards-hint .before-answer { display: none; }
@media (max-width: 520px) {
  .body-cards-hint text { font-size: 62px; }
}
#stage:has(.findw [role="button"]) .body-cards-hint .during-answer { display: inline; }
#stage:has(.body-cards-hint) .findw [role="button"] {
  rx: 24px; stroke: #4378a4; stroke-width: 5; touch-action: manipulation;
}
#stage:has(.body-cards-hint) .findw [role="button"]:is(:active, :focus-visible) {
  stroke: #12558e; stroke-width: 9; fill: rgb(39 112 175 / 10%);
}
@media (hover: hover) {
  #stage:has(.body-cards-hint) .findw [role="button"]:hover {
    stroke: #12558e; stroke-width: 8; fill: rgb(39 112 175 / 8%);
  }
}
.lesson-page button:focus-visible, .lesson-page a:focus-visible, .lesson-page input:focus-visible { outline: 3px solid var(--lesson-blue); outline-offset: 3px; }
.lesson-page [hidden] { display: none !important; }
.lesson-page a { color: inherit; text-decoration: none; text-underline-offset: 4px; }
.ui-icon { display: block; width: 20px; height: 20px; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 20px; top: -70px; z-index: 30; padding: 12px 20px; background: white; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.lesson-header { height: 88px; max-width: 1440px; margin: auto; padding: 0 52px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--lesson-line); }
.lesson-brand { display: inline-flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 650; line-height: 1.45; }
#brandGuide { display: grid; place-items: center; width: 48px; height: 48px; }
.brand-sub { display: block; color: var(--lesson-muted); font-size: 11px; letter-spacing: .04em; font-weight: 500; margin-top: 2px; }
.back-to-book { display: inline-flex; align-items: center; min-height: 44px; gap: 6px; color: var(--lesson-muted) !important; font-size: 13px; }
.back-to-book:hover { color: var(--lesson-blue) !important; }
.back-to-book .ui-icon { width: 16px; height: 16px; }
.lesson-main { max-width: 1440px; margin: auto; padding: 38px 52px 24px; }
.lesson-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 29px; }
.title-line { display: flex; align-items: center; gap: 16px; }
.title-line h1 { margin: 0; font-size: 34px; font-weight: 650; line-height: 1.25; letter-spacing: -.035em; }
.unit-label { padding: 3px 10px; border: 1px solid #cddded; color: var(--lesson-blue); font-size: 12px; font-weight: 650; border-radius: 6px; white-space: nowrap; }
.lesson-heading p { margin: 9px 0 0; color: var(--lesson-muted); font-size: 14px; }
.lesson-meta { display: flex; gap: 22px; font-size: 12px; color: var(--lesson-muted); padding-top: 14px; }
.lesson-meta > span { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.lesson-meta .ui-icon { width: 16px; height: 16px; }
.lesson-layout { display: grid; grid-template-columns: minmax(0, 1fr) 284px; gap: 32px; align-items: start; }
.lesson-content { min-width: 0; }
.lesson-player { position: relative; background: var(--lesson-paper); border-radius: 16px; overflow: hidden; box-shadow: 0 7px 28px rgb(49 44 30 / 7%); scroll-margin-top: 16px; }
.lesson-player:focus { outline: none; }
.stage-area { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #fbf6ea; }
.lesson-page #frame { position: absolute; left: 0; top: 0; width: 1600px; height: 900px; transform: scale(var(--k)); transform-origin: left top; border-radius: 0; box-shadow: none; overflow: hidden; background: #fbf6ea; }
.lesson-page #stage { background: #fbf6ea; }
.lesson-page #frame .caption { bottom: 24px; background: rgb(255 253 247 / 94%); }
.lesson-page #frame .paused-mark { align-items: start; padding-top: 28px; }
.lesson-page #frame .paused-mark div { background: rgb(255 253 247 / 94%); color: var(--lesson-ink); box-shadow: 0 4px 18px rgb(49 44 30 / 10%); }
.lesson-cover { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; padding: 30px 28px 30px 42px; background: var(--lesson-paper); overflow: hidden; }
.cover-copy { position: relative; z-index: 1; }
.cover-hello { margin: 0 0 15px; color: var(--lesson-blue); font-size: clamp(13px, 1.1vw, 17px); font-weight: 550; }
.cover-copy h2 { margin: 0; font-size: clamp(25px, 2.65vw, 41px); font-weight: 650; line-height: 1.48; letter-spacing: -.025em; }
.cover-description { margin: 17px 0 24px; color: var(--lesson-muted); font-size: 13px; line-height: 1.9; }
.cover-actions { display: flex; align-items: center; gap: 15px; }
.start-lesson { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 10px 23px; border: 0; border-radius: 10px; background: var(--lesson-blue); color: white; font-size: 15px; font-weight: 600; transition: background .15s, transform .15s; }
.start-lesson:hover { background: #1c568d; transform: translateY(-1px); }
.start-lesson:active { transform: translateY(1px); }
.start-lesson .ui-icon { width: 18px; height: 18px; }
.start-over { min-height: 44px; border: 0; background: transparent; color: var(--lesson-muted); font-size: 12px; padding: 5px 0; text-decoration: underline; text-underline-offset: 4px; }
.start-over:hover { color: var(--lesson-blue); }
.cover-footnote { font-size: 11px; color: var(--lesson-muted); margin: 13px 0 0; }
.cover-art { width: 115%; margin-left: -7%; }
.cover-art > svg { display: block; width: 100%; height: auto; }
.timeline { display: flex; align-items: center; gap: 16px; height: 30px; padding: 0 20px; background: #fff; border-top: 1px solid #efece3; }
#lessonSeek { appearance: none; width: 100%; min-width: 0; height: 24px; margin: 0; background: transparent; cursor: pointer; accent-color: var(--lesson-blue); }
#lessonSeek::-webkit-slider-runnable-track { height: 4px; border-radius: 3px; background: linear-gradient(to right, var(--lesson-blue) var(--progress, 0%), #e8e9e1 var(--progress, 0%)); }
#lessonSeek::-webkit-slider-thumb { appearance: none; width: 12px; height: 12px; margin-top: -4px; border-radius: 50%; background: var(--lesson-blue); border: 2px solid white; box-shadow: 0 1px 4px rgb(36 106 171 / 25%); }
#lessonSeek::-moz-range-track { height: 4px; border-radius: 3px; background: #e8e9e1; }
#lessonSeek::-moz-range-progress { height: 4px; background: var(--lesson-blue); }
#lessonSeek::-moz-range-thumb { width: 9px; height: 9px; border: 2px solid white; border-radius: 50%; background: var(--lesson-blue); }
#stepCounter { font-size: 11px; font-weight: 600; color: var(--lesson-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lesson-page #bar { position: relative; left: auto; top: auto; bottom: auto; transform: none; width: 100%; height: 62px; padding: 0 17px 10px; display: flex; flex-wrap: nowrap; gap: 5px; background: #fff; border: 0; border-radius: 0; opacity: 1 !important; pointer-events: auto !important; }
.lesson-page #bar .icon { height: 40px; width: 40px; min-width: 40px; border: 0; border-radius: 8px; background: transparent; color: var(--lesson-muted); font-size: 13px; }
.lesson-page #bar .icon > svg { width: 17px; height: 17px; fill: currentColor; }
.lesson-page #bar .icon > svg.ui-icon { fill: none; }
.lesson-page #bar .icon:hover:not(:disabled) { color: var(--lesson-blue); background: var(--lesson-blue-soft); }
.lesson-page #bar .icon:disabled { color: #a8aaa2; cursor: default; }
.lesson-page #bar #bPlay { display: flex; justify-content: center; align-items: center; gap: 6px; width: 82px; min-width: 82px; background: var(--lesson-blue); color: white; font-weight: 600; }
.lesson-page #bar #bPlay:hover:not(:disabled) { background: #1c568d; }
.lesson-page #bar #bPlay:disabled { background: var(--lesson-blue-soft); color: var(--lesson-blue); }
.lesson-page #bar #bPlay > svg { width: 13px; height: 13px; }
.lesson-page #bar #bPlay .i-pause { display: none; }
.lesson-page .is-playing #bar #bPlay .i-play { display: none; }
.lesson-page .is-playing #bar #bPlay .i-pause { display: block; }
.lesson-page #stepName { display: block; flex: 1; width: auto; min-width: 0; margin: 0 7px; font-size: 11px; color: var(--lesson-muted); text-align: left; }
.lesson-page #bar #bCC { min-width: 44px; width: 44px; }
.lesson-page #bar #bCC[aria-pressed="true"] { color: var(--lesson-blue); background: var(--lesson-blue-soft); box-shadow: none; }
.lesson-page #bar .volume { position: relative; height: 40px; width: 40px; border: 0; overflow: visible; background: transparent; border-radius: 8px; padding: 0; }
.lesson-page #bar .volume .icon { width: 40px; height: 40px; }
.lesson-page #bar .volume input { position: absolute; bottom: 46px; left: 50%; transform: translateX(-50%); width: 124px; height: 40px; padding: 0 12px; border-radius: 8px; background: white; box-shadow: 0 4px 20px rgb(49 44 30 / 13%); pointer-events: none; }
.lesson-page #bar .volume:is(:hover, :focus-within) input { opacity: 1; pointer-events: auto; }
.lesson-page #bar .volume:hover { background: var(--lesson-blue-soft); }
.learning-tip { display: flex; align-items: flex-start; gap: 12px; padding: 23px 2px 25px; }
.learning-tip > .ui-icon { margin-top: 3px; color: var(--lesson-blue); width: 18px; height: 18px; }
.learning-tip strong { display: block; font-size: 13px; font-weight: 600; }
.learning-tip p { margin: 4px 0 0; font-size: 12px; color: var(--lesson-muted); line-height: 1.7; }
.keyboard-tip { margin-left: auto; padding-top: 3px; white-space: nowrap; color: var(--lesson-muted); font-size: 10px; }
.lesson-page .keyboard-tip kbd { border-color: #d6d8cf; font-size: 10px; font-weight: 400; border-radius: 4px; opacity: 1; margin: 0 3px 0 0; padding: 2px 5px; }
.word-review { border-top: 1px solid var(--lesson-line); padding-top: 22px; }
.review-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.review-heading h2, .outline-heading h2 { margin: 0; font-size: 15px; font-weight: 650; }
.review-heading > span { color: var(--lesson-muted); font-size: 11px; }
.word-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.word-button { display: flex; align-items: center; gap: 7px; min-width: 0; min-height: 76px; padding: 9px; text-align: left; border: 1px solid var(--lesson-line); border-radius: 10px; background: transparent; transition: background .15s, border-color .15s; }
.word-button:hover, .word-button.speaking { background: #fffdf7; border-color: #b4cde1; }
.word-picture { width: 35px; flex: none; }
.word-picture img { display: block; width: 100%; height: auto; max-height: 100%; object-fit: contain; border-radius: 4px; }
.word-picture svg { display: block; width: 100%; height: auto; }
.word-name { font-size: 15px; font-weight: 600; line-height: 1.4; }
.word-name small { display: block; margin-top: 2px; color: var(--lesson-muted); font-size: 10px; font-weight: 400; }
.word-button > .ui-icon { width: 13px; height: 13px; margin-left: auto; color: var(--lesson-muted); }
.word-button.speaking > .ui-icon { color: var(--lesson-blue); }
.word-message { margin: 10px 0 0; color: #98432d; font-size: 12px; }
.lesson-outline { min-width: 0; padding: 5px 0 0 24px; border-left: 1px solid var(--lesson-line); }
.outline-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.outline-heading > span { color: var(--lesson-muted); font-size: 11px; }
.outline-intro { margin: 9px 0 22px; font-size: 11px; color: var(--lesson-muted); }
.outline-section { margin: 4px 0; border-radius: 10px; }
.section-row { display: flex; align-items: center; min-height: 73px; padding: 2px 3px 2px 10px; border-radius: 10px; }
.outline-section.current > .section-row { background: var(--lesson-blue-soft); }
.section-jump { display: flex; flex: 1; align-items: center; gap: 12px; min-width: 0; min-height: 64px; padding: 0; border: 0; background: transparent; text-align: left; }
.section-number { font-size: 12px; color: var(--lesson-muted); width: 26px; height: 30px; display: grid; place-items: center; border: 1px solid #dedfd6; border-radius: 7px; font-variant-numeric: tabular-nums; }
.section-name { font-size: 13px; font-weight: 600; }
.section-name small { display: block; margin-top: 3px; font-size: 10px; color: var(--lesson-muted); font-weight: 400; }
.current .section-number { background: var(--lesson-blue); color: white; border-color: var(--lesson-blue); }
.current .section-name { color: var(--lesson-blue); }
.section-jump:hover .section-name { color: var(--lesson-blue); }
.section-toggle { display: grid; place-items: center; min-width: 36px; height: 44px; padding: 0; border: 0; background: transparent; border-radius: 6px; color: var(--lesson-muted); }
.section-toggle:hover { color: var(--lesson-blue); background: #e2ebf2; }
.section-toggle .ui-icon { width: 15px; height: 15px; transition: transform .15s; }
.section-toggle[aria-expanded="true"] .ui-icon { transform: rotate(180deg); }
.section-steps { margin: 4px 6px 12px 23px; padding-left: 13px; border-left: 1px solid var(--lesson-line); }
.step-link { width: 100%; min-height: 40px; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 8px; border: 0; background: transparent; border-radius: 5px; text-align: left; color: var(--lesson-muted); font-size: 11px; }
.step-link small { white-space: nowrap; font-size: 9px; }
.step-link:hover, .step-link[aria-current] { background: var(--lesson-blue-soft); color: var(--lesson-blue); }
.outline-note { display: flex; align-items: flex-start; gap: 11px; margin: 25px 10px 0; padding-top: 21px; border-top: 1px solid var(--lesson-line); color: var(--lesson-muted); }
.outline-note .ui-icon { width: 17px; height: 17px; margin-top: 3px; }
.outline-note p { margin: 0; font-size: 12px; }
.outline-note p span { font-size: 11px; }
.lesson-footer { display: flex; justify-content: space-between; gap: 18px; margin-top: 42px; padding-top: 18px; border-top: 1px solid var(--lesson-line); font-size: 10px; color: var(--lesson-muted); }

/* Question states remain part of the engine, with calmer surfaces and unmistakable feedback. */
.lesson-page #ui .card { background: #fffdf9; border: 1px solid #e3ded1; border-radius: 18px; box-shadow: 0 8px 28px rgb(68 52 29 / 13%); }
.lesson-page #ui .card.screen { border: 0; border-radius: 0; box-shadow: none; }
.lesson-page #ui .card .opt { background: #fff; border: 2px solid #dddcd1; border-radius: 14px; transition: background .15s, border-color .15s; }
.lesson-page #ui .card .opt:hover:not(:disabled) { background: #eff5fa; border-color: #86adc9; }
.lesson-page #ui .card .opt.good { background: #edf6e9; border-color: #75a35e; color: #35552c; box-shadow: none; }
.lesson-page #ui .card .opt.bad { background: #fff0ea; border-color: #c8755c; color: #98432d; }
.lesson-page #ui .card .fb { padding: 8px 0 0; animation: none; }
.lesson-page #ui .card .fb.ok { color: #35552c; }
.lesson-page #ui .card .fb.no { color: #98432d; }
.lesson-page #ui .card .btn { border-radius: 12px; }
.lesson-page #ui .card .btn.go { background: var(--lesson-blue); color: #fff; }
.lesson-page #ui .card .btn.quiet { color: var(--lesson-muted); }
.lesson-page #ui .card .kicker { color: var(--lesson-blue); }
.lesson-page #ui .card .btn.sound-replay { display: inline-flex; align-items: center; min-height: 96px; margin-left: 18px; padding: 10px 22px; font-size: 36px; color: var(--lesson-blue); border-color: #b4cde1; vertical-align: middle; }
.lesson-page #ui .card .sound-replay:hover { background: var(--lesson-blue-soft); }
.lesson-page #ui .card .sound-status { display: block; margin-top: 8px; color: #98432d; font-size: 36px; }
.lesson-page #ui .card .sound-status:empty { display: none; }
.lesson-page #help { position: fixed; inset: 0; width: 100%; height: 100dvh; z-index: 50; padding: 20px; background: rgb(40 39 31 / 40%); overflow: auto; }
.lesson-page #help .help-box { position: relative; width: min(720px, 100%); padding: 30px; border: 0; border-radius: 16px; background: #fffdf7; max-height: calc(100dvh - 40px); overflow: auto; box-shadow: 0 16px 70px rgb(29 27 17 / 20%); }
.lesson-page #help h2 { font-size: 22px; margin-bottom: 24px; }
.lesson-page #help h3 { font-size: 13px; }
.lesson-page #help .help-cols { gap: 22px; }
.lesson-page #help dl { grid-template-columns: 110px 1fr; font-size: 12px; gap: 12px 0; }
.lesson-page #help dt { padding-right: 10px; }
.lesson-page #help kbd { font-size: 11px; border-width: 1px; border-radius: 4px; }
.lesson-page #help .help-close { margin-top: 22px; font-size: 12px; }
.help-dismiss { position: absolute; right: 15px; top: 15px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--lesson-muted); }
.help-dismiss:hover { background: var(--lesson-blue-soft); color: var(--lesson-blue); }

@media (max-width: 1200px) {
  .lesson-header { padding-inline: 32px; }
  .lesson-main { padding-inline: 32px; }
  .lesson-layout { grid-template-columns: minmax(0, 1fr) 245px; gap: 22px; }
  .lesson-outline { padding-left: 16px; }
  .lesson-meta { gap: 13px; }
  .lesson-meta > span:last-child { display: none; }
  .lesson-cover { padding: 20px 20px 20px 30px; }
  .cover-description { margin: 12px 0 18px; font-size: 12px; }
  .cover-hello { margin-bottom: 9px; }
  .cover-footnote { font-size: 10px; }
  .lesson-page #bar { padding-inline: 12px; gap: 2px; }
  .lesson-page #bar #bRestart { display: none; }
  .word-button { flex-wrap: wrap; justify-content: center; gap: 4px; padding: 10px 4px; text-align: center; }
  .word-picture { width: 34px; }
  .word-name { font-size: 13px; }
  .word-button > .ui-icon { display: none; }
  .keyboard-tip { display: none; }
}
@media (max-width: 1050px) {
  .lesson-layout { grid-template-columns: 1fr; }
  .lesson-meta > span:last-child { display: flex; }
  .lesson-outline { border-left: 0; border-top: 1px solid var(--lesson-line); padding: 25px 0 0; }
  #sectionList { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
  .outline-intro { margin-bottom: 12px; }
  .outline-note { display: none; }
  .cover-copy h2 { font-size: 36px; }
  .cover-description { font-size: 14px; margin: 20px 0 25px; }
  .lesson-cover { padding-left: 42px; }
  .cover-hello { font-size: 16px; }
  .lesson-page #bar #bRestart { display: grid; }
  .word-button { flex-wrap: nowrap; justify-content: flex-start; text-align: left; padding: 10px; }
  .word-picture { width: 42px; }
}
@media (max-width: 700px) {
  .lesson-header { height: 76px; padding-inline: 20px; }
  .lesson-brand { font-size: 16px; gap: 8px; }
  .brand-sub { font-size: 10px; }
  .back-to-book { font-size: 11px; }
  .lesson-main { padding: 26px 20px 22px; }
  .lesson-heading { display: block; margin-bottom: 22px; }
  .title-line { gap: 12px; }
  .title-line h1 { font-size: clamp(24px, 6.4vw, 32px); }
  .unit-label { font-size: 10px; padding: 2px 7px; }
  .lesson-heading p { font-size: 12px; }
  .lesson-meta { padding-top: 12px; gap: 18px; font-size: 10px; }
  .lesson-meta .ui-icon { width: 14px; height: 14px; }
  .lesson-player { border-radius: 12px; }
  .stage-area:has(.lesson-cover:not([hidden])) { aspect-ratio: auto; }
  .stage-area:has(.lesson-cover:not([hidden])) #frame { visibility: hidden; }
  .lesson-cover { position: relative; display: flex; flex-direction: column-reverse; justify-content: flex-end; align-items: center; padding: 13px 25px 27px; text-align: center; }
  .cover-art { width: 230px; height: 196px; margin: -10px 0 -1px; flex: none; }
  .cover-art > svg { height: 100%; }
  .cover-hello { font-size: 12px; margin-bottom: 6px; }
  .cover-copy h2 { font-size: 26px; line-height: 1.45; }
  .cover-description { margin: 10px 0 17px; font-size: 12px; line-height: 1.75; }
  .cover-actions { justify-content: center; gap: 14px; }
  .start-lesson { min-height: 48px; padding-inline: 27px; font-size: 14px; }
  .cover-footnote { margin-top: 11px; font-size: 10px; }
  .lesson-page #bar { height: auto; min-height: 62px; padding: 2px 10px 10px; justify-content: space-between; gap: 1px; }
  .lesson-page #bar .icon { width: 36px; min-width: 36px; height: 44px; }
  .lesson-page #bar #bPlay { width: 66px; min-width: 66px; font-size: 12px; }
  .lesson-page #bar #bHelp, .lesson-page #bar #bRestart, .lesson-page #stepName { display: none; }
  .lesson-page #bar .icon.speed { width: 36px; font-size: 12px; }
  .lesson-page #bar #bCC { width: 38px; min-width: 38px; font-size: 11px; }
  .lesson-page #bar .volume, .lesson-page #bar .volume .icon { width: 36px; height: 44px; }
  .lesson-page #bar .volume input { left: auto; right: -35px; transform: none; }
  .timeline { padding-inline: 13px; gap: 10px; height: 32px; }
  #stepCounter { font-size: 10px; }
  .learning-tip { padding: 20px 0 22px; gap: 10px; }
  .learning-tip strong { font-size: 12px; }
  .learning-tip p { font-size: 11px; }
  .word-review { padding-top: 20px; }
  .review-heading h2, .outline-heading h2 { font-size: 14px; }
  .word-list { gap: 7px; }
  .word-button { flex-direction: column; min-height: 104px; gap: 4px; padding: 7px 2px; text-align: center; }
  .word-picture { width: 34px; height: 43px; }
  .word-picture svg { height: 100%; }
  .word-name { font-size: 12px; }
  .word-name small { font-size: 10px; }
  #sectionList { grid-template-columns: 1fr; gap: 0; }
  .section-row { min-height: 74px; padding-right: 5px; }
  .section-jump { gap: 15px; }
  .section-name { font-size: 14px; }
  .section-name small { font-size: 11px; }
  .section-number { width: 30px; height: 32px; }
  .section-toggle { min-width: 44px; }
  .step-link { min-height: 44px; font-size: 12px; }
  .lesson-footer { margin-top: 30px; font-size: 9px; }
  .lesson-footer > span:last-child { display: none; }
  .lesson-page #help .help-box { padding: 26px 20px; }
  .lesson-page #help .help-cols { grid-template-columns: 1fr; }
}

/* Reflow real question DOM rather than duplicating answers or shrinking touch targets. */
.mobile-questions #mobileQuestions:empty { display: none; }
.mobile-questions .lesson-player:has(#mobileQuestions .card.screen) .stage-area:not(:has(.lesson-cover:not([hidden]))) { display: none; }
.mobile-questions #ui { position: relative; left: auto; top: auto; width: 100%; height: auto; }
.mobile-questions #ui .card { position: relative; left: auto !important; top: auto !important; width: 100% !important; height: auto; max-height: none; padding: 20px; border: 0; border-top: 1px solid var(--lesson-line); border-radius: 0; box-shadow: none; display: flex; flex-direction: column; gap: 0; overflow: visible; animation: none; }
.mobile-questions #ui .card .mascot { display: none; }
.mobile-questions #ui .card .head { display: block; order: 1; }
.mobile-questions #ui .card .kicker { font-size: 12px; margin: 0 0 9px; }
.mobile-questions #ui .card .prompt { font-size: 18px; line-height: 1.65; font-weight: 550; }
.mobile-questions #ui .card .keys, .mobile-questions #ui .card kbd { display: none; }
.mobile-questions #ui .card .body { order: 2; margin: 16px 0 0; width: 100%; overflow: visible; }
.mobile-questions #ui .card .opts, .mobile-questions #ui .card.screen.quiz > .body > .opts { display: grid; grid-template-columns: 1fr; gap: 10px; }
.mobile-questions #ui .card .opt, .mobile-questions #ui .card.screen.quiz > .body > .opts > .opt { min-height: 52px; padding: 12px 15px; font-size: 17px; border-width: 1px; border-radius: 9px; justify-content: flex-start; text-align: left; }
.mobile-questions #ui .card .fb { order: 3; font-size: 14px; line-height: 1.7; padding: 12px 0 0; margin: 0; max-width: 100%; max-height: none; }
.mobile-questions #ui .card .acts { position: static; order: 4; display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; align-self: stretch; }
.mobile-questions #ui .card .acts:not(:has(> :not([hidden]))) { display: none; }
.mobile-questions #ui .card .btn { min-height: 48px; font-size: 14px; padding: 10px 18px; border-radius: 8px; }
.mobile-questions #ui .card .head:has(.sound-replay) { align-self: stretch; }
.mobile-questions #ui .card .btn.sound-replay { display: flex; min-height: 48px; margin: 10px 0 0; font-size: 14px; }
.mobile-questions #ui .card .sound-status { font-size: 13px; }
.mobile-questions #ui .card.word { font-size: 32px; text-align: center; padding: 8px 16px; }
.mobile-questions #ui .card .finwrap { height: auto; padding: 20px 0; gap: 8px; }
.mobile-questions #ui .card.fin .mascot { display: block; width: 90px; height: 63px; margin-bottom: 12px; }
.mobile-questions #ui .card.fin .prompt { font-size: 26px; margin: 8px 0; }
.mobile-questions #ui .card.fin .acts { align-self: center; justify-content: center; }

:root.full:has(.lesson-page) { overflow: hidden; }
:root.full .lesson-page { overflow: hidden; background: #fbf6ea; }
:root.full .lesson-header, :root.full .lesson-heading, :root.full .lesson-outline, :root.full .learning-tip, :root.full .word-review, :root.full .lesson-footer { display: none; }
:root.full .lesson-main { padding: 0; margin: 0; max-width: none; }
:root.full .lesson-layout { display: block; }
:root.full .lesson-player { height: 100dvh; width: 100vw; border-radius: 0; box-shadow: none; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #fbf6ea; }
:root.full .stage-area { flex: none; min-height: 0; }
:root.full .lesson-page #frame { top: 0; left: 0; height: 900px; transform: scale(var(--k)); border-radius: 0; overflow: hidden; cursor: default; }
:root.full .lesson-page #bar { width: 100%; max-width: 1600px; flex: none; }
:root.full .timeline { width: 100%; max-width: 1600px; flex: none; }
:root.full .lesson-cover { display: grid; grid-template-columns: 1fr 1fr; padding: 3% 5%; text-align: left; }
:root.full .cover-copy h2 { font-size: clamp(22px, 3vw, 48px); }
:root.full .cover-art { width: 90%; height: auto; margin: 0; }
:root.full .cover-actions { justify-content: flex-start; }
@media (max-width: 700px) and (orientation: portrait) {
  :root.full .lesson-player { justify-content: flex-start; overflow-y: auto; }
  :root.full #mobileQuestions { width: 100%; }
  :root.full .lesson-cover { display: flex; padding: 20px; text-align: center; }
  :root.full .cover-art { width: 230px; height: 196px; }
  :root.full .cover-copy h2 { font-size: 26px; }
  :root.full .cover-actions { justify-content: center; }
}
@media (max-width: 359px) {
  .lesson-page #bar { padding-inline: 6px; }
  .lesson-page #bar #bPlay { width: 44px; min-width: 44px; }
  .lesson-page #playLabel { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lesson-page *, .lesson-page *::before, .lesson-page *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
