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

.dp {
  position: relative;
  width: min(300px, 94vw);
  text-align: center;
  padding-top: 20px;
}

.dp__badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 210, 63, 0.2);
  color: #ffd23f;
  font-weight: 700;
  font-size: 10px;
  line-height: 1;
  font-family: inherit;
  letter-spacing: 0.04em;
  animation: dp-badge 2.2s ease-in-out infinite;
}

@keyframes dp-badge {
  0%, 100% {
    transform: translateX(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) scale(1.08);
  }
}
.dp__switch-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px 0;
}

.dp__switch-label {
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  font-family: inherit;
  color: rgba(255, 247, 230, 0.7);
}

.dp__switch {
  position: relative;
  width: 40px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 247, 230, 0.18);
  cursor: pointer;
  transition: background 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dp__switch[aria-checked=true] {
  background: #2f6df6;
}

.dp__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff7e6;
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dp__switch[aria-checked=true] .dp__knob {
  transform: translateX(18px);
}

.dp__price-wrap {
  position: relative;
  height: 64px;
}

.dp__price {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transition: opacity 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dp__price.is-active {
  opacity: 1;
}

.dp__old {
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  font-family: inherit;
  color: rgba(255, 247, 230, 0.4);
  text-decoration: line-through;
}

.dp__now {
  font-weight: 800;
  font-size: clamp(22px, 7vw, 28px);
  line-height: 1;
  font-family: inherit;
  color: #fff7e6;
}

.dp__now small {
  font-weight: 600;
  font-size: 11px;
  line-height: 1;
  font-family: inherit;
  color: rgba(255, 247, 230, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  .dp__badge {
    animation: none !important;
  }
  .dp__switch, .dp__knob, .dp__price {
    transition: none !important;
  }
}
@media (max-width: 340px), (max-height: 220px) {
  .dp {
    padding-top: 16px;
  }
  .dp__switch-row {
    margin: 12px 0;
  }
}
