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

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #17141a;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

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

.db__scroller {
  height: var(--h);
  overflow-y: auto;
  scrollbar-width: none;
}
.db__scroller::-webkit-scrollbar {
  display: none;
}

.db__pad {
  display: grid;
  gap: 12px;
  padding: calc(var(--h) * 1.05) 0 calc(var(--h) * 0.6);
}

.db__cap {
  margin: 0;
  color: rgba(255, 247, 230, 0.88);
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
}

.db__chart {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  align-items: end;
  height: 96px;
}

.db__col {
  display: grid;
  align-content: end;
  justify-items: center;
  gap: 4px;
}

.db__bar {
  width: 100%;
  border-radius: 4px;
  background: #4cd4a6;
  transform: scaleY(0.04);
  transform-origin: bottom;
  animation-name: db-grow-in;
  animation-duration: 1s;
  animation-timing-function: cubic-bezier(0.5, 0, 0.5, 1);
  animation-fill-mode: both;
  animation-timeline: view(block);
}

@keyframes db-grow-in {
  from {
    transform: scaleY(0.04);
  }
  to {
    transform: scaleY(1);
  }
}
.db__col:nth-child(1) .db__bar {
  height: 34px;
  animation-range: entry 8% cover 38%;
}

.db__col:nth-child(2) .db__bar {
  height: 52px;
  animation-range: entry 14% cover 44%;
}

.db__col:nth-child(3) .db__bar {
  height: 44px;
  animation-range: entry 20% cover 50%;
}

.db__col:nth-child(4) .db__bar {
  height: 68px;
  animation-range: entry 26% cover 56%;
}

.db__col:nth-child(5) .db__bar {
  height: 80px;
  animation-range: entry 32% cover 62%;
}

@keyframes db-grow {
  0% {
    transform: scaleY(0.04);
  }
  22%, 58% {
    transform: scaleY(1);
  }
  84%, 100% {
    transform: scaleY(0.04);
  }
}
.db__axis {
  color: rgba(255, 247, 230, 0.62);
  font-size: 10px;
  line-height: 14px;
  font-weight: 500;
}

.db.is-demo .db__pad {
  padding-top: calc(var(--h) * 0.22);
}

.db.is-demo .db__bar {
  animation-name: db-grow;
  animation-duration: 2s;
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
  animation-timeline: auto;
}

.db.is-demo .db__col:nth-child(2) .db__bar {
  animation-delay: 25ms;
}

.db.is-demo .db__col:nth-child(3) .db__bar {
  animation-delay: 50ms;
}

.db.is-demo .db__col:nth-child(4) .db__bar {
  animation-delay: 75ms;
}

.db.is-demo .db__col:nth-child(5) .db__bar {
  animation-delay: 100ms;
}

@media (prefers-reduced-motion: reduce) {
  .db__bar {
    animation: none !important;
    transform: scaleY(1);
  }
}
