/* ========================================================
   CUTE ANIME SPEEDOMETER HUD (PINK - WHITE - BLUE THEME)
   High-Contrast, Compact & Fully Modular
   Optimized for FiveM CEF Transparency (No Black Box)
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@600;700;800;900&family=Rajdhani:wght@600;700;800&family=Outfit:wght@600;700;800&display=swap');

:root {
  /* Color Palette: Cute Pink, Crisp White, Cyber Blue */
  --cute-pink: #ff3b88;
  --cute-pink-light: #ff75ac;
  --cute-pink-glow: rgba(255, 59, 136, 0.65);

  --pure-white: #ffffff;
  --white-dim: rgba(255, 255, 255, 0.75);

  --cyber-blue: #00d2ff;
  --cyber-blue-light: #6ee7b7;
  --cyber-blue-glow: rgba(0, 210, 255, 0.65);

  /* Dial Sizing (Compact & Balanced) */
  --main-dial-size: 240px;
  --side-dial-size: 72px;

  /* Dial Dark Backing (Pure Radial Gradient - No backdrop-filter to prevent CEF black box) */
  --bg-dark-glass: radial-gradient(circle at center, rgba(16, 14, 32, 0.94) 0%, rgba(10, 18, 38, 0.88) 55%, rgba(6, 10, 24, 0.75) 100%);
}

html, body {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: transparent !important;
  user-select: none;
}

* {
  font-family: 'Rajdhani', sans-serif;
  box-sizing: border-box;
}

/* ========================================================
   SPEEDOMETER ROOT CONTAINER
   ======================================================== */
#speedo-root {
  position: fixed;
  right: 24px;
  bottom: 30px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  z-index: 100;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Side Column for Small Dials */
.side-dials-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
  background: transparent !important;
}

/* ========================================================
   DIAL BASES
   ======================================================== */
.small-dial {
  width: var(--side-dial-size);
  height: var(--side-dial-size);
  border-radius: 50% !important;
  position: relative;
  overflow: hidden;
  background: var(--bg-dark-glass);
  border: 1.5px solid rgba(255, 117, 172, 0.35);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5),
              0 0 10px rgba(255, 59, 136, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.small-dial.fuel-dial {
  border-color: rgba(0, 210, 255, 0.35);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5),
              0 0 10px rgba(0, 210, 255, 0.2);
}

.main-dial-wrapper {
  width: var(--main-dial-size);
  height: var(--main-dial-size);
  position: relative;
  background: transparent !important;
}

.main-circle {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 50%;
  background: var(--bg-dark-glass);
  border: 1.8px solid rgba(255, 117, 172, 0.4);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6),
              0 0 15px rgba(255, 59, 136, 0.25),
              0 0 25px rgba(0, 210, 255, 0.15);
}

/* ========================================================
   WAIFU CHARACTER CONTAINER
   ======================================================== */
.waifu-bg {
  position: absolute;
  width: 94%;
  height: 94%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
}

.waifu-bg::before {
  content: '';
  position: absolute;
  width: 70%;
  height: 70%;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 117, 172, 0.22) 0%, rgba(0, 210, 255, 0.1) 45%, transparent 70%);
  z-index: 1;
}

.waifu-bg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center 10%;
  opacity: 0.95;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
  z-index: 2;
}

/* ========================================================
   SVG RPM & DIAL NEEDLES
   ======================================================== */
#rpm-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  background: transparent !important;
}

/* Glow Filters */
.glow-pink {
  filter: drop-shadow(0 0 2px #000) drop-shadow(0 0 6px var(--cute-pink)) drop-shadow(0 0 12px var(--cute-pink));
}

.glow-blue {
  filter: drop-shadow(0 0 2px #000) drop-shadow(0 0 6px var(--cyber-blue)) drop-shadow(0 0 12px var(--cyber-blue));
}

.glow-white {
  filter: drop-shadow(0 0 2px #000) drop-shadow(0 0 5px #ffffff);
}

/* ========================================================
   CUTE HIGH-CONTRAST DIGITAL BADGES
   ======================================================== */
/* Gear Box (Cute Pink Gradient Badge - Positioned Above Speed) */
#gear-box {
  color: #ffffff;
  font-family: 'Orbitron', monospace;
  font-size: 13px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 999px;
  min-width: 36px;
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 59, 136, 0.92), rgba(168, 85, 247, 0.92));
  border: 1.2px solid #ffffff;
  box-shadow: 0 0 10px rgba(255, 59, 136, 0.75),
              0 2px 4px rgba(0, 0, 0, 0.5);
  text-shadow: 0 0 6px #ffffff, 0 1px 2px #000;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

/* Speed Box (Crisp Cyan-Border Capsule - Compact & Right-Aligned) */
.speed-cluster {
  position: absolute;
  right: 18px;
  top: 60%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: transparent !important;
}

#speed-digital {
  color: #ffffff;
  font-family: 'Orbitron', monospace;
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
  padding: 3px 10px;
  border-radius: 6px;
  min-width: 52px;
  text-align: center;
  background: linear-gradient(180deg, rgba(12, 28, 56, 0.95), rgba(8, 16, 36, 0.95));
  border: 1.2px solid var(--cyber-blue);
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.5),
              inset 0 0 6px rgba(0, 210, 255, 0.2);
  text-shadow: 0 0 8px #00d2ff, 0 0 14px #00d2ff, 0 2px 4px #000;
  letter-spacing: 0.5px;
}

.speed-unit {
  font-family: 'Outfit', sans-serif;
  font-size: 7.5px;
  font-weight: 800;
  color: var(--cute-pink-light);
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(255, 59, 136, 0.15);
  border: 1px solid rgba(255, 59, 136, 0.35);
  padding: 1px 6px;
  border-radius: 999px;
  box-shadow: 0 0 6px rgba(255, 59, 136, 0.3);
}

/* ========================================================
   INDICATORS CAPSULE (BOTTOM)
   ======================================================== */
.indicators-capsule {
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  align-items: center;
  background: rgba(14, 12, 28, 0.94);
  border: 1.5px solid rgba(255, 117, 172, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6),
              0 0 12px rgba(255, 59, 136, 0.2);
  padding: 4px 12px;
  border-radius: 999px;
  z-index: 3;
}

.ind {
  opacity: 0.2;
  transition: opacity 0.15s ease, filter 0.15s ease, transform 0.15s ease;
  font-size: 11px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ind.active {
  opacity: 1;
  transform: scale(1.12);
  filter: drop-shadow(0 0 6px currentColor);
}

#ind-left, #ind-right {
  color: #00ff88;
  font-size: 12px;
  font-weight: 900;
}

#ind-seatbelt {
  color: #ffb703;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

#ind-engine {
  color: var(--cute-pink);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

#ind-headlight {
  color: var(--cyber-blue);
  font-size: 11px;
}

#ind-fuelwarn {
  color: #ff5252;
  font-size: 11px;
}
