/**
 * Retro Bomber Website - Shared Styles
 * 
 * CSS Custom Properties for brand consistency
 * Mobile-first responsive design
 */

/* ============================================
   CSS CUSTOM PROPERTIES (Brand Tokens)
   ============================================ */
:root {
  /* Brand Colors */
  --color-primary: #FF6B35;        /* Vibrant orange - CTA, highlights */
  --color-primary-dark: #E55A2B;   /* Darker orange for hover states */
  --color-secondary: #4ECDC4;      /* Teal - accents */
  --color-secondary-dark: #3DB8B0;
  
  /* Background Colors */
  --color-bg-dark: #1A1A2E;        /* Main dark background */
  --color-bg-darker: #16162A;      /* Darker sections */
  --color-bg-card: #252540;        /* Card backgrounds */
  --color-bg-card-hover: #2D2D4A;
  
  /* Text Colors */
  --color-text-primary: #FFFFFF;
  --color-text-secondary: #B8B8D1;
  --color-text-muted: #6B6B8D;
  
  /* Accent Colors */
  --color-success: #4ADE80;
  --color-warning: #FBBF24;
  --color-error: #F87171;
  
  /* Retro Game Colors */
  --color-retro-yellow: #FFE66D;
  --color-retro-pink: #FF6B9D;
  --color-retro-blue: #4A90D9;
  
  /* Typography */
  --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Press Start 2P', 'Courier New', monospace;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Font Sizes (fluid typography) */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
  --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.5rem);
  --text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 3.5rem);
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(255, 107, 53, 0.3);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  
  /* Layout */
  --container-max: 1200px;
  --container-narrow: 800px;
  --header-height: 70px;
}

/* ============================================
   CSS RESET & BASE
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-bg-dark);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-primary);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

.display-text {
  font-family: var(--font-display);
  letter-spacing: 0.05em;
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

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

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-6);
  }
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-16) 0;
}

@media (min-width: 768px) {
  .section {
    padding: var(--space-20) 0;
  }
}

.section--dark {
  background-color: var(--color-bg-darker);
}

/* Flexbox utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* Grid utilities */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
}

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

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

/* Text alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  transition: color var(--transition-fast);
}

.header__logo:hover {
  color: var(--color-primary);
}

.header__logo img {
  height: 40px;
  width: auto;
}

/* Desktop Navigation */
.nav {
  display: none;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
    align-items: center;
    gap: var(--space-6);
  }
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-text-primary);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition-base);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle__bar {
  width: 24px;
  height: 2px;
  background-color: var(--color-text-primary);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav-toggle--open .nav-toggle__bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle--open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle--open .nav-toggle__bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation Drawer */
.nav-mobile {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-bg-dark);
  padding: var(--space-6);
  transform: translateX(100%);
  transition: transform var(--transition-base);
  z-index: 999;
}

.nav-mobile--open {
  transform: translateX(0);
}

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

.nav-mobile__link {
  display: block;
  padding: var(--space-4) 0;
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: color var(--transition-fast);
}

.nav-mobile__link:hover,
.nav-mobile__link--active {
  color: var(--color-primary);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: var(--color-text-primary);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(255, 107, 53, 0.4);
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-text-primary);
  border: 2px solid var(--color-primary);
}

.btn--secondary:hover {
  background-color: var(--color-primary);
}

.btn--ghost {
  background-color: transparent;
  color: var(--color-text-secondary);
}

.btn--ghost:hover {
  color: var(--color-text-primary);
  background-color: rgba(255, 255, 255, 0.1);
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background-color: var(--color-bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-4);
}

.card__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.card__description {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background-color: var(--color-bg-darker);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-12) 0 var(--space-6);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

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

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer__brand {
  max-width: 280px;
}

.footer__brand-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

.footer__brand-logo img {
  height: 32px;
}

.footer__brand-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.footer__column-title {
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}

.footer__link {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--color-primary);
}

.footer__social {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--color-bg-card);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}

.footer__social-link:hover {
  background-color: var(--color-primary);
  color: var(--color-text-primary);
}

.footer__disclaimer {
  padding: var(--space-6) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: var(--space-8);
}

.footer__disclaimer p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer__copyright {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.footer__legal {
  display: flex;
  gap: var(--space-6);
}

.footer__legal-link {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer__legal-link:hover {
  color: var(--color-text-primary);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.main-content {
  padding-top: var(--header-height);
  min-height: 100vh;
}

/* Spacing utilities */
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }

/* Hide on mobile / desktop */
.hide-mobile {
  display: none;
}

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

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}


/* ============================================
   LANDING PAGE - HERO SECTION
   ============================================ */

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--space-8) var(--space-4);
  overflow: hidden;
}

/* Subtle grid background - retro CRT feel */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(255, 107, 53, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 107, 53, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* Radial gradient glow behind game preview */
.hero::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 107, 53, 0.15) 0%,
    rgba(123, 44, 191, 0.08) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

/* Game Preview - THE focal point */
.hero__game-preview {
  position: relative;
  margin-bottom: var(--space-8);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(255, 107, 53, 0.2);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hero__game-preview:hover {
  transform: scale(1.02);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.15),
    0 30px 60px -15px rgba(0, 0, 0, 0.6),
    0 0 100px rgba(255, 107, 53, 0.3);
}

.hero__game-image {
  width: 100%;
  max-width: 700px;
  height: auto;
  display: block;
}

/* Placeholder for when no screenshot yet */
.hero__game-placeholder {
  width: 100%;
  max-width: 700px;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--color-bg-card) 0%, var(--color-bg-darker) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.hero__game-placeholder-icon {
  font-size: 64px;
  opacity: 0.6;
}

/* Title - pixel font, but restrained */
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw + 1rem, 3rem);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
  color: var(--color-text-primary);
  text-shadow: 
    0 0 40px rgba(255, 107, 53, 0.5),
    0 2px 0 rgba(0, 0, 0, 0.3);
}

/* Tagline - modern, clean */
.hero__tagline {
  font-size: var(--text-xl);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* CTA group */
.hero__cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
}

@media (min-width: 480px) {
  .hero__cta {
    flex-direction: row;
    justify-content: center;
  }
}

/* Primary CTA with subtle pulse animation */
.hero__cta .btn--primary {
  position: relative;
}

.hero__cta .btn--primary::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: var(--color-primary);
  opacity: 0;
  z-index: -1;
  animation: cta-pulse 2s ease-in-out infinite;
}

@keyframes cta-pulse {
  0%, 100% { opacity: 0; transform: scale(1); }
  50% { opacity: 0.15; transform: scale(1.05); }
}

/* Stats row below CTA */
.hero__stats {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__stat {
  text-align: center;
}

.hero__stat-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-primary);
  display: block;
}

.hero__stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

/* ============================================
   LANDING PAGE - FEATURES SECTION
   ============================================ */

.features {
  position: relative;
  padding: var(--space-20) 0;
  background-color: var(--color-bg-darker);
}

/* Section header */
.features__header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.features__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

.features__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* Feature grid - NOT identical cards */
.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .features__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
  }
}

/* Individual feature items - each has personality */
.feature {
  position: relative;
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color var(--transition-base), transform var(--transition-base);
}

.feature:hover {
  border-color: rgba(255, 107, 53, 0.3);
  transform: translateY(-4px);
}

/* Feature icon - larger, more prominent */
.feature__icon {
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.2) 0%, rgba(123, 44, 191, 0.1) 100%);
}

/* Feature 1 - Stages (orange accent) */
.feature--stages .feature__icon {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.25) 0%, rgba(255, 107, 53, 0.1) 100%);
}

/* Feature 2 - Enemies (purple accent) */
.feature--enemies .feature__icon {
  background: linear-gradient(135deg, rgba(123, 44, 191, 0.25) 0%, rgba(123, 44, 191, 0.1) 100%);
}

/* Feature 3 - Powerups (cyan accent) */
.feature--powerups .feature__icon {
  background: linear-gradient(135deg, rgba(0, 245, 212, 0.25) 0%, rgba(0, 245, 212, 0.1) 100%);
}

.feature__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.feature__description {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Feature highlight number */
.feature__highlight {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  color: var(--color-primary);
  opacity: 0.6;
}

/* ============================================
   LANDING PAGE - FINAL CTA SECTION
   ============================================ */

.final-cta {
  padding: var(--space-20) 0;
  text-align: center;
  position: relative;
}

/* Subtle gradient overlay */
.final-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    ellipse at center bottom,
    rgba(255, 107, 53, 0.1) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.final-cta__content {
  position: relative;
  z-index: 1;
}

.final-cta__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

.final-cta__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   LANDING PAGE - ENEMIES SHOWCASE
   ============================================ */

.enemies-showcase {
  padding: var(--space-16) 0;
}

.enemies-showcase__header {
  text-align: center;
  margin-bottom: var(--space-10);
}

.enemies-showcase__title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}

.enemies-showcase__subtitle {
  color: var(--color-text-muted);
}

.enemies-showcase__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
}

.enemy-badge {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background-color: var(--color-bg-card);
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.enemy-badge:hover {
  border-color: rgba(255, 107, 53, 0.4);
  transform: translateY(-2px);
}

.enemy-badge__icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background-color: var(--color-bg-darker);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  overflow: hidden;
}

.enemy-badge__icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  image-rendering: pixelated;
}

.enemy-badge__name {
  font-size: var(--text-sm);
  font-weight: 500;
}

/* ============================================
   LANDING PAGE - POWERUPS SHOWCASE
   ============================================ */

.powerups-showcase {
  padding: var(--space-16) 0;
  background-color: var(--color-bg-darker);
}

.powerups-showcase__header {
  text-align: center;
  margin-bottom: var(--space-10);
}

.powerups-showcase__title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}

.powerups-showcase__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

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

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

.powerup-item {
  text-align: center;
  padding: var(--space-4);
}

.powerup-item__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg-card);
  border-radius: var(--radius-lg);
  font-size: 24px;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
  overflow: hidden;
}

.powerup-item__icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  image-rendering: pixelated;
}

.powerup-item:hover .powerup-item__icon {
  transform: scale(1.1);
  background-color: rgba(255, 107, 53, 0.2);
}

.powerup-item__name {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}


/* ============================================
   CONTACT PAGE STYLES
   ============================================ */

/* Contact Hero */
.contact-hero {
  padding: var(--space-16) 0 var(--space-12);
  text-align: center;
  background: linear-gradient(180deg, var(--color-bg-darker) 0%, var(--color-bg-dark) 100%);
}

.contact-hero__title {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
}

.contact-hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Contact Options Grid */
.contact-options {
  padding: var(--space-12) 0;
}

.contact-options__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

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

/* Contact Card */
.contact-card {
  background-color: var(--color-bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color var(--transition-base), transform var(--transition-base);
}

.contact-card:hover {
  transform: translateY(-4px);
}

.contact-card--discord:hover {
  border-color: #5865F2;
}

.contact-card--email:hover {
  border-color: var(--color-primary);
}

.contact-card--github:hover {
  border-color: #6e5494;
}

.contact-card__icon {
  font-size: 48px;
  margin-bottom: var(--space-4);
}

.contact-card__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.contact-card__description {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
  line-height: 1.5;
}

.contact-card .btn {
  margin-bottom: var(--space-4);
}

.contact-card__response {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Contact Form Section */
.contact-form-section {
  padding: var(--space-16) 0;
}

.contact-form-header {
  text-align: center;
  margin-bottom: var(--space-10);
}

.contact-form-header h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}

.contact-form-header p {
  color: var(--color-text-muted);
}

/* Email CTA Section */
.contact-email-cta {
  background-color: var(--color-bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-email-cta__icon {
  font-size: 56px;
  margin-bottom: var(--space-4);
}

.contact-email-cta__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.contact-email-cta__description {
  color: var(--color-text-secondary);
  max-width: 500px;
  margin: 0 auto var(--space-6);
  line-height: 1.6;
}

.contact-email-cta__topics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.contact-topic {
  padding: var(--space-1) var(--space-3);
  background-color: var(--color-bg-darker);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-email-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.contact-email-cta__btn svg {
  flex-shrink: 0;
}

.contact-email-cta__note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.copy-email-btn {
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  font-size: inherit;
  text-decoration: underline;
  padding: 0;
  transition: color var(--transition-fast);
}

.copy-email-btn:hover {
  color: var(--color-primary-dark);
}

.copy-email-btn.copied {
  color: var(--color-success);
  text-decoration: none;
}

/* Form Styles */
.contact-form {
  background-color: var(--color-bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}

@media (min-width: 768px) {
  .contact-form {
    padding: var(--space-10);
  }
}

.form-row {
  margin-bottom: var(--space-6);
}

.form-row--2col {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .form-row--2col {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-group {
  margin-bottom: var(--space-6);
}

.form-group:last-of-type {
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

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

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  color: var(--color-text-primary);
  background-color: var(--color-bg-darker);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-muted);
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236B6B8D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

.form-select option {
  background-color: var(--color-bg-card);
  color: var(--color-text-primary);
}

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

.form-hint {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

/* Honeypot (hidden from users) */
.form-group--honey {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-actions {
  margin-top: var(--space-8);
  text-align: center;
}

/* Button loading state */
.btn__loading {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Form Messages */
.form-message {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  margin-top: var(--space-6);
}

.form-message svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.form-message strong {
  display: block;
  margin-bottom: var(--space-1);
}

.form-message p {
  font-size: var(--text-sm);
  color: inherit;
  margin: 0;
}

.form-message--success {
  background-color: rgba(74, 222, 128, 0.15);
  color: var(--color-success);
}

.form-message--error {
  background-color: rgba(248, 113, 113, 0.15);
  color: var(--color-error);
}

/* FAQ Section */
.faq-section {
  padding: var(--space-16) 0;
}

.faq-header {
  text-align: center;
  margin-bottom: var(--space-10);
}

.faq-header h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}

.faq-header p {
  color: var(--color-text-muted);
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  padding: var(--space-5) 0;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text-primary);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question span {
  text-align: left;
}

.faq-icon {
  flex-shrink: 0;
  color: var(--color-text-muted);
  transition: transform var(--transition-fast);
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding-bottom: var(--space-5);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.faq-answer p {
  margin-bottom: var(--space-3);
}

.faq-answer ul {
  margin: var(--space-3) 0;
  padding-left: var(--space-5);
  list-style: disc;
}

.faq-answer li {
  margin-bottom: var(--space-2);
  color: var(--color-text-secondary);
}

.faq-answer a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-answer a:hover {
  color: var(--color-primary-dark);
}

/* Contact Support CTA */
.contact-support-cta {
  padding: var(--space-16) 0;
  background-color: var(--color-bg-darker);
  text-align: center;
}

.contact-support-cta__content h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}

.contact-support-cta__content p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

/* ============================================
   SUPPORT PAGE STYLES
   ============================================ */

/* Support Hero */
.support-hero {
  padding: var(--space-20) 0 var(--space-16);
  text-align: center;
  background: linear-gradient(180deg, var(--color-bg-darker) 0%, var(--color-bg-dark) 100%);
  position: relative;
}

.support-hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 107, 53, 0.1) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.support-hero__content {
  position: relative;
  z-index: 1;
}

.support-hero__badge {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background-color: rgba(255, 107, 53, 0.15);
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}

.support-hero__title {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-6);
  line-height: 1.1;
}

.support-hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 550px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Why Support Section */
.why-support {
  padding: var(--space-16) 0;
}

.why-support__header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.why-support__header h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}

.why-support__header p {
  color: var(--color-text-muted);
}

.why-support__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

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

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

.why-support__item {
  text-align: center;
  padding: var(--space-6);
}

.why-support__icon {
  font-size: 40px;
  margin-bottom: var(--space-4);
}

.why-support__item h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.why-support__item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Donation Tiers */
.donation-tiers {
  padding: var(--space-16) 0;
}

.donation-tiers__header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.donation-tiers__header h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}

.donation-tiers__header p {
  color: var(--color-text-muted);
}

.donation-tiers__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  max-width: 800px;
  margin: 0 auto;
}

/* Two-column layout for 2 items */
.donation-tiers__grid--two-col {
  max-width: 900px;
}

@media (min-width: 768px) {
  .donation-tiers__grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
  
  .donation-tiers__grid--two-col {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }
}

.donation-tier {
  position: relative;
  background-color: var(--color-bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.donation-tier:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.donation-tier--featured {
  border-color: var(--color-primary);
  background: linear-gradient(
    180deg,
    rgba(255, 107, 53, 0.15) 0%,
    var(--color-bg-card) 50%
  );
}

.donation-tier--featured:hover {
  border-color: var(--color-primary);
  box-shadow: 0 20px 40px rgba(255, 107, 53, 0.15);
}

/* Ribbon for featured tier */
.donation-tier__ribbon {
  position: absolute;
  top: 20px;
  right: -35px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  padding: var(--space-1) var(--space-10);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transform: rotate(45deg);
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

/* New header layout with icon wrapper */
.donation-tier__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--space-4);
  position: relative;
}

.donation-tier__icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  position: relative;
}

.donation-tier__icon-wrapper--coffee {
  background: linear-gradient(135deg, #FFDD00 0%, #FBB034 100%);
  box-shadow: 0 8px 24px rgba(251, 176, 52, 0.3);
}

.donation-tier__icon-wrapper--kofi {
  background: linear-gradient(135deg, #FF6B6B 0%, #FF5E78 100%);
  box-shadow: 0 8px 24px rgba(255, 94, 120, 0.3);
}

.donation-tier__icon {
  font-size: 40px;
  line-height: 1;
}

.donation-tier__badge {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  padding: var(--space-1) var(--space-4);
  background-color: var(--color-bg-darker);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: 500;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.donation-tier__badge--featured {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  border-color: var(--color-primary);
}

/* Legacy icon (for backward compat) */
.donation-tier > .donation-tier__icon {
  font-size: 48px;
  margin-bottom: var(--space-4);
}

.donation-tier__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.donation-tier__price {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

.donation-tier__price strong {
  font-size: var(--text-2xl);
  color: var(--color-text-primary);
}

.donation-tier__description {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  line-height: 1.5;
}

.donation-tier__perks {
  text-align: left;
  margin-bottom: var(--space-6);
  flex-grow: 1;
}

.donation-tier__perks li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3);
}

.donation-tier__perks li:last-child {
  margin-bottom: 0;
}

.donation-tier__perks svg {
  flex-shrink: 0;
  color: var(--color-success);
}

.donation-tier .btn {
  margin-top: auto;
}

.donation-tier .btn--full {
  width: 100%;
}

.donation-tiers__note {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-8);
}

/* Premium Preview */
.premium-preview {
  padding: var(--space-20) 0;
}

.premium-preview__content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.premium-preview__badge {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background-color: rgba(78, 205, 196, 0.15);
  color: var(--color-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.premium-preview__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

.premium-preview__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 500px;
  margin: 0 auto var(--space-12);
  line-height: 1.6;
}

.premium-preview__features {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

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

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

.premium-feature {
  padding: var(--space-6);
  background-color: var(--color-bg-card);
  border-radius: var(--radius-lg);
  text-align: center;
}

.premium-feature__icon {
  font-size: 32px;
  margin-bottom: var(--space-3);
}

.premium-feature h4 {
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
}

.premium-feature p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
}

.premium-preview__cta {
  max-width: 400px;
  margin: 0 auto;
}

.premium-preview__cta > p:first-child {
  margin-bottom: var(--space-4);
  color: var(--color-text-secondary);
}

.premium-notify-form {
  display: flex;
  gap: var(--space-3);
}

.premium-notify-form .form-input {
  flex: 1;
}

.premium-preview__disclaimer {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
}

.btn--success {
  background: var(--color-success) !important;
  cursor: default;
}

/* Other Support Section */
.other-support {
  padding: var(--space-16) 0;
}

.other-support__header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.other-support__header h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}

.other-support__header p {
  color: var(--color-text-muted);
  max-width: 500px;
  margin: 0 auto;
}

.other-support__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

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

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

.other-support__item {
  text-align: center;
  padding: var(--space-6);
  background-color: var(--color-bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.other-support__icon {
  font-size: 36px;
  margin-bottom: var(--space-4);
}

.other-support__item h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.other-support__item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  line-height: 1.5;
}

.other-support__actions {
  margin-top: auto;
}

/* Supporters Wall */
.supporters-wall {
  padding: var(--space-16) 0;
}

.supporters-wall__header {
  text-align: center;
  margin-bottom: var(--space-10);
}

.supporters-wall__header h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}

.supporters-wall__header p {
  color: var(--color-text-muted);
}

.supporters-wall__content {
  max-width: 700px;
  margin: 0 auto;
}

.supporters-tier {
  margin-bottom: var(--space-8);
}

.supporters-tier:last-child {
  margin-bottom: 0;
}

.supporters-tier__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
  text-align: center;
}

.supporters-tier__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}

.supporter {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background-color: var(--color-bg-card);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.supporter--patron {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.2) 0%, rgba(123, 44, 191, 0.2) 100%);
  color: var(--color-text-primary);
  border: 1px solid rgba(255, 107, 53, 0.3);
}

.supporters-wall__note {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-8);
}

.supporters-wall__note a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Support Final CTA */
.support-final-cta {
  padding: var(--space-16) 0;
  text-align: center;
  position: relative;
}

.support-final-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 107, 53, 0.08) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.support-final-cta__content {
  position: relative;
  z-index: 1;
}

.support-final-cta__content h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}

.support-final-cta__content p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}


/* ============================================
   LEGAL PAGES (Privacy Policy, Terms of Service)
   ============================================ */

.legal-page {
  padding: var(--space-12) 0 var(--space-20);
}

/* Legal Header */
.legal-header {
  margin-bottom: var(--space-10);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-header h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-3);
}

.legal-meta {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
}

/* Quick Summary Box */
.legal-summary {
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.1) 0%, rgba(78, 205, 196, 0.05) 100%);
  border: 1px solid rgba(78, 205, 196, 0.2);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin-bottom: var(--space-10);
}

.legal-summary h2 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
  color: var(--color-secondary);
}

.legal-summary > p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

.legal-summary ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.legal-summary li {
  position: relative;
  padding-left: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}

.legal-summary li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-success);
}

.legal-summary li:last-child {
  margin-bottom: 0;
}

.legal-summary strong {
  color: var(--color-text-primary);
}

/* Table of Contents */
.legal-toc {
  background-color: var(--color-bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin-bottom: var(--space-10);
}

.legal-toc h2 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
}

.legal-toc ol {
  list-style: decimal;
  padding-left: var(--space-5);
  margin: 0;
  columns: 1;
}

@media (min-width: 640px) {
  .legal-toc ol {
    columns: 2;
    column-gap: var(--space-8);
  }
}

.legal-toc li {
  margin-bottom: var(--space-2);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

.legal-toc a {
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.legal-toc a:hover {
  color: var(--color-primary);
}

/* Legal Content */
.legal-content {
  font-size: var(--text-base);
  line-height: 1.7;
}

.legal-content section {
  margin-bottom: var(--space-12);
  scroll-margin-top: calc(var(--header-height) + var(--space-6));
}

.legal-content section:last-child {
  margin-bottom: 0;
}

.legal-content h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-content h3 {
  font-size: var(--text-lg);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
  color: var(--color-text-primary);
}

.legal-content p {
  margin-bottom: var(--space-4);
  color: var(--color-text-secondary);
}

.legal-content ul,
.legal-content ol {
  margin: var(--space-4) 0;
  padding-left: var(--space-6);
}

.legal-content ul {
  list-style: disc;
}

.legal-content ol {
  list-style: decimal;
}

.legal-content li {
  margin-bottom: var(--space-2);
  color: var(--color-text-secondary);
}

.legal-content li:last-child {
  margin-bottom: 0;
}

.legal-content strong {
  color: var(--color-text-primary);
  font-weight: 600;
}

.legal-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: var(--color-primary-dark);
}

/* Legal Table (for cookies, etc.) */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-6) 0;
  font-size: var(--text-sm);
}

.legal-table th,
.legal-table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-table th {
  background-color: var(--color-bg-card);
  color: var(--color-text-primary);
  font-weight: 600;
}

.legal-table td {
  color: var(--color-text-secondary);
}

.legal-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.02);
}

/* Make table scrollable on mobile */
@media (max-width: 640px) {
  .legal-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* Related Documents */
.legal-related {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-related h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
}

.legal-related ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.legal-related li {
  margin: 0;
}

.legal-related a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background-color: var(--color-bg-card);
  border-radius: var(--radius-lg);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.legal-related a:hover {
  background-color: var(--color-bg-card-hover);
  color: var(--color-text-primary);
  text-decoration: none;
}

/* Cookie Consent Banner - Enhanced */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-bg-card);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-4) var(--space-4);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform var(--transition-base);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-banner--visible {
  transform: translateY(0);
}

.cookie-banner__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .cookie-banner__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cookie-banner__text {
  flex: 1;
}

.cookie-banner__text p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.5;
}

.cookie-banner__text a {
  color: var(--color-primary);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: var(--space-3);
  flex-shrink: 0;
}

.cookie-banner__actions .btn {
  white-space: nowrap;
}

/* Cookie Settings Modal */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background-color: rgba(0, 0, 0, 0.8);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.cookie-modal--visible {
  opacity: 1;
  visibility: visible;
}

.cookie-modal__content {
  background-color: var(--color-bg-card);
  border-radius: var(--radius-xl);
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: var(--space-6);
}

.cookie-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}

.cookie-modal__header h2 {
  font-size: var(--text-xl);
  margin: 0;
}

.cookie-modal__close {
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: var(--space-2);
  transition: color var(--transition-fast);
}

.cookie-modal__close:hover {
  color: var(--color-text-primary);
}

.cookie-category {
  padding: var(--space-4) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-category:last-of-type {
  border-bottom: none;
}

.cookie-category__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.cookie-category__info {
  flex: 1;
}

.cookie-category__title {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.cookie-category__description {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
}

.toggle-switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 1;
}

.toggle-switch input:disabled {
  cursor: not-allowed;
}

.toggle-switch__slider {
  position: absolute;
  inset: 0;
  background-color: var(--color-bg-darker);
  border-radius: var(--radius-full);
  transition: background-color var(--transition-fast);
}

.toggle-switch__slider::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background-color: var(--color-text-muted);
  border-radius: 50%;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.toggle-switch input:checked + .toggle-switch__slider {
  background-color: rgba(255, 107, 53, 0.3);
}

.toggle-switch input:checked + .toggle-switch__slider::before {
  transform: translateX(22px);
  background-color: var(--color-primary);
}

.toggle-switch input:disabled + .toggle-switch__slider {
  opacity: 0.5;
}

.toggle-switch input:disabled + .toggle-switch__slider::before {
  background-color: var(--color-success);
}

.cookie-modal__footer {
  margin-top: var(--space-6);
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
}


/* ============================================
   BREADCRUMBS
   ============================================ */

.breadcrumb {
  padding: var(--space-4) 0;
  background-color: var(--color-bg-darker);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--text-sm);
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.breadcrumb__item:not(:last-child)::after {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B6B8D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.6;
}

.breadcrumb__link {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb__link:hover {
  color: var(--color-primary);
}

.breadcrumb__current {
  color: var(--color-text-secondary);
}

/* Home icon in breadcrumb */
.breadcrumb__home-icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

/* ============================================
   CROSS-PAGE CTA SECTIONS
   ============================================ */

.cross-cta {
  padding: var(--space-12) 0;
  background-color: var(--color-bg-darker);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cross-cta__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

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

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

.cross-cta__item {
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  background-color: var(--color-bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.cross-cta__item:hover {
  border-color: rgba(255, 107, 53, 0.3);
  transform: translateY(-2px);
}

.cross-cta__icon {
  font-size: 32px;
  margin-bottom: var(--space-3);
}

.cross-cta__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.cross-cta__description {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  flex-grow: 1;
}

.cross-cta__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
  transition: gap var(--transition-fast);
}

.cross-cta__link:hover {
  gap: var(--space-3);
}

.cross-cta__link svg {
  transition: transform var(--transition-fast);
}

.cross-cta__link:hover svg {
  transform: translateX(2px);
}


/* ============================================
   ADVERTISEMENT PLACEHOLDERS
   ============================================ */

/* Ad container base styles */
.ad-container {
  margin: var(--space-6) 0;
  text-align: center;
}

.ad-container--header {
  margin-top: var(--space-4);
  margin-bottom: var(--space-8);
}

.ad-container--footer {
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
}

.ad-container--sidebar {
  position: sticky;
  top: calc(var(--header-height, 80px) + var(--space-4));
}

/* Ad placeholder (shown when ads not configured) */
.ad-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg-card);
  border: 2px dashed rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  min-height: 90px;
  color: var(--color-text-muted);
}

.ad-placeholder--header-banner,
.ad-placeholder--footer-banner {
  min-height: 90px;
  max-width: 728px;
  margin: 0 auto;
}

.ad-placeholder--sidebar {
  min-height: 250px;
  max-width: 300px;
}

.ad-placeholder--in-article {
  min-height: 250px;
  max-width: 336px;
  margin: var(--space-6) auto;
}

.ad-placeholder__text {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

.ad-placeholder__note {
  font-size: 10px;
  opacity: 0.5;
  margin-top: var(--space-2);
}

/* Hide ad placeholders in production (when real ads load) */
.adsbygoogle + .ad-placeholder {
  display: none;
}

/* Responsive ad sizes */
@media (max-width: 768px) {
  .ad-placeholder--header-banner,
  .ad-placeholder--footer-banner {
    min-height: 50px;
    max-width: 320px;
  }
  
  .ad-placeholder--sidebar {
    min-height: 100px;
    max-width: 100%;
  }
}


/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

.toast-container {
  position: fixed;
  bottom: var(--space-4);
  right: var(--space-4);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: auto;
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  max-width: 320px;
}

.toast--visible {
  transform: translateX(0);
  opacity: 1;
}

.toast--hiding {
  transform: translateX(100%);
  opacity: 0;
}

.toast--success {
  border-color: var(--color-success);
}

.toast--success .toast__icon {
  color: var(--color-success);
}

.toast--error {
  border-color: var(--color-error);
}

.toast--error .toast__icon {
  color: var(--color-error);
}

.toast--info {
  border-color: var(--color-primary);
}

.toast--info .toast__icon {
  color: var(--color-primary);
}

.toast__icon {
  font-size: var(--text-lg);
  flex-shrink: 0;
}

.toast__message {
  flex: 1;
  color: var(--color-text);
  font-size: var(--text-sm);
}

.toast__close {
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: var(--space-1);
  font-size: var(--text-lg);
  line-height: 1;
  transition: color 0.2s ease;
}

.toast__close:hover {
  color: var(--color-text);
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .toast-container {
    left: var(--space-4);
    right: var(--space-4);
  }
  
  .toast {
    max-width: none;
    transform: translateY(100%);
  }
  
  .toast--visible {
    transform: translateY(0);
  }
  
  .toast--hiding {
    transform: translateY(100%);
  }
}


/* ============================================
   AUTH MODAL
   ============================================ */

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.auth-modal--visible {
  opacity: 1;
  visibility: visible;
}

.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.auth-modal__content {
  position: relative;
  background: var(--color-bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.auth-modal--visible .auth-modal__content {
  transform: scale(1);
}

.auth-modal__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: var(--space-2);
  transition: color 0.2s ease;
}

.auth-modal__close:hover {
  color: var(--color-text);
}

.auth-modal__header {
  text-align: center;
  margin-bottom: var(--space-6);
}

.auth-modal__title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.auth-modal__subtitle {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.auth-modal__buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.auth-modal__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
}

.auth-modal__btn:hover {
  transform: translateY(-2px);
}

.auth-modal__btn:active {
  transform: translateY(0);
}

.auth-modal__btn--google {
  background: white;
  color: #333;
}

.auth-modal__btn--google:hover {
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

.auth-modal__btn--facebook {
  background: #1877F2;
  color: white;
}

.auth-modal__btn--facebook:hover {
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

.auth-modal__btn-icon {
  flex-shrink: 0;
}

.auth-modal__footer {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.auth-modal__footer p {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
}


/* ============================================
   AUTH BUTTON
   ============================================ */

.auth-button {
  display: flex;
  align-items: center;
}

.auth-button__loading {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.auth-button__user {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.auth-button__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.auth-button__avatar--placeholder {
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 600;
}

.auth-button__name {
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 500;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .auth-button__name {
    display: none;
  }
}


/* ============================================
   LEADERBOARD COMPONENT
   ============================================ */

.leaderboard-section {
  padding: var(--space-12) 0;
  background: var(--color-bg-darker);
}

.leaderboard-section__header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.leaderboard-section__title {
  font-size: var(--text-3xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}

.leaderboard-section__title-icon {
  font-size: 1.2em;
}

.leaderboard-section__subtitle {
  color: var(--color-text-muted);
  font-size: var(--text-base);
}

.leaderboard__content {
  max-width: 600px;
  margin: 0 auto;
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.leaderboard__table {
  width: 100%;
  border-collapse: collapse;
}

.leaderboard__header {
  background: rgba(255, 255, 255, 0.05);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  text-align: left;
}

.leaderboard__header:first-child {
  text-align: center;
  width: 50px;
}

.leaderboard__header:nth-child(3),
.leaderboard__header:nth-child(4) {
  text-align: right;
}

.leaderboard__row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background var(--transition-fast);
}

.leaderboard__row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.leaderboard__row:last-child {
  border-bottom: none;
}

.leaderboard__cell {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
}

.leaderboard__cell--rank {
  text-align: center;
  width: 50px;
}

.leaderboard__cell--name {
  font-weight: 500;
  color: var(--color-text-primary);
}

.leaderboard__cell--score,
.leaderboard__cell--stage {
  text-align: right;
  font-family: var(--font-mono);
  color: var(--color-text-secondary);
}

.leaderboard__rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text-secondary);
}

.leaderboard__rank--gold {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #1a1a2e;
}

.leaderboard__rank--silver {
  background: linear-gradient(135deg, #C0C0C0, #A8A8A8);
  color: #1a1a2e;
}

.leaderboard__rank--bronze {
  background: linear-gradient(135deg, #CD7F32, #B8860B);
  color: #1a1a2e;
}

/* Loading skeleton */
.leaderboard__row--skeleton .skeleton-text {
  display: inline-block;
  width: 80px;
  height: 1em;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Empty state */
.leaderboard__empty {
  padding: var(--space-12) var(--space-6);
  text-align: center;
}

.leaderboard__empty-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: var(--space-4);
}

.leaderboard__empty p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

/* Error state */
.leaderboard__error {
  padding: var(--space-8) var(--space-6);
  text-align: center;
}

.leaderboard__error p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

/* Footer CTA */
.leaderboard__footer {
  text-align: center;
  margin-top: var(--space-4);
}

.leaderboard__cta {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin: 0;
}

.leaderboard__cta-link {
  color: var(--color-primary);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

.leaderboard__cta-link:hover {
  color: var(--color-primary-dark);
}

/* Responsive */
@media (max-width: 480px) {
  .leaderboard__header,
  .leaderboard__cell {
    padding: var(--space-2) var(--space-3);
  }
  
  .leaderboard__cell--stage {
    display: none;
  }
  
  .leaderboard__header:nth-child(4) {
    display: none;
  }
}


/* Mobile Sign-in Link */
.nav-mobile__link--signin {
  color: var(--color-primary) !important;
  font-weight: 600;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: var(--space-2);
  padding-top: var(--space-4);
}


/* ============================================
   AUTH MODAL - TABS & FORMS
   ============================================ */

.auth-modal__tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: var(--space-4);
}

.auth-modal__tab {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.auth-modal__tab:hover {
  color: var(--color-text-secondary);
}

.auth-modal__tab--active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.auth-modal__panel {
  display: none;
}

.auth-modal__panel--active {
  display: block;
}

.auth-modal__social {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.auth-modal__divider {
  display: flex;
  align-items: center;
  margin: var(--space-4) 0;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
}

.auth-modal__divider::before,
.auth-modal__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.auth-modal__divider span {
  padding: 0 var(--space-3);
}

.auth-modal__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.auth-modal__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.auth-modal__field label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
}

.auth-modal__field input {
  padding: var(--space-3);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-size: var(--text-base);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.auth-modal__field input::placeholder {
  color: var(--color-text-muted);
}

.auth-modal__field input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.08);
}

.auth-modal__submit {
  padding: var(--space-3) var(--space-4);
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.auth-modal__submit:hover:not(:disabled) {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.auth-modal__submit:active:not(:disabled) {
  transform: translateY(0);
}

.auth-modal__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-modal__note {
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: center;
}

.auth-modal__subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}
