/* Base & Typography */
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

body {
  touch-action: none;
  overflow: hidden;
  background-color: #080809;
}

/* Touch Control buttons styling */
.touch-btn {
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  -webkit-touch-callout: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.touch-btn.btn-pressed {
  transform: scale(0.92) !important;
  filter: brightness(1.35) contrast(1.15);
  box-shadow: inset 0 0 16px rgba(255, 255, 255, 0.5), 0 0 25px rgba(16, 185, 129, 0.8) !important;
}

#ctrl-gas.btn-pressed {
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.7), 0 0 35px rgba(52, 211, 153, 0.9) !important;
}

/* Color Picker Button Active Ring */
.color-dot {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.color-dot.active {
  transform: scale(1.1);
  box-shadow: 0 0 0 3px #ffffff, 0 0 15px rgba(255, 255, 255, 0.5);
}

/* Smooth Canvas Fade-in */
#canvas-container canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  outline: none;
}

/* Pulse animation for multiplier badge */
@keyframes pulseMultiplier {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

.multiplier-pop {
  animation: pulseMultiplier 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Custom Scrollbar for Garage Modal */
#garage-modal ::-webkit-scrollbar {
  width: 5px;
}
#garage-modal ::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
#garage-modal ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
}

/* Speedometer needle smooth transition */
.needle-glow {
  filter: drop-shadow(0 0 8px #f59e0b);
}