.book-contents,.book-folio{display:none}
html.book-interface{background:#e7d7b6!important;color-scheme:light}
html.book-interface body{background:#34271f!important;color:#382a20!important;--paper:#e7d7b6;--ink:#382a20;--line:#9f8864;font-family:Georgia,'Times New Roman',serif!important}
html.book-interface body :is(h1,h2,h3,p,a,button,input,span,strong,small,pre,li,figcaption){font-family:Georgia,'Times New Roman',serif!important;color:inherit;letter-spacing:.02em!important;text-shadow:none!important}
html.book-interface body .frame{margin:38px 38px 80px 320px!important;padding:0!important;width:auto!important;min-height:85svh!important;border:0!important;background:none!important;isolation:auto}
html.book-interface body main{position:relative!important;width:100%!important;max-width:none!important;min-height:85svh!important;height:auto!important;padding:70px clamp(22px,5vw,80px) 65px!important;margin:0!important;background:linear-gradient(90deg,#a78a5b55,transparent 5%,#fff2 95%,#866b3e33),repeating-linear-gradient(0deg,#8d714409 0 1px,transparent 1px 4px),#e7d7b6!important;box-shadow:5px 5px 0 #b9a27b,9px 9px 0 #d8c6a3,13px 13px 0 #251a14,0 15px 45px #0006;border:1px solid #bc9d6a;border-radius:3px 12px 12px 3px}
html.book-interface .frame>header,html.book-interface .frame>aside,html.book-interface .annotation,html.book-interface .page-index,html.book-interface .orbit-background,html.book-interface .frame::before,html.book-interface .frame::after,html.book-interface #race-stars,html.book-interface .senti-living-background,html.book-interface .hub-connection,html.book-interface .atlas-ring,html.book-interface .galaxy-axis{display:none!important}
html.book-interface body::before,html.book-interface body::after{display:none!important}
html.book-interface .book-contents{display:flex;flex-direction:column;position:fixed;top:38px;left:28px;bottom:80px;width:292px;padding:35px 24px;background:linear-gradient(90deg,#e6d4af,#e7d7b6 87%,#94754d);color:#382a20;overflow:auto;border:1px solid #bc9d6a;border-radius:12px 0 0 12px;box-shadow:-8px 10px 25px #0005;z-index:3}
html.book-interface .book-kicker{font-size:10px;letter-spacing:.15em!important;margin:0 0 25px;text-align:center;color:#8b3527}
html.book-interface .book-contents h2{font-size:25px;font-weight:normal;line-height:1.3;margin:0 0 28px;text-align:center}
html.book-interface .book-contents a,html.book-interface .book-contents button{display:block;border:0;border-bottom:1px dotted #a58b65!important;padding:14px 2px;text-align:left;font-size:16px;text-decoration:none;background:transparent!important;color:#382a20!important;min-height:44px}
html.book-interface .book-contents a:hover,html.book-interface .book-contents button:hover{color:#973e28!important;text-decoration:underline}
html.book-interface .book-contents button{margin-top:24px;font-style:italic}
html.book-interface .book-folio{display:block;position:absolute;top:24px;left:28px;right:28px;text-align:center;font-size:9px;letter-spacing:.13em!important;padding-bottom:13px;border-bottom:1px solid #ad946c;color:#806245}
html.book-interface body main h1{position:static!important;transform:none!important;font-size:clamp(29px,3.5vw,52px)!important;font-weight:normal!important;line-height:1.2!important;white-space:normal!important;padding:0!important;color:#692e23!important}
html.book-interface body main h2{font-size:27px!important;font-weight:normal!important;color:#692e23!important}
html.book-interface body main h3{font-size:20px!important;line-height:1.3!important}
html.book-interface body main p{line-height:1.85!important;font-size:16px}
html.book-interface .hero,html.book-interface .home-discover{display:none!important}
html.book-interface .retro-welcome{display:block;position:relative;padding:20px 0}
html.book-interface .retro-welcome pre{font-size:13px;line-height:1.8;white-space:pre-wrap;color:#806245;border-bottom:1px solid #a88b61;padding-bottom:25px;margin-right:32%}
html.book-interface .retro-bureau-symbol{float:right;width:30%;margin:-10px 0 20px 20px;color:#826640}
html.book-interface .retro-bureau-symbol svg{width:100%;height:auto}
html.book-interface .retro-volume-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 28px;margin-top:35px}
html.book-interface .retro-volume-grid a{padding:23px 0;border-bottom:1px solid #b79f78;font-size:19px;text-decoration:none}
html.book-interface .retro-volume-grid small{display:block;font-size:10px;margin-top:14px;color:#8b3527}
html.book-interface .atlas-heading,html.book-interface .hub-heading{position:static!important;text-align:left!important;margin:0 0 25px!important;width:auto!important}
html.book-interface .atlas-map{position:static!important;transform:none!important;animation:none!important;height:auto!important;min-height:0!important;width:100%!important;padding:0!important}
html.book-interface .atlas-map>#galaxy{position:relative!important;display:block!important;left:auto!important;top:auto!important;width:100%!important;height:250px!important;min-height:0!important;filter:sepia(1)!important;mix-blend-mode:multiply;opacity:.8}
html.book-interface .atlas-categories{position:static!important;display:grid!important;grid-template-columns:1fr 1fr;gap:20px}
html.book-interface .atlas-node{position:static!important;transform:none!important;display:flex!important;flex-direction:row!important;width:auto!important;gap:18px;padding:20px 0!important;border-bottom:1px solid #b79f78;color:#382a20;text-align:left!important}
html.book-interface .node-icon{width:50px!important;height:50px!important;flex:0 0 50px;border-color:#a58b65!important}
html.book-interface .node-copy{position:static!important;text-align:left!important}html.book-interface .node-copy small{font-size:11px!important;line-height:1.6!important}
html.book-interface .atlas-back{position:static!important;display:inline-block;margin:5px 0 20px;color:#8b3527}
html.book-interface .hub-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:30px!important;width:auto!important;margin:20px 0!important}
html.book-interface .universe-portal{width:auto!important;max-width:none!important;grid-column:auto!important;padding:0 0 22px!important;margin:0!important;border-bottom:1px solid #b79f78}
html.book-interface .portal-art{width:180px!important;height:185px!important;margin:auto!important}
html.book-interface .portal-gate,html.book-interface .portal-rule{display:none!important}
html.book-interface .universe-copy{position:relative!important;top:auto!important;left:auto!important;width:100%!important;margin:0!important}
html.book-interface .universe-main>#galaxy{position:relative!important;height:260px!important;min-height:0!important;filter:sepia(1)!important;mix-blend-mode:multiply}
html.book-interface .universe-main{padding-top:70px!important}
html.book-interface :is(.caste-heading,.dossier-heading,.caste-entry,.dossier-section,.race-intro,.species-controls,.outline-button,blockquote){background:transparent!important;border-radius:0!important;border-color:#ac9066!important;color:#382a20!important;box-shadow:none!important}
html.book-interface :is(canvas,img){filter:sepia(.8);mix-blend-mode:multiply}
html.book-interface .echo-atlas :is(.race-portrait canvas,.dossier-portrait canvas){filter:invert(1) sepia(.8)}
html.book-interface .dossier-index a,html.book-interface .caste-card{color:#382a20!important;background:transparent!important}
html.book-interface :is(button,input){color:#382a20!important;border-color:#a58b65!important;background:transparent!important}
html.book-interface a:focus-visible,html.book-interface button:focus-visible{outline:2px solid #8b3527;outline-offset:4px}
html.book-interface #retro-exit{left:165px;bottom:25px;background:#e7d7b6!important;color:#692e23!important;border:1px solid #a58b65;font:13px Georgia,serif!important;max-width:270px;padding:12px}
html.book-interface #motion{position:fixed!important;left:auto!important;right:115px!important;bottom:25px!important;transform:none!important;z-index:5;color:#e7d7b6!important}
html.book-interface #motion>span{display:none!important}
html.book-interface .frame footer{position:relative!important;min-height:0!important;margin:0!important;padding:0!important}
html.book-interface #site-search,html.book-interface #panel{background:#e7d7b6f5!important;color:#382a20!important;border:1px solid #a58b65;box-shadow:0 15px 50px #0006;border-radius:2px}
.book-opening{background:radial-gradient(ellipse,#f3e7cd,#d2bb91)!important;color:#692e23!important;font:20px/2 Georgia,serif!important;text-align:center}.book-opening p,.book-opening pre{font-family:Georgia,serif!important;color:#692e23!important}.book-opening .retro-boot-progress{margin:20px auto;background:#8b352733}.book-opening .retro-boot-progress i{background:#8b3527;box-shadow:none}
.nav-veil.book-turn{opacity:1;background:linear-gradient(90deg,#9f8157,#e7d7b6 10%,#f1e4c8 85%,#b19467)!important;transform:perspective(1600px) rotateY(-92deg);transform-origin:left;transition:transform 1s cubic-bezier(.3,.1,.2,1);box-shadow:20px 0 50px #0005;backface-visibility:hidden}.nav-veil.book-turn.show{transform:perspective(1600px) rotateY(0)}
@media(max-width:950px){html.book-interface .book-contents{position:relative;top:auto;left:auto;bottom:auto;width:auto;margin:18px 15px 0;padding:20px;display:flex;flex-direction:row;flex-wrap:wrap;gap:4px 18px;border-radius:8px 8px 0 0}html.book-interface .book-contents h2{width:100%;font-size:22px;margin:0 0 8px}html.book-interface .book-kicker{width:100%;margin:0 0 8px}html.book-interface .book-contents a,html.book-interface .book-contents button{font-size:13px;padding:8px 2px;margin:0}html.book-interface body .frame{margin:18px 15px 85px!important}html.book-interface .book-contents{order:-1}html.book-interface body{display:flex;flex-direction:column}html.book-interface .book-folio{font-size:8px}html.book-interface body main{padding:70px 22px 35px!important}html.book-interface .retro-volume-grid,html.book-interface .atlas-categories,html.book-interface .hub-grid{grid-template-columns:1fr!important}html.book-interface #retro-exit{left:145px;bottom:15px}html.book-interface .retro-bureau-symbol{width:35%}html.book-interface .retro-welcome pre{font-size:10px}}
/* Consistent ink contrast, including saved Sentirepliquant preferences. */
html.book-interface body :is(.breadcrumbs,.dossier-index,.race-sidebar,.caste-card,.caste-entry,.caste-neighbors,.dossier-pending,.archive-section,.archive-tabs,.race-section,.caste-marker){background:#decba530!important;color:#382a20!important;border-color:#a58b65!important;border-radius:2px!important;box-shadow:none!important}
html.book-interface body :is(.breadcrumbs,.dossier-index,.race-sidebar,.dossier-section,.race-intro,.caste-lead,.archive-section,.caste-card,.caste-entry,.caste-neighbors) :is(a,p,span,small,strong,li,button){color:#382a20!important}
html.book-interface body :is(.chapter-number,.caste-status,.eyebrow,.species-controls-label,.race-caption){color:#785735!important}
html.book-interface .breadcrumbs{padding:12px 0!important;border:0!important;border-bottom:1px solid #b79f78!important;font-size:11px!important}
html.book-interface .dossier-index{padding:14px!important;gap:10px!important}
html.book-interface .dossier-index a{font-size:12px!important;line-height:1.5;padding:10px!important;border:1px solid #b79f78!important;border-radius:0!important}
html.book-interface .race-sidebar a{font-size:12px!important}
html.book-interface :is(.race-orbit,.dossier-portrait-orbit){--orbit-light:#80613a!important;border-color:#92734777!important;box-shadow:none!important}
html.book-interface .book-contents{justify-content:flex-start!important;align-items:stretch!important;gap:0!important}
html.book-interface .book-contents a{flex:0 0 auto;text-transform:none;text-align:left!important}
html.book-interface .book-contents button{margin-top:auto}
html.book-interface .book-contents h2{margin-bottom:30px}
html.book-interface .book-folio{line-height:1.5;overflow-wrap:anywhere}
html.book-interface body main{isolation:isolate;overflow:hidden}
html.book-interface body main::before,html.book-interface body main::after{content:'';position:absolute;pointer-events:none;z-index:-1;width:520px;height:560px;border-radius:37% 63% 55% 45% / 62% 34% 66% 38%;filter:blur(22px);opacity:.22;background:radial-gradient(ellipse at 35% 40%,#69442b55,transparent 55%),radial-gradient(ellipse at 65% 65%,#88573377,transparent 60%);animation:book-ink-drift 19s ease-in-out infinite alternate}
html.book-interface body main::before{top:5%;right:-260px;transform:rotate(-15deg)}
html.book-interface body main::after{top:48%;left:-300px;animation-delay:-9s;animation-duration:25s}
@keyframes book-ink-drift{0%{transform:translate(0,-30px) rotate(-16deg) scale(.85);border-radius:37% 63% 55% 45% / 62% 34% 66% 38%;opacity:.2}100%{transform:translate(-65px,90px) rotate(24deg) scale(1.18);border-radius:65% 35% 38% 62% / 34% 67% 33% 66%;opacity:.38}}
html.book-interface body.paused main::before,html.book-interface body.paused main::after{animation-play-state:paused}
.nav-veil.book-turn{transform:none!important;clip-path:none!important;opacity:0;background:#34271f33!important;box-shadow:none;transition:opacity .2s ease;display:grid;place-items:center;perspective:1600px;overflow:hidden}
.nav-veil.book-turn.show{opacity:1}
.nav-veil.book-turn::before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#ac8d5f,#f1e4c8 10%,#e7d7b6 80%,#c3a77b);box-shadow:-20px 0 70px #0005;transform-origin:left;transform:rotateY(-100deg);transition:transform 1.25s cubic-bezier(.25,.1,.25,1)}
.nav-veil.book-turn.show::before{transform:rotateY(0)}
.book-turn-caption{position:relative;z-index:1;display:flex;flex-direction:column;gap:22px;align-items:center;max-width:80%;text-align:center;color:#692e23!important;opacity:0;transform:translateY(12px);transition:opacity .4s .55s,transform .4s .55s;font:clamp(23px,3vw,44px)/1.4 Georgia,serif!important}
.book-turn-caption small{font:12px Georgia,serif!important;letter-spacing:.16em!important;text-transform:uppercase;color:#806245!important}
.book-turn.show .book-turn-caption{opacity:1;transform:none}
@media(max-width:950px){html.book-interface .book-contents{gap:4px 18px!important;flex-direction:row}html.book-interface .book-contents h2{margin-bottom:8px}html.book-interface .book-contents button{margin-top:0}html.book-interface body main::before,html.book-interface body main::after{width:320px;height:420px;filter:blur(16px)}html.book-interface body main::before{right:-210px}html.book-interface body main::after{left:-235px}}
@media(prefers-reduced-motion:reduce){html.book-interface body main::before,html.book-interface body main::after{animation:none!important}.nav-veil.book-turn::before,.book-turn-caption{transition:none}}
/* Reset coordinates inherited from the full-screen universe scenes. */
html.book-interface .atlas-map>#galaxy,html.book-interface .atlas-map canvas[data-scene],html.book-interface .universe-main>#galaxy{position:relative!important;inset:auto!important;left:auto!important;top:auto!important;right:auto!important;transform:none!important;translate:none!important;width:100%!important;max-width:100%!important;height:290px!important;margin:0 auto 24px!important;display:block!important}
html.book-interface .atlas-map{margin:0!important;inset:auto!important;scale:1!important}
html.book-interface .node-icon,html.book-interface .atlas-node:hover .node-icon{background:#e8d8b8!important;color:#692e23!important;border-color:#a58b65!important;box-shadow:none!important}
html.book-interface .node-copy,html.book-interface .node-copy small,html.book-interface .atlas-node:hover .node-copy{color:#382a20!important}
html.book-interface .race-layout,html.book-interface .dossier-layout{min-width:0}
html.book-interface main :is(h1,h2,h3,p,a){overflow-wrap:anywhere}
html.book-interface main :is(.race-intro,.dossier-heading,.caste-heading,.archive-section){min-width:0;max-width:100%}
html.book-interface .archive-main>p,html.book-interface .archive-eyebrow,html.book-interface .archive-status,html.book-interface .archive-section p{color:#60472e!important}
html.book-interface .archive-tabs a{color:#60472e!important;border-color:#a58b65!important}
html.book-interface .archive-tabs a[aria-current],html.book-interface .archive-tabs a.active{color:#692e23!important;border-bottom:2px solid #692e23!important}
.book-opening.ink-departure{overflow:hidden;background:#e7d7b6!important;isolation:isolate}
.ink-departure .ink-spill{position:absolute;z-index:-1;width:46vmax;height:43vmax;pointer-events:none;background:radial-gradient(ellipse at 45% 40%,#211712 35%,#3d281e 66%,#523325aa 71%,transparent 73%);border-radius:44% 56% 33% 67%/61% 32% 68% 39%;transform:scale(0);animation:ink-spread 4.8s ease-in forwards;filter:drop-shadow(12px 16px 0 #38231b66)}
.ink-departure .ink-spill:nth-child(1){left:-15%;top:-25%}.ink-departure .ink-spill:nth-child(2){right:-10%;bottom:-25%;animation-delay:.25s}.ink-departure .ink-spill:nth-child(3){left:20%;top:25%;animation-delay:.6s}.ink-departure .ink-spill:nth-child(4){right:-10%;top:-20%;animation-delay:.9s}
.book-opening.ink-departure p,.book-opening.ink-departure pre{animation:ink-text-lighten 4s forwards;color:#692e23!important}.ink-departure .retro-boot-progress{position:relative;z-index:1}.ink-departure .retro-boot-progress i{background:#c6aa7c}
@keyframes ink-spread{0%{transform:scale(0) rotate(-20deg)}30%{transform:scale(.55) rotate(0)}75%,100%{transform:scale(2.8) rotate(18deg)}}
@keyframes ink-text-lighten{0%,20%{color:#692e23}45%,100%{color:#f1e3c7}}
@media(prefers-reduced-motion:reduce){.ink-departure .ink-spill{animation:none;transform:scale(2.8)}.book-opening.ink-departure p,.book-opening.ink-departure pre{animation:none;color:#f1e3c7!important}}
@media(max-width:600px){html.book-interface .atlas-map>#galaxy,html.book-interface .atlas-map canvas[data-scene],html.book-interface .universe-main>#galaxy{height:230px!important}}
.book-opening.ink-departure p,.book-opening.ink-departure pre{color:#f1e3c7!important;animation:none;background:#34271fe8;border-radius:3px;padding:10px 18px;position:relative;z-index:1}
html.book-interface .race-stars{display:none!important}
html.book-interface body :is(.head-network,.taril-network,#queen-cloud,#ia-cloud){filter:invert(1) sepia(.75)!important;mix-blend-mode:multiply!important}
html.book-interface :is(.stage-buttons,.evolution-section) [aria-pressed=true]{background:#bca079!important;color:#24180f!important;border-color:#77542d!important}
html.book-interface :is(.comparison-initial,.comparison-evolved){background:#e7d7b6eb!important;color:#382a20!important}
