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

.wb {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 424px;
}

.wb__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.wb__title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(13px, 3.4vw, 15px);
  color: #17141a;
}

.wb__say {
  margin: 0;
  font-weight: 700;
  font-size: clamp(9px, 2.4vw, 11px);
  color: rgba(23, 20, 26, 0.62);
}

.wb__chart {
  position: relative;
}

.wb__goal {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 78px;
  height: 0;
  border-top: 2px dashed rgba(23, 20, 26, 0.32);
}

.wb__cols {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.wb__col {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  color: #17141a;
}

.wb__num {
  font-weight: 800;
  font-size: clamp(9px, 2.4vw, 11px);
  line-height: 1;
}

.wb__slot {
  display: block;
  width: 100%;
  height: 96px;
  border-radius: 8px;
  background: rgba(23, 20, 26, 0.08);
}

.wb__bar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background: rgba(23, 20, 26, 0.3);
  transform-origin: bottom;
  transform: scaleY(var(--v, 0));
}

.wb__bar.is-over {
  background: #2f6df6;
}

.wb__tick {
  font-weight: 700;
  font-size: clamp(8px, 2.2vw, 10px);
  line-height: 1.6;
  color: rgba(23, 20, 26, 0.68);
}

.wb__tick.is-today {
  border-radius: 999px;
  padding: 0 4px;
  background: #17141a;
  color: #ffffff;
  font-weight: 800;
}

.wb__col.is-today .wb__slot {
  box-shadow: inset 0 0 0 2px #17141a;
}

.wb__col:focus-visible {
  outline: 2px solid #17141a;
  outline-offset: 2px;
}

.wb__cap {
  margin: 0;
  font-weight: 700;
  font-size: clamp(8px, 2.2vw, 10px);
  color: rgba(23, 20, 26, 0.7);
}

.wb.is-demo .wb__bar {
  animation-name: wbGrow;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
  animation-delay: calc(var(--i) * 60ms);
}

@keyframes wbGrow {
  0% {
    transform: scaleY(calc(var(--v, 0) * 0.2));
  }
  24% {
    transform: scaleY(var(--v, 0));
  }
  76% {
    transform: scaleY(var(--v, 0));
  }
  90% {
    transform: scaleY(calc(var(--v, 0) * 0.2));
  }
  100% {
    transform: scaleY(calc(var(--v, 0) * 0.2));
  }
}
@media (max-width: 340px) {
  .wb {
    gap: 8px;
  }
  .wb__cols {
    gap: 4px;
  }
  .wb__slot {
    height: 60px;
  }
  .wb__goal {
    bottom: 53px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wb.is-demo .wb__bar {
    animation: none !important;
    transform: scaleY(var(--v, 0)) !important;
  }
}
