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

body {
  font-family: 'Tajawal', sans-serif;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #050507;
}

/* Touch Control Pedals & Buttons Styling */
.game-btn {
  box-shadow: 0 8px 24px rgba(0,0,0,0.6), inset 0 1px 1px rgba(255,255,255,0.2);
  transition: all 0.08s ease-out;
}

.game-btn:active, .game-btn.active {
  transform: scale(0.92);
  box-shadow: 0 2px 10px rgba(0,0,0,0.8), inset 0 2px 4px rgba(0,0,0,0.5);
}

.pedal-btn {
  background: linear-gradient(180deg, rgba(30,30,35,0.95) 0%, rgba(15,15,20,0.95) 100%);
}

.steer-btn {
  background: linear-gradient(180deg, rgba(25,25,30,0.95) 0%, rgba(10,10,15,0.95) 100%);
}

/* Wanted Star Blinking */
.star-active {
  color: #ef4444 !important;
  text-shadow: 0 0 12px rgba(239, 68, 68, 0.9);
  animation: star-pulse 1s infinite alternate;
}

@keyframes star-pulse {
  0% { transform: scale(1); filter: brightness(1); }
  100% { transform: scale(1.18); filter: brightness(1.4); }
}

/* Speedometer Arc transition */
#speed-arc {
  transition: stroke-dashoffset 0.08s linear;
}

/* Screen overlay damage / nitro filters */
#damage-overlay, #nitro-overlay {
  will-change: opacity;
}

/* HUD Glassmorphic components */
.backdrop-blur-md {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}