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

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

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

.st__bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.st__name {
  color: #c93000;
  font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  font-weight: 800;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.st__hint {
  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;
}

.st__ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
}

.st__val {
  flex: 0 0 64px;
  box-sizing: border-box;
  text-align: center;
  padding: 4px 0;
  border-radius: 999px;
  background: #17141a;
  color: #fff7e6;
  font-family: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.2;
}

.st__range {
  --fill: 17.6%;
  flex: 1 1 auto;
  appearance: none;
  -webkit-appearance: none;
  display: block;
  height: 20px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

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

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

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

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

.st__range:focus-visible {
  outline: 2px solid #c93000;
  outline-offset: 4px;
}

.st__body {
  height: 130px;
  overflow: hidden;
  padding: 8px;
  border: 1px solid rgba(23, 20, 26, 0.14);
  border-radius: 12px;
}

.st__text {
  margin: 0;
  color: #17141a;
  font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  font-weight: 500;
  font-size: clamp(10px, 3.2vw, 13px);
  line-height: 1.7;
  letter-spacing: 0.02em;
  overflow-wrap: break-word;
}

.st.is-demo .st__text {
  animation-name: stTrack, stLead;
  animation-duration: 2s, 2s;
  animation-timing-function: ease-in-out, ease-in-out;
  animation-iteration-count: infinite, infinite;
}

@keyframes stTrack {
  0% {
    letter-spacing: -0.02em;
  }
  45% {
    letter-spacing: 0.24em;
  }
  90%, 100% {
    letter-spacing: -0.02em;
  }
}
@keyframes stLead {
  0% {
    line-height: 1.1;
  }
  45% {
    line-height: 2;
  }
  90%, 100% {
    line-height: 1.1;
  }
}
@media (max-width: 340px) {
  .st {
    padding: 8px;
    gap: 4px;
  }
  .st__name {
    font-size: 11px;
  }
  .st__val {
    flex-basis: 52px;
    font-size: 10px;
  }
  .st__body {
    height: 78px;
    padding: 4px;
  }
  .st.is-demo .st__text {
    animation-name: stTrackN, stLeadN;
  }
}
@keyframes stTrackN {
  0% {
    letter-spacing: -0.02em;
  }
  45% {
    letter-spacing: 0.18em;
  }
  90%, 100% {
    letter-spacing: -0.02em;
  }
}
@keyframes stLeadN {
  0% {
    line-height: 1.1;
  }
  45% {
    line-height: 1.8;
  }
  90%, 100% {
    line-height: 1.1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .st.is-demo .st__text {
    animation: none !important;
    letter-spacing: 0.02em !important;
    line-height: 1.7 !important;
  }
}
