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

.cb {
  display: grid;
  gap: 16px;
  justify-items: center;
  width: min(90vw, 280px);
}

.cb__row {
  display: flex;
  align-items: flex-start;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.cb__node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.cb__burstLayer {
  position: absolute;
  top: 17px;
  left: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
}

.cb__cardGlow {
  position: absolute;
  top: 17px;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 212, 166, 0.5), rgba(76, 212, 166, 0) 72%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
}

.cb__ring {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  border: 5px solid #4cd4a6;
  opacity: 0;
}

.cb__circle {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff7e6;
  background: rgba(255, 255, 255, 0.14);
  border: 2px solid rgba(255, 255, 255, 0.28);
}

.cb__circle.is-done {
  background: #4cd4a6;
  border-color: #4cd4a6;
  color: #17141a;
}

.cb__label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.68);
  font-weight: 600;
}

.cb__connector {
  flex: 1 1 auto;
  height: 3px;
  min-width: 22px;
  margin: 16px 4px 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.cb__connector.is-done {
  background: #4cd4a6;
}

.cb__status {
  margin: 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
}

.cb__controls {
  display: flex;
  gap: 8px;
}

.cb__btn {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff7e6;
  border-radius: 12px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.cb__btn--primary {
  background: #4cd4a6;
  border-color: #4cd4a6;
  color: #17141a;
}

.cb__btn:focus-visible {
  outline: 2px solid #4cd4a6;
  outline-offset: 2px;
}

@media (max-width: 340px) {
  .cb__circle {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }
  .cb__burstLayer {
    top: 14px;
  }
  .cb__connector {
    margin-top: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cb__ring {
    transition: none;
  }
}
