:root {
  --berry-pink: #ff6b9d;
  --berry-rose: #ff8fab;
  --berry-cream: #fff0f5;
  --arcade-purple: #6b5b95;
  --arcade-gold: #ffd93d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  overflow-x: hidden;
}

.arcade-title {
  font-family: 'Press Start 2P', cursive;
  text-shadow: 
    0 0 10px rgba(255, 107, 157, 0.5),
    0 0 20px rgba(255, 107, 157, 0.3),
    0 0 30px rgba(255, 107, 157, 0.2);
  letter-spacing: 2px;
}

.platform-card {
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.platform-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.challenge-token {
  box-shadow: 
    0 4px 0 rgba(0, 0, 0, 0.3),
    0 6px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.challenge-token::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.challenge-token:hover::before {
  left: 100%;
}

.challenge-token:active {
  transform: translateY(2px) scale(0.98);
  box-shadow: 
    0 2px 0 rgba(0, 0, 0, 0.3),
    0 4px 10px rgba(0, 0, 0, 0.2);
}

.battle-arena {
  min-height: 200px;
  transition: all 0.5s ease;
}

.health-bar-container {
  animation: pulse 2s ease-in-out infinite;
}

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

.animate-float {
  animation: float 2s ease-in-out infinite;
}

@keyframes shake {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  25% { transform: translateX(-5px) rotate(-5deg); }
  75% { transform: translateX(5px) rotate(5deg); }
}

.animate-shake {
  animation: shake 0.3s ease-in-out infinite;
}

@keyframes pop {
  0% { transform: scale(0) rotate(-10deg); opacity: 0; }
  50% { transform: scale(1.2) rotate(5deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 0; }
}

.animate-pop {
  animation: pop 0.5s ease-out forwards;
}

@keyframes bounce-in {
  0% { transform: translateX(-50%) scale(0); }
  50% { transform: translateX(-50%) scale(1.1); }
  100% { transform: translateX(-50%) scale(1); }
}

.animate-bounce-in {
  animation: bounce-in 0.3s ease-out;
}

@keyframes slide-in {
  0% { transform: translateX(100%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

.animate-slide-in {
  animation: slide-in 0.5s ease-out;
}

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

.confetti-piece {
  animation: confetti-fall 3s ease-out forwards;
}

.comic-effect {
  font-family: 'Press Start 2P', cursive;
  text-shadow: 
    3px 3px 0 #000,
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000;
  transform: rotate(-5deg);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
  padding-right: 40px;
}

select option {
  background: #1a1a2e;
  color: white;
  padding: 10px;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff6b9d, #6b5b95);
  border-radius: 10px;
}

@media (max-width: 640px) {
  .arcade-title {
    font-size: 1rem;
    line-height: 1.5;
  }
  
  .challenge-token {
    padding: 0.75rem 1rem;
  }
  
  .challenge-token span:first-child {
    font-size: 1.5rem;
  }
}