/* =====================================================================
   PHOENIX — STYLES (modern dark theme)
   ---------------------------------------------------------------------
   EVERY color is a CSS variable in :root. Re-theme by editing them only.
   Override live from JS:  document.documentElement.style.setProperty('--accent','#0af')
   Fonts (Rajdhani + Inter) are linked in each page <head>; system fonts fall back.
   ===================================================================== */

:root {
  /* ---- Surfaces (deep, warm-black) ---- */
  --bg: #07060a; /* page background */
  --bg-2: #0c0a10; /* alt band        */
  --bg-elev: #0f0d13; /* header          */
  --bg-card: #14111b; /* cards (cool-ash with warm tint) */
  --bg-card-2: #1b1622; /* card hover      */
  --glass: rgba(16, 13, 20, 0.94);

  /* ---- Text ---- */
  --text: #f1edf5;
  --text-muted: #a39bb0;
  --text-dim: #6c6478;

  /* ---- Phoenix fire accents ---- */
  --accent: #ff6a1f; /* primary orange */
  --accent-2: #ffc23d; /* gold           */
  --accent-3: #ff2e4d; /* ember red/pink */
  --accent-soft: rgba(255, 106, 31, 0.14);
  --accent-line: rgba(255, 106, 31, 0.3);

  /* ---- Lines / glow ---- */
  --border: #241d2e;
  --border-2: #34293f;
  --glow: 0 0 40px rgba(255, 106, 31, 0.3);

  /* ---- Status ---- */
  --ok: #4ee08a;
  --warn: #ffc23d;

  /* ---- Layout tokens ---- */
  --maxw: 1140px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --pad-page: clamp(18px, 4vw, 44px);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.6);

  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "Rajdhani", "Segoe UI", system-ui, sans-serif;

  /* ---- COD in-game color codes ^0..^9 ---- */
  --cod-0: #2b2b2b;
  --cod-1: #ff4444;
  --cod-2: #7cfc55;
  --cod-3: #ffe400;
  --cod-4: #5b6bff;
  --cod-5: #45e6e6;
  --cod-6: #ff5bd0;
  --cod-7: #ffffff;
  --cod-8: #ff8a1f;
  --cod-9: #8a8a8a;
}

@media (max-width: 768px) {
  .hide-mobile {
    display: none;
  }
}

/* =====================================================================
   LIGHT THEME  (toggled via <html data-theme="light">, saved to storage)
   Only surface/text colors flip — the fire accents stay the same.
   ===================================================================== */
:root[data-theme="light"] {
  --bg: #f3eee7;
  --bg-2: #e9e2d8;
  --bg-elev: #fbf8f3;
  --bg-card: #ffffff;
  --bg-card-2: #fbf5ec;
  --glass: rgba(251, 248, 243, 0.95);

  --text: #1b1620;
  --text-muted: #5a5360;
  --text-dim: #8b8390;

  --border: #e6ded2;
  --border-2: #d6cabb;

  /* The gold accent washes out on the cream page, so darken it. This covers
     ALL gold text at once: hero meta, stat numbers, countdown, donation amount,
     .text-accent, etc. (restored bright on dark surfaces below). */
  --accent-2: #c2560a;

  /* COD codes that are too light to read on a light page get darkened.
     They're restored to their bright originals inside dark surfaces below. */
  --cod-2: #3f9d2a;
  --cod-3: #b98900;
  --cod-5: #149a9a;
  --cod-7: #1b1620;
}

/* Surfaces that stay dark in BOTH themes keep bright text, gold + game-true COD colors */
:root[data-theme="light"] .topbar,
:root[data-theme="light"] .marquee,
:root[data-theme="light"] .codebox {
  --text: #f1edf5;
  --text-muted: #c7c0d0;
  --text-dim: #9b94a3;
  --accent-2: #ffc23d;
  --cod-2: #7cfc55;
  --cod-3: #ffe400;
  --cod-5: #45e6e6;
  --cod-7: #ffffff;
}

/* fire-text is a gradient (not a single var), so darken it explicitly for light mode */
:root[data-theme="light"] .fire-text {
  background-image: linear-gradient(100deg, #d81030, #d4530a 55%, #b07408);
}

/* smooth the flip on the main surfaces */
body,
.site-header,
.card,
.panel,
.band,
.submenu,
.codebox,
.countdown__unit {
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

/* ====================== Base ====================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* NOTE: do NOT add overflow-x:hidden/clip here — it makes <body> a scroll
     container and breaks the sticky header. The marquee clips itself, so no
     horizontal overflow leaks out anyway. */
  min-height: 100vh;
}
/* layered ambient glow + fine grain texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(255, 46, 77, 0.16), transparent 60%),
    radial-gradient(1000px 600px at 12% 4%, rgba(255, 106, 31, 0.14), transparent 60%),
    radial-gradient(800px 800px at 50% 120%, rgba(255, 194, 61, 0.07), transparent 60%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.035;
  background-image: 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='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: var(--accent-2);
  text-decoration: none;
  transition: color 0.15s;
}
a:hover {
  color: var(--accent);
}
img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-page);
}
section {
  padding-block: clamp(48px, 8vw, 96px);
  position: relative;
}

/* ====================== Typography ====================== */
h1,
h2,
h3,
.display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.5px;
}
h1 {
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  text-transform: uppercase;
}
h2 {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  text-transform: uppercase;
  margin-bottom: 0.5em;
}
h3 {
  font-size: 1.25rem;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.82rem;
  color: var(--accent);
  margin-bottom: 0.6em;
}
.lead {
  color: var(--text-muted);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  max-width: 62ch;
}
.muted {
  color: var(--text-muted);
}
.center {
  text-align: center;
}
.center .lead {
  margin-inline: auto;
}

.fire-text {
  background: linear-gradient(100deg, var(--accent-3), var(--accent) 55%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-head.center {
  margin-inline: auto;
}

/* ====================== Top status bar ====================== */
.topbar {
  background: #050409;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
}
.topbar__row {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 38px;
  flex-wrap: wrap;
}
.topbar__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ok);
  font-weight: 600;
}
.topbar__ip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}
.topbar__ip code {
  color: var(--accent-2);
  font-family: ui-monospace, monospace;
}
.topbar__copy {
  background: none;
  border: 1px solid var(--border-2);
  color: var(--text-muted);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.74rem;
  cursor: pointer;
  transition: 0.15s;
}
.topbar__copy:hover {
  border-color: var(--accent-line);
  color: var(--accent);
}
.topbar__spacer {
  flex: 1;
}
.topbar__battle {
  color: var(--text-muted);
}
.topbar__battle strong {
  color: var(--accent-2);
}
.theme-toggle {
  background: none;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  width: 34px;
  height: 34px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  font-size: 1.05rem;
  color: var(--text);
  display: grid;
  place-items: center;
  transition:
    border-color 0.15s,
    transform 0.15s,
    background 0.15s;
}
.theme-toggle svg {
  display: block;
}
.theme-toggle:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  transform: scale(1.08);
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
@media (max-width: 680px) {
  .topbar__battle {
    display: none;
  }
}

/* ====================== Header / Nav ====================== */
/* The header is injected into <div id="site-header">. `display:contents`
   removes that wrapper's box so the sticky <header> sticks relative to
   <body> (tall) instead of being trapped inside a header-height wrapper. */
#site-header {
  display: contents;
}

/* Before JS injects the header, reserve its height so the page doesn't jump
   on load/refresh. `:empty` stops matching the moment the header is rendered. */
#site-header:empty {
  display: block;
  /* must equal the real header height (topbar 39 + nav 71 = 110) so there's
     no layout shift when site.js swaps the placeholder for the real header */
  min-height: 110px;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
}
#site-footer:empty {
  display: block;
  min-height: 220px;
}

/* pin the header/topbar font so a page's own body font (e.g. the Name
   Generator's Arial) can't bleed into the shared header component */
.topbar,
.site-header {
  font-family: var(--font-body);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--glass);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav__logo {
  font-size: 1.7rem;
  line-height: 1;
}
.nav__name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.nav__cod2 {
  height: 24px;
  width: auto;
  display: block;
  margin-left: -4px; /* pull a touch closer to the PHOENIX text */
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.nav__links > .nav__item > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  transition:
    background 0.15s,
    color 0.15s;
}
.nav__links > .nav__item > a:hover {
  color: var(--text);
  background: var(--accent-soft);
}
html[data-theme="light"] .is-cta:hover {
  color: rgba(237, 64, 54, 0.8)!important;
}
.nav__links > .nav__item > a.is-active {
  color: var(--accent);
}
.nav__links a.is-cta {
  background: linear-gradient(100deg, var(--accent-3), var(--accent));
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(255, 106, 31, 0.35);
}
.caret {
  font-size: 0.7rem;
  opacity: 0.7;
}

/* dropdown */
.has-children {
  position: relative;
}
.submenu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  list-style: none;
  padding: 8px;
  border-radius: var(--radius);
  background: var(--bg-elev);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.18s;
  z-index: 70;
}
.has-children:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.submenu a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}
.submenu a:hover {
  background: var(--accent-soft);
  color: var(--text);
}

/* hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 40px;
  justify-content: center;
  align-items: center;
  background: none;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: 0.25s;
}
.nav__toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.nav__toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 860px) {
  .nav__toggle {
    display: flex;
  }
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    padding: 10px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav__links.is-open {
    max-height: 80vh;
    overflow-y: auto;
  }
  .nav__links > .nav__item > a {
    padding: 14px;
  }
  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    border: 0;
    backdrop-filter: none;
    padding: 0 0 6px 14px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s;
  }
  .has-children.open .submenu {
    max-height: 320px;
  }
}

/* ====================== Buttons ====================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  position: relative;
  overflow: hidden;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition:
    transform 0.12s,
    box-shadow 0.2s,
    background 0.2s,
    border-color 0.2s;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}
.btn--primary {
  background: linear-gradient(100deg, var(--accent-3), var(--accent));
  color: #fff;
  box-shadow: 0 8px 26px rgba(255, 106, 31, 0.4);
}
.btn--primary:hover {
  color: #fff;
  box-shadow: 0 12px 34px rgba(255, 106, 31, 0.55);
  transform: translateY(-2px);
}
/* shine sweep */
.btn--primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
}
.btn--primary:hover::after {
  left: 130%;
  transition: left 0.7s;
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--border-2);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--text);
}
.btn--block {
  width: 100%;
  justify-content: center;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ====================== Hero ====================== */
/* No background image — the hero sits on the page's themed background,
   so it's dark in dark mode and light in light mode automatically. */
.hero {
  position: relative;
  padding-block: clamp(48px, 9vh, 104px);
  min-height: clamp(360px, 54vh, 540px);
  display: flex;
  align-items: center;
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
/* Optional hero background image (add class `hero--image` to the section).
   Dark overlay over the photo, fading softly into the page at the bottom.
   Forced light text so the headline stays readable over the image in any theme. */
.hero--image {
  background-image:
    linear-gradient(180deg, rgba(7, 6, 10, 0.45) 0%, rgba(7, 6, 10, 0.72) 55%, #07060a 100%),
    linear-gradient(90deg, rgba(7, 6, 10, 0.82), rgba(7, 6, 10, 0.12) 78%), url("../assets/hero.png");
  /* per layer: overlay gradients fill the box; the photo is zoomed + shifted.
     TUNE THE PHOTO: 1st % = horizontal (LOWER = soldier further RIGHT),
                     2nd % = vertical (LOWER = show more of the top/head),
                     "160%" = zoom (bigger = more cropped/closer).  */
  background-size:
    100% 100%,
    100% 100%,
    auto 160%;
  background-position:
    center,
    center,
    28% 40%;
  background-repeat: no-repeat;
  --text: #f1edf5;
  --text-muted: #c7c0d0;
  --text-dim: #9b94a3;
  --accent-2: #ffc23d;
  --border-2: #34293f;
  /* re-apply color from the local --text so headings stay whitish in light mode
     (h1 otherwise inherits body's dark color) */
  color: var(--text);
}
/* keep the bright accents on the (always-dark) image banner, even in light mode */
:root[data-theme="light"] .hero--image .text-accent {
  color: var(--accent-2);
}
:root[data-theme="light"] .hero--image .fire-text {
  background-image: linear-gradient(100deg, var(--accent-3), var(--accent) 55%, var(--accent-2));
}

/* two-column hero: text left, live widget right */
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  width: 100%;
}
.hero__grid .hero__inner {
  max-width: 680px;
}
.hero__widget {
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #15100c;
}
.hero__widget-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: #ff9900;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-2);
  background: #1a1410;
}
.hero__widget a {
  display: block;
}
.hero__widget img {
  display: block;
  max-width: 100%;
}
@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__widget {
    justify-self: center;
    margin-top: 4px;
  }
}
.hero h1 {
  margin: 0.25em 0;
}
.hero h1 .fire-text {
  display: inline-block;
  filter: drop-shadow(0 4px 30px rgba(255, 106, 31, 0.35));
}
.hero .lead {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
}
.hero .btn-row {
  margin-top: 32px;
}
.hero__meta {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 34px;
}
.hero__meta div {
  border-left: 2px solid var(--accent-line);
  padding-left: 14px;
}
.hero__meta b {
  font-family: var(--font-display);
  font-size: 1.5rem;
  display: block;
  color: var(--accent-2);
}
.hero__meta span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}

/* ====================== Image + Text rows ====================== */
.media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.media + .media {
  margin-top: clamp(48px, 8vw, 96px);
}
.media--reverse .media__visual {
  order: 2;
}
.media__visual {
  position: relative;
}
.media__visual img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow);
  background: var(--bg-card);
}
.media__visual::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--accent-line), transparent 40%);
  z-index: -1;
  filter: blur(20px);
  opacity: 0.6;
}
.media__badge {
  position: absolute;
  top: 16px;
  left: 16px;
}
@media (max-width: 760px) {
  .media {
    grid-template-columns: 1fr;
  }
  .media--reverse .media__visual {
    order: 0;
  }
}

/* ====================== Cards / Grid ====================== */
.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 26px);
}
.grid--1 {
  grid-template-columns: 1fr;
}
.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 880px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
}

.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  overflow: hidden;
  transition:
    border-color 0.2s,
    transform 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-3), var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.card:hover {
  border-color: var(--border-2);
  background: var(--bg-card-2);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card:hover::before {
  transform: scaleX(1);
}
.card__icon {
  font-size: 2rem;
  margin-bottom: 14px;
  display: inline-block;
  filter: drop-shadow(0 4px 12px rgba(255, 106, 31, 0.4));
}
.card h3 {
  margin-bottom: 8px;
}
.card p {
  color: var(--text-muted);
  font-size: 0.97rem;
}

/* stat tile */
.stat {
  text-align: center;
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--accent-2);
}
.stat__label {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* ====================== Bands ====================== */
.band {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.band--glow {
  background: radial-gradient(700px 300px at 50% 0%, rgba(255, 106, 31, 0.1), transparent 70%), var(--bg-2);
}

/* ====================== Code / connect ====================== */
.codebox {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: #050409;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: ui-monospace, "Consolas", monospace;
}
.codebox code {
  color: var(--cod-3);
  font-size: 1.05rem;
  word-break: break-all;
}
.codebox .btn {
  margin-left: auto;
  padding: 9px 18px;
}

/* ====================== Panel ====================== */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
}

/* ====================== Player name marquee ====================== */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: #050409;
  padding: 14px 0;
}
.marquee__track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  width: max-content;
  animation: scroll 28s linear infinite;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 1px;
}
.marquee:hover .marquee__track {
  animation-play-state: paused;
}
@keyframes scroll {
  to {
    transform: translateX(-50%);
  }
}

/* ====================== Donation progress ====================== */
.donate-box {
  max-width: 660px;
  margin-inline: auto;
}
.progress {
  margin: 20px 0 10px;
}
.progress__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.progress__raised {
  font-family: var(--font-display);
  color: var(--accent-2);
  font-size: 1.7rem;
  font-weight: 700;
}
.progress__goal {
  color: var(--text-muted);
  font-weight: 500;
}
.progress__track {
  height: 26px;
  background: #050409;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.progress__fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-3), var(--accent), var(--accent-2));
  box-shadow: 0 0 22px rgba(255, 106, 31, 0.7);
  transition: width 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
  position: relative;
}
.progress__fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  background-size: 200% 100%;
  animation: shimmer 2.4s linear infinite;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
.progress__pct {
  margin-top: 10px;
  text-align: right;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ====================== Lists / steps ====================== */
.feature-list {
  list-style: none;
  display: grid;
  gap: 13px;
}
.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-muted);
}
.feature-list li::before {
  content: "▸";
  color: var(--accent);
  font-weight: 900;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 18px;
}
.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.step__num {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-line);
}

/* ====================== Countdown ====================== */
.countdown {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}
.countdown__unit {
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 16px 20px;
  min-width: 88px;
  text-align: center;
}
.countdown__val {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-2);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.countdown__lbl {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ====================== Pills / badges ====================== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-line);
  backdrop-filter: blur(4px);
}

/* ====================== Footer ====================== */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
  padding-block: 48px;
}
.site-footer .cols {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 760px) {
  .site-footer .cols {
    grid-template-columns: 1fr 1fr;
  }
}
.site-footer h4 {
  font-family: var(--font-display);
  color: var(--text);
  margin-bottom: 12px;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.site-footer__brand .footer-logo {
  font-size: 1.4rem;
  line-height: 1;
}
.site-footer__brand span {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.site-footer a {
  color: var(--text-muted);
  display: block;
  padding: 4px 0;
}
.site-footer a:hover {
  color: var(--accent);
}
.site-footer .copyright {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 30px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

/* ====================== COD color codes ====================== */
.cod-0 {
  color: var(--cod-0);
}
.cod-1 {
  color: var(--cod-1);
}
.cod-2 {
  color: var(--cod-2);
}
.cod-3 {
  color: var(--cod-3);
}
.cod-4 {
  color: var(--cod-4);
}
.cod-5 {
  color: var(--cod-5);
}
.cod-6 {
  color: var(--cod-6);
}
.cod-7 {
  color: var(--cod-7);
}
.cod-8 {
  color: var(--cod-8);
}
.cod-9 {
  color: var(--cod-9);
}

/* ====================== Blog / guide text ====================== */
.blog-pre {
  white-space: pre-wrap; word-break: break-word;
  font-family: ui-monospace, "Consolas", monospace;
  font-size: .95rem; line-height: 1.65; color: var(--text);
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: clamp(16px, 3vw, 30px);
  margin: 0; overflow-x: auto; tab-size: 2;
}

/* wide content tables (e.g. the community helpers table) scroll sideways on
   small screens instead of overflowing the whole page */
.community-helpers { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.community-helpers table { min-width: 480px; }
/* on mobile, hide the Description column (4th) so the table fits */
@media (max-width: 600px) {
  .community-helpers table { min-width: 0; }
  .community-helpers th:nth-child(4),
  .community-helpers td:nth-child(4) { display: none; }
}

/* ====================== Helpers ====================== */
.mt-1 {
  margin-top: 14px;
}
.mt-2 {
  margin-top: 26px;
}
.mt-3 {
  margin-top: 40px;
}
.mb-2 {
  margin-bottom: 26px;
}
.text-accent {
  color: var(--accent-2);
}
.hr {
  height: 1px;
  background: var(--border);
  border: 0;
  margin: 30px 0;
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
