@font-face {
    font-family: "Nunito";
    src: url("fonts/Nunito.ttf") format("truetype");
    font-style: normal;
    font-weight: 200 1000;
    font-display: swap;
}

:root {
    color-scheme: light;
    font: 650 16px/1.5 "Nunito", "Segoe UI", sans-serif;
    color: #33355a;
    background: #e9f7ff;
    --accent: #3c63ba;
    --accent-deep: #29458c;
    --dark: #33355a;
    --muted: #535b75;
    --paper: #fffef9;
    --line: #c9dfed;
    --selection: #3c63ba;
    --rain-red: #ff617d;
    --rain-orange: #ffa24d;
    --rain-yellow: #ffdb4d;
    --rain-green: #57d890;
    --rain-blue: #51baf3;
    --rain-indigo: #7b72e8;
    --rain-violet: #bd73e8;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100dvh; padding: 0 20px 28px; }
body::before { content: ""; display: block; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--rain-red) 0 14.3%, var(--rain-orange) 14.3% 28.6%, var(--rain-yellow) 28.6% 42.9%, var(--rain-green) 42.9% 57.2%, var(--rain-blue) 57.2% 71.5%, var(--rain-indigo) 71.5% 85.8%, var(--rain-violet) 85.8%); }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button:focus-visible, summary:focus-visible { outline: 3px solid #337ab1; outline-offset: 5px; }
button:disabled { cursor: default; }
h1[tabindex="-1"]:focus { outline: none; }
svg { display: block; }
.icon { width: 23px; height: 23px; flex: 0 0 auto; fill: currentColor; }
.masthead, .game { width: min(100%, 820px); margin-inline: auto; }
.masthead { display: flex; align-items: center; justify-content: space-between; min-height: 86px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding: 0; border: 0; background: transparent; color: #355f49; font-size: 1.42rem; font-weight: 900; letter-spacing: -.035em; }
.brand-mark { width: 38px; height: 42px; }
.sound-controls { display: flex; align-items: center; gap: 8px; }
.sound, .music, .secondary, .repeat { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; border: 1px solid #d7dfcf; border-radius: 16px; padding: 9px 14px; background: var(--paper); font-weight: 800; }
.sound, .music { font-size: .87rem; color: #46604e; }
.sound[aria-pressed="false"], .music[aria-pressed="false"] { color: #6c6e63; background: #f3f1e9; }
.music[aria-pressed="true"] { background: #e8f4df; border-color: #9abd8a; }
button:not(:disabled) { transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease; }
button:not(:disabled):active { transform: translateY(2px) scale(.98); }

.meadow { position: relative; isolation: isolate; height: clamp(176px, 26vh, 228px); overflow: hidden; border: 1px solid #b4dce1; border-bottom: 0; border-radius: 36px 36px 0 0; background: #a9e6ff; }
.sun { position: absolute; top: 23px; right: 12%; width: 58px; aspect-ratio: 1; border-radius: 50%; background: #ffe5a0; box-shadow: 0 0 0 9px #fff0bb60; }
.sun::before, .sun::after { content: ""; position: absolute; top: 27px; width: 3px; height: 5px; border-radius: 50%; background: #b38745; }
.sun::before { left: 20px; }.sun::after { right: 20px; }
.rainbow-arc { --band: 12px; position: absolute; left: 48%; bottom: calc(28% - var(--band) * 10); transform: translateX(-50%); width: calc(var(--band) * 20); height: calc(var(--band) * 20); z-index: -1; background: radial-gradient(circle at 50% 50%, transparent 0 calc(var(--band) * 3), var(--rain-violet) 0 calc(var(--band) * 4), var(--rain-indigo) 0 calc(var(--band) * 5), var(--rain-blue) 0 calc(var(--band) * 6), var(--rain-green) 0 calc(var(--band) * 7), var(--rain-yellow) 0 calc(var(--band) * 8), var(--rain-orange) 0 calc(var(--band) * 9), var(--rain-red) 0 calc(var(--band) * 10), transparent 0); }
.cloud { position: absolute; width: 80px; height: 18px; border-radius: 24px; background: #fffef7; }
.cloud::before, .cloud::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.cloud::before { width: 33px; height: 33px; top: -17px; left: 16px; }
.cloud::after { width: 23px; height: 23px; top: -8px; right: 11px; }
.cloud-left { left: 10%; top: 43px; }.cloud-right { right: 31%; top: 40px; transform: scale(.65); }
.hill { position: absolute; border-radius: 50%; }
.hill-back { width: 110%; height: 110%; left: -30%; top: 60%; background: #b4e987; }
.hill-front { width: 110%; height: 102%; right: -27%; top: 69%; transform: rotate(-5deg); background: #5bce92; }
.rabbit { position: absolute; width: 134px; height: 154px; bottom: 5%; left: 13%; transform-origin: 50% 100%; }
.rabbit > svg { width: 100%; height: 100%; }
.grass { position: absolute; width: 23px; height: 23px; border-radius: 50%; background: #f5d879; box-shadow: 0 -7px #fff2c2, 6px -2px #fff2c2, 4px 6px #fff2c2, -4px 6px #fff2c2, -6px -2px #fff2c2; transform: scale(.5); }
.grass-left { left: 39%; bottom: 11%; }.grass-right { right: 9%; bottom: 16%; transform: scale(.65); }
.flower { --petal: #fff8e0; position: absolute; bottom: -11px; left: 65%; width: 144px; height: 162px; transform-origin: bottom center; }
.stem { position: absolute; bottom: 0; left: 67px; width: 10px; height: 107px; background: #477b52; border-radius: 30px; }
.leaf { position: absolute; width: 34px; height: 19px; bottom: 26px; background: #507c52; }
.leaf-left { left: 36px; border-radius: 5px 100% 5px 100%; transform: rotate(12deg); }.leaf-right { right: 35px; bottom: 38px; border-radius: 100% 5px 100% 5px; transform: rotate(-10deg); }
.petals { position: absolute; width: 144px; height: 144px; top: -17px; }
.petals i { position: absolute; top: 30px; left: 50px; width: 44px; height: 48px; border-radius: 51% 50% 47% 45%; background: var(--petal); opacity: .65; transform: rotate(var(--angle)) translateY(-28px) scale(.8); transform-origin: 50% 42px; transition: opacity 300ms, transform 450ms cubic-bezier(.34, 1.56, .64, 1); }
.petals i.bloom { background: var(--bloom); opacity: 1; transform: rotate(var(--angle)) translateY(-28px) scale(1); }
.petals i:nth-child(1) { --angle: 0deg; --bloom: var(--rain-red); }.petals i:nth-child(2) { --angle: 72deg; --bloom: var(--rain-orange); }.petals i:nth-child(3) { --angle: 144deg; --bloom: var(--rain-blue); }.petals i:nth-child(4) { --angle: 216deg; --bloom: var(--rain-indigo); }.petals i:nth-child(5) { --angle: 288deg; --bloom: var(--rain-violet); }
.flower-center { position: absolute; display: grid; place-items: center; top: 27px; left: 44px; width: 56px; height: 56px; border-radius: 50%; background: #ffdd8b; color: #75502e; font-size: 1.65rem; font-weight: 900; box-shadow: inset 0 -4px #eebd68; }

.panel { position: relative; min-height: 308px; padding: 25px clamp(18px, 5vw, 46px) 32px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 36px 36px; background: var(--paper); text-align: center; box-shadow: 0 12px 26px #6f795311; }
.panel::before { content: ""; position: absolute; inset: -5px 0 auto; height: 6px; background: var(--paper); border-radius: 50% 50% 0 0; }
.panel-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.panel-top:has(.step[hidden]) { display: none; }
.step { color: #556c48; font-size: .85rem; font-weight: 850; }
.trail { display: flex; align-items: center; gap: 7px; padding: 0; margin: 0; list-style: none; }
.trail li { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; background: #eceee3; color: #69715f; font-size: .65rem; font-weight: 900; }
.trail li.complete { background: #719e65; color: white; }.trail li.current { background: #ffdb8a; color: #73502a; outline: 2px solid #ddb364; outline-offset: 2px; }
h1 { margin: 4px 0 10px; color: var(--dark); font-size: clamp(1.85rem, 4.6vw, 2.8rem); font-weight: 950; letter-spacing: -.035em; line-height: 1.18; text-wrap: balance; }
.panel-top:has(.step:not([hidden])) ~ h1 { font-size: clamp(1.65rem, 4vw, 2.25rem); }
.prompt { max-width: 49ch; margin: 8px auto 18px; color: var(--muted); font-size: clamp(1rem, 2.1vw, 1.12rem); text-wrap: pretty; }
.repeat { margin: 0 auto 19px; min-width: 150px; border: 1px solid #afcabc; background: #eff6ef; color: #285e48; font-size: 1rem; }
.repeat::before { content: ""; width: 20px; height: 20px; background: currentColor; mask: url("assets/icons/speaker-high.svg") center/contain no-repeat; }
.repeat.is-speaking { background: #deeedf; border-color: #6f9e80; }
.sample { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px; margin: 0 auto 20px; }
.model, .slot, .reveal { display: inline-grid; place-content: center; min-width: 65px; min-height: 65px; padding: 5px 15px; border-radius: 19px; color: #76552e; background: #ffedbd; font-size: 2.4rem; font-weight: 900; line-height: 1.15; }
.model-text { display: block; }.model mark, .reveal mark { border-radius: 5px; background: #cfe8bd; color: #315732; }
.slot { border: 2px dashed #bfcdb6; background: #f1f5eb; color: var(--dark); }
.slot.current { border: 2px solid #5d9672; background: #e6f0e0; box-shadow: 0 0 0 4px #e6f0e066; }
.choices { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.choice { --card-color: #f4ddb1; position: relative; display: grid; align-content: center; justify-items: center; gap: 10px; width: clamp(94px, 22vw, 135px); min-height: 112px; padding: 14px 10px; border: 2px solid #e2ddc8; border-radius: 24px; background: #fffdf5; box-shadow: 0 5px 0 #e7e3d5; font-size: 2.5rem; font-weight: 900; }
.choice:nth-child(2) { --card-color: #d5c8ed; }.choice:nth-child(3) { --card-color: #b6dfe9; }
.choice.picture { width: clamp(126px, 29vw, 170px); min-height: 145px; background: #fff8e7; }
.choice.picture:nth-child(2) { background: #f4effa; border-color: #d8cde7; box-shadow: 0 5px #e6dff0; }
.picture-art { display: block; width: 100px; height: 80px; }.picture-art svg { width: 100%; height: 100%; }
.choice-caption { font-size: .8rem; font-weight: 800; color: #686a60; line-height: 1.2; }
.choice.selected { border-color: #3c8561; background: #eaf5df; box-shadow: 0 5px #a5c7a2; }
.choice.selected::after { content: ""; position: absolute; width: 25px; height: 25px; top: -8px; right: -8px; border: 3px solid var(--paper); border-radius: 50%; background: #397454 url("assets/icons/check.svg") center/16px no-repeat; }
.choice.guided { border: 2px dashed #3d8056; background: #edf6e5; box-shadow: 0 5px #c5d7b8; }
.choice.is-speaking .speaker-icon { animation: sound-breathe 900ms ease-in-out infinite; }
.speaker-icon { display: grid; place-items: center; width: 62px; height: 62px; padding: 15px; border-radius: 50%; background: var(--card-color); color: #5a5145; }
.speaker-icon::after { content: ""; display: block; width: 100%; height: 100%; background: currentColor; mask: url("assets/icons/speaker-high.svg") center/contain no-repeat; }
.picture .speaker-icon { width: 32px; height: 32px; padding: 7px; }
.lesson-choice { width: 185px; min-height: 173px; gap: 7px; padding: 18px 14px 15px; background: #fff0da; border-color: #e3c69b; box-shadow: 0 6px #ecd9bb; }
.lesson-choice:nth-child(2) { background: #f0eaf8; border-color: #d1bee6; box-shadow: 0 6px #e0d4ec; }
.lesson-choice > .lesson-letter { font-size: 3.2rem; line-height: 1; letter-spacing: -.04em; }
.lesson-topline { display: flex; align-items: center; justify-content: center; gap: 6px; color: #756344; font-size: .73rem; font-weight: 850; text-transform: uppercase; letter-spacing: .09em; }
.lesson-topline svg { width: 21px; height: 24px; }
.lesson-status { margin-top: 6px; display: flex; align-items: center; gap: 7px; font-size: .88rem; color: #4a6049; }
.lesson-status .icon { width: 17px; height: 17px; }
.answer-instruction { margin: 15px 0 0; color: #446848; font-size: .9rem; font-weight: 800; }
.feedback { margin: 18px auto 0; max-width: 43ch; padding: 10px 14px; border-radius: 14px; background: #fff1d6; color: #70532f; font-weight: 800; }
.feedback:empty { display: none; }
.actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.actions:has(button[hidden] + button[hidden]) { display: none; }
.primary { min-height: 56px; min-width: 194px; border: 0; border-radius: 18px; padding: 12px 24px; background: var(--accent); color: #fffefa; box-shadow: 0 5px var(--accent-deep); font-size: 1.08rem; font-weight: 900; }
.primary:disabled { background: #e8ebe1; color: #717769; box-shadow: 0 4px #d9dfcf; }
.answer-reveal { margin: 18px auto 0; }
.celebration-mark { display: none; }
.panel[data-presentation="success"], .panel[data-presentation="finish"] { background: #fff9e7; border-color: #e7daba; }
.panel[data-presentation="success"]::before, .panel[data-presentation="finish"]::before { background: #fff9e7; }
.panel[data-presentation="success"] .celebration-mark, .panel[data-presentation="finish"] .celebration-mark { display: grid; place-items: center; width: 62px; height: 62px; margin: 14px auto; border: 4px solid #f6e5a8; border-radius: 50%; background: #ebf2cf; }
.celebration-mark::after { content: ""; width: 29px; height: 29px; background: #3c7650; mask: url("assets/icons/check.svg") center/contain no-repeat; }
.celebration-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: inherit; }
.celebration-layer i { position: absolute; width: 11px; height: 17px; left: 50%; top: 28%; border-radius: 8px 2px; background: var(--particle-color); opacity: 0; }
.garden-progress { min-height: 24px; margin: 15px 0 0; text-align: center; color: #69785d; font-size: .88rem; font-weight: 800; }
.observer { margin-top: 14px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 20px; color: #626b5b; background: #fffefa88; font-size: .88rem; }
.observer summary { cursor: pointer; min-height: 25px; font-weight: 800; }
.observer-actions { display: flex; flex-wrap: wrap; gap: 8px; }.observer button:disabled { opacity: .55; }.observer ol { max-height: 16rem; overflow: auto; padding-inline-start: 1.6rem; margin-bottom: 0; }.observer li + li { margin-top: .35rem; }
@keyframes sound-breathe { 50% { transform: scale(1.07); } }
@media (hover: hover) { .choice:not(:disabled):hover { transform: translateY(-3px); }.primary:not(:disabled):hover { background: #205c49; }.repeat:hover { background: #e2efe1; } }
@media (max-width: 480px) {
    body { padding-inline: 12px; }.masthead { min-height: 74px; gap: 8px; }.brand { font-size: 1.22rem; gap: 5px; }.brand-mark { width: 30px; height: 36px; }
    .sound-controls { gap: 6px; }.sound, .music { width: 46px; min-height: 46px; padding: 10px; border-radius: 15px; }.control-label { display: none; }
    .meadow { height: 170px; border-radius: 27px 27px 0 0; }.rainbow-arc { --band: 9px; left: 49%; }.sun { right: 10%; width: 45px; }.sun::before, .sun::after { top: 21px; }.sun::before { left: 15px; }.sun::after { right: 15px; }.cloud-left { left: 6%; top: 35px; transform: scale(.8); }
    .rabbit { left: 8%; width: 104px; height: 120px; }.flower { left: 60%; transform: scale(.8); }
    .panel { min-height: 300px; padding: 21px 16px 27px; border-radius: 0 0 27px 27px; }.prompt { font-size: 1rem; margin-bottom: 15px; }
    .lesson-choice { width: min(42%, 158px); min-height: 151px; }.lesson-choice > .lesson-letter { font-size: 2.8rem; }
    .choices { gap: 13px; }.choice.picture { min-height: 132px; }.picture-art { width: 88px; height: 70px; }.model, .slot { min-height: 58px; min-width: 58px; font-size: 2.15rem; }
    .game[data-stage="question"] .meadow { height: 104px; }.game[data-stage="question"] .rabbit { width: 74px; height: 86px; left: 13%; }.game[data-stage="question"] .flower { transform: scale(.59); left: 64%; }.game[data-stage="question"] .rainbow-arc { --band: 6px; bottom: calc(25% - var(--band) * 10); }.game[data-stage="question"] .sun { top: 14px; width: 37px; }.game[data-stage="question"] .sun::before { left: 12px; top: 18px; }.game[data-stage="question"] .sun::after { right: 12px; top: 18px; }.game[data-stage="question"] .cloud { top: 22px; }
    .observer { padding: 12px 14px; }.primary { min-width: 190px; }.repeat { min-height: 51px; margin-bottom: 17px; }
}
@media (max-width: 350px) { .panel { padding-inline: 12px; }.choice.picture { width: 117px; }.choices { gap: 10px; }.choice { width: 81px; }.lesson-choice { width: 44%; }.trail { gap: 5px; }.brand { font-size: 1.12rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Leaf cursor requested for the garden; native cursor hotspot stays accurate. */
@media (hover: hover) and (pointer: fine) {
    body { cursor: url("assets/leaf-cursor.svg") 4 3, auto; }
    button:not(:disabled), .observer summary { cursor: url("assets/leaf-pointer.svg") 4 3, pointer; }
    button:disabled { cursor: default; }
}
.tap-burst, .pointer-leaf { position: fixed; z-index: 20; pointer-events: none; user-select: none; }
.tap-burst { width: 0; height: 0; }
.tap-burst::before { content: ""; position: absolute; width: 30px; height: 30px; margin: -15px; border: 2px solid #91bd70; border-radius: 50%; animation: tap-ring 450ms ease-out both; }
.tap-burst i { position: absolute; width: 7px; height: 11px; margin: -5px -3px; border-radius: 7px 2px; background: var(--rain-red); animation: tap-petal 600ms cubic-bezier(.16,1,.3,1) both; }
.tap-burst i:nth-child(2) { background: var(--rain-yellow); }.tap-burst i:nth-child(3) { background: var(--rain-green); }.tap-burst i:nth-child(4) { background: var(--rain-blue); }.tap-burst i:nth-child(5) { background: var(--rain-violet); }
.pointer-leaf { width: 17px; height: 23px; border: 1px solid #397c3e; border-radius: 15px 2px; background: var(--leaf-color, #54ae46); animation: leaf-fall 1100ms ease-out both; }
.pointer-leaf::after { content: ""; position: absolute; left: 7px; top: 3px; width: 1px; height: 16px; border-radius: 2px; background: #efffc7; transform: rotate(28deg); opacity: .85; }
@keyframes tap-ring { from { opacity: .65; transform: scale(.3); } to { opacity: 0; transform: scale(1.8); } }
@keyframes tap-petal { from { opacity: .9; transform: translate(0,0) rotate(var(--turn)) scale(.5); } to { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--turn)) scale(1); } }
@keyframes leaf-fall { 0% { opacity: .95; transform: translate(0,0) rotate(var(--leaf-turn, -32deg)) scale(.85); } 30% { opacity: .9; } 100% { opacity: 0; transform: translate(13px,54px) rotate(calc(var(--leaf-turn, -32deg) + 65deg)) scale(1); } }
@media (prefers-reduced-motion: reduce) { .tap-burst, .pointer-leaf { display: none; } }

/* Bright garden and a visual distinction between a seedling and a finished flower. */
body { background-image: radial-gradient(circle, #ffffffb0 1.5px, transparent 1.5px); background-size: 24px 24px; }
.panel { border-color: #bcdbe9; box-shadow: 0 12px 28px #477fa916; }
.brand { color: #315fa8; }.sound, .music { border-color: #bddbe5; }.music[aria-pressed="true"] { background: #d8f6bd; border-color: #87be62; }
.repeat { background: #d9f2ff; border-color: #84c6e6; color: #285a81; }.repeat.is-speaking { background: #c5ebfa; }
.choice { --card-color: #ffe18a; border-color: #edd99b; background: #fff9df; box-shadow: 0 5px #f0e0a9; }
.choice:nth-child(2) { --card-color: #d7bef5; }.choice:nth-child(3) { --card-color: #9fe2ef; }
.choice.picture { background: #fff2c9; }.choice.picture:nth-child(2) { background: #f0e2ff; border-color: #ceace9; }
.choice.selected { background: #ddf8cf; border-color: #4b9c50; box-shadow: 0 5px #add99d; }
.observer { background: #f6fcff; border-color: #bfdde9; }
.lesson-choice, .lesson-choice:nth-child(2) { width: 212px; min-height: 231px; gap: 8px; padding: 16px; border-radius: 27px; }
.lesson-choice.is-new { background: #fff0b5; border-color: #e6bb53; box-shadow: 0 6px #e8cb77; }
.lesson-choice.is-new:nth-child(2) { background: #ffe6db; border-color: #efa27d; box-shadow: 0 6px #edba9d; }
.lesson-choice.is-complete, .lesson-choice.is-complete:nth-child(2) { background: #def8d3; border-color: #69b264; box-shadow: 0 6px #a6d29b; }
.lesson-hero { display: flex; align-items: center; justify-content: center; gap: 12px; }
.lesson-hero .lesson-letter { color: #45416c; font-size: 3.3rem; line-height: 1.1; font-weight: 950; letter-spacing: -.04em; }
.lesson-art { width: 70px; height: 78px; }
.lesson-topline { color: #675b38; }.is-complete .lesson-topline { color: #366738; }
.lesson-status { display: inline-flex; align-items: center; justify-content: center; align-self: center; margin: 0; gap: 5px; padding: 5px 9px; border-radius: 12px; background: #fffefa; color: #72541b; font-size: .86rem; font-weight: 900; }
.is-complete .lesson-status { background: #2c753f; color: #fff; }.is-complete .lesson-status img { filter: brightness(0) invert(1); }
.lesson-status .icon { width: 21px; height: 21px; }
.lesson-petals { display: flex; align-items: center; justify-content: center; gap: 6px; }
.lesson-petals i { width: 12px; height: 12px; border: 2px solid #a29468; border-radius: 50%; background: #fffdf5; }
.is-complete .lesson-petals i { border-color: #439658; background: #59b169; }
.lesson-action { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: .86rem; color: #574b31; font-weight: 900; }.lesson-action .icon { width: 17px; height: 17px; }
.music-volume { display: flex; align-items: center; justify-content: flex-end; gap: 10px; width: min(100%, 820px); margin: -3px auto 13px; color: #3f557b; font-size: .82rem; font-weight: 850; }
.music-volume input { min-height: 44px; width: 150px; margin: 0; accent-color: #4467bd; cursor: pointer; }.music-volume output { min-width: 35px; }
@media (max-width: 480px) {
    .lesson-choice, .lesson-choice:nth-child(2) { width: 44%; min-height: 220px; padding: 13px 8px; gap: 9px; }
    .lesson-hero { gap: 3px; }.lesson-hero .lesson-letter { font-size: 2.5rem; }.lesson-art { width: 56px; height: 67px; }
    .lesson-status { font-size: .78rem; padding: 5px 7px; }.lesson-status .icon { width: 18px; height: 18px; }
    .music-volume { justify-content: center; font-size: .75rem; gap: 8px; }.music-volume input { width: 120px; }
}
@media (max-width: 350px) { .lesson-hero { gap: 0; }.lesson-art { width: 44px; height: 62px; }.lesson-hero .lesson-letter { font-size: 2.2rem; }.lesson-status { font-size: .72rem; padding-inline: 5px; }.lesson-status .icon { width: 16px; height: 16px; } }

.lesson-choice.is-complete::after { content: ""; position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border: 3px solid #fff; border-radius: 50%; background: #2c753f url("assets/icons/check.svg") center/21px no-repeat; box-shadow: 0 0 0 2px #78bb6c; }
@media (hover: hover) { .primary:not(:disabled):hover { background: #315aa6; } }

/* Short, tactile rewards: fragments gather into the flower. */
.reward-flight { position: fixed; z-index: 21; width: 12px; height: 12px; border-radius: 4px; pointer-events: none; box-shadow: inset 0 -2px #00000012; }
.panel[data-presentation="success"] h1 { color: #6750b0; }
.panel[data-presentation="finish"] .celebration-mark { width: 78px; height: 78px; background: #e4f6bd; border-color: #f5d76f; }
@media (prefers-reduced-motion: reduce) { .reward-flight { display: none; } }

/* Clear task states and saved progress. */
::selection { color: #243855; background: #c7ecff; }
input { caret-color: var(--accent); }
input:focus-visible { outline: 3px solid #337ab1; outline-offset: 4px; }
.observer summary { min-height: 44px; padding-block: 10px; line-height: 1.5; }
.observer ol { scrollbar-color: #7badbb #eff9fc; scrollbar-width: thin; }
.sample-group { display: inline-flex; flex-direction: column; align-items: center; gap: 7px; }
.sample-caption { color: #4d625b; font-size: .88rem; line-height: 1.3; font-weight: 800; }
.slot-row { display: flex; gap: 10px; }
.slot:empty::after { content: attr(data-position); color: #667c64; font-size: .95rem; font-weight: 850; }
.primary.is-listening { background: #dbeef4; color: #46616a; box-shadow: 0 4px 4px #b9d2dc55; }
.lesson-choice.is-in-progress, .lesson-choice.is-in-progress:nth-child(2) { background: #dff1ff; border-color: #6ba8d3; box-shadow: 0 6px 5px #7facc94a; }
.is-in-progress .lesson-status { color: #275778; background: #fff; }
.lesson-petals i.earned { border-color: #439658; background: #59b169; }
.panel { padding-bottom: max(27px, env(safe-area-inset-bottom)); }
@media (max-width: 480px) and (max-height: 700px) {
    .masthead { min-height: 62px; }.game .meadow { height: 128px; }
    .game[data-stage="question"] .meadow { height: 76px; }
    .game[data-stage="question"] .rabbit { width: 58px; height: 68px; }
    .game[data-stage="question"] .flower { transform: scale(.44); left: 63%; }
    .game[data-stage="question"] .panel { padding: 14px 12px 18px; }
    .game[data-stage="question"] h1 { font-size: 1.5rem; }
    .game[data-stage="question"] .panel-top { margin-bottom: 9px; }
    .game[data-stage="question"] .prompt { margin: 6px auto 10px; }
    .game[data-stage="question"] .repeat { min-height: 46px; margin-bottom: 12px; }
    .game[data-stage="question"] .sample { margin-bottom: 12px; gap: 10px; }
    .game[data-stage="question"] .sample-caption { font-size: .88rem; }
    .game[data-stage="question"] .model, .game[data-stage="question"] .slot { min-height: 50px; min-width: 50px; font-size: 1.9rem; }
    .game[data-stage="question"] .choice { min-height: 86px; padding: 10px 7px; }
    .game[data-stage="question"] .choice.picture { min-height: 110px; }
    .game[data-stage="question"] .picture-art { height: 58px; }
    .game[data-stage="question"] .actions { margin-top: 12px; }
}
@media (min-width: 600px) and (max-height: 540px) and (orientation: landscape) {
    body { padding-inline: 14px; }.masthead { min-height: 58px; }
    .game { display: grid; grid-template-columns: 154px minmax(0, 1fr); align-items: stretch; }
    .game .meadow { height: auto; min-height: 260px; border-radius: 24px 0 0 24px; border-bottom: 1px solid #b4dce1; }
    .game .panel { border-top: 1px solid var(--line); border-radius: 0 24px 24px 0; padding: 14px 18px 18px; min-height: 260px; }
    .game .panel::before { display: none; }.game h1 { font-size: 1.65rem; }.game .prompt { margin: 6px auto 10px; font-size: 1rem; }
    .game .rainbow-arc { --band: 7px; left: 46%; bottom: calc(36% - var(--band) * 10); }.game .sun { width: 37px; right: 17px; top: 22px; }
    .game .cloud { transform: scale(.55); left: 0; top: 86px; }.game .cloud-right { display: none; }
    .game .rabbit { width: 92px; height: 105px; left: 0; bottom: 35%; }.game .flower { left: 17%; transform: scale(.63); }
    .garden-progress, .observer { grid-column: 1 / -1; }.garden-progress { margin-top: 12px; }
    .game[data-stage="question"] .panel:not([data-presentation="success"]) { display: grid; grid-template-columns: minmax(130px, .9fr) minmax(0, 1.1fr); align-content: start; column-gap: 16px; }
    .game[data-stage="question"] .panel-top, .game[data-stage="question"] h1, .game[data-stage="question"] .prompt { grid-column: 1 / -1; }
    .game[data-stage="question"] .panel-top { margin-bottom: 6px; }
    .game[data-stage="question"] h1 { font-size: 1.5rem; margin-block: 0 4px; }
    .game[data-stage="question"] .repeat { grid-column: 1; grid-row: 4; min-height: 44px; margin: 0 auto 10px; align-self: center; }
    .game[data-stage="question"] .sample { grid-column: 1; grid-row: 5; margin: 0; gap: 8px; }
    .game[data-stage="question"] .sample-caption { font-size: .88rem; }.game[data-stage="question"] .model, .game[data-stage="question"] .slot { min-width: 44px; min-height: 46px; font-size: 1.8rem; padding-inline: 8px; }
    .game[data-stage="question"] .slot-row { gap: 7px; }
    .game[data-stage="question"] .choices { grid-column: 2; grid-row: 4 / span 2; align-items: center; gap: 10px; }
    .game[data-stage="question"] .choice { width: 76px; min-height: 80px; padding: 8px; font-size: 2rem; }
    .game[data-stage="question"] .choice.picture { width: 104px; min-height: 112px; }.game[data-stage="question"] .picture-art { width: 78px; height: 60px; }
    .game[data-stage="question"] .speaker-icon { width: 46px; height: 46px; padding: 11px; }.game[data-stage="question"] .picture .speaker-icon { width: 28px; height: 28px; padding: 6px; }
    .game[data-stage="question"] .feedback, .game[data-stage="question"] .answer-instruction, .game[data-stage="question"] .actions, .game[data-stage="question"] .answer-reveal { grid-column: 1 / -1; }
    .game[data-stage="question"] .answer-instruction { margin-top: 7px; }.game[data-stage="question"] .actions { margin-top: 10px; }
    .game[data-stage="question"] .primary { min-height: 48px; padding-block: 8px; }
    .game[data-stage="question"] .celebration-mark { grid-column: 1 / -1; width: 48px; height: 48px; margin-block: 8px; }
}

/* Rabbit-led help and a small garden made from the words actually learned. */
.listening-tools { display: flex; justify-content: center; align-items: flex-start; gap: 10px; flex-wrap: wrap; }

.choice.tried:not(.selected):not(.guided) { background: #f4f1e8; border-style: dashed; box-shadow: 0 3px 5px #63515b12; }
.answer-instruction { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; }
.listening-path { display: inline-flex; align-items: center; gap: 5px; color: #527384; }
.path-step { display: inline-flex; padding: 4px; border-radius: 8px; background: #eaf4f7; }
.path-step.active { background: #d9f5c8; }.path-step .icon { width: 18px; height: 18px; }
.rest { min-height: 44px; margin: 12px auto 0; padding: 8px 14px; border: 0; background: transparent; color: #4d645c; font: 800 .95rem Nunito, sans-serif; text-decoration: underline; text-underline-offset: 4px; }
.keepsakes { margin: 20px auto 0; padding-top: 16px; border-top: 1px solid #c6dfbe; }
.keepsake-caption { margin: 0 0 12px; color: #456a43; font-size: .95rem; font-weight: 850; }
.keepsake-bed { display: flex; align-items: flex-end; justify-content: center; gap: 18px; padding-bottom: 12px; border-bottom: 5px solid #94cd7a; border-radius: 0 0 28px 28px; }
.keepsake { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 100px; min-height: 115px; border: 0; border-radius: 40px 40px 12px 12px; padding: 8px; background: #fff0c1; color: #5b4a2c; font: 900 1.25rem Nunito, sans-serif; }
.keepsake:nth-child(2) { background: #ffe0e7; color: #754354; }.keepsake:nth-child(3) { background: #e9ddff; color: #59457c; }
.keepsake > .artwork { width: 58px; height: 54px; }.keepsake > .icon { width: 18px; height: 18px; }
.keepsake.is-speaking { outline: 3px solid #368556; outline-offset: 3px; }
@media (max-width: 480px) { .keepsake-bed { gap: 10px; }.keepsake { width: 29%; } }
@media (max-width: 480px) and (max-height: 700px) { .listening-tools { gap: 7px; } }
@media (min-width: 600px) and (max-height: 540px) and (orientation: landscape) {
    .game[data-stage="question"] .listening-tools { grid-column: 1; grid-row: 4; gap: 5px; }
    .game[data-stage="question"] .listening-tools .repeat { margin-bottom: 0; }

}

.listening-tools:has(button:not([hidden])) { margin-bottom: 17px; }
.listening-tools .repeat { margin: 0; }
.path-step .artwork { width: 18px; height: 18px; }
@media (max-width: 480px) and (max-height: 700px) { .listening-tools:has(button:not([hidden])) { margin-bottom: 12px; } }
@media (min-width: 600px) and (max-height: 540px) and (orientation: landscape) { .listening-tools:has(button:not([hidden])) { margin-bottom: 10px; } }

@media (max-width: 480px) {
    .listening-tools { flex-wrap: nowrap; gap: 8px; }
    .listening-tools .repeat { min-width: 0; padding-inline: 12px; font-size: .9rem; }

}
@media (min-width: 600px) and (max-height: 540px) and (orientation: landscape) {
    .game[data-stage="question"] .listening-tools { flex-wrap: nowrap; align-items: center; }
    .game[data-stage="question"] .listening-tools .repeat { min-width: 0; padding-inline: 9px; font-size: .85rem; }

}

.path-step:last-child .icon { filter: brightness(.3); }

.voice-choice { margin-top: -3px; }
.voice-choice select { min-width: 0; width: 185px; min-height: 44px; padding: 6px 10px; border: 1px solid #bddbe5; border-radius: 13px; background: #fffef8; color: #34557a; font: 800 .85rem Nunito, sans-serif; }
.voice-choice select:focus-visible { outline: 3px solid #337ab1; outline-offset: 3px; }
.voice-preview { min-height: 44px; padding: 6px 12px; border: 1px solid #84c6e6; border-radius: 13px; background: #d9f2ff; color: #285a81; font: 850 .85rem Nunito, sans-serif; }
.voice-preview.is-speaking { background: #c5ebfa; }
@media (max-width: 480px) { .voice-choice { gap: 7px; }.voice-choice select { width: 151px; padding-inline: 5px; font-size: .8rem; }.voice-preview { padding-inline: 8px; font-size: .8rem; } }

.voice-choice label, .voice-preview { white-space: nowrap; flex-shrink: 0; }
.voice-choice select { flex-shrink: 1; }

/* The character itself is the help target; its hand badge works without reading. */
.rabbit-help { padding: 0; border: 0; border-radius: 26px; background: transparent; box-shadow: none; }
.rabbit-help .rabbit-body { transform-origin: 50% 90%; }
.rabbit-help:disabled { cursor: inherit; }
.rabbit-touch { position: absolute; right: -2px; bottom: 9px; display: grid; place-items: center; width: 38px; height: 38px; border: 2px solid #bda4d8; border-radius: 50%; background: #f6eaff; }
.rabbit-touch svg { width: 27px; height: 27px; }
.rabbit-help:disabled .rabbit-touch { display: none; }
.rabbit-help.needs-help .rabbit-touch, .rabbit-help.is-speaking .rabbit-touch { background: #e4f6c5; border-color: #568542; }
@media (max-width: 480px) { .rabbit-touch { width: 29px; height: 29px; bottom: 5px; }.rabbit-touch svg { width: 21px; height: 21px; } }
@media (max-width: 480px) and (max-height: 700px) { .game[data-stage="question"] .rabbit-touch { width: 25px; height: 25px; right: -4px; bottom: 0; }.game[data-stage="question"] .rabbit-touch svg { width: 18px; height: 18px; } }
/* A bounded garden map: four living plants per clearing, rather than a growing list. */
.audio-settings { width: min(100%, 820px); margin: -4px auto 12px; border: 1px solid #c9dfe8; border-radius: 14px; background: #f5fcff; }
.audio-settings summary { min-height: 44px; padding: 11px 15px; color: #405c7b; font-size: .86rem; font-weight: 850; }
.audio-settings[open] { padding-bottom: 6px; }
.audio-settings .music-volume { width: calc(100% - 24px); margin: 0 12px 3px; }
.game[data-stage="garden"] .meadow { height: 138px; }
.game[data-stage="garden"] .rabbit { width: 98px; height: 112px; }
.game[data-stage="garden"] .flower { transform: scale(.67); }
.game[data-stage="garden"] .panel { padding-top: 18px; }
.game[data-stage="garden"] h1 { font-size: clamp(1.8rem, 4vw, 2.35rem); }
.garden-map.choices { position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; width: 100%; max-width: 580px; min-height: 350px; padding: 20px 22px; margin: 15px auto 8px; border-radius: 30px; background: #daf1b5 url('assets/garden-path.svg') center / 100% 100% no-repeat; }
.garden-map .lesson-choice.choice { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%; min-height: 148px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; transform: none; }
.garden-map .lesson-choice::before { content: ''; position: absolute; z-index: -1; top: 65px; width: 88px; height: 22px; border-radius: 50%; background: #c79c69; }
.garden-map .lesson-choice::after { display: none; }
.garden-map .plant-art { width: 84px; height: 82px; }
.plant-sign { display: grid; place-items: center; min-width: 82px; min-height: 39px; padding: 0 12px; border: 2px solid #b18348; border-radius: 9px; color: #604626; background: #ffe4ad; font-size: 2rem; font-weight: 950; line-height: 1; }
.garden-plant:nth-child(2) .plant-sign { background: #ffe1df; border-color: #d09886; color: #744b51; }.garden-plant:nth-child(3) .plant-sign { background: #d5efff; border-color: #86b2c7; color: #345d79; }.garden-plant:nth-child(4) .plant-sign { background: #eaddff; border-color: #af94cb; color: #65457d; }
.plant-status { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 9px; color: #4c6336; background: #f8ffe8; font-size: .8rem; font-weight: 850; line-height: 1.4; }
.plant-status .icon { width: 17px; height: 17px; }.is-complete .plant-status { background: #e4ffd7; color: #316844; }.is-in-progress .plant-status { background: #effaff; color: #2b6383; }
.garden-map .lesson-petals { gap: 5px; }.garden-map .lesson-petals i { width: 9px; height: 9px; border-width: 1px; }
.garden-pages { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 8px auto 0; }
.garden-arrow { display: grid; place-items: center; min-width: 56px; min-height: 48px; padding: 4px 15px; border: 1px solid #7aad6c; border-radius: 17px; background: #ddf4c0; color: #37633d; font-size: 1.8rem; font-weight: 900; }
.garden-arrow:disabled { background: #edf2e8; color: #74806c; border-color: #d3ddcb; }.garden-position { color: #486e4b; font-size: .95rem; font-weight: 850; }
.memory-card { min-height: 90px; }.memory-face { display: none; }.memory-back { display: grid; place-items: center; min-height: 45px; }.memory-back .icon { width: 36px; height: 36px; }
.memory-card.memory-open .memory-face { display: block; }.memory-card.memory-open .memory-back { display: none; }
.game[data-type="memory"] .choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 230px; margin-inline: auto; gap: 12px; }.game[data-type="memory"] .choice { width: 100%; }
.flower-choice { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px; }.flower-choice .artwork { width: 68px; height: 72px; }.flower-word { font-size: 1.7rem; font-weight: 950; line-height: 1; }
.house-choice { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; min-height: 112px; margin-top: 20px; border-radius: 5px 5px 15px 15px; background: #ffecbc; }
.house-choice::before { content: ''; position: absolute; left: -6px; right: -6px; top: -24px; height: 25px; background: #e79c7e; clip-path: polygon(50% 0, 100% 100%, 0 100%); }.house-choice:nth-child(2)::before { background: #b09bdc; }.house-word { font-weight: 950; font-size: 2rem; }
.sorting-model .artwork { width: 100px; height: 85px; }
.game[data-type="pair"] .choice.picture { width: 28%; min-height: 118px; padding: 8px 5px; }.game[data-type="pair"] .picture-art { width: 73px; height: 65px; }.game[data-type="pair"] .speaker-icon { width: 28px; height: 28px; padding: 6px; }
.game[data-type="water"] .primary::before { content: ''; display: inline-block; vertical-align: middle; width: 29px; height: 29px; margin-right: 8px; background: currentColor; mask: url('assets/icons/watering-can.svg') center / contain no-repeat; }
@media (hover: hover) and (pointer: fine) { .audio-settings summary { cursor: url('assets/leaf-pointer.svg') 4 3, pointer; }.garden-plant:hover .plant-art { transform: translateY(-3px); } }
@media (max-width: 480px) {
    .game[data-stage="garden"] .meadow { height: 111px; }.game[data-stage="garden"] .rabbit { width: 78px; height: 90px; }.game[data-stage="garden"] .flower { transform: scale(.53); }
    .garden-map.choices { gap: 14px 10px; min-height: 330px; padding: 15px 8px; border-radius: 23px; }.garden-map .plant-art { width: 77px; height: 73px; }.garden-map .lesson-choice::before { top: 58px; width: 75px; }
    .garden-map .lesson-choice.choice { min-height: 143px; }.plant-sign { min-width: 75px; min-height: 35px; font-size: 1.85rem; }.plant-status { font-size: .75rem; }.game[data-stage="garden"] .panel { padding-inline: 12px; }
    .game[data-type="pair"] .picture-art { width: 62px; height: 57px; }.game[data-type="pair"] .choices { gap: 9px; }
}
@media (min-width: 600px) and (max-height: 540px) and (orientation: landscape) {
    .game[data-stage="garden"] .meadow { height: auto; }.game[data-stage="garden"] .rabbit { width: 90px; height: 106px; }.garden-map.choices { min-height: 290px; padding: 10px; gap: 4px 20px; }.garden-map .plant-art { width: 65px; height: 63px; }.garden-map .lesson-choice.choice { min-height: 130px; }.garden-map .lesson-choice::before { top: 48px; }
    .game[data-type="memory"] .choices { gap: 8px; max-width: 200px; }.game[data-type="memory"] .choice { min-height: 58px; }.memory-back { min-height: 32px; }.memory-back .icon { width: 27px; height: 27px; }
    .game[data-type="pair"] .choice.picture { width: 29%; min-height: 100px; }.game[data-type="pair"] .picture-art { width: 56px; height: 48px; }
}

.sorting-model { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 14px; border: 1px solid #aad4df; border-radius: 18px; background: #effaff; min-height: 90px; }
.sorting-model > .icon { width: 20px; height: 20px; }
.pair-basket { display: flex; gap: 12px; }.basket-slot { display: grid; place-items: center; width: 52px; height: 48px; border: 2px dashed #96b68a; border-radius: 13px; background: #f5fbe9; }.basket-slot.filled { border-style: solid; border-color: #4e935a; background: #e2f7d2; }.basket-slot .artwork { width: 42px; height: 39px; }
.garden-map:has(.garden-plant:only-child) { grid-template-columns: 1fr; }.garden-map .lesson-choice.choice { max-width: 180px; justify-self: center; }
@media (max-width: 480px) and (max-height: 700px) {
    .game[data-stage="garden"] .meadow { height: 56px; border-radius: 23px 23px 0 0; }
    .game[data-stage="garden"] .rabbit { width: 45px; height: 52px; bottom: 0; }
    .game[data-stage="garden"] .flower { transform: scale(.31); left: 69%; }
    .game[data-stage="garden"] .rainbow-arc { --band: 5px; }
    .game[data-stage="garden"] .panel { padding: 10px 10px 13px; }
    .game[data-stage="garden"] h1 { font-size: 1.4rem; margin: 2px 0 5px; }
    .game[data-stage="garden"] .prompt { font-size: .9rem; margin: 4px auto 7px; }
    .garden-map.choices { min-height: 232px; padding: 8px; gap: 8px; margin: 5px auto 4px; }
    .garden-map .lesson-choice.choice { min-height: 104px; gap: 2px; }
    .garden-map .plant-art { width: 51px; height: 45px; }.garden-map .lesson-choice::before { top: 36px; width: 58px; height: 15px; }
    .plant-sign { min-width: 64px; min-height: 29px; font-size: 1.6rem; }
    .plant-status { font-size: .72rem; padding-block: 1px; }.plant-status .icon { width: 15px; height: 15px; }
    .garden-map .lesson-petals i { width: 7px; height: 7px; }.garden-map .lesson-petals { gap: 4px; }
    .garden-pages { margin-top: 3px; gap: 16px; }.garden-arrow { min-height: 44px; font-size: 1.5rem; }
}

.answer-picture { display: grid; place-items: center; width: 66px; min-height: 62px; padding: 5px; border: 1px solid #b8d5bd; border-radius: 15px; background: #f5ffe9; }
.answer-picture .artwork { width: 54px; height: 48px; }.answer-picture.is-speaking { border-color: #418e55; background: #dff5cf; }
@media (max-width: 350px) { .answer-reveal { gap: 8px; }.answer-picture { width: 58px; }.answer-picture .artwork { width: 48px; } }

button.model { position: relative; border: 0; padding-bottom: 12px; }
button.model::after { content: ''; position: absolute; right: 5px; bottom: 4px; width: 12px; height: 12px; background: #76552e; mask: url('assets/icons/speaker-high.svg') center / contain no-repeat; }
button.model.is-speaking { background: #e0f4cb; }
/* Parent controls remain readable when text is enlarged; sliders keep their percentage inside. */
.audio-settings .music-volume { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3px 10px; margin-block: 6px 12px; font-size: .85rem; }
.audio-settings .music-volume label { grid-column: 1 / -1; text-align: left; }
.audio-settings .music-volume input { width: 100%; min-width: 0; }
.audio-settings .music-volume output { min-width: 3.2em; text-align: right; }
.audio-settings .voice-choice { grid-template-columns: minmax(0, 1fr) auto; }
.audio-settings .voice-choice label { grid-column: 1; }
.audio-settings .voice-choice .voice-preview { grid-column: 2; grid-row: 1; font-size: .9rem; }
.audio-settings .voice-choice select { grid-column: 1 / -1; grid-row: 2; width: 100%; font-size: .9rem; }

.garden-map .is-complete .lesson-petals i:not(.earned) { border-color: #a29468; background: #fffdf5; }
