:root {
  --paper: #f8f4e9;
  --paper-deep: #eee6d5;
  --surface: #fffdf8;
  --ink: #192847;
  --muted: #4a5870;
  --blue: #315a92;
  --blue-dark: #244570;
  --blue-pale: #e3ecf6;
  --leaf: #287554;
  --leaf-pale: #e2f0df;
  --coral: #bb4b3e;
  --coral-pale: #fce7da;
  --gold: #976117;
  --gold-pale: #f8edce;
  --line: #c6c9c0;
  --focus: #6037b8;
  --shadow: 0 4px 0 rgba(29, 48, 76, .09), 0 18px 42px rgba(49, 62, 82, .08);
  color: var(--ink);
  background: var(--paper);
  font-family: ui-rounded, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-size: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 7% 9%, rgba(242, 211, 159, .24), transparent 26rem),
    radial-gradient(ellipse at 92% 26%, rgba(178, 211, 183, .2), transparent 30rem),
    var(--paper);
}
button, a { font: inherit; }
button { color: inherit; }
a { color: var(--blue-dark); text-underline-offset: .18em; }
[hidden] { display: none !important; }
.site-header {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, 86rem);
  min-height: 5.5rem;
  margin: 0 auto;
  padding: .75rem 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  border-bottom: 1px solid rgba(83, 91, 99, .12);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark {
  position: relative;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 1.05rem;
  color: #fffdf5;
  background: var(--leaf);
  font-size: 1.7rem;
  font-weight: 900;
  box-shadow: 0 4px 0 #205d42;
  transform: rotate(-3deg);
}
.brand-mark span { transform: rotate(3deg); }
.brand-mark i {
  position: absolute;
  right: -.18rem;
  top: -.16rem;
  width: .72rem;
  height: .72rem;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: #f4c65d;
}
.brand-copy strong, .brand-copy small { display: block; }
.brand-copy strong { font-size: .98rem; letter-spacing: -.03em; }
.brand-copy small { margin-top: .08rem; color: var(--muted); font-size: .73rem; }
.site-nav { min-width: 0; display: flex; justify-content: center; gap: .2rem; overflow-x: auto; scrollbar-width: thin; }
.nav-item {
  flex: 0 0 auto;
  min-height: 44px;
  padding: .55rem .72rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
}
.nav-item:hover { background: var(--blue-pale); color: var(--blue-dark); }
.nav-item.is-active { background: var(--blue); color: white; }
.quiet-button {
  min-height: 48px;
  padding: .6rem .95rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: .84rem;
  font-weight: 800;
  cursor: pointer;
}
main { width: min(100% - 2rem, 86rem); min-height: calc(100vh - 11rem); margin: 0 auto; }
.page { width: 100%; max-width: 74rem; margin: 0 auto; padding: clamp(1rem, 3vw, 2.5rem) 0 3.25rem; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: .8rem; font-size: clamp(1.9rem, 4.2vw, 3.1rem); line-height: 1.12; letter-spacing: -.055em; }
h2 { margin-bottom: .6rem; font-size: clamp(1.22rem, 2.5vw, 1.7rem); line-height: 1.25; letter-spacing: -.035em; }
p { line-height: 1.65; }
.eyebrow {
  margin: 0 0 .55rem;
  color: var(--leaf);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.intro { max-width: 42rem; color: var(--muted); font-size: 1.04rem; }
.safety-note, .privacy-inline { color: var(--muted); font-size: .8rem; line-height: 1.6; }
.skip-link {
  position: absolute;
  left: 1rem;
  top: -6rem;
  z-index: 20;
  padding: .8rem 1rem;
  border-radius: .8rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.skip-link:focus { top: 1rem; }
button:focus-visible, a:focus-visible, [tabindex="-1"]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
button { -webkit-tap-highlight-color: transparent; }
button:disabled { opacity: .52; cursor: not-allowed; }
.hero-shell {
  position: relative;
  min-height: 24rem;
  padding: clamp(1.25rem, 4vw, 3.25rem);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(17rem, .92fr);
  gap: clamp(1rem, 3vw, 3rem);
  align-items: center;
  overflow: hidden;
  border: 1px solid #d8cbb5;
  border-radius: 2rem 2rem 2rem .7rem;
  background: linear-gradient(123deg, #fffaf0 0%, #fff8e9 49%, #f5ead6 100%);
  box-shadow: var(--shadow);
}
.hero-shell::before {
  content: "";
  position: absolute;
  width: 10rem;
  height: 10rem;
  top: -6rem;
  right: 27%;
  border: 1px solid rgba(49, 90, 146, .12);
  border-radius: 50%;
}
.hero-copy, .hero-art { position: relative; z-index: 1; }
.hero-copy { max-width: 42rem; }
.hero-copy .eyebrow { color: var(--coral); }
.hero-copy .intro { margin-bottom: 1.3rem; }
.hero-actions, .button-row, .home-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
.button {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.1rem;
  border: 1.5px solid transparent;
  border-radius: 1rem;
  font-size: .9rem;
  font-weight: 850;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button-primary { color: white; background: var(--blue); box-shadow: 0 4px 0 var(--blue-dark); }
.button-primary:hover:not(:disabled) { background: var(--blue-dark); }
.button-soft { color: var(--blue-dark); border-color: #bac9d8; background: var(--blue-pale); }
.button-soft:hover:not(:disabled) { background: #d6e2f0; }
.button-outline { color: var(--coral); border-color: #d5a49a; background: transparent; }
.button-text { min-height: 48px; padding: .55rem .7rem; color: var(--blue-dark); background: transparent; text-decoration: underline; text-underline-offset: .2em; }
.hero-art { min-width: 0; }
.hero-art img { display: block; width: 100%; height: auto; filter: drop-shadow(0 14px 12px rgba(38, 55, 71, .1)); }
.hero-stamp {
  position: absolute;
  right: .2rem;
  bottom: .25rem;
  width: 6.5rem;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  border: 2px dashed rgba(40, 117, 84, .56);
  border-radius: 50%;
  color: var(--leaf);
  background: rgba(255, 253, 248, .9);
  font-size: .85rem;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
  transform: rotate(8deg);
}
.level-section, .category-section { margin-top: clamp(2.4rem, 5vw, 4rem); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section-heading h1, .section-heading h2 { margin-bottom: .3rem; }
.section-heading .intro { margin-bottom: 0; }
.level-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin-top: 1rem; }
.level-card {
  min-width: 0;
  min-height: 6rem;
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1rem;
  border: 1.5px solid #d5d1c5;
  border-radius: 1.15rem;
  background: rgba(255, 253, 248, .86);
  text-align: left;
  cursor: pointer;
}
.level-card:hover { border-color: var(--leaf); }
.level-card.selected { border: 2px solid var(--leaf); background: var(--leaf-pale); box-shadow: 0 0 0 3px rgba(40, 117, 84, .1); }
.level-glyph { flex: 0 0 3.15rem; width: 3.15rem; height: 3.15rem; display: grid; place-items: center; border-radius: 1rem; color: var(--blue-dark); background: #e4edf6; font-size: 1.8rem; font-weight: 900; }
.level-card strong, .level-card small { display: block; }
.level-card strong { font-size: .9rem; }
.level-card small { margin-top: .2rem; color: var(--muted); font-size: .75rem; line-height: 1.4; }
.home-lower { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(16rem, .7fr); gap: 1rem; margin-top: 1rem; }
.path-card, .progress-card, .panel, .finish-card, .empty-card {
  min-width: 0;
  padding: clamp(1.1rem, 3vw, 1.8rem);
  border: 1px solid #d4d0c6;
  border-radius: 1.3rem;
  background: var(--surface);
  box-shadow: 0 3px 0 rgba(29, 48, 76, .06);
}
.path-card { background: #fffcf4; }
.progress-card { background: linear-gradient(150deg, #e7f0e3, #f8f5e7); }
.path-count, .inventory-pill {
  flex: 0 0 auto;
  padding: .45rem .7rem;
  border-radius: 999px;
  color: var(--leaf);
  background: var(--leaf-pale);
  font-size: .76rem;
  font-weight: 900;
}
.path-list { margin: .7rem 0 1.2rem; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem .9rem; list-style: none; }
.path-list li { display: flex; align-items: center; gap: .6rem; min-height: 2.3rem; color: var(--muted); font-size: .85rem; font-weight: 720; }
.path-list li span { color: var(--coral); font-size: .7rem; font-weight: 900; }
.progress-number { margin: .8rem 0; color: var(--leaf); font-size: 2.7rem; font-weight: 950; line-height: 1; }
.progress-number span { display: block; margin-top: .45rem; color: var(--ink); font-size: .85rem; font-weight: 800; }
.progress-card > p { color: var(--muted); font-size: .88rem; }
.privacy-inline { margin: .8rem 0 0; }
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.category-card, .catalog-card {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 1rem;
  border: 1px solid #d5d1c5;
  border-radius: 1.05rem;
  background: rgba(255, 253, 248, .9);
  text-align: left;
  cursor: pointer;
}
.category-card { min-height: 6rem; flex-wrap: wrap; padding-right: 2.5rem; }
.category-card:hover, .catalog-card:hover { border-color: var(--leaf); background: white; box-shadow: 0 5px 16px rgba(36, 69, 112, .08); }
.category-symbol { flex: 0 0 2.6rem; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: .85rem; color: var(--blue-dark); background: var(--gold-pale); font-size: 1.3rem; font-weight: 900; }
.category-title { font-size: .9rem; font-weight: 900; }
.category-description { flex-basis: 100%; padding-left: 3.4rem; margin-top: -.55rem; color: var(--muted); font-size: .76rem; }
.category-arrow, .catalog-arrow { position: absolute; right: .85rem; top: 50%; color: var(--leaf); font-size: 1.15rem; font-weight: 900; transform: translateY(-50%); }
.storage-note { margin: 1rem 0 0; padding: .75rem 1rem; border-left: 3px solid var(--gold); border-radius: 0 .7rem .7rem 0; color: var(--muted); background: rgba(248, 237, 206, .68); font-size: .8rem; }
.catalog-page { max-width: 70rem; }
.catalog-heading { margin-bottom: 1.3rem; }
.catalog-heading .section-heading { align-items: center; }
.inventory-pill { color: var(--blue-dark); background: var(--blue-pale); }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.catalog-card { min-height: 5.3rem; padding: .75rem 2.35rem .75rem .85rem; }
.catalog-glyph { flex: 0 0 3.1rem; width: 3.1rem; height: 3.1rem; display: grid; place-items: center; border-radius: .95rem; color: var(--blue-dark); background: #e6edf6; font-size: 1.75rem; font-weight: 950; }
.catalog-picture { flex: 0 0 3.1rem; width: 3.1rem; height: 3.1rem; display: grid; place-items: center; border-radius: .95rem; background: #f8edce; font-size: 1.7rem; }
.catalog-copy { min-width: 0; display: block; }
.catalog-copy strong, .catalog-copy small { display: block; }
.catalog-copy strong { overflow-wrap: anywhere; font-size: .9rem; line-height: 1.35; }
.catalog-copy small { margin-top: .2rem; color: var(--muted); font-size: .73rem; line-height: 1.35; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 1rem; margin: 1.3rem 0; }
.pagination > span { min-width: 4rem; color: var(--muted); font-size: .84rem; font-weight: 800; text-align: center; }
.inventory-pill { white-space: nowrap; }
.activity-page { max-width: 54rem; }
.activity-panel { padding: clamp(1.1rem, 4vw, 2.3rem); }
.step-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.6rem; }
.step-track { display: flex; flex: 1 1 auto; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.step-track li { flex: 1 1 1rem; min-width: .4rem; height: .5rem; border-radius: 999px; background: #d4d5cd; }
.step-track li[aria-current="step"] { background: var(--blue); }
.step-track li[data-done="true"] { background: var(--leaf); }
.stage-label, .progress-copy { flex: 0 0 auto; color: var(--muted); font-size: .78rem; font-weight: 800; }
.letter-lesson { display: grid; grid-template-columns: minmax(8rem, .45fr) minmax(0, .8fr); align-items: center; gap: clamp(1rem, 4vw, 2rem); margin: 1.25rem 0; }
.letter-glyph { min-height: 13rem; display: grid; place-items: center; border: 1px solid #c4d3e1; border-radius: 1.6rem; color: var(--blue-dark); background: linear-gradient(145deg, #e3edf7, #f4f2e9); font-size: clamp(6rem, 17vw, 10rem); font-weight: 950; }
.example-word { display: grid; grid-template-columns: 3rem 1fr; align-items: center; gap: .25rem .65rem; margin: 1rem 0; padding: .8rem; border-radius: 1rem; background: var(--gold-pale); }
.example-word > span:first-child { grid-row: span 2; font-size: 2.2rem; text-align: center; }
.example-word strong { font-size: 1rem; }
.example-word small { color: var(--muted); font-size: .78rem; }
.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; margin: 1rem 0; }
.word-card {
  position: relative;
  min-width: 0;
  min-height: 8.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .8rem .45rem;
  border: 1.5px solid #d3d0c5;
  border-radius: 1.05rem;
  background: var(--surface);
  cursor: pointer;
}
.word-card.selected-choice { border: 2px solid var(--blue); background: var(--blue-pale); box-shadow: 0 0 0 3px rgba(49, 90, 146, .1); }
.word-emoji { font-size: clamp(2rem, 8vw, 3.4rem); line-height: 1.1; }
.word-label { font-size: .88rem; font-weight: 900; }
.choice-mark { position: absolute; top: .4rem; right: .4rem; width: 1.45rem; height: 1.45rem; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--leaf); font-size: .8rem; font-weight: 900; }
.choice-button { min-height: 4.2rem; border: 1.5px solid #d1d0c8; border-radius: 1rem; background: var(--surface); font-size: 1.7rem; font-weight: 900; cursor: pointer; }
.choice-button.selected-choice { border: 2px solid var(--blue); color: var(--blue-dark); background: var(--blue-pale); }
.answer-feedback { min-height: 2.8rem; margin: 1rem 0; padding: .75rem 1rem; border-radius: .85rem; font-weight: 850; line-height: 1.5; }
.answer-feedback[data-kind="good"] { color: #21583e; background: var(--leaf-pale); }
.answer-feedback[data-kind="help"] { color: #704719; background: var(--gold-pale); }
.hint-box { margin: .8rem 0; padding: .8rem 1rem; border: 1px solid #e4bf77; border-radius: .9rem; color: #5a441e; background: #fff5d9; line-height: 1.55; }
.speak-status { min-height: 1.6rem; color: var(--muted); font-size: .82rem; }
.compose-board { display: grid; grid-template-columns: 1fr auto 1fr; gap: .85rem; align-items: center; margin: 1.4rem 0; padding: clamp(.8rem, 3vw, 1.3rem); border-radius: 1.3rem; background: #f4f1e8; }
.compose-board section { min-width: 0; }
.compose-board h2 { font-size: .95rem; }
.compose-plus { color: var(--gold); font-size: 1.6rem; font-weight: 900; }
.tile-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; }
.tile-button { min-width: 0; min-height: 4rem; border: 1px solid #bac9d8; border-radius: .9rem; color: var(--blue-dark); background: white; font-size: 1.6rem; font-weight: 900; cursor: pointer; }
.tile-button.selected-choice { border: 2px solid var(--leaf); background: var(--leaf-pale); }
.compose-result { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: .8rem; min-height: 5.2rem; border-radius: 1rem; background: white; }
.compose-result span { color: var(--muted); font-size: .82rem; }
.compose-result strong { color: var(--blue-dark); font-size: 2.5rem; line-height: 1; }
.story-art { width: min(100%, 9rem); aspect-ratio: 1; display: grid; place-items: center; margin: 1rem auto; border-radius: 44% 56% 50% 50%; color: var(--leaf); background: var(--leaf-pale); font-size: 4.5rem; }
.story-card { margin: 1rem 0; padding: clamp(1rem, 4vw, 1.8rem); border: 1px solid #ddd1b6; border-radius: 1.2rem .6rem 1.2rem 1.2rem; background: #fffaf0; box-shadow: var(--shadow); }
.story-card ol { margin: 0; padding-left: 1.45em; }
.story-card li { margin: 0 0 .55rem; padding-left: .3rem; font-size: clamp(1.12rem, 3vw, 1.5rem); font-weight: 760; line-height: 1.65; }
.story-card li::marker { color: var(--coral); font-size: .9em; }
.safe-exit { display: flex; justify-content: flex-end; margin-top: 1.25rem; }
.finish-card { max-width: 42rem; margin: 2rem auto; padding: clamp(1.4rem, 5vw, 3rem); text-align: center; }
.finish-mark { color: var(--coral); font-size: 3rem; }
.centered { justify-content: center; margin: 1.2rem 0; }
.empty-card { max-width: 32rem; margin: 2rem auto; text-align: center; }
.empty-card > span { display: block; margin-bottom: .5rem; color: var(--leaf); font-size: 3rem; }
.parent-page { max-width: 70rem; }
.parent-panel { max-width: 52rem; margin: 0 auto; }
.parent-panel dl { display: grid; grid-template-columns: minmax(8rem, .65fr) minmax(0, 1fr); gap: .55rem 1rem; margin: 1.2rem 0; }
.parent-panel dt { color: var(--muted); font-size: .84rem; }
.parent-panel dd { min-width: 0; margin: 0; font-size: .87rem; font-weight: 750; overflow-wrap: anywhere; }
.source-list { padding-left: 1.2rem; font-size: .8rem; line-height: 1.6; }
.source-list li { margin: .25rem 0; }
.source-list a { overflow-wrap: anywhere; }
.parent-settings { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.setting-row { min-height: 4rem; display: flex; align-items: center; justify-content: space-between; gap: .8rem; border-bottom: 1px solid rgba(83, 91, 99, .15); }
.setting-row > span { font-size: .86rem; font-weight: 780; }
.tip-section { margin-top: 2.7rem; }
.tip-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.tip-card { min-width: 0; padding: 1rem; border-left: 3px solid var(--leaf); border-radius: 0 .85rem .85rem 0; background: rgba(255, 253, 248, .9); }
.tip-card h2 { margin-bottom: .25rem; font-size: .95rem; }
.tip-card p { margin: 0; color: var(--muted); font-size: .82rem; }
.modal-backdrop { position: fixed; inset: 0; z-index: 10; display: grid; place-items: end center; padding: 1rem; background: rgba(19, 32, 53, .55); }
.modal { width: min(100%, 38rem); max-height: min(90vh, 48rem); overflow: auto; padding: clamp(1.2rem, 4vw, 1.8rem); border: 1px solid #d5d0c4; border-radius: 1.45rem 1.45rem .6rem 1.45rem; background: var(--surface); box-shadow: 0 22px 55px rgba(14, 24, 42, .25); }
.modal h2 { margin-bottom: .55rem; }
.modal label { display: block; margin: .6rem 0 .35rem; font-size: .88rem; font-weight: 800; }
.modal input { width: 100%; min-height: 3rem; padding: .6rem .8rem; border: 1.5px solid var(--line); border-radius: .7rem; color: var(--ink); background: white; font: inherit; }
.modal-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; }
.site-footer { width: min(100% - 2rem, 86rem); margin: 1rem auto 0; padding: 1.1rem 0 calc(1.1rem + env(safe-area-inset-bottom)); display: flex; justify-content: space-between; gap: .5rem 1.2rem; flex-wrap: wrap; border-top: 1px solid rgba(83, 91, 99, .18); color: var(--muted); font-size: .76rem; }
.noscript { max-width: 40rem; padding: 3rem 1rem; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
body.high-contrast {
  --paper: #fff;
  --paper-deep: #fff;
  --surface: #fff;
  --ink: #000;
  --muted: #202020;
  --blue: #003d8f;
  --blue-dark: #002a63;
  --leaf: #005c2d;
  --leaf-pale: #e7ffe9;
  --line: #222;
  --focus: #6a00cc;
  background: white;
}
body.high-contrast .hero-shell, body.high-contrast .path-card, body.high-contrast .progress-card,
body.high-contrast .category-card, body.high-contrast .catalog-card, body.high-contrast .panel,
body.high-contrast .story-card, body.high-contrast .tip-card { border-color: #222; background: #fff; }
body.reduce-motion *, body.reduce-motion *::before, body.reduce-motion *::after {
  scroll-behavior: auto !important;
  animation-duration: .01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .01ms !important;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (max-width: 900px) {
  .site-header { grid-template-columns: auto 1fr auto; }
  .site-nav { justify-content: flex-start; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-shell { grid-template-columns: minmax(0, 1.1fr) minmax(14rem, .9fr); }
}
@media (max-width: 700px) {
  .site-header { width: min(100% - 1.2rem, 86rem); grid-template-columns: 1fr auto; gap: .4rem .7rem; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; margin: .2rem -.1rem 0; padding-bottom: .15rem; }
  .nav-item { padding-inline: .7rem; }
  main { width: min(100% - 1.2rem, 86rem); }
  .site-footer { width: min(100% - 1.2rem, 86rem); }
  .hero-shell { grid-template-columns: 1fr; gap: .5rem; border-radius: 1.5rem 1.5rem 1.5rem .6rem; }
  .hero-art { width: min(100%, 31rem); margin: -.5rem auto -1rem; }
  .hero-stamp { width: 5.5rem; font-size: .75rem; }
  .level-options { grid-template-columns: 1fr; }
  .level-card { min-height: 4.8rem; }
  .home-lower { grid-template-columns: 1fr; }
  .path-list { grid-template-columns: 1fr 1fr; }
  .letter-lesson { grid-template-columns: 1fr; }
  .letter-glyph { min-height: 9.5rem; }
  .compose-board { grid-template-columns: 1fr; }
  .compose-plus { text-align: center; }
  .compose-board h2 { text-align: center; }
  .compose-result { grid-column: 1; }
}
@media (max-width: 430px) {
  .site-header, main, .site-footer { width: min(100% - 1rem, 86rem); }
  .page { padding-top: .85rem; }
  .brand-mark { width: 2.7rem; height: 2.7rem; }
  .quiet-button { min-height: 44px; padding: .5rem .7rem; }
  .hero-shell { padding: 1.1rem; }
  .hero-actions .button { flex: 1 1 100%; }
  .home-card-actions .button { flex: 1 1 100%; }
  .path-list { grid-template-columns: 1fr; }
  .category-grid, .catalog-grid, .tip-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 5.2rem; }
  .catalog-card { min-height: 4.8rem; }
  .choice-grid { gap: .4rem; }
  .word-card { min-height: 7.2rem; padding-inline: .25rem; }
  .word-label { font-size: .8rem; }
  .button { max-width: 100%; }
  .activity-panel > .button { width: 100%; margin-top: .55rem; }
  .step-head { flex-wrap: wrap; gap: .45rem; }
  .step-track { order: 3; flex-basis: 100%; }
  .step-track li { height: .42rem; }
  .parent-panel dl { grid-template-columns: 1fr; gap: .15rem; }
  .parent-panel dd { margin-bottom: .45rem; }
  .section-heading { align-items: flex-start; }
  .inventory-pill { margin-top: .2rem; }
  .site-footer { font-size: .72rem; }
}
@media (max-width: 350px) {
  :root { font-size: 17px; }
  .brand-copy small { font-size: .68rem; }
  .nav-item { padding-inline: .58rem; font-size: .76rem; }
  .choice-grid { grid-template-columns: 1fr; }
  .word-card { min-height: 5rem; flex-direction: row; justify-content: flex-start; padding-inline: .8rem; }
  .word-emoji { flex: 0 0 2.5rem; text-align: center; font-size: 2.3rem; }
  .word-label { flex: 1; text-align: left; }
  .tile-row { gap: .3rem; }
  .tile-button { min-height: 3.5rem; }
}
@media (forced-colors: active) {
  .button, .nav-item, .level-card, .catalog-card, .word-card, .tile-button { border: 1px solid ButtonText; }
}
@media print {
  .site-header, .site-footer, .button, .nav-item, .safe-exit { display: none !important; }
  body { background: white; }
  .page { max-width: 100%; }
}
