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

.cbc {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 300px;
}

.cbc__list {
  display: grid;
  gap: 8px;
  flex: 1 1 auto;
}

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

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

.cbc__box {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid rgba(23, 20, 26, 0.32);
  background: transparent;
  color: transparent;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  transition: background-color 220ms ease-out, border-color 220ms ease-out, color 220ms ease-out;
}

.cbc__box--on {
  background: #2f6df6;
  border-color: #2f6df6;
  color: #fff7e6;
}

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

.cbc__text {
  color: #17141a;
  font-size: 12px;
  font-weight: 600;
}

.cbc__badge {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #0a4fe8;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.cbc__window {
  display: block;
  width: 14px;
  height: 18px;
  overflow: hidden;
  clip-path: inset(0 0 0 0 round 4px);
}

.cbc__strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform;
}
.cbc__strip span {
  height: 18px;
  line-height: 18px;
  color: #fff7e6;
  font-weight: 800;
  font-size: 13px;
}

@media (max-width: 340px) {
  .cbc {
    gap: 16px;
  }
  .cbc__text {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cbc__box {
    transition: none;
  }
}
