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

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

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

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

.gh__circle {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.gh__circle.is-active {
  background: #ffffff;
  color: #c93000;
  border-color: #ffffff;
}

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

.gh__circle.is-skipped {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.gh__aura {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
}

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

.gh__optional {
  font-size: 8px;
  color: rgba(255, 255, 255, 0.55);
}

.gh__connector {
  flex: 1 1 auto;
  height: 5px;
  min-width: 16px;
  margin: 20px 4px 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.gh__status {
  margin: 0;
  font-size: 11px;
  color: #ffffff;
  font-weight: 700;
}

.gh__controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.gh__btn {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #ffffff;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.gh__btn--primary {
  background: #17141a;
  border-color: #17141a;
}

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

.gh__btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

@media (max-width: 340px) {
  .gh__circle {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }
  .gh__connector {
    height: 4px;
    margin-top: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gh__circle {
    transition: none;
  }
}
