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

.tip-wrap {
  position: relative;
}

.save-btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 26px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  font-family: inherit;
  color: #ffd23f;
  background: #17141a;
  cursor: pointer;
}

.tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform-origin: bottom center;
  transform: translateX(-50%) scale(0.85);
  opacity: 0;
  background: #17141a;
  color: #ffd23f;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: clamp(12px, 3.4vw, 14px);
  max-width: clamp(140px, 42vw, 220px);
  white-space: nowrap;
  text-align: center;
  pointer-events: none;
}

@keyframes delay-loop {
  0%, 20% {
    opacity: 0;
    transform: translateX(-50%) scale(0.85) rotate(0deg);
  }
  28% {
    opacity: 1;
    transform: translateX(-50%) scale(1.12) rotate(2.4deg);
  }
  37% {
    opacity: 1;
    transform: translateX(-50%) scale(0.95) rotate(-1.4deg);
  }
  45% {
    opacity: 1;
    transform: translateX(-50%) scale(1.02) rotate(0.5deg);
  }
  51%, 80% {
    opacity: 1;
    transform: translateX(-50%) scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) scale(0.85) rotate(0deg);
  }
}
.tooltip.is-demo {
  animation: delay-loop 2s ease-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .tooltip.is-demo {
    animation: none;
    opacity: 1;
    transform: translateX(-50%) scale(1) rotate(0deg);
  }
}
