* {
  box-sizing: border-box;
}

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

.title-glow {
  font-family: 'Orbitron', sans-serif;
  text-shadow: 
    0 0 20px rgba(236, 72, 153, 0.5),
    0 0 40px rgba(236, 72, 153, 0.3),
    0 0 60px rgba(249, 115, 22, 0.2);
}

.header-gradient {
  background: linear-gradient(135deg, 
    rgba(147, 51, 234, 0.3) 0%,
    rgba(236, 72, 153, 0.3) 50%,
    rgba(249, 115, 22, 0.3) 100%
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.battle-card {
  background: linear-gradient(135deg, 
    rgba(30, 30, 40, 0.9) 0%,
    rgba(20, 20, 30, 0.95) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 0 40px rgba(236, 72, 153, 0.1),
    inset 0 0 60px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.leaderboard-card {
  background: rgba(20, 20, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card {
  background: linear-gradient(135deg, 
    rgba(30, 30, 40, 0.8) 0%,
    rgba(25, 25, 35, 0.9) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.trash-talk-card {
  background: linear-gradient(90deg, 
    rgba(147, 51, 234, 0.1) 0%,
    rgba(236, 72, 153, 0.1) 50%,
    rgba(249, 115, 22, 0.1) 100%
  );
  border: 1px solid rgba(236, 72, 153, 0.2);
}

.roster-item {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid;
  transition: all 0.3s ease;
}

.roster-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.vote-btn {
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.vote-btn:not(:disabled):hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.vote-btn:not(:disabled):active {
  transform: scale(0.95);
}

.tool-emoji {
  animation: float 3s ease-in-out infinite;
}

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

.vs-text {
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(245, 158, 11, 0.5));
}

.vs-animate {
  animation: vsEnter 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes vsEnter {
  0% { 
    transform: scale(3) rotate(-15deg);
    opacity: 0;
  }
  50% {
    transform: scale(0.8) rotate(5deg);
  }
  100% { 
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.fighter-enter-left {
  animation: enterLeft 0.6s ease-out;
}

.fighter-enter-right {
  animation: enterRight 0.6s ease-out;
}

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

@keyframes enterRight {
  0% { 
    transform: translateX(100px);
    opacity: 0;
  }
  100% { 
    transform: translateX(0);
    opacity: 1;
  }
}

.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
  overflow: hidden;
}

.confetti-particle {
  position: absolute;
  top: -10px;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  animation: confettiFall linear forwards;
}

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

.strawberry-celebration {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
}

.strawberry-float {
  position: absolute;
  top: 50%;
  font-size: 3rem;
  animation: strawberryBurst 2s ease-out forwards;
}

@keyframes strawberryBurst {
  0% {
    transform: translateY(0) scale(0);
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(-300px) scale(1.5);
    opacity: 0;
  }
}

.vote-effect {
  position: fixed;
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  pointer-events: none;
  z-index: 1001;
  animation: voteEffect 0.6s ease-out forwards;
}

.vote-effect.pow {
  color: #f59e0b;
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.8);
}

.vote-effect.boom {
  color: #ec4899;
  text-shadow: 0 0 20px rgba(236, 72, 153, 0.8);
}

@keyframes voteEffect {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -100%) scale(1.5);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -150%) scale(1);
    opacity: 0;
  }
}

.history-item {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  0% {
    transform: translateX(-20px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

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

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
  background: rgba(236, 72, 153, 0.5);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(236, 72, 153, 0.7);
}

/* Mobile optimizations */
@media (max-width: 640px) {
  .title-glow {
    font-size: 1.75rem;
  }
  
  .tool-emoji {
    font-size: 4rem !important;
  }
  
  .vs-text {
    font-size: 2rem !important;
  }
  
  .vote-btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}