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

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

.vt__hint {
  margin: 0;
  font-weight: 700;
  font-size: clamp(10px, 2.8vw, 12px);
  line-height: 1.35;
  color: #fff7e6;
  text-align: center;
}

.vt__wrap {
  position: relative;
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  --pct: 50;
  --tw: 20px;
}

.vt__bubble {
  position: absolute;
  top: 0;
  left: calc(var(--pct) / 100 * (100% - var(--tw)) + var(--tw) / 2);
  transform: translate(-50%, 0);
  min-width: 32px;
  padding: 4px 8px;
  box-sizing: border-box;
  background: #0a4fe8;
  color: #fff7e6;
  border-radius: 8px;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  transition: background 220ms ease-out;
}

.vt__range {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 20px;
  margin: 0;
  background: transparent;
  position: relative;
  top: 14px;
}

.vt__range:focus-visible {
  outline: 2px solid #fff7e6;
  outline-offset: 4px;
  border-radius: 999px;
}

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

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

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

.vt__range::-moz-range-progress {
  height: 8px;
  border-radius: 999px;
  background: #0a4fe8;
}

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

.vt__meta {
  margin: 0;
  font-size: clamp(9px, 2.4vw, 11px);
  color: rgba(255, 247, 230, 0.82);
}

.vt__tag {
  font-weight: 700;
  color: #ffd23f;
  font-variant-numeric: tabular-nums;
  margin-right: 4px;
}

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

@media (max-width: 340px) {
  .vt {
    gap: 8px;
    max-width: 280px;
  }
  .vt__hint {
    font-size: 8px;
  }
  .vt__meta {
    font-size: 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .vt__bubble {
    transition: none;
  }
}
