.reader-loading-screen{background:radial-gradient(#eee5ff 0%,#faf7ff 38%,#fff 75%);border:1px solid #ede7fa;border-radius:24px;place-items:center;width:100%;min-height:clamp(340px,60svh,620px);display:grid}.reader-loading-orbit{place-items:center;width:56px;height:56px;display:grid;position:relative}.reader-loading-ring{border:2px solid #8b5cf6;border-color:#8b5cf6 #c4b5fd #8b5cf61a #8b5cf61a;border-radius:50%;animation:1.2s linear infinite reader-loading-spin;position:absolute;inset:0}.book-loading:has(.reader-loading-screen){width:100%;padding:0}.book-loading .reader-loading-screen{min-height:400px}@keyframes reader-loading-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.reader-loading-ring{animation:none}}
.book-reader{outline-offset:5px;background:#f0eeea;border:1px solid #dce1e4;border-radius:24px;overflow:hidden;box-shadow:0 14px 45px #27333c0b}.book-toolbar{background:#fafaf8e8;border-bottom:1px solid #dcdedc;justify-content:space-between;align-items:center;gap:16px;min-height:66px;padding:10px 24px;display:flex}.book-toolbar-label{color:#626d72;align-items:center;gap:9px;font-size:12px;font-weight:600;display:inline-flex}.book-tools{align-items:center;gap:5px;display:flex}.book-tools button,.book-page-picker button{color:#4a565e;background:0 0;border-radius:50%;place-items:center;min-width:40px;height:40px;padding:8px;display:grid}.book-tools button:hover,.book-page-picker button:hover{background:#e8ecec}.book-reader button:disabled{opacity:.32;cursor:default}.book-reader button:focus-visible,.book-reader input:focus-visible{outline-offset:3px;outline:2px solid #627b8c}.book-zoom-label{color:#68747b;text-align:center;font-variant-numeric:tabular-nums;width:40px;font-size:11px}.book-tool-divider{background:#d9dedd;width:1px;height:20px;margin:0 8px}.book-stage{perspective:1800px;touch-action:pan-y pinch-zoom;overscroll-behavior-x:contain;background:radial-gradient(at 50% 10%,#fbfaf7,#0000 70%),#eae8e3;justify-content:center;align-items:flex-start;min-height:520px;padding:38px 48px 44px;display:flex;overflow:auto}.book-stage-zoomed{touch-action:auto;display:block}.book-spread{border-radius:3px;flex-shrink:0;margin:auto;display:flex;position:relative;box-shadow:0 18px 32px #3a302123,3px 4px #eeeae2,4px 5px #d9d4c9,6px 7px #f8f5ed,7px 8px #d5d0c5}.book-paper{transform-origin:0;background:#fffefb;flex-shrink:0;min-height:300px;line-height:0;position:relative}.book-paper canvas{max-width:none;height:auto;display:block}.book-paper:after{content:"";pointer-events:none;background:linear-gradient(90deg,#7963440a,#0000 7% 96%,#7963440d);position:absolute;inset:0;box-shadow:inset 0 0 0 1px #61533c0d}.book-spread-double .book-paper:first-child:after{background:linear-gradient(90deg,#0000 90%,#64503718 98%,#64503730)}.book-spread-double .book-paper:last-child:after{background:linear-gradient(90deg,#64503730,#6450370d 3%,#0000 10%)}.book-paper-number{text-align:center;color:#918777;font-size:10px;line-height:1;position:absolute;bottom:0;left:0;right:0;transform:translateY(23px)}.book-paper-placeholder{color:#8d867b;text-align:center;background:linear-gradient(130deg,#fffefb,#f2efe8);flex-direction:column;justify-content:center;align-items:center;gap:14px;min-height:300px;padding:24px;font-size:12px;line-height:1.7;display:flex;position:absolute;inset:0}.book-turn-next .book-paper.is-ready{animation:.42s ease-out both book-page-next}.book-turn-previous .book-paper.is-ready{transform-origin:100%;animation:.42s ease-out both book-page-previous}.book-navigation{background:#fafaf8;border-top:1px solid #dcdedc;padding:20px 24px 16px}.book-nav-row{justify-content:space-between;align-items:center;gap:14px;display:flex}.book-turn-button{color:#39474e;background:#fff;border:1px solid #dce1e1;border-radius:999px;justify-content:center;align-items:center;gap:10px;min-height:44px;padding:10px 17px;font-size:12px;display:inline-flex}.book-turn-button:not(:disabled):hover{background:#edf1f2}.book-page-picker{color:#718087;justify-content:center;align-items:center;gap:7px;font-size:11px;display:flex}.book-page-picker input{text-align:center;color:#34444d;width:50px;height:36px;font:inherit;appearance:textfield;background:#fff;border:1px solid #dce2e3;border-radius:8px;padding:4px}.book-page-picker input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.book-page-picker input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.book-page-picker button{min-width:32px;height:36px}.book-progress{margin-top:14px;display:block}.book-progress input{accent-color:#53636c;cursor:pointer;width:100%;height:26px}.book-reading-hint{color:#8a9395;text-align:center;margin:4px 0 0;font-size:10px}.book-loading{text-align:center;color:#7d817d;flex-direction:column;justify-content:center;align-items:center;min-height:400px;padding:32px 18px;display:flex}.book-loading-cover{color:#4c6457;background:linear-gradient(140deg,#d5ddd8,#a9b9b0);border-radius:4px 12px 12px 4px;flex-direction:column;justify-content:center;align-items:center;gap:28px;width:135px;height:180px;display:flex;transform:rotate(-6deg);box-shadow:inset 5px 0 #ffffff38,10px 12px 22px #29382f1f}.book-loading h2{color:#4f5c57;margin:28px 0 10px;font-family:Georgia,serif;font-size:22px;font-weight:400}.book-loading p{color:#8a918a;max-width:320px;margin:0;font-size:12px}.book-loading>button{color:#fff;background:#34433c;border-radius:999px;align-items:center;gap:8px;margin-top:22px;padding:12px 20px;font-size:12px;display:inline-flex}.book-spinner{animation:1s linear infinite book-spin}.book-reader-expanded{z-index:100;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom);border:0;border-radius:0;flex-direction:column;display:flex;position:fixed;inset:0}.book-reader-expanded .book-stage{flex:1;min-height:0}.book-reader-expanded .book-toolbar,.book-reader-expanded .book-navigation{flex-shrink:0}@keyframes book-spin{to{transform:rotate(360deg)}}@keyframes book-page-next{0%{opacity:.4;transform:translate(20px)rotateY(-7deg)}to{opacity:1;transform:translate(0)rotateY(0)}}@keyframes book-page-previous{0%{opacity:.4;transform:translate(-20px)rotateY(7deg)}to{opacity:1;transform:translate(0)rotateY(0)}}@media (max-width:600px){.book-reader{border-radius:16px}.book-toolbar{gap:8px;min-height:58px;padding:8px 12px}.book-toolbar-label{gap:6px;font-size:10px}.book-toolbar-label>svg{width:15px}.book-tools{gap:0}.book-tools button{min-width:36px;height:40px;padding:8px}.book-zoom-label{width:34px;font-size:10px}.book-tool-divider{margin:0 4px}.book-stage{min-height:400px;padding:24px 12px 35px}.book-paper{min-height:220px}.book-paper-placeholder{min-height:220px;font-size:11px}.book-spread{box-shadow:0 12px 22px #3a30211a,2px 3px #eeeae2,3px 4px #d9d4c9}.book-navigation{padding:14px 10px 12px}.book-nav-row{gap:6px}.book-turn-button{min-width:44px;padding:10px}.book-turn-button>span{display:none}.book-page-picker{gap:5px;font-size:10px}.book-page-picker input{width:44px}.book-reading-hint{font-size:9px}.book-loading{min-height:350px}.book-loading h2{font-size:20px}.book-reader-expanded{border-radius:0}}@media (max-width:380px){.book-toolbar-label>span{display:none}}@media (prefers-reduced-motion:reduce){.book-turn-next .book-paper.is-ready,.book-turn-previous .book-paper.is-ready,.book-spinner{animation:none}}
