:root {
  color-scheme: dark;
  --page: #0d1421;
  --surface: #151f30;
  --surface-raised: #1a2638;
  --line: #314054;
  --text: #f7f1e6;
  --muted: #bdc8d7;
  --gold: #f9c66a;
  --gold-strong: #ffcf78;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: calc(5.5rem + env(safe-area-inset-top)); }
body {
  margin: 0;
  padding-inline: env(safe-area-inset-left) env(safe-area-inset-right);
  background: var(--page);
  color: var(--text);
  font: 400 1rem/1.55 var(--body);
}
a { color: inherit; }
img { display: block; max-width: 100%; }
picture { display: block; }
figure, p { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid #9fd8ff; outline-offset: 4px; }
::selection { background: var(--gold); color: #251804; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  line-height: .98;
  text-wrap: balance;
}
h1 { font-size: clamp(3.3rem, 5.15vw, 5.25rem); font-weight: 800; letter-spacing: -.014em; text-wrap: wrap; }
h2 { font-size: clamp(2.85rem, 5.3vw, 4.1rem); }
h3 { font-size: 1.85rem; }

.shell { width: min(calc(100% - 3rem), 76rem); margin-inline: auto; }
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section-heading { max-width: 48rem; margin-bottom: 2rem; }
.section-heading > p:last-child:not(.eyebrow) { margin-top: .8rem; max-width: 41rem; color: var(--muted); font-size: 1.075rem; }
.eyebrow {
  margin: 0 0 .7rem;
  color: var(--gold);
  font-size: .8125rem;
  font-weight: 800;
  letter-spacing: .115em;
  text-transform: uppercase;
}

.skip-link {
  position: fixed;
  z-index: 10;
  inset: .6rem auto auto .6rem;
  padding: .6rem .8rem;
  transform: translateY(-160%);
  color: #211606;
  background: var(--gold-strong);
  border-radius: .35rem;
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 5;
  top: 0;
  padding-top: env(safe-area-inset-top);
  background: #0d1421f5;
  border-bottom: 1px solid #263346;
}
.header-inner { display: flex; min-height: 4.5rem; gap: 1.25rem; justify-content: space-between; align-items: center; }
.brand {
  display: inline-flex;
  gap: .65rem;
  align-items: center;
  color: var(--text);
  font: 800 1.48rem/1 var(--display);
  letter-spacing: .035em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand img { border: 1px solid #7b5b34; border-radius: .55rem; }
.site-nav { display: flex; align-items: center; gap: clamp(.9rem, 3vw, 2.5rem); }
.site-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; color: #d6deea; font-size: .94rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.site-nav a:hover { color: var(--gold-strong); }
.site-menu { display: none; }

.button {
  display: inline-flex;
  min-height: 3rem;
  padding: .62rem 1.04rem;
  justify-content: center;
  align-items: center;
  border: 1px solid transparent;
  border-radius: .45rem;
  font-size: .94rem;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
.button-small { min-height: 2.75rem; padding: .45rem .9rem; }
.button-primary {
  color: #201505;
  background: var(--gold);
  border-color: #ffdb92;
  box-shadow: 0 2px 0 #8c5e29;
}
.button-primary:hover { background: #ffe09d; }
.button-outline { color: var(--text); background: #172234; border-color: #4e6178; }
.button-outline:hover { background: #25354a; border-color: #8297b1; }
.button-quiet { padding-inline: .45rem; color: var(--text); text-decoration: underline; text-underline-offset: .23em; }
.button-quiet:hover { color: var(--gold-strong); }
.text-link { color: var(--gold-strong); font-weight: 800; text-underline-offset: .2em; }
.text-link:hover { color: #ffe7ae; }

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 73% 34%, #27374d 0%, transparent 53%),
    radial-gradient(ellipse at 17% 46%, #332920 0%, transparent 47%), var(--page);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, .91fr) minmax(0, 1.14fr);
  grid-template-areas: "intro cover" "convert cover";
  grid-template-rows: auto 1fr;
  align-items: center;
  gap: 1.4rem clamp(1.5rem, 4vw, 4rem);
  padding-block: clamp(4.25rem, 8.2vw, 7.5rem) clamp(3.5rem, 7vw, 6.5rem);
}
.hero-intro { grid-area: intro; align-self: end; }
.hero-convert { grid-area: convert; align-self: start; }
.hero h1 em { color: var(--gold-strong); font-style: normal; }
.hero-description {
  max-width: 32rem;
  margin-top: 1.2rem;
  color: #d8e0ea;
  font-size: clamp(1.025rem, 1.4vw, 1.19rem);
  line-height: 1.5;
}
.hero-actions, .social-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem .85rem;
}
.guest-note { margin-top: .65rem; color: var(--muted); font-size: .91rem; }
.store-links { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-top: 1.25rem; }
.store-link { display: inline-grid; place-items: center; min-height: 2.75rem; border-radius: .35rem; }
.store-link img { width: auto; height: 40px; }
.store-link-google img { width: 155px; height: 60px; }
.app-open { margin-top: .42rem; color: var(--muted); font-size: .875rem; }
.app-open a { color: var(--gold-strong); text-underline-offset: .16em; }
.hero-figure { grid-area: cover; min-width: 0; }
.hero-frame {
  padding: .45rem;
  overflow: hidden;
  border: 1px solid #697283;
  border-radius: 1.05rem;
  background: linear-gradient(150deg, #384658, #141e2e 55%, #303c4e);
  box-shadow: 0 2rem 5rem #020509a9, 0 0 3rem #891e0818;
}
.hero-frame img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border: 1px solid #0d1624; border-radius: .64rem; }
.hero-figure figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .6rem;
  margin: .55rem .2rem 0;
  color: #c4d0df;
  font-size: .83rem;
  font-weight: 700;
}
.hero-facts { background: #111b2a; border-block: 1px solid #303c4a; }
.hero-facts ul { display: grid; grid-template-columns: repeat(3, 1fr); margin-block: 0; padding: 0; list-style: none; }
.hero-facts li { display: grid; gap: .18rem; padding: 1.15rem 1.5rem; border-inline-start: 1px solid #303c4a; }
.hero-facts li:last-child { border-inline-end: 1px solid #303c4a; }
.hero-facts strong { color: #f7dfaf; font: 700 1.43rem/1.1 var(--display); letter-spacing: .015em; }
.hero-facts span { color: var(--muted); font-size: .91rem; }

.gameplay-glance {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  align-items: center;
  gap: clamp(1rem, 5vw, 4rem);
  margin-bottom: 1.65rem;
}
.gameplay-glance .section-heading { margin: 0; }
.gameplay-glance img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: .65rem;
}
.gameplay-glance figcaption { margin-top: .45rem; color: var(--muted); font-size: .875rem; }

.spell-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.spell-card {
  --spell: #f69a69;
  padding: 1.25rem;
  background: linear-gradient(150deg, #213047, var(--surface) 62%);
  border: 1px solid var(--line);
  border-top: 2px solid var(--spell);
  border-radius: .5rem;
}
.spell-bolt { --spell: #f8d275; }
.spell-frost { --spell: #8ec9ff; }
.spell-heal { --spell: #90ddb0; }
.spell-card h3 { color: var(--spell); }
.spell-card p { margin-top: .55rem; color: var(--muted); }
.tactics-note {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .55rem 1.25rem;
  margin-top: 1.1rem;
  color: var(--muted);
}
.tactics-note strong { color: var(--text); }

.eras {
  background: radial-gradient(ellipse at 78% 20%, #29374b 0%, transparent 68%), #151e2c;
  border-block: 1px solid #273648;
}
.era-tabs { display: flex; flex-wrap: wrap; gap: .42rem; margin-bottom: .9rem; }
.era-tabs button {
  min-height: 2.8rem;
  padding: .45rem .85rem;
  color: #d9e3ee;
  background: #172233;
  border: 1px solid #43526a;
  border-radius: .38rem;
  font-weight: 700;
}
.era-tabs button:hover { border-color: #9aaac0; }
.era-tabs button[aria-selected="true"] { color: #251905; background: var(--gold); border-color: var(--gold); }
.era-panels { display: grid; gap: .75rem; }
.era-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.82fr) minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
  background: #101b2a;
  border: 1px solid #43526a;
  border-radius: .72rem;
}
.era-panel img { width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; background: #080e18; }
.era-panel div { padding: clamp(1rem, 3.25vw, 2.6rem); }
.era-panel h3 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); }
.era-panel p { margin: .62rem 0 .85rem; color: var(--muted); }
.frontier-note { margin-top: 1.05rem; color: var(--muted); }

.modes-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .85rem; }
.mode-card {
  grid-column: span 2;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: .56rem;
}
.mode-conquest, .mode-online {
  grid-column: span 3;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: linear-gradient(140deg, #27364c, #162234 75%);
}
.mode-conquest h3, .mode-online h3 { font-size: clamp(2rem, 3.25vw, 2.55rem); }
.mode-card p { max-width: 30rem; margin-top: .5rem; color: var(--muted); }
.mode-card a { display: inline-block; margin-top: .65rem; }
.section-link { margin-top: 1.15rem; }

.social {
  background: radial-gradient(ellipse at 81% 48%, #493125 0%, transparent 65%), #251f23;
  border-block: 1px solid #55443a;
}
.social-inner { display: grid; grid-template-columns: minmax(0, 1.23fr) minmax(0, .82fr); gap: clamp(1.6rem, 6vw, 6rem); align-items: center; }
.social-copy > p:not(.eyebrow, .feedback) { margin-top: .8rem; max-width: 35rem; color: #e2d9d1; }
.social-actions { margin-top: 1.25rem; }
.social .button-outline { background: #35282a; border-color: #9a7660; }
.social .button-outline:hover { background: #514037; border-color: #dab390; }
.room-card { padding: clamp(1.2rem, 3.5vw, 2rem); background: #211c23; border: 1px solid #8e6750; border-radius: .73rem; }
.room-card h3 { font-size: clamp(1.9rem, 3.3vw, 2.55rem); }
.room-card form { margin-block: .95rem 1rem; }
.room-card form + form { padding-top: .95rem; border-top: 1px solid #604a49; }
.room-card form p { margin-top: .2rem; color: #ded3cd; }
.room-card label, .copy-fallback { display: block; font-size: .92rem; font-weight: 800; }
.room-fields { display: grid; grid-template-columns: minmax(5rem, 1fr) auto; align-items: stretch; gap: .55rem; margin-top: .35rem; }
.room-fields input, .copy-fallback input {
  min-width: 0;
  width: 100%;
  padding: .55rem .7rem;
  color: var(--text);
  background: #100e16;
  border: 1px solid #937a79;
  border-radius: .38rem;
  font-size: 1.05rem;
}
.room-fields input { font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.room-fields input::placeholder { color: #b3a5aa; }
.feedback, .copy-fallback { margin-top: .7rem; color: #f3daad; }
.feedback:empty { margin: 0; }
.copy-fallback input { display: block; max-width: 24rem; margin-top: .3rem; }

.warfare {
  background: radial-gradient(ellipse at 83% 25%, #253b39, transparent 65%), #121d24;
  border-bottom: 1px solid #354846;
}
.warfare-grid {
  display: grid;
  grid-template-columns: minmax(0, .83fr) minmax(0, 1.25fr);
  grid-template-areas: "copy trailer" "access trailer";
  grid-template-rows: 1fr 1fr;
  gap: .9rem clamp(1.35rem, 6vw, 5rem);
}
.warfare-copy { grid-area: copy; align-self: end; }
.warfare-copy > p:not(.eyebrow) { margin-top: .75rem; color: #ccd7d4; }
.warfare-access { grid-area: access; align-self: start; color: #ccd7d4; }
.warfare-link { display: inline-flex; align-items: center; min-height: 2.75rem; margin-top: .3rem; }
.warfare-media { grid-area: trailer; min-width: 0; align-self: center; }
.trailer-frame {
  overflow: hidden;
  aspect-ratio: 1080 / 608;
  border: 1px solid #5b6c62;
  border-radius: .68rem;
  background: #0c161c;
  box-shadow: 0 15px 38px #060c1080;
}
.trailer-frame video, .trailer-frame picture, .trailer-frame img, .trailer-cover {
  display: block;
  width: 100%;
  height: 100%;
}
.trailer-frame img { object-fit: cover; }
.trailer-frame video { object-fit: contain; }
.trailer-cover { position: relative; text-decoration: none; }
.trailer-cover:focus-visible { outline-offset: -5px; }
.trailer-button {
  position: absolute;
  inset: auto auto clamp(.7rem, 4vw, 1.35rem) clamp(.7rem, 4vw, 1.35rem);
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  gap: .65rem;
  padding: .55rem .9rem;
  color: #201505;
  background: var(--gold);
  border: 1px solid #ffdb92;
  border-radius: .45rem;
  box-shadow: 0 4px 18px #081010b0;
  font-weight: 800;
}
.trailer-cover:hover .trailer-button { background: #ffe09d; }
.trailer-triangle { width: 0; height: 0; border-block: .38rem solid transparent; border-left: .57rem solid currentColor; }
.warfare-media figcaption { margin-top: .55rem; color: #c4d2cc; font-size: .88rem; }
.trailer-fallback { margin-top: .5rem; }
.forge-strip { margin-block: clamp(3rem, 6vw, 5rem); padding: clamp(1.15rem, 3.5vw, 1.8rem); background: var(--surface); border: 1px solid var(--line); border-radius: .55rem; }
.forge-strip h2 { font-size: clamp(2rem, 4vw, 2.6rem); }
.forge-strip p { max-width: 43rem; margin-top: .6rem; color: var(--muted); }

.faq { padding-top: .5rem; }
.faq .section-heading { margin-bottom: 1.1rem; }
.faq-list { max-width: 51rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { min-height: 2.75rem; padding-block: .72rem; color: #eee8dd; font-weight: 800; cursor: pointer; }
.faq details p { margin: .15rem 0 .95rem; color: var(--muted); }

.final-cta {
  padding-block: clamp(2.7rem, 6.5vw, 4.25rem);
  background: radial-gradient(ellipse at 15% 45%, #453121 0%, transparent 60%), #1f242d;
  border-block: 1px solid #41404a;
}
.final-cta > div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.2rem; }
.site-footer { padding-block: 1.65rem calc(2.2rem + env(safe-area-inset-bottom)); background: #090f19; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.7rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .65rem 1rem; }
.site-footer nav a, .site-footer small { color: var(--muted); font-size: .88rem; }
.site-footer nav a { text-underline-offset: .18em; }
.site-footer nav a:hover { color: var(--gold-strong); }

@media (max-width: 58rem) {
  .hero-inner { column-gap: 1.5rem; }
  .spell-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-inner { gap: .85rem; }
  .site-nav { gap: .8rem; }
  .site-nav a { font-size: .85rem; }
}

@media (max-width: 50rem) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "intro" "cover" "convert";
    grid-template-rows: auto;
    padding-block: 2.2rem 1.8rem;
    gap: .9rem;
  }
  .hero-frame img { aspect-ratio: 8 / 5; }
  h1 { font-size: clamp(3.3rem, 9vw, 5.05rem); }
}

@media (max-width: 44rem) {
  html { scroll-padding-top: calc(4.6rem + env(safe-area-inset-top)); }
  .shell { width: min(calc(100% - 2rem), 76rem); }
  .section { padding-block: 3.25rem; }
  .faq { padding-top: .5rem; }
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; min-height: 3.75rem; gap: .55rem; }
  .brand { font-size: 1.3rem; }
  .header-inner .brand { white-space: normal; width: fit-content; }
  .header-inner .brand img { width: 36px; height: 36px; }
  .site-nav { display: none; }
  .site-menu { display: block; }
  .site-menu summary {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    padding-inline: .5rem;
    border-radius: .45rem;
    cursor: pointer;
    list-style: none;
    font-size: .9rem;
    font-weight: 800;
  }
  .site-menu summary::-webkit-details-marker { display: none; }
  .site-menu[open] summary { color: var(--gold); background: var(--surface); }
  .site-menu:not([open]) nav { display: none; }
  .site-menu nav {
    position: absolute;
    inset: 100% 1rem auto;
    display: grid;
    max-height: calc(100dvh - 4.6rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overflow-y: auto;
    padding: .3rem .75rem;
    border: 1px solid var(--line);
    border-radius: .55rem;
    background: #152032;
    box-shadow: 0 12px 28px #060b13b0;
  }
  .site-menu nav a { display: flex; align-items: center; min-height: 2.75rem; padding-inline: .25rem; font-weight: 700; text-decoration: none; }
  .site-menu nav a + a { border-top: 1px solid var(--line); }
  .header-inner .button-small { padding-inline: .62rem; }
  .warfare-grid, .social-inner, .gameplay-glance { grid-template-columns: minmax(0, 1fr); }
  .warfare-grid { grid-template-areas: "copy" "trailer" "access"; grid-template-rows: auto; gap: .95rem; }
  .trailer-frame { aspect-ratio: 4 / 5; }
  .hero-inner { padding-block: 1.55rem 1.45rem; }
  .hero-intro .eyebrow { margin-bottom: .5rem; }
  .hero-description { margin-top: .7rem; }
  h1 { font-size: clamp(2.7rem, 11.2vw, 5.05rem); }
  h2 { font-size: clamp(2.35rem, 9.4vw, 3.4rem); }
  .hero-frame { padding: .27rem; border-radius: .78rem; }
  .hero-frame img { border-radius: .5rem; }
  .hero-figure figcaption { margin-top: .1rem; }
  .hero-figure figcaption .text-link { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .hero-convert .button-primary { min-height: 3.1rem; }
  .store-links { margin-top: .55rem; }
  .tactics-note > a, .mode-card > a, .section-link > a, .room-card > a, .era-panel .text-link, .site-footer nav a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
  }
  .site-footer nav { row-gap: 0; }
  .hero-facts li { padding: .8rem .58rem; }
  .hero-facts strong { font-size: 1.18rem; }
  .hero-facts span { font-size: .8rem; line-height: 1.3; }
  .era-panel { grid-template-columns: minmax(0, 1fr); }
  .era-panel div { padding: 1.1rem 1.2rem 1.25rem; }
  .modes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mode-card { grid-column: auto; }
}

@media (max-width: 25rem) {
  .hero-actions { gap: .35rem .55rem; }
  .hero-actions .button { font-size: .87rem; }
  .hero-actions .button-primary { padding-inline: .7rem; }
  .spell-grid, .modes-grid { gap: .65rem; }
  .spell-card, .mode-card { padding: .8rem; }
  .spell-card h3, .mode-card h3 { font-size: 1.72rem; }
  .spell-card p, .mode-card p { font-size: .94rem; }
}

@media (max-width: 23rem) {
  .header-inner .brand { gap: .45rem; font-size: 1.07rem; }
  .header-inner .brand img { width: 31px; height: 31px; }
  .hero-inner { gap: .55rem; padding-top: 1.15rem; }
  .hero-frame img { aspect-ratio: 16 / 9; }
  .modes-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (orientation: landscape) and (max-height: 32rem) {
  .hero-inner { padding-block: 1.7rem 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}
