/* Mobile-specific styles for VibeRush */

/* Ensure no scrolling or zooming on mobile */
html,
body {
  overscroll-behavior: none;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  position: fixed;
  overflow: hidden;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

/* Canvas for touch controls */
.touch-controls-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
  touch-action: none;
}

/* Special effect for button press */
.button-press-effect {
  animation: button-press 0.3s ease-in-out;
}

@keyframes button-press {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Hide cursor on mobile */
.mobile-device * {
  cursor: none !important;
}

/* Make HUD elements larger on smaller screens for better touch targets */
@media (max-width: 768px) {
  /* Styles for smaller screens */
  canvas {
    touch-action: none;
  }
}

/* Prevent long-press context menu */
canvas,
.touch-controls-overlay {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Add blue pulse effect for active controls */
.active-control {
  box-shadow: 0 0 10px 5px rgba(125, 249, 255, 0.8);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 5px 2px rgba(125, 249, 255, 0.8);
  }
  50% {
    box-shadow: 0 0 15px 5px rgba(125, 249, 255, 0.4);
  }
  100% {
    box-shadow: 0 0 5px 2px rgba(125, 249, 255, 0.8);
  }
}

/* Disable pull-to-refresh on mobile */
body {
  overscroll-behavior-y: contain;
}

/* Add glow to touchable elements */
.touchable {
  position: relative;
}

.touchable::after {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 15px;
  box-shadow: 0 0 8px 2px rgba(255, 215, 0, 0.4);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.touchable:hover::after {
  opacity: 1;
}
