body { background:var(--page); color:var(--ink); font-family:var(--classroom-font); }
.header-inner { justify-content:space-between; }
.return { display:inline-flex; align-items:center; min-height:44px; font-weight:700; color:var(--blue); }
.spring-lesson, .book-source { width:min(100%,1080px); margin-inline:auto; padding-inline:clamp(16px,4vw,48px); }
.lesson-intro { margin:clamp(24px,4vw,48px) 0 23px; }
.lesson-intro .unit, .workhead p, .eyebrow { color:var(--blue); font-weight:750; font-size:.85rem; letter-spacing:.025em; margin:0 0 4px; }
.lesson-intro h1 { font-size:clamp(2rem,5vw,3.4rem); line-height:1.14; letter-spacing:-.035em; margin:0 0 9px; }
.lesson-intro p, #hint { margin:0; color:var(--muted); }
.route { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:5px; margin:0 0 18px; }
.route a { display:flex; align-items:center; gap:8px; min-height:46px; font-weight:700; padding:5px 10px; border-bottom:3px solid var(--line); }
.route span { font-size:.8em; color:var(--muted); }
.route a:hover, .route a[aria-current] { background:var(--blue-soft); color:var(--blue); border-color:var(--blue); border-radius:7px 7px 0 0; }
.route a[aria-current] span { color:inherit; }
.work { border:1px solid var(--line); border-radius:19px; padding:clamp(16px,3vw,31px); background:var(--paper); }
.workhead, .controls { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.work h2,.work h3 { margin:0; }
.work h2 { font-size:clamp(1.45rem,3.5vw,2rem); line-height:1.4; }
.work h3 { font-size:1.12rem; }
.work h2:focus { outline:none; }
#hint { margin:9px 0 18px; line-height:1.7; }
.work button, .work summary { background:white; font:inherit; color:var(--ink); font-weight:650; border:1px solid var(--line); border-radius:9px; min-height:44px; padding:7px 14px; cursor:pointer; }
.work button:enabled:hover, .work button[aria-pressed="true"] { color:var(--blue); border-color:var(--blue); }
.work button:disabled { cursor:default; opacity:.55; }
.work button.main-button { background:var(--blue); color:white; border-color:var(--blue); }
.work button.main-button:enabled:hover { color:white; background:#18558e; }
.work button.playing { box-shadow:inset 0 0 0 2px var(--blue); background:var(--blue-soft); color:var(--blue); }
.work button.main-button.playing { box-shadow:inset 0 0 0 2px white; color:white; background:var(--blue); }
.row,.choices { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.conversation { --wash:#f1eddc; display:grid; grid-template-columns:minmax(125px,.65fr) 1.35fr; align-items:center; background:var(--wash); border-radius:14px; padding:clamp(15px,3vw,29px); gap:clamp(14px,3vw,32px); margin-bottom:14px; }
.art { display:grid; place-items:center; }
.art img { max-height:205px; width:100%; object-fit:contain; border-radius:12px; mix-blend-mode:multiply; }
.speech { position:relative; background:white; border:1px solid #cccbbd; border-radius:19px 19px 19px 3px; padding:clamp(13px,2.5vw,23px); box-shadow:0 3px 0 #3d453710; }
.speech small { color:var(--blue); font-weight:750; }
.speech p { margin:8px 0 0; }
.english { font-size:clamp(1.4rem,3.2vw,2.25rem); font-weight:780; line-height:1.22; }
#audioStatus, #status,.response { color:#335e42; line-height:1.6; }
#status:empty,.response:empty { display:none; }
.controls { margin-top:22px; padding-top:16px; border-top:1px solid var(--line); }
.word-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(108px,1fr)); gap:10px; }
.work .word { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; padding:14px 6px; }
.word img { width:100%; height:82px; object-fit:contain; }
.word-symbol { display:grid; place-items:center; font-size:2.5rem; min-height:82px; color:var(--blue); }
.word strong { font-size:1.28rem; }.word small { color:var(--muted); font-weight:500; }
.sound-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.sound-group,.mini-check,.listen-panel,.speak-panel { border:1px solid var(--line); border-radius:13px; padding:clamp(12px,2.5vw,23px); background:#f7f5ec; }
.sound-group h3,.mini-check h3,.speak-panel h3 { margin-bottom:11px; }
.sound-group button { margin:0 5px 5px 0; font-size:1.28rem; }
mark { background:#fae2db; color:#8b3325; border-radius:3px; }
.mini-check { margin-top:12px; background:white; }
.blank { color:var(--ink); font-size:1.45rem; min-width:3.1em; }
.work .letter { min-width:44px; }
.listen-panel > button, .choices { margin-top:12px; }
.choices button.correct:disabled { color:#285b40; background:#e7f2e6; border:2px solid #52805f; opacity:1; }
.speak-panel details { margin:15px 0; }
.work summary { background:transparent; border:0; padding:9px 0; color:var(--blue); }
.speak-panel details strong { font-size:1.4rem; }
.speak-panel details p { margin:6px 0; }
.book-source { padding-block:24px 42px; color:var(--muted); font-size:.84rem; }
@media (prefers-reduced-motion:no-preference) {
  #activity > :first-child { animation:reveal .25s ease-out; }
  #activity.talking .speech { animation:say-line .28s ease-out; }
  @keyframes reveal { from { opacity:.5; transform:translateY(4px); } }
  @keyframes say-line { from { transform:translateY(3px); } }
}
@media (max-width:700px) {
  .route { grid-template-columns:repeat(3,minmax(0,1fr)); gap:3px; }
  .route a { font-size:.9rem; padding-inline:5px; gap:5px; }
  .work button { padding-inline:11px; }
  .word-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width:480px) {
  .conversation { grid-template-columns:minmax(56px,.35fr) 1fr; padding:11px; gap:8px; }
  .speech { padding:12px; min-width:0; }
  .english { font-size:1.35rem; }
  .art img { max-height:105px; }
  .word-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .sound-grid { gap:7px; }
  .sound-group { padding:9px; }
  .workhead button { max-width:8em; }
}
.scene-label { margin-top:4px; color:#475544; font-size:.85rem; text-align:center; }
.quantity { width:100%; min-height:82px; display:grid; place-content:center; justify-items:center; gap:5px; }
.quantity strong,.word .quantity strong { font-size:2rem; line-height:1; color:#215e97; }
.dots { display:grid; grid-template-columns:repeat(5,8px); gap:3px; }
.dots i { width:8px; height:8px; border-radius:50%; background:#b94e36; }
.art .word-symbol { font-size:clamp(2rem,7vw,5rem); }
.work button.correct { border-color:var(--green); color:var(--green); }
@media (prefers-reduced-motion:no-preference) {
  .scene-label { animation:reveal .24s ease-out; }
  .conversation .dots i { animation:reveal .3s ease-out both; }
  .conversation .dots i:nth-child(n+6) { animation-delay:.12s; }
  .conversation .dots i:nth-child(n+11) { animation-delay:.24s; }
}
.workhead #hintAudio { flex-shrink:0; white-space:nowrap; font-size:.9rem; }
#heading { scroll-margin:9rem 0; }
@media (max-width:480px) {
  .site-header .header-inner { display:flex; flex-wrap:nowrap; height:auto; min-height:64px; gap:6px; }
  .site-header .brand > span { display:block; }
  .site-header .brand small { display:block; }
  .return { flex-shrink:0; font-size:.85rem; }
  .route span { display:none; }
  .route a { justify-content:center; }
  #heading { scroll-margin-top:5rem; }
}
.controls { flex-wrap:wrap; gap:8px; justify-content:flex-end; }
.audio-speed { margin-right:auto; display:inline-flex; align-items:center; gap:4px; min-height:44px; font-size:.89rem; color:var(--muted); cursor:pointer; }
.audio-speed input { accent-color:var(--blue); width:16px; height:16px; margin:0; }

#counter span { display:inline-block; }
@media (max-width:380px) {
  .conversation { grid-template-columns:1fr; }
  .art { display:flex; align-items:center; gap:9px; }
  .art img { width:55px; height:52px; object-fit:contain; }
  .art .quantity { display:flex; align-items:center; gap:5px; min-height:44px; width:auto; }
  .art .word-symbol { min-height:44px; }
  .scene-label { margin:0; }
}
