:root{--bg:#141321;--bg2:#1a192a;--surface:#201f33;--surface2:#29283c;--surface3:#343149;--cream:#f5eced;--muted:#b0aaba;--dim:#898598;--accent:#e7aac0;--accent2:#efc9bb;--line:rgba(237,217,233,.13);--serif:"Yu Mincho","Hiragino Mincho ProN","Noto Serif JP",Georgia,serif;--sans:"Hiragino Kaku Gothic ProN","Yu Gothic","Meiryo",system-ui,sans-serif;--radius:16px}
*,*::before,*::after{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:105px}body{margin:0;background:var(--bg);color:var(--cream);font-family:var(--sans);line-height:1.75;min-width:320px;-webkit-font-smoothing:antialiased}body.modal-open{overflow:hidden}body.reduce-motion *,body.reduce-motion *::before,body.reduce-motion *::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}a{color:inherit;text-decoration:none}button,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}img{display:block;max-width:100%}h1,h2,h3,p{margin-top:0}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #f2d3a9;outline-offset:4px}::selection{background:#cc8fa9;color:#161525}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip-link{position:fixed;z-index:1000;top:-100px;left:14px;background:#f7e3ed;color:#201c2a;padding:10px 14px}.skip-link:focus{top:12px}.shell{width:min(1180px,calc(100% - 80px));margin-inline:auto}.grain{position:fixed;z-index:30;inset:0;pointer-events:none;opacity:.11;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.48' numOctaves='2' seed='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.2'/%3E%3C/svg%3E")}
.site-header{height:91px;position:sticky;z-index:25;top:0;background:rgba(20,19,33,.92);backdrop-filter:blur(18px);border-bottom:1px solid var(--line)}.header-inner{height:100%;display:flex;align-items:center;justify-content:space-between;gap:36px}.brand{display:inline-flex;gap:13px;align-items:center;flex-shrink:0}.brand-symbol{font-size:41px;color:var(--accent);line-height:1}.brand-type{display:flex;flex-direction:column;line-height:1.2}.brand-type strong{font-family:var(--serif);font-size:27px;font-weight:700;letter-spacing:.18em}.brand-type small{font-family:Georgia,serif;letter-spacing:.25em;font-size:9px;color:var(--accent);margin-top:5px}.main-nav{display:flex;align-items:center;gap:37px;margin-left:auto}.main-nav a{font-size:12px;letter-spacing:.06em;color:#c8c2ce;transition:color .2s}.main-nav a:hover{color:#fff}.header-shelf{display:flex;align-items:center;gap:8px;border:1px solid rgba(231,170,192,.4);border-radius:100px;padding:10px 16px;color:var(--accent);font-size:12px;white-space:nowrap}.header-shelf>span:first-child{font-size:19px;line-height:1}.tiny-count{background:#32293a;border-radius:10px;min-width:20px;padding:1px 5px;text-align:center;font-size:10px}
.hero{min-height:650px;padding-top:68px;padding-bottom:82px;display:grid;grid-template-columns:1fr .86fr;align-items:center;gap:40px;position:relative}.hero::before{content:"";width:660px;height:600px;position:absolute;right:0;top:-95px;background:radial-gradient(ellipse,#7b4f72 0%,transparent 66%);opacity:.2;pointer-events:none}.hero-copy{position:relative;z-index:2}.eyebrow,.section-kicker{font-family:Georgia,'Times New Roman',serif;letter-spacing:.22em;color:var(--accent);font-size:12px;font-weight:600}.eyebrow{display:flex;align-items:center;gap:12px;margin-bottom:27px}.eyebrow-line{height:1px;width:31px;background:var(--accent)}.eyebrow-sparkle{margin-left:2px;font-size:18px}.hero h1{font-family:var(--serif);font-weight:600;font-size:clamp(38px,4.3vw,65px);line-height:1.65;letter-spacing:.065em;white-space:nowrap;margin-bottom:22px}.hero h1 em{color:var(--accent);font-style:normal;position:relative}.hero h1 em::after{content:"";position:absolute;bottom:-7px;left:7px;right:5px;height:1px;background:#e7aac0;opacity:.5}.hero-desc{font-size:14px;line-height:2.3;color:#c2b9c7;margin-bottom:32px;letter-spacing:.025em}.hero-cta{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.button{display:inline-flex;justify-content:center;align-items:center;gap:29px;min-height:53px;border-radius:6px;padding:13px 24px;font-weight:700;letter-spacing:.03em;font-size:12px;border:1px solid transparent;transition:transform .22s,background .22s,border-color .22s;text-align:center}.button:hover{transform:translateY(-2px)}.button-primary{color:#24202a;background:linear-gradient(110deg,#ebbbc7,#efcbbd);border-color:#eac4cd}.button-primary:hover{background:#ffe0d8}.button-outline{background:transparent;color:var(--cream);border-color:#746c7c}.button-outline:hover{border-color:var(--accent);background:#262337}.hero-facts{display:flex;align-items:center;gap:16px;margin-top:37px;color:#a9a1b0;font-size:11px}.hero-facts b{font-family:Georgia,serif;color:var(--accent2);font-size:18px;margin-right:4px;font-weight:500}.hero-facts i{height:13px;width:1px;background:var(--line)}
.hero-art{height:525px;position:relative;display:flex;justify-content:center;align-items:center}.hero-back-card{position:absolute;width:365px;height:490px;top:17px;left:calc(50% - 152px);transform:rotate(8deg);border-radius:12px;background:#493c53;border:1px solid #9b7687;box-shadow:0 25px 60px rgba(0,0,0,.21)}.hero-cover{height:500px;width:368px;border-radius:12px;position:relative;overflow:hidden;z-index:2;box-shadow:0 30px 80px rgba(1,0,10,.52);transform:rotate(-4deg);border:1px solid #ae91a5}.hero-cover img{height:100%;width:100%;object-fit:cover}.hero-cover::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(14,14,30,.25) 0%,transparent 42%,rgba(16,12,29,.96) 100%)}.cover-toplabel{position:absolute;top:22px;left:22px;z-index:2;font-family:Georgia,serif;font-size:10px;letter-spacing:.12em;color:#fdf3ec}.hero-cover-text{position:absolute;z-index:2;bottom:37px;left:31px;right:20px;display:flex;flex-direction:column;gap:6px}.hero-cover-text small{font-family:Georgia,serif;letter-spacing:.22em;color:#efbfcb;font-size:10px}.hero-cover-text strong{font-family:var(--serif);font-size:37px;font-weight:600;letter-spacing:.08em}.hero-cover-text span{font-size:13px;color:#e9dce6}.hero-note{position:absolute;z-index:4;right:0;bottom:37px;display:flex;align-items:center;gap:11px;background:#f3dadd;color:#433240;padding:16px 23px;box-shadow:0 11px 40px #04031066;border-radius:4px;transform:rotate(4deg);font-family:var(--serif);font-size:12px;line-height:1.6}.hero-note strong{font-size:14px}.note-shape{border-radius:50%;background:#e4b7c2;width:35px;height:35px;display:grid;place-items:center;font-size:17px}.floating-star{position:absolute;color:#e6c9ca;z-index:3}.star-one{top:19px;right:19px;font-size:41px}.star-two{left:12px;bottom:67px;font-size:14px}
.strip{background:#2a2436;border-block:1px solid rgba(244,214,231,.1);overflow:hidden}.strip-inner{height:55px;display:flex;align-items:center;justify-content:space-between;gap:15px;white-space:nowrap}.strip span{color:#d8b5c8;font-family:Georgia,serif;font-size:10px;letter-spacing:.16em}
.section{padding-top:117px;padding-bottom:45px}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:22px;margin-bottom:38px}.section-kicker{margin-bottom:12px}.section-heading h2{font-family:var(--serif);font-size:34px;line-height:1.5;letter-spacing:.06em;font-weight:600;margin-bottom:7px}.section-subtitle{color:#aaa4b7;font-size:13px;line-height:1.9;margin-bottom:0}.section-count{font-family:Georgia,serif;font-size:11px;letter-spacing:.14em;color:#8d8299;white-space:nowrap}.filter-bar{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:25px}.filter-pills{display:flex;gap:8px;flex-wrap:wrap}.pill{border:1px solid #514a5e;background:transparent;border-radius:100px;color:#bab3c2;font-size:11px;padding:10px 17px;transition:.2s}.pill:hover{border-color:#d4a3b6;color:#fff}.pill.is-active{background:#d9acbe;color:#252031;border-color:#e9b9c9;font-weight:700}.searchbox{display:flex;align-items:center;gap:9px;border:1px solid #524b62;background:#201e30;border-radius:7px;padding:8px 12px 8px 14px;color:#a79cae;min-width:225px}.searchbox span:first-child{font-size:24px;line-height:1}.searchbox input{outline:none;background:transparent;color:#fff;border:0;min-width:0;width:100%;font-size:12px}.searchbox input::placeholder{color:#817a90}.story-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.story-card{background:#211f31;border:1px solid var(--line);border-radius:13px;overflow:hidden;transition:border-color .25s,transform .25s;min-width:0}.story-card:hover{transform:translateY(-4px);border-color:#d6aec29e}.story-cover{height:310px;position:relative;overflow:hidden;background:#3b354e}.story-cover img{width:100%;height:100%;object-fit:cover;object-position:center 44%;transition:transform .45s}.story-card:hover .story-cover img{transform:scale(1.045)}.story-cover::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(16,16,28,.22) 0%,transparent 40%,rgba(24,18,32,.72) 100%)}.cover-index{position:absolute;z-index:2;left:18px;top:16px;font-family:Georgia,serif;letter-spacing:.15em;font-size:11px;color:#fff;background:#201b2b9e;border:1px solid #f4dcde5c;padding:5px 10px;border-radius:3px}.favorite-button{position:absolute;z-index:3;right:14px;top:14px;border:1px solid #e9d3dc7d;background:#231d32aa;color:#fff;border-radius:100%;width:39px;height:39px;font-size:25px;display:grid;place-items:center;line-height:1;transition:.2s}.favorite-button:hover{background:#594052}.favorite-button.is-favorite{background:#eab6c8;color:#2c2131}.cover-completed{position:absolute;z-index:2;left:18px;bottom:16px;background:#1b1829b8;border:1px solid #f6d8df73;border-radius:4px;padding:5px 10px;font-size:10px;color:#f6d3df}.card-body{padding:20px 21px 23px}.card-meta{display:flex;align-items:center;gap:11px;color:#d6b8c5;font-family:Georgia,serif;font-size:10px;letter-spacing:.08em;margin-bottom:9px}.card-meta i{width:3px;height:3px;border-radius:50%;background:#948496}.card-body h3{font-family:var(--serif);font-size:23px;line-height:1.5;letter-spacing:.04em;margin-bottom:9px;font-weight:600}.card-desc{color:#aaa4b6;font-size:12px;min-height:50px;line-height:1.9;margin-bottom:14px}.card-tags{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:22px}.tag{color:#bdb1c4;background:#302c40;padding:3px 9px;border-radius:3px;font-size:10px}.card-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding-top:17px}.card-free{display:flex;align-items:center;gap:6px;font-family:Georgia,serif;font-size:12px;color:#e5bfcc}.card-play{display:inline-flex;gap:16px;align-items:center;background:transparent;border:0;color:#fff;font-size:12px;padding:8px 0}.card-play span{font-size:20px;color:var(--accent)}.card-play:hover{color:var(--accent)}.empty-state{text-align:center;padding:50px 10px;color:#ada6b6;border:1px dashed var(--line);border-radius:10px}
.quote-banner{margin-top:55px;margin-bottom:3px;min-height:220px;background:radial-gradient(ellipse at 40% 50%,#483148 0%,#2d2537 62%,#211e30 100%);border:1px solid #7c566b65;border-radius:12px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;position:relative;overflow:hidden;padding:32px}.quote-banner::before,.quote-banner::after{content:"✧";position:absolute;top:calc(50% - 24px);color:#b98aab;font-size:50px;opacity:.4}.quote-banner::before{left:9%}.quote-banner::after{right:9%}.quote-ornament{font-family:Georgia,serif;font-size:49px;color:#ca90ad;line-height:.5}.quote-banner p{font-family:var(--serif);font-size:19px;line-height:2;margin-bottom:12px;letter-spacing:.1em}.quote-banner strong{color:#f5c5d4;font-weight:500}.quote-banner>span{font-family:Georgia,serif;font-size:10px;letter-spacing:.25em;color:#c6a5be}
.shelf{padding-top:105px}.shelf-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:25px}.stat-tile{background:#211e31;border:1px solid var(--line);border-radius:10px;display:flex;align-items:center;gap:16px;padding:21px 25px}.stat-tile>strong{font-family:Georgia,serif;font-weight:400;color:#f4cbd3;font-size:34px;line-height:1}.stat-tile strong span{font-size:18px;color:#9d8298}.stat-tile>span{font-size:11px;color:#bab2c0}.shelf-panels{display:grid;grid-template-columns:1fr 1fr;gap:16px}.shelf-panel{background:#211e31;border:1px solid var(--line);border-radius:10px;padding:24px}.panel-title{display:flex;justify-content:space-between;align-items:center;gap:14px;padding-bottom:15px;border-bottom:1px solid var(--line)}.panel-title h3{font-size:14px;font-weight:700;margin:0}.panel-title small{font-family:Georgia,serif;color:#8b8198;letter-spacing:.1em;font-size:10px}.mini-list{display:flex;flex-direction:column;gap:6px;padding-top:11px}.mini-item{display:flex;align-items:center;gap:12px;border-radius:7px;padding:9px;text-align:left;background:transparent;border:0;color:inherit;width:100%;transition:background .2s}.mini-item:hover{background:#332c40}.mini-item img{width:44px;height:52px;border-radius:4px;object-fit:cover}.mini-copy{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}.mini-copy b{font-family:var(--serif);font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mini-copy small{font-size:10px;color:#aea4b8}.mini-arrow{font-size:20px;color:#dda8bd}.mini-empty{font-size:12px;line-height:1.9;color:#8f879c;margin:0;padding:17px 3px}.ending-progress{background:#211e31;border:1px solid var(--line);padding:26px;border-radius:10px;margin-top:16px}.progress-head{display:flex;justify-content:space-between;gap:16px;font-size:12px;color:#e7dce4;margin-bottom:12px}.progress-head span:last-child{font-family:Georgia,serif;color:#edbbcd}.progress-track{height:5px;border-radius:20px;overflow:hidden;background:#494054}.progress-track span{display:block;width:0;height:100%;background:#e5aec3;transition:width .3s}.ending-badges{display:flex;flex-wrap:wrap;gap:11px;margin-top:19px}.ending-badge{font-size:11px;border:1px solid #51475e;border-radius:5px;padding:8px 10px;color:#817b8f;background:#262337}.ending-badge.unlocked{color:#f5d6df;border-color:#b48097;background:#3b2d42}
.guide{padding-top:105px;padding-bottom:110px}.guide-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.guide-step{padding:26px 24px 23px;border:1px solid var(--line);border-radius:10px;background:#211e31;min-height:210px}.guide-step>span{font-family:Georgia,serif;color:#bb90ae;font-size:14px;letter-spacing:.1em}.guide-icon{font-size:27px;color:#e2b9c4;margin:13px 0 6px}.guide-step h3{font-family:var(--serif);font-size:18px;margin-bottom:9px}.guide-step p{font-size:12px;line-height:1.9;color:#ada6b7;margin-bottom:0}.guide-note{display:flex;align-items:center;gap:16px;margin-top:20px;border:1px solid #55485b;border-radius:9px;padding:16px 19px;background:#2a2335}.guide-note>span{font-size:26px;color:var(--accent)}.guide-note p{font-size:11px;line-height:1.9;color:#c6bccc;margin:0;flex:1}.inline-action{flex-shrink:0;background:transparent;border:0;color:#efc1cf;font-size:12px;text-decoration:underline;text-underline-offset:4px}
.footer{background:#0f0e1a;border-top:1px solid var(--line);padding:48px 0}.footer-inner{display:flex;justify-content:space-between;align-items:start;gap:25px}.footer-brand{font-family:var(--serif);font-size:23px;letter-spacing:.13em}.footer-brand small{font-family:Georgia,serif;font-size:11px;letter-spacing:.13em;color:#d4afc5}.footer-inner>div:first-child p{color:#9e94aa;font-size:11px;margin:8px 0 0}.footer-info{text-align:right}.footer-info p{font-size:10px;line-height:1.8;color:#aaa0b0;margin:0 0 3px}.footer-info small{display:block;font-family:Georgia,serif;font-size:10px;letter-spacing:.08em;color:#766f84;margin-top:14px}
/* Interactive reader */
.reader{position:fixed;z-index:100;inset:0;background:#10101b;overflow:auto}.reader-backdrop{position:fixed;inset:0;background:radial-gradient(ellipse at 80% 20%,#53374c55,transparent 64%);pointer-events:none}.reader-shell{position:relative;width:min(1240px,100%);height:min(850px,100dvh);min-height:580px;margin:auto;display:flex;flex-direction:column}.reader-header{height:73px;flex-shrink:0;display:grid;grid-template-columns:1fr 1fr 1fr;align-items:center;padding:0 25px;border-bottom:1px solid #ffffff18;background:#161422}.reader-back,.reader-reset{background:transparent;border:0;color:#d9c6d5;font-size:12px;display:inline-flex;align-items:center;gap:7px;justify-self:start}.reader-back:hover,.reader-reset:hover{color:white}.reader-back::first-letter{font-size:19px}.reader-reset{justify-self:end}.reader-header-title{display:flex;align-items:center;flex-direction:column;line-height:1.5}.reader-header-title small{font-family:Georgia,serif;letter-spacing:.18em;font-size:9px;color:#c5a0b8}.reader-header-title strong{font-family:var(--serif);font-size:16px;letter-spacing:.06em}.reader-main{display:grid;grid-template-columns:43% 57%;flex:1;min-height:0;background:#201c2e}.reader-illustration{position:relative;min-height:0;overflow:hidden;background:#352b40}.reader-illustration>img{width:100%;height:100%;object-fit:cover;object-position:center 39%;filter:saturate(.8)}.reader-illustration::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 35%,#110e1fda 100%)}.reader-art-label{position:absolute;bottom:38px;left:42px;z-index:1;display:flex;flex-direction:column;gap:7px}.reader-art-label span{font-family:Georgia,serif;color:#f5c4d5;font-size:10px;letter-spacing:.2em}.reader-art-label b{font-family:var(--serif);font-size:28px;letter-spacing:.08em}.reader-story{display:flex;flex-direction:column;min-height:0;padding:38px 49px 25px;position:relative;background:linear-gradient(135deg,#201e31,#181727)}.reader-topline{display:flex;justify-content:space-between;align-items:center;color:#c59dae;font-family:Georgia,serif;font-size:11px;letter-spacing:.1em}.reader-progress{height:2px;background:#45384a;margin-top:14px}.reader-progress span{display:block;height:100%;background:#dfb2c0;transition:width .3s}.story-content{flex:1;display:flex;flex-direction:column;justify-content:center;min-height:0;padding-block:22px;overflow-y:auto;scrollbar-color:#6c536e transparent}.narrative-view{display:flex;flex-direction:column;min-height:265px;justify-content:center;cursor:pointer;padding:10px 4px}.reader-speaker{font-family:var(--serif);color:#efc3d0;font-size:16px;letter-spacing:.08em;margin-bottom:22px}.reader-speaker::before{content:"—";margin-right:9px;color:#bd91a9}.narrative-text{font-family:var(--serif);font-size:19px;line-height:2.35;letter-spacing:.065em;white-space:pre-line;min-height:96px;margin:0}.reader-prompt{margin-top:55px;align-self:end;font-size:10px;color:#b4a1b4;letter-spacing:.1em;display:flex;align-items:center;gap:12px;animation:fade-pulse 2s infinite}.reader-prompt span{font-size:20px;color:#e5b6c6}@keyframes fade-pulse{0%,100%{opacity:1}50%{opacity:.45}}.choice-view{padding:14px 0}.choice-caption{font-family:Georgia,serif;letter-spacing:.13em;color:#e3abc1;font-size:11px;margin-bottom:12px}.choice-view h3{font-family:var(--serif);font-size:19px;line-height:1.8;margin-bottom:23px;font-weight:500}.choice-buttons{display:flex;flex-direction:column;gap:12px}.choice-button{width:100%;padding:16px 19px;border-radius:8px;color:#eee4ed;background:#332b42;border:1px solid #59465d;text-align:left;font-size:13px;line-height:1.65;display:flex;align-items:center;gap:14px;transition:.2s}.choice-button span{font-family:Georgia,serif;font-size:14px;color:#e8b8c9}.choice-button:hover{background:#523950;border-color:#e0a6bc;transform:translateX(3px)}.reader-bottom{flex-shrink:0;border-top:1px solid #ffffff14;padding-top:17px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:10px;color:#988ca1}.sound-button{background:none;border:0;color:#c9afc2;font-size:11px}.sound-button:hover{color:#fff}.ending-view{padding:15px 0;text-align:center}.ending-stamp{color:#e7b3c8;font-family:Georgia,serif;letter-spacing:.22em;font-size:12px}.ending-symbol{font-size:46px;color:#f0bbd1;margin-top:13px;line-height:1.3}.ending-rank{font-size:11px;color:#d9a6b6;letter-spacing:.1em;margin:6px 0 4px}.ending-view h3{font-family:var(--serif);font-size:26px;letter-spacing:.07em;margin-bottom:12px}.ending-view>p#endingDescription{font-family:var(--serif);font-size:13px;line-height:2.05;color:#c6b7c9;white-space:pre-line}.ending-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:22px}.ending-actions .button{min-height:46px;font-size:11px;padding:12px 17px;gap:8px}
/* settings */
.modal{position:fixed;z-index:120;inset:0;display:grid;place-items:center;padding:22px}.modal-overlay{position:absolute;inset:0;background:#060611bd;backdrop-filter:blur(5px)}.modal-panel{z-index:1;position:relative;background:#242033;border:1px solid #725569;border-radius:15px;width:min(515px,100%);padding:35px}.modal-close{position:absolute;top:17px;right:20px;border:0;background:transparent;color:#ddc1d1;font-size:27px;line-height:1}.modal-panel h2{font-family:var(--serif);font-size:27px;margin-bottom:5px}.modal-panel>p:not(.section-kicker){font-size:12px;color:#aca1b6;margin-bottom:25px}.setting-row{display:flex;justify-content:space-between;align-items:center;gap:13px;border-top:1px solid var(--line);padding:20px 0}.setting-row>div:first-child{display:flex;flex-direction:column;gap:5px}.setting-row strong{font-size:13px}.setting-row small{color:#a79aae;font-size:11px}.setting-options{display:flex;border:1px solid #625368;border-radius:7px;overflow:hidden;flex-shrink:0}.setting-options button{background:transparent;color:#cfc0d1;border:0;padding:9px 13px;font-size:11px}.setting-options button+button{border-left:1px solid #625368}.setting-options button.selected{background:#e1b6c7;color:#2c2533}.switch{position:relative;display:block;width:43px;height:24px;flex-shrink:0}.switch input{opacity:0;position:absolute;inset:0;width:100%;height:100%;margin:0;cursor:pointer}.switch span{display:block;background:#5b5065;border-radius:30px;width:100%;height:100%;transition:.2s}.switch span::before{content:"";position:absolute;left:3px;top:3px;background:#f8e4ed;width:18px;height:18px;border-radius:50%;transition:.2s}.switch input:checked+span{background:#c88eaa}.switch input:checked+span::before{transform:translateX(19px)}.switch input:focus-visible+span{outline:3px solid #f2d3a9;outline-offset:3px}.modal-done{width:100%;margin-top:7px}.toast{position:fixed;z-index:200;bottom:22px;left:50%;transform:translate(-50%,25px);background:#ebc1d0;color:#282130;border-radius:8px;padding:12px 22px;font-size:12px;font-weight:700;box-shadow:0 10px 40px #0008;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;max-width:min(440px,calc(100% - 25px));text-align:center}.toast.visible{opacity:1;transform:translate(-50%,0)}body.font-large .narrative-text{font-size:23px}
@media(max-width:1100px){.shell{width:min(1050px,calc(100% - 52px))}.hero{grid-template-columns:1.05fr .9fr;gap:5px}.hero-art{transform:scale(.9)}.hero h1{font-size:clamp(38px,4.6vw,57px)}.hero-facts{gap:11px}.story-cover{height:265px}.reader-story{padding:32px 35px 24px}}
@media(max-width:820px){.main-nav{gap:18px}.hero{min-height:auto;grid-template-columns:1fr;gap:10px;padding-block:58px 45px}.hero-copy{max-width:590px}.hero h1{font-size:clamp(42px,6.6vw,63px)}.hero-art{height:430px;transform:scale(.85);margin-top:-14px}.strip-inner{justify-content:center;gap:31px}.strip span:nth-child(3),.strip span:nth-child(4){display:none}.section{padding-top:80px}.story-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.story-cover{height:320px}.filter-bar{flex-direction:column;align-items:stretch}.searchbox{max-width:none;width:100%}.reader-main{grid-template-columns:38% 62%}.reader-story{padding:27px 24px 19px}.narrative-text{font-size:17px}.reader-art-label{left:22px}.reader-art-label b{font-size:21px}.guide{padding-bottom:75px}}
@media(max-width:570px){.shell{width:calc(100% - 34px)}.site-header{height:69px}.header-inner{gap:14px}.brand{gap:6px}.brand-symbol{font-size:31px}.brand-type strong{font-size:22px}.brand-type small{font-size:8px}.main-nav{display:none}.header-shelf{padding:6px 11px;font-size:11px}.hero{padding-top:44px;padding-bottom:27px}.eyebrow{font-size:10px;margin-bottom:17px;letter-spacing:.15em}.hero h1{font-size:clamp(32px,9vw,46px);line-height:1.65;margin-bottom:15px}.hero-desc{font-size:12px;line-height:2.15}.hero-cta{gap:9px}.hero-cta .button{padding:11px 13px;min-height:47px;gap:12px;font-size:11px}.hero-facts{gap:10px;margin-top:24px;font-size:9px}.hero-facts b{font-size:14px}.hero-art{height:357px;transform:scale(.69);transform-origin:center top;margin-bottom:-105px;margin-top:10px}.hero-cover{height:490px}.strip-inner{height:47px;gap:18px}.strip span{font-size:9px;letter-spacing:.08em}.section{padding-top:70px;padding-bottom:25px}.section-heading{margin-bottom:25px;align-items:start}.section-heading h2{font-size:26px}.section-subtitle{font-size:11px}.section-count{display:none}.filter-pills{gap:6px}.pill{font-size:10px;padding:8px 12px}.story-grid{grid-template-columns:1fr;gap:18px}.story-cover{height:330px}.story-card{max-width:450px;width:100%;margin-inline:auto}.card-desc{min-height:auto}.quote-banner{margin-top:36px;min-height:195px}.quote-banner p{font-size:14px}.quote-banner::before,.quote-banner::after{display:none}.shelf-stats{gap:6px}.stat-tile{padding:16px 11px;flex-direction:column;gap:5px;text-align:center}.stat-tile>strong{font-size:28px}.stat-tile strong span{font-size:13px}.stat-tile>span{font-size:10px}.shelf-panels{grid-template-columns:1fr}.shelf-panel{padding:19px}.ending-progress{padding:18px}.guide-grid{grid-template-columns:1fr;gap:9px}.guide-step{min-height:auto;padding:18px 21px}.guide-icon{margin:3px 0 2px}.guide-note{flex-wrap:wrap;gap:8px}.guide-note p{flex-basis:calc(100% - 47px)}.inline-action{margin-left:30px}.footer{padding:36px 0}.footer-inner{flex-direction:column;gap:25px}.footer-info{text-align:left}.reader{overflow:auto}.reader-shell{height:100dvh;min-height:500px}.reader-header{height:60px;padding:0 13px;grid-template-columns:1fr auto 1fr}.reader-back,.reader-reset{font-size:10px}.reader-back span{display:none}.reader-header-title strong{font-size:13px}.reader-main{display:flex;flex-direction:column;min-height:0;overflow:auto}.reader-illustration{height:clamp(155px,29dvh,230px);min-height:155px;flex-shrink:0}.reader-illustration>img{object-position:center 40%}.reader-art-label{bottom:15px;left:22px}.reader-art-label b{font-size:20px}.reader-art-label span{font-size:8px}.reader-story{padding:19px 21px 19px;flex:1;min-height:350px}.story-content{min-height:230px;padding-block:14px}.narrative-view{min-height:190px;padding:7px 0}.narrative-text{font-size:17px;line-height:2;min-height:auto}.reader-speaker{margin-bottom:12px;font-size:13px}.reader-prompt{margin-top:20px}.choice-view h3{font-size:16px;margin-bottom:15px}.choice-button{padding:12px 14px;font-size:12px}.ending-view h3{font-size:22px}.ending-symbol{font-size:35px}.ending-actions{gap:8px}.ending-actions .button{padding:10px 12px;min-height:42px}.modal-panel{padding:25px 20px}.setting-options button{padding:8px 9px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* Illustrations adapted from the approved YOWA concept previews (2026-10). */
.hero-cover img{object-position:center 45%}
.story-cover img{object-position:center 41%;filter:saturate(1.05)}
.story-cover img[src*="voice-illustration"],.story-cover img[src*="atelier-illustration"]{object-position:center 50%}
.reader-illustration>img{object-position:center 42%;filter:saturate(.98)}
.reader-illustration>img[src*="voice-illustration"],.reader-illustration>img[src*="atelier-illustration"]{object-position:center 50%}

/* Long-form reading: visible focus for keyboard navigation. */
.narrative-view:focus-visible{outline:2px solid #e8b8c9;outline-offset:6px;border-radius:6px}.reader-progress span{min-width:2px}

/* YOWA cinematic scenes / typewriter extension */
.hero-cover,.reader-illustration{isolation:isolate}
.hero-cover>img,.reader-illustration>img{position:relative;z-index:0}
.hero-cover>img{width:100%;height:100%;object-fit:cover}
.rain-canvas{position:absolute;inset:0;width:100%;height:100%;z-index:2;pointer-events:none}
.hero-cover>.rain-canvas{z-index:2;opacity:.63}
.reader-illustration>.rain-canvas{z-index:3;opacity:.88}
.reader-art-label{z-index:5}
.hero-cover .cover-toplabel,.hero-cover .hero-cover-text{z-index:5}
.reader-illustration::after{z-index:4;pointer-events:none}
.reader-illustration>img{transform:scale(1.015);animation:scene-breathe 18s ease-in-out infinite alternate;transform-origin:52% 42%;will-change:transform}
.atmosphere-glow{position:absolute;inset:-10%;z-index:2;pointer-events:none;opacity:0;transition:opacity 1s;background:radial-gradient(ellipse at 66% 36%,rgba(221,140,202,.25),transparent 61%)}
.reader-illustration[data-atmosphere="voice"] .atmosphere-glow{opacity:.85;animation:studio-glow 5.5s ease-in-out infinite alternate}
.reader-illustration[data-atmosphere="atelier"] .atmosphere-glow{opacity:.75;animation:atelier-light 9s ease-in-out infinite alternate;background:linear-gradient(110deg,transparent 8%,rgba(255,213,137,.19) 40%,transparent 72%)}
.reader-illustration[data-atmosphere="voice"] .rain-canvas,.reader-illustration[data-atmosphere="atelier"] .rain-canvas{display:none}
@keyframes scene-breathe{from{transform:scale(1.015) translate3d(0,0,0)}to{transform:scale(1.055) translate3d(-.6%,.45%,0)}}
@keyframes studio-glow{from{filter:brightness(.6);transform:translateX(-2%)}to{filter:brightness(1.12);transform:translateX(3%)}}
@keyframes atelier-light{from{opacity:.28;transform:translateX(-3%)}to{opacity:.8;transform:translateX(4%)}}
body.effects-off .rain-canvas,body.reduce-motion .rain-canvas{display:none!important}
body.effects-off .atmosphere-glow,body.reduce-motion .atmosphere-glow{opacity:0!important;animation:none!important}
body.effects-off .reader-illustration>img,body.reduce-motion .reader-illustration>img{animation:none!important;transform:none!important}
/* Per-scene light (iro/scene-fx): set via data-fx-light by applySceneFx(). */
/* v2: grading strengthened so the change is clearly visible per scene. */
.reader-illustration>img{transition:filter 1.2s}
.reader-illustration[data-fx-light] .atmosphere-glow{transition:opacity 1.2s,background 1.2s}
.reader-illustration[data-fx-light="dusk"] .atmosphere-glow{opacity:.8;background:radial-gradient(ellipse at 62% 30%,rgba(255,150,70,.38),rgba(96,52,140,.26) 55%,transparent 78%)}
.reader-illustration[data-fx-light="dusk"]>img{filter:saturate(1.08) brightness(.95) sepia(.22)}
.reader-illustration[data-fx-light="night"] .atmosphere-glow{opacity:.9;background:linear-gradient(180deg,rgba(10,14,48,.55),rgba(8,10,32,.30) 60%,transparent)}
.reader-illustration[data-fx-light="night"]>img{filter:saturate(.55) brightness(.62) contrast(1.06)}
.reader-illustration[data-fx-light="warm"] .atmosphere-glow{opacity:.95;background:radial-gradient(ellipse at 58% 38%,rgba(255,190,100,.48),rgba(255,140,70,.18) 52%,transparent 76%)}
.reader-illustration[data-fx-light="warm"]>img{filter:saturate(1.14) brightness(1.07) sepia(.24)}
.reader-illustration[data-fx-light="dim"] .atmosphere-glow{opacity:.8;background:linear-gradient(180deg,rgba(18,18,42,.48),transparent 68%)}
.reader-illustration[data-fx-light="dim"]>img{filter:saturate(.68) brightness(.78)}
.reader-illustration[data-fx-light="soft"] .atmosphere-glow{opacity:.9;background:radial-gradient(ellipse at 60% 36%,rgba(244,178,205,.45),transparent 64%)}
.reader-illustration[data-fx-light="soft"]>img{filter:saturate(1.06) brightness(1.05)}
.reader-illustration[data-fx-light="dawn"] .atmosphere-glow{opacity:.95;background:linear-gradient(160deg,rgba(255,205,150,.42),rgba(244,178,205,.22) 48%,transparent 80%)}
.reader-illustration[data-fx-light="dawn"]>img{filter:saturate(1.1) brightness(1.16)}
.narrative-text{overflow-wrap:anywhere}
.narrative-text.is-typing::after{content:'▍';color:#e7aac0;font-size:.9em;margin-left:2px;animation:typing-cursor .75s steps(1,end) infinite}
@keyframes typing-cursor{0%,49%{opacity:1}50%,100%{opacity:.18}}
.reader-prompt{min-height:23px;user-select:none}
.reader-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}
.sound-button{min-height:32px;padding:6px 5px;white-space:nowrap}
.setting-options [data-speed]{padding:9px 11px}
@media(max-width:570px){.reader-story{padding-left:18px;padding-right:18px}.reader-bottom{gap:6px;align-items:center}.reader-controls{gap:6px}.sound-button{font-size:10px;min-height:38px}.reader-prompt{font-size:10px;letter-spacing:0}.narrative-text{font-size:16px}.setting-row{align-items:center}.setting-options [data-speed]{padding:8px 9px}}
@media(max-width:359px){.reader-story{padding-inline:14px}.reader-controls{gap:2px}.sound-button{font-size:9px;padding-inline:2px}.setting-row strong{font-size:12px}.setting-options [data-speed]{padding:8px 6px}}
@media(prefers-reduced-motion:reduce){.reader-illustration>img,.atmosphere-glow,.narrative-text.is-typing::after{animation:none!important}}
/* Narrow-screen overflow guard: hero title and decorative cover must stay on-screen. */
@media(max-width:359px){
  .hero{min-width:0}
  .hero-copy{min-width:0}
  .hero h1{font-size:clamp(27px,8vw,31px);white-space:normal;letter-spacing:.012em}
  .hero-art{transform:scale(.61);position:relative;left:-19px}
  .hero-cta{flex-wrap:wrap}
  .guide-step{min-width:0}
}
@media(max-width:570px){.hero{grid-template-columns:minmax(0,1fr)}.hero-copy,.hero-art{min-width:0}}
@media(max-width:359px){.hero-art{left:-12px;transform:scale(.58)}}
/* Preferences must remain reachable on compact phones and short landscape displays. */
.modal-panel{max-height:calc(100dvh - 28px);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
@media(max-width:570px){.modal{padding:10px}.modal-panel{max-height:calc(100dvh - 20px)}.setting-row{min-height:72px}.modal-panel>p:not(.section-kicker){margin-bottom:14px}}
/* Final reading and hero refinements. */
.narrative-view:focus-visible{outline:none;box-shadow:inset 0 0 0 1px rgba(231,170,192,.30);border-radius:10px}
.narrative-text{min-height:170px}
@media(max-width:570px){.hero-art{margin-top:45px}.narrative-text{min-height:174px}.narrative-view{justify-content:center}}


/* Morning Light: a small, independent BGM toolbar in the rainy novel only. */
.music-toolbar[hidden]{display:none!important}
.music-toolbar{border-top:1px solid rgba(234,176,202,.24);margin-top:12px;padding-top:13px;display:flex;align-items:center;justify-content:space-between;gap:15px;min-width:0}
.music-name{display:flex;gap:10px;align-items:center;color:#e6bdd2;min-width:0}
.music-name>span:first-child{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:#443048;color:#ecc0d6;font-size:21px;flex:none}
.music-name>span:last-child{display:flex;flex-direction:column;gap:3px;min-width:0}
.music-name strong{font-size:12px;letter-spacing:.04em;white-space:nowrap}
.music-name small{font-size:10px;color:#b6a6bb}
.music-controls{display:flex;align-items:center;gap:14px;min-width:0}
.music-toggle{min-height:39px;border:1px solid #b586aa;border-radius:7px;background:#41304a;color:#f5d7e5;padding:8px 13px;font-size:11px;font-weight:600;white-space:nowrap}
.music-toggle:hover{background:#553d58}
.music-toggle:focus-visible,.music-volume input:focus-visible{outline:2px solid #f2c8df;outline-offset:2px}
.music-volume{display:flex;align-items:center;gap:7px;color:#e3cad7;font-size:11px;white-space:nowrap}
.music-volume input{width:91px;accent-color:#dba6bc;cursor:pointer;touch-action:pan-x}
.music-volume output{font-variant-numeric:tabular-nums;min-width:31px;text-align:right;color:#ddc2d5;font-size:10px}
@media(max-width:820px){.music-toolbar{gap:8px}.music-controls{gap:8px}.music-volume input{width:69px}}
@media(max-width:570px){.music-toolbar{padding-top:10px;margin-top:10px;gap:8px;flex-wrap:wrap}.music-name{flex:1;min-width:130px}.music-controls{flex:1;justify-content:flex-end;gap:9px}.music-toggle{min-height:39px;padding:7px 10px}.music-volume input{width:68px}.music-volume>span{display:none}}
@media(max-width:375px){.music-controls{flex-wrap:wrap;gap:6px}.music-volume{justify-content:flex-end}}

/* BGM compatibility: keep playback controls immediately under the reader header,
   not at the bottom of the page (which can be offscreen on phones). */
.reader-shell>.music-toolbar{flex-shrink:0;z-index:5;margin:0;padding:9px 18px;background:#242037;border-bottom:1px solid #59445c;gap:10px;flex-wrap:wrap}
.reader-shell>.music-toolbar[hidden]{display:none!important}
.music-help{width:100%;color:#e4bdd2;font-size:11px}
.music-help summary{cursor:pointer;list-style:revert;display:list-item;padding:3px 0;min-height:22px}
.music-help-body{display:grid;gap:8px;padding:6px 0 3px}
.music-help-body p{margin:0;color:#decbd9;font-size:11px;line-height:1.7}
.music-help-body audio{display:block;width:min(100%,530px);height:42px}
#bgmErrorHelp:empty{display:none}
.music-toggle{background:#68405e;color:#fff;border:1px solid #f0b5d0;font-size:12px}
@media(max-width:570px){.reader-shell>.music-toolbar{padding:7px 12px;gap:6px}.music-help{font-size:10px}.music-name>span:first-child{width:27px;height:27px}.music-name strong{font-size:11px}.music-volume input{width:75px}}
@media(max-width:360px){.reader-shell>.music-toolbar{padding:6px 8px}.music-name{min-width:105px}.music-controls{justify-content:flex-start}.music-help-body audio{height:40px}}

/* Progressive enhancement for iOS attachment previews and script-restricted browsers */
@media (max-width:570px) {
  /* Avoid covering the section heading while scrolling on a narrow display. */
  .site-header { position:relative; }
  .works.section { padding-top:55px; }
  .works h2 { scroll-margin-top:16px; }
  .story-grid { min-height:0; }
  .story-card { content-visibility:auto; contain-intrinsic-size:auto 555px; }
  .story-cover { height:min(78vw,330px); }
  .reader { overflow:hidden; }
  .reader-shell { height:100dvh; min-height:0; }
  .reader-main { flex:1 1 auto; min-height:0; overflow:hidden; }
  .reader-illustration { height:clamp(106px,21dvh,182px); min-height:0; flex:0 0 auto; }
  .reader-art-label { bottom:10px; left:15px; gap:1px; }
  .reader-art-label b { font-size:17px; }
  .reader-story { flex:1 1 auto; min-height:0; padding:13px 17px 11px; }
  .reader-topline { line-height:1.4; }
  .reader-progress { margin-top:8px; }
  .story-content { display:block; flex:1 1 auto; min-height:0; overflow-y:auto; padding:9px 0; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; }
  .narrative-view { min-height:100%; display:flex; flex-direction:column; justify-content:flex-start; padding:5px 0 9px; }
  .reader-speaker { margin-bottom:12px; }
  .narrative-text { min-height:0; font-size:16px; line-height:1.95; }
  .reader-prompt { margin-top:auto; padding-top:14px; align-self:flex-end; }
  .reader-bottom { flex:0 0 auto; padding-top:9px; }
  .reader-shell>.music-toolbar { min-height:0; padding:5px 12px 4px; gap:3px 8px; flex-wrap:wrap; }
  .reader-shell>.music-toolbar .music-name { flex:0 0 auto; min-width:0; }
  .reader-shell>.music-toolbar .music-controls { flex:1 1 auto; min-width:0; flex-wrap:nowrap; gap:7px; justify-content:flex-end; }
  .music-toggle { min-height:35px; padding:6px 9px; }
  .music-volume input { width:60px; }
  .reader-shell>.music-toolbar .music-help { width:100%; flex-basis:100%; }
  .reader-shell>.music-toolbar .music-help:not([open]) { height:17px; overflow:hidden; }
  .reader-shell>.music-toolbar .music-help summary { min-height:0; padding:0; line-height:16px; }
  .choice-view { padding:6px 0 15px; }
  .choice-view h3 { margin-bottom:12px; }
  .choice-buttons { gap:9px; }
  .choice-button { padding:11px 12px; min-height:43px; }
}
@media (max-width:359px) {
  .reader-story { padding-inline:13px; }
  .reader-shell>.music-toolbar { padding-inline:8px; }
  .music-name>span:first-child { display:none; }
  .music-volume input { width:46px; }
  .music-volume output { min-width:27px; }
  .reader-art-label b { font-size:15px; }
}
@media (max-width:570px) and (max-height:630px) {
  .reader-illustration { height:clamp(94px,19dvh,124px); }
  .reader-art-label { bottom:7px; }
  .reader-art-label span { display:none; }
  .reader-story { padding-top:9px; padding-bottom:7px; }
  .story-content { padding:5px 0; }
  .reader-speaker { margin-bottom:8px; }
  .narrative-text { font-size:15px; line-height:1.8; }
  .reader-prompt { padding-top:8px; }
}
/* If JS fails or is blocked, pre-rendered cards remain visible and filter controls aren't misleading. */
.filter-bar { display:none; }
html.yowa-ready .filter-bar { display:flex; }
.preview-warning { background:#282435; border:1px solid #856980; border-radius:10px; margin:20px 0 8px; padding:14px 18px; font-size:12px; color:#e1c8d5; line-height:1.8; }
.preview-warning strong { display:block; font-size:13px; color:#ffe2ee; }
html.yowa-ready .preview-warning { display:none; }
@media (max-width:820px) { html.yowa-ready .filter-bar { flex-direction:column; align-items:stretch; } }
.preview-warning a { text-decoration:underline; color:#f6c9d9; }



/* ================================================================
   YOWA — responsive layout refinement, 2026-10-31
   Same classic art / Canvas rain / story and BGM engine on every size.
   Breakpoints: compact phone, phone, tablet portrait, laptop, desktop.
   ================================================================ */
:root { color-scheme: dark; }
html { overflow-x:clip; }
body { overflow-x:clip; }
img,canvas { max-width:100%; }
button,a,input { -webkit-tap-highlight-color:transparent; }
button, a { touch-action:manipulation; }
.reader { overscroll-behavior:contain; }
.story-card, .story-cover, .reader-story, .reader-shell { min-width:0; }
.story-card { overflow:hidden; }
.story-cover img { width:100%; height:100%; object-fit:cover; }
.narrative-text, .choice-button, .ending-view p { overflow-wrap:anywhere; }

/* Break the desktop hero into a genuine two-column tablet/phone layout. */
@media (min-width:571px) and (max-width:960px) {
  .hero { grid-template-columns:minmax(0,1fr); justify-items:center; gap:16px; padding-bottom:60px; }
  .hero-copy { max-width:690px; width:100%; }
  .hero h1 { white-space:normal; }
  .hero-art { width:100%; max-width:510px; }
  .story-cover { height:clamp(240px,37vw,335px); }
  .reader-story { padding-inline:clamp(22px,3.2vw,38px); }
  .reader-bottom { flex-wrap:wrap; }
}
/* Tablet portrait: picture on top, reading panel underneath. */
@media (min-width:571px) and (max-width:900px) and (orientation:portrait) {
  .reader-shell { height:100dvh; min-height:0; max-height:none; }
  .reader-main { display:flex; flex-direction:column; min-height:0; overflow:hidden; }
  .reader-illustration { flex:0 0 auto; min-height:0; height:clamp(200px,25dvh,295px); }
  .reader-illustration>img { width:100%; height:100%; object-position:center 43%; }
  .reader-story { flex:1 1 auto; min-height:0; padding:24px clamp(25px,7vw,62px) 20px; }
  .story-content { flex:1 1 auto; min-height:0; overflow-y:auto; }
  .narrative-view { min-height:100%; }
  .reader-art-label { left:28px; bottom:22px; }
}
@media (max-width:570px) {
  .shell { width:calc(100% - 34px); }
  .site-header { position:relative; z-index:25; }
  .site-header .header-inner { min-width:0; gap:8px; }
  .brand { min-width:0; }
  .header-shelf { min-height:44px; padding-inline:11px; flex:none; }

  .hero { display:flex; flex-direction:column; align-items:stretch;
    min-width:0; min-height:0; gap:0; padding-top:33px; padding-bottom:37px; }
  .hero-copy { width:100%; min-width:0; }
  .hero h1 { font-size:clamp(29px,8.1vw,42px); line-height:1.52;
    letter-spacing:.028em; white-space:normal; overflow-wrap:normal; }
  .hero-desc { font-size:12.5px; line-height:2; }
  .hero-cta .button { min-height:45px; }
  .hero-facts { flex-wrap:wrap; gap:8px 12px; }

  /* Crucial: no scaled 500px desktop card leaving a phantom overflow area. */
  .hero-art { position:relative; width:100%; height:auto; min-height:0;
    transform:none; left:auto; right:auto; margin:18px 0 0;
    padding:12px 5px 18px; display:flex; justify-content:center; align-items:center; }
  .hero-back-card { width:min(77vw,342px); height:auto; aspect-ratio:365/490;
    top:20px; left:50%; transform:translateX(-47%) rotate(5deg);
    border-radius:12px; }
  .hero-cover { width:min(77vw,342px); height:auto; aspect-ratio:368/500;
    transform:rotate(-2deg); flex:none; }
  .hero-cover>img { width:100%; height:100%; position:absolute; inset:0; }
  .cover-toplabel { top:15px; left:15px; font-size:9px; }
  .hero-cover-text { bottom:25px; left:20px; right:12px; }
  .hero-cover-text strong { font-size:clamp(25px,7.6vw,35px); }
  .hero-note { right:0; bottom:1px; transform:rotate(2deg);
    padding:8px 11px; font-size:10px; gap:7px; }
  .hero-note strong { font-size:11px; }
  .note-shape { width:28px; height:28px; font-size:14px; }
  .floating-star { display:none; }

  .strip-inner { gap:12px; justify-content:space-between; }
  .strip span { font-size:8.5px; letter-spacing:.025em; }
  .works.section { padding-top:56px; }
  .section-heading h2 { font-size:clamp(23px,6vw,28px); }
  .section-subtitle { font-size:12px; color:#c6bcc9; }
  .filter-bar { gap:14px; }
  .filter-pills { gap:8px; }
  .pill { min-height:43px; padding:9px 12px; font-size:11px; }
  .searchbox { min-height:49px; }
  .searchbox input { font-size:16px; } /* prevents iOS focus zoom */
  .story-grid { grid-template-columns:minmax(0,1fr); }
  .story-card { width:100%; max-width:450px; }
  .story-cover { height:clamp(260px,77vw,340px); }
  .card-body { padding:19px 20px 21px; }
  .card-desc { font-size:13px; color:#c7bbca; line-height:1.85; }
  .card-play { min-height:44px; }
  .favorite-button { min-width:44px; min-height:44px; }
  .quote-banner { min-height:180px; padding:26px 18px; }
  .quote-banner p { font-size:clamp(13px,3.7vw,17px); }
  .preview-warning { margin-top:16px; }

  /* Reader gets the entire device viewport. Artwork stays visible while text scrolls. */
  .reader { inset:0; overflow:hidden; }
  .reader-shell { display:flex; flex-direction:column; width:100%;
    height:100vh; height:100dvh; min-height:0; max-height:none; }
  .reader-header { height:60px; min-height:60px; padding:0 14px;
    grid-template-columns:minmax(44px,1fr) minmax(0,1.8fr) minmax(80px,1fr); }
  .reader-back, .reader-reset { min-height:44px; display:flex; align-items:center;
    font-size:11px; line-height:1.25; }
  .reader-back { min-width:44px; }
  .reader-reset { justify-content:flex-end; text-align:right; }
  .reader-header-title { min-width:0; }
  .reader-header-title strong { max-width:100%; overflow:hidden; text-overflow:ellipsis;
    white-space:nowrap; font-size:13px; }
  .reader-shell>.music-toolbar { flex:0 0 auto; gap:4px 8px;
    padding:7px 14px 6px; margin:0; flex-wrap:wrap; }
  .music-name { flex:0 1 auto; min-width:0; }
  .music-name>span:last-child { min-width:0; }
  .music-controls { flex:1 1 auto; min-width:0; justify-content:flex-end; gap:7px;
    flex-wrap:nowrap; }
  .music-toggle { min-height:39px; padding:7px 9px; }
  .music-volume input { width:clamp(55px,17vw,80px); min-width:0; }
  .music-help { width:100%; flex-basis:100%; }
  .music-help:not([open]) { max-height:22px; overflow:hidden; }
  .music-help summary { min-height:18px; padding:0; font-size:10px; }
  .music-help-body { padding-bottom:6px; }

  .reader-main { display:flex; flex:1 1 auto; flex-direction:column;
    min-height:0; overflow:hidden; }
  .reader-illustration { flex:0 0 auto; height:clamp(118px,22dvh,205px);
    min-height:0; overflow:hidden; }
  .reader-illustration>img { width:100%; height:100%; object-fit:cover;
    object-position:center 39%; }
  .reader-art-label { bottom:12px; left:17px; gap:2px; }
  .reader-art-label b { font-size:18px; }
  .reader-art-label span { font-size:8px; }
  .reader-story { display:flex; flex:1 1 auto; min-height:0;
    padding:13px 19px max(10px,env(safe-area-inset-bottom)); }
  .reader-topline { flex:0 0 auto; gap:10px; font-size:10px; line-height:1.5; }
  .reader-topline span:first-child { min-width:0; overflow:hidden;
    text-overflow:ellipsis; white-space:nowrap; }
  .reader-topline span:last-child { white-space:nowrap; }
  .reader-progress { flex:0 0 2px; margin-top:8px; }
  .story-content { display:flex; flex:1 1 auto; min-height:0; flex-direction:column;
    padding:9px 0; overflow-y:auto; overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch; scrollbar-width:thin; }
  .narrative-view { min-height:100%; flex:1 0 auto; display:flex;
    justify-content:flex-start; padding:5px 0 12px; }
  .reader-speaker { flex:0 0 auto; font-size:14px; margin-bottom:12px; }
  .narrative-text { flex:0 0 auto; min-height:0; font-size:16.5px; line-height:2;
    letter-spacing:.03em; white-space:pre-line; }
  .reader-prompt { margin-top:auto; align-self:flex-end; padding-top:15px;
    min-height:32px; font-size:11px; }
  .reader-bottom { flex:0 0 auto; padding-top:8px; min-height:42px;
    gap:7px; font-size:10px; }
  .reader-controls { gap:7px; flex-wrap:nowrap; }
  .sound-button { min-height:39px; padding:7px 5px; font-size:10px; }
  .choice-view { padding:8px 0 15px; }
  .choice-view h3 { margin-bottom:13px; font-size:17px; }
  .choice-buttons { gap:10px; }
  .choice-button { min-height:48px; padding:11px 14px; font-size:13px; }
  .ending-view { padding:12px 0 25px; }
  .ending-actions .button { min-height:44px; }
  body.font-large .narrative-text { font-size:20px; line-height:1.85; }
}
@media (max-width:359px) {
  .shell { width:calc(100% - 28px); }
  .brand-symbol { font-size:29px; }
  .brand-type strong { font-size:20px; }
  .hero h1 { font-size:27.5px; }
  .hero-art { margin-top:12px; }
  .hero-cover,.hero-back-card { width:min(75vw,298px); }
  .hero-note { right:-2px; }
  .reader-header { padding-inline:9px; grid-template-columns:44px minmax(0,1fr) 73px; }
  .reader-reset { font-size:9px; }
  .reader-shell>.music-toolbar { padding:6px 9px; }
  .music-name>span:first-child { display:none; }
  .music-controls { gap:6px; }
  .music-toggle { font-size:11px; padding-inline:7px; }
  .music-volume input { width:48px; }
  .music-volume output { min-width:26px; }
  .reader-story { padding-inline:14px; }
  .reader-bottom { flex-wrap:wrap; row-gap:0; }
  .reader-bottom > span { font-size:9px; }
  .reader-controls { margin-left:auto; }
  .sound-button { font-size:9px; }
}
@media (max-width:570px) and (max-height:650px) {
  .reader-illustration { height:clamp(93px,18dvh,124px); }
  .reader-art-label { bottom:7px; }
  .reader-art-label span { display:none; }
  .reader-art-label b { font-size:15px; }
  .reader-story { padding-top:9px; padding-bottom:max(6px,env(safe-area-inset-bottom)); }
  .story-content { padding:6px 0; }
  .reader-speaker { margin-bottom:8px; }
  .narrative-text { font-size:15.5px; line-height:1.85; }
  .reader-prompt { padding-top:8px; }
  .reader-bottom { padding-top:4px; }
  .reader-shell>.music-toolbar { padding-block:5px; }
}
/* Landscape phones and short desktop windows: scroll the whole reader. */
@media (max-height:440px) and (orientation:landscape) {
  .reader { overflow-y:auto; overscroll-behavior:contain; }
  .reader-shell { height:auto; min-height:510px; max-height:none; }
  .reader-main { flex:1 0 auto; min-height:355px; overflow:visible; }
  .reader-illustration { height:145px; min-height:0; }
  .reader-story { flex:1 0 auto; min-height:280px; }
  .story-content { overflow:visible; flex:1 0 auto; min-height:185px; }
  .reader-bottom { padding-bottom:10px; }
}
@media (prefers-reduced-motion:reduce) {
  .reader-illustration>img,.atmosphere-glow,.rain-canvas { animation:none!important; }
}

/* Public information and policy page. */
.footer-links{margin-top:10px!important}.footer-links a{text-decoration:underline;text-underline-offset:3px;color:#d7bdcc}.footer-links a:hover{color:#fff}
.policy-page{max-width:880px;padding-block:clamp(58px,9vw,110px)}
.policy-hero{padding-bottom:38px;border-bottom:1px solid var(--line)}
.policy-hero h1{font-family:var(--serif);font-size:clamp(31px,5.5vw,54px);line-height:1.45;margin-bottom:13px}
.policy-hero>p:last-child{color:#bcb1c2}
.policy-section{padding:42px 0;border-bottom:1px solid var(--line)}
.policy-section h2{font-family:var(--serif);font-size:clamp(23px,3.5vw,31px);margin-bottom:23px}
.policy-section h3{font-size:15px;color:#efc3d0;margin:27px 0 8px}
.policy-section p,.policy-section li{color:#c8bdca;font-size:14px;line-height:2}
.policy-section a{color:#f2bfd1;text-decoration:underline;text-underline-offset:3px}
.policy-section ul{padding-left:1.4em;margin-bottom:0}.policy-section li+li{margin-top:9px}
.policy-list{margin:0}.policy-list>div{display:grid;grid-template-columns:150px 1fr;gap:22px;padding:16px 0;border-top:1px solid var(--line)}
.policy-list dt{color:#978a9d;font-size:12px}.policy-list dd{margin:0;color:#f4e8ef}
.policy-note{font-size:12px!important;color:#9f94a6!important;margin:18px 0 0}
.policy-updated{color:#8f8498;font-size:12px;margin:30px 0}.policy-back{display:inline-flex}
@media(max-width:570px){.policy-page{padding-block:45px}.policy-section{padding:32px 0}.policy-list>div{grid-template-columns:1fr;gap:5px}}

/* Mobile reader (Plan A, iro/scene-fx): show the scene illustration large in
   its portrait shape, light-novel style, with the text flowing below it,
   instead of the thin banner crop. */
@media(max-width:570px){
  .reader-illustration{height:50dvh;min-height:0;aspect-ratio:auto;max-height:none}
  .reader-illustration>img{object-position:center 38%}
  .reader-art-label{bottom:20px}
}



/* Image save deterrents (iro/scene-fx): block long-press callout and dragging on images */
img{-webkit-touch-callout:none;-webkit-user-drag:none;user-select:none}
