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

.rm {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 380px;
}

.rm__hint {
  margin: 0;
  font-weight: 700;
  font-size: clamp(9px, 2.6vw, 11px);
  line-height: 1.35;
  color: #fff7e6;
  text-align: center;
}

.rm__row {
  display: flex;
  gap: 16px;
  width: 100%;
  justify-content: center;
}

.rm__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 45%;
}

.rm__label {
  font-weight: 700;
  font-size: 10px;
  color: rgba(255, 247, 230, 0.82);
}

.rm__wrap {
  position: relative;
  width: 100%;
  height: 32px;
  display: flex;
  align-items: center;
  --pct: 50;
}

.rm__range {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 18px;
  margin: 0;
  background: transparent;
}

.rm__range:focus-visible {
  outline: 2px solid #5b8cf8;
  outline-offset: 4px;
  border-radius: 999px;
}

.rm__range::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(to right, #2f6df6 calc(var(--pct) * 1%), rgba(255, 247, 230, 0.16) calc(var(--pct) * 1%));
}

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

.rm__range::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 247, 230, 0.16);
}

.rm__range::-moz-range-progress {
  height: 8px;
  border-radius: 999px;
  background: #2f6df6;
}

.rm__range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: #fff7e6;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
}

.rm__meta {
  margin: 0;
  font-size: clamp(9px, 2.2vw, 10px);
  color: rgba(255, 247, 230, 0.82);
}

.rm__tag {
  font-weight: 700;
  color: #5b8cf8;
  font-variant-numeric: tabular-nums;
  margin-right: 4px;
}

.rm__unit {
  color: rgba(255, 247, 230, 0.72);
}

@media (max-width: 340px) {
  .rm {
    gap: 8px;
    max-width: 280px;
  }
  .rm__row {
    gap: 8px;
  }
  .rm__hint {
    font-size: 7px;
  }
  .rm__meta {
    font-size: 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rm__range {
    transition: none;
  }
}
