/* Snake Game Custom Styles */

/* Canvas styling */
#gameCanvas {
  display: block;
  background-color: #f8fafc;
}

.dark #gameCanvas {
  background-color: #1e293b;
}

/* Button press effects */
button:active {
  transform: scale(0.95);
}

/* Mobile touch optimizations */
@media (hover: none) {
  #mobileControls button:active {
    background-color: #6d28d9;
  }
}

/* Custom animations */
@keyframes snake-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

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

/* Game over overlay animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-show {
  animation: fadeIn 0.3s forwards;
}

/* Mobile swipe detection area */
#swipeArea {
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}
