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

.consent-card {
  width: min(240px, 88vw);
  padding: 16px;
  border: 1.5px solid #e6e2d8;
  border-radius: 16px;
  background: #ffffff;
  transition: border-color 300ms ease-out;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: #17141a;
  font-family: inherit;
  cursor: pointer;
}

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

.consent__box {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 2px solid #c9c2b2;
  color: #2f6df6;
  display: grid;
  place-items: center;
  transition: border-color 300ms ease-out;
}

.consent__svg {
  width: 14px;
  height: 14px;
}

.consent__check {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 300ms ease-out;
}

.consent__input:checked ~ .consent__box {
  border-color: #2f6df6;
}

.consent__input:checked ~ .consent__box .consent__check {
  stroke-dashoffset: 0;
}

.consent__input:focus-visible ~ .consent__box {
  outline: 2px solid #2f6df6;
  outline-offset: 2px;
}

.consent-card:has(.consent__input:checked) {
  border-color: #2f6df6;
}

.consent-card.is-demo .consent__box {
  animation: box-cycle 2s ease-out infinite;
}

.consent-card.is-demo .consent__check {
  animation: check-cycle 2s ease-out infinite;
}

.consent-card.is-demo {
  animation: card-cycle 2s ease-out infinite;
}

@keyframes card-cycle {
  0%, 20% {
    border-color: #e6e2d8;
  }
  45%, 100% {
    border-color: #2f6df6;
  }
}
@keyframes box-cycle {
  0%, 20% {
    border-color: #c9c2b2;
  }
  45%, 100% {
    border-color: #2f6df6;
  }
}
@keyframes check-cycle {
  0%, 20% {
    stroke-dashoffset: 1;
  }
  45%, 100% {
    stroke-dashoffset: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .consent-card, .consent__box, .consent__check {
    transition: none;
  }
  .consent-card.is-demo,
  .consent-card.is-demo .consent__box,
  .consent-card.is-demo .consent__check {
    animation: none;
  }
}
