:root{--ink:#213b4d;--muted:#637481;--cream:#fff9ed;--paper:#fffef9;--peach:#ffddd0;--coral:#e87969;--teal:#287d83;--teal-dark:#12636b;--aqua:#d8eeea;--yellow:#f9cc69;--line:#e9e5db;--shadow:0 20px 55px rgba(31,63,70,.12);font-family:'Trebuchet MS',Verdana,Arial,sans-serif;color:var(--ink);background:var(--cream)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-width:320px}button,input,select,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit;text-decoration:none}img{max-width:100%}h1,h2,h3,p{margin-top:0}h1,h2,h3{letter-spacing:-.04em}h1{font-size:clamp(2.6rem,5.2vw,5.5rem);line-height:1.06}h2{font-size:clamp(2rem,3.5vw,3.4rem);line-height:1.15}h3{font-size:1.6rem}p{line-height:1.65}.wrap{width:min(1180px,calc(100% - 48px));margin-inline:auto}.skip{position:absolute;left:-9999px;top:8px;z-index:100;background:#fff;padding:14px}.skip:focus{left:8px}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:4px solid var(--coral);outline-offset:3px}
[hidden]{display:none!important}
.site-header{height:102px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:inline-flex;align-items:center;gap:12px;font-size:2rem;font-weight:900;letter-spacing:-.085em;line-height:.8;white-space:nowrap}.brand>span:last-child{display:flex;flex-direction:column}.brand small{font-size:.57rem;letter-spacing:.08em;font-weight:700;color:var(--muted);margin-top:10px}.brand-accent{color:var(--coral)}.brand-mark{width:49px;height:49px;border-radius:17px;background:var(--teal);color:#fff;display:grid;place-items:center;font-size:2rem;transform:rotate(-10deg);box-shadow:4px 5px 0 var(--aqua)}.site-header nav{display:flex;align-items:center;gap:34px;font-size:.94rem;font-weight:800}.nav-link{padding:10px 0}.nav-link.current{color:var(--teal)}.nav-link:hover{color:var(--coral)}.parent-link{border:2px solid var(--ink);border-radius:100px;padding:12px 20px;font-weight:800;background:#fff;transition:transform .2s,background .2s;white-space:nowrap}.parent-link:hover{transform:translateY(-2px);background:var(--aqua)}
.hero{display:grid;grid-template-columns:1fr 1fr;align-items:center;min-height:600px;gap:20px;padding:40px 0 85px}.eyebrow{font-size:.72rem;letter-spacing:.17em;font-weight:900;color:var(--teal);display:inline-flex;align-items:center;gap:9px}.eyebrow-dot{display:inline-block;width:8px;height:8px;border-radius:100%;background:var(--coral)}.hero h1{margin:26px 0 24px;max-width:630px}.hero h1 em{color:var(--teal);font-style:normal;position:relative;white-space:nowrap}.hero h1 em:after{content:'';position:absolute;height:8px;left:1%;right:2%;bottom:-13px;background:var(--yellow);border-radius:100%;transform:rotate(-2deg)}.hero-copy>p{max-width:480px;font-size:1.11rem;color:var(--muted);line-height:1.8;margin-bottom:30px}.hero-actions{display:flex;flex-wrap:wrap;align-items:center;gap:19px}.button{display:inline-flex;align-items:center;justify-content:center;gap:12px;border:0;border-radius:16px;padding:14px 23px;font-weight:900;font-size:.98rem;transition:transform .17s,box-shadow .17s;min-height:54px;white-space:normal;text-align:center}.button:hover{transform:translateY(-2px)}.button:active{transform:scale(.98)}.button-primary{color:white;background:var(--teal);box-shadow:0 7px 0 rgba(22,92,97,.16)}.button-primary:hover{background:var(--teal-dark)}.button-huge{padding:18px 25px;min-height:66px;font-size:1.04rem}.button-soft{background:var(--aqua);color:var(--teal-dark)}.button-light{background:#fff;color:var(--teal-dark)}.soft-label{font-size:.77rem;font-weight:700;color:var(--muted)}.hero-note{font-size:.96rem;font-weight:900;color:var(--coral);margin-top:48px;transform:rotate(-3deg);width:fit-content}.hero-note span{font-size:1.5rem}
.hero-art{min-height:545px;position:relative;display:grid;place-items:center}.blob{position:absolute;border-radius:50%;z-index:0}.blob-a{width:94%;aspect-ratio:1;background:#fbe8ce;top:2%;right:0;border-radius:46% 54% 52% 48%;transform:rotate(13deg)}.blob-b{width:46%;aspect-ratio:1;background:#d9ebe4;left:-3%;bottom:-4%}.spark{position:absolute;font-size:3rem;color:#eb9880;z-index:3}.spark-a{top:9%;left:10%}.spark-b{bottom:8%;right:0;color:var(--teal)}.book-hero{width:min(340px,67%);aspect-ratio:3/4.15;position:relative;z-index:1;transform:rotate(-7deg);filter:drop-shadow(18px 22px 13px rgba(35,50,46,.19))}.book-cover{position:absolute;inset:0;background:#fff9df;border:10px solid #fff;border-radius:10px 15px 15px 10px;overflow:hidden;box-shadow:inset 0 0 0 3px #deac8a}.book-cover>img{width:100%;height:100%;object-fit:cover}.cover-placeholder{position:absolute;inset:0;background:radial-gradient(ellipse at 50% 55%,#fff1be 0%,#f9d0aa 65%,#f4ad96 100%);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:22px;color:var(--teal-dark)}.cover-flowers{font-size:1.3rem;letter-spacing:.35em;color:var(--coral)}.cover-icon{font-size:6rem;line-height:1.5;filter:drop-shadow(3px 8px 2px #e9af83)}.cover-kicker{font-size:.61rem;letter-spacing:.2em;font-weight:900}.cover-placeholder strong{font-size:clamp(1.5rem,3vw,2.5rem);letter-spacing:-.05em;line-height:1.2;margin:7px 0}.cover-subtitle{font-size:.77rem;font-weight:800}.cover-footer{position:absolute;bottom:20px;background:var(--teal);color:white;padding:7px 13px;border-radius:50px;font-weight:800;font-size:.67rem}.book-spine{position:absolute;left:0;top:4%;bottom:4%;width:12px;background:rgba(132,68,36,.3);border-radius:5px}.art-sticker{position:absolute;right:2%;bottom:10%;width:140px;height:140px;border-radius:50%;background:var(--yellow);z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;font-weight:900;font-size:.95rem;line-height:1.3;transform:rotate(13deg);box-shadow:5px 5px 0 #e4af59}.art-sticker span{font-size:2rem;color:white}
.shelf-section{background:#fffdf7;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:85px 0 92px}.section-heading{text-align:center;margin-bottom:34px}.section-heading h2{margin:12px 0}.section-heading h2 span{color:var(--coral)}.section-heading p{color:var(--muted);font-size:1.04rem}.story-card{border:1px solid var(--line);background:#fff;border-radius:26px;padding:22px;display:flex;align-items:center;gap:28px;max-width:920px;margin:auto;box-shadow:0 10px 40px rgba(57,74,76,.06)}.story-thumb{width:138px;height:164px;flex-shrink:0;border-radius:14px;background:linear-gradient(160deg,#f9c8ad,#fdeabb);display:grid;place-items:center;font-size:4rem;position:relative;overflow:hidden}.story-thumb:before{content:'';position:absolute;border:2px dashed #fff9;inset:11px;border-radius:10px}.thumb-sun{position:absolute;top:8px;right:13px;color:#fff;font-size:1.5rem}.story-details{flex:1}.story-details h3{margin:13px 0 7px}.story-details p{color:var(--muted);margin:0 0 11px;max-width:390px;font-size:.91rem}.story-meta{display:flex;gap:16px;font-size:.77rem;color:var(--muted);font-weight:800}.pill{display:inline-flex;align-items:center;border-radius:100px;background:#e8f4ee;color:var(--teal-dark);font-size:.67rem;letter-spacing:.07em;font-weight:900;padding:7px 11px}.modes-section{padding-top:96px;padding-bottom:107px}.mode-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.mode-card{border:1.5px solid var(--line);border-radius:23px;background:#fff;min-height:213px;padding:24px 12px 20px;display:flex;flex-direction:column;align-items:center;gap:7px;text-align:center;transition:transform .18s,border-color .18s,box-shadow .18s}.mode-card:hover{transform:translateY(-5px);border-color:var(--teal);box-shadow:var(--shadow)}.mode-card strong{font-size:1.13rem}.mode-card small{font-size:.75rem;color:var(--muted)}.mode-illustration{width:85px;height:94px;display:flex;align-items:center;justify-content:center;gap:5px;margin-bottom:5px;position:relative}.mode-illustration i{width:45px;height:66px;background:#fff;display:block;border-radius:5px;border:3px solid var(--teal);box-shadow:inset 0 -17px #ffddc9,3px 5px 0 #cce8dd}.mode-illustration i:before{content:'';display:block;width:16px;height:16px;background:#f3b8a1;border-radius:50%;margin:12px auto}.double-illus i{width:36px;height:62px}.vertical-illus{flex-direction:column;gap:3px}.vertical-illus i{height:34px;width:52px}.vertical-illus i:before{margin:3px auto;width:10px;height:10px}.horizontal-illus{transform:rotate(-7deg)}.horizontal-illus i{width:36px;height:53px}.promise-section{background:#d6e9e4;padding:65px 0}.promise-inner{display:flex;gap:28px;align-items:center}.promise-icon{width:99px;height:99px;border-radius:38px;background:#fff;font-size:4rem;display:grid;place-items:center;color:var(--teal);flex-shrink:0}.promise-inner>div:nth-child(2){flex:1}.promise-inner h2{font-size:clamp(1.7rem,3vw,2.6rem);margin:11px 0}.promise-inner p{margin:0;max-width:600px;color:#4f7178}.site-footer{padding:50px 0;display:flex;justify-content:space-between;align-items:center;gap:25px;color:var(--muted);font-size:.82rem}.site-footer strong{font-size:1.5rem;letter-spacing:-.05em;color:var(--ink)}.site-footer strong span{color:var(--coral)}.site-footer p{margin:6px 0}.site-footer>div:nth-child(2){display:flex;gap:24px;font-weight:800}.site-footer a:hover{color:var(--teal)}
/* Reader */
.reader-page{background:#f8f5ed;min-height:100vh}.reader-header{height:77px;background:#fffdf8;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1180px)/2));gap:16px}.back-home{font-size:.84rem;font-weight:900;border-radius:40px;background:#e2f0ed;padding:12px 17px}.back-home span{font-size:1.18rem;margin-right:5px}.reader-name{text-align:center;display:flex;flex-direction:column;line-height:1.25}.reader-name strong{font-size:1.05rem}.reader-name small{font-size:.7rem;color:var(--muted)}.little-star{color:var(--coral);position:absolute;margin-left:-20px}.quiet-btn{background:#fff;border:1px solid var(--line);padding:11px 14px;border-radius:14px;font-weight:900;color:var(--ink)}.reader-main{width:min(1180px,calc(100% - 36px));margin:auto;padding:26px 0 45px}.reader-top{display:flex;justify-content:space-between;align-items:center;gap:16px}.reader-top h1{font-size:clamp(1.65rem,3vw,2.4rem);margin:7px 0 23px}.reader-top h1 span{color:var(--coral)}.progress-box{min-width:150px;width:220px;font-weight:900;font-size:.79rem;text-align:right}.progress-rail{height:10px;background:#e0e2dc;border-radius:100px;overflow:hidden;margin-top:9px}.progress-rail>div{height:100%;background:var(--teal);width:1%;transition:width .2s}.reader-toolbar{background:white;border:1px solid var(--line);border-radius:20px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;box-shadow:0 10px 35px #233b4c0a}.mode-switch{border:0;padding:0;margin:0;min-width:0}.mode-switch legend{font-size:.76rem;font-weight:900;margin-bottom:7px}.mode-options{display:flex;gap:6px;flex-wrap:wrap}.mode-button{border:1px solid transparent;border-radius:11px;background:#f3f5f2;color:var(--ink);padding:9px 13px;font-weight:900;font-size:.84rem;min-height:44px}.mode-button[aria-pressed=true]{background:var(--teal);color:white}.reader-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.reader-tools label{font-size:.72rem;font-weight:900}.reader-tools select{border-radius:10px;border:1px solid var(--line);padding:10px;background:white;min-width:8rem;max-width:100%;min-height:44px}.tiny-button{background:#f2f1ea;border:1px solid var(--line);border-radius:10px;padding:10px;font-weight:900;min-height:44px}.tiny-button[aria-pressed=true]{background:#ffe5bc}.reader-tip{font-size:.85rem;text-align:center;color:var(--muted);margin:18px 0 15px}.reader-stage{display:flex;align-items:center;gap:14px;justify-content:center;position:relative;min-height:380px}.page-arrow{border:0;border-radius:50%;background:#fff;color:var(--teal);width:62px;height:62px;display:grid;place-items:center;font-size:3rem;font-weight:700;flex-shrink:0;box-shadow:0 7px 20px #2e56601a;line-height:1}.page-arrow:disabled{opacity:.3;cursor:default}.reader-pages{width:min(880px,100%);max-height:min(75vh,900px);min-height:340px;display:flex;gap:9px;align-items:center;justify-content:center;outline:none}.comic-page{position:relative;flex:0 1 auto;min-width:0;max-width:100%;height:100%;display:flex;align-items:center;justify-content:center;border-radius:5px;overflow:hidden;background:#fff;box-shadow:0 12px 29px #2a46531f;border:1px solid #e3e3df;aspect-ratio:3/4.2}.comic-page img{width:100%;height:100%;object-fit:contain;display:block}.page-blank{position:absolute;inset:6%;border:3px dashed #e9e8e2;border-radius:16px;display:flex;flex-direction:column;gap:16px;align-items:center;justify-content:center;text-align:center;color:#a5b1b5;pointer-events:none;padding:16px;font-size:clamp(.8rem,2vw,1.2rem);font-weight:900}.page-blank span{font-size:3.7em;color:#e5d3bb}.page-number-badge{position:absolute;bottom:8px;right:12px;font-size:.72rem;color:var(--muted);font-weight:800;background:#ffffffd9;border-radius:20px;padding:3px 8px}.reader-pages.mode-single .comic-page,.reader-pages.mode-horizontal .comic-page{height:min(74vh,790px)}.reader-pages.mode-double .comic-page{height:min(62vh,730px);flex:0 1 50%}.reader-pages.mode-double{max-width:1020px}.reader-pages.mode-vertical{display:block;overflow-y:auto;max-height:75vh;scrollbar-width:thin;scroll-behavior:smooth;padding:7px 0}.reader-pages.mode-vertical .comic-page{width:min(550px,95%);height:auto;margin:0 auto 15px;aspect-ratio:3/4.2}.reader-pages.mode-horizontal{overflow-x:auto;justify-content:flex-start;scroll-snap-type:x mandatory;scroll-behavior:smooth;gap:14px;scrollbar-width:thin;padding:5px}.reader-pages.mode-horizontal .comic-page{flex:0 0 min(70vw,540px);scroll-snap-align:center}.reader-pages.zoomed .comic-page{max-height:none}.reader-pages.zoomed.mode-single,.reader-pages.zoomed.mode-horizontal{max-height:none;overflow:auto}.reader-pages.zoomed.mode-single .comic-page{height:min(110vh,1260px)}.reader-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px;max-width:680px;margin:22px auto 0}.reader-bottom>span{font-size:1rem;font-weight:900}.reader-help{text-align:center;font-size:.79rem;color:var(--muted);margin:25px auto}.reader-help span{color:var(--coral)}
/* Administrator */
.admin-header{height:95px;display:flex;align-items:center;justify-content:space-between}.admin-main{max-width:1000px;padding-bottom:80px}.admin-intro{margin:25px 0}.admin-intro h1{font-size:clamp(2.1rem,4.5vw,3.7rem);margin:10px 0}.admin-intro h1 span{font-size:.65em}.admin-intro p{color:var(--muted)}.notice{border-radius:16px;padding:18px 22px;background:#fff4d9;border-left:6px solid var(--yellow);font-size:.88rem;line-height:1.6;margin-bottom:24px}.admin-panel{background:white;border:1px solid var(--line);border-radius:24px;padding:27px;margin-bottom:22px;box-shadow:0 8px 32px #1f46500b}.admin-panel-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.admin-panel h2,.export-panel h2{font-size:1.7rem;margin:7px 0}.panel-emoji{font-size:2.5rem}.admin-fields{display:grid;gap:17px}.admin-fields label{display:grid;gap:8px;font-weight:900}.admin-fields input,.admin-fields textarea{padding:14px;border:1.5px solid #dcdedb;border-radius:12px;width:100%;background:#fffdf9;color:var(--ink)}.cover-admin-row{display:flex;align-items:center;gap:24px}.cover-admin-row img{width:145px;height:193px;border:2px dashed #d3d6d0;object-fit:cover;background:#fff;flex-shrink:0}.cover-admin-row p{font-size:.9rem;color:var(--muted)}.file-button{position:relative;cursor:pointer}.file-status{font-size:.78rem}.admin-actions{display:flex;gap:18px;align-items:center;flex-wrap:wrap;margin:20px 0}.page-admin-list{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;max-height:500px;overflow:auto;padding:4px}.page-admin-item{display:flex;gap:10px;align-items:center;border:1px solid var(--line);padding:10px;border-radius:12px;background:#fffdf9;min-width:0}.page-admin-item img{height:65px;width:45px;object-fit:contain;border:1px solid #e1e1dc;background:white}.page-admin-item>div{min-width:0;flex:1}.page-admin-item strong{font-size:.79rem;display:block}.page-admin-item small{font-size:.68rem;color:var(--muted);display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-admin-item label{display:inline-block;margin-top:5px;background:#d8eeea;color:var(--teal-dark);font-weight:900;font-size:.72rem;padding:7px 9px;border-radius:8px;cursor:pointer}.page-admin-item.edited{border-color:var(--teal);background:#edf8f4}.export-panel{background:var(--teal);color:white;padding:32px;border-radius:25px;display:flex;align-items:center;justify-content:space-between;gap:25px}.export-panel .eyebrow{color:#c5eadd}.export-panel h2{color:white}.export-panel p{color:#e1f1ec;font-size:.88rem;max-width:490px;margin:0}.export-panel button{background:var(--yellow);color:var(--ink);flex-shrink:0}.export-status{min-height:12px;margin-top:10px!important}.admin-footer-note{text-align:center;color:var(--muted);font-size:.8rem;margin-top:18px}.privacy{max-width:760px;padding:50px 0}.privacy h1{font-size:2.7rem}.privacy p{color:var(--muted)}.privacy .button{margin-top:20px}
/* Lumi, assistant local */
.lumi-launch{position:fixed;bottom:24px;right:24px;z-index:40;border:3px solid white;box-shadow:0 8px 25px #26455636;background:var(--teal);color:white;border-radius:100px;padding:8px 20px 8px 8px;display:flex;align-items:center;gap:10px;font-weight:900;min-height:66px}.lumi-launch img{width:49px;height:49px;border-radius:50%;background:#fff1c5}.lumi-panel{position:fixed;z-index:45;bottom:100px;right:23px;width:min(375px,calc(100vw - 30px));height:min(530px,calc(100dvh - 125px));background:#fffefb;border:1px solid var(--line);border-radius:22px;box-shadow:0 20px 70px #1a3b4970;display:none;flex-direction:column;overflow:hidden}.lumi-panel.open{display:flex}.lumi-head{display:flex;align-items:center;gap:10px;background:var(--teal);padding:12px 16px;color:white}.lumi-head img{width:45px;height:45px;border-radius:50%;background:#fff}.lumi-head div{flex:1}.lumi-head strong,.lumi-head small{display:block}.lumi-head small{color:#d6f2ed;font-size:.7rem}.lumi-head button{border:0;background:#ffffff2b;border-radius:50%;color:white;font-size:1.5rem;width:39px;height:39px}.lumi-chat{padding:17px;overflow-y:auto;flex:1;display:flex;flex-direction:column;gap:10px}.lumi-bubble{background:#e8f4ee;padding:12px 14px;border-radius:14px 14px 14px 3px;font-size:.88rem;line-height:1.5;max-width:91%;white-space:pre-line}.lumi-bubble.user{background:#fff0df;border-radius:14px 14px 3px 14px;align-self:flex-end}.lumi-suggestions{padding:9px 14px;display:flex;gap:8px;overflow-x:auto}.lumi-suggestions button{border:1px solid #cee5e0;border-radius:22px;background:#eff9f5;color:var(--teal-dark);padding:7px 10px;white-space:nowrap;font-size:.75rem;font-weight:800}.lumi-form{padding:12px;display:flex;border-top:1px solid var(--line);gap:8px}.lumi-form input{flex:1;min-width:0;border:1px solid #d5ded8;border-radius:12px;padding:12px;font-size:.83rem}.lumi-form button{background:var(--teal);color:white;border:0;border-radius:12px;padding:0 14px;font-weight:900}.lumi-disclosure{text-align:center;font-size:.64rem;color:var(--muted);padding:0 0 10px}
@media(max-width:960px){.hero{grid-template-columns:1fr 1fr;min-height:520px}.hero-art{min-height:410px}.art-sticker{width:100px;height:100px;font-size:.78rem}.site-header nav{gap:14px}.story-card{flex-wrap:wrap}.reader-toolbar{flex-direction:column;align-items:stretch}.reader-tools{justify-content:space-between}.reader-pages.mode-double .comic-page{height:min(55vh,580px)}}
@media(max-width:700px){.wrap{width:calc(100% - 32px)}.site-header{height:80px}.site-header nav{gap:9px}.site-header .nav-link{display:none}.site-header .parent-link{padding:10px 12px;font-size:.72rem}.brand{font-size:1.65rem}.brand-mark{width:41px;height:41px}.hero{grid-template-columns:1fr;padding:30px 0 50px;gap:0}.hero h1{font-size:clamp(2.9rem,11vw,4.3rem)}.hero-copy>p{font-size:1rem}.hero-art{min-height:420px;grid-row:2}.book-hero{width:min(265px,63%)}.blob-a{width:72%;top:10%;right:10%}.blob-b{width:40%;left:5%}.art-sticker{right:8%;bottom:5%}.hero-note{margin-top:23px}.shelf-section{padding:58px 0}.story-card{gap:15px}.story-thumb{width:98px;height:132px;font-size:2.7rem}.story-details{min-width:150px}.story-details h3{font-size:1.25rem}.story-details p{font-size:.8rem}.story-card>.button{width:100%}.mode-cards{grid-template-columns:repeat(2,1fr);gap:11px}.modes-section{padding-top:65px;padding-bottom:65px}.mode-card{padding:17px 7px;min-height:185px}.promise-inner{flex-wrap:wrap;gap:16px}.promise-icon{width:66px;height:66px;font-size:2.8rem}.promise-inner>div:nth-child(2){flex-basis:calc(100% - 90px)}.promise-inner>.button{margin-left:82px}.site-footer{flex-wrap:wrap}.site-footer>div:nth-child(2){gap:13px}.reader-header{padding:0 12px;height:70px}.back-home{font-size:.73rem;padding:11px}.quiet-btn span{display:none}.reader-main{width:calc(100% - 16px);padding-top:18px}.reader-top{padding:0 10px}.reader-top h1{font-size:1.6rem}.progress-box{width:123px;min-width:123px}.mode-options{display:grid;grid-template-columns:repeat(4,1fr)}.mode-button{padding:8px 4px;font-size:.82rem;display:flex;flex-direction:column;align-items:center;gap:3px}.mode-button span{font-size:.65rem}.reader-toolbar{padding:10px;gap:13px}.reader-tools{gap:6px}.reader-tools label{display:none}.tiny-button{font-size:.7rem;padding:7px}.reader-stage{gap:0}.page-arrow{position:absolute;z-index:3;width:48px;height:48px;font-size:2.4rem;background:#fffefbdf;box-shadow:0 3px 10px #2342}.page-arrow-prev{left:1px}.page-arrow-next{right:1px}.reader-pages{width:100%}.reader-pages.mode-single .comic-page,.reader-pages.mode-horizontal .comic-page{height:min(67vh,790px)}.reader-pages.mode-double .comic-page{height:min(55vh,590px)}.reader-pages.mode-double{gap:3px}.page-blank{font-size:.7rem;gap:4px;border-width:2px}.page-blank span{font-size:2.7em}.reader-bottom .button{padding:11px 15px;min-height:50px}.admin-panel{padding:18px}.page-admin-list{grid-template-columns:repeat(2,1fr)}.export-panel{flex-direction:column;align-items:stretch}.cover-admin-row{align-items:flex-start}.cover-admin-row img{width:100px;height:135px}.lumi-launch{bottom:14px;right:14px;min-height:60px;padding-right:12px}.lumi-launch img{width:43px;height:43px}.lumi-panel{bottom:83px;right:12px}}
@media(max-width:420px){.story-thumb{width:73px;height:106px}.story-meta{gap:8px;flex-wrap:wrap}.story-details h3{font-size:1.1rem}.story-details p{font-size:.73rem}.reader-name strong{font-size:.82rem}.page-admin-list{grid-template-columns:1fr}.hero h1 em{white-space:normal}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}
/* Icônes vectorielles : le SVG est intégré dans le code, jamais chargé comme une image. */
.svg-icon{display:inline-block;width:1em;height:1em;flex:0 0 auto;vertical-align:-.16em;stroke:currentColor}
[data-icon]{line-height:1;vertical-align:middle}
.brand-mark .svg-icon{width:29px;height:29px;stroke-width:2.2}
.parent-link,.back-home,.quiet-btn,.tiny-button,.button{align-items:center}
.parent-link [data-icon],.back-home [data-icon],.quiet-btn [data-icon],.tiny-button [data-icon]{display:inline-flex;align-items:center;justify-content:center}
.parent-link .svg-icon,.back-home .svg-icon,.quiet-btn .svg-icon,.tiny-button .svg-icon{width:18px;height:18px}
.button .svg-icon{width:21px;height:21px;stroke-width:2.2}
.hero-note [data-icon] .svg-icon{width:24px;height:24px}
.spark .svg-icon{width:48px;height:48px;stroke-width:1.6}
.cover-flowers .svg-icon{width:29px;height:29px}
.cover-icon .svg-icon{width:99px;height:99px;stroke-width:1.4}
.art-sticker [data-icon] .svg-icon{width:25px;height:25px}
.section-heading h2 .svg-icon{width:.72em;height:.72em}
.story-thumb>span:first-child .svg-icon{width:78px;height:78px;stroke-width:1.3}
.thumb-sun .svg-icon{width:26px;height:26px}
.story-meta>span{display:inline-flex;align-items:center;gap:5px}
.story-meta .svg-icon{width:16px;height:16px}
.mode-illustration .svg-icon{width:73px;height:73px;stroke-width:1.45;color:var(--teal)}
.mode-card:nth-child(2) .mode-illustration .svg-icon{width:83px;height:83px}
.promise-icon .svg-icon{width:66px;height:66px;stroke-width:1.5}
.site-footer strong .svg-icon{width:17px;height:17px;color:var(--coral)}
.reader-name .little-star .svg-icon{width:17px;height:17px}
.reader-top h1 .svg-icon{width:23px;height:23px}
.mode-button{display:inline-flex;align-items:center;justify-content:center;gap:7px}
.mode-button .svg-icon{width:23px;height:23px;stroke-width:1.9}
.page-arrow .svg-icon{width:30px;height:30px;stroke-width:2.8}
.page-blank [data-icon] .svg-icon{width:58px;height:58px}
.reader-help [data-icon] .svg-icon{width:16px;height:16px;color:var(--coral)}
.admin-intro h1 .svg-icon{width:.7em;height:.7em;color:var(--coral)}
.panel-emoji .svg-icon{width:42px;height:42px;color:var(--teal)}
.lumi-launch [data-icon] .svg-icon{width:17px;height:17px}
.lumi-head button .svg-icon{width:23px;height:23px}
.lumi-form button .svg-icon{width:19px;height:19px}
.privacy h1 .svg-icon{width:.7em;height:.7em;color:var(--teal)}
@media(max-width:700px){.mode-button{flex-direction:column;gap:4px}.mode-button .svg-icon{width:23px;height:23px}.promise-icon .svg-icon{width:45px;height:45px}.story-thumb>span:first-child .svg-icon{width:50px;height:50px}.page-blank [data-icon] .svg-icon{width:40px;height:40px}}
/* Reprise de lecture locale : grandes actions, faciles dès cinq ans. */
.resume-banner{margin-top:24px;padding:14px;border:2px solid #c5e6dd;border-radius:20px;background:#eff9f2;display:flex;align-items:center;gap:12px;flex-wrap:wrap;box-shadow:0 7px 19px #335d5710}
.resume-banner[hidden]{display:none!important}
.resume-symbol{width:44px;height:44px;flex-shrink:0;border-radius:13px;background:var(--teal);color:#fff;display:grid;place-items:center}
.resume-symbol .svg-icon{width:26px;height:26px}
.resume-description{flex:1;min-width:160px;display:grid;gap:4px}
.resume-description strong{font-size:.93rem}
.resume-description small{font-size:.77rem;color:var(--muted);line-height:1.3}
.resume-banner>.button{padding:10px 14px;min-height:46px;font-size:.8rem;border-radius:12px}
.resume-banner>.button .svg-icon{width:17px;height:17px}
.resume-restart{font-size:.8rem;text-decoration:underline;text-underline-offset:3px;color:var(--teal-dark);font-weight:900;padding:8px 0}
.reader-transfer{display:flex;justify-content:center;align-items:center;gap:12px;flex-wrap:wrap;margin:8px auto 20px;text-align:center}
.reader-transfer .tiny-button{background:#fff;border-color:#c4ddd6;color:var(--teal-dark);display:inline-flex;align-items:center;gap:6px}
.reader-transfer #copy-status{font-size:.78rem;color:var(--teal-dark);font-weight:800}
.other-tab-banner{border:1px solid #c5ded5;border-radius:16px;background:#eaf7f1;display:flex;justify-content:center;align-items:center;gap:13px;flex-wrap:wrap;padding:14px;margin:16px auto;width:min(650px,100%);font-size:.84rem;font-weight:800}
.other-tab-banner[hidden]{display:none!important}
.other-tab-banner .button{padding:8px 13px;min-height:42px;font-size:.8rem}
@media(max-width:700px){.resume-banner{margin-top:20px}.resume-banner>.button{order:3;flex:1}.resume-restart{order:4;flex:0 0 auto}.reader-transfer{padding:0 15px}}
/* Illustration de Lumi fournie par le créateur : affichage complet sans recadrage. */
/* L'aide flottante garde sa place dans le document : les dernières commandes
   peuvent remonter entièrement au-dessus du bouton, même sur petit écran. */
#lumi-root{height:calc(112px + env(safe-area-inset-bottom,0px))}
.lumi-launch{bottom:calc(24px + env(safe-area-inset-bottom,0px));right:calc(24px + env(safe-area-inset-right,0px))}
.lumi-panel{bottom:calc(112px + env(safe-area-inset-bottom,0px));right:calc(23px + env(safe-area-inset-right,0px));max-height:calc(100dvh - 137px - env(safe-area-inset-bottom,0px))}
@media(max-width:700px){
  .lumi-launch{bottom:calc(14px + env(safe-area-inset-bottom,0px));right:calc(14px + env(safe-area-inset-right,0px))}
  .lumi-panel{bottom:calc(102px + env(safe-area-inset-bottom,0px));right:calc(12px + env(safe-area-inset-right,0px));max-height:calc(100dvh - 127px - env(safe-area-inset-bottom,0px))}
}
.lumi-launch img,.lumi-head img{object-fit:contain;border-radius:13px;background:#fff;flex:0 0 auto}
.lumi-launch img{width:56px;height:56px}
.lumi-head img{width:56px;height:56px}
/* Bibliothèque extensible : autant de BD de 100 pages que souhaité. */
.book-list{display:grid;gap:18px;max-width:920px;margin:0 auto}
.book-list .story-card{max-width:none;width:100%;margin:0}
.story-thumb .story-cover{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:2}
.admin-fields select{padding:14px;border:1.5px solid #dcdedb;border-radius:12px;width:100%;background:#fffdf9;color:var(--ink);min-height:52px}
.add-book-box{border:2px dashed #b8d8ce;background:#f3faf6;border-radius:18px;padding:17px;display:flex;align-items:flex-end;gap:14px;flex-wrap:wrap}
.add-book-box label{flex:1;min-width:190px}
.add-book-box button{min-height:51px}
.add-book-box button .svg-icon{width:19px;height:19px}
@media(max-width:700px){.add-book-box{align-items:stretch}.add-book-box button{width:100%}.book-list .story-card{gap:15px}}
/* Logo d'Inkama : illustration de Lumi, identique aux favicons. */
.brand-mark{background:#fff;border:2px solid #e1eae5;box-shadow:4px 5px 0 #d7ebe5;transform:none;overflow:hidden}
.brand-mark img{width:100%;height:100%;object-fit:cover;display:block}
.footer-logo-icon{width:22px;height:22px;object-fit:contain;vertical-align:middle;margin-left:5px;border-radius:5px}
/* Sens de lecture : les boutons changent aussi de côté, y compris au toucher. */
body{min-width:0}
.brand>span:last-child{display:block}
.brand small{display:block}
.brand-mark{flex-shrink:0}
.hero-copy,.hero-art{min-width:0}
@media(min-width:701px){.hero-art .blob-a{right:max(24px,6%)}}
@media(max-width:540px){.cover-admin-row{flex-direction:column;align-items:flex-start}.cover-admin-row>div{width:100%;min-width:0}.cover-admin-row .button{max-width:100%}}
.file-status{overflow-wrap:anywhere}
@media(max-width:540px){.site-header{gap:8px}.site-header .brand{gap:7px;font-size:1.45rem}.site-header .brand-mark{width:36px;height:36px}.site-header .brand small{display:none}.site-header .parent-link{padding:9px 8px;font-size:.68rem}.hero h1 em{white-space:normal}.hero h1{font-size:clamp(2.3rem,11vw,3.4rem)}}
.reader-pages{scroll-behavior:auto;overflow-anchor:none}
.reader-pages.mode-vertical,.reader-pages.mode-horizontal{scroll-behavior:auto;overscroll-behavior:contain}
.reader-pages.zoomed.mode-single,.reader-pages.zoomed.mode-double,.reader-pages.zoomed.mode-vertical,.reader-pages.zoomed.mode-horizontal{max-height:75vh;overflow:auto;align-items:flex-start;justify-content:flex-start}
.reader-pages.zoomed.mode-single .comic-page,.reader-pages.zoomed.mode-double .comic-page,.reader-pages.zoomed.mode-horizontal .comic-page{flex:0 0 min(110vw,800px);width:min(110vw,800px);max-width:none;height:auto}
.reader-pages.zoomed.mode-vertical .comic-page{width:min(150vw,800px);max-width:none;height:auto}
.reader-stage:fullscreen,.reader-stage:-webkit-full-screen{background:#f8f5ed;padding:18px;width:100%;height:100%;overflow:auto}
.exit-fullscreen{position:absolute;top:12px;right:12px;z-index:8;background:#fff;border:2px solid var(--teal);color:var(--teal-dark)}
.reader-pages:focus-visible{outline:3px solid var(--teal);outline-offset:4px}
.file-picker-button{border:0;font:inherit;cursor:pointer}
.page-admin-item .file-picker-button{display:inline-block;margin-top:5px;background:#d8eeea;color:var(--teal-dark);font-weight:900;font-size:.72rem;padding:7px 9px;border-radius:8px;min-height:36px}
.admin-page button:disabled{opacity:.6;cursor:wait}
.admin-import-status{font-size:.85rem;overflow-wrap:anywhere;min-height:1.5em}
.admin-page .export-panel button{white-space:normal}
@media(max-width:380px){.page-admin-list{grid-template-columns:1fr}.brand small{font-size:.55rem}.hero-actions .button{padding:17px 14px;font-size:1rem}.reader-name strong{font-size:.85rem}}
@media(prefers-reduced-motion:reduce){html,*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.reader-stage.is-rtl,.reader-bottom.is-rtl{flex-direction:row-reverse}
.reader-name{flex:1;min-width:0}
.reader-name strong{display:block;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;max-height:2.5em;white-space:normal;overflow-wrap:anywhere;overflow:hidden}
.reader-header>.back-home,.reader-header>.quiet-btn{flex-shrink:0}
.story-details h3,.story-details p{overflow-wrap:anywhere}
.cover-placeholder strong{max-width:100%;display:block;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;max-height:4.8em;overflow-wrap:anywhere;overflow:hidden}
@media(max-width:700px){
  .reader-stage.is-rtl .page-arrow-prev{left:auto;right:1px}
  .reader-stage.is-rtl .page-arrow-next{right:auto;left:1px}
}
