/* ==========================================================================
   VICE LAYER — GTA VI design system for Vice Freight
   GTA Art Deco only · one night plate (no drifting aurora / blur glass)
   · sunset strip · poster title lockup · cream selection · pills.
   The delivery paper slip and in-world prompts keep their layout.
   ========================================================================== */
@font-face { font-family: "GTAArtDeco"; src: url("fonts/GTAArtDeco-Regular.ttf") format("truetype"); font-weight: 100 400; font-display: block; }
@font-face { font-family: "GTAArtDeco"; src: url("fonts/GTAArtDeco-Medium.ttf") format("truetype"); font-weight: 500 900; font-display: block; }

:root {
  --v-cream: #fff9cb; --v-pink: #ffb2c6; --v-peach: #ffd4a8; --v-lime: #e6ffa3; --v-gold: #ffdf80;
  --v-lilac: #e5ddff; --v-lilac2: #ccc2f5; --v-ink: #0f0c1a; --v-cta: #fed1df; --v-cta-ink: #603a55;
  --v-s1: rgba(229,221,255,.05); --v-s2: rgba(229,221,255,.09); --v-line: rgba(229,221,255,.09);
  --v-night: linear-gradient(189deg, #1f1f38 .55%, #18182d 30.38%, #111222 65.19%, #0c0d1b 100%);
  --v-sunset-line: linear-gradient(90deg, #ffdf80, #f4717c 50%, #e963c7);
  --v-ease: cubic-bezier(.22,1,.36,1);
  --r-card: 16px; --r-tile: 12px; --r-btn: 1000px; --r-frame: 24px;
  --hair-100: rgba(229,221,255,.05); --hair-200: rgba(229,221,255,.08); --hair-300: rgba(229,221,255,.11); --hair-400: rgba(229,221,255,.16);
  --glass-100: rgba(229,221,255,.04); --glass-200: rgba(229,221,255,.06); --glass-300: rgba(229,221,255,.09); --glass-400: rgba(229,221,255,.13); --glass-500: rgba(229,221,255,.18);
}
html, body, button, input, select, textarea { font-family: "GTAArtDeco", Arial, sans-serif; letter-spacing: -.015em; }

/* ---------- frame: night plate + dusk at the top ---------- */
.frame {
  background: radial-gradient(70% 220px at 30% 0%, rgba(255,223,128,.10), rgba(244,113,124,.07) 50%, transparent 100%), var(--v-night) !important;
  border: 0 !important; border-radius: 24px !important; box-shadow: 0 40px 90px rgba(7,7,15,.6) !important;
}
.frame::before { content: ""; position: absolute; left: 34px; top: 0; z-index: 5; width: 64px; height: 3px; border-radius: 0 0 3px 3px; background: var(--v-sunset-line); }
.aurora, .frame-grain { display: none !important; }

/* ---------- top bar: no glass slab, poster lockup + pill rail ---------- */
.topbar { background: transparent !important; border: 0 !important; box-shadow: none !important; margin: 26px 26px 0 !important; padding: 0 !important; }
.topbar::before, .topbar::after { display: none !important; }
.brand { gap: 14px !important; align-items: center; }
.brand-mark { width: 44px !important; height: 44px !important; border-radius: 50% !important; background: rgba(255,178,198,.14) !important; border: 0 !important; box-shadow: none !important; color: var(--v-pink) !important; }
.brand-mark i { color: var(--v-pink) !important; }
.brand-text strong { font: 500 28px/.92 "GTAArtDeco", Arial, sans-serif !important; letter-spacing: 0 !important; text-transform: uppercase; color: var(--v-cream) !important; }
.brand-text span { font: 400 13px/1.4 "GTAArtDeco", Arial, sans-serif !important; color: var(--v-lilac) !important; opacity: .86; letter-spacing: -.01em !important; text-transform: none !important; margin-top: 6px; display: block; }

.nav { background: var(--v-s1) !important; border: 0 !important; box-shadow: none !important; border-radius: 1000px !important; padding: 4px !important; gap: 4px !important; }
.nav-item { border-radius: 1000px !important; border: 0 !important; box-shadow: none !important; background: transparent !important; color: var(--v-lilac2) !important; font-weight: 500 !important; }
.nav-item:hover { background: var(--v-s2) !important; color: #fff !important; }
.nav-item.is-active { background: var(--v-cream) !important; color: var(--v-ink) !important; }
.nav-item.is-active .nav-ico, .nav-item.is-active i { color: var(--v-ink) !important; }

/* ---------- content heads: cream title + lilac subtitle ---------- */
.content h2, .stat-block-head h3, .stat-block-head h4 { font-family: "GTAArtDeco", Arial, sans-serif !important; font-weight: 500 !important; letter-spacing: 0 !important; color: var(--v-cream) !important; text-transform: uppercase; }
.content-sub { color: var(--v-lilac) !important; opacity: .86; font-weight: 400 !important; }

/* glass cards -> flat lilac surfaces, no bevel highlight */
.hero-card, .hero-pill, .stat-block, .route-card, .history-item, .rank-row, .info-card, .card, [class*="-card"]:not(.wi-card):not(.pg-card):not(.paper-card) {
  border-color: transparent !important;
}
.hero-xp-bar span, .hero-xp-fill, .pg-fill, [class*="-bar"] > span { background: var(--v-sunset-line) !important; box-shadow: none !important; }

/* buttons: primary = CTA pill, the only glow */
.btn-primary, .btn.primary, button.primary, .route-start, .start-btn {
  background: var(--v-cta) !important; color: var(--v-cta-ink) !important; border: 0 !important; border-radius: 1000px !important;
  box-shadow: 0 2px 40px rgba(255,178,199,.3) !important;
}
.btn-primary:hover, .btn.primary:hover, button.primary:hover, .route-start:hover, .start-btn:hover { background: #ffe1ea !important; box-shadow: 0 2px 71px rgba(255,178,199,.4) !important; }

/* progress ring + world icon accents */
.wi-card { background: var(--v-night) !important; border: 0 !important; }
.wi-svg, .pg-ring-ico { color: var(--v-pink) !important; }
.pg-card { background: var(--v-night) !important; border: 0 !important; border-radius: 1000px !important; }

::-webkit-scrollbar-thumb { background: rgba(229,221,255,.16) !important; border-radius: 1000px; }

.brand-text strong { white-space: nowrap; }
@media (max-width: 1500px) { .brand-text strong { font-size: 22px !important; } .brand-text span { font-size: 12px !important; } }

/* ---------- resolution scaling: 4K matches 1080p proportions, 720p fits ----------
   zoom on the menu frame and the click-free HUD cards (the 3D world icon is
   positioned by script and is left alone); vh/vw sizes are divided back. */
:root { --s: 1; }
@media (max-height: 800px) { :root { --s: .8; } }
@media (min-height: 1300px) { :root { --s: 1.333; } }
@media (min-height: 1900px) { :root { --s: 2; } }
.frame, .toasts, #progress, #interact-prompt, .paper, #levelup, .hud, .wi-card, .wi-arrow { zoom: var(--s); }
.frame { width: calc(92vw / var(--s)) !important; height: calc(84vh / var(--s)) !important; }
.paper { width: calc(88vw / var(--s)) !important; }

/* live-demo only */
@media (max-width: 560px) { :root { --s: .34; } .frame { width: calc(96vw / var(--s)) !important; max-width: none !important; height: calc(80vh / var(--s)) !important; max-height: none !important; } }
