html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ff4d1f;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.qualityCard {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.badge {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #6ec8ff;
  transition: background-color 90ms linear;
}

.warnIcon {
  display: inline-flex;
  color: #fff7e6;
}
.warnIcon[hidden] {
  display: none;
}

.badgeText {
  font-size: 13px;
  font-weight: 700;
  color: #17141a;
}

.badge[data-level=low] .badgeText {
  color: #fff7e6;
}

.readout {
  margin: 0;
  font-size: 11px;
  color: rgba(23, 20, 26, 0.65);
}

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

@media (max-width: 340px) {
  .badge {
    padding: 4px 12px;
  }
  .badgeText, .readout, .forceBtn {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .badge {
    transition: none;
  }
}
