/* Light is rendered at device resolution; device artwork stays on top. */
.hardware-sparkles {
  position: absolute;
  top: 0;
  z-index: 0;
  display: block;
  max-width: none;
  pointer-events: none;
  user-select: none;
  opacity: 0;
  transition: opacity 850ms cubic-bezier(.2,.7,.2,1);
  contain: layout style;
}

[data-network-ready="true"] > .hardware-sparkles {
  opacity: 1;
  transition-delay: 300ms;
}

/* Keep the SVG as the crisp, static fibre and no-canvas fallback. */
[data-network-particles="ready"] .network-stream {
  display: none;
}

[data-network-particles="ready"] .network-packet {
  animation-play-state: paused !important;
}

[data-network-particles="ready"] .network-rail--bed {
  opacity: .075;
  stroke-width: 3.6;
  filter: drop-shadow(0 0 2px currentColor);
}

[data-network-particles="ready"] .network-rail--line {
  opacity: .33;
  stroke-width: .72;
}

[data-network-particles="ready"] .network-route--uplink .network-rail--line {
  opacity: .40;
}

@media (max-width: 620px) {
  [data-network-particles="ready"] .network-rail--line { stroke-width: .6; }
  [data-network-particles="ready"] .network-rail--bed { stroke-width: 2.7; opacity: .065; }
}

@media (prefers-reduced-motion: reduce) {
  .hardware-sparkles { display: none; transition: none; }
}
