:root{--bg:#f6f4ed;--card:#fffef9;--ink:#20382f;--muted:#7c847b;--line:#dedfd3;--accent:#224d3e;--gold:#b39760;--font-size:21px;--read-font:Georgia,'Times New Roman',serif;--shadow:0 14px 48px #19372b09;color-scheme:light}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.6 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button{border:0;background:transparent}button:disabled{opacity:.4;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid #ab904e;outline-offset:4px}a{color:inherit;text-decoration:none}svg{width:20px;height:20px;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}h1,h2,h3,p{margin:0}h1,h2{font-family:Georgia,'Times New Roman',serif;font-weight:400}button{transition:background .18s,transform .18s,box-shadow .18s}button:hover:not(:disabled){filter:brightness(.96)}[hidden]{display:none!important}.topbar{height:97px;max-width:1336px;margin:auto;padding:0 50px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:22px}.brand{display:flex;align-items:center;gap:12px;font-family:Georgia,serif;font-size:29px;line-height:1}.brandmark{width:36px;height:43px;border:1px solid #9ba793;border-radius:18px 18px 3px 3px;display:grid;place-items:center;font-size:23px;color:var(--accent)}.brand-sub{display:block;font:9px/1.9 sans-serif;letter-spacing:4.2px;color:var(--muted);padding-left:2px}.topbar nav{display:flex;align-items:center;gap:34px;align-self:stretch}.nav{padding:0 2px;border-bottom:2px solid transparent;font-size:14px;color:var(--muted)}.nav.active{border-color:var(--accent);color:var(--ink);font-weight:600}#savedCount{display:inline-grid;place-items:center;min-width:18px;height:18px;background:#e8e9df;border-radius:12px;font-size:10px;margin-left:4px}.icon-button{width:40px;height:40px;display:inline-grid;place-items:center;border:1px solid transparent;border-radius:50%;flex-shrink:0}.icon-button:hover{background:#acb6a522}.library-main{max-width:1236px;margin:auto;padding:0 50px}.hero{display:grid;grid-template-columns:1.18fr 1fr;min-height:440px;padding:60px 0 50px;align-items:center;gap:28px}.eyebrow{font-size:9px;font-weight:600;letter-spacing:2.4px;color:var(--muted)}.tiny-star{font-size:17px;vertical-align:middle;color:var(--gold);margin-right:8px}h1{font-size:clamp(32px,4.2vw,54px);line-height:1.2;letter-spacing:-1.5px;margin:19px 0 18px}h1 em{font-weight:400;color:#708472}.hero-copy>p{font-size:14px;line-height:1.9;color:var(--muted)}.primary{display:inline-flex;gap:23px;align-items:center;justify-content:center;background:var(--accent);color:#fff9ec;padding:12px 24px;border-radius:5px;font-size:13px;min-height:45px}.hero .primary{margin-top:25px}.primary:hover{box-shadow:0 5px 15px #173e3522;transform:translateY(-1px)}.hero-foot{display:flex;gap:8px;align-items:center;margin-top:16px;font-size:10px;color:var(--muted)}.status-dot{width:5px;height:5px;border-radius:50%;background:#7d957a}.hero-art{position:relative;height:330px;isolation:isolate;margin:0 20px}.orb{position:absolute;inset:0 0 0 0;border-radius:50%;background:radial-gradient(ellipse,#dddccab0,transparent 70%);z-index:-2}.arch{position:absolute;width:196px;height:280px;border-radius:110px 110px 3px 3px;bottom:15px}.arch-back{background:#cbd2bd;left:calc(50% - 68px);transform:rotate(11deg);box-shadow:4px 10px 24px #1a3f3311}.arch-front{overflow:hidden;left:calc(50% - 110px);background:linear-gradient(160deg,#153c34,#3f6b58 55%,#adc1a0);box-shadow:0 12px 32px #1f3d3322;border:8px solid #e5e2d1;outline:1px solid #c2c8b4;transform:rotate(-7deg)}.moon{width:43px;height:43px;background:#e4dba8;border-radius:50%;position:absolute;top:48px;left:51px;box-shadow:0 0 35px #f5d98b33}.mountain{position:absolute;bottom:30px;width:250px;height:150px;border-radius:50% 70% 0 0;transform:rotate(30deg)}.mountain-one{left:-115px;background:#1d483b}.mountain-two{right:-118px;bottom:0;background:#2b5845;transform:rotate(-38deg)}.path{position:absolute;width:28px;height:130px;bottom:-35px;left:94px;border-radius:50%;background:#e5d4a4;transform:rotate(-20deg);box-shadow:0 0 26px #ffe0a111}.art-star{position:absolute;top:25px;right:30px;color:#d9cca1;font-size:12px}.art-caption{position:absolute;right:-4px;bottom:34px;font:8px/1.7 sans-serif;letter-spacing:2.4px;color:#708472;writing-mode:vertical-rl}.spine{position:absolute;bottom:0;left:calc(50% - 133px);height:12px;border-radius:2px}.s1{width:229px;background:#9da68b;transform:rotate(-2deg)}.s2{width:211px;background:#d2c5a3;bottom:-11px;transform:rotate(1deg)}.s3{width:238px;background:#506e59;bottom:-22px;transform:rotate(-1deg)}.resume-panel{display:flex;align-items:center;gap:18px;padding:18px 24px;border:1px solid var(--line);border-left:3px solid var(--gold);border-radius:6px;background:var(--card);margin-bottom:38px}.resume-panel .resume-info{flex:1;min-width:0}.resume-panel h3{font-size:14px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.resume-panel p{font-size:11px;color:var(--muted)}.resume-icon{width:42px;height:44px;background:#e8ecdf;display:grid;place-items:center;border-radius:5px;color:var(--accent)}.resume-panel .secondary{padding:8px 14px;font-size:11px}.shelf{padding-top:13px}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:15px}.section-heading h2{font-size:30px;line-height:1.3;margin-top:10px;letter-spacing:-.6px}.muted{color:var(--muted)}#resultCount{font-size:11px}.toolbar{display:flex;justify-content:space-between;gap:14px;align-items:center;margin:28px 0 25px;padding-bottom:20px;border-bottom:1px solid var(--line)}.filters{display:flex;gap:5px;flex-wrap:wrap}.chip{border-radius:4px;font-size:11px;padding:8px 12px;white-space:nowrap;color:var(--muted)}.chip.active{background:var(--accent);color:#f6f4ec}.search-tools{display:flex;gap:9px;align-items:center}.search{display:flex;gap:7px;align-items:center;border:1px solid var(--line);padding:7px 10px;border-radius:5px;background:var(--card)}.search svg{height:15px;width:15px;color:#8b9488}.search input{border:0;background:none;width:170px;font-size:11px;outline:0;color:var(--ink)}select{border:1px solid var(--line);border-radius:5px;padding:8px;background:var(--card);color:var(--ink);font-size:12px}.shelf-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}.group-card{border:1px solid var(--line);border-radius:7px;background:var(--card);overflow:hidden;transition:transform .2s,box-shadow .2s}.group-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}.cover{height:165px;width:100%;position:relative;overflow:hidden;background:var(--cover-bg,#e4e8da);display:grid;place-items:center}.cover-ring{position:absolute;width:108px;height:139px;border-radius:65px 65px 0 0;border:1px solid #fff8;bottom:-18px;transform:rotate(-8deg)}.cover-ring:after{content:'';position:absolute;inset:12px;border:1px solid #fff5;border-radius:inherit}.cover-letter{font:48px Georgia,serif;color:var(--cover-ink,#45624e);z-index:1;opacity:.8}.cover .cover-category{position:absolute;left:14px;top:12px;font:8px sans-serif;letter-spacing:1.6px;color:var(--cover-ink,#45624e);text-transform:uppercase;opacity:.8}.cover-number{position:absolute;right:12px;bottom:9px;font:9px monospace;color:var(--cover-ink,#45624e);opacity:.7}.cover-corner{width:110px;height:110px;border:1px solid #fff5;border-radius:50%;position:absolute;right:-60px;top:-50px}.card-bottom{padding:15px 15px 14px;text-align:left}.card-bottom h3{font-family:Georgia,serif;font-weight:400;font-size:18px;line-height:1.3;min-height:24px}.card-meta{display:flex;align-items:center;justify-content:space-between;margin-top:12px;font-size:10px;color:var(--muted)}.card-meta svg{width:14px;height:14px}.group-open{display:block;width:100%;padding:0;text-align:inherit}.category-label{font-size:9px;text-transform:uppercase;letter-spacing:1px}.mini-progress{height:2px;background:#e3e6db;margin-top:12px}.mini-progress span{display:block;height:100%;background:#889975}.show-more{display:block;margin:28px auto}.secondary{border:1px solid var(--line);background:var(--card);border-radius:5px;padding:10px 18px;font-size:13px}.text-button{font-size:12px;color:var(--accent);padding:7px 0}.library-footer{display:flex;align-items:center;justify-content:space-between;margin-top:58px;padding:24px 0 30px;border-top:1px solid var(--line);color:var(--muted);gap:15px;font-size:10px}.library-footer>span:first-child{font:19px Georgia,serif;color:var(--ink)}.empty{text-align:center;padding:55px 16px;color:var(--muted)}.empty svg{width:32px;height:32px;margin-bottom:14px}.empty h3{color:var(--ink);margin-bottom:8px;font-weight:500}.empty p{font-size:13px}.group-head{padding:2px 0 24px}.group-head h2{font-size:32px;margin:9px 0}.group-head .button-row{justify-content:space-between;align-items:center}.chapter-list{grid-column:1/-1;display:flex;flex-direction:column;gap:8px}.chapter-row{display:flex;gap:15px;align-items:center;padding:16px 18px;border:1px solid var(--line);background:var(--card);border-radius:5px}.chapter-open{flex:1;text-align:left;min-width:0}.chapter-open strong{display:block;font-weight:500;font-size:14px}.chapter-open small{font-size:11px;color:var(--muted)}.chapter-num{font:14px Georgia,serif;color:var(--gold);width:24px}.adult-tag{display:inline-block;margin-left:6px;font-size:8px;padding:1px 4px;border:1px solid #ad8d6e77;border-radius:3px;color:#96795a;vertical-align:middle}.chapter-row .icon-button{width:32px;height:32px}.is-bookmarked{color:var(--gold)!important}.is-bookmarked svg{fill:#b3976022}.reader{position:fixed;inset:0;background:var(--bg);display:flex;flex-direction:column;z-index:20;min-height:0}.reader-header{display:flex;align-items:center;gap:13px;padding:12px 26px;background:var(--bg);border-bottom:1px solid var(--line);flex-shrink:0;min-height:75px}.reader-heading{min-width:0;flex:1}.reader-heading>span{font-size:10px;color:var(--muted);letter-spacing:1px}.reader-heading h2{font:15px/1.4 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.reader-actions{display:flex;align-items:center;gap:8px}.mode-button{border:1px solid var(--line);border-radius:5px;padding:6px 12px;font-size:11px;white-space:nowrap}.book-scroll{overflow-y:auto;flex:1;scroll-behavior:auto;min-height:0}.book-content{max-width:800px;margin:0 auto;padding:56px 44px 30px;font-size:var(--font-size);line-height:1.95;font-family:var(--read-font);color:var(--ink)}.book-content h1{font-size:30px;margin-bottom:34px;letter-spacing:0;line-height:1.5}.book-content p{margin-bottom:1.2em;overflow-wrap:break-word;scroll-margin-top:35px}.book-content p.has-speaker{padding-left:16px;border-left:2px solid #a2ae952e}.book-content p.current-line{border-color:var(--gold)}.book-end{max-width:700px;margin:10px auto 80px;padding:30px;text-align:center;border-top:1px solid var(--line)}.book-end p{font-size:12px;color:var(--muted);margin-bottom:18px}.reader-footer{display:flex;align-items:center;gap:20px;justify-content:space-between;padding:9px 28px max(10px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--bg);flex-shrink:0}.reader-footer .text-button{font-size:11px;white-space:nowrap}.progress-control{flex:1;max-width:550px;display:flex;gap:15px;align-items:center}.progress-control input{flex:1;min-width:10px;accent-color:var(--accent);height:3px}.progress-control span{font-size:10px;color:var(--muted);min-width:65px;text-align:center}.vn-stage{position:relative;flex:1;min-height:0;overflow:hidden;background:linear-gradient(160deg,#102f2a,#285b4b 60%,#6b8b69)}.vn-stage.library{background:linear-gradient(130deg,#312e2a,#6c5841 60%,#ba9e71)}.vn-stage.sea{background:linear-gradient(#97b9c1,#4d8192 50%,#1d4f63 52%,#c6bf9a)}.stage-atmosphere{position:absolute;inset:0;background:radial-gradient(ellipse at 65% 30%,#f7d9a522,transparent 55%),linear-gradient(0deg,#031c27aa,transparent 75%)}.scene-background{position:absolute;inset:0;background-size:cover;background-position:center}.character-portrait{position:absolute;right:10%;bottom:0;height:98%;max-width:80%;object-fit:contain;object-position:bottom;filter:drop-shadow(0 15px 30px #0005)}.stage-placeholder{position:absolute;inset:8% 20% 25%;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:22px;color:#f2ecdb66;font:9px sans-serif;letter-spacing:3px}.stage-sigil{width:130px;height:170px;border:1px solid #e2d7b433;border-radius:80px 80px 0 0;display:grid;place-items:center;font:72px Georgia,serif;color:#e2d7b444}.stage-placeholder .text-button{letter-spacing:0;font-size:10px;color:#f7f0d580;padding:10px 20px}.vn-top{position:absolute;top:20px;left:24px;right:24px;display:flex;align-items:center;justify-content:space-between;color:#f8f4e2}.scene-chip{background:#082b324d;border:1px solid #ffffff20;backdrop-filter:blur(8px);padding:6px 11px;border-radius:30px;font-size:10px}.dialogue-panel{position:absolute;bottom:63px;left:7%;right:7%;background:#10282ceF;border:1px solid #d4c79e55;border-top-color:#cab67f99;border-radius:6px;padding:26px 32px 21px;min-height:165px;max-height:52%;overflow:auto;cursor:pointer;backdrop-filter:blur(18px);box-shadow:0 14px 50px #0003;color:#f9f3e5}.speaker{font-size:12px;letter-spacing:1.5px;color:#d0ba86;margin-bottom:11px}.dialogue-panel p{font-size:var(--font-size);font-family:var(--read-font);line-height:1.75;min-height:2em;white-space:pre-wrap}.dialogue-hint{font-size:9px;color:#bcc8bf88;text-align:right;margin-top:12px;letter-spacing:.6px}.dialogue-hint span{font-size:8px;margin-left:9px;color:#d2ba82}.vn-controls{position:absolute;bottom:8px;left:7%;right:7%;display:flex;align-items:center;justify-content:center;gap:18px;color:#f9f3e2}.control-button{font-size:11px;padding:8px 0;white-space:nowrap}.vn-controls .icon-button{width:32px;height:32px}.vn-controls .active{color:#e6c882}.vn-mode .reader-footer{background:#132e31;border-color:#51656744;color:#f7eddb}.vn-mode .reader-footer .text-button,.vn-mode .reader-footer span{color:#d5ded4}.vn-mode .reader-footer input{accent-color:#d5c18d}dialog{border:1px solid var(--line);border-radius:12px;padding:30px;background:var(--card);color:var(--ink);width:min(94vw,530px);max-height:90dvh;box-shadow:0 30px 100px #0003}dialog::backdrop{background:#122b2755;backdrop-filter:blur(6px)}dialog p{font-size:13px;line-height:1.85;margin:12px 0}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.dialog-heading h2{font-size:26px;line-height:1.3;margin-top:6px}.dialog-heading .icon-button{margin-right:-9px}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:16px 0;font-size:13px}.setting-row select{max-width:190px}.setting-row input{width:160px;accent-color:var(--accent)}.small{font-size:11px!important}hr{border:0;border-top:1px solid var(--line);margin:24px 0}dialog h3{font-size:14px;font-weight:500}.button-row{display:flex;gap:10px;flex-wrap:wrap}.art-import{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:23px 0}.upload-card{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;border:1px dashed #94a48a;border-radius:8px;padding:25px 10px;cursor:pointer;font-size:12px;background:#a5b3910b}.upload-card span:last-of-type{font-size:10px;color:var(--muted);text-align:center}.upload-card strong{font-weight:500}.toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,12px);background:#163f36;color:#fff9eb;border-radius:6px;padding:12px 20px;box-shadow:0 8px 25px #0002;z-index:100;opacity:0;pointer-events:none;transition:.2s;font-size:13px;max-width:90vw;text-align:center}.toast.visible{opacity:1;transform:translate(-50%,0)}.history-item{padding:12px 0;border-bottom:1px solid var(--line);font-size:14px;line-height:1.8}.history-item button{font-size:10px;color:var(--accent);display:block;margin-top:5px}.history-current{background:#afb58a15}.night{--bg:#18251f;--card:#202e27;--ink:#e7eadb;--muted:#9aa798;--line:#3b493c;--accent:#9bb79a;color-scheme:dark}.night .primary{background:#9bb79a;color:#142d24}.night #savedCount{background:#354333}.night .cover{filter:brightness(.65)}.night .brandmark{color:#c4d3b4}.sepia{--bg:#ede2cc;--card:#f4ead8;--ink:#493e2d;--muted:#90816a;--line:#d5c6a8;--accent:#695c3f}
@media(min-width:1450px){.library-main{max-width:1300px}.hero{min-height:480px}.hero-art{height:350px}.shelf-grid{gap:26px}.cover{height:185px}}@media(max-width:1050px){.topbar{padding:0 30px}.library-main{padding:0 30px}.hero{grid-template-columns:1.2fr 1fr}.hero-art{margin:0}.toolbar{align-items:flex-start;flex-direction:column}.search-tools{width:100%}.search{flex:1}.search input{width:100%}.cover{height:150px}.shelf-grid{gap:15px}.card-bottom{padding:12px}.card-bottom h3{font-size:16px}.hero h1{font-size:43px}}@media(max-width:700px){.topbar{height:80px;padding:0 20px;gap:12px}.brand{font-size:25px;gap:8px}.brandmark{width:29px;height:35px;font-size:20px}.brand-sub{font-size:7px}.topbar nav{gap:15px}.nav{font-size:11px}.topbar>.icon-button{width:28px}.library-main{padding:0 20px}.hero{min-height:0;padding:34px 0 38px;gap:5px;grid-template-columns:1.4fr .8fr}.eyebrow{font-size:8px;letter-spacing:1.6px}.hero-copy>.eyebrow{font-size:6px;letter-spacing:1px}.tiny-star{margin-right:3px;font-size:13px}.hero h1{font-size:32px;letter-spacing:-1px;margin:16px 0}.hero-copy>p{font-size:11px;line-height:1.8}.hero-copy>p br{display:none}.hero .primary{font-size:11px;padding:10px 15px;gap:14px;margin-top:20px;min-height:40px}.hero .primary svg{width:16px}.hero-foot{font-size:8px;line-height:1.5;gap:5px}.hero-art{height:230px;transform:scale(.72);transform-origin:center right;width:190px;margin-left:-60px}.arch{bottom:5px}.art-caption{display:none}.section-heading h2{font-size:25px}.section-heading{align-items:start}#resultCount{font-size:9px;margin-top:25px}.toolbar{margin:20px 0;gap:12px;padding-bottom:17px}.chip{font-size:10px;padding:7px 9px}.filters{gap:1px}.shelf-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 14px}.cover{height:157px}.card-bottom h3{font-size:18px}.card-bottom{padding:13px}.resume-panel{padding:14px;margin-bottom:26px;gap:10px}.resume-icon{width:32px;height:36px}.resume-panel .secondary{padding:6px 9px;font-size:10px}.resume-panel h3{font-size:12px}.resume-panel p{font-size:9px}.library-footer{flex-wrap:wrap;gap:8px;margin-top:35px}.library-footer>span:nth-child(2){order:3;width:100%}.reader-header{padding:8px 12px;gap:5px;min-height:63px}.reader-heading h2{font-size:12px}.reader-heading>span{font-size:9px}.reader-actions{gap:1px}.reader-actions .icon-button{width:32px}.mode-button{padding:6px 8px;font-size:9px}.book-content{padding:35px 24px 20px;font-size:var(--font-size);line-height:1.9}.book-content h1{font-size:25px}.reader-footer{padding:10px 12px max(10px,env(safe-area-inset-bottom));gap:8px}.reader-footer .text-button{font-size:9px}.progress-control{gap:4px}.progress-control span{font-size:9px;min-width:46px}.vn-top{top:12px;left:14px;right:14px}.dialogue-panel{left:4%;right:4%;bottom:57px;padding:18px 19px 14px;min-height:170px;max-height:55%}.dialogue-panel p{font-size:calc(var(--font-size) - 1px);line-height:1.7}.vn-controls{left:3%;right:3%;gap:13px;bottom:9px}.control-button{font-size:10px}.speaker{font-size:10px}.stage-placeholder{inset:10% 10% 36%;gap:13px}.stage-sigil{width:90px;height:120px;font-size:50px}.stage-placeholder>span:last-of-type{font-size:7px;letter-spacing:2px}.stage-placeholder .text-button{font-size:9px}.character-portrait{right:0;max-width:100%;height:95%}.chapter-row{padding:14px 12px;gap:10px}.chapter-open strong{font-size:13px}.chapter-open small{font-size:10px}.chapter-num{font-size:12px;width:19px}dialog{padding:23px}.dialog-heading h2{font-size:24px}.setting-row input{width:125px}.setting-row select{max-width:165px}.group-head h2{font-size:28px}.scene-chip{font-size:9px}}@media(max-width:370px){.topbar nav{gap:9px}.nav{font-size:10px}.hero h1{font-size:29px}.hero-art{transform:scale(.6);margin-left:-90px}.hero-foot{font-size:7px}.card-bottom h3{font-size:16px}.cover{height:140px}.hero-copy>.eyebrow{letter-spacing:0}.vn-controls{gap:8px}.control-button{font-size:9px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
/* Reader conveniences and character portraits */
.book-content{max-width:var(--read-width,800px);line-height:var(--line-height,1.95)}.book-content p{margin-bottom:var(--paragraph-space,1.2em)}.cover-portrait{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;image-rendering:pixelated;padding:12px 4px 0;z-index:2}.cover.has-portrait .cover-letter,.cover.has-portrait .cover-ring{opacity:0}.cover-category,.cover-number{z-index:3}.cover.has-portrait .cover-category{background:#fff9;padding:3px 5px;border-radius:3px;backdrop-filter:blur(5px)}.cast-strip{border-top:1px solid var(--line);padding:21px 0 24px;margin-bottom:4px}.cast-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.cast-list{display:flex;gap:22px;overflow-x:auto;padding:0 0 9px;scrollbar-width:thin}.cast-person{display:flex;flex-direction:column;align-items:center;gap:8px;flex:0 0 67px;padding:0;font-size:10px;color:var(--muted);min-width:0}.cast-person>span:last-child{max-width:76px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cast-face{width:58px;height:58px;border:1px solid var(--line);border-radius:50%;background:#dce3d2}.cast-face .cover-portrait{padding:0;object-fit:cover}.cast-face .cover-letter{font-size:25px}.character-portrait.is-face{height:240px;width:240px;max-width:45%;right:calc(50% - 120px);top:8%;bottom:auto;border:1px solid #d8c79e66;border-radius:50%;background:#d0d9b833;padding:10px;image-rendering:pixelated;object-fit:contain;filter:drop-shadow(0 20px 30px #0003)}.reader-tool-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.reader-tool-grid .secondary{padding:18px 10px}.toc-row,.find-row{display:flex;flex-direction:column;text-align:left;width:100%;padding:13px 10px;border-bottom:1px solid var(--line);gap:4px;font-size:13px}.toc-row small{font-size:9px;color:var(--muted);letter-spacing:1px}.toc-current{border-left:3px solid var(--gold);background:#9dad8b16}.find-row small{color:var(--muted);font-size:10px}.find-row span{line-height:1.8}.find-results{margin-top:18px}.find-results>p{margin-bottom:9px}.note-label{font-size:12px;display:flex;flex-direction:column;gap:8px;margin:18px 0 12px}.note-label input{width:100%;border:1px solid var(--line);background:var(--bg);border-radius:5px;color:var(--ink);padding:10px 12px}.location-row{display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line);padding:13px 0}.location-row>button:first-child{display:flex;flex-direction:column;gap:4px;text-align:left;flex:1;min-width:0}.location-row strong{font-size:12px;font-weight:500}.location-row span{font-size:12px}.location-row small{font-size:11px;color:var(--muted)}#locationList{margin-top:20px}.update-banner{position:fixed;bottom:15px;left:50%;transform:translateX(-50%);max-width:min(94vw,750px);padding:12px 17px;display:flex;align-items:center;gap:15px;z-index:90;background:var(--card);border:1px solid var(--gold);border-radius:8px;box-shadow:0 10px 45px #0002;font-size:12px}.update-banner .secondary{white-space:nowrap;font-size:11px;padding:7px 10px}.update-banner .icon-button{width:24px;height:24px}.setting-row input[type=color]{width:65px;height:31px;padding:2px;border:1px solid var(--line);border-radius:4px;background:var(--card)}.setting-row input[type=checkbox]{width:18px;accent-color:var(--accent)}.custom-colors .primary{background:var(--ink);color:var(--bg)}
@media(max-width:700px){.cast-list{gap:17px}.cast-person{flex-basis:57px;font-size:9px}.cast-face{width:51px;height:51px}.cast-strip{padding:17px 0}.cast-heading .eyebrow{font-size:7px}.cast-heading .text-button{font-size:10px}.character-portrait.is-face{height:170px;width:170px;right:calc(50% - 85px);top:9%;max-width:70%;padding:7px}.reader-tool-grid{gap:9px}.reader-tool-grid .secondary{font-size:12px}.update-banner{padding:10px 12px;gap:8px;font-size:10px}.update-banner .secondary{font-size:10px}.reader-heading h2{font-size:11px}}

@media(max-width:700px){.hero-art{transform:scale(.66)}}
/* Library discovery and clear, responsive shelves */
.topbar{max-width:1536px;height:84px}.library-main{max-width:1440px;padding:0 48px}.discovery{display:flex;align-items:center;justify-content:space-between;gap:30px;padding:30px 0 26px;border-bottom:1px solid var(--line)}.discovery h2{font-size:25px;margin-top:5px}.discovery .search-tools{width:min(56%,690px)}.discovery .search{flex:1;padding:13px 16px;border-radius:10px;box-shadow:0 4px 18px #19372b05}.discovery .search input{width:100%;min-width:0;font-size:14px}.discovery .search svg{width:20px;height:20px;flex-shrink:0}.discovery select{padding:13px 10px}.hero{margin:28px 0 30px;padding:34px 40px;min-height:350px;background:linear-gradient(115deg,#dce7dc88,#e7dfca77);border:1px solid var(--line);border-radius:18px;overflow:hidden}.hero h1{font-size:46px}.hero-art{height:290px}.hero-foot{font-size:12px}.hero-copy>p{font-size:14px}.cast-strip{display:none!important}.toolbar{margin:22px 0 12px;padding-bottom:16px}.filters{gap:7px}.chip{padding:10px 15px;font-size:13px;border-radius:22px;border:1px solid var(--line)}.chip.active{border-color:var(--accent)}.browse-options{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin:0 0 24px;padding:4px 0}.browse-options label{display:flex;align-items:center;gap:9px;font-size:12px;color:var(--muted)}.browse-options select{font-size:12px;max-width:170px}.browse-options>.text-button{margin-left:auto}.type-filters{margin:0 0 22px}.overview-grid{display:block}.shelf-section{margin-bottom:44px}.shelf-section-head{display:flex;justify-content:space-between;align-items:center;margin:0 0 18px}.shelf-section-head h2{font-size:26px;margin-top:4px}.shelf-section-head h2 small{font:12px sans-serif;margin-left:6px;color:var(--muted)}.section-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}.shelf-grid:not(.overview-grid){grid-template-columns:repeat(4,minmax(0,1fr))}.group-card{border-radius:12px}.cover{height:184px}.cover-portrait{inset:auto;width:128px;height:128px;max-width:72%;padding:0;object-fit:contain;image-rendering:auto;filter:drop-shadow(0 7px 12px #183f3520);border-radius:10px}.cover.has-portrait .cover-category{background:transparent;backdrop-filter:none;padding:0}.cover-category{font-size:10px!important;letter-spacing:.7px!important}.cover-number{font-size:11px}.card-bottom{padding:17px 18px}.card-bottom h3{font-size:21px}.card-meta{font-size:12px}.mini-progress{height:3px}.group-head{border-radius:12px}.chapter-list{grid-column:1/-1}.chapter-row{border-radius:9px}.chapter-open strong{font-size:15px}.chapter-open small{font-size:12px}.character-portrait.is-face{image-rendering:auto;width:180px;height:180px;right:calc(50% - 90px);border-radius:14px;padding:0}.night .hero{background:linear-gradient(115deg,#304b39,#293930)}.night .cover{filter:none}.night .cover-category{color:#314b3b}.night .card-bottom{background:var(--card)}
@media(min-width:1550px){.shelf-grid:not(.overview-grid){grid-template-columns:repeat(5,minmax(0,1fr))}.cover{height:190px}}
@media(max-width:1000px){.library-main{padding:0 28px}.discovery{align-items:flex-start;flex-direction:column;gap:16px}.discovery .search-tools{width:100%}.section-cards,.shelf-grid:not(.overview-grid){grid-template-columns:repeat(3,minmax(0,1fr))}.section-cards>.group-card:nth-child(4){display:none}.hero{padding:28px}.hero h1{font-size:39px}.hero-art{height:270px}.cover{height:175px}}
@media(max-width:700px){.library-main{padding:0 18px}.topbar{height:75px;padding:0 18px}.discovery{padding:24px 0 20px;gap:14px}.discovery h2{font-size:24px}.discovery .search-tools{gap:8px;align-items:stretch}.discovery .search{padding:11px 12px;min-width:0}.discovery .search input{font-size:13px}.discovery select{font-size:11px;padding:9px 6px;max-width:90px}.hero{border-radius:13px;margin:20px 0 27px;padding:23px 20px;grid-template-columns:1fr;min-height:0}.hero h1{font-size:34px;margin:14px 0}.hero-copy>.eyebrow{font-size:8px;letter-spacing:1.3px}.hero-art{display:none}.hero-copy>p{font-size:13px}.hero .primary{font-size:12px;margin-top:18px}.hero-foot{font-size:10px}.section-heading h2{font-size:25px}.toolbar{margin:20px 0 14px}.filters{gap:7px}.chip{font-size:11px;padding:9px 12px}.browse-options{gap:10px 14px;margin-bottom:22px}.browse-options label{font-size:11px;gap:5px}.browse-options select{font-size:11px;max-width:140px}.browse-options>.text-button{margin-left:0}.shelf-section{margin-bottom:31px}.shelf-section-head h2{font-size:23px}.shelf-section-head>.text-button{font-size:11px;white-space:nowrap}.shelf-section-head .eyebrow{font-size:7px}.section-cards,.shelf-grid:not(.overview-grid){grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.section-cards>.group-card:nth-child(4){display:block}.cover{height:167px}.cover-portrait{width:112px;height:112px}.cover-category{left:10px!important;top:10px!important;font-size:8px!important}.card-bottom{padding:14px 12px}.card-bottom h3{font-size:18px}.card-meta{font-size:10px}.chapter-open strong{font-size:14px}.chapter-open small{font-size:11px}.character-portrait.is-face{width:150px;height:150px;right:calc(50% - 75px)}.group-head h2{font-size:27px}}

.cover-portrait{max-width:min(72%,var(--native-size,128px));max-height:var(--native-size,128px)}

/* Bundled Vietnamese glyphs prevent OS font fallback from separating tone marks. */
:root{--read-font:'Abyss Serif',Georgia,serif}
body{font-family:'Abyss Sans','Segoe UI',sans-serif}
h1,h2,.brand,.card-bottom h3{font-family:'Abyss Serif',Georgia,serif}
.book-content,.dialogue-panel p{font-family:var(--read-font);letter-spacing:normal;word-spacing:normal;font-kerning:normal;text-indent:0;overflow-wrap:break-word}
.book-content h1{font-family:var(--read-font);line-height:1.55;letter-spacing:normal}
.reader-heading h2{font-family:'Abyss Sans','Segoe UI',sans-serif;line-height:1.6;letter-spacing:normal}
.book-content p{line-height:var(--line-height,1.9);padding-block:2px}
