/* Self-hosted Book Dash reader — one landscape page at a time, tap/swipe/arrows to
   turn with a page-flip animation. Scoped under .sr .book. */
.sr .book{max-width:760px;margin:0 auto;position:relative}
.sr .book .stage{position:relative;aspect-ratio:2 / 1;background:#fff7fb;border:3px solid #ffe1ee;border-radius:18px;
  overflow:hidden;box-shadow:0 12px 28px rgba(255,150,180,.2);perspective:1800px;cursor:pointer;-webkit-tap-highlight-color:transparent}
.sr .book .stage img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#fff7fb;user-select:none;-webkit-user-drag:none}
.sr .book .stage .under{visibility:hidden}
.sr .book .stage .top{transform-origin:left center;backface-visibility:hidden;box-shadow:0 0 18px rgba(120,90,140,0)}
.sr .book .stage .top.flipping{box-shadow:12px 0 22px rgba(120,90,140,.22)}

.sr .book .nav{position:absolute;top:0;bottom:0;display:flex;align-items:center;pointer-events:none}
.sr .book .nav.left{left:6px}
.sr .book .nav.right{right:6px}
.sr .book .arrow{pointer-events:auto;width:44px;height:44px;border-radius:50%;border:none;cursor:pointer;font-size:22px;font-weight:900;
  color:#fff;background:linear-gradient(180deg,#ffa9cf,#ff7eb3);box-shadow:0 4px 0 #ef5e98;display:flex;align-items:center;justify-content:center}
.sr .book .arrow:active{transform:translateY(2px);box-shadow:0 2px 0 #ef5e98}
.sr .book .arrow[disabled]{opacity:.3;cursor:default;box-shadow:0 4px 0 #ef5e98}

.sr .book .page-text{max-width:640px;margin:14px auto 0;font-size:17px;line-height:1.55;color:#5a4a6a;text-align:center;
  background:#fff;border:2px solid #ffe1ee;border-radius:16px;padding:14px 18px;box-shadow:0 6px 16px rgba(255,150,180,.14)}
.sr .book .page-text:empty,.sr .book .page-text[style*="display: none"]{display:none}
.sr .book .counter{text-align:center;margin-top:10px;font-size:13px;font-weight:800;color:#b3a3c4}
