/* =====================================================================
   The simple course: its own pieces, on top of base.css.
   Rule 8 (controls never next to each other): every row of controls keeps 24px between them;
   lists of answer options keep 12px (a mis-tap there is changed with the next tap);
   "Start again" sits alone on its own line.
   ===================================================================== */

/* Bigger, calmer text for A1 to A2 readers */
.page-simple .slide { font-family: var(--font-body); }
.page-simple .slide-intro { font-size: var(--fs-body); color: var(--fg); }
.big-line { font-family: var(--font-display); font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem); font-weight: 700; line-height: 1.25; color: var(--fg); }
.hint { font-size: var(--fs-small); color: var(--fg-muted); }

/* The short note on covers (the full note opens under it) */
.short-note { width: 100%; text-align: left; }
.short-note p { margin: 0; }
.short-note details { margin-top: var(--sp-2); }
.short-note summary { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; color: var(--accent); font-family: var(--font-display); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.short-note details p { margin-top: var(--sp-2); color: var(--fg-muted); }
.cover-links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-4) var(--sp-5); }
.cover-sample { font-family: var(--font-display); font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem); font-weight: 700; color: var(--accent); }

/* Words: each card is one button that speaks the word */
.words { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: var(--sp-5); }
.word {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--sp-3);
  width: 100%; min-height: 64px; padding: var(--sp-3) var(--sp-4); text-align: left; cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--border-strong); border-radius: var(--radius-lg);
}
.word:hover { border-color: var(--accent); }
.word.is-heard { border-color: var(--success); }
.word-ico { font-size: 1.75rem; line-height: 1; }
.word-en { display: block; font-family: var(--font-display); font-size: 1.375rem; font-weight: 800; color: var(--fg); line-height: 1.15; }
.word-say { display: block; font-size: var(--fs-small); color: var(--fg-muted); line-height: 1.35; }
.word-play { font-size: 1rem; color: var(--accent); }
.word.is-playing .word-play { color: var(--gold); }
.words-count { font-size: var(--fs-small); color: var(--fg-muted); }
.words-hdr { font-size: var(--fs-h3); font-weight: 800; }

/* The story: short lines with times */
.scene { list-style: none; padding: 0; display: grid; gap: var(--sp-3); }
.scene li { display: grid; grid-template-columns: 4.25rem 1fr; gap: var(--sp-3); align-items: baseline; margin: 0; padding: var(--sp-3) var(--sp-4); background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius); }
.scene .t { font-family: var(--font-display); font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.scene .l { font-family: var(--font-display); font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem); font-weight: 600; color: var(--fg); line-height: 1.3; }
.you-are { display: flex; gap: var(--sp-3); align-items: center; }
.you-are .ico { font-size: 2rem; line-height: 1; }
.play-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-5); }
.play-stat { font-size: var(--fs-small); color: var(--fg-muted); }

/* Answer options (fast choices, radio questions, say it back) */
.opts { display: grid; gap: var(--sp-3); }
.opt {
  display: block; width: 100%; min-height: 52px; padding: var(--sp-3) var(--sp-4); text-align: left; cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--border-strong); border-radius: var(--radius);
  font-family: var(--font-display); font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem); font-weight: 600; line-height: 1.3; color: var(--fg);
}
.opt:hover:not([aria-disabled="true"]) { border-color: var(--accent); }
.opt.is-sel { border-color: var(--accent); background: var(--tint-accent); }
.opt.is-ok { border-color: var(--success); background: var(--tint-success); }
.opt.is-no { border-color: var(--danger); background: var(--tint-danger); }
.opt[aria-disabled="true"] { cursor: default; }
/* a tick or a cross, not colour alone (audit A1) */
.opt.is-ok::before { content: "\2713\00a0"; color: var(--success); font-weight: 800; }
.opt.is-no::before { content: "\2715\00a0"; color: var(--danger); font-weight: 800; }
.fb { font-size: var(--fs-body); line-height: 1.5; }
.fb:empty { display: none; }
.fb.ok { color: var(--success); }
.fb.no { color: var(--danger); }
.fb .why { display: block; color: var(--fg); margin-top: 2px; font-size: var(--fs-small); }
.fb .next-cue { margin-top: var(--sp-2); font-weight: 600; color: var(--accent); }

/* Fast choices: one round at a time, with a gentle timer the learner can switch off */
.decide { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--pad-card); }
.decide > * + * { margin-top: var(--sp-4); }
.decide-n { font-family: var(--font-display); font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.decide-q { font-family: var(--font-display); font-size: clamp(1.25rem, 1.15rem + 0.5vw, 1.625rem); font-weight: 700; line-height: 1.25; }
.decide.is-waiting .opts, .decide.is-waiting .timer { display: none; }
.timer { height: 10px; border-radius: 5px; background: var(--surface2); overflow: hidden; }
.timer-fill { height: 100%; width: 100%; background: var(--gold); transform-origin: left; }
.timer-txt { font-size: var(--fs-small); color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.timer-switch { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 44px; cursor: pointer; font-size: var(--fs-small); color: var(--fg); }
.timer-switch input { width: 22px; height: 22px; accent-color: var(--accent); }
.decide-next { margin-top: var(--sp-2); }

/* Radio talk with two voices */
.radio { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--pad-card); }
.radio > * + * { margin-top: var(--sp-4); }
.radio-tx { list-style: none; padding: var(--sp-3) var(--sp-4); background: var(--surface2); border-radius: var(--radius); display: grid; gap: var(--sp-2); }
.radio-tx li { margin: 0; font-size: var(--fs-body); line-height: 1.45; }
.radio-tx li b { font-family: var(--font-display); letter-spacing: 0.02em; }
.radio-tx li[data-v="b"] b { color: var(--star-t); }
.radio-tx li[data-v="a"] b { color: var(--accent); }
.radio-tx li.is-now { background: var(--tint-gold); border-radius: var(--radius-sm); }
.rq > * + * { margin-top: var(--sp-3); }
.rq-text { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 700; line-height: 1.3; }
.radio-res { font-size: var(--fs-body); font-weight: 600; }
.radio-res:empty { display: none; }
.radio-res:focus { outline: none; }

/* Say it back */
.sb { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--pad-card); }
.sb > * + * { margin-top: var(--sp-3); }
.sb-order { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 700; color: var(--star-t); }
.sb-list { display: grid; gap: var(--sp-5); }

/* Build the radio call */
.builder { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--pad-card); }
.builder > * + * { margin-top: var(--sp-4); }
.bl-line { min-height: 64px; padding: var(--sp-3); border: 2px dashed var(--border-strong); border-radius: var(--radius); display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.bl-line.is-ok { border-style: solid; border-color: var(--success); background: var(--tint-success); }
.bl-empty { color: var(--fg-muted); font-size: var(--fs-small); }
.chunks { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.chunk {
  min-height: 48px; padding: 8px 14px; cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--accent); border-radius: var(--radius-pill);
  font-family: var(--font-display); font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); font-weight: 700; color: var(--accent);
}
.chunk:hover { background: var(--tint-accent); }
.bl-line .chunk { border-color: var(--fg); color: var(--fg); }
.chunk[aria-disabled="true"] { cursor: default; }
.bl-again { margin-bottom: 0; }
.bl-model { padding: var(--sp-3) var(--sp-4); border-left: 4px solid var(--success); background: var(--tint-success); border-radius: var(--radius); }
.bl-model .big-line { font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem); }

/* Landing: the sample line on each story card */
.page-simple .scenario-grid { gap: var(--sp-5); }
.sc-sample { font-family: var(--font-display); font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem); font-weight: 700; color: var(--accent); }
.teach-list { font-size: var(--fs-small); color: var(--fg-muted); }

@media (max-height: 500px) {
  .page-simple .cover-links { display: none; }
}
