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

.wrap {
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.supportBadge {
  color: #fff7e6;
  font-size: 10px;
  font-weight: 600;
  background: rgba(255, 247, 230, 0.1);
  border-radius: 4px;
  padding: 4px 8px;
}
.supportBadge.fallback {
  background: rgba(201, 48, 0, 0.45);
}

.toggleBtn {
  appearance: none;
  border: none;
  border-radius: 999px;
  background: #c93000;
  color: #fff7e6;
  padding: 4px 12px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: background 140ms ease-out, transform 140ms ease-out;
}
.toggleBtn:hover {
  background: #c93000;
  filter: brightness(1.2);
}
.toggleBtn:active {
  transform: scale(0.96);
}
.toggleBtn[aria-pressed=true] {
  background: #5b8cf8;
}
.toggleBtn:focus-visible {
  outline: 2px solid #5b8cf8;
  outline-offset: 2px;
}

.frame {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.heading {
  margin: 0;
  color: #fff7e6;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  width: 260px;
}

.bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bar {
  height: 6px;
  width: 260px;
  border-radius: 4px;
  background: #5b8cf8;
  transform-origin: left;
}

.readout {
  color: #fff7e6;
  font-size: 11px;
  opacity: 0.82;
}

@media (max-width: 340px) {
  .wrap {
    width: 260px;
  }
  .heading, .bar {
    width: 230px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .toggleBtn {
    transition: none;
  }
}
