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

.cm-area {
  position: relative;
  width: min(220px, 74vw);
  height: 110px;
}

.cm-link {
  position: absolute;
  left: 44px;
  top: 30px;
  width: 128px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.4);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.cm-cursor {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  transform: translate(6px, 90px);
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cm-cursor__shape {
  position: absolute;
  left: -11px;
  top: -11px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ffffff;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), background 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cm-cursor__shape svg {
  width: 13px;
  height: 13px;
  color: #17141a;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 220ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cm-cursor.is-link .cm-cursor__shape {
  transform: scale(1.9);
  background: #2f6df6;
}

.cm-cursor.is-link .cm-cursor__shape svg {
  opacity: 1;
  transform: scale(1);
  color: #ffffff;
}

@media (hover: none), (pointer: coarse) {
  .cm-cursor {
    display: none;
  }
}
.cm-area.is-demo .cm-cursor {
  animation: cm-move 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.cm-area.is-demo .cm-cursor__shape {
  animation: cm-shape 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.cm-area.is-demo .cm-cursor__shape svg {
  animation: cm-icon 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes cm-move {
  0%, 12% {
    transform: translate(6px, 90px);
  }
  40%, 62% {
    transform: translate(108px, 50px);
  }
  90%, 100% {
    transform: translate(6px, 90px);
  }
}
@keyframes cm-shape {
  0%, 12% {
    transform: scale(1);
    background: #ffffff;
  }
  40%, 62% {
    transform: scale(1.9);
    background: #2f6df6;
  }
  90%, 100% {
    transform: scale(1);
    background: #ffffff;
  }
}
@keyframes cm-icon {
  0%, 12% {
    opacity: 0;
    transform: scale(0.4);
    color: #17141a;
  }
  40%, 62% {
    opacity: 1;
    transform: scale(1);
    color: #ffffff;
  }
  90%, 100% {
    opacity: 0;
    transform: scale(0.4);
    color: #17141a;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cm-cursor, .cm-cursor__shape, .cm-cursor__shape svg {
    animation: none !important;
    transition: none !important;
  }
}
