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

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

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

.card {
  width: clamp(140px, 42vw, 220px);
  height: clamp(90px, 28vw, 140px);
  border-radius: 16px;
  background: #17141a;
}

.label {
  position: absolute;
  top: 0;
  left: 0;
  padding: clamp(5px, 1.6vw, 7px) clamp(10px, 3vw, 14px);
  border-radius: 999px;
  background: #2f6df6;
  color: #fff;
  font-weight: 700;
  font-size: clamp(11px, 3vw, 13px);
  line-height: 1;
  font-family: inherit;
  opacity: 0;
  transition: opacity 140ms cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
  transform: translate(-50%, -140%);
}
.label.is-demo {
  animation: label-path 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite, label-fade 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes label-path {
  0% {
    transform: translate(calc(-50% + 70px), calc(-140% + 40px));
  }
  40% {
    transform: translate(calc(-50% + 150px), calc(-140% + 90px));
  }
  60% {
    transform: translate(calc(-50% + 150px), calc(-140% + 90px));
  }
  100% {
    transform: translate(calc(-50% + 70px), calc(-140% + 40px));
  }
}
@keyframes label-fade {
  0%, 100% {
    opacity: 0;
  }
  30%, 65% {
    opacity: 1;
  }
}
@media (pointer: coarse) {
  .label {
    display: none;
  }
  .stage {
    cursor: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .label.is-demo {
    animation: none;
    opacity: 0;
  }
}
