/* ============================================================================
   WAR ON SOLANA — Alliance vs Horde
   Design dials: variance 8 · motion 6 · density 7
   One accent (heraldic gold) unifies two structural faction colors.
   Corner system: beveled clip-paths (angular heraldry), not rounded.
   ============================================================================ */

:root {
  /* --- night / iron --- */
  --ink:        #070810;
  --iron:       #0b0d14;
  --iron-2:     #12141d;
  --iron-3:     #191c27;
  --hair:       rgba(216, 178, 90, .16);   /* gold hairline */
  --hair-dim:   rgba(216, 178, 90, .08);

  /* --- parchment text --- */
  --parch:      #ece3cf;
  --parch-dim:  #b7ad97;
  --parch-mute: #7c7565;

  /* --- the one accent : heraldic gold --- */
  --gold:       #d8b25a;
  --gold-lit:   #f2d98a;
  --gold-deep:  #8a6c২b;
  --gold-deep2: #6f571f;

  /* --- Alliance (order / light / azure-steel) --- */
  --al:         #3a86e0;
  --al-lit:     #8fc0f5;
  --al-deep:    #0e2a54;
  --al-glow:    rgba(58, 134, 224, .55);

  /* --- Horde (fury / ember / crimson) --- */
  --ho:         #d1342c;
  --ho-lit:     #ff7a41;
  --ho-deep:    #4f0d0b;
  --ho-glow:    rgba(209, 52, 44, .55);

  --font-display: 'Cinzel', 'Times New Roman', serif;
  --font-decor:   'Cinzel Decorative', 'Cinzel', serif;
  --font-body:    'EB Garamond', Georgia, serif;
  --font-mono:    'Chakra Petch', 'Consolas', monospace;

  --bevel: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  --maxw: 1180px;
}

/* fix a stray non-ascii in var above (kept clean) */
:root { --gold-deep: #8a6c2b; }

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

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

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--parch);
  line-height: 1.55;
  overflow-x: hidden;
  font-size: 18px;
  letter-spacing: .1px;
  min-height: 100vh;
  position: relative;
}

/* layered war-torn sky background, fixed */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(1200px 700px at 12% -8%, rgba(58,134,224,.14), transparent 60%),
    radial-gradient(1200px 700px at 88% -8%, rgba(209,52,44,.15), transparent 60%),
    radial-gradient(900px 900px at 50% 120%, rgba(216,178,90,.06), transparent 60%),
    linear-gradient(180deg, #05060c 0%, #090a12 45%, #070810 100%);
}
/* subtle grain / ash */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: .05;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* the global fx canvas (embers + light motes) */
#fx {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--gold-lit); outline-offset: 3px; }

/* ---------- shared type ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: .02em;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
  text-transform: uppercase;
  background: linear-gradient(180deg, var(--gold-lit), var(--gold) 55%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  text-shadow: 0 1px 0 rgba(0,0,0,.4);
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
section { position: relative; padding: clamp(56px, 9vw, 120px) 0; }

/* ornamented gold divider used between sections */
.rule {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; margin: 0 auto 46px; max-width: 720px;
}
.rule::before, .rule::after {
  content: ''; height: 1px; flex: 1;
  background: linear-gradient(90deg, transparent, var(--gold-deep), transparent);
}
.rule .lozenge {
  width: 12px; height: 12px; transform: rotate(45deg);
  border: 1px solid var(--gold);
  box-shadow: 0 0 12px var(--gold-deep) inset, 0 0 8px rgba(216,178,90,.4);
}
.rule .rule-orn {
  width: clamp(180px, 32vw, 300px); height: auto; flex: none;
  filter: drop-shadow(0 2px 10px rgba(216,178,90,.35));
  opacity: .95;
}

/* ============================================================================
   TOP BAR
   ============================================================================ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px clamp(16px, 4vw, 40px);
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(7,8,16,.92), rgba(7,8,16,.55));
  border-bottom: 1px solid var(--hair);
}
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .92rem; }
.brand .sigil { width: 26px; height: 26px; filter: drop-shadow(0 0 6px var(--gold-deep)); }
.brand b { color: var(--al-lit); }
.brand i { color: var(--gold); font-style: normal; padding: 0 2px; }
.brand em { color: var(--ho-lit); font-style: normal; }
.topbar nav { display: flex; align-items: center; gap: 22px; }
.topbar nav a { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--parch-dim); transition: color .2s; }
.topbar nav a:hover { color: var(--gold-lit); }
.topbar .live { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em; color: var(--parch-dim); }
.topbar .live .dot { width: 8px; height: 8px; border-radius: 50%; background: #47d16a; box-shadow: 0 0 0 0 rgba(71,209,106,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(71,209,106,.55)} 70%{box-shadow:0 0 0 9px rgba(71,209,106,0)} 100%{box-shadow:0 0 0 0 rgba(71,209,106,0)} }

/* ============================================================================
   HERO — the signature: diagonal faction split with molten seam clash
   ============================================================================ */
.hero { min-height: 100svh; padding: 0; overflow: hidden; display: grid; }
.hero-splits { position: absolute; inset: 0; z-index: 0; }
.split {
  position: absolute; inset: 0;
}
.split.alliance {
  clip-path: polygon(0 0, 56% 0, 44% 100%, 0 100%);
  background:
    radial-gradient(80% 120% at 20% 30%, rgba(58,134,224,.30), transparent 60%),
    linear-gradient(160deg, #0a1730 0%, #08122a 55%, #060a18 100%);
  box-shadow: inset -40px 0 120px rgba(58,134,224,.10);
}
.split.horde {
  clip-path: polygon(56% 0, 100% 0, 100% 100%, 44% 100%);
  background:
    radial-gradient(80% 120% at 80% 30%, rgba(209,52,44,.30), transparent 60%),
    linear-gradient(200deg, #2a0a0a 0%, #1e0808 55%, #120505 100%);
  box-shadow: inset 40px 0 120px rgba(209,52,44,.12);
}
/* molten seam */
.seam {
  position: absolute; top: -6%; bottom: -6%; left: 50%;
  width: 3px; transform: translateX(-50%) rotate(6.34deg);
  transform-origin: center;
  background: linear-gradient(180deg, transparent, var(--gold-lit) 15%, #fff 50%, var(--gold-lit) 85%, transparent);
  box-shadow: 0 0 24px 4px rgba(255,180,80,.7), 0 0 60px 12px rgba(255,120,40,.35);
  z-index: 2;
  animation: seamFlicker 3.6s ease-in-out infinite;
}
@keyframes seamFlicker { 0%,100%{opacity:.85; filter:blur(.2px)} 50%{opacity:1; filter:blur(.6px)} }

.hero-inner {
  position: relative; z-index: 3;
  width: 100%; max-width: var(--maxw); margin: auto;
  padding: 96px clamp(16px, 4vw, 40px) 60px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(10px, 3vw, 40px);
  text-align: center;
}
.hero-side { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hero-side .crest { width: clamp(110px, 18vw, 190px); height: auto; object-fit: contain; }
.crest-al { filter: drop-shadow(0 8px 30px var(--al-glow)); animation: floatA 6s ease-in-out infinite; }
.crest-ho { filter: drop-shadow(0 8px 30px var(--ho-glow)); animation: floatB 6.4s ease-in-out infinite; }
@keyframes floatA { 0%,100%{transform:translateY(0) rotate(-1deg)} 50%{transform:translateY(-12px) rotate(1deg)} }
@keyframes floatB { 0%,100%{transform:translateY(-6px) rotate(1deg)} 50%{transform:translateY(6px) rotate(-1deg)} }

.faction-name { font-family: var(--font-decor); font-size: clamp(1.4rem, 3vw, 2.3rem); letter-spacing: .05em; text-transform: uppercase; }
.faction-name.al { color: var(--al-lit); text-shadow: 0 0 22px var(--al-glow); }
.faction-name.ho { color: var(--ho-lit); text-shadow: 0 0 22px var(--ho-glow); }
.faction-cry { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .28em; text-transform: uppercase; color: var(--parch-mute); }

.hero-center { display: flex; flex-direction: column; align-items: center; gap: 20px; min-width: min(90vw, 460px); }
.hero-kicker { font-family: var(--font-mono); letter-spacing: .4em; font-size: .7rem; text-transform: uppercase; color: var(--gold); }
.hero-title {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.4rem, 7vw, 5.4rem); line-height: .92; letter-spacing: .01em;
}
.hero-title .war {
  display: block;
  background: linear-gradient(180deg, #fff, var(--gold-lit) 40%, var(--gold) 70%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 18px rgba(216,178,90,.35));
}
.hero-title .on { display: block; font-size: .32em; letter-spacing: .5em; color: var(--parch-dim); margin-top: .5em; }
.vs {
  font-family: var(--font-decor); font-weight: 900;
  font-size: clamp(2.2rem, 6vw, 4rem);
  background: linear-gradient(180deg, #fff, var(--gold-lit), var(--ho-lit));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  position: relative; line-height: 1;
  animation: vsPulse 2.8s ease-in-out infinite;
}
@keyframes vsPulse { 0%,100%{transform:scale(1); filter:drop-shadow(0 0 12px rgba(255,200,90,.5))} 50%{transform:scale(1.06); filter:drop-shadow(0 0 26px rgba(255,150,60,.8))} }
.hero-sub { max-width: 440px; color: var(--parch-dim); font-size: 1.05rem; }
.hero-sub b { color: var(--gold-lit); font-weight: 600; }

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }

/* the tug-of-war battle meter under the title */
.warmeter { width: min(92vw, 520px); margin-top: 6px; }
.warmeter .bar {
  position: relative; height: 26px; clip-path: var(--bevel);
  background: linear-gradient(90deg, var(--ho-deep), var(--al-deep));
  border: 1px solid var(--hair);
  overflow: hidden;
}
.warmeter .fill-al {
  position: absolute; inset: 0 auto 0 0; width: 50%;
  background: linear-gradient(90deg, var(--al-deep), var(--al));
  box-shadow: inset 0 0 20px rgba(0,0,0,.4);
  transition: width 1.1s cubic-bezier(.2,.8,.2,1);
}
.warmeter .fill-ho {
  position: absolute; inset: 0 0 0 auto; width: 50%;
  background: linear-gradient(270deg, var(--ho-deep), var(--ho));
  box-shadow: inset 0 0 20px rgba(0,0,0,.4);
  transition: width 1.1s cubic-bezier(.2,.8,.2,1);
}
.warmeter .knife {
  position: absolute; top: -5px; bottom: -5px; width: 3px; left: 50%; transform: translateX(-50%);
  background: var(--gold-lit); box-shadow: 0 0 12px var(--gold-lit); z-index: 3;
  transition: left 1.1s cubic-bezier(.2,.8,.2,1);
}
.warmeter .labels { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--font-mono); font-size: .82rem; letter-spacing: .12em; }
.warmeter .labels .p-al { color: var(--al-lit); }
.warmeter .labels .p-ho { color: var(--ho-lit); }
.warmeter .status { text-align: center; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .3em; color: var(--parch-mute); text-transform: uppercase; margin-top: 6px; }

.scroll-cue { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 3; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .3em; color: var(--parch-mute); text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.scroll-cue .chev { width: 10px; height: 10px; border-right: 1px solid var(--gold); border-bottom: 1px solid var(--gold); transform: rotate(45deg); animation: bob 1.8s infinite; }
@keyframes bob { 0%,100%{transform:rotate(45deg) translateY(0); opacity:.5} 50%{transform:rotate(45deg) translateY(5px); opacity:1} }

/* ============================================================================
   BUTTONS
   ============================================================================ */
.btn {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .14em;
  font-size: .8rem; padding: 13px 24px; cursor: pointer; position: relative;
  clip-path: var(--bevel);
  border: 1px solid var(--gold-deep);
  background: linear-gradient(180deg, var(--iron-3), var(--iron));
  color: var(--gold-lit); transition: transform .12s ease, box-shadow .2s ease, background .2s;
  display: inline-flex; align-items: center; gap: 9px;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(216,178,90,.22); }
.btn:active { transform: translateY(0); }
.btn.al { border-color: var(--al); color: var(--al-lit); background: linear-gradient(180deg, #123156, #0b1c34); }
.btn.al:hover { box-shadow: 0 8px 26px var(--al-glow); }
.btn.ho { border-color: var(--ho); color: var(--ho-lit); background: linear-gradient(180deg, #451210, #2a0b0a); }
.btn.ho:hover { box-shadow: 0 8px 26px var(--ho-glow); }
.btn.gold { background: linear-gradient(180deg, var(--gold-lit), var(--gold) 55%, var(--gold-deep)); color: #201704; border-color: var(--gold-lit); }
.btn.gold:hover { box-shadow: 0 8px 30px rgba(216,178,90,.5); }
.btn.ghost { background: transparent; }

/* ============================================================================
   FACTION WAR-BANNER CARDS (live stats)
   ============================================================================ */
.arena { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(14px, 2.4vw, 28px); align-items: stretch; }
.banner {
  position: relative; padding: 26px 24px 24px; clip-path: var(--bevel);
  border: 1px solid var(--hair);
  background: linear-gradient(180deg, rgba(20,22,32,.92), rgba(10,11,18,.92));
  overflow: hidden;
}
.banner::before { /* faction wash */
  content: ''; position: absolute; inset: 0; opacity: .5; z-index: 0;
}
.banner.al::before { background: radial-gradient(120% 80% at 15% 0%, rgba(58,134,224,.22), transparent 60%); }
.banner.ho::before { background: radial-gradient(120% 80% at 85% 0%, rgba(209,52,44,.22), transparent 60%); }
.banner.leading { box-shadow: 0 0 0 1px var(--gold), 0 18px 50px rgba(0,0,0,.5); }
.banner.al.leading { box-shadow: 0 0 0 1px var(--al), 0 0 40px var(--al-glow); }
.banner.ho.leading { box-shadow: 0 0 0 1px var(--ho), 0 0 40px var(--ho-glow); }
.banner > * { position: relative; z-index: 1; }

.banner-head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.banner-head .crest-sm { height: 56px; width: auto; flex: none; object-fit: contain; }
.banner.al .crest-sm { filter: drop-shadow(0 0 10px var(--al-glow)); }
.banner.ho .crest-sm { filter: drop-shadow(0 0 10px var(--ho-glow)); }
.banner-head h3 { font-family: var(--font-decor); font-size: 1.5rem; text-transform: uppercase; letter-spacing: .04em; line-height: 1; }
.banner.al h3 { color: var(--al-lit); }
.banner.ho h3 { color: var(--ho-lit); }
.banner-head .tk { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .18em; color: var(--parch-mute); }
.crown { margin-left: auto; font-size: 1.3rem; opacity: 0; transform: scale(.6); transition: .4s; }
.banner.leading .crown { opacity: 1; transform: scale(1); }

.price { font-family: var(--font-mono); font-size: 1.9rem; font-weight: 700; margin: 12px 0 2px; letter-spacing: .02em; }
.price .chg { font-size: .82rem; margin-left: 8px; padding: 2px 8px; clip-path: var(--bevel); }
.chg.up { color: #7ff0a2; background: rgba(71,209,106,.12); }
.chg.down { color: #ff8f8f; background: rgba(209,52,44,.14); }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 16px; background: var(--hair-dim); border: 1px solid var(--hair-dim); }
.stat { background: rgba(9,10,17,.7); padding: 12px 14px; }
.stat .k { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--parch-mute); }
.stat .v { font-family: var(--font-mono); font-size: 1.15rem; font-weight: 600; color: var(--parch); margin-top: 3px; }

/* morale (buy/sell pressure) gauge */
.morale { margin-top: 16px; }
.morale .track { height: 12px; clip-path: var(--bevel); background: rgba(255,120,90,.18); overflow: hidden; border: 1px solid var(--hair-dim); }
.morale .buys { height: 100%; background: linear-gradient(90deg, #2f9e57, #57e08a); transition: width .9s cubic-bezier(.2,.8,.2,1); }
.morale .row { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; margin-top: 6px; color: var(--parch-dim); }
.morale .row .b { color: #7ff0a2; } .morale .row .s { color: #ff9a8f; }

.banner-cta { display: flex; gap: 10px; margin-top: 20px; }
.banner-cta .btn { flex: 1; justify-content: center; padding: 12px 10px; }

/* central clash column */
.clash { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-width: 92px; }
.clash .swords { width: 64px; height: 64px; filter: drop-shadow(0 0 14px rgba(216,178,90,.6)); animation: clashSpin 8s linear infinite; }
@keyframes clashSpin { 0%{transform:rotate(0)} 100%{transform:rotate(360deg)} }
.clash .vs-sm { font-family: var(--font-decor); font-size: 1.4rem; color: var(--gold-lit); text-shadow: 0 0 16px var(--gold-deep); }
.clash .tf { display: flex; flex-direction: column; gap: 6px; }

/* timeframe pills */
.tf-pills { display: inline-flex; gap: 6px; padding: 5px; clip-path: var(--bevel); border: 1px solid var(--hair); background: rgba(9,10,17,.8); }
.tf-pills button {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--parch-mute); background: transparent; border: 0; padding: 6px 11px; cursor: pointer; clip-path: var(--bevel); transition: .2s;
}
.tf-pills button.active { color: #1a1305; background: linear-gradient(180deg, var(--gold-lit), var(--gold)); font-weight: 700; }
.tf-pills button:hover:not(.active) { color: var(--gold-lit); }

/* ============================================================================
   SCORE BREAKDOWN (weighted metrics as clashing bars)
   ============================================================================ */
.breakdown { display: grid; gap: 18px; max-width: 860px; margin: 0 auto; }
.metric { }
.metric .top { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-mono); font-size: .78rem; letter-spacing: .1em; margin-bottom: 7px; }
.metric .top .name { color: var(--parch); text-transform: uppercase; }
.metric .top .name span { color: var(--gold); font-size: .7em; margin-left: 8px; }
.metric .top .val-al { color: var(--al-lit); } .metric .top .val-ho { color: var(--ho-lit); }
.metric .duel {
  position: relative; height: 22px; display: flex; clip-path: var(--bevel);
  background: var(--iron); border: 1px solid var(--hair-dim);
}
.metric .duel .al { background: linear-gradient(90deg, var(--al-deep), var(--al)); height: 100%; transition: width 1s cubic-bezier(.2,.8,.2,1); }
.metric .duel .ho { background: linear-gradient(270deg, var(--ho-deep), var(--ho)); height: 100%; margin-left: auto; transition: width 1s cubic-bezier(.2,.8,.2,1); }
.metric .duel .mid { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--gold-deep); }

/* ============================================================================
   CHART (lazy dexscreener), tabbed per faction
   ============================================================================ */
.chart-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 18px; }
.chart-frame { position: relative; clip-path: var(--bevel); border: 1px solid var(--hair); background: var(--iron); overflow: hidden; aspect-ratio: 16/9; max-width: 980px; margin: 0 auto; }
.chart-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.chart-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--parch-mute); font-family: var(--font-mono); letter-spacing: .12em; text-align: center; padding: 20px; }

/* ============================================================================
   WOW RESERVE section
   ============================================================================ */
.reserve { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 60px); align-items: center; }
.reserve .coin { display: flex; justify-content: center; }
.reserve .coin img { width: min(82%, 340px); height: auto; filter: drop-shadow(0 16px 44px rgba(216,178,90,.4)); animation: coinBob 6s ease-in-out infinite; }
@keyframes coinBob { 0%,100%{transform:translateY(0) rotate(-1.5deg)} 50%{transform:translateY(-14px) rotate(1.5deg)} }
.reserve h2 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.05; margin-bottom: 14px; }
.reserve h2 .g { color: var(--gold-lit); }
.reserve p { color: var(--parch-dim); max-width: 46ch; margin-bottom: 18px; }
.reserve .tokrow { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================================
   CA BARS
   ============================================================================ */
.ca-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ca {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; clip-path: var(--bevel);
  border: 1px solid var(--hair); background: rgba(9,10,17,.7); cursor: pointer; transition: .2s;
}
.ca:hover { border-color: var(--gold); background: rgba(20,22,32,.9); }
.ca .lab { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; }
.ca.al .lab { color: var(--al-lit); } .ca.ho .lab { color: var(--ho-lit); } .ca.wow .lab { color: var(--gold-lit); }
.ca .addr { font-family: var(--font-mono); font-size: .82rem; color: var(--parch-dim); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca .copy { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; color: var(--gold); text-transform: uppercase; }
.ca.copied { border-color: #47d16a; }
.ca.copied .copy { color: #7ff0a2; }

/* tokenomics strip */
.tok-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hair-dim); border: 1px solid var(--hair); clip-path: var(--bevel); margin-top: 28px; }
.tok-strip .cell { background: rgba(9,10,17,.85); padding: 22px 18px; text-align: center; }
.tok-strip .cell .n { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; color: var(--gold-lit); }
.tok-strip .cell .l { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--parch-mute); margin-top: 6px; }

/* ============================================================================
   FOOTER
   ============================================================================ */
footer { border-top: 1px solid var(--hair); padding: 40px 0 60px; text-align: center; }
footer .socials { display: flex; gap: 14px; justify-content: center; margin-bottom: 20px; }
footer .socials a { width: 46px; height: 46px; display: grid; place-items: center; clip-path: var(--bevel); border: 1px solid var(--hair); color: var(--gold); transition: .2s; }
footer .socials a:hover { border-color: var(--gold); color: var(--gold-lit); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(216,178,90,.25); }
footer .disc { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; color: var(--parch-mute); max-width: 620px; margin: 0 auto; line-height: 1.7; }
footer .fine { margin-top: 16px; font-family: var(--font-mono); font-size: .62rem; color: var(--parch-mute); letter-spacing: .16em; text-transform: uppercase; }

/* reveal-on-scroll — gated behind .js so content stays visible if JS ever fails */
.reveal { transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
html.js .reveal { opacity: 0; transform: translateY(28px); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 860px) {
  body { font-size: 17px; }
  .topbar nav { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 26px; padding-top: 84px; }
  .hero-side { flex-direction: row; justify-content: center; gap: 14px; }
  .hero-side .crest { width: 92px; }
  .split.alliance { clip-path: polygon(0 0, 100% 0, 100% 44%, 0 56%); }
  .split.horde   { clip-path: polygon(0 56%, 100% 44%, 100% 100%, 0 100%); }
  .seam { top: 44%; bottom: auto; left: -6%; right: -6%; width: auto; height: 3px; transform: rotate(-4deg); }
  .arena { grid-template-columns: 1fr; }
  .clash { flex-direction: row; order: -1; justify-content: center; }
  .clash .swords { width: 44px; height: 44px; }
  .reserve { grid-template-columns: 1fr; text-align: center; }
  .reserve p { margin-inline: auto; }
  .reserve .tokrow { justify-content: center; }
  .ca-grid { grid-template-columns: 1fr; }
  .tok-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 390px) {
  .hero-title { font-size: 2.2rem; }
  .hero-side .crest { width: 76px; }
  .stats { grid-template-columns: 1fr; }
  .banner-cta { flex-direction: column; }
}

/* ============================================================================
   REDUCED MOTION (motion dial > 3 => mandatory)
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html.js .reveal, .reveal { opacity: 1 !important; transform: none !important; }
  #fx { display: none; }
}
