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

.cbl {
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: 260px;
}

.cbl__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  transition: filter 300ms ease-out;
}

.cbl__row--locked {
  filter: grayscale(0.6) brightness(0.7) blur(0.3px);
  pointer-events: none;
}

.cbl__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.cbl__box {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  border: 2px solid rgba(255, 247, 230, 0.4);
  color: #fff7e6;
  display: grid;
  place-items: center;
  box-sizing: border-box;
}
.cbl__box svg {
  opacity: 0;
}

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

.cbl__text {
  color: #fff7e6;
  font-size: 14px;
  font-weight: 600;
}

.cbl__toggle {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 247, 230, 0.3);
  border-radius: 8px;
  background: transparent;
  color: #fff7e6;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.cbl__lock {
  color: #fff7e6;
}

.cbl__shackle {
  will-change: transform;
}

@media (max-width: 340px) {
  .cbl__text {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cbl__row, .cbl__shackle {
    transition: none;
  }
}
