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

.mb {
  --j: -46px;
  --r: -40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 320px;
}

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

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

.mb__floor {
  position: relative;
  width: 100%;
  height: 160px;
  display: grid;
  place-items: end center;
}

.mb__char {
  position: relative;
  width: 112px;
  height: 152px;
  display: grid;
  place-items: end center;
}

.mb__star {
  position: absolute;
}

.mb__star--l {
  left: -24px;
  top: 30px;
}

.mb__star--c {
  left: 50%;
  top: -8px;
  margin-left: -14px;
}

.mb__star--r {
  right: -24px;
  top: 30px;
}

.mb__starIco {
  display: block;
  width: 22px;
  height: 22px;
  color: #2f6df6;
}

.mb__star--c .mb__starIco {
  width: 28px;
  height: 28px;
}

.mb__body {
  position: relative;
  display: block;
  width: 92px;
  height: 104px;
  border-radius: 50% 50% 46% 46%;
  background: #17141a;
  transform-origin: 50% 100%;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
}

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

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

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

.mb__cheek {
  position: absolute;
  top: 58px;
  width: 14px;
  height: 6px;
  border-radius: 999px;
  background: #ff9ebb;
  opacity: 0.9;
}

.mb__cheek--l {
  left: 13px;
}

.mb__cheek--r {
  right: 13px;
}

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

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

.mb__go {
  margin: 0;
  padding: 8px 16px;
  border: 0;
  border-radius: 12px;
  background: #17141a;
  color: #fff7e6;
  cursor: pointer;
  font-weight: 700;
  font-size: clamp(12px, 3vw, 14px);
  line-height: 1.4;
  font-family: inherit;
}

.mb__go:focus-visible {
  outline: 2px solid #17141a;
  outline-offset: 2px;
}

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

@keyframes sePress {
  0% {
    transform: scale(1);
  }
  2% {
    transform: scale(0.94);
  }
  5%, 100% {
    transform: scale(1);
  }
}
@keyframes seJump {
  0%, 4% {
    transform: translate(0, 0) scale(1, 1);
  }
  9%, 12% {
    transform: translate(0, 8px) scale(1.1, 0.8);
  }
  16% {
    transform: translate(0, var(--j)) scale(0.92, 1.16);
  }
  19% {
    transform: translate(0, var(--j)) scale(0.98, 1.04);
  }
  26% {
    transform: translate(0, 0) scale(1.02, 0.96);
  }
  29% {
    transform: translate(0, 0) scale(1.12, 0.84);
  }
  35%, 100% {
    transform: translate(0, 0) scale(1, 1);
  }
}
@keyframes seShadow {
  0%, 4% {
    transform: scaleX(1);
    opacity: 0.2;
  }
  9%, 12% {
    transform: scaleX(1.12);
    opacity: 0.24;
  }
  16%, 19% {
    transform: scaleX(0.54);
    opacity: 0.1;
  }
  26% {
    transform: scaleX(0.92);
    opacity: 0.18;
  }
  29% {
    transform: scaleX(1.14);
    opacity: 0.24;
  }
  35%, 100% {
    transform: scaleX(1);
    opacity: 0.2;
  }
}
@keyframes seStarA {
  0%, 12% {
    transform: translateY(0) scale(0) rotate(0deg);
  }
  17% {
    transform: translateY(var(--r)) scale(1) rotate(0deg);
  }
  33% {
    transform: translateY(var(--r)) scale(1.12) rotate(6deg);
  }
  42% {
    transform: translateY(var(--r)) scale(1) rotate(0deg);
  }
  55% {
    transform: translateY(var(--r)) scale(1.12) rotate(-6deg);
  }
  64% {
    transform: translateY(var(--r)) scale(1) rotate(0deg);
  }
  77% {
    transform: translateY(var(--r)) scale(1.12) rotate(6deg);
  }
  86%, 100% {
    transform: translateY(var(--r)) scale(1) rotate(0deg);
  }
}
@keyframes seStarB {
  0%, 13% {
    transform: translateY(0) scale(0) rotate(0deg);
  }
  18% {
    transform: translateY(var(--r)) scale(1) rotate(0deg);
  }
  35% {
    transform: translateY(var(--r)) scale(1.12) rotate(-6deg);
  }
  44% {
    transform: translateY(var(--r)) scale(1) rotate(0deg);
  }
  57% {
    transform: translateY(var(--r)) scale(1.12) rotate(6deg);
  }
  66% {
    transform: translateY(var(--r)) scale(1) rotate(0deg);
  }
  79% {
    transform: translateY(var(--r)) scale(1.12) rotate(-6deg);
  }
  88%, 100% {
    transform: translateY(var(--r)) scale(1) rotate(0deg);
  }
}
@keyframes seStarC {
  0%, 14% {
    transform: translateY(0) scale(0) rotate(0deg);
  }
  19% {
    transform: translateY(var(--r)) scale(1) rotate(0deg);
  }
  36% {
    transform: translateY(var(--r)) scale(1.12) rotate(6deg);
  }
  45% {
    transform: translateY(var(--r)) scale(1) rotate(0deg);
  }
  58% {
    transform: translateY(var(--r)) scale(1.12) rotate(-6deg);
  }
  67% {
    transform: translateY(var(--r)) scale(1) rotate(0deg);
  }
  80% {
    transform: translateY(var(--r)) scale(1.12) rotate(6deg);
  }
  89%, 100% {
    transform: translateY(var(--r)) scale(1) rotate(0deg);
  }
}
@keyframes seBlink {
  0%, 50% {
    transform: scaleY(1);
  }
  52%, 56% {
    transform: scaleY(0.08);
  }
  58%, 100% {
    transform: scaleY(1);
  }
}
.mb.is-demo .mb__go {
  animation-name: sePress;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: infinite;
}

.mb.is-demo .mb__body {
  animation-name: seJump;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}

.mb.is-demo .mb__shadow {
  animation-name: seShadow;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}

.mb.is-demo .mb__star--l {
  animation-name: seStarA;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: infinite;
}

.mb.is-demo .mb__star--c {
  animation-name: seStarB;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: infinite;
}

.mb.is-demo .mb__star--r {
  animation-name: seStarC;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: infinite;
}

.mb.is-demo .mb__eye {
  transform-origin: 50% 50%;
  animation-name: seBlink;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

@keyframes seStarQ {
  0% {
    transform: translateY(0) scale(0) rotate(0deg);
  }
  14% {
    transform: translateY(var(--r)) scale(1) rotate(0deg);
  }
  30% {
    transform: translateY(var(--r)) scale(1) rotate(10deg);
  }
  46% {
    transform: translateY(var(--r)) scale(1) rotate(-8deg);
  }
  60%, 100% {
    transform: translateY(var(--r)) scale(1) rotate(0deg);
  }
}
@keyframes sePressQ {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(0.94);
  }
  100% {
    transform: scale(1);
  }
}
.mb.is-jump .mb__go {
  animation-name: sePressQ;
  animation-duration: 220ms;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: 1;
}

.mb.is-jump .mb__body {
  animation-name: seJump;
  animation-duration: 1.04s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: 1;
}

.mb.is-jump .mb__shadow {
  animation-name: seShadow;
  animation-duration: 1.04s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: 1;
}

.mb.is-jump .mb__star {
  animation-name: seStarQ;
  animation-duration: 0.8s;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: 1;
  animation-fill-mode: backwards;
}

.mb.is-jump .mb__star--l {
  animation-delay: 0.42s;
}

.mb.is-jump .mb__star--c {
  animation-delay: 0.5s;
}

.mb.is-jump .mb__star--r {
  animation-delay: 0.58s;
}

@media (max-width: 340px) {
  .mb {
    --j: -34px;
    --r: -26px;
    gap: 8px;
  }
  .mb__floor {
    height: 108px;
  }
  .mb__char {
    width: 88px;
    height: 100px;
  }
  .mb__body {
    width: 70px;
    height: 78px;
  }
  .mb__eye {
    top: 30px;
    width: 8px;
    height: 10px;
  }
  .mb__eye--l {
    left: 16px;
  }
  .mb__eye--r {
    right: 16px;
  }
  .mb__cheek {
    top: 44px;
    width: 12px;
    height: 5px;
  }
  .mb__cheek--l {
    left: 9px;
  }
  .mb__cheek--r {
    right: 9px;
  }
  .mb__mouth {
    top: 48px;
  }
  .mb__shadow {
    width: 56px;
    margin-left: -28px;
  }
  .mb__star--l {
    left: -14px;
    top: 22px;
  }
  .mb__star--c {
    top: -6px;
    margin-left: -9px;
  }
  .mb__star--r {
    right: -14px;
    top: 22px;
  }
  .mb__starIco {
    width: 16px;
    height: 16px;
  }
  .mb__star--c .mb__starIco {
    width: 18px;
    height: 18px;
  }
  .mb__go {
    padding: 4px 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mb.is-demo .mb__go,
  .mb.is-demo .mb__body,
  .mb.is-demo .mb__shadow,
  .mb.is-demo .mb__eye,
  .mb.is-demo .mb__star--l,
  .mb.is-demo .mb__star--c,
  .mb.is-demo .mb__star--r {
    animation: none !important;
  }
  .mb.is-demo .mb__star--l,
  .mb.is-demo .mb__star--c,
  .mb.is-demo .mb__star--r {
    transform: translateY(var(--r)) scale(1) !important;
  }
  .mb.is-jump .mb__go,
  .mb.is-jump .mb__body,
  .mb.is-jump .mb__shadow,
  .mb.is-jump .mb__star {
    animation: none !important;
  }
  .mb.is-jump .mb__star {
    transform: translateY(var(--r)) scale(1) !important;
  }
}
