html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #17141a;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.pd {
  box-sizing: border-box;
  width: min(408px, 88vw);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  color: #fff7e6;
}

.pd__map {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  height: clamp(104px, 34vw, 160px);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 16px;
  cursor: crosshair;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  background: radial-gradient(circle at 78% 24%, #c9e0bd 0 38px, transparent 38px), linear-gradient(72deg, transparent 0 10%, #bcd9ea 10% 17%, transparent 17%), repeating-linear-gradient(90deg, #fffdf7 0 7px, transparent 7px 29px), repeating-linear-gradient(0deg, #fffdf7 0 7px, transparent 7px 27px), #efe9dc;
}

.pd__map::before, .pd__map::after {
  content: "";
  position: absolute;
  border-radius: 4px;
  background: #e2dac9;
  pointer-events: none;
}

.pd__map::before {
  left: 13%;
  top: 17%;
  width: 64px;
  height: 30px;
}

.pd__map::after {
  left: 31%;
  top: 63%;
  width: 88px;
  height: 26px;
}

.pd__map:focus-visible {
  outline: 2px solid #2f6df6;
  outline-offset: 2px;
}

.pd__pin {
  position: absolute;
  width: 34px;
  height: 34px;
  margin: 0;
  transform: translate(-50%, -100%);
  color: #2f6df6;
  pointer-events: none;
}

.pd__pin-i {
  display: block;
}

.pd__pin svg {
  display: block;
}

.pd__shadow {
  position: absolute;
  width: 26px;
  height: 8px;
  margin: 0;
  border-radius: 50%;
  background: rgba(23, 20, 26, 0.5);
  transform: translate(-50%, -50%) scale(1);
  opacity: 0.3;
  pointer-events: none;
}

.pd__bar {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.pd__icon {
  display: inline-flex;
  color: #2f6df6;
}

.pd__txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
}

.pd__cap {
  font-size: 9px;
  line-height: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
}

.pd__val {
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pd__coord {
  font-size: 10px;
  line-height: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

.pd:not(.is-demo) .pd__pin.is-drop .pd__pin-i {
  animation-name: pd-drop;
  animation-duration: 600ms;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: 1;
}

.pd:not(.is-demo) .pd__shadow.is-drop {
  animation-name: pd-shadow;
  animation-duration: 600ms;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: 1;
}

@keyframes pd-drop {
  0% {
    opacity: 0;
    transform: translateY(-62px) scale(0.92);
    animation-timing-function: cubic-bezier(0.5, 0, 0.9, 0.4);
  }
  14% {
    opacity: 1;
    transform: translateY(-52px) scale(0.94);
    animation-timing-function: cubic-bezier(0.5, 0, 0.9, 0.4);
  }
  46% {
    opacity: 1;
    transform: translateY(0) scale(1.04);
  }
  64% {
    opacity: 1;
    transform: translateY(-13px) scale(0.98);
  }
  82% {
    opacity: 1;
    transform: translateY(0) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes pd-shadow {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.42);
  }
  14% {
    opacity: 0.16;
    transform: translate(-50%, -50%) scale(0.46);
  }
  46% {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(1.18);
  }
  64% {
    opacity: 0.22;
    transform: translate(-50%, -50%) scale(0.72);
  }
  82% {
    opacity: 0.36;
    transform: translate(-50%, -50%) scale(1.06);
  }
  100% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
  }
}
.pd.is-demo .pd__pin-i {
  animation-name: pd-loop;
  animation-duration: 2s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.pd.is-demo .pd__shadow {
  animation-name: pd-shadow-loop;
  animation-duration: 2s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes pd-loop {
  0% {
    opacity: 0;
    transform: translateY(-62px) scale(0.92);
  }
  6% {
    opacity: 1;
    transform: translateY(-62px) scale(0.92);
    animation-timing-function: cubic-bezier(0.5, 0, 0.9, 0.4);
  }
  30% {
    opacity: 1;
    transform: translateY(0) scale(1.05);
    animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  }
  42% {
    opacity: 1;
    transform: translateY(-14px) scale(0.97);
  }
  54% {
    opacity: 1;
    transform: translateY(0) scale(1.03);
  }
  62% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  80% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  90%, 100% {
    opacity: 0;
    transform: translateY(-62px) scale(0.92);
  }
}
@keyframes pd-shadow-loop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.42);
  }
  6% {
    opacity: 0.16;
    transform: translate(-50%, -50%) scale(0.44);
  }
  30% {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(1.2);
  }
  42% {
    opacity: 0.2;
    transform: translate(-50%, -50%) scale(0.7);
  }
  54% {
    opacity: 0.36;
    transform: translate(-50%, -50%) scale(1.08);
  }
  62% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
  }
  80% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
  }
  90%, 100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.42);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pd.is-demo .pd__pin-i,
  .pd.is-demo .pd__shadow,
  .pd:not(.is-demo) .pd__pin.is-drop .pd__pin-i,
  .pd:not(.is-demo) .pd__shadow.is-drop {
    animation: none !important;
  }
  .pd__map, .pd__bar {
    transition: none;
  }
}
