:root {
  color-scheme: dark;
  --ink: #101628;
  --deep: #0c1020;
  --panel: #151e33;
  --paper: #f3e4c5;
  --muted: #c4bba9;
  --gold: #d7ad6c;
  --light-gold: #f4d29a;
  --line: #b99a6252;
  --serif: "Noto Serif SC", "Songti SC", "Noto Serif CJK SC", SimSun, Georgia, serif;
  --latin: "Cormorant Garamond", "Baskervville", Georgia, "Times New Roman", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --ease: cubic-bezier(.2,.75,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 300px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  line-height: 1.55;
}
body:has(dialog[open]) { overflow: hidden; }
::selection { color: var(--deep); background: var(--light-gold); }
a { color: inherit; text-decoration: none; }
button {
  color: inherit;
  font: inherit;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}
img { display: block; width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--light-gold); outline-offset: 5px; }
.wrap { width: min(1240px, calc(100% - 104px)); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  inset: 12px auto auto 12px;
  z-index: 4;
  background: var(--paper);
  color: var(--deep);
  padding: 10px 16px;
}

.top, .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.top { min-height: 76px; border-bottom: 1px solid var(--line); position: relative; z-index: 2; }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-height: 44px;
  color: var(--paper);
  font: 600 17px/1 var(--latin);
  letter-spacing: .12em;
  white-space: nowrap;
}
.seal, .small-seal { flex: 0 0 auto; position: relative; color: var(--gold); }
.seal { width: 25px; height: 25px; border: 1px solid var(--line); transform: rotate(45deg); }
.seal::before, .small-seal::before {
  content: "";
  position: absolute;
  inset: 18%;
  background: currentColor;
  clip-path: polygon(50% 0, 61% 36%, 100% 50%, 61% 64%, 50% 100%, 39% 64%, 0 50%, 39% 36%);
}
.seal::after { content: ""; position: absolute; inset: 3px; border: 1px solid var(--line); }
.top-nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 41px); color: var(--muted); }
.top-nav > * { display: grid; min-height: 44px; min-width: 44px; place-items: center; font-size: .88rem; }
.top-nav > *:hover, .footer a:hover { color: var(--light-gold); }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  align-items: center;
  min-height: 580px;
  padding-block: 30px 39px;
}
.hero-copy { position: relative; z-index: 1; padding-block: 18px 43px; }
.hero h1 {
  color: var(--paper);
  font: 700 clamp(3.65rem, 6.35vw, 6.1rem)/1.11 var(--serif);
  letter-spacing: .035em;
  white-space: nowrap;
}
.hero-english {
  margin-top: 16px;
  color: var(--gold);
  font: italic 500 clamp(1.45rem, 2.6vw, 2.35rem)/1.15 var(--latin);
  letter-spacing: .025em;
}
.hero-rule {
  display: block;
  width: 122px;
  height: 1px;
  margin-block: 28px 24px;
  background: linear-gradient(90deg, var(--gold), var(--line), transparent);
}
.hero-summary { color: var(--muted); font-size: clamp(.95rem, 1.5vw, 1.1rem); line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.action {
  flex: 0 0 auto;
  min-height: 49px;
  display: inline-flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  padding: 10px 19px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: .9rem;
  font-weight: 650;
  transition: color 180ms, background-color 180ms, border-color 180ms;
}
.primary { background: var(--gold); color: #211608; border-color: var(--gold); }
.primary:hover { background: var(--light-gold); }
.secondary { background: #131b2d; color: var(--paper); }
.secondary:hover { border-color: var(--gold); color: var(--light-gold); }
.chevron {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-right: 1.4px solid currentColor;
  border-top: 1.4px solid currentColor;
  transform: rotate(45deg);
}
.chevron.down { transform: rotate(135deg); margin-block-end: 3px; }
.chevron.up { transform: rotate(-45deg); margin-block-start: 5px; }
.chevron.left { transform: rotate(-135deg); }
.card-icon { position: relative; width: 11px; height: 15px; border: 1px solid currentColor; border-radius: 2px; }
.card-icon::after { content: ""; position: absolute; inset: 4px 2px; border: 1px solid currentColor; transform: rotate(45deg); }

.scene {
  position: relative;
  align-self: stretch;
  min-width: 0;
  min-height: 500px;
  display: grid;
  place-items: center;
  isolation: isolate;
  perspective: 950px;
  --px: 0;
  --py: 0;
}
.scene-sky {
  position: absolute;
  pointer-events: none;
  inset: -4% -5%;
  z-index: -1;
  background: radial-gradient(ellipse at 53% 54%, #42352469 0%, #1920365c 38%, #10162800 69%);
  transform: translate(calc(var(--px) * -8px), calc(var(--py) * -8px));
  transition: transform 380ms var(--ease);
}
.orbit {
  position: absolute;
  left: 50%;
  top: 51%;
  width: min(84%, 544px);
  aspect-ratio: 1;
  border: 1px solid #c3a6723d;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.orbit-middle { width: min(75%, 473px); border: 1px dashed #c3a67245; }
.orbit-inner { width: min(64%, 411px); border-color: #c3a6722e; }
.orbit-axis { width: min(90%, 590px); aspect-ratio: 1.9; transform: translate(-50%, -50%) rotate(-27deg); border-color: #c3a67242; }
.star {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  opacity: var(--o);
  border-radius: 50%;
  background: #ffe3ad;
}
.star-cross {
  border-radius: 0;
  rotate: 12deg;
  clip-path: polygon(50% 0, 60% 36%, 100% 50%, 60% 64%, 50% 100%, 40% 64%, 0 50%, 40% 36%);
}
.scene-cards {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(calc(var(--py) * -5deg)) rotateY(calc(var(--px) * 6deg));
  transition: transform 440ms var(--ease);
}
.hero-art {
  position: absolute;
  top: 51%;
  left: 50%;
  width: clamp(139px, 17.5vw, 255px);
  aspect-ratio: 2/3;
  border-radius: 7px;
  box-shadow: 0 15px 42px #05070da3, 0 0 0 1px #eed3a775;
  overflow: hidden;
  transform: translate(-50%, -50%) translateX(var(--offset)) translateY(var(--drop)) rotate(var(--rotate));
  transition: transform 460ms var(--ease), filter 350ms var(--ease);
}
.hero-art img { height: 100%; object-fit: contain; background: #c0a274; }
.art-left, .art-right { animation: spread 820ms var(--ease); }
@keyframes spread {
  from { transform: translate(-50%, -50%) translateX(calc(var(--offset) * .42)) translateY(var(--drop)) rotate(calc(var(--rotate) * .35)); }
  to { transform: translate(-50%, -50%) translateX(var(--offset)) translateY(var(--drop)) rotate(var(--rotate)); }
}
.art-left { --offset: -57%; --drop: 7%; --rotate: -15deg; filter: brightness(.76) saturate(.86); }
.art-right { --offset: 58%; --drop: 7%; --rotate: 15deg; filter: brightness(.79) saturate(.91); }
.art-main {
  --offset: 0px; --drop: 0px; --rotate: -3deg;
  z-index: 1;
  width: clamp(171px, 21vw, 303px);
  box-shadow: 0 23px 58px #040611c9, 0 0 0 1px #ffdb966e;
}
@media (hover: hover) {
  .art-left:hover, .art-left:focus-visible { --offset: -67%; --rotate: -18deg; filter: brightness(.97); }
  .art-right:hover, .art-right:focus-visible { --offset: 68%; --rotate: 18deg; filter: brightness(.97); }
  .art-main:hover, .art-main:focus-visible { --drop: -2.5%; --rotate: 0deg; }
}
.foil, .tile-foil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 25%, #ffe7a448 50%, transparent 70%);
  transform: translateX(-115%);
  mix-blend-mode: screen;
}
.hero-art:hover .foil, .tile:hover .tile-foil { transform: translateX(115%); transition: transform 680ms var(--ease); }

.gallery, .binding { border-top: 1px solid var(--line); scroll-margin-top: 20px; }
.gallery { padding-top: 29px; padding-bottom: 62px; }
.section-head { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 25px; }
.section-title { display: flex; gap: 12px; align-items: center; }
.section-title h2 { font: 700 clamp(1.45rem, 2.6vw, 2.08rem)/1.25 var(--serif); letter-spacing: .06em; }
.small-seal { width: 21px; height: 21px; border: 1px solid var(--line); border-radius: 50%; }
.filters { display: flex; gap: 4px; }
.filters button {
  min-height: 44px;
  padding: 6px 12px;
  color: var(--muted);
  font-size: .83rem;
  border-bottom: 1px solid transparent;
  transition: color 180ms, border-color 180ms;
}
.filters button[aria-pressed="true"] { border-color: var(--gold); color: var(--light-gold); }
.filters button:hover { color: var(--light-gold); }
.filters span { margin-inline-start: 4px; font-family: var(--latin); color: var(--gold); }
.cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 30px 21px; }
.tile {
  min-width: 0;
  display: flex;
  flex-direction: column;
  text-align: start;
}
.tile-art {
  width: 100%;
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 2/3;
  border-radius: 6px;
  background: #8b7553;
  box-shadow: 0 7px 16px #080c179c;
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease);
}
.tile-art img { width: 100%; height: 100%; object-fit: contain; }
.tile:hover .tile-art, .tile:focus-visible .tile-art {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px #070912b8, 0 0 0 1px var(--gold);
}
.tile-caption { display: grid; gap: 3px; padding: 10px 1px 0; }
.tile-caption strong { color: var(--paper); font-size: .93rem; font-weight: 600; }
.tile-caption > span { color: var(--muted); font-size: .76rem; }
.binding { padding-block: 35px 62px; }
.binding-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
.binding-item {
  display: grid;
  grid-template-columns: clamp(90px, 12vw, 150px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(14px, 3.4vw, 44px);
  padding: 18px;
  text-align: start;
  background: #151d30;
  border: 1px solid #b99a622f;
  transition: border-color 180ms var(--ease);
}
.binding-item:hover { border-color: var(--gold); }
.binding-item img { border-radius: 4px; }
.binding-copy { display: grid; gap: 9px; min-width: 0; }
.binding-kind { color: var(--gold); font-size: .79rem; }
.binding-copy strong { font: 700 clamp(1.12rem, 2vw, 1.6rem)/1.35 var(--serif); }
.binding-link { color: var(--muted); font-size: .82rem; display: inline-flex; align-items: center; gap: 9px; }
.footer { border-top: 1px solid var(--line); min-height: 88px; }
.footer a { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--muted); font-size: .84rem; }

.reader {
  width: min(920px, calc(100% - 46px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  padding: 0;
  color: var(--paper);
  background: var(--panel);
  border: 1px solid #d7ad6c78;
  box-shadow: 0 18px 90px #030610b9;
  border-radius: 10px;
  overflow: hidden;
  scrollbar-color: #7d6b50 var(--panel);
}
.reader[open] {
  display: flex;
  flex-direction: column;
  animation: reader-in 290ms var(--ease) both;
}
@keyframes reader-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.reader::backdrop { background: #040711dc; }
.reader-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 55px;
  padding: 0 14px 0 11px;
  border-bottom: 1px solid var(--line);
}
.reader-nav { display: flex; align-items: center; gap: 2px; }
#reader-position { min-width: 63px; text-align: center; color: var(--muted); font: 400 .95rem/1 var(--latin); font-variant-numeric: tabular-nums; }
.icon-button { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 4px; color: var(--paper); }
.icon-button:hover:not(:disabled) { color: var(--light-gold); background: #ffffff0d; }
.icon-button:disabled { opacity: .28; cursor: default; }
.close-button span { position: relative; display: block; width: 18px; height: 18px; }
.close-button span::before, .close-button span::after {
  position: absolute;
  content: "";
  left: 8px;
  top: 0;
  width: 1.5px;
  height: 18px;
  background: currentColor;
  rotate: 45deg;
}
.close-button span::after { rotate: -45deg; }
.reader-body {
  display: grid;
  grid-template-columns: minmax(220px, .84fr) minmax(0, 1.16fr);
  align-items: start;
  gap: clamp(25px, 4vw, 52px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 29px clamp(24px, 4vw, 42px) 34px;
  min-height: 0;
}
.reader-art { min-width: 0; text-align: center; }
.flip-card {
  width: 100%;
  aspect-ratio: 2/3;
  display: block;
  position: relative;
  perspective: 1000px;
  border-radius: 6px;
}
.flip-inner {
  display: block;
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 640ms cubic-bezier(.34,.08,.18,.99);
}
.flip-card[data-instant] .flip-inner { transition: none; }
.flip-card[data-back="true"] .flip-inner { transform: rotateY(180deg); }
.flip-front, .flip-back, .reader-binding-image {
  border-radius: 6px;
  box-shadow: 0 10px 29px #060915a1;
  aspect-ratio: 2/3;
  object-fit: contain;
}
.flip-front, .flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.flip-back { transform: rotateY(180deg); }
.flip-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding-inline: 10px;
  margin-top: 6px;
  color: var(--gold);
  font-size: .82rem;
}
.flip-label:hover { color: var(--light-gold); }
.reader-title-block { border-bottom: 1px solid var(--line); padding-bottom: 15px; margin-bottom: 15px; }
.reader-title-block h2 { color: var(--paper); font: 700 clamp(1.7rem, 3.2vw, 2.45rem)/1.25 var(--serif); }
#reader-english:not(:empty) { color: var(--gold); margin-top: 8px; font: 500 .92rem/1.45 var(--latin); letter-spacing: .05em; }
.reader-data { display: grid; gap: 7px; margin: 0 0 22px; }
.reader-data div { display: grid; gap: 11px; grid-template-columns: max-content 1fr; align-items: baseline; }
.reader-data dt { color: var(--gold); font-size: .82rem; }
.reader-data dd { margin: 0; color: var(--paper); font-size: .91rem; }
.reader-copy section + section { margin-top: 19px; }
.reader-copy h3 { color: var(--paper); font: 700 1.15rem/1.3 var(--serif); margin-bottom: 8px; }
.reader-copy section p, .reader-copy details p, .draw-reveal p { color: var(--muted); font-size: .91rem; line-height: 1.83; }
.reader-copy details { border-top: 1px solid var(--line); margin-top: 19px; padding-top: 4px; color: var(--gold); font-size: .83rem; }
.reader-copy summary { min-height: 44px; display: list-item; padding-block: 11px; cursor: pointer; }
.reader-copy details p { margin-bottom: 2px; }
.draw-reveal .action { margin-top: 20px; }

@media (max-width: 1050px) {
  .wrap { width: calc(100% - 68px); }
  .hero { min-height: 500px; }
  .scene { min-height: 430px; }
  .cards { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px 16px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 44px); }
  .top { min-height: 64px; }
  .hero { grid-template-columns: 1fr; padding-block: 32px 17px; text-align: center; }
  .hero-copy { padding: 2px 0 1px; }
  .hero h1 { font-size: clamp(3rem, 9.8vw, 4.8rem); }
  .hero-english { margin-top: 9px; }
  .hero-rule { margin: 17px auto 12px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
  .hero-actions { justify-content: center; margin-top: 18px; gap: 9px; }
  .scene { min-height: clamp(315px, 64vw, 455px); margin-top: 4px; }
  .scene-sky { inset: 0 -4%; }
  .orbit { width: min(86%, 410px); }
  .orbit-middle { width: min(76%, 366px); }
  .orbit-inner { width: min(65%, 320px); }
  .orbit-axis { width: min(90%, 450px); aspect-ratio: 1.9; }
  .hero-art { width: clamp(125px, 32vw, 193px); }
  .art-main { width: clamp(151px, 38vw, 240px); }
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 13px; }
  .gallery { padding-block: 23px 40px; }
  .binding { padding-block: 24px 40px; }
  .binding-list { gap: 10px; }
  .binding-item { grid-template-columns: 1fr; align-content: start; gap: 11px; padding: 11px; }
  .binding-item img { width: min(100%, 180px); }
  .binding-copy { gap: 5px; padding: 0 2px 4px; }
  .reader-body { grid-template-columns: minmax(150px, .78fr) minmax(0, 1.22fr); gap: 20px; padding: 22px; }
}
@media (max-width: 530px) {
  .wrap { width: calc(100% - 34px); }
  .wordmark { font-size: 14px; gap: 9px; letter-spacing: .07em; }
  .seal { width: 18px; height: 18px; }
  .top-nav { gap: 4px; }
  .top-nav > * { font-size: .83rem; }
  .hero { padding-top: 30px; }
  .section-head { flex-wrap: wrap; gap: 8px; margin-bottom: 15px; }
  .filters { margin-left: -8px; }
  .filters button { padding-inline: 8px; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 21px 10px; }
  .tile-caption { gap: 2px; padding-top: 7px; }
  .tile-caption strong { font-size: .85rem; }
  .tile-caption > span { font-size: .71rem; }
  .scene-sky { inset-inline: -3%; }
  .reader { width: calc(100% - 22px); max-height: calc(100dvh - 22px); }
  .reader-body { grid-template-columns: 1fr; padding: 18px; }
  .reader-art { width: min(100%, 246px, calc((100dvh - 165px) * .60)); margin-inline: auto; }
  .reader-title-block { padding-bottom: 12px; margin-bottom: 12px; }
  .reader-copy h2 { font-size: 1.64rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .scene-sky, .scene-cards { transform: none; }
}


/* The album mounts cover raster corners while keeping each printed image intact. */
.card-mount {
  --cut-x: 6.3%;
  --cut-y: 4.2%;
  --mount-w: 10.4%;
  --mount-h: 6.93%;
  --metal: #352719 0%, #745436 19%, #ad8657 34%, #94704a 45%,
           #d7b886 48%, #62452d 51.8%, #251a168c 53.4%, transparent 55%;
}
.card-mount img {
  clip-path: polygon(
    var(--cut-x) 0, calc(100% - var(--cut-x)) 0, 100% var(--cut-y),
    100% calc(100% - var(--cut-y)), calc(100% - var(--cut-x)) 100%, var(--cut-x) 100%,
    0 calc(100% - var(--cut-y)), 0 var(--cut-y)
  );
}
.card-mount::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(135deg, var(--metal)) left top / var(--mount-w) var(--mount-h) no-repeat,
    linear-gradient(225deg, var(--metal)) right top / var(--mount-w) var(--mount-h) no-repeat,
    linear-gradient(315deg, var(--metal)) right bottom / var(--mount-w) var(--mount-h) no-repeat,
    linear-gradient(45deg, var(--metal)) left bottom / var(--mount-w) var(--mount-h) no-repeat;
}
.tile-art.card-mount { background-color: #2b231d; }
.binding-mount, .reader-binding-image {
  display: block;
  position: relative;
  border-radius: 5px;
  background: #31261f;
}
.binding-item .binding-mount img { width: 100%; }
.flip-front.card-mount, .flip-back.card-mount {
  display: block;
  width: 100%;
  height: 100%;
  background: #31261f;
}
.flip-front img, .flip-back img { height: 100%; object-fit: contain; border-radius: inherit; }
@media (max-width: 760px) {
  .binding-mount { width: min(100%, 180px); }
}

/* The original gold lines and stars are the low-power fallback. */
#star-orrery {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
}
.scene-sky.webgl-ready #star-orrery { display: block; }
.scene-sky.webgl-ready .orbit, .scene-sky.webgl-ready .star { opacity: 0; }

.oracle-reading {
  position: relative;
  overflow: hidden;
  margin: 0 0 24px;
  padding: 15px 17px 16px;
  background: linear-gradient(125deg, #34291f, #222337 74%);
  border-block: 1px solid #c29d5e6e;
}
.oracle-reading h3 {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: .9rem;
  color: var(--light-gold);
}
.oracle-reading h3::before {
  content: "";
  width: 8px;
  height: 8px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}
.oracle-reading p { color: var(--paper); font: 500 1.05rem/1.72 var(--serif); }
.reader[data-oracle-drawn] .oracle-reading { animation: reveal-reading 520ms 130ms var(--ease) backwards; }
.reader[data-oracle-drawn] .oracle-reading::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(113deg, transparent 30%, #ffdb8d39 50%, transparent 72%);
  animation: gild-reading 800ms 140ms var(--ease) both;
}
@keyframes reveal-reading {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
@keyframes gild-reading {
  from { transform: translateX(-110%); }
  to { transform: translateX(110%); }
}
.source-note {
  padding-block: 12px;
  color: var(--muted);
  font-size: .73rem;
}
@media (max-width: 590px) {
  .footer { flex-wrap: wrap; gap: 0 17px; padding-block: 10px; }
  .source-note { order: 3; width: 100%; padding-top: 0; }
}


@media (prefers-reduced-motion: reduce) {
  .reader[data-oracle-drawn] .oracle-reading, .reader[data-oracle-drawn] .oracle-reading::after { animation: none; }
}

/* Pigments, paper and metal sampled from the deck's cover and reverse. */
:root {
  --ink: #111c26;
  --deep: #0d151d;
  --panel: #222a2c;
  --paper: #f5e4b9;
  --muted: #ceb99a;
  --gold: #d8b176;
  --light-gold: #ffde9e;
  --line: #c3935370;
  --wine: #592d2b;
  --folio: #e8d6ac;
  --folio-ink: #2e251b;
  --folio-secondary: #5d4931;
  --folio-rule: #9c744865;
}
body {
  background: linear-gradient(90deg, #101820, var(--ink) 40% 65%, #101820);
}
.top { border-bottom-color: #ce9c5570; }
.top::after {
  content: "";
  position: absolute;
  inset: auto 0 -5px;
  border-bottom: 1px solid #ce9c5533;
  pointer-events: none;
}
.wordmark { color: #efce95; }
.seal { color: #e2b577; border-color: #a6754988; }
.top-nav > * { color: #d8c4a0; }
.hero { padding-top: 36px; padding-bottom: 45px; }
.hero h1 { text-shadow: 0 2px 0 #0008, 0 10px 34px #0008; }
.hero-english { color: #e1af73; }
.hero-copy { padding-bottom: 27px; }
.frontispiece {
  width: min(160px, 46%);
  height: 12px;
  display: flex;
  gap: 9px;
  align-items: center;
  margin-block-end: 18px;
  color: #c99b59;
}
.frontispiece::before, .frontispiece::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
}
.frontispiece span { width: 8px; height: 8px; rotate: 45deg; border: 1px solid currentColor; }
.hero-rule { width: 116px; background: linear-gradient(90deg, #ae7b50, #ae7b5055, transparent); }
.hero .secondary { background: #14202c; border-color: #916a4990; }
.hero .primary, .ritual .primary, .reader .primary {
  background: linear-gradient(165deg, #edca89, #bd874c);
  color: #231910;
  border-color: #e1b075;
  box-shadow: inset 0 0 0 2px #61362533, 0 5px 18px #08060765;
}
.hero .primary:hover, .ritual .primary:hover, .reader .primary:hover {
  background: linear-gradient(165deg, #ffe0a3, #cd9b61);
}
.scene-sky {
  background: radial-gradient(ellipse at 53% 53%, #4d342648 0%, #1c2c3c6c 44%, #10182000 70%);
}
.sky-imprint {
  width: min(88%, 510px);
  aspect-ratio: 1;
  position: absolute;
  inset: 50% auto auto 50%;
  translate: -50% -50%;
  border-radius: 50%;
  opacity: .29;
  background: url("assets/19-small.webp") center 50% / 112% auto no-repeat;
  filter: sepia(.23) saturate(.74);
  mask-image: radial-gradient(circle, #000 0% 47%, #000a 61%, transparent 71%);
}
.scene-sky.webgl-ready .sky-imprint { opacity: .22; }
.hero-art { box-shadow: 0 17px 42px #050604bb, 0 0 0 1px #c69866a1; }
.art-main { box-shadow: 0 25px 65px #020710d6, 0 0 0 1px #d7ab76cc; }

.folio {
  color-scheme: light;
  color: var(--folio-ink);
  background:
    repeating-linear-gradient(2deg, #67361006 0 1px, transparent 1px 5px),
    radial-gradient(ellipse at 50% 20%, #f5e9cc, var(--folio) 58%, #d3bb8b);
  border-block: 4px double #876143;
  box-shadow: inset 0 11px 24px #51331b38, inset 0 -9px 20px #5d3e2236;
}
.folio .gallery { border-top: 0; padding-top: 42px; padding-bottom: 51px; }
.folio .binding { border-color: var(--folio-rule); }
.folio .section-title h2 { color: #38241b; }
.folio .small-seal { color: #6b392b; border-color: #925e41a3; }
.folio .filters button { color: var(--folio-secondary); }
.folio .filters button:hover { color: #58362b; }
.folio .filters button[aria-pressed="true"] { color: #542720; border-color: #8c4d33; }
.folio .filters span { color: #6a4232; }
.folio :focus-visible { outline-color: #8a482e; }
.folio .tile-art {
  outline: 1px solid #77512fb3;
  box-shadow: 0 6px 12px #61482d5d;
}
.folio .tile:hover .tile-art, .folio .tile:focus-visible .tile-art {
  box-shadow: 0 10px 18px #5338196b, 0 0 0 1px #885738;
}
.folio .tile-caption strong { color: #382519; }
.folio .tile-caption > span { color: var(--folio-secondary); }
.folio .binding-item {
  background: #f1e0bc65;
  border-color: #976e4b80;
  color: #362219;
}
.folio .binding-item:hover { border-color: #82523b; }
.folio .binding-kind, .folio .binding-link { color: #713f31; }
.reader {
  background: #ead8b2;
  color: #2f2319;
  border: 4px double #b07842;
}
.reader-bar {
  color-scheme: dark;
  background: #231d1a;
  border-bottom-color: #956a45;
}
.reader-copy { color-scheme: light; }
.reader-title-block { border-color: #ab825669; }
.reader-title-block h2, .reader-copy h3, .reader-data dd { color: #39241a; }
.reader-data dt, #reader-english:not(:empty), .reader-copy details, .flip-label { color: #752f25; }
.reader-copy section p, .reader-copy details p, .draw-reveal p { color: #493629; }
.reader-copy details { border-color: #98714961; }
.flip-label:hover { color: #381e17; }
.reader-body { background: linear-gradient(150deg, #f3e4c3, #dfc89d); }
.reader .oracle-reading {
  background: linear-gradient(125deg, #573027, #2b2621 75%);
  border-color: #bd8c56;
}
.reader .oracle-reading h3 { color: #ffdb9a; }
.reader .oracle-reading p { color: #f8e7c2; }
.reader :focus-visible { outline-color: #814a2e; }
.reader-bar :focus-visible { outline-color: var(--light-gold); }
.reader[data-ritual-card] .flip-inner {
  transition-timing-function: cubic-bezier(.32,.12,.1,.98);
  transition-duration: 820ms;
}

.ritual {
  width: min(910px, calc(100% - 28px));
  max-width: none;
  max-height: calc(100dvh - 28px);
  margin: auto;
  padding: 0;
  overflow: auto;
  color: var(--paper);
  background: #131a20;
  border: 1px solid #c08a54;
  box-shadow: 0 30px 100px #020407cf, 0 0 1px 4px #3d2a1b;
}
.ritual[open] { animation: reader-in 340ms var(--ease) both; }
.ritual::backdrop { background: #071019ed; }
.ritual-surface {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto minmax(204px, 1fr) auto;
  gap: 5px;
  min-height: min(575px,calc(100dvh - 40px));
  padding: 39px 21px 37px;
  overflow: hidden;
  text-align: center;
  background: radial-gradient(ellipse at 50% 55%, #423528, #1c2c3b 42%, #141a21 76%);
}
.ritual-surface::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: url("assets/19-small.webp") center center / min(100%, 570px) auto no-repeat;
  mask-image: radial-gradient(ellipse, #000 10%, #0006 50%, transparent 74%);
  opacity: .29;
}
.ritual-frame {
  position: absolute;
  inset: 11px;
  z-index: -1;
  border: 3px double #c3925485;
  pointer-events: none;
}
.ritual-frame::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid #aa764e47;
}
#ritual-sky {
  display: none;
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.ritual-surface.webgl-ready #ritual-sky { display: block; }
.ritual-close {
  position: absolute;
  inset: 18px 18px auto auto;
  z-index: 3;
  background: #201c1966;
}
.ritual-head { position: relative; padding-inline: 29px; }
.ritual-head h2 { font: 700 clamp(1.75rem, 4.1vw, 3.2rem)/1.19 var(--serif); text-shadow: 0 2px 15px #000b; letter-spacing: .09em; }
.ritual-head p { color: #edd0a6; font-size: .91rem; margin-top: 8px; min-height: 2.8em; text-shadow: 0 2px 10px #000b; }
.ritual-deck {
  --card-width: clamp(48px, 14.6vw, 121px);
  --step: calc(var(--card-width) * 1.16);
  position: relative;
  min-height: 217px;
  perspective: 800px;
}
.ritual-pick {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--card-width);
  aspect-ratio: 2/3;
  transform: translate(calc(-50% + var(--slot) * 8px),calc(-50% + var(--slot) * -3px)) rotate(calc(var(--slot) * 4deg)) scale(1.06);
  transition: transform 440ms var(--ease), opacity 260ms ease, box-shadow 220ms ease;
  transform-origin: 50% 80%;
  border-radius: 5px;
  background: #302216;
  box-shadow: 0 16px 28px #000c, 0 0 0 1px #d7ab7291;
}
.ritual-pick img { width: 100%; height: 100%; border-radius: inherit; }
.ritual-pick:disabled { cursor: default; }
.ritual[data-phase="choose"] .ritual-pick,
.ritual[data-phase="chosen"] .ritual-pick {
  transform: translate(calc(-50% + var(--slot) * var(--step)),calc(-50% + var(--slot) * var(--slot) * 3px)) rotate(calc(var(--slot) * 4deg));
}
.ritual[data-phase="choose"] .ritual-pick:is(:hover,:focus-visible) {
  transform: translate(calc(-50% + var(--slot) * var(--step)),calc(-63% + var(--slot) * var(--slot) * 2px)) rotate(calc(var(--slot) * 2deg));
  box-shadow: 0 18px 35px #000c, 0 0 0 1px #f3c681, 0 0 21px #d6a65a72;
}
.ritual[data-phase="chosen"] .ritual-pick:not([data-chosen]) {
  opacity: .1;
  transform: translate(calc(-50% + var(--slot) * var(--step)), -30%) scale(.91);
}
.ritual[data-phase="chosen"] .ritual-pick[data-chosen] {
  z-index: 2;
  transform: translate(-50%, -56%) scale(1.25);
  box-shadow: 0 19px 45px #000d, 0 0 0 1px #ffd396dc, 0 0 40px #e8ad5b99;
}
.ritual[data-phase="wash"] .ritual-pick { animation: wash-pass 1240ms var(--ease) both; }
.ritual[data-phase="wash"] .ritual-surface.has-shuffle-art .ritual-pick { opacity: 0; }
.ritual-foot { min-height: 49px; display: grid; justify-content: center; }
.ritual:not([data-phase="gather"]) .ritual-foot button { visibility: hidden; }
@keyframes wash-pass {
  0%, 100% { transform: translate(calc(-50% + var(--slot) * 8px),-50%) rotate(calc(var(--slot) * 4deg)); }
  30% { transform: translate(calc(-50% + var(--slot) * var(--step)),calc(-60% - var(--slot) * 4px)) rotate(calc(var(--slot) * 16deg)); }
  62% { transform: translate(calc(-50% - var(--slot) * var(--step) * .59),calc(-40% + var(--slot) * 7px)) rotateY(32deg) rotate(calc(var(--slot) * -12deg)); }
}
@media (max-width: 760px) {
  .frontispiece { margin-inline: auto; margin-block-end: 12px; }
  .hero { padding-block: 29px 24px; }
  .hero-rule { background: linear-gradient(90deg, transparent, #b67d50, transparent); }
  .folio .gallery { padding-top: 26px; padding-bottom: 39px; }
  .ritual-surface { padding: 35px 19px 26px; }
}
@media (max-width: 440px) {
  .ritual-surface { min-height: min(460px, calc(100dvh - 28px)); grid-template-rows: auto minmax(165px,1fr) auto; }
  .ritual-close { inset: 15px 14px auto auto; }
  .ritual-deck { --card-width: clamp(40px, 13.8vw, 60px); min-height: 172px; }
  .ritual-head { padding-inline: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .ritual[data-phase="wash"] .ritual-pick { animation: none; }
}


.footer-credits {
  display: grid;
  gap: 4px;
  padding-block: 11px;
  color: #d4be9b;
  text-align: center;
}
.footer-credits small { font-size: .74rem; }
@media (max-width: 590px) {
  .footer-credits { order: 3; width: 100%; text-align: start; padding-block: 0 7px; }
}

/* The night sky spans the viewport, including around the folio and footer. */
body {
  isolation: isolate;
  background: #080e18;
}
.page-night {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 71% 39%, #2636535e, transparent 59%),
    radial-gradient(ellipse at 74% 76%, #68483436, transparent 35%),
    radial-gradient(ellipse at 21% 16%, #2433495e, transparent 51%),
    #090f1a;
}
.page-night canvas, .star-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.page-night canvas { visibility: hidden; }
.page-night[data-rendered] canvas { visibility: visible; }
.page-night[data-rendered] .star-fallback { visibility: hidden; }
.star-fallback::before, .star-fallback::after {
  position: absolute;
  content: "";
  width: 1px;
  height: 1px;
  top: 0;
  left: 0;
  border-radius: 100%;
}
.star-fallback::after { width: 2px; height: 2px; }
.has-page-stars .scene-sky .star { visibility: hidden; }
.scene-sky { background: radial-gradient(ellipse at 52% 53%, #6c4e342d, #31415a19 44%, transparent 68%); }
.top { background: transparent; }
.folio {
  width: min(1328px, calc(100% - 64px));
  margin: 0 auto 29px;
  border: 4px double #876143;
  box-shadow: 0 15px 48px #01050ba0, inset 0 9px 27px #68492f37;
}
.folio > .wrap { width: min(1240px, calc(100% - 64px)); }
.footer { padding-bottom: 7px; }
@media (max-width: 760px) {
  .folio { width: calc(100% - 24px); margin-bottom: 19px; }
  .folio > .wrap { width: calc(100% - 32px); }
}


.star-fallback::before {
  box-shadow: 33.88vw 48.87dvh 0 #e2eafb61,
    17.69vw 38.99dvh 0 #f2c78d4d,
    8.03vw 91.24dvh 0 #f2c78d7a,
    24.81vw 10.61dvh 0 #e2eafb6f,
    15.50vw 87.39dvh 0 #9ebde644,
    77.09vw 82.56dvh 0 #e2eafb79,
    85.72vw 24.45dvh 0 #f2c78d7e,
    59.87vw 49.15dvh 0 #f2c78d45,
    66.45vw 9.36dvh 0 #f2c78d68,
    38.62vw 42.13dvh 0 #f2c78d7f,
    50.92vw 22.81dvh 0 #9ebde65b,
    73.59vw 27.39dvh 0 #e2eafb7b,
    50.04vw 22.78dvh 0 #9ebde64f,
    97.84vw 37.60dvh 0 #9ebde650,
    87.43vw 80.36dvh 0 #f2c78d5a,
    90.60vw 76.44dvh 0 #e2eafb7c,
    63.73vw 6.63dvh 0 #f2c78d51,
    80.90vw 22.91dvh 0 #e2eafb93,
    80.39vw 2.11dvh 0 #e2eafb86,
    94.30vw 49.43dvh 0 #e2eafb71,
    83.01vw 13.15dvh 0 #e2eafb51,
    14.78vw 61.40dvh 0 #e2eafb59,
    18.03vw 36.13dvh 0 #e2eafb6a,
    39.46vw 55.18dvh 0 #9ebde672,
    63.71vw 69.41dvh 0 #f2c78d4a,
    84.04vw 59.43dvh 0 #9ebde68f,
    87.51vw 53.71dvh 0 #e2eafb85,
    71.26vw 65.75dvh 0 #e2eafb7f,
    44.64vw 49.44dvh 0 #f2c78d96,
    18.34vw 53.13dvh 0 #9ebde648,
    46.94vw 67.07dvh 0 #9ebde694,
    47.71vw 42.75dvh 0 #e2eafb76,
    45.84vw 73.37dvh 0 #f2c78d84,
    71.46vw 19.84dvh 0 #e2eafb42,
    49.88vw 85.17dvh 0 #f2c78d63,
    84.58vw 24.53dvh 0 #9ebde66a,
    58.85vw 77.83dvh 0 #e2eafb99,
    33.01vw 60.41dvh 0 #f2c78d76,
    63.91vw 2.81dvh 0 #9ebde644,
    39.72vw 18.28dvh 0 #f2c78d99,
    27.28vw 41.49dvh 0 #e2eafb56,
    20.17vw 35.01dvh 0 #e2eafb4b,
    48.15vw 45.74dvh 0 #9ebde654,
    11.74vw 8.23dvh 0 #e2eafb46,
    92.39vw 93.98dvh 0 #9ebde652,
    28.59vw 39.11dvh 0 #e2eafb7a,
    96.40vw 78.78dvh 0 #e2eafb92,
    41.31vw 1.24dvh 0 #e2eafb6c,
    71.94vw 1.30dvh 0 #9ebde660,
    66.42vw 94.18dvh 0 #9ebde644,
    59.76vw 15.32dvh 0 #9ebde675,
    64.81vw 58.26dvh 0 #9ebde641,
    29.97vw 19.12dvh 0 #f2c78d57,
    16.62vw 93.63dvh 0 #f2c78d66,
    16.49vw 59.58dvh 0 #f2c78d47,
    90.04vw 31.61dvh 0 #f2c78d8e,
    26.91vw 28.60dvh 0 #f2c78d7c,
    79.76vw 20.04dvh 0 #9ebde69a,
    23.47vw 35.59dvh 0 #e2eafb92,
    24.09vw 69.85dvh 0 #9ebde689,
    24.29vw 69.86dvh 0 #9ebde686,
    -0.79vw 61.24dvh 0 #e2eafb69,
    55.12vw 21.61dvh 0 #9ebde664,
    9.84vw 48.99dvh 0 #9ebde659,
    97.23vw 93.06dvh 0 #e2eafb87,
    52.24vw 8.99dvh 0 #f2c78d64,
    94.72vw 65.06dvh 0 #9ebde678,
    57.46vw 61.03dvh 0 #f2c78d5f,
    88.93vw 97.91dvh 0 #e2eafb6a,
    32.51vw 68.27dvh 0 #e2eafb8d,
    63.68vw 90.69dvh 0 #f2c78d72,
    85.36vw 50.69dvh 0 #e2eafb79,
    88.27vw 19.60dvh 0 #e2eafb44,
    56.91vw 59.20dvh 0 #9ebde681,
    44.07vw 6.23dvh 0 #f2c78d65,
    89.58vw 81.15dvh 0 #f2c78d85,
    71.57vw 51.16dvh 0 #9ebde68d,
    15.04vw 23.90dvh 0 #f2c78d56,
    16.67vw 89.74dvh 0 #f2c78d62,
    0.44vw 13.58dvh 0 #f2c78d58,
    32.93vw 72.49dvh 0 #9ebde673,
    30.85vw 0.72dvh 0 #e2eafb92,
    63.54vw 47.28dvh 0 #9ebde667,
    46.36vw 13.27dvh 0 #e2eafb82,
    33.94vw 19.87dvh 0 #f2c78d95,
    66.96vw 84.57dvh 0 #f2c78d76,
    57.36vw 29.58dvh 0 #e2eafb4a,
    -0.17vw 87.41dvh 0 #e2eafb50,
    91.89vw 26.11dvh 0 #f2c78d6a,
    72.47vw 86.21dvh 0 #e2eafb91,
    76.92vw 18.08dvh 0 #9ebde674,
    12.90vw 96.91dvh 0 #e2eafb67,
    59.34vw 91.31dvh 0 #e2eafb5d,
    67.63vw 80.73dvh 0 #9ebde642,
    17.16vw 13.60dvh 0 #f2c78d66,
    92.87vw 63.41dvh 0 #f2c78d6d,
    35.33vw 93.33dvh 0 #e2eafb60,
    92.93vw 31.92dvh 0 #e2eafb74,
    62.43vw 2.39dvh 0 #9ebde666,
    89.09vw 54.23dvh 0 #e2eafb4f,
    38.15vw 18.29dvh 0 #9ebde689,
    69.25vw 0.75dvh 0 #f2c78d7f,
    41.30vw 53.47dvh 0 #f2c78d5c,
    95.42vw 37.37dvh 0 #e2eafb4d,
    31.31vw 97.55dvh 0 #f2c78d5a,
    75.58vw 48.21dvh 0 #f2c78d7a,
    86.71vw 21.16dvh 0 #9ebde654,
    41.52vw 57.29dvh 0 #f2c78d8f,
    33.80vw 97.88dvh 0 #9ebde691,
    43.24vw 23.25dvh 0 #9ebde651,
    55.34vw 78.33dvh 0 #e2eafb99,
    23.79vw 68.73dvh 0 #f2c78d72,
    29.21vw 80.60dvh 0 #9ebde66c,
    27.46vw 64.56dvh 0 #9ebde66d,
    41.59vw 93.76dvh 0 #e2eafb74,
    67.93vw 82.74dvh 0 #9ebde68a,
    89.22vw 47.37dvh 0 #f2c78d48,
    27.99vw 19.85dvh 0 #e2eafb43,
    80.66vw 90.38dvh 0 #e2eafb80,
    20.19vw 63.14dvh 0 #f2c78d5a,
    86.47vw 53.00dvh 0 #9ebde68a,
    77.13vw 51.60dvh 0 #f2c78d67,
    95.21vw 71.94dvh 0 #e2eafb8e,
    61.51vw 19.27dvh 0 #e2eafb76,
    1.17vw 62.86dvh 0 #9ebde671,
    22.41vw 45.57dvh 0 #e2eafb95,
    50.15vw 77.65dvh 0 #f2c78d93,
    84.58vw 57.71dvh 0 #f2c78d74,
    91.18vw 1.69dvh 0 #f2c78d82,
    45.22vw 35.85dvh 0 #f2c78d99,
    24.49vw 33.81dvh 0 #f2c78d70,
    1.43vw 66.05dvh 0 #f2c78d6e,
    46.26vw 51.40dvh 0 #f2c78d71,
    81.49vw 46.74dvh 0 #e2eafb86,
    47.01vw 11.08dvh 0 #f2c78d80,
    89.31vw 89.84dvh 0 #e2eafb4f,
    76.67vw 37.18dvh 0 #9ebde64e,
    23.15vw 1.48dvh 0 #f2c78d5f,
    81.13vw 4.48dvh 0 #e2eafb7a,
    34.86vw 57.34dvh 0 #e2eafb60,
    70.69vw 6.18dvh 0 #f2c78d52,
    6.31vw 49.91dvh 0 #e2eafb78,
    75.36vw 65.94dvh 0 #f2c78d8b,
    -0.54vw 71.48dvh 0 #9ebde649,
    87.07vw 17.17dvh 0 #e2eafb55,
    57.04vw 32.37dvh 0 #f2c78d4c,
    54.96vw 63.43dvh 0 #9ebde646,
    0.03vw 26.99dvh 0 #e2eafb5f,
    24.96vw 6.31dvh 0 #f2c78d72,
    91.63vw 85.80dvh 0 #e2eafb7f,
    66.57vw 61.97dvh 0 #f2c78d55,
    20.95vw 19.20dvh 0 #9ebde64d,
    36.96vw 36.38dvh 0 #9ebde683,
    65.66vw 15.00dvh 0 #e2eafb7b,
    64.74vw 45.26dvh 0 #9ebde671,
    15.98vw 39.94dvh 0 #9ebde665,
    42.13vw 95.95dvh 0 #e2eafb56,
    26.99vw 93.09dvh 0 #9ebde696,
    42.06vw 83.81dvh 0 #e2eafb90,
    3.17vw 31.62dvh 0 #e2eafb58,
    72.55vw 50.34dvh 0 #f2c78d87,
    25.33vw 3.66dvh 0 #e2eafb5b,
    43.39vw 52.64dvh 0 #e2eafb82,
    38.59vw 97.75dvh 0 #9ebde65d,
    41.34vw 59.54dvh 0 #f2c78d57,
    11.68vw 97.95dvh 0 #f2c78d80,
    9.65vw 76.21dvh 0 #f2c78d44,
    57.87vw 11.95dvh 0 #e2eafb7b,
    77.53vw 55.60dvh 0 #9ebde65e,
    87.90vw 31.71dvh 0 #e2eafb83,
    18.47vw 89.75dvh 0 #9ebde648,
    13.78vw 63.88dvh 0 #e2eafb89,
    61.27vw 67.28dvh 0 #9ebde652,
    37.61vw 84.71dvh 0 #9ebde670,
    56.02vw 46.90dvh 0 #9ebde653,
    75.20vw 61.76dvh 0 #e2eafb95,
    16.67vw 6.53dvh 0 #9ebde692,
    82.40vw 29.24dvh 0 #e2eafb68,
    3.63vw 22.17dvh 0 #e2eafb44,
    72.11vw 85.78dvh 0 #f2c78d58,
    7.19vw 41.93dvh 0 #e2eafb4c,
    72.16vw 36.95dvh 0 #f2c78d52,
    56.43vw 24.09dvh 0 #e2eafb4e,
    9.72vw 43.65dvh 0 #e2eafb42,
    57.96vw 16.14dvh 0 #9ebde64d,
    22.61vw 48.43dvh 0 #f2c78d7a,
    19.82vw 39.72dvh 0 #f2c78d55,
    85.91vw 20.07dvh 0 #9ebde65f,
    97.53vw 5.06dvh 0 #e2eafb42,
    19.93vw 38.36dvh 0 #e2eafb82,
    28.71vw 31.49dvh 0 #e2eafb7a,
    74.16vw 19.77dvh 0 #e2eafb88,
    43.98vw 33.08dvh 0 #e2eafb92,
    96.05vw 34.39dvh 0 #f2c78d5f,
    26.12vw 37.30dvh 0 #f2c78d95,
    39.36vw 15.32dvh 0 #e2eafb93,
    13.63vw 72.28dvh 0 #e2eafb9a,
    45.16vw 65.08dvh 0 #f2c78d82,
    27.08vw 55.55dvh 0 #9ebde68a,
    10.02vw 92.68dvh 0 #f2c78d4e;
}

.star-fallback::after {
  box-shadow: 98.21vw 70.32dvh 0 #e2eafba1,
    12.91vw 37.00dvh 0 #e2eafbaf,
    24.67vw 82.19dvh 0 #9ebde69a,
    81.67vw 79.84dvh 0 #f2c78dbd,
    35.51vw 88.08dvh 0 #f2c78dd0,
    52.27vw 46.90dvh 0 #e2eafbdf,
    28.33vw 25.19dvh 0 #f2c78de6,
    86.88vw 93.33dvh 0 #f2c78dc2,
    22.31vw 34.02dvh 0 #9ebde6b2,
    31.04vw 57.78dvh 0 #9ebde6c9,
    4.87vw 28.15dvh 0 #9ebde6b6,
    4.70vw 8.69dvh 0 #f2c78d9c,
    60.52vw 84.99dvh 0 #f2c78d92,
    46.58vw 3.23dvh 0 #e2eafba4,
    94.61vw 28.31dvh 0 #f2c78da9,
    87.35vw 62.41dvh 0 #9ebde6df,
    36.93vw 54.30dvh 0 #9ebde6be,
    26.88vw 69.40dvh 0 #9ebde6a0,
    19.77vw 12.31dvh 0 #9ebde6c7,
    85.98vw 4.86dvh 0 #f2c78d99,
    64.69vw 83.59dvh 0 #9ebde6c5,
    51.00vw 87.45dvh 0 #f2c78d91,
    85.26vw 37.90dvh 0 #f2c78d8c,
    94.44vw 40.37dvh 0 #f2c78de0,
    72.01vw 41.04dvh 0 #9ebde694,
    8.14vw 11.63dvh 0 #f2c78ddd;
}

/* The reader pairs an illustrated observation stage with a paper reading panel. */
.reader {
  width: min(1104px, calc(100% - 44px));
  max-height: calc(100dvh - 42px);
  border: 1px solid #b9925d;
  border-radius: 6px;
  background: #0e1727;
  box-shadow: 0 30px 110px #03050be6, 0 0 0 4px #b5814734;
}
.reader::backdrop {
  background: #030611d4;
  backdrop-filter: blur(6px);
}
.reader-bar {
  position: relative;
  min-height: 54px;
  background: #111a28;
  border-color: #b8945b64;
}
.reader-nav { gap: 3px; }
#reader-position { color: #e3c48f; letter-spacing: .08em; }
.reader-bar .close-button { margin-left: auto; }
.reader-art-title {
  display: none;
  width: 100%;
  margin: 0;
  color: #f4daa9;
  text-align: center;
  overflow-wrap: anywhere;
  font: 700 clamp(1.12rem, 2.3vw, 1.75rem)/1.3 var(--serif);
  text-shadow: 0 2px 15px #060911;
}
.reader-body {
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  align-items: stretch;
  padding: 0;
  gap: 0;
  background: #0c1425;
}
.reader-art {
  position: sticky;
  isolation: isolate;
  top: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  width: 100%;
  min-height: min(622px, calc(100dvh - 105px));
  margin: 0;
  padding: 29px 20px 24px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 46%, #50402c75, #25375555 43%, transparent 68%),
    linear-gradient(160deg, #111e31, #0a1120 72%);
  box-shadow: inset -1px 0 #bd95597c;
}
.reader-constellation {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  container-type: size;
}

.reader-orrery {
  position: absolute;
  top: 48%;
  left: 50%;
  width: min(92cqw, 86cqh, 650px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  isolation: isolate;
}
.reader-wheel, .reader-orbit, .reader-wheel-flare {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}
.reader-wheel--rim {
  border: 1px solid #e9b96b7a;
  box-shadow: 0 0 35px #d0a56727, inset 0 0 24px #889bd61c;
}
.reader-wheel--rim::before, .reader-wheel--inner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-conic-gradient(from -.33deg, #fbd798a1 0deg .7deg, transparent .7deg 5deg);
  mask-image: radial-gradient(circle closest-side, transparent 0 92%, #000 92.5% 99%, transparent 100%);
  animation: wheel-turn 96s linear infinite;
}
.reader-wheel--rim::after {
  content: "";
  position: absolute;
  inset: 6%;
  border: 1px dotted #d6b8839c;
  border-radius: inherit;
}
.reader-wheel--inner {
  inset: 13%;
  border: 1px solid #a9c6f67a;
  box-shadow: inset 0 0 0 10px #acc0ec11, 0 0 30px #5e8cd536;
}
.reader-wheel--inner::before {
  inset: 5%;
  background: repeating-conic-gradient(from 0deg, #c4d8ff94 0deg 1deg, transparent 1deg 18deg);
  mask-image: radial-gradient(circle closest-side, transparent 0 84%, #000 84.5% 94%, transparent 95%);
  animation: wheel-turn 64s linear infinite reverse;
}
.reader-orbit {
  inset: -5%;
  transform: rotate(-27deg) scaleY(.48);
  border: 1px solid #e7ba717a;
}
.reader-orbit--blue {
  inset: 1%;
  transform: rotate(34deg) scaleY(.59);
  border-color: #94baf28a;
}
.reader-orbit i {
  position: absolute;
  inset: 0;
  animation: wheel-turn 27s linear infinite;
}
.reader-orbit--blue i { animation: wheel-turn 40s -9s linear infinite reverse; }
.reader-orbit i::before {
  content: "";
  position: absolute;
  top: -4px;
  left: calc(50% - 4px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff1c5;
  box-shadow: 0 0 9px 3px #ffca76d9, 0 0 24px 7px #c99c5a80;
}
.reader-orbit--blue i::before {
  background: #e4efff;
  box-shadow: 0 0 9px 3px #93beffd9, 0 0 21px 7px #6d9ad876;
}
.reader-wheel-flare {
  opacity: 0;
  border: 1px solid #ffe1a9;
  box-shadow: 0 0 34px #e2b6719c, inset 0 0 23px #f5cb8f37;
}
.reader[open] .reader-wheel-flare { animation: wheel-light-up 1100ms var(--ease); }
.reader[data-oracle-drawn] .reader-wheel-flare { animation: wheel-reveal 1100ms var(--ease); }
.reader-constellation > span { animation: reader-stars-breathe 9s ease-in-out infinite alternate; }
@keyframes wheel-turn { to { rotate: 360deg; } }
@keyframes wheel-light-up {
  0% { opacity: 0; scale: .74; }
  35% { opacity: .68; }
  100% { opacity: 0; scale: 1.09; }
}
@keyframes wheel-reveal {
  0% { opacity: .25; scale: .65; }
  35% { opacity: .9; }
  100% { opacity: 0; scale: 1.16; }
}
@keyframes reader-stars-breathe { from { opacity: .54; } to { opacity: .96; } }
.meteor-trail {
  position: fixed;
  inset: 0;
  z-index: 100;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
dialog .meteor-trail { position: absolute; }

@media (prefers-reduced-motion: reduce) {
  .reader-constellation :is(.reader-orbit i, .reader-wheel-flare),
  .reader-constellation > span,
  .reader-wheel--rim::before, .reader-wheel--inner::before { animation: none !important; }
}

.reader-constellation > span::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 1.5px;
  height: 1.5px;
  border-radius: 50%;
}
.reader-card-space {
  width: min(75%, 298px, max(100px, calc((100dvh - 216px) * .62)));
  aspect-ratio: 2/3;
  perspective: 870px;
  isolation: isolate;
  position: relative;
}
.reader-card-space::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 11px;
  box-shadow: 0 22px 53px #01040dcc, 0 0 35px #cb98645c;
}
.reader-card-shell {
  position: relative;
  height: 100%;
  transform: rotateX(0deg) rotateY(0deg);
  transition: transform 420ms var(--ease);
}
.reader-card-space[data-tilt] .reader-card-shell {
  transform: rotateX(var(--art-pitch, 0deg)) rotateY(var(--art-yaw, 0deg));
  transition-duration: 150ms;
}
.reader-card-shell .flip-card:focus-visible, .reader-art-actions button:focus-visible {
  outline-color: #ffd695;
  outline-offset: 4px;
}
.reader-card-shell .flip-front, .reader-card-shell .flip-back,
.reader-card-shell .reader-binding-image {
  box-shadow: 0 0 0 1px #d4a868a8, 0 10px 27px #020611bd;
}
.reader-foil {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  mix-blend-mode: screen;
  background: linear-gradient(114deg, transparent 35%, #e4c78d22 44%, #ffe2a58c 49%, #96c9ff28 56%, transparent 68%);
  opacity: 0;
  background-size: 195% 100%;
  background-position: 20% 50%;
  transition: opacity 260ms var(--ease), background-position 400ms var(--ease);
  clip-path: inset(0 round 6px);
}
.reader-card-space[data-tilt] .reader-foil {
  opacity: .7;
  background-position: calc(50% - var(--art-light, 0%)) 50%;
}
.reader-art-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  z-index: 2;
}
.reader-art-actions .flip-label {
  margin: 0;
  padding-inline: 12px;
  min-height: 42px;
  border: 1px solid #ba936051;
  border-radius: 3px;
  background: #0c1526ba;
  color: #ebcc98;
}
.reader-art-actions .flip-label:hover, .reader-art-actions .flip-label[aria-pressed="true"] {
  color: #ffe2ad;
  background: #4a3827;
  border-color: #c3995e9d;
}
.inspect-icon {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 1px solid currentColor;
  clip-path: polygon(0 0, 40% 0, 40% 20%, 60% 20%, 60% 0, 100% 0, 100% 40%, 80% 40%, 80% 60%, 100% 60%, 100% 100%, 60% 100%, 60% 80%, 40% 80%, 40% 100%, 0 100%, 0 60%, 20% 60%, 20% 40%, 0 40%);
}
.reader-copy {
  min-width: 0;
  padding: clamp(24px, 3.8vw, 46px);
  border-left: 1px solid #b9946199;
  background:
    repeating-linear-gradient(1deg, #77401a06 0 1px, transparent 1px 5px),
    radial-gradient(ellipse at 23% 9%, #faedcf, #ead9b4 63%, #dfc79b);
}
.reader-title-block {
  position: relative;
  margin-bottom: 24px;
  padding-bottom: 19px;
}
.reader-title-block::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  bottom: -4px;
  left: 2px;
  background: #a16c3d;
  transform: rotate(45deg);
}
.reader-title-block h2 { font-size: clamp(1.9rem, 3.7vw, 2.9rem); }
#reader-english:not(:empty) { line-height: 1.55; }
.reader-copy .reader-data {
  gap: 0;
  border-block: 1px solid #8a5b3457;
  margin-bottom: 24px;
}
.reader-copy .reader-data div {
  gap: 12px;
  grid-template-columns: minmax(74px, .31fr) minmax(0, 1fr);
  padding-block: 8px;
}
.reader-copy .reader-data div + div { border-top: 1px solid #9f704028; }
.reader-copy .reader-data dd { overflow-wrap: anywhere; }
.reader-copy section + section { margin-top: 22px; }
.reader[data-art-focus] .reader-body { grid-template-columns: minmax(0, 1fr); }
.reader[data-art-focus] .reader-art-title { display: block; }
.reader[data-art-focus] .reader-copy {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  padding: 0;
}
.reader[data-art-focus] .reader-copy :is(#reader-text, #draw-reveal) { display: none; }
.reader[data-art-focus] .reader-art { min-height: min(746px, calc(100dvh - 100px)); gap: clamp(13px, 2vh, 20px); }
.reader[data-art-focus] .reader-card-space { width: min(82%, 420px, max(120px, calc((100dvh - 212px) * .633))); }

@media (max-width: 680px) {
  .reader { width: calc(100% - 16px); max-height: calc(100dvh - 16px); }
  .reader-body {
    /* Keep the artwork and the text in normal flow inside the scroll area. */
    display: block;
    flex: 1 1 auto;
    overflow-anchor: none;
  }
  .reader-art {
    position: relative;
    min-height: 0;
    padding: 26px 14px 17px;
    gap: 17px;
  }
  .reader-card-space {
    flex: none;
    width: min(61%, 246px, max(110px, calc((100dvh - 169px) * .57)));
  }
  .reader-copy { padding: 25px 22px 29px; border-left: 0; border-top: 1px solid #b99461; }
  .reader-title-block { margin-bottom: 17px; padding-bottom: 14px; }
  .reader-title-block h2 { font-size: clamp(1.8rem, 7vw, 2.35rem); }
  .reader-art-title { font-size: clamp(1.1rem, 4.5vw, 1.4rem); }
}
@media (prefers-reduced-motion: reduce) {
  .reader-card-space[data-tilt] .reader-card-shell { transform: none; }
}


.reader-constellation > span::before {
  box-shadow:
      77.1cqw 1.3cqh 0 #c1ab82aa,
      9.3cqw 70.8cqh 0 #bdcde86f,
      52.7cqw 39.5cqh 0 #c1ab828a,
      76.8cqw 48.3cqh 0 #e7d3aba3,
      41.4cqw 83.3cqh 0 #8eb4da7d,
      93.9cqw 65.3cqh 0 #8eb4dab3,
      12.4cqw 36.8cqh 0 #bdcde857,
      57.8cqw 95.1cqh 0 #e7d3ab76,
      55.3cqw 66.5cqh 0 #e7d3ab47,
      89.4cqw 92.4cqh 0 #8eb4da9f,
      67.1cqw 66.2cqh 0 #c1ab8275,
      42.0cqw 69.0cqh 0 #e7d3ab6f,
      12.8cqw 35.0cqh 0 #8eb4daa0,
      92.7cqw 56.0cqh 0 #c1ab82b0,
      93.3cqw 45.3cqh 0 #bdcde8b3,
      41.7cqw 1.1cqh 0 #8eb4da95,
      83.3cqw 83.0cqh 0 #c1ab8260,
      37.0cqw 44.2cqh 0 #e7d3ab51,
      59.2cqw 28.3cqh 0 #bdcde859,
      1.2cqw 36.7cqh 0 #bdcde8b8,
      1.6cqw 31.4cqh 0 #bdcde8b5,
      42.5cqw 71.6cqh 0 #c1ab82a6,
      36.6cqw 9.2cqh 0 #bdcde862,
      20.8cqw 49.3cqh 0 #e7d3abb9,
      25.2cqw 64.8cqh 0 #8eb4daae,
      44.2cqw 79.9cqh 0 #bdcde8b5,
      86.7cqw 72.5cqh 0 #e7d3ab54,
      24.8cqw 62.2cqh 0 #c1ab8275,
      78.7cqw 42.1cqh 0 #e7d3ab77,
      26.7cqw 43.5cqh 0 #bdcde866,
      26.2cqw 83.6cqh 0 #8eb4dab7,
      72.2cqw 2.4cqh 0 #bdcde84d,
      5.7cqw 47.6cqh 0 #e7d3ab7a,
      57.9cqw 55.6cqh 0 #bdcde887,
      8.6cqw 79.8cqh 0 #bdcde884,
      32.4cqw 90.8cqh 0 #8eb4da9f,
      26.6cqw 85.0cqh 0 #8eb4daa6,
      58.2cqw 18.3cqh 0 #c1ab8295,
      74.0cqw 11.0cqh 0 #e7d3ab6c,
      58.1cqw 76.8cqh 0 #e7d3abbe,
      43.4cqw 37.9cqh 0 #8eb4da71,
      40.8cqw 3.6cqh 0 #bdcde892,
      17.5cqw 1.6cqh 0 #8eb4da99,
      10.9cqw 49.5cqh 0 #8eb4da84,
      7.4cqw 80.2cqh 0 #c1ab82b3,
      13.1cqw 9.9cqh 0 #e7d3ab7e,
      51.2cqw 91.2cqh 0 #8eb4da4c,
      48.1cqw 65.1cqh 0 #bdcde8b7,
      88.7cqw 28.2cqh 0 #e7d3ab5a,
      41.4cqw 89.8cqh 0 #e7d3ab56,
      33.8cqw 95.9cqh 0 #e7d3ab93,
      44.6cqw 9.8cqh 0 #bdcde8a4,
      16.6cqw 23.4cqh 0 #e7d3ab71,
      17.0cqw 31.6cqh 0 #c1ab828c,
      82.6cqw 87.2cqh 0 #c1ab8262,
      5.0cqw 19.1cqh 0 #c1ab8282,
      78.5cqw 70.1cqh 0 #bdcde87e,
      7.6cqw 81.1cqh 0 #c1ab824d,
      73.5cqw 38.0cqh 0 #c1ab824b,
      43.4cqw 29.5cqh 0 #e7d3abbb,
      57.5cqw 81.3cqh 0 #8eb4da71,
      1.1cqw 8.2cqh 0 #e7d3ab9b;
}
