* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: #06090d; }
.ukryty { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.kabina {
  min-height: 100svh;
  display: grid; place-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 120% 90% at 50% 40%, #0d131a, #06090d 70%);
}
.scena { width: 100%; display: flex; justify-content: center; padding: 0 clamp(.75rem, 5vw, 4rem); }
#auto { width: min(100%, 1080px, 140vh); height: auto; overflow: visible; }

#lakier-stary { fill: #0a0e13; }
#polysk { opacity: .16; }

/* odbicie światła przesuwające się po karoserii */
#blysk { opacity: 0; animation: blysk 16s ease-in-out 2s infinite; }
@keyframes blysk {
  0% { transform: translateX(0); opacity: 0; }
  5% { opacity: .22; }
  26% { opacity: .22; }
  34%, 100% { transform: translateX(1650px); opacity: 0; }
}

/* iskra światła obiegająca sylwetkę */
#kontur-tlo { fill: none; stroke: #9fb6cc; stroke-opacity: .13; stroke-width: 1.2; }
#kontur {
  fill: none; stroke: #dcecfa; stroke-width: 1.6; stroke-linecap: round;
  stroke-dasharray: 150 850;
  filter: drop-shadow(0 0 5px rgba(170, 210, 255, .9));
  animation: kontur 13s linear infinite;
}
@keyframes kontur { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }

/* światła oddychają */
#reflektor { fill: #f3f8ff; animation: oddech 7s ease-in-out infinite; }
#snop { fill: #cfe4ff; animation: oddech-snop 7s ease-in-out infinite; }
#stop { fill: #ff1f2e; opacity: .35; animation: oddech-snop 7s ease-in-out -3.5s infinite; }
@keyframes oddech { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes oddech-snop { 0%, 100% { opacity: .05; } 50% { opacity: .32; } }

@media (prefers-reduced-motion: reduce) {
  #blysk, #kontur, #reflektor, #snop, #stop { animation: none; }
  #kontur { stroke-dasharray: none; stroke-opacity: .45; }
}
