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

.rv {
  position: relative;
  width: min(92vw, 160vh - 12.8vw);
  aspect-ratio: 480/300;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

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

.rv__caption {
  position: absolute;
  left: 12px;
  top: 12px;
  max-width: 70%;
  margin: 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 247, 230, 0.85);
  color: #17141a;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.4;
  pointer-events: none;
}

.rv__control {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  padding: 8px 12px;
  background: rgba(23, 20, 26, 0.55);
}

.rv__label {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
}

.rv__range {
  flex: 1 1 auto;
  min-width: 0;
  width: 0;
  accent-color: #2f6df6;
}

@media (max-width: 340px) {
  .rv__caption {
    font-size: 10px;
    padding: 4px 8px;
  }
  .rv__label {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rv {
    cursor: default;
  }
}
