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

.field-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff7e6;
  color: #17141a;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  font-family: inherit;
}

.tooltip {
  position: absolute;
  bottom: calc(100% + 14px);
  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);
  white-space: nowrap;
  pointer-events: none;
}
.tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 8px;
  background: #fff7e6;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
}

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

@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) {
  .tooltip.is-demo {
    animation: none;
    opacity: 1;
    transform: translate(-50%, 0) scale(1) rotate(0deg);
  }
}
