/* PSG v20 — shared live radar for the public introduction and location pages. */
.public-hero-visual.radar-enabled {
  display: grid;
  place-items: center;
  background: transparent;
}

.location-map.location-radar-shell {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 48%, rgba(212, 168, 62, 0.09), transparent 36%),
    linear-gradient(145deg, #111917, #080d10 65%, #070b0e);
}

.public-hero-visual.radar-enabled {
  mask-image: none;
}

.public-hero-visual.radar-enabled::before,
.public-hero-visual.radar-enabled::after {
  display: none;
}

.location-map.location-radar-shell::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at center, #000, transparent 73%);
  content: "";
}

.entry-radar {
  position: relative;
  z-index: 1;
  width: min(35vw, 430px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(216, 174, 78, 0.23);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(216, 174, 78, 0.08), rgba(216, 174, 78, 0.018) 57%, transparent 58%),
    rgba(5, 10, 12, 0.18);
  box-shadow:
    0 0 0 22px rgba(216, 174, 78, 0.014),
    0 0 80px rgba(212, 166, 55, 0.08);
}

.entry-radar::before,
.entry-radar::after {
  position: absolute;
  z-index: 1;
  background: rgba(216, 174, 78, 0.15);
  content: "";
}

.entry-radar::before {
  top: 50%;
  left: 3%;
  width: 94%;
  height: 1px;
}

.entry-radar::after {
  top: 3%;
  left: 50%;
  width: 1px;
  height: 94%;
}

.entry-radar-ring {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(216, 174, 78, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.entry-radar .ring-one {
  width: 74%;
  height: 74%;
}

.entry-radar .ring-two {
  width: 48%;
  height: 48%;
}

.entry-radar .ring-three {
  width: 22%;
  height: 22%;
}

.entry-radar-sweep {
  position: absolute;
  z-index: 2;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 277deg,
    rgba(222, 181, 81, 0.035) 300deg,
    rgba(222, 181, 81, 0.22) 349deg,
    rgba(246, 214, 132, 0.56) 359deg,
    transparent 360deg
  );
  animation: publicRadarSweep 7s linear infinite;
  transform-origin: center;
}

@keyframes publicRadarSweep {
  to { transform: rotate(360deg); }
}

.entry-radar-core {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(216, 174, 78, 0.25);
  border-radius: 50%;
  background: rgba(7, 12, 15, 0.94);
  box-shadow: 0 0 38px rgba(216, 174, 78, 0.13);
}

.entry-radar-core img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.14));
}

.entry-radar-node {
  position: absolute;
  z-index: 5;
  width: 8px;
  height: 8px;
  border: 2px solid #091014;
  border-radius: 50%;
  background: #f2cf78;
  box-shadow: 0 0 12px rgba(242, 207, 120, 0.8);
}

.entry-radar .node-one {
  top: 22%;
  left: 34%;
}

.entry-radar .node-two {
  right: 19%;
  bottom: 34%;
}

.entry-radar .node-three {
  bottom: 18%;
  left: 27%;
}

.entry-radar > small {
  position: absolute;
  z-index: 5;
  right: 6%;
  bottom: 4%;
  color: #77878d;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.entry-radar-intro {
  transform: translateX(2%);
  box-shadow:
    0 0 0 22px rgba(216, 174, 78, 0.012),
    0 0 95px rgba(212, 166, 55, 0.1);
}

.radar-enabled .hero-command-card {
  right: 1%;
  bottom: -15%;
  width: 210px;
  border-radius: 14px;
  backdrop-filter: blur(14px);
}

.public-header-signal {
  position: absolute;
  top: calc(100% + 18px);
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(80, 215, 160, 0.15);
  border-radius: 999px;
  color: #8fa4b0;
  background: rgba(8, 16, 20, 0.72);
  font-size: 9px;
  line-height: 1;
  backdrop-filter: blur(12px);
}

.public-header-signal i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #50d7a0;
  box-shadow: 0 0 14px rgba(80, 215, 160, 0.75);
}

.entry-radar-location {
  width: min(78%, 440px);
}

.location-radar-caption {
  position: absolute;
  z-index: 4;
  bottom: 24px;
  left: 26px;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 4px 8px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 13px;
  background: rgba(7, 13, 16, 0.76);
  backdrop-filter: blur(14px);
}

.location-radar-caption i {
  grid-row: 1 / 3;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #50d7a0;
  box-shadow: 0 0 14px rgba(80, 215, 160, 0.75);
}

.location-radar-caption span {
  color: #d8ad4c;
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.15em;
}

.location-radar-caption strong {
  color: #dfe7e9;
  font-size: 9px;
  font-weight: 720;
}

@media (max-width: 1180px) {
  .entry-radar-intro {
    width: min(37vw, 390px);
  }
}

@media (max-width: 1000px) {
  .entry-radar-intro {
    width: min(68vw, 380px);
  }

  .entry-radar-location {
    width: min(72vw, 420px);
  }
}

@media (max-width: 640px) {
  .public-hero-visual.radar-enabled {
    min-height: 350px;
    margin-bottom: -24px;
  }

  .entry-radar-intro,
  .entry-radar-location {
    width: min(82vw, 330px);
  }

  .entry-radar-core {
    width: 78px;
    height: 78px;
  }

  .entry-radar-core img {
    width: 62px;
    height: 62px;
  }

  .radar-enabled .hero-command-card {
    right: 0;
    bottom: -10%;
    width: 180px;
    padding: 12px 14px;
  }

  .radar-enabled .hero-command-card strong {
    font-size: 18px;
  }

  .public-header-signal {
    top: calc(100% + 10px);
    padding: 7px 9px;
    font-size: 8px;
  }

  .public-hero.entry-slide {
    padding-top: 150px;
  }

  .location-radar-caption {
    bottom: 16px;
    left: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .entry-radar-sweep {
    animation: none;
  }
}
