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

.fv8 {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: min(160px, 70vw);
  padding: 12px 24px;
  border-radius: 12px;
  border: 0;
  background: #2f6df6;
  color: #fff7e6;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  font-family: inherit;
  transform: scale(1);
}

.fv8__spinner, .fv8__check {
  position: absolute;
  opacity: 0;
}

.fv8__check {
  color: #4cd4a6;
}

.fv8::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: calc(12px + 3px);
  opacity: 0;
  pointer-events: none;
}

@keyframes fv8-press {
  0%, 8% {
    transform: scale(1);
  }
  14% {
    transform: scale(0.96);
  }
  22%, 100% {
    transform: scale(1);
  }
}
@keyframes fv8-label {
  0%, 14% {
    opacity: 1;
  }
  22%, 100% {
    opacity: 0;
  }
}
@keyframes fv8-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes fv8-spinner-show {
  0%, 20% {
    opacity: 0;
  }
  26%, 58% {
    opacity: 1;
  }
  66%, 100% {
    opacity: 0;
  }
}
@keyframes fv8-check-show {
  0%, 66% {
    opacity: 0;
    transform: scale(0.5);
  }
  74% {
    opacity: 1;
    transform: scale(1.15);
  }
  86%, 100% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes fv8-shake {
  0%, 73% {
    rotate: 0deg;
  }
  74% {
    rotate: 2deg;
  }
  76% {
    rotate: -2deg;
  }
  78% {
    rotate: 1.4deg;
  }
  80% {
    rotate: -1deg;
  }
  82% {
    rotate: 0.4deg;
  }
  84%, 100% {
    rotate: 0deg;
  }
}
@keyframes fv8-surge {
  0%, 73% {
    opacity: 0;
    box-shadow: 0 0 0 0 rgba(76, 212, 166, 0);
  }
  74% {
    opacity: 0.95;
    box-shadow: 0 0 0 4px rgba(76, 212, 166, 0.6);
  }
  82% {
    opacity: 0.5;
    box-shadow: 0 0 0 10px rgba(76, 212, 166, 0.22);
  }
  92% {
    opacity: 0;
    box-shadow: 0 0 0 15px rgba(76, 212, 166, 0);
  }
  100% {
    opacity: 0;
    box-shadow: 0 0 0 0 rgba(76, 212, 166, 0);
  }
}
.fv8.is-demo {
  animation: fv8-press 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite, fv8-shake 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

.fv8.is-demo .fv8__label {
  animation: fv8-label 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

.fv8.is-demo .fv8__spinner {
  animation: fv8-spin 300ms linear infinite, fv8-spinner-show 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

.fv8.is-demo .fv8__check {
  animation: fv8-check-show 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

.fv8.is-demo::after {
  animation: fv8-surge 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .fv8.is-demo,
  .fv8.is-demo .fv8__label,
  .fv8.is-demo .fv8__spinner,
  .fv8.is-demo .fv8__check {
    animation: none !important;
  }
  .fv8.is-demo .fv8__label {
    opacity: 0;
  }
  .fv8.is-demo .fv8__check {
    opacity: 1;
    transform: scale(1);
  }
  .fv8.is-demo::after {
    animation: none !important;
    opacity: 0;
  }
  .fv8.is-demo {
    rotate: 0deg;
  }
}
