/* Ankh's Legacy v5 — ember bronze art, slimmer chrome, seasonal flag */
:root {
  --void: #0c0a08;
  --charcoal: #161310;
  --sand: #F3ECDD;
  --sand-bright: #FFF8EC;
  --sand-dim: #C4B8A1;
  --sand-mute: #8F846F;
  --gold: #D4AF57;
  --gold-bright: #F0D078;
  --gold-deep: #8C6A1F;
  --gold-line: rgba(212, 175, 87, 0.38);
  --glass: rgba(16, 12, 8, 0.40);
  --glass-strong: rgba(16, 12, 8, 0.72);
  --header-h: 5.2rem;
  --max: 1180px;
  --max-wide: 1360px;
  --radius: 24px;
  --radius-sm: 20px;
  --font-display: "Cinzel", "Palatino Linotype", Palatino, serif;
  --font-ornament: "Cinzel Decorative", "Cinzel", serif;
  --font-body: "Outfit", system-ui, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gold-grad: linear-gradient(180deg, #fff6d0 0%, #F0D078 22%, #D4AF57 52%, #8C6A1F 78%, #E8C56B 100%);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .hero-art img, .hero-art, .dust, .page-hero-art img { transform: none !important; }
  .tile img, .feature-media img { transform: none !important; }
  .glass::after, .sweep::after { display: none !important; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 0.75rem); }
html, body { margin: 0; padding: 0; background: var(--void); color: var(--sand); overflow-x: hidden; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-bright); text-underline-offset: 0.18em; }
a:hover { color: var(--sand-bright); }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
.skip {
  position: absolute; left: 1rem; top: -5rem;
  background: var(--gold); color: #1a1206;
  padding: 0.5rem 0.9rem; z-index: 400; font-weight: 650; border-radius: 999px;
}
.skip:focus { top: 1rem; }

/* ========== Gold display titles (v1 lettering) ========== */
.gold-title {
  font-family: var(--font-ornament);
  font-weight: 700;
  line-height: 1.1;
  background: var(--gold-grad);
  background-size: 100% 140%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .gold-title, .hero h1, .page-hero h1 { color: var(--gold-bright); background: none; -webkit-text-fill-color: currentColor; }
}

/* ========== Glass ========== */
.glass, .card, .tier, .step, .toc, .rule-block, .person.card, .hero-cta,
.site-footer, .ip-bar-inner, .feature-copy, .donate-legal, .placeholder-panel.card {
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  border: 1px solid rgba(255, 236, 200, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 0 0 1px rgba(212, 175, 87, 0.08),
    0 18px 40px rgba(0, 0, 0, 0.32);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.glass::after, .card::after, .tier::after, .step::after, .rule-block::after,
.hero-cta::after, .feature-copy::after, .ip-bar-inner::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.10) 48%, transparent 66%);
  transform: translateX(-140%);
  transition: transform 0.85s var(--ease);
  pointer-events: none;
  z-index: 0;
}
.glass:hover::after, .card:hover::after, .tier:hover::after, .step:hover::after,
.rule-block:hover::after, .hero-cta:hover::after, .feature-copy:hover::after,
.ip-bar-inner:hover::after { transform: translateX(140%); }

.glass > *, .card > *, .tier > *, .step > *, .rule-block > *,
.hero-cta > *, .feature-copy > *, .ip-bar-inner > *,
.toc > *, .donate-legal, .placeholder-panel.card > * {
  position: relative; z-index: 1;
}

@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .glass, .card, .tier, .step, .toc, .rule-block, .person.card, .hero-cta,
  .site-footer, .ip-bar-inner, .feature-copy, .donate-legal, .placeholder-panel.card,
  .header-inner {
    background: var(--glass-strong);
  }
}

/* Quiet tiled bronze texture behind glass sections (not a repeated hero) */
.scene {
  position: relative; isolation: isolate; overflow: hidden;
  background-color: #0c0a08;
  background-image: url("../art/texture-ember.webp");
  background-size: 720px;
  background-repeat: repeat;
}
.scene::after {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(12,10,8,0.62), rgba(12,10,8,0.78));
  pointer-events: none;
}
.scene > * { position: relative; z-index: 1; }

/* ========== Header: floating glass pill ========== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  height: var(--header-h);
  display: flex; align-items: center;
  background: transparent;
  pointer-events: none;
}
.header-inner {
  pointer-events: auto;
  position: relative;
  width: min(var(--max-wide), calc(100% - 1.6rem));
  margin: 0 auto;
  display: flex; align-items: center; gap: 1rem;
  background: rgba(16, 12, 8, 0.46);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  border: 1px solid rgba(255, 236, 200, 0.18);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.16),
    0 14px 36px rgba(0,0,0,0.35);
  padding: 0.4rem 0.5rem 0.4rem 0.9rem;
  transition: background 0.35s var(--ease);
}
.site-header.is-solid .header-inner { background: rgba(16, 12, 8, 0.78); }
.brand {
  display: flex; align-items: center; gap: 0.65rem;
  color: var(--sand); text-decoration: none; flex: 0 0 auto;
}
.brand img {
  width: 40px; height: 40px;
  filter: drop-shadow(0 0 10px rgba(232, 93, 4, 0.5));
}
.brand-mark { display: flex; flex-direction: column; line-height: 1.05; }
.brand-mark strong {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  color: var(--gold-bright);
}
.brand-mark span {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand-dim);
}
.nav { display: flex; align-items: center; gap: 0.1rem; }
.nav a {
  color: var(--sand-dim);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-weight: 500;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--gold-bright);
  background: rgba(212, 175, 87, 0.12);
}
.nav .btn { margin-left: 0.35rem; padding: 0.65rem 1.05rem; font-size: 0.74rem; }
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--gold-line);
  background: rgba(16,12,8,0.35);
  color: var(--sand);
  border-radius: 999px; cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block; width: 16px; height: 2px;
  background: var(--gold-bright); position: relative; margin: 0 auto;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    position: fixed; inset: calc(var(--header-h) + 0.2rem) 0.8rem auto;
    margin: 0;
    padding: 0.8rem;
    background: rgba(16, 12, 8, 0.86);
    backdrop-filter: blur(24px) saturate(165%);
    -webkit-backdrop-filter: blur(24px) saturate(165%);
    border: 1px solid rgba(255, 236, 200, 0.16);
    border-radius: 24px;
    box-shadow: 0 24px 48px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.12);
    flex-direction: column; align-items: stretch;
    gap: 0.2rem;
    transform: translateY(-12px); visibility: hidden; opacity: 0;
    transition: transform 0.32s var(--ease), visibility 0.32s, opacity 0.32s;
    max-height: calc(100dvh - var(--header-h) - 1.5rem);
    overflow: auto;
  }
  body.nav-open .nav { transform: none; visibility: visible; opacity: 1; }
  .nav a {
    font-size: 1rem; padding: 0.85rem 1rem;
    border-radius: 16px;
  }
  .nav .btn { margin: 0.5rem 0 0; text-align: center; }
  body.nav-open { overflow: hidden; }
}

/* ========== Buttons (v1 gold pills) ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(180deg, #E8C56B, #C4962C);
  color: #1a1206 !important;
  text-decoration: none !important;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(212, 175, 87, 0.25);
  font-family: var(--font-body);
  position: relative;
  overflow: hidden;
}
.btn:hover { filter: brightness(1.07); color: #1a1206 !important; }
.btn-ghost {
  background: transparent;
  color: var(--gold-bright) !important;
  border: 1px solid var(--gold-line);
  box-shadow: none;
}
.btn-ghost:hover { background: rgba(212, 175, 87, 0.1); color: var(--sand-bright) !important; }
.btn-xl { padding: 0.95rem 1.7rem; font-size: 0.84rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* ========== Hero ========== */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  color: var(--sand-bright);
  overflow: hidden;
}
.hero-art {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
  will-change: transform;
}
.hero-art img, .hero-art picture, .hero-art picture img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 58% 42%;
  transform: scale(1.08);
  animation: kenburns 32s var(--ease) alternate infinite;
  will-change: transform;
}
@keyframes kenburns {
  0%   { transform: scale(1.08) translate3d(0, 0, 0); }
  100% { transform: scale(1.16) translate3d(-1.6%, -1.2%, 0); }
}
.hero-vignette {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(12,10,8,0.42) 0%, rgba(12,10,8,0.06) 16%, transparent 32%),
    linear-gradient(0deg, rgba(12,10,8,0.92) 0%, rgba(12,10,8,0.72) 22%, rgba(12,10,8,0.22) 50%, transparent 68%),
    linear-gradient(90deg, rgba(12,10,8,0.22) 0%, transparent 22%, transparent 78%, rgba(12,10,8,0.18) 100%);
}
.dust { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-content {
  position: relative; z-index: 2;
  width: min(var(--max), calc(100% - 2.4rem));
  margin: 0 auto;
  padding: 0 0 3.6rem;
  text-align: center;
}
.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 0.65rem;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--sand-bright);
  letter-spacing: 0.04em;
}
.hero h1 {
  font-family: var(--font-ornament);
  font-weight: 700;
  font-size: clamp(2.2rem, 6.2vw, 4.6rem);
  margin: 0 0 0.35rem;
  background: var(--gold-grad);
  background-size: 100% 140%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.02em;
}
.hero .subbrand {
  font-family: var(--font-display);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: clamp(0.82rem, 2vw, 1.05rem);
  color: var(--sand-dim);
  margin: 0 0 1.15rem;
}
.tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.4rem, 3.2vw, 2.15rem);
  color: var(--sand);
  margin: 0 0 0.5rem;
  font-variant: small-caps;
  letter-spacing: 0.06em;
}
.launch-note {
  color: var(--sand-dim);
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}
.hero-cta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.35rem 1.2rem;
  margin: 0 auto;
  max-width: 100%;
}
.hero .btn-row { justify-content: center; margin: 0; }
.hero-cta .server-chip { margin: 0; }

.scroll-cue {
  display: block;
  margin-top: 1.35rem;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sand-dim);
  text-decoration: none;
}
.scroll-cue::after {
  content: "";
  display: block;
  width: 1px; height: 28px;
  margin: 0.45rem auto 0;
  background: linear-gradient(180deg, var(--gold), transparent);
}

/* Server chip — v1 pill */
.server-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--glass);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  padding: 0.45rem 0.45rem 0.45rem 1rem;
  margin: 1.25rem 0 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 8px 24px rgba(0,0,0,0.28);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--sand-bright);
}
.server-chip span { white-space: nowrap; }
.server-chip button {
  appearance: none; border: 0;
  background: rgba(212, 175, 87, 0.16);
  color: var(--gold-bright);
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 650;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
}
.server-chip button:hover { background: rgba(212, 175, 87, 0.28); }
.copied { color: #b6f0c4 !important; }

@media (max-width: 620px) {
  .server-chip {
    flex-direction: column;
    border-radius: 22px;
    padding: 0.7rem 0.9rem 0.6rem;
    gap: 0.45rem;
  }
  .server-chip span { font-size: 0.82rem; }
  .btn-row .btn, .btn-row .btn-ghost { flex: 1 1 auto; }
  .hero-content { padding-bottom: 2.8rem; }
  .hero-cta { padding: 1rem 0.9rem 1.05rem; border-radius: 28px; }
}

/* IP bar as a centered glass pill */
.ip-bar { padding: 0.4rem 0 0; text-align: center; background: transparent; border: 0; }
.ip-bar-inner {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1rem 1.6rem 1.15rem;
}
.ip-bar p {
  margin: 0;
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sand-dim);
  font-weight: 650;
}
.ip-bar .server-chip { margin: 0; }

/* ========== Layout ========== */
.wrap { width: min(var(--max), calc(100% - 2.4rem)); margin: 0 auto; }
.wrap-wide { width: min(var(--max-wide), calc(100% - 2rem)); margin: 0 auto; }
.section { padding: 5.2rem 0; position: relative; }
.section-tight { padding: 3.2rem 0; }
.section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  letter-spacing: 0.04em;
  color: var(--sand-bright);
  margin: 0 0 0.7rem;
  line-height: 1.15;
}
.lede { color: var(--sand-dim); max-width: 42rem; font-size: 1.05rem; }
.center { text-align: center; }
.center .lede, .center .kicker { margin-left: auto; margin-right: auto; }
.rule-line { width: 48px; height: 1px; background: var(--gold); margin: 0 auto 1.3rem; border: 0; }

/* Feature tiles */
.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.tile {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: block;
  color: inherit;
  text-decoration: none;
  background: var(--charcoal);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 236, 200, 0.14);
  box-shadow: 0 18px 40px rgba(0,0,0,0.32);
}
.tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.1s var(--ease);
}
.tile:hover img { transform: scale(1.12); }
.tile-caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 3.2rem 1.5rem 1.35rem;
  background: linear-gradient(180deg, transparent, rgba(12,10,8,0.82) 72%);
  pointer-events: none;
  backdrop-filter: blur(0px);
}
.tile-caption h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  letter-spacing: 0.04em;
  color: var(--sand-bright);
  margin: 0 0 0.3rem;
}
.tile-caption p { margin: 0; color: var(--sand); font-size: 0.95rem; max-width: 36rem; }
@media (max-width: 800px) {
  .tiles { grid-template-columns: 1fr; }
  .tile { aspect-ratio: 16 / 10; }
}

/* How to play */
.steps-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  counter-reset: step;
}
.step { padding: 1.35rem 1.3rem 1.3rem; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 0.65rem;
  position: relative; z-index: 1;
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--sand-bright);
  margin: 0 0 0.4rem;
}
.step p { margin: 0; color: var(--sand-dim); }
@media (max-width: 760px) { .steps-band { grid-template-columns: 1fr; } }

/* Cards / grids */
.grid { display: grid; gap: 1.15rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card { padding: 1.5rem 1.4rem 1.45rem; }
.card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.22rem;
  color: var(--sand-bright);
  margin: 0 0 0.5rem;
}
.card p { margin: 0; color: var(--sand-dim); }
.card p + p { margin-top: 0.7rem; }
.coming {
  display: inline-block; margin-top: 0.8rem;
  font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 650;
  color: var(--gold-bright);
  border: 1px solid var(--gold-line);
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
}
.icon-ankh { width: 40px; height: 40px; margin-bottom: 0.7rem; }
.prose p { color: var(--sand-dim); margin: 0 0 1rem; }
.mt-2 { margin-top: 1.25rem; }

/* Page hero */
.page-hero {
  position: relative; isolation: isolate;
  min-height: 54vh;
  display: flex; align-items: flex-end;
  overflow: hidden;
  padding: calc(var(--header-h) + 2.2rem) 0 3rem;
}
.page-hero-art { position: absolute; inset: 0; z-index: 0; }
.page-hero-art img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
  transform: scale(1.06);
  animation: kenburns 36s var(--ease) alternate infinite;
}
.page-hero-vignette {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(12,10,8,0.45) 0%, rgba(12,10,8,0.1) 24%, transparent 40%),
    linear-gradient(0deg, rgba(12,10,8,0.92) 0%, rgba(12,10,8,0.62) 42%, transparent 78%);
}
.page-hero .wrap { position: relative; z-index: 2; text-align: center; }
.page-hero h1 {
  font-family: var(--font-ornament);
  font-weight: 700;
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  margin: 0 0 0.4rem;
  background: var(--gold-grad);
  background-size: 100% 140%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.02em;
}
.page-hero .tagline { margin-bottom: 0; color: var(--sand); }
.page-hero + .section { padding-top: 3.2rem; }

/* Feature rows */
.feature-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: center;
  margin: 0 0 2.6rem;
}
.feature-row:nth-child(even) { grid-template-columns: 0.9fr 1.1fr; }
.feature-row:nth-child(even) .feature-media { order: 2; }
.feature-media {
  overflow: hidden;
  background: var(--charcoal);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 236, 200, 0.14);
  box-shadow: 0 18px 40px rgba(0,0,0,0.3);
}
.feature-media img {
  width: 100%; height: 100%; max-height: 420px; object-fit: cover;
  transform: scale(1.03);
  transition: transform 1s var(--ease);
}
.feature-row:hover .feature-media img { transform: scale(1.08); }
.feature-copy { padding: 1.7rem 1.55rem 1.6rem; }
.feature-copy h2, .feature-copy h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--sand-bright);
  margin: 0 0 0.7rem;
}
.feature-copy p { color: var(--sand-dim); margin: 0 0 0.8rem; }
@media (max-width: 800px) {
  .feature-row, .feature-row:nth-child(even) { grid-template-columns: 1fr; }
  .feature-row:nth-child(even) .feature-media { order: 0; }
}

/* Art break */
.art-break {
  position: relative; isolation: isolate;
  min-height: 58vh;
  display: flex; align-items: flex-end;
  overflow: hidden;
  padding: 5rem 0 4rem;
}
.art-break-art { position: absolute; inset: 0; z-index: 0; }
.art-break-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.art-break-vignette {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(0deg, rgba(12,10,8,0.9) 0%, rgba(12,10,8,0.5) 45%, rgba(12,10,8,0.18) 100%);
}
.art-break .wrap { position: relative; z-index: 2; text-align: center; }
.art-break h2 { color: var(--sand-bright); }
.art-break .lede { color: var(--sand); }
.art-break .glass-cta {
  display: inline-flex; flex-direction: column; align-items: center;
  padding: 1.6rem 1.8rem;
  margin-top: 0.4rem;
}

/* Donate */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: stretch;
}
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .tiers { grid-template-columns: 1fr; } }
.tier {
  padding: 1.5rem 1.35rem 1.4rem;
  display: flex; flex-direction: column;
}
.tier .kicker { margin-bottom: 0.35rem; }
.tier .price {
  font-family: var(--font-display);
  font-size: 2.3rem;
  color: var(--sand-bright);
  margin: 0 0 0.3rem;
  letter-spacing: 0.04em;
}
.tier .goodie { color: var(--sand); font-weight: 600; margin: 0 0 0.8rem; }
.tier ul { margin: 0 0 1.15rem; padding: 0; list-style: none; color: var(--sand-dim); flex: 1; }
.tier li { padding: 0.35rem 0 0.35rem 1rem; position: relative; }
.tier li::before {
  content: "";
  position: absolute; left: 0; top: 0.7rem;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
}
.tier form { margin-top: auto; }
.donate-legal {
  font-size: 1.02rem;
  color: var(--sand);
  max-width: 52rem;
  line-height: 1.7;
  padding: 1.2rem 1.4rem;
  margin: 0 auto 0.4rem;
}

/* Team */
.person { text-align: center; }
.person img.avatar {
  width: 88px; height: 88px; margin: 0 auto 0.8rem;
  border-radius: 50%;
  object-fit: cover;
  background: #0c0a08;
  border: 1px solid rgba(212, 175, 87, 0.4);
  box-shadow: 0 0 18px rgba(232, 93, 4, 0.22);
}
.person .role {
  color: var(--gold-bright);
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 650;
  margin: 0.15rem 0 0.35rem;
}
.person a.email { font-size: 0.92rem; word-break: break-all; }

label {
  display: block;
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 650;
  color: var(--gold);
  margin: 0 0 0.35rem;
}
input[type="text"], input[type="email"], textarea {
  width: 100%;
  background: rgba(12,10,8,0.45);
  border: 1px solid var(--gold-line);
  color: var(--sand-bright);
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  margin-bottom: 0.9rem;
}
textarea { min-height: 8rem; resize: vertical; }

/* Rules */
.rules-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 1.4rem;
  align-items: start;
}
.toc {
  position: sticky;
  top: calc(var(--header-h) + 0.8rem);
  max-height: calc(100vh - var(--header-h) - 2rem);
  overflow: auto;
  padding: 1.15rem 1rem;
}
.toc p {
  margin: 0 0 0.65rem;
  font-size: 0.64rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold); font-weight: 650;
}
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a {
  display: block; color: var(--sand-dim); text-decoration: none;
  font-size: 0.78rem; padding: 0.34rem 0.55rem;
  border-radius: 10px;
}
.toc a:hover, .toc a.is-active {
  color: var(--sand-bright);
  background: rgba(212, 175, 87, 0.12);
}
.rule-block { padding: 1.5rem 1.5rem 1.25rem; margin: 0 0 1rem; }
.rule-block h2 { font-size: 1.32rem; margin: 0 0 0.8rem; }
.rule-block h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--sand-bright);
  margin: 1rem 0 0.4rem;
}
.rule-block p, .rule-block li { color: var(--sand); }
.rule-block ul, .rule-block ol { margin: 0.4rem 0 0.8rem; padding-left: 1.15rem; }
.rule-block .callout {
  border-left: 2px solid var(--gold);
  background: rgba(212, 175, 87, 0.08);
  padding: 0.7rem 1rem;
  margin: 0.8rem 0;
  color: var(--sand-bright);
  border-radius: 12px;
}
@media (max-width: 860px) {
  .rules-layout { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; margin-bottom: 0.4rem; }
  .toc ol { display: grid; grid-template-columns: 1fr 1fr; gap: 0 0.6rem; }
}

.vote-card { text-align: center; }
.vote-card img {
  margin: 0.8rem auto 1rem; height: 48px; width: auto;
  background: #fff; padding: 0.3rem 0.5rem; border-radius: 8px;
}
.vote-card img.vote-mark {
  height: 72px; width: 72px; background: #0c0a08; padding: 0.2rem;
  border: 1px solid rgba(212, 175, 87, 0.3);
}
.social-grid a.card { text-decoration: none; color: inherit; display: block; }
.social-grid a.card h3 { margin-bottom: 0.35rem; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 1rem 0 1rem 4rem;
  border-bottom: 1px solid rgba(212, 175, 87, 0.14);
  color: var(--sand);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 1.05rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  color: var(--gold);
}
.steps strong { color: var(--sand-bright); }
.placeholder-panel { text-align: center; padding: 3rem 1.25rem; }
.fine { font-size: 0.95rem; color: var(--sand-mute); }
.status-link {
  display: inline-flex; align-items: center; gap: 0.45rem;
  color: var(--sand-dim); text-decoration: none;
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600;
}
.status-link::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
}

/* Footer */
.site-footer {
  margin: 0 0.9rem 0.9rem;
  padding: 2.8rem 0 1.6rem;
  color: var(--sand-dim);
  font-size: 0.98rem;
  border-radius: 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.2rem;
}
.site-footer h2, .site-footer h3 {
  font-family: var(--font-body);
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 650;
  color: var(--sand);
  margin: 0 0 0.8rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 0.35rem; }
.site-footer a { color: var(--sand-dim); text-decoration: none; }
.site-footer a:hover { color: var(--sand-bright); }
.copyright {
  margin-top: 2rem; padding-top: 1.2rem;
  border-top: 1px solid rgba(212, 175, 87, 0.16);
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem;
  justify-content: space-between;
  font-size: 0.88rem;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

p, li { overflow-wrap: break-word; }

.footer-scene { padding: 1.5rem 0 0.4rem; }
.footer-scene.scene::after { background: linear-gradient(180deg, rgba(12,10,8,0.35), rgba(12,10,8,0.7)); }

/* ========== v5 extras ========== */
.highlight-card { padding: 0 0 1.25rem; overflow: hidden; text-decoration: none; color: inherit; display: block; }
.highlight-card img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin: 0 0 1rem;
}
.highlight-card h3, .highlight-card p { padding: 0 1.25rem; }
.highlight-card h3 { margin-top: 0; }
a.highlight-card:hover h3 { color: var(--gold-bright); }

.logo-lockup {
  width: min(26rem, 100%);
  height: auto;
  margin: 0 auto 1.1rem;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.45));
}

.social-inline {
  display: flex; flex-wrap: wrap; gap: 0.55rem 0.7rem;
  justify-content: center;
  list-style: none; margin: 1.2rem 0 0; padding: 0;
}
.social-inline a {
  display: inline-flex; align-items: center;
  color: var(--sand);
  text-decoration: none;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.social-inline a:hover { background: rgba(212, 175, 87, 0.12); color: var(--gold-bright); }

.apply-crest { width: 88px; height: 88px; margin: 0 auto 1rem; border-radius: 50%; object-fit: cover; border: 1px solid rgba(212, 175, 87, 0.4); background: #0c0a08; }

/* Thanksgiving layer — driven only by html.season-thanksgiving (see assets/js/season.js) */
.thanks-line { display: none; }
.hero-art .hero-thanksgiving { display: none; }
html.season-thanksgiving .hero-art .hero-default { display: none; }
html.season-thanksgiving .hero-art .hero-thanksgiving { display: block; }
html.season-thanksgiving .thanks-line {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.65rem);
  color: var(--gold-bright);
  margin: 0 0 0.55rem;
  letter-spacing: 0.04em;
}
html.season-thanksgiving .hero {
  min-height: 0;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding-top: var(--header-h);
}
html.season-thanksgiving .hero-art {
  position: relative;
  inset: auto;
  width: 100%;
  aspect-ratio: 1809 / 702;
  flex: 0 0 auto;
}
html.season-thanksgiving .hero-art img,
html.season-thanksgiving .hero-art .hero-thanksgiving {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center center;
  transform: none !important;
  animation: none !important;
}
html.season-thanksgiving .hero-vignette {
  background: linear-gradient(0deg, rgba(12,10,8,0.55) 0%, transparent 28%);
}
html.season-thanksgiving .hero-content {
  padding: 1.4rem 0 2.4rem;
}
html.season-thanksgiving .hero h1,
html.season-thanksgiving .hero .subbrand {
  /* Logo is already in the Thanksgiving banner — do not stack a second wordmark */
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}
html.season-thanksgiving .hero .tagline { display: none; }
html.season-thanksgiving .hero-content { text-align: center; }

/* Warm harvest wash — very light, whole site, no extra copy */
html.season-thanksgiving body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 50;
  background: radial-gradient(ellipse at 50% 0%, rgba(200, 110, 30, 0.10), transparent 55%),
              rgba(140, 70, 16, 0.04);
  mix-blend-mode: soft-light;
}
html.season-thanksgiving {
  --gold: #E0B45C;
  --gold-bright: #F3D48A;
}

.leaves {
  display: none;
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  overflow: hidden;
  perspective: 900px;
}
.leaves .leaf-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
html.season-thanksgiving .leaves { display: block; }

.leaves .leaf {
  position: absolute;
  top: -14%;
  left: var(--x, 10%);
  width: var(--size, 32px);
  height: auto;
  margin: 0;
  padding: 0;
  line-height: 0;
  opacity: var(--opacity, 0.88);
  pointer-events: none;
  animation: leaf-fall var(--dur, 14s) linear var(--delay, 0s) infinite;
  will-change: transform;
}
.leaves .leaf-sway {
  display: block;
  animation: leaf-sway var(--sway-dur, 3.4s) ease-in-out var(--delay, 0s) infinite alternate;
  will-change: transform;
}
.leaves .leaf-spin {
  display: block;
  width: var(--size, 32px);
  transform-origin: 50% 45%;
  transform-style: preserve-3d;
  animation: leaf-tumble-a var(--spin-dur, 5.5s) linear var(--delay, 0s) infinite;
  will-change: transform;
  filter: drop-shadow(0 2px 3px rgba(40, 16, 4, 0.42));
}
.leaves .leaf[data-spin="b"] .leaf-spin { animation-name: leaf-tumble-b; }
.leaves .leaf[data-spin="c"] .leaf-spin { animation-name: leaf-tumble-c; }
.leaves .leaf svg { display: block; width: 100%; height: auto; overflow: visible; }

@keyframes leaf-fall {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(var(--drift, 16px), var(--travel, 110vh), 0); }
}
@keyframes leaf-sway {
  0%   { transform: translate3d(calc(var(--sway, 28px) * -1), 0, 0); }
  100% { transform: translate3d(var(--sway, 28px), 0, 0); }
}
@keyframes leaf-tumble-a {
  0%   { transform: rotateX(0deg) rotateY(0deg) rotateZ(var(--rot, 0deg)); }
  25%  { transform: rotateX(68deg) rotateY(180deg) rotateZ(calc(var(--rot, 0deg) + 48deg)); }
  50%  { transform: rotateX(-22deg) rotateY(360deg) rotateZ(calc(var(--rot, 0deg) - 28deg)); }
  75%  { transform: rotateX(52deg) rotateY(520deg) rotateZ(calc(var(--rot, 0deg) + 22deg)); }
  100% { transform: rotateX(0deg) rotateY(720deg) rotateZ(var(--rot, 0deg)); }
}
@keyframes leaf-tumble-b {
  0%   { transform: rotateX(12deg) rotateY(0deg) rotateZ(var(--rot, 0deg)); }
  30%  { transform: rotateX(-60deg) rotateY(-160deg) rotateZ(calc(var(--rot, 0deg) - 40deg)); }
  58%  { transform: rotateX(30deg) rotateY(-340deg) rotateZ(calc(var(--rot, 0deg) + 18deg)); }
  100% { transform: rotateX(12deg) rotateY(-720deg) rotateZ(var(--rot, 0deg)); }
}
@keyframes leaf-tumble-c {
  0%   { transform: rotateX(0deg) rotateY(20deg) rotateZ(var(--rot, 0deg)); }
  20%  { transform: rotateX(40deg) rotateY(-30deg) rotateZ(calc(var(--rot, 0deg) + 70deg)); }
  50%  { transform: rotateX(-50deg) rotateY(50deg) rotateZ(calc(var(--rot, 0deg) + 160deg)); }
  80%  { transform: rotateX(28deg) rotateY(-15deg) rotateZ(calc(var(--rot, 0deg) + 260deg)); }
  100% { transform: rotateX(0deg) rotateY(20deg) rotateZ(calc(var(--rot, 0deg) + 360deg)); }
}

@media (max-width: 639px) {
  .leaves .leaf[data-priority="low"] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html.season-thanksgiving .leaves { display: none !important; }
}

/* Live players-online chip — sits in the header pill, left of the menus */
.header-inner .online-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0 auto;
  flex: 0 0 auto;
  max-width: 100%;
  padding: 0.32rem 0.7rem 0.32rem 0.6rem;
  background: rgba(212, 175, 87, 0.10);
  border: 1px solid rgba(212, 175, 87, 0.28);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
  color: var(--sand-bright);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  white-space: nowrap;
}
.online-chip .online-dot {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--sand-dim);
  flex: 0 0 auto;
}
.online-chip.is-live .online-dot {
  background: #8fdfa3;
  box-shadow: 0 0 8px rgba(143, 223, 163, 0.75);
}
.online-chip.is-unavailable {
  color: var(--sand-dim);
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* Tighten the menu cluster a little so the chip still fits at mid widths */
@media (max-width: 1180px) and (min-width: 961px) {
  .nav a { padding: 0.45rem 0.5rem; font-size: 0.74rem; }
  .nav .btn { padding: 0.6rem 0.9rem; }
}

/* On small screens the compact count sits beside the menu toggle.
   The longer unavailable phrase drops to a slim bar under the pill so it stays readable. */
@media (max-width: 960px) {
  .header-inner .online-chip {
    margin-right: 0.35rem;
    padding: 0.3rem 0.6rem 0.3rem 0.5rem;
    font-size: 0.68rem;
  }
  .header-inner .online-chip.is-unavailable {
    position: absolute;
    left: 0.8rem;
    right: 0.8rem;
    top: calc(100% + 0.35rem);
    margin: 0;
    justify-content: center;
    padding: 0.4rem 0.8rem;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    background: rgba(16, 12, 8, 0.86);
    backdrop-filter: blur(18px) saturate(165%);
    -webkit-backdrop-filter: blur(18px) saturate(165%);
    border: 1px solid rgba(255, 236, 200, 0.16);
    box-shadow: 0 12px 28px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.10);
    white-space: normal;
    text-align: center;
    z-index: 81;
  }
}

@media (max-width: 420px) {
  .header-inner .online-chip:not(.is-unavailable) {
    font-size: 0.64rem;
    padding: 0.28rem 0.5rem 0.28rem 0.45rem;
  }
}
