
:root{--ink:#20251f;--gold:#b38e50;--paper:#f1efea;--muted:#777a70}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:Arial,Helvetica,sans-serif}button,a,select,input{-webkit-tap-highlight-color:transparent}button,select{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;border:0;background:none;color:inherit}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid var(--gold);outline-offset:5px}header{height:92px;padding:0 4vw;display:flex;align-items:center;justify-content:space-between;background:#faf9f6;border-bottom:1px solid #d9d8d0;gap:18px}.brand{text-decoration:none;color:inherit;display:grid;gap:8px}.brand strong{font-size:23px;letter-spacing:2px}.brand strong span{font-size:11px;font-weight:400;letter-spacing:3px}.brand small{font-size:8px;letter-spacing:1.6px;color:var(--muted)}.tools{display:flex;align-items:center;gap:9px}.tools button,.tools a{font-size:17px;padding:10px;border-radius:3px;text-decoration:none}.tools span{font-size:11px;margin-left:6px}.tools button:hover{background:#e9e6de}.tools .download{background:var(--ink);color:#fff;padding:13px 16px}main{padding:27px 4vw 0;max-width:1900px;margin:auto}.intro{display:flex;align-items:center;justify-content:space-between;margin:0 48px 24px;gap:20px}.eyebrow{font-size:9px;letter-spacing:2.5px;color:#7c6b4c}#chapter{font-family:Georgia,serif;font-size:17px;font-style:italic;color:#73746b}.stage{position:relative;display:flex;align-items:center;justify-content:center;min-height:420px;height:calc(100dvh - 274px);max-height:1000px;padding:0 48px;perspective:2200px}.book{display:flex;position:relative;justify-content:center;align-items:center;width:100%;max-height:100%;filter:drop-shadow(0 16px 17px #22271e26);transition:transform .25s;transform-style:preserve-3d}.sheet{position:relative;flex-shrink:1;min-width:0;aspect-ratio:792/612;max-height:calc(100dvh - 274px);height:100%;overflow:hidden;background:#fff;cursor:zoom-in}.sheet img{width:100%;height:100%;display:block;object-fit:contain}.book.double .sheet{width:50%}.book.single .sheet{width:auto;max-width:100%}.book.double:after{content:'';position:absolute;left:50%;top:0;bottom:0;width:18px;transform:translateX(-50%);pointer-events:none;background:linear-gradient(90deg,#0000,#0002,#0000)}.book.turn-next{animation:next .38s ease both}.book.turn-prev{animation:previous .38s ease both}@keyframes next{0%{opacity:.35;transform:rotateY(7deg) translateX(8px)}100%{opacity:1;transform:none}}@keyframes previous{0%{opacity:.35;transform:rotateY(-7deg) translateX(-8px)}100%{opacity:1;transform:none}}.hotspot{position:absolute;z-index:3;border-radius:2px}.hotspot:hover{background:#b38e5030;outline:1px solid var(--gold)}.arrow{position:absolute;top:50%;transform:translateY(-50%);font:42px Georgia,serif;width:36px;height:65px;border:1px solid #d5d1c8;border-radius:30px;transition:background .2s}.arrow:hover{background:#e1ddd2}.arrow:disabled{opacity:.2;cursor:default}.prev{left:0}.next{right:0}.bottom{display:flex;align-items:center;justify-content:space-between;margin:23px 48px 17px;gap:14px;color:#73766c;font-size:10px}.hint i{margin:0 10px;font-style:normal}.position{display:flex;gap:9px;align-items:center}.position label{font-size:8px;letter-spacing:2px}.position select{background:transparent;border:0;border-bottom:1px solid #aaa48f;padding:5px 15px 5px 5px;color:var(--ink)}#coverBtn{font-size:10px}.progress{margin:0 48px;height:2px;background:#dad7ce}#progress{height:100%;background:var(--gold);transition:width .3s}footer{display:flex;justify-content:space-between;align-items:center;padding:23px 4vw;font-size:8px;letter-spacing:1.4px;color:var(--muted)}footer a{font-size:10px;letter-spacing:.3px;color:var(--ink);text-decoration:none}.scrim{position:fixed;inset:0;background:#10181060;z-index:4;backdrop-filter:blur(3px)}aside{position:fixed;right:0;top:0;bottom:0;width:min(450px,94vw);background:#faf9f6;z-index:5;padding:26px;overflow:auto;box-shadow:-12px 0 50px #0002}.drawerHead{display:flex;justify-content:space-between;align-items:center}.drawerHead h2{font:24px Georgia,serif}.drawerHead button,#closeZoom{font-size:30px}input{width:100%;padding:13px;border:1px solid #d7d1c5;background:#fff;font-size:12px;margin:12px 0 24px}.thumb{display:flex;gap:15px;text-align:left;width:100%;padding:12px 0;border-top:1px solid #ddd8ce;align-items:center}.thumb img{width:115px;aspect-ratio:792/612;object-fit:contain;box-shadow:0 2px 7px #0002}.thumb strong{display:block;font:16px Georgia,serif}.thumb small{display:block;margin-top:9px;font-size:9px;color:var(--muted);letter-spacing:1px}.thumb:hover{color:#98773f}dialog{border:0;padding:0;background:#eae7df;width:96vw;height:95dvh;max-width:none;max-height:none}dialog::backdrop{background:#101610c9;backdrop-filter:blur(5px)}.zoomBar{display:flex;align-items:center;justify-content:space-between;padding:10px 22px;gap:10px;background:#faf9f6;position:sticky;top:0;z-index:2;font-size:11px}.zoomBar>span:nth-child(2){color:#777;font-size:9px}.zoomImage{overflow:auto;height:calc(100% - 56px);padding:25px;text-align:center}.zoomImage img{width:1600px;max-width:none;box-shadow:0 10px 30px #0003}.empty{padding:30px 0;color:#777;font-size:13px}@media(max-width:900px){header{height:82px}.brand small{display:none}.tools{gap:2px}.tools span{display:none}.tools button,.tools a{padding:8px}.tools .download{padding:9px}.intro{margin:0 32px 18px}.stage{padding:0 32px;height:calc(100dvh - 245px);min-height:220px}.sheet{max-height:calc(100dvh - 245px)}.arrow{width:26px;height:50px;font-size:32px}.bottom{margin:20px 32px 15px}.progress{margin:0 32px}.hint{display:none}#chapter{font-size:14px}.eyebrow{font-size:8px;letter-spacing:1.3px}footer{font-size:7px}.zoomImage img{width:1400px}.zoomBar>span:nth-child(2){display:none}}@media(max-width:550px){header{padding:0 18px}.brand strong{font-size:20px}.brand strong span{display:block;font-size:8px;letter-spacing:2px;margin-top:3px}main{padding:25px 12px 0}.intro{margin:0 27px 16px;display:block}.intro #chapter{display:block;margin-top:10px}.stage{padding:0 27px;height:calc(100dvh - 290px)}.sheet{max-height:calc(100dvh - 290px)}.bottom{margin:20px 27px 17px}.progress{margin:0 27px}footer{padding:22px 20px;gap:20px;line-height:1.8}#layoutBtn{display:none}.zoomImage{padding:10px}.zoomImage img{width:1100px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
.turning-leaf{position:absolute;pointer-events:none;z-index:8;backface-visibility:hidden;box-shadow:0 10px 25px #0004}.turning-leaf img{width:100%;height:100%;display:block}.turning-leaf.forward{transform-origin:left center;animation:leafForward .55s ease-in-out forwards}.turning-leaf.backward{transform-origin:right center;animation:leafBackward .55s ease-in-out forwards}@keyframes leafForward{0%{transform:rotateY(0);filter:brightness(1)}100%{transform:rotateY(-100deg);filter:brightness(.55);opacity:0}}@keyframes leafBackward{0%{transform:rotateY(0);filter:brightness(1)}100%{transform:rotateY(100deg);filter:brightness(.55);opacity:0}}

.brand img{display:block;width:132px;height:60px;object-fit:contain}.brand{gap:0}header{background:#f7f7f7}.brand small{font-size:7px;letter-spacing:1.1px}@media(max-width:550px){.brand img{width:96px;height:44px}}
/* Reader controls and compact layout */
.mobileNav,.mobileHint{display:none}.tools .download{display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap}.tools .download span{font-size:12px;font-weight:700;margin:0}.zoomControls{display:flex;align-items:center;gap:6px}.zoomControls button{min-width:44px;min-height:44px;font-size:19px;border:1px solid #d8d3c6;border-radius:6px}.zoomControls #zoomFit{font-size:12px;min-width:52px}.zoomControls button:disabled{opacity:.35}.zoomBar{height:68px}.zoomImage{height:calc(100% - 68px);padding:12px;text-align:left;touch-action:pan-x pan-y pinch-zoom}.zoomImage img{display:block;max-width:none}.zoomBar #closeZoom{min-width:44px;min-height:44px}.zoomBar #zoomTitle{min-width:0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}#book{touch-action:pan-y pinch-zoom}
@media (max-width:700px), (max-width:950px) and (max-height:550px){
 body{min-height:100svh}header{height:72px;padding:0 12px;gap:10px}.brand img{width:96px;height:48px}.brand small{display:none}.tools{gap:2px;flex-shrink:0}.tools button{width:40px;height:44px;padding:0;font-size:22px}.tools button span{display:none}#layoutBtn,#fullBtn{display:none}.tools .download{height:42px;padding:0 10px;font-size:18px;border-radius:5px}.tools .download span{display:inline;font-size:11px}.tools #indexBtn{font-size:21px}main{padding:18px 8px 0;min-height:0}.intro{margin:0 8px 16px;display:block}.eyebrow{font-size:8px;letter-spacing:1.5px}#chapter,.intro #chapter{display:block;margin-top:7px;font-size:18px;line-height:1.3}.stage{padding:0;height:auto;min-height:0;max-height:none;display:flex;align-items:flex-start}.sheet{max-height:none}.book{max-height:none;filter:drop-shadow(0 8px 12px #22271e20)}.book.single .sheet{width:100%}.stage>.arrow{display:none}.mobileHint{display:block;text-align:center;font-size:11px;line-height:1.4;color:#73766c;margin:16px 0 8px}.bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 4px 14px}.mobileNav{display:block;min-width:88px;min-height:46px;font-size:12px;font-weight:600;border:1px solid #d2cbbb;border-radius:6px;background:#faf9f5;color:#33392e}.mobileNav:disabled{opacity:.35}.position{font-size:12px;gap:6px}.position label{display:none}.position select{min-height:44px;min-width:52px;font-size:14px;padding:8px 5px}.hint,#coverBtn{display:none}.progress{margin:0 4px;height:3px}footer{padding:19px 16px;gap:12px;flex-wrap:wrap;justify-content:center;text-align:center;line-height:1.6}footer>span{font-size:7px;letter-spacing:1px}footer a{font-size:11px}dialog{position:fixed;inset:0;margin:0;width:100%;height:100dvh}.zoomBar{padding:8px 8px;gap:6px}.zoomBar #zoomTitle{font-size:11px}.zoomControls{gap:3px}.zoomControls button{min-width:36px}.zoomControls #zoomFit{min-width:44px}.zoomImage{padding:12px}aside{padding:20px 16px;width:min(420px,100%)}input{font-size:16px}.thumb{min-height:90px}
}
@media(max-width:360px){.brand img{width:82px}.tools button{width:36px}.tools .download{padding:0 8px}.tools .download span{font-size:10px}header{gap:5px}}
