@font-face {
  font-family: Cinzel;
  src: url("/fonts/Cinzel-Black.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --void: #07060c;
  --obsidian: #0b0910;
  --stone: #1c1628;
  --stone-2: #241c33;
  --bone: #e6d6b8;
  --bone-dim: rgba(230, 214, 184, 0.82);
  --gold: #ffd54f;
  --gold-deep: #c4872a;
  --magic: #c4b5fd;
  --magic-deep: #3b1e68;
  --violet: #6c3fc5;
  --lilith: #b388ff;
  --fire: #ff5a1f;
  --water: #3ec6ff;
  --plant: #7cdb4a;
  --rim: rgba(176, 164, 196, 0.32);
  --nav: 72px;
  --display: Cinzel, "Times New Roman", serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--bone);
  font-family: var(--body);
  font-size: 1.02rem;
  line-height: 1.55;
  background: transparent;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(900px 520px at 50% -8%, rgba(108, 63, 197, 0.55), transparent 62%),
    radial-gradient(700px 480px at 100% 20%, rgba(255, 90, 31, 0.12), transparent 50%),
    radial-gradient(640px 420px at 0% 80%, rgba(62, 198, 255, 0.08), transparent 46%),
    linear-gradient(180deg, #2d1b69 0%, #140a28 26%, #0d0620 58%, #07060c 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0.09;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.55'/></svg>");
}

img { max-width: 100%; height: auto; }

a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: white; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

button, a { -webkit-tap-highlight-color: transparent; }

h1, h2, h3, .nav-links a, .stats strong, .seal, .steps > li > span, summary, .vs span, .finale h2 {
  font-family: var(--display);
  font-weight: 900;
}

p { margin: 0; }

#embers {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.page { position: relative; z-index: 1; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--gold);
  color: var(--void);
  padding: 8px 12px;
  z-index: 30;
}
.skip:focus { top: 12px; }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--nav);
  padding: 10px 22px;
  background: rgba(7, 6, 12, 0.72);
  border-bottom: 1px solid rgba(255, 213, 79, 0.14);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  color: var(--bone);
  text-decoration: none;
  line-height: 0;
}
.brand img {
  height: 56px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 18px;
  margin-left: auto;
}
.nav-links a {
  color: var(--bone-dim);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
}
.nav-links a:hover { color: var(--gold); }

.nav-tools { display: flex; align-items: center; gap: 10px; }

.lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--bone);
  text-decoration: none;
  border: 1px solid var(--rim);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
}
.lang .flag {
  width: 16px;
  height: 11px;
  flex: none;
  border-radius: 1px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45);
}
.lang[aria-current="page"] {
  color: var(--void);
  background: var(--gold);
  border-color: var(--gold);
}

.play-link {
  color: var(--void);
  background: linear-gradient(180deg, #ffe38a, var(--gold) 45%, var(--gold-deep));
  text-decoration: none;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}
.play-link:hover { color: var(--void); filter: brightness(1.08); }

.opening {
  position: relative;
  isolation: isolate;
}

.hero {
  position: relative;
  isolation: isolate;
  z-index: 1;
  padding: 12px 20px 28px;
  overflow: hidden;
  display: grid;
  align-items: start;
}

.rune-field {
  position: absolute;
  left: 50%;
  top: calc((100svh - var(--nav)) * 0.46);
  width: min(128vmin, 980px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}
.rune-glow {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 77, 255, 0.38), transparent 66%);
}
.rune-scale { position: absolute; inset: 0; }
.rune-scale-back { transform: scale(1.18); opacity: 0.28; }
.rune-scale-front { opacity: 0.78; }
.rune-scale img { width: 100%; height: 100%; object-fit: contain; }

.spin-ccw { animation: spin-ccw 45s linear infinite; }
.spin-cw { animation: spin-cw 78s linear infinite; }

@keyframes spin-ccw { to { transform: rotate(-360deg); } }
@keyframes spin-cw { to { transform: rotate(360deg); } }

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(7, 6, 12, 0.28) 70%, rgba(7, 6, 12, 0.82) 100%),
    linear-gradient(180deg, transparent 70%, var(--void));
}

.hero-layout {
  position: relative;
  z-index: 3;
  width: min(1180px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 3;
  width: min(640px, 100%);
  min-height: calc(100svh - var(--nav) - 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-copy::before {
  content: "";
  position: absolute;
  inset: -8% -12%;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(7, 6, 12, 0.78), transparent 68%);
  pointer-events: none;
}

.logo {
  width: min(340px, 72vw);
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.55));
}

.kicker {
  margin: 14px 0 8px;
  color: var(--magic);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6.2vw, 5.1rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-wrap: balance;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}
h1 span {
  line-height: 1.02;
  background: linear-gradient(180deg, #fff6d0 0%, var(--gold) 42%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.deck {
  margin: 14px auto 0;
  max-width: 36ch;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.25;
  color: white;
}

.lead {
  margin: 12px auto 0;
  max-width: 58ch;
  color: var(--bone-dim);
}

.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.stats li {
  min-width: 78px;
  padding: 8px 10px 10px;
  text-align: center;
  border-radius: 14px;
  border: 1px solid var(--rim);
  background: rgba(7, 6, 12, 0.55);
}
.stats strong {
  display: block;
  color: var(--gold);
  font-size: 1.25rem;
  line-height: 1.1;
}
.stats span {
  display: block;
  margin-top: 2px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

.badge {
  display: inline-block;
  margin-top: 18px;
  line-height: 0;
}
.badge img { height: 64px; width: auto; }

.micro {
  margin-top: 8px;
  color: var(--bone-dim);
  font-size: 0.85rem;
}

.hero-video {
  width: min(280px, 74vw);
  margin: 8px auto 4px;
  aspect-ratio: 1080 / 2412;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--rim);
  background: #100c16;
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.45),
    0 0 42px rgba(124, 77, 255, 0.22);
}
.hero-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #100c16;
}

.cast-band {
  position: relative;
  z-index: 2;
  padding: 8px 16px 36px;
}
.cast {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-items: center;
  align-items: end;
  width: min(720px, 100%);
  margin: 0 auto;
  gap: 6px 10px;
}
.cast img {
  height: min(280px, 42vw);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.5));
  animation: bob 6.5s ease-in-out infinite;
}
.cast .water { animation-delay: -1.4s; }
.cast .lilith { animation-delay: -0.8s; }
.cast .plant { order: 4; animation-delay: -2.2s; }
.cast .lilith { order: 3; }

.runner {
  position: relative;
  height: 0;
  overflow: hidden;
}
.runner.is-on {
  height: min(360px, 62vw);
  margin-top: 18px;
}
.runner img {
  position: absolute;
  left: 50%;
  bottom: 0;
  height: 100%;
  width: auto;
  max-width: none;
  transform: translateX(-50%);
}
.runner img.is-running {
  z-index: 1;
  animation: run-in 0.9s cubic-bezier(0.16, 0.84, 0.28, 1) both;
}
.runner img.is-leaving {
  z-index: 2;
  animation: run-out 0.9s cubic-bezier(0.16, 0.84, 0.28, 1) both;
  pointer-events: none;
}
@keyframes run-in {
  from { transform: translateX(calc(-50% + 72vw)); }
  to { transform: translateX(-50%); }
}
@keyframes run-out {
  from { transform: translateX(-50%); }
  to { transform: translateX(calc(-50% - 72vw)); }
}

@keyframes bob {
  50% { transform: translateY(-12px); }
}

.orbit { display: none; }

.ticker {
  overflow: hidden;
  border-block: 1px solid rgba(255, 213, 79, 0.22);
  background: rgba(7, 6, 12, 0.62);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 48s linear infinite;
}
.ticker span {
  padding: 13px 8px 13px 26px;
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone);
}
.ticker span::before {
  content: "✦";
  margin-right: 26px;
  color: var(--gold);
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

.section { padding: 84px 20px; }
.section-inner { width: min(1120px, 100%); margin: 0 auto; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 0.95;
  text-wrap: balance;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}
.lede { max-width: 68ch; color: var(--bone-dim); font-size: 1.08rem; }
.note { margin-top: 14px; color: var(--bone-dim); }

@property --element-glow {
  syntax: "<color>";
  inherits: true;
  initial-value: #ff5a1f;
}

.elements {
  position: relative;
  --element-glow: var(--fire);
  transition: --element-glow 0.65s ease;
}
.elements[data-state="fire"] { --element-glow: var(--fire); }
.elements[data-state="plant"] { --element-glow: var(--plant); }
.elements[data-state="water"] { --element-glow: var(--water); }
.wheel-wrap {
  position: absolute;
  left: 50%;
  top: 42%;
  width: min(560px, 92vw);
  transform: translate(-50%, -40%);
  pointer-events: none;
}
.wheel {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--element-glow);
  filter: blur(36px);
  opacity: 0.34;
}

.triad {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(760px, 100%);
  margin: 34px auto 0;
}
.element-card {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--bone);
  cursor: pointer;
  text-align: center;
}
.element-card img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.35s ease, filter 0.35s ease, box-shadow 0.35s ease;
}
.element-card span {
  display: block;
  margin-top: 8px;
  font-family: var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.element-card[aria-pressed="true"] img { transform: translateY(-10px) scale(1.03); }
.element-card[data-element="fire"][aria-pressed="true"] img { box-shadow: 0 18px 36px rgba(255, 90, 31, 0.4); }
.element-card[data-element="plant"][aria-pressed="true"] img { box-shadow: 0 18px 36px rgba(124, 219, 74, 0.35); }
.element-card[data-element="water"][aria-pressed="true"] img { box-shadow: 0 18px 36px rgba(62, 198, 255, 0.35); }
[data-state="fire"] [data-element="plant"] img,
[data-state="plant"] [data-element="water"] img,
[data-state="water"] [data-element="fire"] img {
  filter: saturate(0.35) brightness(0.68);
}

.relation {
  position: relative;
  z-index: 1;
  min-height: 1.6em;
  margin: 22px 0 0;
  font-family: var(--display);
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: white;
}
.relation::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: min(680px, 92vw);
  height: 4.2em;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, var(--element-glow), transparent 72%);
  filter: blur(12px);
  opacity: 0.9;
  pointer-events: none;
}

.boards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  justify-items: center;
  align-items: center;
  margin-top: 36px;
}
.board-wrap { width: min(260px, 100%); text-align: center; }
.board-label {
  margin-bottom: 8px;
  font-family: var(--display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--gold);
}
.board {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid var(--rim);
  background:
    linear-gradient(160deg, rgba(255, 213, 79, 0.08), transparent 30%),
    linear-gradient(180deg, #241c33, #0b0910);
  box-shadow: inset 0 1px 0 rgba(230, 214, 184, 0.14), 0 18px 36px rgba(0, 0, 0, 0.35);
}
.slot {
  aspect-ratio: 640 / 896;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(230, 214, 184, 0.14);
  overflow: hidden;
}
.slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vs {
  position: relative;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
}
.vs img { position: absolute; inset: 0; width: 100%; height: 100%; }
.vs span { position: relative; color: var(--gold); font-size: 1.3rem; letter-spacing: 0.08em; }

.steps {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.steps > li, .slab, .modes li, details.slab {
  background:
    linear-gradient(180deg, rgba(255, 213, 79, 0.07), transparent 24%),
    linear-gradient(180deg, #241c33 0%, #14101d 42%, #0b0910 100%);
  border: 1px solid var(--rim);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(230, 214, 184, 0.14), 0 14px 32px rgba(0, 0, 0, 0.25);
}
.steps > li { padding: 16px 16px 18px; }
.steps > li > span { color: var(--gold); font-size: 1.3rem; }
.steps h3, .modes strong, .pact h3 {
  margin: 6px 0;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--bone);
}
.steps p, .modes span, .pact p { color: var(--bone-dim); font-size: 0.96rem; }

.clips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  justify-content: center;
  align-items: start;
  gap: 18px 16px;
  margin-top: 34px;
}
.clip { margin: 0; }
.clip-frame {
  position: relative;
  aspect-ratio: 640 / 896;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--rim);
  background: #100c16;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
}
.clip-frame:has(video) { aspect-ratio: 1080 / 2412; }
.clip-frame button {
  appearance: none;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: inherit;
}
.clip-frame img,
.clip-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.play-seal {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 74px;
  height: 74px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 213, 79, 0.75);
  background: rgba(7, 6, 12, 0.55);
  box-shadow: 0 0 28px rgba(124, 77, 255, 0.55);
}
.play-seal::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 26px;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--gold);
}
.clip figcaption {
  margin-top: 10px;
  text-align: center;
  color: var(--bone);
}
.clip-frame button:hover .play-seal,
.clip-frame button:focus-visible .play-seal { background: rgba(59, 30, 104, 0.72); }

.pact-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 78vw);
  gap: 14px;
  margin-top: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
}
.pact {
  margin: 0;
  scroll-snap-align: start;
}
.pact img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.4);
  transition: transform 0.35s ease;
}
.pact:hover img { transform: translateY(-8px) rotate(-1.5deg); }
.pact h3 { margin-top: 10px; }
.pact p { margin-top: 4px; }

.descent {
  list-style: none;
  position: relative;
  max-width: 720px;
  margin: 36px auto 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.descent::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: linear-gradient(var(--gold), var(--violet) 42%, #1a1030);
}
.descent li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: center;
}
.seal {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--bone);
  background: radial-gradient(circle at 40% 30%, #3a2c52, #0b0910 72%);
  border: 1px solid rgba(255, 213, 79, 0.35);
  position: relative;
  z-index: 1;
}
.descent li.is-lit .seal {
  color: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 22px rgba(179, 136, 255, 0.75);
}
.descent h3 { margin: 0; font-family: var(--display); font-size: 1.35rem; }
.descent p { color: var(--bone-dim); }

.stage {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}
.stage-art {
  position: relative;
  min-height: 320px;
  display: grid;
  place-items: end center;
  overflow: hidden;
}
.stage-rune {
  position: absolute;
  width: min(420px, 90%);
  aspect-ratio: 1;
  opacity: 0.55;
}
.stage-rune img { width: 100%; height: 100%; object-fit: contain; }
.stage-art > img {
  position: relative;
  max-height: 460px;
  width: auto;
  transition: opacity 0.25s ease;
  filter: drop-shadow(0 22px 24px rgba(0, 0, 0, 0.55));
}
.stage-art > img.is-out { opacity: 0; }
.stage-kicker {
  color: var(--lilith);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.75rem;
}
.stage h3 { margin: 6px 0 8px; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.stage-copy { min-height: 132px; }
.thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 10px;
}
.thumbs button {
  flex: 0 0 74px;
  height: 74px;
  padding: 5px;
  border-radius: 14px;
  border: 1px solid var(--rim);
  background: #100c16;
  cursor: pointer;
}
.thumbs button[aria-pressed="true"] {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.thumb-meta { display: none; }

.modes {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.modes li { padding: 16px 16px 18px; }
.modes strong { display: block; }

.quote-band {
  position: relative;
  display: grid;
  gap: 8px;
  align-items: center;
  justify-items: center;
  padding: 48px 20px 20px;
  overflow: hidden;
}
.quote-rune {
  position: absolute;
  width: min(460px, 100%);
  aspect-ratio: 1;
  opacity: 0.4;
  pointer-events: none;
}
.quote-rune img { width: 100%; height: 100%; object-fit: contain; }
.quote-figure {
  position: relative;
  width: min(340px, 78vw);
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.5));
}
blockquote {
  position: relative;
  margin: 0;
  max-width: 18ch;
  text-align: center;
}
blockquote p {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
}
cite { display: block; margin-top: 12px; color: var(--lilith); font-style: normal; letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.78rem; }

.faq { display: grid; gap: 10px; margin-top: 22px; }
details.slab { padding: 0; }
summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  color: var(--bone);
  font-size: 1.05rem;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--gold); }
details[open] summary::after { content: "–"; }
details p { padding: 0 18px 16px; color: var(--bone-dim); }

.contact { padding-top: 12px; }
.contact-link {
  display: inline-block;
  margin-top: 22px;
  max-width: 100%;
  color: var(--void);
  background: linear-gradient(180deg, #ffe38a, var(--gold) 45%, var(--gold-deep));
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 22px;
  font-size: clamp(0.92rem, 2.4vw, 1.05rem);
  font-weight: 700;
  overflow-wrap: anywhere;
}
.contact-link:hover { color: var(--void); filter: brightness(1.08); }

.finale {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 78vh;
  display: grid;
  align-items: center;
  justify-items: center;
  text-align: center;
  padding: 80px 20px 40px;
}
.finale .rune-field { width: min(92vmin, 680px); opacity: 0.9; }
.finale-inner { position: relative; z-index: 1; width: min(760px, 100%); }
.finale-lilith {
  width: min(300px, 70vw);
  margin-bottom: -12px;
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.5));
  animation: bob 7s ease-in-out infinite;
}

.footer {
  position: relative;
  z-index: 1;
  padding: 10px 20px 36px;
  text-align: center;
  color: rgba(230, 214, 184, 0.64);
  font-size: 0.9rem;
}
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; margin-bottom: 8px; }
.footer a { color: var(--bone); text-decoration: none; }
.footer a:hover { color: var(--gold); }

.lost {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 32px 20px;
}
.lost-rune { width: min(320px, 70vw); margin: 0 auto 10px; }
.lost h1 { font-size: clamp(2.4rem, 8vw, 4.5rem); }
.lost p { color: var(--bone-dim); margin-top: 8px; }
.lost-links { display: flex; gap: 16px; justify-content: center; margin-top: 18px; }

@media (min-width: 800px) {
  .boards { grid-template-columns: 1fr auto 1fr; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .clips { grid-template-columns: repeat(4, minmax(0, 240px)); }
  .modes { grid-template-columns: repeat(3, 1fr); }
  .stage { grid-template-columns: 1.05fr 0.95fr; align-items: end; }
  .quote-band { grid-template-columns: 0.8fr 1.1fr; padding-inline: 6vw; }
  blockquote { text-align: left; max-width: 16ch; }
  .pact-row {
    grid-auto-flow: unset;
    grid-template-columns: repeat(5, 1fr);
    overflow: visible;
  }
}

@media (min-width: 1040px) {
  .hero { align-items: stretch; }
  .hero-layout {
    min-height: calc(100svh - var(--nav));
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px clamp(32px, 5vw, 88px);
    width: min(1360px, 100%);
    padding-inline: clamp(20px, 3vw, 40px);
  }
  .hero-copy {
    width: min(560px, 100%);
    min-height: 0;
    justify-self: start;
  }
  .hero-video {
    width: auto;
    height: min(78svh, 740px);
    margin: 0;
    justify-self: end;
  }
  .cast-band { padding: 28px clamp(20px, 4vw, 64px) 72px; }
  .cast {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(1480px, 100%);
    gap: 8px clamp(12px, 2vw, 36px);
  }
  .cast img { height: min(460px, 40vh); }
  .orbit { display: block; position: absolute; inset: 0; pointer-events: none; z-index: 2; }
  .orbit img {
    position: absolute;
    width: 86px;
    border-radius: 3px;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.45);
    animation: bob 7s ease-in-out infinite;
  }
  .orbit .d1 { top: 14%; left: 46%; rotate: -14deg; }
  .orbit .d2 { top: 28%; left: 58%; rotate: 12deg; animation-delay: -2s; }
  .orbit .d3 { top: 72%; left: 47%; rotate: 8deg; width: 74px; animation-delay: -3s; }
  .orbit .d4 { top: 58%; left: 60%; rotate: -8deg; width: 74px; animation-delay: -1s; }
  .orbit .d5 { top: 6%; left: 54%; rotate: 9deg; width: 68px; animation-delay: -1.6s; }
  .orbit .d6 { top: 84%; left: 56%; rotate: -7deg; width: 62px; animation-delay: -2.4s; }
  .orbit .d7 { top: 42%; left: 50%; rotate: 6deg; width: 66px; animation-delay: -0.6s; }
  .orbit .d8 { top: 18%; left: 62%; rotate: -11deg; width: 58px; animation-delay: -3.2s; }
}

@media (max-width: 520px) {
  .stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: min(320px, 100%);
    margin-inline: auto;
  }
  .brand img { height: 46px; }
}

@media (max-width: 860px) {
  .nav { flex-wrap: wrap; gap: 8px 12px; padding-inline: 14px; }
  .nav-links {
    order: 3;
    width: 100%;
    margin: 0;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .nav-links { gap: 10px; }
  .nav-links a {
    white-space: nowrap;
    font-size: 0.74rem;
    letter-spacing: 0.02em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spin-ccw,
  .spin-cw,
  .ticker-track,
  .cast img,
  .orbit img,
  .wheel,
  .runner img { animation: none; }
}
