.story-detail{max-width:1200px}.story-cover{max-width:250px}.story-pages.flip-reader{background:#eee8db;border-radius:14px;padding:24px;margin:32px 0;outline-offset:5px;scroll-margin-top:120px}.book-controls{display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap;margin-bottom:22px}.book-controls .button{min-height:44px;font:600 16px 'Nunito',sans-serif}.book-controls button:disabled{opacity:.5;cursor:default}.book-progress{font-size:16px;min-width:145px;text-align:center}.book-spread{display:grid;grid-template-columns:1fr 1fr;gap:3px;max-width:1000px;margin:auto;perspective:1800px;touch-action:pan-y}.book-spread.single-page{grid-template-columns:minmax(0,500px);justify-content:center}.story-pages .book-spread figure{margin:0;min-width:0;align-self:start;background:#fffdf8;box-shadow:0 8px 20px #293c3b20;border-radius:4px;overflow:hidden}.story-pages .book-spread img{width:100%;height:auto;display:block}.story-pages .book-spread details{padding:0 16px;font-size:17px}.story-pages .book-spread summary{min-height:44px;display:list-item;padding:12px 0}.book-hint{font-size:15px;text-align:center;color:#515e55;margin:20px auto 0;max-width:650px}.turn-forward{animation:turn-forward .42s ease-out}.turn-back{animation:turn-back .42s ease-out}@keyframes turn-forward{from{opacity:.5;transform:rotateY(-9deg) translateX(12px)}to{opacity:1;transform:none}}@keyframes turn-back{from{opacity:.5;transform:rotateY(9deg) translateX(-12px)}to{opacity:1;transform:none}}.flip-reader:fullscreen,.flip-reader.reading-expanded{background:#fcf8ef;overflow-y:auto;border-radius:0;padding:24px;margin:0;width:100%;height:100dvh}.flip-reader.reading-expanded{position:fixed;inset:0;z-index:100}.flip-reader:fullscreen .book-spread,.flip-reader.reading-expanded .book-spread{max-width:calc((100dvh - 175px)*1.6)}body:has(.reading-expanded){overflow:hidden}body:has(.reading-expanded) .little-walk-lane{visibility:hidden}@media(max-width:899px){.story-pages.flip-reader{padding:14px;margin:24px -8px}.book-spread{grid-template-columns:1fr}.book-controls{gap:8px}.book-controls .button{padding:9px 12px}.book-full{flex-basis:100%;justify-content:center;max-width:220px}.book-spread.single-page{grid-template-columns:minmax(0,500px)}.book-progress{min-width:120px}.flip-reader:fullscreen .book-spread,.flip-reader.reading-expanded .book-spread{max-width:500px}.book-hint{font-size:14px}}@media(prefers-reduced-motion:reduce){.turn-forward,.turn-back{animation:none}}

.book-close{display:none}@media(max-width:899px){body:has(.flip-reader) header nav{padding:8px 5%;gap:4px}body:has(.flip-reader) header .links{gap:3px 12px}.flip-reader.mobile-reading{position:fixed;inset:0;z-index:200;margin:0;padding:8px 10px calc(8px + env(safe-area-inset-bottom));width:100%;height:100dvh;background:#fcf8ef;border-radius:0;display:flex;flex-direction:column;overflow:hidden}.book-reading{overflow:hidden}.book-reading header,.book-reading .little-walk-lane{visibility:hidden}.mobile-reading .book-controls{display:grid;grid-template-columns:1fr auto 1fr;gap:6px;margin:0 0 8px;flex:none}.mobile-reading .book-controls .button{font-size:15px;min-height:44px;padding:7px 10px;justify-content:center}.mobile-reading .book-progress{min-width:0;font-size:14px}.mobile-reading .book-full{display:none}.mobile-reading .book-close{display:inline-flex;grid-column:1/-1;justify-self:end;min-height:36px;padding:3px 10px}.mobile-reading .book-spread,.mobile-reading .book-spread.single-page{display:flex;justify-content:center;align-items:stretch;flex:1;min-height:0;width:100%;max-width:none;margin:0}.mobile-reading .book-spread figure{display:flex;flex-direction:column;align-items:center;background:transparent;box-shadow:none;overflow:auto;width:100%;min-height:0}.mobile-reading .book-spread figure[hidden]{display:none}.mobile-reading .book-spread img{flex:1;min-height:0;max-height:calc(100dvh - 160px - env(safe-area-inset-bottom));width:100%;object-fit:contain}.mobile-reading .book-spread details{flex:none;width:100%;max-height:40dvh;overflow:auto;background:#fffdf8}.mobile-reading .book-spread details[open]{flex:1}.mobile-reading .book-hint{display:none}.mobile-reading .book-spread summary{padding:8px 0;min-height:40px;font-size:15px}}
/* Viewport reader: artwork above a single thumb-friendly control row. */
body:has(.flip-reader) header{position:static}.book-toolbar{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin-bottom:8px}.book-toolbar button{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;background:#fcf8ef;border:1px solid #bbc4b6;border-radius:6px;color:#293c3b;font:16px 'Nunito',sans-serif;padding:6px 12px}.book-controls{display:grid;grid-template-columns:minmax(80px,1fr) auto minmax(80px,1fr);gap:10px;margin:14px 0 0;width:100%;flex-wrap:nowrap}.book-controls .button{justify-content:center;min-width:0}.book-progress{min-width:0;white-space:nowrap}.book-end{text-align:center;max-width:650px;margin:auto;padding:24px;overflow:auto}.book-end .button{display:flex;margin:16px auto;justify-content:center;max-width:330px}.flip-reader.reading-expanded,.flip-reader:fullscreen{position:fixed;inset:0;z-index:200;box-sizing:border-box;width:100%;height:100dvh;margin:0;padding:8px 12px calc(10px + env(safe-area-inset-bottom));display:flex;flex-direction:column;overflow:hidden;background:#fcf8ef;border-radius:0}.reading-expanded .book-toolbar,:fullscreen .book-toolbar{flex:none;margin:0 0 6px}.reading-expanded .book-controls,:fullscreen .book-controls{flex:none;order:5;margin:8px auto 0;max-width:900px}.reading-expanded .book-spread,.reading-expanded .book-spread.single-page,:fullscreen .book-spread,:fullscreen .book-spread.single-page{flex:1;min-height:0;max-width:1100px;width:100%;margin:0 auto;align-items:stretch}.reading-expanded .book-spread figure,:fullscreen .book-spread figure{display:flex;flex-direction:column;min-height:0;height:100%;overflow:hidden;align-self:stretch}.reading-expanded .book-spread figure[hidden],:fullscreen .book-spread figure[hidden]{display:none}.reading-expanded .book-spread img,:fullscreen .book-spread img{flex:1;min-height:0;width:100%;height:0;object-fit:contain}.reading-expanded .book-spread details,:fullscreen .book-spread details{flex:none;max-height:38dvh;overflow:auto}.reading-expanded .book-spread summary,:fullscreen .book-spread summary{font-size:15px;min-height:40px;padding:8px 0}.book-reading{overflow:hidden}.book-reading header,.book-reading .little-walk-lane{visibility:hidden}.reading-expanded .book-end,:fullscreen .book-end{flex:1;min-height:0}@media(max-width:899px){.book-controls{gap:6px}.book-controls .button{font-size:15px;padding:8px;min-height:44px}.book-progress{font-size:14px}.reading-expanded .book-spread.single-page{grid-template-columns:minmax(0,1fr)}.book-toolbar .book-full{flex-basis:auto;display:inline-flex}.book-toolbar .book-close{display:inline-flex}}[hidden]{display:none!important}
/* Optional reflection after each story. All choices stay in memory only. */
.book-end.moment{width:100%;max-width:690px;padding:16px 20px;box-sizing:border-box;text-align:center;overflow:auto}.moment h2{font-size:clamp(24px,4vw,32px);line-height:1.25;margin:18px 0 12px;outline-offset:5px}.moment p{font-size:17px;line-height:1.5;margin:10px auto;max-width:550px}.moment .moment-kicker{font-size:14px;color:#52645b;margin-top:0}.moment-steps{display:flex;justify-content:center;gap:6px;list-style:none;padding:0;flex-wrap:wrap;margin:12px 0}.moment-steps li{font-size:14px;border-radius:20px;padding:7px 11px;background:#eee8db;color:#52645b}.moment-steps [aria-current]{background:#dce8d1;color:#293c3b;font-weight:700}.moment-feelings{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:20px auto;max-width:540px}.moment-feeling{font:16px 'Nunito',sans-serif;color:#293c3b;border:2px solid transparent;background:#f2ecdf;border-radius:14px;min-height:94px;padding:9px 5px;cursor:pointer}.moment-feeling svg{display:block;width:42px;height:42px;margin:0 auto 6px}.moment-feeling[aria-pressed=true]{border-color:#446646;background:#e5eddc}.moment-feeling[aria-pressed=true] span{font-weight:700}.moment button:focus-visible,.moment a:focus-visible{outline:3px solid #446646;outline-offset:3px}.moment-prompt{background:#e4eef4;border-radius:14px;padding:24px;font-size:18px;line-height:1.6;margin:24px auto;max-width:500px}.moment .moment-note{font-size:15px;color:#52645b}.moment-nav{display:grid;grid-template-columns:1fr auto 1fr;gap:12px;align-items:center;margin:22px auto 8px;max-width:530px}.moment .moment-nav .button{margin:0;min-height:44px;max-width:none}.moment-text{display:inline-flex;align-items:center;justify-content:center;background:none;border:0;color:#3e5c45;text-decoration:underline;font:16px 'Nunito',sans-serif;min-height:44px;padding:8px;cursor:pointer}.moment .moment-private{font-size:14px;color:#52645b}.moment-breath{height:150px;display:grid;place-items:center}.moment-breath span{width:90px;height:90px;border-radius:50%;background:#dce8d1;box-shadow:0 0 0 14px #eaf0e2;animation:moment-breathe 8s ease-in-out infinite}.moment-reassure{font-weight:700}.moment-finish{max-width:540px;margin:auto}.moment-finish .moment-text{display:flex;margin:auto}.moment-finish .button{min-height:44px}@keyframes moment-breathe{0%,100%{transform:scale(.8)}50%{transform:scale(1.12)}}@media(max-width:600px){.book-end.moment{padding:10px 5px}.moment-feelings{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:14px auto}.moment-feeling{font-size:15px;min-height:86px}.moment p{font-size:16px}.moment-steps{gap:4px}.moment-steps li{font-size:14px;padding:6px 8px}.moment-nav{gap:8px;margin-top:14px}.moment h2{margin-top:14px}.moment-breath{height:130px}}@media(prefers-reduced-motion:reduce){.moment-breath span{animation:none}}
