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

.rh {
  position: relative;
  box-sizing: border-box;
  width: min(100%, 440px);
  height: min(252px, 100vh - 2 * clamp(8px, 4vw, 24px));
  color: #fff7e6;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  user-select: none;
}

.rh b {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.rh__tag {
  color: #9a93a6;
  letter-spacing: 0.5px;
}

.rh__cursor {
  position: absolute;
  left: -10px;
  top: -10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff7e6;
  box-shadow: 0 0 0 3px rgba(23, 20, 26, 0.55), 0 6px 12px rgba(23, 20, 26, 0.32);
  opacity: 0;
  pointer-events: none;
  z-index: 6;
}

.rh[data-demo] .rh__cursor {
  opacity: 1;
}

.rh button:focus-visible {
  outline: 3px solid #ff9ebb;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .rh__cursor {
    display: none;
  }
}
.rh__panel {
  --over: 0;
  position: absolute;
  left: 0;
  top: 0;
  box-sizing: border-box;
  height: calc(100% - 24px);
  overflow: hidden;
  border-radius: 16px;
  background: color-mix(in srgb, #4cd4a6, #ff9ebb calc(var(--over) * 100%));
}

.rh__stripe {
  position: absolute;
  inset: 0;
  opacity: var(--over);
  background: repeating-linear-gradient(90deg, transparent 0 10px, rgba(23, 20, 26, 0.18) 10px 12px);
}

.rh__grip {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 12px;
  height: 64px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #17141a;
  transform: translateY(-50%);
  cursor: ew-resize;
  touch-action: none;
}

.rh__limit {
  position: absolute;
  left: 0;
  top: 0;
  height: calc(100% - 24px);
  border-left: 2px dashed #fff7e6;
  pointer-events: none;
}

.rh__meta {
  position: absolute;
  left: 0;
  bottom: 0;
  margin: 0;
}
