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

body {
  font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  touch-action: manipulation;
  overflow: hidden;
  background-color: #0d0f12;
}

/* Custom HUD Action Button */
.hud-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(20, 22, 28, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  transition: all 0.15s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hud-btn:active {
  transform: scale(0.92);
  background: rgba(30, 34, 44, 0.9);
  border-color: rgba(245, 158, 11, 0.4);
}

/* Touch Control Steering & Action Buttons */
.control-touch-btn {
  width: 68px;
  height: 68px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border-width: 2px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.08s ease, background-color 0.08s ease;
}

@media (min-width: 640px) {
  .control-touch-btn {
    width: 76px;
    height: 76px;
  }
}

/* Pedals (Gas / Brake) */
.pedal-btn {
  width: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  border-width: 2px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  transition: transform 0.08s ease;
  position: relative;
  overflow: hidden;
}

@media (min-width: 640px) {
  .pedal-btn {
    width: 72px;
  }
}

/* Subtle glow pulse for multipliers */
@keyframes glow-pulse {
  0%, 100% {
    filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.6));
  }
  50% {
    filter: drop-shadow(0 0 14px rgba(239, 68, 68, 0.9));
  }
}

.active-multiplier {
  animation: glow-pulse 1.2s infinite;
}