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

.tip-wrap {
  position: relative;
  display: inline-block;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff7e6;
  color: #17141a;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  font-family: inherit;
}

.dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2f6df6;
}
.dot::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: #2f6df6;
  opacity: 0.5;
  animation: pulse-ring 2s ease-out infinite;
}

.tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform-origin: bottom center;
  transform: translate(-50%, 4px);
  opacity: 0;
  background: #fff7e6;
  color: #17141a;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: clamp(12px, 3.4vw, 14px);
  max-width: clamp(150px, 44vw, 220px);
  white-space: nowrap;
  pointer-events: none;
}

.tooltip.is-demo {
  animation: tip-loop 2s ease-out infinite;
}

@keyframes pulse-ring {
  0%, 100% {
    transform: scale(0.6);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.6);
    opacity: 0;
  }
}
@keyframes tip-loop {
  0% {
    opacity: 0;
    transform: translate(-50%, 4px) scale(0.85) rotate(0deg);
  }
  12% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1.12) rotate(2.6deg);
  }
  22% {
    opacity: 1;
    transform: translate(-50%, 0) scale(0.95) rotate(-1.5deg);
  }
  30% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1.03) rotate(0.6deg);
  }
  36%, 55% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1) rotate(0deg);
  }
  80% {
    opacity: 0;
    transform: translate(-50%, 4px) scale(0.85) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 4px) scale(0.85) rotate(0deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .dot::before {
    animation: none;
    opacity: 0.3;
  }
  .tooltip.is-demo {
    animation: none;
    opacity: 1;
    transform: translate(-50%, 0) scale(1) rotate(0deg);
  }
}
