:root{--paper:#fbf7eb;--ink:#25483e;--moss:#356953;--line:#d7dbc5;--gold:#e6bd67}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:radial-gradient(ellipse at top left,#f0e4b7aa,transparent 55%),linear-gradient(130deg,#eef1df,#faf3e5);font-family:'Trebuchet MS',sans-serif}button,a,summary{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:disabled{opacity:.55;cursor:default}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #9b6420;outline-offset:3px}h1,h2,.story-book-title{font-family:StoryRound,'Trebuchet MS',sans-serif;line-height:1.12}h1{font-size:clamp(30px,4vw,52px);letter-spacing:-1px}p{line-height:1.65}.story-reader{max-width:1440px;margin:auto;min-height:100svh;padding:12px 24px;display:flex;flex-direction:column;gap:12px}.story-toolbar{display:flex;align-items:center;gap:16px;justify-content:space-between}.story-book-title{font-size:18px;max-width:460px}.story-button,.story-preferences summary,.story-chapters summary,.story-back{display:inline-flex;align-items:center;justify-content:center;min-height:48px;border-radius:15px;padding:10px 16px;border:1px solid #bdcdb4;background:#fffdf4;color:var(--ink);font-weight:700;text-decoration:none}.story-primary{background:var(--moss);color:#fff9e9;border-color:var(--moss)}.story-preferences{position:relative}.story-preferences-panel{position:absolute;right:0;top:100%;z-index:30;width:220px;padding:12px;border:1px solid var(--line);border-radius:20px;background:var(--paper);box-shadow:0 15px 40px #233b2a25;display:grid;gap:8px}.story-chapters{align-self:flex-start;max-width:100%}.story-chapter-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:10px;padding:10px;border-radius:20px;background:var(--paper)}.story-chapter-list button{text-align:left;font-size:13px}.story-chapter-list [aria-current=step]{border:2px solid var(--moss);background:#e8efdc}.story-spread{display:grid;grid-template-columns:minmax(230px,.7fr) minmax(0,1.5fr);gap:24px;align-items:start;flex:1;min-height:0}.story-reading{padding:16px 0}.story-kicker{font-size:11px;letter-spacing:2px;font-weight:800;color:#6d7353}.story-reading h1{margin:12px 0 20px;font-size:clamp(28px,3vw,42px)}.story-paragraph{font-size:18px;line-height:1.75;margin:0 0 16px}.story-listening{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.story-audio-status{font-size:12px;min-height:18px}.story-activity-prompt{font-size:15px;font-weight:800;border-left:3px solid var(--gold);padding-left:12px}.story-stage{min-height:500px;height:min(600px,70svh);min-width:0}.story-stage .pals-work{flex-direction:column}.story-stage .pals-palette{width:100%;grid-template-columns:repeat(3,minmax(0,1fr))}.story-stage .pals-board{min-height:270px}.story-stage .pals-choice{flex-direction:row}.story-stage .pals-cue{padding:6px}.story-navigation{display:flex;gap:10px;justify-content:space-between;align-items:center;padding:6px 0}.story-start{position:fixed;inset:0;z-index:50;overflow:auto;background:#f5f0dfed;display:grid;place-items:center;padding:20px;backdrop-filter:blur(8px)}.story-welcome{max-width:560px;width:100%;padding:22px;text-align:center;background:var(--paper);border:1px solid var(--line);border-radius:30px;box-shadow:0 25px 80px #213a3020}.story-welcome h2{font-size:32px;margin:10px 0}.story-welcome-art{height:230px;background-size:200% 200%;background-position:0 0;border-radius:20px;position:relative;overflow:hidden}.story-welcome-art span{position:absolute;left:25%;bottom:0;width:50%;height:95%;background-size:200% 100%;background-repeat:no-repeat}.story-library{max-width:1180px;margin:auto;padding:30px 24px 60px}.story-library h1{max-width:650px;margin:20px 0}.story-lead{font-size:21px}.story-shelves{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:35px}.story-cover{overflow:hidden;border:1px solid var(--line);border-radius:28px;background:var(--paper);color:var(--ink);text-decoration:none;box-shadow:0 8px 0 #b2bf9d24}.story-cover-art{display:block;height:260px;position:relative;background-size:200% 200%;overflow:hidden}.story-cover-art span{position:absolute;right:5%;bottom:0;width:60%;height:98%;background-size:200% 100%;background-repeat:no-repeat}.story-cover>div{padding:24px}.story-cover h2{font-size:30px;margin:12px 0}.story-cover small{font-size:11px;letter-spacing:1.5px}.story-cover-previous{background:linear-gradient(125deg,#d8e5dc,#f5eed5)}.story-guide{max-width:800px;padding-top:36px}.story-guide p{font-size:15px}.story-large-text .story-paragraph{font-size:23px}.story-reader[data-paused=true] .pals-board{filter:saturate(.65)}body[data-still=true] *{animation:none!important;transition:none!important}
@media(max-width:800px){.story-reader{padding:10px 14px}.story-spread{grid-template-columns:1fr;gap:12px}.story-reading{padding:0}.story-reading h1{margin:6px 0 12px;font-size:29px}.story-paragraph{font-size:16px;line-height:1.6}.story-stage{height:540px;min-height:430px}.story-book-title{font-size:14px}.story-chapter-list{grid-template-columns:repeat(2,minmax(0,1fr))}.story-shelves{grid-template-columns:1fr}.story-library{padding:20px 16px}.story-navigation .story-button{padding:8px 12px;font-size:13px}}
@media(max-height:550px) and (orientation:landscape){.story-reader{padding:6px 12px;gap:6px}.story-toolbar .story-button,.story-preferences summary,.story-chapters summary{min-height:44px;padding:6px 10px;font-size:12px}.story-book-title{font-size:13px}.story-chapters{position:relative}.story-chapter-list{position:absolute;top:100%;left:0;width:min(90vw,700px);z-index:25;background:var(--paper)}.story-spread{grid-template-columns:minmax(185px,.7fr) minmax(0,1.5fr);gap:12px}.story-reading h1{font-size:23px}.story-kicker{margin:4px 0;font-size:9px}.story-paragraph{font-size:14px;line-height:1.5}.story-stage{height:310px;min-height:290px}.story-stage .pals-work{flex-direction:row}.story-stage .pals-palette{width:132px;grid-template-columns:repeat(2,minmax(0,1fr))}.story-stage .pals-choice{flex-direction:column}.story-stage .pals-board{min-height:200px}.story-activity-prompt{margin:8px 0;font-size:12px}.story-button{min-height:44px;padding:6px 10px;font-size:12px}.story-navigation{padding:0}.story-welcome-art{height:110px}.story-welcome h2{font-size:23px}.story-welcome{max-width:630px;padding:12px}.story-welcome p{margin:7px 0}.story-welcome-art span{width:30%;left:35%}}
@media(max-width:800px) and (orientation:portrait){.story-spread{display:grid;grid-template-columns:1fr;gap:8px}.story-reading{display:contents}.story-reading>.story-kicker{grid-row:1;margin:0}.story-reading>h1{grid-row:2;margin:0 0 4px}.story-stage{grid-row:3;height:460px;min-height:420px}.story-reading>.story-paragraph{grid-row:4;margin-top:12px}.story-stage .pals-board{min-height:240px}.story-reader{padding-bottom:86px}.story-navigation{position:fixed;bottom:0;left:0;right:0;z-index:20;padding:10px 14px max(10px,env(safe-area-inset-bottom));background:#fbf7ebf2;border-top:1px solid var(--line);box-shadow:0 -8px 25px #30452b0b}.story-stage .pals-choice{flex-direction:column}.story-stage .pals-choice .pals-sprite{width:48px!important;height:48px!important}}
@media(max-height:550px) and (orientation:landscape){.story-reader{position:relative;padding-top:56px;padding-bottom:64px}.story-toolbar{position:absolute;top:5px;left:12px;right:12px}.story-book-title{visibility:hidden}.story-chapters{position:absolute;left:39%;top:5px;z-index:30}.story-stage{height:calc(100svh - 120px);min-height:250px}.story-stage .pals-board{min-height:180px}.story-reading{max-height:calc(100svh - 130px);overflow:auto;padding-right:6px}.story-navigation{position:fixed;left:0;right:0;bottom:0;z-index:20;padding:6px 12px;background:#fbf7ebf5;border-top:1px solid var(--line)}.story-chapter-list{left:50%;transform:translateX(-50%)}.story-stage .pals-controls{gap:4px}.story-stage .pals-control{padding:4px 8px;font-size:11px}}
.story-button[hidden]{display:none}
.story-chapter-list button{gap:8px;justify-content:flex-start}
@media(max-height:550px) and (orientation:landscape){.story-navigation{padding-bottom:max(6px,env(safe-area-inset-bottom))}}
