.universe-page{--bu-paper:#f4ecdc;--bu-muted:#c0b7a9;--bu-ink:#151917;--bu-line:#4a4e46;--bu-gold:#f2c978;background:var(--bu-ink);color:var(--bu-paper)}
.bu{width:min(100% - 2rem,1120px);margin:auto;padding-bottom:5rem;color:var(--bu-paper);font:1rem/1.6 system-ui,sans-serif}
.bu *{box-sizing:border-box}.bu a{color:var(--bu-gold);text-underline-offset:.22em}.bu h1,.bu h2,.bu h3{font-family:Georgia,'Times New Roman',serif;font-weight:400;line-height:.98;letter-spacing:-.04em;color:var(--bu-paper);overflow-wrap:anywhere}
.bu h1{font-size:clamp(4rem,11vw,9rem);margin:.12em 0 .2em}.bu h1 i{color:#e9c38b}.bu h2{font-size:clamp(2.1rem,6vw,4rem);margin:.2em 0}.bu h3{font-size:1.55rem;margin:.28em 0}.bu p{margin:.55em 0 1.25em}.bu .bu-label{font:600 .74rem/1.4 ui-monospace,monospace;text-transform:uppercase;letter-spacing:.18em;color:var(--bu-gold);margin:0}.bu-mast{padding:clamp(3rem,8vw,7rem) 0 2rem}.bu .bu-deck{font:clamp(1.15rem,2.7vw,1.6rem)/1.35 Georgia,serif;max-width:33ch}.bu .bu-jump a{display:inline-block;margin-right:1.25rem}.bu-stats{display:flex;gap:.85rem 2.2rem;flex-wrap:wrap;padding:1rem 0;border-block:1px solid var(--bu-line);color:var(--bu-muted)}.bu-stats strong{color:var(--bu-paper);font-size:1.25rem}.bu-section{padding:3.4rem 0;border-bottom:1px solid var(--bu-line);scroll-margin-top:5rem}.bu-section>p:not(.bu-label){max-width:70ch;color:var(--bu-muted)}
.bu button,.bu select,.bu input{font:inherit;color:inherit;border:1px solid var(--bu-line);border-radius:0;background:#1c211e;padding:.46rem .72rem}.bu button{cursor:pointer}.bu button:hover,.bu button[aria-pressed=true]{border-color:var(--bu-gold);color:var(--bu-gold)}.bu :focus-visible{outline:2px solid var(--bu-gold);outline-offset:3px}.bu-meta,.bu-source{color:var(--bu-muted);font-size:.87rem}
.bu-controls{display:flex;flex-wrap:wrap;gap:.7rem;margin:1.4rem 0}.bu-controls label{min-width:0;display:grid;flex:1 1 11rem;gap:.35rem;font-size:.9rem;color:var(--bu-muted)}.bu-controls :is(input,select){min-width:0;width:100%;color:var(--bu-paper);color-scheme:dark}.bu-books,.bu-picks,.bu-queue{list-style:none;padding:0;margin:0 0 1rem}.bu-books{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:var(--bu-line);border:1px solid var(--bu-line)}.bu-books li{background:#1a1f1b;min-width:0}.bu button.bu-book{border-color:transparent;text-align:left;display:grid;align-content:start;gap:.45rem;width:100%;height:100%;padding:1rem;background:transparent}.bu button.bu-book:hover{border-color:var(--bu-gold)}.bu-book b{font:1.2rem/1.18 Georgia,serif;overflow-wrap:anywhere}.bu-picks li,.bu-queue li{border-top:1px solid var(--bu-line);padding:.8rem 0}.bu-picks li{display:grid;grid-template-columns:3rem minmax(0,1fr);gap:1rem}.bu-picks li>span{font:1.1rem ui-monospace,monospace;color:var(--bu-gold);padding-top:.4rem}.bu-picks p{margin:.15rem 0 .3rem}.bu details{margin-top:1.5rem}.bu summary{cursor:pointer;color:var(--bu-gold)}.bu-dialog{max-width:min(calc(100vw - 2rem),38rem);max-height:85vh;background:#1b211c;color:var(--bu-paper);border:1px solid var(--bu-line);padding:1.4rem;overflow:auto}.bu-dialog::backdrop{background:#0c100edc}.bu-dialog form{text-align:right}.bu-dialog li{margin:.35rem 0}.bu-source{padding-top:1rem}.bu [hidden]{display:none!important}
@media(max-width:820px){.bu-books{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:420px){.bu{width:calc(100% - 1.4rem)}.bu h1{font-size:3.6rem}.bu-books{grid-template-columns:minmax(0,1fr)}.bu-picks li{grid-template-columns:1.7rem minmax(0,1fr);gap:.5rem}}
/* The reading archive remains in normal document flow below the galaxy. */
.bu-atlas { --glass:rgba(13,19,23,.93); --edge:#69706e; position:relative; isolation:isolate; box-sizing:border-box; width:100%; height:100vh; height:100dvh; overflow:hidden; background:#080b10; color:#faf4e9; font:14px/1.35 system-ui,sans-serif; }
.bu-atlas *, .bu-atlas *::before { box-sizing:border-box; }
.bu-atlas [hidden] { display:none!important; }
.bu-stage,.bu-surface,.bu-surface canvas,.bu-labels { position:absolute; inset:0; width:100%; height:100%; }
.bu-surface { touch-action:none; cursor:grab; }
.bu-atlas a { color:inherit; text-decoration:none; }
.bu-atlas :where(button,select,input,.bu-map-actions a) { font:inherit; color:inherit; border:1px solid var(--edge); border-radius:5px; background:var(--glass); padding:.5em .75em; min-height:40px; }
.bu-atlas button { cursor:pointer; }
.bu-atlas button:disabled { opacity:.45; }
.bu-atlas :focus-visible { outline:2px solid #f9d48e; outline-offset:2px; }
.bu-atlas canvas:focus-visible { outline-offset:-3px; }
.bu-atlas button[aria-pressed=true],.bu-atlas button[aria-expanded=true] { color:#191810; background:#ead1a0; border-color:#ead1a0; }
.bu-map-head,.bu-map-bottom { position:absolute; left:0; right:0; padding-inline:max(clamp(12px,3vw,48px),env(safe-area-inset-left)) max(clamp(12px,3vw,48px),env(safe-area-inset-right)); pointer-events:none; }
.bu-map-head { top:0; padding-top:max(18px,env(safe-area-inset-top)); padding-bottom:20px; display:grid; grid-template-columns:1fr auto; align-items:start; gap:12px; background:linear-gradient(#070b11d6,transparent); }
.bu-map-heading a { font:600 .69rem/1.1 ui-monospace,monospace; letter-spacing:.17em; text-transform:uppercase; color:#f1d59e; }
.bu-atlas .bu-map-heading h1 { font:400 clamp(2.3rem,4.8vw,4.9rem)/1 Georgia,serif; margin:.07em 0 0; letter-spacing:-.06em; color:#fff4e2; text-shadow:0 1px 8px #0b1116; }
.bu-map-heading i { color:#eaca97; }
.bu-map-actions,.bu-shelves,.bu-flight,.bu-camera { display:flex; align-items:center; flex-wrap:wrap; gap:5px; }
.bu-map-head :is(a,button),.bu-map-bottom :is(button,a) { pointer-events:auto; }
.bu-shelves { grid-column:1/-1; gap:2px; width:fit-content; background:var(--glass); padding:3px; border:1px solid #575f5d; border-radius:7px; }
.bu-shelves button { background:transparent; border:none; min-height:32px; padding:.4em .9em; }
.bu-labels { pointer-events:none; overflow:hidden; }
.bu-atlas .bu-world-label { position:absolute; top:0; left:0; padding:2px 4px; min-height:0; max-width:158px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; pointer-events:auto; background:#0a1015bd; color:#f9f1df; border:none; font:500 12px/1.35 system-ui,sans-serif; }
.bu-loading { position:absolute; top:53%; width:100%; text-align:center; pointer-events:none; }
.bu-map-bottom { bottom:0; padding-top:26px; padding-bottom:max(18px,env(safe-area-inset-bottom)); display:flex; align-items:end; justify-content:space-between; gap:12px; background:linear-gradient(transparent,#070b11e8); }
.bu-context { min-width:0; max-width:min(52ch,48%); text-shadow:0 1px 5px #030609,0 1px 2px black; }
.bu-context p { margin:2px 0; }
#bu-map-count,.bu-map-legend,#bu-close-meta { font-size:.8rem; color:#e5dcc9; }
.bu-map-legend::before { content:'✦ '; color:#ffd07a; }
.bu-context h2 { overflow-wrap:anywhere; font:400 clamp(1.25rem,2.5vw,2.25rem)/1.08 Georgia,serif; margin:.15em 0; color:#fff7e9; }
#bu-close-author { font-size:1rem; color:#fff5df; }
#bu-inspector { background:#0b1015e8; border-left:2px solid #d7ad69; padding:.45rem .8rem; margin:.25rem 0; }
#bu-open-book { margin-top:4px; min-height:32px; }
.bu-flight { justify-content:end; }
.bu-map-panel { position:absolute; bottom:max(74px,calc(env(safe-area-inset-bottom) + 58px)); right:max(12px,3vw,env(safe-area-inset-right)); width:min(320px,calc(100% - 24px)); background:#10171bf7; padding:14px; border:1px solid #737870; border-radius:6px; margin:0; max-height:65dvh; overflow:auto; }
.bu-map-panel>div { display:flex; align-items:center; justify-content:space-between; }
.bu-map-panel label { display:grid; gap:3px; margin-top:7px; color:#ded5c3; font-size:.85rem; }
.bu-map-panel :is(input,select) { min-width:0; width:100%; color:#fff; }
.bu-atlas.is-fallback { height:auto; min-height:13rem; }
.bu-atlas.is-fallback .bu-map-bottom { position:relative; display:block; padding-top:1rem; }
.bu-atlas.is-fallback .bu-map-head { position:relative; }
.bu-atlas.is-fallback .bu-context { max-width:none; }
.bu-atlas.is-immersive { position:fixed; inset:0; z-index:100; }
html:has(.bu-atlas.is-immersive) { overflow:hidden; }
body:has(.bu-atlas.is-immersive) > :is(.site-header,.site-explore-bar) { visibility:hidden; }
.bu-jump a { margin-right:1em; }
.bu-noscript { position:absolute; top:50%; width:100%; text-align:center; }
@media(max-width:680px) {
  .bu-map-head { padding-top:max(10px,env(safe-area-inset-top)); gap:7px; }
  .bu-map-actions { justify-content:end; gap:3px; }
  .bu-atlas .bu-map-heading h1 { font-size:clamp(1.7rem,7.4vw,2.4rem);white-space:nowrap; }
  .bu-map-head { grid-template-columns:auto minmax(0,1fr); }
  .bu-map-actions :is(a,button) { font-size:12px; padding:.45em .52em; min-height:34px; display:inline-flex; align-items:center; }
  .bu-shelves button { padding:.4em .55em; font-size:13px; }
  .bu-map-bottom { display:grid; gap:5px; padding-bottom:max(8px,env(safe-area-inset-bottom)); }
  .bu-context { max-width:100%; }
  .bu-flight { justify-content:start; gap:4px; }
  .bu-flight button { min-height:38px; min-width:33px; padding:.4em .45em; font-size:12px; }
  .bu-camera { gap:3px; }
  .bu-atlas .bu-world-label { max-width:112px; font-size:10px; }
  #bu-inspector { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:1px 8px; align-items:center; }
  #bu-inspector h2,#bu-inspector p { grid-column:1; overflow-wrap:anywhere; }
  #bu-open-book { grid-column:2; grid-row:1/4; }
  .bu-map-panel { bottom:max(53px,calc(env(safe-area-inset-bottom) + 48px)); }
}
@media(max-height:520px) {
  .bu-map-head { gap:5px; padding-top:max(5px,env(safe-area-inset-top)); }
  .bu-atlas .bu-map-heading h1 { font-size:1.7rem; }
  .bu-map-bottom { padding-bottom:max(5px,env(safe-area-inset-bottom)); }
}
/* The shared shell adds these controls after the footer on touch devices. */
.universe-page > .site-explore-bar {
  position:static;
  transform:none;
  width:fit-content;
  margin:0 auto max(1rem, env(safe-area-inset-bottom));
}
