:root {
  --bg: #050505;
  --panel: #111111;
  --panel-soft: #171717;
  --line: rgba(255, 255, 255, 0.09);
  --ink: #f8f8f8;
  --muted: #c9c9c9;
  --muted-strong: #9d9d9d;
  --red: #d81f26;
  --red-deep: #8f1117;
  --white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Outfit", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.05), transparent 28%),
    linear-gradient(180deg, #090909, #030303 55%, #090909);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.68), rgba(5, 5, 5, 0) 140px);
  z-index: 20;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

code {
  font-family: "Consolas", "SFMono-Regular", monospace;
  font-size: 0.92em;
}

.site-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 8px 0 12px;
}

.floating-donate-button {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 30;
  min-width: 0;
  padding-inline: 16px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease, border-color 160ms ease, background 160ms ease;
}

body.is-scrolled .floating-donate-button {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  box-shadow: 0 18px 48px var(--shadow);
}

.site-brand {
  color: var(--white);
  text-decoration: none;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 1.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-header-donate {
  min-width: 0;
}

.glass-panel,
.campaign-strip,
.banner-panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  box-shadow: 0 18px 48px var(--shadow);
}

.campaign-strip {
  padding: clamp(12px, 2vw, 18px);
}

.campaign-strip-top,
.campaign-headline-row,
.campaign-strip-center,
.campaign-strip-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.campaign-strip-center,
.campaign-strip-bottom {
  margin-top: 12px;
}

.campaign-headline-row {
  margin-top: 12px;
}

.campaign-strip-copy {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.campaign-strip-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex: 1 1 680px;
  min-width: 0;
}

.campaign-media-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  justify-content: space-between;
  width: 100%;
  flex-wrap: nowrap;
}

.campaign-strip-brand {
  width: 100%;
  margin-top: 10px;
}

.campaign-strip-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  max-width: 380px;
}

.twitch-card {
  width: min(420px, 36%);
  flex: 1 1 320px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.tier-slideshow-card {
  width: min(640px, 62%);
  flex: 1 1 520px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.twitch-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.tier-slideshow-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.twitch-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tier-slideshow-badge {
  color: var(--muted-strong);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.twitch-fullscreen-button {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.twitch-fullscreen-button:hover,
.twitch-fullscreen-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.35);
}

.twitch-embed-shell {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: #000;
}

.tier-slideshow-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: #000;
}

.twitch-embed-shell iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.tier-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 700ms ease;
  pointer-events: none;
}

.tier-slide.is-active {
  opacity: 1;
}

.tier-slide img {
  width: 94%;
  height: 94%;
  object-fit: contain;
  display: block;
  background: #000;
  margin: 3% auto;
}

.tier-slideshow-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}

.tier-slideshow-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
}

.tier-slideshow-dot.is-active {
  background: #ffffff;
}

.twitch-embed-shell:fullscreen {
  width: 100vw;
  height: 100vh;
  border-radius: 0;
}

.twitch-embed-shell:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  border-radius: 0;
}

.eyebrow,
.section-tag {
  margin: 0 0 8px;
  color: var(--white);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 700;
}

.brand-lockup {
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 16px;
}

h1,
h2 {
  margin: 0;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  line-height: 0.96;
  letter-spacing: 0.03em;
}

h1 {
  max-width: none;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
}

h2 {
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
}

.lede,
.obs-copy p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.48;
}

.hero-actions,
.campaign-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.connection-note {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.8rem;
  line-height: 1.4;
  text-align: right;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 156px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.4);
}

.button-primary {
  background: linear-gradient(135deg, var(--white), #d7d7d7);
  border-color: transparent;
  color: #0a0a0a;
}

.button-ghost {
  background: rgba(255, 255, 255, 0.04);
}

.donate-card,
.stats-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.stats-topline p,
.stats-topline span {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.campaign-amounts strong {
  display: block;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.95;
}

.campaign-amounts span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 1rem;
}

.progress-track {
  width: 100%;
  height: 12px;
  margin-top: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red-deep), var(--red), var(--white));
  transition: width 320ms ease;
}

.campaign-progress-block {
  flex: 1;
  min-width: 260px;
}

.campaign-progress-track {
  height: 22px;
  margin-top: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.11));
}

.campaign-goal-graphic {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--muted-strong);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.stat-grid,
.action-grid {
  display: grid;
  gap: 8px;
}

.stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 10px;
}

.campaign-stat-grid {
  flex: 1;
  margin-top: 0;
}

.latest-gift-grid {
  grid-template-columns: minmax(0, 1fr);
}

.stat-grid article {
  padding: 10px;
  border-radius: 14px;
  background: var(--panel-soft);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-grid span {
  display: block;
  color: var(--muted-strong);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.stat-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 1rem;
}

.stat-grid em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.small-note {
  margin: 8px 0 0;
  color: var(--muted-strong);
  line-height: 1.45;
  font-size: 0.88rem;
}

.campaign-note {
  margin-top: 10px;
}

.match-banner-panel {
  width: 100%;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 168, 255, 0.32);
  border-radius: 18px;
  background: #000;
  box-shadow: 0 12px 32px rgba(0, 132, 255, 0.14);
}

.match-banner-panel img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.banner-panel {
  margin-top: 6px;
  overflow: hidden;
}

.banner-panel-top {
  margin-top: 0;
}

.banner-panel img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.summary-panel {
  margin-top: 6px;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: start;
}

.summary-copy p {
  margin-bottom: 0;
}

.summary-list {
  margin: 0;
  max-width: 34ch;
}

.text-link {
  display: inline-block;
  margin-top: 0;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
}

.action-grid {
  margin-top: 6px;
  grid-template-columns: 1fr;
}

.setup-list,
.steps-list {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.45;
}

.site-footer {
  margin-top: 8px;
  padding: 14px 18px;
  border: 1px solid rgba(220, 220, 220, 0.5);
  border-radius: 20px;
  background: #050505;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  color: var(--muted-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.site-footer p {
  margin: 0;
}

.site-footer-logo {
  width: 150px;
  max-width: 100%;
  height: auto;
  flex: 0 0 auto;
}

@media (max-width: 980px) {
  .summary-panel,
  .action-grid {
    grid-template-columns: 1fr;
  }

  .campaign-strip-top,
  .campaign-headline-row,
  .campaign-strip-center,
  .campaign-strip-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .campaign-strip-meta {
    align-items: flex-start;
    max-width: none;
  }

  .campaign-strip-side {
    align-items: flex-start;
    width: 100%;
  }

  .campaign-media-row {
    flex-direction: column;
    width: 100%;
  }

  .connection-note {
    text-align: left;
  }

  .campaign-progress-block,
  .campaign-stat-grid {
    width: 100%;
  }

  .tier-slideshow-card,
  .twitch-card,
  .twitch-embed-shell {
    width: 100%;
    max-width: 320px;
  }

  .tier-slideshow-card {
    max-width: 540px;
  }

  .twitch-card {
    max-width: 420px;
  }

  h1 {
    max-width: none;
  }

  .site-header {
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 18px, 1180px);
    padding-top: 6px;
  }

  .hero-actions,
  .campaign-actions {
    flex-direction: column;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .floating-donate-button {
    top: 10px;
    right: 10px;
    padding-inline: 14px;
    font-size: 0.68rem;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .stats-topline {
    flex-direction: column;
    align-items: flex-start;
  }

}
