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

.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__box {
  position: absolute;
  left: 0;
  top: 0;
  box-sizing: border-box;
  height: calc(100% - 24px);
  container-type: inline-size;
  border-radius: 16px;
  background: rgba(23, 20, 26, 0.12);
}

.rh__cards {
  position: absolute;
  inset: 8px 16px 8px 8px;
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: 1fr;
  gap: 8px;
  overflow: hidden;
}

.rh__card {
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 8px;
  overflow: hidden;
  border-radius: 8px;
  background: #b9a0ff;
}

.rh__card:nth-child(2) {
  background: #4cd4a6;
}

.rh__card:nth-child(3) {
  background: #ff9ebb;
}

.rh__card i {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(23, 20, 26, 0.72);
}

.rh__card span {
  display: grid;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.rh__card b {
  display: block;
  height: 6px;
  border-radius: 4px;
  background: rgba(23, 20, 26, 0.5);
}

.rh__card b:last-child {
  width: 60%;
}

@container (min-width: 150px) {
  .rh__cards {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
  }
  .rh__card {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }
  .rh__card span {
    width: 100%;
    flex: none;
  }
}
@container (min-width: 250px) {
  .rh__cards {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1.2fr 1fr;
  }
  .rh__card:first-child {
    grid-column: 1/-1;
    flex-direction: row;
    align-items: center;
  }
  .rh__card:first-child i {
    width: 40px;
    height: 40px;
  }
  .rh__card span {
    flex: 1;
    width: auto;
  }
}
.rh__grip {
  position: absolute;
  right: 4px;
  top: 50%;
  width: 8px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #17141a;
  transform: translateY(-50%);
  cursor: ew-resize;
  touch-action: none;
}

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