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

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

.stage {
  position: relative;
  overflow: hidden;
  cursor: none;
}

.btn {
  position: relative;
  border: 0;
  border-radius: 999px;
  padding: clamp(12px, 3.4vw, 18px) clamp(26px, 7vw, 40px);
  font-weight: 700;
  font-size: clamp(14px, 3.8vw, 18px);
  line-height: 1;
  font-family: inherit;
  color: #c93000;
  background: #fff7e6;
  cursor: pointer;
  transition: transform 160ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.btn.is-demo {
  animation: magnet-pull 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.cursor {
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: #17141a;
  pointer-events: none;
}
.cursor.is-demo {
  animation: cursor-path 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes magnet-pull {
  0%, 100% {
    transform: translate(0, 0);
  }
  35% {
    transform: translate(12px, -8px);
  }
  55% {
    transform: translate(0, 0);
  }
}
@keyframes cursor-path {
  0% {
    transform: translate(30px, 150px);
  }
  35% {
    transform: translate(150px, 60px);
  }
  70% {
    transform: translate(280px, 190px);
  }
  100% {
    transform: translate(30px, 150px);
  }
}
@media (pointer: coarse) {
  .cursor {
    display: none;
  }
  .stage {
    cursor: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .btn.is-demo {
    animation: none;
  }
  .cursor.is-demo {
    animation: none;
    transform: translate(30px, 150px);
  }
  .btn {
    transition: none;
  }
}
