html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ffd23f;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.la {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.la__mark {
  position: relative;
  width: 96px;
  height: 96px;
}

.la__q {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  transform-origin: 50% 50%;
}

.la__q--tl {
  background: #17141a;
  clip-path: inset(0 51% 51% 0);
}

.la__q--tr {
  background: #2f6df6;
  clip-path: inset(0 0 51% 51%);
}

.la__q--br {
  background: #2b9d74;
  clip-path: inset(51% 0 0 51%);
}

.la__q--bl {
  background: #ff4d1f;
  clip-path: inset(51% 51% 0 0);
}

.la__word {
  margin: 8px 0 0;
  color: #17141a;
  font-weight: 800;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
}

.la__tag {
  margin: 0;
  color: rgba(23, 20, 26, 0.72);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.5;
}

.la__go {
  margin-top: 8px;
  padding: 8px 20px;
  border: 0;
  border-radius: 999px;
  background: #0a4fe8;
  color: #fff7e6;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
}

.la__skip {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  padding: 4px 12px;
  border: 1px solid rgba(23, 20, 26, 0.32);
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.08);
  color: #17141a;
  font-family: inherit;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
}

.la__live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.la__q--tl {
  animation-name: laInTl;
  animation-duration: 600ms;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-delay: 0s;
  animation-fill-mode: both;
}

.la__q--tr {
  animation-name: laInTr;
  animation-duration: 600ms;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-delay: 0.08s;
  animation-fill-mode: both;
}

.la__q--br {
  animation-name: laInBr;
  animation-duration: 600ms;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-delay: 0.16s;
  animation-fill-mode: both;
}

.la__q--bl {
  animation-name: laInBl;
  animation-duration: 600ms;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-delay: 0.24s;
  animation-fill-mode: both;
}

.la__word {
  animation-name: laRiseOnce;
  animation-duration: 600ms;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-delay: 0.44s;
  animation-fill-mode: both;
}

.la__tag {
  animation-name: laRiseOnce;
  animation-duration: 600ms;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-delay: 0.54s;
  animation-fill-mode: both;
}

.la__go {
  animation-name: laRiseOnce;
  animation-duration: 600ms;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-delay: 0.64s;
  animation-fill-mode: both;
}

@keyframes laInTl {
  from {
    transform: translate(-150px, 0) rotate(-10deg);
  }
  to {
    transform: none;
  }
}
@keyframes laInTr {
  from {
    transform: translate(0, -150px) rotate(8deg);
  }
  to {
    transform: none;
  }
}
@keyframes laInBr {
  from {
    transform: translate(150px, 0) rotate(10deg);
  }
  to {
    transform: none;
  }
}
@keyframes laInBl {
  from {
    transform: translate(0, 150px) rotate(-8deg);
  }
  to {
    transform: none;
  }
}
@keyframes laRiseOnce {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.la.is-demo .la__q--tl {
  animation-name: laTlLoop;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
  animation-delay: 0s;
}

.la.is-demo .la__q--tr {
  animation-name: laTrLoop;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
  animation-delay: 0s;
}

.la.is-demo .la__q--br {
  animation-name: laBrLoop;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
  animation-delay: 0s;
}

.la.is-demo .la__q--bl {
  animation-name: laBlLoop;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
  animation-delay: 0s;
}

.la.is-demo .la__word {
  animation-name: laWordLoop;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
  animation-delay: 0s;
}

.la.is-demo .la__tag {
  animation-name: laTagLoop;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
  animation-delay: 0s;
}

.la.is-demo .la__go {
  animation-name: laGoLoop;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
  animation-delay: 0s;
}

@keyframes laTlLoop {
  0% {
    transform: translate(-150px, 0) rotate(-10deg);
  }
  14%, 76% {
    transform: none;
    animation-timing-function: linear;
  }
  86%, 100% {
    transform: translate(-150px, 0) rotate(-10deg);
  }
}
@keyframes laTrLoop {
  0%, 4% {
    transform: translate(0, -150px) rotate(8deg);
  }
  18%, 72% {
    transform: none;
    animation-timing-function: linear;
  }
  82%, 100% {
    transform: translate(0, -150px) rotate(8deg);
  }
}
@keyframes laBrLoop {
  0%, 8% {
    transform: translate(150px, 0) rotate(10deg);
  }
  22%, 68% {
    transform: none;
    animation-timing-function: linear;
  }
  78%, 100% {
    transform: translate(150px, 0) rotate(10deg);
  }
}
@keyframes laBlLoop {
  0%, 12% {
    transform: translate(0, 150px) rotate(-8deg);
  }
  26%, 64% {
    transform: none;
    animation-timing-function: linear;
  }
  74%, 100% {
    transform: translate(0, 150px) rotate(-8deg);
  }
}
@keyframes laWordLoop {
  0%, 30% {
    opacity: 0;
    transform: translateY(12px);
  }
  42%, 60% {
    opacity: 1;
    transform: none;
  }
  68%, 100% {
    opacity: 0;
    transform: translateY(12px);
  }
}
@keyframes laTagLoop {
  0%, 36% {
    opacity: 0;
    transform: translateY(10px);
  }
  48%, 60% {
    opacity: 1;
    transform: none;
  }
  68%, 100% {
    opacity: 0;
    transform: translateY(10px);
  }
}
@keyframes laGoLoop {
  0%, 42% {
    opacity: 0;
    transform: translateY(10px);
  }
  54%, 62% {
    opacity: 1;
    transform: none;
  }
  70%, 100% {
    opacity: 0;
    transform: translateY(10px);
  }
}
.la.is-done .la__q--tl, .la.is-done .la__q--tr, .la.is-done .la__q--br, .la.is-done .la__q--bl,
.la.is-done .la__word, .la.is-done .la__tag, .la.is-done .la__go {
  animation: none;
}

.la.is-done .la__skip {
  display: none;
}

@media (max-width: 340px) {
  .la {
    gap: 4px;
  }
  .la__mark {
    width: 64px;
    height: 64px;
  }
  .la__word {
    font-size: 18px;
  }
  .la__tag {
    font-size: 12px;
  }
  .la__go {
    padding: 4px 16px;
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .la .la__q--tl, .la .la__q--tr, .la .la__q--br, .la .la__q--bl,
  .la .la__word, .la .la__tag, .la .la__go {
    animation: none !important;
  }
}
