/* =============================================================
   FIXED DIAGNOSTIC BACKDROP
   ============================================================= */
#backdrop {
  position: absolute;
  inset: 0 0 auto;
  z-index: 0;
  height: 100vh;
  height: 100svh;
  background: #050505;
  overflow: hidden;
}
.bg-photo {
  position: absolute; inset: -6% -2%;
  background: #050505 image-set(url("../img/hero.webp") type("image/webp"), url("../img/hero.png") type("image/png")) center right / cover no-repeat;
  transform: scale(1.04);
  animation: kenburns 36s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenburns {
  0% { transform: scale(1.04) translate3d(0, 0, 0); }
  100% { transform: scale(1.1) translate3d(-1.2%, 1%, 0); }
}
/* Lightweight animated canvas: bay grid, scan sweep, and sensor points. */
#bay-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: .76; mix-blend-mode: screen;
  transition: opacity .6s ease;
}
.bay-light {
  position: absolute;
  pointer-events: none;
  width: 38vw;
  height: 38vw;
  min-width: 360px;
  min-height: 360px;
  border-radius: 50%;
  filter: blur(46px);
  opacity: .28;
  mix-blend-mode: screen;
  animation: bayLight 18s ease-in-out infinite alternate;
}
.bay-light-left {
  left: -12vw;
  top: 18vh;
  background: rgba(255,212,0,.34);
}
.bay-light-right {
  right: -15vw;
  bottom: 6vh;
  background: rgba(255,43,43,.24);
  animation-delay: -3s;
}
@keyframes bayLight {
  0% { transform: translate3d(0, 0, 0) scale(.92); opacity: .2; }
  100% { transform: translate3d(4vw, -2vh, 0) scale(1.08); opacity: .36; }
}
.vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 60% 45%, transparent 40%, rgba(0,0,0,.55) 100%),
    linear-gradient(180deg, rgba(0,0,0,.35), transparent 22%, transparent 72%, rgba(0,0,0,.6));
}

.garage-hud {
  position: fixed;
  inset: auto 28px 28px auto;
  z-index: 8;
  width: min(330px, calc(100vw - 56px));
  display: grid;
  gap: 10px;
  pointer-events: none;
  color: #fff;
}
.garage-hud::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.025) 0 1px, transparent 1px 8px);
  mix-blend-mode: screen;
  opacity: .28;
  animation: scanline 48s linear infinite;
}
@keyframes scanline {
  0% { transform: translateY(-16px); }
  100% { transform: translateY(16px); }
}
.hud-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,212,0,.32);
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(5,5,5,.7), rgba(20,20,22,.48));
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
}
.hud-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,212,0,.08), transparent);
  transform: translateX(-100%);
  animation: hudSweep 28s ease-in-out infinite;
}
@keyframes hudSweep {
  0%, 28%, 100% { transform: translateX(-100%); }
  54% { transform: translateX(100%); }
}
.hud-panel-primary { padding: 16px; }
.hud-label, .hud-panel-secondary span {
  display: block;
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hud-panel-primary strong {
  display: block;
  margin: 5px 0 12px;
  font-family: var(--font-head);
  font-size: 1.05rem;
  text-transform: uppercase;
}
.hud-meter {
  display: block;
  height: 6px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
}
.hud-meter i {
  display: block;
  width: 72%;
  height: 100%;
  background: linear-gradient(90deg, var(--yellow), #fff2a0);
  box-shadow: 0 0 20px rgba(255,212,0,.44);
}
.hud-panel-secondary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 14px;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: .76rem;
}
.hud-panel-secondary b {
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
}
body.zombie-mode .garage-hud .hud-panel {
  border-color: rgba(255,43,43,.58);
  box-shadow: 0 0 28px rgba(255,43,43,.18), 0 14px 40px rgba(0,0,0,.4);
}
body.zombie-mode .hud-label,
body.zombie-mode .hud-panel-secondary span {
  color: var(--danger);
}
body.zombie-mode .hud-meter i { background: linear-gradient(90deg, var(--danger), #ffd400); }

/* Minimal scroll cue — a simple animated chevron, no HUD readouts */
.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  z-index: 5; width: 22px; height: 34px; border: 1px solid rgba(255,255,255,.4); border-radius: 12px;
  transition: opacity .4s ease;
}
.scroll-cue::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 4px; margin-left: -2px;
  background: var(--yellow); border-radius: 50%; animation: cueDrop 1.8s ease-in-out infinite;
}
.scroll-cue.hide { opacity: 0; }
@keyframes cueDrop { 0% { transform: translateY(0); opacity: 1; } 70% { opacity: 0; } 100% { transform: translateY(14px); opacity: 0; } }

body.service-bay-active #bay-canvas { opacity: .08; }
body.service-bay-active .bg-photo { opacity: .32; }
body.service-bay-active .garage-hud { opacity: .3; }
