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

.wt {
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-sizing: border-box;
  width: min(100%, 380px);
  padding: 12px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.wt__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wt__name {
  color: #c93000;
  font-family: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.wt__out {
  padding: 4px 8px;
  border-radius: 999px;
  background: #17141a;
  color: #fff7e6;
  font-family: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
}

.wt__spec {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wt__big {
  margin: 0;
  color: #17141a;
  font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  font-weight: 700;
  font-size: clamp(38px, 15vw, 64px);
  line-height: 1.05;
  font-variation-settings: "wght" var(--w, 700);
}

.wt__hangul {
  margin: 0;
  color: rgba(23, 20, 26, 0.72);
  font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.5;
  font-variation-settings: "wght" var(--w, 700);
}

.wt__range {
  --fill: 75%;
  --travel: 288px;
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 300px;
  max-width: 100%;
  margin: 0 auto;
  height: 20px;
  background: transparent;
  cursor: pointer;
}

.wt__range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2f6df6 0 var(--fill), rgba(23, 20, 26, 0.18) var(--fill) 100%);
}

.wt__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4px;
  border: 0;
  border-radius: 50%;
  background: #2f6df6;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
}

.wt__range::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.18);
}

.wt__range::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: #2f6df6;
}

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

.wt__ruler {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 300px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 4px;
}

.wt__ruler i {
  width: 1px;
  height: 4px;
  background: rgba(23, 20, 26, 0.35);
}

.wt__ruler i:nth-child(5) {
  height: 8px;
}

.wt__scale {
  display: flex;
  justify-content: space-between;
  width: 300px;
  max-width: 100%;
  margin: 0;
  color: rgba(23, 20, 26, 0.72);
  font-family: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  font-weight: 500;
  font-size: 9px;
  line-height: 1.4;
}

.wt__note {
  margin: 0;
  color: rgba(23, 20, 26, 0.72);
  text-align: center;
  font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  font-weight: 500;
  font-size: 11px;
  line-height: 1.4;
}

.wt.is-demo .wt__big,
.wt.is-demo .wt__hangul {
  animation-name: wtSweep;
  animation-duration: 2s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.wt.is-demo .wt__out {
  animation-name: wtPulse;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
  transform-origin: 50% 50%;
}

.wt.is-demo .wt__range::-webkit-slider-thumb {
  animation-name: wtThumb;
  animation-duration: 2s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

@keyframes wtSweep {
  0% {
    font-weight: 100;
    font-variation-settings: "wght" 100;
  }
  45% {
    font-weight: 900;
    font-variation-settings: "wght" 900;
  }
  90%, 100% {
    font-weight: 100;
    font-variation-settings: "wght" 100;
  }
}
@keyframes wtThumb {
  0% {
    transform: translateX(0);
  }
  45% {
    transform: translateX(var(--travel, 288px));
  }
  90%, 100% {
    transform: translateX(0);
  }
}
@keyframes wtPulse {
  0%, 45% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
  56%, 100% {
    transform: scale(1);
  }
}
@media (max-width: 340px) {
  .wt {
    padding: 8px;
    gap: 4px;
  }
  .wt__big {
    font-size: 40px;
  }
  .wt__hangul {
    font-size: 11px;
  }
  .wt__range, .wt__ruler, .wt__scale {
    width: 240px;
  }
  .wt__range {
    --travel: 228px;
  }
  .wt__note {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wt.is-demo .wt__big,
  .wt.is-demo .wt__hangul,
  .wt.is-demo .wt__out,
  .wt.is-demo .wt__range::-webkit-slider-thumb {
    animation: none !important;
    transform: none !important;
  }
}
