:root {
  --bg-deep: #0a0e1a;
  --bg-card: rgba(255, 255, 255, 0.04);
  --accent-gold: #f0b429;
  --accent-coral: #ff6b6b;
  --accent-blue: #4ecdc4;
  --accent-violet: #a78bfa;
  --text-primary: #e8e6e3;
  --text-muted: #8a8a8a;
}

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

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Background pattern - subtle 67s */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(240, 180, 41, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(78, 205, 196, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(255, 107, 107, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

#root {
  position: relative;
  z-index: 1;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-12px) scale(1.02); }
}

@keyframes pulse-glow {
  0%, 100% { text-shadow: 0 0 40px rgba(240, 180, 41, 0.3), 0 0 80px rgba(240, 180, 41, 0.1); }
  50% { text-shadow: 0 0 60px rgba(240, 180, 41, 0.5), 0 0 120px rgba(240, 180, 41, 0.2); }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes confetti-fall {
  0% { transform: translateY(-10px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

@keyframes celebration-burst {
  0% { transform: scale(0); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.8; }
  100% { transform: scale(2); opacity: 0; }
}

@keyframes tagline-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ring-fill {
  from { stroke-dashoffset: 408; }
}

.hero-number {
  animation: float 4s ease-in-out infinite, pulse-glow 3s ease-in-out infinite;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.15s ease;
}

.hero-number:active {
  transform: scale(0.95) !important;
}

.tagline-text {
  animation: tagline-in 0.5s ease-out;
}

.card-enter {
  animation: fade-in-up 0.6s ease-out backwards;
}

.fact-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.fact-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}

.fact-card.flipped {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(240, 180, 41, 0.3);
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  margin: 3rem 0;
}

.playground-btn {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-primary);
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.playground-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
}

.playground-btn.active {
  background: rgba(240, 180, 41, 0.15);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.game-number {
  font-size: clamp(4rem, 15vw, 10rem);
  font-weight: 900;
  transition: all 0.15s;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.progress-ring-bg {
  stroke: rgba(255,255,255,0.06);
}

.progress-ring-fill {
  stroke: var(--accent-gold);
  transition: stroke-dashoffset 0.1s linear;
  transform: rotate(-90deg);
  transform-origin: center;
}

.confetti-piece {
  position: fixed;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  animation: confetti-fall 2.5s ease-in forwards;
  pointer-events: none;
  z-index: 9999;
}

.celebration-ring {
  position: fixed;
  border: 3px solid var(--accent-gold);
  border-radius: 50%;
  animation: celebration-burst 1s ease-out forwards;
  pointer-events: none;
  z-index: 9998;
}

.visit-badge {
  background: rgba(240, 180, 41, 0.1);
  border: 1px solid rgba(240, 180, 41, 0.2);
  border-radius: 999px;
  padding: 0.3rem 1rem;
  font-size: 0.8rem;
  color: var(--accent-gold);
}

.timer-display {
  font-variant-numeric: tabular-nums;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* Mobile adjustments */
@media (max-width: 640px) {
  .fact-card { padding: 1rem !important; }
}