:root{--archive-ink:#251a2d;--archive-wine:#392541;--archive-gold:#d9b969;--archive-parchment:#eee5d1;--archive-paper:#f6efdf}
.encyclopedia-page{background:#17121f;color:#f3ecdf}.encyclopedia-page .shop-nav{color:#efd18c;font-size:10px;font-weight:700;letter-spacing:.11em}.ency-hero{position:relative;isolation:isolate;min-height:650px;display:flex;align-items:center;overflow:hidden;background:linear-gradient(105deg,rgba(17,13,27,.97),rgba(27,18,38,.88) 50%,rgba(33,22,43,.45)),url('/world.webp') 67% 44%/cover}.ency-hero:after{content:"";position:absolute;inset:18px;pointer-events:none;border:1px solid rgba(217,185,105,.28);z-index:-1}.ency-hero-art{position:absolute;inset:0;z-index:-2;background:radial-gradient(ellipse at 72% 45%,rgba(223,183,113,.18),transparent 36%),linear-gradient(90deg,#17121f 3%,transparent 100%)}.ency-hero-content{position:relative;padding:76px 0 86px;max-width:1120px}.ency-hero .breadcrumb{display:inline-block;margin-bottom:32px;color:#c4b8aa}.ency-hero .eyebrow,.ency-volume .eyebrow{color:#ddc17c}.ency-hero h1{font:500 clamp(60px,8.4vw,112px)/.86 var(--serif);letter-spacing:-.035em;margin:18px 0 30px;max-width:850px}.ency-hero h1 em{font-weight:400;color:#e1c274}.ency-lede{font:21px/1.62 var(--serif);color:#ded5cb;max-width:690px;margin:0}.ency-seal{position:absolute;right:9%;top:42%;display:flex;align-items:center;gap:12px;transform:rotate(8deg);border:1px solid rgba(224,194,124,.55);padding:12px 16px;color:#e4ce99;font-size:9px;font-weight:700;letter-spacing:.14em;line-height:1.5;background:rgba(27,18,37,.45)}.ency-seal>span:first-child{font-size:22px}.ency-hero .hero-bottom{position:absolute;bottom:24px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:18px;color:#c5b7a5;font-size:9px;letter-spacing:.18em}.ency-hero .hero-bottom a{color:#e3cb93}.ency-hero .scroll-rule{width:50px;height:1px;background:#d7b66e}
.ency-collections{background:linear-gradient(180deg,#f0e8d7,#e9deca);color:#292331;border-block:1px solid rgba(217,185,105,.45)}.ency-collections .section-heading>p{color:#635b61}.ency-collections .eyebrow,.ency-index .eyebrow,.ency-map-callout .eyebrow,.ency-shop .eyebrow{color:#9d7946}.ency-collections h2,.ency-index h2,.ency-map-callout h2,.ency-shop h2{color:#31253a}.ency-collections h2 em,.ency-index h2 em,.ency-map-callout h2 em,.ency-shop h2 em{color:#805e3c}.ency-volume-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:14px}.ency-volume{position:relative;isolation:isolate;overflow:hidden;min-height:280px;padding:30px 25px 24px;color:#f3eadc;background:linear-gradient(145deg,#362840,#241c31 70%);border:1px solid rgba(210,177,112,.62);box-shadow:0 12px 34px rgba(37,27,37,.13);text-decoration:none;grid-column:span 2;transition:transform .25s,border-color .25s,box-shadow .25s}.ency-volume:nth-child(4){grid-column:2/span 2}.ency-volume:nth-child(5){grid-column:4/span 2}.ency-volume:before{content:"";position:absolute;inset:8px;border:1px solid rgba(222,195,141,.2);pointer-events:none}.ency-volume:hover{transform:translateY(-4px);border-color:#d9b969;box-shadow:0 20px 38px rgba(37,27,37,.22)}.volume-num{position:absolute;right:19px;top:10px;font:italic 100px/.9 var(--serif);color:rgba(233,199,126,.15)}.ency-volume .eyebrow{position:relative;font-size:9px;letter-spacing:.16em}.ency-volume h3{position:relative;font:500 31px/1.05 var(--serif);margin:16px 0 12px;max-width:270px}.ency-volume p{position:relative;color:#d1c7bc;font-size:13px;line-height:1.65;max-width:300px}.volume-link{display:block;position:relative;border-top:1px solid rgba(255,255,255,.16);padding-top:15px;margin-top:23px;color:#e3c57e;font-size:9px;font-weight:700;letter-spacing:.12em}
.ency-index{background:#1b1623}.ency-index .section-heading>p{color:#c4bbc0}.ency-control-panel{display:grid;grid-template-columns:minmax(220px,1.5fr) minmax(180px,1fr) minmax(205px,1.1fr) auto;gap:12px;align-items:end;padding:18px;border:1px solid rgba(214,181,115,.3);background:linear-gradient(140deg,#282032,#211b2a);box-shadow:0 18px 45px rgba(0,0,0,.16)}.ency-control-panel label{display:flex;flex-direction:column;gap:8px;color:#e0d0b1;font-size:10px;font-weight:700;letter-spacing:.08em}.ency-control-panel input,.ency-control-panel select{width:100%;min-height:48px;border:1px solid rgba(220,193,145,.34);border-radius:0;background:#17131e;color:#f2ebdf;padding:0 14px;font:14px var(--sans);letter-spacing:normal}.ency-control-panel input::placeholder{color:#96909b}.ency-control-panel select:focus,.ency-control-panel input:focus{outline:2px solid #d5b46d;outline-offset:2px}.ency-control-panel .clear-filters{min-height:48px}.ency-spoiler-control{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:21px 24px;margin:16px 0 8px;border:1px solid rgba(217,185,105,.34);background:linear-gradient(100deg,rgba(78,50,75,.66),rgba(40,31,51,.86))}.ency-spoiler-control>div{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:6px 13px}.archive-stamp{grid-row:span 2;border:1px solid rgba(226,194,125,.56);padding:8px 10px;color:#e8cd8a;font-size:8px;letter-spacing:.12em;font-weight:700}.ency-spoiler-control strong{color:#f1e7d8;font:600 20px var(--serif)}.ency-spoiler-control p{grid-column:2;margin:0;color:#beb5bb;font-size:12px}.ency-spoiler-control .button{white-space:nowrap;min-height:44px;padding:10px 16px;font-size:9px}.ency-result-status{color:#c7bda9;font-size:11px;letter-spacing:.08em;margin:22px 0 14px}.ency-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.ency-record{display:flex;min-height:250px;flex-direction:column;overflow:hidden;border:1px solid rgba(216,184,119,.36);background:var(--archive-paper);color:#292430;box-shadow:0 8px 28px rgba(0,0,0,.16);text-decoration:none;transition:transform .2s,border-color .2s}.ency-record:hover{transform:translateY(-3px);border-color:#e5c879}.ency-record-image{height:142px;overflow:hidden;background:linear-gradient(135deg,#382a40,#251e31)}.ency-record-image img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s}.ency-record:hover .ency-record-image img{transform:scale(1.035)}.ency-record-body{padding:17px 18px 16px;display:flex;flex-direction:column;flex:1}.ency-record-kicker{font-size:8px;color:#846443;letter-spacing:.14em;font-weight:700;text-transform:uppercase}.ency-record h3{font:600 27px/1 var(--serif);margin:8px 0;color:#2d2434}.ency-record p{font:14px/1.52 var(--serif);color:#5c5355;margin:0 0 16px}.ency-record-foot{display:flex;justify-content:space-between;align-items:center;gap:9px;margin-top:auto;padding-top:11px;border-top:1px solid #d7ccba;color:#745a3d;font-size:8px;letter-spacing:.1em;font-weight:700;text-transform:uppercase}.ency-record-foot span:last-child{font-size:15px}.ency-record[hidden]{display:none}.ency-empty,.ency-locked{padding:25px;border:1px solid rgba(217,185,105,.3);color:#e6d7bc;background:#292131}.ency-map-callout{background:#eee5d4;color:#2d2531}.ency-map-callout .section-heading>p{color:#655d60}.ency-map-layout{display:grid;grid-template-columns:1fr 1fr;gap:7%;align-items:center}.ency-map-layout>div>p:not(.eyebrow){max-width:540px;color:#61595b;line-height:1.75}.ency-actions{display:flex;gap:18px;align-items:center;flex-wrap:wrap;margin-top:29px}.ency-map-art{position:relative;border:1px solid #a38a63;padding:9px;background:#ddd0b8;box-shadow:0 18px 38px rgba(49,37,41,.17);text-decoration:none}.ency-map-art:before{position:absolute;inset:14px;border:1px solid rgba(219,185,112,.6);content:"";z-index:1;pointer-events:none}.ency-map-art img{display:block;width:100%;aspect-ratio:1.42;object-fit:cover;filter:sepia(.18)}.ency-map-art span{display:block;padding:12px 9px 4px;text-align:center;color:#6e5a45;font-size:8px;font-weight:700;letter-spacing:.14em}.ency-shop{text-align:center;background:radial-gradient(ellipse at 50% 0,rgba(119,87,134,.36),transparent 50%),#17121f}.ency-shop h2{color:#f0e7db}.ency-shop .eyebrow{color:#ddc17c}.ency-shop>div>p:not(.eyebrow){color:#c7bdc4;margin:0 auto 26px}.ency-shop .button{display:inline-flex}.encyclopedia-page .site-footer nav{display:flex;gap:14px;flex-wrap:wrap;justify-content:flex-end}.encyclopedia-page .site-footer nav a{font-size:10px}.encyclopedia-page .site-footer{padding:36px 0}
.book-two-preview-page main{display:none}.book-two-preview-page .book-two-preview-gate{min-height:calc(100vh - 140px);display:grid;place-items:center;padding:60px 24px;background:radial-gradient(ellipse at 50% 34%,rgba(112,77,129,.42),transparent 48%),#181320}.book-two-preview-gate[hidden]{display:none}.preview-gate-card{width:min(640px,100%);padding:clamp(28px,6vw,64px);border:1px solid rgba(222,190,117,.62);background:linear-gradient(145deg,#2d2238,#211a2a);box-shadow:0 24px 90px rgba(0,0,0,.45);text-align:center;position:relative}.preview-gate-card:before{content:"";position:absolute;inset:10px;border:1px solid rgba(222,190,117,.18);pointer-events:none}.preview-gate-card .eyebrow{color:#e1c579}.preview-gate-card h1{font:500 clamp(38px,7vw,64px)/.95 var(--serif);margin:20px 0}.preview-gate-card p:not(.eyebrow){color:#d1c8ce;line-height:1.7}.preview-gate-card button{margin-top:14px}.preview-gate-card small{display:block;color:#a99fab;font-size:10px;margin-top:16px}.preview-gate-card .gate-status{color:#e4d3a9;min-height:1.5em}
@media(max-width:900px){.ency-seal{right:5%;top:auto;bottom:90px}.ency-control-panel{grid-template-columns:1fr 1fr}.ency-results{grid-template-columns:repeat(2,minmax(0,1fr))}.ency-volume{grid-column:span 3}.ency-volume:nth-child(4){grid-column:1/span 3}.ency-volume:nth-child(5){grid-column:4/span 3}}
@media(max-width:640px){.ency-hero{min-height:620px;background-position:59% center}.ency-hero-content{padding-top:54px}.ency-hero h1{font-size:clamp(57px,15vw,84px)}.ency-lede{font-size:18px;max-width:95%}.ency-seal{display:none}.ency-hero .hero-bottom{width:calc(100% - 42px);justify-content:space-between;gap:8px;font-size:8px}.ency-hero .hero-bottom .scroll-rule{width:20px}.ency-volume-grid{display:block}.ency-volume{min-height:235px;margin-bottom:12px}.ency-volume:nth-child(n){grid-column:auto}.ency-control-panel{grid-template-columns:1fr}.ency-spoiler-control{align-items:stretch;flex-direction:column;padding:18px}.ency-spoiler-control>div{grid-template-columns:auto 1fr}.ency-spoiler-control .button{width:100%;justify-content:center}.ency-results{grid-template-columns:1fr}.ency-record{min-height:0}.ency-record-image{height:190px}.ency-map-layout{grid-template-columns:1fr;gap:32px}.ency-actions{align-items:flex-start;flex-direction:column}.ency-map-art{max-width:500px}.ency-shop{padding:74px 0}.encyclopedia-page .footer-inner{justify-content:center;text-align:center}.encyclopedia-page .site-footer nav{justify-content:center}}
@media(prefers-reduced-motion:reduce){.ency-volume,.ency-record,.ency-record-image img{transition:none}}
/* Archival entry pages share the encyclopedia's parchment and manuscript framing. */
.archive-record-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.archive-record{position:relative;padding:34px 34px 28px;background:var(--archive-paper);color:#342a35;border:1px solid #b39a6f;box-shadow:0 12px 35px rgba(37,27,37,.13)}.archive-record:before{content:"";position:absolute;inset:7px;border:1px solid rgba(151,117,70,.24);pointer-events:none}.archive-record .archive-stamp{display:inline-block;margin-bottom:16px;color:#85673e;border-color:#a88a59}.archive-record h2{font:600 37px/.98 var(--serif);color:#302438;margin:0 0 14px}.archive-record p{position:relative;color:#5b5252;font:16px/1.65 var(--serif)}.archive-record .archive-note{font:italic 13px/1.5 var(--sans);color:#826542;padding-left:14px;border-left:2px solid #c7aa72}.archive-record>a{position:relative;display:inline-block;margin-top:7px;color:#6f5031;font-size:10px;font-weight:700;letter-spacing:.09em;text-decoration:none}.archive-return{display:flex;align-items:center;justify-content:center;gap:24px;margin-top:40px}.archives-page .ency-hero{background:linear-gradient(105deg,rgba(17,13,27,.96),rgba(27,18,38,.89)),url('/world.webp') 60% 40%/cover}.archives-page .ency-collections .section-heading>p{color:#635b61}
@media(max-width:640px){.archive-record-grid{grid-template-columns:1fr}.archive-record{padding:28px 25px 23px}.archive-return{flex-direction:column}}
/* Keep the mobile volume cards legible against the parchment section. A solid
   opaque panel avoids the pale-text-on-parchment rendering seen on some phones. */
@media(max-width:640px){
  .encyclopedia-page .ency-collections .ency-volume{
    background:#241a30!important;
    background-image:none!important;
    color:#fffaf1!important;
    border-color:#9a7a4c;
    box-shadow:0 8px 22px rgba(22,15,30,.2);
  }
  .encyclopedia-page .ency-volume h3{color:#fffaf1!important}
  .encyclopedia-page .ency-volume p{color:#eee4d5!important}
  .encyclopedia-page .ency-volume .eyebrow{color:#f0d38c!important}
  .encyclopedia-page .ency-volume .volume-link{color:#f0d38c!important;border-color:rgba(255,250,241,.24)}
}
/* Homepage doorway: recognizable brand palette with an archival, book-first invitation. */
.ency-home-feature{background:linear-gradient(120deg,#22182d,#30223a 54%,#24182f);border-block:1px solid rgba(217,185,105,.28)}.ency-home-layout{display:grid;grid-template-columns:1.02fr .98fr;gap:8%;align-items:center}.ency-home-art{position:relative;padding:9px;border:1px solid rgba(220,190,130,.65);background:#e8dcc4;box-shadow:0 20px 45px rgba(0,0,0,.3)}.ency-home-art:before{position:absolute;content:"";inset:15px;border:1px solid rgba(225,193,125,.54);pointer-events:none;z-index:1}.ency-home-art img{display:block;width:100%;aspect-ratio:1.43;object-fit:cover;filter:sepia(.12)}.ency-home-art span{display:block;padding:11px 8px 3px;text-align:center;color:#725d43;font-size:8px;font-weight:700;letter-spacing:.14em}.ency-home-copy .eyebrow{color:#e3c47c}.ency-home-copy h2{font:500 clamp(48px,6vw,74px)/.95 var(--serif);color:#f0e5d7;margin:17px 0}.ency-home-copy h2 em{color:#e2c275}.ency-home-copy>p:not(.eyebrow){max-width:540px;color:#d0c4ca;font:18px/1.7 var(--serif);margin:0 0 27px}.ency-home-copy .button{text-transform:uppercase;letter-spacing:.08em;font-size:10px}
@media(max-width:760px){.ency-home-layout{grid-template-columns:1fr;gap:32px}.ency-home-art{max-width:560px}.ency-home-copy h2{font-size:55px}}
/* Shared encyclopedia records. */
/* Source-grounded supporting profiles use an archival placeholder when the manuscript has no approved portrait. */
.atlas-text-record{min-height:260px}.atlas-placeholder{display:grid;place-items:center;height:142px;background:radial-gradient(ellipse,#685271,#32253c 70%);font:italic 92px/.9 var(--serif);color:#e2c579;text-shadow:0 0 24px rgba(226,197,121,.22)}.supporting-record{display:grid;grid-template-columns:minmax(230px,.78fr) minmax(0,1.22fr);gap:7%;align-items:start;padding:20px 0 100px}.record-portrait{position:sticky;top:35px;min-height:365px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:22px;padding:30px;background:linear-gradient(145deg,#33263d,#211927);border:1px solid rgba(217,185,105,.55);text-align:center}.record-portrait:before{content:"";position:absolute;inset:9px;border:1px solid rgba(222,194,136,.2);pointer-events:none}.record-initial{font:italic 152px/.8 var(--serif);color:#e2c579;text-shadow:0 0 35px rgba(226,197,121,.2)}.record-portrait-note{max-width:230px;color:#bfb1b9;font:italic 17px/1.4 var(--serif)}.portrait-label{color:#ddc17c;font-size:8px;letter-spacing:.17em;font-weight:700}.record-copy{padding:24px 0}.record-copy>.eyebrow{color:#b79558}.supporting-summary{font:24px/1.5 var(--serif);color:#eadfd6}.record-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:28px 0;border-top:1px solid rgba(217,185,105,.26)}.record-facts>div{padding:14px 12px 14px 0;border-bottom:1px solid rgba(217,185,105,.18)}.record-facts dt{color:#ba9d66;font-size:8px;font-weight:700;letter-spacing:.15em;text-transform:uppercase}.record-facts dd{margin:6px 0 0;color:#e9dfd5;font:16px/1.4 var(--serif)}.supporting-quote{margin:28px 0;padding:20px 24px;border-left:2px solid #d9b969;background:rgba(255,255,255,.035);font:italic 22px/1.4 var(--serif);color:#e9dbbf}.supporting-quote cite{display:block;margin-top:9px;color:#bdad9c;font:700 9px var(--sans);letter-spacing:.12em;text-transform:uppercase}.record-copy .related-block{margin:30px 0}.supporting-character-page .collection-masthead h1{font-size:clamp(55px,7vw,88px)}
@media(max-width:680px){.supporting-record{grid-template-columns:1fr;gap:20px;padding-bottom:70px}.record-portrait{position:relative;top:auto;min-height:245px}.record-initial{font-size:112px}.record-copy{padding:8px 0}.supporting-summary{font-size:21px}.record-facts{grid-template-columns:1fr}}
/* Clickable Atlas route diagram: nodes state only the connections already recorded in Book One. */
.route-diagram{margin:24px 0 28px;padding:18px 16px 13px;background:linear-gradient(145deg,#30233a,#241a2f);border:1px solid rgba(217,185,105,.4)}.route-diagram svg{display:block;width:100%;height:auto;overflow:visible}.route-diagram .route-line{fill:none;stroke:#c2a25e;stroke-width:3;stroke-dasharray:5 9;stroke-linecap:round}.route-diagram .route-node{fill:#2d2035;stroke:#e1c478;stroke-width:3;transition:fill .2s,stroke-width .2s}.route-diagram a:hover .route-node,.route-diagram a:focus .route-node{fill:#60446a;stroke-width:5}.route-diagram a:focus{outline:none}.route-diagram text{fill:#f2e7d2;font:600 17px var(--serif);pointer-events:none}.route-diagram figcaption{color:#c4b7bd;font-size:10px;line-height:1.5;margin-top:8px}.atlas-caveat{padding:13px 16px;border-left:2px solid #d9b969;background:rgba(255,255,255,.04);color:#d0c5c3;font:italic 14px/1.5 var(--serif)}
@media(max-width:600px){.route-diagram{padding:10px 7px}.route-diagram text{font-size:16px}}

/* Make supporting-character cards read as intentional text records, not missing artwork. */
.atlas-text-record .atlas-placeholder{display:grid;place-items:center;width:68px;height:68px;margin:22px auto 10px;border:1px solid rgba(217,185,105,.65);border-radius:50%;background:radial-gradient(circle,#56415f,#2a2032 72%);font:italic 39px/1 var(--serif);color:#e2c579;text-shadow:0 0 16px rgba(226,197,121,.22)}
.atlas-portrait-note{display:block;margin:0 auto 14px;color:#bfb1b9;text-align:center;font:italic 12px/1.4 var(--serif);letter-spacing:.02em}
.profile-page>.creature-wide{display:block;width:100%;height:auto;max-height:min(72vh,760px);object-fit:contain;object-position:center;border:1px solid rgba(217,185,105,.4);border-radius:12px;background:#21162a}
@media(max-width:680px){.profile-page>.creature-wide{max-height:none;border-radius:8px}}

/* Clear, persistent wayfinding for the encyclopedia's connected records. */
.ency-section-nav{display:flex;align-items:center;justify-content:center;gap:6px;max-width:1320px;margin:0 auto 28px;padding:11px 18px;border:1px solid rgba(217,185,105,.28);background:linear-gradient(100deg,#211927,#2b2033 50%,#211927);overflow-x:auto;scrollbar-width:thin;scrollbar-color:#806849 transparent}
.ency-section-nav a{flex:0 0 auto;padding:10px 13px;color:#d8c9ae;font:700 10px/1.2 var(--sans);letter-spacing:.07em;text-decoration:none;text-transform:uppercase;border:1px solid transparent;white-space:nowrap}
.ency-section-nav a:hover,.ency-section-nav a:focus-visible{color:#f4e4bf;border-color:rgba(217,185,105,.5);background:rgba(255,255,255,.04)}
.ency-section-nav a[aria-current]{color:#241a2e;background:#dfc17a;border-color:#dfc17a}
.ency-section-nav a:focus-visible{outline:3px solid #f1d58e;outline-offset:2px}

/* The atlas directory had image markup without any tile styling, leaving only oversized text. */
.location-grid{align-items:stretch;margin-top:24px;padding-bottom:74px}
.location-tile{display:flex;min-width:0;flex-direction:column;overflow:hidden;color:#eee3d5;background:#2a2032;border:1px solid rgba(217,185,105,.42);text-decoration:none;box-shadow:0 12px 30px rgba(0,0,0,.2);transition:transform .2s,border-color .2s,box-shadow .2s}
.location-tile:hover,.location-tile:focus-visible{transform:translateY(-4px);border-color:#e5c878;box-shadow:0 18px 38px rgba(0,0,0,.3)}
.location-tile>div:first-child{height:230px;flex:0 0 auto;background-color:#382a40;background-repeat:no-repeat;background-size:cover;background-position:center;position:relative}
.location-tile>div:first-child:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 45%,rgba(23,18,31,.62))}
.location-tile h2{margin:0;padding:22px 22px 7px;color:#f2dfb6;font:500 29px/1.05 var(--serif)}
.location-tile p{margin:0;padding:0 22px 22px;color:#d5cbd3;font:14px/1.65 var(--sans);flex:1}
.location-tile[data-added-record="true"]{border-style:dashed}
.location-grid+.collection-more{margin-bottom:45px}

/* Artwork always stays inside its frame. Tall character portraits retain the face and full silhouette. */
.ency-results{gap:18px}
.ency-record{border-radius:3px;min-height:310px}
.ency-record-image{height:188px;display:grid;place-items:center;padding:7px;background:radial-gradient(ellipse at center,#594761 0%,#302438 72%,#241b2b 100%);border-bottom:1px solid rgba(217,185,105,.22)}
.ency-record-image img{width:100%;height:100%;object-fit:contain;object-position:center;background:transparent}
.ency-record[data-collection="characters"] .ency-record-image{background:radial-gradient(ellipse at 50% 22%,#695378 0%,#34283e 62%,#211a29 100%)}
.ency-record-body{padding:18px 20px 17px}
.ency-record-kicker{font-size:10px;line-height:1.4}
.ency-record h3{font-size:clamp(23px,2vw,29px);line-height:1.08}
.ency-record p{font-size:15px;line-height:1.55}
.ency-record-foot{font-size:10px;line-height:1.4}
.ency-record-placeholder{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#e8d5aa;text-align:center;background:radial-gradient(ellipse at center,#5c4766 0%,#302438 72%,#211a29 100%)}
.ency-placeholder-mark{display:grid;place-items:center;width:68px;height:68px;border:1px solid rgba(228,196,126,.72);border-radius:50%;color:#e5c77c;font:italic 42px/1 var(--serif);text-shadow:0 0 18px rgba(226,197,121,.28)}
.ency-placeholder-label{max-width:90%;color:#cfc1cf;font:italic 13px/1.35 var(--serif)}

/* Category volumes carry existing artwork so visitors can choose by image as well as label. */
.ency-volume{padding:0 22px 23px;min-height:350px}
.ency-volume-art{height:148px;margin:0 -22px 19px;overflow:hidden;background:#201928;border-bottom:1px solid rgba(217,185,105,.36)}
.ency-volume-art img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 35%;transition:transform .35s}
.ency-volume:hover .ency-volume-art img{transform:scale(1.035)}
.ency-volume:nth-child(4) .ency-volume-art img{object-position:center 70%}
.ency-volume:nth-child(5) .ency-volume-art img{object-position:center 40%}
.ency-volume .volume-num{top:157px;right:18px;z-index:1}
.ency-volume h3{max-width:320px}

/* Keep full character faces visible on directory and profile views. */
.atlas-card[href^="/characters/"]>img{object-position:center top}
.profile-surface .profile-lead img{height:auto;max-height:min(74vh,760px);object-fit:contain;object-position:center;background:#21162a}

@media(max-width:900px){.location-tile>div:first-child{height:210px}.ency-section-nav{justify-content:flex-start;margin-inline:18px}}
@media(max-width:640px){.ency-section-nav{gap:2px;margin:0 14px 20px;padding:8px;justify-content:flex-start}.ency-section-nav a{font-size:9px;padding:9px 10px}.location-grid{grid-template-columns:1fr;padding-bottom:48px}.location-tile>div:first-child{height:220px}.location-tile h2{font-size:27px}.ency-record{min-height:0}.ency-record-image{height:205px}.ency-volume{min-height:0;padding-bottom:22px}.ency-volume-art{height:165px}.ency-volume .volume-num{top:176px}.ency-volume h3{font-size:29px}}

/* The new archive illustrations stay fully visible in portrait frames. */
.atlas-card[href^="/characters/"]>img{height:330px;object-fit:contain;object-position:center;background:radial-gradient(ellipse at 50% 25%,#594761,#21162a 72%)}
.atlas-text-record{position:relative}
.atlas-text-record>img{display:block;width:100%;height:330px;object-fit:contain;object-position:center;background:#21162a}
.atlas-text-record>.atlas-portrait-note{display:block;margin:-1px 0 0;padding:8px 12px;background:#211a29;color:#d1c2aa;text-align:center;font-size:9px;letter-spacing:.08em;text-transform:uppercase}
.record-portrait{min-height:0;overflow:hidden}
.record-portrait img{position:relative;display:block;width:100%;max-height:min(68vh,760px);object-fit:contain;object-position:center;background:#21162a}
.record-portrait .record-portrait-note{max-width:100%;font-size:13px}
.location-tile img{display:block;width:100%;height:230px;object-fit:cover;background:#21162a}
.location-tile .concept-note{padding-top:0;color:#d8bd80;font-size:10px}
.route-card{position:relative;border-radius:3px;background:linear-gradient(145deg,rgba(61,43,70,.97),rgba(31,24,39,.98));box-shadow:0 20px 55px rgba(0,0,0,.24)}
.route-card:first-child{border-color:rgba(217,185,105,.55)}
.route-diagram{position:relative;overflow:hidden;border-radius:2px;background:radial-gradient(ellipse at 50% 48%,rgba(125,96,120,.22),transparent 66%),linear-gradient(145deg,#241a2d,#30223a 55%,#201827)}
.route-diagram:before{position:absolute;inset:9px;border:1px solid rgba(217,185,105,.18);content:"";pointer-events:none}
.route-diagram .route-line{filter:drop-shadow(0 0 5px rgba(217,185,105,.45));animation:route-glimmer 9s linear infinite}
.route-diagram .route-node{filter:drop-shadow(0 0 9px rgba(217,185,105,.3))}
@keyframes route-glimmer{to{stroke-dashoffset:-56}}
.route-card>h2{font-size:clamp(27px,3vw,39px)}
@media(prefers-reduced-motion:reduce){.route-diagram .route-line{animation:none}}
@media(max-width:680px){.record-portrait img{max-height:60vh}.atlas-card[href^="/characters/"]>img,.atlas-text-record>img{height:300px}.location-tile img{height:220px}}

.ency-random-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:22px 0 0}.ency-random-row .ency-result-status{margin:0}.ency-random-row button{min-height:45px;white-space:nowrap}.ency-random-note{margin:8px 0 16px;color:#b9aeb6;font:italic 13px/1.5 var(--serif)}.location-profile-detail{align-items:start}.location-profile-detail figure{position:sticky;top:24px;margin:0;padding:12px;border:1px solid rgba(217,185,105,.5);background:#21162a}.location-profile-detail figure img{display:block;width:100%;max-height:min(72vh,760px);object-fit:contain}.location-profile-detail figcaption{padding:12px 6px 3px;color:#d2bd91;font:italic 13px/1.5 var(--serif)}.location-profile-detail .field-note{margin:22px 0}.location-profile-detail .profile-facts{margin:25px 0}@media(max-width:680px){.ency-random-row{align-items:stretch;flex-direction:column}.ency-random-row button{width:100%;justify-content:center}.location-profile-detail{grid-template-columns:1fr}.location-profile-detail figure{position:relative;top:auto}.location-profile-detail figure img{max-height:60vh}}
