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

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

.badge {
  position: relative;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgb(82.4117647059%, 77.568627451%, 64.568627451%), #baa774 70%);
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  overflow: hidden;
  transform: scale(0.85);
  filter: grayscale(1) brightness(0.85);
}

.badge__icon {
  color: #fff;
  position: relative;
  z-index: 1;
}

.badge__shine {
  position: absolute;
  top: -20%;
  left: -60%;
  width: 40%;
  height: 140%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.85), transparent);
  transform: translateX(0) rotate(12deg);
  opacity: 0;
}

.stage.is-demo .badge {
  animation: unlock 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

.stage.is-demo .badge__shine {
  animation: shine 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

@keyframes unlock {
  0%, 30% {
    transform: scale(0.85);
    filter: grayscale(1) brightness(0.85);
  }
  55% {
    transform: scale(1.12);
    filter: grayscale(0) brightness(1);
  }
  70% {
    transform: scale(0.96);
  }
  82%, 100% {
    transform: scale(1);
    filter: grayscale(0) brightness(1);
  }
}
@keyframes shine {
  0%, 55% {
    opacity: 0;
    transform: translateX(0) rotate(12deg);
  }
  62% {
    opacity: 1;
  }
  78%, 100% {
    opacity: 0;
    transform: translateX(340%) rotate(12deg);
  }
}
.badge::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgb(79.7058823529%, 74.1176470588%, 59.1176470588%);
  transform: scale(0.62);
  opacity: 0;
}

.stage.is-demo .badge::after {
  animation: unlock-ring 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

@keyframes unlock-ring {
  0%, 45% {
    transform: scale(0.62);
    opacity: 0;
  }
  55% {
    transform: scale(0.8);
    opacity: 0.8;
  }
  82%, 100% {
    transform: scale(1.15);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .stage.is-demo .badge {
    animation: none;
    transform: scale(1);
    filter: none;
  }
  .stage.is-demo .badge__shine {
    animation: none;
    opacity: 0;
  }
  .stage.is-demo .badge::after {
    animation: none;
    opacity: 0;
  }
}
