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

.stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #17141a;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  position: relative;
}

.btn {
  --radius: 120px;
  --strength: 0.35;
  border: 0;
  border-radius: 999px;
  padding: 22px 56px;
  font: 800 20px/1 inherit;
  color: #17141a;
  background: #fff7e6;
  cursor: pointer;
  will-change: transform;
  transition: transform 160ms ease-out;
}
.btn.is-demo {
  animation: magnet-loop 2s ease-in-out infinite;
}

.cursor {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffd23f;
  pointer-events: none;
}
.cursor.is-demo {
  animation: cursor-loop 2s ease-in-out infinite;
}

@keyframes magnet-loop {
  0% {
    transform: translate(0, 0);
  }
  30% {
    transform: translate(18px, -10px);
  }
  60% {
    transform: translate(-14px, 12px);
  }
  100% {
    transform: translate(0, 0);
  }
}
@keyframes cursor-loop {
  0% {
    transform: translate(-50%, -50%) translate(0, 0);
  }
  30% {
    transform: translate(-50%, -50%) translate(52px, -28px);
  }
  60% {
    transform: translate(-50%, -50%) translate(-40px, 34px);
  }
  100% {
    transform: translate(-50%, -50%) translate(0, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .btn.is-demo, .cursor.is-demo {
    transition: none;
    animation: none;
    transform: none !important;
  }
}
