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

.cb {
  width: min(300px, 88vw);
}

.cb__chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  height: 150px;
  padding: 0 4px;
  border-bottom: 2px solid rgba(255, 247, 230, 0.18);
}

.cb__col {
  flex: 1 1 0;
  height: 100%;
  display: flex;
  align-items: flex-end;
}

.cb__bar {
  width: 100%;
  height: 100%;
  border-radius: 4px 4px 0 0;
  background: #2f6df6;
  transform-origin: bottom;
  transform: scaleY(0.16);
  opacity: 0.32;
  animation: cbReveal 2s var(--phase, 0ms) cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.cb__reload {
  display: block;
  margin: 16px auto 0;
  appearance: none;
  border: none;
  cursor: pointer;
  background: rgba(255, 247, 230, 0.12);
  color: #fff7e6;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
}

.cb__reload:focus-visible {
  outline: 2px solid #fff7e6;
  outline-offset: 2px;
}

@keyframes cbReveal {
  0% {
    transform: scaleY(0.16);
    opacity: 0.32;
  }
  14% {
    transform: scaleY(0.16);
    opacity: 0.32;
  }
  46% {
    transform: scaleY(var(--real, 0.6));
    opacity: 1;
  }
  84% {
    transform: scaleY(var(--real, 0.6));
    opacity: 1;
  }
  100% {
    transform: scaleY(0.16);
    opacity: 0.32;
  }
}
@media (max-width: 340px) {
  .cb {
    width: min(250px, 84vw);
  }
  .cb__chart {
    height: 120px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cb__bar {
    animation: none;
    transform: scaleY(var(--real, 0.6));
    opacity: 1;
  }
}
