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

.cbw {
  cursor: pointer;
  user-select: none;
  display: block;
}

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

.cbw__card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 220px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(255, 247, 230, 0.14);
  border: 1px solid rgba(255, 247, 230, 0.3);
  overflow: hidden;
  box-sizing: border-box;
}

.cbw__fill {
  position: absolute;
  inset: 0;
  background: #2f6df6;
  clip-path: circle(0px at 0% 100%);
  pointer-events: none;
}

.cbw__box {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  border: 2px solid rgba(255, 247, 230, 0.6);
  color: #fff7e6;
  display: grid;
  place-items: center;
  box-sizing: border-box;
}
.cbw__box svg {
  opacity: 0;
  transition: opacity 220ms ease-out;
}

.cbw__input:checked ~ .cbw__card .cbw__box svg {
  opacity: 1;
}

.cbw__text {
  position: relative;
  z-index: 1;
  color: #fff7e6;
  font-size: 14px;
  font-weight: 600;
}

.cbw__input:focus-visible ~ .cbw__card {
  outline: 2px solid #5b8cf8;
  outline-offset: 2px;
}

@media (max-width: 340px) {
  .cbw__card {
    width: 100%;
    max-width: 220px;
  }
  .cbw__text {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cbw__fill {
    transition: none;
  }
  .cbw__box svg {
    transition: none;
  }
}
