.bb-reader{--bb-blue:#132641;box-sizing:border-box;background:radial-gradient(ellipse at 50% 35%,#354c69,#102039 75%);color:#fff;border-radius:14px;padding:22px 14px;font-family:system-ui,sans-serif;max-width:1150px;margin:20px auto;text-align:center;overflow:auto;isolation:isolate}.bb-reader *{box-sizing:border-box}.bb-reader .bb-heading{color:#fff;font-size:clamp(16px,2.4vw,25px);font-weight:800;letter-spacing:.08em;margin:0 0 4px}.bb-reader .bb-sub{font-size:12px;letter-spacing:.16em;color:#dce7f7;margin:0 0 16px}.bb-reader .bb-stage{display:flex;align-items:center;justify-content:center;min-height:0;perspective:1800px;touch-action:pan-y;padding:8px 0 16px}.bb-reader .bb-book{position:relative;display:flex;width:min(100%,850px);aspect-ratio:296/210;justify-content:center;align-items:stretch;filter:drop-shadow(0 10px 12px #0007);perspective:1800px;transform-style:preserve-3d}.bb-reader .bb-page{display:block;width:50%;height:100%;object-fit:contain;max-width:none;margin:0;border:0;background:#fff;user-select:none;pointer-events:none}.bb-reader .bb-book.bb-single{width:min(100%,425px);aspect-ratio:148/210}.bb-reader .bb-single .bb-page{width:100%}.bb-reader .bb-book:not(.bb-single):after{content:'';position:absolute;inset:0 auto 0 50%;width:18px;transform:translateX(-50%);background:linear-gradient(90deg,transparent,#0003 48%,#0004 50%,transparent);pointer-events:none}.bb-reader .bb-turn{position:absolute;top:0;width:50%;height:100%;transform-style:preserve-3d;z-index:3;pointer-events:none}.bb-reader .bb-turn img{width:100%;height:100%;position:absolute;inset:0;backface-visibility:hidden;object-fit:contain;background:white;margin:0;max-width:none}.bb-reader .bb-turn img:last-child{transform:rotateY(180deg)}.bb-reader .bb-turn.forward{left:50%;transform-origin:left center;animation:bb-forward .62s ease-in-out forwards}.bb-reader .bb-turn.backward{right:50%;transform-origin:right center;animation:bb-back .62s ease-in-out forwards}@keyframes bb-forward{to{transform:rotateY(-180deg)}}@keyframes bb-back{to{transform:rotateY(180deg)}}.bb-reader .bb-single .bb-turn{width:100%;left:0;right:0}.bb-reader .bb-controls{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;margin:5px 0}.bb-reader button,.bb-reader .bb-pdf{appearance:none;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 13px;border:1px solid #ffffff50;border-radius:7px;background:#ffffff13;color:white;font:600 14px system-ui;text-decoration:none;cursor:pointer;line-height:1.2}.bb-reader button:hover,.bb-reader .bb-pdf:hover{background:#ffffff30;color:white}.bb-reader button:disabled{opacity:.35;cursor:default}.bb-reader button:focus-visible,.bb-reader a:focus-visible{outline:2px solid #ffdc65;outline-offset:3px}.bb-reader .bb-count{min-width:92px;font-size:13px;font-variant-numeric:tabular-nums}.bb-reader .bb-thumbs{display:flex;justify-content:center;gap:6px;flex-wrap:wrap;margin:12px 0 0}.bb-reader .bb-thumbs button{padding:2px;min-height:0;border:2px solid transparent;border-radius:3px;background:transparent}.bb-reader .bb-thumbs img{width:36px;height:auto;display:block;margin:0}.bb-reader .bb-thumbs button[aria-current=true]{border-color:#ffdc65}.bb-reader .bb-help{font-size:12px;color:#dce7f7;margin:12px 0 0}.bb-reader:fullscreen,.bb-reader.bb-expanded{border-radius:0;margin:0;max-width:none;width:100%;height:100%;display:flex;flex-direction:column;justify-content:center}.bb-reader.bb-expanded{position:fixed;inset:0;z-index:999999}.bb-reader:fullscreen .bb-book,.bb-reader.bb-expanded .bb-book{width:min(100%,calc((100dvh - 220px)*296/210))}.bb-reader:fullscreen .bb-single,.bb-reader.bb-expanded .bb-single{width:min(100%,calc((100dvh - 220px)*148/210))}.bb-reader .bb-zoom .bb-book{width:min(150%,1200px);min-width:min(1100px,140%)}.bb-reader .bb-zoom .bb-single{min-width:min(700px,140%)}.bb-reader .bb-zoom{overflow:auto;justify-content:flex-start}.bb-reader a{color:white}@media(max-width:600px){.bb-reader{padding:15px 8px}.bb-reader .bb-thumbs img{width:27px}.bb-reader button,.bb-reader .bb-pdf{font-size:12px;padding:7px 9px}}@media(prefers-reduced-motion:reduce){.bb-reader .bb-turn{animation-duration:.01s!important}}
