.flipbook{background:#26191e;color:#fff4eb;border-radius:20px;padding:20px;box-shadow:0 18px 45px #32121a25}.reader-tools{display:flex;gap:12px;align-items:center;justify-content:center;flex-wrap:wrap}.reader-tools button,.reader-tools select{border:1px solid #e3c4bb;background:#fff6ee;color:#70182b;padding:10px 14px;border-radius:6px;font:inherit;cursor:pointer}.reader-tools button:disabled{opacity:.4;cursor:default}.reader-tools button:focus-visible,.reader-tools select:focus-visible{outline:3px solid #dfb76e;outline-offset:3px}#reader-status{text-align:center;margin:12px}.book-stage{display:flex;justify-content:center;align-items:flex-start;max-height:76vh;overflow:auto;perspective:1800px;padding:5px 0 15px;touch-action:pan-y}.book-page{position:relative;flex:0 0 auto;max-width:50%;box-shadow:0 3px 16px #0006}.book-page img{display:block;width:auto;max-width:100%;max-height:70vh;object-fit:contain;background:white}.book-page a{position:absolute;display:block}.book-page a:focus-visible{outline:3px solid #a51a3d;background:#ffffff55}.book-stage.single .book-page{max-width:100%}.book-stage.zoomed{justify-content:flex-start;max-height:80vh;touch-action:auto}.book-stage.zoomed .book-page{max-width:none}.book-stage.zoomed img{max-height:none;max-width:none;width:1000px}.turn-next .book-page:last-child{animation:turnnext .42s ease-out;transform-origin:left center}.turn-back .book-page:first-child{animation:turnback .42s ease-out;transform-origin:right center}.reader-hint{text-align:center;font-size:14px;margin-bottom:0!important}.flipbook:fullscreen{overflow:auto;border-radius:0;padding:24px}.flipbook:fullscreen .book-stage{max-height:84vh}.flipbook:fullscreen img{max-height:78vh}@keyframes turnnext{from{transform:rotateY(-45deg);opacity:.5}to{transform:rotateY(0);opacity:1}}@keyframes turnback{from{transform:rotateY(45deg);opacity:.5}to{transform:rotateY(0);opacity:1}}@media(max-width:700px){.flipbook{padding:12px;border-radius:12px}.reader-tools{gap:8px}.reader-tools button,.reader-tools select{font-size:14px;padding:9px}.book-page{max-width:100%}.book-page img{max-height:72vh}.reader-hint{font-size:12px}}@media(prefers-reduced-motion:reduce){.book-page{animation:none!important}}

/* Explicit page dimensions prevent flex overflow and cropped magazine pages. */
.book-stage{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:none;overflow:visible;align-items:start;gap:0}.book-stage.single{grid-template-columns:minmax(0,1fr)}.book-page,.book-stage.single .book-page{width:100%;max-width:100%;min-width:0}.book-page img{width:100%;height:auto;max-width:100%;max-height:none;aspect-ratio:17/22}.book-stage.single .book-page{max-width:680px;margin:auto}.book-stage.zoomed{display:flex;max-height:80vh;overflow:auto}.book-stage.zoomed .book-page{flex:0 0 1000px;max-width:none;width:1000px}.flipbook:fullscreen .book-stage:not(.zoomed){max-height:none}.flipbook:fullscreen img{max-height:none}.flipbook:fullscreen .book-stage.single .book-page{max-width:780px}@media(max-width:700px){.book-stage{grid-template-columns:minmax(0,1fr)}.book-page img{max-height:none}}
