/* ============================================================================
   STEPPE HORIZON — the cinematic design layer (v1)
   Loads after steppe.css, so overrides here win the cascade for the same
   specificity; shared-class upgrades are written with `html body ...` so they
   also beat page stylesheets that load later (clans.css on the home page).

   What this file adds:
     1. Atmosphere: aurora dawn, drifting fog, stars, film grain, vignette
     2. Cinematic home hero: glowing emblem, flowing-gold wordmark, stat band
     3. Section headers with numbered kickers and an ülger zigzag rule
     4. Scroll-reveal system (.rv) + count-up numbers + card spotlight
     5. Server cards: scanline sweep, corner brackets, ignited borders
     6. Boards: podium medals, avatar rings, rows that light up
     7. How-it-works band + gold CTA band
     8. A richer footer, scroll progress bar, header that tucks in on scroll
   Every moving part switches off for prefers-reduced-motion.
   ============================================================================ */

:root {
  /* Horizon additions. The old token names stay untouched so every other
     stylesheet keeps working. */
  --gold-1: #f9e7ab;               /* palest highlight */
  --gold-2: #e8b23a;               /* the brand gold (same as --red) */
  --gold-3: #a97e1f;               /* deep bronze */
  --gold-glow: rgba(232, 178, 58, 0.28);
  --indigo: #5866c9;               /* dusk sky — secondary accent */
  --teal: #4fb9a7;                 /* thin counterpoint in the aurora */
  --hz-surface: linear-gradient(180deg, #14161c 0%, #101218 100%);

  --ornament: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='12' viewBox='0 0 36 12'%3E%3Cpath d='M0 11 L9 3 18 11 27 3 36 11' fill='none' stroke='%23e8b23a' stroke-opacity='.42' stroke-width='1.4'/%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

/* -------------------------------------------------- 1. Atmosphere -------- */

#atmos {
  /* One fixed layer holding the whole sky so the GPU composites it once. */
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Aurora: a huge, slowly-breathing dawn behind the whole site */
#atmos .aur {
  position: absolute;
  inset: -20% -30%;
  filter: blur(70px) saturate(1.1);
  opacity: 0.55;
  background:
    radial-gradient(46% 38% at 18% 8%,  color-mix(in srgb, var(--gold-2) 22%, transparent), transparent 70%),
    radial-gradient(38% 34% at 82% 2%,  color-mix(in srgb, var(--indigo) 16%, transparent), transparent 68%),
    radial-gradient(30% 26% at 62% 22%, color-mix(in srgb, var(--teal) 9%, transparent),  transparent 70%);
  animation: aur-breathe 26s ease-in-out infinite alternate;
}
@keyframes aur-breathe {
  from { transform: translate3d(-1.5%, -1%, 0) rotate(-1.2deg) scale(1); opacity: 0.5; }
  to   { transform: translate3d(1.5%, 1.5%, 0)  rotate(1.2deg)  scale(1.06); opacity: 0.62; }
}

/* Fog: a second, closer drift layer for depth */
#atmos .fog {
  position: absolute;
  inset: -10% 0 -40%;
  filter: blur(50px);
  opacity: 0.45;
  background:
    radial-gradient(52% 30% at 12% 88%, rgba(88, 102, 201, 0.10), transparent 70%),
    radial-gradient(44% 26% at 86% 78%, rgba(232, 178, 58, 0.07), transparent 70%),
    radial-gradient(60% 24% at 50% 108%, rgba(20, 24, 34, 0.55), transparent 72%);
  animation: fog-drift 34s ease-in-out infinite alternate;
}
@keyframes fog-drift {
  from { transform: translate3d(-2%, 0, 0); }
  to   { transform: translate3d(2%, -1.5%, 0); }
}

/* Stars: two layers of crisp dots, slow opposite drift */
#atmos .stars, #atmos .stars2 {
  position: absolute;
  inset: 0 0 30%;
  background-image:
    radial-gradient(1px 1px at 20px 30px, rgba(255,244,214,.8) 49%, transparent 51%),
    radial-gradient(1px 1px at 140px 80px, rgba(255,255,255,.55) 49%, transparent 51%),
    radial-gradient(1.4px 1.4px at 250px 150px, rgba(255,236,190,.65) 49%, transparent 51%),
    radial-gradient(1px 1px at 320px 40px, rgba(255,255,255,.4) 49%, transparent 51%),
    radial-gradient(1.2px 1.2px at 420px 120px, rgba(255,244,214,.5) 49%, transparent 51%),
    radial-gradient(1px 1px at 520px 90px, rgba(255,255,255,.35) 49%, transparent 51%);
  background-size: 560px 220px;
  opacity: 0.5;
}
#atmos .stars { animation: star-drift 90s linear infinite; }
#atmos .stars2 {
  background-size: 460px 260px;
  background-position: -80px 40px;
  opacity: 0.3;
  animation: star-drift 140s linear infinite reverse;
}
@keyframes star-drift { from { background-position: 0 0; } to { background-position: -560px 0; } }

/* Film grain + vignette sit on top of everything the site draws */
#atmos::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grain) repeat;
  mix-blend-mode: overlay;
  opacity: 0.05;
}
#atmos::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 30%, transparent 58%, rgba(4, 5, 7, 0.42) 100%);
}

/* -------------------------------------------------- 2. Progress + header - */

#scroll-progress {
  position: fixed;
  top: 0; left: 0; z-index: 90;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--gold-3), var(--red-bright));
  transform-origin: left;
  transform: scaleX(0);
  pointer-events: none;
  box-shadow: 0 0 12px color-mix(in srgb, var(--red) 45%, transparent);
}

/* the glass bar tucks in a little once you start scrolling */
html body > header {
  padding-top: 20px;
  padding-bottom: 20px;
  transition: padding var(--t) var(--ease), background var(--t) ease,
              border-color var(--t) ease, box-shadow var(--t) ease;
  box-shadow: 0 1px 0 rgba(232, 178, 58, 0.0);
}
html body > header.scrolled {
  padding-top: 11px;
  padding-bottom: 11px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom-color: color-mix(in srgb, var(--gold-2) 22%, var(--line));
  box-shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.72),
              0 1px 0 rgba(232, 178, 58, 0.08) inset;
}
html body > header.scrolled .brand .logo-img { height: 30px; width: 30px; }
html .brand .logo-img { transition: height var(--t) var(--ease), width var(--t) var(--ease); }

/* brand mark gets a quiet gold ring on hover */
html .brand { position: relative; }
html .brand .logo-img {
  transition: height var(--t) var(--ease), width var(--t) var(--ease),
              box-shadow var(--t) ease, transform var(--t) var(--ease);
}
html .brand:hover .logo-img {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold-2) 55%, transparent),
              0 0 22px -4px var(--gold-glow);
  transform: translateY(-1px);
}

/* -------------------------------------------------- 3. Buttons ------------ */

/* Gold button: a light bar sweeps across it whenever you hover */
html body :is(.steam-btn, .btn-main) {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 6px 24px -10px var(--gold-glow);
}
html body :is(.steam-btn, .btn-main)::after {
  content: "";
  position: absolute;
  top: -40%;
  bottom: -40%;
  left: -70%;
  width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-18deg);
  transition: left 0.55s var(--ease);
  pointer-events: none;
}
html body :is(.steam-btn, .btn-main):hover {
  box-shadow: 0 10px 34px -10px color-mix(in srgb, var(--red) 45%, transparent);
}
html body :is(.steam-btn, .btn-main):hover::after { left: 130%; }

/* Ghost button: underline of light draws in from the left */
html body .ghost-btn { position: relative; background: rgba(10, 11, 14, 0.4); }
html body .ghost-btn::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 5px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-2), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t) var(--ease);
}
html body .ghost-btn:hover::after { transform: scaleX(1); }

/* -------------------------------------------------- 4. Sections ----------- */

/* Ornament divider — an ülger zigzag line the khadag scarves repeat */
.ornament {
  height: 12px;
  background: var(--ornament) repeat-x center;
  opacity: 0.7;
  pointer-events: none;
}
.ornament.narrow { max-width: 1160px; margin: 0 auto; }

/* Section headers: numbered kicker + rule + heading */
html body .sec-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Rajdhani', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-2);
}
html body .sec-kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--red), transparent);
}
html body .sec-kicker .num {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  border: 1px solid var(--line);
  padding: 1px 6px;
}
html body .section-head h2, html body .section-h h2 {
  font-size: 30px;
  letter-spacing: 0.02em;
}
html body .section-head .sub, html body .section-head p {
  color: var(--text-dim);
  font-size: 15px;
}

/* -------------------------------------------------- 5. Hero --------------- */

html body .hero { overflow: hidden; border-bottom: 1px solid transparent; padding-top: 10px; }
html body .hero::before, html body .hero::after { content: none; }  /* steppe.css glow — the sky now lives in #atmos */

/* a ring of faint contour circles behind the hero text */
html body .hero-rings {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 34%, transparent 0 180px, rgba(232,178,58,.07) 180px 181px, transparent 240px),
    radial-gradient(circle at 50% 34%, transparent 0 320px, rgba(232,178,58,.05) 320px 321px, transparent 400px),
    radial-gradient(circle at 50% 34%, transparent 0 470px, rgba(88,102,201,.05) 470px 471px, transparent 560px);
}
html body .hero-inner {
  max-width: 1220px;
  padding: clamp(64px, 11vh, 120px) 28px clamp(46px, 7vh, 84px);
}

/* Emblem with a breathing gold halo */
html body .hero-emblem-wrap {
  position: relative;
  width: fit-content;
  margin: 0 auto 26px;
}
html body .hero-emblem-wrap::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--gold-2) 30%, transparent) 0%, transparent 68%);
  filter: blur(14px);
  animation: emblem-breathe 5s ease-in-out infinite;
}
html body .hero-emblem-wrap::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--gold-2) 34%, transparent);
  mask: radial-gradient(circle, transparent 48%, #000 50%);
  animation: emblem-spin 26s linear infinite;
}
@keyframes emblem-breathe { 0%, 100% { opacity: 0.5; transform: scale(1); } 50% { opacity: 0.9; transform: scale(1.12); } }
@keyframes emblem-spin { to { transform: rotate(360deg); } }
html body .hero-emblem { width: clamp(72px, 9vw, 96px); margin: 0; filter: drop-shadow(0 10px 30px rgba(232,178,58,.35)); }

html body .hero-kicker { justify-content: center; letter-spacing: 0.3em; }
html body .hero-kicker::before, html body .hero-kicker::after {
  width: 30px; height: 1px; background: linear-gradient(90deg, transparent, var(--red));
}
html body .hero-kicker::after { background: linear-gradient(90deg, var(--red), transparent); }

/* The wordmark: molten gold that slowly flows */
html body .hero-wordmark {
  position: relative;
  font-size: clamp(58px, 11vw, 148px);
  letter-spacing: 0.115em;
  margin-top: 16px;
  line-height: 1.02;
  background: linear-gradient(100deg, var(--gold-3) 0%, var(--gold-2) 26%, var(--gold-1) 50%, var(--gold-2) 74%, var(--gold-3) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gold-flow 7.5s ease-in-out infinite alternate;
  filter: drop-shadow(0 8px 38px rgba(232, 178, 58, 0.22));
}
@keyframes gold-flow { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
/* the ".gg" keeps steppe.css's solid gold — it reads as the crown of the mark */

html body .hero-lede {
  max-width: 64ch;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text-dim);
  margin-top: 20px;
  text-wrap: pretty;
}
html body .hero-lede strong, html body .hero-lede b { color: var(--text); font-weight: 600; }

html body .hero-ctas { margin-top: 34px; gap: 14px; }
html body .hero-ctas .steam-btn, html body .hero-ctas .ghost-btn { padding: 13px 28px; font-size: 15.5px; }

/* Stat band under the CTAs */
html body .hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 1px;
  max-width: 720px;
  margin: 44px auto 0;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--gold-2) 30%, var(--line)) 18% 82%, transparent);
  padding: 1px;
}
html body .hero-stats .stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 16px 8px 13px;
  background: linear-gradient(180deg, rgba(16, 18, 24, 0.72), rgba(10, 11, 14, 0.4));
  transition: background var(--t) ease;
}
html body .hero-stats .stat:hover { background: linear-gradient(180deg, rgba(23, 26, 33, 0.9), rgba(13, 15, 19, 0.6)); }
html body .hero-stats b {
  font-family: 'Rajdhani', 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 34px);
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-3) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html body .hero-stats span {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-family: 'Rajdhani', 'Inter', sans-serif;
  font-weight: 600;
}

/* Scroll cue */
html body .hero-cue {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 0 0 18px;
  color: var(--text-faint);
}
html body .hero-cue .cue-line {
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, transparent, var(--gold-2) 55%, transparent);
  overflow: hidden;
  position: relative;
  animation: cue-slide 2.4s var(--ease) infinite;
}
html body .hero-cue .cue-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 240, 200, 0.9), transparent 60%);
  animation: cue-run 2.4s linear infinite;
}
@keyframes cue-slide { 0%, 100% { transform: scaleY(0.55); opacity: 0.5; } 50% { transform: scaleY(1); opacity: 1; } }
@keyframes cue-run { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

/* -------------------------------------------------- 6. Scroll reveal ------ */

html body .rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
  will-change: opacity, transform;
}
html body .rv.in { opacity: 1; transform: none; }

/* -------------------------------------------------- 7. Server cards ------- */

html body .matches { padding: 76px 28px 30px; position: relative; z-index: 1; }
html body .match-grid { gap: 18px; }
html body .match-card {
  --cc: 20px;
  height: 384px;
  background: var(--hz-surface);
  will-change: transform;
}
html body .match-card:hover { transform: translateY(-5px) scale(1.006); border-color: color-mix(in srgb, var(--gold-2) 40%, var(--line)); }

/* gold brack that tracks the top-left corner */
html body .match-card .mc-brackets i,
html body .mc-brackets i {
  position: absolute;
  width: 15px; height: 15px;
  border: 2px solid color-mix(in srgb, var(--gold-2) 75%, transparent);
  opacity: 0;
  transition: opacity var(--t) ease, transform var(--t) var(--ease);
  pointer-events: none;
  z-index: 4;
}
html body .mc-brackets i:nth-child(1) { top: 10px; left: 10px; border-right: 0; border-bottom: 0; transform: translate(-4px, -4px); }
html body .mc-brackets i:nth-child(2) { top: 10px; right: 10px; border-left: 0; border-bottom: 0; transform: translate(4px, -4px); }
html body .mc-brackets i:nth-child(3) { bottom: 10px; left: 10px; border-right: 0; border-top: 0; transform: translate(-4px, 4px); }
html body .mc-brackets i:nth-child(4) { bottom: 10px; right: 10px; border-left: 0; border-top: 0; transform: translate(4px, 4px); }
html body .match-card:hover .mc-brackets i { opacity: 1; transform: none; }

/* a soft light band sweeps the map on hover, like a camera pan */
html body .mc-sweep {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
html body .mc-sweep::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -80%;
  width: 60%;
  background: linear-gradient(100deg, transparent, rgba(232, 200, 120, 0.12), transparent);
  transform: skewX(-14deg);
  transition: left 0.7s var(--ease);
}
html body .match-card:hover .mc-sweep::before { left: 120%; }

/* map name watermark in the middle of the card */
html body .mc-water {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  font-family: 'Rajdhani', 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(56px, 7vw, 84px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.035);
  pointer-events: none;
  transition: color var(--t) ease, letter-spacing 0.7s var(--ease);
}
html body .match-card:hover .mc-water { color: rgba(255, 240, 200, 0.07); letter-spacing: 0.2em; }

/* bottom info plate gradient */
html body .match-card-bottom { gap: 10px; padding: 18px; }
html body .match-status-pill { padding: 5px 12px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: 2px; }
html body .connect-ip { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
html body .connect-copy { clip-path: polygon(7px 0, 100% 0, 100% 100%, 0 100%, 0 7px); }

/* -------------------------------------------------- 8. Boards ------------- */

html body .home-boards { position: relative; z-index: 1; padding: 30px 28px 74px; }
html body .hb-grid { gap: 18px; }
html body .hb-card {
  position: relative;
  background: var(--hz-surface);
  padding: 22px 22px 16px;
  min-width: 0;
}
/* gradient border that ignites on hover — drawn on ::after because steppe.css
   already uses ::before of these cards for its gold corner tick */
html body .hb-card::after, html body .how-step::after {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--gold-2) 55%, transparent), transparent 34%, transparent 66%, color-mix(in srgb, var(--gold-2) 26%, transparent)) border-box;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--t) ease;
  pointer-events: none;
}
html body .hb-card:hover::after, html body .how-step:hover::after { opacity: 1; }

/* cursor-following spotlight (assets/horizon.js writes --mx/--my) */
html body .hz-spot {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(300px 220px at var(--mx, 50%) var(--my, 30%), color-mix(in srgb, var(--gold-2) 9%, transparent), transparent 72%);
  opacity: 0;
  transition: opacity var(--t) ease;
}
html body .hb-card > *:not(.hz-spot) { position: relative; z-index: 1; }
html body .hb-card:hover .hz-spot { opacity: 1; }
html body .hb-card .section-h { margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
html body .hb-card .section-h h2 { font-size: 24px; border: none; padding: 0; }
html body .hb-card .section-h h2::after { content: ""; display: block; width: 34px; height: 2px; background: var(--red); margin-top: 8px; }

/* ladder rows: podium medals for top 3, gold wash on hover */
html body .hb-list li {
  padding: 11px 10px;
  margin: 0 -10px;
  border-radius: 8px 0 8px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  transition: background var(--t-fast) ease, transform var(--t-fast) var(--ease);
}
html body .hb-list li:hover { background: color-mix(in srgb, var(--gold-2) 7%, transparent); transform: translateX(3px); }
html body .hb-list li:last-child { border-bottom-color: transparent; }
html body .hb-list img, html body .hb-list .noav {
  width: 36px !important;
  height: 36px !important;
  border-radius: 7px 0 7px 0;
  box-shadow: 0 0 0 1px var(--line-strong);
  transition: box-shadow var(--t-fast) ease;
}
html body .hb-list li:hover img { box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold-2) 70%, transparent), 0 0 16px -4px var(--gold-glow); }
html body .hb-name a { transition: color var(--t-fast) ease; }
html body .hb-name a:hover { color: var(--gold-1); }
html body .hb-num { font-size: 17px; color: var(--gold-1); }

/* podium: medals instead of plain numbers */
html body .hb-list .lb-place {
  width: 26px !important;
  display: grid;
  place-items: center;
  height: 26px;
  font-size: 13px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--text-dim);
}
html body .hb-list .lb-place.p1 {
  color: #16100a;
  background: linear-gradient(145deg, var(--gold-1), var(--gold-2) 60%, var(--gold-3));
  border-color: var(--gold-1);
  box-shadow: 0 0 18px -4px var(--gold-glow);
}
html body .hb-list .lb-place.p2 { color: #d8dde3; background: linear-gradient(145deg, #e9edf1, #9aa4ad); border-color: #cfd6dc; }
html body .hb-list .lb-place.p3 { color: #2a1b0e; background: linear-gradient(145deg, #eab388, #b06a3b); border-color: #d99e6f; }

/* -------------------------------------------------- 9. How-it-works ------- */

.howsec { position: relative; z-index: 1; padding: 14px 28px 26px; }
.howsec .wrap { max-width: 1160px; margin: 0 auto; }
.how-head { text-align: center; margin-bottom: 34px; }
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  position: relative;
}
.how-grid::before {
  /* the thread that ties the three steps together */
  content: "";
  position: absolute;
  top: 44px; left: 8%; right: 8%;
  height: 1px;
  background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--gold-2) 30%, transparent) 0 10px, transparent 10px 22px);
  pointer-events: none;
}
.how-step {
  position: relative;
  padding: 30px 26px 26px;
  background: var(--hz-surface);
  border: 1px solid var(--line);
  transition: border-color var(--t) ease, transform var(--t) var(--ease), box-shadow var(--t) ease;
}
.how-step:hover {
  border-color: color-mix(in srgb, var(--gold-2) 45%, var(--line));
  transform: translateY(-4px);
  box-shadow: 0 24px 44px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(232, 178, 58, 0.06);
}
.how-num {
  position: relative;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  font-family: 'Rajdhani', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--gold-1);
  background:
    radial-gradient(circle at 30% 25%, rgba(249, 231, 171, 0.16), transparent 60%),
    var(--surface-2);
  border: 1px solid color-mix(in srgb, var(--gold-2) 40%, var(--line-strong));
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}
.how-num::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px dashed color-mix(in srgb, var(--gold-2) 32%, transparent);
  clip-path: inherit;
}
.how-step h3 { font-size: 22px; margin-bottom: 8px; }
.how-step p { color: var(--text-dim); font-size: 14.5px; line-height: 1.65; }
.how-step p code { color: var(--gold-1); background: rgba(232, 178, 58, 0.08); padding: 1px 6px; border: 1px solid rgba(232, 178, 58, 0.18); border-radius: 4px; font-size: 12.5px; }

/* ------------------------------------------------- 10. CTA band ----------- */

.ctaband { position: relative; z-index: 1; padding: 30px 28px 10px; }
.ctaband .wrap { max-width: 1160px; margin: 0 auto; }
.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(38px, 6vw, 64px) clamp(24px, 5vw, 64px);
  background:
    radial-gradient(80% 140% at 85% -30%, rgba(88, 102, 201, 0.16), transparent 60%),
    radial-gradient(60% 120% at 8% -40%, rgba(232, 178, 58, 0.16), transparent 58%),
    linear-gradient(180deg, #171923, #0e1016);
  border: 1px solid color-mix(in srgb, var(--gold-2) 26%, var(--line));
  clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px);
}
.cta::after {
  /* the sweep of light that crosses the panel, very slowly, forever */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 42%, rgba(249, 231, 171, 0.055) 50%, transparent 58%);
  transform: translateX(-70%);
  animation: cta-shine 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes cta-shine { 0%, 55% { transform: translateX(-70%); } 90%, 100% { transform: translateX(70%); } }
.cta-wrap { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.cta h2 {
  font-size: clamp(28px, 4.2vw, 44px);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.cta h2 .dot { color: var(--gold-2); }
.cta p { color: var(--text-dim); margin-top: 10px; max-width: 52ch; font-size: 15px; }
.cta .cta-acts { display: flex; gap: 14px; flex-wrap: wrap; }

/* ------------------------------------------------- 11. Footer ------------- */

html body .site-foot { position: relative; margin-top: 64px; }
html body footer.site-foot::before {
  content: "";
  display: block;
  height: 14px;
  margin: -20px auto 0;
  max-width: 1160px;
  background: var(--ornament) repeat-x center;
  opacity: 0;
  transition: opacity var(--t) ease;
  pointer-events: none;
}
html body footer.site-foot:has(.foot-grid:hover)::before { opacity: 0.7; }
/* social chips under the footer tagline */
html body .foot-soc { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
html body .soc-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  text-decoration: none;
  background: rgba(16, 18, 24, 0.5);
  border: 1px solid var(--line);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  transition: color var(--t) ease, border-color var(--t) ease, background var(--t) ease, transform var(--t) var(--ease);
}
html body .soc-chip svg { opacity: 0.75; transition: opacity var(--t) ease; }
html body .soc-chip:hover {
  color: var(--gold-1);
  border-color: color-mix(in srgb, var(--gold-2) 45%, var(--line));
  background: rgba(22, 24, 31, 0.7);
  transform: translateY(-2px);
}
html body .soc-chip:hover svg { opacity: 1; }
/* the Valve disclaimer gets its own quiet line under the bar */
html body .foot-legal {
  display: block;
  text-align: center;
  padding: 0 28px 36px;
  font-size: 11.5px;
  color: var(--text-faint);
}
html body .foot-grid { position: relative; max-width: 1160px; padding: 52px 28px 40px; gap: 40px; }
html body .foot-brand .wordmark { font-size: 24px; letter-spacing: 0.24em; }
html body .foot-brand p { font-size: 14px; color: var(--text-dim); margin-top: 14px; max-width: 36ch; line-height: 1.7; }
html body .foot-col h3 { color: var(--gold-2); font-size: 11px; letter-spacing: 0.26em; }
html body .foot-col a { position: relative; font-size: 13.5px; padding: 6px 0 6px 14px; color: var(--text-dim); }
html body .foot-col a::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 5px; height: 5px;
  background: var(--gold-2);
  transform: translateY(-50%) rotate(45deg);
  opacity: 0;
  transition: opacity var(--t-fast) ease, left var(--t-fast) ease;
}
html body .foot-col a:hover { color: var(--gold-1); }
html body .foot-col a:hover::before { opacity: 1; left: 2px; }
html body .foot-bar { justify-content: space-between; }
html body .foot-bar .fine { display: inline-flex; align-items: center; gap: 8px; }
html body .foot-ops { display: inline-flex; align-items: center; gap: 7px; }
html body .foot-ops i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px rgba(95, 211, 138, 0.7);
  animation: live-pulse 2.2s ease-in-out infinite;
}
html body .foot-bar .made { color: var(--text-faint); }

/* ------------------------------------------------- misc ------------------- */

html body #atmos { z-index: 0; }
html body > * { position: relative; z-index: 1; }
html body::selection, html body ::selection { background: var(--gold-2); color: #16100a; text-shadow: none; }

@media (max-width: 900px) {
  html body .how-grid { grid-template-columns: 1fr; gap: 0; }
  html body .how-grid::before { left: 21px; right: auto; top: 52px; bottom: -18%; width: 1px; height: auto;
    background: repeating-linear-gradient(180deg, color-mix(in srgb, var(--gold-2) 30%, transparent) 0 10px, transparent 10px 22px); }
  html body .cta-wrap { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  #atmos .stars, #atmos .stars2 { display: none; }      /* small screens keep only the dawn */
  #atmos .aur { filter: blur(48px); }
  html body .hero-stats { grid-template-columns: repeat(2, 1fr); max-width: 340px; }
  html body .hero-stats .stat:nth-child(-n+2) { border-bottom: 1px solid color-mix(in srgb, var(--gold-2) 18%, transparent); }
  html body .hero-stats .stat:nth-child(odd) { border-right: 1px solid color-mix(in srgb, var(--gold-2) 18%, transparent); }
  html body .matches { padding: 56px 16px 22px; }
  html body .home-boards { padding: 22px 14px 54px; }
  html body .howsec { padding: 10px 16px 20px; }
  html body .ctaband { padding: 20px 16px 10px; }
  html body .hb-card { padding: 18px 16px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  #atmos .aur, #atmos .fog, #atmos .stars, #atmos .stars2,
  html body .hero-emblem-wrap::before, html body .hero-emblem-wrap::after,
  html body .hero-cue .cue-line, html body .hero-cue .cue-line::after,
  html body .cta::after, html body footer.site-foot::before, html body .foot-ops i {
    animation: none !important;
  }
  html body .hero-wordmark { background-position: 50% 50%; animation: none; }
  html body .rv { opacity: 1; transform: none; transition: none; }
  html body .mc-sweep::before { display: none; }
}
