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

.wrap {
  width: 280px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.track {
  position: relative;
  width: 260px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 8px;
}

.guide {
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: repeating-linear-gradient(#17141a, #17141a 4px, transparent 4px, transparent 8px);
  transform: translateX(140px);
}

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

.rowLabel {
  width: 76px;
  flex: 0 0 auto;
  color: #17141a;
  font-size: 11px;
  font-weight: 700;
}

.box {
  height: 34px;
  border: 8px solid #17141a;
  padding: 0 12px;
  background: rgba(47, 109, 246, 0.38);
  transition: width 300ms ease-out;
  box-sizing: content-box;
}

.contentBox {
  box-sizing: content-box;
  background: rgba(201, 48, 0, 0.28);
}

.borderBox {
  box-sizing: border-box;
}

.widthRange {
  width: 260px;
  accent-color: #0a4fe8;
}

.readout {
  color: #17141a;
  font-size: 11px;
  text-align: center;
}

@media (max-width: 340px) {
  .wrap {
    width: 230px;
    gap: 8px;
  }
  .track, .widthRange {
    width: 210px;
    gap: 8px;
  }
  .rowLabel {
    width: 64px;
    font-size: 10px;
  }
  .box {
    height: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .box {
    transition: none;
  }
}
