.faida-visual {
  --faida-map-road: #35304f;
  --faida-map-route: #a896ff;
  position: relative;
  isolation: isolate;
  min-inline-size: 0;
  min-block-size: 390px;
  overflow: hidden;
  background: radial-gradient(ellipse at 48% 44%, #29223f, #171629 68%, #111426);
}

.faida-map {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-image:
    repeating-linear-gradient(25deg, transparent 0 51px, #684e8433 52px 53px, transparent 54px 86px),
    repeating-linear-gradient(111deg, transparent 0 44px, #765f9942 45px 46px, transparent 47px 81px);
  mask-image: radial-gradient(ellipse at 50% 48%, #000 54%, #0009 80%, #0003);
}

.faida-map::before,
.faida-map::after {
  position: absolute;
  content: "";
}

.faida-map::before {
  inset: 0;
  background: #403457;
  clip-path: polygon(0 95%, 20% 83%, 34% 80%, 56% 68%, 66% 68%, 80% 76%, 100% 66%, 100% 69%, 81% 80%, 66% 72%, 57% 72%, 35% 84%, 21% 87%, 0 99%);
}

.faida-map::after {
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, transparent 52%, #11142695 94%);
}

.faida-map i,
.faida-phone-map i {
  position: absolute;
  display: block;
}

.faida-map i:nth-child(-n + 4) {
  width: 112%;
  height: 5px;
  border-block: 1px solid #8f74b23c;
  background: var(--faida-map-road);
  transform-origin: left center;
}

.faida-map i:nth-child(1) { top: 15%; left: -12%; transform: rotate(25deg); }
.faida-map i:nth-child(2) { top: 48%; left: -12%; transform: rotate(-24deg); }
.faida-map i:nth-child(3) { top: 108%; left: 1%; transform: rotate(-57deg); }
.faida-map i:nth-child(4) { top: -8%; left: 65%; transform: rotate(62deg); }

.faida-map i:nth-child(5) {
  inset: 11% auto auto 12%;
  width: 18%;
  height: 17%;
  border: 1px solid #80769d32;
  border-radius: 16% 35% 22% 34%;
  background: #34334c;
  transform: rotate(-22deg);
}

.faida-map i:nth-child(6) {
  right: 7%;
  bottom: 19%;
  width: 18%;
  height: 16%;
  border: 1px solid #9b87bd24;
  border-radius: 20% 38% 28% 9%;
  background: #2e3047;
  transform: rotate(27deg);
}

.faida-map i:nth-child(7) {
  z-index: 1;
  inset: 0;
  filter: drop-shadow(0 0 6px #9977ffab);
}

.faida-map i:nth-child(7)::after {
  position: absolute;
  inset: 0;
  content: "";
  background: var(--faida-map-route);
  clip-path: polygon(14% 63.6%, 26% 63.6%, 43% 45.6%, 60% 45.6%, 74% 27.6%, 85% 27.6%, 85% 28.4%, 74.5% 28.4%, 60.5% 46.4%, 43.5% 46.4%, 26.5% 64.4%, 14% 64.4%);
}

.faida-marker {
  position: absolute;
  z-index: 2;
  width: 11px;
  height: 11px;
  transform: translate(-50%, -50%);
  border: 3px solid var(--faida-map-route);
  border-radius: 50%;
  background: #231939;
  box-shadow: 0 0 0 7px #aa97ff20;
}

.faida-marker-start { top: 64%; left: 14%; }
.faida-marker-end { top: 28%; left: 85%; background: #f0eaff; }

.faida-phone {
  position: absolute;
  z-index: 3;
  top: 49%;
  left: 51%;
  display: flex;
  flex-direction: column;
  width: clamp(144px, 36%, 176px);
  aspect-ratio: 0.57;
  overflow: hidden;
  transform: translate(-50%, -50%) rotate(9deg);
  border: 5px solid #1e192d;
  border-radius: 26px;
  outline: 1px solid #aaa0c5;
  background: #f8f6fe;
  box-shadow: 0 0 0 3px #4c4162, 12px 20px 34px #080611b5;
  color: #201a2d;
}

.faida-phone-camera {
  position: absolute;
  z-index: 2;
  top: 6px;
  left: 50%;
  width: 35px;
  height: 8px;
  transform: translateX(-50%);
  border-radius: 8px;
  background: #201a2d;
}

.faida-phone-brand {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 37px;
  padding: 11px 12px 0;
  color: transparent;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
}

.faida-phone-brand::after {
  position: absolute;
  inset: 17px auto 0 12px;
  width: 45px;
  content: "";
  background: url(assets/faida-wordmark-dark.webp) left center / contain no-repeat;
}

.faida-phone-map {
  position: relative;
  flex: 1;
  min-height: 0;
  margin: 2px 8px 0;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  background:
    repeating-linear-gradient(24deg, transparent 0 17px, #fdfcff 18px 20px, transparent 21px 29px),
    repeating-linear-gradient(115deg, transparent 0 14px, #fdfcff 15px 17px, transparent 18px 24px),
    #e5def2;
}

.faida-phone-map::before,
.faida-phone-map::after {
  position: absolute;
  content: "";
}

.faida-phone-map::before {
  top: 21%;
  right: -8%;
  width: 40%;
  height: 39%;
  transform: rotate(-18deg);
  border-radius: 29% 0 0 24%;
  background: #d6cbeb;
}

.faida-phone-map::after {
  inset: 0;
  background: #6b49bf;
  clip-path: polygon(22% 74%, 45% 74%, 45% 50%, 67% 38%, 67% 24%, 70% 24%, 70% 40%, 48% 52%, 48% 76%, 22% 76%);
}

.faida-phone-map i:nth-child(-n + 2) {
  z-index: 1;
  width: 9px;
  height: 9px;
  transform: translate(-50%, -50%);
  border: 2px solid #6b49bf;
  border-radius: 50%;
  background: #fff;
}

.faida-phone-map i:nth-child(1) { top: 75%; left: 22%; }
.faida-phone-map i:nth-child(2) { top: 24%; left: 68.5%; background: #6b49bf; box-shadow: 0 0 0 3px #c9b5f5; }
.faida-phone-map i:nth-child(3) { top: 15%; left: 16%; width: 23%; height: 12%; border-radius: 26%; background: #d9cdec; transform: rotate(17deg); }
.faida-phone-map i:nth-child(4) { bottom: -5%; left: 44%; width: 45%; height: 25%; border-radius: 31%; background: #d8cbeb; transform: rotate(-33deg); }

.faida-phone-panel {
  position: relative;
  display: grid;
  gap: 6px;
  margin-top: -7px;
  padding: 15px 10px 12px;
  border-top: 1px solid #e2d8f1;
  border-radius: 12px 12px 0 0;
  background: #fcfaff;
  text-align: left;
}

.faida-phone-panel::before {
  position: absolute;
  top: 5px;
  left: 50%;
  width: 22px;
  height: 2px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: #cdc3de;
  content: "";
}

.faida-phone-panel strong {
  font-size: 13px;
  font-weight: 750;
  line-height: 1.1;
}

.faida-phone-panel > span {
  display: block;
  padding: 6px;
  border-radius: 5px;
  background: #eee8f7;
  color: #544767;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.faida-phone-panel > .faida-phone-action {
  background: #5c38ac;
  color: #fff;
  text-align: center;
}

.faida-visual-caption {
  position: absolute;
  z-index: 2;
  right: 1rem;
  bottom: 0.875rem;
  color: #c9bfe1;
  font-size: 0.75rem;
  line-height: 1.2;
}

@media (max-width: 540px) {
  .faida-visual { min-block-size: 320px; }
  .faida-phone { width: clamp(140px, 39%, 151px); }
}

@media (max-width: 360px) {
  .faida-visual { min-block-size: 290px; }
  .faida-phone { width: 132px; }
  .faida-phone-panel { padding-inline: 8px; }
}
