@charset "utf-8";
:root{--ink:#30281c;--muted:#74654e;--paper:#ebddbb;--paper-light:#f3e8cc;--forest:#2e4437;--oxblood:#823d30;--gold:#bea36a;--line:rgba(92,65,31,.23);--serif:"Noto Serif KR","Batang",Georgia,serif;--latin:"Cinzel",Georgia,serif}
*{box-sizing:border-box}html{background:#25291f}body{margin:0;color:var(--ink);font-family:var(--serif);line-height:1.8;word-break:keep-all;min-height:100dvh}body.ledger-locked{overflow:hidden}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:disabled{cursor:default}img{display:block;max-width:100%;height:auto}a{color:inherit}button:focus-visible,a:focus-visible,[tabindex]:focus-visible{outline:3px solid #a9462c;outline-offset:4px}::selection{background:#823d30;color:#fff4d8}[hidden]{display:none!important}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;top:-70px;left:20px;z-index:300;background:var(--paper-light);padding:10px 20px}.skip-link:focus{top:10px}
.desk{position:fixed;inset:0;z-index:-1;background:radial-gradient(ellipse at 32% 0%,rgba(160,132,83,.2),transparent 62%),radial-gradient(ellipse at 90% 85%,#101c15,transparent 66%),repeating-linear-gradient(92deg,rgba(0,0,0,.025) 0 2px,transparent 2px 7px),#29342b}.desk::after{content:"";position:absolute;inset:0;box-shadow:inset 0 0 160px #0c160b80}
.book-scene{width:min(1310px,calc(100% - 132px));margin:0 auto;margin-left:max(24px,calc((100% - 1390px)/2));padding:22px 0 14px;perspective:2200px}.desk-caption,.desk-footer{margin:0;color:#bfba9f;font-size:11px;letter-spacing:.12em;text-align:center}.desk-caption{display:flex;align-items:center;justify-content:center;gap:16px;margin-bottom:18px}.desk-caption span{width:48px;height:1px;background:#bca46b55}.desk-footer{margin-top:17px;letter-spacing:.04em}.desk-footer span{padding:0 10px;opacity:.5}
.book-shell{position:relative;height:calc(100dvh - 115px);min-height:460px;max-height:950px;padding:13px 15px 44px 17px;border:1px solid #8b7547;border-radius:8px 12px 12px 8px;background:repeating-linear-gradient(39deg,transparent 0 4px,#ffffff02 4px 5px),#293c30;box-shadow:0 34px 60px #060d09aa,0 6px 8px #0006,inset 0 0 0 4px #17271e,inset 0 0 0 6px #8b74485c}
.book-shell::before{content:"";position:absolute;left:21px;right:15px;bottom:36px;height:12px;border-radius:0 0 6px 3px;background:repeating-linear-gradient(to bottom,#c6b38b 0 1px,#e0d1ad 1px 3px);box-shadow:0 4px 5px #0005;transform:translateY(7px)}.book-shell::after{content:"";position:absolute;right:8px;top:20px;bottom:40px;width:10px;background:repeating-linear-gradient(to right,#cfbf99 0 1px,#e4d7b9 1px 3px);border-radius:0 3px 5px 0;z-index:0}
.book-metal{position:absolute;width:35px;height:35px;left:0;z-index:8;pointer-events:none;border:3px solid #b89e62;background:linear-gradient(135deg,#cab277,#706039);box-shadow:1px 2px 4px #0005;clip-path:polygon(0 0,100% 0,100% 17%,23% 23%,17% 100%,0 100%)}.metal-tl{top:0}.metal-bl{bottom:0;transform:rotate(-90deg)}
.book-pages{position:relative;height:100%;isolation:isolate;perspective:2200px;outline:none;background:var(--paper);box-shadow:0 1px 6px #0006}
.book-binding{position:absolute;z-index:6;left:50%;top:0;bottom:0;width:30px;transform:translateX(-50%);pointer-events:none;background:linear-gradient(90deg,transparent,#60472218 30%,#3b301853 49%,#fff3d15e 53%,#9e7f3830 65%,transparent)}.book-binding i{position:absolute;left:10px;width:10px;height:3px;border-top:1px solid #857145;border-bottom:1px solid #f3e1b5;transform:rotate(-12deg);box-shadow:0 1px 2px #46371955}.book-binding i:nth-child(1){top:19%}.book-binding i:nth-child(2){top:50%}.book-binding i:nth-child(3){top:81%}
.ledger-page{position:absolute;inset:0}.spread{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);height:100%}.page-side{position:relative;min-width:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b59f74 transparent;padding:25px clamp(23px,3vw,44px) 32px;background:radial-gradient(ellipse at 65% 32%,#fff8df66,transparent 60%),repeating-linear-gradient(3deg,#74512803 0 1px,transparent 1px 4px),var(--paper)}.page-left{background-color:#eee2c4;box-shadow:inset -18px 0 24px -20px #4f381ba1}.page-right{background-color:#eee0bf;box-shadow:inset 18px 0 24px -20px #4f381b8c}
.folio-head{display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:1px solid var(--line);padding:0 0 10px;margin-bottom:22px;font-size:10px;letter-spacing:.08em;color:var(--muted)}.folio-head b{font:600 12px var(--latin);color:#8f7344}.eyebrow{margin:0 0 10px;color:var(--oxblood);font-size:11px;letter-spacing:.13em;font-weight:700}.chapter-title{font-size:clamp(26px,2.75vw,39px);font-weight:700;line-height:1.55;letter-spacing:-.035em;margin:0 0 20px}.chapter-title em,.opening-title em{font-style:normal;color:var(--oxblood)}.section-title{font-size:clamp(22px,2vw,28px);letter-spacing:-.035em;line-height:1.55;margin:0 0 12px}.section-title small{font-size:11px;letter-spacing:.02em;color:var(--muted);white-space:nowrap;padding-left:7px}
.body-copy{font-size:13px;line-height:2.05;margin:0 0 21px;color:#594b36}.margin-copy{font-size:11px;color:var(--muted);margin:0 0 20px}.opening-page{text-align:center;display:flex;flex-direction:column}.opening-title{padding-top:9px}.opening-title h2{font-size:clamp(40px,4.4vw,64px);line-height:1.35;margin:8px 0 18px;letter-spacing:-.035em;font-weight:900}.opening-title .eyebrow{font-size:12px;letter-spacing:.2em}.opening-deck{font-size:12px;line-height:1.95;color:#66583f;margin:0}
.compass-plate{display:flex;align-items:center;gap:20px;justify-content:center;margin:20px 0 13px}.compass-plate img{width:clamp(150px,17vw,215px);filter:sepia(.35) drop-shadow(0 3px 2px #6e502021)}.compass-rule{height:1px;background:var(--line);flex:1;max-width:40px}.opening-note{font-size:12px;line-height:1.95;color:#695a41;margin:0 0 14px}.page-signature{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:auto;padding-top:10px;border-top:1px solid var(--line);color:#8b7650;font-size:10px;letter-spacing:.08em}.page-signature img{width:31px;transform:rotate(-10deg)}
.map-print{margin:20px -4px 19px;padding:10px;border:1px solid #a58b584f;outline:1px solid #a58b5830;outline-offset:3px;background:#d5c2911f}.map-print img{width:100%;height:142px;object-fit:contain;mix-blend-mode:multiply;opacity:.83}.map-print figcaption{text-align:center;font-size:10px;color:#816c48;margin-top:7px}.chronicle{display:grid;gap:12px;margin:23px 0}.chronicle article{display:flex;gap:13px;align-items:flex-start}.chronicle article>b{font:600 18px var(--latin);color:#9f834e;min-width:23px;padding-top:3px}.chronicle h3{margin:0 0 3px;font-size:12px}.chronicle p{margin:0;font-size:11px;line-height:1.8;color:var(--muted)}
.ink-link{display:flex;justify-content:space-between;align-items:center;gap:20px;border:0;border-bottom:1px solid #92714377;background:transparent;padding:12px 0;font-size:12px;font-weight:700;color:var(--oxblood);text-align:left;width:100%;min-height:44px}.ink-link:hover{color:#aa3e29;border-color:currentColor}.ink-link span{font-size:19px}
.ledger-rail{position:absolute;left:calc(100% - 5px);top:64px;display:flex;flex-direction:column;gap:13px;z-index:50;width:87px}.ledger-tab{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;width:81px;height:75px;padding:8px 8px 8px 11px;transform-origin:left center;border:1px solid #796746;border-left:0;border-radius:0 6px 6px 0;background:var(--tab-color);color:#f2e4c2;box-shadow:4px 4px 7px #0004,inset 0 0 0 3px #ffffff07;transition:transform .22s,filter .22s,width .22s;isolation:isolate}.ledger-tab::before{content:"";position:absolute;inset:5px 5px 5px 0;border:1px dashed #e9d9a545;border-left:0;border-radius:0 3px 3px 0;z-index:-1}.ledger-tab::after{content:"";position:absolute;right:0;bottom:0;width:9px;height:9px;background:linear-gradient(135deg,#0003 50%,#ddc59466 51%);border-radius:0 0 4px}.ledger-tab small{font:500 10px var(--latin);opacity:.7;letter-spacing:.08em}.ledger-tab span{font-size:12px;font-weight:600;line-height:1.5;white-space:nowrap}.ledger-tab[data-tab=world]{--tab-color:#3c5746}.ledger-tab[data-tab=guild]{--tab-color:#8a6540}.ledger-tab[data-tab=roster]{--tab-color:#854334}.ledger-tab[data-tab=journal]{--tab-color:#506266}.ledger-tab.is-active{width:91px;filter:brightness(1.16);transform:translateX(2px) rotate(-1deg)}.ledger-tab:hover{filter:brightness(1.18);transform:translateX(4px)}.ledger-tab:focus-visible{outline-color:#f5dc9e}
.book-pagination{position:absolute;bottom:2px;left:24px;right:21px;height:35px;display:flex;align-items:center;justify-content:space-between;color:#ccb989;gap:8px}.book-pagination p{font-size:10px;letter-spacing:.12em;margin:0}.book-pagination button{background:none;border:0;color:#ded0ae;font-size:11px;min-height:35px;padding:0 8px}.book-pagination button:disabled{opacity:.25}.book-pagination button:focus-visible{outline-color:#f5dc9e}
.guild-principles{margin-top:21px;display:grid;gap:0}.guild-principles article{display:grid;grid-template-columns:34px 1fr;gap:14px;padding:15px 0;border-top:1px solid var(--line)}.guild-principles img{width:32px;height:36px;object-fit:contain;opacity:.76;filter:sepia(.25)}.guild-principles h3{margin:0 0 5px;font-size:14px}.guild-principles p{margin:0;font-size:12px;line-height:1.9;color:var(--muted)}
.facility-list{border-top:1px solid var(--line);margin:22px 0}.facility-row{display:grid;grid-template-columns:30px 1fr 20px;align-items:center;gap:14px;width:100%;padding:17px 5px;border:0;border-bottom:1px solid var(--line);background:none;text-align:left;transition:padding .2s,background .2s}.facility-row>b{font:500 12px var(--latin);color:#947544}.facility-row strong{font-size:16px;font-weight:600;display:block}.facility-row small{font-size:11px;color:var(--muted);display:block;margin-top:3px}.facility-row i{font-size:17px;font-style:normal;color:var(--oxblood)}.facility-row:hover{background:#fff2d244;padding-left:10px}.handwritten-note{position:relative;max-width:330px;padding:23px 25px 20px;margin:35px auto 5px;transform:rotate(-1.8deg);background:#f6eac9;box-shadow:1px 4px 7px #77613b20;border:1px solid #cab68a80}.handwritten-note h3{font-size:12px;color:var(--oxblood);margin:0 0 10px}.handwritten-note p{font-size:12px;line-height:2.1;margin:0;color:#766342}.note-pin{position:absolute;top:-5px;left:calc(50% - 20px);width:40px;height:11px;border:1px solid #b69249;transform:rotate(2deg);background:linear-gradient(90deg,#bba06b,#dac28a,#a28852);box-shadow:0 1px 2px #0003}
.roster-index{padding-left:26px;padding-right:28px}.roster-index .folio-head{margin-bottom:17px}.roster-help{font-size:11px;margin-bottom:16px}.roster-filter{display:flex;flex-wrap:wrap;gap:5px;padding:0 0 17px;border-bottom:1px solid var(--line);margin-bottom:20px}.filter-button{border:1px solid #ab926166;background:#f7efd35e;min-height:35px;padding:6px 8px;font-size:10px;line-height:1.2;font-weight:600;white-space:nowrap;border-radius:1px}.filter-button span{font-size:9px;margin-left:4px;opacity:.65}.filter-button.is-active{background:var(--forest);color:#fff2d5;border-color:var(--forest)}.filter-button:hover:not(.is-active){background:#f9eed0}
.cast-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px 12px}.cast-card{display:block;min-width:0;padding:0 0 9px;border:0;border-bottom:1px solid var(--line);background:none;text-align:center;transition:transform .2s}.cast-card:hover{transform:translateY(-3px)}.portrait-frame{display:block;padding:4px;position:relative;background:#d2bc8d;border:1px solid #a28a58;box-shadow:0 3px 7px #7959321a;margin-bottom:9px}.portrait-frame::after{content:"";position:absolute;inset:2px;border:1px solid #f6e8c384;pointer-events:none}.portrait-frame img{width:100%;aspect-ratio:1;object-fit:cover}.cast-card.is-selected .portrait-frame{outline:2px solid var(--oxblood);outline-offset:2px}.cast-card strong{display:block;font-size:12px;line-height:1.55;font-weight:700;letter-spacing:-.035em}.cast-role{display:block;font-size:10px;line-height:1.6;color:var(--muted);margin:4px 0}.cast-rank{font-size:9px;line-height:1.4;color:var(--oxblood)}.roster-foot{font-size:10px;color:var(--muted);margin-top:25px;text-align:center}
.profile-kicker{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--muted);font-size:10px;letter-spacing:.09em;margin-bottom:18px}.profile-rank{display:inline-block;padding:3px 10px;border:1px solid #9f794f70;color:var(--oxblood);font-size:11px;letter-spacing:.03em}.profile-portrait{width:clamp(170px,18vw,265px);max-width:78%;padding:8px;background:#d6c39a;border:1px solid #9b7f4c;outline:1px solid #a1854a44;outline-offset:4px;margin:23px auto 22px;box-shadow:0 8px 14px #6b4b2622;transform:none}.profile-portrait img{aspect-ratio:1;object-fit:cover;width:100%}.profile-name{margin:0;text-align:center;font-size:clamp(25px,2.6vw,36px);font-weight:700;letter-spacing:-.035em;line-height:1.5}.profile-role{text-align:center;color:var(--oxblood);font-size:12px;margin:6px 0 19px}.profile-divider{height:15px;width:130px;margin:0 auto 19px;object-fit:contain;opacity:.55}.profile-description{font-size:13px;line-height:2.15;margin:0;color:#5c4c35}.profile-end{display:flex;gap:12px;align-items:center;justify-content:center;margin-top:24px;font-size:10px;color:#977f54}.profile-end::before,.profile-end::after{content:"";height:1px;width:25px;background:var(--line)}
.letter-copy{font-size:17px;line-height:1.95;margin:28px 0 18px;color:#56452f}.ruled-letter{margin-top:27px;background:repeating-linear-gradient(to bottom,transparent 0 35px,#997b4930 35px 36px);font-size:12px;line-height:36px;color:#786445}.ruled-letter p{margin:0}.letter-seal{width:62px;margin:24px 5px 0 auto;transform:rotate(-12deg)}.starting-points{margin:25px 0}.starting-points article{display:grid;grid-template-columns:29px 1fr;gap:15px;padding:21px 0;border-top:1px solid var(--line)}.starting-points article>span{font-size:19px;color:#a68b56}.starting-points h3{font-size:15px;line-height:1.7;margin:0 0 9px}.starting-points p{font-size:12px;line-height:1.9;color:var(--muted);margin:0}.first-day-actions{margin-top:24px}.publication-note{font-size:11px;line-height:1.9;color:var(--muted);margin:26px 0 0;padding-top:15px;border-top:1px solid var(--line)}
.profile-personal{font-size:12px;line-height:2;color:#665238;margin:17px 0 0;padding-top:15px;border-top:1px solid var(--line)}
.ledger-detail{border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:12px;line-height:1.95;margin:25px 0}
.ledger-detail summary{display:flex;align-items:center;justify-content:space-between;min-height:48px;padding:10px 5px;font-weight:700;cursor:pointer;list-style:none;color:var(--oxblood)}
.ledger-detail summary::-webkit-details-marker{display:none}.ledger-detail summary:focus-visible{outline:3px solid var(--oxblood);outline-offset:3px}
.ledger-detail summary span{font-size:17px;transition:transform .2s}.ledger-detail[open] summary span{transform:rotate(45deg)}
.ledger-detail>div{padding:0 5px 15px}.ledger-detail p{margin:8px 0 14px}.rank-ladder{color:var(--oxblood);font-size:11px;line-height:2.3}.skill-examples{margin:17px 0 0}.skill-examples div{border-top:1px solid var(--line);padding:10px 0}.skill-examples dt{font-weight:700}.skill-examples dd{margin:4px 0 0;color:var(--muted)}
/* Joined strips share one spine and form a continuous curved sheet. */
.turn-rest{position:absolute;inset:0 50% 0 0;z-index:10;overflow:hidden;pointer-events:none;background:var(--paper)}
.turn-rest.on-right{inset:0 0 0 50%}
.turn-rest>.page-side,.paper-surface>.page-side{height:100%;overflow:hidden;scrollbar-width:none}
.turn-rest>.ledger-page,.paper-surface>.ledger-page{overflow:hidden;scrollbar-width:none}
.turn-leaf{position:absolute;inset:0 0 0 50%;z-index:20;transform-style:preserve-3d;transform-origin:left center;pointer-events:none;will-change:transform}
.paper-strip{position:absolute;top:0;bottom:0;transform-style:preserve-3d;transform-origin:left center;will-change:transform}
.turn-face{position:absolute;top:0;bottom:0;left:0;backface-visibility:hidden;overflow:hidden;background:var(--paper)}
.turn-face.back{transform:rotateY(180deg)}
.paper-surface{position:absolute;top:0;overflow:hidden}
.paper-shade{position:absolute;inset:0;background:#483416;pointer-events:none;opacity:0;will-change:opacity}
.paper-edge>.turn-face.front{border-right:1px solid #cab88f}
.paper-edge>.turn-face.back{border-left:1px solid #cab88f}
.turn-shadow{position:absolute;left:0;top:1%;bottom:1%;z-index:15;pointer-events:none;transform-origin:left center;background:linear-gradient(90deg,transparent,#3c2b1680 28%,#3c2b16 52%,#3c2b1680 72%,transparent);filter:blur(9px);opacity:0;will-change:transform,opacity}


/* The desk never scrolls. Each open leaf owns its own reading area. */
html,body{width:100%;height:100%;overflow:hidden;overscroll-behavior:none}
body{position:fixed;inset:0;min-height:0;font-weight:500;contain:paint}
html,body{overflow:clip}
:root{--muted:#66573f;--book-edge:16px;--book-foot:46px}
.book-scene{height:100vh;height:100dvh;display:flex;flex-direction:column;justify-content:center;padding:22px 0 16px;perspective:none}
.desk-caption,.desk-footer{flex:none;font-weight:500}
.book-shell{flex:1;min-height:0;max-height:950px;height:auto;padding:var(--book-edge) var(--book-edge) var(--book-foot);perspective:2200px}
.book-pages{min-height:0}
.page-side{overflow-x:hidden;scrollbar-gutter:stable;touch-action:pan-y pinch-zoom}
.ledger-page{overscroll-behavior:contain}
.folio-head{font-size:12px;margin-bottom:20px}
.folio-head b{font-size:12px}
.body-copy,.profile-description{font-size:15px;line-height:1.95;color:#51432f}
.margin-copy,.opening-note,.opening-deck{font-size:14px;line-height:1.9}
.chronicle h3,.guild-principles h3,.starting-points h3{font-size:16px}
.chronicle p,.guild-principles p,.starting-points p{font-size:14px;line-height:1.9}
.map-print figcaption,.roster-foot,.publication-note{font-size:12px;color:var(--muted)}
.facility-row small{font-size:13px}
.ink-link{font-size:14px}
.ledger-detail{font-size:14px}
.rank-ladder{font-size:12px}
.letter-copy{font-size:18px}
.ruled-letter{font-size:14px}
.section-title small{font-size:12px}
.opening-genre{font-size:12px;color:var(--oxblood);margin:0 0 10px;letter-spacing:.06em;font-weight:700}
.opening-title{padding-top:0}
.opening-title h2{font-size:clamp(40px,3.5vw,56px);margin:0 0 14px;line-height:1.35}
.opening-portrait{position:relative;display:block;flex:none;width:min(100%,320px);padding:5px;margin:24px auto 18px;border:1px solid #9e814b;background:#d1bc8e;text-align:left}
.opening-portrait>img{width:100%;aspect-ratio:1;object-fit:cover}
.opening-portrait>span{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 8px 6px}
.opening-portrait strong{font-size:16px;white-space:nowrap}
.opening-portrait small{font-size:12px;color:#624c2d;white-space:nowrap}
.opening-portrait b{font-size:17px;margin-left:5px}
.opening-portrait:hover{border-color:var(--oxblood)}
.page-signature .ink-link{border:0;width:auto;padding:4px 0;min-height:44px;font-size:13px;gap:13px}
.page-signature{margin-top:auto;padding-top:10px}
.opening-note{margin-bottom:12px}

/* Even tabs: labels start at the same place, with no number column. */
.ledger-rail{width:92px;gap:12px}
.ledger-tab{width:86px;height:72px;flex-direction:row;padding:12px 10px;justify-content:center;transition:transform .18s,filter .18s}
.ledger-tab span{font-size:13px;font-weight:700}
.ledger-tab.is-active{width:86px;transform:translateX(3px)}
.ledger-tab:hover{transform:translateX(3px)}
.book-pagination{height:44px;bottom:0}
.book-pagination button{min-height:44px;font-size:12px}
.book-pagination p{font-size:11px}
.roster-help{font-size:13px}
.filter-button{font-size:12px;min-height:44px;padding:8px 10px}
.filter-button span{font-size:11px}
.cast-card strong{font-size:15px}
.cast-role{font-size:12px;line-height:1.6}
.cast-rank{font-size:12px;font-weight:600}
.cast-card{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch}
.cast-card .portrait-frame{flex:none;width:100%}
.cast-card:hover{transform:none}
.cast-card:hover .portrait-frame{border-color:var(--oxblood)}

/* Portrait, identity, one personal note, then the same four-axis scale. */
.profile-portrait{width:min(100%,360px);max-width:100%;padding:5px;margin:8px auto 23px;outline:none;box-shadow:0 7px 16px #6b4b2622}
.profile-name{font-size:34px}
.profile-role{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px 12px;font-size:14px;margin:9px 0 20px}
.profile-rank{font-size:12px;padding:3px 10px;font-weight:600}
.profile-personal{font-size:15px;line-height:1.85;color:#6c4030;text-align:center;border:0;margin:0 auto 26px;padding:0;max-width:29em}
.profile-stats{margin:0 auto 26px;width:min(100%,320px)}
.profile-stats figcaption{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:10px;font-size:14px;font-weight:700}
.profile-stats figcaption span{font-size:11px;font-weight:500;color:var(--muted)}
.profile-stats svg{width:100%;display:block;overflow:visible;margin-top:13px}
.stat-grid{fill:none;stroke:#967c50;stroke-opacity:.42;stroke-width:.8}
.stat-grid path{stroke-dasharray:2 3}
.stat-shape{fill:#37544224;stroke:#375442;stroke-width:2;stroke-linejoin:round}
.stat-label{fill:#625034;font:600 13px var(--serif)}
.stat-value{fill:#304736;font:700 18px var(--latin);font-variant-numeric:tabular-nums}
.profile-divider{margin:0 auto 20px}
.profile-end{font-size:12px}

/* The cover shares the open book's right half and its exact spine. */
.entry-gate{position:absolute;left:50%;right:0;top:0;bottom:0;z-index:80;transform-style:preserve-3d}
.entry-sheet{position:absolute;inset:0;transform-style:preserve-3d;transform-origin:left center}
.cover-face{position:absolute;inset:0;backface-visibility:hidden;border:1px solid #a98d51;border-radius:4px 10px 10px 4px;background:#293f30;box-shadow:8px 18px 32px #07110980,inset 0 0 0 7px #1b2f22,inset 0 0 0 8px #ad8f4e80}
.cover-front{background:repeating-linear-gradient(40deg,transparent 0 3px,#ffffff03 3px 4px),linear-gradient(90deg,#192b20,#344b3a 5%,#293f30 12%,#293f30 94%,#1b2e22),#293f30}
.cover-front::before{content:"";position:absolute;inset:20px;border:1px solid #a98b4d75;border-radius:1px 4px 4px 1px;pointer-events:none}
.cover-content{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:38px 38px 34px;text-align:center}
.cover-edition{font-size:12px;letter-spacing:.12em;color:#c9b582;margin:0 0 28px;line-height:1.8}
.entry-compass{flex:none;width:clamp(150px,17vw,240px);margin:0 auto 26px;filter:drop-shadow(0 5px 10px #0004)}
.entry-sheet h1{font-size:clamp(42px,3.7vw,64px);line-height:1.4;color:#e0cfa3;letter-spacing:.02em;font-weight:500;margin:0;text-shadow:0 2px 2px #0005}
.entry-sheet h1 strong{font-weight:700}
.cover-subtitle{font-size:13px;letter-spacing:.1em;color:#cdb98c;margin:20px 0 30px}
.entry-trigger{display:flex;justify-content:space-between;align-items:center;gap:28px;width:100%;max-width:250px;margin:0 auto 18px;padding:13px 18px;min-height:50px;border:1px solid #b3965c;background:#c2a565;color:#233629;font-size:15px;font-weight:700;box-shadow:0 3px 5px #0003}
.entry-trigger:hover{background:#d5bd86}
.entry-trigger:focus-visible{outline-color:#ffe0a4}
.entry-trigger svg,.character-navigation svg,.character-toolbar svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}
.cover-year{font-size:11px;color:#c5b183;letter-spacing:.12em}
.cover-corner{position:absolute;width:37px;height:37px;background:linear-gradient(135deg,#d0b572,#6e572e);z-index:2;clip-path:polygon(0 0,100% 0,100% 18%,22% 22%,18% 100%,0 100%)}
.corner-tl{left:0;top:0}.corner-tr{right:0;top:0;transform:rotate(90deg)}.corner-bl{left:0;bottom:0;transform:rotate(-90deg)}.corner-br{right:0;bottom:0;transform:rotate(180deg)}
.cover-clasp{position:absolute;right:-15px;top:53%;width:64px;height:48px;border:1px solid #cfb573;border-radius:6px 3px 3px 6px;background:linear-gradient(120deg,#746039,#d6bc7b 42%,#9b7f43);box-shadow:0 5px 9px #06110870,inset 0 0 0 4px #53442133;transform-origin:right center}
.cover-clasp::before,.cover-clasp::after{content:"";position:absolute;right:7px;width:3px;height:3px;border-radius:50%;background:#544121;box-shadow:0 1px #e6cb87}
.cover-clasp::before{top:7px}.cover-clasp::after{bottom:7px}
.cover-clasp i{position:absolute;left:10px;top:11px;width:25px;height:25px;border:1px solid #5e4b26;border-radius:50%;background:radial-gradient(circle at 35% 28%,#e4cd91,#ac8e4d 64%,#6e572b);box-shadow:0 2px 4px #37290e80}
.cover-back{transform:rotateY(180deg);border-radius:10px 4px 4px 10px;box-shadow:-8px 16px 28px #07110960,inset 0 0 0 5px #1b2f22}
.cover-reverse-content{position:absolute;top:var(--book-edge);left:var(--book-edge);right:0;bottom:var(--book-foot);overflow:hidden;background:var(--paper)}
.cover-reverse-content>.page-side{height:100%;overflow:hidden;scrollbar-width:none}
.ledger-locked .book-shell{background:none;border-color:transparent;box-shadow:none}
.ledger-locked .book-shell::before{left:50%}
.ledger-locked .book-pages{background:none;box-shadow:none}
.ledger-locked .book-pages>.ledger-page .page-left{visibility:hidden}
.ledger-locked .book-pages>.ledger-page .page-right{filter:blur(7px)}
.ledger-locked .book-binding,.ledger-locked .book-metal,.ledger-locked .ledger-rail,.ledger-locked .book-pagination,.ledger-locked .desk-footer{visibility:hidden}
.ledger-opening .entry-sheet,.ledger-opening .entry-compass,.ledger-opening .cover-clasp{will-change:transform}
.ledger-opening .book-pages>.ledger-page .page-right{will-change:filter}

/* Modal chrome remains still; only its portrait and text scroll. */
dialog{border:1px solid #af925c;padding:30px;background:radial-gradient(ellipse at top,#fff3d4aa,transparent 65%),var(--paper);color:var(--ink);width:min(490px,calc(100% - 28px));max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:contain;box-shadow:0 24px 80px #0008;outline:none}
dialog::backdrop{background:#101b13b8}
.dialog-close{position:sticky;float:right;top:0;z-index:4;display:grid;place-items:center;width:44px;height:44px;margin:-16px -16px 0 10px;border:1px solid #a58d60;background:#efe1bf;color:#683c2c;font:26px/1 Georgia,serif}
.facility-dialog h2{font-size:28px;margin:16px 0 22px}
.facility-dialog>img{width:150px;height:18px;object-fit:contain;margin:0 0 24px;opacity:.6}
.facility-dialog>p:last-child{font-size:16px;line-height:1.9}
.character-dialog{width:min(510px,calc(100% - 20px));max-width:calc(100% - 20px);height:min(900px,calc(100vh - 24px));height:min(900px,calc(100dvh - 24px));max-height:none;padding:0;overflow:hidden}
.character-dialog[open]{display:flex;flex-direction:column}
.character-toolbar{flex:none;display:flex;align-items:center;justify-content:space-between;padding:6px 10px 6px 18px;border-bottom:1px solid var(--line);background:#eadab6}
.character-toolbar>span{font-size:12px;letter-spacing:.04em;color:#685537}
.character-toolbar .dialog-close{position:static;float:none;margin:0;border:0;background:none}
.character-scroll{flex:1;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#a78952 transparent;padding:12px 22px 26px;touch-action:pan-y pinch-zoom}
.character-dialog .profile-portrait{width:min(100%,380px);max-width:100%;margin:6px auto 20px}
.character-dialog .profile-name{font-size:30px}
.character-dialog .profile-description{font-size:16px}
.character-navigation{flex:none;display:flex;align-items:center;justify-content:space-between;gap:4px;padding:5px 9px calc(5px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--line);background:#eadab6}
.character-navigation button{display:flex;align-items:center;gap:2px;min-height:44px;padding:6px 3px;border:0;background:none;color:#643c2c;font-size:13px;font-weight:700}
.character-navigation button:disabled{opacity:.4}
.character-navigation>span{font:600 12px var(--latin);color:#715d3e;white-space:nowrap;font-variant-numeric:tabular-nums}

@media(min-width:781px) and (max-width:1050px){
 .book-scene{width:calc(100% - 112px);margin-left:22px}
 .page-side{padding:22px 24px 28px}
 .cast-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .ledger-rail{width:82px}.ledger-tab,.ledger-tab.is-active{width:78px}
 .ledger-tab span{font-size:12px}.chapter-title{font-size:28px}
 .cover-content{padding:28px}.cover-edition{font-size:10px}
}
@media(max-width:780px){
 :root{--book-edge:9px;--book-foot:46px}
 .book-scene{width:calc(100% - 60px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px));margin:0 0 0 max(8px,env(safe-area-inset-left,0px));padding:max(10px,env(safe-area-inset-top,0px)) 0 max(10px,env(safe-area-inset-bottom,0px))}
 .desk-caption{font-size:10px;letter-spacing:0;margin-bottom:10px;gap:7px;line-height:1.7}
 .desk-caption span{width:12px}.desk-footer{font-size:10px;line-height:1.7;letter-spacing:0;margin-top:10px}.desk-footer span{padding:0 3px}
 .book-shell{min-height:0;max-height:none;border-radius:5px 7px 7px 5px;box-shadow:0 16px 28px #060d09aa,inset 0 0 0 3px #17271e,inset 0 0 0 4px #8b74485c}
 .book-shell::before{left:12px;right:9px}.book-shell::after{right:4px;top:15px;width:7px}
 .book-metal{width:22px;height:22px;border-width:2px}
 .book-binding{left:0;transform:none;width:10px;z-index:6;background:linear-gradient(90deg,#4a331433,transparent)}.book-binding i{display:none}
 .ledger-page{overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b59f74 transparent;touch-action:pan-y pinch-zoom}
 .spread{display:block;height:auto;min-height:100%}
 .page-side{overflow:visible;scrollbar-gutter:auto;padding:21px 18px 26px;box-shadow:none}
 .page-left{background-color:#eee2c4}.page-right{border-top:1px solid var(--line);background-color:#eee2c4}
 .folio-head{font-size:11px;margin-bottom:20px}.folio-head b{font-size:11px}
 .opening-page{min-height:100%}.opening-title{padding-top:0}.opening-title h2{font-size:36px;margin:0 0 12px}
 .opening-genre{font-size:11px;letter-spacing:0;margin-bottom:9px}
 .opening-deck,.opening-note{font-size:14px;line-height:1.9}
 .opening-portrait{width:100%;margin:20px auto 18px;padding:4px}
 .opening-portrait strong{font-size:14px}.opening-portrait small{font-size:11px}.opening-portrait>span{gap:6px;padding:10px 5px 5px}
 .opening-portrait b{margin-left:2px}.page-signature{margin-top:14px;gap:7px}.page-signature .ink-link{font-size:12px}
 .chapter-title{font-size:29px;line-height:1.55}.body-copy{font-size:16px;line-height:1.95}
 .section-title{font-size:24px}.section-title small{font-size:12px}.margin-copy{font-size:13px;line-height:1.9}
 .map-print img{height:150px}.map-print figcaption{font-size:12px}
 .chronicle p{font-size:14px}.chronicle h3{font-size:15px}.chronicle article{gap:10px}.chronicle{gap:18px}
 .ink-link{font-size:14px;min-height:48px}
 .ledger-rail{top:38px;gap:9px;left:calc(100% - 3px);width:46px}
 .ledger-tab,.ledger-tab.is-active{width:44px;height:90px;padding:11px 8px;justify-content:flex-start;align-items:center;border-radius:0 4px 4px 0;flex-direction:column}
 .ledger-tab.is-active{transform:translateX(2px)}.ledger-tab:hover{transform:translateX(2px)}
 .ledger-tab span{font-size:13px;line-height:1.5;writing-mode:vertical-rl;text-orientation:upright;letter-spacing:.08em;white-space:nowrap;height:67px;text-align:start}
 .ledger-tab::before{inset:4px 3px 4px 0}
 .book-pagination{left:12px;right:9px;height:44px;bottom:0}.book-pagination p{font-size:10px;letter-spacing:0}
 .book-pagination button{font-size:14px;padding:0 7px;min-width:44px;min-height:44px}.book-pagination button span{display:none}
 .guild-principles article{grid-template-columns:28px 1fr;gap:11px}.guild-principles h3{font-size:16px}.guild-principles p{font-size:15px}
 .facility-row{gap:9px;padding:17px 0}.facility-row small{font-size:13px}.facility-row strong{font-size:16px}
 .roster-index{padding:21px 14px 26px}.roster-index .section-title{font-size:23px}.roster-help{font-size:13px;margin-bottom:16px}
 .roster-filter{gap:6px;margin-bottom:20px;padding-bottom:18px}.filter-button{font-size:12px;min-height:44px;padding:8px}.filter-button span{font-size:11px;margin-left:3px}
 .cast-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:21px 12px}.cast-card strong{font-size:14px}.cast-role{font-size:12px}.cast-rank{font-size:12px}
 .roster-profile{display:none}.roster-foot{font-size:12px;line-height:1.9}
 .starting-points article{gap:10px}.starting-points h3{font-size:16px}.starting-points p{font-size:15px}.publication-note{font-size:13px}
 .ruled-letter{font-size:14px;line-height:2;background:none;border-left:1px solid var(--line);padding-left:14px;display:grid;gap:13px}
 .letter-copy{font-size:18px}.letter-seal{width:49px}.ledger-detail{font-size:15px}.rank-ladder{font-size:13px}
 .turn-rest,.turn-rest.on-right{inset:0}.turn-leaf{inset:0;transform-origin:left center}.turn-face.back{background:#dfcda5}
 .entry-gate{left:0}.cover-content{padding:29px 28px}.cover-edition{font-size:10px;letter-spacing:.04em;margin-bottom:24px}
 .entry-compass{width:175px;margin-bottom:20px}.entry-sheet h1{font-size:41px}.cover-subtitle{font-size:11px;letter-spacing:.06em;margin:16px 0 25px}
 .cover-corner{width:28px;height:28px}.cover-year{font-size:10px}.entry-trigger{font-size:14px;min-height:48px;padding:12px 16px}
 .cover-clasp{right:-12px;width:49px;height:43px;top:53%}.cover-clasp i{left:7px;top:10px;width:22px;height:22px}
 .cover-reverse-content{background:#e3d1a9}
 .ledger-locked .book-shell::before{left:12px}
 .ledger-locked .book-pages>.ledger-page .page-left{visibility:visible}
 .ledger-locked .book-pages>.ledger-page .page-right{filter:none}
 .ledger-locked .book-pages>.ledger-page{filter:blur(7px)}
 .ledger-opening .book-pages>.ledger-page{will-change:filter}
 .character-scroll{padding:12px 18px 25px}.character-dialog .profile-name{font-size:29px}
 .profile-role{font-size:14px;line-height:1.7;margin-bottom:19px}.profile-personal{font-size:15px;line-height:1.9}
 .profile-stats{max-width:320px}.profile-stats figcaption{font-size:14px}
 .dialog-open .book-pages{pointer-events:none;touch-action:none}
}
@media(max-width:360px){
 .page-side{padding-left:15px;padding-right:15px}.roster-index{padding-left:12px;padding-right:12px}
 .opening-title h2{font-size:34px}.opening-deck,.opening-note{font-size:13px}.opening-portrait>span{flex-wrap:wrap;gap:0 8px}
 .cast-card strong{font-size:13px}.filter-button{padding:8px 7px}.chapter-title{font-size:27px}
 .entry-sheet h1{font-size:37px}.cover-content{padding:28px 25px}.cover-edition{font-size:9px}
 .character-scroll{padding-left:16px;padding-right:16px}.character-navigation button{font-size:12px}
}
@media(min-width:781px) and (max-height:820px){
 .opening-title h2{font-size:40px}.opening-portrait{width:235px;margin:16px auto}.opening-note{font-size:13px}
 .cover-content{padding:26px 30px}.cover-edition{margin-bottom:18px}.entry-compass{width:170px;margin-bottom:17px}
 .entry-sheet h1{font-size:45px}.cover-subtitle{margin:15px 0 22px}
 .profile-portrait{width:min(100%,320px)}
}
@media(max-height:580px){
 .book-scene{padding-top:8px;padding-bottom:8px}.desk-caption,.desk-footer{display:none}
 .cover-content{padding:15px 28px}.cover-edition{font-size:9px;margin-bottom:7px}.entry-compass{width:64px;margin-bottom:7px}
 .entry-sheet h1{font-size:28px;line-height:1.25}.cover-subtitle{font-size:10px;margin:7px 0 10px}.cover-year{font-size:9px}
 .entry-trigger{min-height:44px;padding:8px 15px;margin-bottom:7px;font-size:13px}.cover-front::before{inset:12px}
 .ledger-rail{top:18px;gap:8px}.ledger-tab,.ledger-tab.is-active{height:65px;padding-top:8px;padding-bottom:8px}
 .ledger-tab span{font-size:11px;height:50px;letter-spacing:0}
 .character-dialog{height:calc(100dvh - 16px)}
}
@media(prefers-reduced-motion:reduce){
 *,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}
 .turn-leaf{display:none}.cast-card:hover,.ledger-tab:hover{transform:none}
}
