.install-figure {
  --install-ink: #f2f2e5;
  --install-accent: #c2f765;
  --install-background: #0a141d;
  --install-line: #30424d;
  margin: 0;
}

.install-diagram {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 1.8;
  border: 1px solid var(--install-line);
  border-radius: 1.25rem;
  background:
    radial-gradient(ellipse at 68% 66%, #192c30 0%, transparent 62%),
    var(--install-background);
}

.install-diagram::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(#92afbe12 1px, transparent 1px),
    linear-gradient(90deg, #92afbe12 1px, transparent 1px);
  background-size: 5% 9%;
  mask-image: radial-gradient(ellipse at 48% 56%, #000 16%, transparent 90%);
  content: "";
}

.install-road,
.install-crosswalk,
.install-cone {
  position: absolute;
  inset: 0;
}

.install-road,
.install-road::before {
  clip-path: polygon(0 78%, 35% 78%, 49% 67%, 26% 67%, 35% 59%, 62% 59%, 83% 44%, 100% 44%, 80% 59%, 100% 59%, 100% 67%, 69% 67%, 56% 78%, 100% 78%, 100% 95%, 0 95%);
}

.install-road {
  background: #526570;
}

.install-road::before,
.install-road::after,
.install-cone::before,
.install-cone::after {
  position: absolute;
  inset: 0;
  content: "";
}

.install-road::before {
  inset: 2px 0;
  background: linear-gradient(165deg, #2b3c46, #18242e 78%);
}

.install-road::after {
  background: repeating-linear-gradient(90deg, #8c9b9666 0 5%, transparent 5% 8%);
  clip-path: polygon(0 86%, 42% 86%, 43% 86.4%, 0 86.4%, 0 86%, 58% 86%, 100% 86%, 100% 86.4%, 58% 86.4%, 58% 86%);
}

.install-crosswalk {
  background: repeating-linear-gradient(138deg, #d7e2d77a 0 0.5%, transparent 0.5% 1.3%);
  clip-path: polygon(59% 69%, 80% 69%, 74% 74%, 52% 74%);
}

.install-cone {
  clip-path: polygon(33.5% 28%, 89% 59%, 54% 78%);
  background: linear-gradient(130deg, #c2f76509 26%, #c2f76542 74%, #c2f76515 100%);
}

.install-cone::before {
  clip-path: polygon(33.5% 28%, 89% 59%, 88.3% 59.2%, 34.7% 29.2%, 54.5% 77.7%, 54% 78%);
  background: #c2f76599;
}

.install-cone::after {
  background: repeating-linear-gradient(0deg, transparent 0 5.5%, #c2f76525 5.5% 5.8%);
  mask-image: linear-gradient(90deg, transparent 43%, #000 76%);
}

.install-pole {
  position: absolute;
  inset: 19% auto 14% 17.8%;
  width: 1.7%;
  border-radius: 0.25rem 0.25rem 0 0;
  background: linear-gradient(90deg, #475b68, #bfcdca 39%, #778f98 66%, #405460);
  box-shadow: 2px 0 5px #03090ebb;
}

.install-pole::after {
  position: absolute;
  inset: auto -72% -2%;
  height: 5%;
  border-radius: 45% 45% 15% 15%;
  background: #71838a;
  box-shadow: 0 3px 4px #03090ebb;
  content: "";
}

.install-arm {
  position: absolute;
  inset: 22% auto auto 18.7%;
  width: 12.5%;
  height: 5%;
  border-top: 2px solid #b8c8c6;
  border-right: 2px solid #b8c8c6;
  border-radius: 0 0.45rem 0 0;
  filter: drop-shadow(1px 2px 1px #01080c);
}

.install-camera {
  position: absolute;
  top: 24.5%;
  left: 27%;
  width: 7%;
  aspect-ratio: 2.4;
  border: 1px solid #ebecde;
  border-radius: 17% 16% 16% 23%;
  background: linear-gradient(180deg, #e5e9d9 0 35%, #a9b4a7 95%);
  transform: rotate(15deg);
  box-shadow: 0 3px 5px #02070bba;
}

.install-camera::after {
  position: absolute;
  inset: 11% -7% 10% auto;
  width: 25%;
  border: 1px solid #768972;
  border-radius: 23%;
  background: radial-gradient(circle, var(--install-accent) 0 22%, #2e3f37 28% 42%, #101d28 47%);
  content: "";
}

.install-cabinet {
  position: absolute;
  inset: 58% auto 17% 18.9%;
  width: 9.2%;
  border: 1px solid #abbab4;
  border-right: 3px solid #718587;
  border-radius: 7% 8% 8% 7%;
  background: linear-gradient(118deg, #b3c0b7, #7b9194);
  box-shadow: 5px 5px 6px #03090e99;
}

.install-cabinet::before {
  position: absolute;
  inset: 8% 10%;
  border: 1px solid #40545c8c;
  border-radius: 8%;
  content: "";
}

.install-cabinet::after {
  position: absolute;
  inset: 44% 17% auto auto;
  width: 15%;
  height: 7%;
  border-radius: 40%;
  background: #324753;
  content: "";
}

.install-marker,
.install-legend li > span {
  display: grid;
  width: 1.6em;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: var(--install-accent);
  color: var(--install-background);
  font-size: 0.875rem;
  font-weight: 750;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.install-marker {
  position: absolute;
  font-size: clamp(0.75rem, 1.6vw, 1rem);
  box-shadow: 0 0 0 3px #0a141daa;
}

.install-marker::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--install-leader);
  border-top: 1px dashed #c2f76599;
  transform: rotate(var(--install-angle)) translateX(1em);
  transform-origin: left;
  content: "";
}

.install-marker-camera {
  --install-angle: 148deg;
  --install-leader: clamp(0.55rem, 2vw, 1.6rem);
  top: 12.5%;
  left: 37%;
}

.install-marker-cabinet {
  --install-angle: 1deg;
  --install-leader: clamp(0.55rem, 2vw, 1.6rem);
  top: 63%;
  left: 8.5%;
}

.install-marker-view {
  --install-angle: 145deg;
  --install-leader: clamp(0.7rem, 2vw, 1.7rem);
  top: 42.5%;
  left: 80%;
}

.install-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.3rem;
  margin: 0;
  padding: 0.9rem 0 0;
  list-style: none;
  color: var(--install-ink);
}

.install-legend li {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  font-size: 0.875rem;
  line-height: 1.35;
}

.install-legend li > span {
  flex: none;
}

@media (max-width: 38rem) {
  .install-diagram {
    border-radius: 0.9rem;
  }

  .install-legend {
    gap: 0.6rem 1rem;
  }
}
