/* Custom Styles for Real Car Driving Simulator */
:root {
  --neon-cyan: #00f0ff;
  --neon-purple: #8a2be2;
  --neon-amber: #ffaa00;
  --wet-asphalt: #0f1015;
}

body {
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  background-color: #06070a;
}

/* Speedometer Glowing Shadows */
.text-shadow-amber {
  text-shadow: 0 0 12px rgba(251, 191, 36, 0.6), 0 0 24px rgba(245, 158, 11, 0.3);
}

.text-shadow-cyan {
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.6), 0 0 24px rgba(0, 240, 255, 0.3);
}

/* Speed Vignette */
#speed-vignette {
  background: radial-gradient(circle, transparent 55%, rgba(0, 240, 255, 0.15) 85%, rgba(138, 43, 226, 0.35) 100%);
}

/* HUD Glass Buttons */
.hud-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(18, 22, 32, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.5rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #e2e8f0;
  transition: all 0.15s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.hud-btn:hover {
  background: rgba(30, 36, 52, 0.85);
  border-color: rgba(0, 240, 255, 0.4);
  transform: translateY(-1px);
}

.hud-btn:active {
  transform: scale(0.96);
}

/* Touch Control Pedals & Buttons */
.touch-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 1.25rem;
  background: rgba(18, 22, 34, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  transition: transform 0.08s ease, background-color 0.08s ease;
}

.touch-btn-large {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 9999px;
  background: rgba(22, 27, 42, 0.8);
  border-color: rgba(0, 240, 255, 0.3);
}

.touch-btn-nitro {
  width: 3.5rem;
  height: 2.75rem;
}

.touch-btn-handbrake {
  width: 3.5rem;
  height: 2.75rem;
}

.touch-pedal {
  width: 4.25rem;
  height: 5.75rem;
  border-radius: 1rem;
}

.touch-pedal-gas {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.25) 0%, rgba(6, 78, 59, 0.7) 100%);
  border-color: rgba(52, 211, 153, 0.4);
}

.touch-pedal-brake {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.25) 0%, rgba(127, 29, 29, 0.7) 100%);
  border-color: rgba(248, 113, 113, 0.4);
}

/* Custom Range Input */
.custom-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #00f0ff;
  cursor: pointer;
  box-shadow: 0 0 10px #00f0ff;
  transition: transform 0.1s;
}

.custom-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Swatch Circles */
.color-swatch {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.15s ease;
}

.color-swatch:hover {
  transform: scale(1.15);
}

.color-swatch.active {
  border-color: #ffffff;
  box-shadow: 0 0 12px #00f0ff;
  transform: scale(1.1);
}

/* Responsive adjustments for 390px screens */
@media (max-width: 430px) {
  .touch-pedal {
    width: 3.5rem;
    height: 4.8rem;
  }
  .touch-btn-large {
    width: 3.75rem;
    height: 3.75rem;
  }
  .touch-btn-nitro, .touch-btn-handbrake {
    width: 3rem;
    height: 2.25rem;
  }
}