@font-face{font-family:Fredoka;src:url('../fonts/fredoka.ttf') format('truetype');font-style:normal;font-weight:300 700;font-display:swap}
@font-face{font-family:Quicksand;src:url('../fonts/quicksand.ttf') format('truetype');font-style:normal;font-weight:300 700;font-display:swap}
:root{--sky:#f0f7ff;--blue:#1e60e6;--blue-dark:#164ebf;--red:#ed354b;--red-dark:#c72439;--yellow:#ffbe1a;--ink:#172d50;--muted:#4a6281;--paper:#fff;--line:#d8e7fa;--radius:30px;--shadow:0 8px 0 #d7e6f8,0 18px 38px #244c7a0b;--round:Fredoka,ui-rounded,'Arial Rounded MT Bold',sans-serif;--body:Quicksand,ui-rounded,'Segoe UI',sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--sky);color:var(--ink);font-family:var(--body);font-weight:600;line-height:1.5;min-width:300px}button,input,a{-webkit-tap-highlight-color:transparent}button,input{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.42;box-shadow:none;transform:none}a{color:inherit}img{display:block;max-width:100%}svg{width:24px;height:24px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}button svg,.button svg{width:28px;height:28px}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-family:var(--round);font-weight:550;line-height:1.13;letter-spacing:.005em}button:focus-visible,a:focus-visible,input:focus-visible{outline:4px solid var(--ink);outline-offset:5px}h2[tabindex]:focus{outline:none}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.skip-link{position:fixed;left:20px;top:-100px;z-index:100;background:white;padding:16px;border-radius:18px}.skip-link:focus{top:20px}.sprite{position:absolute;width:0;height:0;overflow:hidden}.shell{width:min(1220px,calc(100% - 64px));margin-inline:auto}
.sky-shapes{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:-1}.sky-shapes:before,.sky-shapes:after{content:'';position:absolute;border-radius:50%;background:#dbeeff;animation:float 12s ease-in-out infinite}.sky-shapes:before{width:440px;height:440px;right:-180px;top:180px}.sky-shapes:after{width:240px;height:240px;left:-130px;bottom:80px;background:#e3efff;animation-delay:-6s}@keyframes float{50%{transform:translateY(-24px)}}
.site-header{margin-block:28px 0;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:13px 20px 13px 15px;background:#fff;border:2px solid var(--line);border-radius:26px;box-shadow:0 5px 0 #e0ebfa}.brand{display:inline-flex;align-items:center;gap:12px;text-decoration:none;font-family:var(--round);font-size:24px;line-height:1.05}.brand-mark{width:56px;height:56px;background:var(--blue);color:white;border-radius:18px;display:grid;place-items:center;transform:rotate(-5deg);box-shadow:0 4px 0 var(--blue-dark)}.brand-mark svg{width:34px;height:34px}.brand small{display:block;font:600 12px var(--body);letter-spacing:.13em;text-transform:uppercase;color:var(--muted);margin-top:5px}.header-note{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--muted)}.header-note svg{color:var(--red)}
.eyebrow{display:inline-flex;align-items:center;gap:8px;color:var(--blue);font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.14em;margin-bottom:16px}.eyebrow svg{width:19px;height:19px}.library-intro{padding:68px 0 34px;position:relative;max-width:850px}.library-intro h1{font-size:clamp(40px,5vw,64px);margin-bottom:18px;max-width:740px}.library-intro h1 span{color:var(--blue);position:relative;white-space:nowrap}.library-intro h1 span:after{content:'';position:absolute;left:2px;right:0;bottom:-6px;border-bottom:6px solid var(--yellow);border-radius:50%;transform:rotate(-2deg)}.library-intro p{font-size:19px;color:var(--muted);max-width:650px;margin-bottom:0}.library-heading{display:flex;align-items:center;gap:12px;margin:18px 0 20px}.library-heading h2{font-size:26px;margin:0}.count-badge{display:grid;place-items:center;background:#dceaff;color:var(--blue-dark);border-radius:50%;width:32px;height:32px;font-size:14px}.book-list{list-style:none;margin:0;padding:0}.book-card{display:grid;grid-template-columns:1.05fr 1fr;background:white;border:2px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden;max-width:1100px}.book-art{position:relative;padding:18px;display:block;overflow:hidden;background:#e3efff}.book-art img{width:100%;height:100%;aspect-ratio:3/2;object-fit:cover;border-radius:20px;transition:transform .25s}.book-art:hover img{transform:scale(1.025)}.audio-badge{position:absolute;top:34px;left:34px;display:flex;align-items:center;gap:7px;border:1px solid #ffffff80;background:white;padding:9px 13px;border-radius:999px;color:var(--blue-dark);font-size:13px;box-shadow:0 4px 12px #0f2b5030}.audio-badge svg{width:19px;height:19px}.book-info{padding:35px 36px 32px;align-self:center}.book-info h3{font-size:clamp(28px,3vw,38px);margin:0 0 16px}.book-info>p{color:var(--muted);line-height:1.65;margin-bottom:22px}.book-meta{display:flex;gap:9px 20px;flex-wrap:wrap;font-size:13px;color:var(--muted);margin:0 0 23px}.book-meta span{display:flex;align-items:center;gap:7px}.book-meta svg{width:18px;height:18px;color:var(--blue)}.button{border:0;min-height:60px;border-radius:20px;padding:14px 23px;display:inline-flex;align-items:center;justify-content:center;gap:12px;text-decoration:none;font-family:var(--round);font-size:21px;line-height:1.1;font-weight:500;transition:transform .15s,box-shadow .15s;background:var(--blue);color:white;box-shadow:0 5px 0 var(--blue-dark)}.button:hover{transform:translateY(-2px)}.button:active{transform:translateY(4px);box-shadow:0 1px 0 var(--blue-dark)}.button-red{background:var(--red);box-shadow:0 5px 0 var(--red-dark)}.button-red:active{box-shadow:0 1px 0 var(--red-dark)}.library-note{margin:31px 0 0;display:flex;gap:10px;align-items:center;color:var(--muted);font-size:14px}.library-note svg{color:var(--blue);width:21px}.site-footer{margin:54px auto 24px;padding-top:20px;border-top:1px solid #d9e7f6;display:flex;justify-content:space-between;gap:20px;font-size:12px;color:var(--muted)}
/* Reader */
.reader-shell{width:min(1380px,calc(100% - 48px));margin-inline:auto}.reader-header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:20px;margin-top:18px;padding:10px 14px;border-radius:24px}.library-back{display:flex;align-items:center;gap:9px;min-height:56px;text-decoration:none;font-family:var(--round);font-size:20px;padding:6px 10px;border-radius:16px;color:var(--blue)}.library-back svg{width:31px;height:31px}.reader-name{text-align:center;font-family:var(--round);font-size:20px;line-height:1.2}.header-actions{display:flex;gap:9px}.icon-button{display:inline-grid;place-items:center;min-width:56px;height:56px;border:2px solid #d8e7fa;border-radius:18px;background:white;color:var(--blue);box-shadow:0 3px 0 #e0eafa;transition:transform .15s}.icon-button:hover{background:#edf5ff;transform:translateY(-2px)}.icon-button:active{transform:translateY(3px);box-shadow:none}.page-path{position:relative;display:flex;justify-content:center;gap:8px;margin:17px auto 13px;padding:4px 5px 8px;overflow-x:auto;scrollbar-width:thin}.page-star{width:56px;height:56px;min-width:56px;position:relative;border:0;background:transparent;padding:0;color:#cbdcf1;border-radius:50%}.page-star:before{content:'';position:absolute;top:26px;left:42px;width:30px;border-top:3px dotted #bfd4ef;z-index:-1}.page-star:last-child:before{display:none}.page-star svg{width:50px;height:50px;fill:#e2edfb;stroke:#b4cde9;stroke-width:1.3;transition:transform .2s}.page-star span{position:absolute;inset:0;display:grid;place-items:center;padding-top:2px;color:#3f5c7d;font-size:14px;font-weight:700}.page-star:hover svg{transform:scale(1.1)}.page-star[aria-current] svg{fill:var(--blue);stroke:var(--blue-dark)}.page-star[aria-current] span{color:white}.page-star.is-read:not([aria-current]) svg{fill:#ffdb73;stroke:#e4a90e}.page-star.is-read:not([aria-current]) span{color:#5a4000}
.reader{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:stretch;touch-action:pan-y pinch-zoom}.illustration{margin:0;min-width:0;display:flex;flex-direction:column;padding:13px;background:white;border:2px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.image-window{flex:1;display:grid;place-items:center;background:#eaf2fc;border-radius:20px;overflow:hidden;min-height:350px}.image-window img{width:100%;height:100%;max-height:720px;object-fit:contain;border-radius:17px}.illustration figcaption{text-align:center;font-family:var(--round);color:var(--muted);font-size:15px;padding:11px 8px 0}.story-paper{min-width:0;position:relative;border:2px solid var(--line);border-radius:var(--radius);padding:30px 34px 32px;background:#fffefa;box-shadow:var(--shadow);overflow:hidden}.story-paper:after{content:'';position:absolute;left:20px;right:20px;bottom:5px;border-bottom:1px solid #e7e0cf;border-radius:50%;pointer-events:none}.page-label{font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--blue);margin-bottom:12px}.story-paper h2{font-size:30px;margin-bottom:20px}.story-text{font-size:24px;line-height:1.53;font-weight:600;letter-spacing:-.018em}.story-text p{margin:0 0 .6em}.story-text p:last-child{margin-bottom:0}.is-cover .story-paper{display:flex;flex-direction:column;justify-content:center;padding-block:50px}.is-cover .story-paper h2{font-size:clamp(35px,3.5vw,50px);margin:8px 0 24px;color:var(--blue)}.is-cover .story-text{color:var(--muted);font-size:24px}.cover-detail{display:none}.is-cover .cover-detail{display:flex;gap:9px;align-items:center;color:var(--red);font-family:var(--round);font-size:18px;margin-top:26px}.cover-detail svg{width:28px;height:28px}.choices{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:24px}.choice{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-height:118px;border:2px solid #d5e3ff;box-shadow:0 5px 0 #dbe7fb;background:#edf4ff;border-radius:22px;padding:15px 9px;font-family:var(--round);font-size:19px;line-height:1.2;color:var(--blue-dark);transition:transform .15s}.choice:nth-child(2){background:#fff1ed;border-color:#ffddd5;color:#ab2b3d;box-shadow:0 5px 0 #f8ddd8}.choice svg{width:37px;height:37px;stroke-width:1.7}.choice:hover{transform:translateY(-3px)}.choice:active{transform:translateY(3px);box-shadow:none}.text-button{display:flex;align-items:center;justify-content:center;gap:10px;border:0;background:transparent;min-height:56px;padding:10px 14px;color:var(--blue);font-weight:700;font-size:15px;border-radius:16px;text-decoration:underline;text-underline-offset:4px}.text-button:hover{background:#eaf2ff}.ending-controls{display:flex;flex-wrap:wrap;gap:4px;margin-top:16px}.ending-controls .button{font-size:17px;min-height:56px;padding:12px 16px}
.player{margin:24px auto 0;padding:17px 23px 14px;background:white;border:2px solid var(--line);border-radius:28px;box-shadow:0 6px 0 #dce9f9;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:16px 24px;align-items:center}.page-nav{width:72px;height:72px;border:0;border-radius:23px;display:grid;place-items:center;background:var(--blue);color:white;box-shadow:0 5px 0 var(--blue-dark);transition:transform .15s}.page-nav svg{width:35px;height:35px}.page-nav.next{background:var(--red);box-shadow:0 5px 0 var(--red-dark)}.page-nav:hover:not(:disabled){transform:translateY(-3px)}.page-nav:active:not(:disabled){transform:translateY(4px);box-shadow:none}.nudge{animation:nudge 3s ease-in-out infinite}@keyframes nudge{0%,85%,100%{transform:translateX(0)}90%{transform:translateX(4px)}95%{transform:translateX(-1px)}}.audio-center{min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr);gap:20px;align-items:center}.play-button{width:84px;height:84px;border-radius:50%;background:var(--red);color:#fff;border:4px solid white;box-shadow:0 5px 0 #c72439,0 0 0 2px #ffdce1;display:grid;place-items:center;transition:transform .15s}.play-button svg{width:34px;height:34px;fill:currentColor;stroke-width:1.6}.play-button:hover{transform:scale(1.04)}.play-button:active{transform:translateY(4px);box-shadow:0 1px 0 #c72439,0 0 0 2px #ffdce1}.play-button[aria-busy=true]{opacity:.75}.audio-track{min-width:0}.track-top{display:flex;align-items:center;justify-content:space-between;gap:16px;font-family:var(--round);font-size:19px}.track-title{display:flex;gap:10px;align-items:center}.wave{height:22px;display:flex;align-items:center;gap:3px;color:var(--red)}.wave i{height:5px;width:4px;border-radius:4px;background:currentColor}.wave i:nth-child(2),.wave i:nth-child(4){height:12px}.wave i:nth-child(3){height:19px}.is-playing .wave i{animation:wave .7s ease-in-out infinite alternate}.is-playing .wave i:nth-child(2){animation-delay:-.3s}.is-playing .wave i:nth-child(3){animation-delay:-.5s}.is-playing .wave i:nth-child(4){animation-delay:-.1s}@keyframes wave{to{transform:scaleY(.35)}}.time{font:600 12px var(--body);font-variant-numeric:tabular-nums;color:var(--muted);white-space:nowrap}.timeline{position:relative;height:56px;--progress:0%;margin:0 3px}.track-line{position:absolute;inset:25px 0 auto;height:7px;background:#e5edfa;border-radius:10px;overflow:hidden}.track-line:before{content:'';display:block;height:100%;width:var(--progress);background:var(--blue);border-radius:10px}.track-car{position:absolute;top:10px;left:clamp(17px,var(--progress),calc(100% - 17px));transform:translateX(-50%);color:var(--red);width:34px;height:34px;background:#fff;border-radius:50%;pointer-events:none;display:grid;place-items:center}.track-car svg{width:30px;height:30px;fill:#fff4f4}#seek{display:block;position:absolute;inset:0;width:100%;height:56px;margin:0;opacity:0;cursor:pointer}#seek:disabled{cursor:default}.timeline:has(input:focus-visible){outline:3px solid var(--blue);border-radius:12px;outline-offset:1px}.reader-settings{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:5px 18px;color:var(--muted);font-size:13px;margin:13px 0 0}.auto-toggle{min-height:56px;display:flex;align-items:center;gap:10px;cursor:pointer;padding:8px 5px;border-radius:12px}.auto-toggle input{appearance:none;flex:none;width:42px;height:26px;background:#c0d0e5;border-radius:20px;position:relative;margin:0;cursor:pointer;transition:background .2s}.auto-toggle input:before{content:'';position:absolute;width:20px;height:20px;top:3px;left:3px;border-radius:50%;background:white;box-shadow:0 1px 4px #0002;transition:transform .2s}.auto-toggle input:checked{background:var(--blue)}.auto-toggle input:checked:before{transform:translateX(16px)}.reader-settings .text-button{font-size:13px;color:var(--muted)}.read-hint{text-align:center;font-size:13px;color:var(--muted);margin:1px 0 0}.status{min-height:24px;margin:6px 0 0;text-align:center;color:var(--blue-dark);font-size:13px}.keyboard-hint{text-align:center;font-size:11px;color:var(--muted);margin:16px 0 28px}.keyboard-hint kbd{font:600 11px var(--body);padding:2px 6px;background:#e2ecfa;border:1px solid #cddcf0;border-radius:5px}.completion{margin:22px auto 0;padding:28px;background:#fff7da;border:2px solid #f4d56b;border-radius:28px;text-align:center}.completion>svg{width:47px;height:47px;color:#996400}.completion h2{font-size:32px;margin:8px 0 12px}.completion p{margin-bottom:20px;color:var(--muted)}.completion .button{font-size:20px}.confetti{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:30}.confetti i{position:absolute;left:var(--x);top:-30px;width:10px;height:17px;border-radius:3px;background:var(--color);animation:confetti 1.8s var(--delay) ease-in forwards}@keyframes confetti{to{transform:translateY(110vh) rotate(var(--turn));opacity:.2}}
@media(min-width:1500px){.reader-shell{width:min(1460px,calc(100% - 64px))}.story-paper{padding:34px 40px}.story-text{font-size:25px}}
@media(max-width:1000px){.shell{width:calc(100% - 40px)}.reader-shell{width:calc(100% - 32px)}.book-info{padding:25px}.library-intro{padding-top:48px}.reader{gap:14px}.story-paper{padding:24px}.story-paper h2{font-size:27px}.story-text{font-size:24px;line-height:1.48}.image-window{min-height:320px}.reader-name{font-size:17px}.reader-header{gap:8px}.library-back span{display:none}.page-path{gap:3px}.reader-settings{margin-top:14px}}
@media(max-width:760px){.site-header{margin-top:16px}.brand{font-size:21px}.header-note span{display:none}.library-intro{padding-top:40px}.library-intro h1{font-size:43px}.library-intro p{font-size:17px}.library-heading{margin-top:4px}.book-card{grid-template-columns:1fr;max-width:560px}.book-art{padding:13px}.book-info{padding:22px 25px 28px}.book-info h3{font-size:32px}.audio-badge{top:27px;left:27px}.site-footer{flex-direction:column;gap:6px;margin-top:36px}.reader-header{padding:8px;margin-top:12px;gap:5px}.reader-name{font-size:17px;padding-inline:5px}.header-actions{gap:6px}.icon-button{min-width:56px;width:56px}.library-back{padding-inline:6px;min-width:42px}.reader{grid-template-columns:1fr;gap:15px}.image-window{min-height:0;aspect-ratio:3/2}.image-window img{height:100%;object-fit:contain}.illustration{padding:10px;border-radius:25px}.illustration figcaption{padding-top:7px;font-size:13px}.story-paper{padding:26px;border-radius:25px}.story-paper h2{font-size:29px}.story-text{font-size:24px;line-height:1.55}.is-cover .story-paper{padding-block:32px}.is-cover .story-paper h2{font-size:38px}.page-path{justify-content:flex-start;max-width:100%;margin-top:13px;gap:2px;padding-inline:2px}.page-star{min-width:56px}.player{grid-template-columns:56px minmax(0,1fr) 56px;padding:14px 12px;gap:12px;border-radius:25px;margin-top:20px}.page-nav{width:56px;height:64px;border-radius:18px}.page-nav svg{width:29px;height:29px}.audio-center{grid-template-columns:1fr;justify-items:center;gap:8px}.play-button{width:78px;height:78px}.audio-track{width:100%;min-width:0}.track-top{justify-content:center}.track-title{font-size:16px}.wave{display:none}.time{position:absolute;bottom:-3px;left:50%;transform:translateX(-50%);font-size:11px}.audio-track{position:relative;padding-bottom:12px}.timeline{margin:0;height:46px}.track-line{top:21px}.track-car{top:6px}#seek{height:46px}.reader-settings{column-gap:8px;justify-content:space-between}.auto-toggle{font-size:12px}.reader-settings .text-button{padding:8px;font-size:12px}.read-hint{font-size:12px;padding:5px 8px}.keyboard-hint{display:none}.status{margin-bottom:18px}.completion{padding:25px 20px}.completion h2{font-size:28px}}
@media(max-width:390px){.shell{width:calc(100% - 28px)}.reader-shell{width:calc(100% - 20px)}.brand{font-size:19px}.brand-mark{width:49px;height:49px}.library-intro h1{font-size:38px}.reader-name{font-size:14px}.reader-header{gap:1px}.header-actions{gap:5px}.story-paper{padding:23px 20px}.story-text{font-size:24px}.choices{gap:9px}.choice{font-size:17px}.reader-settings{justify-content:center;gap:0 12px}.player{gap:9px;padding-inline:10px}.track-title{font-size:14px}}
@media(hover:none){.keyboard-hint{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.confetti{display:none}}
