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

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

.bp {
  --breathGlow: 0;
  display: grid;
  gap: 16px;
  justify-items: center;
  width: min(92vw, 380px);
  background-image: radial-gradient(circle at 50% 28%, rgba(10, 79, 232, calc(var(--breathGlow, 0) * 0.16)), transparent 70%);
  border-radius: 16px;
}

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

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

.bp__ring {
  position: absolute;
  top: -8px;
  left: 50%;
  width: 58px;
  height: 58px;
  margin-left: -29px;
  border-radius: 50%;
  border: 2px solid #0a4fe8;
  opacity: 0;
  pointer-events: none;
}

.bp__circle {
  --breathGlow: 0;
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
  color: #17141a;
  background: #ffffff;
  border: 2px solid rgba(23, 20, 26, 0.2);
  box-shadow: 0 0 calc(var(--breathGlow, 0) * 18px) rgba(10, 79, 232, calc(var(--breathGlow, 0) * 0.7));
  cursor: pointer;
  transform-origin: center;
}

.bp__circle.is-active {
  background: #0a4fe8;
  border-color: #0a4fe8;
  color: #ffffff;
}

.bp__circle.is-done {
  background: #17141a;
  border-color: #17141a;
  color: #ffd23f;
}

.bp__label {
  font-size: 10px;
  color: rgba(23, 20, 26, 0.7);
  font-weight: 600;
}

.bp__connector {
  flex: 1 1 auto;
  height: 6px;
  min-width: 20px;
  margin: 20px 4px 0;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.18);
}

.bp__status {
  margin: 0;
  font-size: 11px;
  color: rgba(23, 20, 26, 0.78);
  font-weight: 700;
}

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

.bp__btn {
  border: 1px solid rgba(23, 20, 26, 0.3);
  background: transparent;
  color: #17141a;
  border-radius: 12px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.bp__btn--primary {
  background: #0a4fe8;
  border-color: #0a4fe8;
  color: #ffffff;
}

.bp__btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.bp__btn:focus-visible,
.bp__circle:focus-visible {
  outline: 2px solid #0a4fe8;
  outline-offset: 2px;
}

@media (max-width: 340px) {
  .bp__circle {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }
  .bp__ring {
    width: 48px;
    height: 48px;
    margin-left: -24px;
    top: -6px;
  }
  .bp__label {
    font-size: 9px;
  }
  .bp__connector {
    height: 4px;
    margin: 16px 4px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bp__circle {
    transition: none;
  }
  .bp__ring {
    display: none;
  }
}
