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

.cb {
  min-height: 44px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

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

.cb__box {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 2px solid rgba(23, 20, 26, 0.3);
  background: #fff7e6;
  display: grid;
  place-items: center;
  transform: scale(1);
  transition: transform 220ms cubic-bezier(0.2, 1.4, 0.4, 1), border-color 220ms cubic-bezier(0.2, 1.4, 0.4, 1), background 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}
.cb__box::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(47, 109, 246, 0.45), 0 0 0 0 rgba(47, 109, 246, 0.26);
  opacity: 0;
  pointer-events: none;
}

.cb__check {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #fff7e6;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  transition: stroke-dashoffset 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.cb__label {
  font-weight: 600;
  font-size: 13px;
  line-height: 1.3;
  font-family: inherit;
  color: #17141a;
}

.cb__input:checked ~ .cb__box {
  border-color: #2f6df6;
  background: #2f6df6;
  transform: scale(1.08);
}

.cb__input:checked ~ .cb__box::after {
  animation: ripple-wave 600ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.cb__input:checked ~ .cb__box .cb__check {
  stroke-dashoffset: 0;
}

.cb__input:focus-visible ~ .cb__box {
  outline: 3px solid #2f6df6;
  outline-offset: 2px;
}

.cb__box.is-demo {
  animation: check-loop 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

.cb__box.is-demo::after {
  animation: ripple-loop 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

.cb__box.is-demo .cb__check {
  animation: draw-loop 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

@keyframes check-loop {
  0%, 20% {
    transform: scale(1);
    border-color: rgba(23, 20, 26, 0.3);
    background: #fff7e6;
  }
  35% {
    transform: scale(1.08);
    border-color: #2f6df6;
    background: #2f6df6;
  }
  55%, 100% {
    transform: scale(1);
    border-color: #2f6df6;
    background: #2f6df6;
  }
}
@keyframes draw-loop {
  0%, 20% {
    stroke-dashoffset: 24;
  }
  45%, 100% {
    stroke-dashoffset: 0;
  }
}
@keyframes ripple-wave {
  0% {
    box-shadow: 0 0 0 0 rgba(47, 109, 246, 0.72), 0 0 0 0 rgba(47, 109, 246, 0.52);
    opacity: 1;
  }
  14% {
    box-shadow: 0 0 0 6px rgba(47, 109, 246, 0.72), 0 0 0 2px rgba(47, 109, 246, 0.52);
    opacity: 1;
  }
  44% {
    box-shadow: 0 0 0 9px rgba(47, 109, 246, 0.62), 0 0 0 5px rgba(47, 109, 246, 0.46);
    opacity: 1;
  }
  52% {
    box-shadow: 0 0 0 10px rgba(47, 109, 246, 0), 0 0 0 6px rgba(47, 109, 246, 0);
    opacity: 0;
  }
  100% {
    box-shadow: 0 0 0 10px rgba(47, 109, 246, 0), 0 0 0 6px rgba(47, 109, 246, 0);
    opacity: 0;
  }
}
@keyframes ripple-loop {
  0%, 20% {
    box-shadow: 0 0 0 0 rgba(47, 109, 246, 0.72), 0 0 0 0 rgba(47, 109, 246, 0.52);
    opacity: 1;
  }
  25% {
    box-shadow: 0 0 0 6px rgba(47, 109, 246, 0.72), 0 0 0 2px rgba(47, 109, 246, 0.52);
    opacity: 1;
  }
  44% {
    box-shadow: 0 0 0 9px rgba(47, 109, 246, 0.62), 0 0 0 5px rgba(47, 109, 246, 0.46);
    opacity: 1;
  }
  52% {
    box-shadow: 0 0 0 10px rgba(47, 109, 246, 0), 0 0 0 6px rgba(47, 109, 246, 0);
    opacity: 0;
  }
  58%, 100% {
    box-shadow: 0 0 0 10px rgba(47, 109, 246, 0), 0 0 0 6px rgba(47, 109, 246, 0);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cb__box, .cb__check {
    transition: none;
  }
  .cb__box::after {
    animation: none !important;
    opacity: 0;
  }
  .cb__box.is-demo, .cb__box.is-demo .cb__check {
    animation: none;
  }
}
