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

.cb {
  --h: clamp(148px, 58vh, 176px);
  width: min(360px, 92vw);
}

.cb__scroller {
  height: var(--h);
  overflow-y: auto;
  scroll-timeline-name: --cb-scroll;
  scroll-timeline-axis: block;
  border-radius: 16px;
  scrollbar-width: none;
}
.cb__scroller::-webkit-scrollbar {
  display: none;
}

.cb__bg {
  position: sticky;
  top: 0;
  height: var(--h);
  overflow: hidden;
}

.cb__scene {
  display: grid;
  place-items: center;
  height: 100%;
  background: linear-gradient(160deg, #ff9ebb 0%, #ff4d1f 58%, #aa6f54 100%);
  color: rgba(255, 247, 230, 0.92);
}

.cb__sun {
  grid-area: 1/1;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 210, 63, 0.85);
  transform: translate(64px, -32px);
}

.cb__peaks {
  grid-area: 1/1;
  transform: translateY(12px);
}

.cb__dim {
  position: absolute;
  inset: 0;
  background: #17141a;
  opacity: 0;
  animation-name: cb-dim;
  animation-duration: 1s;
  animation-timing-function: linear;
  animation-fill-mode: both;
  animation-timeline: --cb-scroll;
}

@keyframes cb-dim {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.46;
  }
}
.cb__caps {
  position: relative;
  display: grid;
  gap: calc(var(--h) * 0.62);
  margin-top: calc(var(--h) * -1);
  padding: calc(var(--h) * 0.44) 16px calc(var(--h) * 0.5);
}

.cb__cap {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  color: #17141a;
  font-size: 13px;
  line-height: 19px;
  font-weight: 700;
}

.cb.is-demo .cb__caps {
  animation-name: cb-scrub;
  animation-duration: 1s;
  animation-timing-function: linear;
  animation-direction: alternate;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}

.cb.is-demo .cb__dim {
  animation-duration: 1s;
  animation-direction: alternate;
  animation-iteration-count: infinite;
  animation-timeline: auto;
}

@keyframes cb-scrub {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-328px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .cb__dim {
    animation: none !important;
    opacity: 0.3;
  }
  .cb.is-demo .cb__caps {
    animation: none !important;
    transform: none;
  }
}
