@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@300;400;500;600&display=swap');

:root {
  --curry-color: #1D428A;
  --lebron-color: #552583;
  --westbrook-color: #CE1141;
}

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

.font-geist-mono {
  font-family: 'Geist Mono', monospace;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow: hidden;
  touch-action: manipulation;
}

#game-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.player-select.selected {
  transform: scale(1.1);
}

.player-select.selected > div:first-child {
  ring-width: 3px;
  ring-color: rgb(59, 130, 246);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.player-icon {
  width: 100%;
  height: 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.curry-icon {
  background-image: url('assets/curry.svg');
}

.lebron-icon {
  background-image: url('assets/lebron.svg');
}

.westbrook-icon {
  background-image: url('assets/westbrook.svg');
}

.stat-bar {
  height: 4px;
  border-radius: 2px;
}

.game-mode-btn.selected {
  background-color: rgb(37, 99, 235);
  color: white;
}

#court-svg {
  width: 100%;
  height: 100%;
  background-image: url('assets/court.svg');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.player-sprite {
  width: 60px;
  height: 80px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.1s ease;
}

#basketball {
  width: 25px;
  height: 25px;
  background-image: url('assets/basketball.svg');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  transition: all 0.05s linear;
}

#special-cooldown {
  transition: clip-path 0.1s linear;
}

.text-shadow-lg {
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.3);
}

/* Special effect animations */
@keyframes shoot {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

@keyframes dunk {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.2); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes specialMove {
  0% { 
    filter: brightness(1); 
    transform: scale(1);
  }
  50% { 
    filter: brightness(1.5); 
    transform: scale(1.2);
  }
  100% { 
    filter: brightness(1); 
    transform: scale(1);
  }
}

.shooting {
  animation: shoot 0.5s ease-out;
}

.dunking {
  animation: dunk 0.7s ease-out;
}

.special-active {
  animation: specialMove 0.5s infinite;
}

/* Message animations */
@keyframes messageShow {
  0% { opacity: 0; transform: translate(-50%, -30px); }
  10% { opacity: 1; transform: translate(-50%, 0); }
  90% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -30px); }
}

.message-animation {
  animation: messageShow 2s ease-out forwards;
}

/* Score animation */
@keyframes scoreAnimation {
  0% { transform: scale(1); }
  50% { transform: scale(1.5); }
  100% { transform: scale(1); }
}

.score-animation {
  animation: scoreAnimation 0.5s ease-out;
}

/* Ball shots */
@keyframes ballShot {
  0% { transform: scale(1) translateY(0); }
  50% { transform: scale(0.8) translateY(-100px); }
  100% { transform: scale(1) translateY(0); }
}

.ball-shot {
  animation: ballShot 1s ease-out;
}
