:root {
  color-scheme: light;
  --desk: #060a10;
  --leather: #3b2414;
  --page: #eadcbc;
  --ink: #2a1f14;
  --ink-soft: #5b4a36;
  --rubric: #8c2b1a;
  --gilt: #a8842f;
  --azure: #2f4f6f;
  --display: "IM Fell English", "Iowan Old Style", Georgia, serif;
  --small-caps: "IM Fell English SC", "IM Fell English", Georgia, serif;
  --body: "Noto Serif Thai", "IM Fell English", Georgia, serif;
}

* { box-sizing: border-box; }
body { margin: 0; padding: 0; background: radial-gradient(120% 100% at 10% 0%, #1a2939 0%, #080e16 58%, #060a10 100%); color: var(--ink); font: 15px/1.65 var(--body); }
button, input { color: inherit; font: inherit; }
:focus-visible { outline: 2px dashed var(--rubric); outline-offset: 3px; }
.codex-shell { padding: 18px 16px 28px; }
.codex-main, .title-plate, .ribbons { width: min(1180px, 100%); margin-inline: auto; }
.title-plate { display: flex; align-items: baseline; gap: 14px; margin-bottom: 6px; color: #d9c595; }
.title-plate h1 { margin: 0; color: #e5d5b2; font: 400 26px var(--small-caps); letter-spacing: .08em; }
.title-plate span { color: #c9b88f; font: italic 14px var(--display); }
.ribbons { position: relative; z-index: 20; display: flex; gap: 10px; padding-left: 40px; }
.ribbon { position: relative; display: grid; justify-items: center; gap: 2px; padding: 8px 14px 18px; border: 0; color: #f6ead0; cursor: pointer; font: 15px var(--small-caps); letter-spacing: .04em; white-space: nowrap; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%); transform: translateY(10px); transition: transform .2s; }
.ribbon small { font: italic 11px var(--display); opacity: .8; }
.ribbon:hover, .ribbon[aria-pressed="true"] { transform: translateY(22px); }
.ribbon[data-chapter="mastery"] { background: var(--rubric); }
.ribbon[data-chapter="sanctum"] { background: #4b3a6b; }
.ribbon[data-chapter="world"] { background: #3d5a3a; }
.ribbon[data-chapter="life"] { background: #8a6a24; }
.book { display: grid; grid-template-columns: 1fr 1fr; padding: 14px; border-radius: 10px; background: linear-gradient(90deg, #2e1b0e, var(--leather) 6%, var(--leather) 94%, #2e1b0e); box-shadow: 0 30px 60px #0009; }
.page { position: relative; min-width: 0; min-height: 640px; padding: 40px 46px 56px; overflow: hidden; background: var(--page); }
.page::before { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 50%, transparent 55%, #78582847 100%), repeating-linear-gradient(0deg, #5a3c0606 0 2px, transparent 2px 5px); content: ""; }
.page > * { position: relative; }
.verso { border-radius: 6px 0 0 6px; box-shadow: inset -28px 0 30px -18px #462d0f8c; }
.recto { border-radius: 0 6px 6px 0; box-shadow: inset 28px 0 30px -18px #462d0f8c; }
.chapter-mark, .entry-kind { margin: 0; color: var(--rubric); font: 13px var(--small-caps); letter-spacing: .2em; }
.chapter-title { margin: 2px 0 14px; font: 400 38px/1.05 var(--display); text-wrap: balance; }
.search-label, .quill { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; border-bottom: 1px solid var(--ink-soft); color: var(--ink-soft); font: italic 15px var(--display); }
.search-label input, .quill input { flex: 1; min-width: 0; padding: 6px 0; border: 0; outline: 0; background: transparent; font: 15px var(--body); }
input::placeholder { color: #8a775a; font-style: italic; }
.scope { display: inline-flex; gap: 0; margin: 0 0 12px; overflow: hidden; border: 1px solid var(--ink-soft); border-radius: 5px; color: var(--ink); font-size: 12px; }
.scope label { display: inline-flex; color: var(--ink); min-height: 34px; align-items: center; gap: 6px; padding: 5px 10px; cursor: pointer; white-space: nowrap; }
.scope label + label { border-left: 1px solid var(--ink-soft); }
.scope input { accent-color: var(--rubric); }
.scope label.is-selected { background: #d4c29d; color: #24190f; }
.index-heading { display: flex; align-items: center; gap: 10px; margin: 16px 0 4px; color: var(--rubric); font: 14px var(--small-caps); letter-spacing: .12em; }
.index-heading::after { flex: 1; height: 1px; background: linear-gradient(90deg, var(--gilt), transparent); content: ""; }
.index-list { margin: 0; padding: 0; list-style: none; }
.index-line { display: flex; width: 100%; align-items: baseline; gap: 6px; padding: 5px 0; border: 0; background: none; text-align: left; cursor: pointer; }
.index-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.index-kind { max-width: 38%; overflow: hidden; color: var(--ink-soft); font: italic 11px var(--display); text-overflow: ellipsis; white-space: nowrap; }
.index-dots { flex: 1; min-width: 14px; border-bottom: 1px dotted var(--ink-soft); transform: translateY(-4px); }
.index-folio, .folio { color: var(--ink-soft); font: italic 13px var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.index-line:hover .index-name, .index-line[aria-current="true"] .index-name { color: var(--rubric); }
.index-line[aria-current="true"] .index-name::before { content: "☞ "; }
.folio { position: absolute; right: 0; bottom: 20px; left: 0; text-align: center; }
.blank { margin-top: 30px; color: var(--ink-soft); font: italic 16px var(--display); text-align: center; }
.entry { min-width: 0; overflow-wrap: anywhere; animation: turn .35s ease-out; }
@keyframes turn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.entry-breadcrumb { display: flex; min-width: 0; align-items: center; gap: 5px; margin: 0 0 10px; color: var(--ink-soft); font-size: 13px; }
.entry-breadcrumb__part { display: inline-flex; min-width: 0; align-items: center; gap: 5px; }
.entry-breadcrumb__separator { flex: 0 0 auto; color: var(--rubric); }
.entry-breadcrumb button { min-width: 0; overflow: hidden; padding: 0; border: 0; background: none; color: var(--azure); cursor: pointer; text-overflow: ellipsis; white-space: nowrap; }
.entry-breadcrumb [aria-current="page"] { min-width: 0; overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; }
.entry h2 { margin: 2px 0; font: 400 42px/1.05 var(--display); text-wrap: balance; }
.epithet { margin: 0 0 14px; color: var(--ink-soft); font: italic 17px var(--display); }
.plate { float: right; width: 150px; margin: 4px 0 10px 18px; padding: 6px; border: 1px solid var(--ink-soft); background: #f3e8cf; box-shadow: 2px 3px #462d0f26; }
.plate img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; filter: sepia(.35) contrast(1.05); }
.plate figcaption { margin-top: 4px; color: var(--ink-soft); font: italic 12px var(--display); text-align: center; }
.story { max-width: 62ch; margin: 0 0 14px; line-height: 1.85; }
.entry-copy, .story { min-width: 0; overflow-wrap: anywhere; }
.entry-ratings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; margin: 8px 0 14px; color: var(--ink-soft); font: 13px/1.5 var(--small-caps); }
.entry-ratings p { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.story > p:first-child::first-letter { float: left; margin: 4px 8px 0 0; padding: 2px 8px; border: 2px solid var(--gilt); background: var(--rubric); color: #f6ead0; font: 46px/.9 var(--display); }
.entry-copy, .tier-line { line-height: 1.75; }
.story h1, .story h2, .story h3, .entry-copy h1, .entry-copy h2, .entry-copy h3, .tier-line h1, .tier-line h2, .tier-line h3 { margin: 8px 0 4px; font-family: var(--display); }
.story ul, .story ol, .entry-copy ul, .entry-copy ol, .tier-line ul, .tier-line ol { padding-left: 1.4em; }
.story blockquote, .entry-copy blockquote, .tier-line blockquote { margin: 8px 0; padding-left: 12px; border-left: 2px solid var(--gilt); color: var(--ink-soft); }
.story pre, .entry-copy pre, .tier-line pre { overflow: auto; padding: 8px; background: #2a1f1412; }
.story a, .entry-copy a, .tier-line a { color: var(--azure); }
.markdown-subtext { color: var(--ink-soft); font-size: .86em; }
.markdown-spoiler { border-radius: 3px; background: #2a1f14; color: var(--page); }
.facts, .loot { clear: both; width: 100%; margin: 6px 0 14px; border-collapse: collapse; font-size: 14px; }
.facts th { width: 34%; padding: 5px 8px 5px 0; color: var(--ink-soft); font: 14px var(--small-caps); text-align: left; vertical-align: top; }
.facts td, .loot td { padding: 5px 0; border-bottom: 1px solid #5a4a3640; }
.section-heading { display: flex; align-items: center; gap: 10px; margin: 16px 0 6px; color: var(--rubric); font: 16px var(--small-caps); letter-spacing: .1em; }
.section-heading::after { flex: 1; height: 1px; background: linear-gradient(90deg, var(--gilt), transparent); content: ""; }
.links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; }
.links button { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--azure); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.links img { width: 22px; height: 22px; border: 1px solid var(--ink-soft); border-radius: 50%; object-fit: cover; filter: sepia(.4); }
.loot td:last-child { color: var(--ink-soft); font: italic 14px var(--display); text-align: right; }
.loot .rar-rare { color: var(--rubric) !important; }
.tier-list { margin: 0; padding-left: 0; list-style: none; counter-reset: tier; }
.tier-list li { counter-increment: tier; padding: 3px 0; }
.tier-list li::before { color: var(--rubric); content: counter(tier, upper-roman) " · "; font-family: var(--display); }
.retainer-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.retainer-card { display: grid; justify-items: start; gap: 6px; padding: 8px; border: 1px solid var(--ink-soft); }
.retainer-card img { width: 72px; height: 72px; object-fit: cover; }
.world-entry .screen { display: grid; gap: 10px; padding: 14px; border: 1px solid #c9b48a; background: #e1d0a8; }
.world-entry .zone { display: grid; gap: 4px; padding-left: 10px; border-left: 3px solid var(--gilt); }
.world-entry .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; border: 1px solid #c9b48a; background: var(--page); }
.world-entry .row a { color: var(--azure); }
.world-entry .chip { padding: 1px 6px; border: 1px solid currentColor; font-size: 11px; white-space: nowrap; }
.world-entry .chip.ok { color: #4d6b2f; }
.world-entry .chip.az { color: var(--azure); }
.world-entry .bar { position: relative; height: 12px; border: 1px solid #c9b48a; background: var(--page); }
.world-entry .bar i { position: absolute; inset: 0 auto 0 0; background: var(--gilt); }
.world-entry .ticks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); color: var(--ink-soft); font-size: 11px; text-align: right; }
.codex-footer { display: flex; justify-content: space-between; padding: 12px 4px; color: #a8946a; font-size: 12px; }
.codex-footer a { color: inherit; }
.boss-card { --bc-bg:#0c0806; --bc-bg2:#170f0a; --bc-ink:#ecdcbc; --bc-dim:#7d6b54; --bc-gilt:#d9b04f; --bc-blood:#b8281d; --bc-edge:#3a2618;
  position:relative; overflow:hidden; display:grid; grid-template-columns:minmax(200px,300px) 1fr; gap:24px; padding:26px 22px; border:1px solid var(--bc-edge); color:var(--bc-ink);
  background:radial-gradient(120% 90% at 18% 30%, rgba(184,40,29,.22), transparent 60%), linear-gradient(160deg, var(--bc-bg2), var(--bc-bg)); }
.boss-card::after { position:absolute; inset:8px; border:1px solid rgba(217,176,79,.18); pointer-events:none; content:""; }
.boss-card .bc-sigil { display:grid; gap:10px; justify-items:center; align-content:start; width:100%; }
.boss-card .bc-sigil svg { width:100%; height:auto; overflow:visible; }
.boss-card .bc-sigil .f { fill:#1d140d; stroke:var(--bc-edge); stroke-width:1.5; }
.boss-card .bc-sigil .f.on { fill:var(--bc-gilt); stroke:#f3d98c; }
.boss-card .bc-sigil .f.on.new { fill:var(--bc-blood); stroke:#ff8a6a; filter:drop-shadow(0 0 10px rgba(255,90,60,.75)); animation:bc-ember 2.4s ease-in-out infinite; }
@keyframes bc-ember { 50% { filter:drop-shadow(0 0 18px rgba(255,90,60,.95)); } }
.boss-card .bc-sigil .rim { fill:none; stroke:var(--bc-gilt); stroke-width:1; opacity:.45; }
.boss-card .bc-sigil .core { fill:var(--bc-bg); stroke:var(--bc-gilt); stroke-width:1.5; }
.boss-card .bc-sigil text { fill:var(--bc-ink); text-anchor:middle; }
.boss-card .bc-sigil .flab { fill:var(--bc-dim); font-size:10px; letter-spacing:.12em; }
.boss-card .bc-kills { color:var(--bc-dim); font-size:12px; letter-spacing:.08em; text-transform:uppercase; }
.boss-card .bc-kills b { color:var(--bc-blood); font-size:15px; }
.boss-card .bc-body { display:grid; gap:14px; align-content:start; min-width:0; }
.boss-card .bc-rank { color:var(--bc-blood); font-size:11px; letter-spacing:.3em; text-transform:uppercase; }
.boss-card .bc-name { margin:0; font-size:clamp(30px,5.5vw,46px); line-height:1; text-shadow:0 0 24px rgba(184,40,29,.5); }
.boss-card[data-step="0"] .bc-name { color:var(--bc-dim); filter:blur(7px); letter-spacing:.25em; text-shadow:none; }
.boss-card .bc-epithet { color:var(--bc-gilt); font-size:16px; font-style:italic; }
.boss-card .bc-block { display:grid; gap:6px; padding-top:10px; border-top:1px solid var(--bc-edge); }
.boss-card .bc-block h4 { display:flex; align-items:center; gap:8px; margin:0; color:var(--bc-gilt); font-size:14px; letter-spacing:.14em; }
.boss-card .bc-block .seal { display:none; color:var(--bc-dim); font-size:13px; }
.boss-card .bc-block.locked h4 { color:var(--bc-dim); }
.boss-card .bc-block.locked .open { display:none; }
.boss-card .bc-block.locked .seal { display:block; }
.boss-card .bc-line { display:flex; justify-content:space-between; gap:10px; padding:4px 0; border-bottom:1px dotted var(--bc-edge); font-size:13.5px; }
.boss-card .bc-line span:last-child { color:var(--bc-gilt); white-space:nowrap; }
.boss-card .bc-shop button { padding:3px 12px; border:1px solid #e0573f; background:var(--bc-blood); color:var(--bc-ink); cursor:pointer; }

@media (max-width: 820px) {
  .book { grid-template-columns: minmax(0, 1fr); padding: 8px; }
  .page { min-height: 0; padding: 28px 22px 50px; border-radius: 6px !important; box-shadow: none; }
  .book[data-view="index"] .recto, .book[data-view="entry"] .verso { display: none; }
  .entry-breadcrumb { max-width: 100%; }
  .entry-breadcrumb__part { flex: 0 1 auto; }
  .ribbons { gap: 6px; overflow-x: auto; padding: 0 0 22px 4px; }
  .ribbon { flex: none; min-width: max-content; padding: 6px 10px 16px; font-size: 13px; }
  .entry h2 { font-size: 34px; }
  .plate { width: 112px; }
}
@media (max-width: 640px) { .boss-card { grid-template-columns:1fr; } .boss-card .bc-sigil { max-width:240px; justify-self:center; } }
@media (max-width: 640px) { .world-entry .ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); text-align: left; } }
@media (prefers-reduced-motion: reduce) { .boss-card .bc-sigil .f.on.new { animation:none; } }
@media (prefers-reduced-motion: reduce) { .entry, .ribbon { animation: none; transition: none; } }

.codex-shell[data-view="atlas"] .title-plate,
.codex-shell[data-view="atlas"] .codex-footer { display: none; }
.codex-shell[data-view="atlas"] #verso,
.codex-shell[data-view="atlas"] #recto { display: none; }
.book[data-view="atlas"] { display: block; padding: 14px; }
#atlas[hidden] { display: none; }
.atlas-root { position: relative; width: min(1180px, 100%); margin: 0 auto; color: var(--note, #c9bfa8); }
.atlas-bar { display: flex; min-height: 36px; align-items: center; justify-content: space-between; margin: 0 14px 10px; font: 13px var(--body); }
.atlas-bar a { color: inherit; text-decoration: none; }
.atlas-bar a:hover, .atlas-bar a:focus-visible { color: var(--gilt-hi, #e2c27a); }
.atlas-bar b { color: var(--gilt-hi, #e2c27a); font: 15px var(--small-caps); letter-spacing: .3em; }
.atlas-spread { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 12px; border-radius: 6px; background: linear-gradient(var(--leather), #5a3a20, var(--leather)); box-shadow: 0 30px 70px #000a; }
.atlas-page { position: relative; display: flex; min-width: 0; min-height: 640px; flex-direction: column; gap: 12px; padding: 30px 34px; overflow: hidden; background: var(--page); color: var(--ink); }
.atlas-left { align-items: center; border-radius: 3px 0 0 3px; box-shadow: inset -26px 0 30px -20px #7a5f3366; }
.atlas-right { border-radius: 0 3px 3px 0; box-shadow: inset 26px 0 30px -20px #7a5f3366; }
.atlas-kicker { color: var(--rubric); font: 12px var(--small-caps); letter-spacing: .2em; }
.atlas-page h2 { width: 100%; margin: 0; font: 400 40px/1 var(--display); }
.atlas-page h3 { margin: 0; font: 400 20px var(--display); }
.atlas-sub, .atlas-caption { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.6; }
.atlas-orrery { position: relative; width: min(420px, 100%); aspect-ratio: 1; flex: none; padding: 4px; border-radius: 50%; background: conic-gradient(from 20deg, #7c6026, var(--gilt-hi, #e2c27a), #7c6026, #c7a253, #7c6026); box-shadow: 0 8px 22px #5a3f1c66, inset 0 0 0 1px #3d2c10; }
.atlas-orrery canvas, .atlas-map-fallback { display: block; width: 100%; height: 100%; border-radius: 50%; background: #050c18; touch-action: none; }
.atlas-orrery canvas { cursor: grab; }
.atlas-orrery canvas:active { cursor: grabbing; }
.atlas-map-fallback { object-fit: cover; }
.atlas-controls { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.atlas-button, .atlas-back { min-width: 44px; min-height: 44px; padding: 6px 14px; border: 1px solid #b59a66; border-radius: 4px; background: transparent; color: var(--ink); cursor: pointer; font: 14px var(--body); }
.atlas-button:hover, .atlas-button:focus-visible, .atlas-button.is-on { background: #d9c7a0; }
.atlas-caption { text-align: center; font: italic 13px var(--display); }
.atlas-zones, .atlas-regions { display: grid; margin: 0; padding: 0; list-style: none; }
.atlas-zone { display: grid; width: 100%; min-height: 56px; grid-template-columns: 14px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 7px 9px; border: 0; border-bottom: 1px solid #c9b48a; background: transparent; color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.atlas-zone:hover, .atlas-zone:focus-visible { outline: none; background: #dccaa3; }
.atlas-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--zone-color); box-shadow: 0 0 0 2px var(--page), 0 0 0 3px var(--zone-color); }
.atlas-zone-name { display: grid; min-width: 0; gap: 2px; }
.atlas-zone-name b { font: 400 18px var(--small-caps); letter-spacing: .05em; }
.atlas-zone-name small, .atlas-meta { color: var(--ink-soft); font-size: 12px; }
.atlas-meta { white-space: nowrap; }
.atlas-chip { display: inline-block; padding: 2px 8px; border: 1px solid currentColor; border-radius: 999px; color: #8a7a60; }
.atlas-reliquary { display: grid; min-height: 56px; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 10px; padding: 10px; border: 1px solid var(--gilt); border-radius: 4px; background: #e3d2ad; color: var(--ink); text-decoration: none; }
.atlas-reliquary:hover, .atlas-reliquary:focus-visible { background: #d9c7a0; }
.atlas-reliquary b { font: 400 18px var(--small-caps); letter-spacing: .06em; }
.atlas-reliquary small { color: var(--ink-soft); font-size: 12px; }
.atlas-reliquary i { grid-column: 2; grid-row: 1 / span 2; color: var(--rubric); font-style: normal; }
.atlas-overlay { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.atlas-pinlabel { position: absolute; z-index: 3; color: #fff1cc; font: 14px var(--small-caps); letter-spacing: .14em; text-shadow: 0 1px 6px #000, 0 0 12px #000; white-space: nowrap; pointer-events: none; }
.atlas-rule { width: 100%; height: 1px; flex: none; margin: 3px 0; border: 0; background: linear-gradient(90deg, transparent, var(--gilt), transparent); }
.atlas-info { display: grid; grid-template-columns: 100px 1fr; gap: 8px 14px; margin: 0; font-size: 14px; }
.atlas-info dt { color: var(--ink-soft); font: 13px var(--small-caps); letter-spacing: .1em; }
.atlas-info dd { margin: 0; line-height: 1.6; }
.atlas-back { align-self: flex-start; padding-inline: 0; border: 0; color: var(--rubric); }
.atlas-regions { gap: 8px; }
.atlas-regions a { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1px solid #c9b48a; border-radius: 4px; background: #e3d2ad; color: var(--ink); text-decoration: none; }
.atlas-regions a:hover, .atlas-regions a:focus-visible { border-color: var(--rubric); }
.atlas-regions b { font: 400 18px var(--display); }
.atlas-regions small { color: var(--ink-soft); font-size: 13px; white-space: nowrap; }
.atlas-empty { margin: 0; padding: 14px; border: 1px dashed #b59a66; border-radius: 4px; color: var(--ink-soft); font-size: 14px; line-height: 1.6; }
.atlas-cta { display: inline-flex; min-height: 44px; align-self: flex-start; align-items: center; margin-top: auto; padding: 10px 20px; border-radius: 4px; background: var(--rubric); color: #f7e9d0; text-decoration: none; font: 15px var(--body); }
.atlas-cta:disabled { background: #b9a682; color: #efe4cb; cursor: not-allowed; }
.atlas-zone--locked { color: #8a7a60; cursor: default; }
.atlas-zone--locked:hover { background: transparent; }
.atlas-zone--locked .atlas-dot { background: #8a7a60; box-shadow: 0 0 0 2px var(--page), 0 0 0 3px #8a7a60; }
.atlas-zone--locked .atlas-zone-name b { letter-spacing: .3em; }
.atlas-left--chapter { align-items: stretch; }
.atlas-left--chapter .atlas-orrery { width: min(270px, 80%); align-self: center; }
.atlas-left--chapter .atlas-controls, .atlas-left--chapter .atlas-caption { display: none; }
.atlas-chapter-nav { display: grid; width: 100%; gap: 6px; }
.atlas-chapter-nav .atlas-back { min-height: 44px; }
.atlas-regions-nav, .atlas-area-list, .atlas-boss-list { display: grid; margin: 0; padding: 0; list-style: none; }
.atlas-regions-nav { gap: 4px; }
.atlas-regions-nav button { display: flex; width: 100%; min-height: 44px; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; border: 0; border-left: 3px solid transparent; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.atlas-regions-nav button.is-current { border-left-color: var(--rubric); background: #dccaa3; }
.atlas-regions-nav small, .atlas-area-list small, .atlas-boss-copy small { color: var(--ink-soft); font-size: 12px; }
.atlas-chapter-crumbs { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--rubric); font: 12px var(--small-caps); letter-spacing: .1em; }
.atlas-chapter-crumbs button { min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--rubric); cursor: pointer; font: inherit; letter-spacing: inherit; }
.atlas-chapter-crumbs [aria-current="page"] { color: var(--ink); }
.atlas-area-list, .atlas-boss-list { gap: 8px; }
.atlas-area-list a { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border: 1px solid #c9b48a; border-radius: 4px; background: #e3d2ad; color: var(--ink); text-decoration: none; }
.atlas-area-list a:hover, .atlas-area-list a:focus-visible { border-color: var(--rubric); }
.atlas-boss { display: grid; min-width: 0; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--rubric); border-radius: 4px; background: linear-gradient(135deg, #e6d3aa, #dcc394); }
.atlas-boss-sigil { display: grid; width: 64px; height: 64px; place-items: center; border: 1px solid var(--gilt); border-radius: 50%; color: var(--rubric); font-size: 28px; }
.atlas-boss-copy { display: grid; min-width: 0; gap: 4px; }
.atlas-boss-name { display: block; overflow: hidden; font: 400 20px/1.15 var(--display); text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 820px) {
  .book[data-view="atlas"] { padding: 8px; }
  .atlas-spread { grid-template-columns: minmax(0, 1fr); padding: 8px; }
  .atlas-page { min-height: 0; padding: 20px 16px 24px; }
  .atlas-left, .atlas-right { border-radius: 0; box-shadow: none; }
  .atlas-page h2 { font-size: 32px; }
  .atlas-orrery { width: min(300px, 100%); }
  .atlas-left--chapter .atlas-orrery { width: min(230px, 76%); }
  .atlas-reset { display: none; }
  .atlas-zone { min-height: 56px; }
  .atlas-info { grid-template-columns: 92px 1fr; }
  .atlas-overlay { display: none; }
}
@media (prefers-reduced-motion: reduce) { .atlas-root *, .atlas-root *::before, .atlas-root *::after { animation: none !important; transition: none !important; } }
