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__img {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(160deg, #6ec8ff, #b9a0ff);
  box-shadow: 0 8px 16px rgba(23, 20, 26, 0.24);
}

.rh__sun {
  position: absolute;
  right: 14%;
  top: 14%;
  width: 20%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ff9ebb;
}

.rh__hill {
  position: absolute;
  left: -10%;
  bottom: -72%;
  width: 120%;
  height: 100%;
  border-radius: 50%;
  background: #4cd4a6;
}

.rh__h {
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  z-index: 3;
  touch-action: none;
}

.rh__h::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  width: 12px;
  height: 12px;
  box-sizing: border-box;
  border: 2px solid #17141a;
  border-radius: 4px;
  background: #fff7e6;
}

.rh__h[data-hx="-1"][data-hy="-1"],
.rh__h[data-hx="1"][data-hy="1"] {
  cursor: nwse-resize;
}

.rh__h[data-hx="1"][data-hy="-1"],
.rh__h[data-hx="-1"][data-hy="1"] {
  cursor: nesw-resize;
}

.rh__h[data-hx="0"] {
  cursor: ns-resize;
}

.rh__h[data-hy="0"] {
  cursor: ew-resize;
}

.rh__h:focus-visible::before {
  box-shadow: 0 0 0 3px #ff9ebb;
}

.rh__proj {
  position: absolute;
  left: 0;
  top: 0;
  height: 0;
  border-top: 2px dashed #ff9ebb;
  transform-origin: 0 0;
  opacity: 0;
  pointer-events: none;
  z-index: 4;
}

.rh__meta {
  position: absolute;
  left: 0;
  bottom: 0;
  margin: 0;
  padding: 0 8px;
  border-radius: 4px;
  background: rgba(23, 20, 26, 0.72);
  z-index: 5;
}

.rh__meta {
  color: #fff7e6;
}

.rh__meta .rh__tag {
  color: rgba(255, 247, 230, 0.78);
}
