/* Built night cyberpunk arcade backdrop harmonized with the main 3D neon sign. */
.street-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  background: #04060e;
  isolation: isolate;
}

.street-atmosphere {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 48% 58% at 24% 62%, #00c4ff36, transparent 62%),
    radial-gradient(ellipse 46% 58% at 76% 62%, #ff26b032, transparent 62%),
    radial-gradient(ellipse 36% 45% at 50% 68%, #1d4e7838, transparent 64%),
    radial-gradient(ellipse 65% 42% at 50% 8%, #0e1a3666, transparent 70%),
    linear-gradient(#050814, #090d1d 58%, #05060e);
}

/* Soft volumetric light shafts descending from the overhead arcade roof. */
.street-beams {
  position: absolute;
  inset: -10% 0 0;
  background:
    conic-gradient(from 148deg at 22% -8%, transparent 0 12deg, #2be8ff16 18deg, transparent 28deg 360deg),
    conic-gradient(from 186deg at 78% -8%, transparent 0 10deg, #ff3bc215 18deg, transparent 28deg 360deg),
    radial-gradient(ellipse 60% 35% at 50% 78%, #00d2ff12, transparent 70%);
  mix-blend-mode: screen;
  opacity: .9;
}

.street-roof {
  position: absolute;
  top: -15%;
  left: 13%;
  width: 74%;
  height: 62%;
  overflow: hidden;
  border: 9px solid #0e1624;
  border-bottom: 0;
  border-radius: 50% 50% 0 0 / 28% 28% 0 0;
  box-shadow: 0 10px 18px #000d, inset 0 0 55px #000d;
  background:
    repeating-linear-gradient(90deg, transparent 0 7%, #070e18f2 7.1% 7.8%, #738aa844 7.9% 8.15%, transparent 8.25% 8.5%),
    repeating-linear-gradient(0deg, #6e87a81a 0 1px, #0a1422 2px 5px, transparent 6px 14px),
    linear-gradient(110deg, #0d1323, #172538 50%, #141225);
}

.street-roof::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid #59728f55;
  border-radius: 50% 50% 0 0 / 28% 28% 0 0;
  box-shadow: inset 0 0 0 12px #04081288;
}

.street-roof::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 46% 72% at 22% 100%, #00d4ff40, transparent 64%),
    radial-gradient(ellipse 46% 72% at 78% 100%, #ff2cb838, transparent 64%);
  mix-blend-mode: screen;
}

.roof-ribs {
  position: absolute;
  inset: -3% 0 0;
  background: repeating-linear-gradient(0deg, transparent 0 22%, #060b14 22.2% 23%, #829bc04f 23.2% 23.55%, transparent 23.65% 24%);
  transform: perspective(600px) rotateX(-10deg);
  transform-origin: center top;
}

/* Deep misty cyber alley vanishing point with sleek out-of-focus neon blades. */
.street-distance {
  position: absolute;
  left: 22%;
  right: 22%;
  top: 28%;
  bottom: 0;
  clip-path: polygon(0 0, 100% 0, 91% 100%, 9% 100%);
  background:
    radial-gradient(ellipse 68% 58% at 50% 72%, #183a5c66, transparent 68%),
    linear-gradient(90deg, #090e1c, #131c33 34%, #1a1b34 66%, #140d21);
  transform: translate3d(calc(var(--scene-nx, 0) * -7px), calc(var(--scene-ny, 0) * -4px), 0);
}

.street-distance::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, #050812e0, transparent 28% 72%, #04060fc4),
    repeating-linear-gradient(90deg, #070b16cc 0 4.5%, transparent 4.8% 13%),
    repeating-linear-gradient(0deg, transparent 0 11%, #050812b5 11.4% 12.6%);
  opacity: .88;
}

.street-distance::after {
  content: "";
  position: absolute;
  inset: 22% 0 4%;
  background:
    repeating-linear-gradient(90deg, transparent 0 4.8%, #22ecff55 5% 5.45%, transparent 5.6% 9.8%, #ff3cc84a 10% 10.45%, transparent 10.6% 16%),
    repeating-linear-gradient(0deg, transparent 0 15%, #7deeff14 15.2% 15.8%, transparent 16% 24%);
  mask-image: linear-gradient(transparent, #000 32% 76%, transparent);
}

.street-distance i {
  position: absolute;
  z-index: 1;
  border-radius: 2px;
  filter: blur(1.2px);
  opacity: .72;
}

/* Slender distant vertical neon banners & skyline light strips (softly defocused for depth). */
.street-distance i:nth-child(1) {
  left: 9%;
  top: 22%;
  width: 2.2%;
  height: 34%;
  background: linear-gradient(#9ef8ff, #00d4ff);
  box-shadow: 0 0 14px #00d8ff;
}

.street-distance i:nth-child(2) {
  left: 20%;
  top: 34%;
  width: 1.4%;
  height: 28%;
  background: linear-gradient(#ffb0ec, #ff28b8);
  box-shadow: 0 0 12px #ff2ab8;
  opacity: .62;
}

.street-distance i:nth-child(3) {
  left: 33%;
  top: 26%;
  width: 1.1%;
  height: 36%;
  background: linear-gradient(#90f4ff, #00c8ff);
  box-shadow: 0 0 12px #00d4ff;
  opacity: .55;
}

.street-distance i:nth-child(4) {
  left: 44%;
  top: 44%;
  width: 12%;
  height: 2.6%;
  background: linear-gradient(90deg, #00e5ff, #c9f8ff, #ff40c8);
  box-shadow: 0 0 16px #32d8ffaa;
  opacity: .68;
}

.street-distance i:nth-child(5) {
  left: 66%;
  top: 25%;
  width: 1.2%;
  height: 35%;
  background: linear-gradient(#ffa8e8, #ff28b8);
  box-shadow: 0 0 12px #ff28b8;
  opacity: .58;
}

.street-distance i:nth-child(6) {
  left: 78%;
  top: 32%;
  width: 1.5%;
  height: 30%;
  background: linear-gradient(#94f6ff, #00d0ff);
  box-shadow: 0 0 12px #00d0ff;
  opacity: .62;
}

.street-distance i:nth-child(7) {
  left: 88%;
  top: 20%;
  width: 2.2%;
  height: 36%;
  background: linear-gradient(#ffa2e6, #ff22b4);
  box-shadow: 0 0 14px #ff26b5;
}

/* Flanking cyberpunk building facades catching neon reflection. */
.street-building {
  position: absolute;
  top: -8%;
  bottom: -5%;
  width: 35%;
  overflow: hidden;
  background:
    repeating-linear-gradient(0deg, #060913 0 2.6%, #243347 2.8% 3.2%, #0a101d 3.5% 24%),
    linear-gradient(90deg, #070b15, #101929);
  box-shadow: inset 0 0 70px #000e, 0 12px 50px #000;
  transform-origin: top;
}

.street-building-left {
  left: -8%;
  clip-path: polygon(0 0, 100% 8%, 84% 100%, 0 100%);
  transform: skewY(5deg);
  --facade-light: #00d8ff48;
  --light-origin: right;
}

.street-building-right {
  right: -8%;
  clip-path: polygon(0 8%, 100% 0, 100% 100%, 16% 100%);
  transform: skewY(-5deg);
  --facade-light: #ff2cb844;
  --light-origin: left;
}

.building-edge {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 22%, #03060f 22.5% 25%, #556c863a 25.3% 26%, transparent 26.3% 30%);
  opacity: .88;
}

.building-windows {
  position: absolute;
  inset: 5% 8%;
  background:
    repeating-linear-gradient(90deg, #1b3d64 0 13%, #060913 13.5% 18.5%, transparent 19% 24%),
    repeating-linear-gradient(0deg, transparent 0 18.5%, #060912 19% 24%);
  background-blend-mode: multiply;
  border: 2px solid #070c17;
  box-shadow: inset 0 0 38px #000d;
}

.building-windows::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(114deg, transparent 22%, #a8d8f816 23% 27%, transparent 28% 58%, #c0dcf410 59% 65%, transparent 66%),
    radial-gradient(ellipse 68% 48% at var(--light-origin) 66%, var(--facade-light), transparent);
}

.street-building-right .building-windows {
  filter: hue-rotate(68deg) saturate(1.15);
}

.building-levels {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 22%, #060810 22.2% 23.3%, #58708d8c 23.5% 23.85%, #070a12 24% 25%, transparent 25.2% 30%);
}

.street-building::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 62% 56% at var(--light-origin) 66%, var(--facade-light), transparent);
  mix-blend-mode: screen;
}

/* Steel structural trusses and vertical masts. */
.street-truss {
  position: absolute;
  left: 10%;
  right: 10%;
  height: 8%;
  border-top: 3px solid #162235;
  border-bottom: 3px solid #0c1422;
  box-shadow: 0 4px 6px #000c, inset 0 1px #7ea5c459;
  background:
    repeating-linear-gradient(120deg, transparent 0 4%, #263852 4.1% 4.7%, #050a14 4.8% 5.2%, transparent 5.3% 9.3%),
    repeating-linear-gradient(60deg, transparent 0 4%, #263852 4.1% 4.7%, #050a14 4.8% 5.2%, transparent 5.3% 9.3%),
    linear-gradient(90deg, #091724b0, #0a101fb0 50%, #1a0b1eb0);
}

.street-truss-back {
  top: 58%;
  left: 22%;
  right: 22%;
  height: 5%;
  opacity: .72;
}

.street-truss-front {
  top: 38%;
  z-index: 1;
  border-top-color: #2c3e55;
  box-shadow: 0 6px 8px #02040ac8, inset 0 1px 1px #9cd2ee66;
}

.street-truss i {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(#6c839f, #394a62);
  box-shadow: 2px 0 #050912;
}

.street-truss i:nth-child(1) { left: 10%; }
.street-truss i:nth-child(2) { left: 21%; }
.street-truss i:nth-child(3) { left: 32%; }
.street-truss i:nth-child(4) { left: 43%; }
.street-truss i:nth-child(5) { left: 54%; }
.street-truss i:nth-child(6) { left: 65%; }
.street-truss i:nth-child(7) { left: 76%; }
.street-truss i:nth-child(8) { left: 87%; }

.street-mast {
  position: absolute;
  z-index: 1;
  top: 36%;
  bottom: 0;
  width: 2.2%;
  border-left: 2px solid #5c708a;
  border-right: 3px solid #070b14;
  background:
    repeating-linear-gradient(135deg, #25334a 0 3px, #070b15 3px 6px, transparent 6px 15px),
    #0e1524;
  box-shadow: 2px 0 6px #000c;
}

.street-mast-left { left: 11%; }
.street-mast-right { right: 11%; }

/* Overhead braided power cables + live neon data/power pulses. */
.street-cables {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 2;
}

.cable {
  fill: none;
  stroke-linecap: round;
}

.cable-dark { stroke: #050812; stroke-width: 5; }
.cable-cyan { stroke: #2de8ff; stroke-width: 1.5; filter: drop-shadow(0 0 4px #00d0ff); }
.cable-pink { stroke: #ff44c8; stroke-width: 1.5; filter: drop-shadow(0 0 4px #ff22b8); }
.cable.dim { opacity: .62; }

.cable-pulse {
  stroke-width: 2.6;
  stroke-dasharray: 7 93;
  stroke-dashoffset: 10;
  opacity: .92;
}

.cable-pulse-cyan {
  stroke: #d8ffff;
  filter: drop-shadow(0 0 5px #00e5ff);
  animation: cable-flow 6.8s linear infinite;
}

.cable-pulse-pink {
  stroke: #ffe0f8;
  filter: drop-shadow(0 0 5px #ff2ec2);
  animation: cable-flow-rev 8.2s linear -2.4s infinite;
}

@keyframes cable-flow {
  from { stroke-dashoffset: 10; }
  to { stroke-dashoffset: -100; }
}

@keyframes cable-flow-rev {
  from { stroke-dashoffset: -100; }
  to { stroke-dashoffset: 10; }
}

/* Wet-asphalt ground plane catching cyan & magenta reflections along the lower seam. */
.street-reflection {
  position: absolute;
  inset: auto 0 0;
  height: 22%;
  clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%);
  background:
    repeating-linear-gradient(0deg, #060914c4 0 1px, transparent 1px 6px),
    radial-gradient(ellipse 14% 120% at 32% 92%, #00dcff5e, transparent 72%),
    radial-gradient(ellipse 12% 118% at 68% 92%, #ff2cb858, transparent 72%),
    radial-gradient(ellipse 30% 70% at 50% 8%, #1e4b7345, transparent 70%),
    #080d18;
}

.street-vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  box-shadow: inset 0 0 105px #000c;
  background:
    linear-gradient(0deg, #050610a6, transparent 26%),
    linear-gradient(90deg, #02030985, transparent 18% 82%, #02030985);
}

@media (max-width: 650px) {
  .street-building { width: 43%; }
  .street-building-left { left: -14%; }
  .street-building-right { right: -14%; }
  .street-roof { left: 5%; width: 90%; }
  .street-truss-front { left: 2%; right: 2%; top: 40%; }
  .street-mast-left { left: 4%; }
  .street-mast-right { right: 4%; }
  .street-distance { left: 15%; right: 15%; }
  .street-vignette { box-shadow: inset 0 0 54px #000a; }
}

@media (prefers-reduced-motion: reduce) {
  .street-distance { transform: none; }
  .cable-pulse { display: none; }
}
