/* SafeHaven landing page
   Two themes share one set of tokens. Dark is the default (html[data-theme="dark"]);
   light follows the in-game SafeHaven windows: sky-blue headers, white cards, warm gold. */

/* ---------- Theme tokens ---------- */
:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1426;
  --bg-alt: #0f1b31;
  --surface: #14223b;
  --surface-2: #1a2b48;
  --text: #e8eef8;
  --text-soft: #b6c3d8;
  --text-faint: #8496b0;
  --border: rgba(148, 178, 222, .14);
  --border-strong: rgba(148, 178, 222, .28);
  --accent: #8dbaf1;
  --accent-strong: #c2dbfa;
  --accent-bg: rgba(90, 149, 220, .16);
  --gold: #f2a948;
  --gold-strong: #ffc271;
  --callout-bg: rgba(242, 169, 72, .08);
  --callout-border: rgba(242, 169, 72, .30);
  --leaf: #62d08e;
  --ember: #ff8f63;
  --seasonal-bg: rgba(255, 143, 99, .07);
  --seasonal-border: rgba(255, 143, 99, .30);
  --header-bg: rgba(11, 20, 38, .80);
  --ghost-bg: rgba(255, 255, 255, .07);
  --ghost-bg-hover: rgba(255, 255, 255, .13);
  --ghost-text: #e8eef8;
  --ghost-border: rgba(255, 255, 255, .22);
  --shot-border: rgba(255, 255, 255, .14);
  --shadow: 0 1px 2px rgba(0, 0, 0, .30), 0 10px 28px rgba(0, 0, 0, .28);
  --shadow-lg: 0 2px 8px rgba(0, 0, 0, .35), 0 28px 70px rgba(0, 0, 0, .50);
  --window-shadow: drop-shadow(0 2px 4px rgba(0, 0, 0, .35)) drop-shadow(0 22px 40px rgba(0, 0, 0, .45));
  --hero-bg:
    radial-gradient(55% 45% at 82% 6%, rgba(98, 150, 225, .38), transparent 70%),
    radial-gradient(45% 35% at 8% 100%, rgba(242, 169, 72, .13), transparent 70%),
    linear-gradient(180deg, #08142b 0%, #10264a 55%, #183a67 100%);
  --hero-eyebrow: #ffc271;
  --hero-lead: #c9d6ea;
  --hero-note: #9fb3d0;
  --stars: .75;
  --cta-bg:
    radial-gradient(60% 120% at 50% 0%, rgba(98, 150, 225, .30), transparent 70%),
    linear-gradient(180deg, #12274a, #0c1a33);
  --footer-bg: #070e1b;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --bg-alt: #f4f9ff;
  --surface: #ffffff;
  --surface-2: #f4f9ff;
  --text: #1d2b42;
  --text-soft: #4f5f78;
  --text-faint: #7a879b;
  --border: #e2eaf4;
  --border-strong: #cddbeb;
  --accent: #2b64a8;
  --accent-strong: #173a66;
  --accent-bg: #e4f0fc;
  --gold: #c86f14;
  --gold-strong: #a85a0c;
  --callout-bg: #fff8ea;
  --callout-border: #f2dcaa;
  --leaf: #2f9a5a;
  --ember: #d6542a;
  --seasonal-bg: linear-gradient(180deg, #ffffff, #fff5f2);
  --seasonal-border: #f6d4c8;
  --header-bg: rgba(255, 255, 255, .84);
  --ghost-bg: rgba(255, 255, 255, .78);
  --ghost-bg-hover: #ffffff;
  --ghost-text: #173a66;
  --ghost-border: #cddbeb;
  --shot-border: rgba(255, 255, 255, .75);
  --shadow: 0 1px 2px rgba(23, 58, 102, .06), 0 8px 24px rgba(23, 58, 102, .08);
  --shadow-lg: 0 2px 6px rgba(23, 58, 102, .08), 0 24px 60px rgba(23, 58, 102, .18);
  --window-shadow: drop-shadow(0 2px 4px rgba(23, 58, 102, .10)) drop-shadow(0 18px 36px rgba(23, 58, 102, .18));
  --hero-bg:
    radial-gradient(60% 50% at 85% 10%, rgba(255, 255, 255, .55), transparent 70%),
    radial-gradient(40% 30% at 12% 22%, rgba(255, 255, 255, .45), transparent 70%),
    linear-gradient(180deg, #5d96da 0%, #86b4e8 48%, #bcd9f5 100%);
  --hero-eyebrow: #fff3d6;
  --hero-lead: #f4f9ff;
  --hero-note: #eaf3ff;
  --stars: 0;
  --cta-bg: linear-gradient(180deg, #4f8bd3, #2f6ab0);
  --footer-bg: #12243f;
}

:root {
  --sky-500: #5a95dc;
  --sky-700: #2b64a8;
  --gold-400: #f2a948;
  --gold-500: #e8902a;
  --gold-600: #c86f14;

  --radius: 16px;
  --radius-sm: 10px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1120px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 3px; border-radius: 6px; }
code {
  font: 600 .9em Consolas, "SFMono-Regular", monospace;
  background: var(--accent-bg); color: var(--accent-strong);
  padding: 1px 6px; border-radius: 6px;
}

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 650; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(30px, 4vw, 42px); }
h3 { font-size: 21px; }
p { margin: 0; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
}

.section { padding: 96px 0; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head h2 { margin-top: 8px; }
.section-head p { margin-top: 14px; color: var(--text-soft); font-size: 18px; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 0;
  font: 800 16px/1 var(--font-body);
  white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-gold {
  color: #fff;
  background: linear-gradient(180deg, var(--gold-400), var(--gold-500) 55%, var(--gold-600));
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 6px 16px rgba(200, 111, 20, .35);
}
.btn-gold:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 10px 22px rgba(200, 111, 20, .42); }
.btn-ghost { color: var(--ghost-text); background: var(--ghost-bg); box-shadow: 0 0 0 1px var(--ghost-border) inset; }
.btn-ghost:hover { color: var(--ghost-text); background: var(--ghost-bg-hover); }
.btn-discord { color: #fff; background: #5865f2; }
.btn-discord:hover { color: #fff; background: #4752c4; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }

.theme-toggle {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%; border: 0; cursor: pointer;
  color: var(--text-soft); background: var(--ghost-bg);
  box-shadow: 0 0 0 1px var(--border-strong) inset;
  transition: color .15s ease, background-color .15s ease;
}
.theme-toggle:hover { color: var(--text); background: var(--ghost-bg-hover); }
.theme-toggle svg { width: 20px; height: 20px; }
/* Show the mode you would switch to. */
:root[data-theme="dark"] .icon-moon,
:root[data-theme="light"] .icon-sun { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background-color .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.header-row { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark { width: 34px; height: 34px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 23px; letter-spacing: -.01em; }
.nav { display: flex; gap: 22px; margin-right: auto; }
.nav a { color: var(--text-soft); font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--text); }
.header-cta { display: flex; align-items: center; gap: 10px; }

@media (max-width: 1100px) {
  .nav { display: none; }
  .header-row { justify-content: space-between; }
}
@media (max-width: 520px) {
  .header-row { gap: 12px; }
  .header-cta { gap: 8px; }
  .header-cta .btn-discord span { display: none; }
  .header-cta .btn-discord { padding: 0 12px; }
  .brand-name { font-size: 21px; }
}
@media (max-width: 440px) {
  /* The hero's Download button is right below; keep the header uncrowded. */
  .header-cta .btn-gold { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 72px 0 120px;
  background: var(--hero-bg);
  color: #fff;
}
.hero::before { /* stars, dark theme only */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  opacity: var(--stars);
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 62%, #dfe9ff 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 47% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 40%, #cfe0ff 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 78% 72%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 91% 26%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 37% 86%, #e9f0ff 50%, transparent 51%);
  background-size: 340px 260px;
  transition: opacity .25s ease;
}
.hero::after { /* shoreline in the page colour */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 90px;
  background: var(--bg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0 46c120 22 260 30 420 14S700 8 860 20s300 52 440 44c60-3 100-12 140-20v46H0z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0 46c120 22 260 30 420 14S700 8 860 20s300 52 440 44c60-3 100-12 140-20v46H0z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
  transition: background-color .25s ease;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero .eyebrow { color: var(--hero-eyebrow); text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.hero h1 {
  margin-top: 14px;
  font-size: clamp(40px, 6vw, 66px);
  text-shadow: 0 2px 18px rgba(8, 20, 43, .30);
}
.hero-lead { margin-top: 20px; font-size: 19px; max-width: 540px; color: var(--hero-lead); text-shadow: 0 1px 8px rgba(8, 20, 43, .25); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-actions .btn { min-height: 54px; padding: 0 28px; font-size: 17px; }
.hero .btn-ghost { color: #fff; background: rgba(255,255,255,.12); box-shadow: 0 0 0 1px rgba(255,255,255,.35) inset; }
.hero .btn-ghost:hover { background: rgba(255,255,255,.22); }
:root[data-theme="light"] .hero .btn-ghost { color: #173a66; background: rgba(255,255,255,.8); box-shadow: 0 0 0 1px #cddbeb inset; }
:root[data-theme="light"] .hero .btn-ghost:hover { background: #fff; }
.hero-note { margin-top: 14px; font-size: 14px; color: var(--hero-note); }

.hero-visual { position: relative; padding-top: 36px; }
.shot {
  border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--shot-border);
  background: var(--surface);
}
.shot-back {
  position: absolute; top: 0; right: -36px; width: 74%;
  transform: rotate(5deg);
  filter: saturate(.9) brightness(.92);
}
.shot-front { position: relative; width: 90%; margin-top: 64px; transform: rotate(-1.5deg); }

.clock-card {
  position: absolute; left: -28px; bottom: -40px;
  width: min(320px, 86%);
  padding: 16px 18px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.clock-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.clock-label { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }
.clock-time { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 26px; color: var(--text); }
.clock-time small { font-size: 13px; font-weight: 800; color: var(--text-faint); margin-left: 4px; }
.clock-rows { margin-top: 10px; display: grid; gap: 8px; font-size: 14px; }
.clock-row { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px solid var(--border); }
.clock-row span:first-child { color: var(--text-soft); }
.clock-row strong { font-variant-numeric: tabular-nums; white-space: nowrap; }

@media (max-width: 900px) {
  .hero { padding: 48px 0 110px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { margin-bottom: 40px; max-width: 600px; }
  .shot-back { right: -8px; }
  .clock-card { left: 12px; bottom: -48px; }
}

/* ---------- Cards shared look ---------- */
.step, .realm, .client, .guide, .event-card, .perk, .streak div, .faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  transition: background-color .25s ease, border-color .25s ease;
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  position: relative; padding: 28px 26px 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 10px;
}
.step-num {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; color: #fff;
  background: linear-gradient(180deg, var(--sky-500), var(--sky-700));
}
.step p { color: var(--text-soft); }
.step .step-actions { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Clients ---------- */
.clients { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.client {
  padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.client-head { display: flex; align-items: center; gap: 12px; }
.client-for { margin-top: 4px; font-size: 14px; font-weight: 700; color: var(--text-faint); }
.pill {
  font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px;
  color: #fff; background: linear-gradient(180deg, var(--gold-400), var(--gold-600));
}
.pill-muted { color: var(--text-soft); background: var(--accent-bg); }
.ticks { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--text-soft); }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .3em;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.client-actions { margin-top: auto; padding-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.client-note { font-size: 14px; color: var(--text-faint); }
@media (max-width: 860px) { .clients { grid-template-columns: 1fr; } }

/* ---------- Realms ---------- */
.realms { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.realm { padding: 30px; border-radius: var(--radius); box-shadow: var(--shadow); }
.realm-head { display: flex; align-items: center; gap: 14px; }
.realm-head h3 { font-size: 26px; }
.realm-badge {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 22px; color: #fff;
}
.realm-legacy .realm-badge { background: linear-gradient(160deg, #e8a03a, #b8661a); }
.realm-genesis .realm-badge { background: linear-gradient(160deg, #4fb879, #24784a); }
.realm-tagline { margin-top: 18px; font-family: var(--font-display); font-size: 24px; font-weight: 650; line-height: 1.25; }
.realm-legacy .realm-tagline { color: var(--gold); }
.realm-genesis .realm-tagline { color: var(--leaf); }
.realm-fit { margin-top: 8px; color: var(--text-soft); }
.realm-facts {
  margin: 24px 0 0; padding: 18px 22px 18px 42px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-soft); font-size: 15px; display: grid; gap: 6px;
}
.realm-note {
  margin-top: 16px; padding: 16px 20px; border-radius: var(--radius-sm);
  background: var(--callout-bg); border: 1px solid var(--callout-border); color: var(--text-soft); font-size: 15px;
}
.realm-note strong { color: var(--gold-strong); }
@media (max-width: 860px) { .realms { grid-template-columns: 1fr; } }

/* ---------- Feature (text + image) ---------- */
.feature { display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
.feature + .feature { margin-top: 88px; }
.feature.flip .feature-media { order: -1; }
.feature h3 { font-size: 28px; }
.feature-text > p { margin-top: 12px; color: var(--text-soft); }
.perk-list { margin: 22px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.perk { padding: 14px 16px; border-radius: 12px; }
.perk strong { display: block; font-size: 16px; }
.perk span { font-size: 14px; color: var(--text-faint); }
.callout {
  margin-top: 18px; padding: 14px 16px; border-radius: 12px;
  background: var(--callout-bg); border: 1px solid var(--callout-border);
  font-size: 15px; color: var(--text-soft);
}
.callout strong { color: var(--gold-strong); }
.window { width: 100%; filter: var(--window-shadow); }
.feature:not(.flip) .window { max-width: 520px; margin-inline: auto; }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature.flip .feature-media { order: 0; }
}
@media (max-width: 520px) { .perk-list { grid-template-columns: 1fr; } }

.streak { margin-top: 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.streak div { text-align: center; padding: 12px 8px; border-radius: 12px; }
.streak b { display: block; font-size: 20px; color: var(--gold); font-variant-numeric: tabular-nums; }
.streak span { font-size: 13px; color: var(--text-soft); line-height: 1.35; display: block; }
@media (max-width: 520px) { .streak { grid-template-columns: 1fr 1fr; } }

/* ---------- Referrals ---------- */
.coin {
  display: inline-block; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 4.6l1.6 3.3 3.6.5-2.6 2.5.6 3.6L10 12.8l-3.2 1.7.6-3.6-2.6-2.5 3.6-.5z' fill='%23fff7e0'/%3E%3C/svg%3E") center / 78% no-repeat,
    radial-gradient(circle at 35% 30%, #ffd27a, #e8902a 60%, #b8661a);
  box-shadow: 0 0 0 1.5px rgba(255, 214, 140, .55) inset;
}
.stages { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.stages li {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 16px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border);
}
.stage-tokens {
  flex: none; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #ffd27a, #e8902a 62%, #b8661a);
  box-shadow: 0 4px 14px rgba(200, 111, 20, .35), 0 0 0 2px rgba(255, 214, 140, .5) inset;
}
.stage-tokens b { color: #fff; font-size: 19px; font-weight: 800; text-shadow: 0 1px 2px rgba(120, 60, 0, .45); }
.stages strong { display: block; font-size: 17px; }
.stages li span:not(.stage-tokens) { font-size: 15px; color: var(--text-soft); }

.ref-how { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 64px; }
.ref-card { padding: 26px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.ref-steps { margin: 16px 0 0; padding: 0; list-style: none; counter-reset: rs; display: grid; gap: 12px; }
.ref-steps li { position: relative; padding-left: 40px; color: var(--text-soft); counter-increment: rs; }
.ref-steps li::before {
  content: counter(rs); position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-size: 14px; font-weight: 800; color: #fff;
  background: linear-gradient(180deg, var(--sky-500), var(--sky-700));
}
@media (max-width: 860px) { .ref-how { grid-template-columns: 1fr; margin-top: 48px; } }

.ref-shop { margin-top: 20px; padding: 26px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.ref-shop-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ref-shop-head span { font-size: 14px; color: var(--text-faint); }
.shop-grid { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.shop-item {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; text-align: center;
  padding: 16px 10px 14px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--border);
}
.shop-item img { width: 56px; height: 56px; border-radius: 12px; image-rendering: auto; }
.shop-item strong { font-size: 14.5px; line-height: 1.3; }
.shop-item .price { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.shop-title { grid-column: span 2; background: var(--callout-bg); border-color: var(--callout-border); }
.shop-title img { width: 172px; height: 50px; border-radius: 0; margin-bottom: 3px; }
@media (max-width: 960px) { .shop-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) { .shop-grid { grid-template-columns: repeat(2, 1fr); } }

.ref-fine { margin-top: 18px; font-size: 14px; color: var(--text-faint); line-height: 1.7; }
.ref-fine strong { color: var(--text-soft); }
.ref-fine code { font-size: .86em; }

/* ---------- Roadmap ---------- */
.road { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.road::before {
  content: ""; position: absolute; left: 6%; right: 6%; top: 27px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, #6fa3e0, var(--gold-400));
  opacity: .8;
}
.road-stop { position: relative; padding: 0 14px; text-align: center; }
.road-dot {
  width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); border: 4px solid #6fa3e0;
  font-weight: 800; color: var(--accent); font-size: 15px;
  box-shadow: var(--shadow);
}
.road-stop:last-child .road-dot { border-color: var(--gold-400); color: var(--gold); }
.road-stop h3 { font-size: 19px; }
.road-stop p { margin-top: 8px; font-size: 15px; color: var(--text-soft); }
@media (max-width: 860px) {
  .road { grid-template-columns: 1fr; gap: 22px; }
  .road::before { left: 27px; right: auto; top: 10px; bottom: 10px; width: 4px; height: auto; background: linear-gradient(180deg, #6fa3e0, var(--gold-400)); }
  .road-stop { display: grid; grid-template-columns: 58px 1fr; gap: 0 18px; text-align: left; padding: 0; }
  .road-dot { margin: 0; grid-row: span 2; }
  .road-stop p { margin-top: 4px; }
}

/* ---------- Events ---------- */
.events-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: start; }
.event-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 15px;
}
.event-table th, .event-table td { padding: 14px 16px; text-align: left; vertical-align: top; }
.event-table thead th {
  font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-faint); background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.event-table tbody tr + tr td, .event-table tbody tr + tr th { border-top: 1px solid var(--border); }
.event-table tbody th { font-weight: 800; }
.event-table tbody th small { display: block; font-weight: 600; color: var(--text-faint); font-size: 13px; }
.event-table td { color: var(--text-soft); }
.event-table .local { color: var(--accent); font-weight: 700; }
.event-table .next-in { display: inline-block; margin-top: 4px; font-size: 12.5px; font-weight: 800; color: var(--leaf); }
.event-table tr.is-live .next-in { color: var(--ember); }

.event-cards { display: grid; gap: 14px; }
.event-card { padding: 18px 20px; border-radius: 14px; }
.event-card h3 { font-family: var(--font-body); font-size: 17px; font-weight: 800; }
.event-card p { margin-top: 4px; font-size: 15px; color: var(--text-soft); }
.event-card .when { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 800; color: var(--accent); }
.event-card.seasonal { background: var(--seasonal-bg); border-color: var(--seasonal-border); }
.event-card.seasonal .when { color: var(--ember); }
@media (max-width: 960px) { .events-layout { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .event-table thead { display: none; }
  .event-table, .event-table tbody, .event-table tr, .event-table th, .event-table td { display: block; width: 100%; }
  .event-table tr { padding: 14px 16px; }
  .event-table tbody tr + tr { border-top: 1px solid var(--border); }
  .event-table th, .event-table td { padding: 2px 0; border: 0 !important; }
  .event-table td[data-label]::before { content: attr(data-label) " · "; color: var(--text-faint); font-weight: 700; }
}

/* ---------- Titan War banner ---------- */
.banner {
  border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #2a120a;
}
.banner img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.banner-caption {
  padding: 26px 32px 28px;
  background: linear-gradient(180deg, #2a120a, #1c0b06);
  color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.banner-caption h2 { color: #fff; margin-top: 6px; }
.banner-caption p { margin-top: 8px; max-width: 600px; color: #f3e6dc; }
.banner-caption .eyebrow { color: var(--gold-400); }
@media (max-width: 700px) {
  .banner { border-radius: 16px; }
  .banner-caption { padding: 20px; }
}

/* ---------- Guides ---------- */
.guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.guide {
  display: flex; flex-direction: column; gap: 10px;
  padding: 26px; border-radius: var(--radius); box-shadow: var(--shadow);
  text-decoration: none; color: var(--text);
}
a.guide { transition: transform .15s ease, border-color .15s ease, background-color .25s ease; }
a.guide:hover { transform: translateY(-2px); border-color: var(--border-strong); color: var(--text); }
.guide-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-bg); color: var(--accent); }
.guide-icon svg { width: 24px; height: 24px; }
.guide p { color: var(--text-soft); font-size: 15px; }
.guide .go { margin-top: auto; font-weight: 800; font-size: 15px; color: var(--accent); }
@media (max-width: 900px) { .guides { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .guides { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; display: grid; gap: 12px; }
.faq details { border-radius: 14px; padding: 0 22px; }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 18px 30px 18px 0; position: relative;
  font-weight: 800; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px;
  border-right: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details > div { padding: 0 0 20px; color: var(--text-soft); }
.faq details > div p + p { margin-top: 10px; }
.faq strong { color: var(--text); }

/* ---------- Final CTA + footer ---------- */
.cta-band {
  padding: 72px 0;
  background: var(--cta-bg);
  color: #fff; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { margin: 12px auto 0; max-width: 560px; color: #dce8f8; font-size: 18px; }
.cta-band .hero-actions { justify-content: center; }
.cta-band .btn-ghost { color: #fff; background: rgba(255,255,255,.12); box-shadow: 0 0 0 1px rgba(255,255,255,.35) inset; }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.22); }

.site-footer { padding: 40px 0 48px; background: var(--footer-bg); color: #b9c6d8; font-size: 14px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: start; }
.site-footer .brand, .site-footer .brand:hover { color: #fff; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: #dbe6f5; text-decoration: none; font-weight: 700; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.disclaimer { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); color: #8fa0b8; max-width: 760px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
