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

.wg {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 320px;
}

.wg__hint {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-weight: 700;
  font-size: clamp(10px, 2.8vw, 12px);
  color: #17141a;
}

.wg__ico {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: #17141a;
}

.wg__floor {
  position: relative;
  width: 100%;
  height: 148px;
  overflow: hidden;
  display: grid;
  place-items: end center;
}

.wg__char {
  position: relative;
  width: 150px;
  height: 140px;
}

.wg__riser {
  position: absolute;
  inset: 0;
}

.wg__body {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 88px;
  height: 96px;
  margin-left: -44px;
  border-radius: 50% 50% 46% 46%;
  background: #17141a;
  transform-origin: 50% 100%;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
}

.wg__eye {
  position: absolute;
  top: 40px;
  width: 10px;
  height: 12px;
  border-radius: 50%;
  background: #fff7e6;
}

.wg__eye--l {
  left: 22px;
}

.wg__eye--r {
  right: 22px;
}

.wg__cheek {
  position: absolute;
  top: 56px;
  width: 12px;
  height: 6px;
  border-radius: 999px;
  background: #ff9ebb;
  opacity: 0.9;
}

.wg__cheek--l {
  left: 14px;
}

.wg__cheek--r {
  right: 14px;
}

.wg__mouth {
  position: absolute;
  top: 60px;
  left: 50%;
  width: 16px;
  height: 8px;
  margin-left: -8px;
  border-bottom: 3px solid #fff7e6;
  border-radius: 0 0 999px 999px;
}

.wg__arm {
  position: absolute;
  left: 107px;
  top: 32px;
  width: 12px;
  height: 44px;
  border-radius: 999px;
  background: #17141a;
  transform-origin: 50% 95%;
  transform: rotate(24deg);
}

.wg__shadow {
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 72px;
  height: 10px;
  margin-left: -36px;
  border-radius: 50%;
  background: rgba(23, 20, 26, 0.18);
}

.wg__say {
  margin: 0;
  font-weight: 700;
  font-size: clamp(11px, 3vw, 13px);
  color: #17141a;
}

@keyframes wgRise {
  0% {
    transform: translateY(36px);
  }
  26%, 100% {
    transform: translateY(0);
  }
}
@keyframes wgWave {
  0%, 28% {
    transform: rotate(58deg);
  }
  32% {
    transform: rotate(24deg);
  }
  40% {
    transform: rotate(52deg);
  }
  48% {
    transform: rotate(24deg);
  }
  56% {
    transform: rotate(52deg);
  }
  64% {
    transform: rotate(24deg);
  }
  72% {
    transform: rotate(52deg);
  }
  80% {
    transform: rotate(24deg);
  }
  88%, 100% {
    transform: rotate(24deg);
  }
}
@keyframes wgTilt {
  0%, 28% {
    transform: rotate(0deg) scaleY(1);
  }
  31% {
    transform: rotate(3deg) scaleY(0.94);
  }
  36% {
    transform: rotate(-3deg) scaleY(1);
  }
  44% {
    transform: rotate(3deg) scaleY(1);
  }
  52% {
    transform: rotate(-3deg) scaleY(1);
  }
  60% {
    transform: rotate(3deg) scaleY(1);
  }
  68% {
    transform: rotate(-3deg) scaleY(1);
  }
  76% {
    transform: rotate(3deg) scaleY(1);
  }
  88%, 100% {
    transform: rotate(0deg) scaleY(1);
  }
}
@keyframes wgShadow {
  0% {
    transform: scaleX(0.4);
  }
  26%, 100% {
    transform: scaleX(1);
  }
}
.wg.is-demo .wg__riser {
  animation-name: wgRise;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}

.wg.is-demo .wg__arm {
  animation-name: wgWave;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: infinite;
  animation-delay: 560ms;
  animation-fill-mode: backwards;
}

.wg.is-demo .wg__body {
  animation-name: wgTilt;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: infinite;
  animation-delay: 560ms;
  animation-fill-mode: backwards;
}

.wg.is-demo .wg__shadow {
  animation-name: wgShadow;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}

@media (max-width: 340px) {
  .wg {
    gap: 8px;
  }
  .wg__floor {
    height: 118px;
  }
  .wg__char {
    width: 118px;
    height: 112px;
  }
  .wg__body {
    width: 72px;
    height: 80px;
    margin-left: -36px;
  }
  .wg__eye {
    top: 33px;
    width: 9px;
    height: 11px;
  }
  .wg__eye--l {
    left: 18px;
  }
  .wg__eye--r {
    right: 18px;
  }
  .wg__cheek {
    top: 47px;
    width: 10px;
    height: 5px;
  }
  .wg__cheek--l {
    left: 12px;
  }
  .wg__cheek--r {
    right: 12px;
  }
  .wg__mouth {
    top: 50px;
    width: 14px;
    height: 7px;
    margin-left: -7px;
  }
  .wg__arm {
    left: 84px;
    top: 24px;
    width: 10px;
    height: 36px;
  }
  .wg__shadow {
    width: 60px;
    margin-left: -30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wg.is-demo .wg__riser,
  .wg.is-demo .wg__arm,
  .wg.is-demo .wg__body,
  .wg.is-demo .wg__shadow {
    animation: none !important;
  }
}
