@font-face{font-family:ReaderSans;src:url('assets/NotoSansTC-Regular.otf') format('opentype');font-display:swap}
@font-face{font-family:ReaderSerif;src:url('assets/NotoSerifTC-Regular.otf') format('opentype');font-display:swap}
:root{--forest:#174b45;--ink:#203e39;--yellow:#f0c65a;--paper:#fbfcf8;--mist:#e8efed;--reader-size:18px;--reader-line:1.7}
*{box-sizing:border-box}body{margin:0;background:var(--mist);color:var(--ink);font-family:ReaderSans,'PingFang TC',sans-serif;height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:disabled{cursor:default;opacity:.35}button:focus-visible,a:focus-visible{outline:3px solid #c8971a;outline-offset:3px}[hidden]{display:none!important}
.app-header{width:100%;max-width:760px;align-self:center;display:flex;justify-content:space-between;align-items:center;padding:12px 18px 10px;flex-shrink:0}.brand{display:flex;align-items:center;gap:9px}.brand-mark{font-size:37px;color:var(--forest);line-height:1}.brand strong{font-family:ReaderSerif,serif;font-size:21px;font-weight:400;letter-spacing:2px}.brand small{display:block;font-size:10px;letter-spacing:1px;margin-top:1px;color:#56706a}.quiet-button{border:0;background:transparent;padding:8px 5px;font-size:14px}.quiet-button span{margin-left:7px}
.mode-tabs{display:flex;max-width:460px;width:calc(100% - 24px);align-self:center;background:#d8e3df;padding:4px;border-radius:9px;gap:4px;flex-shrink:0}.mode-tabs button{flex:1;border:0;border-radius:6px;min-height:39px;background:transparent;font-size:15px}.mode-tabs button[aria-selected=true]{background:var(--forest);color:white;box-shadow:0 2px 3px #174b4512}
.reading-tools{max-width:460px;width:calc(100% - 24px);height:43px;flex-shrink:0;align-self:center;display:flex;align-items:center;justify-content:space-between;gap:8px}.reading-tools p{font-size:11px;color:#566d67;line-height:1.5;margin:0}.type-button{border:1px solid #b6c9c1;border-radius:5px;background:#f8fbf9;min-width:49px;height:30px;font-size:13px;padding:3px 9px;white-space:nowrap}.type-button[aria-pressed=true]{background:var(--yellow);border-color:var(--yellow)}
.reader-area{flex:1;min-height:0;width:100%;position:relative;margin:0 auto;max-width:484px;padding:0 12px}.reader-panel{height:100%;width:100%;position:relative}.book-stage{height:100%;width:100%;margin:0 auto;filter:drop-shadow(0 9px 10px #173d3318)}.stf__parent{margin:auto!important}.stf__wrapper{padding-bottom:0!important}.book-page{background:var(--paper);overflow:hidden;box-shadow:inset 0 0 0 1px #d4e2da;color:var(--ink)}.page-inner{height:100%;padding:24px 23px 36px;position:relative;overflow:hidden}.section-label{font-size:11px;letter-spacing:2px;color:#60776c;line-height:1.5;margin-bottom:10px}.story-title{font-family:ReaderSerif,serif;font-weight:400;font-size:27px;line-height:1.5;letter-spacing:.3px;margin:0 0 14px;text-wrap:pretty}.continuation .story-title{font-size:21px;margin-bottom:12px;line-height:1.55}.story-lead{font-size:14px;line-height:1.7;border-left:3px solid var(--yellow);padding-left:10px;margin:0 0 17px;color:#557168}.story-body p{font-size:var(--reader-size);line-height:var(--reader-line);margin:0 0 14px;overflow-wrap:anywhere;letter-spacing:.15px;text-align:left}.page-foot{position:absolute;bottom:11px;left:23px;right:23px;display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#71847b;line-height:1.4;pointer-events:none}.page-foot span:last-child{font-variant-numeric:tabular-nums}
.cover-page{background:var(--forest);color:#f9fbf2}.cover-page .page-inner{padding:24px 24px 30px;display:flex;flex-direction:column;justify-content:flex-start}.cover-top{display:flex;align-items:center;justify-content:space-between;font-size:11px;letter-spacing:2px;color:#d3e8dc}.cover-name{font-family:ReaderSerif,serif;font-size:25px;letter-spacing:5px;margin:17px 0 6px;font-weight:400}.cover-title{font-family:ReaderSerif,serif;font-size:43px;letter-spacing:2px;font-weight:400;line-height:1.35;margin:5px 0 11px}.cover-intro{font-size:15px;line-height:1.85;color:#dcebdd;margin:0;max-width:22em}.cover-art{width:calc(100% + 48px);margin:13px -24px 0;flex:1;min-height:70px;max-height:240px;object-fit:cover;object-position:center bottom;display:block}.cover-bottom{display:flex;justify-content:space-between;align-items:center;padding-top:10px;font-size:11px;line-height:1.5;color:#d5e7dc}.cover-bottom button{font-weight:400;background:var(--yellow);padding:5px 10px;color:var(--forest);border-radius:3px;border:0;font-size:11px}.compact-cover .cover-name{font-size:20px;margin-top:11px}.compact-cover .cover-title{font-size:34px;line-height:1.3;margin:3px 0 8px}.compact-cover .cover-intro{font-size:13px;line-height:1.7}.compact-cover .cover-art{margin-top:8px;max-height:135px}.compact-cover .page-inner{padding-top:17px}.compact-cover .cover-bottom{padding-top:6px;font-size:10px}
.page-navigation{align-self:center;max-width:460px;width:calc(100% - 24px);display:flex;align-items:center;justify-content:space-between;flex-shrink:0;padding-top:9px;gap:6px;height:53px}.page-navigation button{border:0;border-radius:6px;padding:8px 11px;min-height:38px;background:#d4e1dc;font-size:13px}.page-navigation button:last-child{background:var(--forest);color:white}.page-navigation span#pageIndicator{font-size:12px;color:#536b63;white-space:nowrap}.app-footer{flex-shrink:0;padding:5px 12px max(8px, env(safe-area-inset-bottom));text-align:center;color:#6b7e76;line-height:1.5}.app-footer p{margin:0;font-size:10px}.app-footer a{color:#436d5d;text-underline-offset:3px;margin-left:8px}.app-footer small{font-size:9px;display:block;margin-top:2px}.loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:var(--mist);font-size:14px}.zoom-tools{display:flex;align-items:center;border:1px solid #b6c9c1;border-radius:5px;height:30px;background:#f8fbf9}.zoom-tools button{border:0;background:transparent;min-width:29px;height:28px;font-size:17px;padding:0 5px}.zoom-tools output{font-size:10px;min-width:34px;text-align:center}.pdf-scroller{width:100%;height:100%;overflow:auto;background:#ced7d4;overscroll-behavior:contain;border:1px solid #bdccc5;scrollbar-width:thin;touch-action:pan-x pan-y}.pdf-scroller canvas{display:block;margin:0 auto;background:white}.pdf-scroller:focus-visible{outline-offset:-3px}
.toc-dialog{border:0;border-radius:12px;background:var(--paper);color:var(--ink);width:calc(100% - 32px);max-width:440px;padding:24px;max-height:calc(100dvh - 50px);box-shadow:0 25px 80px #072b2a44}.toc-dialog::backdrop{background:#123b35aa;backdrop-filter:blur(3px)}.dialog-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.dialog-top small{font-size:11px;letter-spacing:2px;color:#688176}.dialog-top h2{font-size:24px;font-family:ReaderSerif,serif;font-weight:400;margin:5px 0 20px}.cover-link{border:1px solid #bdcec5;background:transparent;border-radius:5px;width:100%;text-align:left;padding:12px 13px;font-size:14px;margin-bottom:10px}.toc-item{border:0;border-top:1px solid #dce5de;background:transparent;display:block;width:100%;text-align:left;padding:14px 0}.toc-item small{display:block;color:#7a8471;font-size:10px;margin-bottom:5px}.toc-item strong{font-weight:400;font-size:17px;line-height:1.65}.dialog-note{color:#71847b;font-size:11px;margin-bottom:0}.measure-stage{position:fixed;left:-12000px;top:0;visibility:hidden;pointer-events:none}.measure-stage .book-page{position:relative!important}.measure-stage .page-inner{height:100%}
@media(min-width:700px){body{padding-top:10px;padding-bottom:7px}.app-header{max-width:460px;padding:10px 4px 13px}.reader-area{max-width:484px}.reading-tools{height:45px}.app-footer{padding-top:7px}.page-navigation{height:55px}}
@media(max-height:650px){.app-header{padding-top:7px;padding-bottom:6px}.brand strong{font-size:18px}.brand-mark{font-size:31px}.brand small{font-size:9px}.mode-tabs button{min-height:33px;font-size:14px}.reading-tools{height:36px}.page-navigation{height:45px;padding-top:6px}.page-navigation button{min-height:33px;padding-top:6px;padding-bottom:6px}.app-footer{padding-top:4px;padding-bottom:5px}.app-footer small{display:none}.page-inner{padding-top:18px}.story-title{font-size:23px;margin-bottom:10px}.story-lead{margin-bottom:12px}.section-label{margin-bottom:7px}.story-body p{margin-bottom:11px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
