html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ffffff;
  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: #17141a;
  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: rgba(23, 20, 26, 0.72);
  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 #17141a;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .rh__cursor {
    display: none;
  }
}
.rh {
  color: #17141a;
}

.rh__box {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(100% - 64px);
  height: 100px;
}

.rh__lines {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #4cd4a6;
  box-shadow: 0 8px 16px rgba(23, 20, 26, 0.2);
}

.rh__ln {
  position: absolute;
  left: 12px;
  height: 6px;
  border-radius: 4px;
  background: rgba(23, 20, 26, 0.55);
}

.rh__ln:nth-child(1) {
  top: calc(8px + 0 * var(--lh) + (var(--lh) - 6px) / 2);
  width: calc(86% - 24px);
}

.rh__ln:nth-child(2) {
  top: calc(8px + 1 * var(--lh) + (var(--lh) - 6px) / 2);
  width: calc(70% - 24px);
}

.rh__ln:nth-child(3) {
  top: calc(8px + 2 * var(--lh) + (var(--lh) - 6px) / 2);
  width: calc(90% - 24px);
}

.rh__ln:nth-child(4) {
  top: calc(8px + 3 * var(--lh) + (var(--lh) - 6px) / 2);
  width: calc(62% - 24px);
}

.rh__ln:nth-child(5) {
  top: calc(8px + 4 * var(--lh) + (var(--lh) - 6px) / 2);
  width: calc(78% - 24px);
}

.rh__ln:nth-child(6) {
  top: calc(8px + 5 * var(--lh) + (var(--lh) - 6px) / 2);
  width: calc(88% - 24px);
}

.rh__ln:nth-child(7) {
  top: calc(8px + 6 * var(--lh) + (var(--lh) - 6px) / 2);
  width: calc(66% - 24px);
}

.rh__ln:nth-child(8) {
  top: calc(8px + 7 * var(--lh) + (var(--lh) - 6px) / 2);
  width: calc(82% - 24px);
}

.rh__grip {
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 64px;
  height: 16px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #17141a;
  box-shadow: inset 0 0 0 2px #4cd4a6;
  transform: translateX(-50%);
  cursor: ns-resize;
  touch-action: none;
}

.rh__raw {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(100% - 64px);
  height: 0;
  border-top: 2px dashed #ff9ebb;
  pointer-events: none;
}

.rh__rows {
  position: absolute;
  right: 0;
  top: 0;
  width: 56px;
  margin: 0;
  display: grid;
  justify-items: center;
}

.rh__rows b {
  font-size: 32px;
  line-height: 36px;
  font-weight: 800;
}
