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

.badge {
  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;
}

.badge__icon {
  width: clamp(28px, 8vw, 36px);
  height: clamp(28px, 8vw, 36px);
}

.badge__star {
  fill: none;
  stroke: #fff7e6;
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 100;
  animation: draw 600ms ease-out infinite;
}

@keyframes draw {
  0% {
    stroke-dashoffset: 100;
  }
  55% {
    stroke-dashoffset: 0;
  }
  80% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -100;
  }
}
.badge__trail {
  fill: none;
  stroke: #fff7e6;
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 100;
  animation: trail-fade 600ms 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;
  }
}
.badge__spark {
  fill: #fff7e6;
  opacity: 0;
  transform: scale(1.6);
  transform-origin: center;
  transform-box: fill-box;
  filter: drop-shadow(0 0 1px #fff7e6);
}

.badge__bit {
  fill: #fff7e6;
  opacity: 0;
  transform: translate(0, 0);
  animation: bit-fly 420ms 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) {
  .badge__star {
    animation: none;
    stroke-dashoffset: 0;
  }
  .badge__trail {
    display: none;
  }
  .badge__spark {
    display: none;
  }
  .badge__bit {
    display: none;
  }
}
