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

.meter {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 90px;
}

.bar {
  --bar-level: .22;
  display: block;
  width: 16px;
  border-radius: 4px;
  background: #4cd4a6;
  transform-origin: bottom;
  transform: scaleY(var(--bar-level));
  transition: transform 220ms ease-out;
}
.bar:nth-child(1) {
  height: 28px;
}
.bar:nth-child(2) {
  height: 44px;
}
.bar:nth-child(3) {
  height: 60px;
}
.bar:nth-child(4) {
  height: 76px;
}
.bar:nth-child(5) {
  height: 90px;
}

.readout {
  margin: 12px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: #17141a;
  text-align: center;
}

.pinBtn {
  appearance: none;
  border: none;
  margin-top: 8px;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #fff7e6;
  background: #17141a;
  cursor: pointer;
}
.pinBtn:focus-visible {
  outline: 2px solid #2f6df6;
  outline-offset: 2px;
}
.pinBtn[aria-pressed=true] {
  background: #c93000;
}

@media (max-width: 340px) {
  .meter {
    height: 64px;
    gap: 4px;
  }
  .bar {
    width: 12px;
  }
  .bar:nth-child(1) {
    height: 20px;
  }
  .bar:nth-child(2) {
    height: 30px;
  }
  .bar:nth-child(3) {
    height: 42px;
  }
  .bar:nth-child(4) {
    height: 54px;
  }
  .bar:nth-child(5) {
    height: 64px;
  }
  .readout, .pinBtn {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bar {
    transition: none;
  }
}
