:root {
  --background: #0A0E27;
  --cards: #1A1F3A;
  --primary: #00D9FF;
  --secondary: #39FF14;
  --text-primary: #FFFFFF;
  --text-secondary: #A0AEC0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-family: 'Space Grotesk', sans-serif;
}

body {
  background-color: var(--background);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

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

.bg-cards {
  background-color: var(--cards);
}

.safe-area-bottom {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

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

@keyframes pulse-slow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.02);
  }
}

.animate-fade-in {
  animation: fade-in 0.4s ease-out;
}

.animate-pulse-slow {
  animation: pulse-slow 3s ease-in-out infinite;
}

.hover-glow:hover {
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 2px;
}

/* Touch feedback */
button:active {
  transform: scale(0.98);
}

/* Gradient utilities */
.gradient-text {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Card styles */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  border-color: var(--primary);
  box-shadow: 0 0 30px rgba(0, 217, 255, 0.2);
}

/* Neon glow effect for icons */
.neon-glow {
  filter: drop-shadow(0 0 8px var(--primary)) drop-shadow(0 0 15px var(--primary));
}

/* Button press animation */
@keyframes press {
  0% { transform: scale(1); }
  50% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

.btn-press:active {
  animation: press 0.2s ease;
}

/* Swipe hint animation */
@keyframes bounce-hint {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

.swipe-hint {
  animation: bounce-hint 1.5s ease-in-out infinite;
}

/* Mobile optimizations */
@media (max-width: 640px) {
  .text-5xl {
    font-size: 2.5rem;
  }
  
  .text-6xl {
    font-size: 3rem;
  }
}

/* Prevent text selection during swipe */
.no-select {
  -webkit-user-select: none;
  user-select: none;
}

/* Fix for iOS bounce */
html, body {
  overscroll-behavior: none;
}