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

.cr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(100%, 320px);
}

.cr__scene {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: 156px;
  overflow: hidden;
  border-radius: 16px;
}

.cr__word {
  position: absolute;
  left: 50%;
  top: 40px;
  transform: translateX(-50%);
  font-weight: 900;
  font-size: 76px;
  line-height: 1;
  letter-spacing: 2px;
  background: linear-gradient(92deg, #ff9ebb 0%, #ff4d1f 48%, #2f6df6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.cr__wordghost {
  position: absolute;
  left: 50%;
  top: 44px;
  transform: translateX(-50%);
  font-weight: 900;
  font-size: 76px;
  line-height: 1;
  letter-spacing: 2px;
  color: transparent;
  text-shadow: 0 5px 0 rgba(23, 20, 26, 0.1);
}

.cr__feather {
  position: absolute;
  width: 16px;
  height: 7px;
  border-radius: 50% 50% 50% 50%/60% 60% 40% 40%;
  background: #17141a;
  animation-name: crFloat;
  animation-duration: 2s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-fill-mode: both;
}

.cr__feather--a {
  left: 8%;
  top: 22%;
  animation-delay: 0ms;
}

.cr__feather--b {
  left: 16%;
  top: 64%;
  animation-delay: 300ms;
  background: #ff9ebb;
}

.cr__feather--c {
  left: 4%;
  top: 46%;
  animation-delay: 600ms;
  background: #2f6df6;
}

.cr__drop {
  position: absolute;
  left: 50%;
  top: 108px;
  width: 16px;
  height: 7px;
  margin-left: -8px;
  opacity: 0;
}

.cr__dropleaf {
  display: block;
  width: 16px;
  height: 7px;
  border-radius: 50% 50% 50% 50%/60% 60% 40% 40%;
  background: #17141a;
}

.cr__drop {
  transition: transform 900ms cubic-bezier(0.2, 1.4, 0.4, 1), opacity 200ms linear;
}

.cr.is-drop .cr__drop {
  opacity: 1;
  transform: translateY(34px) rotate(140deg);
}

.cr__crow {
  position: absolute;
  top: 76px;
  left: -80px;
  width: 76px;
  height: 46px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  animation-name: crWalk;
  animation-duration: 2s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.cr__body {
  position: absolute;
  left: 12px;
  top: 6px;
  width: 38px;
  height: 22px;
  border-radius: 50% 50% 44% 44%;
  background: #17141a;
}

.cr__tail {
  position: absolute;
  left: 0;
  top: 12px;
  width: 16px;
  height: 10px;
  clip-path: polygon(100% 0, 100% 100%, 0 34%);
  background: #17141a;
}

.cr__beak {
  position: absolute;
  right: 4px;
  top: 12px;
  width: 14px;
  height: 9px;
  clip-path: polygon(100% 50%, 0 0, 0 100%);
  background: #17141a;
}

.cr__eye {
  position: absolute;
  right: 14px;
  top: 13px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffffff;
}

.cr__leg {
  position: absolute;
  top: 26px;
  width: 3px;
  height: 14px;
  border-radius: 999px;
  background: #17141a;
  transform-origin: top center;
  animation-name: crStep;
  animation-duration: 250ms;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.cr__leg--l {
  left: 24px;
}

.cr__leg--r {
  right: 24px;
  animation-delay: 125ms;
}

.cr__hint {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(23, 20, 26, 0.72);
}

@keyframes crWalk {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(400px);
  }
}
@keyframes crStep {
  0%, 100% {
    transform: rotate(-14deg);
  }
  50% {
    transform: rotate(14deg);
  }
}
@keyframes crFloat {
  from {
    transform: translateY(-6px) rotate(-8deg);
  }
  to {
    transform: translateY(6px) rotate(8deg);
  }
}
.cr:not(.is-demo) .cr__crow,
.cr:not(.is-demo) .cr__leg {
  animation-name: none;
}

@media (max-width: 340px) {
  .cr__scene {
    height: 126px;
  }
  .cr__word, .cr__wordshadow {
    font-size: 58px;
    top: 34px;
  }
  .cr__crow {
    top: 62px;
  }
  .cr__hint {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cr__crow, .cr__leg, .cr__feather {
    animation-name: none !important;
  }
  .cr__drop {
    transition: none !important;
  }
}
