:root{--forest:#133d31;--deep:#081f1b;--gold:#d7b567;--paper:#f0dfb5;--ink:#443628;--focus:#f0c75b}*{box-sizing:border-box}body{margin:0;color:#f4e6c4;background:radial-gradient(ellipse at center,#60402c 0,#281d17 60%,#100e0c 100%);font-family:Georgia,'Times New Roman',serif;min-height:100vh}button,select{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid var(--focus);outline-offset:4px}.skip{position:absolute;top:-100px;background:white;color:#111;padding:12px;z-index:99}.skip:focus{top:0}.topbar{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 24px;background:#102f28;box-shadow:0 4px 20px #0008;position:relative;z-index:3;font-size:.85rem;letter-spacing:.09em}.topbar>a{color:#ebd6a3;text-decoration:none}.topbar span{color:var(--gold);text-align:center}.topbar a:hover{text-decoration:underline}main{min-height:calc(100vh - 110px)}footer{background:#122b25;display:flex;justify-content:space-between;padding:15px 22px;color:#dcc79b;gap:14px;font-size:.85rem}footer a{color:#e9d392}.cover-screen{text-align:center;padding:26px 12px 40px}.cover-table{perspective:1300px;display:flex;justify-content:center}.closed-book{width:min(440px,90vw);min-height:580px;padding:38px 35px 26px;background:radial-gradient(ellipse at 35% 35%,#236146,#0f352e 66%,#08251e);border:8px ridge #c6a357;box-shadow:inset 0 0 0 7px #134b35,inset 0 0 0 11px #b99b56,inset 0 0 45px #0009,12px 14px 0 #e9d4a9,20px 23px 30px #000b;border-radius:9px 20px 20px 9px;position:relative;transform:rotate(-1deg);transition:transform .8s ease;display:flex;flex-direction:column;align-items:center;gap:8px}.closed-book.opening{transform:rotateY(-70deg) rotate(-1deg);transform-origin:left center}.closed-book img{width:100%;max-height:175px;object-fit:cover;border:2px solid #cfae62;filter:sepia(.12)}.closed-book h1{font-size:clamp(1.7rem,5vw,2.5rem);color:#f2d687;text-shadow:0 2px #392817;line-height:1.15;margin:3px}.closed-book p{line-height:1.5;color:#f2dda5;margin:2px}.eyebrow{font-size:.8rem;letter-spacing:.25em}.cover-ornament{color:#d3b473;letter-spacing:10px}.crest{font-size:3.3rem;color:#e3c779}.gold-rule{width:75%;height:2px;background:linear-gradient(90deg,transparent,#e9ce7d,transparent)}.big-button{margin-top:33px;padding:16px 30px;background:linear-gradient(#eace84,#b99145);border:3px solid #ffebb5;border-radius:8px;color:#241f15;font-weight:bold;font-size:1.2rem;box-shadow:0 6px 17px #0008}.big-button:hover{filter:brightness(1.13)}.cover-small{color:#f3dca3;font-size:.88rem}.controls{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:8px;padding:12px 8px}.controls button,.controls select,.pager button,.access-head button{background:#163d31;color:#f2dea8;border:1px solid #b99b5c;border-radius:5px;padding:10px 12px;min-height:44px}.controls button:hover,.pager button:hover{background:#265e48}.controls button:disabled,.pager button:disabled{opacity:.43;cursor:default}.controls select{max-width:175px}.chapter-control,.toggle{font-size:.81rem;color:#e8d7ad}.toggle{display:flex;align-items:center;gap:6px}.toggle input{width:18px;height:18px;accent-color:#deb868}.book-stage{display:flex;justify-content:center;padding:9px 12px 10px;perspective:2000px}.page-book{display:flex;width:min(1120px,96vw);height: min(670px,73vh);min-height:390px;border-radius:5px 12px 12px 5px;box-shadow:0 23px 45px #000b;position:relative;perspective:2400px;background:#dac498;border:solid 7px #523f27}.sheet{width:50%;height:100%;padding:clamp(15px,2.4vw,29px);position:relative;background:linear-gradient(90deg,#d1bb8f 0%,#f8ebc7 9%,#eee0b8 83%,#d5be94 100%);color:var(--ink);overflow:hidden}.sheet.left{border-right:1px solid #af976c;background:linear-gradient(90deg,#d4b885,#f8e9c0 17%,#ecddb5 94%,#b09a76)}.sheet.right{border-left:1px solid #f4e5b9}.sheet::before{content:'';position:absolute;inset:11px;pointer-events:none;border:2px solid #b99a58;border-radius:3px}.sheet::after{content:'❦';position:absolute;bottom:11px;right:24px;color:#b1904c;font-size:1rem}.sheet-inner{height:100%;display:flex;flex-direction:column;position:relative;z-index:1;overflow:hidden}.sheet h2{margin:3px 0 12px;text-align:center;color:#244b3b;font-size:clamp(1.1rem,1.75vw,1.66rem);line-height:1.16}.sheet .image-frame{border:4px double #a48649;background:#dbc697;margin:0 auto 12px;width:100%;height:clamp(105px,23vh,225px);object-fit:cover;flex-shrink:0}.sheet .page-text{font-size:clamp(.86rem,1.2vw,1.07rem);line-height:1.47;white-space:pre-line;overflow-y:auto;scrollbar-color:#ac9364 transparent;padding:0 4px 6px;user-select:text}.sheet .number{margin-top:auto;text-align:center;color:#836a43;font-size:.77rem;padding-top:6px;flex-shrink:0}.sheet .small-note{font-size:.76rem;line-height:1.3;color:#805d2e;padding-bottom:7px}.sheet .ornament{text-align:center;color:#b18a43;font-size:1.5rem}.sheet .action-links{display:flex;gap:7px;flex-wrap:wrap;padding:10px 2px 0}.sheet .action-links a,.sheet .action-links button,.chapter-list button{background:#245341;color:#f9e8bc;border:1px solid #b79548;border-radius:4px;text-decoration:none;padding:9px 12px;min-height:42px;font-size:.85rem}.sheet .action-links a:hover,.sheet .action-links button:hover,.chapter-list button:hover{background:#387054}.sheet .chapter-list{overflow:auto;display:grid;grid-template-columns:1fr 1fr;gap:5px}.chapter-list button{text-align:left;padding:7px;min-height:34px;font-size:.78rem}.flip-sheet{position:absolute;top:0;right:0;width:50%;height:100%;pointer-events:none;transform-style:preserve-3d;transform-origin:left center;display:none;z-index:4}.flip-sheet.flipping{display:block;animation:flipforward .64s ease-in-out both}.flip-sheet.reverse{left:0;right:auto;transform-origin:right center;display:block;animation:flipback .64s ease-in-out both}.flip-face{position:absolute;inset:0;backface-visibility:hidden;overflow:hidden;background:linear-gradient(90deg,#f3e3b9,#d4be94);border:5px solid #c5a56d}.flip-face.back{transform:rotateY(180deg);background:#e7d4a7}.flip-face h2{padding:28px 20px;color:#395541}.flip-face img{display:block;width:90%;max-height:75%;object-fit:contain;margin:auto}@keyframes flipforward{0%{transform:rotateY(0)}100%{transform:rotateY(-180deg)}}@keyframes flipback{0%{transform:rotateY(0)}100%{transform:rotateY(180deg)}}.pager{display:flex;align-items:center;justify-content:center;gap:22px;padding:10px 14px}.pager output{min-width:135px;text-align:center;font-size:.9rem}.reader-hint{text-align:center;font-size:.8rem;color:#eed6a2;padding:0 8px 10px}.access-head{display:flex;align-items:center;justify-content:space-between;gap:15px}.access-head h2{color:#f4dfad}#accessible-screen{max-width:900px;margin:auto;padding:22px 24px}#text-contents{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}#text-contents a{color:#f4d47f}#full-text section{background:#f6e7c0;color:#342a24;padding:20px 28px;margin:20px 0;border:3px double #bc9b5d;line-height:1.65}#full-text section h3{color:#174532}#full-text section p{white-space:pre-line}#full-text section img{max-width:100%;height:auto}.corner-zone{position:absolute;bottom:0;width:38px;height:65px;z-index:2;cursor:pointer}.corner-zone.prev{left:0}.corner-zone.next{right:0}@media(max-width:760px){.topbar{padding:10px 12px;font-size:.71rem}.topbar span{display:none}.page-book{width:min(520px,98vw);height:min(720px,76dvh);min-height:390px}.sheet{width:100%;padding:19px 18px}.sheet.left{display:none}.sheet.right{border-left:none}.flip-sheet,.flip-sheet.reverse{width:100%;left:0;right:0;transform-origin:left center}.flip-sheet.reverse{transform-origin:right center}.sheet .image-frame{height:clamp(95px,21dvh,190px)}.sheet .page-text{font-size:clamp(.94rem,3.3vw,1.09rem);line-height:1.45}.chapter-control{display:none}.controls{gap:6px}.controls button{font-size:.77rem;padding:7px 8px}.closed-book{min-height:505px}.closed-book img{max-height:140px}footer{flex-wrap:wrap}.sheet h2{font-size:1.25rem}.chapter-list{grid-template-columns:1fr 1fr}}@media(max-width:390px){.page-book{height:69dvh;min-height:390px}.sheet{padding:16px 14px}.sheet .image-frame{height:125px}.sheet .page-text{font-size:.88rem}.controls .toggle{display:none}.chapter-list button{font-size:.72rem}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* Preserve the full real server photo; originals open when tapped. */
.sheet .server-photo-link{display:block;flex-shrink:0;margin:0 0 10px;text-decoration:none;text-align:center;color:#244b3b;font-size:.7rem;line-height:1.4}
.sheet .server-photo-link .server-photo{display:block;object-fit:contain;background:#0c211c;margin:0 auto 3px;height:clamp(145px,25vh,235px)}
.closed-book .server-cover-photo{object-fit:contain;background:#0c211c;max-height:190px}
.flip-face img{object-fit:contain}
@media(max-width:760px){.sheet .server-photo-link .server-photo{height:clamp(135px,23dvh,205px)}}
