/* ============================================================
   CHARITY STREAM-A-THON — style.css
   Mobile-first, light theme
   ============================================================ */

/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@700;900&family=Inter:wght@400;600&family=Fredoka+One&display=swap');

/* ===== DESIGN TOKENS ===== */
:root {
  --bg:           #f4f5fb;
  --bg-card:      #ffffff;
  --bg-card-alt:  #edf0f9;
  --border:       rgba(0,0,0,0.09);
  --border-hover: rgba(0,0,0,0.18);
  --text:         #18192e;
  --text-muted:   #626288;
  --red:          #cc1133;
  --red-dark:     #991022;
  --red-glow:     rgba(204,17,51,0.18);
  --blue:         #1a82c4;
  --blue-glow:    rgba(26,130,196,0.12);
  --green:        #0d8f70;
  --nav-bg:       rgba(244,245,251,0.97);
  --nav-height:   60px;
  --radius:       8px;
  --radius-lg:    14px;
  --shadow:       0 4px 24px rgba(0,0,0,0.09);
  --font-head:    'Exo 2', sans-serif;
  --font-body:    'Inter', sans-serif;
  --max-w:        1100px;
  --transition:   0.2s ease;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ===== BASE ===== */
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== BACKGROUND ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 50% at 10% 0%,   rgba(26,130,196,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 45% at 90% 100%,  rgba(204,17,51,0.05)  0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 50% 50%,   rgba(26,130,196,0.03) 0%, transparent 70%),
    var(--bg);
}

body::after { display: none; }

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

main {
  min-height: calc(100vh - var(--nav-height) - 180px);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; }

.page-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.75rem, 5vw, 3rem);
  text-align: center;
  padding: 2.5rem 1.25rem 1.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.page-title span { color: var(--blue); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.text-muted { color: var(--text-muted); }
.text-red   { color: var(--red); }
.text-blue  { color: var(--blue); }
.text-green { color: var(--green); }
.text-center { text-align: center; }

/* ===== NAVIGATION ===== */
.site-banner-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  background: url('/images/header-bg.webp') center center / cover no-repeat;
}

.site-banner {
  width: 75%;
  height: auto;
  display: block;
}

.site-nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
  position: relative;
}

.nav-logo {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.nav-logo span { color: var(--red); }

/* Hamburger button — mobile only */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  position: absolute;
  right: 1.25rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav links — hidden on mobile, shown as dropdown */
.nav-menu {
  display: none;
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0 1rem;
  flex-direction: column;
}

.nav-menu.open { display: flex; }

.nav-item { position: relative; }

.nav-link {
  display: block;
  padding: 0.6rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  transition: color var(--transition);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.nav-link:hover,
.nav-link.active { color: var(--blue); }

/* Dropdown toggle arrow */
.nav-link.has-dropdown::after {
  content: ' ▾';
  font-size: 0.7em;
  opacity: 0.6;
}

/* Dropdown menu */
.nav-dropdown {
  display: none;
  flex-direction: column;
  background: rgba(255,255,255,0.99);
}

.nav-item.open > .nav-dropdown { display: flex; }

.nav-dropdown a {
  display: block;
  padding: 0.45rem 2.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.nav-dropdown a:hover { color: var(--blue); }

/* Desktop nav — show inline */
@media (min-width: 1024px) {
  .nav-toggle { display: none; }

  .nav-menu {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
    gap: 0;
  }

  .nav-link {
    padding: 0.4rem 0.65rem;
    font-size: 0.86rem;
    white-space: nowrap;
  }

  .nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    margin-top: -1px;
    border: 1px solid var(--border);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow);
  }

  .nav-item:hover > .nav-dropdown { display: flex; }
  .nav-item.open > .nav-dropdown  { display: flex; }

  .nav-dropdown a { padding: 0.5rem 1rem; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.65em 1.5em;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: all var(--transition);
  text-transform: uppercase;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 0 20px var(--red-glow);
}

.btn-primary:hover {
  background: var(--red-dark);
  box-shadow: 0 0 30px rgba(204,17,51,0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}

.btn-secondary:hover {
  background: var(--blue-glow);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-hover);
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (min-width: 600px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ===== SECTION ===== */
.section {
  padding: 3rem 0;
}

.section-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  color: var(--text);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ===== DIVIDER ===== */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* ===== PILL / BADGE ===== */
.badge {
  display: inline-block;
  padding: 0.2em 0.75em;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-red   { background: rgba(204,17,51,0.1);  color: var(--red);   border: 1px solid rgba(204,17,51,0.25); }
.badge-blue  { background: rgba(26,130,196,0.1); color: var(--blue);  border: 1px solid rgba(26,130,196,0.25); }
.badge-green { background: rgba(13,143,112,0.1); color: var(--green); border: 1px solid rgba(13,143,112,0.25); }

/* ===== LIVE INDICATOR ===== */
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.3); }
}

/* ============================================================
   HOME PAGE
   ============================================================ */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem 1.25rem 1.5rem;
  position: relative;
}

/* Center column wrapper — keeps existing layout intact on narrow screens */
.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Carousel panels — hidden by default, shown on wide screens */
.hero-carousel {
  display: none;
  flex-shrink: 0;
  width: 288px;
  height: 288px;
  overflow: hidden;
  border-radius: 12px;
}

.hero-carousel iframe {
  width: 480px;
  height: 480px;
  border: none;
  display: block;
  pointer-events: none;
  transform: scale(0.6);
  transform-origin: top left;
}

/* 3-column hero layout on wide screens */
@media (min-width: 1280px) {
  .hero {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 2rem 2.5rem;
  }

  .hero-center {
    flex: 0 1 560px;
  }

  .hero-carousel {
    display: block;
  }
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2rem, 7vw, 4rem);
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.hero-title .highlight { color: var(--red); }

.hero-sub {
  font-size: clamp(0.85rem, 2vw, 1rem);
  color: var(--text-muted);
  margin: 0.75rem 0 1rem;
}

.hero-cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 2.5rem;
  margin: 0 auto 1rem;
  max-width: 560px;
  width: calc(100% - 2.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.hero-cta-box .btn-group {
  margin-top: 0;
}

@media (min-width: 480px) {
  .hero-cta-box .btn-group {
    flex-wrap: nowrap;
  }
}

.hero-raised {
  margin: 0 0 1.5rem;
  text-align: center;
}

.hero-raised-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  text-decoration: none;
}

.hero-raised-amount {
  font-family: var(--font-head);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 900;
  color: var(--green);
  line-height: 1;
}

.hero-raised-label {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ===== LIVE NOW BANNER ===== */
.live-now-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  background: linear-gradient(135deg, var(--red), #ff2244);
  color: #fff;
  border-radius: 14px;
  padding: 1rem 1.75rem;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  margin: 0.5rem auto 1rem;
  max-width: 560px;
  width: calc(100% - 2.5rem);
  transition: opacity 0.2s;
  text-align: center;
}
.live-now-banner:hover { opacity: 0.88; }
.live-now-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.2);
  padding: 2px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.live-now-name {
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}
.live-now-viewers {
  font-size: 0.85rem;
  opacity: 0.9;
  font-family: var(--font-body);
  font-weight: 600;
}
.live-now-cta {
  font-size: 0.8rem;
  background: rgba(255,255,255,0.2);
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ===== COUNTDOWN ===== */
.countdown-wrap {
  margin: 0.5rem auto 1rem;
  max-width: 560px;
  width: calc(100% - 2.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.countdown-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.countdown-date {
  margin: 0.75rem 0 0;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.04em;
}

.countdown {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  min-width: 70px;
  flex: 1;
}

.countdown-num {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  color: var(--text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  width: 2ch;
  text-align: center;
  display: inline-block;
}

.countdown-seg {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* ===== DONATION TICKER (live banner) ===== */
.donation-ticker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid rgba(204,17,51,0.3);
  border-radius: var(--radius);
  padding: 0.75rem 1.25rem;
  margin: 0 auto 2rem;
  max-width: 460px;
  justify-content: center;
  flex-wrap: wrap;
}

.donation-ticker .amount {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--red);
}

.donation-ticker .goal {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.donation-ticker .progress-bar-wrap {
  width: 100%;
  height: 6px;
  background: rgba(0,0,0,0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.donation-ticker .progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red), #ff4466);
  border-radius: 3px;
  transition: width 1s ease;
}

/* ===== HOME WELCOME ===== */
.home-welcome {
  padding: 1rem 0 3rem;
}

.home-welcome p {
  font-size: 1.05rem;
  color: var(--text);
  max-width: 720px;
  margin: 0 auto 1rem;
}

.home-welcome .tagline {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--blue);
  text-align: center;
  margin-top: 1.5rem;
}

/* ============================================================
   WATCH PAGE
   ============================================================ */
.watch-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0 0 3rem;
}

.watch-embed-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.watch-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.watch-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.watch-current {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.watch-current-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.watch-current-name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--text);
}

.watch-current-name a {
  color: var(--blue);
  transition: opacity var(--transition);
}

.watch-current-name a:hover { opacity: 0.8; }

.watch-countdown {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  min-height: 2.6em;
}

.watch-countdown strong {
  color: var(--text);
  font-family: var(--font-head);
  font-variant-numeric: tabular-nums;
  display: inline-block;
  min-width: 4.5ch;
}

.watch-countdown-next {
  font-size: 0.78rem;
  margin-top: 0.15rem;
  min-height: 1.2em;
}

.watch-offline {
  text-align: center;
  padding: 4rem 1.5rem;
  color: var(--text-muted);
}

.watch-offline h2 {
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

@media (min-width: 900px) {
  .watch-embed-wrap {
    padding-bottom: 0;
    height: 500px;
  }
}

.watch-stream-meta {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 0.55rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
}
.watch-meta-viewers {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  color: var(--green);
}
.watch-meta-sep  { color: var(--border); flex-shrink: 0; }
.watch-meta-game { font-weight: 600; color: var(--blue); white-space: nowrap; }
.watch-meta-title {
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

/* ============================================================
   CURRENT AMOUNT RAISED
   ============================================================ */
.raised-hero {
  text-align: center;
  padding: 1rem 1.25rem 0;
}

.raised-total {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2.5rem, 9vw, 5rem);
  color: var(--red);
  line-height: 1;
  text-shadow: none;
}

.raised-goal {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.raised-progress-wrap {
  max-width: 600px;
  margin: 1.5rem auto 0;
  background: rgba(0,0,0,0.08);
  border-radius: 50px;
  height: 14px;
  overflow: hidden;
}

.raised-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #991022, var(--red), #ff4466);
  border-radius: 50px;
  transition: width 1.2s ease;
}

/* Progress tick marks */
.progress-ticks {
  display: flex;
  justify-content: space-between;
  max-width: 600px;
  margin: 4px auto 1.5rem;
  padding: 0 1px; /* nudge to align with bar ends */
}

.tick {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tick::before {
  content: '';
  display: block;
  width: 1px;
  height: 5px;
  background: rgba(255,255,255,0.15);
}

.tick--major::before {
  height: 8px;
  background: rgba(255,255,255,0.3);
}

.tick--major::after {
  content: attr(data-pct);
  display: block;
  font-size: 0.58rem;
  color: var(--text-muted);
  margin-top: 3px;
  font-variant-numeric: tabular-nums;
}

/* Donation marquee ticker */
.donation-ticker {
  display: block;
  max-width: none;
  margin: 0 auto 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.donation-ticker-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

/* Static list viewport — auto height, shows all rows */
.donation-ticker-viewport {
  position: relative;
}

.donation-ticker-track {
  will-change: auto;
}

/* Each row */
.donation-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  min-height: 42px;
  padding: 0.5rem 1.25rem;
  border-bottom: 1px solid var(--border);
  box-sizing: border-box;
}

.donation-row-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
}

.donation-name {
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.donation-meta-line {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.donation-meta-justified {
  display: flex;
  font-size: 0.72rem;
  color: var(--text-muted);
  gap: 0.5rem;
}

.donation-meta-justified > span:last-child {
  text-align: right;
}

.donation-meta-justified > span {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.donation-lbl {
  color: var(--blue);
  font-weight: 600;
}

.donation-amount {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--green);
  font-size: 1rem;
  white-space: nowrap;
  flex-shrink: 0;
  width: 5rem;
  text-align: left;
}

.donation-ticker-loading {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ===== DONATION DATA TABLES ===== */
.donation-tables {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2rem;
  margin-top: 2.5rem;
  align-items: start;
}

.donation-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.donation-table-title {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  text-align: center;
  padding: 0.65rem 1.25rem;
  border-bottom: 1px solid var(--border);
  margin: 0;
}

.donation-table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.donation-table thead th {
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.donation-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.donation-table tbody tr:last-child {
  border-bottom: none;
}

.donation-table tbody tr:hover {
  background: rgba(255,255,255,0.03);
}

.donation-table td {
  padding: 0.5rem 0.75rem;
  color: var(--text);
  vertical-align: middle;
}

.tbl-rank {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.7rem;
  width: 2rem;
}

.tbl-amount {
  color: var(--green);
  font-family: var(--font-head);
  font-weight: 700;
  white-space: nowrap;
}

.tbl-comment {
  color: var(--text-muted);
  font-style: italic;
  min-width: 120px;
}

.tbl-when {
  color: var(--text-muted);
  white-space: nowrap;
}

.tbl-count {
  color: var(--text-muted);
  text-align: center;
}

.donation-table thead th.tbl-count {
  color: inherit;
  text-align: center;
}

.tbl-loading {
  text-align: center;
  color: var(--text-muted);
  padding: 1.25rem !important;
}

.tbl-empty td {
  color: var(--text-muted);
  opacity: 0.4;
}

.donation-table-full {
  grid-column: 1 / -1;
}

.tbl-scroll-wrap {
  max-height: 203px;
  overflow-y: auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.tbl-scroll-wrap thead th {
  position: sticky;
  top: 0;
  background: var(--bg-card);
  z-index: 1;
}

@media (max-width: 768px) {
  .donation-tables {
    grid-template-columns: 1fr;
  }

  /* Recent Donations ticker — hide Comment and When on mobile */
  .donation-meta-justified > span:nth-child(3),
  .donation-meta-justified > span:nth-child(4) {
    display: none;
  }

  /* Stack Donor above Streamer on mobile */
  .donation-meta-justified {
    flex-direction: column;
    gap: 0.1rem;
  }

  /* Taller rows to fit two lines; viewport stays 10 rows */
  .donation-row {
    height: 56px;
  }

  .donation-ticker-viewport {
    height: 560px; /* 10 rows × 56px */
  }
}

/* ============================================================
   SPONSORS PAGE
   ============================================================ */
.sponsors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 600px) {
  .sponsors-grid { grid-template-columns: repeat(2, 1fr); }
}

.sponsor-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.sponsor-card:hover {
  border-color: rgba(26,130,196,0.35);
  box-shadow: 0 4px 20px rgba(26,130,196,0.08);
}

.sponsor-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  margin-bottom: 0.75rem;
}

.sponsor-logo a {
  display: flex;
  justify-content: center;
  width: 95%;
  height: 100%;
}

.sponsor-logo > img,
.sponsor-logo a > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.sponsor-logo > img {
  width: 95%;
}

.sponsor-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.sponsor-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  text-align: justify;
}

/* ============================================================
   LEADERS PAGE
   ============================================================ */
.leaders-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 1.5rem;
}

.leader-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .leader-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
  }
}

.leader-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  min-width: 140px;
}

.leader-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border-hover);
}

.leader-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--blue);
  text-align: center;
}

.leader-body {
  flex: 1;
}

.leader-bio {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.leader-bio + .leader-bio {
  margin-top: 0.75rem;
}

/* ============================================================
   STREAMER LIST + DONATE PAGE
   ============================================================ */
.streamer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

@media (min-width: 480px) {
  .streamer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .streamer-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .streamer-grid { grid-template-columns: repeat(4, 1fr); }
}

.streamer-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 0.85rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.3rem;
  transition: border-color var(--transition);
}

.streamer-item:hover { border-color: var(--border-hover); }

.streamer-avatar-wrap {
  margin-bottom: 0.35rem;
}

.streamer-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  display: block;
}

.streamer-avatar--fallback {
  background: var(--bg-secondary);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
}

.streamer-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
  word-break: break-word;
}

.streamer-timeslot {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.streamer-buttons {
  display: flex;
  gap: 0.4rem;
  width: 100%;
  margin-top: auto;
}

.btn-streamer {
  flex: 1;
  display: inline-block;
  padding: 0.35rem 0.4rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity var(--transition);
}

.btn-streamer--twitch {
  background: #9147ff;
  color: #fff;
}

.btn-streamer--donate {
  background: var(--green);
  color: #fff;
}

.btn-streamer:hover { opacity: 0.82; }

.btn-streamer--disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

/* Donate page — larger cards with donate button */
.donate-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (min-width: 600px) {
  .donate-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .donate-grid { grid-template-columns: repeat(3, 1fr); }
}

.donate-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  transition: border-color var(--transition);
}

.donate-card:hover { border-color: rgba(204,17,51,0.35); }

/* Avatar + name left-side cluster in donate cards */
.donate-card-info {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  min-width: 0;
}

.donate-streamer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.donate-timeslot {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.donate-progress {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 1em;
  width: 100%;
  margin-bottom: 0.25rem;
}

.dp-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.dp-raised {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--blue);
  white-space: nowrap;
}

.dp-goal {
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.dp-bar {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  min-width: 24px;
  overflow: hidden;
}

.dp-fill {
  height: 100%;
  background: var(--blue);
  border-radius: 2px;
}

.donate-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.donate-avatar--fallback {
  background: var(--bg-card-alt);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.donate-card .streamer-name { font-size: 0.95rem; }

.donate-btn--disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.donate-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.35em 0.9em;
  border-radius: 50px;
  background: var(--red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: background var(--transition);
}

.donate-btn:hover { background: var(--red-dark); }

/* ============================================================
   HISTORY PAGE
   ============================================================ */
.timeline {
  position: relative;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue), transparent);
}

.timeline-item {
  display: flex;
  gap: 1.5rem;
  padding-left: 0;
}

.timeline-dot {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--blue);
  box-shadow: 0 0 15px var(--blue-glow);
  z-index: 1;
}

.timeline-content {
  flex: 1;
  padding-bottom: 0.5rem;
}

.timeline-year {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--blue);
  margin-bottom: 0.4rem;
}

.timeline-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.timeline-stat {
  display: inline-block;
  margin-top: 0.6rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--red);
}

/* ============================================================
   SCHEDULE PAGE
   ============================================================ */
.schedule-graphic-wrap {
  text-align: center;
  margin-bottom: 0.5rem;
}

.schedule-graphic {
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: var(--radius-lg);
  display: inline-block;
}

.schedule-day-heading {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 2rem 0 0.4rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

.schedule-day-heading--first { margin-top: 1rem; }

/* Schedule avatar in table rows */
.col-streamer-inner { display: flex; align-items: center; gap: 0.55rem; }

.schedule-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.schedule-avatar--fallback {
  background: var(--bg-card-alt);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

.schedule-table-wrap {
  overflow-x: auto;
  margin-top: 0.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  table-layout: fixed;
}

/* Lock column widths so all day-tables stay consistent */
.schedule-table th:nth-child(1) { width: 42%; }
.schedule-table th:nth-child(2) { width: 23%; }
.schedule-table th:nth-child(3) { width: 23%; }
.schedule-table th:nth-child(4) { width: 12%; }

.schedule-table th {
  background: var(--bg-card-alt);
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.schedule-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.schedule-table tr:last-child td { border-bottom: none; }

.schedule-table tr:nth-child(even) td { background: rgba(0,0,0,0.025); }

.schedule-table .col-date { color: var(--text-muted); font-size: 0.85rem; }
.schedule-table .col-streamer { font-weight: 600; overflow: hidden; }
.schedule-table .col-streamer-inner { overflow: hidden; }
.schedule-table .col-streamer-inner a,
.schedule-table .col-streamer-inner span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.schedule-table .col-time { color: var(--text-muted); }
.schedule-table .col-hours { color: var(--blue); font-weight: 600; }

/* ============================================================
   MILESTONES PAGE
   ============================================================ */
.milestones-img-wrap {
  text-align: center;
  margin: 1.5rem 0;
}

.milestones-img-wrap img {
  max-width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.prize-note {
  background: var(--bg-card);
  border: 1px solid rgba(26,130,196,0.2);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

.prize-note strong { color: var(--text); }

/* ============================================================
   FORM / CTA PAGES (contact, sponsor-sign-up, apply, etc.)
   ============================================================ */
.cta-block {
  max-width: 600px;
  margin: 2rem auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.cta-block h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text);
}

.cta-block p {
  font-size: 1rem;
  color: var(--text-muted);
}

.email-link {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--blue);
  transition: opacity var(--transition);
}

.email-link:hover { opacity: 0.75; }

.address-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  font-size: 0.95rem;
  line-height: 2;
  text-align: center;
  color: var(--text);
  margin-top: 1rem;
}

.address-card strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

/* Google Form embed */
.form-embed {
  width: 100%;
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 1.5rem;
  display: block;
}

/* Contact form */
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

.form-required { color: var(--red); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23626288' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.25rem;
}

.form-group textarea { resize: vertical; min-height: 130px; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-glow);
}

.form-success {
  background: rgba(13,143,112,0.1);
  border: 1px solid var(--green);
  color: var(--green);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.form-error {
  background: rgba(204,17,51,0.08);
  border: 1px solid var(--red);
  color: var(--red);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

/* ============================================================
   STREAMER TOOLS PAGE
   ============================================================ */
.mediakit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (min-width: 600px) {
  .mediakit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.mediakit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.mediakit-icon {
  font-size: 2rem;
  line-height: 1;
}

.mediakit-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.mediakit-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.mediakit-dims {
  font-size: 0.78rem;
  color: var(--blue);
  font-family: var(--font-mono, monospace);
  letter-spacing: 0.02em;
}

.obs-url-block {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  width: 100%;
  margin-top: auto;
}

.obs-url {
  flex: 1;
  padding: 0.45rem 0.65rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.65rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  user-select: all;
  cursor: text;
  line-height: 1.4;
}

.obs-copy-btn {
  flex-shrink: 0;
  background: var(--green);
  border: none;
  border-left: 1px solid var(--border);
  color: #fff;
  padding: 0.75rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.obs-copy-btn:hover {
  background: #1fb882;
  color: #fff;
}

.obs-copy-btn.copied {
  background: var(--blue);
  color: #fff;
}

/* ============================================================
   CHANGELOG PAGE
   ============================================================ */
.changelog-entry {
  border-left: 3px solid var(--border);
  padding: 0 0 2rem 1.5rem;
  position: relative;
}

.changelog-entry::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 0.45rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid var(--bg);
}

.changelog-entry:last-child {
  border-left-color: transparent;
}

.changelog-header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.changelog-version {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--blue);
  background: rgba(76,201,240,0.1);
  border: 1px solid rgba(76,201,240,0.25);
  border-radius: 4px;
  padding: 0.1rem 0.5rem;
  white-space: nowrap;
}

.changelog-label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.changelog-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: auto;
}

.changelog-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.changelog-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 1.1rem;
  position: relative;
}

.changelog-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

/* ============================================================
   DOC EMBED (WHEEL INSTRUCTIONS)
   ============================================================ */
.doc-embed-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.doc-embed {
  display: block;
  width: 100%;
  height: 80vh;
  min-height: 500px;
  border: none;
}

/* ============================================================
   TERMS PAGE
   ============================================================ */
.terms-content {
  max-width: 720px;
  margin: 0 auto;
}

.terms-content h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 2rem 0 0.6rem;
}

.terms-content p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ============================================================
   TILTIFY INSTRUCTIONS
   ============================================================ */
.pdf-card {
  max-width: 400px;
  margin: 2.5rem auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.pdf-icon { font-size: 3rem; }

.pdf-card h2 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--text);
}

.pdf-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: linear-gradient(rgba(8,8,24,0.82), rgba(8,8,24,0.82)), url('/images/header-bg.webp') center center / cover no-repeat;
  border-top: 1px solid var(--border);
  padding: 2rem 1.25rem;
  margin-top: 3rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: center;
}

.footer-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links a:hover { color: #fff; }

.footer-credit {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

.footer-credit a {
  color: #4cc9f0;
  transition: opacity var(--transition);
}

.footer-credit a:hover { opacity: 0.75; }

.footer-credit-sep {
  margin: 0 0.4em;
  opacity: 0.4;
}

.footer-kofi {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  white-space: nowrap;
}

.footer-kofi img {
  width: 18px;
  height: auto;
  vertical-align: middle;
  opacity: 0.8;
}

.footer-arkonen-logo {
  font-family: 'Fredoka One', cursive;
  font-size: 1rem;
  font-weight: 400;
  background: linear-gradient(135deg, #b899d4, #c4b5f4, #6dcac1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  line-height: 1;
  animation: arkonenFloat 6s ease-in-out infinite, arkonenGlow 4s ease-in-out infinite;
  text-decoration: none;
}

@keyframes arkonenFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-4px); }
}

@keyframes arkonenGlow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(232, 160, 191, 0.6)) drop-shadow(0 0 18px rgba(196, 181, 244, 0.3)); }
  50%       { filter: drop-shadow(0 0 10px rgba(109, 202, 193, 0.6)) drop-shadow(0 0 22px rgba(184, 153, 212, 0.4)); }
}

.footer-pika {
  overflow: hidden;
  height: 155px;
}

.footer-pika img {
  width: auto;
  height: 240px;
  display: block;
  margin: -72px auto 0;
}

.footer-stjude {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

/* ============================================================
   UTILITY
   ============================================================ */
.mt-1  { margin-top: 0.5rem; }
.mt-2  { margin-top: 1rem; }
.mt-3  { margin-top: 1.5rem; }
.mt-4  { margin-top: 2rem; }
.mb-1  { margin-bottom: 0.5rem; }
.mb-2  { margin-bottom: 1rem; }
.mb-3  { margin-bottom: 1.5rem; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Error / loading states */
.loading-text {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
}

.error-text {
  color: var(--red);
  font-size: 0.85rem;
}
