:root{--ink:#173d46;--mint:#c7ed9b;--paper:#fffdf7;--line:#e5dfd0;--muted:#647775;--active:#ffd06d;color-scheme:light;font-family:ui-rounded,"Trebuchet MS",system-ui,sans-serif;color:var(--ink);background:#f4f1e7;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 18% 15%,#f9e5b1a8,transparent 45%),radial-gradient(ellipse at 92% 85%,#d2e5d6,transparent 40%),#f4f1e7}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:disabled{cursor:default;opacity:.48}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #d18c1e;outline-offset:4px}[hidden]{display:none!important}.story-header{height:74px;max-width:1240px;padding:0 32px;margin:auto;display:flex;align-items:center;gap:20px}.lab-brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink);font-weight:850;font-size:17px;line-height:1.2}.lab-brand>span:first-child{font-size:35px;color:#b37e28}.lab-brand small{display:block;font-size:10px;text-transform:uppercase;letter-spacing:1.3px;margin-top:3px;color:var(--muted)}.test-label{font-size:12px;margin-left:auto;background:#e8edde;border:1px solid #dce1d2;border-radius:99px;padding:8px 13px}.icon-button{border:1px solid #d9ddcf;background:#fffaf1;border-radius:50%;font-weight:bold;width:42px;height:42px;color:var(--ink);font-size:19px}.book{max-width:1190px;margin:0 auto;padding:0 20px}.book-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:7px 8px 16px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:800;color:#8c6b36;margin:0 0 7px}h1,h2{font-family:Georgia,"Times New Roman",serif;letter-spacing:-.6px;margin:0}h1{font-size:clamp(23px,3vw,34px);font-weight:600}.page-position{font-size:12px;white-space:nowrap;color:var(--muted)}.spread{display:grid;grid-template-columns:1.16fr 1fr;background:var(--paper);border:1px solid #e4dccb;border-radius:24px;box-shadow:0 22px 55px #3c48331c,0 3px 6px #51432508;overflow:hidden;min-height:450px;height:min(650px,calc(100dvh - 190px))}.picture-page{position:relative;background:#f1dfbe;min-height:0;display:grid;grid-template-rows:minmax(0,1fr) auto;border-right:1px solid #e5ddc9}.picture-page img{width:100%;height:100%;object-fit:cover;display:block;min-height:0;transition:opacity .24s ease}.picture-caption{padding:18px 22px 29px;background:#fbf0d7;display:flex;align-items:center;gap:10px;font-family:Georgia,serif;font-size:15px;color:#77572f;min-height:68px}.picture-caption>span:first-child{font-size:22px;color:#bd8e36}.page-dots{position:absolute;bottom:12px;left:0;right:0;display:flex;justify-content:center;gap:6px}.page-dots i{display:block;width:5px;height:5px;border-radius:50%;background:#cfc4a9}.page-dots i.current{background:#8e6c30;width:19px;border-radius:9px}.reading-page{padding:clamp(20px,3vw,42px);display:flex;flex-direction:column;justify-content:center;position:relative;min-height:0;box-shadow:inset 12px 0 25px -20px #806a3c55}.welcome{text-align:center;margin:auto}.story-seal{width:55px;height:55px;border:1px solid #e5d7a9;background:#fff5d5;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:32px;color:#a77b28;margin-bottom:15px}.welcome h2{font-size:clamp(34px,4vw,54px);line-height:1.05;font-weight:500}.welcome p:not(.eyebrow){font-size:16px;line-height:1.65;margin:20px 0 24px;color:#64736b}.primary{background:var(--ink);color:white;border:1px solid var(--ink);border-radius:13px;padding:15px 22px;min-height:52px;font-weight:750;display:inline-flex;align-items:center;justify-content:center;gap:15px;font-size:15px;box-shadow:0 4px 0 #09262d}.primary span[aria-hidden]{color:var(--mint)}.primary:hover{background:#24545b}.primary:active{box-shadow:none;transform:translateY(2px)}.text-button{color:#536c65;font-size:12px;border:0;background:none;min-height:44px;padding:9px 10px;text-decoration:underline;text-decoration-color:#a3b3a3;text-underline-offset:4px}.welcome .text-button{display:block;margin:10px auto 0}.reader{margin:auto 0;width:100%}.reader-cue{color:#6a807a;letter-spacing:1.1px;font-size:10px;font-weight:800;text-transform:uppercase;margin:0 0 20px}.sentence{font-family:Georgia,"Times New Roman",serif;font-size:clamp(30px,3.4vw,45px);font-weight:500;line-height:1.42;letter-spacing:-.4px;margin:0;outline:none;overflow-wrap:normal}.word{display:inline;padding:2px 4px;margin:0 -1px;border-radius:7px;box-decoration-break:clone;-webkit-box-decoration-break:clone;transition:background-color .08s,color .08s}.word.current{background:var(--active);color:#163d46;box-shadow:0 2px 0 #e3ac48}.word.read{color:#315c51}.gap-sentence{font-size:19px;line-height:1.5;margin:20px 0 12px;color:#60756b}.gap-sentence strong{background:#e7f3d6;border-radius:5px;padding:2px 5px;color:#326344}.choices{display:flex;flex-wrap:wrap;gap:9px;margin:17px 0 0}.choice{background:#fff;border:2px solid #d7dfd0;color:var(--ink);border-radius:12px;min-height:54px;padding:10px 15px;font-size:17px;font-weight:750;flex:1 0 auto;transition:transform .14s,border-color .14s,background-color .14s}.choice:hover:not(:disabled){border-color:#77a078;transform:translateY(-2px)}.choice.correct{border-color:#649951;background:#dfedbe;color:#274e33}.choice.try-again{border-color:#d9aa55;background:#fff4dc}.choice:disabled{opacity:.65}.choice.correct:disabled{opacity:1}.feedback{font-size:13px;line-height:1.45;min-height:38px;margin:14px 0 2px;color:#62776a}.feedback.good{color:#386b45;font-weight:700}.book-controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;padding-top:18px;border-top:1px solid #eee9df;min-height:76px}.audio-controls{display:flex;align-items:center;gap:5px}.control{display:flex;align-items:center;gap:7px;border:0;background:transparent;color:#36574d;font-size:12px;font-weight:650;min-height:44px;padding:8px 4px;white-space:nowrap}.control svg{width:24px;height:24px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.small-control{padding-left:8px}.next{padding:12px 17px;min-height:46px;font-size:13px;gap:13px}.under-book{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#798276;min-height:48px;padding:0 6px}.under-book>span{margin-left:auto}.finish{text-align:center}.finish>span{font-size:52px;display:block;color:#ae8438;margin-bottom:7px}.finish h2{font-size:33px;font-weight:500}.finish p{font-size:14px;color:var(--muted)}.learned-words{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin-top:18px}.learned-words span{background:#edf3e1;border-radius:8px;font-size:12px;padding:7px 9px}.finish-enter{animation:open-book .5s ease both}@keyframes open-book{from{transform:translateY(7px);opacity:0}to{transform:translateY(0);opacity:1}}dialog{border:1px solid #e5dcc7;border-radius:24px;padding:32px;max-width:420px;width:calc(100vw - 32px);color:var(--ink);background:var(--paper);box-shadow:0 20px 100px #183a4555}dialog::backdrop{background:#153b49a8;backdrop-filter:blur(3px)}dialog h2{font-size:28px}dialog ol{padding-left:22px;font-size:15px;line-height:1.65}dialog li{margin-bottom:8px}dialog p{line-height:1.6;font-size:14px}.dialog-close{position:absolute;top:13px;right:13px}.grown-up{margin-top:23px;border-top:1px solid var(--line);padding-top:13px;font-size:12px;color:#718077}.grown-up summary{cursor:pointer}.grown-up p{font-size:12px}.grown-up a{color:inherit}.load-status{position:fixed;bottom:12px;background:#fff4dc;border:1px solid #d5bb7a;padding:12px 16px;border-radius:12px;max-width:calc(100vw - 24px);left:50%;transform:translateX(-50%);font-size:14px;z-index:4}.audio-error{color:#8d5c1c}
@media(max-width:720px){.story-header{height:60px;padding:0 16px;gap:10px}.lab-brand{font-size:14px}.lab-brand>span:first-child{font-size:28px}.lab-brand small{font-size:8px}.test-label{font-size:9px;padding:7px 9px}.icon-button{width:36px;height:36px;min-width:36px}.book{padding:0 12px}.book-heading{margin:4px 3px 10px;gap:8px}.eyebrow{font-size:8px;letter-spacing:1.3px;margin-bottom:4px}h1{font-size:22px}.page-position{font-size:10px}.spread{grid-template-columns:1fr;grid-template-rows:minmax(135px,34%) minmax(0,1fr);height:calc(100dvh - 146px);min-height:480px;border-radius:18px}.picture-page{border-right:0;border-bottom:1px solid #e5ddc9;grid-template-rows:minmax(0,1fr) auto}.picture-page img{object-fit:contain;object-position:center;background:#f1dfbe}.picture-caption{font-size:12px;min-height:30px;padding:5px 12px 15px;gap:6px}.picture-caption>span:first-child{font-size:14px}.page-dots{bottom:5px;gap:5px}.page-dots i{height:4px;width:4px}.page-dots i.current{width:15px}.reading-page{padding:17px 19px;box-shadow:none}.welcome{display:grid;grid-template-columns:1fr;justify-items:center}.story-seal{display:none}.welcome .eyebrow{margin-bottom:6px}.welcome h2{font-size:34px}.welcome h2 br{display:none}.welcome h2 br:after{content:' '}.welcome p:not(.eyebrow){font-size:13px;line-height:1.5;margin:12px 0 16px}.welcome .primary{min-height:48px;padding:12px 22px}.welcome .text-button{margin:2px 0 0;font-size:11px}.reader-cue{font-size:9px;margin-bottom:10px}.sentence{font-size:clamp(26px,7.5vw,35px);line-height:1.4}.gap-sentence{font-size:15px;margin:13px 0 7px}.choices{gap:7px;margin:10px 0 0}.choice{font-size:14px;padding:9px 10px;min-height:46px}.feedback{font-size:12px;min-height:32px;margin:9px 0 1px}.book-controls{padding-top:9px;min-height:59px;gap:6px}.control{font-size:11px;gap:5px}.control svg{width:21px;height:21px}.small-control{font-size:10px;padding-left:6px}.next{font-size:12px;padding:10px 13px;min-height:43px;gap:8px}.under-book{min-height:37px;font-size:9px;padding:0}.under-book .text-button{font-size:10px;min-height:36px;padding:6px 2px}.finish h2{font-size:28px}.finish p{font-size:12px;margin:7px 0}.finish>span{font-size:32px;margin:0}.learned-words{gap:5px;margin-top:12px}.learned-words span{font-size:11px;padding:6px 8px}}
@media(max-height:700px) and (max-width:720px){.spread{min-height:430px;grid-template-rows:30% minmax(0,1fr)}.reading-page{padding:12px 16px}.sentence{font-size:27px}.reader-cue{margin-bottom:7px}.gap-sentence{margin:9px 0 4px}.feedback{font-size:11px;min-height:28px}.choices{margin-top:7px}.choice{font-size:13px;min-height:44px}.welcome h2{font-size:30px}.welcome p:not(.eyebrow){margin:8px 0 12px}.book-controls{padding-top:5px}}
@media(max-height:510px) and (min-width:560px){.story-header{height:48px}.book-heading{margin:1px 4px 8px}.eyebrow{font-size:8px;margin-bottom:3px}h1{font-size:22px}.spread{grid-template-columns:1fr 1fr;grid-template-rows:1fr;min-height:270px;height:calc(100dvh - 128px)}.reading-page{padding:13px 19px}.picture-page{border-right:1px solid var(--line);border-bottom:0}.picture-caption{padding:5px 14px 18px;font-size:11px;min-height:38px}.reader-cue{margin-bottom:9px}.sentence{font-size:26px}.gap-sentence{font-size:14px;margin:8px 0}.choice{min-height:42px;font-size:13px;padding:7px}.choices{margin-top:8px}.feedback{font-size:11px;min-height:24px;margin-top:8px}.book-controls{min-height:47px;padding-top:4px}.control{font-size:10px}.next{min-height:38px;font-size:11px}.welcome h2{font-size:30px}.welcome p:not(.eyebrow){font-size:12px;margin:10px 0}.welcome .story-seal{display:none}.under-book{min-height:30px}.finish>span{display:none}.finish h2{font-size:27px}.learned-words{margin-top:8px}.learned-words span{font-size:10px;padding:5px 7px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Allocate the phone viewport from its actual header and footer sizes. */
@media(max-width:720px){.book{height:calc(100dvh - 60px);display:flex;flex-direction:column}.book-heading{flex-shrink:0}.spread{flex:1;height:auto;min-height:0}.under-book{flex-shrink:0}}
@media(max-height:510px) and (min-width:560px){.book{height:calc(100dvh - 48px);display:flex;flex-direction:column}.book-heading{flex-shrink:0}.spread{flex:1;height:auto;min-height:0}.under-book{flex-shrink:0}}

.voice-switch{color:var(--ink);margin-left:auto;text-decoration:underline;text-underline-offset:3px;font-size:11px;padding:10px 0;white-space:nowrap}@media(max-width:720px){.voice-switch{font-size:9px}}

.story-back{margin-left:auto;background:#123247;color:white;text-decoration:none;border-radius:10px;padding:10px 14px;min-height:44px;display:flex;align-items:center;font-size:12px;font-weight:700}.story-help{display:block;font:12px/1.5 system-ui,sans-serif;color:#5e736c;margin-top:8px;max-width:38em}.feedback-help{font-size:11px;margin-top:0}.story-voice{margin-left:auto;font-size:10px;color:#6d7d73}.embedded-story{height:100dvh;overflow:hidden}.embedded-story .story-header{display:none}.embedded-story .book{height:100dvh;display:flex;flex-direction:column;padding:8px 12px 0;max-width:1320px}.embedded-story .book-heading{flex-shrink:0;margin:0 4px 8px}.embedded-story .book-heading h1,.embedded-story .book-heading .eyebrow{display:none}.embedded-story .page-position{margin:0;font-size:11px}.embedded-story .spread{flex:1;height:auto;min-height:0}.embedded-story .under-book{min-height:35px;flex-shrink:0}.embedded-story .reading-page{min-height:0}.embedded-story .book-controls{flex-shrink:0}.embedded-story .reader{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center}.embedded-story .reader[hidden]{display:none!important}
@media(max-width:720px){.story-back{font-size:10px;padding:8px 10px}.embedded-story .book{padding:4px 5px 0}.embedded-story .book-heading{margin-bottom:4px}.embedded-story .spread{grid-template-rows:minmax(85px,27%) minmax(0,1fr)}.embedded-story .story-help{font-size:11px;line-height:1.35;margin-top:5px}.embedded-story .feedback-help{font-size:10px}.embedded-story .under-book{min-height:30px}.embedded-story .story-voice{font-size:9px}}
@media(max-width:720px) and (max-height:560px){.embedded-story .spread{grid-template-rows:minmax(70px,23%) minmax(0,1fr)}.embedded-story .picture-caption{padding:4px 10px 12px;min-height:24px;font-size:10px}.embedded-story .reading-page{padding:8px 12px}.embedded-story .sentence{font-size:24px;line-height:1.3}.embedded-story .reader-cue{margin:0 0 5px}.embedded-story .choices{gap:5px;margin-top:6px}.embedded-story .choice{font-size:12px;padding:8px;min-height:44px}.embedded-story .gap-sentence{font-size:13px;margin:6px 0 2px}.embedded-story .feedback{min-height:25px;margin:5px 0 0;font-size:11px}.embedded-story .book-controls{min-height:49px;padding-top:4px}.embedded-story .control{font-size:10px}.embedded-story .next{min-height:42px}.embedded-story .welcome h2{font-size:28px}.embedded-story .welcome p:not(.eyebrow){font-size:12px;margin:7px 0 9px}.embedded-story .welcome .text-button{min-height:33px}.embedded-story .welcome .primary{min-height:44px}.embedded-story .learned-words{margin-top:8px}.embedded-story .learned-words span{font-size:10px;padding:4px 6px}}

/* Phone stories: give the illustration real space without cropping its clues. */
@media(max-width:720px){
 .spread,.embedded-story .spread{grid-template-rows:minmax(150px,43%) minmax(0,1fr)}
 .picture-page img{object-fit:contain;object-position:center}
 .picture-caption{min-height:27px;padding:4px 10px 12px;font-size:11px}
 .reading-page,.embedded-story .reading-page{padding:10px 14px}
 .reader,.embedded-story .reader{justify-content:center}
 .sentence,.embedded-story .sentence{font-size:clamp(23px,6.4vw,29px);line-height:1.3}
 .reader-cue{font-size:8px;margin:0 0 6px}
 .gap-sentence,.embedded-story .gap-sentence{font-size:14px;line-height:1.3;margin:7px 0 4px}
 .choices,.embedded-story .choices{gap:6px;margin-top:7px}
 .choice,.embedded-story .choice{font-size:13px;padding:7px 9px;min-height:44px;flex:1 1 auto}
 .feedback,.embedded-story .feedback{font-size:11px;min-height:0;margin:7px 0 0}
 .feedback:empty{display:none}
 .book-controls,.embedded-story .book-controls{padding-top:5px;min-height:49px;gap:4px}
 .embedded-story .story-help{font-size:10px;line-height:1.25;margin-top:4px}
 .welcome h2,.embedded-story .welcome h2{font-size:28px}
 .welcome p:not(.eyebrow),.embedded-story .welcome p:not(.eyebrow){font-size:12px;line-height:1.35;margin:7px 0 10px}
 .welcome .primary{min-height:44px;padding:10px 16px}
 .welcome .text-button{min-height:33px}
}
@media(max-width:720px) and (max-height:460px){
 .spread,.embedded-story .spread{grid-template-rows:minmax(115px,37%) minmax(0,1fr)}
 .picture-caption{display:none}.sentence,.embedded-story .sentence{font-size:21px}
 .reading-page,.embedded-story .reading-page{padding:8px 11px}
 .reader-cue{margin-bottom:4px}.gap-sentence,.embedded-story .gap-sentence{font-size:13px;margin:5px 0 3px}
 .choice,.embedded-story .choice{font-size:12px;padding:6px 8px}
}
@media(max-height:460px) and (min-width:560px) and (max-width:720px){
 .spread,.embedded-story .spread{grid-template-columns:1fr 1.15fr;grid-template-rows:1fr}
 .picture-caption{display:flex}.picture-page{border-right:1px solid var(--line);border-bottom:0}
}
@media(max-width:350px) and (max-height:460px){
 .spread,.embedded-story .spread{grid-template-rows:minmax(85px,26%) minmax(0,1fr)}
 .book-controls,.embedded-story .book-controls{padding-top:0;min-height:44px}
 .reader,.embedded-story .reader{justify-content:flex-start}
}
@media(max-width:350px) and (max-height:460px){
 .reading-page,.embedded-story .reading-page{padding:4px 11px}
 .reader,.embedded-story .reader{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
}

.book-heading .story-level{font:700 12px/1.4 system-ui,sans-serif;margin:0 10px;color:#315c51}.book-heading .story-level .story-help{margin-top:1px;font-weight:400;font-size:11px}.intermediate-story .sentence{font-size:clamp(24px,2.6vw,36px);line-height:1.4}.intermediate-story .reader{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}.intermediate-story .reading-page{gap:8px}.intermediate-story .reader-cue{flex-shrink:0}.intermediate-story .book-heading{align-items:center;flex-wrap:wrap}.intermediate-story .book-heading .story-level{margin-right:auto}@media(max-width:720px){.intermediate-story .sentence{font-size:clamp(21px,5.5vw,27px);line-height:1.35}.intermediate-story .reader,.embedded-story.intermediate-story .reader{justify-content:flex-start}.intermediate-story .welcome{overflow-y:auto}.intermediate-story .book-heading .story-level{font-size:11px}.intermediate-story .spread,.embedded-story.intermediate-story .spread{grid-template-rows:minmax(125px,35%) minmax(0,1fr)}}
.intermediate-story .picture-page img{object-fit:contain;background:#f4e9d1}
