/* Fonts loaded in HTML: Montserrat (Google Fonts) */
/* site-css v20 — bump via bump-assets.ps1 or ASSET_VERSION + HTML ?v= */

:root {
  /**
   * 60 · 30 · 10 — dark navy base, blue structure, red accents on CTAs / key highlights.
   */
  --bg: #080d1a;
  --bg-elevated: #0f172a;
  --surface: #111c33;
  --border: #1e3a5f;
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent2: #60a5fa;
  --link-hover: #bfdbfe;
  /** ~10% — primary actions, store, badges */
  --accent: #e11d48;
  --accent-dark: #9f1239;
  --subscriber-ring-strong: #93c5fd;
  --subscriber-glow-accent: rgba(96, 165, 250, 0.42);
  --subscriber-glow-secondary: rgba(225, 29, 72, 0.22);
  --glow-accent: rgba(225, 29, 72, 0.38);
  --glow-accent-soft: rgba(225, 29, 72, 0.12);
  --glow-deep: rgba(185, 28, 28, 0.48);
  --twitch: #a970ff;
  --youtube: #ff0033;
  --danger: #f87171;
  --radius: 12px;
  --radius-lg: 20px;
  --font: "Montserrat", system-ui, sans-serif;
  --font-display: "Montserrat", var(--font);
  --shadow: 0 14px 44px rgba(0, 0, 0, 0.55);
  --gradient-headline: linear-gradient(
    115deg,
    #ffffff 0%,
    #fecdd3 22%,
    #fb7185 48%,
    #ef4444 72%,
    #dc2626 100%
  );
  --gradient-nav-link-active: linear-gradient(145deg, rgba(220, 38, 38, 0.58) 0%, rgba(153, 27, 27, 0.68) 50%, rgba(88, 15, 20, 0.82) 100%);
  --gradient-cta: linear-gradient(135deg, #f43f5e 0%, var(--accent) 42%, var(--accent-dark) 100%);
  /** Social row — label/icon on brand fill hover */
  --social-hover-fg: #070b16;
  /** Social grid — brand strokes / fills */
  --social-grad-tiktok: linear-gradient(135deg, #2bf4ee 0%, #d42b4c 100%);
  --social-grad-instagram: conic-gradient(
    from -45deg at 50% 50%,
    #4b68cb 0deg,
    #ab36bf 90deg,
    #ec4e6a 180deg,
    #ffb553 270deg,
    #4b68cb 360deg
  );
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  /** Full-site backdrop: assets/images/Background Plain.png (1920×1080, scrims keep type readable) */
  background:
    linear-gradient(168deg, rgba(8, 13, 26, 0.88) 0%, rgba(8, 13, 26, 0.82) 45%, rgba(6, 10, 20, 0.9) 100%),
    radial-gradient(ellipse 92% 58% at 50% -14%, rgba(37, 99, 235, 0.12), transparent 56%),
    radial-gradient(ellipse 72% 52% at 100% 32%, rgba(30, 58, 138, 0.16), transparent 50%),
    radial-gradient(ellipse 55% 42% at 0% 78%, rgba(220, 38, 38, 0.04), transparent 52%),
    url("../images/Background Plain.png") center / cover no-repeat,
    var(--bg);
  /** Pin entire stack to the viewport so the photo does not shift while scrolling */
  background-attachment: fixed, fixed, fixed, fixed, fixed;
}

main {
  flex: 1 1 auto;
  width: 100%;
}

a {
  color: var(--accent2);
}

a:hover {
  color: var(--link-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.shell {
  width: min(1100px, 92vw);
  margin-inline: auto;
}

/* Instant Gaming partner banner — sits under nav row, inside sticky header (home only) */
.site-header--has-ig-banner {
  border-bottom: none;
}

.site-header--has-ig-banner .ig-banner-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ig-banner-band {
  background: rgba(10, 17, 32, 0.94);
  padding-block: 0.75rem 1rem;
}

.ig-banner-band__inner {
  min-height: 72px;
}

.ig-partner-banner {
  width: 100%;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  flex-shrink: 0;
  background: rgba(8, 13, 26, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(37, 99, 235, 0.12);
}

.site-header-shell {
  padding: 0.55rem 0 0.65rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  flex-wrap: wrap;
  row-gap: 0.5rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  color: var(--text);
}

.brand__home-link {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand__home-link:hover {
  color: var(--text);
}

.brand--with-logo {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  flex: 1 1 auto;
  min-width: 0;
}

.brand__logo {
  height: 44px;
  width: auto;
  max-width: 120px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

/** Title + LIVE pills — one tight row on desktop */
.brand__headline-cluster {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.32rem;
  min-width: 0;
}

.brand__title {
  margin: 0;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/** Header LIVE strips (Twitch / YouTube) */
.brand__live-strip {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.22rem;
  flex-shrink: 0;
}

.brand__live-strip.brand__live-strip--empty {
  gap: 0;
  min-width: 0;
}

/** Shown only when Twitch / YouTube APIs report an active stream for that pill */
.brand__live-strip .live-pill {
  display: none;
}

.brand__live-strip .live-pill.is-live-on-air {
  display: inline-flex;
}

a.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.44rem;
  border-radius: 8px;
  font-size: 0.625rem;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: 0.07em;
  text-decoration: none;
  border: 1px solid transparent;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.15s ease;
}

a.live-pill i {
  font-size: 0.82rem;
  line-height: 1;
}

a.live-pill--twitch {
  color: var(--text) !important;
  background: rgba(169, 112, 255, 0.2);
  border-color: rgba(169, 112, 255, 0.55);
  box-shadow: 0 2px 10px rgba(169, 112, 255, 0.12);
}

a.live-pill--youtube {
  color: var(--text) !important;
  background: rgba(255, 0, 51, 0.12);
  border-color: rgba(255, 0, 51, 0.45);
  box-shadow: 0 2px 10px rgba(255, 0, 51, 0.1);
}

a.live-pill:hover {
  transform: translateY(-3px);
  filter: brightness(1.06);
}

a.live-pill--twitch:hover {
  box-shadow: 0 6px 18px rgba(169, 112, 255, 0.28);
}

a.live-pill--youtube:hover {
  box-shadow: 0 6px 18px rgba(255, 0, 51, 0.22);
}

a.live-pill:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 2px;
}

.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  transition:
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.2s ease,
    border-color 0.15s ease;
}

.nav-toggle:hover {
  transform: translateY(-4px);
  border-color: var(--accent2);
  box-shadow:
    var(--shadow),
    0 8px 20px rgba(37, 99, 235, 0.22);
}

.nav-toggle:active {
  transform: translateY(0) scale(0.98);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
}

.nav__link {
  font-size: 0.92rem;
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  transition:
    color 0.15s,
    background 0.15s,
    border-color 0.15s,
    transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.18s ease;
}

.nav__link:not(.nav__link--store) {
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
}

.nav__link:hover:not(.nav__link--store) {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.nav__link--active {
  color: #ffffff;
  background: var(--gradient-nav-link-active);
  border: 1px solid rgba(252, 165, 165, 0.55);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.22);
}

/** Active tab — tied to page (matches .nav__link--active; survives cache/JS quirks) */
body[data-page="home"] nav.nav .nav__link[data-nav-page="home"],
body[data-page="stream"] nav.nav .nav__link[data-nav-page="stream"],
body[data-page="equipment"] nav.nav .nav__link[data-nav-page="equipment"],
body[data-page="teams"] nav.nav .nav__link[data-nav-page="teams"],
body[data-page="sponsored"] nav.nav .nav__link[data-nav-page="sponsored"],
body[data-page="kofi"] nav.nav .nav__link[data-nav-page="kofi"],
body[data-page="support"] nav.nav .nav__link[data-nav-page="support"] {
  color: #ffffff;
  background: var(--gradient-nav-link-active);
  border: 1px solid rgba(252, 165, 165, 0.55);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.22);
}

.nav__link--store {
  background: var(--gradient-cta);
  color: #fff !important;
  font-weight: 600;
  border: 1px solid transparent;
  transition:
    transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.18s ease,
    box-shadow 0.18s ease,
    color 0.15s ease;
}

.nav__link--store:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
  color: #fff !important;
  box-shadow: 0 10px 26px var(--glow-deep);
}

@media (min-width: 841px) {
  .header-inner {
    flex-wrap: nowrap;
    row-gap: 0;
    justify-content: flex-start;
  }

  .brand--with-logo {
    flex: 0 1 auto;
  }

  .nav {
    margin-left: auto;
    flex-wrap: nowrap;
    gap: 0.2rem 0.42rem;
    justify-content: flex-end;
  }

  .nav__link {
    font-size: 0.86rem;
    padding: 0.3rem 0.5rem;
  }
}

@media (max-width: 840px) {
  .nav-toggle {
    display: block;
    margin-left: auto;
    flex-shrink: 0;
  }

  .brand--with-logo {
    flex: 1 1 calc(100% - 5.5rem);
  }

  .brand__headline-cluster {
    flex-wrap: wrap;
    row-gap: 0.28rem;
  }

  .brand__live-strip {
    flex-wrap: wrap;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 0.5rem;
    margin-left: 0;
  }

  .nav.is-open {
    display: flex;
  }
}

/* Hero */
.hero {
  padding: 3rem 0 2.5rem;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin: 0 0 0.5rem;
  letter-spacing: -0.03em;
  background: var(--gradient-headline);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Single-line hero title — scales down on narrow screens */
.hero h1.hero__headline-single {
  white-space: nowrap;
  max-width: min(92vw, 1050px);
  margin-inline: auto;
  font-size: clamp(0.55rem, 2.68vw + 0.62rem, 2.85rem);
  letter-spacing: -0.035em;
  overflow: visible;
}

.hero .lede {
  color: var(--muted);
  max-width: 36rem;
  margin: 0 auto 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/** 404 — centered in the area between header and footer */
.page-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 2rem 0 3rem;
  box-sizing: border-box;
}

.page-404__inner {
  text-align: center;
  margin-inline: auto;
  width: min(100%, 36rem);
  max-width: 36rem;
  padding: 0 1rem;
  box-sizing: border-box;
}

.page-404__code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 18vw, 7rem);
  line-height: 0.92;
  margin: 0 0 0.85rem;
  letter-spacing: -0.06em;
  background: var(--gradient-headline);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-404__heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0 0 0.85rem;
  color: var(--text);
}

.page-404__lede {
  margin: 0 auto 1.75rem;
  max-width: 28rem;
  color: var(--muted);
  line-height: 1.65;
}

.page-404__actions.hero-actions {
  margin-top: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-family: inherit;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.2s ease,
    border-color 0.18s ease,
    background-color 0.18s ease;
}

.btn:not(:disabled):hover {
  transform: translateY(-5px);
  filter: brightness(1.06);
}

.btn:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 3px;
}

.btn:active {
  transform: translateY(-1px) scale(0.975);
}

.btn:active,
.btn:not(:disabled):active {
  transition-duration: 0.08s;
}

.btn--twitch {
  background: var(--twitch);
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(169, 112, 255, 0.35);
}

.btn.btn--twitch:not(:disabled):hover {
  filter: brightness(1.12);
  box-shadow: 0 18px 40px rgba(169, 112, 255, 0.5);
}

.btn--youtube {
  background: var(--youtube);
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(255, 0, 51, 0.28);
}

.btn--primary {
  background: var(--gradient-cta);
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 8px 26px var(--glow-deep);
}

.btn.btn--primary:not(:disabled):hover {
  filter: brightness(1.08);
  box-shadow: 0 14px 36px rgba(220, 38, 38, 0.42);
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text) !important;
}

.btn.btn--outline:not(:disabled):hover {
  border-color: var(--accent2);
  background: rgba(37, 99, 235, 0.1);
  box-shadow:
    var(--shadow),
    0 10px 28px rgba(37, 99, 235, 0.12);
}

.btn--ghost {
  background: var(--surface);
  color: var(--text) !important;
  border: 1px solid var(--border);
}

.btn.btn--ghost:not(:disabled):hover {
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.42),
    0 8px 22px rgba(37, 99, 235, 0.12);
}

.section {
  padding: 2.5rem 0;
}

.section:nth-of-type(even) {
  background: rgba(15, 23, 42, 0.58);
  border-block: 1px solid var(--border);
}

.section__title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
  font-weight: 700;
  background: var(--gradient-headline);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grid-2 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/** Let grid columns shrink below wide media (e.g. sponsor videos) */
.grid-2 > * {
  min-width: 0;
  max-width: 100%;
}

.card {
  background: linear-gradient(165deg, rgba(17, 28, 51, 0.96) 0%, rgba(15, 23, 42, 0.92) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow);
}

.card--stretch {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
}

.card__meta {
  color: var(--accent2);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/**
 * Equal-width buttons: six columns split the shell; minmax(0,1fr) avoids horizontal scroll.
 * Labels use ellipsis only if the viewport is unusually narrow.
 */
.social-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(0.38rem, 1.35vw, 0.62rem);
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  padding: 0.15rem 0 0.35rem;
}

.social-grid .social-btn {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  justify-content: center;
  padding: clamp(0.48rem, 1.6vw, 0.72rem) clamp(0.35rem, 1vw, 0.55rem);
  font-size: clamp(0.72rem, 2.1vw, 0.85rem);
  gap: clamp(0.28rem, 1.1vw, 0.52rem);
}

.social-grid .social-btn i {
  flex-shrink: 0;
  font-size: clamp(0.92rem, 2.85vw, 1.06rem);
}

.social-grid .social-btn .social-btn__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  background: var(--surface);
  text-decoration: none;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.92rem;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.2s ease;
}

.social-btn i {
  color: #ffffff !important;
  transition: color 0.2s ease;
}

.social-btn:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 4px;
}

.social-btn:hover {
  transform: translateY(-5px);
  box-shadow:
    var(--shadow),
    0 10px 28px rgba(0, 0, 0, 0.35);
}

.social-btn:active {
  transform: translateY(-2px) scale(0.99);
}

.social-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* Idle: brand stroke + surface + white label. Hover: brand fill + white label (X: white fill + dark label). */
.social-btn--twitch {
  border-color: var(--twitch);
}

.social-btn--twitch:hover {
  border-color: var(--twitch);
  background: var(--twitch);
  color: #ffffff !important;
}

.social-btn--twitch:hover i {
  color: #ffffff !important;
}

.social-btn--youtube {
  border-color: var(--youtube);
}

.social-btn--youtube:hover {
  border-color: var(--youtube);
  background: var(--youtube);
  color: #ffffff !important;
}

.social-btn--youtube:hover i {
  color: #ffffff !important;
}

.social-btn--tiktok {
  background-color: transparent;
  border: 2px solid transparent;
  background-image: linear-gradient(var(--surface), var(--surface)), var(--social-grad-tiktok);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.social-btn--tiktok:hover {
  background-color: transparent;
  background-image: var(--social-grad-tiktok), var(--social-grad-tiktok);
  background-clip: padding-box, border-box;
  color: #ffffff !important;
}

.social-btn--tiktok:hover i {
  color: #ffffff !important;
}

.social-btn--x {
  border-color: #ffffff;
}

.social-btn--x:hover {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--social-hover-fg) !important;
  box-shadow:
    0 0 0 1px rgba(148, 163, 184, 0.55),
    var(--shadow),
    0 10px 28px rgba(0, 0, 0, 0.35);
}

.social-btn--x:hover i {
  color: var(--social-hover-fg) !important;
}

.social-btn--instagram {
  background-color: transparent;
  border: 2px solid transparent;
  background-image: linear-gradient(var(--surface), var(--surface)), var(--social-grad-instagram);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.social-btn--instagram:hover {
  background-color: transparent;
  background-image: var(--social-grad-instagram), var(--social-grad-instagram);
  background-clip: padding-box, border-box;
  color: #ffffff !important;
}

.social-btn--instagram:hover i {
  color: #ffffff !important;
}

.social-btn--discord {
  border-color: #5865f2;
}

.social-btn--discord:hover {
  border-color: #5865f2;
  background: #5865f2;
  color: #ffffff !important;
}

.social-btn--discord:hover i {
  color: #ffffff !important;
}

/* Page intro */
.page-intro {
  padding: 2.25rem 0 0.5rem;
}

.page-intro h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  margin: 0 0 1.25rem;
  font-weight: 700;
  background: var(--gradient-headline);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body[data-page="stream"] .page-intro h1,
body[data-page="equipment"] .page-intro h1,
body[data-page="teams"] .page-intro h1,
body[data-page="sponsored"] .page-intro h1,
body[data-page="kofi"] .page-intro h1,
body[data-page="support"] .page-intro h1 {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.page-intro p {
  color: var(--muted);
  max-width: 42rem;
  margin: 0;
}

/* Teams: intro spans full content width so it lines up with the two team cards */
body[data-page="teams"] .page-intro p {
  max-width: none;
  line-height: 1.65;
}

body[data-page="teams"] .page-intro p + p {
  margin-top: 0.85rem;
}

body[data-page="sponsored"] .page-intro p {
  max-width: none;
  line-height: 1.65;
}

body[data-page="sponsored"] .page-intro p + p {
  margin-top: 0.85rem;
}

body[data-page="kofi"] .page-intro p {
  max-width: none;
  line-height: 1.65;
}

body[data-page="kofi"] .page-intro p + p {
  margin-top: 0.85rem;
}

body[data-page="support"] .page-intro p {
  max-width: none;
  line-height: 1.65;
}

.stream-lead {
  width: 100%;
}

.stream-intro-card {
  width: 100%;
}

.stream-lead p {
  color: var(--muted);
  max-width: none;
  width: 100%;
  margin: 0 0 0.85rem;
  line-height: 1.65;
}

.stream-lead p:last-child {
  margin-bottom: 0;
}

/* Currency & rewards (stream) */
.currency-block__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  font-weight: 700;
  background: var(--gradient-headline);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.currency-block + .currency-sep + .currency-block .currency-block__title {
  margin-top: 0;
}

.currency-block__content {
  color: var(--muted);
}

.currency-block__content p {
  margin: 0 0 0.85rem;
  line-height: 1.65;
}

.currency-block__content p:last-child {
  margin-bottom: 0;
}

.currency-subtitle {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent2);
  margin: 1rem 0 0.45rem;
}

.currency-block__content > .currency-subtitle:first-child {
  margin-top: 0;
}

.currency-block__content a {
  color: var(--accent2);
}

.currency-block__content a:hover {
  color: var(--link-hover);
}

.currency-sep {
  margin: 1.35rem 0;
  border: none;
  border-top: 1px solid var(--border);
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.commands-wrap.table-wrap {
  padding: 0.35rem 1rem 0.85rem;
  background: var(--bg-elevated);
}

.commands-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2.25rem;
  align-items: start;
}

@media (max-width: 768px) {
  .commands-cols {
    grid-template-columns: 1fr;
  }
}

.commands-pair {
  display: grid;
  grid-template-columns: minmax(5.5rem, max-content) 1fr;
  gap: 0.5rem 1rem;
  align-items: baseline;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.commands-col .commands-pair:last-child {
  border-bottom: none;
}

.commands-pair__cmd {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 0.88em;
  background: var(--bg);
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  white-space: nowrap;
}

.commands-pair__desc {
  color: var(--muted);
  line-height: 1.45;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.table th,
.table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.table th {
  background: var(--surface);
  font-family: var(--font-display);
  font-weight: 600;
}

.table tr:last-child td {
  border-bottom: none;
}

.table code {
  background: var(--bg);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-size: 0.88em;
}

.list-check {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.list-check li {
  margin-bottom: 0.5rem;
}

.rules-body {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.rules-block__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.65rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 700;
  background: var(--gradient-headline);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rules-list {
  margin: 0;
  padding-left: 1.35rem;
  color: var(--muted);
}

.rules-list li {
  margin-bottom: 0.5rem;
}

.rules-list li:last-child {
  margin-bottom: 0;
}

.emote-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.emote-grid--tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 1rem 1.25rem;
  justify-items: center;
}

.emote-tile {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  max-width: 120px;
}

.emote-tile__img-wrap {
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.emote-tile__img-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.emote-tile__caption {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.3;
}

.emote-pill {
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.65rem 0.9rem;
  background: var(--surface);
  border-radius: 10px;
  border: 1px solid var(--border);
  max-width: 220px;
}

.emote-pill__name {
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--accent2);
  font-size: 0.9rem;
}

.emote-pill__desc {
  font-size: 0.85rem;
  color: var(--muted);
}

.sponsor-code {
  margin: 0;
  font-size: 0.95rem;
  color: var(--accent2);
}

/* Sponsored — uniform tall logo lane (same box for every card) */
.sponsor-card .sponsor-logo-wrap {
  width: 100%;
  min-height: clamp(140px, 22vw, 200px);
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--border);
}

.sponsor-card {
  overflow: hidden;
  max-width: 100%;
}

.sponsor-card .sponsor-logo-wrap--video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(52vw, 300px);
  min-height: 0;
  margin: 0 0 0.85rem;
  padding: 0;
  box-sizing: border-box;
  border-radius: var(--radius);
  background: #000;
  border: 1px solid var(--border);
  overflow: hidden;
}

.sponsor-card .sponsor-logo-wrap img {
  width: 100%;
  height: clamp(120px, 18vw, 176px);
  max-width: min(100%, 360px);
  object-fit: contain;
  object-position: center;
}

.sponsor-card .sponsor-logo-wrap--video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  object-fit: contain;
  object-position: center;
  display: block;
}

.sponsor-card.card--stretch {
  height: 100%;
}

.sponsor-card__cta {
  margin-top: auto;
  align-self: flex-start;
}

/** Sponsored page — partner CTAs match nav Store (gradient CTA) */
body[data-page="sponsored"] a.sponsor-card__cta.btn.btn--ghost {
  background: var(--gradient-cta);
  color: #fff !important;
  font-weight: 600;
  border: 1px solid transparent !important;
  box-shadow: 0 8px 26px var(--glow-deep);
  transition:
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.2s ease;
}

body[data-page="sponsored"] a.sponsor-card__cta.btn.btn--ghost:hover {
  filter: brightness(1.08);
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(220, 38, 38, 0.42);
}

body[data-page="sponsored"] a.sponsor-card__cta.btn.btn--ghost:active {
  transform: translateY(-1px) scale(0.975);
}

/* Ko-fi shop page */
.page-intro h1 .fa-brands {
  margin-right: 0.35em;
  color: #ff5e5b;
  -webkit-text-fill-color: #ff5e5b;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.kofi-shop-card__thumb {
  width: 100%;
  aspect-ratio: 1;
  margin: 0 0 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
}

.kofi-shop-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.kofi-shop-card__price {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent2);
}

.kofi-shop-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  font-weight: 700;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.kofi-shop-card.card--stretch {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Ko-fi shop: widget column (left) + product grid (right) */
.kofi-shop-layout {
  display: grid;
  grid-template-columns: minmax(260px, min(36vw, 380px)) minmax(0, 1fr);
  gap: 1.25rem 1.5rem;
  align-items: start;
  width: 100%;
  min-width: 0;
  padding-bottom: 0.5rem;
}

.kofi-shop-layout__widget {
  min-width: 0;
}

.kofi-shop-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 0.6rem;
  min-width: 0;
}

.kofi-shop-items .kofi-shop-card {
  padding: 0.45rem 0.55rem 0.55rem;
  gap: 0.22rem;
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.kofi-shop-items .kofi-shop-card__thumb {
  width: 75%;
  aspect-ratio: 1;
  margin: 0 auto 0.4rem;
}

.kofi-shop-items .kofi-shop-card__title {
  font-size: clamp(0.72rem, 1.15vw, 0.86rem);
  margin: 0 0 0.08rem;
  line-height: 1.2;
}

.kofi-shop-items .kofi-shop-card__price {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
}

.kofi-shop-items .card__text {
  font-size: 0.72rem;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.kofi-shop-items .sponsor-card__cta {
  font-size: 0.7rem;
  padding: 0.28rem 0.55rem;
  margin-top: 0.22rem;
}

/* Ko-fi embed — transparent shell (Ko-fi UI inside iframe keeps its own colors) */
body[data-page="kofi"] .kofi-widget-frame {
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: none;
  box-shadow: none;
  background: transparent;
}

body[data-page="kofi"] .kofi-widget-frame__iframe {
  display: block;
  width: 100%;
  min-height: min(712px, 90vh);
  border: none;
  padding: 0;
  box-sizing: border-box;
  background: transparent;
}

@media (max-width: 900px) {
  .kofi-shop-layout {
    grid-template-columns: 1fr;
  }

  .kofi-shop-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 560px;
    margin-inline: auto;
  }
}

@media (max-width: 520px) {
  .kofi-shop-items {
    grid-template-columns: 1fr;
    max-width: none;
  }
}

/* Support — Twitch subscribers */
.subscriber-panel {
  padding: 1.5rem 1.65rem;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.subscriber-panel__title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.8vw, 1.35rem);
  margin: 0 auto 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
}

.subscriber-panel__intro {
  margin: 0 auto 1.25rem;
  max-width: 44rem;
  color: var(--muted);
  line-height: 1.65;
  text-align: center;
}

.subscriber-panel__list {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.25rem, 3vw, 1.75rem);
  justify-content: center;
  align-items: flex-start;
}

.subscriber-panel__status {
  color: var(--muted);
  text-align: center;
  width: 100%;
}

.subscriber-panel__status.subscriber-panel__status--loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.subscriber-panel a.subscriber-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  width: 6.75rem;
  max-width: 6.75rem;
  text-decoration: none;
  color: var(--muted);
  transition:
    transform 0.2s ease,
    color 0.2s ease;
}

.subscriber-panel a.subscriber-item:hover,
.subscriber-panel a.subscriber-item:focus-visible {
  transform: scale(1.06);
  color: var(--text);
}

.subscriber-panel a.subscriber-item:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 6px;
  border-radius: 14px;
}

.subscriber-panel a.subscriber-item:hover .subscriber-item__name,
.subscriber-panel a.subscriber-item:focus-visible .subscriber-item__name {
  color: var(--accent2);
}

/**
 * Portrait “badge”: force a real 80×80 circle. Global `img { height: auto }`
 * was collapsing avatars inside flex; `max-width: none` overrides `max-width: 100%`.
 */
.subscriber-item__badge {
  display: grid;
  place-items: center;
  width: 5.25rem;
  height: 5.25rem;
  flex-shrink: 0;
}

.subscriber-panel .subscriber-item__badge img {
  display: block;
  width: 80px;
  height: 80px;
  max-width: none;
  min-width: 80px;
  min-height: 80px;
  margin: 0;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 2px solid var(--border);
  box-shadow:
    0 0 0 1px rgba(96, 165, 250, 0.35),
    0 0 14px var(--subscriber-glow-accent),
    0 0 28px var(--subscriber-glow-secondary);
}

.subscriber-item__name {
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
  word-break: break-word;
}

.subscriber-panel a.subscriber-item:hover .subscriber-item__badge img,
.subscriber-panel a.subscriber-item:focus-visible .subscriber-item__badge img {
  border-color: var(--subscriber-ring-strong);
  box-shadow:
    0 0 0 1px rgba(96, 165, 250, 0.4),
    0 0 22px var(--subscriber-glow-accent),
    0 0 40px var(--subscriber-glow-secondary);
}

/* Support — StreamElements tip panel */
.support-tip-panel {
  text-align: center;
  padding: 2rem 1.5rem 2.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  box-sizing: border-box;
}

.support-tip-panel__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.25rem;
  border-radius: 16px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  font-size: 1.65rem;
  color: var(--accent2);
}

.support-tip-panel__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.8vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.support-tip-panel__lede {
  margin: 0;
  max-width: 38rem;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.98rem;
}

a.support-tip-panel__cta.btn {
  margin-top: 0.5rem;
  width: min(100%, 22rem);
  padding: 1rem 1.65rem;
  font-size: 1.02rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  justify-content: center;
}

a.support-tip-panel__cta.btn--primary {
  color: #fff !important;
}

/* Support cards (Patreon grid — legacy if reused) */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.support-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.75rem;
  gap: 0.75rem;
}

.support-card .card__text {
  margin: 0;
  flex: 1 1 auto;
}

.support-card .icon-wrap {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 14px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.support-card .icon-wrap svg {
  width: 28px;
  height: 28px;
}

.support-card__title {
  margin: 0;
  font-size: 1.2rem;
  font-family: var(--font-display);
}

a.support-card__cta.btn {
  text-decoration: none;
  margin-top: auto;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text) !important;
}

a.support-card__cta.btn--ghost:hover {
  border-color: var(--accent2);
  background: rgba(37, 99, 235, 0.12);
  color: var(--text) !important;
}

/* Footer */
.site-footer {
  flex-shrink: 0;
  margin-top: 3rem;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
  background: rgba(10, 17, 32, 0.96);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.footer-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  flex: 0 1 auto;
  min-width: 0;
  text-decoration: none;
  color: var(--text) !important;
}

.footer-brand:visited,
.footer-brand .footer-brand__title {
  color: var(--text);
}

.footer-brand:hover .footer-brand__title {
  color: var(--accent2);
}

a.footer-brand:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 6px;
  border-radius: 8px;
}

.footer-brand__logo {
  height: 40px;
  width: auto;
  max-width: 110px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-brand__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0;
  transition: color 0.18s ease;
}

.footer-credits.footer-legal {
  margin: 0;
  margin-top: 0;
  line-height: 1.45;
  flex: 1 1 16rem;
  max-width: 100%;
  text-align: right;
  align-self: center;
}

@media (max-width: 640px) {
  .footer-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-credits.footer-legal {
    text-align: center;
    flex-basis: auto;
  }
}

.footer-legal {
  white-space: normal;
}

.footer-legal a {
  color: var(--accent2);
  text-decoration: underline;
}

.footer-legal a:hover {
  color: var(--link-hover);
}

.icon {
  fill: currentColor;
}

.muted-small {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.footer-credits.footer-legal.muted-small,
p.footer-credits.footer-legal.muted-small {
  font-size: clamp(0.78rem, 0.95vw + 0.62rem, 0.92rem);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.team-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.35rem;
  flex-wrap: wrap;
}

.team-card__main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: min(100%, 10rem);
}

.team-card .card__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
}

.team-card__logo-wrap {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-inline-start: auto;
}

.team-card__logo {
  display: block;
  max-width: min(168px, 38vw);
  height: auto;
  max-height: 120px;
  width: auto;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}

@media (max-width: 540px) {
  .team-card {
    flex-direction: column;
    align-items: stretch;
  }

  .team-card__logo-wrap {
    margin-inline-start: 0;
    justify-content: center;
  }

  .team-card__logo {
    max-width: min(200px, 72vw);
    max-height: 140px;
  }
}

.team-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--gradient-cta);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.icon-link {
  text-decoration: none;
  color: inherit !important;
  transition:
    transform 0.15s,
    border-color 0.15s;
}

.icon-link:hover {
  transform: translateY(-3px);
  border-color: var(--accent) !important;
}

.icon-link .btn {
  pointer-events: none;
}

/* -------------------------------------------------------------------------- */
/* Equipment — white-on-navy lists, blue structure, red reserved for CTAs   */
/* -------------------------------------------------------------------------- */

.equipment-page {
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

.equipment-page__intro {
  padding-bottom: 0.35rem;
}

.equipment-page__intro h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.35rem;
  background: var(--gradient-headline);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.equipment-page__lede {
  margin: 0;
  max-width: 38rem;
  color: #e2e8f0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.55;
}

.equipment-page__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.equipment-page__panel {
  margin: 0;
  min-width: 0;
  border: 1px solid var(--border);
  background: linear-gradient(168deg, rgba(17, 28, 51, 0.98) 0%, rgba(15, 23, 42, 0.96) 100%);
}

.equipment-page__panel--wide {
  width: 100%;
}

.equipment-page__panel-title {
  margin-top: 0;
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(248, 113, 113, 0.45);
  background: var(--gradient-headline);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body[data-page="equipment"] .shell {
  width: min(1180px, 94vw);
}

body[data-page="equipment"] .list-check {
  color: #ffffff;
  font-size: 1.03rem;
  line-height: 1.68;
  padding-left: 1.35rem;
}

body[data-page="equipment"] .list-check li {
  margin-bottom: 0.65rem;
}

body[data-page="equipment"] .list-check li::marker {
  color: var(--accent2);
}

@media (max-width: 768px) {
  .equipment-page__grid {
    grid-template-columns: 1fr;
  }
}
