.wrap[data-screen^="storybook"]{max-width:1100px;min-height:100svh;padding:0 12px calc(12px + env(safe-area-inset-bottom));background:#fcf8ed;font-family:Nunito,ui-rounded,'Trebuchet MS',sans-serif;animation:scene-fade .3s ease-out}
.book-shell{max-width:900px;margin:auto}.book-header{display:flex;align-items:center;gap:10px;padding:10px 0}.book-header button{min-width:60px;min-height:60px;height:60px;flex-shrink:0}.book-header .back-btn{width:60px;padding:17px}.book-header .round{width:60px;padding:18px}.book-header .star-bank{margin-left:auto;flex-shrink:0}.book-page-number{background:#eee5d1;border:2px solid white;border-radius:22px;min-width:60px;padding:8px;color:#667967;font-size:23px;font-weight:bold}.book-page-number span{font-size:14px;margin-left:3px;color:#788675}.book-page h1{font-size:clamp(18px,2.3vw,30px);line-height:1.25;text-align:center;margin:3px 0 12px;color:#466a5e}.book-scene{position:relative;isolation:isolate;width:100%;aspect-ratio:8/5;background:#fffaf0;border:3px solid white;border-radius:26px;box-shadow:0 5px 0 #d9d0bc55}.storybook-illustration{width:100%;height:100%;border-radius:23px}.sb-part{transform-box:fill-box;transform-origin:center}.book-hotspot{position:absolute;transform:translate(-50%,-50%);min-width:60px;min-height:60px;padding:0;background:transparent;border-radius:24px;border:2px solid transparent;user-select:none;z-index:2}.book-hotspot:active{transform:translate(-50%,-50%) scale(.97);background:#fff8}.book-hotspot:focus-visible,.keyboard-navigation .book-hotspot:focus{outline:4px solid #c58b2c;outline-offset:1px;background:#fff4}.book-hotspot>span{position:absolute;right:7%;bottom:8%;width:24px;height:24px;display:grid;place-items:center;background:#fff9d8e8;border:1px solid #c5ab6e;border-radius:50%;font-size:16px;color:#9f854d;box-shadow:0 2px 0 #85765b20;pointer-events:none}
.book-page-number{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}.book-page-number svg{width:27px;height:27px}.book-page-number span{font-size:12px;margin:0}
.book-sentences{background:#fffef8;border:1px solid #dedccb;border-radius:22px;padding:12px 14px;margin:14px 0 0}.book-sentences p{font-size:clamp(16px,2vw,24px);line-height:1.4;margin:0;color:#465f54}.book-sentences p[lang="ro"]{color:#47788a;margin-top:9px}.book-controls{position:sticky;bottom:0;z-index:5;background:#fcf8edf5;display:flex;gap:12px;justify-content:center;padding:12px 0 max(10px,env(safe-area-inset-bottom));margin-top:0;border-radius:20px}.book-controls button{width:64px;min-width:60px;min-height:60px;height:64px;padding:16px;border-radius:21px;flex-shrink:0}.book-controls button:disabled{opacity:.35}.book-controls .audio-btn{display:flex;align-items:center;justify-content:center;flex-direction:column;padding:8px;gap:3px;background:#e1ebdf}.book-controls .audio-btn svg{width:25px;height:25px}.book-controls .audio-btn span{font-size:11px;line-height:1.1;color:#50695a}.book-prev svg{transform:rotate(180deg)}.book-controls .next-btn svg{width:28px;height:28px}.book-prev{background:#e6e0d0}.book-end{text-align:center}.book-end-art{max-width:650px;margin:auto}.book-end h1{font-size:clamp(25px,3vw,40px);margin:16px 0 8px}.book-end p{font-size:20px;line-height:1.4;max-width:600px;margin:12px auto;color:#587361}.book-reward{display:flex;justify-content:center;align-items:center;gap:10px;font-size:32px;font-weight:bold;color:#a38040;margin:12px}.book-reward svg{width:42px;height:42px;fill:#f2d077}.book-end-controls{display:flex;align-items:center;justify-content:center;gap:20px;margin:18px 0}.book-end-controls .round{width:60px;height:60px;min-width:60px;min-height:60px;padding:17px}.book-end-controls .primary{min-height:60px}.storybook-cover .storybook-illustration{aspect-ratio:8/5;height:auto}.storybook-cover small{display:block;text-align:left;color:#547161;font-size:14px;margin:6px 40px 0 6px}.book-sticker .storybook-illustration{height:auto;aspect-ratio:8/5}.book-sticker small{line-height:1.3}
.sb-after-transform,.sb-gifts,.sb-mirror-face,.sb-smoke,.sb-water{opacity:0;transition:opacity .3s}.sb-effect-pumpkin .sb-before-transform{opacity:0}.sb-effect-pumpkin .sb-after-transform,.sb-effect-chest .sb-gifts,.sb-effect-mirror .sb-mirror-face,.sb-effect-house .sb-smoke,.sb-effect-well .sb-water{opacity:1}.sb-chest-lid{transform-origin:50% 100%;transform-box:fill-box;transition:transform .35s}.sb-effect-chest .sb-chest-lid{transform:translateY(-72px) rotate(-9deg)}.sb-effect-bread [data-book-part="bread"]{opacity:.2;transition:opacity .4s}.sb-effect-clock .sb-clock-hands{transform:rotate(22deg);transform-box:fill-box;transform-origin:bottom}.sb-effect-apple [data-book-part="apple"]{filter:drop-shadow(0 0 10px #f7d793)}.book-particles{position:absolute;inset:0;overflow:hidden;border-radius:24px;pointer-events:none;z-index:3}.book-particles i{position:absolute;font-style:normal;font-size:26px;color:#cf9e65;animation:book-particle 1s var(--delay) ease-out both;--dx:0px;--dy:-50px}.sb-effect-couple .book-particles i,.sb-effect-girl .book-particles i{color:#d8909b}@keyframes book-particle{0%{opacity:0;transform:translate(-50%,-50%) scale(.4)}20%{opacity:1}100%{opacity:0;transform:translate(calc(-50% + var(--dx)),calc(-50% + var(--dy))) scale(1.15)}}
@media(max-width:360px){.book-header{gap:7px}.book-header .star-bank{font-size:17px;padding:8px}.book-page-number{padding:7px;min-width:60px}.book-controls{gap:10px}.book-controls button{width:60px;height:60px;padding:15px}.book-controls .audio-btn{padding:7px}.book-sentences{padding:10px 12px}.book-sentences p{font-size:15px}.book-page h1{font-size:17px;margin-bottom:8px}}
@media(min-width:900px){body:has(.book-shell){background:#334e49}#app:has(.book-shell){min-height:100svh;display:flex;align-items:center;padding:20px 0}.wrap[data-screen^="storybook"]{width:calc(100% - 48px);min-height:0;border:3px solid #fff;border-radius:32px;padding:0 24px 12px}.book-page{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:18px 22px;align-items:center}.book-page h1{grid-column:1/-1;margin:0}.book-sentences{margin:0}.book-controls{grid-column:1/-1;position:static}.book-end-art{max-width:540px}.book-hotspot>span{width:30px;height:30px;font-size:19px}}
@media(min-width:1500px){.wrap[data-screen^="storybook"]{max-width:1800px}.book-shell{max-width:1700px}.book-header{padding:20px 0}.book-header button,.book-controls button{min-height:80px;min-width:80px;width:80px;height:80px}.book-header .back-btn,.book-header .round{width:80px;padding:24px}.book-page-number{font-size:30px}.book-page h1{font-size:36px}.book-sentences p{font-size:28px}.book-sentences{padding:24px}.book-end-art{max-width:720px}}
@media(min-width:560px) and (max-height:500px){.book-header{padding:6px 0}.book-page{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:8px 12px}.book-page h1{grid-column:1/-1;font-size:17px;margin:0}.book-scene{max-width:350px;margin:auto}.book-sentences{margin:0;padding:8px 10px}.book-sentences p{font-size:14px;line-height:1.3}.book-sentences p[lang="ro"]{margin-top:5px}.book-controls{grid-column:1/-1;position:static;padding:6px 0}.book-end-art{max-width:250px}.book-end{display:grid;grid-template-columns:1fr 1fr;gap:6px 10px;align-items:center}.book-end-art{grid-row:1/5}.book-end h1{font-size:24px;margin:0}.book-end p{font-size:15px;margin:0}.book-end-controls{margin:0;gap:12px}.book-reward{font-size:24px;margin:0}.book-reward svg{width:30px;height:30px}}
@media(prefers-reduced-motion:reduce){.book-particles i{animation:none!important;display:none}.sb-part,.sb-chest-lid{transition:none!important}.wrap[data-screen^="storybook"]{animation:none!important}}
.sb-arms,.sb-tail{transform-box:fill-box;transform-origin:center}.sb-effect-clock .sb-clock-hands{transform:none}.sb-effect-dwarf .sb-tear{opacity:0;transition:opacity .5s}.sb-effect-oven .sb-fire{filter:drop-shadow(0 0 12px #edbd70)}
@media(min-width:560px) and (max-height:500px){.book-scene{max-width:260px}.book-sentences{max-height:162px;overflow:auto}}
