/* Custom 3D Island Arena Styles */

@layer utilities {
  .safe-area {
    padding-top: max(12px, env(safe-area-inset-top));
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }
}

#webglContainer {
  touch-action: none;
  overflow: hidden;
}

/* Animations */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(0, 245, 212, 0.4), inset 0 0 15px rgba(0, 245, 212, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(0, 245, 212, 0.8), inset 0 0 25px rgba(0, 245, 212, 0.4);
  }
}

.pulse-glow {
  animation: pulseGlow 2s infinite ease-in-out;
}

/* Kill feed items animation */
.kill-feed-item {
  animation: slideDownFade 0.4s ease-out forwards, fadeOut 0.5s ease-in 2.5s forwards;
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(-5px);
  }
}

/* Custom scrollbar for shop */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 245, 212, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 245, 212, 0.6);
}