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

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

.sm {
  --sm-floor: #f4f7f2;
  --sm-trail: #cfe3c8;
  --sm-acct: #f6cfd4;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 424px;
}

.sm__hint {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-weight: 700;
  font-size: clamp(10px, 2.8vw, 12px);
  line-height: 1.35;
  color: #2c3326;
}

.sm__field {
  position: relative;
  height: 180px;
  border-radius: 16px;
  overflow: hidden;
  background: #f4f7f2;
  box-shadow: inset 0 0 0 1px rgba(44, 51, 38, 0.18);
}

.sm__field:focus-visible {
  outline: 2px solid #2c3326;
  outline-offset: 2px;
}

.sm__cv {
  display: block;
  width: 100%;
  height: 100%;
}

.sm__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.sm__ctl {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.sm__lab {
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  color: rgba(44, 51, 38, 0.72);
  white-space: nowrap;
}

.sm__rng {
  appearance: none;
  -webkit-appearance: none;
  width: clamp(64px, 20vw, 108px);
  height: 16px;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.sm__rng::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(44, 51, 38, 0.22);
}

.sm__rng::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4px;
  border-radius: 50%;
  border: 0;
  background: #cfe3c8;
  box-shadow: 0 0 0 2px rgba(44, 51, 38, 0.35);
}

.sm__rng::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(44, 51, 38, 0.22);
}

.sm__rng::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0;
  background: #cfe3c8;
  box-shadow: 0 0 0 2px rgba(44, 51, 38, 0.35);
}

.sm__rng:focus-visible {
  outline: 2px solid #2c3326;
  outline-offset: 2px;
}

@media (max-width: 340px) {
  .sm {
    gap: 4px;
  }
  .sm__field {
    height: 82px;
  }
  .sm__bar {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .sm__ctl {
    justify-content: space-between;
  }
  .sm__rng {
    flex: 0 0 auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sm.is-still .sm__rng {
    pointer-events: auto;
  }
}
