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

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

.wrap {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.hint {
  position: relative;
  box-sizing: border-box;
  margin: 0;
  max-width: 232px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #4cd4a6;
  color: #17141a;
  transform: translateY(0);
  transform-origin: 50% 100%;
}

.hint::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 12px;
  height: 12px;
  background: #4cd4a6;
  transform: translateX(-50%) rotate(45deg);
  border-bottom-right-radius: 4px;
}

.stage.is-demo .hint {
  animation: nudge 2s linear(0, 0.051, 0.176, 0.341, 0.518, 0.685, 0.831, 0.947, 1.032, 1.087, 1.117, 1.126, 1.121, 1.105, 1.085, 1.062, 1.041, 1.022, 1.008, 0.997, 1) infinite;
}

.stage.is-demo .bi {
  transform-origin: 50% 12%;
  rotate: 0deg;
  animation: bi-spring 2s linear(0, 0.051, 0.176, 0.341, 0.518, 0.685, 0.831, 0.947, 1.032, 1.087, 1.117, 1.126, 1.121, 1.105, 1.085, 1.062, 1.041, 1.022, 1.008, 0.997, 1) infinite, swing 2s ease-in-out infinite;
}

.bi {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.bi svg {
  width: 100%;
  height: 100%;
  display: block;
}

.tx {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.target {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #cfe3da;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  scale: 1;
}

.stage.is-demo .target {
  animation: pop 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite 0.4s;
}

@keyframes nudge {
  0%, 100% {
    transform: translateY(0) rotate(0);
  }
  20% {
    transform: translateY(-4px) rotate(-1.5deg);
  }
  45% {
    transform: translateY(0) rotate(1deg);
  }
  70% {
    transform: translateY(-1px) rotate(-0.5deg);
  }
  88% {
    transform: translateY(0) rotate(0);
  }
}
@keyframes bi-spring {
  0% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.22);
  }
  45% {
    transform: scale(0.9);
  }
  62% {
    transform: scale(1.06);
  }
  78%, 100% {
    transform: scale(1);
  }
}
@keyframes swing {
  0% {
    rotate: 0deg;
  }
  8% {
    rotate: 13deg;
  }
  28% {
    rotate: -8deg;
  }
  48% {
    rotate: 4.5deg;
  }
  66% {
    rotate: -2deg;
  }
  80%, 100% {
    rotate: 0deg;
  }
}
@keyframes pop {
  0% {
    scale: 1;
  }
  6% {
    scale: 1.38;
  }
  16% {
    scale: 0.88;
  }
  28% {
    scale: 1.07;
  }
  38%, 100% {
    scale: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .stage.is-demo .hint {
    animation: none;
    transform: none;
  }
  .stage.is-demo .bi {
    animation: none;
    transform: none;
    rotate: 0deg;
  }
  .stage.is-demo .target {
    animation: none;
    scale: 1;
  }
}
