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

.link {
  position: absolute;
  padding: clamp(8px, 2.4vw, 12px) clamp(16px, 4.4vw, 22px);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #17141a;
  font-weight: 700;
  font-size: clamp(12px, 3.2vw, 15px);
  line-height: 1;
  font-family: inherit;
  text-decoration: none;
}

.link--a {
  top: 22%;
  left: 14%;
}

.link--b {
  bottom: 22%;
  right: 14%;
}

.cursor-pos {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}
.cursor-pos.is-demo {
  animation: cursor-path 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.ring {
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 2px solid #fff7e6;
  border-radius: 50%;
  transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.stage:has(.link:hover) .ring {
  transform: scale(1.6);
}

.cursor-pos.is-demo .ring {
  animation: ring-grow 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes cursor-path {
  0% {
    transform: translate(90px, 60px);
  }
  40% {
    transform: translate(90px, 60px);
  }
  50% {
    transform: translate(300px, 210px);
  }
  90% {
    transform: translate(300px, 210px);
  }
  100% {
    transform: translate(90px, 60px);
  }
}
@keyframes ring-grow {
  0%, 100% {
    transform: scale(1);
  }
  20%, 40% {
    transform: scale(1.6);
  }
  50%, 70% {
    transform: scale(1.6);
  }
  80% {
    transform: scale(1);
  }
}
@media (pointer: coarse) {
  .cursor-pos {
    display: none;
  }
  .stage {
    cursor: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cursor-pos.is-demo {
    animation: none;
    transform: translate(90px, 60px);
  }
  .cursor-pos.is-demo .ring {
    animation: none;
  }
}
