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);
}

.hs {
  position: relative;
}

.hs__view {
  position: relative;
  box-sizing: border-box;
  width: 288px;
  height: 168px;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(90deg, transparent 0 20%, #5f4128 20% 25%, transparent 25% 75%, #5f4128 75% 80%, transparent 80%) no-repeat 0 100%/100% 28%, radial-gradient(circle at 58% 66%, #d4c4a7 0 2.6%, transparent 3.4%), linear-gradient(#9a6739, #6b4526) no-repeat 0 58%/100% 16%, radial-gradient(circle at 80% 22%, #b9a0ff 0 10%, transparent 11%), linear-gradient(200deg, #2b2540, #17141a);
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.hs__spot {
  position: absolute;
}

.hs__spot--1 {
  left: 22%;
  top: 66%;
}

.hs__spot--2 {
  left: 58%;
  top: 66%;
}

.hs__spot--3 {
  left: 78%;
  top: 88%;
}

.hs__pin {
  position: absolute;
  left: -14px;
  top: -14px;
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 2px solid rgba(255, 247, 230, 0.82);
  border-radius: 50%;
  background: rgba(23, 20, 26, 0.78);
  color: #fff7e6;
  cursor: pointer;
  transform: scale(1);
  transition: transform 220ms cubic-bezier(0.2, 1.4, 0.4, 1), background 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.hs__pin:focus-visible {
  outline: 3px solid #ffd23f;
  outline-offset: 2px;
}

.hs__pin[aria-expanded=true] {
  background: #ffd23f;
  color: #17141a;
  transform: scale(1.16);
}

.hs__note {
  position: absolute;
  left: -60px;
  top: 20px;
  display: block;
  box-sizing: border-box;
  width: 120px;
  padding: 4px 8px;
  border-radius: 8px;
  background: #fff7e6;
  color: #17141a;
  text-align: center;
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  opacity: 0;
  transform-origin: center top;
  transform: scale(0.6);
  transition: transform 220ms cubic-bezier(0.2, 1.4, 0.4, 1), opacity 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
  pointer-events: none;
}

.hs__spot--3 .hs__note {
  top: -44px;
  transform-origin: center bottom;
}

.hs__pin[aria-expanded=true] + .hs__note {
  opacity: 1;
  transform: scale(1);
}

.hs.is-demo .hs__note {
  transition: none;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: infinite;
}

.hs.is-demo .hs__pin {
  transition: none;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.hs.is-demo .hs__spot--1 .hs__note {
  animation-name: hs-n1;
}

.hs.is-demo .hs__spot--2 .hs__note {
  animation-name: hs-n2;
}

.hs.is-demo .hs__spot--3 .hs__note {
  animation-name: hs-n3;
}

.hs.is-demo .hs__spot--1 .hs__pin {
  animation-name: hs-p1;
}

.hs.is-demo .hs__spot--2 .hs__pin {
  animation-name: hs-p2;
}

.hs.is-demo .hs__spot--3 .hs__pin {
  animation-name: hs-p3;
}

@keyframes hs-n1 {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }
  6% {
    opacity: 0;
    transform: scale(0.6);
  }
  7% {
    opacity: 1;
    transform: scale(0.6);
  }
  16% {
    opacity: 1;
    transform: scale(1);
  }
  34% {
    opacity: 1;
    transform: scale(1);
  }
  35% {
    opacity: 0;
    transform: scale(0.6);
  }
  100% {
    opacity: 0;
    transform: scale(0.6);
  }
}
@keyframes hs-n2 {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }
  40% {
    opacity: 0;
    transform: scale(0.6);
  }
  41% {
    opacity: 1;
    transform: scale(0.6);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
  66% {
    opacity: 1;
    transform: scale(1);
  }
  67% {
    opacity: 0;
    transform: scale(0.6);
  }
  100% {
    opacity: 0;
    transform: scale(0.6);
  }
}
@keyframes hs-n3 {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }
  72% {
    opacity: 0;
    transform: scale(0.6);
  }
  73% {
    opacity: 1;
    transform: scale(0.6);
  }
  80% {
    opacity: 1;
    transform: scale(1);
  }
  87% {
    opacity: 1;
    transform: scale(1);
  }
  88% {
    opacity: 0;
    transform: scale(0.6);
  }
  100% {
    opacity: 0;
    transform: scale(0.6);
  }
}
@keyframes hs-p1 {
  0% {
    background: rgba(23, 20, 26, 0.78);
    color: #fff7e6;
    transform: scale(1);
  }
  7% {
    background: #ffd23f;
    color: #17141a;
    transform: scale(1.16);
  }
  35% {
    background: rgba(23, 20, 26, 0.78);
    color: #fff7e6;
    transform: scale(1);
  }
  100% {
    background: rgba(23, 20, 26, 0.78);
    color: #fff7e6;
    transform: scale(1);
  }
}
@keyframes hs-p2 {
  0% {
    background: rgba(23, 20, 26, 0.78);
    color: #fff7e6;
    transform: scale(1);
  }
  41% {
    background: #ffd23f;
    color: #17141a;
    transform: scale(1.16);
  }
  67% {
    background: rgba(23, 20, 26, 0.78);
    color: #fff7e6;
    transform: scale(1);
  }
  100% {
    background: rgba(23, 20, 26, 0.78);
    color: #fff7e6;
    transform: scale(1);
  }
}
@keyframes hs-p3 {
  0% {
    background: rgba(23, 20, 26, 0.78);
    color: #fff7e6;
    transform: scale(1);
  }
  73% {
    background: #ffd23f;
    color: #17141a;
    transform: scale(1.16);
  }
  88% {
    background: rgba(23, 20, 26, 0.78);
    color: #fff7e6;
    transform: scale(1);
  }
  100% {
    background: rgba(23, 20, 26, 0.78);
    color: #fff7e6;
    transform: scale(1);
  }
}
@media (max-width: 360px) {
  .hs__view {
    height: 160px;
  }
  .hs__note {
    width: 112px;
    left: -56px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hs.is-demo .hs__note,
  .hs.is-demo .hs__pin {
    animation: none !important;
  }
  .hs.is-demo .hs__spot--2 .hs__note {
    opacity: 1;
    transform: scale(1);
  }
  .hs.is-demo .hs__spot--2 .hs__pin {
    background: #ffd23f;
    color: #17141a;
  }
}
