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

.confirm {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: clamp(8px, 3vw, 12px);
  color: #fff7e6;
  font-weight: 600;
  font-size: clamp(14px, 4vw, 18px);
  line-height: 1;
  font-family: inherit;
}

.confirm__icon {
  color: #fff7e6;
}

.confirm__check {
  stroke-dasharray: 100;
  animation: draw 300ms ease-out infinite;
}

@keyframes draw {
  0% {
    stroke-dashoffset: 100;
  }
  55% {
    stroke-dashoffset: 0;
  }
  80% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -100;
  }
}
.confirm__trail {
  fill: none;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  animation: trail-fade 300ms ease-out infinite;
}

@keyframes trail-fade {
  0% {
    stroke-dashoffset: 100;
    opacity: 0.45;
  }
  55% {
    stroke-dashoffset: 0;
    opacity: 0.45;
  }
  85% {
    stroke-dashoffset: 0;
    opacity: 0.45;
  }
  100% {
    stroke-dashoffset: -100;
    opacity: 0;
  }
}
.confirm__spark {
  fill: currentColor;
  opacity: 0;
  transform: scale(1.5);
  transform-origin: center;
  transform-box: fill-box;
  filter: drop-shadow(0 0 1px currentColor);
}

.confirm__bit {
  fill: currentColor;
  opacity: 0;
  animation: bit-fly 380ms ease-out forwards;
}

@keyframes bit-fly {
  0% {
    opacity: 0.9;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(0.3);
  }
}
@media (prefers-reduced-motion: reduce) {
  .confirm__check {
    animation: none;
    stroke-dashoffset: 0;
  }
  .confirm__trail {
    display: none;
  }
  .confirm__spark {
    display: none;
  }
  .confirm__bit {
    display: none;
  }
}
