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

.glassbadge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.glassbadge__plate {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: clamp(212px, 66vw, 300px);
  padding: 16px;
  border-radius: 16px;
  background: repeating-linear-gradient(90deg, #565b66 0 1px, #31353e 1px 3px, #565b66 3px 4px, #22252c 4px 7px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -2px 0 rgba(0, 0, 0, 0.5), 0 10px 16px rgba(0, 0, 0, 0.5);
}

.glassbadge__caption {
  margin: 0;
  color: #ffffff;
  font-weight: 800;
  font-size: clamp(12px, 3vw, 15px);
  line-height: 1;
  font-family: inherit;
  letter-spacing: 0.08em;
}

.glassbadge__inlay {
  position: relative;
  width: clamp(104px, 32vw, 140px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(130% 130% at 32% 26%, rgba(255, 255, 255, 0.3), transparent 46%), #22252c;
  box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.75), inset 0 -2px 4px rgba(255, 255, 255, 0.12);
}

.glassbadge__core {
  position: absolute;
  top: 16%;
  left: 16%;
  right: 16%;
  bottom: 16%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #0c2c20;
  font-size: clamp(26px, 8vw, 36px);
  background: radial-gradient(120% 120% at 34% 28%, #d6ebe2, #4cd4a6 58%, #4fa183);
  box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.35), 0 2px 5px rgba(0, 0, 0, 0.55);
}

.glassbadge__flare {
  position: absolute;
  top: 16%;
  left: 16%;
  right: 16%;
  bottom: 16%;
  border-radius: 50%;
  background: radial-gradient(120% 120% at 42% 34%, rgba(255, 255, 255, 0.55), transparent 64%);
  opacity: 0;
  animation: flareUp 2s ease-out infinite;
}

.glassbadge__sheen {
  position: absolute;
  top: -20%;
  left: 0;
  width: 44%;
  height: 140%;
  transform: translateX(-140%) rotate(24deg);
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.4) 45%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0.4) 55%, transparent);
  animation: sheenSweep 2s ease-out infinite;
}

.glassbadge__gloss {
  position: absolute;
  top: 6%;
  left: 18%;
  width: 64%;
  height: 36%;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), transparent 70%);
}

.glassbadge__note {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
  font-size: clamp(11px, 2.8vw, 13px);
  line-height: 1;
  font-family: inherit;
}

@keyframes sheenSweep {
  0%, 12% {
    transform: translateX(-140%) rotate(24deg);
  }
  82%, 100% {
    transform: translateX(340%) rotate(24deg);
  }
}
@keyframes flareUp {
  0%, 36% {
    opacity: 0;
  }
  44%, 50% {
    opacity: 1;
  }
  58%, 100% {
    opacity: 0;
  }
}
@media (max-width: 340px), (max-height: 220px) {
  .glassbadge__plate {
    padding: 12px;
    gap: 4px;
  }
  .glassbadge__note {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .glassbadge__sheen {
    animation: none !important;
    transform: translateX(120%) rotate(24deg);
  }
  .glassbadge__flare {
    animation: none !important;
    opacity: 0;
  }
}
