*{box-sizing:border-box}html,body{height:100%;margin:0}body{font-family:Arial,sans-serif;color:#34372f;display:flex;flex-direction:column;background:#e8e9ed;overflow:hidden}button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,#book:focus-visible{outline:3px solid #7066f3;outline-offset:3px}header{height:55px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 25px;border-bottom:1px solid #d9dbe4;background:#f4f4f7}.reader-brand{font-size:20px;font-weight:700;letter-spacing:-.7px}.reader-brand b{color:#7168ee}.reader-edition{font-size:10px;color:#8c90a3;letter-spacing:.09em}#stage{flex:1;min-height:150px;position:relative;display:flex;align-items:center;justify-content:center;perspective:2200px;overflow:auto;padding:30px 48px 38px;background:radial-gradient(ellipse at 50% 70%,#f8f8fa 0,#e4e5eb 85%)}#book{position:relative;flex-shrink:0;perspective:2200px;transform-origin:center;transition:transform .3s;isolation:isolate;user-select:none;touch-action:pan-y}.paper{position:absolute;top:0;width:50%;height:100%;background:#fff;box-shadow:0 10px 24px #24284224}.paper.left{left:0;border-radius:3px 0 0 3px}.paper.right{right:0;border-radius:0 3px 3px 0}.paper img,.face img{display:block;width:100%;height:100%;object-fit:contain;background:#fff}.paper.blank{visibility:hidden}.spine{position:absolute;z-index:2;top:0;left:50%;width:30px;transform:translateX(-50%);height:100%;background:linear-gradient(90deg,transparent,#0000000a 32%,#00000019 49%,#fff5 52%,#00000008 68%,transparent);pointer-events:none}#book.cover .spine{display:none}.page-turn{position:absolute;top:0;left:50%;width:50%;height:100%;z-index:5;transform-origin:left center;transform-style:preserve-3d;display:none}.page-turn.active{display:block}.face{position:absolute;inset:0;backface-visibility:hidden;background:#fff;overflow:hidden;box-shadow:0 2px 22px #2223}.face:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#00000022,transparent 22%,transparent 75%,#0000000d);pointer-events:none}.face.back{transform:rotateY(180deg)}.page-turn.forward{animation:turnForward .66s cubic-bezier(.38,.02,.22,1) both}.page-turn.backward{left:0;transform-origin:right center;animation:turnBackward .66s cubic-bezier(.38,.02,.22,1) both}.edge{position:absolute;z-index:8;width:39px;height:55px;top:calc(50% - 28px);background:#fafafaeb;border:1px solid #fff;border-radius:8px;box-shadow:0 3px 12px #282d4112;color:#666b83;font-size:37px;line-height:1;transition:background .2s,transform .2s}.edge:hover{background:#fff;transform:scale(1.08)}.edge:disabled{opacity:.2;cursor:default;transform:none}.prev{left:13px}.next{right:13px}.stage-hint{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);font-size:10px;color:#8d91a4;white-space:nowrap}.toolbar{display:flex;align-items:center;justify-content:center;gap:8px;padding:11px;background:#f7f7f9;border-top:1px solid #d6d9e1;flex-shrink:0}.toolbar button{height:36px;min-width:36px;display:grid;place-items:center;border:0;border-radius:5px;background:transparent;color:#697088;font-size:25px}.toolbar button:hover,.toolbar button[aria-expanded=true]{color:#665ce8;background:#eae7ff}.toolbar svg{height:18px;width:18px;stroke:currentColor;stroke-width:1.5;fill:none}.toolbar label,.total{font-size:12px;color:#7a8194}.toolbar input{width:48px;padding:7px 4px;border:1px solid #d8dbe5;background:white;border-radius:4px;text-align:center;color:#4f5670;font-size:12px;appearance:textfield}.toolbar input::-webkit-inner-spin-button{appearance:none}.divider{height:19px;width:1px;background:#dde0e7;margin:0 4px}.status{height:26px;flex-shrink:0;background:#f7f7f9;text-align:center;font-size:10px;color:#8d92a4}#thumbnails{position:absolute;inset:55px 0 0;z-index:20;background:#f3f3f8f7;backdrop-filter:blur(12px);overflow:auto;padding:23px}.thumbs-heading{display:flex;justify-content:space-between;align-items:center;font-size:15px;margin-bottom:20px}.thumbs-heading button{background:none;border:0;font-size:28px;color:#6f738c}#thumbs-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:17px}#thumbs-grid button{border:1px solid #d6d9e5;border-radius:5px;padding:7px;background:#fff;transition:transform .2s}#thumbs-grid button:hover{transform:translateY(-4px);border-color:#7168ee}#thumbs-grid img{width:100%;height:140px;object-fit:contain;display:block;background:#fff}#thumbs-grid span{display:block;font-size:10px;color:#9398ac;margin-top:7px}body.single .paper.left,body.single .spine{display:none}body.single .paper.right{width:100%;border-radius:3px}body.single .page-turn{left:0;width:100%;transform-origin:left center}body.single .page-turn.backward{left:0;transform-origin:right center}body.single .page-turn .back img{opacity:0}body.single .page-turn.forward{animation:singleNext .5s ease both}body.single .page-turn.backward{animation:singlePrev .5s ease both}@keyframes turnForward{from{transform:rotateY(0deg)}to{transform:rotateY(-180deg)}}@keyframes turnBackward{from{transform:rotateY(0deg)}to{transform:rotateY(180deg)}}@keyframes singleNext{from{transform:rotateY(0);opacity:1}to{transform:rotateY(-120deg);opacity:0}}@keyframes singlePrev{from{transform:rotateY(0);opacity:1}to{transform:rotateY(120deg);opacity:0}}@media(max-width:600px){header{height:48px;padding:0 15px}.reader-brand{font-size:18px}.reader-edition{font-size:8px}#stage{padding:20px 38px 35px}.edge{width:29px;height:43px;font-size:30px}.prev{left:5px}.next{right:5px}.toolbar{gap:3px;padding:8px 4px}.toolbar button{min-width:33px;width:33px;height:35px}.divider{margin:0 2px}.toolbar label{display:none}.toolbar input{width:42px}.stage-hint{font-size:9px}#thumbnails{inset:48px 0 0}#thumbs-grid{grid-template-columns:repeat(3,1fr);gap:10px}}@media(prefers-reduced-motion:reduce){*{animation-duration:.01s!important;transition:none!important}}

#book{transition:transform .3s,translate .65s}#book.cover{translate:-25% 0}
