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

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

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

.cbe__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  user-select: none;
  transition: border-color 220ms ease-out, background-color 220ms ease-out;
}

.cbe__row--error {
  border-color: #c2361a;
  background: #ffe0d8;
}

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

.cbe__box {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  border: 2px solid rgba(23, 20, 26, 0.32);
  color: #fff7e6;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  transition: background-color 220ms ease-out, border-color 220ms ease-out;
}
.cbe__box svg {
  opacity: 0;
  transition: opacity 220ms ease-out;
}

.cbe__input:checked + .cbe__box {
  background: #2f6df6;
  border-color: #2f6df6;
}
.cbe__input:checked + .cbe__box svg {
  opacity: 1;
}

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

.cbe__text {
  color: #17141a;
  font-size: 14px;
  font-weight: 600;
}

.cbe__hint {
  margin: 0;
  padding-left: 12px;
  color: rgba(23, 20, 26, 0.55);
  font-size: 12px;
  transition: color 220ms ease-out, opacity 220ms ease-out;
}

.cbe__hint--error {
  color: #c2361a;
  opacity: 1;
}

.cbe__submit {
  justify-self: start;
  padding: 8px 20px;
  border: none;
  border-radius: 8px;
  background: #0a4fe8;
  color: #fff7e6;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 340px) {
  .cbe {
    max-width: 100%;
  }
  .cbe__text {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cbe__row, .cbe__box, .cbe__box svg, .cbe__hint {
    transition: none;
  }
}
