/* Lesson 6 · a small step every day */
:root {
  color-scheme: light;
  --ink: #21354b;
  --ink-soft: #5d6b79;
  --paper: #faf9f3;
  --white: #ffffff;
  --line: #e0e5e1;
  --blue: #2466d8;
  --blue-deep: #174ca8;
  --blue-pale: #eaf2ff;
  --lime: #d8ee86;
  --lime-pale: #f0f6d9;
  --coral: #f48769;
  --coral-pale: #fff0e9;
  --green: #327558;
  --green-pale: #eaf5ed;
  --radius: 24px;
  --shadow: 0 12px 34px rgb(33 53 75 / 5%);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.6; }
button, input, select, textarea { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; touch-action: manipulation; }
button:disabled { cursor: default; opacity: .48; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}
button { border: 0; }
button svg, a svg { flex-shrink: 0; }
a { color: var(--blue-deep); text-underline-offset: 4px; }
svg, img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.3; letter-spacing: -.025em; }
h1 { font-size: clamp(29px, 4.1vw, 44px); font-weight: 800; }
h2 { font-size: 24px; font-weight: 750; }
h3 { font-size: 19px; font-weight: 700; }
p:last-child { margin-bottom: 0; }
[hidden] { display: none !important; }
.app-shell { max-width: 1040px; margin: 0 auto; padding: 0 28px 36px; }
.topbar { min-height: 102px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 43px; height: 43px; flex: 0 0 43px; border-radius: 14px; background: var(--lime); color: var(--ink); font-size: 24px; font-weight: 850; transform: rotate(-5deg); }
.brand-mark svg { width: 28px; height: 28px; }
.brand-copy { font-size: 18px; font-weight: 800; line-height: 1.3; letter-spacing: -.02em; }
.brand-copy small, .brand-copy span { display: block; margin-top: 3px; font-size: 11px; font-weight: 600; letter-spacing: .09em; color: var(--ink-soft); }
.top-actions { display: flex; align-items: center; gap: 9px; }
.tabs { display: flex; align-items: center; gap: 5px; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 28px; }
.tabs button { min-height: 44px; padding: 9px 18px; border-radius: 12px; background: transparent; color: var(--ink-soft); font-size: 14px; font-weight: 700; white-space: nowrap; transition: background .18s, color .18s; }
.tabs button.active { background: var(--ink); color: white; }
.tabs button:not(.active):hover { background: #eeeee7; color: var(--ink); }

.primary, .secondary, .text-button, .icon-button, .audio-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 21px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.4;
  text-decoration: none;
  transition: background .18s, transform .18s, box-shadow .18s;
}
.primary { background: var(--blue); color: white; box-shadow: 0 4px 0 var(--blue-deep); }
.primary:hover:not(:disabled) { background: #1b5ecf; transform: translateY(-1px); box-shadow: 0 5px 0 var(--blue-deep); }
.primary:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--blue-deep); }
.secondary { background: white; border: 1.5px solid #d9e2ea; color: var(--ink); }
.secondary:hover:not(:disabled) { background: var(--blue-pale); border-color: #b7cee9; }
.text-button { background: transparent; color: var(--ink-soft); font-size: 14px; padding: 9px 10px; }
.text-button:hover:not(:disabled) { color: var(--blue); background: var(--blue-pale); }
.icon-button { padding: 10px; width: 44px; min-height: 44px; border: 1px solid var(--line); background: white; border-radius: 50%; }
.icon-button svg { width: 20px; height: 20px; }
.audio-button { color: var(--blue-deep); background: var(--blue-pale); padding: 10px 15px; min-height: 44px; font-size: 14px; }
.audio-button:hover:not(:disabled) { background: #dbe9ff; }
.pill, .badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 100px; font-size: 12px; font-weight: 750; line-height: 1.5; background: var(--lime-pale); color: #526330; white-space: nowrap; }
.badge { background: var(--blue-pale); color: var(--blue-deep); }
.small { font-size: 13px; line-height: 1.65; }
.muted { color: var(--ink-soft); }
.eyebrow { margin-bottom: 13px; color: var(--blue-deep); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 29px 0 15px; }
.section-title h2, .section-title h3 { margin: 0; }
.section-title .small { text-align: right; }
.footer-note { margin: 30px 0 0; color: var(--ink-soft); text-align: center; font-size: 12px; line-height: 1.75; }

.home-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(255px, 1fr); gap: 22px; align-items: start; }
.hero { position: relative; display: flex; align-items: center; gap: 10px; overflow: hidden; padding: 34px; min-height: 290px; border-radius: 28px; background: #edf2e6; }
.hero-main { position: relative; z-index: 1; flex: 1; min-width: 0; }
.hero h1 { margin: 0 0 13px; }
.hero .lede { max-width: 420px; font-size: 16px; color: #526451; line-height: 1.8; margin-bottom: 23px; }
.hero .primary { min-width: 180px; }
.hero-side { min-width: 0; }
.hero-art { flex: 0 0 34%; width: 34%; align-self: center; overflow: visible; }
.hero-art svg { width: 100%; height: auto; display: block; }
.hero > svg.hero-art { width: 34%; }
.hero-side .section-title:first-child { margin-top: 3px; }
.hero-side > .small { margin: 12px 0; }
.journey { margin-top: 24px; }
.journey > .section-title { margin-top: 0; }
.day-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.day-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; min-height: 140px; padding: 16px; text-align: left; background: white; border: 1.5px solid var(--line); border-radius: 18px; transition: border-color .18s, transform .18s, box-shadow .18s; }
.day-card:hover { border-color: #a3b7cd; transform: translateY(-2px); box-shadow: var(--shadow); }
.day-card.current { border-color: var(--blue); background: var(--blue-pale); }
.day-card.done { background: #f0f5e8; border-color: #cfdfb6; }
.day-number { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #f0f2f2; color: #637280; font-size: 12px; font-weight: 800; }
.current .day-number { background: var(--blue); color: white; }
.done .day-number { background: var(--lime); color: #42552b; }
.day-name { font-size: 15px; font-weight: 800; line-height: 1.4; }
.day-topic { display: block; color: var(--ink-soft); font-size: 11px; line-height: 1.55; }
.challenge-banner { display: flex; align-items: center; gap: 15px; margin-top: 22px; padding: 22px; background: var(--coral-pale); border: 1px solid #f1daca; border-radius: 21px; }
.challenge-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; border-radius: 15px; background: #f9ccac; color: #8c4b32; font-size: 25px; }
.challenge-copy { flex: 1; min-width: 0; }
.challenge-copy h2, .challenge-copy h3 { margin: 0 0 5px; font-size: 18px; }
.challenge-copy p { font-size: 13px; color: #835d4e; margin: 0; }
.challenge-banner .secondary { background: #fffaf5; border-color: #e4bea9; color: #81492e; font-size: 14px; padding-inline: 16px; white-space: nowrap; }

.lesson-wrap { max-width: 740px; margin: 0 auto; }
.lesson-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.back { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 0; background: transparent; color: var(--ink-soft); font-size: 14px; font-weight: 650; }
.back:hover { color: var(--blue); }
.progress-label { color: var(--ink-soft); font-size: 13px; font-weight: 650; text-align: right; }
.progress-track { height: 7px; border-radius: 99px; overflow: hidden; background: #e4e8df; margin: 0 0 24px; }
.progress-fill { height: 100%; border-radius: inherit; background: #a2c34d; transition: width .3s ease; }
.activity-card { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.activity-tag { display: inline-flex; gap: 6px; align-items: center; margin-bottom: 16px; color: var(--blue-deep); font-weight: 750; font-size: 12px; letter-spacing: .04em; }
.activity-card h1 { font-size: clamp(25px, 3.4vw, 32px); margin-bottom: 13px; }
.activity-card .prompt { font-size: 19px; font-weight: 650; line-height: 1.7; margin-bottom: 15px; }
.instruction { color: var(--ink-soft); font-size: 14px; line-height: 1.75; margin: 10px 0 22px; }
.word-display { font-size: clamp(28px, 6vw, 46px); font-weight: 800; letter-spacing: -.02em; line-height: 1.25; overflow-wrap: anywhere; margin: 22px 0 12px; }
.meaning { font-size: 23px; font-weight: 750; margin: 18px 0 12px; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 23px; }
.choice { display: flex; align-items: center; justify-content: center; min-height: 68px; padding: 17px; background: #fcfdfb; border: 2px solid #e2e7e9; border-radius: 16px; color: var(--ink); font-size: 19px; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; transition: background .15s, border-color .15s, transform .15s; }
.choice:hover:not(:disabled) { border-color: #a8c6ef; background: #f4f8ff; transform: translateY(-1px); }
.choice.selected { border-color: var(--blue); background: var(--blue-pale); color: var(--blue-deep); }
.choice.correct { border-color: #71a57e; background: var(--green-pale); color: #2a6743; }
.choice.incorrect { border-color: #e5a38f; background: var(--coral-pale); color: #9b4e37; }
.choice:disabled { opacity: 1; }
.actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px; margin-top: 25px; }
.actions .primary { min-width: 145px; }
.actions .text-button { margin-right: auto; }
.hint-box { margin-top: 20px; padding: 15px 18px; border-radius: 13px; border-left: 4px solid #b4cc66; background: #f4f7e9; color: #586436; font-size: 15px; line-height: 1.7; }
.hint-box strong { color: #415027; }
.feedback { margin-top: 22px; padding: 18px 20px; border-radius: 15px; font-size: 15px; line-height: 1.75; }
.feedback strong { display: block; font-size: 18px; margin-bottom: 3px; }
.feedback.success { color: #2b6545; background: var(--green-pale); }
.feedback.retry { color: #955336; background: var(--coral-pale); }
.feedback.model { color: var(--blue-deep); background: var(--blue-pale); }
.feedback p { margin-bottom: 5px; }

.spell-area { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 16px; padding: 23px 0 20px; min-height: 95px; }
.spell-group { display: flex; justify-content: center; flex-wrap: nowrap; gap: 4px; max-width: 100%; }
.letter-box { width: 36px; min-width: 0; height: 47px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-bottom: 3px solid #b8c6d1; background: #f2f5f7; border-radius: 6px 6px 3px 3px; font-family: "Trebuchet MS", "Arial", sans-serif; font-size: 26px; font-weight: 700; color: var(--ink); text-transform: lowercase; }
.letter-box.filled { background: var(--blue-pale); border-color: #7babe8; }
.letter-box.space { width: 10px; border: 0; background: transparent; }
.keyboard { display: flex; flex-direction: column; gap: 7px; margin: 20px -8px 0; user-select: none; -webkit-user-select: none; }
.key-row { display: flex; align-items: stretch; justify-content: center; gap: 6px; width: 100%; }
.key { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; width: 46px; max-width: 8.6%; min-width: 0; padding: 5px 0; border: 1px solid #d4dce0; border-bottom-width: 3px; border-radius: 8px; background: #f7f8f6; color: var(--ink); font-family: "Trebuchet MS", "Arial", sans-serif; font-size: 22px; font-weight: 700; line-height: 1; }
.key:hover:not(:disabled) { background: var(--blue-pale); border-color: #a9c6ee; }
.key:active:not(:disabled) { transform: translateY(1px); border-bottom-width: 2px; background: #dceaff; }
.key.wide { width: 85px; max-width: 22%; font-family: inherit; font-size: 13px; }
.key:disabled { opacity: .5; }
.sentence-frame { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 20px 0; padding: 19px; border-radius: 16px; background: #f6f7f4; color: var(--ink); font-size: 20px; font-weight: 700; line-height: 1.5; }
.sentence-frame .subject, .sentence-frame .modal, .sentence-frame .verb, .sentence-frame .rest, .sentence-frame .blank { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 5px 10px; border-radius: 8px; }
.sentence-frame .subject { background: #e5edf6; color: #3b5e82; }
.sentence-frame .modal { background: #e4eebd; color: #56662e; }
.sentence-frame .verb { background: #ffe4d5; color: #975635; }
.sentence-frame .rest { padding-inline: 3px; }
.sentence-frame .blank { min-width: 72px; min-height: 44px; border: 2px dashed #9dafc0; color: var(--blue-deep); background: white; }
.sentence-answer { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-height: 90px; padding: 17px; border: 2px dashed #b8cadd; border-radius: 15px; background: #f8fbff; margin: 20px 0 14px; }
.sentence-answer:empty::before { content: ""; display: block; height: 44px; }
.token-bank { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin: 20px 0; padding: 16px 0; }
.token { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 9px 16px; border: 1.5px solid #d7e0e7; border-bottom-width: 3px; background: white; border-radius: 11px; color: var(--ink); font-size: 19px; font-weight: 650; }
.token:hover:not(:disabled) { background: var(--blue-pale); border-color: #a1bfeb; }
.token:disabled { opacity: .26; }
.sentence-answer .token { background: var(--blue-pale); border-color: #c8daf5; color: var(--blue-deep); }
.mini-lesson { margin: 20px 0; padding: 20px 22px; border-radius: 17px; background: #f2f5e9; border: 1px solid #dfe7c9; }
.rule-title { font-size: 16px; font-weight: 800; color: #536235; margin-bottom: 11px; }
.example { font-size: 20px; font-weight: 650; color: var(--ink); line-height: 1.7; margin: 9px 0; }
.rule-note { color: #687356; font-size: 14px; line-height: 1.75; margin: 12px 0 0; }
.mini-lesson .sentence-frame { background: #fbfcf7; padding: 14px; margin-bottom: 11px; }

.result { max-width: 720px; margin: 12px auto 0; padding: 36px; background: white; border: 1px solid var(--line); border-radius: 28px; text-align: center; box-shadow: var(--shadow); }
.result-symbol { display: grid; place-items: center; width: 86px; height: 86px; margin: 0 auto 21px; border-radius: 28px; background: var(--lime); color: #4b6024; font-size: 45px; transform: rotate(-4deg); }
.result h1 { font-size: 32px; margin-bottom: 12px; }
.result > p { color: var(--ink-soft); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin: 28px 0; padding-block: 20px; border-block: 1px solid var(--line); }
.stat { padding: 0 12px; font-size: 13px; color: var(--ink-soft); }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; color: var(--ink); font-size: 28px; font-weight: 800; line-height: 1.4; margin-bottom: 3px; }
.result-list { text-align: left; margin: 22px 0; padding: 0; list-style: none; }
.result-list li { padding: 13px 0; border-bottom: 1px solid #edf0e9; line-height: 1.7; }
.result-list li:last-child { border: 0; }
.result .actions { justify-content: center; }
.result .actions .text-button { margin-right: 0; }
.module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.module-card { display: flex; flex-direction: column; align-items: flex-start; padding: 27px; border: 1px solid var(--line); border-radius: 22px; background: white; text-align: left; }
.module-card h2, .module-card h3 { margin: 14px 0 10px; }
.module-card p { color: var(--ink-soft); font-size: 14px; line-height: 1.8; }
.module-card .primary, .module-card .secondary { margin-top: auto; }
.word-list { display: flex; flex-direction: column; margin: 20px 0; }
.word-row { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 10px 18px; padding: 17px 4px; border-bottom: 1px solid var(--line); }
.word-row strong { font-size: 19px; }
.word-row:last-child { border-bottom: 0; }
.empty { padding: 38px 24px; text-align: center; border: 1px dashed #cbd5ca; border-radius: 20px; color: var(--ink-soft); background: #f5f7ee; }
.storage-warning { margin: 0 0 20px; padding: 12px 16px; border-radius: 12px; border: 1px solid #e2c388; background: #fff4d9; color: #7b5f25; font-size: 13px; line-height: 1.7; }
details > summary { cursor: pointer; min-height: 44px; padding-block: 10px; color: var(--ink); font-weight: 750; }
dialog { width: min(470px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 29px; border: 1px solid var(--line); border-radius: 22px; color: var(--ink); background: var(--paper); box-shadow: 0 20px 80px rgb(25 45 65 / 20%); }
dialog::backdrop { background: rgb(24 42 59 / 36%); backdrop-filter: blur(3px); }
dialog h2 { font-size: 23px; }
dialog p { font-size: 15px; line-height: 1.8; color: var(--ink-soft); }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 23px; }
input[type="text"], input[type="password"], select { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid #cdd8df; border-radius: 11px; background: white; color: var(--ink); }
label { display: block; font-size: 14px; font-weight: 650; margin-bottom: 7px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; }
th { font-size: 12px; color: var(--ink-soft); font-weight: 750; }

@media (min-width: 900px) {
  .home-grid .hero { flex-direction: column; align-items: flex-start; }
  .home-grid .hero-art { width: 75%; max-height: 210px; flex-basis: auto; align-self: flex-end; margin: -15px -20px -15px 0; }
  .home-grid .hero h1 { font-size: 40px; }
  .home-grid .hero-side .day-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .app-shell { padding: 0 20px 30px; }
  .topbar { min-height: 89px; }
  .home-grid { grid-template-columns: 1fr; gap: 22px; }
  .hero { min-height: 270px; padding: 28px; }
  .hero-art { flex-basis: 32%; width: 32%; }
  .hero-side .section-title:first-child { margin-top: 0; }
  .activity-card { padding: 26px; }
  .module-card { padding: 23px; }
}
@media (max-width: 520px) {
  .app-shell { padding: 0 16px 25px; }
  .topbar { min-height: 81px; gap: 10px; }
  .brand { gap: 9px; }
  .brand-mark { width: 37px; height: 37px; flex-basis: 37px; border-radius: 12px; font-size: 22px; }
  .brand-copy { font-size: 16px; }
  .brand-copy small, .brand-copy span { font-size: 9px; letter-spacing: .06em; }
  .top-actions { gap: 2px; }
  .top-actions .text-button { font-size: 12px; padding-inline: 7px; }
  .top-actions .pill { padding-inline: 9px; font-size: 11px; }
  .tabs { gap: 3px; margin-bottom: 20px; padding-bottom: 11px; }
  .tabs button { flex: 1; font-size: 12px; padding: 8px 9px; border-radius: 10px; }
  .hero { display: block; min-height: 278px; padding: 26px 23px; border-radius: 22px; }
  .hero h1 { font-size: 31px; max-width: 245px; margin-bottom: 13px; }
  .hero .lede { font-size: 14px; line-height: 1.85; max-width: 205px; margin-bottom: 22px; }
  .hero .eyebrow { font-size: 10px; margin-bottom: 15px; }
  .hero .primary { min-width: 165px; padding-inline: 17px; font-size: 15px; }
  .hero-art, .hero > svg.hero-art { position: absolute; width: 115px; height: 145px; right: -12px; bottom: 24px; opacity: .95; }
  .hero-main { max-width: 100%; }
  .section-title { margin: 25px 0 13px; }
  .section-title h2 { font-size: 21px; }
  .section-title .small { font-size: 11px; }
  .day-grid { gap: 9px; }
  .day-card { min-height: 132px; padding: 13px 11px; gap: 7px; border-radius: 15px; }
  .day-name { font-size: 13px; }
  .day-topic { font-size: 10px; }
  .day-number { width: 25px; height: 25px; font-size: 11px; }
  .challenge-banner { gap: 12px; padding: 19px 17px; align-items: flex-start; flex-wrap: wrap; border-radius: 18px; }
  .challenge-icon { width: 40px; height: 40px; flex-basis: 40px; border-radius: 12px; font-size: 22px; }
  .challenge-copy h2, .challenge-copy h3 { font-size: 16px; }
  .challenge-copy p { font-size: 12px; }
  .challenge-banner > .secondary { width: 100%; min-height: 44px; margin-top: 1px; }
  .lesson-top { margin-bottom: 8px; }
  .back { font-size: 13px; }
  .progress-label { font-size: 11px; }
  .progress-track { margin-bottom: 18px; height: 6px; }
  .activity-card { padding: 24px 18px; border-radius: 20px; }
  .activity-card h1 { font-size: 25px; }
  .activity-tag { font-size: 11px; margin-bottom: 13px; }
  .activity-card .prompt { font-size: 17px; }
  .instruction { font-size: 13px; margin-bottom: 18px; }
  .meaning { font-size: 21px; }
  .word-display { font-size: 34px; }
  .choices { gap: 10px; margin-top: 20px; }
  .choice { min-height: 62px; padding: 13px 9px; border-radius: 13px; font-size: 17px; }
  .actions { gap: 10px; margin-top: 23px; }
  .actions .primary { min-width: 130px; font-size: 15px; }
  .actions .text-button { font-size: 13px; padding-inline: 6px; }
  .spell-area { gap: 12px 14px; padding-block: 19px 12px; }
  .spell-group { gap: 3px; }
  .letter-box { width: 23px; height: 37px; font-size: 22px; border-bottom-width: 2px; }
  .keyboard { gap: 7px; margin: 20px -9px 0; }
  .key-row { gap: 3px; }
  .key { min-height: 47px; width: 30px; max-width: calc((100% - 27px) / 10); font-size: 20px; border-radius: 7px; }
  .key.wide { width: 65px; max-width: 22%; font-size: 12px; }
  .sentence-frame { font-size: 17px; padding: 13px; gap: 6px; border-radius: 13px; }
  .sentence-frame .subject, .sentence-frame .modal, .sentence-frame .verb, .sentence-frame .rest, .sentence-frame .blank { padding: 4px 8px; min-height: 36px; }
  .sentence-frame .blank { min-height: 44px; }
  .sentence-answer { padding: 12px; gap: 7px; min-height: 88px; }
  .token-bank { gap: 7px; margin: 15px 0; padding: 12px 0; }
  .token { min-height: 44px; font-size: 17px; padding: 8px 12px; border-radius: 9px; }
  .mini-lesson { padding: 18px 15px; }
  .rule-title { font-size: 15px; }
  .example { font-size: 18px; }
  .rule-note { font-size: 13px; }
  .hint-box { padding: 13px 15px; font-size: 14px; }
  .feedback { padding: 16px; font-size: 14px; }
  .feedback strong { font-size: 17px; }
  .result { padding: 29px 20px; border-radius: 22px; }
  .result h1 { font-size: 28px; }
  .result-symbol { width: 74px; height: 74px; font-size: 38px; border-radius: 24px; }
  .stat { padding-inline: 7px; font-size: 11px; }
  .stat strong { font-size: 25px; }
  .module-grid { grid-template-columns: 1fr; gap: 14px; }
  .module-card { padding: 23px; border-radius: 19px; }
  .word-row { padding-block: 15px; gap: 8px; }
  .word-row strong { font-size: 17px; }
  .word-row .small { font-size: 12px; }
  .footer-note { margin-top: 25px; font-size: 11px; }
  dialog { padding: 24px 21px; }
}
@media (max-width: 374px) {
  .app-shell { padding-inline: 12px; }
  .activity-card { padding-inline: 15px; }
  .brand-copy { font-size: 15px; }
  .hero { padding-inline: 21px; }
  .hero h1 { font-size: 29px; }
  .hero-art, .hero > svg.hero-art { width: 101px; right: -11px; }
  .letter-box { width: 22px; }
  .key { min-height: 46px; }
  .day-card { padding-inline: 9px; }
  .tabs button { padding-inline: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  body { background: white; }
  .top-actions, .tabs, .keyboard, .actions, .audio-button, .back { display: none !important; }
  .app-shell { max-width: none; padding: 0; }
  .activity-card, .result { box-shadow: none; break-inside: avoid; }
}
