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

.bmf {
  width: min(280px, 84vw);
  color: #17141a;
  text-align: center;
}

.bmf__meter {
  position: relative;
  height: 16px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(23, 20, 26, 0.1);
  cursor: pointer;
}

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

.bmf__fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 60%;
  background: #6ec8ff;
  transition: width 300ms ease-out;
}

.bmf__gloss {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 28px;
  background: linear-gradient(90deg, rgba(255, 247, 230, 0), rgba(255, 247, 230, 0.85), rgba(255, 247, 230, 0));
  opacity: 0;
  transform: translateX(-50%);
}

.bmf__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.bmf__btn {
  appearance: none;
  border: 0;
  border-radius: 12px;
  width: 32px;
  height: 32px;
  background: #17141a;
  color: #fff7e6;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.bmf__btn:active {
  transform: scale(0.9);
}

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

.bmf__name {
  font-weight: 700;
  font-size: 15px;
  min-width: 78px;
}

@media (max-width: 340px) {
  .bmf {
    width: min(240px, 80vw);
  }
  .bmf__name {
    font-size: 13px;
    min-width: 64px;
  }
  .bmf__btn {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bmf__fill {
    transition: none;
  }
}
