/* === PIXEL TRUMP STIMULUS: Retro 8-Bit American Theme === */
/* Design System v2.0 - Pixel Art Edition */

/* === Import Fonts === */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');

/* === CSS Variables / Design Tokens === */
:root {
  /* Primary Colors - American Patriotic Palette */
  --red-usa: #B22234;
  --white-usa: #FFFFFF;
  --blue-usa: #3C3B6E;
  --gold-trump: #FFD700;
  --gold-dark: #B8860B;

  /* Background Colors - Pixel Art Theme */
  --bg-dark: #1a1a2e;
  --bg-darker: #0f0f1e;
  --bg-card: #16213e;
  --bg-elevated: #1f2f4f;
  --bg-terminal: #0a0e1a;

  /* Text Colors */
  --text-primary: #FFFFFF;
  --text-secondary: #c5c6c7;
  --text-muted: #7f8c99;
  --text-glow: #FFD700;
  --text-highlight: #B22234;

  /* Border Colors */
  --border-primary: #FFD700;
  --border-glow: rgba(255, 215, 0, 0.6);
  --border-secondary: #B22234;
  --border-dim: rgba(255, 255, 255, 0.15);

  /* Status Colors */
  --success: #4CAF50;
  --warning: #FFD700;
  --error: #B22234;
  --info: #3C3B6E;

  /* Overlay & Shadow */
  --overlay-dark: rgba(10, 14, 26, 0.95);
  --overlay-card: rgba(22, 33, 62, 0.9);
  --shadow-glow: 0 0 0 4px rgba(255, 215, 0, 0.3);
  --shadow-glow-green: 0 0 0 4px rgba(255, 215, 0, 0.3);
  --shadow-card: 4px 4px 0 rgba(0, 0, 0, 0.8);

  /* Typography - Pixel Fonts */
  --font-primary: 'Press Start 2P', cursive;
  --font-mono: 'VT323', monospace;
  --font-display: 'Press Start 2P', cursive;

  /* Font Sizes */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --text-2xl: clamp(2rem, 1.5rem + 2vw, 3rem);
  --text-3xl: clamp(2.5rem, 2rem + 2.5vw, 4rem);

  /* Font Weights */
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Line Heights */
  --leading-tight: 1.2;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4rem;
  --space-12: 6rem;

  /* Border Radius - Pixel Art (Sharp Edges) */
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --radius-xl: 0;
  --radius-2xl: 0;
  --radius-full: 0;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
  --transition-all: all var(--duration-normal) var(--ease-out);
}

/* === Global Styles === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-primary);
  background: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: var(--leading-normal);
}

/* === Pixel Grid Background Pattern === */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(255, 215, 0, 0.05) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 215, 0, 0.05) 2px, transparent 2px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 0;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

/* === Pixel Stars Background === */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255, 215, 0, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 90% 40%, rgba(178, 34, 52, 0.08) 2px, transparent 2px),
    radial-gradient(circle at 30% 80%, rgba(60, 59, 110, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 70% 60%, rgba(255, 215, 0, 0.08) 1px, transparent 1px);
  background-size: 200px 200px, 300px 300px, 250px 250px, 180px 180px;
  pointer-events: none;
  z-index: 0;
  animation: pixel-twinkle 4s ease-in-out infinite;
}

@keyframes pixel-twinkle {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

/* === CRT Scanline Effect === */
.scanline {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 215, 0, 0.15);
  animation: scanline 6s linear infinite;
  pointer-events: none;
  z-index: 9999;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

/* === Canvas Background (for animations) === */
#lanternCanvas {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1 !important;
  pointer-events: none;
  opacity: 0.6;
}

/* === Header === */
.top-header {
  background: var(--bg-elevated);
  border-bottom: 4px solid var(--border-primary);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) clamp(1rem, 3vw, 2rem);
  position: sticky;
  top: 0;
  z-index: 100;
  flex-wrap: wrap;
  gap: var(--space-2);
  position: relative;
}

.top-header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--red-usa) 0px,
    var(--red-usa) 20px,
    var(--white-usa) 20px,
    var(--white-usa) 40px,
    var(--blue-usa) 40px,
    var(--blue-usa) 60px
  );
  pointer-events: none;
}

.logo {
  font-family: var(--font-display);
  font-size: clamp(0.6rem, 2vw, 1rem);
  font-weight: 400;
  color: var(--gold-trump);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  white-space: nowrap;
  animation: neon-pulse 3s ease-in-out infinite;
}

.logo::before {
  content: "";
  display: inline-block;
  width: 3em;
  height: 3em;
  background-image: url('705.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 0 8px var(--gold-trump));
}

@keyframes neon-pulse {
  0%, 100% {
    text-shadow:
      2px 2px 0 rgba(0, 0, 0, 0.8),
      0 0 10px rgba(255, 215, 0, 0.6);
  }
  50% {
    text-shadow:
      2px 2px 0 rgba(0, 0, 0, 0.8),
      0 0 20px rgba(255, 215, 0, 0.9);
  }
}

.contract-address {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 1.5vw, 1rem);
  color: var(--text-secondary);
  word-break: break-all;
  overflow-wrap: anywhere;
  max-width: 90vw;
  line-height: var(--leading-normal);
  padding: var(--space-2) var(--space-4);
  background: var(--bg-terminal);
  border: 2px solid var(--border-dim);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.6);
  transition: var(--transition-all);
}

.contract-address:hover {
  border-color: var(--border-primary);
  color: var(--text-primary);
  box-shadow: 4px 4px 0 rgba(255, 215, 0, 0.4);
}

/* === Navigation === */
.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1rem);
  background: var(--bg-card);
  padding: var(--space-4) var(--space-5);
  border-bottom: 4px solid var(--border-dim);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.8);
  flex-wrap: wrap;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: var(--font-regular);
  font-size: clamp(0.5rem, 1.5vw, 0.75rem);
  font-family: var(--font-display);
  letter-spacing: 1px;
  transition: var(--transition-all);
  white-space: nowrap;
  position: relative;
  padding: var(--space-2) var(--space-3);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gold-trump);
  transition: width var(--duration-normal) var(--ease-out);
}

.nav-link:hover {
  color: var(--gold-trump);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.highlight {
  background: var(--red-usa);
  color: var(--white-usa);
  border: 3px solid var(--gold-trump);
  padding: var(--space-2) var(--space-4);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.8);
  font-weight: var(--font-regular);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6);
}

.nav-link.highlight:hover {
  background: var(--gold-trump);
  color: var(--bg-dark);
  border-color: var(--red-usa);
  text-shadow: none;
}

.nav-link.highlight::after {
  display: none;
}

/* === Hamburger Menu === */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  z-index: 200;
  border: 3px solid var(--gold-trump);
  background: var(--bg-card);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.8);
  transition: var(--transition-all);
}

.menu-toggle span {
  background: var(--gold-trump);
  height: 4px;
  width: 24px;
  margin: 3px 0;
  transition: var(--transition-all);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6);
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.menu-toggle:hover {
  background: var(--bg-elevated);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.9);
  border-color: var(--red-usa);
  transform: translate(-2px, -2px);
}

/* === Trump Intro Section === */
.trump-intro {
  background: var(--bg-elevated);
  border-bottom: 6px solid var(--gold-trump);
  padding: var(--space-8) clamp(1rem, 3vw, 2rem);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.trump-intro::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--red-usa) 0px,
    var(--red-usa) 15px,
    var(--white-usa) 15px,
    var(--white-usa) 30px,
    var(--blue-usa) 30px,
    var(--blue-usa) 45px
  );
  animation: american-slide 2s linear infinite;
}

.trump-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  justify-content: center;
}

.trump-avatar {
  flex-shrink: 0;
}

.pixel-trump {
  width: clamp(80px, 15vw, 150px);
  height: auto;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, 0.8));
  animation: trump-bounce 2s ease-in-out infinite;
}

@keyframes trump-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.speech-bubble {
  position: relative;
  background: var(--white-usa);
  border: 4px solid var(--bg-dark);
  padding: var(--space-6);
  max-width: 700px;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.8);
  flex: 1;
  min-width: min(300px, 100%);
}

.bubble-arrow {
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-right: 20px solid var(--bg-dark);
}

.bubble-arrow::after {
  content: "";
  position: absolute;
  left: 4px;
  top: -12px;
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-right: 16px solid var(--white-usa);
}

.bubble-content {
  color: var(--bg-dark);
}

.trump-quote {
  font-family: var(--font-display);
  font-size: clamp(0.65rem, 1.8vw, 1rem);
  color: var(--red-usa);
  margin-bottom: var(--space-5);
  line-height: var(--leading-relaxed);
  text-shadow: 2px 2px 0 rgba(255, 215, 0, 0.3);
  font-weight: var(--font-regular);
}

.fee-info {
  background: var(--bg-terminal);
  border: 3px solid var(--gold-trump);
  padding: var(--space-4);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.6);
}

.fee-info h4 {
  font-family: var(--font-display);
  font-size: clamp(0.6rem, 1.5vw, 0.85rem);
  color: var(--gold-trump);
  margin-bottom: var(--space-3);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.8);
  text-align: center;
}

.fee-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fee-info li {
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 1.5vw, 1rem);
  color: var(--text-primary);
  padding: var(--space-2) 0;
  border-bottom: 2px solid var(--border-dim);
  line-height: var(--leading-normal);
}

.fee-info li:last-child {
  border-bottom: none;
}

.fee-info .emoji {
  display: inline-block;
  margin-right: var(--space-2);
  font-size: 1.2em;
}

@media (max-width: 768px) {
  .trump-container {
    flex-direction: column;
    text-align: center;
  }

  .bubble-arrow {
    display: none;
  }

  .speech-bubble {
    margin-top: var(--space-4);
  }
}

/* === Hero Section === */
.hero {
  text-align: center;
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 3vw, 2rem);
  position: relative;
  z-index: 1;
}

/* Pixel Art Decorations in Hero */
.hero::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 5%;
  width: 120px;
  height: 80px;
  background-image: url('whitehouse.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.15;
  z-index: -1;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

.hero::after {
  content: "";
  position: absolute;
  top: 10%;
  right: 5%;
  width: 100px;
  height: 80px;
  background-image: url('american flag.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.15;
  z-index: -1;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  animation: flag-wave 3s ease-in-out infinite;
}

@keyframes flag-wave {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1rem, 4vw, 2rem);
  font-weight: 400;
  color: var(--gold-trump);
  margin-bottom: var(--space-4);
  letter-spacing: 2px;
  line-height: var(--leading-tight);
  text-transform: uppercase;
  text-shadow:
    3px 3px 0 var(--red-usa),
    6px 6px 0 rgba(0, 0, 0, 0.8);
  animation: title-blink 2s ease-in-out infinite;
}

@keyframes title-blink {
  0%, 90%, 100% { opacity: 1; }
  95% { opacity: 0.8; }
}

.hero .subtitle {
  color: var(--text-secondary);
  font-size: clamp(0.75rem, 2vw, 1.2rem);
  margin-bottom: var(--space-8);
  line-height: var(--leading-relaxed);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-weight: var(--font-regular);
  font-family: var(--font-mono);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

/* === Jackpot Overview === */
.jackpot-overview {
  background: var(--bg-card);
  border: 4px solid var(--border-primary);
  padding: var(--space-6);
  max-width: min(700px, 95vw);
  margin: 0 auto var(--space-8);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.8);
  position: relative;
  overflow: hidden;
}

.jackpot-overview::before {
  content: "> INITIALIZE POOLS";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--gold-trump);
  color: var(--bg-dark);
  font-family: var(--font-display);
  font-size: clamp(0.4rem, 1vw, 0.6rem);
  padding: var(--space-2) var(--space-4);
  border-bottom: 3px solid var(--bg-dark);
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
}

.jackpot-overview h2 {
  color: var(--gold-trump);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.8);
  margin-bottom: var(--space-4);
  margin-top: var(--space-6);
  font-family: var(--font-display);
  font-size: clamp(0.75rem, 2vw, 1.2rem);
  font-weight: var(--font-regular);
}

.jackpot-tiers {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0;
  text-align: left;
}

.jackpot-tiers li {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-dim);
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  font-family: var(--font-mono);
  transition: var(--transition-all);
}

.jackpot-tiers li:hover {
  color: var(--text-primary);
  padding-left: var(--space-3);
  border-color: var(--sol-purple);
}

.jackpot-tiers li::before {
  content: ">";
  color: var(--sol-purple);
  margin-right: var(--space-2);
  font-weight: var(--font-bold);
}

/* === x402 Payments Banner === */
.x402-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-3);
  background: var(--blue-usa);
  border: 3px solid var(--gold-trump);
  padding: var(--space-3) var(--space-5);
  font-size: clamp(0.6rem, 1.5vw, 0.9rem);
  color: var(--white-usa);
  font-family: var(--font-display);
  font-weight: var(--font-regular);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.8);
  transition: var(--transition-all);
  max-width: fit-content;
  margin: 0 auto var(--space-5);
  position: relative;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6);
  letter-spacing: 1px;
}

.x402-banner:hover {
  background: var(--gold-trump);
  color: var(--bg-dark);
  border-color: var(--red-usa);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.8);
  transform: translate(-2px, -2px);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.4);
}

.x402-icon {
  font-size: 1.2rem;
}

/* === Extra Buttons === */
.extra-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
  padding: 0 var(--space-4);
}

.main-btn {
  background: var(--blue-usa);
  border: 3px solid var(--gold-trump);
  color: var(--white-usa);
  font-family: var(--font-display);
  font-size: clamp(0.5rem, 1.5vw, 0.75rem);
  font-weight: var(--font-regular);
  padding: var(--space-3) var(--space-5);
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.8);
  transition: var(--transition-all);
  white-space: nowrap;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6);
}

.main-btn:hover {
  background: var(--gold-trump);
  color: var(--bg-dark);
  border-color: var(--red-usa);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.8);
  transform: translate(-2px, -2px);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.4);
}

.main-btn:active {
  transform: translate(0, 0);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.8);
}

/* === Pools Container === */
.pools {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
  margin-top: var(--space-8);
  padding: 0 var(--space-4);
  position: relative;
  z-index: 1;
}

.pool-row,
.winner-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--space-6);
  width: 100%;
  max-width: 1400px;
  justify-content: center;
}

/* === Pool Cards === */
.pool {
  background: var(--bg-card);
  border: 4px solid var(--gold-trump);
  padding: var(--space-6);
  text-align: center;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.8);
  transition: var(--transition-all);
  position: relative;
  overflow: hidden;
}

.pool::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--red-usa) 0px,
    var(--red-usa) 10px,
    var(--white-usa) 10px,
    var(--white-usa) 20px,
    var(--blue-usa) 20px,
    var(--blue-usa) 30px
  );
}

.pool:hover {
  transform: translate(-2px, -2px);
  border-color: var(--red-usa);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.9);
}

.pool h3 {
  color: var(--gold-trump);
  font-size: clamp(0.6rem, 2vw, 1rem);
  font-family: var(--font-display);
  font-weight: var(--font-regular);
  margin-bottom: var(--space-4);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pool p {
  color: var(--text-secondary);
  margin: var(--space-3) 0;
  font-size: clamp(0.6rem, 1.5vw, 0.9rem);
  line-height: var(--leading-normal);
  font-family: var(--font-mono);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

.pool .pool-prize {
  margin-top: var(--space-4);
  font-weight: var(--font-bold);
  color: var(--gold-trump);
  font-size: clamp(0.7rem, 2vw, 1.1rem);
  font-family: var(--font-mono);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.8);
}

.pool .timer {
  margin-top: var(--space-3);
  font-family: var(--font-mono);
  color: var(--white-usa);
  font-size: clamp(0.7rem, 2vw, 1.1rem);
  font-weight: var(--font-semibold);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.8);
  padding: var(--space-3);
  background: var(--blue-usa);
  border: 3px solid var(--gold-trump);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.8);
}

/* === Mega Jackpot Section === */
.mega-highlight {
  text-align: center;
  margin: var(--space-10) auto;
  padding: var(--space-8) var(--space-6);
  background: var(--bg-elevated);
  border: 6px solid var(--gold-trump);
  max-width: min(900px, 95vw);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.9);
  position: relative;
  overflow: hidden;
}

.mega-highlight::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    var(--red-usa) 0px,
    var(--red-usa) 15px,
    var(--white-usa) 15px,
    var(--white-usa) 30px,
    var(--blue-usa) 30px,
    var(--blue-usa) 45px
  );
  animation: american-slide 2s linear infinite;
}

@keyframes american-slide {
  0% { background-position: 0 0; }
  100% { background-position: 45px 0; }
}

.mega-jackpot-box h2 {
  font-family: var(--font-display);
  font-size: clamp(1rem, 4vw, 2rem);
  font-weight: 400;
  color: var(--gold-trump);
  text-shadow:
    3px 3px 0 var(--red-usa),
    6px 6px 0 rgba(0, 0, 0, 0.8);
  margin-bottom: var(--space-5);
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  z-index: 1;
  animation: mega-blink 1.5s ease-in-out infinite;
}

@keyframes mega-blink {
  0%, 85%, 100% { opacity: 1; }
  90%, 95% { opacity: 0.7; }
}

.mega-jackpot-box .intro {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-5);
  line-height: var(--leading-relaxed);
  position: relative;
  z-index: 1;
}

.pool-prize.large {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--sol-purple);
  margin: var(--space-4) 0;
  text-shadow: var(--shadow-glow);
  font-family: var(--font-mono);
  position: relative;
  z-index: 1;
}

.timer.large {
  font-size: var(--text-xl);
  color: var(--sol-blue);
  margin-bottom: var(--space-5);
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
  font-family: var(--font-mono);
  padding: var(--space-4);
  background: var(--bg-terminal);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-dim);
  position: relative;
  z-index: 1;
}

.bnb-balance {
  font-size: var(--text-lg);
  color: var(--sol-green);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-5);
  text-shadow: var(--shadow-glow-green);
  position: relative;
  z-index: 1;
}

.mega-jackpot-box .note {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  max-width: min(700px, 100%);
  margin: 0 auto;
  background: var(--bg-card);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-dim);
  position: relative;
  z-index: 1;
}

/* === Winner Boxes === */
.winner-box {
  background: var(--bg-card);
  border: 4px solid var(--gold-trump);
  padding: var(--space-5);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.8);
  text-align: left;
  max-width: min(360px, 100%);
  margin: 0 auto;
  width: 100%;
  transition: var(--transition-all);
  position: relative;
  overflow: hidden;
}

.winner-box::before {
  content: "WINNER";
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  background: var(--gold-trump);
  color: var(--bg-dark);
  font-size: clamp(0.5rem, 1vw, 0.65rem);
  font-weight: var(--font-regular);
  padding: var(--space-1) var(--space-3);
  font-family: var(--font-display);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.8);
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
}

.winner-box:hover {
  transform: translate(-2px, -2px);
  border-color: var(--red-usa);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.9);
}

.winner-box h4 {
  color: var(--gold-trump);
  font-size: clamp(0.65rem, 1.8vw, 1rem);
  font-family: var(--font-display);
  margin-bottom: var(--space-4);
  text-align: center;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.winner-box p {
  margin: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: var(--leading-normal);
  font-family: var(--font-mono);
}

.winner-box strong {
  color: var(--sol-green);
  font-weight: var(--font-semibold);
}

.winner-box.highlight {
  border: 2px solid var(--border-primary);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

/* Winner Box Blur System */
.winner-box .content {
  filter: blur(6px);
  transition: filter 0.8s ease;
  pointer-events: none;
}

.winner-box.revealed .content {
  filter: blur(0);
  pointer-events: auto;
}

.winner-box .overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay-card);
  color: var(--sol-purple);
  font-weight: var(--font-bold);
  font-size: var(--text-lg);
  letter-spacing: 1px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  text-shadow: var(--shadow-glow);
  transition: opacity 0.8s ease, visibility 0.8s ease;
  pointer-events: none;
  z-index: 5;
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  animation: pulse-overlay 2s infinite ease-in-out;
  font-family: var(--font-display);
  text-transform: uppercase;
}

@keyframes pulse-overlay {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.winner-box.revealed .overlay {
  opacity: 0;
  visibility: hidden;
  animation: none;
  backdrop-filter: none;
  transition: opacity 0.6s ease, visibility 0s 0.6s;
}

/* === Dev Burn Section === */
.dev-burn-section {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin: var(--space-8) auto;
  max-width: min(1000px, 95vw);
  box-shadow: var(--shadow-card);
  text-align: center;
  position: relative;
}

.dev-burn-section::before {
  content: "$ ./track_burns.sh";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-elevated);
  color: var(--sol-green);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  padding: var(--space-2) var(--space-4);
  border-bottom: 1px solid var(--border-dim);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.dev-burn-section h3 {
  color: var(--sol-purple);
  font-family: var(--font-display);
  margin-top: var(--space-6);
  margin-bottom: var(--space-4);
  text-shadow: var(--shadow-glow);
}

#burn-history {
  width: 100%;
  margin-top: var(--space-4);
  border-collapse: collapse;
  font-size: var(--text-sm);
  overflow-x: auto;
  display: block;
  font-family: var(--font-mono);
}

#burn-history thead,
#burn-history tbody,
#burn-history tr {
  display: table;
  width: 100%;
  table-layout: fixed;
}

#burn-history th,
#burn-history td {
  border: 1px solid var(--border-dim);
  padding: var(--space-3);
  text-align: center;
  overflow-wrap: break-word;
}

#burn-history th {
  background: var(--bg-elevated);
  color: var(--sol-green);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

#burn-history td {
  color: var(--text-secondary);
}

#burn-history tr:hover td {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

/* === Previous Winners Section === */
.winners {
  padding: var(--space-8) var(--space-5);
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-2xl);
  max-width: 900px;
  margin: var(--space-10) auto;
  box-shadow: var(--shadow-card);
}

.winners h2 {
  color: var(--sol-purple);
  font-family: var(--font-display);
  margin-bottom: var(--space-6);
  text-shadow: var(--shadow-glow);
  font-size: var(--text-2xl);
  text-transform: uppercase;
  letter-spacing: 2px;
}

#winners-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#winners-list li {
  background: var(--bg-terminal);
  margin: var(--space-3) auto;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  width: 100%;
  border: 1px solid var(--border-dim);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-family: var(--font-mono);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: var(--transition-all);
}

#winners-list li:hover {
  border-color: var(--border-glow);
  background: var(--bg-elevated);
  transform: translateX(4px);
}

#winners-list li a {
  color: var(--sol-green);
  text-decoration: none;
  transition: var(--transition-all);
  font-weight: var(--font-semibold);
}

#winners-list li a:hover {
  color: var(--sol-blue);
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
}

.new-winner {
  animation: winner-glow 1s ease-in-out alternate 3;
}

@keyframes winner-glow {
  from {
    background: var(--bg-terminal);
    border-color: var(--border-dim);
  }
  to {
    background: rgba(153, 69, 255, 0.1);
    border-color: var(--sol-purple);
    box-shadow: var(--shadow-glow);
  }
}

/* === View All Button === */
.view-all-container {
  text-align: center;
  margin-top: var(--space-4);
}

.view-all-btn {
  color: var(--sol-purple);
  border: 2px solid var(--sol-purple);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: var(--font-semibold);
  transition: var(--transition-all);
  background: transparent;
  display: inline-block;
  font-family: var(--font-mono);
}

.view-all-btn:hover {
  background: rgba(153, 69, 255, 0.1);
  color: var(--text-primary);
  box-shadow: var(--shadow-glow);
  transform: scale(1.05);
}

/* === Pagination === */
.pagination {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
  flex-wrap: wrap;
}

.pagination button {
  padding: var(--space-2) var(--space-4);
  border: 3px solid var(--gold-trump);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-all);
  font-family: var(--font-mono);
  font-weight: var(--font-semibold);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.8);
}

.pagination button:hover {
  background: var(--bg-elevated);
  border-color: var(--red-usa);
  color: var(--text-primary);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.9);
}

.pagination button.active {
  background: var(--gold-trump);
  color: var(--bg-dark);
  border-color: var(--gold-trump);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.9);
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
}

/* === Footer === */
footer {
  margin-top: var(--space-12);
  padding: var(--space-8) var(--space-5);
  border-top: 4px solid var(--gold-trump);
  font-size: clamp(0.6rem, 1.5vw, 0.9rem);
  color: var(--text-secondary);
  background: var(--bg-card);
  box-shadow: 0 -4px 0 rgba(0, 0, 0, 0.8);
  text-align: center;
  font-family: var(--font-mono);
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--red-usa) 0px,
    var(--red-usa) 15px,
    var(--white-usa) 15px,
    var(--white-usa) 30px,
    var(--blue-usa) 30px,
    var(--blue-usa) 45px
  );
}

footer a {
  color: var(--gold-trump);
  text-decoration: none;
  transition: var(--transition-all);
  font-weight: var(--font-semibold);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

footer a:hover {
  color: var(--red-usa);
}

footer .disclaimer {
  margin-top: var(--space-6);
  font-size: clamp(0.5rem, 1.2vw, 0.75rem);
  line-height: var(--leading-relaxed);
  color: var(--text-muted);
  border-top: 2px solid var(--border-dim);
  padding-top: var(--space-5);
}

footer .disclaimer strong {
  color: var(--gold-trump);
  font-size: clamp(0.6rem, 1.5vw, 0.85rem);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

footer .disclaimer p:last-child {
  margin-top: var(--space-2);
  color: var(--text-secondary);
  font-weight: var(--font-regular);
}

/* === Developer Panel === */
#dev-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--bg-elevated);
  border: 2px solid var(--sol-pink);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  color: var(--sol-pink);
  z-index: 9999;
  font-family: var(--font-mono);
  box-shadow: 0 0 30px rgba(220, 31, 255, 0.4);
  transition: var(--transition-all);
  backdrop-filter: blur(20px);
}

#dev-panel.hidden {
  display: none;
}

#dev-panel h3 {
  margin: 0 0 var(--space-3);
  color: var(--sol-pink);
  text-shadow: 0 0 10px rgba(220, 31, 255, 0.8);
  font-size: var(--text-base);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dev-buttons button {
  background: var(--sol-pink);
  color: var(--text-primary);
  border: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  margin: var(--space-1);
  cursor: pointer;
  font-weight: var(--font-semibold);
  transition: var(--transition-all);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

.dev-buttons button:hover {
  background: var(--sol-purple);
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(220, 31, 255, 0.6);
}

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

/* === Music Control === */
.music-control {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  border: 2px solid var(--sol-green);
  color: var(--sol-green);
  font-size: 28px;
  cursor: pointer;
  box-shadow: var(--shadow-glow-green);
  transition: var(--transition-all);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(20px);
}

.music-control:hover {
  transform: scale(1.1);
  box-shadow: 0 0 40px rgba(20, 241, 149, 0.8);
  background: var(--bg-card);
}

.music-control:active {
  transform: scale(0.95);
}

.music-control.muted {
  opacity: 0.4;
  border-color: var(--text-muted);
  color: var(--text-muted);
  box-shadow: none;
}

/* === Responsive Design === */
@media (max-width: 900px) {
  .top-header {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
    padding: var(--space-4);
  }

  .contract-address {
    font-size: var(--text-xs);
    padding: var(--space-2);
    order: 3;
    width: 100%;
  }

  .logo {
    order: 1;
  }

  .menu-toggle {
    order: 2;
    position: absolute;
    right: var(--space-4);
    top: var(--space-4);
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    flex-direction: column;
    align-items: center;
    background: var(--bg-elevated);
    border-bottom: 2px solid var(--border-primary);
    box-shadow: var(--shadow-card), var(--shadow-glow);
    backdrop-filter: blur(20px);
    display: none;
    padding: var(--space-5) 0;
  }

  .nav.active {
    display: flex;
    animation: slideDown 0.3s ease forwards;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-link {
    font-size: var(--text-lg);
    padding: var(--space-3) 0;
    width: 100%;
    text-align: center;
  }

  .pool-row,
  .winner-row {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .pool,
  .winner-box {
    max-width: 100%;
    width: 100%;
  }

  .main-btn {
    width: 100%;
  }

  .x402-banner {
    flex-wrap: wrap;
    text-align: center;
    max-width: 90%;
    padding: var(--space-3) var(--space-4);
  }

  .music-control,
  #dev-panel {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: var(--text-2xl);
  }

  .jackpot-overview,
  .mega-highlight,
  .winner-box.highlight {
    margin-left: var(--space-2);
    margin-right: var(--space-2);
  }
}

@media (min-width: 1400px) {
  .pools {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
  }

  .pool-row,
  .winner-row {
    max-width: 1400px;
  }
}

/* === Touch Device Optimizations === */
@media (hover: none) and (pointer: coarse) {
  .pool:hover,
  .winner-box:hover {
    transform: none;
  }

  .nav-link,
  .main-btn,
  button {
    min-height: 44px;
    min-width: 44px;
  }
}

.main-btn:active,
button:active {
  transform: scale(0.96);
}

.nav-link:active {
  opacity: 0.7;
}

#winners-list {
  -webkit-overflow-scrolling: touch;
}

button,
.nav-link,
.main-btn {
  -webkit-user-select: none;
  user-select: none;
}

img,
video {
  max-width: 100%;
  height: auto;
}

/* === Utility Classes === */
.text-glow {
  color: var(--sol-green);
  text-shadow: var(--shadow-glow-green);
}

.terminal-prompt::before {
  content: "> ";
  color: var(--sol-purple);
  font-weight: var(--font-bold);
}
