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

.lg {
  box-sizing: border-box;
  width: min(304px, 92vw);
  padding: 12px;
  border: 1px solid rgb(23.5764705882%, 22.0862745098%, 22.9960784314%);
  border-radius: 16px;
  background: #17141a;
  color: #fff7e6;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  font-size: 12px;
  line-height: 1.3;
}

.lg__h {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.lg__list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lg__box {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 4px 8px;
  border: 1px solid rgb(23.5764705882%, 22.0862745098%, 22.9960784314%);
  border-radius: 8px;
  background: rgb(16.2980392157%, 14.9647058824%, 16.5960784314%);
  color: inherit;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}

.lg__box:focus-visible {
  outline: 2px solid #2f6df6;
  outline-offset: 2px;
}

.lg__tick {
  display: inline-flex;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: transparent;
}

.lg__label {
  color: rgba(255, 255, 255, 0.74);
}

.lg__row.is-on .lg__tick {
  background: #2f6df6;
  color: #fff7e6;
}

.lg__row.is-on .lg__label {
  color: #fff7e6;
}

.lg__foot {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.lg__why {
  position: relative;
  margin: 0;
  min-height: 16px;
  font-size: 11px;
}

.lg__why-a, .lg__why-b {
  position: absolute;
  inset: 0;
}

.lg__why-a {
  color: rgba(255, 255, 255, 0.5);
}

.lg__why-b {
  color: #4cd4a6;
  opacity: 0;
}

.lg.is-ready .lg__why-a {
  opacity: 0;
}

.lg.is-ready .lg__why-b {
  opacity: 1;
}

.lg__next {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 4px 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.72);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  cursor: not-allowed;
}

.lg__next:focus-visible {
  outline: 2px solid #2f6df6;
  outline-offset: 2px;
}

.lg__lock {
  display: inline-flex;
  width: 13px;
  height: 13px;
}

.lg.is-ready .lg__next {
  background: #2f6df6;
  color: #fff7e6;
  cursor: pointer;
}

.lg.is-ready .lg__lock {
  display: none;
}

.lg.is-sent .lg__next-t {
  color: #4cd4a6;
}

.lg.is-nudge .lg__why-a {
  color: #ffe0d8;
}

@keyframes lg-on-1 {
  0%, 11% {
    background: rgba(255, 255, 255, 0.1);
    color: transparent;
  }
  12%, 100% {
    background: #2f6df6;
    color: #fff7e6;
  }
}
@keyframes lg-on-2 {
  0%, 31% {
    background: rgba(255, 255, 255, 0.1);
    color: transparent;
  }
  32%, 100% {
    background: #2f6df6;
    color: #fff7e6;
  }
}
@keyframes lg-on-3 {
  0%, 51% {
    background: rgba(255, 255, 255, 0.1);
    color: transparent;
  }
  52%, 88% {
    background: #2f6df6;
    color: #fff7e6;
  }
  89%, 100% {
    background: rgba(255, 255, 255, 0.1);
    color: transparent;
  }
}
@keyframes lg-pop-1 {
  0%, 8% {
    transform: translateY(0);
  }
  14% {
    transform: translateY(-3px);
  }
  22%, 100% {
    transform: translateY(0);
  }
}
@keyframes lg-pop-2 {
  0%, 28% {
    transform: translateY(0);
  }
  34% {
    transform: translateY(-3px);
  }
  42%, 100% {
    transform: translateY(0);
  }
}
@keyframes lg-pop-3 {
  0%, 48% {
    transform: translateY(0);
  }
  54% {
    transform: translateY(-3px);
  }
  62%, 88% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(0);
  }
}
@keyframes lg-unlock {
  0%, 55% {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.72);
  }
  56%, 88% {
    background: #2f6df6;
    color: #fff7e6;
  }
  89%, 100% {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.72);
  }
}
@keyframes lg-lock-off {
  0%, 55% {
    transform: scale(1);
    opacity: 1;
  }
  56%, 88% {
    transform: scale(0.4);
    opacity: 0;
  }
  89%, 100% {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes lg-why-a {
  0%, 55% {
    opacity: 1;
  }
  56%, 88% {
    opacity: 0;
  }
  89%, 100% {
    opacity: 1;
  }
}
@keyframes lg-why-b {
  0%, 55% {
    opacity: 0;
    transform: translateY(3px);
  }
  56% {
    opacity: 1;
    transform: translateY(3px);
  }
  64%, 88% {
    opacity: 1;
    transform: translateY(0);
  }
  89%, 100% {
    opacity: 0;
    transform: translateY(3px);
  }
}
.lg.is-demo .lg__row[data-row="1"] .lg__tick {
  animation-name: lg-on-1;
}
.lg.is-demo .lg__row[data-row="2"] .lg__tick {
  animation-name: lg-on-2;
}
.lg.is-demo .lg__row[data-row="3"] .lg__tick {
  animation-name: lg-on-3;
}
.lg.is-demo .lg__tick {
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}
.lg.is-demo .lg__row[data-row="1"] .lg__box {
  animation-name: lg-pop-1;
}
.lg.is-demo .lg__row[data-row="2"] .lg__box {
  animation-name: lg-pop-2;
}
.lg.is-demo .lg__row[data-row="3"] .lg__box {
  animation-name: lg-pop-3;
}
.lg.is-demo .lg__box {
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}
.lg.is-demo .lg__next {
  animation-name: lg-unlock;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}
.lg.is-demo .lg__lock {
  animation-name: lg-lock-off;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}
.lg.is-demo .lg__why-a {
  animation-name: lg-why-a;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}
.lg.is-demo .lg__why-b {
  animation-name: lg-why-b;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}

@media (max-width: 340px) {
  .lg {
    padding: 8px;
    font-size: 11px;
  }
  .lg__h {
    margin-bottom: 4px;
  }
  .lg__box {
    padding: 0 8px;
    font-size: 11px;
  }
  .lg__foot {
    margin-top: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lg.is-demo .lg__tick,
  .lg.is-demo .lg__box,
  .lg.is-demo .lg__next,
  .lg.is-demo .lg__lock,
  .lg.is-demo .lg__why-a,
  .lg.is-demo .lg__why-b {
    animation: none !important;
    transform: none !important;
  }
  .lg.is-demo .lg__tick {
    background: #2f6df6 !important;
    color: #fff7e6 !important;
  }
  .lg.is-demo .lg__next {
    background: #2f6df6 !important;
    color: #fff7e6 !important;
  }
  .lg.is-demo .lg__lock {
    display: none !important;
  }
  .lg.is-demo .lg__why-a {
    opacity: 0 !important;
  }
  .lg.is-demo .lg__why-b {
    opacity: 1 !important;
  }
}
