:root{color-scheme:dark;--ink:#edf2f7;--muted:#a5b6cc;--navy:#06182a;--gold:#f1c875;--blue:#f1c875;--paper:#06182a;--line:#294358;font-size:16px}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 80% 0,#123452 0,transparent 48%),linear-gradient(180deg,#091e32,#041321);color:var(--ink);font-family:Arial,Helvetica,sans-serif;line-height:1.6;min-height:100vh}button,a{touch-action:manipulation;-webkit-tap-highlight-color:transparent}a{color:inherit}button{font:inherit;cursor:pointer;border:0}button:disabled{cursor:default}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--gold);outline-offset:5px}.icon{height:24px;width:24px;flex-shrink:0;vertical-align:middle}header{height:92px;display:flex;align-items:center;justify-content:space-between;max-width:1280px;padding:0 44px;margin:auto;gap:30px;border-bottom:1px solid #35516980}.brand{display:flex;align-items:center;gap:12px;font-family:Georgia,serif;font-size:32px;letter-spacing:5px;font-weight:400;text-decoration:none;color:#ffe4a5}.brand-icon{width:48px;height:48px;color:var(--gold)}.nav{display:flex;align-items:center;gap:30px;font-size:.9rem}.nav a{text-decoration:none;padding:12px 0;color:#b9c9dc}.nav a:hover,.nav a.active{color:var(--gold)}.nav a.active{border-bottom:2px solid var(--gold)}.lang{border:1px solid var(--line);padding:7px 14px!important;border-radius:25px}.wrap{max-width:1200px;margin:auto;padding:30px 32px 60px}.eyebrow{text-transform:uppercase;letter-spacing:.17em;font-weight:500;font-size:.78rem;margin:0 0 12px;color:#c7d5e3}.intro{text-align:center;margin:14px 0 32px}.intro .eyebrow{color:var(--gold);font-size:.75rem}.intro h1{margin-bottom:12px}h1,h2,h3,p{margin-top:0}h1,h2,h3{line-height:1.15}h1,h2,h3{font-family:Georgia,'Times New Roman',serif;font-weight:400}h1{font-size:clamp(2.1rem,4vw,3.3rem)}h1 em{font-style:normal;color:var(--gold)}h2{font-size:2.25rem}h3{font-size:1.5rem}p{margin-bottom:1.1em}.muted{color:var(--muted)}.intro p{margin-bottom:0}.hero{position:relative;isolation:isolate;min-height:490px;display:flex;align-items:flex-end;border:1px solid #bca16b75;border-radius:20px;overflow:hidden;box-shadow:0 24px 55px #0004;background:#102a42}.hero-image{position:absolute;inset:0;z-index:-2}.hero-image img{height:100%;width:100%;object-fit:cover;object-position:center 45%}.hero:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#031221ed 0,#041424bc 32%,#04142405 75%),linear-gradient(0deg,#041323b3,transparent 75%)}.hero-content{padding:42px;max-width:650px}.hero-content h2{font-size:clamp(2.6rem,4.5vw,4rem);margin:12px 0 18px;text-shadow:0 2px 16px #0005}.hero-content .eyebrow{color:#f1dcaf}.hero-content p{color:#dbe3ec;font-size:1rem;line-height:1.7}.hero-badge{position:absolute;right:24px;top:22px;font-size:.75rem;letter-spacing:.08em;text-transform:uppercase;border:1px solid #d4bc8570;background:#092139bd;backdrop-filter:blur(8px);border-radius:24px;padding:7px 14px;color:#ffdf9b}.meta{display:flex;gap:18px;flex-wrap:wrap;font-size:.87rem;color:#d1deed;margin-bottom:18px}.meta span+span:before{content:'·';padding-right:18px;color:var(--gold)}.primary,.secondary,.text-btn{display:inline-flex;align-items:center;justify-content:center;gap:18px;min-height:48px;border-radius:28px;text-decoration:none;padding:12px 23px;font-size:.94rem;font-weight:600;transition:background .2s,transform .2s}.primary{background:linear-gradient(135deg,#ffe1a0,#edbc62);color:#122132;box-shadow:0 6px 22px #edbd5b18}.primary:hover{background:#ffe5ae;transform:translateY(-2px)}.secondary{background:#0a2337a6;border:1px solid #6b7c8d;color:#edf1f5}.secondary:hover{background:#19384f;border-color:var(--gold)}.text-btn{padding:8px 0;color:var(--gold);background:none}.text-btn:disabled{color:#728397;opacity:.5}.btn-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.resume-label{font-size:.8rem!important;color:#b8c9dc!important;margin:18px 0 0!important}.upcoming-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:24px}.upcoming{position:relative;isolation:isolate;overflow:hidden;border:1px solid #4c617875;border-radius:15px;min-height:245px;display:flex;align-items:flex-end;background:#102b42}.upcoming>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;transition:transform .5s}.upcoming:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,#031321f2,#071b2d18 100%)}.upcoming>div{padding:25px;width:100%}.upcoming:hover>img{transform:scale(1.025)}.upcoming h3{font-size:1.75rem;margin:5px 0 12px}.upcoming .eyebrow{font-size:.74rem;margin:0}.badge{display:inline-flex;gap:7px;align-items:center;border:1px solid #b4985c;padding:3px 10px;border-radius:20px;font-size:.78rem;color:#f4d696}.badge .icon{width:15px;height:15px}.badge.light{color:#d6c292;border-color:#816d465f}.paris{background:radial-gradient(ellipse at 85% 15%,#7a4b424d,transparent 70%),linear-gradient(130deg,#13334d,#17263b)}.era{position:absolute;right:25px;top:-14px;font:italic clamp(5rem,10vw,9rem) Georgia,serif;color:#f0c77e25;letter-spacing:-.07em;z-index:-1}.journal{display:flex;align-items:center;gap:24px;text-decoration:none;background:linear-gradient(110deg,#142d43,#0b2034);border:1px solid #40576c;border-radius:14px;padding:24px 28px;margin-top:25px;transition:border-color .2s}.journal:hover{border-color:var(--gold)}.journal>.icon{width:38px;height:38px;color:var(--gold)}.journal strong{font:1.3rem Georgia,serif}.journal small{display:block;font-size:.78rem;color:var(--muted);margin-top:4px}.medals{display:flex;gap:6px;margin-left:auto;flex-wrap:wrap}.medal{width:28px;height:28px;border-radius:50%;border:1px solid #425269;background:#061828;display:inline-flex;justify-content:center;align-items:center;color:#607388}.medal.found{background:linear-gradient(120deg,#edca7e,#987139);color:#15263c;border-color:#e5c887;box-shadow:0 0 12px #e6b86924}.journal-count{font-size:1.05rem;white-space:nowrap;text-align:right;color:#ffdd9e}.save-note{display:flex;justify-content:space-between;gap:20px;margin-top:25px;color:#90a6bd;font-size:.78rem}.save-note span:last-child{font-style:italic;color:#c7ab76}.tiny{font-size:.8rem}footer{border-top:1px solid #30495c70;padding:26px 32px;color:#8ba2b9;display:flex;justify-content:space-between;gap:20px;font-size:.8rem;max-width:1200px;margin:auto}footer a{text-underline-offset:4px}.reader-wrap{max-width:1200px;margin:auto;padding:22px 32px 30px}.reader-top{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px;color:#aec0d4;font-size:.85rem}.reader-top a{text-decoration:none}.reader-top a:hover{color:var(--gold)}.reader-layout{overflow:hidden;border:1px solid #536b8055;border-radius:18px;background:linear-gradient(180deg,#0b2338,#061a2e)}.scene-art{position:relative;background:#031222}.scene-art>img{display:block;width:100%;height:clamp(280px,36vw,470px);object-fit:cover;object-position:50% 42%;transition:opacity .2s}.scene-art:after{content:'';position:absolute;inset:50% 0 0;background:linear-gradient(0deg,#091e33,transparent);pointer-events:none}.art-caption{position:absolute;bottom:26px;left:32px;right:32px;display:flex;justify-content:space-between;color:#f0ddb7;font-size:.74rem;letter-spacing:.12em;text-transform:uppercase;z-index:1;pointer-events:none}.art-switch{position:absolute;top:18px;right:18px;display:flex;gap:8px;z-index:2}.art-switch button{border:1px solid #9aabbc7a;border-radius:7px;background:#092337;padding:2px;width:52px;height:38px;opacity:.6}.art-switch button.selected{border:2px solid var(--gold);opacity:1}.art-switch img{width:100%;height:100%;object-fit:cover;border-radius:3px}.reader{max-width:950px;margin:auto;padding:12px 46px 42px;scroll-margin-top:20px}.reader h1{text-align:center;font-size:clamp(2rem,3.1vw,2.8rem);margin:0 0 22px}.story-text{font-family:Georgia,'Times New Roman',serif;font-size:1.18rem;line-height:1.85;color:#e1e8ef;max-width:740px;margin:auto;min-height:130px}.story-text.large{font-size:1.45rem}.story-text p{margin-bottom:.9em}.page-controls{display:flex;justify-content:space-between;align-items:center;gap:18px;border-top:1px solid #3b52685c;padding:15px 0 5px;max-width:740px;margin:24px auto 0}.page-controls>span{font-size:.8rem;color:#94adc4}.page-controls .text-btn{font-size:.85rem}.page-controls .primary{min-height:42px;font-size:.85rem;padding:9px 20px}.page-complete{color:var(--gold)!important;font-size:1.5rem!important}.choices{margin-top:26px;text-align:center}.choices h2{font-size:1.7rem;margin:0 0 17px}.choices h2:before{content:'— ✦ —';display:block;color:var(--gold);font-size:.85rem;margin-bottom:13px}.choice-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(205px,1fr));gap:13px}.choice-grid.single{max-width:430px;margin:auto}.choice{display:flex;flex-direction:column;align-items:center;gap:14px;position:relative;width:100%;text-align:center;padding:23px 16px;border:1px solid #bca16b;border-radius:13px;color:#f5f0e4;background:linear-gradient(140deg,#102d43aa,#041521);min-height:156px;transition:transform .2s,background .2s,box-shadow .2s}.choice:hover:not(:disabled){transform:translateY(-3px);background:linear-gradient(140deg,#204358,#0a2439);box-shadow:0 0 22px #e3bc6520}.choice:disabled{color:#8296a9;border-color:#3b5064;background:#081b2b}.choice-icon{width:40px;height:40px;color:var(--gold)}.choice:disabled .choice-icon{color:#64798d;width:28px;height:28px}.choice-label{font-family:Georgia,serif;font-size:1.1rem;line-height:1.45}.choice small{display:block;font-family:Arial,sans-serif;font-size:.78rem;margin-top:9px;color:#9fb0c2}.choice-arrow{font-size:.9rem;color:var(--gold);margin-top:auto}.single .choice{min-height:70px;flex-direction:row;justify-content:center}.single .choice-icon{width:25px;height:25px}.single .choice-arrow{margin-top:0}.adventure-dock{position:sticky;bottom:15px;z-index:4;width:min(640px,calc(100% - 32px));margin:12px auto 30px;display:grid;grid-template-columns:repeat(4,1fr);padding:10px 6px;background:#061b2fef;border:1px solid #36516a;border-radius:18px;backdrop-filter:blur(18px);box-shadow:0 10px 35px #0005}.adventure-dock a,.adventure-dock button{min-width:0;display:flex;align-items:center;flex-direction:column;gap:5px;text-decoration:none;background:none;color:#b5cbe0;font-size:.8rem;padding:6px;border-right:1px solid #3d577052}.adventure-dock>*:last-child{border-right:0}.adventure-dock>*:hover{color:var(--gold)}.adventure-dock .icon{width:28px;height:28px}.adventure-dock>button:first-child{color:var(--gold)}.adventure-dock b{background:#29435b;border-radius:10px;font-size:.67rem;padding:2px 5px}.inventory{padding:20px;border:1px solid var(--line);border-radius:10px;margin-top:24px;background:#0b263c}.inventory summary,.editorial summary{cursor:pointer;font-size:.9rem}.inventory ul{padding-left:20px;font-size:.9rem}.inventory li{padding:5px 0}.editorial{margin:16px 0;padding:15px;border:1px solid #304b62;border-radius:8px;color:var(--muted);font-size:.875rem}.editorial p{margin:12px 0}.ending-banner{border:1px solid #c9a45680;background:#b9913720;padding:16px 22px;border-radius:12px;margin:0 auto 24px;display:flex;align-items:center;justify-content:center;gap:15px;color:var(--gold);font-size:.85rem}.ending-banner>.icon{width:35px;height:35px}.count{font:2.8rem Georgia,serif;color:var(--gold)}.ending-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.ending-card{border:1px solid #b79a6380;border-radius:14px;overflow:hidden;background:#102a40}.ending-card img{width:100%;height:150px;object-fit:cover}.ending-card .inside{padding:20px}.ending-card h3{font:1.25rem/1.35 Georgia,serif;margin:14px 0}.ending-card.locked{background:radial-gradient(circle,#163048,#091c30);border-color:#2d455c;min-height:185px;display:flex;align-items:center;justify-content:center;text-align:center}.locked-number{color:#8195ac;font:2.1rem Georgia,serif;border:1px solid #53667c;width:64px;height:64px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;box-shadow:inset 0 0 0 5px #10263c}.progress{height:5px;width:200px;max-width:100%;background:#263c52;border-radius:8px;overflow:hidden;margin:10px auto}.progress span{display:block;background:var(--gold);height:100%}.content-page{max-width:820px;margin:auto;padding:50px 30px 70px}.content-page h2{font-size:1.7rem;margin-top:35px;color:#f3d497}.content-page p,.content-page li{line-height:1.8}.path-list{list-style:none;padding:0;display:grid;gap:10px;margin-top:30px}.path-list li{border-left:2px solid var(--gold);padding:14px 20px;background:#112b41;border-radius:0 8px 8px 0}.path-list span{font-size:.8rem;color:var(--muted);margin-right:15px}.warning{border:1px solid #c4a16b;padding:16px;background:#47341a;border-radius:8px;margin-bottom:24px}.loading{text-align:center;padding:100px 30px}.skip{position:fixed;top:-100px;background:var(--navy);z-index:10;padding:12px}.skip:focus{top:10px}#status:not(:empty){position:fixed;bottom:100px;left:50%;transform:translateX(-50%);padding:14px 24px;max-width:90vw;background:#183b54;color:white;border:1px solid var(--line);border-radius:8px;z-index:10}.install{font-size:.9rem;padding:12px 18px;border:1px solid var(--line);background:#193b53;color:var(--ink);border-radius:7px}dialog{border:1px solid #6c8296;border-radius:20px;max-width:520px;width:calc(100% - 36px);padding:30px;color:var(--ink);background:linear-gradient(130deg,#17364f,#071c30);box-shadow:0 30px 100px #0008}dialog::backdrop{background:#010916bd;backdrop-filter:blur(7px)}dialog h2{font-size:1.9rem;color:#ffe0a1}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px}.dialog-head h2{margin:0}.close-dialog{background:#19374d;color:#e5c587;border:1px solid #6b7f8e;border-radius:50%;width:40px;height:40px;font-size:24px;flex-shrink:0}.bag-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.bag-item{display:flex;align-items:center;flex-direction:column;gap:10px;padding:20px 14px;border:1px solid #476076;border-radius:12px;text-align:center;background:#071e32}.bag-item .icon{width:32px;height:32px;color:var(--gold)}.bag-item span{font-size:.88rem}.bag-item small{font-size:.74rem;color:#91a9bd}.compass-display{text-align:center;margin:30px}.compass-display>.icon{width:100px;height:100px;color:var(--gold);filter:drop-shadow(0 0 18px #f1c87555);animation:compass-breathe 4s ease-in-out infinite}.settings-save{margin-top:25px;font-size:.9rem}.hero-detail{margin-bottom:32px}.detail-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:25px;padding:26px 0}.detail-grid h3{font-size:1.3rem;color:#f4d9a7}.detail-grid p{color:var(--muted);font-size:.95rem}.backlink{display:inline-block;margin-bottom:24px;text-decoration:none;color:var(--muted);font-size:.9rem}.review-end{color:var(--muted);font-size:.85rem;text-align:center;margin-bottom:20px}.reader-layout{animation:appear .3s ease-out}@keyframes appear{from{opacity:.75}to{opacity:1}}@keyframes compass-breathe{50%{filter:drop-shadow(0 0 25px #f1c87588)}}
@media(max-width:900px){header{padding:0 25px}.nav{gap:20px}.wrap{padding:25px}.hero{min-height:440px}.hero-content{padding:32px}.hero-content h2{font-size:3.2rem}.medals{max-width:165px;gap:5px}.medal{width:23px;height:23px}.journal{gap:17px;padding:23px}.upcoming h3{font-size:1.5rem}.reader-wrap{padding:20px 24px}.reader{padding:15px 30px 34px}.ending-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:650px){header{height:75px;padding:0 18px;gap:15px}.brand{font-size:25px;letter-spacing:3px;gap:8px}.brand-icon{width:34px;height:34px}.nav{gap:14px;font-size:.78rem}.nav .parents-link,.nav .catalog-link{display:none}.nav .lang{padding:6px 10px!important}.wrap{padding:20px 16px 36px}.intro{margin:12px 0 25px}.intro h1{font-size:2.1rem;margin:10px 0 12px}.intro>p:last-child{font-size:.88rem;padding:0 12px}.hero{min-height:480px;border-radius:16px;align-items:flex-end}.hero:after{background:linear-gradient(0deg,#041425 0,#061c31ec 15%,#0417279e 47%,#071c3022 100%)}.hero-image img{object-position:57% center}.hero-content{padding:25px 22px;width:100%}.hero-content h2{font-size:2.55rem;margin:12px 0}.hero-content .eyebrow{font-size:.68rem}.hero-content p{font-size:.89rem;line-height:1.6}.meta{gap:10px;font-size:.76rem;margin-bottom:13px}.meta span+span:before{padding-right:10px}.hero-badge{top:15px;right:15px;font-size:.65rem}.hero .btn-row{gap:10px}.hero .primary{width:100%;font-size:.9rem;padding:12px 17px}.hero .secondary{padding:6px 0;min-height:30px;border:0;background:none;color:#e7ce9f}.upcoming-grid{gap:12px;margin-top:16px}.upcoming{min-height:205px;border-radius:12px}.upcoming>div{padding:16px 13px}.upcoming h3{font-size:1.3rem;line-height:1.25;margin:7px 0 12px}.upcoming .eyebrow{font-size:.65rem;letter-spacing:.07em}.era{font-size:4.9rem;right:8px;top:8px}.badge{font-size:.7rem}.journal{padding:18px 15px;gap:14px;flex-wrap:wrap;margin-top:18px}.journal>.icon{width:28px;height:28px}.journal strong{font-size:1.15rem}.journal small{font-size:.7rem}.journal-count{margin-left:auto;font-size:.95rem}.medals{order:4;max-width:none;margin:0;justify-content:center;width:100%;gap:5px}.medal{width:21px;height:21px}.save-note,footer{flex-direction:column;gap:8px;font-size:.72rem}.save-note{margin-top:20px}footer{padding:22px 20px}.reader-wrap{padding:14px 12px 10px}.reader-top{margin-bottom:15px;font-size:.76rem;gap:10px}.reader-layout{border-radius:12px}.scene-art>img{height:260px;object-position:50% 40%}.art-caption{left:18px;right:18px;bottom:22px;font-size:.64rem;letter-spacing:.08em}.art-caption span:first-child{display:none}.art-switch{top:12px;right:12px;gap:5px}.art-switch button{width:40px;height:31px}.reader{padding:6px 20px 28px}.reader h1{font-size:2rem;margin-bottom:20px}.story-text{font-size:1.13rem;line-height:1.8;min-height:0}.story-text.large{font-size:1.35rem}.page-controls{gap:8px;margin-top:22px}.page-controls>.text-btn{font-size:.75rem}.page-controls>span{font-size:.7rem}.page-controls .primary{font-size:.76rem;padding:9px 12px;min-height:40px;gap:7px}.choices h2{font-size:1.45rem}.choice-grid{grid-template-columns:1fr;gap:10px}.choice{flex-direction:row;min-height:80px;padding:17px 14px;gap:13px;text-align:left}.choice-icon{width:29px;height:29px}.choice-label{font-size:1.07rem;flex:1}.choice-arrow{margin-top:0}.choice small{font-size:.75rem}.adventure-dock{bottom:8px;width:calc(100% - 24px);margin-bottom:20px;padding:8px 4px;border-radius:14px}.adventure-dock a,.adventure-dock button{font-size:.72rem;gap:4px}.adventure-dock .icon{width:24px;height:24px}.ending-grid{grid-template-columns:repeat(2,1fr);gap:12px}.ending-card img{height:110px}.ending-card .inside{padding:15px}.ending-card h3{font-size:1.1rem}.ending-card.locked{min-height:155px}.ending-banner{font-size:.78rem;padding:14px;gap:10px}.content-page{padding:30px 20px 50px}.content-page h1{font-size:2.4rem}.detail-grid{grid-template-columns:1fr;gap:8px}.btn-row .primary{flex-grow:1}dialog{padding:24px}.dialog-head h2{font-size:1.65rem}.bag-item{padding:15px 10px}}
@media(max-width:360px){.brand-logo{height:24px}.nav{gap:8px}.brand{font-size:22px}.hero-content{padding:23px 18px}.meta{font-size:.72rem;gap:7px}.meta span+span:before{padding-right:7px}.journal>.icon{display:none}.medal{width:18px;height:18px}.reader{padding-left:16px;padding-right:16px}.page-controls{flex-wrap:wrap}.upcoming h3{font-size:1.15rem}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important;transform:none!important}}
/* Continuous chapters, quiet atmosphere and meaningful discovery feedback. */
.chapter-caption{text-align:center;color:#a8bdd0;font-size:.85rem;margin:-8px 0 32px;letter-spacing:.02em}.story-text{max-width:700px;font-size:1.23rem;line-height:1.95}.story-text p{margin-bottom:1.45em}.story-text p:first-child:first-letter{font-size:2.5em;color:var(--gold);line-height:1}.inline-art{margin:36px -20px;border:1px solid #8f784a80;border-radius:12px;overflow:hidden;box-shadow:0 16px 35px #0004}.inline-art img{display:block;width:100%;height:auto;aspect-ratio:1.6;object-fit:cover}.story-text [data-word]{border-radius:3px;box-decoration-break:clone;-webkit-box-decoration-break:clone}.reading-progress{position:fixed;left:0;right:0;top:0;height:3px;z-index:8;background:#06182a55;pointer-events:none}.reading-progress span{display:block;height:100%;width:0;background:linear-gradient(90deg,#99743a,#ffe3a2);box-shadow:0 0 12px #f5cd7b88}.reader-layout{transform-origin:left center;animation:chapter-unfold .7s cubic-bezier(.2,.6,.2,1) both}.reader{padding-top:22px;padding-bottom:52px}.choices{padding-top:20px;margin-top:35px;border-top:1px solid #bca16b55}.choices .btn-row{justify-content:center}.ending-grid{margin-top:28px}.settings-options{display:flex;flex-wrap:wrap;gap:12px}.audio-player{padding:20px;margin:20px auto 30px;max-width:700px;border:1px solid #476076;border-radius:14px;background:#0c293e}.audio-player h2{font-size:1.3rem;margin-bottom:15px}.audio-player audio{width:100%;height:46px}.audio-player label{display:flex;gap:10px;align-items:center;font-size:.9rem;margin-top:10px;cursor:pointer}.audio-player input{accent-color:#eac576;width:18px;height:18px}.audio-status{font-size:.8rem;color:var(--muted);margin:10px 0 0}.mystery-dust{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:1}.mystery-dust i{position:absolute;width:3px;height:3px;border-radius:50%;background:#ffe0a0;box-shadow:0 0 14px 3px #e8bd5745;left:65%;top:60%;opacity:0;animation:dust-drift 8s ease-in-out infinite}.mystery-dust i:nth-child(2){left:83%;top:70%;animation-delay:1.8s}.mystery-dust i:nth-child(3){left:45%;top:45%;animation-delay:3s}.mystery-dust i:nth-child(4){left:93%;top:50%;animation-delay:4.3s}.mystery-dust i:nth-child(5){left:73%;top:35%;animation-delay:5.5s}.hero-content,.hero-badge{position:relative;z-index:2}.hero-badge{position:absolute}.art-caption{z-index:2}.discovery{position:fixed;z-index:12;right:24px;top:105px;max-width:min(410px,calc(100vw - 32px));display:flex;align-items:center;gap:18px;padding:20px 46px 20px 18px;border:1px solid #eac575;border-radius:18px;background:linear-gradient(135deg,#233b47f5,#081c2af5);backdrop-filter:blur(16px);box-shadow:0 12px 60px #0008,0 0 40px #e8b34722;animation:discovery-arrive .6s cubic-bezier(.16,1,.3,1) both}.discovery small{display:block;font-size:.78rem;color:#efd5a1;margin-bottom:6px}.discovery strong{display:block;font:1.2rem/1.4 Georgia,serif;color:#fff1d7}.discovery>button{position:absolute;right:8px;top:8px;width:32px;height:32px;border-radius:50%;background:none;color:#ddcfb7;font-size:22px}.discovery-orb{width:60px;height:60px;border-radius:50%;border:1px solid #f2d08799;display:grid;place-items:center;color:#ffdc93;background:radial-gradient(circle,#f5ca7540,#173147);flex-shrink:0;box-shadow:0 0 30px #f2bf5444;animation:relic-awaken 1.2s ease-out both}.discovery-orb .icon{width:32px;height:32px}.collecting .adventure-dock [data-action=bag]{animation:bag-glow 1.6s ease-in-out 2}.compass-display>.icon{animation:compass-breathe 4s ease-in-out infinite,needle-turn 1.2s ease-out}.effects-off *,.effects-off *:before,.effects-off *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.effects-off .mystery-dust{display:none}
@keyframes chapter-unfold{from{opacity:0;transform:perspective(1600px) rotateY(-2deg) translateY(12px);filter:brightness(.7)}to{opacity:1;transform:none;filter:none}}
@keyframes discovery-arrive{from{opacity:0;transform:translateY(-14px) scale(.95)}to{opacity:1;transform:none}}
@keyframes relic-awaken{0%{transform:scale(.6) rotate(-25deg);box-shadow:0 0 0 0 #eec27099}60%{box-shadow:0 0 0 18px #eec27000}100%{transform:none;box-shadow:0 0 30px #f2bf5444}}
@keyframes bag-glow{50%{color:#ffdd91;filter:drop-shadow(0 0 12px #efc774)}}
@keyframes needle-turn{from{transform:rotate(-50deg)}to{transform:rotate(0)}}
@keyframes dust-drift{0%,100%{opacity:0;transform:translate(0,0)}35%,70%{opacity:.65}80%{transform:translate(-25px,-90px)}}
@media(max-width:650px){.story-text{font-size:1.16rem;line-height:1.9}.reader{padding-top:15px}.chapter-caption{font-size:.78rem;margin-bottom:25px}.inline-art{margin:28px -8px}.discovery{top:85px;right:16px;padding:16px 38px 16px 14px;gap:12px}.discovery-orb{width:46px;height:46px}.discovery strong{font-size:1.06rem}.discovery small{font-size:.75rem}.audio-player{padding:14px}.hero-badge{max-width:calc(100% - 30px)}.reader h1{overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){.mystery-dust{display:none}}
.card-link{color:inherit;text-decoration:none}.card-link:after{content:'';position:absolute;inset:0;z-index:1}.card-link:focus-visible{outline:none}.upcoming:has(.card-link:focus-visible){outline:3px solid var(--gold);outline-offset:4px}.library-book{margin:38px 0;text-align:center}.library-book h2{font:1.6rem Georgia,serif;margin:0 0 4px}.library-book .ending-grid{text-align:left;margin-top:18px}.library-book .btn-row{justify-content:center}.collection{margin-top:34px}.collection-title{font:1.5rem Georgia,serif;color:var(--gold);margin:0 0 4px;padding-top:10px;border-top:1px solid #40576c}
/* Page mode retains the original story DOM and uses the available screen height. */
[hidden]{display:none!important}
.reading-tools{display:flex;justify-content:flex-end;gap:16px;flex-wrap:wrap;margin:0 0 12px}
.reading-tools .text-btn{font-size:.8rem;min-height:34px;padding:4px 0}
.illustration-toggle{margin-right:auto}
.dialog-art{display:block;width:100%;height:auto;border-radius:8px;margin-top:12px}
dialog{max-height:calc(100dvh - 32px);overflow-y:auto}
.paged-reading footer{display:none}
.paged-reading .reader-wrap{padding-top:10px;padding-bottom:0}
.paged-reading .reader-top{margin-bottom:10px}
.paged-reading .reader-layout{display:grid;grid-template-columns:minmax(0,34%) minmax(0,1fr);animation:none}
.paged-reading .scene-art{min-height:0;overflow:hidden}
.paged-reading .scene-art>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.paged-reading .art-caption{display:block;left:18px;right:18px;line-height:1.7}
.paged-reading .art-caption span{display:block}
.paged-reading .reader{width:100%;min-width:0;max-width:none;padding:12px 24px 8px;box-sizing:border-box}
.paged-reading .reader h1{font-size:clamp(1.2rem,2.5vw,1.8rem);margin:0 0 10px;line-height:1.18}
.paged-reading .chapter-caption{display:none}
.paged-reading .reading-tools{gap:12px;margin-bottom:6px}
.paged-reading .reading-tools .text-btn{font-size:.76rem}
.page-viewport{overflow:hidden;position:relative;min-width:0;scroll-behavior:auto!important;outline-offset:3px;touch-action:pan-y pinch-zoom}
.page-viewport .story-text{max-width:none;width:100%;height:100%;min-height:0;margin:0;column-gap:32px;column-fill:auto;font-size:1.14rem;line-height:1.8;overflow-wrap:break-word}
.page-viewport .story-text.large{font-size:1.4rem}
.page-viewport .story-text p{margin:0 0 1em;orphans:2;widows:2}
.page-viewport .story-text p:first-child:first-letter{font-size:inherit;line-height:inherit}
.page-viewport .inline-art{break-inside:avoid;margin:10px 0 16px;box-shadow:none}
.page-viewport .inline-art img{max-height:min(160px,var(--page-image-max,160px));object-fit:contain;background:#041521}
.page-viewport .choices{box-sizing:border-box;overflow-y:auto;height:100%;margin:0;padding:8px 6px 16px;border:0;overscroll-behavior:contain}
.page-viewport .choices h2{font-size:1.3rem;margin:0 0 12px}
.page-viewport .choices h2:before{display:none}
.page-viewport .choice-grid{grid-template-columns:1fr;gap:8px}
.page-viewport .choice{flex-direction:row;text-align:left;min-height:60px;gap:12px;padding:12px}
.page-viewport .choice-label{flex:1;font-size:1rem}
.page-viewport .choice-icon{width:24px;height:24px;flex-shrink:0}
.page-viewport .choice-arrow{margin:0}
.paged-reading .page-controls{margin:8px 0 0;padding:8px 0 0;gap:10px;max-width:none;flex-wrap:nowrap}
.paged-reading .page-controls button{font-size:.8rem;min-height:42px;padding:8px 12px;white-space:nowrap}
.paged-reading .page-controls>span{text-align:center;font-size:.76rem}
.paged-reading .page-controls button:disabled{opacity:.4;cursor:default}
.paged-reading .adventure-dock{position:relative;bottom:auto;margin:8px auto;padding:5px 4px}
.paged-reading .ending-banner{padding:8px;margin-bottom:8px;font-size:.75rem}
.paged-reading .audio-player{padding:8px;margin:4px 0}
.paged-reading .audio-player h2,.paged-reading .audio-status{display:none}
@media(max-width:760px){
 .paged-reading .reader-layout{display:block}
 .paged-reading .scene-art{display:none}
 .paged-reading header{height:58px}
 .paged-reading .reader-wrap{padding:8px 12px 0}
 .paged-reading .reader{padding:6px 14px 8px}
 .paged-reading .reader-top{font-size:.7rem;margin-bottom:7px}
 .paged-reading .reading-tools{justify-content:space-between;gap:8px}
 .paged-reading .reading-tools .text-btn{font-size:.7rem;min-height:32px}
 .paged-reading .reader h1{font-size:1.35rem}
 .paged-reading .adventure-dock{margin:6px auto}
 .paged-reading .adventure-dock .icon{width:20px;height:20px}
 .page-viewport .story-text{font-size:1.08rem;line-height:1.75}
 .page-viewport .story-text.large{font-size:1.3rem}
}
/* "La suite t'attend": shown instead of a paid chapter until the book is unlocked. */
.paywall .parent-offer{margin:26px 0 18px;padding:20px;border:1px solid #b79a6380;border-radius:14px;background:#102a40}
.paywall .parent-offer h2{margin:0 0 14px;font:1.3rem Georgia,serif;color:var(--gold)}
.offer-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.offer{display:flex;flex-direction:column;gap:6px;padding:16px;border:1px solid #40576c;border-radius:12px;background:#0b2034}
.offer .price{font:1.7rem Georgia,serif;color:#ffdd9e}
.offer{position:relative}
.offer.best{border-color:#d9a648;box-shadow:0 0 0 1px #d9a648 inset}
.offer .save{position:absolute;top:-11px;right:14px;padding:2px 10px;border-radius:999px;background:#d9a648;color:#0b2034;font-weight:700;font-size:.9rem}
.offer .was{font-size:1.05rem;color:var(--muted);margin-right:4px}
.offer .per{font-size:1rem;color:var(--muted)}
.offer small{color:var(--muted);font-size:.9rem}
.offer button{margin-top:8px}
.offer button:disabled{opacity:.55;cursor:default}
.test-mode{margin:10px 0 18px}
@media(max-width:600px){.offer-grid{grid-template-columns:1fr}}
/* Parent account (espace parents). */
.account{margin:26px 0 30px;padding:20px;border:1px solid #40576c;border-radius:14px;background:#0b2034}
.account h2{margin:0 0 12px;font-size:1.5rem}
.signin label{display:block;margin-bottom:8px;color:#d1deed}
.signin-row{display:flex;gap:10px;flex-wrap:wrap}
.signin input{flex:1 1 240px;min-height:48px;padding:10px 14px;border-radius:12px;border:1px solid #6b7c8d;background:#061828;color:var(--ink);font:inherit}
.signin input:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
.teacher-form label{margin-top:14px}.teacher-form input,.teacher-form textarea{display:block;width:100%;box-sizing:border-box;min-height:48px;padding:10px 14px;border-radius:12px;border:1px solid #6b7c8d;background:#061828;color:var(--ink);font:inherit}.teacher-form textarea{resize:vertical}.teacher-form textarea:focus-visible{outline:3px solid var(--gold);outline-offset:2px}.teacher-form .btn-row{margin-top:16px}
#signin-result:not(:empty){margin-top:14px}

/* Narration: a compact golden voice control, with keyboard-accessible seeking. */
.audio-player.voice-player{display:flex;align-items:center;gap:14px;padding:12px 16px;border:1px solid #efbf6838;border-radius:22px;background:linear-gradient(120deg,#efbf680c,transparent);margin:12px 0}
.voice-toggle{flex:none;width:54px;height:54px;display:grid;place-items:center;border:1px solid #efbf6880;border-radius:50%;color:#efbf68;background:#102438;cursor:pointer;box-shadow:0 0 22px #efbf6810}
.voice-toggle svg{width:25px;height:25px;grid-area:1/1}.voice-toggle .pause-symbol{display:none}.voice-toggle[aria-pressed="true"] .voice-symbol{display:none}.voice-toggle[aria-pressed="true"] .pause-symbol{display:block}.voice-toggle[aria-pressed="true"]{animation:voice-glow 2s ease-in-out infinite}.voice-toggle:focus-visible{outline:3px solid #efbf68;outline-offset:4px}
.voice-detail{flex:1;min-width:0}.voice-caption{font-size:.85rem;color:#efbf68;letter-spacing:.04em}.voice-timeline{display:flex;gap:10px;align-items:center}.voice-timeline input{min-width:0;flex:1;accent-color:#efbf68;cursor:pointer}.voice-timeline span{font-size:.7rem;font-variant-numeric:tabular-nums}.voice-follow{font-size:.72rem!important}.voice-follow input{accent-color:#efbf68}.voice-player .audio-status{font-size:.7rem;margin:3px 0 0}.voice-player audio{display:none}.story-text [data-word]{transition:color .2s ease,transform .2s ease,text-shadow .2s ease}.story-text .spoken{display:inline-block;color:#f6cc80;transform:scale(1.055);transform-origin:center bottom;text-shadow:0 0 10px #efbf6845;position:relative;z-index:1}.story-text .spoken::after{content:"";position:absolute;left:18%;right:18%;bottom:-2px;height:1px;border-radius:99px;background:#efbf68;opacity:.45;box-shadow:0 0 6px #efbf68}@media(prefers-reduced-motion:reduce){.story-text .spoken{transform:none}}
@keyframes voice-glow{50%{box-shadow:0 0 0 7px #efbf6810,0 0 24px #efbf6825}}@media(prefers-reduced-motion:reduce){.voice-toggle[aria-pressed="true"]{animation:none}}
.voice-speed{display:inline-flex;align-items:center;gap:6px;color:#a8bdd0;font-size:.72rem}.voice-speed select{border:1px solid #efbf6855;border-radius:999px;background:#102438;color:#efbf68;padding:4px 8px;font:inherit;cursor:pointer}.voice-speed select:focus-visible{outline:2px solid #efbf68;outline-offset:2px}

/* Collected discoveries: explain each item's purpose without hiding it behind another tap. */
dialog.bag-dialog{max-width:800px;max-height:calc(100dvh - 32px);overflow:auto}
.bag-dialog .bag-grid{list-style:none;margin:0;padding:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.bag-dialog .bag-item{display:flex;flex-direction:row;align-items:flex-start;gap:15px;min-width:0;text-align:left;padding:18px;background:linear-gradient(145deg,#102b43,#081d30)}
.bag-dialog .bag-symbol{flex:none;width:38px;height:38px;display:grid;place-items:center;border-radius:10px;background:#f1c87518;color:var(--gold)}
.bag-dialog .bag-symbol .icon{width:25px;height:25px}
.bag-dialog .bag-item>div{min-width:0}
.bag-dialog .bag-kind{display:block;font-size:.875rem;color:#e8cb92;line-height:1.3}
.bag-dialog .bag-title{font-size:1.18rem;line-height:1.3;margin:4px 0 9px;overflow-wrap:anywhere}
.bag-dialog .bag-purpose{font-size:1rem;line-height:1.5;color:#d7e3ef;margin:0;overflow-wrap:anywhere}
.bag-dialog .close-dialog{min-width:44px;min-height:44px}
@media(max-width:700px){.bag-dialog .bag-grid{grid-template-columns:1fr}.bag-dialog .bag-item{padding:16px}.bag-dialog .bag-title{font-size:1.1rem}}

/* In-story definitions are always reachable by touch and keyboard. */
.glossary-hint{max-width:740px;margin:12px auto 18px;color:#e4c991;font-size:.93rem;line-height:1.45}
.story-text .glossary-term{display:inline;min-height:30px;padding:0 2px;margin:0 -2px;border:0;border-radius:3px;background:none;color:inherit;font:inherit;line-height:inherit;text-align:inherit;cursor:pointer;text-decoration-line:underline;text-decoration-style:dotted;text-decoration-color:#eac57d;text-decoration-thickness:2px;text-underline-offset:.19em;box-shadow:none}
.story-text .glossary-term:hover{color:#ffe1a5;background:#eed18b20}
.story-text .glossary-term:focus-visible{outline:2px solid #ffdc91;outline-offset:2px;background:#eed18b26}
dialog.glossary-dialog{max-width:490px;padding:24px}
.glossary-dialog h2{font-size:1.45rem;line-height:1.25;overflow-wrap:anywhere}
.glossary-dialog .glossary-explanation{font-size:1.12rem;line-height:1.55;margin:0}
.glossary-dialog .close-dialog{min-width:44px;min-height:44px}
@media(max-width:700px){dialog.glossary-dialog{position:fixed;inset:auto 12px 12px;max-width:none;width:calc(100% - 24px);max-height:55dvh;overflow:auto;margin:0 auto;padding:22px;border-radius:18px}}

/* Paper-book discovery sits beside the reading action, without taking it over. */
.paper-link{min-height:48px}
.paper-card-link{display:inline-flex;align-items:center;gap:6px;min-height:44px;margin-top:9px;padding:8px 10px;border:1px solid #d6b87899;border-radius:9px;background:#081d30dd;color:#ffe2a7;font-size:.88rem;font-weight:600;line-height:1.3;text-decoration:none}
.paper-card-link:hover{background:#173a50;border-color:#ffe2a7}
@media(max-width:700px){.hero-content .paper-link{width:100%;text-align:center}.paper-card-link{max-width:100%}}

/* Orbe Kids: compact wordmark and quiet compass motion. */
.brand{gap:12px;letter-spacing:0;flex-shrink:0}
.brand-logo{display:block;height:46px;width:auto}
.brand-wordmark{display:flex;flex-direction:column;gap:5px;line-height:1}
.brand-wordmark>span{font:400 32px/1 Georgia,serif;letter-spacing:.13em}
.brand-wordmark>small{font:500 9px/1.2 Arial,sans-serif;letter-spacing:.24em;text-transform:uppercase;color:#d8bd88}
.compass-icon{overflow:visible}
.compass-needle{transform-origin:12px 12px;transition:transform .7s ease;fill:#e8c87918}
.brand .compass-needle,.adventure-dock .compass-needle,.compass-display .compass-needle{animation:orbe-needle 12s ease-in-out infinite}
.brand .compass-icon{filter:drop-shadow(0 0 7px #edca7530)}
:is(a,button):is(:hover,:focus-visible) .compass-needle{animation:orbe-orient 1.2s ease-out both}
.compass-display{position:relative;isolation:isolate;width:140px;height:140px;display:grid;place-items:center;margin:24px auto 30px}
.compass-display:before{content:"";position:absolute;inset:0;border:1px solid #e8c87930;border-radius:50%;background:radial-gradient(circle,#e8c87912,transparent 68%);box-shadow:0 0 26px #e8c87910;animation:orbe-halo 6s ease-in-out infinite;z-index:-1}
.compass-display>.icon{width:96px;height:96px;animation:none;filter:drop-shadow(0 0 12px #edca7535)}
@keyframes orbe-needle{0%,100%{transform:rotate(-12deg)}45%{transform:rotate(28deg)}70%{transform:rotate(8deg)}}
@keyframes orbe-orient{from{transform:rotate(-35deg)}to{transform:rotate(0)}}
@keyframes orbe-halo{50%{opacity:.55;transform:scale(1.06)}}
@media(max-width:650px){.brand-logo{height:28px}.brand{gap:8px}.brand-wordmark>span{font-size:25px}.brand-wordmark>small{font-size:8px;letter-spacing:.16em}.brand-wordmark{gap:4px}}
/* Orbe Kids: "KIDS" is spread across the exact width of "Orbe", so both words line up on the left and on the right. */
.brand-wordmark{display:inline-grid;justify-items:stretch}
.brand-wordmark>small{display:flex;justify-content:space-between;letter-spacing:0;padding-right:4px;font-size:11px;font-weight:700}
@media(max-width:650px){.brand-wordmark>small{padding-right:3px;font-size:9.5px}}
.brand-wordmark>small i{font-style:normal;display:inline-block;transform-origin:50% 80%;will-change:transform}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
/* Orbe Kids: each letter of KIDS moves freely, like a child at play, each at its own pace so they never move together.
   K swings, I hops, D turns a somersault now and then, S sways. Stopped by "Effets réduits" and by prefers-reduced-motion. */
.brand-wordmark>small i:nth-child(1){animation:kid-swing 1.7s ease-in-out infinite}
.brand-wordmark>small i:nth-child(2){animation:kid-hop 1.15s cubic-bezier(.3,0,.4,1) .2s infinite}
.brand-wordmark>small i:nth-child(3){animation:kid-flip 3.6s ease-in-out .6s infinite;transform-origin:50% 50%}
.brand-wordmark>small i:nth-child(4){animation:kid-sway 2.3s ease-in-out .35s infinite}
@keyframes kid-swing{0%,100%{transform:rotate(-14deg)}50%{transform:rotate(14deg)}}
@keyframes kid-hop{0%,100%{transform:translateY(0) scale(1.1,.9)}15%{transform:translateY(0) scale(.95,1.05)}45%{transform:translateY(-5px) rotate(-6deg)}70%{transform:translateY(0) scale(1.08,.92)}}
@keyframes kid-flip{0%,55%{transform:rotate(0)}80%{transform:rotate(360deg) scale(1.2)}100%{transform:rotate(360deg)}}
@keyframes kid-sway{0%,100%{transform:translateX(0) rotate(0)}25%{transform:translateX(-1.5px) rotate(-18deg)}50%{transform:translateY(-2px) rotate(0)}75%{transform:translateX(1.5px) rotate(18deg)}}
/* Legal pages and their footer links. */
footer{flex-wrap:wrap}
.content-page.legal h2{font-size:1.15rem;margin-top:1.8em}
.content-page.legal p{margin:.5em 0}
/* Before payment: adult question and consent (step 6). */
.checkout-gate{display:grid;gap:12px;margin-top:16px;padding:16px;border:1px solid var(--line);border-radius:14px;max-width:560px}
.checkout-gate input[name=answer]{max-width:140px;font-size:1.1rem}
.checkout-gate .consent{display:flex;gap:10px;align-items:flex-start;font-size:.88rem;line-height:1.45}
.checkout-gate .consent input{margin-top:3px;flex-shrink:0;width:18px;height:18px}
.checkout-gate .consent.missing{color:var(--gold);outline:1px dashed var(--gold);outline-offset:6px;border-radius:6px}
/* Children profiles: the reader's avatar in the header, "Who is reading?" and the list in the parents page. */
.child-chip{display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:4px 12px 4px 5px;border-radius:999px;border:1px solid #f1c87555;background:#f1c87512;color:var(--ink);font:inherit;font-size:.86rem;cursor:pointer;transition:border-color .3s,background .3s}
.child-chip:hover,.child-chip:focus-visible{border-color:var(--gold);background:#f1c87522}
.child-avatar{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#ffffff12;font-size:1.1rem;line-height:1;flex:none}
.child-chip-name{max-width:9em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.who-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(118px,1fr));gap:14px;margin:8px 0 6px}
.who-child{display:flex;flex-direction:column;align-items:center;gap:10px;padding:18px 10px;border-radius:20px;border:1px solid var(--line);background:#0a2035;color:var(--ink);font:inherit;cursor:pointer;transition:transform .3s,border-color .3s}
.who-child:hover,.who-child:focus-visible{transform:translateY(-4px);border-color:var(--gold)}
.who-child.current{border-color:var(--gold);box-shadow:0 0 0 1px var(--gold) inset}
.who-avatar{display:grid;place-items:center;width:72px;height:72px;border-radius:50%;background:radial-gradient(circle at 50% 35%,#f1c87533,#ffffff08);font-size:2.4rem;line-height:1}
.who-name{font-weight:700;font-size:1.05rem;max-width:100%;overflow-wrap:anywhere}
.who-manage{text-align:center;margin:10px 0 0}
.children{margin:34px 0}
.children-list{list-style:none;padding:0;margin:18px 0;display:grid;gap:10px}
.children-list li{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;padding:12px 16px;border:1px solid var(--line);border-radius:16px;background:#0a2035}
.children-list .child-tools{margin-left:auto;display:flex;gap:14px}
.child-form{display:grid;gap:14px;padding:18px;border:1px dashed #f1c87555;border-radius:18px;margin-top:14px}
.child-name-field{display:grid;gap:6px;font-weight:700}
.child-name-field input{font:inherit;padding:11px 14px;border-radius:12px;border:1px solid var(--line);background:#06182a;color:var(--ink);max-width:320px}
.avatar-pick{border:0;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:8px}
.avatar-pick legend{font-weight:700;margin-bottom:8px;padding:0}
.avatar-pick label{cursor:pointer}
.avatar-pick input{position:absolute;opacity:0;pointer-events:none}
.avatar-pick span{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;border:1px solid var(--line);font-size:1.6rem;transition:border-color .2s,transform .2s}
.avatar-pick input:checked+span{border-color:var(--gold);background:#f1c87522;transform:scale(1.08)}
.avatar-pick input:focus-visible+span{outline:2px solid var(--gold);outline-offset:2px}
.child-form .primary{justify-self:start}
@media(max-width:650px){.child-chip{padding:3px;min-height:36px}.child-chip-name{display:none}.child-avatar{width:28px;height:28px}}
/* Bedtime mode: a warm filter over the whole screen (less blue light, like a phone's night shift), dimmer light,
   softer text. Overlays never catch taps (pointer-events:none) and do not change the layout. */
body.night{--ink:#f3e2c7;--muted:#c2ae8f;--line:#4a3a2c}
body.night::before,body.night::after{content:'';position:fixed;inset:0;pointer-events:none;z-index:2147483000}
body.night::before{background:#ff8a3d;mix-blend-mode:multiply;opacity:.55}
body.night::after{background:#000;opacity:.22}
body.night img{filter:brightness(.85) saturate(.85)}
body.night .story-text{letter-spacing:.005em}
dialog.panel-dialog{transition:filter .6s}
body.night dialog.panel-dialog{filter:sepia(.35) brightness(.85)}
.night-settings{margin:14px 0 6px;padding:16px 18px;border:1px solid var(--line);border-radius:16px}
.night-settings h3{margin:0 0 6px;font-size:1.02rem}
.night-settings p{margin:4px 0 10px}
[data-action=night-set][aria-pressed=true],[data-action=timer-set][aria-pressed=true]{border-color:var(--gold);background:#f1c87522;color:var(--ink)}
/* Journey map: a night map read left to right; roads taken glow, fog hides the rest, endings are stars. */
.journey-page{max-width:980px}
.journey-book{margin:34px 0 46px}
.journey-stats{display:flex;flex-wrap:wrap;gap:10px 22px;margin:6px 0 14px;color:var(--muted)}
.journey-stats b{color:var(--gold);font-size:1.25rem}
.journey-scroll{overflow-x:auto;overflow-y:hidden;border-radius:22px;border:1px solid #f1c87533;background:radial-gradient(ellipse 60% 80% at 20% 30%,#1a4a6e40,transparent 70%),radial-gradient(ellipse 50% 70% at 85% 70%,#f1c8750d,transparent 70%),#081d31;scrollbar-color:#f1c87555 transparent;-webkit-overflow-scrolling:touch}
.journey-scroll:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.journey-map{display:block;min-width:100%}
.journey-map .map-start{fill:var(--gold);font:italic 13px Georgia,serif;text-anchor:middle}
.journey-map .road{fill:none;stroke:#ffffff1c;stroke-width:1.5;stroke-dasharray:3 5}
.journey-map .road.open{stroke:#f1c87540}
.journey-map .road.taken{stroke:var(--gold);stroke-width:3;stroke-dasharray:none;filter:drop-shadow(0 0 4px #f1c87599);stroke-linecap:round}
.journey-map .stop circle{fill:#ffffff14;stroke:#ffffff30;stroke-width:1}
.journey-map .stop.seen circle{fill:var(--gold);stroke:#fff6dc;stroke-width:1.5;filter:drop-shadow(0 0 5px #f1c875aa)}
.journey-map .here-ring{fill:none!important;stroke:var(--gold)!important;stroke-width:2!important;transform-box:fill-box;transform-origin:center;animation:here-pulse 2.2s ease-out infinite}
@keyframes here-pulse{0%{transform:scale(.7);opacity:1}100%{transform:scale(1.6);opacity:0}}
.journey-map .ending polygon{fill:none;stroke:#ffffff40;stroke-width:1.2;stroke-dasharray:2 3}
.journey-map .ending.found polygon{fill:var(--gold);stroke:#fff6dc;stroke-dasharray:none;filter:drop-shadow(0 0 7px #f1c875)}
.journey-map .ending text{fill:#06182a;font:700 9px system-ui,sans-serif;text-anchor:middle}
.journey-legend{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;font-size:.8rem;color:var(--muted);margin:10px 4px 0}
.journey-legend span{display:inline-block;margin-left:10px}
.journey-legend span:first-child{margin-left:0}
.lg-taken{width:22px;height:3px;border-radius:2px;background:var(--gold);box-shadow:0 0 5px #f1c875}
.lg-here{width:12px;height:12px;border-radius:50%;border:2px solid var(--gold)}
.lg-fog{width:9px;height:9px;border-radius:50%;background:#ffffff22;border:1px solid #ffffff40}
.lg-star{color:var(--gold)}
.end-chips{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 18px}
.end-chip{display:inline-flex;align-items:center;gap:5px;min-height:38px;padding:5px 12px;border-radius:999px;border:1px dashed #ffffff33;color:var(--muted);font:inherit;font-size:.9rem;background:transparent}
.end-chip.found{border-style:solid;border-color:var(--gold);color:var(--ink);background:#f1c87516}
.end-chip.found span[aria-hidden]{color:var(--gold);text-shadow:0 0 8px #f1c875}
button.end-chip{cursor:pointer;transition:transform .25s}
button.end-chip:hover,button.end-chip:focus-visible{transform:translateY(-2px)}
.journey-steps{margin-top:18px}
.journey-steps summary{cursor:pointer;color:var(--gold);font-weight:700}
.journey-link{margin-top:14px;display:inline-flex;gap:8px;align-items:center}
body.effects-off .journey-map .here-ring{animation:none}
@media (prefers-reduced-motion:reduce){.journey-map .here-ring{animation:none}}
/* Before the script draws the page: the name, the tagline and plain links for search engines (replaced at once). */
.loading-logo{display:block;width:96px;height:96px;margin:0 auto 18px;border-radius:22px}
.loading-tagline{color:var(--gold);font-style:italic;margin:-6px 0 12px}
.static-links{max-width:960px;margin:0 auto;padding:22px 20px;font-size:.8rem;line-height:1.9;color:var(--muted)}
.static-links p{margin:0 0 6px}
.static-links a{color:var(--muted)}

/* Tome number of a numbered series (Léo): a small pill on the book cards. */
.tome-pill{position:absolute;top:12px;left:12px;z-index:2;padding:3px 10px;border-radius:999px;background:#06182acc;border:1px solid #f1c87577;color:var(--gold);font-size:.74rem;font-weight:700;letter-spacing:.04em;backdrop-filter:blur(4px)}
.library-book{position:relative}
.library-book>.tome-pill{position:static;display:inline-block;margin-bottom:8px}
/* Bedtime mode in the header: the words on wide screens, the moon alone on phones. */
.night-header{min-height:36px;padding:4px 10px;border-radius:999px;border:1px solid #f1c87544;font-size:.84rem;white-space:nowrap}
@media(max-width:900px){.night-header .night-text{display:none}}
/* Journey map: visited stops and found endings open their illustration. */
.journey-map .stop[data-scene]{cursor:pointer}
.journey-map .stop .hit{fill:transparent!important;stroke:none!important;filter:none!important}
.journey-map .stop[data-scene]:hover circle:not(.hit):not(.here-ring),.journey-map .stop[data-scene]:focus-visible circle:not(.hit):not(.here-ring){stroke:#fff;stroke-width:3}
.journey-map .stop[data-scene]:focus{outline:none}
.journey-map .stop[data-scene]:focus-visible polygon{stroke:#fff;stroke-width:3}
.stop-dialog .dialog-art{width:100%;border-radius:14px;display:block}
.stop-caption{color:var(--gold);font-weight:700;margin:10px 0 4px}
/* One-time invitation to review the paperback on Amazon (parents page and book page). */
.review-invite{margin:0 0 30px;padding:20px;border:1px solid #f1c87555;border-radius:14px;background:linear-gradient(135deg,#f1c87512,#0b2034)}
.review-invite h2{margin:0 0 10px;font:1.3rem Georgia,serif;color:var(--gold)}
.review-invite p{margin:0 0 14px}
.review-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
/* The review window at the end of a story (app.js offerReview): for the parent, with the book's cover. */
.review-window{max-width:380px}.review-window>p{margin:0 0 16px}
.review-book{display:flex;gap:14px;align-items:center;margin:0 0 12px}.review-book img{width:56px;height:auto;border-radius:6px;flex:none}
.review-book p{margin:0;font:1.15rem Georgia,serif;color:var(--gold)}
.review-window .primary{display:block;text-align:center;margin:0 0 12px}.review-window .review-actions{justify-content:center}
/* Story cards: a golden glow when touched, hovered or focused (phones have no hover), and a small press. */
.upcoming.illustrated{transition:transform .18s ease,box-shadow .3s ease,border-color .3s ease}
.upcoming.illustrated:hover,.upcoming.illustrated:focus-within,.upcoming.illustrated:active{border-color:#f1c875cc;box-shadow:0 0 0 1px #f1c87566,0 12px 36px #f1c87538}
.upcoming.illustrated:active{transform:scale(.97)}
.upcoming.illustrated:active>img{transform:scale(1.06);filter:brightness(1.15)}
/* The card that opens: it grows toward the reader in a golden light, then fades while the book appears. */
.card-opening{pointer-events:none;overflow:hidden;border:1px solid #f1c875;border-radius:15px;background:#102b42;box-shadow:0 0 0 2px #f1c875aa,0 0 80px 20px #f1c87566;will-change:transform,opacity,filter}
@media (prefers-reduced-motion:reduce){.upcoming.illustrated,.upcoming.illustrated:active{transform:none}}
.card-opening img{width:100%;height:100%;object-fit:cover;display:block}
/* Journey map overview: one tile per book begun (picture, title, progress). */
.journey-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:16px;margin-top:22px}
.journey-tile{position:relative;display:flex;flex-direction:column;overflow:hidden;border:1px solid #4c617875;border-radius:15px;background:#0b2034;color:var(--ink);text-decoration:none;transition:transform .18s ease,box-shadow .3s ease,border-color .3s ease}
.journey-tile>img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block}
.journey-tile-text{display:flex;flex-direction:column;gap:6px;padding:14px 16px 16px}
.journey-tile strong{font:1.15rem Georgia,serif;line-height:1.25}
.journey-tile small{color:var(--muted)}
.journey-tile-go{color:var(--gold);font-weight:600;margin-top:4px}
.journey-tile:hover,.journey-tile:focus-visible,.journey-tile:active{border-color:#f1c875cc;box-shadow:0 0 0 1px #f1c87566,0 12px 36px #f1c87538}
.journey-tile:active{transform:scale(.97)}
@media (prefers-reduced-motion:reduce){.journey-tile:active{transform:none}}

/* « Mes découvertes »: one picture tab per collection, then a wall of covers (app.js library). */
.library-tabs{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px;margin:26px 0 8px}
.library-tab{display:flex;align-items:center;gap:12px;padding:10px;border:1px solid #4c617875;border-radius:14px;background:#0b2034;color:var(--ink);text-decoration:none;transition:border-color .25s,box-shadow .25s,transform .18s}
.library-tab img{width:64px;height:64px;object-fit:cover;border-radius:10px;flex:none}
.library-tab strong{display:block;font:1rem Georgia,serif;line-height:1.2}
.library-tab small{color:var(--muted);font-size:.8rem}
.library-tab.active{border-color:#f1c875;box-shadow:0 0 0 1px #f1c87566,0 8px 26px #f1c87530}
.library-tab:hover,.library-tab:focus-visible{border-color:#f1c875aa}
.library-card{position:relative}.library-card .tome-pill{position:absolute;top:10px;left:10px}
.library-card.new img{filter:saturate(.75) brightness(.85)}
.library-card.done .library-status{color:var(--gold)}
.library-back{margin:18px 0 0}.library-back a{color:var(--gold);text-decoration:none;font-weight:600}
@media(max-width:700px){.library-tabs{grid-template-columns:1fr;gap:10px}.library-tab img{width:52px;height:52px}.library-wall{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.library-wall .journey-tile strong{font-size:.98rem}}

/* Complete free books: readable on both dark covers and light shelves. */
.free-book-badge{display:inline-flex;align-items:center;width:fit-content;padding:.35rem .7rem;margin:.25rem 0 .7rem;border:1px solid #87cbae;border-radius:999px;background:#d2f4e3;color:#174d38;font-size:.78rem;font-weight:700;line-height:1.4}

/* Journey stops are real buttons in the accessible list as well as on the map. */
.path-list li:has(.journey-step){padding:0}
.journey-step{display:flex;flex-direction:column;align-items:flex-start;gap:5px;width:100%;min-height:52px;padding:14px 20px;background:transparent;color:var(--ink);text-align:left;border-radius:0 8px 8px 0}
.journey-step span:last-child{color:var(--ink);font-size:.95rem}
.journey-step:hover,.journey-step[aria-current=step]{background:#f1c87515}
.stop-dialog .dialog-art{max-height:35vh;object-fit:contain}
.stop-dialog [data-revisit-error]:empty{display:none}
.stop-dialog [data-revisit-error]{color:#ffdda5}
.owner-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;margin:20px 0}.owner-stat{padding:16px;border:1px solid #40576c;border-radius:14px;background:#0b2034}.owner-stat strong{display:block;font-size:2rem;color:#f3d497}.owner-stat span{color:var(--muted)}
.owner-requests{list-style:none;padding:0}.owner-request{padding:16px;margin-bottom:12px;border:1px solid #40576c;border-radius:14px;background:#0b2034}.owner-request p{margin:0 0 8px}
.owner-table-wrap{overflow-x:auto;margin-bottom:20px}.owner-table{width:100%;border-collapse:collapse;font-size:.95rem}.owner-table th,.owner-table td{text-align:left;padding:8px 10px;border-bottom:1px solid #2c4258;vertical-align:top}.owner-table th{color:#f3d497;font-weight:600}
/* School gift cards: the consent box of the teachers' form and the gift page (/fr/cadeau). */
.gift-consent{display:flex!important;gap:10px;align-items:flex-start;font-size:.88rem;line-height:1.45;margin-top:16px!important}
.gift-consent input{margin-top:3px;flex:0 0 18px!important;width:18px!important;min-height:0!important;height:18px;padding:0!important}
#gift-code{text-transform:uppercase;letter-spacing:.08em;font-family:ui-monospace,Menlo,Consolas,monospace}
