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

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

.metaldial__label {
  margin: 0;
  color: #17141a;
  font-weight: 800;
  font-size: clamp(14px, 3.6vw, 18px);
  line-height: 1.2;
  font-family: inherit;
}

.metaldial__dial {
  position: relative;
  width: clamp(120px, 38vw, 168px);
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  background: transparent;
  animation: dialSwing 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.metaldial__dial:focus-visible {
  outline: 3px solid #2f6df6;
  outline-offset: 4px;
}

.metaldial__rim {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, #2c2f36 0deg 2deg, transparent 2deg 7deg) padding-box, conic-gradient(from 200deg, #f4f5f8, #6f7481 18%, #aab0bc 38%, #f4f5f8 55%, #4b4f59 72%, #aab0bc 88%, #f4f5f8);
  box-shadow: 0 8px 14px rgba(23, 20, 26, 0.35);
}

.metaldial__face {
  position: absolute;
  top: 12%;
  left: 12%;
  right: 12%;
  bottom: 12%;
  border-radius: 50%;
  background: conic-gradient(from 210deg, #f4f5f8 0deg, #6f7481 70deg, #aab0bc 120deg, #f4f5f8 180deg, #4b4f59 250deg, #aab0bc 300deg, #f4f5f8 360deg);
  box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.65), inset 0 -3px 5px rgba(0, 0, 0, 0.4);
}

.metaldial__cap {
  position: absolute;
  top: 36%;
  left: 36%;
  right: 36%;
  bottom: 36%;
  border-radius: 50%;
  background: radial-gradient(120% 120% at 32% 28%, #c4cde2, #2f6df6 55%, #5d74af);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5), 0 2px 4px rgba(0, 0, 0, 0.45);
}

.metaldial__pointer {
  position: absolute;
  top: 8%;
  left: calc(50% - 2px);
  width: 4px;
  height: 34%;
  border-radius: 999px;
  background: #f4f5f8;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.metaldial__hint {
  margin: 0;
  color: #17141a;
  font-weight: 500;
  font-size: clamp(11px, 2.8vw, 13px);
  line-height: 1.4;
  font-family: inherit;
}

@keyframes dialSwing {
  0%, 6% {
    transform: rotate(-32deg);
  }
  48%, 56% {
    transform: rotate(32deg);
  }
  94%, 100% {
    transform: rotate(-32deg);
  }
}
@media (max-width: 340px), (max-height: 220px) {
  .metaldial {
    gap: 8px;
  }
  .metaldial__label {
    font-size: 13px;
  }
  .metaldial__hint {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .metaldial__dial {
    animation: none !important;
    transform: none;
  }
}
