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

.cx {
  width: min(260px, 84vw);
  text-align: center;
}

.cx__panel {
  position: relative;
  min-height: 108px;
  display: flex;
}

.cx__state {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
  pointer-events: none;
}

.cx__state.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cx__skbar {
  width: 100%;
  height: 14px;
  border-radius: 4px;
  background: rgba(255, 247, 230, 0.18);
}
.cx__skbar:nth-child(2) {
  width: 72%;
}
.cx__skbar:nth-child(3) {
  width: 46%;
}

.cx__skbar + .cx__skbar {
  margin-top: 8px;
}

.cx__icon {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  position: relative;
}

.cx__icon--fail {
  background: rgba(194, 54, 26, 0.18);
}

.cx__icon--fail::before, .cx__icon--fail::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 6px;
  width: 2.5px;
  height: 16px;
  background: #c2361a;
  border-radius: 4px;
}

.cx__icon--fail::before {
  transform: rotate(45deg);
  transform-origin: center;
}

.cx__icon--fail::after {
  transform: rotate(-45deg);
  transform-origin: center;
}

.cx__icon--empty {
  background: rgba(255, 247, 230, 0.16);
}

.cx__icon--empty::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 12px;
  width: 12px;
  height: 2.5px;
  background: rgba(255, 247, 230, 0.7);
  border-radius: 4px;
}

.cx__msg {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 247, 230, 0.82);
}

.cx__bar {
  width: 60%;
  height: 12px;
  border-radius: 4px;
  margin: 0 auto;
}

.cx__bar--a {
  background: #2f6df6;
  width: 42%;
}

.cx__bar--b {
  background: #c2361a;
  width: 68%;
  margin-top: 8px;
}

.cx__bar--c {
  background: #2b9d74;
  width: 54%;
  margin-top: 8px;
}

.cx__retry {
  display: block;
  margin: 16px auto 0;
  appearance: none;
  border: none;
  cursor: pointer;
  background: rgba(255, 247, 230, 0.14);
  color: #fff7e6;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
}

.cx__retry:focus-visible {
  outline: 2px solid #fff7e6;
  outline-offset: 2px;
}

@media (max-width: 340px) {
  .cx {
    width: min(220px, 82vw);
  }
  .cx__panel {
    min-height: 96px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cx__state {
    transition: none;
    transform: none;
  }
}
