@property --mx {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 50%;
}
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);
}

.spot {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 0;
  cursor: pointer;
  padding: 20px 40px;
  border-radius: 999px;
  background: rgba(255, 247, 230, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 247, 230, 0.3);
  color: #fff7e6;
  font-family: inherit;
  font-size: clamp(16px, 5vw, 20px);
  font-weight: 700;
}

.spot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle 96px at var(--mx) 50%, rgba(47, 109, 246, 0.95), rgba(47, 109, 246, 0) 72%);
}

.spot__label {
  position: relative;
}

.spot.is-demo {
  animation: spot-sweep 2s ease-out infinite;
}

@keyframes spot-sweep {
  0% {
    --mx: 8%;
  }
  50% {
    --mx: 92%;
  }
  100% {
    --mx: 8%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .spot.is-demo {
    animation: none;
  }
  .spot::before {
    background: radial-gradient(circle 96px at 50% 50%, rgba(47, 109, 246, 0.95), rgba(47, 109, 246, 0) 72%);
  }
}
