/* Sunhop — shared look. Student screens are drawn on a fixed 1180 x 820 stage that is scaled to fit
   the screen (iPad, Chromebook, Windows laptop), so every lesson keeps the same layout everywhere.
   Teacher pages are ordinary fluid pages. */

@font-face { font-family: 'Fredoka'; font-weight: 500; font-display: swap; src: url('../fonts/fredoka-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fredoka'; font-weight: 600; font-display: swap; src: url('../fonts/fredoka-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fredoka'; font-weight: 700; font-display: swap; src: url('../fonts/fredoka-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-weight: 400; font-display: swap; src: url('../fonts/atkinson-hyperlegible-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-weight: 700; font-display: swap; src: url('../fonts/atkinson-hyperlegible-latin-700-normal.woff2') format('woff2'); }

:root {
  --ink: #1D2B4F; --muted: #475569; --white: #FFFFFF;
  --sky: #CDEFFF; --sea: #8ED8F2; --sand: #F6DFA4; --grass: #9BD872; --soft: #E3F4FF;
  --coral: #E5533D; --coral-d: #B23A27; --sun: #FFCB3D; --sun-d: #E89A00;
  --good: #1E9E5A; --good-d: #157546; --good-ink: #11643A; --good-bg: #E3F6EA;
  --try: #5B6B8C; --try-ink: #2C3A5A; --try-bg: #E8EDF8; --hint: #E8A400;
  --line: #C9D6E8; --line-d: #A9B8CC; --focus: #1D4ED8; --indigo: #2F3B8F;
  --display: 'Fredoka', 'Atkinson Hyperlegible', system-ui, sans-serif;
  --text: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--text); color: var(--ink); -webkit-text-size-adjust: 100%; touch-action: manipulation; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 4px solid var(--focus); outline-offset: 4px; border-radius: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.display { font-family: var(--display); }
[hidden] { display: none !important; }

/* ---------- motion: calm by default, off when asked ---------- */
.press { transition: transform .08s ease, box-shadow .08s ease; }
.press:active { transform: translateY(4px); }
html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after { animation: none !important; transition: none !important; }
html.paused *, html.paused *::before, html.paused *::after { animation-play-state: paused !important; }
@keyframes hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes drift { from { transform: translateY(-20px) rotate(0deg); } to { transform: translateY(40px) rotate(40deg); } }

/* ---------- the stage ---------- */
.stage-host { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--stage-bg, var(--sea)); }
.stage { width: 1180px; height: 820px; position: relative; flex: none; overflow: hidden; transform-origin: center center; }

/* ---------- shared pieces ---------- */
.plaque { background: #fff; border-radius: 26px; box-shadow: 0 5px 0 rgba(29,43,79,.18); }
.bubble { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 30px; padding: 8px 10px 8px 26px; box-shadow: 0 5px 0 rgba(29,43,79,.16); }
.bubble-text { font-family: var(--display); font-weight: 600; font-size: 28px; }
.hear { width: 68px; height: 68px; flex: none; border-radius: 50%; border: 0; background: var(--coral); box-shadow: 0 5px 0 var(--coral-d); display: flex; align-items: center; justify-content: center; padding: 0; }
.hear svg { width: 30px; height: 30px; }
.pill { display: inline-flex; align-items: center; gap: 10px; height: 68px; padding: 0 22px 0 14px; border-radius: 34px; background: #fff; border: 3px solid var(--line); box-shadow: 0 5px 0 var(--line); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 24px; color: var(--ink); }
.pill svg { width: 32px; height: 32px; }
.round { width: 68px; height: 68px; border-radius: 50%; border: 3px solid var(--line); background: #fff; box-shadow: 0 5px 0 var(--line); display: flex; align-items: center; justify-content: center; padding: 0; }
.round svg { width: 30px; height: 30px; }
.round[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); box-shadow: 0 5px 0 #0E1733; }
.round[aria-pressed="true"] svg * { fill: #fff; }
.teacher-btn { height: 52px; padding: 0 16px; border-radius: 26px; border: 2px solid var(--line); background: #F5F8FC; font-size: 17px; font-weight: 700; color: var(--muted); position: relative; overflow: hidden; }
.teacher-btn.holding::after { content: ''; position: absolute; left: 0; bottom: 0; height: 5px; background: var(--indigo); animation: hold 1.5s linear forwards; }
html.reduce-motion .teacher-btn.holding::after { animation: none !important; width: 100%; }
@keyframes hold { from { width: 0; } to { width: 100%; } }
.sunny { display: block; }

/* ---------- home: the island ---------- */
.home .stage { background: var(--sea); }
.home .decor { position: absolute; left: 0; top: 0; }
.logo { position: absolute; left: 24px; top: 12px; display: flex; align-items: center; gap: 8px; padding: 6px 22px 6px 10px; }
.logo-word { font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 1; }
.logo-word b { color: #C2410C; font-weight: 700; }
.home .bubble { position: absolute; left: 330px; top: 20px; }
.landmark { position: absolute; width: 200px; display: flex; flex-direction: column; align-items: center; gap: 12px; background: none; border: 0; padding: 0; text-decoration: none; color: var(--ink); }
.landmark .badge { width: 132px; height: 132px; border-radius: 50%; background: #fff; border: 6px solid var(--c); box-shadow: 0 8px 0 var(--cd); display: flex; align-items: center; justify-content: center; }
.landmark .badge svg { width: 72px; height: 72px; }
.landmark .label { background: #fff; border-radius: 16px; padding: 6px 18px; font-family: var(--display); font-weight: 600; font-size: 26px; white-space: nowrap; box-shadow: 0 4px 0 rgba(29,43,79,.22); }
.landmark:active .badge { transform: translateY(4px); box-shadow: 0 4px 0 var(--cd); }
.landmark:focus-visible { outline: none; }
.landmark:focus-visible .badge { outline: 5px solid var(--focus); outline-offset: 5px; }
.foot { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; background: #E8F7FC; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; font-size: 17px; }
.foot .teacher-link { font-weight: 700; color: var(--ink); background: none; border: 0; text-decoration: underline; padding: 8px 0; }

/* ---------- top bar (subject + lesson) ---------- */
.topbar { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 16px; padding: 0 24px; }
.subject .topbar { top: 20px; }
.lesson .topbar { height: 100px; background: #fff; border-bottom: 3px solid #C9E3F5; }
.title-plaque { display: flex; align-items: center; gap: 12px; height: 68px; padding: 0 26px 0 14px; border-radius: 34px; background: #fff; border: 5px solid var(--c); }
.title-plaque svg { width: 42px; height: 42px; }
.title-plaque h1, .lesson h1 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 34px; }
.spacer { flex: 1; }
.symbol-badge { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px 0 6px; border-radius: 22px; background: #FFF6D6; border: 3px solid var(--sun-d); font-family: var(--display); font-weight: 600; font-size: 20px; }
.symbol-badge svg { width: 30px; height: 30px; }

/* ---------- subject page ---------- */
.subject .stage { background: var(--sky); }
.lesson-row { position: absolute; left: 0; right: 0; top: 230px; display: flex; justify-content: center; gap: 56px; }
.lesson-card { width: 380px; height: 440px; border-radius: 36px; background: #fff; border: 6px solid var(--c); box-shadow: 0 12px 0 var(--cd); display: flex; flex-direction: column; align-items: center; padding: 22px; gap: 18px; text-decoration: none; color: var(--ink); }
.lesson-card .thumb { width: 100%; height: 290px; border-radius: 24px; background: var(--tint, #FFF1EC); display: flex; align-items: center; justify-content: center; gap: 22px; }
.lesson-card .name { font-family: var(--display); font-weight: 700; font-size: var(--name, 36px); text-align: center; line-height: 1.15; }
.lesson-card:active { transform: translateY(6px); box-shadow: 0 6px 0 var(--cd); }
.empty-note { position: absolute; left: 0; right: 0; top: 260px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.empty-note .bubble-text { font-size: 34px; }

/* ---------- lesson ---------- */
.lesson .stage { background: var(--soft); }
.activities { position: absolute; left: 0; right: 0; top: 112px; display: flex; justify-content: center; gap: 14px; }
.activity { display: flex; align-items: center; gap: 8px; height: 68px; padding: 0 26px; border-radius: 34px; background: #fff; border: 3px solid var(--line); font-family: var(--display); font-weight: 600; font-size: 22px; color: var(--ink); }
.activity svg { width: 24px; height: 24px; }
.activity[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.activity[aria-current="page"] svg * { stroke: #fff; }
.prompt-row { position: absolute; left: 0; right: 0; top: 192px; display: flex; justify-content: center; align-items: center; gap: 16px; }
.prompt-row .bubble-text { font-size: 38px; }
.play { position: absolute; left: 0; right: 0; top: 318px; height: 340px; display: flex; justify-content: center; align-items: center; }
.status { position: absolute; left: 0; right: 0; top: 666px; display: flex; justify-content: center; align-items: center; }
.status .big { height: 76px; font-size: 28px; }
.say { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 6px 30px 6px 18px; border-radius: 32px; border: 4px solid; font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 1.2; max-width: 860px; }
.say svg { width: 32px; height: 32px; flex: none; }
.say.yes { background: var(--good-bg); border-color: var(--good); color: var(--good-ink); }
.say.try { background: var(--try-bg); border-color: var(--try); color: var(--try-ink); }
.say.note { background: #fff; border-color: var(--line); color: var(--ink); font-size: 24px; }
.dots { position: absolute; left: 0; right: 0; top: 774px; display: flex; justify-content: center; gap: 14px; }
.dots span { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid #B9C7D8; }
.dots span.done { background: #FFB020; border-color: var(--sun-d); }
.dots span.now { border-color: var(--ink); }

.choices { display: flex; justify-content: center; gap: 40px; }
.choice { width: 290px; height: 300px; border-radius: 30px; background: #fff; border: 5px solid var(--line); box-shadow: 0 8px 0 var(--line-d); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 0; position: relative; }
.choices.n4 { gap: 26px; }
.choices.n4 .choice { width: 250px; height: 280px; }
.choice .sign { width: 180px; height: 180px; }
.choice .sign.wide { width: 220px; height: 110px; margin: 35px 0; }
.choices.n4 .choice .sign { width: 160px; height: 160px; }
.choices.n4 .choice .sign.wide { width: 196px; height: 98px; margin: 31px 0; }
.choice .cap { font-family: var(--display); font-weight: 600; font-size: 24px; }
html.no-labels .choice .cap { opacity: 0; }   /* still read aloud by screen readers */
.choice.correct { border: 8px solid var(--good); box-shadow: 0 8px 0 var(--good-d); }
.choice.tried { background: #F4F6FB; border-color: var(--try); box-shadow: 0 8px 0 var(--try); }
.choice.hint, .in-scene.hint { outline: 6px dashed var(--hint); outline-offset: 8px; }
.choice.model, .in-scene.model { outline: 8px solid var(--hint); outline-offset: 8px; }
.check { position: absolute; right: -18px; top: -18px; width: 58px; height: 58px; border-radius: 50%; background: var(--good); border: 4px solid #fff; display: flex; align-items: center; justify-content: center; }
.check svg { width: 30px; height: 30px; }

.scene { position: relative; width: 640px; height: 360px; margin-top: 0; border-radius: 24px; overflow: hidden; border: 5px solid var(--line); background: #fff; }
.scene > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene .pole { position: absolute; width: 8px; margin-left: -4px; background: #7B8494; border-radius: 3px; }
.in-scene { position: absolute; border: 0; background: none; padding: 0; border-radius: 10px; }
.in-scene svg { width: 100%; height: auto; display: block; }
.in-scene.correct { outline: 7px solid var(--good); outline-offset: 6px; }
.in-scene.tried { opacity: .55; }
.play.has-scene { top: 300px; height: 360px; }
.prompt-row.long .bubble { max-width: 940px; }
.prompt-row.long .bubble-text { font-size: 30px; line-height: 1.2; }
/* band 1 matching: the sample to match, then the choices */
.match { display: flex; align-items: center; gap: 26px; }
.sample { margin: 0; width: 250px; height: 280px; border-radius: 30px; background: #FFF6D6; border: 5px dashed #D9A520; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.sample .sign { width: 170px; height: 170px; }
.sample .sign.wide { width: 210px; height: 105px; margin: 32px 0; }
.sample figcaption { font-family: var(--display); font-weight: 600; font-size: 22px; color: #6B5A1E; }
.match-arrow { width: 60px; height: 40px; flex: none; }
.match .choices { gap: 26px; }
.match .choice { width: 240px; height: 280px; }
.match .choice .sign { width: 160px; height: 160px; }
.match .choice .sign.wide { width: 196px; height: 98px; margin: 31px 0; }

#play:focus { outline: none; }
/* learn */
.learn { display: flex; gap: 40px; align-items: center; width: 1040px; }
.learn-sign { width: 340px; height: 340px; border-radius: 34px; background: #fff; border: 5px solid var(--line); box-shadow: 0 8px 0 var(--line-d); display: flex; align-items: center; justify-content: center; padding: 0; flex: none; }
.learn-sign svg { width: 270px; height: 270px; }
.learn-sign svg.wide { width: 300px; height: 150px; }
.learn-text { flex: 1; display: flex; flex-direction: column; gap: 10px; font-size: 24px; line-height: 1.35; }
.learn-text h2 { margin: 0; font-family: var(--display); font-size: 44px; }
.learn-text p { margin: 0; }
.learn-text .safety { background: #FFF6D6; border-left: 0; border-radius: 16px; padding: 10px 16px; font-size: 21px; }
.learn-nav { position: absolute; left: 0; right: 0; top: 668px; display: flex; justify-content: center; gap: 24px; }
.big { height: 80px; padding: 0 34px; border-radius: 40px; border: 4px solid var(--line); background: #fff; box-shadow: 0 7px 0 var(--line-d); display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 28px; color: var(--ink); text-decoration: none; }
.big svg { width: 30px; height: 30px; }
.big.go { background: var(--coral); border-color: var(--coral); box-shadow: 0 8px 0 var(--coral-d); color: #fff; font-weight: 700; font-size: 32px; height: 90px; }
.big.go svg * { stroke: #fff; }
.big:disabled { opacity: .4; cursor: default; }

/* end of set */
.endset { position: absolute; inset: 0; background: var(--sky); display: flex; flex-direction: column; align-items: center; }
.endset .ground { position: absolute; left: 0; right: 0; bottom: 0; height: 200px; background: var(--grass); border-radius: 50% 50% 0 0 / 30px 30px 0 0; }
.endset .conf { position: absolute; width: 18px; height: 10px; border-radius: 4px; animation: drift 6s ease-in-out infinite alternate; }
.endset .hopper { margin-top: 24px; animation: hop 1.6s ease-in-out infinite; }
.endset .card { position: relative; width: 800px; min-height: 480px; margin-top: 4px; border-radius: 40px; background: #fff; box-shadow: 0 10px 0 rgba(29,43,79,.16); display: flex; flex-direction: column; align-items: center; padding: 36px 40px 40px; gap: 18px; }
.endset h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 64px; line-height: 1.1; }
.endset p { margin: 0; font-size: 28px; }
.endset .sticker-row { display: flex; align-items: center; gap: 18px; font-family: var(--display); font-weight: 600; font-size: 30px; }
.endset .buttons { display: flex; gap: 28px; align-items: center; margin-top: auto; }

/* pause screen */
.paused-veil { position: absolute; inset: 0; background: rgba(227,244,255,.92); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; z-index: 40; }
.paused-veil h2 { margin: 0; font-family: var(--display); font-size: 56px; }

/* tap to hear */
.tap-hint { position: fixed; left: 50%; bottom: 72px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 24px; font-size: 20px; z-index: 90; }

/* ---------- teacher panel (dialog on student screens) ---------- */
.tp-veil { position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 80; display: flex; justify-content: flex-end; }
.tp { width: min(640px, 100%); height: 100%; background: #fff; display: flex; flex-direction: column; font-size: 18px; color: var(--ink); }
.tp-head { display: flex; align-items: center; gap: 14px; padding: 20px 28px 12px; }
.tp-head h2 { margin: 0; font-size: 26px; }
.tp-sub { color: var(--muted); font-size: 16px; }
.tp-close { width: 52px; height: 52px; border-radius: 26px; border: 2px solid #CBD5E1; background: #fff; display: flex; align-items: center; justify-content: center; }
.tp-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; background: #EEF2F7; border-radius: 14px; padding: 5px; margin: 0 28px; }
.tp-tabs button { height: 46px; border: 0; border-radius: 10px; background: transparent; font-size: 17px; font-weight: 700; color: var(--muted); }
.tp-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 0 #CBD5E1; }
.tp-body { flex: 1; overflow: auto; padding: 18px 28px 28px; display: flex; flex-direction: column; gap: 16px; }
.tp fieldset { min-width: 0; border: 2px solid #E2E8F0; border-radius: 16px; padding: 12px 16px 14px; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.tp legend { font-weight: 700; padding: 0 6px; }
.tp label.opt { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.tp input[type=checkbox], .tp input[type=radio] { width: 24px; height: 24px; accent-color: var(--indigo); }
.tp select { max-width: 100%; }
.tp select, .tp input[type=number], .tp input[type=text] { min-height: 42px; border: 2px solid #CBD5E1; border-radius: 10px; padding: 0 10px; background: #fff; }
.tp input[type=range] { width: 220px; accent-color: var(--indigo); }
.tp .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tp .small, .tp .muted { color: var(--muted); font-size: 15px; }
.btn-t { height: 48px; padding: 0 18px; border-radius: 24px; border: 2px solid var(--indigo); background: #fff; color: var(--indigo); font-weight: 700; font-size: 17px; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.btn-t.primary { background: var(--indigo); color: #fff; }
.btn-t.good { background: #1E7B4A; border-color: #1E7B4A; color: #fff; }
.btn-t.quiet { border-color: #CBD5E1; color: var(--ink); }
.btn-t:disabled { opacity: .45; cursor: default; }
.cur-student { display: flex; align-items: center; gap: 14px; border: 2px solid #E2E8F0; border-radius: 16px; padding: 12px 14px; }
.sym-tile { width: 52px; height: 52px; border-radius: 14px; background: #F5F7FB; border: 3px solid #CBD5E1; display: flex; align-items: center; justify-content: center; flex: none; }
.sym-tile svg { width: 34px; height: 34px; }
.entry { border: 2px solid #CBD5E1; border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.entry-head { display: flex; align-items: center; gap: 10px; }
.entry-head svg { width: 26px; height: 26px; }
.entry table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry th { text-align: left; color: var(--muted); padding: 6px 4px; border-bottom: 2px solid #E2E8F0; }
.entry td { padding: 6px 4px; border-bottom: 1px solid #E2E8F0; vertical-align: top; }
.code { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 24px; font-weight: 700; letter-spacing: 2px; }
.codebox { display: flex; align-items: center; gap: 12px; background: #F5F7FB; border-radius: 12px; padding: 8px 12px; flex-wrap: wrap; }
.sym-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sym-choice { height: 112px; border-radius: 18px; border: 3px solid #CBD5E1; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-weight: 700; font-size: 18px; }
.sym-choice svg { width: 46px; height: 46px; }
.sym-choice[aria-pressed="true"] { border-color: var(--indigo); background: #EEF1FF; }
.sym-choice.none { background: #F5F7FB; }
.pin-box { display: flex; flex-direction: column; gap: 12px; padding: 28px; align-items: flex-start; }

/* ---------- teacher area (fluid page) ---------- */
body.teacher-page { background: #F5F7FB; }
.t-wrap { max-width: 1120px; margin: 0 auto; padding: 20px 16px 60px; }
.t-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.t-top h1 { margin: 0; font-size: 28px; flex: 1; }
.t-layout { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.t-nav { flex: 1 1 220px; display: flex; flex-direction: column; gap: 6px; }
.t-nav a { display: block; padding: 10px 14px; border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 700; }
.t-nav a[aria-current="true"] { background: #fff; box-shadow: 0 1px 0 #CBD5E1; }
.t-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.t-card { background: #fff; border-radius: 18px; padding: 18px 20px; box-shadow: 0 1px 0 #E2E8F0; }
.t-card h2 { margin: 0 0 10px; font-size: 22px; }
.t-card h3 { margin: 14px 0 6px; font-size: 18px; }
.t-card p { margin: 6px 0; line-height: 1.45; }
.t-card label.opt { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.t-card input[type=checkbox], .t-card input[type=radio] { width: 22px; height: 22px; accent-color: var(--indigo); }
.t-card select, .t-card input[type=text], .t-card input[type=number], .t-card input[type=search], .t-card input[type=password] { min-height: 42px; border: 2px solid #CBD5E1; border-radius: 10px; padding: 0 10px; background: #fff; max-width: 100%; }
.t-table-box { overflow-x: auto; }
.t-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.t-table th, .t-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #E2E8F0; vertical-align: top; }
.t-table th { color: var(--muted); }
.tag { display: inline-block; padding: 2px 8px; border-radius: 10px; background: #EEF1FF; color: var(--indigo); font-size: 13px; font-weight: 700; margin: 2px 4px 2px 0; }
.tag.none { background: #F1F5F9; color: var(--muted); }
.note { background: #FFF6D6; border-radius: 12px; padding: 10px 14px; }
.std-item { padding: 8px 0; border-bottom: 1px solid #E2E8F0; }
.std-code { font-weight: 700; margin-right: 8px; }

/* ---------- print ---------- */
.print-only { display: none; }
@media print {
  body > *:not(.print-only) { display: none !important; }
  .print-only { display: block !important; font-family: var(--text); color: #000; }
  .print-only table { width: 100%; border-collapse: collapse; font-size: 12pt; }
  .print-only th, .print-only td { border: 1px solid #000; padding: 6px; text-align: left; vertical-align: top; }
  .print-only h1 { font-size: 18pt; margin: 0 0 6pt; }
  .print-only .blank td { height: 28pt; }
}
/* teacher area: placement grid */
.place-grid th, .place-grid td { white-space: nowrap; }
.place-grid thead th { white-space: normal; min-width: 92px; vertical-align: bottom; font-size: 14px; }
.place-grid select { min-width: 90px; }
.place-grid tbody th { position: sticky; left: 0; background: #fff; z-index: 1; }
/* Colors lesson */
.c-learn-all { width: 1040px; text-align: center; }
.c-learn-all h2 { margin: 0 0 6px; font-size: 40px; }
.c-groups { display: flex; justify-content: center; gap: 56px; }
.c-row { margin: 6px 0; }
.c-kicker { font-size: 22px; color: var(--muted); margin: 0 0 6px; font-weight: 700; }
.c-dots { display: flex; justify-content: center; gap: 18px; }
.c-dot { width: 140px; height: 150px; border-radius: 24px; background: #fff; border: 4px solid var(--line); box-shadow: 0 6px 0 var(--line-d); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0; }
.c-dot svg { width: 96px; height: 96px; }
.c-dot .cap { font-family: var(--display); font-weight: 600; font-size: 22px; }
html.no-labels .c-dot .cap { opacity: 0; }
.c-mix { display: flex; align-items: center; gap: 10px; }
.c-mix svg { width: 64px; height: 64px; }
.c-mix b { font-size: 34px; font-family: var(--display); }
.c-things { display: flex; gap: 16px; }
.c-things svg { width: 80px; height: 80px; }
/* Reading lessons (Fern Point, Treasure Island) */
.play.reading { top: 306px; height: 346px; }
.r-card { width: 1060px; max-height: 340px; overflow: auto; background: #fff; border: 4px solid var(--line); border-radius: 26px; box-shadow: 0 6px 0 var(--line-d); padding: 14px 26px 18px; }
.r-head { display: flex; align-items: center; justify-content: space-between; }
.r-num { font-family: var(--display); font-weight: 600; font-size: 20px; color: var(--muted); }
.r-head .hear { width: 56px; height: 56px; }
.r-text { margin: 4px 0 0; font-size: 24px; line-height: 1.42; }
.learn-nav.r-nav { top: 356px; }
.r-q { display: flex; gap: 22px; width: 1130px; height: 346px; align-items: stretch; }
.r-passage { width: 470px; flex: none; overflow: auto; background: #fff; border: 4px solid var(--line); border-radius: 22px; padding: 10px 14px; }
.r-pp { display: grid; grid-template-columns: 40px 1fr; gap: 8px; padding: 6px; border-radius: 14px; }
.r-pp p { margin: 0; font-size: 18px; line-height: 1.45; }
.r-pp.r-mark { background: #FFF1C9; outline: 4px solid var(--hint); }
.r-pp-hear { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--coral); box-shadow: 0 3px 0 var(--coral-d); padding: 0; display: flex; align-items: center; justify-content: center; }
.r-pp-hear svg { width: 24px; height: 24px; }
.r-choices { flex: 1; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.r-choice { position: relative; min-height: 72px; display: flex; align-items: center; gap: 14px; text-align: left; padding: 10px 18px; border-radius: 20px; background: #fff; border: 4px solid var(--line); box-shadow: 0 6px 0 var(--line-d); font-size: 21px; line-height: 1.3; color: var(--ink); font-family: var(--text); }
.r-letter { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--muted); display: grid; place-items: center; font-weight: 700; font-family: var(--display); }
.r-choice.correct { border: 6px solid var(--good); box-shadow: 0 6px 0 var(--good-d); }
.r-choice.tried { background: #E9EDF3; border-style: dashed; border-color: var(--muted); box-shadow: none; transform: translateY(6px); color: var(--try-ink); }
.r-choice.model { outline: 8px solid var(--hint); outline-offset: 6px; }
.r-choice .check { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); }
.r-done { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.r-done .big { min-width: 420px; justify-content: center; }
.r-end { margin: 0; font-family: var(--display); font-size: 28px; font-weight: 600; }
