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

.cba {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 260px;
}

.cba__row {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.cba__row--parent {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 247, 230, 0.2);
}

.cba__children {
  display: grid;
  gap: 8px;
  padding-left: 24px;
}

.cba__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.cba__box {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 8px;
  border: 2px solid rgba(255, 247, 230, 0.4);
  background: transparent;
  color: transparent;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  transition: background-color 300ms ease-out, border-color 300ms ease-out, color 300ms ease-out;
}

.cba__row--parent .cba__box {
  width: 24px;
  height: 24px;
}

.cba__check, .cba__dash {
  opacity: 0;
  transition: opacity 220ms ease-out;
}

.cba__box--on {
  background: #4cd4a6;
  border-color: #4cd4a6;
  color: #17141a;
}
.cba__box--on .cba__check {
  opacity: 1;
}

.cba__box--mixed {
  border-color: #4cd4a6;
}
.cba__box--mixed .cba__dash {
  opacity: 1;
}

.cba__input:focus-visible + .cba__box {
  outline: 2px solid #5b8cf8;
  outline-offset: 2px;
}

.cba__text {
  color: #fff7e6;
  font-size: 13px;
  font-weight: 600;
}

.cba__row--parent .cba__text {
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 340px) {
  .cba__children {
    padding-left: 16px;
  }
  .cba__text {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cba__box, .cba__check, .cba__dash {
    transition: none;
  }
}
