:root{color-scheme:dark;--bg:#161115;--surface:#1a1518;--text:#f0e6ea;--pink:#ff69b4;--accent:#f4539b;--muted:#bca8b2;--line:#e7bacd24;--field:#161114;--page:#161114;--page-text:#e3dadd}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;min-height:100vh;color:var(--text);background:radial-gradient(ellipse at 85% 0,#251c2055,transparent 52%),var(--bg);font:15px/1.5 system-ui,sans-serif}body[data-midnight=true]{--bg:#110d0f;--surface:#161114;--text:#e5dbdf;--muted:#a99ba2;--field:#120f11;--page:#100d0f;--page-text:#d6ccd0}button,input,select{font:inherit}button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:9px 14px;border:1px solid var(--line);border-radius:12px;background:#20191d;color:var(--text);cursor:pointer;white-space:nowrap}button:hover{border-color:#d9acbf7a;background:#241d21}button:disabled{opacity:.38;cursor:default}button.primary,.active.play-pill{background:var(--pink);border-color:transparent;color:#171315;font-weight:650}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--pink);outline-offset:4px}button .zen-icon{flex:none}.zen-icon{width:19px;height:19px;vertical-align:middle;flex:none}input,select{width:100%;border:1px solid var(--line);border-radius:12px;padding:13px;background:var(--field);color:var(--text);margin:8px 0 16px;min-width:0}input[type=file]{font-size:13px;max-width:100%}input[type=range]{padding:0;accent-color:var(--pink);height:20px;border:0;margin:12px 0 18px}label{display:block;font-size:13px;color:var(--muted)}label>span{float:right;color:var(--pink)}h1,h2,h3,p{margin-top:0}h2,h3{font-family:Georgia,serif;font-weight:400;letter-spacing:-.3px}h2{font-size:30px;margin-bottom:8px}h3{font-size:22px;margin-bottom:12px}.muted{color:var(--muted);font-size:13px;line-height:1.65}.eyebrow{font:500 9px/1.5 system-ui,sans-serif;letter-spacing:1.8px;color:var(--pink);margin-bottom:9px}.small-note{font-size:11px;margin:14px 0 0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.app-hero{position:relative;overflow:hidden;isolation:isolate;max-width:1000px;width:calc(100% - 32px);margin:16px auto 12px;min-height:275px;border:1px solid var(--line);border-radius:24px;background:radial-gradient(ellipse at 83% 12%,#884a6766,transparent 45%),linear-gradient(120deg,#1c1519,#181216 65%,#221b1f)}.hero-copy{position:relative;z-index:2;padding:27px 24px;max-width:57%;pointer-events:none}.hero-copy button{pointer-events:auto}.hero-copy h1{font:400 38px/1.05 Georgia,serif;letter-spacing:-1.4px;margin:0 0 13px;color:#f5e8ed;text-shadow:0 2px 12px #161014}.hero-copy h1 em{font-weight:400;color:#ecbdcf}.hero-tagline{font-size:12px;color:#cebac4;line-height:1.7;margin-bottom:13px}.garden-link{min-height:30px;padding:0;border:0;border-radius:0;background:none!important;color:var(--pink);font-size:11px;border-bottom:1px solid #d4a7ba66}.garden-link span{font-size:17px}.hero-moon{position:absolute;right:13%;top:14px;width:145px;height:145px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#ddb0c288,#c07b9d3d 60%,#d2a5b724);box-shadow:0 0 65px #d39db226;border:1px solid #edc9d81a;z-index:-1}.hero-blossoms{position:absolute;top:-20px;right:-6px;color:#d39db2;font:90px/1 Georgia,serif;opacity:.28;transform:rotate(-20deg);z-index:-1}.hero-blossoms span{position:absolute;left:-80px;top:20px;font-size:50px}.hero-blossoms i{position:absolute;left:-115px;top:1px;font-size:30px}.night-toggle{position:absolute;right:12px;top:12px;z-index:4;min-height:32px;padding:6px 9px;font-size:10px;color:#dcc5cf;background:#140f12b8;border-radius:20px}.night-toggle .zen-icon{width:14px;height:14px}.blazi-companion{position:absolute;right:-7px;bottom:20px;width:55%;height:190px;padding:0;border:0;background:none!important;z-index:1;overflow:visible}.blazi-companion img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 8px 12px #100b0f66);transform-origin:40% 80%;animation:blazi-breathe 6s ease-in-out infinite}.blazi-label{position:absolute;bottom:-8px;right:18px;font-size:9px;letter-spacing:.5px;color:#d3b8c4;opacity:.85}.blazi-speech{position:absolute;z-index:5;right:16px;bottom:15px;max-width:230px;padding:15px 17px;border:1px solid #e2aec25e;border-radius:17px 17px 3px 17px;box-shadow:0 10px 30px #0f090d88;background:#1a1418f5;font:italic 15px/1.5 Georgia,serif}.being-petted img{animation:blazi-happy 1s ease-in-out 2}body[data-midnight=true] .blazi-companion img{filter:brightness(.86) drop-shadow(0 8px 12px #100b0f66)}@keyframes blazi-breathe{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-2px) scale(1.012)}}@keyframes blazi-happy{0%,100%{transform:translateY(0)}40%{transform:translateY(-5px) rotate(-1deg)}}nav{position:sticky;top:0;z-index:6;display:flex;gap:6px;overflow:auto;scrollbar-width:none;padding:10px max(14px,calc((100vw - 1000px)/2));background:#110d10ef;backdrop-filter:blur(15px);border-bottom:1px solid var(--line)}nav::-webkit-scrollbar{display:none}nav button{flex:none;min-height:40px;padding:9px 11px;font-size:12px;background:transparent;border-color:transparent;color:var(--muted);border-radius:12px}nav button .zen-icon{width:17px;height:17px}nav button.active{background:#643c5066;border-color:#c17a9b42;color:#eecbd9}main{max-width:1000px;margin:0 auto;padding:22px 16px 16px}.section-heading{margin-bottom:22px}.section-heading .muted{max-width:480px;margin:0;font-size:12px}.section-heading .eyebrow{margin-bottom:5px}.search-wrap{position:relative;margin-bottom:22px}.search-wrap>.zen-icon{position:absolute;top:15px;left:16px;color:#b19ba4}.search-wrap input{margin:0;padding-left:45px;border-radius:14px;font-size:12px;height:49px}.shelf-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:0 0 16px}.shelf-heading h3{font:500 11px/1.4 system-ui;margin:0;color:var(--muted)}.shelf-heading>span{display:inline-flex;align-items:center;gap:5px;font-size:9px;color:#b2909e}.shelf-heading .zen-icon{width:12px;height:12px}.book-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:21px 18px}.book-row{min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:14px;background:linear-gradient(160deg,#1d171a77,#161215);box-shadow:0 9px 24px #0b070924}.book-art{position:relative;aspect-ratio:5/8;overflow:hidden;background:#151013}.cover-open{display:block;min-height:0;width:100%;height:100%;padding:0;border:0;border-radius:0;background:none!important;line-height:0}.book-cover{width:96px;height:144px;object-fit:contain;background:#140f12;border-radius:5px;border:1px solid var(--line);box-shadow:0 5px 16px #0a060955}.book-art .book-cover{display:block;width:100%;height:100%;border:0;border-radius:0;box-shadow:none;transition:transform .4s ease}.cover-open:hover .book-cover{transform:scale(1.025)}.cover-edit{position:absolute;right:7px;top:7px;min-height:31px;width:31px;padding:7px;border:1px solid #e9c8d655;border-radius:50%;background:#110d0fbd;backdrop-filter:blur(8px);color:#f2dde5}.cover-edit .zen-icon{width:15px;height:15px}.saved-place{position:absolute;left:7px;bottom:8px;font-size:8px;padding:4px 8px;background:#181216e0;border:1px solid #e2b9ca4a;border-radius:20px;color:#f2cddb;pointer-events:none}.book-info{padding:12px 11px 9px}.book-title{font:400 16px/1.35 Georgia,serif;color:#ecdbe2;min-height:44px;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.book-author{font-size:8px!important;letter-spacing:1px;text-transform:uppercase;margin:7px 0 12px;color:#ab949e!important}.book-actions{display:flex;gap:6px}.book-actions button{flex:1;min-width:0;min-height:34px;font-size:11px;padding:7px 5px;border-radius:8px}.book-actions .read-book{background:#be799a25;border-color:#bf7a9b49;color:#e9c8d5}.book-actions .listen-book{background:transparent;color:#bba0ac;border-color:#9e6d8530}.listen-book .zen-icon{width:13px;height:13px}.book-hide{display:flex;min-height:26px;margin:4px auto 0;padding:4px 5px;background:none!important;border:0;font-size:9px;color:#9e7d8e}.panel{background:linear-gradient(140deg,#1e171b55,var(--surface));border:1px solid var(--line);border-radius:18px;padding:20px;margin-bottom:18px;box-shadow:0 8px 28px #0b070a1a}.import-options{margin-top:28px;font-size:13px}.import-options summary{color:#c4a8b4;cursor:pointer;list-style-position:inside}.import-options[open] summary{margin-bottom:20px}.actions{display:flex;gap:8px;flex-wrap:wrap}.actions.centered{justify-content:center}.actions button{font-size:12px}.panel-heading{display:flex;align-items:center;gap:10px;margin-bottom:14px;color:var(--pink)}.panel-heading h3{margin:0}.panel-heading .zen-icon{width:20px;height:20px}.sound-now{background:radial-gradient(ellipse at 90% 0,#aa668822,transparent 60%),linear-gradient(135deg,#20191d,#181316)}.sound-now-heading{display:flex;gap:15px;align-items:center;margin:0 0 24px}.sound-now-heading>div:nth-child(2){flex:1;min-width:0}.sound-now-heading h3{font-size:22px;margin:0;overflow-wrap:anywhere}.sound-now-heading .eyebrow{font-size:8px}.sound-orbit{width:50px;height:50px;border:1px solid #bb7f9d50;display:grid;place-items:center;border-radius:50%;background:#8b567120;color:var(--pink)}.sound-orbit .zen-icon{width:26px;height:26px}.sound-wave{height:26px;display:flex;align-items:center;gap:3px;color:#d6aabc}.sound-wave i{width:3px;height:8px;background:currentColor;border-radius:3px}.sound-wave i:nth-child(2n){height:20px}.sound-wave i:nth-child(3){height:26px}.is-playing .sound-wave i{animation:sound-wave 1.1s ease-in-out infinite alternate}.sound-wave i:nth-child(2){animation-delay:.2s}.sound-wave i:nth-child(3){animation-delay:.4s}.sound-wave i:nth-child(4){animation-delay:.6s}@keyframes sound-wave{to{height:5px;opacity:.5}}.sound-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.track{margin:0;padding:16px}.track-top{display:flex;gap:13px;align-items:center;min-width:0}.track-art{width:57px;height:64px;flex:none;border-radius:14px;display:grid;place-items:center;color:#d6bbc8;background:radial-gradient(circle at 30% 20%,#af749055,#241c2155);border:1px solid #cba9b82b}.track-art .zen-icon{width:28px;height:28px}.track-art.tone-1{background:radial-gradient(circle at 30% 20%,#6c8b9b55,#20191e55);color:#dbc1d2}.track-art.tone-2{background:radial-gradient(circle at 30% 20%,#9b977455,#38353055);color:#d6cfb7}.track-copy{min-width:0}.track-copy .eyebrow{font-size:7px;letter-spacing:1.4px;margin-bottom:4px}.track-copy strong{display:block;font:400 17px/1.3 Georgia,serif;overflow-wrap:anywhere}.track-copy .muted{font-size:10px;margin:5px 0 0}.track-actions{display:flex;justify-content:space-between;gap:10px;margin-top:17px}.track-actions button{min-height:34px;font-size:11px;padding:7px 11px}.track-actions .zen-icon{width:14px;height:14px}.quiet-button{background:transparent;border-color:transparent;color:#baa5ae}.play-pill{border-radius:25px}.track-playing{border-color:#b88a9d66;background:#261d224f}.narration-card{text-align:center;padding:26px 24px}.narration-art{display:flex;align-items:center;justify-content:center;margin-bottom:24px}.narration-art .book-cover{width:120px;height:192px}.narration-moon{height:120px;width:120px;display:grid;place-items:center;border-radius:50%;background:radial-gradient(circle,#a8768f33,transparent 70%);border:1px solid #c49cac2b;color:#d3b0bf}.narration-moon .zen-icon{width:55px;height:55px}.narration-card h3{font-size:27px;line-height:1.3}.status{color:#c1a7b2;font-size:12px;margin:12px 0 20px}.privacy-note{display:flex;align-items:center;gap:6px;color:#baa5ae;font-size:10px;margin:0 0 18px}.privacy-note .zen-icon{width:13px;height:13px}.cover-preview{display:flex;justify-content:center;margin:24px 0}.cover-large{width:180px;height:288px}.cover-missing{display:flex;align-items:center;justify-content:center;text-align:center;padding:12px;font-size:12px;color:var(--muted);line-height:1.5}.entry:not(.book-row){padding:14px 0;border-bottom:1px solid var(--line)}#manuscriptReader{white-space:pre-wrap;line-height:1.8}#notice:empty{display:none}#notice{position:relative;z-index:7;padding:13px 17px;margin:12px auto;max-width:970px;background:#231b1f;border:1px solid #c096a748;border-radius:12px;color:#efd7e1;font-size:13px}footer{text-align:center;padding:34px 16px;color:#ad879a;font:italic 13px/1.9 Georgia,serif}footer>span{font-style:normal;color:#b97d9a;font-size:12px;margin:0 7px}footer small{font:9px/2 system-ui;letter-spacing:1.5px;text-transform:uppercase;color:#8e7280}
/* Screen-height pages: the text flows sideways, never down the screen. */
body.reading{height:100vh;height:100dvh;min-height:0;overflow:hidden;display:flex;flex-direction:column;background:var(--page)}.reading header,.reading footer{display:none}.reading nav{position:relative;flex:none;padding:7px 10px;background:var(--page)}.reading nav button{min-height:35px;padding:7px 9px;font-size:11px}.reading nav .zen-icon{width:14px;height:14px}.reading main{display:flex;flex:1;flex-direction:column;min-height:0;width:100%;max-width:720px;padding:8px 10px;overflow:hidden}.reader-heading{display:flex;flex-direction:column;gap:6px;align-items:stretch;flex:none;margin-bottom:8px}.reader-heading-title{min-width:0;width:100%}.reader-heading h2{font:500 15px/1.35 system-ui;letter-spacing:0;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#cdbec4}.reader-author{font-size:10px;margin:3px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.reader-heading-actions{display:flex;gap:5px;width:100%;justify-content:space-between;align-items:center}.reader-heading button{font-size:11px;padding:7px 10px;min-height:34px}.reader-night{min-width:34px;padding:6px!important;background:none;border-color:transparent}.reader-night .zen-icon{width:16px;height:16px}.reader-night span{display:none}.reading .reader-sheet{flex:1;min-height:0;margin:0;padding:12px;overflow:hidden;background:var(--page);border-color:#a4768c24;position:relative;perspective:1000px;box-shadow:none;border-radius:12px}.reader-viewport{height:100%;width:100%;overflow:hidden;touch-action:pan-y;user-select:none}.reader-flow{height:100%;column-fill:auto;column-gap:24px;white-space:pre-wrap;overflow-wrap:anywhere;font:18px/1.7 Georgia,serif;color:var(--page-text);orphans:1;widows:1;will-change:transform}.reading .reader-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none;min-height:40px;margin-top:8px;font-size:11px;color:#a8969e}.reader-toolbar button{min-height:36px;min-width:78px;font-size:11px;padding:7px 10px;background:#28222522}.reader-sheet::after{content:'';position:absolute;top:0;bottom:0;right:0;width:16px;pointer-events:none;background:linear-gradient(90deg,transparent,#0003);opacity:.4}.reader-sheet.turn-next::after{animation:turn-edge 260ms ease-in-out}.reader-sheet.turn-previous::after{left:0;right:auto;transform:scaleX(-1);animation:turn-edge 260ms ease-in-out}@keyframes turn-edge{0%,100%{width:16px;opacity:.3}50%{width:45%;opacity:.8}}
/* Blazi's garden is an optional, skippable welcome after the PIN gate. */
.welcoming{overflow:hidden}.welcome-gate{position:fixed;inset:0;z-index:100;background:#120d10;overflow:hidden;color:#eedfe5}.garden-scene{position:absolute;inset:0;background:radial-gradient(ellipse at 70% 18%,#99607b55,transparent 38%),linear-gradient(#181216,#1c1619 65%,#151013);overflow:hidden}.welcome-moon{position:absolute;right:12%;top:9%;width:160px;height:160px;border-radius:50%;border:1px solid #ebd0db52;background:radial-gradient(circle at 35% 30%,#d8b9c699,#a36d854d 70%);box-shadow:0 0 90px #d19eb333}.garden-ground{position:absolute;left:-25%;width:150%;height:50%;bottom:0;border-radius:50% 50% 0 0;background:radial-gradient(ellipse at 50% 0,#884d6844,#151013 70%);border-top:1px solid #c498a91f}.welcome-blossoms{position:absolute;top:1%;left:-20px;font:130px/1 Georgia;color:#c194a640;transform:rotate(20deg)}.welcome-blossoms span{position:absolute;font-size:85px;left:90px;top:-20px}.welcome-blossoms i{position:absolute;font-size:45px;left:165px;top:25px}.welcome-kicker{position:absolute;top:36px;width:100%;text-align:center;font-size:9px;letter-spacing:3px;color:#debcca}.welcome-blazi{position:absolute;width:min(96%,800px);height:36%;object-fit:contain;left:50%;bottom:29%;transform:translateX(-50%);filter:brightness(.9) drop-shadow(0 15px 25px #100b0f99);animation:welcome-breathe 6s ease-in-out infinite}.welcome-message{position:absolute;bottom:6%;left:20px;right:20px;text-align:center;visibility:hidden;opacity:0;transition:opacity 1s ease}.welcome-message h2{font-size:40px;line-height:1.05;color:#eedbe2;letter-spacing:-1px}.welcome-message h2 em{color:#e6b8ca;font-weight:400}.welcome-message>p:not(.eyebrow){font:13px/1.8 Georgia,serif;color:#c8afba;margin-bottom:20px}.welcome-message button{font-size:12px;min-height:44px}.welcome-ready .welcome-message{visibility:visible;opacity:1}.shoji-door{position:absolute;top:0;bottom:0;width:50.5%;z-index:2;border:5px solid #1b1518;background:repeating-linear-gradient(0deg,transparent 0,transparent 119px,#211b1e 120px,#211b1e 124px),repeating-linear-gradient(90deg,transparent 0,transparent 67px,#211b1e 68px,#211b1e 72px),radial-gradient(ellipse at 60% 40%,#794f63,#1d171a);box-shadow:0 0 40px #100a0e77;transition:transform 1.35s cubic-bezier(.25,.8,.2,1)}.door-left{left:0}.door-right{right:0}.shoji-door>span{position:absolute;top:38%;font:90px Georgia;color:#d3aabb3b}.door-left>span{right:-5px}.door-right>span{left:-5px}.doors-open .door-left{transform:translateX(-102%)}.doors-open .door-right{transform:translateX(102%)}.door-seal{position:absolute;z-index:3;left:50%;top:46%;transform:translate(-50%,-50%);width:110px;height:110px;border-radius:50%;display:flex;flex-direction:column;gap:6px;border:1px solid #e3b6c879;background:#1b1418ed;box-shadow:0 0 40px #d29ab12b;transition:opacity .3s ease}.door-seal>span{font-size:36px;filter:sepia(1) saturate(.5) hue-rotate(265deg)}.door-seal small{font-size:10px;color:#e2c1ce}.doors-open .door-seal{opacity:0;pointer-events:none}.skip-welcome{position:absolute;z-index:5;right:16px;top:14px;font-size:11px;color:#d6bec8;border-color:#ddc3ce22;background:#1610147a;border-radius:25px}@keyframes welcome-breathe{0%,100%{transform:translateX(-50%) scale(1)}50%{transform:translateX(-50%) scale(1.012)}}
@media(min-width:720px){.app-hero{min-height:310px}.hero-copy{padding:34px 40px}.hero-copy h1{font-size:53px}.hero-tagline{font-size:14px}.blazi-companion{width:52%;height:265px;right:10px;bottom:14px}.hero-moon{width:190px;height:190px;top:5px;right:18%}.garden-link{font-size:13px}.night-toggle{top:18px;right:20px}.hero-blossoms{font-size:130px}.hero-blossoms span{font-size:80px}.welcome-message h2{font-size:47px}.welcome-blazi{height:45%;bottom:27%}}@media(max-width:719px){.book-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:17px 13px}}@media(max-width:540px){.app-hero{width:calc(100% - 24px);margin:12px auto 7px;min-height:270px}.hero-copy{padding:27px 19px;max-width:59%}.hero-copy h1{font-size:36px}.hero-copy .eyebrow{font-size:7px;letter-spacing:1.6px}.hero-tagline{font-size:10px;line-height:1.8}.blazi-companion{width:60%;height:182px;right:-15px;bottom:24px}.hero-moon{right:7%;width:132px;height:132px;top:22px}.blazi-label{font-size:8px;right:24px;bottom:-12px}.night-toggle span{display:none}.night-toggle{min-width:31px;padding:7px}.book-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 13px}.book-info{padding:11px 10px 7px}.book-title{font-size:15px;min-height:41px}.book-author{font-size:7px!important;letter-spacing:.7px;margin-bottom:10px}.book-actions button{font-size:10px;gap:4px}.book-actions .zen-icon{width:12px;height:12px}.book-hide{font-size:8px}.sound-grid{grid-template-columns:1fr}.sound-now{padding:18px}.sound-now-heading{gap:11px}.sound-now-heading h3{font-size:20px}.sound-orbit{width:44px;height:44px}.panel{padding:18px}main{padding:21px 14px 14px}h2{font-size:28px}.section-heading{margin-bottom:20px}.section-heading .muted{font-size:11px}.shelf-heading>span{font-size:8px}.reading main{padding:6px 8px}.reading .reader-sheet{padding:10px}.reader-heading h2{font-size:14px}.reader-heading-actions{gap:2px}.reader-heading button{padding:6px 8px}.reader-author{font-size:9px}.reading nav{padding:6px 7px}.reading nav button{gap:5px;font-size:10px;padding:7px 8px}.reading nav .zen-icon{width:13px;height:13px}}@media(max-height:500px){.welcome-blazi{left:26%;width:48%;height:85%;bottom:0}.welcome-message{left:49%;bottom:10%;right:20px}.welcome-message h2{font-size:29px}.welcome-message .eyebrow{font-size:7px}.welcome-message>p:not(.eyebrow){font-size:11px;margin-bottom:10px}.welcome-kicker{top:15px}.reader-heading .reader-author{display:none}.reader-heading h2{-webkit-line-clamp:1}.reader-heading{margin-bottom:5px}.reading .reader-sheet{padding:10px}.reading .reader-toolbar{margin-top:5px;min-height:34px}.reader-flow{font-size:17px}.reader-toolbar button{min-height:30px;padding:5px 9px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}.reader-flow{transition:none!important}}

body[data-midnight=true] .book-art img{filter:brightness(.88)}body[data-midnight=true] .welcome-blazi{filter:brightness(.8) drop-shadow(0 15px 25px #100b0f99)}

/* The garden follows local device time; reading mode stays independent. */
.garden-view{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:-1;--petal-fall:360px}.garden-layer{position:absolute;inset:-2px;background-image:url("assets/garden-cycle.png");background-size:200% 100%;background-repeat:no-repeat;transform:scale(1.015);animation:garden-sway 20s ease-in-out infinite}.garden-morning{background-position:left center}.garden-night{background-position:right center;opacity:var(--garden-night,1);transition:opacity 5s ease}.app-hero .garden-view::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#150f13ef 0,#1610149e 44%,#16101426 100%)}.app-hero .garden-layer{filter:brightness(.72) saturate(.85)}.hero-moon,.hero-blossoms,.welcome-moon,.welcome-blossoms{display:none}.garden-clock{color:#d2b7c2;font-size:8px;letter-spacing:.6px;margin:0 0 7px}.hero-copy .hero-tagline{margin-bottom:8px}.garden-scene{isolation:isolate}.garden-scene .garden-view{z-index:0;--petal-fall:100vh}.garden-scene .garden-view::after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#120d10f5 0,#150e128f 25%,#19121626 65%,#15101330)}.garden-scene .garden-layer{filter:brightness(.77) saturate(.9)}.garden-ground{display:none}.garden-lantern{position:absolute;border-radius:50%;background:radial-gradient(ellipse,#ffe5ae99,#ecab7255 25%,#e78da724 50%,transparent 72%);mix-blend-mode:screen;opacity:calc(var(--garden-night,1)*.75);animation:lantern-breathe 6s ease-in-out infinite;transition:opacity 4s ease}.lantern-far{left:86%;top:43%;width:11%;height:9%}.lantern-near{left:81%;top:52%;width:15%;height:13%;animation-delay:-3s}.pond-ripples{position:absolute;left:19%;bottom:14%;width:57%;height:13%;fill:none;stroke:#edbccf;stroke-width:.8;opacity:.55}.pond-ripples ellipse{transform-origin:center;transform-box:fill-box;animation:pond-ripple 8s ease-out infinite}.pond-ripples ellipse:nth-child(2){animation-delay:-2.6s}.pond-ripples ellipse:nth-child(3){animation-delay:-5.3s}.garden-petals{position:absolute;inset:0;overflow:hidden}.garden-petals i{position:absolute;left:8%;top:-15px;width:7px;height:5px;border-radius:80% 0 80% 0;background:#eac3d2;opacity:.5;animation:garden-petal 18s linear infinite}.garden-petals i:nth-child(2){left:25%;animation-delay:-7s;animation-duration:23s}.garden-petals i:nth-child(3){left:37%;animation-delay:-11s;animation-duration:20s}.garden-petals i:nth-child(4){left:55%;animation-delay:-3s;animation-duration:26s}.garden-petals i:nth-child(5){left:72%;animation-delay:-14s;animation-duration:21s}.garden-petals i:nth-child(6){left:87%;animation-delay:-9s;animation-duration:25s}.garden-petals i:nth-child(7){left:17%;animation-delay:-17s;animation-duration:27s}@keyframes garden-sway{0%,100%{transform:scale(1.015) translateX(-1px)}50%{transform:scale(1.02) translateX(1px)}}@keyframes lantern-breathe{0%,100%{filter:brightness(.85)}50%{filter:brightness(1.2)}}@keyframes pond-ripple{0%{transform:scale(.3);opacity:.65}100%{transform:scale(3.5);opacity:0}}@keyframes garden-petal{0%{transform:translate(0,0) rotate(0);opacity:0}10%{opacity:.55}90%{opacity:.35}100%{transform:translate(65px,var(--petal-fall)) rotate(220deg);opacity:0}}

.reader-viewport{position:relative}.curl-stage{position:absolute!important;inset:0;z-index:4;pointer-events:none;overflow:hidden;background:var(--page)}.curl-leaf{background:var(--page);color:var(--page-text);white-space:pre-wrap;overflow-wrap:anywhere;overflow:hidden;box-sizing:border-box}.curl-stage .stf__parent,.curl-stage .stf__wrapper{background:var(--page)}.curl-stage .stf__item{background:var(--page)}

.curl-leaf{background:linear-gradient(90deg,var(--page),#161215);box-shadow:5px 0 24px #0007;outline:1px solid #b2809832;outline-offset:-1px}

/* Larger, book-like typography, with the usable page kept close to the edges. */
.reader-flow{font:20px/1.45 Georgia,serif}
@media(max-width:540px){.reading main{padding:8px 6px}.reading .reader-sheet{padding:9px}}

.reader-flow,.curl-leaf{-webkit-text-size-adjust:100%;text-size-adjust:100%}

html{-webkit-text-size-adjust:100%;text-size-adjust:100%}.reader-flow,.curl-leaf{font:20px/1.45 Georgia,serif}


/* Lightweight Muse-style slide curl: no 3D page-flip engine on Android. */
.slide-curl-stage{background:transparent;overflow:hidden;perspective:none;contain:layout paint;}
.slide-curl-leaf{position:absolute;inset:0;box-sizing:border-box;padding:0;background:var(--page);color:var(--page-text);font:20px/1.45 Georgia,serif;white-space:pre-wrap;overflow:hidden;overflow-wrap:anywhere;transform:translateX(0);will-change:transform;box-shadow:8px 0 18px #0004;}
.slide-curl-stage[data-direction="next"] .slide-curl-leaf{border-radius:0 12px 12px 0;transform-origin:left center;}
.slide-curl-stage[data-direction="previous"] .slide-curl-leaf{border-radius:12px 0 0 12px;transform-origin:right center;}
.slide-curl-stage.slide-curl-moving[data-direction="next"] .slide-curl-leaf{transform:translateX(-102%) skewY(-.7deg);transition:transform 430ms cubic-bezier(.25,.65,.25,1);}
.slide-curl-stage.slide-curl-moving[data-direction="previous"] .slide-curl-leaf{transform:translateX(102%) skewY(.7deg);transition:transform 430ms cubic-bezier(.25,.65,.25,1);}
@media(prefers-reduced-motion:reduce){.slide-curl-leaf{transition:none!important}}

/* Corner-first paper curl: clip the outgoing sheet diagonally while the folded tip rolls inward. */
.slide-curl-stage{overflow:hidden;isolation:isolate}
.slide-curl-leaf{transform:none!important;transition:none!important;box-shadow:none!important;border-radius:0!important;clip-path:polygon(0 0,100% 0,100% 100%,0 100%);}
.slide-curl-stage::after{content:'';position:absolute;z-index:5;right:0;bottom:0;width:0;height:0;pointer-events:none;background:linear-gradient(135deg,#0005 0%,#0001 35%,var(--page) 50%,#fff2 75%,#0003 100%);filter:drop-shadow(-5px -5px 5px #0005);clip-path:polygon(0 100%,100% 0,100% 100%)}
.slide-curl-stage[data-direction="previous"]::after{right:auto;left:0;transform:scaleX(-1)}
.slide-curl-stage.slide-curl-moving[data-direction="next"] .slide-curl-leaf{animation:paper-curl-next 680ms ease-in-out both}
.slide-curl-stage.slide-curl-moving[data-direction="previous"] .slide-curl-leaf{animation:paper-curl-prev 680ms ease-in-out both}
.slide-curl-stage.slide-curl-moving::after{animation:paper-fold-tip 680ms ease-in-out both}
@keyframes paper-curl-next{0%{clip-path:polygon(0 0,100% 0,100% 100%,0 100%)}20%{clip-path:polygon(0 0,100% 0,78% 78%,0 100%)}50%{clip-path:polygon(0 0,80% 0,32% 30%,0 100%)}80%{clip-path:polygon(0 0,25% 0,0 15%,0 100%)}100%{clip-path:polygon(0 0,0 0,0 0,0 100%)}}
@keyframes paper-curl-prev{0%{clip-path:polygon(0 0,100% 0,100% 100%,0 100%)}20%{clip-path:polygon(0 0,100% 0,100% 100%,22% 78%)}50%{clip-path:polygon(20% 0,100% 0,100% 100%,68% 30%)}80%{clip-path:polygon(75% 0,100% 0,100% 100%,100% 15%)}100%{clip-path:polygon(100% 0,100% 0,100% 100%,100% 100%)}}
@keyframes paper-fold-tip{0%{width:0;height:0;opacity:0}20%{width:22%;height:22%;opacity:1}50%{width:68%;height:70%;opacity:.9}80%{width:100%;height:100%;opacity:.25}100%{width:100%;height:100%;opacity:0}}
@media(prefers-reduced-motion:reduce){.slide-curl-stage.slide-curl-moving .slide-curl-leaf,.slide-curl-stage.slide-curl-moving::after{animation:none!important}}

/* True lightweight fold-line slide curl from the supplied demo.
   Overrides the earlier diagonal clip animation without repainting text. */
.real-slide-curl{background:transparent!important;contain:layout paint;isolation:isolate;pointer-events:none}
.real-slide-curl .curl-mask{position:absolute;inset:0;overflow:hidden;will-change:transform}
.real-slide-curl .curl-front-mask{z-index:1}
.real-slide-curl .curl-flap-mask{z-index:2}
.real-slide-curl .curl-inner{position:absolute;inset:0;will-change:transform}
.real-slide-curl .curl-copy{position:absolute;inset:0;white-space:pre-wrap;overflow-wrap:anywhere;overflow:hidden;font:20px/1.45 Georgia,serif;color:var(--page-text);background:var(--page)}
.real-slide-curl .curl-back{transform-origin:0 0;background:linear-gradient(105deg,var(--page),#5a404d);filter:brightness(.94)}
.real-slide-curl .curl-shadow{position:absolute;top:0;bottom:0;width:84px;z-index:2;opacity:0;pointer-events:none;background:linear-gradient(90deg,transparent,#0007,transparent);will-change:transform,opacity}
.real-slide-curl .curl-contact{position:absolute;top:0;bottom:0;width:54px;z-index:3;opacity:0;background:linear-gradient(90deg,#0006,transparent);will-change:transform,opacity}
.real-slide-curl .curl-barrel{position:absolute;top:0;bottom:0;width:84px;z-index:4;opacity:0;border-radius:40px;background:linear-gradient(90deg,#0006,#fff8 45%,#0005);will-change:transform,opacity}
@media(max-height:500px){.real-slide-curl .curl-copy{font-size:17px}}

/* Muse reference: smaller serif text and half-em paragraph gaps.
   The same metrics apply to measurement, visible pages, and both curl faces. */
.reader-flow,.real-slide-curl .curl-copy{font:18px/1.6 Georgia,'Times New Roman',serif}
.reader-flow p,.real-slide-curl .curl-copy p{margin:0 0 .5em;white-space:pre-wrap;orphans:1;widows:1}
.reader-flow p:last-child,.real-slide-curl .curl-copy p:last-child{margin-bottom:0}
.reader-source-break{display:none}

.current-reading-card{display:grid;grid-template-columns:88px minmax(0,1fr);gap:18px;align-items:center;background:linear-gradient(130deg,#251c20bb,#181316e8);border:1px solid #bc859b99;border-radius:18px;padding:18px;margin:0 0 25px;box-shadow:0 10px 30px #0003}.current-reading-card h3{font-family:Georgia,serif;font-size:23px;line-height:1.25;margin:7px 0 9px}.current-reading-card .eyebrow{font-size:10px;letter-spacing:.14em}.current-reading-card .muted{font-size:13px;line-height:1.5}.current-reading-cover{height:125px;overflow:hidden;border-radius:7px}.current-reading-cover img{width:100%;height:100%;object-fit:cover}.current-reading-card .actions{gap:8px;flex-wrap:wrap}.current-reading-card button{min-height:44px;font-size:13px}@media(max-width:370px){.current-reading-card{grid-template-columns:65px minmax(0,1fr);gap:12px;padding:14px}.current-reading-cover{height:100px}.current-reading-card h3{font-size:20px}}

/* Editable genre shelves */
.genre-assign{margin-bottom:22px}.genre-assign label{display:block;margin-top:12px;color:var(--muted);font-size:12px}.genre-assign select{width:100%;margin:6px 0 12px;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:inherit;font:inherit}.genre-shelf-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.genre-shelf{min-width:0}.genre-shelf-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.genre-shelf-heading h3{margin:0 0 5px}.genre-book{display:grid;grid-template-columns:54px minmax(0,1fr);gap:11px;padding:12px 0;border-bottom:1px solid var(--line)}.genre-book-cover .book-cover{display:block;width:54px;height:78px;object-fit:cover;border-radius:5px}.genre-book-details{min-width:0}.genre-book .book-title{overflow-wrap:anywhere}.genre-book .actions{gap:7px;flex-wrap:wrap}.genre-book button{font-size:11px;padding:8px 10px}@media(max-width:420px){.genre-shelf-grid{grid-template-columns:1fr}}
.chapter-finder{position:fixed;left:50%;transform:translateX(-50%);bottom:0;width:min(720px,100%);max-height:72vh;z-index:30;display:flex;flex-direction:column;background:linear-gradient(160deg,#1e171b,var(--surface));border:1px solid var(--line);border-bottom:0;border-radius:18px 18px 0 0;box-shadow:0 -12px 40px #0b070a66;padding:16px 16px 10px}
.chapter-finder-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:10px}
.chapter-finder-head h3{font-size:19px;margin:0}
.chapter-finder-head .eyebrow{margin-bottom:4px}
.chapter-list{overflow-y:auto;display:flex;flex-direction:column;min-height:0}
.chapter-row{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;text-align:left;background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:12px 6px;min-height:48px;white-space:normal}
.chapter-row:hover{background:#241d2166;border-color:var(--line)}
.chapter-row.current{color:var(--pink);font-weight:650}
.chapter-row-title{overflow-wrap:anywhere}
.chapter-row-page{flex:none;font-size:11px;color:var(--muted)}
.chapter-row.current .chapter-row-page{color:var(--pink)}
.chapter-none{padding:6px 2px 12px}

nav button.update-available{background:var(--pink);border-color:transparent;color:#171315;font-weight:650;animation:zen-update-glow 1.6s ease-in-out infinite}
@keyframes zen-update-glow{0%,100%{box-shadow:0 0 0 0 rgba(229,183,201,0)}50%{box-shadow:0 0 16px 4px rgba(229,183,201,.75)}}
.finished-wrap{position:relative;display:inline-block;line-height:0;overflow:hidden;border-radius:5px}
.book-art .finished-wrap,.current-reading-cover .finished-wrap{display:block;width:100%;height:100%;border-radius:0}
.finished-ribbon{position:absolute;z-index:3;top:11px;right:-32px;transform:rotate(45deg);background:linear-gradient(90deg,#e6b4c8,#d590ab);color:#191014;font:700 8px/1.5 system-ui,sans-serif;letter-spacing:1.4px;padding:1px 32px;border-top:1px solid #eed9a0;border-bottom:1px solid #eed9a0;box-shadow:0 2px 7px #000a;pointer-events:none}
.finished-ribbon.ribbon-large{top:20px;right:-40px;font-size:11px;padding:2px 40px}

.manuscript-page p{margin:0 0 .9em;line-height:1.65}.manuscript-page{overflow-wrap:anywhere}

/* 1.4.42: Listening voice picker — tap-to-hear voice rows + pitch (Zen plum skin) */
.voice-list{display:flex;flex-direction:column;gap:9px;margin:4px 0 18px}
.voice-row{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:3px;width:100%;min-height:0;padding:12px 14px;text-align:left;white-space:normal;background:#20191d}
.voice-row.selected{border-color:var(--pink);box-shadow:0 0 0 1px var(--pink) inset;background:#241d21}
.voice-main{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.voice-main strong{font:400 16px/1.3 Georgia,serif}
.voice-chip{font-size:10px;padding:2px 8px;border-radius:999px;border:1px solid var(--line);color:var(--muted)}
.voice-now{font-size:10px;font-weight:700;padding:2px 8px;border-radius:999px;background:var(--pink);color:#171315}
.voice-sub{font-size:10px;color:var(--muted);overflow-wrap:anywhere}
.voice-hear{display:inline-flex;align-items:center;gap:5px;font-size:11px;color:var(--pink)}
.voice-hear .zen-icon{width:13px;height:13px}

/* 1.4.46: Sakura's own "Sakura's Zen Zone" artwork (assets/zen-garden-art.jpg
   — her black night garden saturated in glowing pink: pink moon, blossoms,
   lanterns, waterfall pond — composited untouched, never redrawn) lives
   behind the app. The welcome garden and the home hero show the art itself;
   the shell carries it fixed behind the library, with book covers resting
   on translucent dark panels so the moon-garden glows through around the
   books — the panel directly behind each cover stays dark enough that
   every cover and title reads perfectly. The reader keeps the mood only:
   deep black with a faint pink moon-glow at the edges, page calm. */
body:not(.reading){background:#0d090c}
body:not(.reading)::before{content:'';position:fixed;inset:0;z-index:-2;background:#0d090c url("assets/zen-garden-art.jpg") center 16%/cover no-repeat}
body:not(.reading)::after{content:'';position:fixed;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 84% -4%,#ff69b426,transparent 55%),linear-gradient(180deg,#0d090ca6 0,#0d090cbf 34%,#0d090cd1 62%,#0d090ce0 100%)}
body[data-midnight=true]:not(.reading)::after{background:radial-gradient(ellipse at 84% -4%,#ff69b41a,transparent 55%),linear-gradient(180deg,#0d090cbf 0,#0d090cd1 34%,#0d090ce0 62%,#0d090ceb 100%)}
.panel{background:linear-gradient(140deg,#2b1e26a8,#141014d9);box-shadow:0 8px 28px #0b070a33}
.book-row{background:linear-gradient(160deg,#241a20a6,#131013e0)}
.sound-now{background:radial-gradient(ellipse at 90% 0,#ff69b42b,transparent 60%),linear-gradient(135deg,#20191dd9,#181316e6)}
.current-reading-card{background:linear-gradient(130deg,#2b2028c4,#171217eb)}
.app-hero .garden-layer{background-image:url("assets/zen-garden-art.jpg");background-size:cover;background-position:center 18%;filter:none}
.app-hero .garden-night{opacity:0}
.app-hero .garden-view::after{background:linear-gradient(90deg,#150f13f2 0,#161014b8 46%,#16101440 100%)}
.garden-scene .garden-layer{background-image:url("assets/zen-garden-art.jpg");background-size:cover;background-position:center;filter:none}
.garden-scene .garden-night{opacity:0}
body.reading{background:radial-gradient(ellipse at 88% -6%,#ff69b41c,transparent 52%),radial-gradient(ellipse at 4% 110%,#f4539b12,transparent 48%),var(--page)}
.reading .reader-sheet{background:radial-gradient(ellipse at 85% 0,#f4539b10,transparent 55%),var(--page)}
button.primary,.active.play-pill{box-shadow:0 0 18px #ff69b44d,0 0 4px #ff69b433}
nav button.active{background:#ff69b42e;border-color:#ff69b45c;color:#ffd9e9;box-shadow:0 0 14px #ff69b42b}
.sound-orbit{border-color:#ff69b466;background:#ff69b41f;box-shadow:0 0 16px #ff69b433}
.track-playing{border-color:#ff69b473;background:#ff69b417}
.hero-copy h1 em{color:#ff9ecb}
@keyframes zen-update-glow{0%,100%{box-shadow:0 0 0 0 rgba(255,105,180,0)}50%{box-shadow:0 0 16px 4px rgba(255,105,180,.55)}}

/* 1.4.47: Sakura's verdict on 1.4.46 — "It's kinda dull behind the
   color I wanna see the background." The 1.4.46 shell veil (65-88%
   black) muted her garden; this section cuts it way back so the art
   reads vivid — moon, blossoms, waterfall clearly visible — across
   home and library. Open areas carry only a light veil (~18-35%
   black, Midnight a touch deeper at ~28-45%); dark backing remains
   ONLY where it earns its place, on the translucent panels behind
   shelf rows/covers and text blocks, and copy that sits directly on
   the art gets a soft localized text shadow instead of a global
   wash. The home hero shows the art at near-full strength. The
   reader is untouched from 1.4.46 (calm page, faint glow). */
body:not(.reading)::after{background:radial-gradient(ellipse at 84% -4%,#ff69b433,transparent 55%),linear-gradient(180deg,#0d090c2e 0,#0d090c40 34%,#0d090c4d 62%,#0d090c59 100%)}
body[data-midnight=true]:not(.reading)::after{background:radial-gradient(ellipse at 84% -4%,#ff69b426,transparent 55%),linear-gradient(180deg,#0d090c47 0,#0d090c57 34%,#0d090c66 62%,#0d090c73 100%)}
.panel{background:linear-gradient(140deg,#2b1e267d,#141014b0);box-shadow:0 8px 28px #0b070a33}
.book-row{background:linear-gradient(160deg,#241a2085,#131013b5)}
.sound-now{background:radial-gradient(ellipse at 90% 0,#ff69b42b,transparent 60%),linear-gradient(135deg,#20191dad,#181316c4)}
.current-reading-card{background:linear-gradient(130deg,#2b202894,#171217c2)}
.app-hero .garden-view::after{background:linear-gradient(90deg,#150f13b3 0,#1610145c 46%,#1610140f 100%)}
.section-heading h2,.section-heading .eyebrow,.section-heading .muted,.shelf-heading h3,.shelf-heading>span,footer,footer small{text-shadow:0 1px 3px #0d090cd9,0 2px 14px #0d090ca6}
.hero-tagline,.blazi-label{text-shadow:0 1px 8px #0d090cd9,0 1px 3px #0d090cb8}

/* 1.4.48: Sakura's word — "just get rid of the borders all together
   if u want lets the background show but still keep everything
   separate." The panel/box treatment comes off the shell and the
   library entirely: no visible borders, no boxed backgrounds — her
   moon-garden is the one continuous background and everything
   floats on it. Separation is carried by spacing (panels keep
   their padding and margins; the book grid breathes a little
   wider), by the shelf and section headings, and by soft localized
   text shadows and the pink control glows — never by boxes. Text
   that used to sit on a panel now sits on the art, so it gets the
   same localized shadow treatment the headings got in 1.4.47.
   Buttons and controls keep their fills and borders — a control
   is not a panel. Covers are opaque images, untouched. The home
   hero and the reader are unchanged. */
body:not(.reading) .panel{background:none;border-color:transparent;box-shadow:none}
body:not(.reading) .book-row{background:none;border-color:transparent;box-shadow:none}
body:not(.reading) .current-reading-card{background:none;border-color:transparent;box-shadow:none}
body:not(.reading) .sound-now{background:radial-gradient(ellipse at 90% 0,#ff69b426,transparent 60%)}
body:not(.reading) .track-playing{background:#ff69b412;border-color:transparent;box-shadow:0 0 16px #ff69b424}
body:not(.reading) nav{border-bottom-color:transparent}
.genre-book{border-bottom-color:transparent}
.entry:not(.book-row){border-bottom-color:transparent}
.book-grid{gap:24px 18px}
.genre-shelf{margin-bottom:26px}
body:not(.reading) .book-title,body:not(.reading) .book-author,body:not(.reading) .book-hide{text-shadow:0 1px 3px #0d090ce6,0 2px 12px #0d090ca6}
body:not(.reading) .panel h3,body:not(.reading) .panel-heading,body:not(.reading) .panel .muted,body:not(.reading) .panel label,body:not(.reading) .panel .eyebrow,body:not(.reading) .status,body:not(.reading) .privacy-note,body:not(.reading) .small-note,body:not(.reading) .import-options summary,body:not(.reading) .genre-shelf-heading h3,body:not(.reading) .track-copy strong,body:not(.reading) .current-reading-card h3,body:not(.reading) .current-reading-card .muted,body:not(.reading) .current-reading-card .eyebrow{text-shadow:0 1px 3px #0d090cd9,0 2px 14px #0d090ca6}

/* 1.4.50: Sakura's word — "Want the background behind the book
   itself too." Her garden artwork now runs behind the READING PAGE
   as well, not only behind the shelves and home: the same fixed art
   layer the shell uses, and the reader sheet gone translucent — a
   dark veil over the art, kept as light as the white Georgia text
   comfortably allows (she has rejected heavy veiling twice; the
   garden must stay visible). The turning leaves keep the solid
   page color — a turning page is a page — and the text itself,
   its pagination and the narration are untouched. */
body.reading::before{content:'';position:fixed;inset:0;z-index:-2;background:#0d090c url("assets/zen-garden-art.jpg") center 16%/cover no-repeat}
body.reading::after{content:'';position:fixed;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 84% -4%,#ff69b433,transparent 55%),linear-gradient(180deg,#0d090c2e 0,#0d090c40 34%,#0d090c4d 62%,#0d090c59 100%)}
.reading .reader-sheet{background:linear-gradient(180deg,#0d090cb8,#0d090cc2)}
body[data-midnight=true] .reader-sheet{background:linear-gradient(180deg,#0a070bc2,#0a070bcc)}
.reader-flow{text-shadow:0 1px 3px #00000059}
.reader-heading h2,.reader-author,.reading .reader-toolbar{text-shadow:0 1px 3px #0d090cd9,0 2px 14px #0d090ca6}
/* 1.4.51: Sakura's word on the 1.4.50 reader preview — "make the
   border almost invisible bc it would look awesome for the words to
   be seen on that background." The reader sheet's panel outline is
   gone (border transparent) and its hard rectangle edge with it:
   the flat veil becomes a feathered radial wash — full strength
   behind the text block, dissolving through the rim to fully
   transparent at the sheet's corners — so her garden flows right
   up to the words and the page reads as text laid directly on the
   artwork. A slightly deeper soft shadow under the glyphs keeps
   the white Georgia comfortable over the brightest neon. The
   turning leaves keep the solid page color; the text, its
   pagination and the narration are untouched. */
.reading .reader-sheet{border-color:transparent;background:radial-gradient(ellipse at 50% 47%,#0d090cd4 0,#0d090cc6 48%,#0d090c9c 68%,#0d090c57 84%,#0d090c1f 93%,#0d090c00 100%)}
body[data-midnight=true] .reader-sheet{background:radial-gradient(ellipse at 50% 47%,#0a070bd9 0,#0a070bc9 48%,#0a070ba3 68%,#0a070b5e 84%,#0a070b24 93%,#0a070b00 100%)}
.reader-flow{text-shadow:0 1px 3px #00000066,0 2px 12px #0000004d}

/* ---- Box sets (Zen 1.4.60): lit books in the box, fan-out, float-out-and-open ---- */
:root{--box-glow:#ff69b4d9;--box-glow-soft:#f4539b54}
.box-tile .book-cover{box-shadow:0 0 14px 2px var(--box-glow-soft),0 8px 20px #0007}
.box-head{display:flex;gap:16px;align-items:center;margin-bottom:12px}
.box-head-cover{width:74px;height:111px;object-fit:cover;border-radius:8px;box-shadow:0 0 18px 2px var(--box-glow-soft)}
.box-head h2{margin-bottom:4px}
.box-stage{display:flex;flex-wrap:wrap;gap:22px 16px;justify-content:center;padding:28px 10px 10px;margin-top:14px;border-radius:20px;background:radial-gradient(ellipse 72% 62% at 50% 42%,var(--box-glow-soft),transparent 72%)}
.box-book{background:none;border:0;padding:0;min-height:0;width:132px;display:flex;flex-direction:column;align-items:center;gap:9px;cursor:pointer;white-space:normal;opacity:0;transform:translateY(30px) scale(.8)}
.box-stage.fan-open .box-book{opacity:1;transform:translateY(0) scale(1) rotate(var(--tilt,0deg));transition:transform .6s cubic-bezier(.2,.9,.26,1.18),opacity .45s ease;transition-delay:calc(var(--i,0)*75ms),calc(var(--i,0)*75ms)}
.box-book .book-cover{width:132px;height:198px;object-fit:cover;border-radius:9px;box-shadow:0 0 16px 2px var(--box-glow),0 0 46px 10px var(--box-glow-soft),0 14px 28px #0009;animation:box-breathe 3.6s ease-in-out infinite;animation-delay:calc(var(--i,0)*.3s)}
@keyframes box-breathe{0%,100%{filter:brightness(1.05) saturate(1.1)}50%{filter:brightness(1.17) saturate(1.18)}}
.box-book-title{font-size:13.5px;line-height:1.35;color:var(--text);text-align:center}
.box-hint{text-align:center;margin-top:12px}
.box-float{position:fixed;z-index:60;pointer-events:none;border-radius:9px;overflow:hidden;transform-origin:top left;transition:transform .62s cubic-bezier(.22,.9,.26,1),filter .62s ease,opacity .2s ease;box-shadow:0 0 24px 4px var(--box-glow),0 0 70px 18px var(--box-glow-soft),0 30px 60px #000b}
.box-float img{width:100%;height:100%;object-fit:cover;display:block}
.box-float-out{opacity:0}
@media (prefers-reduced-motion: reduce){.box-book{transition:none;opacity:1;transform:none}.box-book .book-cover{animation:none}.box-float{transition:none}}


/* Sliding shelf boards (this build) */
.shelf-pager{display:flex;align-items:center;gap:10px;margin:0 0 12px}
.shelf-arrow{min-width:54px;min-height:50px;font-size:20px;flex:none;border-radius:14px}
.shelf-pager-label{flex:1;min-width:0;text-align:center}
.shelf-pager-name{display:block;font:400 25px/1.2 Georgia,serif;color:var(--text);overflow-wrap:anywhere}
.shelf-pager-count{display:block;font-size:14px;color:var(--muted);margin-top:2px}
.shelf-deck{display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;height:78vh;height:min(78dvh,940px);scrollbar-width:none;border-radius:18px}
.shelf-deck::-webkit-scrollbar{display:none}
.shelf-deck>section.genre-shelf{flex:0 0 100%;min-width:0;height:100%;overflow-y:auto;scroll-snap-align:start;scroll-snap-stop:always;margin-bottom:0}
.shelf-deck .genre-shelf-heading h3{font-size:26px}

/* 1.4.71: heading Back pill (Sakura's order) — modest size, in line with the
 * other reader-heading buttons (34px / 11px); night-garden styling kept.
 * The 1.4.70 floating Back button is removed; the heading pill is the one Back. */
.back-button{min-height:36px!important;padding:7px 12px!important;font-size:12px!important;font-weight:600;color:#f4b8cd!important;background:#2a1a24!important;border:1px solid #a4768c!important;border-radius:999px!important;box-shadow:0 1px 5px #0007}
.back-button:active{background:#3d2434!important}

/* ---- Zen 2.0.0 Kindle-style shell (her screenshots, her night-garden skin) ---- */
#tabs{position:fixed;left:0;right:0;bottom:0;top:auto;z-index:80;display:flex;justify-content:space-around;align-items:stretch;gap:2px;padding:6px 8px calc(6px + env(safe-area-inset-bottom));background:rgba(22,13,20,.97);border-top:1.5px solid #a4768c55;box-shadow:0 -6px 24px #000a;backdrop-filter:blur(6px)}
#tabs .kindle-tab{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:52px;padding:5px 2px;background:none;border:none;border-radius:10px;color:#b8a3ae;font:600 11.5px/1.2 system-ui,sans-serif;letter-spacing:.4px;cursor:pointer}
#tabs .kindle-tab .zen-icon{width:21px;height:21px}
#tabs .kindle-tab.active{color:#ffc2da;background:#ff7eb61f}
body.reading #tabs{display:none}
body{padding-bottom:74px}
body.reading{padding-bottom:0}
.lib-search{display:flex;align-items:center;gap:8px;background:#ffffff10;border:1.5px solid #a4768c44;border-radius:12px;padding:8px 12px;margin:4px 0 10px}
.lib-search .zen-icon{width:18px;height:18px;flex:none;color:#d8a7bd}
.lib-search input{flex:1;min-width:0;background:none;border:none;outline:none;color:var(--ink,#f3e6ec);font:15px/1.4 system-ui,sans-serif}
.lib-search input::placeholder{color:#a68b99}
.home-search-go{flex:none;background:#ff7eb62b;border:1.5px solid #ff7eb655;color:#ffd7ea;border-radius:9px;padding:7px 13px;font:600 13px system-ui,sans-serif;cursor:pointer}
.lib-filterrow{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.lib-collections{display:flex;gap:8px;overflow-x:auto;padding:4px 2px 8px;scrollbar-width:none}
.lib-collections::-webkit-scrollbar{display:none}
.lib-chip{flex:none;background:#ffffff0d;border:1.5px solid #a4768c44;color:#d9c3cd;border-radius:999px;padding:7px 14px;font:600 13px system-ui,sans-serif;cursor:pointer;white-space:nowrap}
.lib-chip.big{padding:9px 18px;font-size:14px}
.lib-chip.active{background:linear-gradient(120deg,#ff7eb6,#e7549a);color:#fff;border-color:#ffc2da;box-shadow:0 2px 10px #e7549a55}
.lib-chip .zen-icon{width:15px;height:15px;vertical-align:-2px}
.lib-sort{margin-left:auto;font:600 12.5px system-ui,sans-serif;color:#b8a3ae}
.lib-sort select{background:#241722;color:#ffd7ea;border:1.5px solid #a4768c55;border-radius:8px;padding:6px 8px;font:600 13px system-ui,sans-serif}
.lib-count{font:13px system-ui,sans-serif;color:#b8a3ae;margin:2px 0 10px}
.lib-dl-shelf{display:flex;align-items:center;gap:8px;width:100%;justify-content:center;background:#ff7eb61c;border:1.5px dashed #ff7eb666;color:#ffd7ea;border-radius:12px;padding:11px;font:700 14px system-ui,sans-serif;cursor:pointer;margin-bottom:12px}
.lib-dl-shelf .zen-icon{width:17px;height:17px}
.lib-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px 10px}
.lib-tile{min-width:0}
.lib-tile .cover-open,.home-tile .cover-open{display:block;width:100%;padding:0;background:none;border:none;cursor:pointer}
.lib-tile .finished-wrap,.home-tile .finished-wrap{display:block;width:100%;border-radius:6px}
.lib-tile img.book-cover,.home-tile img.book-cover{width:100%;height:auto;display:block}
.lib-tile-title{font:12px/1.3 system-ui,sans-serif;color:#e8d5dd;margin-top:5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.lib-remove{display:block;margin-top:3px;padding:2px 0;background:none;border:none;color:#c98ba6;font:600 11px system-ui,sans-serif;cursor:pointer;text-align:left}
.lib-empty{grid-column:1/-1;text-align:center;padding:26px 0}
.dl-badge{position:absolute;z-index:4;right:6px;bottom:6px;width:23px;height:23px;border-radius:50%;background:rgba(18,10,16,.92);color:#ffc2da;font:700 13px/23px system-ui,sans-serif;text-align:center;border:1.5px solid #ffc2da;box-shadow:0 2px 6px #000c;pointer-events:none}
.dl-progress{position:absolute;z-index:4;left:0;right:0;bottom:0;height:7px;background:rgba(10,5,8,.72);pointer-events:none}
.dl-progress i{display:block;height:100%;background:linear-gradient(90deg,#ff7eb6,#ffc2da);transition:width .25s ease}
.dl-fail{position:absolute;z-index:5;left:0;right:0;bottom:0;background:rgba(74,10,26,.95);color:#ffe3ee;font:600 10.5px/1.3 system-ui,sans-serif;letter-spacing:.2px;text-align:center;padding:6px 5px;pointer-events:none}
.finished-ribbon.new-ribbon{background:linear-gradient(90deg,#c3b2d6,#9683b3);color:#171021}
.home-h{font:600 19px/1.3 Georgia,serif;color:#ffd7ea;margin:16px 0 8px}
.home-row{display:flex;gap:12px;overflow-x:auto;padding:4px 2px 10px;scrollbar-width:none}
.home-row::-webkit-scrollbar{display:none}
.home-tile{flex:0 0 106px;min-width:0}
.more-list{display:flex;flex-direction:column;gap:9px;margin-bottom:16px}
.more-item{display:flex;align-items:center;gap:11px;width:100%;text-align:left;background:#ffffff0d;border:1.5px solid #a4768c44;color:#f0dde6;border-radius:12px;padding:13px 15px;font:600 15px system-ui,sans-serif;cursor:pointer}
.more-item .zen-icon{width:19px;height:19px;color:#ff9ec7}
.more-danger{background:#e7549a22;border:1.5px solid #e7549a66;color:#ffb9d2;border-radius:10px;padding:10px 16px;font:700 13.5px system-ui,sans-serif;cursor:pointer}

/* ---- 2.0.0 reader rebuild: Kindle fit + chrome (her ruling 2026-12-02).
 * The FIT follows Kindle: justified text filling the page edge to edge,
 * Kindle-style measure and leading, pagination still fit-proved by the
 * reader's own measurer (the probe shares .reader-flow, so it measures
 * exactly what is painted, at whatever font/size she picks). Georgia
 * stays the default typeface — only the fit is Kindle's. ---- */
.reader-flow,.real-slide-curl .curl-copy{font-family:var(--rdr-font,Georgia,'Times New Roman',serif);font-size:calc(18px*var(--rdr-scale,0.85));line-height:var(--rdr-leading,1.45);text-align:justify;text-justify:inter-word;hyphens:auto;-webkit-hyphens:auto}
.reader-flow p{text-align:justify}
/* Page colors (Aa → Layout). Black is the untouched night-garden
 * default above; the light colors restyle only the sheet. */
.reading .reader-sheet[data-color="white"]{--page:#f8f5ef;--page-text:#241c20;background:#f8f5ef}
.reading .reader-sheet[data-color="cream"]{--page:#f3e9d2;--page-text:#2a2118;background:#f3e9d2}
.reading .reader-sheet[data-color="green"]{--page:#dfe8d8;--page-text:#1f2a1e;background:#dfe8d8}
.reading .reader-sheet[data-color="white"] .reader-flow,.reading .reader-sheet[data-color="cream"] .reader-flow,.reading .reader-sheet[data-color="green"] .reader-flow{text-shadow:none}
.reading .reader-sheet[data-color="white"]::after,.reading .reader-sheet[data-color="cream"]::after,.reading .reader-sheet[data-color="green"]::after{opacity:.12}
.reading .reader-sheet[data-color="white"] .curl-copy,.reading .reader-sheet[data-color="cream"] .curl-copy,.reading .reader-sheet[data-color="green"] .curl-copy{background:var(--page);color:var(--page-text)}
/* Brightness dimmer (Aa panel): a plain overlay the panel's slider
 * drives; Auto leaves the page at full brightness. */
.reader-dim{position:absolute;inset:0;background:#000;opacity:0;pointer-events:none;z-index:6;border-radius:inherit}
/* Bookmark ribbon — Kindle's corner spot, her pink. */
.bookmark-ribbon{position:absolute;top:0;right:14px;z-index:7;width:22px;height:30px;min-height:0;padding:0;border:0;border-radius:0 0 3px 3px;background:#d8a7bd33;clip-path:polygon(0 0,100% 0,100% 100%,50% 78%,0 100%);cursor:pointer}
.bookmark-ribbon.on{background:linear-gradient(180deg,#ff7eb6,#e7549a);box-shadow:0 2px 8px #e7549a66}
/* Top bar + toolbar additions */
.reader-aa{font:600 14px Georgia,serif;min-width:34px}
.reader-pagenum-wrap{display:inline-flex;align-items:center;gap:2px}
.reader-pagenum{background:none;border:0;color:inherit;font:inherit;min-height:36px;padding:7px 6px;cursor:pointer}
.reader-gridbtn{min-width:34px}
mark.tts-mark{background:#ff7eb659;color:inherit;border-radius:3px;box-shadow:0 0 0 1px #ff7eb62e}
/* Reader panels — bottom sheets in the chapter-finder's skin */
.reader-panel{position:fixed;left:50%;transform:translateX(-50%);bottom:0;width:min(720px,100%);max-height:78vh;overflow-y:auto;z-index:40;background:linear-gradient(160deg,#1e171b,var(--surface));border:1px solid var(--line);border-bottom:0;border-radius:18px 18px 0 0;box-shadow:0 -12px 40px #0b070a66;padding:16px 16px 14px}
.reader-menu-book{display:flex;gap:12px;align-items:flex-start;margin-bottom:12px}
.reader-menu-book .book-cover{width:44px;height:66px}
.reader-menu-book h3{font-size:19px;margin:0 0 3px}
.reader-menu-book .reader-night{margin-left:auto}
.reader-menu-rows{display:flex;flex-direction:column}
.reader-menu-row{justify-content:flex-start;min-height:48px;font-size:15px;background:none;border:0;border-bottom:1px solid var(--line);border-radius:0;text-align:left}
.reader-menu-sub{margin:6px 2px 2px;font-size:11.5px}
.about-cover{display:flex;justify-content:center;margin:6px 0 14px}
.about-facts{margin:0}
.about-facts>div{display:flex;justify-content:space-between;gap:14px;padding:8px 2px;border-bottom:1px solid var(--line)}
.about-facts dt{color:var(--muted);font-size:13px}
.about-facts dd{margin:0;font-size:13.5px;text-align:right}
.goto-row{display:flex;gap:10px;align-items:stretch}
.goto-row input{flex:1;margin:0;font-size:17px;text-align:center}
.annotations-h{font:600 12px system-ui,sans-serif;letter-spacing:1.2px;color:var(--pink);margin:16px 0 8px}
.annotation-row{display:flex;gap:6px;align-items:stretch}
.annotation-row .chapter-row{flex:1}
.annotation-snippet{display:block;font-size:11.5px;color:var(--muted);overflow-wrap:anywhere}
.annotation-del{flex:none;min-width:38px;background:none;border:0;color:#c98ba6}
.reader-search{margin-bottom:10px}
/* Aa panel */
.aa-tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin-bottom:14px}
.aa-tab{flex:1;background:none;border:0;border-bottom:2px solid transparent;border-radius:0;color:var(--muted);font:600 14px system-ui,sans-serif;min-height:40px}
.aa-tab.active{color:var(--pink);border-bottom-color:var(--pink)}
.aa-font-list{display:flex;flex-direction:column}
.aa-font-row{display:flex;align-items:center;gap:14px;justify-content:flex-start;background:none;border:0;border-bottom:1px solid var(--line);border-radius:0;min-height:52px;padding:6px 8px;text-align:left}
.aa-font-row .aa-glyph{font-size:24px;width:40px;text-align:center}
.aa-font-row .aa-font-name{flex:1;font-size:15px}
.aa-font-row .zen-icon{width:17px;height:17px;color:var(--pink)}
.aa-slider-row{display:flex;align-items:center;gap:10px;margin-top:12px}
.aa-slider-row input{flex:1}
.aa-a-small{font:14px Georgia,serif;color:var(--muted)}
.aa-a-big{font:24px Georgia,serif;color:var(--muted)}
.aa-colors{display:flex;gap:16px;margin:6px 0 14px}
.aa-color-cell{display:flex;flex-direction:column;align-items:center;gap:5px;font-size:11px;color:var(--muted)}
.aa-color-dot{width:40px;height:40px;min-height:40px;border-radius:50%;border:2px solid #ffffff2e;padding:0}
.aa-color-dot.selected{border-color:var(--pink);box-shadow:0 0 0 2px #ff7eb655}
.aa-check{display:flex;align-items:center;gap:9px;font-size:14px;color:var(--text);margin:10px 0}
.aa-check input{width:auto;margin:0;accent-color:var(--pink)}
.aa-toggle-row{display:flex;gap:14px;align-items:flex-start;justify-content:space-between;padding:12px 0;border-top:1px solid var(--line)}
.aa-toggle-row h4{margin:0 0 4px;font:600 15.5px system-ui,sans-serif}
.aa-toggle-row .muted{margin:0}
.aa-switch{flex:none;width:52px;height:30px;min-height:30px;border-radius:999px;background:#ffffff1c;border:1px solid var(--line);padding:2px;position:relative;cursor:pointer}
.aa-switch span{display:block;width:24px;height:24px;border-radius:50%;background:#cbb6c0;transition:transform .18s ease,background .18s ease}
.aa-switch.on{background:#e7549a}
.aa-switch.on span{transform:translateX(22px);background:#fff}
.aa-theme-list{display:flex;flex-direction:column}
.aa-theme-row{display:flex;align-items:center;gap:10px;justify-content:flex-start;width:100%;background:none;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:12px 6px;text-align:left}
.aa-theme-row>div{flex:1}
.aa-theme-row h4{margin:0 0 3px;font:600 15.5px system-ui,sans-serif}
.aa-theme-row .muted{margin:0}
.aa-theme-row .zen-icon{width:17px;height:17px;color:var(--pink)}
.aa-theme-row.selected h4{color:var(--pink)}
.aa-theme-use,.aa-theme-save{flex:none;font-size:12.5px;min-height:34px;padding:6px 12px}
.aa-brightness{display:flex;align-items:center;gap:9px;border-top:1px solid var(--line);margin-top:14px;padding-top:12px}
.aa-brightness input[type=range]{flex:1;margin:0}
.aa-sun{color:var(--muted);display:inline-flex}
.aa-sun .zen-icon{width:15px;height:15px}
.aa-sun.big .zen-icon{width:21px;height:21px}
.aa-auto{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--text);margin:0}
.aa-auto input{width:auto;margin:0;accent-color:var(--pink)}
/* Page-flip overview — a jump browser in Kindle's arrangement:
 * fanned pages, current page outlined, ribbons on bookmarked pages,
 * "Page X of N • P%" over a scrub slider, grid button at the left. */
.flip-view{position:fixed;inset:0;z-index:50;display:flex;flex-direction:column;background:radial-gradient(ellipse at 85% 0,#251c2055,transparent 52%),var(--bg);padding:10px 0 0}
.flip-top{display:flex;align-items:center;gap:10px;padding:2px 12px 10px}
.flip-title{flex:1;min-width:0;text-align:center}
.flip-title strong{display:block;font:500 16px Georgia,serif;color:#ecbdcf;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.flip-title span{font-size:11px;color:var(--muted)}
.flip-top-side{width:52px;flex:none}
.flip-strip{flex:1;display:flex;gap:14px;align-items:center;overflow-x:auto;overflow-y:hidden;padding:10px 8vw;scrollbar-width:none}
.flip-strip::-webkit-scrollbar{display:none}
.flip-card{position:relative;flex:0 0 auto;width:min(58vw,300px);height:min(62vh,470px);background:#1d161b;color:#d9c9d1;border:1px solid #a4768c30;border-radius:6px;padding:16px 14px;text-align:justify;overflow:hidden;cursor:pointer;box-shadow:0 10px 26px #0009}
.flip-card.current{outline:3px solid #4db8ff;outline-offset:2px;transform:scale(1.03);z-index:1}
.flip-card-text{display:block;font:9.5px/1.5 Georgia,serif;white-space:pre-wrap;overflow-wrap:anywhere;opacity:.92}
.flip-card-num{position:absolute;bottom:7px;right:10px;font:600 10px system-ui,sans-serif;color:#b2909e}
.flip-ribbon{position:absolute;top:0;right:12px;width:15px;height:22px;background:linear-gradient(180deg,#ff7eb6,#e7549a);clip-path:polygon(0 0,100% 0,100% 100%,50% 76%,0 100%)}
.flip-strip.grid{flex-wrap:wrap;align-content:flex-start;overflow-y:auto;overflow-x:hidden;padding:12px}
.flip-strip.grid .flip-card{width:calc(33.33% - 10px);height:200px;padding:9px 8px}
.flip-strip.grid .flip-card-text{font-size:5.5px;line-height:1.5}
.flip-bottom{display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:10px 14px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#140f12e8}
.flip-gridbtn{flex:none;width:42px;height:42px;min-height:42px;border-radius:10px}
#flipStatus{font:600 20px system-ui,sans-serif;color:#ece5e8;text-align:center}
.flip-slider-row{display:flex;align-items:center;gap:12px}
.flip-slider-wrap{flex:1;position:relative;padding-top:14px}
.flip-slider-wrap input[type=range]{width:100%;margin:0}
.flip-bubble{position:absolute;top:-6px;transform:translateX(-50%);background:none;color:#d8d2d6;font:600 13px/1 system-ui,sans-serif;padding:0;pointer-events:none}

.reader-scrub{flex:none;margin-top:6px;padding:0 2px}
.reader-scrub input[type=range]{width:100%;margin:0;display:block}

/* ============================================================
   vc 83 — the immersive page (her Kindle comparison, 2026-12-02:
   "the words cover the whole phone screen top to bottom").
   The header (title + toolbar row) and the bottom bar (Previous/
   Next, page line, scrub slider) LEAVE the page flow and float
   over it as fixed overlays, hidden until summoned (center tap
   or press-and-hold, app.js). Because they are out of flow in
   BOTH states, the sheet — and so the measured page — keeps the
   full height of the screen whether the bars are up or down:
   pagination never moves when the chrome comes and goes. The
   night-garden art (body.reading::before, fixed, full-bleed)
   stays behind the words exactly as before; only the framing
   bars go. z-index 20 keeps the chrome under the chapter finder
   (30), the reader panels (40) and the flip view (50).
   ============================================================ */
body.reading main{padding:0}
body.reading .reader-sheet{border-radius:0}
body.reading .reader-heading{position:fixed;top:0;left:50%;width:min(100%,720px);transform:translate(-50%,0);z-index:20;margin:0;padding:calc(10px + env(safe-area-inset-top)) 12px 16px;background:#0d090c;box-shadow:0 14px 30px rgba(5,3,5,.5);transition:opacity .22s ease,transform .22s ease,visibility .22s}
body.reading .reader-toolbar{position:fixed;left:50%;width:min(100%,720px);transform:translate(-50%,0);bottom:38px;z-index:20;margin:0;padding:14px 10px 0;background:#0d090c;box-shadow:0 -14px 30px rgba(5,3,5,.5);transition:opacity .22s ease,transform .22s ease,visibility .22s}
body.reading .reader-scrub{position:fixed;left:50%;width:min(100%,720px);transform:translate(-50%,0);bottom:0;z-index:20;margin:0;padding:2px 12px calc(8px + env(safe-area-inset-bottom));background:#0d090c;box-shadow:0 -14px 30px rgba(5,3,5,.5);transition:opacity .22s ease,transform .22s ease,visibility .22s}
body.reading:not(.chrome-on) .reader-heading,body.reading:not(.chrome-on) .reader-toolbar,body.reading:not(.chrome-on) .reader-scrub{opacity:0;visibility:hidden;pointer-events:none}
body.reading:not(.chrome-on) .reader-heading{transform:translate(-50%,-10px)}
body.reading:not(.chrome-on) .reader-toolbar,body.reading:not(.chrome-on) .reader-scrub{transform:translate(-50%,10px)}
/* Flip view: Kindle's hold-summoned arrangement — the toolbar row
   rides at the top of the overview, the title gets its own line. */
.flip-top{justify-content:space-between}
.flip-tools{display:flex;align-items:center;gap:2px}
.flip-title{flex:none;display:block;padding:2px 16px 8px}
/* ============================================================
   vc 84 — a readable backing for the summoned bars. In vc 83 the
   heading and bottom bar rode on gradients that faded to fully
   transparent, so the page's own words showed through behind the
   buttons and collided with them (her screenshot). While the
   chrome is summoned the three bars now sit on one translucent
   dark backing (rgba(13,9,12,.88) — the garden dims behind them,
   the words under them are muted to a ghost) with a soft shadow
   at the open edge. The bars are only ever visible summoned, so
   the backing simply IS their background.
   ============================================================ */
/* ---- vc 85: consolidated Kindle pass ---- */
.reader-progress{position:absolute;left:0;right:0;bottom:0;z-index:5;display:flex;justify-content:space-between;align-items:flex-end;padding:0 10px calc(6px + env(safe-area-inset-bottom));pointer-events:none;font:500 11px/1.3 system-ui,sans-serif;color:#e8d8de;text-shadow:0 1px 4px rgba(0,0,0,.85);letter-spacing:.02em}
.reader-progress-left{pointer-events:auto;background:none;border:0;margin:0;color:inherit;font:inherit;text-shadow:inherit;letter-spacing:inherit;padding:4px 2px;cursor:pointer;text-align:left}
.reader-progress-right{padding:4px 2px}
.reading .reader-sheet[data-color="white"] .reader-progress,.reading .reader-sheet[data-color="cream"] .reader-progress,.reading .reader-sheet[data-color="green"] .reader-progress{color:#3a2b31;text-shadow:none}
mark.search-mark{background:#ffd75e;color:#241a10;border-radius:2px;padding:0 1px;animation:search-flash 1.1s ease-in-out 2}
@keyframes search-flash{0%,100%{background:#ffd75e}50%{background:#ff9d3c}}
.reader-flow p.reader-chapter-head{font-size:1.5em;line-height:1.3;font-weight:600;text-align:center;letter-spacing:.03em;margin:1.2em 0 .9em}
.reader-flow p.reader-chapter-head:first-child{margin-top:.2em}
.reader-flow p.reader-chapter-lead::first-line{font-variant:small-caps;letter-spacing:.04em}
.flip-mini{white-space:normal;font-family:var(--rdr-font,Georgia,serif);font-size:5.6px;line-height:var(--rdr-leading,1.4);text-align:justify;hyphens:auto;-webkit-hyphens:auto}
.flip-mini p{margin:0 0 .5em;white-space:pre-wrap;orphans:1;widows:1;text-align:justify}
.flip-mini p.reader-chapter-head{font-size:1.5em;text-align:center}
.flip-strip.grid .flip-mini{font-size:3.4px}
.flip-view[data-color="white"] .flip-card{background:#f8f5ef;color:#2a2126}
.flip-view[data-color="cream"] .flip-card{background:#f3e9d2;color:#2a2126}
.flip-view[data-color="green"] .flip-card{background:#dfe8d8;color:#26302a}
.scrub-ticks{position:absolute;left:20px;right:20px;top:12px;height:0;pointer-events:none;z-index:2}
.flip-ticks{position:absolute;left:8px;right:8px;top:24px;height:0;pointer-events:none;z-index:2}
.scrub-ticks .tick,.flip-ticks .tick{position:absolute;top:0;width:2px;height:8px;transform:translate(-50%,-50%);background:rgba(243,198,211,.65);border-radius:1px}
.endbook-end{text-align:center;font:600 25px/1.25 var(--rdr-font,Georgia,serif);margin:10px 0 4px}
.endbook-note{text-align:center}
.aa-progress-list{display:flex;flex-direction:column;gap:6px;margin:6px 0 4px}
.aa-progress-row{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;text-align:left;background:#28222522;border:1px solid var(--line);border-radius:10px;padding:10px 12px;color:inherit;font-size:13px;cursor:pointer}
.aa-progress-row.selected{border-color:#ff7eb6;box-shadow:0 0 0 1px #ff7eb655}
#flipTime{display:block;text-align:center;font-size:12px;color:#a8969e;margin-top:2px}
/* ============================================================
   vc 86 — the progress readout gets its own home UNDER the text.
   vc 85 floated .reader-progress over the page's bottom line, so
   "Learning reading…" / the % sat ON TOP of her words (her
   screenshot: "Could u move that to up under the last sentence I
   dont like it over the words"). The sheet now reserves a slim
   footer strip — --reader-strip (30px, one small line) plus the
   bottom safe-area inset — that the book text NEVER flows into:
   the reader viewport (the box the page turner measures and the
   fit-proof paginates against) is exactly the sheet minus that
   strip, in EVERY state (cover, text page, scroll mode, chrome
   up or down), so pagination accounts for the strip by
   construction and the last sentence of every page ends above
   it. The readout keeps its vc 85 styling and tap-to-cycle
   behaviour, only its home moves: it lives in the strip, pinned
   to the sheet's bottom, under the viewport — never over a word.
   ============================================================ */
.reading .reader-sheet{--reader-strip:30px}
.reading .reader-viewport{height:calc(100% - var(--reader-strip) - env(safe-area-inset-bottom))}
.reader-progress{height:calc(var(--reader-strip,30px) + env(safe-area-inset-bottom));box-sizing:border-box;align-items:center}
/* ============================================================
   vc 88 — the sheet reaches the TRUE bottom of the screen.
   Her vc 87 screenshots: the text ended at ~78-80% of the
   display, the progress strip sat at ~85%, and painted garden
   ran on BELOW the strip to the navigation bar (~94%). Pixel
   measurement + the code chain agree on why: the app window
   is NOT edge-to-edge (MainActivity sets plain dark system
   bars, no window-inset flags), so the WebView's layout
   viewport — the box the fixed night-garden paints edge to
   edge (body.reading::before, inset:0) — already ends above
   the nav bar. But body.reading was sized with 100dvh, and
   on her WebView 100dvh resolves one navigation-bar height
   (~48 CSS px on her 360x780 CSS phone) SHORTER than that
   viewport: the nav bar is subtracted twice, once by the
   window and once by the unit. The flex chain (body -> main
   -> .reader-sheet) faithfully filled that shortened body,
   so the sheet — and the strip pinned to its bottom — ended
   ~48 CSS px above the true bottom, with garden showing
   through below it, exactly as photographed.
   The fix sizes the reading page from the viewport itself:
   while reading, html takes the viewport's full height
   (100% of the initial containing block — the same box the
   fixed garden paints) and body.reading takes 100% of html.
   Both rules are gated behind :has() so a WebView too old
   for :has() drops them TOGETHER and keeps the previous
   100vh/100dvh declarations — no engine can fall through to
   an unsized body. Nothing else moves: the vc 86 strip is
   still reserved out of the viewport, the vc 87 greedy fill
   still packs to it, scale 0.80 / leading 1.40 untouched.
   ============================================================ */
/* ============================================================
   vc 89 — the true bottom, UNGATED. vc 88 sized the reading
   page from the viewport through two rules gated behind the
   :has selector. On Sakura's phone the vc 88 build measured
   IDENTICAL to vc 87 — her fresh screenshot (18:31, the
   Chapter 4 page): last text line at ~80% of the display,
   the progress strip floating at ~87%, painted garden below
   it down to the nav bar — so on her WebView the gate never
   fired, the pair was dropped, and the shortened 100dvh
   sizing underneath silently stood: the fix no-opped on the
   only device that matters. Diagnosis confirmed from the
   shipped sheet: the gated pair was the ONLY path past the
   dvh sizing; without it the cascade IS the vc 87 geometry.
   The pair is removed (it survives only in the vc 88 history
   above) and replaced by a rule no engine can quietly drop:
   while reading, the body itself is the fixed shell —
   position fixed, all four offsets 0, width and height
   auto — so its box IS the initial containing block, the
   exact box the fixed night-garden paints edge to edge.
   Every property here is decades old: no feature test, no
   selector trick, nothing to fall through, and the old
   shortened sizing cannot survive alongside it (this rule
   lands after the base rule and overrides its height).
   The flex chain inside the shell (main, then the sheet)
   fills it exactly as before; the reserved strip still
   keeps the readout off her words; the greedy fill still
   packs to it; her type size and leading are untouched.
   ============================================================ */
body.reading{position:fixed;top:0;right:0;bottom:0;left:0;width:auto;height:auto}
/* ============================================================
   vc 90 — the bottom gap, fifth report: close the WHOLE gap.
   Her side-by-side proof (full-screenshot frame, 945x2048):
   Zen vc 89 — last line y=77.3%, readout y=85.3%, status bar
   AND nav bar both visible. Her Kindle (two shots) — last
   line y=86.5% / 90.7%, readout y=96.7% / 96.6%, NO system
   bars at all: Kindle reads in true immersive and its page
   reaches the physical bottom edge. Zen's loss was stacked
   in the REAL layout, not the model: (1) the native window
   never went edge-to-edge — MainActivity coloured the bars
   but kept them, and on API 35 its root inset listener pads
   the WebView by the system-bar insets — so the layout
   viewport the sheet fills is the box BETWEEN the bars
   (~700 of 780 CSS px on her phone), and the fixed shell of
   vc 89 faithfully filled that shorter box; (2) inside it,
   the vc 86 strip still reserved env(safe-area-inset-bottom)
   ON TOP of the 30px strip (strip height AND viewport calc),
   inflating the reserve and pushing the readout text further
   up inside a strip anchored to a bottom that was never the
   screen's bottom. vc 90 fixes both ends: natively, the
   window goes edge-to-edge and the bars hide while reading
   (MainActivity.setReadingImmersive, driven from app.js by
   the body.reading class; the root padding is zeroed in that
   state), so the viewport IS the physical screen; and here,
   the strip reserve becomes one flat Kindle-measured band —
   54px total, no safe-area term anywhere in the reader math
   (in immersive there is no bottom inset left to reserve).
   54px is Kindle's own geometry on her phone: readout text
   centred in it lands at ~96.6% of the full screen and the
   viewport bottom (sheet minus the band) puts an ordinary
   page's last line at ~89-91%, just above the readout.
   Untouched: the page turner, the hold-summoned flip view,
   Listen, Georgia, scale 0.80 / leading 1.40, the vc 87
   greedy fill (it packs to the viewport, whatever its size).
   ============================================================ */
.reading .reader-sheet{--reader-strip:54px}
.reading .reader-viewport{height:calc(100% - var(--reader-strip))}
.reader-progress{height:var(--reader-strip,54px);padding:0 10px}
/* ============================================================
   vc 91 — the page spans camera -> readout, and a clock moves
   into the top-left corner. Three findings from the vc 90 code:
   (1) BOTTOM — the greedy fill in reader.js was never the main
   leak: its fit reserve is 2px and a full page ends <1 line
   short of the viewport bottom by construction, and the widow
   pull-back only fires when the page stays within one line of
   full. The visible ~1.5-line band under her last line was a
   STACK of dead CSS space: the 54px strip band (the readout
   glyphs are one ~14px line centred in it, ~20px of the band
   is empty above them) + the sheet's 9px bottom padding + the
   main element's 8px bottom padding, both sitting between the
   viewport's bottom edge and the strip. vc 91 reclaims the
   paddings outright (reading main loses its vertical padding,
   the sheet loses its bottom padding — the strip is absolute
   and needs no padding under it) and trims the band 54 -> 45px,
   sized so the full span (cutout inset + one page of lines +
   the hair margin + the band) lands the last line 4-10px above
   the strip on her 780px frame.
   (2) TOP — vc 90's immersive hid the status bar the cutout
   lived in, so the first line rose under the punch-hole camera
   (her words: she had to slide the page down to show me; the
   resting page has words behind the camera). The web layer
   CAN see the cutout — but only with viewport-fit=cover,
   which index.html never declared, so env(safe-area-inset-top)
   read 0. With the meta in place the inset reports the cutout
   in immersive (decor-fits off, root padding zeroed) and the
   sheet's top padding becomes exactly that inset (floor 9px,
   the old padding, when an engine reports none): the first
   line sits RIGHT under the camera, no extra clearance.
   Pagination measures the live viewport clientHeight, which
   already excludes both paddings and the band, so the measure
   and the paint share the new box by construction — no text
   can paint under the camera and no bottom gap reopens.
   (3) CLOCK — her ask: a small clock at the very top left
   corner of the reading page. It lives in the same top band
   the cutout inset creates (her cutout is not at the left
   corner; the left inset is added for corner-cutout models),
   styled like the bottom readout (11px system-ui, same soft
   colour), painted by paintReaderClock on every progress
   paint and refreshed on a 20s interval; it is a child of the
   reader sheet and body.reading-gated, so it leaves with the
   book and never joins the tap-summoned chrome.
   Untouched: reader.js (turner, hold-flip, fill), the dex
   (vc 90 native immersive stands, token/Listen identical),
   Georgia, scale 0.80 / leading 1.40, immersive behaviour.
   ============================================================ */
body.reading main{padding-top:0;padding-bottom:0}
.reading .reader-sheet{--reader-strip:45px;padding-top:max(9px,env(safe-area-inset-top));padding-bottom:0}
.reading .reader-viewport{height:calc(100% - var(--reader-strip))}
.reader-progress{height:var(--reader-strip,45px);padding:0 10px}
.reader-clock{position:absolute;top:max(6px,calc(env(safe-area-inset-top) - 23px));left:calc(12px + env(safe-area-inset-left));z-index:5;display:none;font:500 11px/1.3 system-ui,sans-serif;color:#e8d8de;text-shadow:0 1px 4px rgba(0,0,0,.85);letter-spacing:.02em;pointer-events:none}
.reading .reader-sheet[data-color="white"] .reader-clock,.reading .reader-sheet[data-color="cream"] .reader-clock,.reading .reader-sheet[data-color="green"] .reader-clock{color:#3a2b31;text-shadow:none}

/* vc 95 — the Listen player bar (her Kindle comparison, 2026-12-03):
   a persistent bar in the reading flow under the sheet. The sheet is
   flex:1, so it shrinks to fit above the bar — the bar never covers
   a word — and the bar is not part of the immersive chrome, so the
   chrome-on rules never hide it while she listens or sits paused.
   Night-garden skin: deep plum-black glass, her pink for the living
   progress and the play/pause face, the toolbar's muted rose-grey
   for the quiet stop. While the bar is up, the summonable bottom
   chrome (toolbar + scrub) parks ABOVE it via --player-h, which
   paintPlayerBar stamps from the bar's real height. */
.player-bar{flex:none;display:flex;align-items:center;gap:10px;margin-top:8px;padding:9px 10px calc(9px + env(safe-area-inset-bottom));background:linear-gradient(180deg,#1d1219,#120b10);border:1px solid #a4768c33;border-radius:12px;box-shadow:0 -8px 22px rgba(5,3,5,.35)}
.player-toggle{flex:none;width:44px;height:44px;border-radius:50%;border:1px solid #f4539b66;background:#f4539b26;color:#ffd7e8;display:flex;align-items:center;justify-content:center;padding:0;cursor:pointer}
.player-toggle .zen-icon{width:20px;height:20px}
.player-mid{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.player-time{font:500 11.5px/1.35 system-ui;color:#e6d5dc;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.player-track{height:4px;border-radius:2px;background:#ffffff22;overflow:hidden}
.player-fill{height:100%;border-radius:2px;background:linear-gradient(90deg,#f4539b,#ff8fbf);transition:width .6s ease}
.player-stop{flex:none;width:36px;height:36px;border-radius:50%;background:none;border:1px solid transparent;color:#a8969e;display:flex;align-items:center;justify-content:center;padding:0;cursor:pointer}
.player-stop .zen-icon{width:16px;height:16px}
body.player-on .reader-toolbar{bottom:calc(var(--player-h,64px) + 38px)}
body.player-on .reader-scrub{bottom:var(--player-h,64px)}

/* ---- vc 100: her star ratings + the Rewrite List ---- */
.zen-stars{display:flex;gap:2px;margin-top:4px}
.zen-star{flex:1 1 0;background:none;border:none;padding:5px 0;margin:0;font-size:19px;line-height:1;color:#a8969e;cursor:pointer;-webkit-tap-highlight-color:transparent}
.zen-star.on{color:#ffb52e}
/* vc 101 star-tap fix (2026-12-04): the book-row era rule
   .cover-open{height:100%} was never overridden for library tiles,
   so each tile's cover button stretched to the tile's full height
   and pushed the title + star row BELOW the tile's bottom edge,
   where the next row's cover button painted over them — real taps
   hit the neighbouring book's cover instead of the stars (the
   jsdom harness's .click() bypasses hit-testing, so it passed).
   Let the cover button wrap its artwork again inside lib tiles so
   the title and stars live inside their own tile, and lift the
   star row above any residual overlap so what she sees is what
   she taps. */
.lib-tile .cover-open{height:auto}
.lib-tile .finished-wrap{height:auto}
.zen-stars{position:relative;z-index:3}
/* vc 101 no-star rule: the plain-words marker on a Rewrite List
   tile for a book she finished but never starred. */
.lib-rewrite-note{margin-top:3px;font-size:11.5px;font-weight:700;line-height:1.25;color:#ff9fb6;letter-spacing:.02em}
.endbook-rate-label{text-align:center;color:#e8d5dd;font:13px/1.4 system-ui,sans-serif;margin:12px 0 0}
.endbook-stars .zen-stars{justify-content:center;margin-top:2px}
.endbook-stars .zen-star{flex:0 0 auto;padding:5px 8px;font-size:26px}

/* ---- vc 100: ratings sync settings (More) ---- */
.ratings-sync-state{font:600 15px/1.4 system-ui,sans-serif;color:#e8d5dd}
.ratings-sync-label{display:block;font:12px/1.3 system-ui,sans-serif;color:#a8969e;margin:10px 0 4px}
.ratings-sync-input{width:100%;box-sizing:border-box;background:#1d1520;border:1px solid #4a3542;border-radius:8px;color:#e8d5dd;font:14px/1.4 system-ui,sans-serif;padding:9px 10px}
.ratings-sync-save{margin-top:12px}

/* ---- vc 100: her Muse link ---- */
.claude-link{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;box-sizing:border-box;background:linear-gradient(135deg,#2a1622,#1d1520);border:1.5px solid #f4539b;border-radius:14px;padding:16px 18px;margin:0 0 14px;cursor:pointer;text-align:left;-webkit-tap-highlight-color:transparent}
.claude-link-name{font:700 22px/1.2 system-ui,sans-serif;color:#ff8fbf;letter-spacing:.05em}
.claude-link-sub{font:15px/1.35 system-ui,sans-serif;color:#e8d5dd}

/* ================================================================
   LAMARIA'S NAUGHTY SPOT — her own black & pink.
   Not Sakura's blossom garden: true black glass, neon hot pink
   (#ff2e88) leading, fuchsia-violet second, a black moon ringed
   in pink. Same Kindle-style app underneath, different skin.
   ================================================================ */
:root{--bg:#070409;--surface:#0e0810;--text:#fdf2f8;--pink:#ff2e88;--accent:#ff2e88;--muted:#c9a3b8;--line:#ff2e8830;--field:#0a060d;--page:#0a060c;--page-text:#f3e3ec}
body[data-midnight=true]{--bg:#050308;--surface:#0a050c;--text:#f7e8f1;--muted:#b48ea2;--field:#08040a;--page:#08040a;--page-text:#ecd9e4}
body{background:radial-gradient(ellipse at 85% 0,#ff2e8822,transparent 52%),radial-gradient(ellipse at 8% 100%,#7b2ff712,transparent 46%),var(--bg)}
button{background:#150a18;border-color:#ff2e8833}
button:hover{border-color:#ff2e8888;background:#1d0d20}
button.primary,.active.play-pill{background:linear-gradient(135deg,#ff2e88,#c2185b);color:#fff;box-shadow:0 0 18px #ff2e8855,0 0 4px #ff2e8866}
input,select{background:#0a060d}
nav{background:#050308f2;border-bottom-color:#ff2e8833}
nav button.active{background:#ff2e8826;border-color:#ff2e8866;color:#ffd7ea;box-shadow:0 0 14px #ff2e8833}
.panel{background:linear-gradient(140deg,#170a1cd9,#0c060f);border-color:#ff2e882b;box-shadow:0 8px 28px #00000088}
.book-row{background:linear-gradient(160deg,#180a1e99,#0b060f);border-color:#ff2e8824}
.book-title{color:#ffe3f1}
.eyebrow{color:#ff5ca8}
#notice{background:#170a1e;border-color:#ff2e8855;color:#ffd7ea}
footer{color:#b97d9a}footer>span{color:#ff2e88}
/* hero: black glass with a neon rim and the black-pink moon */
.app-hero{background:radial-gradient(ellipse at 83% 12%,#ff2e8838,transparent 46%),linear-gradient(120deg,#0d0510,#070409 65%,#160818);border-color:#ff2e8845;box-shadow:0 0 34px #ff2e8822,0 14px 34px #00000090}
.app-hero .garden-layer{filter:brightness(.34) saturate(.5) hue-rotate(-14deg)}
.app-hero .garden-view::after{background:linear-gradient(90deg,#070409f7 0,#070409b8 44%,#07040940 100%)}
.hero-copy h1{color:#fff0f7;text-shadow:0 2px 16px #ff2e8840}
.hero-copy h1 em{color:#ff5ca8}
.garden-link{color:#ff5ca8;border-bottom-color:#ff2e8866}
.night-toggle{background:#0a060dd9;color:#ffc7de}
.blazi-label{color:#e8b7cd}
.blazi-speech{background:#120714f7;border-color:#ff2e885e;color:#ffe3f1}
.garden-petals i{background:#ff5ca8}
/* welcome doors in her black, seal in neon pink */
.welcome-gate{background:#070409}
.garden-scene{background:radial-gradient(ellipse at 70% 18%,#ff2e8830,transparent 38%),linear-gradient(#0b0510,#120714 65%,#070409)}
.garden-scene .garden-layer{filter:brightness(.36) saturate(.55) hue-rotate(-14deg)}
.shoji-door{border-color:#1c0a16;background:repeating-linear-gradient(0deg,transparent 0,transparent 119px,#2a0e20 120px,#2a0e20 124px),repeating-linear-gradient(90deg,transparent 0,transparent 67px,#2a0e20 68px,#2a0e20 72px),radial-gradient(ellipse at 60% 40%,#3d1030,#0d0510)}
.door-seal{background:#160714f2;border-color:#ff2e88aa;box-shadow:0 0 44px #ff2e8855}
.door-seal small{color:#ffc7de}
.welcome-kicker{color:#ff8fbe}
.welcome-message h2{color:#fff0f7}.welcome-message h2 em{color:#ff5ca8}
.skip-welcome{background:#1607147a;color:#ffc7de}
/* reader in her black */
.reading .reader-sheet{border-color:#ff2e8824}
.reader-toolbar button{background:#1a0b1622}

/* ---------- THE SCANNER (from Sakura's Nook PinGate) ---------- */
body.at-door{overflow:hidden}
.scanner-gate{position:fixed;inset:0;z-index:200;background:radial-gradient(ellipse at 50% -6%,#ff2e8830,transparent 55%),radial-gradient(ellipse at 88% 108%,#7b2ff71c,transparent 50%),#050308;color:#fdf2f8;display:flex;align-items:flex-start;justify-content:center;overflow:auto;padding:calc(18px + env(safe-area-inset-top)) 20px calc(26px + env(safe-area-inset-bottom))}
.scanner-gate[hidden]{display:none!important}
.scanner-door{width:100%;max-width:430px;text-align:center;margin:auto}
.scanner-moon{width:118px;height:118px;object-fit:contain;filter:drop-shadow(0 0 22px #ff2e8870)}
.scanner-kicker{font:600 10px/1.5 system-ui,sans-serif;letter-spacing:4px;color:#ff8fbe;margin:8px 0 0}
.scanner-title{font:400 44px/1.05 Georgia,serif;letter-spacing:-1px;margin:4px 0 6px;color:#fff0f7}
.scanner-title em{color:#ff2e88;font-weight:400}
.scanner-sub{font:italic 13px/1.6 Georgia,serif;color:#c9a3b8;margin:0 0 20px}
.scanner-frame{position:relative;height:118px;border:1px solid #ff2e8866;border-radius:18px;background:linear-gradient(180deg,#0d0510,#08040a);overflow:hidden;box-shadow:inset 0 0 34px #ff2e8818,0 0 24px #ff2e8822}
.scanner-frame::before,.scanner-frame::after{content:'';position:absolute;left:10px;right:10px;height:1px;background:#ff2e8833}
.scanner-frame::before{top:12px}.scanner-frame::after{bottom:12px}
.scanner-line{position:absolute;left:6px;right:6px;height:26px;top:-30px;border-radius:8px;background:linear-gradient(180deg,transparent,#ff2e8840 45%,#ff5ca8cc 50%,#ff2e8840 55%,transparent);box-shadow:0 0 18px #ff2e88aa;animation:scan-idle 3.4s ease-in-out infinite}
@keyframes scan-idle{0%,100%{transform:translateY(0)}50%{transform:translateY(140px)}}
.scanner-frame.scanning .scanner-line{animation:scan-pass .55s ease-in-out 2}
@keyframes scan-pass{0%{transform:translateY(0)}100%{transform:translateY(140px)}}
.scanner-dots{display:flex;gap:12px;justify-content:center;margin:18px 0 8px}
.scanner-dots i{width:13px;height:13px;border-radius:50%;border:1px solid #ff5ca8;background:transparent;transition:background .15s,box-shadow .15s}
.scanner-dots i.filled{background:#ff2e88;box-shadow:0 0 10px #ff2e88aa}
.scanner-status{min-height:20px;font-size:13px;color:#e8b7cd;margin:0 0 14px}
.scanner-pad{display:grid;grid-template-columns:repeat(3,74px);gap:10px;justify-content:center}
.scanner-pad button{min-height:56px;font-size:21px;border-radius:16px;background:#150a18;border:1px solid #ff2e883d;color:#fdf2f8}
.scanner-pad button:active{background:#ff2e8833;border-color:#ff2e88}
.scanner-gate.denied .scanner-door{animation:door-shake .4s ease}
@keyframes door-shake{0%,100%{transform:translateX(0)}25%{transform:translateX(-7px)}75%{transform:translateX(7px)}}
.scanner-gate.opening{opacity:0;transition:opacity .6s ease}
.scanner-tip{margin:22px auto 0;max-width:340px;font-size:12px;line-height:1.6;color:#a97e94}
.scanner-love{margin-top:14px;font:italic 14px Georgia,serif;color:#ff5ca8}
@media(prefers-reduced-motion:reduce){.scanner-line{animation:none;top:44px}}
