@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Spectral:ital,wght@0,300;0,400;0,500;1,300;1,400&family=IBM+Plex+Sans+Condensed:wght@400;500;600&display=swap');

/* ═══════════════════════════════════════════════════════════════════════
   WARMASTERS — marketing site
   The war table: a green-black ground, gilt rules, parchment light.
   Single deliberate theme — this is a game brand, not a document.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  /* Ground — neutrals biased green-black, taken from the game shell (#10130f) */
  --ink:        #090c09;
  --ink-2:      #0d110c;
  --iron:       #13180f;
  --iron-hi:    #1c2217;
  --iron-edge:  #2a3222;

  /* Light */
  --gold:       #c9a13b;   /* High Kingdom / brand */
  --gold-hi:    #e9cf8a;
  --parchment:  #e7dcc0;
  --bone:       #c6c0ad;
  --bone-dim:   #8b8776;

  /* Faction signals */
  --horde:      #6d8f3f;   /* Ork Horde */
  --blood:      #8c2b21;   /* banner red */

  /* Hairlines & glass */
  --line:       rgba(201, 161, 59, 0.20);
  --line-soft:  rgba(201, 161, 59, 0.10);
  --glass:      rgba(19, 24, 15, 0.72);

  /* Type scale (major third, capped) */
  --t-xs:   0.78rem;
  --t-sm:   0.92rem;
  --t-base: 1.05rem;
  --t-md:   1.22rem;
  --t-lg:   clamp(1.35rem, 1.1rem + 0.9vw, 1.9rem);
  --t-xl:   clamp(1.8rem, 1.3rem + 2.1vw, 3rem);
  --t-2xl:  clamp(2.4rem, 1.5rem + 4vw, 4.6rem);
  --t-hero: clamp(2.8rem, 1.4rem + 6vw, 6.5rem);

  --shell:  min(1280px, 92vw);
  --rail:   min(1080px, 92vw);
  --prose:  62ch;

  --ease:   cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: 'Spectral', Georgia, 'Times New Roman', serif;
  font-size: var(--t-base);
  font-weight: 300;
  line-height: 1.68;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* The war table itself: a faint hex lattice behind every page. */
body::before {
  content: '';
  position: fixed;
  inset: -10vh -10vw;
  z-index: -2;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0 L56 16 L56 48 L28 64 L0 48 L0 16 Z M28 64 L56 80 L56 97 M28 64 L0 80 L0 97' fill='none' stroke='%23c9a13b' stroke-width='1' stroke-opacity='0.10'/%3E%3C/svg%3E");
  background-size: 56px 97px;
  opacity: 0.55;
}

/* A slow ember glow so the ground is never flat black. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(120vw 70vh at 50% -10%, rgba(201, 161, 59, 0.10), transparent 60%),
    radial-gradient(80vw 60vh at 90% 110%, rgba(109, 143, 63, 0.08), transparent 62%);
}

/* `height: auto` matters: without it, an <img> carrying width/height
   attributes keeps the attribute height while CSS overrides the width, and
   the picture is squashed. */
img, video { max-width: 100%; height: auto; display: block; }

::selection { background: rgba(201, 161, 59, 0.32); color: #fff; }

/* ── Typography ─────────────────────────────────────────────────────── */

h1, h2, h3, h4, .display {
  font-family: 'Cinzel', 'Cinzel Decorative', Georgia, serif;
  font-weight: 600;
  color: var(--parchment);
  line-height: 1.12;
  text-wrap: balance;
  margin: 0;
  letter-spacing: 0.005em;
}

h1 { font-size: var(--t-2xl); }
h2 { font-size: var(--t-xl); }
h3 { font-size: var(--t-lg); }
h4 { font-size: var(--t-md); }

p { margin: 0 0 1.15em; max-width: var(--prose); }
p:last-child { margin-bottom: 0; }

a { color: var(--gold-hi); text-decoration-color: rgba(201, 161, 59, 0.4); text-underline-offset: 3px; }
a:hover { color: var(--parchment); }

strong { color: var(--parchment); font-weight: 500; }
em { color: var(--bone); }

.lede {
  font-size: var(--t-md);
  line-height: 1.6;
  color: var(--bone);
  font-weight: 300;
}

/* Utility face: labels, eyebrows, data, buttons */
.eyebrow, .label, .btn, .stat-num, .nav a, .tag, th, .kicker {
  font-family: 'IBM Plex Sans Condensed', 'Helvetica Neue', Arial, sans-serif;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.9rem;
}
.eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  flex: none;
}
.eyebrow.horde { color: var(--horde); }
.eyebrow.horde::before { background: var(--horde); }

.kicker {
  font-size: var(--t-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-dim);
  font-weight: 500;
}

/* ── Shell & sections ───────────────────────────────────────────────── */

.shell { width: var(--shell); margin-inline: auto; }
.rail  { width: var(--rail);  margin-inline: auto; }

section { position: relative; }

.band {
  padding-block: clamp(4.5rem, 9vw, 8.5rem);
}
.band--tight { padding-block: clamp(3rem, 6vw, 5rem); }

/* A hairline rule with a gilt lozenge — the seam between chapters. */
.seam {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 18%, var(--line) 82%, transparent);
  position: relative;
  margin: 0;
  overflow: visible;
}
.seam::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 9px; height: 9px;
  margin: -5px 0 0 -5px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 14px rgba(201, 161, 59, 0.5);
}

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head p { color: var(--bone-dim); }

/* ── Navigation ─────────────────────────────────────────────────────── */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  padding: 0.85rem max(1.2rem, 4vw);
  background: transparent;
  transition: background 0.45s var(--ease), border-color 0.45s var(--ease), backdrop-filter 0.45s;
  border-bottom: 1px solid transparent;
}
.nav.stuck {
  background: rgba(9, 12, 9, 0.88);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom-color: var(--line);
}
.nav-brand { display: flex; align-items: center; gap: 0.7rem; margin-right: auto; text-decoration: none; }
.nav-brand img { height: 34px; width: auto; filter: drop-shadow(0 2px 10px rgba(0,0,0,0.8)); }
.nav-brand span {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--parchment);
}
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a {
  font-size: var(--t-sm);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--bone);
  text-decoration: none;
  padding: 0.35rem 0;
  position: relative;
  font-weight: 500;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--gold);
  transition: right 0.35s var(--ease);
}
.nav-links a:hover::after, .nav-links a[aria-current='page']::after { right: 0; }
.nav-links a[aria-current='page'] { color: var(--gold-hi); }
/* The CTA is a button first, a nav link second — win the colour back, and
   the padding with it: `.nav-links a` above is more specific than `.btn`,
   so without this the CTA renders with no horizontal padding at all. */
.nav-links a.btn { color: var(--gold-hi); padding: 0.7em 1.6em; }
.nav-links a.btn::after { display: none; }
.nav-links a.btn--solid, .nav-links a.btn--solid:hover { color: #16190f; }
.nav-links a.btn:hover { color: #16190f; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--parchment);
  width: 42px; height: 38px;
  border-radius: 3px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 1.5px; background: currentColor; content: ''; position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top:  6px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    inset: 62px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(9, 12, 9, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem max(1.2rem, 4vw) 1.4rem;
    transform: translateY(-120%);
    transition: transform 0.42s var(--ease);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 0.85rem 0; border-bottom: 1px solid var(--line-soft); }
  .nav-links .btn { margin-top: 0.9rem; text-align: center; }
}

/* ── Buttons ────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.85em 1.7em;
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-hi);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  transform: translateY(101%);
  transition: transform 0.42s var(--ease);
  z-index: -1;
}
.btn:hover { color: #16190f; border-color: var(--gold-hi); }
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: translateY(1px); }

.btn--solid { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: #16190f; border-color: var(--gold-hi); }
.btn--solid::before { background: linear-gradient(180deg, #fff0c8, var(--gold-hi)); }
.btn--solid:hover { color: #16190f; }

.btn--ghost { border-color: var(--iron-edge); color: var(--bone); }
.btn--ghost::before { background: rgba(201, 161, 59, 0.14); }
.btn--ghost:hover { color: var(--parchment); border-color: var(--gold); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px;
}

/* Store badges */
.stores { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.25rem 0.6rem 1rem;
  border: 1px solid var(--iron-edge);
  background: linear-gradient(180deg, rgba(28,34,23,0.9), rgba(13,17,12,0.9));
  border-radius: 6px;
  text-decoration: none;
  color: var(--parchment);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s;
}
.store-badge:hover { border-color: var(--gold); transform: translateY(-2px); color: var(--parchment); }
.store-badge svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.store-badge span { display: block; font-family: 'IBM Plex Sans Condensed', sans-serif; line-height: 1.15; }
.store-badge .sb-small { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-dim); }
.store-badge .sb-big { font-size: 1.05rem; font-weight: 600; }

/* ── Hero ───────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  /* Bottom padding must clear the absolutely-placed scroll cue, or the
     platform strip lands on top of it. */
  padding: 6.5rem 0 7.5rem;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: -4%;
  z-index: -2;
  background: url('../img/brand/menu-bg.webp') center/cover no-repeat;
  animation: drift 38s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: scale(1.04) translate3d(-1%, 0, 0); }
  to   { transform: scale(1.13) translate3d(1.5%, -1.5%, 0); }
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 60% at 50% 42%, transparent, rgba(9,12,9,0.55) 72%, var(--ink) 100%),
    linear-gradient(180deg, rgba(9,12,9,0.86) 0%, rgba(9,12,9,0.25) 30%, rgba(9,12,9,0.72) 78%, var(--ink) 100%);
}
.hero-inner { width: var(--rail); }
.hero-logo {
  width: min(560px, 74vw);
  margin: 0 auto 1.4rem;
  filter: drop-shadow(0 12px 40px rgba(0,0,0,0.9));
  animation: logo-settle 1.5s var(--ease) both;
}
@keyframes logo-settle {
  from { opacity: 0; transform: translateY(26px) scale(0.94); filter: blur(6px) drop-shadow(0 12px 40px rgba(0,0,0,0.9)); }
  to   { opacity: 1; transform: none; filter: blur(0) drop-shadow(0 12px 40px rgba(0,0,0,0.9)); }
}
.hero h1 {
  font-size: clamp(1.75rem, 1.15rem + 2.5vw, 3.2rem);
  letter-spacing: 0.02em;
  margin-bottom: 0.7rem;
  max-width: 22ch;
  margin-inline: auto;
}
.hero-sub {
  font-size: clamp(1rem, 0.9rem + 0.45vw, 1.28rem);
  color: var(--bone);
  max-width: 52ch;
  margin: 0 auto 2rem;
}
.hero .btn-row { justify-content: center; }
.hero-meta {
  margin-top: 1.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.8rem;
  justify-content: center;
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: var(--t-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 0.5em; }
.hero-meta span::before { content: ''; width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); }

.scroll-cue {
  position: absolute;
  bottom: 1.8rem; left: 50%;
  transform: translateX(-50%);
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bone-dim);
  text-decoration: none;
  display: grid;
  justify-items: center;
  gap: 0.6rem;
}
.scroll-cue::after {
  content: '';
  width: 1px; height: 40px;
  background: linear-gradient(var(--gold), transparent);
  animation: cue 2.6s ease-in-out infinite;
}
@keyframes cue { 0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }

/* Page header for interior pages */
.page-head {
  padding: clamp(8rem, 14vw, 11rem) 0 clamp(3rem, 6vw, 4.5rem);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}
/* Backdrop art is a real <img> so its src resolves against the page, not
   this stylesheet — inline url() in a custom property would resolve here. */
.page-head-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.30;
  filter: saturate(0.75);
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 92%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 92%);
  pointer-events: none;
}
.page-head h1 { font-size: var(--t-2xl); margin-bottom: 0.8rem; }
.page-head .lede { max-width: 52ch; }

/* ── Panels, cards, grids ───────────────────────────────────────────── */

.panel {
  background: linear-gradient(180deg, rgba(28,34,23,0.62), rgba(13,17,12,0.78));
  border: 1px solid var(--iron-edge);
  border-radius: 4px;
  padding: clamp(1.4rem, 2.6vw, 2.2rem);
  position: relative;
}
/* Gilt corner ticks — the game's card frame, abstracted. */
.panel--gilt::before, .panel--gilt::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--gold);
  opacity: 0.55;
}
.panel--gilt::before { top: 7px; left: 7px; border-right: 0; border-bottom: 0; }
.panel--gilt::after  { bottom: 7px; right: 7px; border-left: 0; border-top: 0; }

.grid { display: grid; gap: clamp(1rem, 2vw, 1.6rem); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 940px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Split: prose beside a demo/spec card */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split--reverse > :first-child { order: 2; }
@media (max-width: 1000px) {
  .split { grid-template-columns: 1fr; gap: 2.4rem; }
  .split--reverse > :first-child { order: 0; }
}

/* Feature card */
.card {
  background: linear-gradient(180deg, rgba(28,34,23,0.5), rgba(13,17,12,0.72));
  border: 1px solid var(--iron-edge);
  border-radius: 4px;
  padding: clamp(1.3rem, 2.2vw, 1.8rem);
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), background 0.4s;
}
.card:hover { border-color: rgba(201,161,59,0.42); transform: translateY(-3px); }
.card h3 { font-size: var(--t-md); margin-bottom: 0.55rem; }
.card p { font-size: var(--t-sm); color: var(--bone-dim); max-width: none; }
.card-icon {
  width: 46px; height: 46px;
  margin-bottom: 1rem;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  color: var(--gold);
  transform: rotate(45deg);
}
.card-icon svg { width: 22px; height: 22px; transform: rotate(-45deg); fill: none; stroke: currentColor; stroke-width: 1.4; }

/* Media frame — screenshots sit in an iron frame, never bare */
.frame {
  border: 1px solid var(--iron-edge);
  border-radius: 4px;
  overflow: hidden;
  background: var(--ink-2);
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
  position: relative;
}
.frame img { width: 100%; height: auto; }
.frame figcaption {
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-dim);
  padding: 0.7rem 1rem;
  border-top: 1px solid var(--line-soft);
  background: rgba(9,12,9,0.7);
}

/* ── Reveal on scroll ───────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.reveal.seen { opacity: 1; transform: none; }
.reveal[data-delay='1'] { transition-delay: 0.09s; }
.reveal[data-delay='2'] { transition-delay: 0.18s; }
.reveal[data-delay='3'] { transition-delay: 0.27s; }
.reveal[data-delay='4'] { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg, .scroll-cue::after, .hero-logo { animation: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.06s !important; }
}

/* ── Ruleset switch (the site's thesis control) ─────────────────────── */

.switch {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--iron-edge);
  border-radius: 3px;
  background: rgba(9,12,9,0.7);
  position: relative;
}
.switch button {
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.6em 1.5em;
  border: 0;
  background: none;
  color: var(--bone-dim);
  cursor: pointer;
  border-radius: 2px;
  transition: color 0.3s var(--ease);
  position: relative;
  z-index: 1;
}
.switch button[aria-pressed='true'] { color: #16190f; }
.switch-thumb {
  position: absolute;
  top: 4px; bottom: 4px;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  border-radius: 2px;
  transition: left 0.45s var(--ease), width 0.45s var(--ease);
  z-index: 0;
}

.rules-note {
  font-size: var(--t-sm);
  color: var(--bone-dim);
  margin-top: 0.9rem;
}

/* Anything that only exists in one ruleset */
[data-only] { transition: opacity 0.4s var(--ease); }
body[data-ruleset='basic'] [data-only='advanced'] { display: none; }
body[data-ruleset='advanced'] [data-only='basic'] { display: none; }

/* ── Demo: hex board ────────────────────────────────────────────────── */

.demo {
  background: linear-gradient(180deg, rgba(24,30,19,0.72), rgba(10,13,9,0.9));
  border: 1px solid var(--iron-edge);
  border-radius: 4px;
  overflow: hidden;
}
.demo-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(9,12,9,0.6);
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.demo-bar .dot { width: 8px; height: 8px; transform: rotate(45deg); background: var(--gold); flex: none; }
.demo-bar .spacer { margin-left: auto; }
.demo-bar select {
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--parchment);
  background: rgba(9, 12, 9, 0.9);
  border: 1px solid var(--iron-edge);
  border-radius: 2px;
  padding: 0.35rem 0.5rem;
  max-width: 46vw;
}
.demo-bar select:focus { outline: none; border-color: var(--gold); }
.demo canvas { display: block; width: 100%; height: auto; touch-action: manipulation; cursor: pointer; }
.demo-foot {
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--line-soft);
  font-size: var(--t-sm);
  color: var(--bone-dim);
  min-height: 3.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.demo-foot b { color: var(--gold-hi); font-weight: 500; }

.legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; margin-top: 1rem; }
.legend span {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.legend i { width: 14px; height: 14px; border-radius: 2px; display: block; }
.legend img {
  width: 30px;
  height: auto;
  flex: none;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
}

/* ── Demo: dice ─────────────────────────────────────────────────────── */

.dice-stage {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(0.8rem, 2vw, 2rem);
  align-items: start;
  padding: clamp(1.1rem, 2.4vw, 1.8rem);
}
.dice-side { display: grid; gap: 0.7rem; justify-items: center; text-align: center; }
.dice-side .who {
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: var(--t-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.dice-side .who b { display: block; font-size: var(--t-sm); letter-spacing: 0.1em; color: var(--parchment); font-weight: 600; }
.dice-side img.portrait {
  width: 84px; height: 84px;
  object-fit: cover;
  border: 1px solid var(--iron-edge);
  border-radius: 3px;
  filter: saturate(0.9);
}
.dice-row { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; min-height: 46px; }
.die {
  width: 40px; height: 40px;
  border-radius: 5px;
  display: grid; place-items: center;
  background: linear-gradient(155deg, #e9e3d0, #b9b19a);
  color: #23261c;
  border: 1px solid #6d6752;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.18), 0 3px 8px rgba(0,0,0,0.5);
  animation: tumble 0.5s var(--ease) both;
}
.die svg { width: 24px; height: 24px; }
.die.blank { background: linear-gradient(155deg, #4a4f3f, #33372b); border-color: #23261c; }
.die.skull  { background: linear-gradient(155deg, #f0e7cf, #c4b899); }
.die.shield { background: linear-gradient(155deg, #cfd8e4, #93a1b3); }
@keyframes tumble {
  from { opacity: 0; transform: rotate(-140deg) scale(0.4); }
  to   { opacity: 1; transform: none; }
}
.dice-mid { display: grid; justify-items: center; gap: 0.5rem; align-self: center; }
.dice-result {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.6rem);
  color: var(--parchment);
  line-height: 1;
  text-align: center;
  min-height: 1em;
}
.dice-result small {
  display: block;
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin-top: 0.5rem;
}
.dice-maths {
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: var(--t-sm);
  color: var(--bone-dim);
  text-align: center;
  padding: 0 1rem 1.2rem;
  min-height: 2.6rem;
}
.dice-maths b { color: var(--gold-hi); font-weight: 600; }
@media (max-width: 560px) {
  .dice-stage { grid-template-columns: 1fr; }
  .dice-mid { order: 3; }
}

/* ── Stat blocks ────────────────────────────────────────────────────── */

.statline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 1px;
  background: var(--iron-edge);
  border: 1px solid var(--iron-edge);
  border-radius: 3px;
  overflow: hidden;
}
.statline div {
  background: var(--iron);
  padding: 0.75rem 0.6rem;
  text-align: center;
}
.statline .stat-num {
  display: block;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--gold-hi);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.statline .stat-lab {
  display: block;
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin-top: 0.4rem;
}

/* ── Tables ─────────────────────────────────────────────────────────── */

.table-wrap { overflow-x: auto; border: 1px solid var(--iron-edge); border-radius: 4px; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { padding: 0.85rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th {
  font-size: var(--t-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  background: rgba(9,12,9,0.6);
  white-space: nowrap;
}
td { font-size: var(--t-sm); color: var(--bone); }
td:first-child { color: var(--parchment); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background 0.3s var(--ease); }
tbody tr:hover { background: rgba(201,161,59,0.045); }
.num { font-variant-numeric: tabular-nums; text-align: center; }

/* ── Faction split ──────────────────────────────────────────────────── */

.factions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--iron-edge);
  border: 1px solid var(--iron-edge);
  border-radius: 4px;
  overflow: hidden;
}
@media (max-width: 820px) { .factions { grid-template-columns: 1fr; } }
.faction {
  position: relative;
  padding: clamp(1.8rem, 3.5vw, 3rem);
  background: var(--ink-2);
  overflow: hidden;
  isolation: isolate;
}
.faction-bg {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.18;
  transition: opacity 0.6s var(--ease), transform 0.8s var(--ease);
  transform: scale(1.02);
  pointer-events: none;
}
.faction:hover .faction-bg { opacity: 0.30; transform: scale(1.08); }
.faction::after {
  content: '';
  position: absolute; inset: auto 0 0 0; height: 3px; z-index: 1;
  background: var(--fac-colour);
}
/* Crests ship as square emblems — ring them so they read as heraldry. */
.faction-crest {
  width: 76px; height: 76px;
  margin-bottom: 1.2rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--fac-colour, var(--gold));
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.75);
}
.faction h3 { color: var(--fac-colour); margin-bottom: 0.35rem; }
.faction .kicker { margin-bottom: 1rem; display: block; }
.faction ul { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 0.45rem; }
.faction li {
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: var(--t-sm);
  color: var(--bone);
  display: flex; align-items: baseline; gap: 0.6em;
}
.faction li::before { content: ''; width: 5px; height: 5px; background: var(--fac-colour); transform: rotate(45deg); flex: none; }

/* ── Faction scroller ───────────────────────────────────────────────── */

.scroller-head {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 1.6rem;
}
.scroller-head .section-head { margin-bottom: 0; }
.scroller-nav { margin-left: auto; display: flex; gap: 0.5rem; flex: none; }
.scroller-nav button {
  width: 44px; height: 44px;
  border: 1px solid var(--iron-edge);
  background: rgba(9,12,9,0.7);
  color: var(--gold);
  border-radius: 2px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background 0.3s;
}
.scroller-nav button:hover:not(:disabled) { border-color: var(--gold); background: rgba(201,161,59,0.12); }
.scroller-nav button:disabled { opacity: 0.3; cursor: default; }
.scroller-nav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
@media (max-width: 620px) { .scroller-nav { display: none; } }

.scroller-wrap { position: relative; }
.scroller-wrap::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 14px;
  width: 90px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--ink));
}
.scroller {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--iron-edge) transparent;
}
.scroller::-webkit-scrollbar { height: 4px; }
.scroller::-webkit-scrollbar-track { background: var(--iron); }
.scroller::-webkit-scrollbar-thumb { background: var(--iron-edge); }
.scroller::-webkit-scrollbar-thumb:hover { background: var(--gold); }

.fac-card {
  flex: 0 0 clamp(240px, 27vw, 320px);
  scroll-snap-align: start;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--iron-edge);
  border-radius: 4px;
  overflow: hidden;
  background: var(--ink-2);
  text-decoration: none;
  color: inherit;
  isolation: isolate;
  transition: border-color 0.4s var(--ease), transform 0.5s var(--ease);
}
.fac-card:hover { border-color: var(--fac-colour, var(--gold)); transform: translateY(-4px); color: inherit; }
.fac-card-art {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: linear-gradient(160deg, var(--iron-hi), #0a0d0a);
  display: grid;
  place-items: center;
}
.fac-card-art > img.art {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.5;
  transition: transform 0.8s var(--ease), opacity 0.6s var(--ease);
}
.fac-card:hover .fac-card-art > img.art { transform: scale(1.06); opacity: 0.68; }
.fac-card-art::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(9,12,9,0.25), rgba(9,12,9,0.9));
}
.fac-crest {
  position: relative;
  z-index: 1;
  width: 86px; height: 86px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--fac-colour, var(--gold));
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.85);
}
/* Unreleased armies get a sealed-orders mark, never fake art */
.fac-seal {
  position: relative;
  z-index: 1;
  width: 78px; height: 78px;
  border: 1px solid var(--fac-colour, var(--gold));
  transform: rotate(45deg);
  display: grid;
  place-items: center;
  opacity: 0.75;
}
.fac-seal span {
  transform: rotate(-45deg);
  font-family: 'Cinzel', serif;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--fac-colour, var(--gold));
}
.fac-card-body { padding: 1.15rem 1.2rem 1.35rem; display: grid; align-content: start; gap: 0.45rem; }
.fac-card-body h3 { font-size: var(--t-base); color: var(--fac-colour, var(--parchment)); }
.fac-card-body p { font-size: var(--t-sm); color: var(--bone-dim); max-width: none; margin: 0; }
.fac-status {
  position: absolute;
  top: 0.8rem; left: 0.8rem;
  z-index: 2;
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.28rem 0.62rem;
  background: rgba(9,12,9,0.88);
  border: 1px solid var(--line);
  color: var(--gold);
  border-radius: 2px;
}
.fac-status--soon { color: var(--bone-dim); border-color: var(--iron-edge); }

/* ── Roster grid ────────────────────────────────────────────────────── */

.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 1px; background: var(--iron-edge); border: 1px solid var(--iron-edge); }
.roster figure {
  margin: 0;
  background: var(--ink-2);
  padding: 1rem 0.6rem 0.9rem;
  text-align: center;
  transition: background 0.35s var(--ease);
}
.roster figure:hover { background: var(--iron-hi); }
.roster img { width: 62px; height: 62px; object-fit: contain; margin: 0 auto 0.6rem; image-rendering: -webkit-optimize-contrast; }
.roster figcaption {
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--parchment);
  line-height: 1.25;
}
.roster .cv {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin-top: 0.25rem;
  font-variant-numeric: tabular-nums;
}

/* ── Campaign cards ─────────────────────────────────────────────────── */

.camp {
  position: relative;
  border: 1px solid var(--iron-edge);
  border-radius: 4px;
  overflow: hidden;
  background: var(--ink-2);
  display: grid;
  grid-template-rows: auto 1fr;
  transition: border-color 0.4s var(--ease), transform 0.5s var(--ease);
}
.camp:hover { border-color: rgba(201,161,59,0.45); transform: translateY(-4px); }
.camp-art { position: relative; aspect-ratio: 3 / 4; overflow: hidden; }
.camp-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.camp:hover .camp-art img { transform: scale(1.05); }
.camp-art::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(9,12,9,0.92));
}
.camp-body { padding: 1.3rem 1.4rem 1.6rem; position: relative; }
.camp-body h3 { font-size: var(--t-md); margin-bottom: 0.5rem; }
.camp-body p { font-size: var(--t-sm); color: var(--bone-dim); max-width: none; }
.camp-tag {
  position: absolute;
  top: 0.9rem; left: 0.9rem;
  z-index: 2;
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  background: rgba(9,12,9,0.85);
  border: 1px solid var(--line);
  color: var(--gold);
  border-radius: 2px;
}

/* ── Device showcase ────────────────────────────────────────────────── */

.devices {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
}
@media (max-width: 780px) { .devices { grid-template-columns: 1fr; } }
.device {
  position: relative;
  border-radius: 22px;
  border: 2px solid #2c3326;
  background: #05070a;
  padding: 8px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7), inset 0 0 0 1px rgba(201,161,59,0.12);
}
.device { margin: 0; }
.device--tablet { border-radius: 18px; }
.device--phone {
  border-radius: 30px;
  padding: 7px 16px;      /* landscape phone: fat bezels on the short edges */
  max-width: 420px;
  margin-left: auto;
}
.device img { border-radius: 12px; width: 100%; }
.device--phone img { border-radius: 18px; }
/* The speaker slot sits on the left edge — this is a landscape-locked game. */
.device--phone::after {
  content: '';
  position: absolute;
  left: 7px; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 46px;
  background: #11150f;
  border-radius: 3px;
}
/* In flow, not absolute — an absolute caption escapes the frame and can
   widen the page on narrow screens. */
.device figcaption {
  padding-top: 0.9rem;
  text-align: center;
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

/* ── Add-ons / IAP ──────────────────────────────────────────────────── */

.addon {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: center;
  padding: clamp(1.2rem, 2.4vw, 1.8rem);
  border: 1px solid var(--iron-edge);
  border-radius: 4px;
  background: linear-gradient(100deg, rgba(28,34,23,0.6), rgba(13,17,12,0.75));
  transition: border-color 0.4s var(--ease);
}
.addon:hover { border-color: rgba(201,161,59,0.4); }
.addon-thumb {
  width: 84px; height: 84px;
  border-radius: 3px;
  object-fit: cover;
  border: 1px solid var(--iron-edge);
}
/* An unreleased pack has no art yet — show a sealed mark, never a stand-in
   from another army. */
.addon-seal {
  width: 84px; height: 84px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 3px;
  border: 1px solid var(--iron-edge);
  background: linear-gradient(160deg, var(--iron-hi), #0a0d0a);
  font-family: 'Cinzel', serif;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--pack-colour, var(--gold));
  box-shadow: inset 0 0 0 5px rgba(9, 12, 9, 0.85), inset 0 0 0 6px rgba(201, 161, 59, 0.18);
}
.addon h3 { font-size: var(--t-md); margin-bottom: 0.3rem; }
.addon p { font-size: var(--t-sm); color: var(--bone-dim); max-width: 52ch; margin: 0; }
.addon-price {
  font-family: 'Cinzel', serif;
  font-size: var(--t-md);
  color: var(--gold-hi);
  white-space: nowrap;
}
.addon-price small {
  display: block;
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin-top: 0.3rem;
}
@media (max-width: 680px) {
  .addon { grid-template-columns: auto 1fr; }
  .addon-price { grid-column: 2; text-align: left; }
}

.tag {
  display: inline-block;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--gold);
  margin-right: 0.4rem;
}
.tag--soon { color: var(--bone-dim); border-color: var(--iron-edge); }
.tag--free { color: var(--horde); border-color: rgba(109,143,63,0.4); }

/* ── Timeline (updates) ─────────────────────────────────────────────── */

.timeline { position: relative; display: grid; gap: clamp(2rem, 4vw, 3rem); }
.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--gold), var(--line-soft) 70%, transparent);
}
@media (max-width: 700px) { .timeline::before { left: 6px; } }
.entry { position: relative; padding-left: 2.6rem; }
.entry::before {
  content: '';
  position: absolute;
  left: 1px; top: 0.55rem;
  width: 13px; height: 13px;
  background: var(--ink);
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}
.entry.current::before { background: var(--gold); box-shadow: 0 0 12px rgba(201,161,59,0.6); }
.entry-date {
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: var(--t-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-dim);
  display: block;
  margin-bottom: 0.35rem;
}
.entry h3 { font-size: var(--t-md); margin-bottom: 0.7rem; }
.entry ul { margin: 0.9rem 0 0; padding-left: 1.1rem; display: grid; gap: 0.4rem; }
.entry li { font-size: var(--t-sm); color: var(--bone); }
.entry li::marker { color: var(--gold); }

/* ── Character portraits ────────────────────────────────────────────── */
/* Drop a painting at assets/img/characters/<slug>.webp and it appears.
   Until then the frame shows a monogram plate — site.js flags a missing
   file by putting .is-empty on the frame. */

.portrait { margin: 0 0 1.3rem; max-width: 230px; }
.portrait-frame {
  display: block;
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 3px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(201, 161, 59, 0.10), transparent 60%),
    linear-gradient(170deg, #1d2318, #0b0e0a);
  box-shadow: inset 0 0 0 1px var(--iron-edge), inset 0 0 0 5px rgba(9, 12, 9, 0.9), inset 0 0 0 6px rgba(201, 161, 59, 0.28);
}
.portrait-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.04);
  transition: transform 0.9s var(--ease);
}
.card:hover .portrait-frame img { transform: scale(1.03); }
.portrait-empty { display: none; }
.portrait-frame.is-empty img { display: none; }
.portrait-frame.is-empty .portrait-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.9rem;
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-dim);
  text-align: center;
}
.portrait-frame.is-empty .portrait-empty b {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold);
  width: 68px; height: 68px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(201, 161, 59, 0.42);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(201, 161, 59, 0.07);
}

/* ── Lore ───────────────────────────────────────────────────────────── */

.lore-prose { max-width: 66ch; }
.lore-prose h2 { margin-top: 3.2rem; margin-bottom: 1rem; }
.lore-prose h3 { margin-top: 2.2rem; margin-bottom: 0.7rem; font-size: var(--t-md); }
.lore-prose h2:first-child, .lore-prose h3:first-child { margin-top: 0; }
.lore-prose p { max-width: none; }

.pull {
  border-left: 2px solid var(--gold);
  padding: 0.3rem 0 0.3rem 1.5rem;
  margin: 2rem 0;
  font-family: 'Spectral', serif;
  font-style: italic;
  font-size: var(--t-md);
  color: var(--parchment);
  max-width: 54ch;
}
.pull cite {
  display: block;
  font-style: normal;
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: var(--t-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin-top: 0.8rem;
}

.place-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; background: var(--iron-edge); border: 1px solid var(--iron-edge); }
.place-list div { background: var(--ink-2); padding: 1.1rem 1.2rem; }
.place-list dt {
  font-family: 'Cinzel', serif;
  font-size: var(--t-sm);
  color: var(--gold-hi);
  margin-bottom: 0.3rem;
}
.place-list dd { margin: 0; font-size: var(--t-sm); color: var(--bone-dim); }

/* ── Anchored sub-nav (lore) ────────────────────────────────────────── */

.subnav {
  position: sticky;
  top: 64px;
  z-index: 40;
  display: flex;
  gap: 0.2rem;
  overflow-x: auto;
  padding: 0.6rem 0;
  background: rgba(9,12,9,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
  scrollbar-width: none;
}
.subnav::-webkit-scrollbar { display: none; }
.subnav a {
  flex: none;
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-dim);
  text-decoration: none;
  padding: 0.45rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 2px;
}
.subnav a:hover, .subnav a.active { color: var(--gold-hi); border-color: var(--line); }

/* ── FAQ ────────────────────────────────────────────────────────────── */

.faq { border-top: 1px solid var(--line-soft); }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  cursor: pointer;
  padding: 1.15rem 2.5rem 1.15rem 0;
  font-family: 'Cinzel', serif;
  font-size: var(--t-base);
  color: var(--parchment);
  position: relative;
  list-style: none;
  transition: color 0.3s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold-hi); }
.faq summary::after {
  content: '';
  position: absolute;
  right: 0.4rem; top: 50%;
  width: 9px; height: 9px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.35s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(225deg); }
.faq details p { padding: 0 0 1.3rem; color: var(--bone-dim); font-size: var(--t-sm); }

/* ── Trailer ────────────────────────────────────────────────────────── */

.trailer {
  position: relative;
  border: 1px solid var(--iron-edge);
  border-radius: 4px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 90px rgba(0,0,0,0.7);
}
.trailer video { width: 100%; display: block; }
.trailer-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(9,12,9,0.35);
  border: 0;
  cursor: pointer;
  transition: background 0.4s var(--ease), opacity 0.4s var(--ease);
}
.trailer-play:hover { background: rgba(9,12,9,0.15); }
.trailer-play.hidden { opacity: 0; pointer-events: none; }
.trailer-play i {
  width: 84px; height: 84px;
  border: 1px solid var(--gold);
  background: rgba(9,12,9,0.6);
  display: grid; place-items: center;
  transform: rotate(45deg);
  transition: transform 0.5s var(--ease), background 0.4s;
}
.trailer-play:hover i { transform: rotate(45deg) scale(1.08); background: rgba(201,161,59,0.2); }
.trailer-play i::after {
  content: '';
  transform: rotate(-45deg);
  border-left: 18px solid var(--gold-hi);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  margin-left: 6px;
}

/* ── CTA band ───────────────────────────────────────────────────────── */

.cta {
  position: relative;
  text-align: center;
  padding-block: clamp(4.5rem, 9vw, 8rem);
  overflow: hidden;
  isolation: isolate;
}
.cta::before {
  content: '';
  position: absolute; inset: 0; z-index: -2;
  background: url('../img/campaigns/iron-betrayal.webp') center 30%/cover no-repeat;
  opacity: 0.28;
  filter: saturate(0.8);
}
.cta::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--ink), rgba(9,12,9,0.72) 45%, var(--ink));
}
.cta h2 { font-size: var(--t-xl); margin-bottom: 1rem; }
.cta p { margin-inline: auto; }
.cta .stores { justify-content: center; margin-top: 2rem; }

/* ── Footer ─────────────────────────────────────────────────────────── */

.foot {
  border-top: 1px solid var(--line-soft);
  background: var(--ink-2);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: clamp(1.6rem, 4vw, 3rem);
}
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.foot h4 {
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: var(--t-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.foot a { color: var(--bone-dim); text-decoration: none; font-size: var(--t-sm); }
.foot a:hover { color: var(--gold-hi); }
.foot-logo { width: 190px; margin-bottom: 1.1rem; opacity: 0.9; }
.foot-note { font-size: var(--t-sm); color: var(--bone-dim); max-width: 40ch; }
.foot-bottom {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.6rem;
  align-items: center;
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  color: var(--bone-dim);
}
.foot-bottom .spacer { margin-left: auto; }

/* ── Forms (contact) ────────────────────────────────────────────────── */

.field { display: grid; gap: 0.45rem; margin-bottom: 1.1rem; }
.field label {
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: var(--t-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.field input, .field textarea, .field select {
  font-family: 'Spectral', serif;
  font-size: var(--t-base);
  color: var(--parchment);
  background: rgba(9,12,9,0.6);
  border: 1px solid var(--iron-edge);
  border-radius: 3px;
  padding: 0.75rem 0.9rem;
  width: 100%;
  transition: border-color 0.3s var(--ease), background 0.3s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(9,12,9,0.85);
}
.field textarea { min-height: 160px; resize: vertical; }

/* ── Legal pages ────────────────────────────────────────────────────── */

.legal { max-width: 70ch; }
.legal h2 { font-size: var(--t-lg); margin: 2.8rem 0 0.9rem; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: var(--t-base); font-family: 'IBM Plex Sans Condensed', sans-serif; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin: 1.8rem 0 0.6rem; }
.legal ul { padding-left: 1.2rem; display: grid; gap: 0.5rem; margin: 0 0 1.2rem; }
.legal li { font-size: var(--t-base); }
.legal li::marker { color: var(--gold); }
.legal p, .legal li { color: var(--bone); }
.legal .updated {
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: var(--t-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-dim);
  padding: 0.8rem 1rem;
  border: 1px solid var(--iron-edge);
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 2.4rem;
}

/* ── Utilities ──────────────────────────────────────────────────────── */

.center { text-align: center; }
.center p { margin-inline: auto; }
.mt-1 { margin-top: 0.8rem; }
.mt-2 { margin-top: 1.6rem; }
.mt-3 { margin-top: 2.4rem; }
.mt-4 { margin-top: 3.4rem; }
.muted { color: var(--bone-dim); }
.small { font-size: var(--t-sm); }
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: #16190f;
  padding: 0.7rem 1.2rem;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* Screen-reader-only, but still announced */
.vh {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ── Playtest call ──────────────────────────────────────────────────── */

.hero-tester {
  margin: 1.4rem auto 0;
  max-width: 46ch;
  font-size: var(--t-sm);
  color: var(--bone-dim);
}
.hero-tester a {
  color: var(--gold-hi);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 161, 59, 0.45);
  padding-bottom: 1px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.hero-tester a:hover { color: var(--parchment); border-color: var(--parchment); }

.tester-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.4rem, 3vw, 2.6rem);
  align-items: center;
  padding: clamp(1.6rem, 3.4vw, 2.8rem);
  border: 1px solid rgba(201, 161, 59, 0.42);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(201, 161, 59, 0.14), transparent 58%),
    linear-gradient(160deg, rgba(32, 39, 26, 0.9), rgba(11, 14, 10, 0.94));
}
/* A slow sheen, so the one live call to action on the page has a pulse. */
.tester-card::after {
  content: '';
  position: absolute;
  inset: -40% -10%;
  pointer-events: none;
  background: linear-gradient(72deg, transparent 44%, rgba(233, 207, 138, 0.09) 50%, transparent 56%);
  animation: tester-sheen 7s ease-in-out infinite;
}
@keyframes tester-sheen {
  0%, 62% { transform: translateX(-38%); opacity: 0; }
  72% { opacity: 1; }
  100% { transform: translateX(38%); opacity: 0; }
}
.tester-mark {
  width: 82px; height: 82px;
  flex: none;
  display: grid;
  place-items: center;
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  color: var(--gold);
  border: 1px solid rgba(201, 161, 59, 0.45);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(201, 161, 59, 0.07), inset 0 0 22px rgba(201, 161, 59, 0.12);
}
@media (max-width: 620px) {
  .tester-card { grid-template-columns: 1fr; }
  .tester-mark { width: 62px; height: 62px; font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) { .tester-card::after { animation: none; } }

/* ── Screenshot gallery ─────────────────────────────────────────────── */

.scroller.shots { gap: 1.1rem; }
.shot {
  flex: 0 0 clamp(300px, 62vw, 720px);
  scroll-snap-align: center;
  margin: 0;
  border: 1px solid var(--iron-edge);
  border-radius: 4px;
  overflow: hidden;
  background: var(--ink-2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  transition: border-color 0.45s var(--ease), transform 0.5s var(--ease);
}
.shot:hover { border-color: rgba(201, 161, 59, 0.45); transform: translateY(-3px); }
.shot img { width: 100%; display: block; }
.shot figcaption {
  padding: 0.85rem 1.1rem 0.95rem;
  border-top: 1px solid var(--line-soft);
  background: rgba(9, 12, 9, 0.72);
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: var(--t-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.shot figcaption b {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: var(--t-sm);
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--parchment);
  margin-bottom: 3px;
}

/* A badge for a channel that is announced but not open yet, and one for the
   build you can actually get hold of today. */
.store-badge--soon { opacity: 0.86; }
.store-badge--soon .sb-big { color: var(--bone); }
.store-badge--soon:hover { opacity: 1; }
.store-badge--live {
  border-color: rgba(201, 161, 59, 0.5);
  background: linear-gradient(180deg, rgba(201, 161, 59, 0.16), rgba(13, 17, 12, 0.9));
}
.store-badge--live .sb-small { color: var(--gold); }
