/* =========================================================================
   VPD — dispatch-room design layer
   Loaded after lspd.css. Tokens first, components, then the overrides that
   flatten the old glow/glass look across templates still using inline styles.
   ========================================================================= */

:root {
  /* ink — warm charcoal, not blue-violet */
  --ink-0: #0a0a0a;
  --ink-1: #111111;
  --ink-2: #171717;
  --ink-3: #1d1d1d;
  --ink-4: #262626;

  --bone: #f2f2ee;
  --bone-2: #c4c4be;
  --muted: #9a9a94;
  --dim: #6b6b66;

  --line: rgba(242,242,238, 0.09);
  --line-2: rgba(242,242,238, 0.16);

  --brass: #ffd200;
  --brass-hi: #ffe14d;
  --brass-lo: #b89600;
  --steel: #4f7dff;
  --steel-hi: #8fb0ff;
  --siren-red: #ff3b30;
  --siren-blue: #3f6fd8;
  --ok: #6aa77a;
  --warn: #d0803f;

  /* legacy token names used across templates */
  --bg-main: var(--ink-0);
  --bg-surface: var(--ink-1);
  --bg-card: var(--ink-2);
  --bg-card-hover: var(--ink-3);
  --bg-input: #0e0e0e;
  --border: var(--line);
  --border-subtle: rgba(242,242,238, 0.05);
  --border-focus: var(--brass);
  --primary: var(--steel);
  --primary-hover: #2f6bff;
  --primary-dim: rgba(79,125,255, 0.12);
  --accent-gold: var(--brass);
  --accent-gold-dim: rgba(255,210,0, 0.12);
  --accent-emerald: var(--ok);
  --accent-emerald-dim: rgba(106, 167, 122, 0.12);
  --accent-red: var(--siren-red);
  --accent-red-dim: rgba(255,59,48, 0.12);
  --discord: #5865f2;
  --discord-color: #7983f5;
  --discord-hover: #4752c4;
  --text-main: var(--bone);
  --text-muted: var(--muted);
  --text-dim: var(--dim);

  --font-main: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-heading: 'Barlow Condensed', 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;

  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

html { scroll-behavior: smooth; }
html, body { background: var(--ink-0) !important; }

body {
  color: var(--bone) !important;
  font-family: var(--font-main) !important;
  font-feature-settings: 'ss02', 'tnum';
  letter-spacing: 0.005em;
}

::selection { background: var(--brass); color: var(--ink-0); }

:focus-visible {
  outline: 2px solid var(--brass) !important;
  outline-offset: 2px;
}

/* film grain — fixed, cheap, no canvas */
.vpd-grain {
  position: fixed;
  inset: -50%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: vpd-grain 1.2s steps(4) infinite;
}
@keyframes vpd-grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-2%, -1%); }
  100% { transform: translate(0, 0); }
}

/* faint drafting grid under content, fades out down the page */
.vpd-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, transparent 0, var(--ink-0) 70vh),
    repeating-linear-gradient(0deg, rgba(242,242,238,0.025) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg, rgba(242,242,238,0.025) 0 1px, transparent 1px 64px);
}

/* ---------- headings ---------- */
h1, h2, .vpd-display {
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em !important;
  text-transform: uppercase;
  line-height: 0.98 !important;
}
h3, h4 {
  font-family: var(--font-heading) !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
}
.font-mono, code, kbd { font-family: var(--font-mono) !important; }

/* ---------- lightbar + status strip ---------- */
.vpd-lightbar {
  height: 3px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  z-index: 60;
}
.vpd-lightbar span { display: block; }
.vpd-lightbar span:first-child { background: var(--siren-red); animation: vpd-siren-a 2.4s steps(1) infinite; }
.vpd-lightbar span:last-child { background: var(--siren-blue); animation: vpd-siren-b 2.4s steps(1) infinite; }
@keyframes vpd-siren-a { 0%, 100% { opacity: 1; } 8% { opacity: .35; } 16% { opacity: 1; } 50% { opacity: .35; } }
@keyframes vpd-siren-b { 0%, 100% { opacity: .35; } 50% { opacity: 1; } 58% { opacity: .35; } 66% { opacity: 1; } }

.vpd-strip {
  position: relative;
  z-index: 55;
  background: #080808;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--dim);
  text-transform: uppercase;
}
.vpd-strip-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 5px 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  white-space: nowrap;
  overflow: hidden;
}
.vpd-strip b { color: var(--bone-2); font-weight: 500; }
.vpd-strip .sep { color: #3a3a36; }
.vpd-strip .lvl { color: var(--brass-hi); }
.vpd-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ok);
  margin-right: 6px;
  vertical-align: 1px;
  box-shadow: 0 0 0 0 rgba(106,167,122,.6);
  animation: vpd-dot 2s infinite;
}
.vpd-dot.off { background: var(--dim); animation: none; }
@keyframes vpd-dot { 0% { box-shadow: 0 0 0 0 rgba(106,167,122,.55); } 70% { box-shadow: 0 0 0 6px rgba(106,167,122,0); } 100% { box-shadow: 0 0 0 0 rgba(106,167,122,0); } }

/* ---------- header ---------- */
.vpd-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,10,10, 0.94);
  border-bottom: 1px solid var(--line);
}
.vpd-header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.vpd-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--bone); flex-shrink: 0; }
.vpd-brand img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; filter: grayscale(.15) contrast(1.05); }
.vpd-brand-text { display: flex; flex-direction: column; line-height: 1; }
.vpd-brand-text strong { font-family: var(--font-heading); font-size: 19px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.vpd-brand-text small { font-family: var(--font-mono); font-size: 9.5px; color: var(--dim); letter-spacing: .14em; text-transform: uppercase; margin-top: 3px; }

.vpd-nav { display: none; align-items: stretch; height: 100%; margin: 0 auto; }
@media (min-width: 1280px) { .vpd-nav { display: flex; } }
.vpd-nav > a, .vpd-nav > .vpd-nav-group > button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 60px;
  padding: 0 12px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  transition: color .15s var(--ease);
}
.vpd-nav > a::after, .vpd-nav > .vpd-nav-group > button::after {
  content: '';
  position: absolute;
  left: 12px; right: 12px; bottom: -1px;
  height: 2px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.vpd-nav > a:hover, .vpd-nav > .vpd-nav-group > button:hover { color: var(--bone); }
.vpd-nav > a:hover::after, .vpd-nav > .vpd-nav-group:hover > button::after { transform: scaleX(1); }
.vpd-nav > a.is-active, .vpd-nav > .vpd-nav-group > button.is-active { color: var(--bone); }
.vpd-nav > a.is-active::after, .vpd-nav > .vpd-nav-group > button.is-active::after { transform: scaleX(1); }
.vpd-nav .cmd { color: var(--brass); }
.vpd-nav-count {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 1px 5px;
  background: var(--brass);
  color: var(--ink-0);
  border-radius: 2px;
  letter-spacing: 0;
}

.vpd-nav-group { position: relative; display: flex; }
.vpd-nav-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  display: none;
  flex-direction: column;
  background: var(--ink-1);
  border: 1px solid var(--line-2);
  border-top: 2px solid var(--brass);
  padding: 4px;
  z-index: 60;
}
.vpd-nav-group:hover .vpd-nav-menu, .vpd-nav-group:focus-within .vpd-nav-menu { display: flex; }
.vpd-nav-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  font-size: 13px;
  color: var(--bone-2);
  text-decoration: none;
  border-radius: 2px;
}
.vpd-nav-menu a:hover { background: var(--ink-3); color: var(--bone); }
.vpd-nav-menu a i { width: 16px; text-align: center; color: var(--dim); }
.vpd-nav-menu a:hover i { color: var(--brass); }
.vpd-nav-menu .tag { margin-left: auto; font-family: var(--font-mono); font-size: 9px; color: var(--brass); border: 1px solid rgba(255,210,0,.4); padding: 0 4px; }

.vpd-controls { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
@media (min-width: 1280px) { .vpd-controls { margin-left: 0; } }

.vpd-icon-btn {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--muted);
  border-radius: 3px;
  text-decoration: none;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
  font-size: 13px;
}
.vpd-icon-btn:hover { color: var(--bone); border-color: rgba(242,242,238,.32); background: var(--ink-2); }

.vpd-search-btn {
  display: none;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 8px 0 10px;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  background: transparent;
  color: var(--dim);
  font-size: 12px;
  cursor: pointer;
}
.vpd-search-btn:hover { color: var(--bone-2); border-color: rgba(242,242,238,.3); }
.vpd-search-btn kbd { font-size: 10px; padding: 1px 5px; border: 1px solid var(--line-2); border-radius: 2px; color: var(--muted); }
@media (min-width: 720px) { .vpd-search-btn { display: inline-flex; } }

.vpd-points {
  display: none;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255,210,0,.35);
  color: var(--brass-hi);
  font-family: var(--font-mono);
  font-size: 12px;
  text-decoration: none;
  border-radius: 3px;
}
.vpd-points:hover { background: rgba(255,210,0,.08); }
@media (min-width: 900px) { .vpd-points { display: inline-flex; } }

.vpd-user {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 10px 0 3px;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  text-decoration: none;
  max-width: 220px;
}
.vpd-user:hover { border-color: rgba(242,242,238,.32); }
.vpd-user img { width: 26px; height: 26px; border-radius: 2px; object-fit: cover; border-left: 2px solid; }
.vpd-user-text { display: none; flex-direction: column; line-height: 1.1; min-width: 0; }
.vpd-user-text strong { font-size: 12px; color: var(--bone); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.vpd-user-text small { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 640px) { .vpd-user-text { display: flex; } }

.vpd-burger { display: inline-flex; }
@media (min-width: 1280px) { .vpd-burger { display: none; } }

.vpd-drawer {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--ink-1);
  padding: .5rem 1.25rem 1rem;
}
.vpd-drawer.open { display: block; }
.vpd-drawer a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--bone-2);
  text-decoration: none;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 16px;
  font-weight: 600;
}
.vpd-drawer a i { width: 18px; color: var(--dim); font-size: 13px; }
@media (min-width: 1280px) { .vpd-drawer { display: none !important; } }

/* ---------- buttons ---------- */
.vpd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 44px;
  padding: 0 20px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background .15s var(--ease), color .15s, border-color .15s;
  white-space: nowrap;
}
.vpd-btn-sm { height: 34px; padding: 0 13px; font-size: 13px; }
.vpd-btn-brass { background: var(--brass); color: #16120a; }
.vpd-btn-brass:hover { background: var(--brass-hi); }
.vpd-btn-ghost { background: transparent; color: var(--bone); border-color: var(--line-2); }
.vpd-btn-ghost:hover { border-color: var(--bone-2); background: rgba(242,242,238,.04); }
.vpd-btn-discord { background: #5865f2; color: #fff; }
.vpd-btn-discord:hover { background: #4752c4; }
.vpd-btn .arrow { transition: transform .2s var(--ease); }
.vpd-btn:hover .arrow { transform: translateX(3px); }

/* ---------- layout primitives ---------- */
.site-container.vpd-flush { max-width: none; padding: 0; }
.vpd-flush + * { margin-top: 0; }
.vpd-wrap { max-width: 1320px; margin: 0 auto; padding: 0 1.25rem; position: relative; z-index: 2; }

.vpd-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass);
}
.vpd-kicker::before { content: ''; width: 18px; height: 1px; background: currentColor; }
.vpd-kicker .n { color: var(--dim); }

.vpd-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 14px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.vpd-section-head h2 { font-size: clamp(28px, 3.4vw, 40px); color: var(--bone); margin-top: 8px; }
.vpd-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
}
.vpd-link:hover { color: var(--brass-hi); border-color: var(--brass); }

.vpd-panel {
  position: relative;
  background: var(--ink-1);
  border: 1px solid var(--line);
  border-radius: 3px;
}

/* viewfinder corners */
.vpd-corners { position: relative; }
.vpd-corners::before, .vpd-corners::after {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
  border: 1px solid var(--brass);
  opacity: 0;
  transition: opacity .2s var(--ease), transform .25s var(--ease);
  pointer-events: none;
  z-index: 3;
}
.vpd-corners::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; transform: translate(4px, 4px); }
.vpd-corners::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; transform: translate(-4px, -4px); }
.vpd-corners:hover::before, .vpd-corners:hover::after { opacity: 1; transform: none; }

/* photos: muted grade, shift to full color on hover */
.vpd-photo { overflow: hidden; position: relative; background: #000; }
.vpd-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(.55) contrast(1.08) brightness(.82);
  transition: filter .5s var(--ease), transform .8s var(--ease);
}
.vpd-photo:hover img { filter: grayscale(0) contrast(1.04) brightness(.95); transform: scale(1.025); }

/* ---------- hero ---------- */
.vpd-hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.vpd-hero-bg { position: absolute; inset: 0; z-index: -2; }
.vpd-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: grayscale(.7) contrast(1.15) brightness(.55);
  transform: scale(1.06);
  animation: vpd-kenburns 24s var(--ease) forwards;
}
@keyframes vpd-kenburns { to { transform: scale(1); } }
.vpd-hero::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10,10,10,.96) 0%, rgba(10,10,10,.75) 45%, rgba(10,10,10,.2) 100%),
    linear-gradient(0deg, var(--ink-0) 0%, transparent 40%);
}
.vpd-hero-inner { width: 100%; padding-top: 6rem; padding-bottom: 4.5rem; }
.vpd-hero h1 {
  font-size: clamp(54px, 8.6vw, 128px);
  color: var(--bone);
  margin: 18px 0 0;
  line-height: .88 !important;
}
.vpd-hero h1 .thin { display: block; font-weight: 400 !important; color: var(--muted); font-size: .42em; letter-spacing: .14em; margin-top: 14px; }
.vpd-hero p.lead { max-width: 540px; color: var(--bone-2); font-size: 16.5px; line-height: 1.65; margin: 26px 0 32px; }
.vpd-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.vpd-hero-meta {
  position: absolute;
  right: 1.25rem; top: 2rem;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  line-height: 1.8;
  color: var(--dim);
  text-transform: uppercase;
}
.vpd-hero-meta b { color: var(--bone-2); font-weight: 500; }
@media (max-width: 760px) { .vpd-hero-meta { display: none; } }

/* stamp */
.vpd-stamp {
  display: inline-block;
  padding: 4px 10px;
  border: 2px solid var(--siren-red);
  color: var(--siren-red);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  transform: rotate(-3deg);
  opacity: .85;
}
.vpd-stamp.ok { border-color: var(--ok); color: var(--ok); }

/* ---------- ticker ---------- */
.vpd-ticker {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  background: var(--ink-1);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.vpd-ticker-label {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: var(--brass);
  color: #16120a;
  font-weight: 600;
  z-index: 1;
}
.vpd-ticker-track { display: flex; gap: 48px; padding: 10px 0 10px 24px; white-space: nowrap; animation: vpd-ticker 55s linear infinite; color: var(--bone-2); }
.vpd-ticker:hover .vpd-ticker-track { animation-play-state: paused; }
.vpd-ticker-track span::before { content: '//'; color: var(--brass); margin-right: 12px; }
@keyframes vpd-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- stats ---------- */
.vpd-stats { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); background: var(--ink-1); }
@media (min-width: 900px) { .vpd-stats { grid-template-columns: repeat(4, 1fr); } }
.vpd-stat { padding: 22px 22px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .vpd-stat { border-bottom: 0; } .vpd-stat:last-child { border-right: 0; } }
.vpd-stat-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); display: flex; align-items: center; gap: 6px; }
.vpd-stat-value { font-family: var(--font-heading); font-size: 54px; font-weight: 700; line-height: 1; color: var(--bone); margin-top: 12px; font-variant-numeric: tabular-nums; }
.vpd-stat-value.sm { font-size: 34px; padding-top: 10px; }
.vpd-stat-sub { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

/* ---------- module cards ---------- */
.vpd-modules { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 760px) { .vpd-modules { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .vpd-modules.three { grid-template-columns: repeat(3, 1fr); } }
.vpd-module {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 24px;
  background: var(--ink-1);
  color: var(--bone);
  text-decoration: none;
  overflow: hidden;
  transition: background .2s var(--ease);
}
.vpd-module:hover { background: var(--ink-2); }
.vpd-module .code { font-family: var(--font-mono); font-size: 11px; color: var(--dim); letter-spacing: .12em; }
.vpd-module .icon { position: absolute; right: 22px; top: 20px; font-size: 20px; color: var(--dim); transition: color .2s; }
.vpd-module:hover .icon { color: var(--brass); }
.vpd-module h3 { font-size: 26px; text-transform: uppercase; margin: auto 0 6px; padding-top: 32px; color: var(--bone); line-height: 1; }
.vpd-module p { font-size: 13.5px; color: var(--muted); line-height: 1.55; max-width: 440px; }
.vpd-module .go { margin-top: 16px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); display: flex; align-items: center; gap: 8px; }
.vpd-module .go i { transition: transform .2s var(--ease); }
.vpd-module:hover .go i { transform: translateX(4px); }
.vpd-module.has-photo { min-height: 280px; }
.vpd-module.has-photo .bg { position: absolute; inset: 0; z-index: 0; }
.vpd-module.has-photo .bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.8) brightness(.38) contrast(1.1); transition: filter .6s var(--ease), transform .8s var(--ease); }
.vpd-module.has-photo:hover .bg img { filter: grayscale(.2) brightness(.45) contrast(1.05); transform: scale(1.03); }
.vpd-module.has-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,10,10,.95) 0%, rgba(10,10,10,.2) 70%); z-index: 0; }
.vpd-module > *:not(.bg) { position: relative; z-index: 1; }

/* ---------- bulletin (announcements) ---------- */
.vpd-bulletin { border-top: 1px solid var(--line); }
.vpd-bulletin-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.5rem;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 640px) { .vpd-bulletin-item { grid-template-columns: 1fr; gap: .5rem; } }
.vpd-bulletin-date { font-family: var(--font-mono); font-size: 12px; color: var(--dim); line-height: 1.6; }
.vpd-bulletin-date b { display: block; color: var(--bone-2); font-weight: 500; font-size: 13px; }
.vpd-bulletin-cat { display: inline-block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); border: 1px solid rgba(255,210,0,.35); padding: 1px 6px; margin-right: 8px; }
.vpd-bulletin-item h3 { font-size: 22px; color: var(--bone); margin: 8px 0 6px; text-transform: none; letter-spacing: .01em !important; }
.vpd-bulletin-item p { font-size: 14px; color: var(--muted); line-height: 1.65; white-space: pre-line; max-width: 760px; }
.vpd-bulletin-item .by { margin-top: 10px; font-size: 12px; color: var(--dim); }
.vpd-pin { color: var(--siren-red); font-size: 11px; margin-left: 4px; }

/* ---------- gallery ---------- */
.vpd-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 1000px) { .vpd-gallery { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; } .vpd-gallery > :first-child { grid-row: span 2; } }
.vpd-gallery figure { margin: 0; position: relative; cursor: zoom-in; min-height: 180px; border-radius: 2px; }
.vpd-gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 14px 12px;
  background: linear-gradient(0deg, rgba(0,0,0,.85), transparent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bone-2);
  display: flex; justify-content: space-between; gap: 8px;
}
.vpd-gallery figcaption span:last-child { color: var(--dim); }

/* ---------- footer ---------- */
.vpd-footer {
  position: relative;
  z-index: 2;
  margin-top: 6rem;
  border-top: 1px solid var(--line);
  background: #080808;
}
.vpd-footer-grid {
  max-width: 1320px;
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 860px) { .vpd-footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.vpd-footer h4 { font-family: var(--font-mono) !important; font-size: 10.5px; letter-spacing: .16em !important; text-transform: uppercase; color: var(--dim); font-weight: 500 !important; margin-bottom: 14px; }
.vpd-footer a { display: block; color: var(--bone-2); font-size: 13.5px; text-decoration: none; padding: 4px 0; }
.vpd-footer a:hover { color: var(--brass-hi); }
.vpd-footer .mark { font-family: var(--font-heading); font-size: 34px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--bone); line-height: 1; }
.vpd-footer .motto { font-family: var(--font-heading); font-size: 15px; letter-spacing: .2em; color: var(--brass); text-transform: uppercase; margin-top: 8px; }
.vpd-footer .fine { border-top: 1px solid var(--line); max-width: 1320px; margin: 0 auto; padding: 1rem 1.25rem 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; color: var(--dim); text-transform: uppercase; }

/* ---------- flash ---------- */
.vpd-flash-wrap { max-width: 1320px; margin: 0 auto; padding: 0 1.25rem; position: relative; z-index: 40; }
.alert {
  display: flex !important;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 12px 14px 12px 16px !important;
  border-radius: 2px !important;
  border: 1px solid var(--line-2) !important;
  border-left: 3px solid var(--steel) !important;
  background: var(--ink-1) !important;
  color: var(--bone-2) !important;
  font-size: 14px;
  animation: vpd-in .35s var(--ease);
}
.alert-success { border-left-color: var(--ok) !important; }
.alert-danger { border-left-color: var(--siren-red) !important; }
.alert-warning { border-left-color: var(--warn) !important; }
.alert-info { border-left-color: var(--steel) !important; }
@keyframes vpd-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- command palette ---------- */
.vpd-cmdk {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  background: rgba(5,5,5, .72);
}
.vpd-cmdk.open { display: flex; }
.vpd-cmdk-box {
  width: min(620px, 92vw);
  background: var(--ink-1);
  border: 1px solid var(--line-2);
  border-top: 2px solid var(--brass);
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  animation: vpd-in .18s var(--ease);
}
.vpd-cmdk-input { display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.vpd-cmdk-input i { color: var(--dim); }
.vpd-cmdk-input input {
  flex: 1;
  height: 54px;
  background: transparent;
  border: 0;
  outline: none !important;
  color: var(--bone);
  font-size: 16px;
  font-family: var(--font-main);
}
.vpd-cmdk-input kbd { font-size: 10px; padding: 2px 6px; border: 1px solid var(--line-2); color: var(--dim); border-radius: 2px; }
.vpd-cmdk-list { max-height: 52vh; overflow-y: auto; padding: 6px; }
.vpd-cmdk-group { font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); padding: 10px 10px 6px; }
.vpd-cmdk-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 2px;
  color: var(--bone-2);
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
}
.vpd-cmdk-item .k { font-family: var(--font-mono); font-size: 12px; color: var(--brass); min-width: 62px; }
.vpd-cmdk-item .d { color: var(--muted); font-size: 13px; }
.vpd-cmdk-item i { width: 16px; text-align: center; color: var(--dim); }
.vpd-cmdk-item.sel { background: var(--ink-3); color: var(--bone); }
.vpd-cmdk-item.sel i { color: var(--brass); }
.vpd-cmdk-empty { padding: 28px; text-align: center; color: var(--dim); font-size: 13px; }
.vpd-cmdk-foot { display: flex; gap: 16px; padding: 8px 14px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 10px; color: var(--dim); letter-spacing: .06em; }

/* ---------- misc ---------- */
.vpd-totop {
  position: fixed; right: 18px; bottom: 18px; z-index: 45;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink-2); border: 1px solid var(--line-2); color: var(--muted);
  border-radius: 2px; cursor: pointer;
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity .2s, transform .2s;
}
.vpd-totop.show { opacity: 1; pointer-events: auto; transform: none; }
.vpd-totop:hover { color: var(--brass); border-color: var(--brass); }

.vpd-reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.vpd-reveal.in { opacity: 1; transform: none; }

.vpd-center-card {
  max-width: 460px;
  margin: 4.5rem auto 0;
  padding: 2.25rem 2rem;
  background: var(--ink-1);
  border: 1px solid var(--line-2);
  border-top: 2px solid var(--brass);
  position: relative;
  z-index: 2;
}
.vpd-progress { height: 2px; background: var(--ink-3); overflow: hidden; margin: 1.5rem 0 1rem; }
.vpd-progress span { display: block; height: 100%; width: 35%; background: var(--brass); animation: vpd-progress 1.1s var(--ease) infinite; }
@keyframes vpd-progress { from { transform: translateX(-100%); } to { transform: translateX(290%); } }

/* =========================================================================
   OVERRIDES — flatten legacy glow / glass / bubble styling site-wide
   ========================================================================= */
[class*="shadow-[0_0"], [class*="shadow-blue"], [class*="shadow-amber"], [class*="shadow-emerald"],
[class*="shadow-red"], [class*="shadow-indigo"], [class*="shadow-purple"], [class*="shadow-sky"] {
  box-shadow: none !important;
}
[class*="drop-shadow"] { filter: none !important; }
[class*="hover:-translate-y"]:hover { transform: none !important; }
.backdrop-blur, .backdrop-blur-sm, .backdrop-blur-md, .backdrop-blur-lg, .backdrop-blur-xl, .backdrop-blur-2xl {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
.rounded-3xl, .rounded-2xl { border-radius: 6px !important; }
.rounded-xl { border-radius: 4px !important; }
.rounded-lg { border-radius: 3px !important; }
.rounded-md { border-radius: 2px !important; }
.bg-clip-text { -webkit-text-fill-color: currentColor !important; background: none !important; }

.fivem-card, .surface-card, .card-glass, .officer-card, .market-item-card, .patrol-member-card, .hb-attachment-card {
  background: var(--ink-1) !important;
  border: 1px solid var(--line) !important;
  border-radius: 3px !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}
.fivem-card::before, .surface-card::before { display: none !important; }
.fivem-card:hover, .surface-card:hover, .officer-card:hover, .market-item-card:hover {
  transform: none !important;
  border-color: var(--line-2) !important;
  box-shadow: none !important;
  background: var(--ink-2) !important;
}

.btn-ui, .btn {
  border-radius: 2px !important;
  font-family: var(--font-heading) !important;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 700 !important;
  box-shadow: none !important;
}
.btn-ui:hover, .btn:hover { transform: none !important; box-shadow: none !important; }
.btn-ui.primary, .btn-primary { background: var(--steel) !important; color: #0d1218 !important; border-color: var(--steel) !important; }
.btn-ui.gold, .btn-gold { background: var(--brass) !important; color: #16120a !important; border-color: var(--brass) !important; }

.form-control, input[type="text"], input[type="number"], input[type="url"], input[type="search"], input[type="date"], input[type="datetime-local"], select, textarea {
  border-radius: 2px !important;
}
.form-control {
  background: var(--bg-input) !important;
  border: 1px solid var(--line-2) !important;
  color: var(--bone) !important;
}
.form-control:focus { border-color: var(--brass) !important; box-shadow: 0 0 0 3px rgba(255,210,0,.12) !important; }

.table-tactical th, .table-compact th { font-family: var(--font-mono); font-size: 10.5px !important; letter-spacing: .12em; color: var(--dim) !important; }

.ambient-particles-canvas, .ambient-abyss-bg, #site-preloader { display: none !important; }

.notif-flyout-box, .voice-dropdown-menu, .quick-role-dropdown-menu, .custom-modal-dialog, .avatar-zoom-box {
  border-radius: 3px !important;
  background: var(--ink-1) !important;
  border-color: var(--line-2) !important;
  box-shadow: 0 24px 60px rgba(0,0,0,.6) !important;
}
.notif-bell-btn { border-radius: 3px !important; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink-0); }
::-webkit-scrollbar-thumb { background: var(--ink-4); border: 2px solid var(--ink-0); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: #3a4146; }

/* =========================================================================
   v2 — home header over hero, siren light wash, join cards, minigame
   ========================================================================= */

/* header floats over the hero on the home page, turns solid on scroll */
.is-home .vpd-header {
  position: fixed;
  left: 0; right: 0;
  background: linear-gradient(180deg, rgba(5,5,5,.78), rgba(5,5,5,0));
  border-bottom-color: transparent;
  transition: background .3s var(--ease), border-color .3s;
}
.is-home .vpd-header.scrolled, .is-home .vpd-header:has(.vpd-drawer.open) { background: rgba(10,10,10,.95); border-bottom-color: var(--line); }
.is-home .vpd-flash-wrap { position: absolute; left: 0; right: 0; top: 64px; }

.vpd-hero { min-height: 100vh; min-height: 100svh; }
.vpd-hero-inner { padding-top: 8rem; padding-bottom: 9rem; }

/* police lightbar spill: red/blue double-flash washing over the photo */
.vpd-siren { position: absolute; inset: 0; z-index: -1; pointer-events: none; mix-blend-mode: screen; overflow: hidden; }
.vpd-siren i { position: absolute; display: block; opacity: 0; will-change: opacity; }
.vpd-siren .r, .vpd-siren .b { top: -25%; width: 85%; height: 135%; filter: blur(6px); }
.vpd-siren .r { left: 10%; background: radial-gradient(ellipse at 50% 28%, rgba(240,40,30,.9), rgba(240,40,30,.3) 40%, transparent 68%); animation: vpd-strobe-r 1.5s infinite; }
.vpd-siren .b { right: -18%; background: radial-gradient(ellipse at 50% 28%, rgba(45,100,255,.95), rgba(45,100,255,.32) 40%, transparent 68%); animation: vpd-strobe-b 1.5s infinite; }
/* reflections on the wet tarmac along the bottom */
.vpd-siren .rf, .vpd-siren .bf { bottom: -12%; height: 40%; width: 60%; filter: blur(14px); }
.vpd-siren .rf { left: 10%; background: radial-gradient(ellipse at 50% 100%, rgba(235,38,28,.5), transparent 70%); animation: vpd-strobe-r 1.5s infinite; }
.vpd-siren .bf { right: -5%; background: radial-gradient(ellipse at 50% 100%, rgba(40,95,255,.55), transparent 70%); animation: vpd-strobe-b 1.5s infinite; }
@keyframes vpd-strobe-r {
  0% { opacity: 1; } 8% { opacity: .3; } 13% { opacity: 1; } 22% { opacity: .35; }
  40%, 100% { opacity: .2; }
}
@keyframes vpd-strobe-b {
  0%, 45% { opacity: .2; } 50% { opacity: 1; } 58% { opacity: .3; } 63% { opacity: 1; } 72% { opacity: .35; }
  90%, 100% { opacity: .2; }
}
.vpd-hero-bg img { filter: grayscale(.45) contrast(1.15) brightness(.6) saturate(.9); }
/* v3: no wash over the photo — two low, soft light pools at the bottom edge breathe in turn */
.vpd-siren { mix-blend-mode: screen; }
.vpd-siren .r, .vpd-siren .b { display: none; }
.vpd-siren .rf, .vpd-siren .bf { bottom: -18%; height: 46%; width: 55%; filter: blur(30px); }
.vpd-siren .rf { left: 18%; background: radial-gradient(ellipse at 50% 100%, rgba(230,45,35,.55), transparent 70%); animation: vpd-breathe 9s ease-in-out infinite !important; }
.vpd-siren .bf { right: -8%; background: radial-gradient(ellipse at 50% 100%, rgba(50,105,255,.6), transparent 70%); animation: vpd-breathe 9s ease-in-out -4.5s infinite !important; }
@keyframes vpd-breathe { 0%, 100% { opacity: .15; } 50% { opacity: .75; } }

/* headline: chrome lettering catching a passing lightbar */
.vpd-hero h1 .word {
  display: inline-block;
  background: linear-gradient(100deg, var(--bone) 0%, var(--bone) 42%, #ffffff 46.5%, #ffb3aa 48.5%, #b4c8ff 51.5%, #ffffff 53.5%, var(--bone) 58%, var(--bone) 100%);
  background-size: 260% 100%;
  background-position: 120% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(-10px 0 34px rgba(230,50,40,.2)) drop-shadow(10px 0 34px rgba(60,110,255,.22));
  animation: vpd-sheen 8s cubic-bezier(.6,0,.2,1) 1.2s infinite;
}
@keyframes vpd-sheen { 0%, 62% { background-position: 120% 0; } 100% { background-position: -25% 0; } }

/* glow buttons */
.vpd-btn-brass { box-shadow: 0 0 0 0 rgba(255,210,0,0), 0 10px 30px -12px rgba(255,210,0,.55); transition: background .15s, box-shadow .3s var(--ease); }
.vpd-btn-brass:hover { box-shadow: 0 0 0 4px rgba(255,210,0,.14), 0 14px 40px -10px rgba(255,210,0,.75); }
.vpd-btn-ghost { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); background: rgba(10,10,10,.35); }
.vpd-btn-ghost:hover { box-shadow: 0 0 0 4px rgba(242,242,238,.06); }

/* join cards: gradient hairline border + accent glow on hover */
.vpd-join-card::before { display: none; }
.vpd-join-card {
  border-color: transparent;
  box-shadow: 0 24px 60px -24px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.05);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .2s;
}
.vpd-join-card::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 80%, transparent), rgba(242,242,238,.08) 40%, rgba(242,242,238,.04) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: .55;
  transition: opacity .3s;
}
.vpd-join-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px -26px color-mix(in srgb, var(--accent) 55%, transparent), inset 0 1px 0 rgba(255,255,255,.06);
}
.vpd-join-card:hover::after { opacity: 1; }
.vpd-join-card .ic { box-shadow: 0 0 28px -6px color-mix(in srgb, var(--accent) 70%, transparent); border-radius: 6px; }

/* stats + modules: faint top highlight so panels read as lit, not flat */
.vpd-stats, .vpd-modules, .vpd-game-teaser { box-shadow: inset 0 1px 0 rgba(255,255,255,.035); }
.vpd-stat-value { text-shadow: 0 0 30px rgba(242,242,238,.12); }
@keyframes vpd-wash-r {
  0%   { opacity: .15; }
  20%  { opacity: .7; }
  24%  { opacity: .25; }
  27%  { opacity: .85; }
  40%  { opacity: .55; }
  55%, 100% { opacity: .12; }
}
@keyframes vpd-wash-b {
  0%, 45% { opacity: .12; }
  70%  { opacity: .75; }
  74%  { opacity: .25; }
  77%  { opacity: .9; }
  90%  { opacity: .55; }
  100% { opacity: .12; }
}

/* little lightbar in the kicker */
.vpd-beacon { display: inline-flex; gap: 3px; margin-right: 4px; }
.vpd-beacon b { width: 14px; height: 5px; border-radius: 1px; display: block; }
.vpd-beacon b { width: 6px; height: 6px; border-radius: 50%; }
.vpd-beacon b:first-child { background: #e8352a; box-shadow: 0 0 10px 1px rgba(232,53,42,.8); animation: vpd-breathe 3s ease-in-out infinite; }
.vpd-beacon b:last-child { background: #3570ff; box-shadow: 0 0 10px 1px rgba(53,112,255,.8); animation: vpd-breathe 3s ease-in-out -1.5s infinite; }
.vpd-kicker.has-beacon::before { display: none; }

.vpd-scroll-cue {
  position: absolute; left: 50%; bottom: 7.5rem; transform: translateX(-50%);
  width: 22px; height: 34px; border: 1px solid rgba(242,242,238,.35); border-radius: 12px;
}
.vpd-scroll-cue::after {
  content: ''; position: absolute; left: 50%; top: 7px; width: 2px; height: 7px; margin-left: -1px;
  background: var(--bone-2); border-radius: 1px; animation: vpd-cue 1.8s var(--ease) infinite;
}
@keyframes vpd-cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@media (max-width: 760px) { .vpd-scroll-cue { display: none; } }

/* join cards straddling the hero edge */
.vpd-join { position: relative; z-index: 5; margin-top: -88px; }
.vpd-join-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 860px) { .vpd-join-grid { grid-template-columns: repeat(3, 1fr); } }
.vpd-join-card {
  position: relative;
  display: flex; align-items: center; gap: 16px;
  padding: 22px 22px 22px 20px;
  background: rgba(18,18,18,.92);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  color: var(--bone);
  text-decoration: none;
  overflow: hidden;
  transition: border-color .2s, transform .25s var(--ease), background .2s;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.vpd-join-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent, var(--brass)); }
.vpd-join-card:hover { transform: translateY(-3px); border-color: rgba(242,242,238,.3); background: rgba(24,24,24,.96); }
.vpd-join-card .ic {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; color: var(--accent, var(--brass));
  background: color-mix(in srgb, var(--accent, var(--brass)) 14%, transparent);
}
.vpd-join-card .tx { flex: 1; min-width: 0; }
.vpd-join-card .tx small { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.vpd-join-card .tx strong { display: block; font-family: var(--font-heading); font-size: 22px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; margin-top: 2px; line-height: 1.1; }
.vpd-join-card .tx span { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }
.vpd-join-card .go { color: var(--dim); transition: transform .2s var(--ease), color .2s; }
.vpd-join-card:hover .go { transform: translateX(4px); color: var(--bone); }

/* =========================== minigame =========================== */
.tk-page { max-width: 1240px; margin: 0 auto; padding-top: 1.5rem; }
.tk-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 22px; }
.tk-head h1 { font-size: clamp(48px, 7vw, 84px); color: var(--bone); margin: 8px 0 6px; }
.tk-head p { color: var(--muted); max-width: 520px; font-size: 15px; line-height: 1.6; }
.tk-sound { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); border-radius: 3px; cursor: pointer; font-size: 13px; }
.tk-sound.on { color: var(--brass-hi); border-color: rgba(255,210,0,.5); }

.tk-layout { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 980px) { .tk-layout { grid-template-columns: minmax(0, 1fr) 340px; } }

.tk-stage { background: var(--ink-1); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.tk-hud { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.tk-hud > div { padding: 10px 14px; border-right: 1px solid var(--line); }
.tk-hud-gap, .tk-hud-nitro { grid-column: span 2; }
@media (min-width: 720px) { .tk-hud { grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1.6fr; } .tk-hud-gap, .tk-hud-nitro { grid-column: auto; } }
.tk-hud-cell span, .tk-hud-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); display: flex; justify-content: space-between; gap: 6px; }
.tk-hud-cell b { display: block; font-family: var(--font-heading); font-size: 24px; font-weight: 700; color: var(--bone); line-height: 1.1; margin-top: 2px; font-variant-numeric: tabular-nums; }
.tk-hud-label b { color: var(--bone); font-weight: 500; }
.tk-hud-label kbd { font-size: 9px; border: 1px solid var(--line-2); padding: 0 4px; border-radius: 2px; }
.tk-meter { height: 6px; background: var(--ink-3); margin-top: 9px; overflow: hidden; }
.tk-meter span { display: block; height: 100%; background: var(--ok); transition: width .15s linear; }
.tk-meter span.warn { background: var(--siren-red); }
.tk-meter.nitro span { background: #3f6fd8; }
.tk-dmg { display: flex !important; gap: 4px; padding-top: 8px; }
.tk-dmg i { width: 16px; height: 10px; background: var(--ink-4); border-radius: 1px; }
.tk-dmg i.on { background: var(--brass); }

.tk-canvas-wrap { position: relative; background: #0c0c0c; display: flex; justify-content: center; }
#tk-canvas { display: block; width: auto; height: min(72vh, 720px); max-width: 100%; aspect-ratio: 480 / 720; }
.tk-banner {
  position: absolute; top: 18px; left: 50%; transform: translate(-50%, -12px);
  padding: 10px 18px; background: rgba(10,10,10,.9); border: 1px solid var(--line-2); border-left: 3px solid var(--brass);
  opacity: 0; transition: opacity .25s, transform .25s var(--ease); pointer-events: none; text-align: center; white-space: nowrap;
}
.tk-banner.show { opacity: 1; transform: translate(-50%, 0); }
.tk-banner strong { display: block; font-family: var(--font-heading); font-size: 20px; letter-spacing: .05em; text-transform: uppercase; color: var(--bone); }
.tk-banner span { font-size: 12px; color: var(--muted); }

.tk-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(8,9,10,.72); padding: 1.5rem; }
.tk-overlay.hidden { display: none; }
.tk-ov-box { max-width: 380px; text-align: center; }
.tk-ov-box h2 { font-size: 52px; color: var(--bone); }
.tk-ov-box p { color: var(--bone-2); font-size: 14.5px; line-height: 1.6; margin: 12px 0 20px; }
.tk-ov-stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-2); margin-bottom: 20px; }
.tk-ov-stats div { padding: 12px 6px; border-right: 1px solid var(--line); }
.tk-ov-stats div:last-child { border-right: 0; }
.tk-ov-stats b { display: block; font-family: var(--font-heading); font-size: 26px; color: var(--brass-hi); }
.tk-ov-stats span { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.tk-ov-note { margin-top: 14px; font-size: 13px; color: var(--muted); min-height: 1.2em; }
.tk-ov-note a { color: var(--brass-hi); }
.tk-ov-keys { margin-top: 18px; font-size: 12px; color: var(--dim); }
.tk-ov-keys kbd { font-size: 11px; border: 1px solid var(--line-2); padding: 1px 6px; border-radius: 2px; margin: 0 2px; color: var(--bone-2); }

.tk-touch { display: none; grid-template-columns: 1fr 1fr 1fr; border-top: 1px solid var(--line); }
.tk-touch button { height: 64px; background: var(--ink-2); border: 0; border-right: 1px solid var(--line); color: var(--bone); font-size: 20px; touch-action: none; user-select: none; }
.tk-touch button:active { background: var(--ink-4); }
.tk-touch button.n { font-family: var(--font-heading); font-size: 18px; text-transform: uppercase; letter-spacing: .08em; color: #8fb0ff; }
@media (hover: none) and (pointer: coarse) { .tk-touch { display: grid; } }
/* phones: the whole game (HUD + road + controls) fits one screen, nothing on top of it */
@media (max-width: 640px), (hover: none) and (pointer: coarse) {
  body:has(.tk-page) .dk { display: none !important; }
}
@media (max-width: 640px) {
  .tk-page { padding-top: .4rem; }
  .tk-head { margin-bottom: 8px; align-items: center; }
  .tk-head h1 { font-size: 30px; margin: 0; }
  .tk-head p, .tk-head .vpd-kicker { display: none; }
  .tk-hud > div { padding: 6px 8px; }
  .tk-hud-label, .tk-hud-cell span { font-size: 10px; }
  #tk-canvas { height: min(calc(100svh - 290px), 560px); min-height: 300px; touch-action: none; }
  .tk-touch button { height: 72px; }
}

.tk-side { display: flex; flex-direction: column; gap: 16px; }
.tk-card { background: var(--ink-1); border: 1px solid var(--line); border-radius: 4px; padding: 18px; }
.tk-card h3 { font-size: 22px; text-transform: uppercase; color: var(--bone); margin-bottom: 12px; }
.tk-personal { font-size: 13px; color: var(--muted); margin: -4px 0 12px; }
.tk-personal b { color: var(--brass-hi); font-family: var(--font-mono); }
.tk-board { list-style: none; margin: 0; padding: 0; }
.tk-board li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.tk-board li:first-child { border-top: 0; }
.tk-board .pos { width: 22px; font-family: var(--font-mono); font-size: 12px; color: var(--dim); }
.tk-board li:nth-child(1) .pos { color: var(--brass-hi); }
.tk-board img { width: 28px; height: 28px; border-radius: 2px; object-fit: cover; }
.tk-board .who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.tk-board .who b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-board .who small { font-size: 10.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-board .pts { font-family: var(--font-mono); font-size: 13px; color: var(--bone); }
.tk-board .empty { color: var(--dim); font-size: 13px; }
.tk-rules { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.tk-rules b { color: var(--bone); }
.chip { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 3px; font-size: 11px; font-weight: 700; color: #fff; vertical-align: -3px; }
.chip.n { background: #3f6fd8; } .chip.r { background: var(--ok); }

/* home teaser for the minigame */
.vpd-game-teaser {
  position: relative; display: grid; grid-template-columns: 1fr; gap: 0;
  border: 1px solid var(--line); background: var(--ink-1); overflow: hidden; border-radius: 4px;
}
@media (min-width: 900px) { .vpd-game-teaser { grid-template-columns: 1.1fr 1fr; } }
.vpd-game-teaser .txt { padding: 36px 32px; position: relative; z-index: 1; }
.vpd-game-teaser h2 { font-size: clamp(40px, 5vw, 64px); color: var(--bone); margin: 12px 0 10px; }
.vpd-game-teaser p { color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 440px; margin-bottom: 24px; }
.vpd-game-teaser .art { position: relative; min-height: 260px; background: #121416; overflow: hidden; }
.vpd-game-teaser .art::before {
  content: ''; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(180deg, transparent 0 22px, rgba(242,242,238,.35) 22px 44px) 33% 0 / 3px 100% no-repeat,
    repeating-linear-gradient(180deg, transparent 0 22px, rgba(242,242,238,.35) 22px 44px) 66% 0 / 3px 100% no-repeat,
    linear-gradient(90deg, #ffd200 0 3px, transparent 3px calc(100% - 3px), #ffd200 calc(100% - 3px)) 0 0 / 100% 100%;
  animation: vpd-road 0.6s linear infinite;
}
@keyframes vpd-road { to { background-position: 33% 44px, 66% 44px, 0 0; } }
.vpd-game-teaser .car { position: absolute; width: 38px; height: 72px; border-radius: 8px; left: 50%; }
.vpd-game-teaser .car.cop { bottom: 26px; margin-left: -19px; background: linear-gradient(180deg, #0d0e10 0 34%, #f2f2ee 34% 66%, #0d0e10 66%); }
.vpd-game-teaser .car.cop::after { content: ''; position: absolute; left: 6px; right: 6px; top: 32px; height: 5px; background: linear-gradient(90deg, #ff4a3a 50%, #4f86ff 50%); animation: vpd-bar .5s steps(2) infinite; }
@keyframes vpd-bar { 50% { background: linear-gradient(90deg, #5a1a16 50%, #16234a 50%); } }
.vpd-game-teaser .car.sus { top: 40px; margin-left: 40px; background: #b8432f; animation: vpd-weave 2.4s ease-in-out infinite; }
@keyframes vpd-weave { 50% { transform: translateX(-90px); } }
.vpd-game-teaser .art .wash { position: absolute; inset: 0; mix-blend-mode: screen; }
.vpd-game-teaser .art .wash .r, .vpd-game-teaser .art .wash .b { position: absolute; bottom: -40px; width: 70%; height: 70%; opacity: 0; }
.vpd-game-teaser .art .wash .r { left: 0; background: radial-gradient(circle at 60% 80%, rgba(235,38,28,.55), transparent 60%); }
.vpd-game-teaser .art .wash .b { right: 0; background: radial-gradient(circle at 40% 80%, rgba(40,95,255,.6), transparent 60%); }
.vpd-game-teaser:hover .art .wash .r { animation: vpd-strobe-r 1.5s infinite; }
.vpd-game-teaser:hover .art .wash .b { animation: vpd-strobe-b 1.5s infinite; }
.vpd-game-teaser .car.cop::after { animation-play-state: paused; }
.vpd-game-teaser:hover .car.cop::after { animation-play-state: running; }

@media (prefers-reduced-motion: reduce) {
  .vpd-siren i { opacity: .35 !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .vpd-reveal { opacity: 1; transform: none; }
}
