:root {
  color-scheme: dark;
  --ink: #080706;
  --coal: #100c0a;
  --charcoal: #191310;
  --ash: #9e9286;
  --bone: #f0e4d2;
  --paper: #d9c8b1;
  --bronze: #b8874b;
  --bronze-bright: #ddb477;
  --crimson: #9e1716;
  --ember: #e53b24;
  --ice: #9dc9e8;
  --line: rgba(211, 161, 95, 0.34);
  --page-width: 1180px;
  --header-height: 76px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--ink);
  color: var(--bone);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--ink); color: var(--bone); }
body::selection { background: var(--crimson); color: #fff; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 12px 16px;
  background: var(--bone);
  color: var(--ink);
  transform: translateY(-140%);
}
.skip-link:focus { transform: translateY(0); }

:focus-visible { outline: 2px solid var(--bronze-bright); outline-offset: 4px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - var(--page-width)) / 2));
  border-bottom: 1px solid transparent;
  transition: background-color 180ms ease, border-color 180ms ease;
}
.site-header.is-scrolled {
  background: rgba(8, 7, 6, 0.94);
  border-color: var(--line);
  backdrop-filter: blur(12px);
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.92rem;
  letter-spacing: 0;
  text-transform: uppercase;
}
.brand-link img { width: 44px; height: 44px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a,
.music-toggle {
  color: var(--paper);
  background: none;
  border: 0;
  padding: 10px 0;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0;
  cursor: pointer;
}
.site-nav a:hover,
.music-toggle:hover { color: var(--bronze-bright); }
.music-toggle { display: inline-flex; align-items: center; gap: 8px; }
.music-toggle[aria-pressed="true"] { color: var(--ember); }
.nav-toggle { display: none; border: 0; background: none; color: var(--bone); font-size: 1.65rem; cursor: pointer; }

.hero {
  position: relative;
  min-height: 84svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #150806;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: url('/assets/images/hero-throne.webp') center 52% / cover no-repeat;
  transform: scale(1.015);
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: rgba(7, 4, 3, 0.44);
  box-shadow: inset 0 -180px 120px rgba(8, 7, 6, 0.92), inset 0 100px 80px rgba(6, 3, 2, 0.62);
}
.hero-content {
  width: min(760px, calc(100% - 40px));
  padding: calc(var(--header-height) + 22px) 0 54px;
  text-align: center;
  text-shadow: 0 3px 18px #000;
}
.hero-logo { width: min(245px, 52vw); margin: 0 auto -30px; filter: drop-shadow(0 16px 22px rgba(0,0,0,0.7)); }
.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.8rem;
  font-weight: 700;
  line-height: 0.96;
  text-transform: uppercase;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--bronze-bright);
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0;
}
.hero-copy { max-width: 630px; margin: 16px auto 24px; color: #f5eadb; font-size: 1.08rem; line-height: 1.65; }
.infernal-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  border: 1px solid var(--bronze-bright);
  border-radius: 3px;
  background: rgba(91, 13, 11, 0.86);
  color: #fff3df;
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 8px 28px rgba(0,0,0,0.48), inset 0 0 20px rgba(218,49,31,0.2);
}
.infernal-button:hover { background: #7d1712; border-color: #f0ca91; }
.release-note { margin: 16px 0 0; color: var(--ash); font-size: 0.78rem; text-transform: uppercase; }
.hero-next {
  position: absolute;
  bottom: 18px;
  left: 50%;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  transform: translateX(-50%);
  color: var(--bronze-bright);
  text-decoration: none;
  font-size: 1.6rem;
}

.section-band { position: relative; border-top: 1px solid rgba(184, 135, 75, 0.18); }
.section-inner { width: min(var(--page-width), calc(100% - 48px)); margin: 0 auto; padding: 96px 0; }
.intro-band { background: #0d0a08; }
.intro-layout { display: grid; grid-template-columns: 80px minmax(240px, 0.8fr) minmax(320px, 1.2fr); gap: 48px; align-items: start; }
.chapter-mark { color: var(--crimson); font-family: Georgia, "Times New Roman", serif; font-size: 4.5rem; line-height: 1; border-right: 1px solid var(--line); }
h2 {
  margin: 0;
  max-width: 720px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  line-height: 1.05;
  text-transform: uppercase;
}
.lead-copy,
.section-intro { margin: 0; color: var(--paper); font-size: 1.05rem; line-height: 1.85; }
.section-intro { max-width: 760px; margin-top: 22px; }

.domain-preview { background: #120a08; }
.room-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 42px; }
.room-gallery figure { position: relative; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--line); background: #070504; }
.room-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 420ms ease; }
.room-gallery figure:hover img { transform: scale(1.025); }
.room-gallery figcaption { position: absolute; inset: auto 0 0; padding: 38px 20px 16px; background: rgba(5, 4, 3, 0.84); }
.room-gallery figcaption span { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 1.28rem; text-transform: uppercase; }
.room-gallery figcaption small { display: block; margin-top: 4px; color: var(--paper); font-size: 0.8rem; line-height: 1.35; }

.legion-band { background: #0b0908; overflow: hidden; }
.legion-layout { display: grid; grid-template-columns: minmax(280px, 0.72fr) minmax(520px, 1.28fr); gap: 46px; align-items: center; }
.legion-copy { position: relative; z-index: 2; }
.rarity-line { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 30px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); list-style: none; color: var(--paper); font-size: 0.76rem; }
.rarity-line li { display: inline-flex; align-items: center; gap: 7px; }
.rarity { width: 9px; height: 9px; border: 1px solid rgba(255,255,255,0.28); border-radius: 50%; box-shadow: 0 0 9px currentColor; }
.rarity.common { color: #9b9b9b; background: currentColor; }
.rarity.rare { color: #4c8ad9; background: currentColor; }
.rarity.epic { color: #a94ed0; background: currentColor; }
.rarity.legendary { color: #e39d32; background: currentColor; }
.rarity.mythic { color: #df3631; background: currentColor; }
.rarity.primordial { color: #ecdfc6; background: currentColor; }
.creature-stage { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; min-height: 620px; }
.creature { position: relative; margin: 0 -18px; min-width: 0; text-align: center; }
.creature img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; object-position: center top; filter: drop-shadow(0 28px 24px rgba(0,0,0,0.58)); }
.creature-main { z-index: 2; transform: scale(1.06); }
.creature-side { opacity: 0.8; transform: scale(0.88); }
.creature figcaption { position: absolute; inset: auto 8% 2% 8%; padding: 12px 10px; border-top: 1px solid var(--line); background: rgba(8,7,6,0.82); font-family: Georgia, "Times New Roman", serif; text-transform: uppercase; }
.creature figcaption span { display: block; margin-top: 4px; color: var(--bronze-bright); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 0.7rem; }

.combat-band { background: #120b09; }
.combat-layout { margin-top: 42px; }
.combat-feature { position: relative; margin: 0; aspect-ratio: 2 / 1; overflow: hidden; border: 1px solid var(--line); }
.combat-feature img { width: 100%; height: 100%; object-fit: cover; }
.combat-feature figcaption { position: absolute; inset: auto 0 0; display: flex; align-items: baseline; gap: 20px; padding: 50px 26px 22px; background: rgba(6,5,4,0.8); }
.combat-feature strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.8rem; text-transform: uppercase; }
.combat-feature span { color: var(--paper); }
.combat-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.combat-modes figure { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--line); }
.combat-modes img { width: 100%; height: 100%; object-fit: cover; object-position: center 36%; }
.combat-modes figcaption { position: absolute; inset: auto 0 0; padding: 18px; background: rgba(6,5,4,0.82); font-family: Georgia, "Times New Roman", serif; font-size: 1.1rem; text-transform: uppercase; }

.evolution-band { background: #0c0b0b; }
.evolution-heading { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: end; }
.realm-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 44px; }
.realm-pair figure { position: relative; margin: 0; aspect-ratio: 2 / 1; overflow: hidden; border: 1px solid var(--line); }
.realm-pair img { width: 100%; height: 100%; object-fit: cover; }
.realm-pair figcaption { position: absolute; inset: auto 0 0; padding: 38px 22px 16px; background: rgba(5,4,3,0.82); }
.realm-pair figcaption span,
.realm-pair figcaption small { display: block; }
.realm-pair figcaption span { font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; text-transform: uppercase; }
.realm-pair figcaption small { margin-top: 5px; color: var(--paper); }
.ice-realm { border-color: rgba(157,201,232,0.44) !important; }
.ice-realm figcaption span { color: var(--ice); }

.fair-play-band { background: #130806; }
.fair-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 70px; align-items: start; }
.fair-statement { margin: 28px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); color: var(--bronze-bright); font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; line-height: 1.4; }

.final-call { position: relative; min-height: 680px; display: grid; place-items: center; overflow: hidden; background: #090605; }
.final-call-media { position: absolute; inset: 0; background: url('/assets/images/room-invocation.webp') center / cover no-repeat; opacity: 0.28; filter: saturate(0.85); }
.final-call::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 180px 90px #080706; }
.final-call-content { position: relative; z-index: 1; width: min(700px, calc(100% - 36px)); text-align: center; }
.final-call-content img { width: 290px; margin: 0 auto -25px; }
.final-call h2 { max-width: none; }
.final-call p { color: var(--paper); font-size: 1.05rem; }
.store-placeholder { display: inline-block; margin-top: 16px; padding: 12px 18px; border: 1px solid var(--line); color: var(--ash); font-size: 0.78rem; text-transform: uppercase; }

.page-hero { min-height: 420px; display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--header-height) + 70px) max(24px, calc((100vw - 920px) / 2)) 70px; border-bottom: 1px solid var(--line); background: #120907 url('/assets/images/hero-throne.webp') center 46% / cover no-repeat; box-shadow: inset 0 0 0 1000px rgba(6,4,3,0.72); }
.page-hero h1 { margin: 0; max-width: 880px; font-family: Georgia, "Times New Roman", serif; font-size: 3.7rem; line-height: 1; text-transform: uppercase; }
.page-hero > p:last-child { margin: 18px 0 0; color: var(--paper); }
.prose { max-width: 920px; }
.prose section { padding: 32px 0; border-bottom: 1px solid rgba(184,135,75,0.18); scroll-margin-top: 90px; }
.prose h2,
.support-content h2,
.contact-layout h2 { margin: 0 0 16px; font-family: Georgia, "Times New Roman", serif; font-size: 1.75rem; line-height: 1.2; text-transform: uppercase; }
.prose p,
.prose li,
.support-content p,
.contact-layout p { color: var(--paper); font-size: 1rem; line-height: 1.8; }
.prose li + li { margin-top: 8px; }
.prose a,
.support-content a,
.text-link { color: var(--bronze-bright); text-underline-offset: 4px; }
.legal-warning { padding: 20px 22px; border-left: 3px solid var(--ember); background: #1b100c; color: var(--paper); line-height: 1.6; }
.owner-todo { color: #f1b26e; font-weight: 700; }
.document-nav { display: flex; flex-wrap: wrap; gap: 10px 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.document-nav a { color: var(--paper); font-size: 0.82rem; }
.numbered-steps { margin: 28px 0; padding: 0; list-style: none; }
.numbered-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: start; padding: 18px 0; border-bottom: 1px solid rgba(184,135,75,0.16); }
.numbered-steps li > span { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--line); color: var(--bronze-bright); }

.support-content { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 56px; align-items: start; }
.support-list article { display: grid; grid-template-columns: 46px 1fr; gap: 20px; padding: 28px 0; border-bottom: 1px solid rgba(184,135,75,0.18); }
.support-list article > span { color: var(--crimson); font-family: Georgia, "Times New Roman", serif; font-size: 1.6rem; }
.support-list h2 { margin-bottom: 6px; }
.support-list p { margin: 0; }
.contact-panel { position: sticky; top: 106px; padding: 30px; border: 1px solid var(--line); background: #130d0b; }
.contact-panel small { display: block; margin-top: 22px; color: var(--ash); line-height: 1.6; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.contact-layout > div { padding: 42px; background: #0e0b09; }
.muted { color: var(--ash) !important; }
.error-state { min-height: 100svh; display: grid; align-content: center; justify-items: center; padding: 90px 24px; text-align: center; background: #090605; }
.error-state > * { max-width: 100%; }
.error-state img { width: 130px; }
.error-state h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 3rem; text-transform: uppercase; }
.error-state > p:not(.eyebrow) { margin: 18px 0 28px; color: var(--paper); }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 520ms ease, transform 520ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px 60px;
  align-items: center;
  padding: 48px max(24px, calc((100vw - var(--page-width)) / 2));
  border-top: 1px solid var(--line);
  background: #070605;
  color: var(--ash);
}
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand img { width: 60px; height: 60px; object-fit: contain; }
.footer-brand strong,
.footer-brand span { display: block; }
.footer-brand strong { color: var(--bone); font-family: Georgia, "Times New Roman", serif; text-transform: uppercase; }
.footer-brand span { margin-top: 4px; font-size: 0.86rem; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 24px; }
.site-footer a { color: var(--paper); font-size: 0.82rem; text-decoration: none; }
.site-footer a:hover { color: var(--bronze-bright); }
.site-footer > p { grid-column: 1 / -1; margin: 0; padding-top: 20px; border-top: 1px solid rgba(184,135,75,0.15); font-size: 0.78rem; }

@media (max-width: 820px) {
  :root { --header-height: 66px; }
  .site-header { padding-inline: 18px; }
  .nav-toggle { display: grid; width: 44px; height: 44px; place-items: center; }
  .site-nav {
    position: absolute;
    top: var(--header-height);
    right: 12px;
    left: 12px;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 10px 18px;
    border: 1px solid var(--line);
    background: rgba(8, 7, 6, 0.98);
    box-shadow: 0 18px 36px rgba(0,0,0,0.5);
  }
  .site-nav.is-open { display: grid; }
  .site-nav a,
  .music-toggle { min-height: 48px; border-bottom: 1px solid rgba(184,135,75,0.16); text-align: left; }
  .hero { min-height: 86svh; }
  .hero h1 { font-size: 3.2rem; }
  .hero-logo { margin-bottom: -28px; }
  .section-inner { width: min(100% - 34px, var(--page-width)); padding: 72px 0; }
  .intro-layout { grid-template-columns: 50px 1fr; gap: 24px; }
  .intro-layout .lead-copy { grid-column: 2; }
  .chapter-mark { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  .room-gallery { grid-template-columns: 1fr 1fr; }
  .legion-layout { grid-template-columns: 1fr; }
  .creature-stage { min-height: auto; }
  .combat-modes { grid-template-columns: 1fr 1fr 1fr; }
  .evolution-heading,
  .fair-layout { grid-template-columns: 1fr; gap: 30px; }
  .realm-pair { grid-template-columns: 1fr; }
  .support-content { grid-template-columns: 1fr; }
  .contact-panel { position: static; }
  .page-hero { min-height: 360px; padding-bottom: 54px; }
  .page-hero h1 { font-size: 2.8rem; }
  .contact-layout { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer nav { justify-content: flex-start; }
}

@media (max-width: 520px) {
  .brand-link span { font-size: 0.78rem; }
  .hero-media { background-position: 40% 52%; }
  .hero-content { padding-bottom: 46px; }
  .hero-logo { width: min(220px, 60vw); }
  .hero h1 { font-size: 2.6rem; }
  .hero-copy { font-size: 1rem; line-height: 1.6; }
  .intro-layout { grid-template-columns: 1fr; }
  .intro-layout .lead-copy { grid-column: auto; }
  .chapter-mark { width: 52px; padding-bottom: 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  h2 { font-size: 1.9rem; }
  .room-gallery { grid-template-columns: 1fr; }
  .room-gallery figure { aspect-ratio: 4 / 3; }
  .room-gallery figcaption { padding: 26px 18px 16px; }
  .creature-stage { grid-template-columns: 1fr 1fr; gap: 8px; }
  .creature { margin: 0; }
  .creature-main { order: -1; grid-column: 1 / -1; width: 70%; margin: 0 auto; transform: none; }
  .creature-side { transform: none; opacity: 0.88; }
  .combat-feature { aspect-ratio: 4 / 3; }
  .combat-feature figcaption { display: block; padding: 34px 18px 16px; }
  .combat-feature span { display: block; margin-top: 5px; font-size: 0.86rem; }
  .combat-modes { grid-template-columns: 1fr; }
  .combat-modes figure { aspect-ratio: 16 / 9; }
  .realm-pair figure { aspect-ratio: 4 / 3; }
  .final-call { min-height: 560px; }
  .final-call-content img { width: 220px; }
  .page-hero h1 { font-size: 1.9rem; overflow-wrap: anywhere; }
  .error-state h1 { font-size: 2.15rem; overflow-wrap: anywhere; }
  .document-nav { display: grid; grid-template-columns: 1fr 1fr; }
  .contact-layout > div { padding: 30px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
