:root {
  color-scheme: dark;
  --night-ink: #0b0a14;
  --night-panel: #121025;
  --night-raised: #191631;
  --night-soft: #211d3c;
  --moon-white: #f5f5f7;
  --mist-grey: #9a97ae;
  --spell-green: #19b269;
  --spell-green-deep: #0d7f49;
  --sun-gold: #fdd835;
  --flare-coral: #ff5b5b;
  --line-glow: rgba(245, 245, 247, 0.12);
  --violet-haze: rgba(111, 83, 213, 0.2);
  --page-width: 72rem;
  --display-face: "Cinzel", Georgia, serif;
  --body-face: "Manrope", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--night-ink);
}

body {
  margin: 0;
  min-width: 20rem;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(89, 60, 174, 0.22), transparent 25rem),
    radial-gradient(circle at 92% 42%, rgba(25, 178, 105, 0.1), transparent 28rem),
    var(--night-ink);
  color: var(--moon-white);
  font-family: var(--body-face);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(253, 216, 53, 0.22) 0 0.05rem, transparent 0.08rem),
    radial-gradient(circle at 80% 18%, rgba(245, 245, 247, 0.18) 0 0.04rem, transparent 0.08rem);
  background-size: 7rem 7rem, 9rem 9rem;
  content: "";
  opacity: 0.28;
  pointer-events: none;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
ul,
dl,
blockquote {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--moon-white);
  font-family: var(--display-face);
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  margin-bottom: 1.2rem;
  font-size: clamp(2.25rem, 11vw, 5rem);
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 7vw, 3.2rem);
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.15rem;
}

p:last-child,
ul:last-child,
dl:last-child {
  margin-bottom: 0;
}

.spellrail {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 0.0625rem solid var(--line-glow);
  background: rgba(11, 10, 20, 0.9);
  backdrop-filter: blur(1rem);
}

.spellrail__orbit,
.nightweave,
.afterglow__orbit {
  width: min(100% - 2rem, var(--page-width));
  margin-inline: auto;
}

.spellrail__orbit {
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.sigil-lockup {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.65rem;
  color: var(--moon-white);
  text-decoration: none;
}

.sigil-frame {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 0.0625rem solid rgba(253, 216, 53, 0.4);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(253, 216, 53, 0.24), rgba(25, 178, 105, 0.14));
  color: transparent;
  font-size: 0;
  box-shadow: 0 0 1.5rem rgba(253, 216, 53, 0.12);
}

.sigil-frame::before {
  color: var(--sun-gold);
  content: "✦";
  font-size: 1rem;
}

.sigil-name {
  overflow: hidden;
  font-family: var(--display-face);
  font-size: clamp(0.85rem, 3vw, 1.05rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-actions,
.gateway-pair,
.mobile-dock {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.moonkey {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 0.0625rem solid transparent;
  border-radius: 999px;
  padding: 0.68rem 1rem;
  color: var(--night-ink);
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.moonkey:hover {
  transform: translateY(-0.1rem);
}

.moonkey:focus-visible,
.sigil-lockup:focus-visible,
.answer-fold summary:focus-visible,
.scroll-rune:focus-visible {
  outline: 0.1875rem solid var(--sun-gold);
  outline-offset: 0.1875rem;
}

.moonkey--green {
  background: var(--spell-green);
  box-shadow: 0 0.55rem 1.4rem rgba(25, 178, 105, 0.2);
}

.moonkey--green:hover {
  background: #21c879;
}

.moonkey--gold {
  background: var(--sun-gold);
}

.moonkey--ghost {
  border-color: rgba(245, 245, 247, 0.24);
  background: rgba(245, 245, 247, 0.04);
  color: var(--moon-white);
}

.moonkey--wide {
  min-width: 8rem;
}

.nightweave {
  padding-block: 1.25rem 4rem;
}

.oracle-threshold {
  position: relative;
  display: grid;
  min-height: 40rem;
  align-items: end;
  overflow: hidden;
  border: 0.0625rem solid rgba(253, 216, 53, 0.15);
  border-radius: 1.5rem;
  background: linear-gradient(155deg, rgba(18, 16, 37, 0.95), rgba(33, 29, 60, 0.85));
  box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.32);
}

.oracle-threshold::after {
  position: absolute;
  inset: auto -8rem -10rem auto;
  width: 22rem;
  height: 22rem;
  border: 0.0625rem solid rgba(253, 216, 53, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 5rem rgba(253, 216, 53, 0.08);
  content: "";
}

.astral-copy {
  position: relative;
  z-index: 2;
  padding: clamp(1.5rem, 6vw, 4.5rem);
}

.spell-kicker {
  margin-bottom: 0.7rem;
  color: var(--sun-gold);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.astral-lead {
  max-width: 43rem;
  margin-bottom: 1.5rem;
  color: #d7d5e1;
  font-size: clamp(1rem, 4vw, 1.2rem);
}

.fact-flares {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.rune-pill {
  border: 0.0625rem solid rgba(245, 245, 247, 0.13);
  border-radius: 999px;
  padding: 0.42rem 0.7rem;
  background: rgba(11, 10, 20, 0.45);
  color: #dedce8;
  font-size: 0.78rem;
  font-weight: 700;
}

.gateway-pair {
  flex-wrap: wrap;
}

.age-sigil {
  margin: 1rem 0 0;
  color: var(--mist-grey);
  font-size: 0.78rem;
}

.age-sigil strong {
  margin-right: 0.35rem;
  color: var(--moon-white);
}

.moon-canvas {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(11, 10, 20, 0.1), rgba(11, 10, 20, 0.96)),
    radial-gradient(circle at 70% 25%, rgba(253, 216, 53, 0.2), transparent 30%),
    linear-gradient(135deg, #211d3c, #0b0a14 70%);
}

.moon-canvas__disc {
  position: absolute;
  top: 4rem;
  right: 8%;
  width: clamp(9rem, 36vw, 20rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff7c2, var(--sun-gold) 40%, #8e5e08 72%);
  box-shadow: 0 0 5rem rgba(253, 216, 53, 0.25);
  opacity: 0.8;
}

.image-note {
  position: relative;
  z-index: 1;
  border: 0.0625rem dashed rgba(245, 245, 247, 0.28);
  border-radius: 0.75rem;
  padding: 0.55rem 0.75rem;
  background: rgba(11, 10, 20, 0.65);
  color: var(--mist-grey);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lore-bay,
.velvet-table,
.coin-orbit,
.warded-panel,
.closing-spell {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.25rem;
  border: 0.0625rem solid var(--line-glow);
  border-radius: 1.25rem;
  padding: clamp(1.4rem, 5vw, 3.5rem);
  background: rgba(18, 16, 37, 0.78);
}

.lore-bay__prose,
.velvet-table__body,
.coin-orbit__heading,
.warded-panel__copy {
  color: #cbc9d6;
}

.twin-omens,
.pathway-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.omen-card,
.pathway-card {
  position: relative;
  overflow: hidden;
  border: 0.0625rem solid var(--line-glow);
  border-radius: 1.25rem;
  padding: clamp(1.4rem, 5vw, 2.5rem);
  background: var(--night-panel);
}

.omen-card--bright {
  border-color: rgba(25, 178, 105, 0.3);
  background: linear-gradient(145deg, rgba(25, 178, 105, 0.12), var(--night-panel) 55%);
}



.charm-list,
.pathway-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.charm-list li {
  position: relative;
  padding-left: 1.7rem;
  color: #d8d6e2;
}

.charm-list li::before {
  position: absolute;
  left: 0;
  color: var(--spell-green);
  content: "✦";
}



.grimoire-panel,
.constellation-panel,
.comet-gallery,
.question-archive {
  margin-top: 1.25rem;
  border: 0.0625rem solid var(--line-glow);
  border-radius: 1.25rem;
  padding: clamp(1.4rem, 5vw, 3.5rem);
  background: var(--night-panel);
}

.grimoire-panel {
  background:
    radial-gradient(circle at 90% 10%, rgba(253, 216, 53, 0.12), transparent 18rem),
    var(--night-panel);
}

.grimoire-panel__intro {
  max-width: 46rem;
}

.offer-emblem {
  margin-block: 1.4rem;
  border-left: 0.25rem solid var(--sun-gold);
  border-radius: 0 0.8rem 0.8rem 0;
  padding: 1.2rem;
  background: rgba(253, 216, 53, 0.07);
}

.offer-emblem__spark {
  color: var(--sun-gold);
}

.offer-emblem__title {
  margin: 0.25rem 0;
  color: var(--moon-white);
  font-family: var(--display-face);
  font-weight: 800;
}

.scroll-rune {
  max-width: 100%;
  overflow-x: auto;
  border: 0.0625rem solid var(--line-glow);
  border-radius: 0.85rem;
  -webkit-overflow-scrolling: touch;
}

.terms-matrix {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
  background: rgba(11, 10, 20, 0.34);
  text-align: left;
}

.terms-matrix th,
.terms-matrix td {
  border-bottom: 0.0625rem solid var(--line-glow);
  padding: 0.85rem 1rem;
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
}

.terms-matrix--pair tr > :first-child {
  width: 38%;
}

.terms-matrix--wide {
  min-width: 38rem;
  table-layout: auto;
}

.terms-matrix thead th {
  background: rgba(253, 216, 53, 0.08);
  color: var(--sun-gold);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.terms-matrix tbody th {
  color: var(--moon-white);
  font-size: 0.88rem;
}

.terms-matrix td {
  color: #cbc9d6;
}

.terms-matrix tr:last-child th,
.terms-matrix tr:last-child td {
  border-bottom: 0;
}

.fine-orbit {
  margin: 0.8rem 0 0;
  color: var(--mist-grey);
  font-size: 0.78rem;
}

.constellation-panel {
  display: grid;
  gap: 1.5rem;
  overflow: hidden;
}

.constellation-panel__copy {
  align-self: center;
}

.star-ledger,
.seal-ledger {
  display: grid;
  gap: 0.7rem;
}

.star-ledger div,
.seal-ledger div {
  display: grid;
  gap: 0.2rem;
  border-bottom: 0.0625rem solid var(--line-glow);
  padding-bottom: 0.7rem;
}

.star-ledger dt,
.seal-ledger dt {
  color: var(--mist-grey);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.star-ledger dd,
.seal-ledger dd {
  margin: 0;
  color: var(--moon-white);
  font-weight: 700;
}

.arcade-vision,
.promo-vision {
  position: relative;
  display: grid;
  min-height: 17rem;
  place-items: center;
  overflow: hidden;
  border: 0.0625rem solid rgba(253, 216, 53, 0.2);
  border-radius: 1rem;
  background:
    radial-gradient(circle at center, rgba(253, 216, 53, 0.18), transparent 35%),
    linear-gradient(145deg, #252046, #0e0c1d);
}

.arcade-vision__glyph {
  position: absolute;
  color: rgba(253, 216, 53, 0.2);
  font-size: 9rem;
  filter: drop-shadow(0 0 2rem rgba(253, 216, 53, 0.2));
}

.velvet-table {
  background:
    linear-gradient(110deg, rgba(25, 178, 105, 0.1), transparent 50%),
    var(--night-panel);
}

.comet-gallery__heading {
  max-width: 46rem;
}

.comet-grid,
.coin-orbit__tiles {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.comet-card,
.coin-card {
  border: 0.0625rem solid var(--line-glow);
  border-radius: 1rem;
  padding: 1.25rem;
  background: rgba(11, 10, 20, 0.45);
}

.comet-card__tag {
  display: inline-block;
  margin-bottom: 1rem;
  border-radius: 999px;
  padding: 0.3rem 0.6rem;
  background: var(--flare-coral);
  color: var(--night-ink);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.comet-card p,
.coin-card p {
  color: var(--mist-grey);
}

.coin-card h3 {
  color: var(--sun-gold);
}

.warded-panel {
  border-color: var(--line-glow);
}

.pathway-list li {
  display: grid;
  gap: 0.25rem;
  border-left: 0.15rem solid var(--spell-green);
  padding-left: 1rem;
}

.pathway-list span {
  color: var(--mist-grey);
}

.pathway-card--checks {
  background: linear-gradient(145deg, rgba(253, 216, 53, 0.06), var(--night-panel));
}

.question-archive {
  background:
    radial-gradient(circle at 10% 0%, var(--violet-haze), transparent 24rem),
    var(--night-panel);
}

.question-archive__heading {
  max-width: 44rem;
}

.question-archive__stack {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.answer-fold {
  border: 0.0625rem solid var(--line-glow);
  border-radius: 0.85rem;
  background: rgba(11, 10, 20, 0.42);
}

.answer-fold summary {
  position: relative;
  cursor: pointer;
  padding: 1.05rem 3rem 1.05rem 1rem;
  color: var(--moon-white);
  font-family: var(--display-face);
  font-weight: 700;
  list-style: none;
}

.answer-fold summary::-webkit-details-marker {
  display: none;
}

.answer-fold summary::after {
  position: absolute;
  top: 50%;
  right: 1rem;
  color: var(--sun-gold);
  content: "+";
  font-family: var(--body-face);
  font-size: 1.35rem;
  transform: translateY(-50%);
}

.answer-fold[open] summary::after {
  content: "−";
}

.answer-fold p {
  margin: 0;
  border-top: 0.0625rem solid var(--line-glow);
  padding: 1rem;
  color: #cbc9d6;
}

.closing-spell {
  position: relative;
  overflow: hidden;
  border-color: rgba(25, 178, 105, 0.34);
  background:
    radial-gradient(circle at 100% 0%, rgba(25, 178, 105, 0.2), transparent 22rem),
    linear-gradient(145deg, #17142d, #0f191b);
}

.gateway-pair--closing {
  align-self: center;
}

.afterglow {
  border-top: 0.0625rem solid var(--line-glow);
  background: #08070f;
}

.afterglow__orbit {
  display: grid;
  gap: 1rem;
  padding-block: 2.5rem 6.5rem;
  color: var(--mist-grey);
  font-size: 0.78rem;
}

.afterglow__name {
  margin-bottom: 0.4rem;
  color: var(--moon-white);
  font-family: var(--display-face);
  font-size: 1rem;
  font-weight: 800;
}

.afterglow__care {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.afterglow__care strong {
  color: var(--sun-gold);
  font-size: 1.1rem;
}

.mobile-dock {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0.65rem max(0.75rem, env(safe-area-inset-right)) calc(0.65rem + env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
  border-top: 0.0625rem solid var(--line-glow);
  background: rgba(11, 10, 20, 0.95);
  backdrop-filter: blur(1rem);
}

@media (min-width: 36rem) {
  .spellrail__orbit,
  .nightweave,
  .afterglow__orbit {
    width: min(100% - 3rem, var(--page-width));
  }

  .comet-grid,
  .coin-orbit__tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .promo-vision {
    grid-column: 1 / -1;
  }
}

@media (min-width: 769px) {
  .mobile-dock {
    display: none;
  }

  .nightweave {
    padding-block: 2rem 6rem;
  }

  .oracle-threshold {
    min-height: 42rem;
  }

  .astral-copy {
    max-width: 67%;
  }

  .lore-bay,
  .velvet-table,
  .warded-panel,
  .closing-spell {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
  }

  .twin-omens,
  .pathway-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .constellation-panel {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.9fr);
  }

  .coin-orbit {
    grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr);
  }

  .coin-orbit__tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 0;
  }

  .comet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(15rem, 1.15fr);
  }

  .promo-vision {
    grid-column: auto;
    grid-row: span 1;
    min-height: 100%;
  }

  .afterglow__orbit {
    grid-template-columns: 1.4fr 1fr auto;
    align-items: center;
    padding-bottom: 2.5rem;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 4.5rem;
  }

  .portal-actions {
    display: none;
  }
}

@media (max-width: 25rem) {
  .gateway-pair .moonkey {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* r2: bounded content tracks, six official tiles, section navigation. */
section[id] { scroll-margin-top: 6rem; }
section > *, .astral-copy { min-width: 0; }
section p, section li { overflow-wrap: anywhere; }
section ul, section ol { padding-left: 1.3rem; }
section li + li { margin-top: .65rem; }
.sigil-frame img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.moon-canvas > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.arcade-vision img, .promo-vision img { width: 100%; height: auto; object-fit: contain; }
.arcade-vision, .promo-vision { min-height: 0; }
.constellation-panel { grid-template-columns: minmax(0, 1fr); }
.constellation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding: 0; margin: 0; list-style: none; }
section .constellation-grid { padding: 0; }
.constellation-tile { min-width: 0; border: 1px solid var(--line-glow); border-radius: .8rem; background: var(--night-ink); overflow: hidden; }
.constellation-tile + .constellation-tile { margin-top: 0; }
.constellation-tile figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; }
.constellation-tile img { width: 100%; height: auto; aspect-ratio: 250 / 355; object-fit: contain; }
.constellation-tile img[width="250"] { max-width: 250px; }
.constellation-tile img[width="500"] { max-width: 500px; }
.constellation-tile figcaption { padding: .8rem; font-weight: 700; font-size: .85rem; line-height: 1.45; text-align: center; }
.gateway-pair--middle { grid-column: 1 / -1; margin-top: 1rem; }
.afterglow__links { display: flex; flex-wrap: wrap; gap: .7rem 1.2rem; grid-column: 1 / -1; }
.afterglow__links a { text-underline-offset: .2em; }
.question-archive__body { display: grid; gap: .75rem; }
@media (min-width: 481px) { .constellation-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .constellation-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* QA r2: keep the complete brand name visible on small screens. */
@media (max-width: 480px) {
  .sigil-name {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    font-size: .85rem;
    line-height: 1.3;
  }
}

/* r3 (2026-10-12): hero from official castle art, fact ledger instead of pills,
   no empty heading columns, section cards, payment strip, header menu. */
h2 { font-size: clamp(1.6rem, 4.6vw, 2.4rem); }
h3 { font-size: 1.08rem; margin-bottom: .5rem; }
.terms-matrix thead th { text-transform: none; letter-spacing: .02em; font-size: .8rem; }

/* header */
.spellrail__orbit { gap: 1.25rem; }
.star-map { flex: 1 1 auto; min-width: 0; }
.star-map ul { display: flex; justify-content: center; gap: .25rem 1.1rem; margin: 0; padding: 0; list-style: none; }
.star-map li + li { margin-top: 0; }
.star-map a { color: #d7d5e1; font-size: .86rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.star-map a:hover, .star-map a:focus-visible { color: var(--sun-gold); }
.portal-cta { flex: 0 0 auto; }
@media (max-width: 1080px) {
  .spellrail__orbit { flex-wrap: wrap; padding-block: .6rem; }
  .star-map { order: 3; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; }
  .star-map ul { justify-content: flex-start; padding-bottom: .2rem; }
}
@media (max-width: 768px) { .portal-cta { display: none; } }

/* hero */
.oracle-threshold { min-height: 0; align-items: start; background: #07060e; }
.oracle-threshold::after { display: none; }
.moon-canvas { background: none; }
.moon-canvas > img { opacity: 1; object-fit: cover; object-position: 70% 30%; }
.moon-canvas::after { position: absolute; inset: 0; content: "";
  background: linear-gradient(90deg, rgba(7,6,14,.96) 0%, rgba(7,6,14,.82) 38%, rgba(7,6,14,.15) 70%, rgba(7,6,14,0) 100%),
              linear-gradient(0deg, rgba(7,6,14,.9) 0%, rgba(7,6,14,0) 40%); }
.astral-copy { padding: clamp(1.5rem, 5vw, 3.5rem) clamp(1.5rem, 5vw, 4rem) clamp(1.75rem, 5vw, 3.25rem); }
.astral-copy h1 { margin-bottom: 1rem; font-size: clamp(2.4rem, 8vw, 4.4rem); }
.astral-lead { max-width: 38rem; font-size: clamp(1rem, 2.6vw, 1.12rem); color: #e2e0ea; }
.spell-ledger { display: grid; grid-template-columns: repeat(3, minmax(0, max-content)); gap: 0; margin: 0 0 1.75rem; }
.spell-ledger div { padding: .1rem 1.4rem; border-left: 1px solid rgba(253, 216, 53, .35); }
.spell-ledger div:first-child { padding-left: 0; border-left: 0; }
.spell-ledger dt { color: var(--sun-gold); font-family: var(--display-face); font-size: clamp(1.02rem, 2.4vw, 1.3rem); font-weight: 800; line-height: 1.2; }
.spell-ledger dd { margin: .2rem 0 0; color: #b9b6c8; font-size: .82rem; line-height: 1.4; }
.gateway-solo { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.4rem; }
.quiet-link { color: #e2e0ea; font-size: .92rem; font-weight: 700; text-underline-offset: .25em; }
.quiet-link:hover { color: var(--sun-gold); }
.moonkey--wide { min-height: 3.1rem; padding-inline: 1.6rem; font-size: .95rem; }
@media (min-width: 769px) { .oracle-threshold { min-height: 33rem; } .astral-copy { max-width: 62%; } }
@media (max-width: 768px) {
  .moon-canvas > img { object-position: 82% 20%; opacity: .55; }
  .spell-ledger { grid-template-columns: 1fr; gap: .8rem; }
  .spell-ledger div { padding: 0 0 0 .9rem; border-left: 2px solid rgba(253, 216, 53, .45); }
  .spell-ledger div:first-child { padding-left: .9rem; border-left: 2px solid rgba(253, 216, 53, .45); }
}

/* shared section shells */
.atlas-panel, .lore-stack, .coin-orbit { margin-top: 1.25rem; border: 1px solid var(--line-glow); border-radius: 1.25rem;
  padding: clamp(1.4rem, 4.5vw, 3rem); background: rgba(18, 16, 37, .78); }
.lore-stack__head { max-width: 50rem; }
.lore-stack__head p, .lore-stack__note, .coin-orbit__intro, .comet-gallery__intro { color: #cbc9d6; }
.lore-stack__sub { margin: 1.75rem 0 .9rem; }
.lore-stack__note { margin: 1.25rem 0 0; max-width: 52rem; }
.section-cta { margin-top: 1.6rem; }

/* cards */
.rule-cards, .step-cards { display: grid; gap: .9rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
section .rule-cards, section .step-cards { padding: 0; }
.rule-cards li, .step-cards li { margin: 0; border: 1px solid var(--line-glow); border-radius: .9rem; padding: 1rem 1.1rem; background: rgba(11, 10, 20, .45); color: #cbc9d6; font-size: .94rem; }
.rule-cards strong { display: block; margin-bottom: .3rem; color: var(--moon-white); }
.step-cards { counter-reset: step; }
.step-cards li { position: relative; padding-top: 3.1rem; counter-increment: step; }
.step-cards li::before { position: absolute; top: .9rem; left: 1.1rem; color: var(--sun-gold); content: counter(step, decimal-leading-zero); font-family: var(--display-face); font-size: 1.5rem; font-weight: 800; line-height: 1; }
.step-cards p { margin: 0; }
.pocket-card { margin-top: 1.25rem; border: 1px solid rgba(25, 178, 105, .35); border-radius: .9rem; padding: 1.2rem 1.25rem; background: linear-gradient(135deg, rgba(25, 178, 105, .12), rgba(11, 10, 20, .4)); color: #cbc9d6; }
@media (min-width: 640px) { .rule-cards, .step-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) {
  .step-cards, .rule-cards--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rule-cards--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* at a glance */
.atlas-panel { display: grid; gap: 1.5rem; align-items: center; }
.atlas-panel__art { display: grid; place-items: center; border-radius: 1rem; padding: 1rem;
  background: radial-gradient(circle at 50% 45%, rgba(111, 83, 213, .35), rgba(25, 178, 105, .08) 55%, transparent 75%); }
.atlas-panel__art img { width: 100%; max-width: 30rem; height: auto; }
.atlas-panel__copy > p { color: #cbc9d6; }
.glance-cards { display: grid; gap: .7rem; margin: 1.25rem 0 0; }
.glance-cards div { border: 1px solid var(--line-glow); border-radius: .8rem; padding: .8rem 1rem; background: rgba(11, 10, 20, .45); }
.glance-cards dt { color: var(--sun-gold); font-size: .78rem; font-weight: 800; letter-spacing: .04em; }
.glance-cards dd { margin: .2rem 0 0; color: var(--moon-white); font-size: .92rem; line-height: 1.45; }
@media (min-width: 560px) { .glance-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .atlas-panel { grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); } }

/* welcome package */
.offer-duo { display: grid; gap: 1.25rem; align-items: center; margin-bottom: 1.5rem; }
.offer-duo p { color: #cbc9d6; }
.offer-duo__art { width: 100%; height: auto; border: 1px solid rgba(253, 216, 53, .25); border-radius: 1rem; }
@media (min-width: 900px) { .offer-duo { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.promo-seal { border: 1px solid rgba(253, 216, 53, .45); border-radius: 1rem; padding: 1.1rem; background: linear-gradient(145deg, rgba(253, 216, 53, .1), rgba(11, 10, 20, .5)); }
.promo-seal__title { margin: 0 0 .9rem; color: var(--sun-gold); font-family: var(--display-face); font-size: 1.15rem; font-weight: 800; }
.promo-seal code { border: 1px dashed rgba(253, 216, 53, .6); border-radius: .4rem; padding: .15rem .45rem; color: var(--sun-gold); font-family: var(--body-face); font-weight: 800; }
.terms-matrix--center th, .terms-matrix--center td { text-align: center; vertical-align: middle; }
@media (max-width: 700px) {
  .terms-matrix--center thead { display: none; }
  .terms-matrix--center, .terms-matrix--center tbody, .terms-matrix--center tr { display: block; width: 100%; }
  .terms-matrix--center tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--line-glow); padding: .6rem 0; }
  .terms-matrix--center th, .terms-matrix--center td { border: 0; padding: .3rem .6rem; text-align: left; }
  .terms-matrix--center td::before { display: block; color: var(--mist-grey); font-size: .72rem; font-weight: 700; }
  .terms-matrix--center td:nth-of-type(1)::before { content: "Code"; }
  .terms-matrix--center td:nth-of-type(2)::before { content: "Match"; }
  .terms-matrix--center td:nth-of-type(3)::before { content: "Max bonus"; }
  .terms-matrix--center td:nth-of-type(4)::before { content: "Free spins"; }
  .terms-matrix--center td:nth-of-type(5)::before { content: "Min deposit"; }
}

/* two-column sections: heading column now carries art or a summary card */
.velvet-table__aside { display: grid; gap: 1.25rem; align-content: start; }
@media (min-width: 769px) { .velvet-table__aside { position: sticky; top: 6rem; } }
.sum-card { border: 1px solid rgba(253, 216, 53, .35); border-radius: 1rem; padding: 1.2rem; background: linear-gradient(160deg, rgba(253, 216, 53, .1), rgba(11, 10, 20, .55)); }
.sum-card__label { margin: 0 0 .6rem; color: var(--sun-gold); font-weight: 800; }
.sum-card__line { display: flex; justify-content: space-between; gap: 1rem; margin: 0; border-top: 1px solid var(--line-glow); padding: .55rem 0; color: #cbc9d6; }
.sum-card__line b { color: var(--moon-white); font-family: var(--display-face); font-size: 1.15rem; }
.sum-card__line:last-child { padding-bottom: 0; }
.sum-card__line:last-child b { color: var(--sun-gold); }
.velvet-table__body .terms-matrix { margin-bottom: 1rem; border: 1px solid var(--line-glow); }
.sport-art { width: 100%; max-width: 22rem; height: auto; border: 1px solid rgba(25, 178, 105, .35); border-radius: 1rem; }
.sport-offer { margin: 0 0 1.25rem; border: 1px solid rgba(25, 178, 105, .4); border-radius: .9rem; padding: 1rem 1.15rem; background: rgba(25, 178, 105, .1); }
.sport-offer p { margin: 0; }

/* games */
.constellation-panel__copy { max-width: 52rem; }
.constellation-panel__copy p { color: #cbc9d6; }
.constellation-tile img { aspect-ratio: 250 / 355; object-fit: cover; }
.constellation-tile img[width="500"] { max-width: none; }
.constellation-tile img[width="250"] { max-width: none; }
@media (min-width: 481px) { .constellation-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .constellation-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }

/* payments */
.coin-orbit { display: block; }
.pay-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: .6rem; margin: 1.25rem 0 1.5rem; padding: 0; list-style: none; }
section .pay-strip { padding: 0; }
.pay-strip li { display: flex; align-items: center; gap: .6rem; margin: 0; border: 1px solid var(--line-glow); border-radius: .7rem; padding: .45rem .6rem; background: rgba(11, 10, 20, .45); }
.pay-strip img { width: 3rem; height: 1.8rem; flex: 0 0 auto; border-radius: .35rem; padding: .2rem .3rem; background: #f5f5f7; object-fit: contain; }
.pay-strip span { color: var(--moon-white); font-size: .84rem; font-weight: 700; }
.cash-duo { display: grid; gap: 1rem; }
.cash-card { border: 1px solid var(--line-glow); border-radius: 1rem; padding: clamp(1rem, 3vw, 1.5rem); background: rgba(11, 10, 20, .4); color: #cbc9d6; }
.cash-card .terms-matrix { margin-bottom: 1rem; border: 1px solid var(--line-glow); font-size: .9rem; }
.cash-card .terms-matrix th, .cash-card .terms-matrix td { padding: .65rem .7rem; }
.time-rail { display: grid; gap: .6rem; margin: 0 0 1rem; padding: 0; list-style: none; }
section .time-rail { padding: 0; }
.time-rail li { display: grid; margin: 0; border-left: 3px solid var(--spell-green); padding: .2rem 0 .2rem .9rem; }
.time-rail b { color: var(--moon-white); font-family: var(--display-face); font-size: 1.05rem; }
.time-rail span { color: var(--mist-grey); font-size: .88rem; }
@media (min-width: 960px) { .cash-duo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* promotions */
.feature-pair { display: grid; gap: 1rem; margin-top: 1.25rem; }
.feature-card { display: grid; overflow: hidden; border: 1px solid var(--line-glow); border-radius: 1rem; background: rgba(11, 10, 20, .45); }
.feature-card img { width: 100%; height: 13rem; object-fit: cover; object-position: right center; background: radial-gradient(circle, rgba(111, 83, 213, .3), transparent 70%); }
.feature-card img[src*="coins-shop"] { object-fit: contain; object-position: center; padding-top: .6rem; }
.feature-card > div { padding: 1.1rem 1.2rem 1.3rem; color: #cbc9d6; }
.feature-card p { margin: 0; }
@media (min-width: 900px) { .feature-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* closing */
.closing-spell { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; }
.closing-spell p { margin: 0; color: #cbc9d6; }

/* footer, centred links */
.afterglow__orbit { display: grid; justify-items: center; gap: .5rem; text-align: center; }
.afterglow__orbit p { margin: 0; }
.afterglow__care { justify-content: center; }
.afterglow__links { justify-content: center; }
@media (min-width: 769px) { .afterglow__orbit { grid-template-columns: 1fr; padding-bottom: 2.5rem; } }

.mobile-dock { grid-template-columns: 1fr; }
.section-cta { justify-self: start; width: max-content; max-width: 100%; }
.pay-strip { grid-template-columns: repeat(auto-fill, minmax(9.75rem, 1fr)); }
.pay-strip span { overflow-wrap: normal; white-space: nowrap; }
.grimoire-panel > .rule-cards { margin-bottom: 1.25rem; }
#support .lore-stack__head { max-width: none; }
.velvet-table__aside .terms-matrix { border: 1px solid var(--line-glow); font-size: .9rem; }
.feature-card img { height: 12rem; }
@media (min-width: 1200px) { .constellation-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.terms-matrix th, .terms-matrix td { overflow-wrap: break-word; word-break: normal; }
@media (max-width: 600px) {
  .cash-card .terms-matrix thead { display: none; }
  .cash-card .terms-matrix, .cash-card .terms-matrix tbody, .cash-card .terms-matrix tr { display: block; width: 100%; }
  .cash-card .terms-matrix tr { border-bottom: 1px solid var(--line-glow); padding: .55rem .7rem; }
  .cash-card .terms-matrix tr:last-child { border-bottom: 0; }
  .cash-card .terms-matrix th, .cash-card .terms-matrix td { display: block; border: 0; padding: .1rem 0; }
  .cash-card .terms-matrix td:nth-of-type(1)::before { content: "Minimum "; color: var(--mist-grey); }
}
.portal-actions { flex: 0 0 auto; display: flex; gap: .55rem; }
@media (max-width: 768px) { .portal-actions { display: none; } }

/* r3.2 wagering art fills the free space under the text, header menu centred */
.wager-art { margin: 1.25rem 0 0; border: 1px solid var(--line-glow); border-radius: 1rem; overflow: hidden; }
.wager-art img { display: block; width: 100%; height: 100%; aspect-ratio: 1140 / 420; object-fit: cover; object-position: 30% center; }
@media (min-width: 769px) {
  .velvet-table--art { align-items: stretch; }
  .velvet-table--art .velvet-table__aside { align-self: start; }
  .velvet-table--art .velvet-table__body { display: flex; flex-direction: column; }
  .velvet-table--art .wager-art { position: relative; flex: 1 1 auto; min-height: 14rem; }
  .velvet-table--art .wager-art img { position: absolute; inset: 0; aspect-ratio: auto; }
}

/* r3.3 KYC section, CTA beside the heading */
.lore-stack__top { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2.5rem; }
.lore-stack__top > .moonkey { flex: 0 0 auto; }
@media (max-width: 768px) { .lore-stack__top { flex-direction: column; align-items: stretch; } }
