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

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

.cb {
  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: #17141a;
  --rx: 92px;
  --ry: 40px;
}

.cb__map {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  height: clamp(104px, 34vw, 160px);
  border-radius: 16px;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  background: radial-gradient(circle at 16% 78%, #c9e0bd 0 34px, transparent 34px), linear-gradient(100deg, transparent 0 74%, #bcd9ea 74% 82%, transparent 82%), repeating-linear-gradient(90deg, #fffdf7 0 7px, transparent 7px 31px), repeating-linear-gradient(0deg, #fffdf7 0 7px, transparent 7px 25px), #efe9dc;
}

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

.cb__map::before {
  left: 8%;
  top: 12%;
  width: 70px;
  height: 24px;
}

.cb__map::after {
  right: 9%;
  bottom: 10%;
  width: 58px;
  height: 30px;
}

.cb__group {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cb__pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  color: #2f6df6;
  transform-origin: 50% 100%;
  transform: translate(-50%, -100%) translate(0, 0) scale(0.3);
  opacity: 0;
  transition: transform 300ms cubic-bezier(0.2, 1.4, 0.4, 1), opacity 300ms cubic-bezier(0.2, 1.4, 0.4, 1);
  transition-delay: var(--d);
}

.cb__pin svg {
  display: block;
}

.cb.is-open .cb__pin {
  transform: translate(-50%, -100%) translate(calc(var(--kx) * var(--rx)), calc(var(--ky) * var(--ry))) scale(1);
  opacity: 1;
}

.cb__tag {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #17141a;
  font-size: 8px;
  line-height: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.cb__pin.cb--low .cb__tag {
  top: calc(100% + 13px);
}

.cb__badge {
  position: absolute;
  left: 50%;
  top: 50%;
  box-sizing: border-box;
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: #0a4fe8;
  color: #fff7e6;
  font-family: inherit;
  font-size: 15px;
  line-height: 34px;
  font-weight: 800;
  cursor: pointer;
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  transition: transform 300ms cubic-bezier(0.2, 1.4, 0.4, 1), opacity 300ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.cb__badge:focus-visible {
  outline: 2px solid #17141a;
  outline-offset: 2px;
}

.cb.is-open .cb__badge {
  transform: translate(-50%, -50%) scale(0.42);
  opacity: 0;
}

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

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

.cb__out {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 11px;
  line-height: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cb__toggle {
  box-sizing: border-box;
  height: 24px;
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: #17141a;
  color: #fff7e6;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.cb__toggle:focus-visible {
  outline: 2px solid #17141a;
  outline-offset: 2px;
}

.cb.is-demo .cb__pin {
  animation-name: cb-burst;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: infinite;
  animation-delay: var(--d);
}

.cb.is-demo .cb__badge {
  animation-name: cb-merge;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: infinite;
}

@keyframes cb-burst {
  0% {
    opacity: 0;
    transform: translate(-50%, -100%) translate(0, 0) scale(0.3);
  }
  10% {
    opacity: 0;
    transform: translate(-50%, -100%) translate(0, 0) scale(0.3);
  }
  32% {
    opacity: 1;
    transform: translate(-50%, -100%) translate(calc(var(--kx) * var(--rx)), calc(var(--ky) * var(--ry))) scale(1);
  }
  68% {
    opacity: 1;
    transform: translate(-50%, -100%) translate(calc(var(--kx) * var(--rx)), calc(var(--ky) * var(--ry))) scale(1);
  }
  86%, 100% {
    opacity: 0;
    transform: translate(-50%, -100%) translate(0, 0) scale(0.3);
  }
}
@keyframes cb-merge {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  10% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  32% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.42);
  }
  68% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.42);
  }
  86%, 100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
@media (max-width: 400px) {
  .cb {
    --rx: 64px;
    --ry: 24px;
  }
  .cb__tag {
    font-size: 7px;
    line-height: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cb.is-demo .cb__pin, .cb.is-demo .cb__badge {
    animation: none !important;
  }
  .cb__pin, .cb__badge {
    transition: none;
  }
}
