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

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

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

.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__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
}

.mb__char {
  position: relative;
  width: 124px;
  height: 152px;
  display: grid;
  place-items: end center;
  flex: 0 0 auto;
}

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

.mb__head {
  position: absolute;
  inset: 0;
  transform-origin: 50% 86%;
}

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

.mb__eye {
  position: absolute;
  top: 44px;
  width: 11px;
  height: 13px;
  border-radius: 50%;
  background: #17141a;
}

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

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

.mb__brow {
  position: absolute;
  top: 36px;
  width: 11px;
  height: 3px;
  border-radius: 999px;
  background: #17141a;
}

.mb__brow--l {
  left: 24px;
  transform: rotate(16deg);
}

.mb__brow--r {
  right: 24px;
  transform: rotate(-16deg);
}

.mb__cheek {
  position: absolute;
  top: 62px;
  width: 15px;
  height: 7px;
  border-radius: 999px;
  background: #ff9ebb;
  opacity: 0.9;
}

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

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

.mb__mouth {
  position: absolute;
  left: 50%;
  margin-left: -8px;
  width: 16px;
  height: 9px;
}

.mb__mouth--smile {
  top: 68px;
  border-bottom: 3px solid #17141a;
  border-radius: 0 0 999px 999px;
}

.mb__mouth--frown {
  top: 74px;
  border-top: 3px solid #17141a;
  border-radius: 999px 999px 0 0;
}

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

.mb__form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}

.mb__label {
  margin: 0;
  font-weight: 700;
  font-size: clamp(10px, 2.6vw, 12px);
  line-height: 1.4;
  color: #17141a;
}

.mb__box {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.mb__input {
  flex: 1 1 auto;
  min-width: 0;
  box-sizing: border-box;
  padding: 8px;
  border: 2px solid rgba(23, 20, 26, 0.25);
  border-radius: 8px;
  background: #ffffff;
  color: #17141a;
  font-weight: 500;
  font-size: clamp(12px, 3vw, 14px);
  line-height: 1.4;
  font-family: inherit;
}

.mb__input::placeholder {
  color: rgba(23, 20, 26, 0.72);
}

.mb__go {
  flex: 0 0 auto;
  padding: 8px 12px;
  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__input:focus-visible, .mb__go:focus-visible {
  outline: 2px solid #17141a;
  outline-offset: 2px;
}

.mb__error {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 4px 8px;
  border-radius: 4px;
  background: #ffffff;
  color: #c2361a;
  font-weight: 700;
  font-size: clamp(10px, 2.6vw, 12px);
  line-height: 1.4;
  visibility: hidden;
}

.mb__errIco {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: #c2361a;
}

.mb.is-no .mb__face--ok {
  visibility: hidden;
}

.mb.is-no .mb__face--no {
  visibility: visible;
}

.mb.is-no .mb__error {
  visibility: visible;
}

.mb.is-no .mb__input {
  border-color: #c2361a;
}

@keyframes sePress {
  0% {
    transform: scale(1);
  }
  3% {
    transform: scale(0.94);
  }
  7%, 100% {
    transform: scale(1);
  }
}
@keyframes seBody {
  0% {
    transform: scale(1, 1);
  }
  6% {
    transform: scale(0.99, 1.02);
  }
  11% {
    transform: scale(1, 1);
  }
  18% {
    transform: scale(1.03, 0.97);
  }
  26% {
    transform: scale(1, 1);
  }
  34% {
    transform: scale(1.02, 0.98);
  }
  42%, 100% {
    transform: scale(1, 1);
  }
}
@keyframes seHead {
  0%, 11% {
    transform: translateX(0) rotate(0deg);
  }
  18% {
    transform: translateX(-10px) rotate(-7deg);
  }
  26% {
    transform: translateX(10px) rotate(7deg);
  }
  34% {
    transform: translateX(-9px) rotate(-6deg);
  }
  42% {
    transform: translateX(9px) rotate(6deg);
  }
  48% {
    transform: translateX(-7px) rotate(-5deg);
  }
  54% {
    transform: translateX(7px) rotate(5deg);
  }
  60% {
    transform: translateX(-4px) rotate(-3deg);
  }
  66% {
    transform: translateX(4px) rotate(3deg);
  }
  72%, 100% {
    transform: translateX(0) rotate(0deg);
  }
}
@keyframes seBox {
  0%, 11% {
    transform: translateX(0);
  }
  18% {
    transform: translateX(-7px);
  }
  26% {
    transform: translateX(7px);
  }
  34% {
    transform: translateX(-6px);
  }
  42% {
    transform: translateX(6px);
  }
  48% {
    transform: translateX(-4px);
  }
  54% {
    transform: translateX(4px);
  }
  60% {
    transform: translateX(-2px);
  }
  66% {
    transform: translateX(2px);
  }
  72%, 100% {
    transform: translateX(0);
  }
}
@keyframes seFaceOk {
  0%, 11% {
    visibility: visible;
  }
  12%, 100% {
    visibility: hidden;
  }
}
@keyframes seFaceNo {
  0%, 11% {
    visibility: hidden;
  }
  12%, 100% {
    visibility: visible;
  }
}
@keyframes seErrIn {
  0%, 11% {
    visibility: hidden;
  }
  12%, 100% {
    visibility: visible;
  }
}
@keyframes seEdge {
  0%, 11% {
    border-color: rgba(23, 20, 26, 0.25);
  }
  12%, 100% {
    border-color: #c2361a;
  }
}
@keyframes seBlink2 {
  0%, 76% {
    transform: scaleY(1);
  }
  78%, 82% {
    transform: scaleY(0.08);
  }
  84%, 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: seBody;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}

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

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

.mb.is-demo .mb__face--ok {
  animation-name: seFaceOk;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.mb.is-demo .mb__face--no {
  animation-name: seFaceNo;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.mb.is-demo .mb__error {
  animation-name: seErrIn;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.mb.is-demo .mb__input {
  animation-name: seEdge;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

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

@keyframes seHeadQ {
  0% {
    transform: translateX(-10px) rotate(-7deg);
  }
  9% {
    transform: translateX(10px) rotate(7deg);
  }
  18% {
    transform: translateX(-9px) rotate(-6deg);
  }
  27% {
    transform: translateX(9px) rotate(6deg);
  }
  36% {
    transform: translateX(-7px) rotate(-5deg);
  }
  45% {
    transform: translateX(7px) rotate(5deg);
  }
  55% {
    transform: translateX(-4px) rotate(-3deg);
  }
  64% {
    transform: translateX(4px) rotate(3deg);
  }
  73%, 100% {
    transform: translateX(0) rotate(0deg);
  }
}
@keyframes seBoxQ {
  0% {
    transform: translateX(-7px);
  }
  9% {
    transform: translateX(7px);
  }
  18% {
    transform: translateX(-6px);
  }
  27% {
    transform: translateX(6px);
  }
  36% {
    transform: translateX(-4px);
  }
  45% {
    transform: translateX(4px);
  }
  55% {
    transform: translateX(-2px);
  }
  64% {
    transform: translateX(2px);
  }
  73%, 100% {
    transform: translateX(0);
  }
}
@keyframes seBodyQ {
  0% {
    transform: scale(1.03, 0.97);
  }
  9% {
    transform: scale(1, 1);
  }
  18% {
    transform: scale(1.02, 0.98);
  }
  27%, 100% {
    transform: scale(1, 1);
  }
}
.mb.is-shake .mb__head {
  animation-name: seHeadQ;
  animation-duration: 640ms;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: 1;
}

.mb.is-shake .mb__box {
  animation-name: seBoxQ;
  animation-duration: 640ms;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: 1;
}

.mb.is-shake .mb__body {
  animation-name: seBodyQ;
  animation-duration: 640ms;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: 1;
}

@media (max-width: 340px) {
  .mb {
    gap: 8px;
  }
  .mb__row {
    gap: 12px;
  }
  .mb {
    min-width: 0;
  }
  .mb__form, .mb__box, .mb__input {
    min-width: 0;
  }
  .mb__error, .mb__label {
    overflow-wrap: anywhere;
  }
  .mb__char {
    width: 96px;
    height: 122px;
  }
  .mb__body {
    width: 78px;
    height: 90px;
  }
  .mb__eye {
    top: 34px;
    width: 9px;
    height: 11px;
  }
  .mb__eye--l {
    left: 17px;
  }
  .mb__eye--r {
    right: 17px;
  }
  .mb__brow {
    top: 27px;
    width: 9px;
  }
  .mb__brow--l {
    left: 17px;
  }
  .mb__brow--r {
    right: 17px;
  }
  .mb__cheek {
    top: 49px;
    width: 12px;
  }
  .mb__cheek--l {
    left: 9px;
  }
  .mb__cheek--r {
    right: 9px;
  }
  .mb__mouth--smile {
    top: 54px;
  }
  .mb__mouth--frown {
    top: 58px;
  }
  .mb__shadow {
    width: 56px;
    margin-left: -28px;
  }
  .mb__go {
    padding: 4px 8px;
  }
  .mb__error {
    padding: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mb.is-demo .mb__go,
  .mb.is-demo .mb__body,
  .mb.is-demo .mb__head,
  .mb.is-demo .mb__box,
  .mb.is-demo .mb__face--ok,
  .mb.is-demo .mb__face--no,
  .mb.is-demo .mb__error,
  .mb.is-demo .mb__input,
  .mb.is-demo .mb__eye,
  .mb.is-shake .mb__head,
  .mb.is-shake .mb__box,
  .mb.is-shake .mb__body {
    animation: none !important;
  }
  .mb.is-demo .mb__error {
    visibility: visible !important;
  }
  .mb.is-demo .mb__face--ok {
    visibility: hidden !important;
  }
  .mb.is-demo .mb__face--no {
    visibility: visible !important;
  }
  .mb.is-demo .mb__input {
    border-color: #c2361a !important;
  }
}
