/* Vice Link — GTA VI "Vice" layer. Loaded after the inline styles; Tailwind's
   runtime utilities live in cascade layers, so these unlayered rules win.
   Type: GTA Art Deco 400/500 only. No backdrop-filter (transparent NUI). */
@font-face { font-family: "GTAArtDeco"; src: url("fonts/GTAArtDeco-Regular.ttf") format("truetype"); font-weight: 100 450; font-display: block; }
@font-face { font-family: "GTAArtDeco"; src: url("fonts/GTAArtDeco-Medium.ttf") format("truetype"); font-weight: 451 950; font-display: block; }

:root {
  --v-font: "GTAArtDeco", Arial, sans-serif;
  --v-bg: #0c0d1b; --v-cream: #fff9cb; --v-pink: #ffb2c6; --v-pink-text: #ffc6d4;
  --v-lilac: #e5ddff; --v-lilac-soft: #ccc2f5; --v-peach: #ffd4a8; --v-lime: #e6ffa3; --v-gold: #ffdf80;
  --v-cta: #fed1df; --v-cta-ink: #603a55; --v-ink: #0f0c1a;
  --v-night: linear-gradient(189deg, #1f1f38 0.55%, #18182d 30.38%, #111222 65.19%, #0c0d1b 100%);
  --v-v1: linear-gradient(189deg, #2f2e52 0.55%, #252644 30.38%, #1f1f38 65.19%, #18182d 100%);
  --v-sunset-line: linear-gradient(90deg, #ffdf80 0%, #f4717c 50%, #e963c7 100%);
  --v-glow-top: radial-gradient(70% 220px at 50% 0%, rgba(255, 223, 128, 0.11), rgba(244, 113, 124, 0.07) 50%, transparent 100%);
  --v-s1: rgba(229, 221, 255, 0.05); --v-s2: rgba(229, 221, 255, 0.09); --v-s3: rgba(229, 221, 255, 0.14);
  --v-line: rgba(229, 221, 255, 0.1);
  --v-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body, body * { font-family: var(--v-font) !important; }
body { letter-spacing: -0.015em; }
/* Font Awesome glyphs keep their own icon face. */
body .fa, body .fas, body .far, body .fab, body .fa-solid, body .fa-regular, body .fa-brands,
body [class^="fa-"], body [class*=" fa-"] { font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important; }
body .fab, body .fa-brands { font-family: "Font Awesome 6 Brands" !important; font-weight: 400 !important; }
body .fas, body .fa-solid { font-weight: 900 !important; }
body .far, body .fa-regular { font-weight: 400 !important; }
.font-bold, .font-extrabold, .font-semibold { font-weight: 500 !important; }

/* ---------- the head unit ---------- */
.vl-screen {
  background: var(--v-glow-top), var(--v-night) !important;
  border-color: #0c0d1b !important;
  outline-color: rgba(229, 221, 255, 0.16) !important;
  outline-width: 1.5px !important;
  border-radius: 32px !important;
  box-shadow: 0 40px 90px rgba(7, 7, 15, 0.55);
}
.vl-screen .bg-zinc-900 { background: var(--v-night) !important; }
.vl-screen .bg-zinc-950 { background: #0c0d1b !important; }
.vl-screen .bg-zinc-800 { background: #252644 !important; }
.vl-screen .bg-zinc-600 { background: #38365d !important; }
.vl-screen .from-zinc-800 { --tw-gradient-from: #18182d !important; }
.vl-screen .text-zinc-400, .vl-screen .text-gray-300, .vl-screen .text-gray-200 { color: var(--v-lilac-soft) !important; }
.vl-screen .text-zinc-500, .vl-screen .text-gray-500 { color: #8f88b8 !important; }
.vl-screen .text-zinc-300, .vl-screen .text-zinc-200 { color: var(--v-lilac) !important; }

/* side rail */
.vl-rail { background: #0c0d1b !important; box-shadow: inset -1px 0 0 var(--v-line); }
.vl-rail #main_current_hour { color: var(--v-cream); font-weight: 500 !important; letter-spacing: 0; }
.vl-rail h1 { font-weight: 500 !important; }
.vl-rail .lg-nav-icon { border-radius: 18px !important; }
.vl-rail .lg-nav-icon:hover { filter: none; }

/* ---------- surfaces (static, no blur) ---------- */
.lg-panel, .lg-panel-strong, .lg-card, .lg-input, .lg-btn, .lg-btn-home, .lg-signal { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.lg-panel, .lg-panel-strong {
  background: var(--v-glow-top), var(--v-v1) !important;
  border: 0 !important;
  box-shadow: inset 0 0 0 1px var(--v-line), 0 18px 44px -14px rgba(7, 7, 15, 0.6) !important;
}
.lg-panel-strong.lg-glass-light, .lg-glass-light { background: var(--v-night) !important; }
.lg-panel::before, .lg-card::before { background: none !important; }
.lg-card {
  background: var(--v-s1) !important; border: 0 !important;
  box-shadow: inset 0 0 0 1px var(--v-line) !important;
  border-radius: 24px !important;
}
.lg-card:hover { background: var(--v-s2) !important; box-shadow: inset 0 0 0 1px rgba(255, 249, 203, 0.22) !important; }
.lg-card .bg-white { background: var(--v-cream) !important; }
.lg-card .bg-white.text-zinc-500, .lg-card .bg-white .text-zinc-500 { color: var(--v-ink) !important; }
.lg-input {
  background: rgba(229, 221, 255, 0.06) !important; border: 1px solid transparent !important;
  box-shadow: none !important; border-radius: 1000px !important; color: #fff !important;
}
.lg-input::placeholder { color: rgba(229, 221, 255, 0.45) !important; }
.lg-input:focus, .lg-input:focus-visible { border-color: rgba(255, 249, 203, 0.45) !important; background: rgba(229, 221, 255, 0.09) !important; }
.lg-btn {
  background: var(--v-s2) !important; border: 0 !important; color: #fff !important;
  box-shadow: inset 0 0 0 1px var(--v-line) !important; border-radius: 1000px;
}
.lg-btn:hover { background: var(--v-s3) !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3) !important; }
.lg-btn-home { background: var(--v-cream) !important; color: var(--v-ink) !important; border: 0 !important; }
/* the round home button: the one CTA, so it gets the pill bloom */
.lg-btn-accent {
  background: var(--v-cta) !important; border: 0 !important; stroke: var(--v-cta-ink) !important;
  box-shadow: 0 2px 40px rgba(255, 178, 199, 0.35) !important; color: var(--v-cta-ink) !important;
}
.lg-btn-accent:hover { filter: none !important; background: #ffe1ea !important; box-shadow: 0 2px 71px rgba(255, 178, 199, 0.4) !important; }

/* quick signal buttons keep their meaning, in Vice tones */
.lg-signal { border: 0 !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16) !important; }
.lg-signal-police { background: linear-gradient(120deg, #6a7ff0, #9b5fe0) !important; }
.lg-signal-accident { background: linear-gradient(120deg, #ffdf80, #ffd4a8) !important; color: var(--v-ink) !important; }
.lg-signal-gunshot { background: linear-gradient(120deg, #f4717c, #e963c7) !important; }

/* sliders */
.input-slide { background: linear-gradient(90deg, var(--v-pink) 0% 100%, #38365d 100% 100%); }
input[type="range"] { accent-color: var(--v-pink); }

/* ---------- title stack ---------- */
.vl-head { position: relative; display: flex; flex-direction: column; gap: 6px; padding-top: 14px; flex: none; }
.vl-head::before { content: ""; position: absolute; left: 0; top: 0; width: 48px; height: 3px; border-radius: 0 0 3px 3px; background: var(--v-sunset-line); }
.vl-eyebrow { font: 500 11px/1.2 var(--v-font); letter-spacing: 0.15em; text-transform: uppercase; color: var(--v-pink); }
.vl-title { margin: 0; font: 500 34px/0.92 var(--v-font) !important; letter-spacing: 0 !important; text-transform: uppercase; color: var(--v-cream) !important; }
.vl-sub { margin: 0; font: 400 14px/1.4 var(--v-font); color: var(--v-lilac); opacity: 0.9; }
.vl-head-sm { padding-top: 12px; margin-bottom: 10px; }
.vl-head-sm .vl-title { font-size: 22px !important; }
.vl-head-sm .vl-sub { font-size: 12.5px; }
.flex-row > .vl-head-sm { margin-bottom: 0; }

/* big numbers on Status cards */
.vl-screen .text-\[3\.5rem\], .vl-screen .text-\[4rem\] { color: var(--v-cream) !important; letter-spacing: -0.02em; }

/* notifications */
#notifications > * { font-family: var(--v-font) !important; }

/* leaflet popups */
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: #18182d !important; color: #fff !important; }
.leaflet-container { font-family: var(--v-font) !important; }

/* scrollbars */
.vl-screen ::-webkit-scrollbar { width: 6px; height: 6px; }
.vl-screen ::-webkit-scrollbar-thumb { background: rgba(229, 221, 255, 0.16); border-radius: 1000px; }
.vl-screen ::-webkit-scrollbar-track { background: transparent; }

/* in-car DUI mirror: frosted widgets become night plates */
.vl-screen .backdrop-blur-md { backdrop-filter: none !important; background: linear-gradient(189deg, rgba(47, 46, 82, 0.92), rgba(24, 24, 45, 0.94)) !important; box-shadow: inset 0 0 0 1px var(--v-line); }

/* short screens (1366x768 and below): keep the rail and home column inside the unit */
@media (max-height: 820px) {
  .vl-rail { padding-top: 10px !important; padding-bottom: 10px !important; }
  .vl-rail .lg-nav-icon { height: 46px !important; }
  .vl-rail ul { row-gap: 4px !important; }
  .vl-rail #submit-button { margin-top: 6px; }
  .vl-rail #submit-button svg { width: 46px; height: 46px; }
  .vl-rail h1 { font-size: 18px !important; line-height: 1.2 !important; }
  .vl-head { padding-top: 10px; gap: 4px; }
  .vl-title { font-size: 24px !important; }
  .vl-sub { font-size: 12px; }
  .vl-head-sm .vl-title { font-size: 18px !important; }
  .vl-screen .gap-y-3 { row-gap: 8px !important; }
  .vl-screen .lg-panel.p-5 { padding: 14px !important; }
  #mapHome { height: 7rem !important; }
}

/* ---------- resolution scale: 1080p = 1.0, 720p shrinks, 1440p / 4K grow ---------- */
:root { --vz: 1; }
@media (max-height: 800px)  { :root { --vz: 0.72; } }
@media (min-height: 1300px) { :root { --vz: 1.333; } }
@media (min-height: 2000px) { :root { --vz: 2; } }
.vl-screen:not(.vl-dui) { zoom: var(--vz); width: calc(80vw / var(--vz)) !important; height: calc(75vh / var(--vz)) !important; }
.vl-screen:not(.vl-dui) .responsive-zoom { zoom: 1 !important; }
.vl-screen.vl-dui { zoom: 1; width: 100% !important; height: 100% !important; }

/* perf: no backdrop blur anywhere on the transparent NUI page */
*, *::before, *::after { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
