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: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.modeLabel {
  color: #fff7e6;
  font-size: 10px;
  font-weight: 700;
}

.rescanBtn {
  appearance: none;
  border: none;
  border-radius: 999px;
  background: #2f6df6;
  color: #fff7e6;
  padding: 4px 12px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 140ms ease-out;
}
.rescanBtn:active {
  transform: scale(0.94);
}
.rescanBtn:focus-visible {
  outline: 2px solid #5b8cf8;
  outline-offset: 2px;
}

.checkList {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.checkRow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(255, 247, 230, 0.06);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 300ms ease-out, transform 300ms ease-out;
  transition-delay: calc(var(--i, 0) * 55ms);
}

.checkRow.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.checkRow.is-hidden {
  opacity: 0;
  transform: translateY(6px);
  transition-delay: 0ms;
}

.statusIcon {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #5b8cf8;
}

.checkRow.is-ok .statusIcon {
  background: #4cd4a6;
}

.checkRow.is-fallback .statusIcon {
  background: #ffe0d8;
}

.featureName {
  color: #fff7e6;
  font-size: 11px;
}

.bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 247, 230, 0.12);
  overflow: hidden;
}

.barFill {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: #4cd4a6;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 300ms ease-out;
}

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

@media (max-width: 340px) {
  .wrap {
    width: 192px;
    gap: 4px;
  }
  .head {
    gap: 4px;
  }
  .featureName {
    font-size: 9px;
  }
  .checkList {
    gap: 0;
  }
  .checkRow {
    padding: 0 4px;
    gap: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .checkRow {
    transition: none;
  }
  .barFill {
    transition: none;
  }
  .rescanBtn, .simToggle {
    transition: none;
  }
}
