:root {
  --accent:#17685b;
  --pale:#e4f0e9;
  --ink:#243d3b;
  --muted:#637570;
  --paper:#fbfaf6;
  --line:#e4e7dd;
  --orange:#d77b45;
  font-family:'DM Sans',sans-serif;
  color:var(--ink);
  background:var(--paper);
  font-synthesis:none
}
* {
  box-sizing:border-box
}
body {
  margin:0
}
button,a,input,select {
  -webkit-tap-highlight-color:transparent
}
button,select,input {
  font:inherit
}
button,a {
  touch-action:manipulation
}
button {
  cursor:pointer;
  color:inherit
}
button {
  border:0
}
button:disabled {
  cursor:default
}
a {
  color:inherit
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,.reading:focus-visible {
  outline:3px solid #c45e24;
  outline-offset:5px
}
button {
  transition:background .18s,transform .18s,border-color .18s
}
button:hover:not(:disabled) {
  transform:translateY(-2px)
}
h1,h2,h3,p {
  margin:0
}
h1,h2 {
  font-family:Manrope,sans-serif;
  letter-spacing:-.045em
}
h1 {
  font-size:clamp(36px,4.2vw,62px);
  line-height:1.15;
  font-weight:800
}
h2 {
  font-size:29px;
  font-weight:800
}
svg {
  display:block
}
svg:not(.hero-art) {
  width:24px;
  height:24px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round
}
#main:focus {
  outline:0
}
.header {
  max-width:1360px;
  padding:24px 48px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  border-bottom:1px solid var(--line)
}
.brand {
  text-decoration:none;
  font-family:Manrope,sans-serif;
  font-size:33px;
  font-weight:800;
  letter-spacing:-2px;
  display:flex;
  align-items:center;
  gap:9px
}
.brand-dot {
  color:var(--accent);
  margin-left:-9px
}
.brand-mark {
  width:39px;
  height:43px;
  color:var(--paper);
  background:var(--accent);
  border-radius:13px;
  font-size:35px;
  line-height:1;
  display:grid;
  place-items:center;
  letter-spacing:0;
  transform:rotate(-5deg)
}
.header-note {
  font-size:13px;
  color:var(--muted);
  margin-right:auto;
  margin-left:28px
}
.controls {
  display:flex;
  align-items:center;
  gap:16px
}
.tool {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  background:transparent;
  border:1px solid var(--line);
  border-radius:14px;
  min-height:64px;
  min-width:64px;
  padding:12px 17px;
  font-weight:600;
  font-size:14px;
  white-space:nowrap
}
.tool:hover {
  background:var(--pale)
}
.home {
  max-width:1264px;
  padding:36px 48px 0;
  margin:auto
}
.eyebrow {
  font-size:10px;
  font-weight:700;
  letter-spacing:1.7px;
  line-height:1.6
}
.home>.eyebrow {
  display:flex;
  align-items:center;
  gap:9px;
  color:var(--muted)
}
.tiny-star {
  color:var(--orange);
  font-size:18px
}
.welcome {
  display:grid;
  grid-template-columns:1.15fr 1fr;
  gap:40px;
  align-items:center;
  padding:32px 0 46px
}
.pill {
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding:8px 12px;
  border-radius:25px;
  background:var(--pale);
  font-size:11px;
  letter-spacing:.4px;
  font-weight:600;
  color:var(--accent)
}
.live-dot,.current-dot {
  display:inline-block;
  background:var(--accent);
  width:6px;
  height:6px;
  border-radius:50%
}
.welcome h1 {
  margin:22px 0;
  max-width:670px
}
.welcome h1 em {
  font-style:normal;
  color:var(--accent);
  position:relative;
  white-space:nowrap
}
.welcome h1 em:after {
  content:'';
  position:absolute;
  bottom:-7px;
  left:0;
  right:0;
  height:7px;
  border-top:3px solid #e6b05e;
  border-radius:50%;
  transform:rotate(-2deg)
}
.welcome-copy>p {
  color:var(--muted);
  font-size:15px;
  line-height:1.9;
  margin-bottom:28px
}
.primary,.secondary {
  min-height:64px;
  padding:16px 25px;
  border-radius:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:24px;
  font-weight:700;
  font-size:15px;
  line-height:1.5
}
.primary {
  background:var(--accent);
  color:#fff;
  box-shadow:0 4px 0 #00000013
}
.primary:hover {
  filter:brightness(.94)
}
.primary svg {
  width:21px
}
.secondary {
  border:1px solid var(--line);
  background:#fff
}
.secondary:hover {
  background:var(--pale)
}
.promise {
  display:flex;
  flex-wrap:wrap;
  gap:18px;
  color:var(--muted);
  font-size:10px;
  margin-top:23px
}
.hero-scene {
  position:relative;
  min-height:374px;
  background:#edf1e6;
  border-radius:48% 47% 44% 45%;
  display:grid;
  place-items:center;
  margin:8px 10px 0 20px;
  isolation:isolate
}
.hero-scene:before {
  content:'';
  position:absolute;
  inset:27px;
  background:radial-gradient(#c7d6bb 1px,transparent 1px);
  background-size:15px 15px;
  opacity:.45;
  z-index:-1;
  border-radius:50%
}
.hero-art {
  width:100%;
  height:100%
}
.hero-scene .hero-art {
  height:345px;
  width:316px;
  margin-top:14px;
  z-index:1;
  filter:drop-shadow(0 8px 4px #294f3110)
}
.scene-orbit {
  position:absolute;
  width:100%;
  height:60%;
  border:1px solid #d4ddca;
  border-radius:50%;
  transform:rotate(-28deg);
  z-index:-1
}
.orbit-two {
  transform:rotate(35deg);
  height:86%;
  width:66%
}
.scene-label {
  position:absolute;
  right:-4px;
  top:18px;
  background:#fffefa;
  padding:16px 21px;
  border:1px solid #ebe9dc;
  box-shadow:0 6px 20px #263c2910;
  border-radius:13px;
  transform:rotate(7deg);
  font-size:9px;
  letter-spacing:1px;
  line-height:1.9;
  z-index:3
}
.scene-label strong {
  font-size:12px;
  letter-spacing:0
}
.floating-star {
  position:absolute;
  color:#ca8547
}
.star-one {
  left:0;
  top:76px;
  font-size:39px;
  transform:rotate(-12deg)
}
.star-two {
  right:19px;
  bottom:62px;
  font-size:45px
}
.hero-name {
  position:absolute;
  bottom:2px;
  left:50%;
  transform:translateX(-50%) rotate(-4deg);
  display:flex;
  align-items:center;
  gap:11px;
  background:#fffefa;
  padding:10px 18px;
  border:1px solid #e4e6db;
  border-radius:15px;
  z-index:3;
  box-shadow:0 8px 24px #283e2c0a;
  white-space:nowrap
}
.hero-name>span {
  background:var(--pale);
  color:var(--accent);
  border-radius:50%;
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  font-size:21px
}
.hero-name strong,.hero-name small {
  display:block
}
.hero-name strong {
  font-size:15px
}
.hero-name small {
  font-size:10px;
  color:var(--muted);
  margin-top:3px
}
.journey {
  padding-top:26px;
  border-top:1px solid var(--line)
}
.section-heading {
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:24px;
  margin-bottom:25px
}
.section-heading .eyebrow {
  color:var(--muted);
  margin-bottom:8px
}
.section-note {
  font-size:11px;
  color:var(--muted);
  padding-bottom:5px
}
.level-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px
}
.level-card {
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:start;
  text-align:left;
  padding:21px 20px 0;
  background:#fffefa;
  border:1px solid var(--line);
  border-radius:17px;
  min-height:235px;
  overflow:hidden
}
.level-card.selected {
  border:1.5px solid var(--accent);
  background:color-mix(in srgb,var(--pale) 38%,#fffefa)
}
.level-number {
  font-size:9px;
  letter-spacing:1.5px;
  color:var(--muted);
  font-weight:600
}
.level-icon {
  display:grid;
  place-items:center;
  width:45px;
  height:45px;
  border-radius:14px;
  font-size:26px;
  margin:18px 0 16px
}
.icon-0 {
  background:#e6eee3;
  color:#527852
}
.icon-1 {
  background:#fbedda;
  color:#ab7033
}
.icon-2 {
  background:#f0e8f2;
  color:#845a90
}
.icon-3 {
  background:#e5edf5;
  color:#4a6e95
}
.level-card strong {
  font-size:14px;
  font-family:Manrope,sans-serif;
  letter-spacing:-.3px
}
.level-description {
  font-size:11px;
  color:var(--muted);
  margin:7px 0 22px
}
.card-bottom {
  display:flex;
  align-items:center;
  gap:6px;
  padding:14px 0;
  border-top:1px solid var(--line);
  width:100%;
  font-size:10px;
  margin-top:auto;
  color:var(--muted)
}
.card-bottom>span:last-child:not(.current-dot) {
  margin-left:auto;
  font-size:16px
}
.selected .card-bottom {
  color:var(--accent);
  font-weight:700
}
.bottom-grid {
  display:grid;
  grid-template-columns:1.3fr 1fr;
  gap:24px;
  margin:27px 0 30px
}
.companion-note,.progress-note {
  border-radius:16px;
  min-height:132px;
  display:flex;
  align-items:center;
  gap:21px;
  padding:18px 24px;
  background:#f1f0e8
}
.mini-avatar {
  width:80px;
  height:91px;
  overflow:hidden;
  flex-shrink:0
}
.mini-avatar .hero-art {
  height:110px;
  transform:translateY(-8px)
}
.companion-note .eyebrow,.progress-note .eyebrow {
  font-size:8px;
  color:var(--muted)
}
.companion-note p {
  font-size:13px;
  margin:7px 0
}
.text-button {
  font-size:11px;
  padding:12px 0;
  background:transparent;
  font-weight:600;
  min-height:44px;
  text-align:left
}
.companion-note .text-button {
  padding:5px 0;
  min-height:32px;
  color:var(--accent)
}
.progress-note {
  background:transparent;
  border:1px dashed #cfd7c7
}
.badge-icon {
  width:61px;
  height:66px;
  border-radius:22px;
  background:#f9edd4;
  color:#ad7d2e;
  display:grid;
  place-items:center;
  font-size:36px;
  flex-shrink:0
}
.progress-note strong {
  display:block;
  font-size:15px;
  margin:8px 0
}
.progress-note p {
  color:var(--muted);
  font-size:11px
}
footer {
  border-top:1px solid var(--line);
  padding:18px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:10px;
  color:var(--muted);
  gap:16px
}
.footer-brand {
  font-size:16px;
  font-weight:700;
  color:var(--ink)
}
.footer-brand span {
  font-size:10px;
  font-weight:400;
  color:var(--muted);
  margin-left:12px
}
.setup {
  max-width:1080px;
  margin:0 auto;
  padding:28px 40px 64px;
  text-align:center
}
.setup-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:35px
}
.setup-top>span {
  font-size:10px;
  letter-spacing:1px;
  color:var(--muted)
}
.setup h1 {
  font-size:40px;
  margin:10px 0 16px
}
.intro {
  font-size:16px;
  color:var(--muted);
  line-height:1.8
}
.hero-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
  margin:35px 0
}
.hero-choice {
  background:#fffefa;
  border:2px solid var(--line);
  border-radius:24px;
  padding:8px 14px 21px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px
}
.hero-choice.selected {
  border-color:var(--local);
  background:var(--local-pale)
}
.hero-choice .hero-art {
  height:200px;
  width:100%
}
.hero-choice strong {
  font-size:22px
}
.hero-choice>span {
  font-size:11px;
  color:var(--muted);
  line-height:1.5
}
.hero-choice .choice-check {
  margin-top:6px;
  color:var(--local);
  font-weight:700;
  min-height:20px
}
.setup-levels {
  max-width:700px;
  margin:30px auto;
  display:grid;
  gap:16px
}
.setup-level {
  display:flex;
  align-items:center;
  gap:24px;
  text-align:left;
  min-height:112px;
  border:2px solid var(--line);
  background:#fffefa;
  border-radius:18px;
  padding:15px 22px
}
.setup-level.selected {
  background:var(--pale);
  border-color:var(--accent)
}
.setup-level .level-icon {
  margin:0;
  flex-shrink:0
}
.setup-level strong {
  font-size:17px;
  display:block
}
.setup-level small {
  font-size:12px;
  color:var(--muted);
  line-height:1.8;
  display:block;
  margin-top:6px
}
.radio-mark {
  border:1px solid #becac2;
  width:26px;
  height:26px;
  border-radius:50%;
  margin-left:auto;
  display:grid;
  place-items:center;
  flex-shrink:0
}
.selected .radio-mark {
  background:var(--accent);
  color:white
}
.setup-actions {
  display:flex;
  gap:16px;
  justify-content:center;
  flex-wrap:wrap;
  margin-top:30px
}
.focus-header {
  max-width:1120px
}
.exercise {
  max-width:1000px;
  padding:35px 40px 60px;
  margin:auto;
  text-align:center
}
.mission-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px
}
.mission-counter {
  font-size:12px;
  color:var(--muted)
}
.stars {
  display:flex;
  justify-content:center;
  gap:16px;
  margin:20px auto 34px
}
.stars span {
  color:#d9ded5;
  font-size:30px
}
.stars .done {
  color:#b37a29
}
.stars .active {
  color:var(--accent)
}
.exercise-title {
  position:relative;
  max-width:800px;
  margin:auto
}
.exercise-tag {
  display:inline-block;
  background:var(--pale);
  color:var(--accent);
  border-radius:25px;
  font-size:11px;
  padding:8px 14px;
  margin-bottom:15px
}
.exercise h1 {
  font-size:30px;
  line-height:1.5;
  letter-spacing:-.02em;
  margin:0 auto 20px;
  max-width:700px
}
.listen-tool {
  margin:0 0 16px
}
.reading {
  font-family:Andika,sans-serif;
  font-size:28px;
  line-height:1.6;
  word-spacing:.25em;
  letter-spacing:.05em;
  background:#fffefa;
  padding:24px 32px;
  border:1px solid var(--line);
  border-radius:18px;
  text-align:center;
  max-width:800px;
  margin:8px auto 24px;
  overflow-wrap:anywhere
}
.syllable-0 {
  color:#1d4ed8
}
.syllable-1 {
  color:#b91c1c
}
.ruler {
  --guide-y:24px;
  background-image:linear-gradient(to bottom,transparent var(--guide-y),#e9dcb65c var(--guide-y),#e9dcb65c calc(var(--guide-y) + var(--guide-height, 1.6em)),transparent calc(var(--guide-y) + var(--guide-height, 1.6em)))
}
.listen-word {
  display:flex;
  gap:16px;
  align-items:center;
  justify-content:center;
  margin:10px auto 28px;
  min-height:80px;
  padding:18px 35px;
  background:var(--pale);
  color:var(--accent);
  border-radius:18px;
  font-weight:700;
  font-size:20px
}
.listen-word svg {
  width:28px;
  height:28px
}
.answers {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
  margin:24px auto;
  max-width:850px
}
.answer-wrap {
  display:flex;
  flex-direction:column;
  gap:16px;
  align-items:center
}
.answer {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  min-height:112px;
  background:#fffefa;
  border:2px solid #dfe4d9;
  border-radius:20px;
  width:100%;
  padding:20px 16px;
  font-family:Andika,sans-serif;
  font-size:24px;
  line-height:1.6;
  overflow-wrap:anywhere
}
.answer-key {
  font-family:'DM Sans',sans-serif;
  font-size:11px;
  border:1px solid var(--line);
  border-radius:7px;
  min-width:23px;
  height:25px;
  display:grid;
  place-items:center;
  color:var(--muted)
}
.answer:hover:not(:disabled) {
  border-color:var(--accent);
  background:var(--pale)
}
.answer.rejected {
  color:#777;
  background:#eaece7;
  border-color:#e0e1da;
  opacity:.7
}
.answer.correct {
  background:var(--pale);
  border-color:var(--accent);
  color:var(--accent)
}
.answer.guided {
  border:3px dashed var(--accent)
}
.exercise-help {
  color:var(--muted);
  font-size:12px;
  line-height:1.8;
  margin-top:26px
}
.exercise-help .text-button {
  display:block;
  margin:5px auto;
  text-align:center;
  color:var(--accent);
  font-size:13px;
  min-height:64px
}
.feedback {
  display:flex;
  align-items:center;
  gap:20px;
  background:#f4eddc;
  border:1px solid #e8d9ba;
  border-radius:18px;
  padding:20px;
  text-align:left;
  margin:25px auto;
  max-width:850px;
  line-height:1.7
}
.feedback.success {
  background:var(--pale);
  border-color:#b9d6c2
}
.feedback strong {
  font-size:15px
}
.feedback p {
  font-size:14px;
  margin-top:6px
}
.feedback-symbol {
  font-size:32px
}
.feedback>div {
  flex:1
}
.feedback .primary {
  min-width:145px
}
.guided-note {
  font-size:14px;
  color:var(--accent);
  line-height:1.8
}
.audio-required {
  background:#f5eddc;
  border-radius:18px;
  padding:24px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:20px;
  flex-wrap:wrap;
  margin:20px 0
}
.audio-required .text-button {
  min-height:64px
}
.result {
  position:relative;
  text-align:center;
  max-width:900px;
  margin:20px auto 60px;
  padding:10px 30px
}
.result-avatar {
  height:220px;
  width:220px;
  margin:auto
}
.result h1 {
  font-size:48px;
  margin:20px 0
}
.result>p {
  font-size:18px;
  line-height:1.9;
  color:var(--muted)
}
.result-stars {
  font-size:35px;
  letter-spacing:9px;
  color:#ad7726;
  margin:24px 0
}
.result-message {
  font-size:16px;
  line-height:1.9;
  margin:10px auto;
  max-width:560px
}
.result-audio {
  margin-top:10px
}
.confetti {
  position:absolute;
  font-size:50px;
  color:#d6a747;
  animation:float-in .8s ease-out
}
.c1 {
  left:15%;
  top:100px;
  transform:rotate(-18deg)
}
.c2 {
  right:15%;
  top:170px
}
.c3 {
  right:30%;
  top:30px;
  font-size:25px
}
@keyframes float-in {
  from {
    opacity:0;
    translate:0 -30px
  }
  to {
    opacity:1;
    translate:0 0
  }
}
dialog {
  color:var(--ink);
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:24px;
  max-width:600px;
  width:calc(100% - 32px);
  padding:30px;
  max-height:90dvh;
  overflow:auto;
  box-shadow:0 30px 100px #183c3430
}
dialog::backdrop {
  background:#19362f65;
  backdrop-filter:blur(4px)
}
dialog h2 {
  font-size:27px;
  line-height:1.4
}
dialog>p {
  font-size:14px;
  color:var(--muted);
  line-height:1.8;
  margin:16px 0
}
.dialog-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px
}
.dialog-actions {
  display:flex;
  flex-wrap:wrap;
  justify-content:end;
  gap:16px;
  margin-top:28px
}
.setting-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  border-top:1px solid var(--line);
  padding:16px 0;
  font-size:15px;
  min-height:80px
}
.setting-row select {
  min-height:48px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fffefa;
  color:var(--ink);
  padding:10px;
  max-width:58%
}
.setting-row input {
  width:32px;
  height:32px;
  accent-color:var(--accent);
  margin:16px
}
.setting-row:has(input) {
  min-height:80px
}
dialog small {
  display:block;
  font-size:12px;
  color:var(--muted);
  line-height:1.7;
  margin-bottom:16px
}
.settings-preview {
  margin:20px 0
}
.full {
  width:100%
}
.storage-notice {
  padding:15px 25px;
  background:#f6e9cf;
  color:#6e4e26;
  text-align:center;
  font-size:13px;
  line-height:1.8
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}
.skip {
  position:fixed;
  left:16px;
  top:-100px;
  background:var(--accent);
  color:white;
  padding:20px;
  z-index:20;
  border-radius:12px
}
.skip:focus {
  top:16px
}
@media(min-width:1450px) {
  .header {
    padding-top:30px;
    padding-bottom:30px
  }
  .home {
    padding-top:45px
  }
  .welcome {
    padding-top:45px;
    padding-bottom:55px
  }
  .hero-scene {
    min-height:410px
  }
  .hero-scene .hero-art {
    height:375px;
    width:340px
  }
}
@media(max-width:1000px) {
  .header-note {
    display:none
  }
  .home {
    padding:25px 28px 0
  }
  .header {
    padding:20px 28px
  }
  .welcome {
    gap:20px
  }
  .hero-scene {
    margin-left:0;
    min-height:320px
  }
  .hero-scene .hero-art {
    width:260px;
    height:300px
  }
  .scene-label {
    right:-10px;
    top:0;
    font-size:8px;
    padding:12px
  }
  .scene-label strong {
    font-size:10px
  }
  .promise {
    gap:12px
  }
  .section-note {
    display:none
  }
  .level-card {
    padding:18px 14px 0
  }
  .level-card strong {
    font-size:12px
  }
  .level-description {
    font-size:10px
  }
  .bottom-grid {
    gap:16px
  }
  .companion-note,.progress-note {
    padding:14px;
    gap:12px
  }
  .hero-choice .hero-art {
    height:160px
  }
  .hero-grid {
    gap:12px
  }
  .hero-choice {
    padding:8px 8px 18px
  }
  .hero-choice>span {
    font-size:10px
  }
  .answers {
    gap:16px
  }
  .answer {
    font-size:20px
  }
}
@media(max-width:700px) {
  .header {
    padding:16px 20px;
    gap:16px
  }
  .brand {
    font-size:29px
  }
  .brand-mark {
    width:33px;
    height:37px;
    font-size:30px
  }
  .controls {
    gap:16px
  }
  .controls .tool {
    padding:12px;
    min-width:64px
  }
  .controls .tool span {
    display:none
  }
  .home {
    padding:25px 20px 0
  }
  .home>.eyebrow {
    font-size:8px;
    letter-spacing:1.2px
  }
  .welcome {
    display:flex;
    flex-direction:column;
    gap:10px;
    padding-top:25px;
    padding-bottom:30px;
    align-items:stretch
  }
  .welcome h1 {
    font-size:43px;
    margin:22px 0
  }
  .welcome-copy>p {
    font-size:14px
  }
  .welcome .primary {
    width:100%;
    justify-content:space-between
  }
  .promise {
    justify-content:space-between;
    font-size:9px;
    gap:10px
  }
  .hero-scene {
    width:85%;
    max-width:365px;
    align-self:center;
    min-height:300px;
    margin:30px 0 15px
  }
  .hero-scene .hero-art {
    height:290px;
    width:270px
  }
  .scene-label {
    right:-15px;
    top:4px
  }
  .hero-name {
    bottom:0
  }
  .section-heading h2 {
    font-size:25px;
    line-height:1.3
  }
  .section-heading .eyebrow {
    font-size:8px
  }
  .journey {
    padding-top:24px
  }
  .level-grid {
    grid-template-columns:repeat(2,1fr);
    gap:16px
  }
  .level-card {
    min-height:233px;
    padding:17px 15px 0
  }
  .level-card strong {
    font-size:14px;
    line-height:1.5
  }
  .level-description {
    font-size:10px;
    line-height:1.6;
    margin-bottom:16px
  }
  .card-bottom {
    font-size:9px;
    min-height:49px
  }
  .bottom-grid {
    grid-template-columns:1fr;
    margin-bottom:20px
  }
  .companion-note,.progress-note {
    padding:18px;
    min-height:130px
  }
  footer {
    flex-wrap:wrap;
    padding-top:22px;
    gap:4px 16px
  }
  .footer-brand {
    width:100%;
    margin-bottom:8px
  }
  footer>.text-button {
    margin-left:auto
  }
  .setup {
    padding:22px 20px 45px
  }
  .setup-top {
    margin-bottom:30px;
    gap:15px
  }
  .setup-top>span {
    font-size:8px
  }
  .setup h1 {
    font-size:31px
  }
  .intro {
    font-size:14px
  }
  .hero-grid {
    grid-template-columns:repeat(2,1fr);
    gap:16px
  }
  .hero-choice .hero-art {
    height:160px
  }
  .hero-choice strong {
    font-size:20px
  }
  .hero-choice>span {
    font-size:10px
  }
  .setup-next {
    width:100%
  }
  .setup-level {
    gap:16px;
    padding:15px
  }
  .setup-level strong {
    font-size:15px
  }
  .setup-level small {
    font-size:11px
  }
  .setup-level .level-icon {
    width:38px;
    height:42px;
    font-size:23px
  }
  .setup-actions {
    flex-direction:column
  }
  .setup-actions button {
    width:100%;
    gap:15px
  }
  .exercise {
    padding:25px 20px 40px
  }
  .mission-top .eyebrow {
    font-size:9px;
    letter-spacing:1px
  }
  .stars {
    gap:10px;
    margin-bottom:27px
  }
  .stars span {
    font-size:26px
  }
  .exercise h1 {
    font-size:25px
  }
  .answers {
    grid-template-columns:1fr;
    gap:16px
  }
  .answer {
    min-height:80px;
    font-size:24px;
    justify-content:flex-start;
    padding:16px 22px
  }
  .answer-key {
    margin-right:8px
  }
  .answer-wrap {
    flex-direction:row;
    gap:16px
  }
  .option-listen {
    flex-shrink:0
  }
  .reading {
    padding:20px
  }
  .feedback {
    flex-wrap:wrap;
    padding:18px;
    gap:16px
  }
  .feedback>div {
    flex:1;
    min-width:150px
  }
  .feedback .primary {
    width:100%
  }
  .feedback-symbol {
    font-size:27px
  }
  .result h1 {
    font-size:36px
  }
  .result>p {
    font-size:16px
  }
  .result-stars {
    font-size:25px;
    letter-spacing:5px
  }
  .result-message {
    font-size:14px
  }
  .result-avatar {
    height:190px;
    width:190px
  }
  .confetti {
    font-size:32px
  }
  .c1 {
    left:8%
  }
  .c2 {
    right:9%
  }
  dialog {
    padding:24px 20px
  }
  dialog h2 {
    font-size:22px
  }
  .setting-row {
    font-size:13px
  }
  .dialog-actions {
    flex-direction:column
  }
  .dialog-actions button {
    width:100%
  }
  .focus-header>.tool {
    padding:12px
  }
  .focus-header>.tool span {
    display:none
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important
  }
  button:hover:not(:disabled) {
    transform:none
  }
}
/* Reading preferences also apply to selectable answer words. */
.answer {
  font-family:var(--reading-font,sans-serif);
  font-size:var(--reading-size,28px);
  letter-spacing:var(--reading-spacing,.05em);
  line-height:var(--reading-line,1.6);
  word-spacing:.25em
}

/* Child navigation: one large primary action and familiar visual landmarks. */
.child-header {
  max-width: 1050px;
  border-bottom: 0;
  padding: 20px 32px;
}
.child-header .controls { gap: 16px; }
.child-header .tool { border: 0; background: #efeee6; border-radius: 50%; }
.child-header .help-voice { background: var(--pale); color: var(--accent); }
svg.nav-picture {
  width: 80px;
  height: 80px;
  fill: none;
  stroke: currentColor;
  stroke-width: 6;
}
.child-home, .child-setup {
  max-width: 1000px;
  margin: auto;
  padding: 12px 28px 40px;
  text-align: center;
}
.child-home h1, .child-setup h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.035em; }
.companion-stage {
  position: relative;
  width: 300px;
  height: 285px;
  margin: 16px auto 20px;
  background: var(--pale);
  border-radius: 48% 48% 44% 45%;
}
.companion-stage .hero-art { width: 275px; height: 300px; margin: 0 auto; }
.stage-spark { position: absolute; color: #ba8d36; font-size: 30px; }
.spark-left { left: 7px; top: 50px; }
.spark-right { right: 1px; top: 180px; }
.play-button, .next-picture, .pause-picture, .sound-enable {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 150px;
  min-height: 112px;
  padding: 10px 28px 16px;
  background: var(--accent);
  color: white;
  border-radius: 28px;
  box-shadow: 0 6px 0 #00000012;
  font-size: 19px;
  font-weight: 700;
}
.play-button svg.nav-picture { width: 68px; height: 68px; }
.next-picture svg.nav-picture, .pause-picture svg.nav-picture { width: 60px; height: 60px; }
.play-button:hover, .next-picture:hover { filter: brightness(.95); }
.picture-nav { display: flex; gap: 32px; justify-content: center; margin-top: 36px; }
.picture-option {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-width: 120px;
  min-height: 112px;
  padding: 8px 16px 12px;
  background: #f0efe8;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
}
.picture-option svg.nav-picture { width: 62px; height: 62px; color: var(--accent); }
.small-portrait { display: block; width: 64px; height: 64px; overflow: hidden; }
.small-portrait .hero-art { width: 76px; height: 84px; transform: translate(-6px,-9px); }
.setup-back { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.setup-back .tool { font-size: 30px; background: #efeee6; border: 0; border-radius: 50%; }
.step-dots { display: flex; gap: 12px; }
.step-dots span { width: 12px; height: 12px; background: #d6dcd1; border-radius: 50%; }
.step-dots span.active { background: var(--accent); }
.companion-grid, .path-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin: 30px auto; }
.companion-choice, .path-choice {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fffefa;
  border: 3px solid #e1e5da;
  border-radius: 28px;
  padding: 12px 8px 22px;
  min-width: 0;
}
.companion-choice.selected { border-color: var(--local); background: var(--local-pale); }
.companion-choice .hero-art { width: 100%; height: 205px; }
.companion-choice strong, .path-choice strong { font-size: 17px; line-height: 1.6; font-weight: 600; }
.selection-check { position: absolute; top: 12px; right: 12px; border-radius: 50%; width: 28px; height: 28px; color: #fff; font-size: 18px; font-weight: 700; display: grid; place-items: center; }
.selected .selection-check { background: var(--local,var(--accent)); }
.path-choice { min-height: 190px; gap: 20px; padding: 28px 12px 22px; }
.path-choice.selected { border-color: var(--accent); background: var(--pale); }
.path-choice svg.nav-picture { width: 82px; height: 82px; color: var(--accent); }
.picture-calibrate, .help-picture { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 80px; padding: 10px 20px; margin: 24px auto 0; border-radius: 24px; background: #efeee6; font-size: 13px; }
.picture-calibrate svg.nav-picture, .help-picture svg.nav-picture { width: 44px; height: 44px; color: #927026; }
.help-picture { flex-direction: column; min-width: 96px; min-height: 100px; gap: 4px; }
.exit-picture svg.nav-picture { width: 35px; height: 35px; }
.exercise { padding-top: 4px; }
.exercise .stars { margin: 8px auto 24px; }
.exercise-title { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 20px; }
.exercise-title h1 { margin: 0; font-size: clamp(21px,3vw,28px); max-width: 620px; text-align: left; }
.instruction-picture { display: grid; place-items: center; flex-shrink: 0; background: var(--pale); color: var(--accent); width: 88px; height: 88px; border-radius: 26px; }
.instruction-picture svg.nav-picture { width: 58px; height: 58px; }
.listen-word svg.nav-picture { width: 42px; height: 42px; }
.child-feedback { display: flex; align-items: center; gap: 20px; padding: 18px 20px; margin: 24px auto; background: var(--pale); border-radius: 24px; text-align: left; }
.child-feedback > div { flex: 1; }
.child-feedback strong { font-size: 20px; }
.child-feedback p { font-size: 16px; line-height: 1.7; margin-top: 8px; }
.feedback-face { font-size: 38px; color: var(--accent); }
.child-feedback .next-picture { min-width: 88px; min-height: 88px; padding: 8px; border-radius: 24px; }
.child-result { padding-top: 0; }
.child-result .result-avatar { width: 260px; height: 280px; }
.child-result h1 { margin: 12px 0; font-size: 44px; }
.child-result > svg.nav-picture { margin: 24px auto; }
.child-result > .play-button { display: flex; width: 150px; margin: auto; }
.celebration-actions, .visual-confirm { display: flex; justify-content: center; align-items: stretch; gap: 32px; margin: 28px auto; }
.pause-picture { background: #ebece3; color: var(--ink); box-shadow: none; }
.visual-setting-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.visual-setting-row > span { font-size: 23px; min-width: 65px; text-align: center; }
.visual-setting-row > div { display: flex; gap: 16px; }
.visual-setting { min-width: 72px; min-height: 76px; padding: 8px; border-radius: 16px; background: #fffefa; border: 2px solid var(--line); font-size: 22px; }
.visual-setting.selected { border-color: var(--accent); background: var(--pale); }
.visual-toggles { display: flex; justify-content: center; gap: 20px; margin: 22px 0; }
.toggle-setting { display: flex; align-items: center; gap: 8px; min-width: 130px; }
.toggle-setting > span:last-child { margin-left: 8px; font-size: 22px; }
.ruler-sample { background: #f0e2b0; }
.settings-done { display: flex; min-width: 100px; min-height: 80px; margin: 20px auto; font-size: 38px; }
.adult-settings { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 20px; color: var(--muted); font-size: 12px; }
.adult-settings summary { cursor: pointer; padding: 16px 0; }
.adult-settings p { font-size: 13px; line-height: 1.8; margin: 16px 0; }
@media(max-width:700px) {
  .child-header { padding: 14px 16px; gap: 16px; }
  .child-header .brand { font-size: 25px; }
  .child-header .brand-mark { display: none; }
  .child-header .controls { gap: 16px; }
  .child-header .tool { min-width: 64px; padding: 12px; }
  .child-header .brand-dot { margin-left: -8px; }
  .child-home, .child-setup { padding: 8px 20px 28px; }
  .child-home h1 { margin-top: 8px; }
  .companion-stage { width: 245px; height: 235px; margin: 10px auto 20px; }
  .companion-stage .hero-art { width: 235px; height: 250px; }
  .picture-nav { margin-top: 30px; gap: 24px; }
  .companion-grid, .path-grid { grid-template-columns: repeat(2,1fr); gap: 16px; margin: 20px auto; }
  .companion-choice { padding: 8px 4px 15px; }
  .companion-choice .hero-art { height: 150px; }
  .companion-choice strong, .path-choice strong { font-size: 15px; }
  .selection-check { width: 25px; height: 25px; top: 8px; right: 8px; }
  .path-choice { min-height: 152px; gap: 8px; padding: 22px 8px 16px; }
  .path-choice svg.nav-picture { width: 72px; height: 72px; }
  .child-setup h1 { font-size: 28px; }
  .child-setup .next-picture, .child-setup .play-button { min-height: 96px; padding: 6px 28px 12px; }
  .exercise-title { gap: 16px; align-items: center; }
  .instruction-picture { width: 72px; height: 72px; border-radius: 22px; }
  .instruction-picture svg.nav-picture { width: 48px; height: 48px; }
  .exercise-title h1 { font-size: 21px; line-height: 1.6; }
  .child-feedback { flex-wrap: wrap; gap: 16px; padding: 16px; }
  .child-feedback > div { min-width: 150px; }
  .child-feedback strong { font-size: 17px; }
  .child-feedback p { font-size: 15px; }
  .child-feedback .next-picture { margin-left: auto; }
  .celebration-actions, .visual-confirm { gap: 20px; }
  .celebration-actions .play-button, .celebration-actions .pause-picture, .visual-confirm button { min-width: 120px; padding: 10px 18px; }
  .child-result .result-avatar { width: 230px; height: 245px; }
  .visual-setting-row { gap: 16px; }
  .visual-setting-row > span { min-width: 45px; font-size: 17px; }
  .visual-setting-row > div { gap: 16px; }
  .visual-setting { min-width: 64px; }
}
@media(max-width:370px) {
  .child-header .brand { font-size: 20px; gap: 8px; }
  .child-header { padding-inline: 12px; }
  .visual-setting-row { flex-direction: column; gap: 12px; }
}

.child-header .tool[data-action="audio"][aria-pressed="true"] { background: #f4dfbd; color: #79561f; box-shadow: inset 0 0 0 2px #ac7d31; }

/* The first missions deliberately show only one symbol and two large choices. */
.reading.foundation-reading { min-height: 120px; display: grid; place-items: center; font-size: max(54px, var(--reading-size, 28px)) !important; }
.answers.foundation-answers { grid-template-columns: repeat(2, minmax(0,1fr)); max-width: 580px; gap: 28px; }
.foundation-answers .answer { min-height: 132px; font-size: max(44px, var(--reading-size,28px)); justify-content: center; }
.foundation-picture { font-size: 40px; letter-spacing: .06em; color: var(--accent); line-height: 1.5; }
.foundation-paths .path-choice:last-child .foundation-picture { font-size: 26px; }
.foundation-shortcut { display: block; min-height: 72px; min-width: 150px; margin: 24px auto 0; border-radius: 22px; background: var(--pale); color: var(--accent); font-size: 30px; }
@media(max-width:700px) {
  .answers.foundation-answers { gap: 20px; }
  .foundation-answers .answer { min-height: 116px; padding: 16px 8px; }
  .foundation-picture { font-size: 36px; }
  .foundation-paths .path-choice:last-child .foundation-picture { font-size: 23px; }
}

/* Feedback is understood through shapes, the companion and voice, without a sentence to read. */
.visual-feedback {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  max-width: 650px;
  min-height: 128px;
  margin: 24px auto;
  padding: 8px 20px;
  border-radius: 28px;
  background: var(--pale);
}
.visual-feedback--retry { background: #f1eee5; }
.feedback-companion { position: relative; width: 98px; height: 110px; flex-shrink: 0; }
.feedback-companion .hero-art { width: 98px; height: 110px; }
.companion-spark { position: absolute; right: -3px; top: 7px; color: #a67c28; font-size: 24px; }
.feedback-badge { color: var(--accent); }
.feedback-badge svg.nav-picture { width: 72px; height: 72px; }
.visual-feedback--retry .feedback-badge { color: #8a753f; }
.visual-feedback--success .companion-spark { animation: discovery-pop 1s ease-out; }
.visual-feedback .next-picture { min-width: 88px; min-height: 88px; padding: 10px; border-radius: 24px; }
.visual-feedback .next-picture svg.nav-picture { width: 58px; height: 58px; }
.feedback-model, .hint-focus { box-shadow: 0 0 0 4px #dbc783; animation: model-glow 1.2s ease-out; }
.mission-medal { display: grid; place-items: center; color: var(--accent); margin: 12px auto; }
.mission-medal svg.nav-picture { width: 100px; height: 100px; }
@keyframes discovery-pop { 0% { transform: scale(.5); } 45% { transform: scale(1.3); } 100% { transform: scale(1); } }
@keyframes model-glow { 0%,100% { box-shadow: 0 0 0 4px #dbc783; } 50% { box-shadow: 0 0 0 8px #dbc78360; } }
@media(max-width:700px) {
  .visual-feedback { gap: 16px; padding: 10px 12px; flex-wrap: wrap; }
  .feedback-companion { width: 78px; height: 92px; }
  .feedback-companion .hero-art { width: 78px; height: 92px; }
  .feedback-badge svg.nav-picture { width: 58px; height: 58px; }
  .visual-feedback .next-picture { min-width: 80px; min-height: 80px; }
}

/* During play, answers dominate. Tools stay at the edge, without losing their large hit areas. */
.exercise-header { padding-top: 10px; padding-bottom: 8px; }
.exercise-header .tool { background: transparent; color: #7c8880; box-shadow: none; }
.exercise-header .tool:hover { background: #efeee6; }
.exercise .exercise-progress { margin: 8px auto 28px; gap: 12px; }
.exercise-progress span { font-size: 18px; }
.question-workspace { max-width: 850px; margin: auto; }
.exercise-stimulus { position: relative; max-width: 750px; margin: 0 auto 36px; }
.exercise-stimulus.has-model { padding: 0 80px; }
.exercise-stimulus .reading { margin: 0; border: 0; background-color: transparent; }
.stimulus-audio { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--pale); color: var(--accent); }
.stimulus-audio svg.nav-picture { width: 44px; height: 44px; }
.has-model .stimulus-audio { position: absolute; right: 0; top: 50%; transform: translateY(-50%); background: transparent; }
.has-model .stimulus-audio:hover { transform: translateY(-50%); background: var(--pale); }
.audio-stimulus { display: flex; justify-content: center; }
.audio-stimulus .stimulus-audio { width: 112px; height: 112px; border-radius: 32px; }
.audio-stimulus .stimulus-audio svg.nav-picture { width: 68px; height: 68px; }
.exercise-secondary { display: flex; justify-content: space-between; align-items: center; gap: 24px; max-width: 580px; margin: 30px auto 0; padding-top: 16px; border-top: 1px solid var(--line); }
.exercise-secondary .help-picture, .exercise-difficulty { display: grid; place-items: center; width: 64px; height: 64px; min-width: 64px; min-height: 64px; margin: 0; padding: 12px; background: transparent; border-radius: 20px; color: #7d887e; }
.exercise-secondary svg.nav-picture { width: 32px; height: 32px; }
.exercise-secondary .help-picture svg.nav-picture { color: #8c825e; }
.exercise-secondary button:hover { background: #efeee6; }
.exercise .visual-feedback--retry { min-height: 64px; padding: 0; margin: 8px auto 12px; max-width: 240px; background: transparent; gap: 16px; }
.visual-feedback--retry .feedback-companion, .visual-feedback--retry .feedback-companion .hero-art { width: 64px; height: 72px; }
.visual-feedback--retry .feedback-badge svg.nav-picture { width: 40px; height: 40px; }
.answer-complete { display: flex; align-items: center; flex-direction: column; gap: 22px; padding-top: 12px; }
.completed-answer { display: flex; align-items: center; justify-content: center; gap: 22px; font-family: var(--reading-font,sans-serif); font-size: clamp(32px,5vw,56px); letter-spacing: var(--reading-spacing,.05em); line-height: var(--reading-line,1.6); text-align: center; padding: 16px; max-width: 100%; overflow-wrap: anywhere; }
.completed-check { color: var(--accent); font-size: 30px; }
.answer-complete .visual-feedback { padding: 0; margin: 0; min-height: 110px; background: transparent; }
.exercise-next { width: 176px; min-height: 112px; border-radius: 32px; }
.exercise-next svg.nav-picture { width: 78px; height: 78px; }
.answer-complete > .reading { margin: 0; font-size: 30px !important; min-height: 60px; padding: 8px; }

/* A single playful selector replaces nested level menus. */
.difficulty-screen { max-width: 850px; margin: 35px auto; padding: 20px 24px 45px; text-align: center; }
.difficulty-picker { display: grid; grid-template-columns: 80px minmax(0,320px) 80px; gap: 28px; align-items: center; justify-content: center; }
.difficulty-step { display: grid; place-items: center; width: 80px; height: 80px; border-radius: 50%; background: #ecece3; color: var(--accent); }
.difficulty-step svg.nav-picture { width: 64px; height: 64px; stroke-width: 8; }
.difficulty-step:disabled { opacity: .28; }
.difficulty-preview { position: relative; min-height: 290px; padding: 30px 20px; border-radius: 40px; background: var(--pale); color: var(--accent); width: 100%; }
.preview-art { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 220px; gap: 16px; }
.preview-art svg.nav-picture { width: 130px; height: 130px; }
.preview-letter { font-family: var(--reading-font,sans-serif); font-size: 88px; line-height: 1; }
.preview-pair { display: flex; gap: 20px; }
.preview-pair i { font-style: normal; display: grid; place-items: center; width: 60px; height: 60px; background: #fffefa; border-radius: 16px; font-size: 38px; }
.preview-syllable { display: flex; align-items: center; gap: 12px; font-size: 32px; }
.preview-syllable i { font-style: normal; background: #fffefa; padding: 10px 12px; border-radius: 12px; }
.preview-result { font-size: 48px; letter-spacing: .05em; }
.preview-speaker { position: absolute; bottom: 14px; right: 16px; opacity: .65; }
.preview-speaker svg { width: 24px; height: 24px; }
.difficulty-dots { display: flex; justify-content: center; gap: 12px; margin: 28px auto 36px; }
.difficulty-dots span { width: 9px; height: 9px; border-radius: 50%; background: #d5dcd0; }
.difficulty-dots .selected { background: var(--accent); box-shadow: 0 0 0 4px var(--pale); }
.difficulty-screen .play-button { min-width: 156px; min-height: 112px; }
@media(max-width:700px) {
  .exercise-stimulus.has-model { padding: 0 64px 0 0; }
  .has-model .stimulus-audio { width: 64px; height: 64px; }
  .has-model .stimulus-audio svg.nav-picture { width: 36px; height: 36px; }
  .exercise-stimulus { margin-bottom: 30px; }
  .exercise .exercise-progress { margin-bottom: 26px; }
  .exercise .visual-feedback--retry { margin-top: 12px; }
  .answer-complete { gap: 18px; padding-top: 18px; }
  .difficulty-screen { padding: 20px 16px 35px; margin-top: 25px; }
  .difficulty-picker { grid-template-columns: 64px minmax(0,1fr) 64px; gap: 16px; }
  .difficulty-step { width: 64px; height: 64px; }
  .difficulty-step svg.nav-picture { width: 50px; height: 50px; }
  .difficulty-preview { padding: 20px 8px; min-height: 245px; border-radius: 28px; }
  .preview-art { min-height: 200px; gap: 18px; }
  .preview-art svg.nav-picture { width: 100px; height: 100px; }
  .preview-letter { font-size: 70px; }
  .preview-pair { gap: 12px; }
  .preview-pair i { width: 42px; height: 48px; font-size: 30px; }
  .preview-syllable { gap: 6px; font-size: 23px; }
  .preview-syllable i { padding: 8px 6px; }
  .preview-result { font-size: 36px; }
}
@media(max-width:370px) {
  .difficulty-picker { gap: 16px; }
  .preview-syllable { flex-wrap: wrap; justify-content: center; }
}

.brand-with-purpose { display: flex; align-items: center; gap: 22px; min-width: 0; }
.parent-purpose { font-size: 15px; line-height: 1.5; color: var(--muted); max-width: 290px; text-align: left; }
@media(max-width:700px) {
  .child-header:not(.exercise-header) { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px 16px; }
  .brand-with-purpose { display: contents; }
  .brand-with-purpose .brand { grid-column: 1; grid-row: 1; }
  .child-header:not(.exercise-header) .controls { grid-column: 2; grid-row: 1; }
  .parent-purpose { grid-column: 1 / -1; grid-row: 2; max-width: none; font-size: 14px; }
}

/* Both choices stay in view, grouped above the single play action. */
.choice-home { padding-top: 18px; padding-bottom: 32px; }
.adventure-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 218px));
  justify-content: center;
  gap: 24px;
  margin: 28px auto 32px;
}
.adventure-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  padding: 20px 16px 16px;
  border: 2px solid #e2e5da;
  border-radius: 30px;
  background: #fffefa;
  box-shadow: 0 4px 0 #263c2910;
}
.adventure-card:hover { border-color: var(--accent); background: var(--pale); }
.companion-card-art, .home-game-preview {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 198px;
  margin-bottom: 14px;
  border-radius: 22px;
}
.companion-card-art { background: var(--pale); isolation: isolate; }
.companion-card-art > .hero-art { width: 166px; height: 188px; position: relative; }
.portrait-back { position: absolute; width: 104px; height: 142px; border: 2px solid #ffffffb0; border-radius: 22px; background: #ffffff4d; z-index: -1; }
.portrait-back-one { transform: translate(-17px,-6px) rotate(-12deg); }
.portrait-back-two { transform: translate(17px,-6px) rotate(12deg); }
.card-change-symbol { position: absolute; display: grid; place-items: center; right: 6px; bottom: 6px; width: 36px; height: 36px; border-radius: 50%; background: #fffefa; color: var(--accent); font-size: 25px; font-weight: 700; }
.card-change-symbol svg.nav-picture { width: 27px; height: 27px; }
.home-game-preview { background: #f4eedf; color: #776241; gap: 12px; }
.home-game-preview > svg.nav-picture { width: 90px; height: 90px; }
.home-game-preview > .preview-letter { font-size: 65px; }
.home-game-preview .preview-pair { gap: 14px; }
.home-game-preview .preview-pair i { width: 40px; height: 44px; font-size: 29px; }
.home-game-preview .preview-syllable { gap: 8px; font-size: 23px; }
.home-game-preview .preview-syllable i { padding: 6px 8px; }
.home-game-preview .preview-result { font-size: 33px; }
.adventure-card-label { font-size: 15px; line-height: 1.6; font-weight: 600; }
.choice-home > .play-button { min-width: 186px; min-height: 112px; }
@media(max-width:700px) {
  .choice-home { padding: 10px 20px 28px; }
  .choice-home h1 { font-size: 29px; }
  .adventure-choices { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: 24px auto 28px; max-width: 430px; }
  .adventure-card { padding: 10px 8px 12px; border-radius: 25px; }
  .companion-card-art, .home-game-preview { height: 166px; margin-bottom: 12px; border-radius: 18px; }
  .companion-card-art > .hero-art { width: 130px; height: 156px; }
  .portrait-back { width: 78px; height: 112px; border-radius: 17px; }
  .adventure-card-label { font-size: 13px; }
  .home-game-preview > .preview-letter { font-size: 54px; }
  .home-game-preview > svg.nav-picture { width: 76px; height: 76px; }
  .home-game-preview .preview-result { font-size: 28px; }
  .home-game-preview .preview-syllable { gap: 4px; font-size: 18px; }
  .home-game-preview .preview-syllable i { padding: 6px 4px; }
  .card-change-symbol { width: 30px; height: 30px; right: 4px; bottom: 4px; font-size: 21px; }
  .card-change-symbol svg.nav-picture { width: 23px; height: 23px; }
}
@media(max-width:370px) {
  .choice-home { padding-inline: 16px; }
  .companion-card-art, .home-game-preview { height: 145px; }
  .companion-card-art > .hero-art { width: 112px; height: 135px; }
  .adventure-card-label { font-size: 12px; }
  .home-game-preview .preview-syllable { flex-wrap: wrap; justify-content: center; }
}

/* Parents can discover explanations outside play; the child keeps a single main action. */
.parent-purpose { text-decoration: none; }
a.parent-purpose:hover { text-decoration: underline; text-underline-offset: 4px; }
.parents-entry { text-align: center; padding: 8px 20px 24px; font-size: 12px; color: var(--muted); }
.parents-entry a { display: inline-flex; align-items: center; min-height: 44px; gap: 10px; text-underline-offset: 4px; }
body:not([data-screen="home"]) > .parents-entry { display: none; }
.hero-home { padding-top: 6px; padding-bottom: 16px; }
.hero-home h1 { font-size: clamp(28px,4vw,38px); }
.hero-launch { display: flex; flex-direction: column; align-items: center; margin-top: 8px; }
.launch-companion { position: relative; width: 240px; height: 228px; border-radius: 48%; background: var(--pale); }
.launch-companion .hero-art { width: 225px; height: 244px; margin: 0 auto; }
.launch-spark { position: absolute; right: 6px; top: 32px; color: #bd8e3c; font-size: 30px; }
.hero-launch .play-button { min-width: 240px; min-height: 108px; margin-top: 20px; border-radius: 32px; box-shadow: 0 7px 0 #00000018, 0 12px 30px #243d3b12; font-size: 22px; }
.hero-launch .play-button svg.nav-picture { width: 68px; height: 68px; }
.home-adjustments { display: flex; justify-content: center; align-items: stretch; gap: 24px; margin: 32px auto 0; max-width: 440px; padding-top: 20px; border-top: 1px solid var(--line); }
.home-adjustment { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 7px; min-width: 140px; min-height: 106px; background: #f0efe8; border: 1px solid #e1e4d9; border-radius: 22px; padding: 8px 14px 12px; font-size: 12px; color: #53695b; }
.home-adjustment:hover { border-color: var(--accent); background: var(--pale); }
.adjustment-portrait { position: relative; display: block; width: 64px; height: 62px; }
.adjustment-portrait .hero-art { width: 66px; height: 72px; transform: translateY(-6px); }
.adjustment-swap { position: absolute; right: -4px; bottom: 2px; font-size: 19px; line-height: 1; background: #fffefa; border-radius: 50%; padding: 2px; }
.game-choice-symbol { display: grid; place-items: center; height: 62px; }
.game-choice-symbol svg.nav-picture { width: 66px; height: 66px; color: #826946; }
@media(max-width:700px) {
  .hero-home { padding-top: 2px; }
  .hero-home h1 { font-size: 28px; margin-top: 2px; }
  .launch-companion { width: 200px; height: 185px; }
  .launch-companion .hero-art { width: 185px; height: 202px; }
  .hero-launch .play-button { min-width: 228px; min-height: 96px; margin-top: 18px; padding: 8px 28px 14px; }
  .hero-launch .play-button svg.nav-picture { width: 58px; height: 58px; }
  .home-adjustments { margin-top: 24px; padding-top: 16px; gap: 20px; max-width: 360px; }
  .home-adjustment { min-width: 0; flex: 1; max-width: 160px; min-height: 96px; padding: 6px 10px 10px; font-size: 12px; }
  .adjustment-portrait, .game-choice-symbol { height: 54px; }
  .adjustment-portrait .hero-art { width: 60px; height: 65px; }
  .game-choice-symbol svg.nav-picture { width: 59px; height: 59px; }
  .parents-entry { padding-bottom: 16px; }
}

/* Parent information lives beside configuration, never in the exercise header. */
.parents-top-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 13px; font-size: 12px; font-weight: 600; text-decoration: none; color: var(--muted); white-space: nowrap; }
.parents-top-link:hover { background: #efeee6; color: var(--accent); }
.child-header .brand-with-purpose { gap: 18px; }
.child-header .parent-purpose { max-width: 240px; }
.current-complexity { display: block; color: #68796d; font-size: 10px; line-height: 1.5; max-width: 160px; }
.game-adjustment { min-width: 165px; }
.adjustment-label { font-size: 12px; line-height: 1.4; }
.complexity-heading { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; gap: 16px; margin: 0 auto 8px; max-width: 600px; }
.complexity-heading h1 { font-size: 30px; letter-spacing: -.03em; margin: 0; }
.complexity-back { display: grid; place-items: center; width: 64px; height: 64px; background: #eeeee6; border-radius: 50%; color: var(--accent); }
.complexity-back svg.nav-picture { width: 40px; height: 40px; }
.complexity-current { margin: 8px 0 28px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.difficulty-screen { margin-top: 8px; }
@media(max-width:700px) {
  .child-header:not(.exercise-header) { grid-template-columns: minmax(0,1fr) repeat(3,64px); align-items: center; }
  .child-header:not(.exercise-header) .controls { display: contents; }
  .child-header:not(.exercise-header) .controls > .tool:nth-child(1) { grid-column: 2; grid-row: 1; }
  .child-header:not(.exercise-header) .controls > .tool:nth-child(2) { grid-column: 3; grid-row: 1; }
  .child-header:not(.exercise-header) .controls > .tool:nth-child(3) { grid-column: 4; grid-row: 1; }
  .child-header:not(.exercise-header) .parent-purpose { grid-column: 1 / 3; grid-row: 2; max-width: none; padding-right: 8px; }
  .child-header:not(.exercise-header) .parents-top-link { grid-column: 3 / 5; grid-row: 2; min-height: 44px; padding: 8px; font-size: 11px; }
  .game-adjustment { min-width: 0; }
  .current-complexity { font-size: 10px; }
  .complexity-heading h1 { font-size: 26px; }
  .complexity-current { font-size: 13px; margin-bottom: 24px; }
  .difficulty-screen { padding-top: 8px; margin-top: 8px; }
}

/* The chosen companion stays beside the task and replaces the standalone audio button. */
.exercise-stimulus.has-model { display: grid; grid-template-columns: minmax(0,1fr) 148px; align-items: center; gap: 24px; max-width: 630px; padding: 0; }
.exercise-companion-guide { position: relative; display: block; width: 148px; height: 162px; padding: 0; background: var(--pale); border: 1px solid transparent; border-radius: 42% 42% 35% 35%; flex-shrink: 0; }
.exercise-companion-guide .hero-art { width: 148px; height: 162px; }
.exercise-companion-guide:hover { border-color: var(--accent); }
.companion-voice-badge { position: absolute; right: 4px; bottom: 6px; display: grid; place-items: center; width: 36px; height: 36px; background: #fffefa; color: var(--accent); border-radius: 50%; box-shadow: 0 2px 5px #243d3b12; }
.companion-voice-badge svg { width: 22px; height: 22px; }
.companion-supporting { background: #f2e9df; animation: companion-nod 1s ease-out; }
.question-workspace > .visual-feedback--retry { min-height: 0; height: 0; margin: 0; padding: 0; }
.answer-complete .cheering-companion, .answer-complete .cheering-companion .hero-art { width: 175px; height: 188px; }
.answer-complete .visual-feedback--success { min-height: 188px; }
.companion-cheer .companion-character { transform-origin: 160px 300px; animation: companion-cheer .95s ease-out; }
@keyframes companion-nod { 0%,100% { transform: rotate(0); } 35% { transform: rotate(-3deg); } 65% { transform: rotate(2deg); } }
@keyframes companion-cheer { 0%,100% { transform: translateY(0); } 40% { transform: translateY(-12px) rotate(-3deg); } 70% { transform: translateY(-5px) rotate(2deg); } }
@media(max-width:700px) {
  .exercise-stimulus.has-model { grid-template-columns: minmax(0,1fr) 112px; gap: 16px; padding: 0; }
  .exercise-companion-guide, .exercise-companion-guide .hero-art { width: 112px; height: 124px; }
  .companion-voice-badge { width: 32px; height: 32px; right: 0; bottom: 0; }
  .answer-complete .cheering-companion, .answer-complete .cheering-companion .hero-art { width: 148px; height: 158px; }
  .answer-complete .visual-feedback--success { min-height: 158px; }
}

/* Quiet by default: the task holds attention, the companion remains a stable audio landmark. */
.exercise-stimulus.has-model { grid-template-columns: minmax(0,1fr) 72px; gap: 20px; max-width: 580px; }
.exercise-companion-guide, .exercise-companion-guide .hero-art { width: 72px; height: 80px; }
.exercise-companion-guide { background: transparent; border-color: transparent; border-radius: 18px; animation: none; }
.exercise-companion-guide .hero-art { filter: saturate(.7); }
.exercise-companion-guide:hover { transform: none; border-color: var(--line); background: #f0efe8; }
.companion-voice-badge { width: 26px; height: 26px; right: 0; bottom: 0; box-shadow: none; }
.companion-voice-badge svg { width: 18px; height: 18px; }
.companion-supporting { background: transparent; animation: none; }
.answer-complete .cheering-companion, .answer-complete .cheering-companion .hero-art { width: 112px; height: 120px; }
.answer-complete .visual-feedback--success { min-height: 120px; }
.answer-complete .companion-cheer .companion-character { animation: none; }
@media(max-width:700px) {
  .exercise-stimulus.has-model { grid-template-columns: minmax(0,1fr) 72px; gap: 16px; }
  .exercise-companion-guide, .exercise-companion-guide .hero-art { width: 72px; height: 80px; }
  .answer-complete .cheering-companion, .answer-complete .cheering-companion .hero-art { width: 104px; height: 112px; }
  .answer-complete .visual-feedback--success { min-height: 112px; }
}

/* Two-step games: large visible cards, no dragging or timed gestures. */
.pair-board { display: grid; grid-template-columns: minmax(0,150px) 36px minmax(0,150px); gap: 24px; align-items: center; justify-content: center; margin: 22px auto; }
.pair-column { display: grid; gap: 20px; }
.pair-card, .assembly-tile, .assembly-slot { display: flex; align-items: center; justify-content: center; min-height: 98px; border: 2px solid #d9e0d4; border-radius: 23px; background: #fffefa; color: var(--ink); font-family: var(--reading-font,sans-serif); font-size: max(40px,var(--reading-size,28px)); line-height: var(--reading-line,1.6); letter-spacing: var(--reading-spacing,.05em); padding: 12px; }
.pair-card.selected { border: 3px solid var(--accent); background: var(--pale); }
.pair-card.waiting { border-style: dashed; background: #f1f1e9; }
.pair-card.matched { position: relative; border-color: #afc8ae; background: #edf2e7; }
.pair-check { position: absolute; top: 8px; right: 10px; font-size: 19px; color: var(--accent); }
.pair-direction { font-size: 29px; color: #75846e; text-align: center; }
.pair-card:hover:not(:disabled), .assembly-tile:hover:not(:disabled) { border-color: var(--accent); }
.pair-card.guided, .assembly-tile.guided { border: 3px dashed var(--accent); }
.assembly-board { max-width: 580px; margin: 20px auto; }
.assembly-row { position: relative; display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 28px; }
.assembly-slots, .assembly-tiles { display: grid; grid-template-columns: repeat(2,minmax(0,128px)); justify-content: center; gap: 20px; }
.assembly-slot { min-height: 104px; background: #f0f0e6; border-style: dashed; }
.assembly-slot.current { border-color: var(--accent); background: var(--pale); }
.assembly-slot.filled { border-style: solid; }
.slot-marker { width: 13px; height: 13px; border-radius: 50%; background: #bac6b4; }
.assembly-slot.current .slot-marker { background: var(--accent); }
.assembly-tile { min-height: 104px; box-shadow: 0 4px 0 #253d3010; }
.assembly-tile-used { display: block; min-height: 104px; border-radius: 23px; border: 2px dashed #e0e4d7; }
.assembly-undo { display: grid; place-items: center; min-width: 64px; min-height: 64px; border-radius: 18px; background: transparent; color: #697c63; font-size: 34px; }
@media(max-width:700px) {
  .pair-board { grid-template-columns: minmax(0,120px) 24px minmax(0,120px); gap: 16px; }
  .pair-card { min-height: 90px; }
  .pair-column { gap: 16px; }
  .assembly-slots, .assembly-tiles { grid-template-columns: repeat(2,minmax(0,110px)); gap: 16px; }
  .assembly-row { gap: 16px; }
  .assembly-row:has(.assembly-undo) .assembly-slots { grid-template-columns: repeat(2,minmax(0,86px)); }
  .assembly-slot, .assembly-tile { min-height: 96px; font-size: max(34px,var(--reading-size,28px)); }
  .assembly-tile-used { min-height: 96px; }
}

.history-scroll { overflow-x: auto; max-height: 380px; margin: 20px 0; }
.history-table { border-collapse: collapse; width: 100%; text-align: left; font-size: 12px; }
.history-table th, .history-table td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.6; }
.history-table th { font-weight: 700; }
.history-table small { margin: 3px 0 0; font-size: 11px; color: var(--muted); }
.adult-settings .secondary { margin: 8px 8px 0 0; }

.exercise-activity-line { display: flex; justify-content: flex-end; max-width: 850px; margin: -8px auto 0; }
.activity-number-link, .activity-number-static { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 64px; padding: 10px 14px; background: transparent; color: var(--muted); border-radius: 16px; font-size: 12px; }
.activity-number-link svg, .activity-number-static svg { width: 21px; height: 21px; }
.activity-number-link:hover { background: var(--pale); }
.choose-activity-link { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 64px; margin: 24px auto 0; padding: 12px 18px; border-radius: 18px; background: #eeeee6; font-size: 13px; }
.choose-activity-link svg.nav-picture { width: 32px; height: 32px; }
.activity-library { max-width: 830px; margin: auto; padding: 15px 28px 24px; text-align: center; }
.activity-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.activity-card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 124px; padding: 18px 12px 14px; border-radius: 22px; border: 2px solid var(--line); background: #fffefa; }
.activity-card.selected { border: 3px solid var(--accent); background: var(--pale); }
.activity-card-number { align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--muted); }
.activity-card-preview { display: block; font-size: 28px; line-height: 1.5; letter-spacing: .04em; overflow-wrap: anywhere; }
.activity-card-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 14px; letter-spacing: 0; }
.activity-seen { position: absolute; right: 10px; top: 10px; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: #e6efdf; color: #396144; font-size: 16px; font-weight: 700; }
.activity-launch { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: center; gap: 24px; padding: 18px 8px 12px; margin-top: 16px; background: #fbfaf6f5; border-top: 1px solid var(--line); }
.activity-launch > span { font-size: 14px; color: var(--muted); }
.activity-launch .play-button { min-height: 96px; min-width: 130px; }
@media(max-width:700px) {
  .activity-library { padding: 8px 20px 16px; }
  .activity-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  .activity-card { min-height: 116px; padding: 14px 12px; }
  .activity-card-preview { font-size: 24px; }
  .activity-card-text { font-size: 13px; }
  .activity-launch { gap: 20px; padding-top: 12px; }
  .activity-launch .play-button { min-height: 88px; }
}

.group-card-number { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--pale); color: var(--accent); font-size: 25px; font-weight: 700; }
.group-eight-dots { display: grid; grid-template-columns: repeat(4,8px); gap: 8px; }
.group-eight-dots i { width: 8px; height: 8px; border-radius: 50%; background: #aebda4; }
.new-group-plus { display: block; font-size: 48px; line-height: 1; color: var(--accent); }
.new-group > span:last-child { font-size: 12px; }
.group-library .activity-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
@media(max-width:700px) { .group-library .activity-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }

/* Free exploration is separate from the mission launcher and keeps the same visual landmarks. */
.discover-entry { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 68px; min-width: 210px; margin-top: 18px; padding: 12px 24px; border: 2px solid #d8dfce; border-radius: 24px; background: #fffefa; color: var(--accent); font-size: 17px; font-weight: 700; box-shadow: none; }
.discover-entry svg.nav-picture { width: 35px; height: 35px; }
.discovery-screen { max-width: 980px; margin: auto; padding: 12px 32px 40px; text-align: center; }
.discovery-screen .complexity-heading { max-width: 780px; margin-bottom: 28px; }
.discovery-screen .complexity-heading h1 { font-size: clamp(23px,3.5vw,32px); }
.discovery-guide { width: 64px; height: 64px; padding: 14px; display: grid; place-items: center; background: transparent; border-radius: 50%; color: var(--accent); }
.discovery-guide svg.nav-picture { width: 34px; height: 34px; }
.discovery-modes { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; max-width: 780px; margin: 40px auto; }
.discovery-mode { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 18px; min-height: 190px; padding: 22px 16px; background: #fffefa; border: 2px solid var(--line); border-radius: 28px; font-size: 15px; color: var(--ink); }
.discovery-mode:hover { background: var(--pale); border-color: var(--accent); }
.mode-letters, .family-example { font-family: var(--reading-font,sans-serif); font-size: 48px; line-height: 1.5; color: var(--accent); }
.discovery-mode svg.nav-picture { width: 80px; height: 80px; color: var(--accent); }
.discovery-tabs { display: flex; gap: 20px; justify-content: center; margin: 12px auto 30px; }
.discovery-tab { display: grid; place-items: center; min-width: 128px; min-height: 68px; border: 2px solid var(--line); border-radius: 20px; background: #fffefa; font-size: 24px; }
.discovery-tab[aria-pressed="true"] { background: var(--pale); border-color: var(--accent); color: var(--accent); }
.discovery-letter-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(94px,1fr)); gap: 18px; }
.discovery-letter { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 96px; border: 2px solid var(--line); border-radius: 23px; padding: 12px 8px; background: #fffefa; font-family: var(--reading-font,sans-serif); }
.discovery-letter > span:first-child { font-size: 39px; }
.discovery-letter > span:last-child { font-size: 29px; color: var(--accent); }
.discovery-letter.listened, .discovery-word.listened { background: var(--pale); border-color: var(--accent); }
.syllable-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; }
.discovery-syllable { position: relative; display: grid; place-items: center; min-height: 92px; padding: 14px 14px 22px; border: 2px solid var(--line); border-radius: 22px; background: #fffefa; color: var(--ink); font-family: var(--reading-font,sans-serif); font-size: clamp(24px,3vw,34px); line-height: 1.6; overflow-wrap: anywhere; }
.syllable-repeat { display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-width: 180px; min-height: 90px; margin: 0 auto 28px; padding: 14px 24px; border-radius: 25px; background: var(--pale); color: var(--accent); font-family: var(--reading-font,sans-serif); font-size: 39px; }
.syllable-repeat svg.nav-picture { width: 38px; height: 38px; }
.discovery-word-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.discovery-word { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px; min-height: 148px; padding: 20px 12px; border: 2px solid var(--line); border-radius: 25px; background: #fffefa; font-family: var(--reading-font,sans-serif); font-size: var(--reading-size,28px); line-height: var(--reading-line,1.6); letter-spacing: var(--reading-spacing,.05em); overflow-wrap: anywhere; }
.word-picture { display: block; font-size: 43px; letter-spacing: 0; }
.discovery-word mark { background: #efe3ba; color: inherit; border-radius: 4px; padding-block: 2px; }
.discovery-listening-link { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 68px; margin: 30px auto 0; padding: 12px 20px; background: #eceee4; border-radius: 20px; font-size: 14px; }
.discovery-listening-link svg.nav-picture { width: 35px; height: 35px; color: var(--accent); }
.word-mystery { display: grid; place-items: center; width: 128px; height: 128px; margin: 30px auto; border-radius: 35px; background: var(--pale); color: var(--accent); }
.word-mystery svg.nav-picture { width: 82px; height: 82px; }
.discovery-quiz-choices { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; max-width: 780px; margin: 30px auto; }
.discovery-word-choice { display: grid; place-items: center; min-height: 110px; padding: 16px 12px; border: 2px solid var(--line); border-radius: 23px; background: #fffefa; font-family: var(--reading-font,sans-serif); font-size: var(--reading-size,28px); line-height: var(--reading-line,1.6); letter-spacing: var(--reading-spacing,.05em); }
.discovery-word-choice.rejected { background: #e9eae3; color: #737970; opacity: .7; }
.discovery-word-choice:disabled { opacity: .5; }
.discovery-word-choice.guided { border: 3px dashed var(--accent); }
.discovery-quiz-success { display: flex; align-items: center; justify-content: center; gap: 25px; margin: 65px auto 45px; }
.quiz-found-word { font-family: var(--reading-font,sans-serif); font-size: 45px; letter-spacing: .04em; }
.quiz-found-check { color: var(--accent); font-size: 40px; }
.discovery-next { min-width: 176px; }
.quiet-retry { color: var(--muted); font-size: 30px; }
.discovery-voice-notice { max-width: 650px; margin: 25px auto 0; padding: 16px; border-radius: 15px; background: #f5ead3; color: #785a2f; font-size: 13px; line-height: 1.8; }
@media(max-width:700px) {
  .hero-launch:has(.discover-entry) .launch-companion { height: 165px; width: 180px; }
  .hero-launch:has(.discover-entry) .launch-companion .hero-art { width: 170px; height: 182px; }
  .discover-entry { min-width: 210px; min-height: 64px; margin-top: 16px; font-size: 16px; }
  .discovery-screen { padding: 8px 20px 28px; }
  .discovery-screen .complexity-heading { gap: 12px; margin-bottom: 24px; }
  .discovery-screen .complexity-heading h1 { font-size: 24px; }
  .discovery-modes { grid-template-columns: 1fr; gap: 20px; margin: 20px auto; max-width: 390px; }
  .discovery-modes .discovery-mode { flex-direction: row; justify-content: flex-start; gap: 26px; min-height: 112px; padding: 16px 24px; }
  .discovery-modes .mode-letters { font-size: 42px; min-width: 90px; }
  .discovery-modes .discovery-mode svg.nav-picture { width: 70px; height: 70px; margin-inline: 10px; }
  .discovery-letter-grid { grid-template-columns: repeat(auto-fit,minmax(70px,1fr)); gap: 16px; }
  .discovery-letter { gap: 7px; min-height: 88px; padding-inline: 6px; }
  .discovery-letter > span:first-child { font-size: 32px; }
  .discovery-letter > span:last-child { font-size: 25px; }
  .family-example { font-size: 38px; }
  .syllable-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
  .discovery-syllable { min-height: 86px; font-size: 23px; padding-inline: 6px; }
  .discovery-word-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  .discovery-word { font-size: 24px; min-height: 138px; padding: 16px 8px; }
  .word-picture { font-size: 37px; }
  .discovery-quiz-choices { grid-template-columns: 1fr; gap: 16px; }
  .discovery-word-choice { min-height: 80px; }
  .discovery-quiz-success { margin: 45px auto 32px; }
}

.syllable-levels { display: grid; gap: 48px; }
.syllable-level h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 20px; font-size: 18px; text-align: left; }
.syllable-level-steps { color: var(--accent); font-size: 14px; letter-spacing: 3px; }
.syllable-level .syllable-grid { grid-template-columns: repeat(auto-fit,minmax(90px,1fr)); gap: 12px; }
.syllable-level .discovery-syllable { min-height: 80px; padding: 12px 8px; }
.discovery-syllable.listened { background: var(--pale); border-color: var(--accent); }
@media (max-width: 600px) {
  .syllable-level .syllable-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .syllable-levels { gap: 36px; }
}

/* Quiet feedback: selected companion appears only after an answer. */
.discovery-companion-feedback { display: flex; justify-content: center; margin: 16px auto 8px; }
.discovery-companion-feedback .hero-art { display: block; width: 104px; height: 114px; }
.discovery-companion-feedback .companion-character { animation: none; }

.syllable-focus-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; max-width: 540px; margin: 0 auto; }
.syllable-focus-grid .discovery-syllable { min-height: 100px; padding: 12px; font-size: 34px; }
.syllable-focus-pager { display: flex; justify-content: center; align-items: center; gap: 36px; margin: 26px auto; }
.syllable-page-arrow { width: 64px; height: 64px; border-radius: 50%; background: var(--pale); color: var(--accent); font-size: 32px; }
.syllable-page-arrow:disabled { opacity: .25; }
.syllable-page-count { font-size: 13px; color: var(--muted); min-width: 46px; }
.syllable-path-button { display: flex; justify-content: center; align-items: center; gap: 12px; min-height: 56px; margin: 24px auto 0; padding: 8px 18px; background: transparent; border: 1px solid var(--line); border-radius: 18px; color: var(--muted); }
.syllable-path-button .nav-picture { width: 30px; height: 30px; }
.discovery-level-choices { display: grid; gap: 22px; max-width: 480px; margin: auto; }
.discovery-level-choice { display: flex; align-items: center; gap: 20px; min-height: 90px; padding: 20px; border: 2px solid var(--line); border-radius: 22px; background: #fffefa; }
.discovery-level-choice[aria-pressed="true"] { border-color: var(--accent); background: var(--pale); }
.discovery-level-choice > span:first-child { color: var(--accent); min-width: 62px; }
@media (max-width:600px) { .syllable-focus-grid { gap: 14px; } .syllable-focus-grid .discovery-syllable { min-height: 86px; font-size: 28px; } }

/* Keep the six-card libraries stable at every width. */
.discovery-letter-grid { grid-template-columns: repeat(3,minmax(0,1fr)); max-width: 540px; margin-inline: auto; }
.discovery-word-grid { max-width: 760px; margin-inline: auto; }
.difficulty-step { height: auto; min-height: 100px; padding: 10px 4px; border-radius: 22px; gap: 6px; }
.difficulty-step > span { font-size: 12px; line-height: 1.3; text-align: center; }
@media (max-width:600px) { .difficulty-step { min-height: 94px; } .difficulty-step > span { font-size: 11px; } }

/* One clear listening target, with the companion quietly beside it. */
.exercise-companion-guide.exercise-syllable-repeat { display: flex; justify-content: center; align-items: center; gap: 18px; width: fit-content; min-width: 182px; height: 116px; margin: 0 auto; padding: 10px 16px; border: 2px solid var(--accent); border-radius: 28px; background: var(--pale); }
.exercise-syllable-repeat .hero-art { width: 56px; height: 64px; }
.syllable-repeat-speaker { display: grid; place-items: center; width: 86px; height: 86px; border-radius: 50%; background: #fffefa; color: var(--accent); }
.syllable-repeat-speaker .nav-picture { width: 64px; height: 64px; }
.exercise-companion-guide.exercise-syllable-repeat:hover { background: var(--pale); border-color: var(--accent); }
.exercise-syllable-repeat:focus-visible { outline: 4px solid var(--accent); outline-offset: 5px; }
