@property --mx {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 50%;
}
@property --my {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 50%;
}
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-panel {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  width: min(300px, 86vw);
  aspect-ratio: 300/190;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  padding: 16px;
  color: #17141a;
  font: 600 12px/1.3 -apple-system, "Segoe UI", sans-serif;
  --mx: 50%;
  --my: 35%;
}

.rh-panel__title {
  position: relative;
  z-index: 1;
  font-size: 13px;
  font-weight: 700;
}

.rh-panel__desc {
  position: relative;
  z-index: 1;
  opacity: 0.75;
  font-weight: 500;
}

.rh-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120px 80px at var(--mx) var(--my), #fff7e6 0%, transparent 70%);
  opacity: 0.7;
  pointer-events: none;
}

@keyframes rh-drift {
  0% {
    --mx: 15%;
    --my: 20%;
  }
  25% {
    --mx: 85%;
    --my: 15%;
  }
  50% {
    --mx: 85%;
    --my: 85%;
  }
  75% {
    --mx: 15%;
    --my: 80%;
  }
  100% {
    --mx: 15%;
    --my: 20%;
  }
}
.rh-panel.is-demo {
  animation: rh-drift 2s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .rh-panel.is-demo {
    animation: none !important;
  }
}
