*{box-sizing:border-box}.welcome-reader{margin:0;color:#493c53;background:#f3e9df url('/storybooks/bedroom-bookshelf.webp') center/cover fixed;font-family:Nunito,sans-serif;min-height:100svh}.welcome-reader:before{content:'';position:fixed;inset:0;background:#f5eddf8a;backdrop-filter:blur(5px);z-index:-1}.welcome-reader button,.welcome-reader a{font:inherit}.welcome-reader button{cursor:pointer;color:inherit;border:0}.welcome-reader button:focus-visible,.welcome-reader a:focus-visible{outline:3px solid #583e9d;outline-offset:4px}.wr-header{height:68px;display:flex;align-items:center;justify-content:space-between;padding:0 4%;gap:12px}.wr-header a{color:#493c53;text-decoration:none;font-weight:800}.wr-header span{letter-spacing:.16em;font-size:13px;font-weight:900}.wr-header button{border-radius:50%;width:44px;height:44px;background:#fff9ed}.wr-heading{text-align:center;margin:8px 0 24px}.wr-heading p{font-size:12px;letter-spacing:.2em;margin:0 0 7px;font-weight:900;color:#695273}.wr-heading h1{font-family:Fredoka,sans-serif;font-size:clamp(26px,3vw,42px);font-weight:500;margin:0}.wr-book{position:relative;width:min(1280px,89vw);margin:auto;display:grid;grid-template-columns:1fr 1fr;min-height:550px;background:#fff9ed;border-radius:15px 24px 28px 15px;box-shadow:0 7px 0 #eadbc3,0 11px 0 #c3aaba,0 20px 45px #59483640;border:1px solid #e7d9c7}.wr-book:after{content:'';position:absolute;inset:0 auto 0 50%;width:30px;translate:-50% 0;pointer-events:none;background:linear-gradient(90deg,transparent,#74644916,#fff9ed77,transparent);z-index:3}.wr-picture{position:relative;align-self:stretch;overflow:hidden;border-radius:15px 3px 3px 15px;margin:15px 0 15px 15px;background:#e5dfd3}.wr-picture>img{display:block;width:100%;height:100%;object-fit:cover;position:absolute;inset:0}.wr-paper{padding:30px clamp(25px,3.4vw,53px) 28px;min-width:0;align-self:center}.wr-page-top{display:flex;justify-content:space-between;gap:15px;margin-bottom:20px;color:#7b687d;font-size:12px;font-weight:900;letter-spacing:.07em}.wr-page-top span:last-child{text-align:right;font-weight:600;letter-spacing:0}#prose{font-size:clamp(18px,1.65vw,24px);line-height:1.52}#prose p{margin:0 0 .75em}#prose em{color:#75508a;font-weight:700}#prose .word{border-radius:4px;cursor:pointer}#prose .speaking{background:#ead589;color:#322a39}#prose p:last-child{margin-bottom:0}.wr-bookmark{position:absolute;right:-25px;top:32px;display:flex;align-items:center;flex-direction:column;gap:7px;background:#7967a5;color:white;padding:13px 9px 26px;width:56px;clip-path:polygon(0 0,100% 0,100% 100%,50% 90%,0 100%);filter:drop-shadow(0 4px 2px #392a4822)}.wr-bookmark>span{font-size:23px;color:#ffe6a3}.wr-bookmark b{font-size:16px}.wr-bookmark small{font-size:10px}.wr-controls{width:min(750px,89vw);margin:28px auto 10px;display:flex;gap:16px;justify-content:space-between;align-items:center}.wr-controls>button{border-radius:50%;background:#fff9ed;width:54px;height:54px;font-size:26px;box-shadow:0 3px 0 #cbb6b8}.wr-controls button:disabled{opacity:.35;cursor:default}.wr-audio-controls{display:flex;gap:8px;padding:5px;border-radius:32px;background:#fff9ed}.wr-audio-controls button{padding:12px 22px;border-radius:25px;background:transparent;font-weight:800}.wr-audio-controls #listen{background:#745998;color:white}.wr-audio-controls #self[aria-pressed=true]{background:#eadfcc}.wr-saved{text-align:center;color:#67586a;font-size:12px;margin:12px}.wr-grownups{max-width:650px;margin:28px auto;padding:0 24px 25px;font-size:14px}.wr-grownups button{background:#fff9ed;padding:10px;border-radius:10px}#choices{margin-top:20px}#choices h2{font-family:Fredoka;font-weight:500;font-size:22px}#choices button{display:flex;align-items:center;gap:12px;width:100%;text-align:left;margin:10px 0;background:#eee4cc;border:1px solid #ddcdaa;padding:14px 16px;border-radius:15px;line-height:1.4;font-weight:800}#choices button[data-choice=B]{background:#e5e8d9;border-color:#c6d2b3}#choices button span{font-size:30px}#ending{margin-top:22px}#ending p{font-style:italic;font-size:17px;line-height:1.5}#ending button,#ending a{display:block;margin-top:12px;padding:12px 16px;background:#eee0f0;border-radius:14px;text-align:center;text-decoration:none;color:#5d3f72}#status{font-size:13px;color:#6c5c74;margin:12px 0 0}.wr-activity{position:absolute;bottom:15px;left:15px;right:15px;display:flex;justify-content:center;gap:6px;flex-wrap:wrap}.wr-activity:empty{display:none}.wr-activity button{padding:10px 15px;background:#fff9edea;border-radius:20px;box-shadow:0 2px 8px #31223a22}.wr-activity .gem{width:42px;height:42px;padding:0;color:#2f2437;border:3px solid white;background:var(--gem);font-size:19px}.wr-activity .gem[aria-pressed=true]{outline:2px solid #514365}.wr-bowl{position:absolute;left:56%;top:67%;border:2px solid #fff!important;background:#fff5d9bf;width:46px;height:46px;border-radius:50%;font-size:25px}#scene-glow{position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 60% 75%,#ff99d080,transparent 70%);opacity:0}#scene-glow.active{animation:glow 3s ease-out}#scene{animation:arrive .55s ease-out}.welcome-reader.large #prose{font-size:28px}.welcome-reader.large .wr-book{min-height:680px}@keyframes glow{0%,100%{opacity:0}25%{opacity:1}}@keyframes arrive{from{opacity:.4}to{opacity:1}}[hidden]{display:none!important}@media(max-width:800px){.wr-header{height:58px}.wr-header span{display:none}.wr-heading{margin:10px 20px 18px}.wr-heading p{font-size:10px}.wr-book{width:90%;display:flex;flex-direction:column;min-height:0;border-radius:18px}.wr-book:after{display:none}.wr-picture{aspect-ratio:1;min-height:0;margin:10px 10px 0;border-radius:12px;align-self:auto}.wr-paper{padding:25px;align-self:stretch}.wr-page-top{font-size:11px}#prose{font-size:21px;line-height:1.55}.wr-bookmark{right:-14px;top:28px;width:48px}.wr-controls{position:sticky;bottom:0;z-index:10;width:100%;margin:22px 0 0;padding:12px 4%;background:#f9efdfed;backdrop-filter:blur(12px);gap:8px}.wr-controls>button{width:43px;height:43px;flex:none}.wr-audio-controls{gap:0}.wr-audio-controls button{font-size:13px;padding:11px 12px}.wr-grownups{margin-bottom:0}.wr-saved{font-size:11px}.welcome-reader.large #prose{font-size:27px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}#scene-glow.active{opacity:.5}}
.welcome-reader:before{z-index:0;pointer-events:none;background:#f5eddf66;backdrop-filter:blur(3px)}.welcome-reader>.wr-header,.welcome-reader>main{position:relative;z-index:1}.wr-heading h1{text-shadow:0 2px 15px #fff9ed}.wr-header button{white-space:nowrap;font-family:Fredoka;font-size:17px}.wr-picture>img{object-fit:contain;background:#f0e4d2}

.sb-magic-toggle{position:fixed;right:18px;bottom:14px;z-index:80;border:1px solid #d6b78366;background:#2c213eeb;color:#e8d6b7;border-radius:30px;padding:7px 12px;font:600 10px Nunito,sans-serif;min-height:34px;box-shadow:0 3px 12px #140c2933}.sb-reader-view .sb-magic-toggle{bottom:57px;right:25px}.sb-crystal-trail{position:fixed;inset:0;pointer-events:none;z-index:75;overflow:hidden;contain:strict}.sb-cursor-crystal{position:absolute;width:var(--size);height:calc(var(--size)*1.5);background:conic-gradient(from 30deg,#fff9f4,var(--gem),#fff8eb,var(--gem),#dcd5ff,#fff9f4);clip-path:polygon(50% 0,89% 27%,100% 66%,50% 100%,0 66%,11% 27%);filter:drop-shadow(0 0 3px var(--gem));animation:crystal-drift .85s ease-out forwards;will-change:transform,opacity}.sb-cursor-crystal:after{content:'';position:absolute;inset:18% 47% 15%;background:#ffffffc9;transform:rotate(8deg)}@keyframes crystal-drift{0%{transform:translate(-50%,-50%) rotate(var(--turn)) scale(.7);opacity:0}15%{opacity:.9}100%{transform:translate(calc(-50% + var(--dx)),calc(-50% + 25px)) rotate(calc(var(--turn) + 55deg)) scale(.1);opacity:0}}
.welcome-reader .sb-magic-toggle{font-size:12px;background:#fff9ed;color:#584367;bottom:16px;right:16px}@media(prefers-reduced-motion:reduce),(pointer:coarse){.sb-magic-toggle,.sb-crystal-trail{display:none!important}}
.wr-bookmark small{white-space:nowrap}@media(max-width:800px){.welcome-reader .sb-magic-toggle,.welcome-reader .sb-crystal-trail{display:none!important}}

@media(min-width:801px){.wr-picture{align-self:center;aspect-ratio:1}}.wr-activity.wr-find{inset:0;pointer-events:none;display:block}.wr-find .gem{position:absolute;translate:-50% -50%;pointer-events:auto;width:44px;height:44px;border:0;background:radial-gradient(circle,var(--gem),transparent 67%);color:white;text-shadow:0 0 5px var(--gem);box-shadow:none;opacity:.8}.wr-find .gem[aria-pressed=true]{background:#fff9eddd;color:#5e426b;outline:2px solid var(--gem);opacity:1}

/* Leave the toy shelf visible; open the book in the foreground below it. */
.welcome-reader{background-position:center top;background-size:100% auto;background-repeat:no-repeat;background-color:#edd5b7}
.welcome-reader:before{background:linear-gradient(transparent 0 24vw,#f5eddf33 40vw);backdrop-filter:none}
.wr-heading{padding-top:clamp(80px,16vw,260px);margin-bottom:24px}
.wr-book{box-shadow:0 7px 0 #eadbc3,0 12px 0 #b79da9,0 32px 55px #53382055;animation:book-off-shelf .7s cubic-bezier(.2,.7,.2,1) both}
.wr-audio-controls #listen[aria-pressed=false]{background:transparent;color:#745998}
@keyframes book-off-shelf{from{opacity:0;transform:translateY(-65px) scale(.88)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:800px){.wr-heading{padding-top:max(25px,calc(20vw - 58px))}.wr-book{animation-duration:.45s}}
@media(prefers-reduced-motion:reduce){.wr-book{animation:none}}

@media(min-width:801px){
.wr-book{height:auto;min-height:clamp(500px,62svh,720px)}
.wr-picture{height:auto;aspect-ratio:auto;align-self:stretch}
.wr-paper{height:auto;overflow:visible;align-self:stretch}
.welcome-reader.large .wr-book{min-height:clamp(560px,70svh,800px)}
.wr-controls{margin-top:20px}
}
