/* ========================================
   $KENNY — Oh My God They Killed Kenny!
   South Park Orange/Hood Theme
   ======================================== */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --kenny-orange: #FF6B00;
  --kenny-orange-light: #FF8C00;
  --kenny-orange-dark: #E05500;
  --kenny-brown: #8B4513;
  --kenny-brown-dark: #4A2800;
  --kenny-skin: #F5DEB3;
  --sp-red: #E74C3C;
  --sp-blue: #3498DB;
  --sp-cyan: #00BCD4;
  --sp-green: #2ECC71;
  --sp-yellow: #F1C40F;
  --sp-dark: #0d0d2b;
  --sp-dark-purple: #1a1033;
  --sp-cream: #FFF9E6;
  --terminal-green: #00ff88;
  --terminal-bg: #0a1a0a;
  --font-display: 'Bangers', cursive;
  --font-body: 'Nunito', sans-serif;
  --font-heading: 'Fredoka One', cursive;
  --font-mono: 'Share Tech Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--sp-dark);
  color: var(--sp-cream);
  overflow-x: hidden;
  line-height: 1.6;
}

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

/* ===== INTRO OVERLAY ===== */
#intro-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, #1a1033 0%, #0a0a1a 100%);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: introFadeOut 0.6s ease-in 3s forwards;
  pointer-events: none;
}

.intro-content {
  text-align: center;
  animation: introPulse 1.5s ease-in-out infinite;
}

.intro-kenny { animation: introFloat 2s ease-in-out infinite; }
.intro-kenny img {
  filter: drop-shadow(0 0 30px rgba(255, 107, 0, 0.5));
}

.intro-title {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--kenny-orange);
  text-shadow: 3px 3px 0 var(--sp-red), 6px 6px 0 rgba(0,0,0,0.3);
  letter-spacing: 4px;
  margin-top: 1rem;
}

.intro-sub {
  font-family: var(--font-mono);
  color: var(--kenny-orange-light);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  animation: blink 1s step-end infinite;
}

@keyframes introFadeOut { to { opacity: 0; visibility: hidden; } }
@keyframes introPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }
@keyframes introFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes blink { 50% { opacity: 0; } }

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(13, 13, 43, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(255, 107, 0, 0.15);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--kenny-orange);
  text-shadow: 2px 2px 0 rgba(231, 76, 60, 0.5);
}

.logo-icon { animation: skullPulse 2s ease-in-out infinite; border-radius: 50%; object-fit: cover; }

@keyframes skullPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15) rotate(5deg); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--sp-cream);
  transition: color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-links a:hover { color: var(--kenny-orange); }

.nav-buy-btn {
  background: var(--kenny-orange);
  color: white !important;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-weight: 800 !important;
  animation: pulseBtn 2s ease-in-out infinite;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-buy-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 107, 0, 0.5);
}

@keyframes pulseBtn {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.4); }
  50% { box-shadow: 0 0 20px 4px rgba(255, 107, 0, 0.3); }
}

.nav-stripe {
  height: 3px;
  background: linear-gradient(90deg, var(--kenny-orange), var(--sp-yellow), var(--kenny-orange-light), var(--kenny-orange), var(--sp-red));
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--sp-cream);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== HERO ===== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6rem 1.5rem 3rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('background.png') center center / cover no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.sky, .mountains, .cloud, .cloud-1, .cloud-2, .cloud-3, .town-silhouette { display: none; }

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.hero-left { flex: 1; min-width: 0; }

.hero-title {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1.1;
  color: white;
  text-shadow: 3px 3px 0 var(--kenny-orange-dark), 6px 6px 0 rgba(0,0,0,0.3);
  margin-bottom: 1rem;
}

.hero-title .highlight {
  color: var(--kenny-orange);
  display: inline-block;
  text-shadow: 3px 3px 0 var(--sp-red), 6px 6px 0 rgba(0,0,0,0.3);
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 500px;
  margin-bottom: 1.5rem;
  font-style: italic;
  line-height: 1.5;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero-buttons { display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn:hover { transform: translateY(-2px) scale(1.03); }

.btn-primary {
  background: var(--kenny-orange);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
  animation: pulseBtn 2s ease-in-out infinite;
}

.btn-primary:hover { box-shadow: 0 6px 25px rgba(255, 107, 0, 0.6); }

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--sp-cream);
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--kenny-orange);
  color: var(--kenny-orange);
}

.btn-large { padding: 1rem 2rem; font-size: 1.1rem; }

/* ===== HERO STATS ===== */
.hero-stats {
  display: flex;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid rgba(255, 107, 0, 0.2);
}

.stat-box { text-align: center; flex: 1; padding: 0.5rem; }

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--kenny-orange);
  text-shadow: 0 0 10px rgba(255, 107, 0, 0.3);
  animation: neonGlow 3s ease-in-out infinite;
}

.stat-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 1px;
  margin-top: 0.2rem;
}

@keyframes neonGlow {
  0%, 100% { text-shadow: 0 0 5px rgba(255, 107, 0, 0.5); }
  50% { text-shadow: 0 0 15px rgba(255, 107, 0, 0.8), 0 0 30px rgba(255, 107, 0, 0.3); }
}

/* ===== HERO RIGHT ===== */
.hero-right { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 1rem; }

.mini-terminal {
  background: #111;
  border-radius: 10px;
  overflow: hidden;
  width: 300px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 107, 0, 0.2);
}

.terminal-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: #222; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #E74C3C; }
.dot.yellow { background: #F1C40F; }
.dot.green { background: #2ECC71; }

.terminal-title { font-family: var(--font-mono); font-size: 0.7rem; color: #888; margin-left: auto; }

.terminal-body {
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--terminal-green);
  line-height: 1.7;
  max-height: 180px;
  overflow: hidden;
}

.terminal-body p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.t-green { color: var(--terminal-green); }
.t-orange { color: var(--kenny-orange); }
.t-yellow { color: #F1C40F; }
.t-red { color: #E74C3C; }
.t-cyan { color: #00BCD4; }
.t-dim { color: #555; }

.cursor-line { display: flex; align-items: center; gap: 4px; }
.cursor { animation: blink 1s step-end infinite; }

.hero-character { position: relative; animation: float 5s ease-in-out infinite; cursor: pointer; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

.kenny-hero-img {
  width: 220px;
  height: auto;
  filter: drop-shadow(0 8px 20px rgba(255, 107, 0, 0.3));
  transition: transform 0.3s;
}

.kenny-hero-img:hover { transform: scale(1.05); }

.speech-bubble {
  position: absolute;
  top: -20px;
  right: -40px;
  background: white;
  color: #333;
  padding: 10px 14px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 700;
  max-width: 200px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 2;
}

.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 30px;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 12px solid white;
}

/* ===== SCROLL HINT ===== */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: scrollBounce 2s ease-in-out infinite;
  z-index: 1;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== TICKER ===== */
#ticker { position: relative; z-index: 5; overflow: hidden; }
.ticker-row { overflow: hidden; white-space: nowrap; padding: 0.6rem 0; }
.ticker-top { background: var(--kenny-orange); color: white; }
.ticker-bottom { background: var(--sp-dark); color: var(--kenny-orange-light); border-top: 2px solid rgba(255, 107, 0, 0.15); border-bottom: 2px solid rgba(255, 107, 0, 0.15); }
.ticker-track { display: inline-block; animation: marquee 20s linear infinite; }
.ticker-reverse { animation: marqueeReverse 22s linear infinite; }
.ticker-track span { font-family: var(--font-display); font-size: 0.9rem; letter-spacing: 2px; padding-right: 3rem; }

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marqueeReverse { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ===== TERMINAL SECTION ===== */
#terminal { background: var(--sp-dark-purple); padding: 5rem 1.5rem; text-align: center; }

.section-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--kenny-orange);
  text-shadow: 3px 3px 0 var(--kenny-orange-dark), 5px 5px 0 rgba(0,0,0,0.2);
  margin-bottom: 0.5rem;
  text-align: center;
  letter-spacing: 2px;
}

.section-title.left-align { text-align: left; }
.section-sub { color: rgba(255, 255, 255, 0.6); font-size: 1rem; margin-bottom: 2.5rem; }

/* TV */
.tv-wrapper { max-width: 800px; margin: 0 auto 2rem; }

.tv-bezel {
  background: var(--kenny-brown);
  border-radius: 20px;
  padding: 15px;
  border: 3px solid #6D4C41;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 2px 4px rgba(255,255,255,0.1);
}

.tv-top-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.tv-dots { display: flex; gap: 6px; }

.live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--sp-red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sp-red);
  animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.6); }
  50% { opacity: 0.5; box-shadow: 0 0 10px 4px rgba(231, 76, 60, 0.3); }
}

.tv-screen {
  background: var(--terminal-bg);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  border: 2px solid #1a3a1a;
}

.scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(transparent 0px, transparent 2px, rgba(0, 255, 136, 0.03) 2px, rgba(0, 255, 136, 0.03) 4px);
  pointer-events: none;
  z-index: 2;
  animation: scanlineMove 6s linear infinite;
}

@keyframes scanlineMove { 0% { background-position: 0 0; } 100% { background-position: 0 100px; } }

.tv-content { position: relative; z-index: 1; }

.terminal-full {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--terminal-green);
  text-align: left;
  line-height: 1.8;
  min-height: 300px;
}

.terminal-full p { margin-bottom: 2px; }

.tv-stand { display: flex; flex-direction: column; align-items: center; }
.tv-neck { width: 40px; height: 30px; background: #6D4C41; border-radius: 0 0 5px 5px; }
.tv-base { width: 140px; height: 12px; background: var(--kenny-brown); border-radius: 0 0 8px 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }

/* Contract bar */
.contract-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 107, 0, 0.2);
  border-radius: 10px;
  padding: 0.8rem 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.contract-label { font-size: 0.75rem; text-transform: uppercase; color: rgba(255,255,255,0.5); letter-spacing: 1px; }
.contract-address { font-family: var(--font-mono); font-size: 0.8rem; color: var(--kenny-orange); word-break: break-all; }

/* ===== GROUND DIVIDER ===== */
.ground-divider { position: relative; height: 60px; }
.snow-layer { position: absolute; top: 0; left: 0; right: 0; height: 30px; background: linear-gradient(180deg, var(--sp-dark-purple) 0%, #E8EAF0 50%, #D4D8DC 100%); }
.dirt-layer { position: absolute; bottom: 0; left: 0; right: 0; height: 30px; background: linear-gradient(180deg, #D4D8DC 0%, #4A2800 50%, #2a1a0f 100%); }

/* ===== BASEMENT ===== */
.basement-section {
  background: #2a1a0f;
  padding: 5rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.basement-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='https://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.basement-light { position: absolute; top: 0; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }

.bulb {
  width: 20px; height: 25px;
  background: radial-gradient(circle, #FFF9E6, var(--kenny-orange-light));
  border-radius: 50% 50% 30% 30%;
  box-shadow: 0 0 30px rgba(255, 107, 0, 0.5), 0 0 60px rgba(255, 107, 0, 0.2);
  animation: bulbFlicker 4s ease-in-out infinite;
}

@keyframes bulbFlicker { 0%, 100% { opacity: 1; } 92% { opacity: 1; } 93% { opacity: 0.7; } 94% { opacity: 1; } 96% { opacity: 0.8; } 97% { opacity: 1; } }

.light-cone { width: 2px; height: 40px; background: rgba(255, 107, 0, 0.3); }

.basement-grid { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 3rem; }
.basement-character { flex: 0 0 auto; animation: float 6s ease-in-out infinite; }

.kenny-basement-img { width: 220px; height: auto; filter: drop-shadow(0 8px 25px rgba(255, 107, 0, 0.3)); }

.basement-cards { flex: 1; display: flex; flex-direction: column; gap: 1.2rem; }

.feature-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 107, 0, 0.15);
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: transform 0.3s, box-shadow 0.3s;
  opacity: 0;
  transform: translateY(20px);
}

.feature-card.revealed { opacity: 1; transform: translateY(0); transition: opacity 0.6s, transform 0.6s; }

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 107, 0, 0.3);
}

.card-icon { font-size: 2rem; flex-shrink: 0; }
.feature-card h3 { font-family: var(--font-heading); font-size: 1.1rem; color: var(--kenny-orange); margin-bottom: 0.4rem; }
.feature-card p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); line-height: 1.5; font-style: italic; }

/* ===== DEATH COUNTER ===== */
.death-counter-section {
  background: linear-gradient(180deg, #2a1a0f 0%, #1a0a00 50%, var(--sp-dark-purple) 100%);
  padding: 5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.death-counter-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(255, 107, 0, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.death-counter-content { position: relative; z-index: 1; }
.death-display { margin: 2rem 0; }

.death-number {
  font-family: var(--font-display);
  font-size: 8rem;
  color: var(--kenny-orange);
  text-shadow: 0 0 20px rgba(255, 107, 0, 0.5), 0 0 40px rgba(255, 107, 0, 0.3), 4px 4px 0 var(--kenny-orange-dark);
  line-height: 1;
  animation: deathPulse 3s ease-in-out infinite;
}

@keyframes deathPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); text-shadow: 0 0 30px rgba(255, 107, 0, 0.7), 0 0 60px rgba(255, 107, 0, 0.4), 4px 4px 0 var(--kenny-orange-dark); }
}

.death-label { font-size: 1rem; color: rgba(255, 255, 255, 0.6); margin-top: 0.5rem; }

.death-grid { display: flex; justify-content: center; gap: 3rem; margin-top: 2rem; flex-wrap: wrap; }
.death-stat { text-align: center; }
.death-stat-num { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--kenny-orange-light); }
.death-stat-label { display: block; font-size: 0.75rem; text-transform: uppercase; color: rgba(255,255,255,0.5); letter-spacing: 1px; margin-top: 0.3rem; }

/* ===== LORE ===== */
.lore-section { background: var(--sp-dark-purple); padding: 5rem 1.5rem; overflow: hidden; }

.lore-grid { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 3rem; }

.lore-text { flex: 1; opacity: 0; transform: translateX(-30px); }
.lore-text.revealed { opacity: 1; transform: translateX(0); transition: opacity 0.8s, transform 0.8s; }

.lore-narrative { margin: 1.5rem 0; }
.lore-narrative p { font-size: 1rem; color: rgba(255, 255, 255, 0.8); line-height: 1.7; margin-bottom: 1rem; }

.kenny-blockquote {
  border-left: 4px solid var(--kenny-orange);
  padding: 1rem 1.5rem;
  background: rgba(255, 107, 0, 0.05);
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: var(--kenny-orange);
  font-size: 1.1rem;
  font-family: var(--font-heading);
}

.lore-character { flex: 0 0 auto; position: relative; opacity: 0; transform: translateX(30px); }
.lore-character.revealed { opacity: 1; transform: translateX(0); transition: opacity 0.8s 0.2s, transform 0.8s 0.2s; }

.kenny-lore-img { width: 250px; height: auto; filter: drop-shadow(0 8px 25px rgba(255, 107, 0, 0.3)); animation: float 7s ease-in-out infinite; }

.speech-bubble-lore {
  position: absolute;
  top: -30px; left: -60px;
  background: white;
  color: #333;
  padding: 12px 16px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 700;
  max-width: 220px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  z-index: 2;
}

.speech-bubble-lore::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 30px;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 12px solid white;
}

.subtitle-text { display: block; font-size: 0.65rem; color: #999; font-style: italic; font-weight: 400; margin-top: 4px; }

.money-float {
  position: absolute;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--kenny-orange);
  animation: moneyDrift 4s ease-in-out infinite;
  pointer-events: none;
  text-shadow: 0 0 10px rgba(255, 107, 0, 0.4);
}

.money-1 { top: 10%; left: -20px; animation-delay: 0s; }
.money-2 { top: 5%; right: -10px; animation-delay: 1s; }
.money-3 { bottom: 30%; left: -30px; animation-delay: 2s; }
.money-4 { bottom: 20%; right: 0; animation-delay: 1.5s; }

@keyframes moneyDrift {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.7; }
  50% { transform: translateY(-20px) rotate(10deg); opacity: 1; }
}

/* ===== TOKEN SECTION ===== */
.token-section { background: linear-gradient(180deg, var(--sp-dark-purple) 0%, var(--sp-dark) 100%); padding: 5rem 1.5rem; }

.token-grid { max-width: 1000px; margin: 2rem auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.token-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 107, 0, 0.12);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  opacity: 0;
  transform: translateY(20px);
}

.token-card.revealed { opacity: 1; transform: translateY(0); transition: opacity 0.6s, transform 0.6s; }

.token-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 107, 0, 0.3);
}

.token-card-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.token-card h3 { font-family: var(--font-heading); font-size: 1.3rem; color: var(--kenny-orange); margin-bottom: 0.8rem; }
.token-card p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); line-height: 1.6; }
.token-cta { text-align: center; margin-top: 2.5rem; }

/* ===== CHARACTERS ===== */
.characters-section { background: var(--sp-dark); padding: 5rem 1.5rem; position: relative; }

.characters-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--kenny-orange), transparent);
}

.characters-grid { max-width: 1000px; margin: 2rem auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.char-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.8rem 1.2rem;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
  opacity: 0;
  transform: translateY(20px);
}

.char-card.revealed { opacity: 1; transform: translateY(0); transition: opacity 0.5s, transform 0.5s; }
.char-card:hover { transform: translateY(-4px); border-color: var(--kenny-orange); }

.char-avatar {
  margin-bottom: 1rem;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.char-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.char-card h3 { font-family: var(--font-display); font-size: 1.3rem; color: var(--sp-cream); margin-bottom: 0.3rem; }
.char-role { font-size: 0.75rem; text-transform: uppercase; color: var(--kenny-orange); letter-spacing: 1.5px; font-weight: 700; margin-bottom: 0.8rem; }
.char-quote { font-size: 0.8rem; color: rgba(255, 255, 255, 0.5); font-style: italic; line-height: 1.4; }

/* ===== BUY ===== */
.buy-section {
  background: linear-gradient(180deg, var(--sp-dark) 0%, #1a0500 50%, var(--sp-dark) 100%);
  padding: 5rem 1.5rem;
  text-align: center;
}

.buy-content { max-width: 600px; margin: 0 auto; }
.buy-sub { color: rgba(255, 255, 255, 0.6); margin-bottom: 2.5rem; }
.buy-steps { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2.5rem; text-align: left; }

.buy-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 107, 0, 0.1);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  transition: border-color 0.3s;
}

.buy-step:hover { border-color: var(--kenny-orange); }

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: var(--kenny-orange);
  color: white;
  font-family: var(--font-display);
  font-size: 1.2rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.buy-step p { font-size: 0.95rem; color: var(--sp-cream); }

/* ===== FOOTER ===== */
#footer { background: #080818; padding: 3rem 1.5rem; border-top: 1px solid rgba(255, 107, 0, 0.1); }

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

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--kenny-orange);
  margin-bottom: 1.5rem;
}

.footer-links { display: flex; justify-content: center; gap: 2rem; margin-bottom: 1.5rem; }
.footer-links a { font-weight: 700; font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); transition: color 0.2s; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-links a:hover { color: var(--kenny-orange); }

.footer-contract { font-family: var(--font-mono); font-size: 0.7rem; color: rgba(255, 255, 255, 0.3); margin-bottom: 1rem; word-break: break-all; }
.footer-tagline { font-family: var(--font-heading); font-size: 0.95rem; color: var(--kenny-orange); margin-bottom: 0.5rem; font-style: italic; }
.footer-disclaimer { font-size: 0.7rem; color: rgba(255, 255, 255, 0.25); }

/* ===== SNOW ===== */
@keyframes snowfall { 0% { transform: translateY(-10px) rotate(0deg); opacity: 1; } 100% { transform: translateY(100vh) rotate(360deg); opacity: 0.3; } }

/* ===== REVEAL ===== */
[data-reveal] { opacity: 0; transform: translateY(20px); }
[data-reveal].revealed { opacity: 1; transform: translateY(0); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }

/* Construction paper texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='https://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%23ffffff' fill-opacity='0.015' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-title { font-size: 2.8rem; }
  .characters-grid { grid-template-columns: repeat(2, 1fr); }
  .death-number { font-size: 6rem; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: rgba(13, 13, 43, 0.98);
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 2px solid rgba(255, 107, 0, 0.2);
  }

  .nav-links.active { display: flex; }
  .hamburger { display: flex; }
  .hero-content { flex-direction: column; text-align: center; }
  .hero-title { font-size: 2.2rem; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-right { display: none; }
  .section-title { font-size: 2rem; }
  .basement-grid { flex-direction: column; }
  .basement-character { display: none; }
  .lore-grid { flex-direction: column; }
  .lore-character { order: -1; }
  .lore-text .section-title { text-align: center; }
  .kenny-lore-img { width: 180px; }
  .token-grid { grid-template-columns: 1fr; max-width: 400px; }
  .characters-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .death-number { font-size: 5rem; }
  .death-grid { gap: 2rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.8rem; }
  .hero-stats { flex-direction: column; gap: 0.5rem; }
  .stat-value { font-size: 1.3rem; }
  .section-title { font-size: 1.6rem; }
  .characters-grid { grid-template-columns: 1fr; }
  .buy-step { padding: 0.8rem 1rem; }
  .contract-bar { flex-direction: column; gap: 0.5rem; text-align: center; }
  .death-number { font-size: 4rem; }
  .death-grid { gap: 1.5rem; }
}
