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

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

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

.mc__ico {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: #2f6df6;
}

.mc__hint span {
  flex: 1 1 auto;
  min-width: 0;
}

.mc__row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

.mc__char {
  position: relative;
  width: 104px;
  height: 124px;
  flex: 0 0 auto;
}

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

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

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

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

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

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

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

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

.mc__arm {
  position: absolute;
  top: 42px;
  width: 10px;
  height: 40px;
  border-radius: 999px;
  background: #0a4fe8;
  transform-origin: 5px 5px;
  transition-property: transform;
  transition-duration: 300ms;
  transition-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mc__arm--l {
  left: 2px;
  transform: rotate(28deg);
}

.mc__arm--r {
  right: 2px;
  transform: rotate(-28deg);
}

.mc.is-cover .mc__arm--l {
  transform: rotate(-95deg);
}

.mc.is-cover .mc__arm--r {
  transform: rotate(95deg);
}

.mc.is-cover .mc__eye {
  transform: scaleY(0.1);
}

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

.mc__label {
  font-weight: 700;
  font-size: 12px;
  color: #17141a;
}

.mc__field {
  position: relative;
  display: block;
}

.mc__input {
  box-sizing: border-box;
  display: block;
  width: 100%;
  padding: 8px 44px 8px 12px;
  border: 2px solid rgba(23, 20, 26, 0.35);
  border-radius: 8px;
  background: #ffffff;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.4;
  color: #17141a;
}

.mc__input:focus {
  border-color: #2f6df6;
  box-shadow: 0 0 0 3px rgba(47, 109, 246, 0.25);
  outline: none;
}

.mc__reveal {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #17141a;
  cursor: pointer;
}

.mc__revealIco {
  width: 18px;
  height: 18px;
}

.mc__reveal:focus-visible {
  outline: 2px solid #2f6df6;
  outline-offset: 2px;
}

.mc__reveal[aria-pressed=true] {
  background: #0a4fe8;
  color: #ffffff;
}

.mc__ghost {
  display: none;
}

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

@keyframes mcBreath {
  0%, 100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(1.03);
  }
}
@keyframes mcArmL {
  0%, 24% {
    transform: rotate(28deg);
  }
  36% {
    transform: rotate(-99deg);
  }
  42% {
    transform: rotate(-92deg);
  }
  48%, 56% {
    transform: rotate(-99deg);
  }
  70%, 100% {
    transform: rotate(28deg);
  }
}
@keyframes mcArmR {
  0%, 24% {
    transform: rotate(-28deg);
  }
  36% {
    transform: rotate(99deg);
  }
  42% {
    transform: rotate(92deg);
  }
  48%, 56% {
    transform: rotate(99deg);
  }
  70%, 100% {
    transform: rotate(-28deg);
  }
}
@keyframes mcWink {
  0%, 32% {
    transform: scaleY(1);
  }
  34%, 54% {
    transform: scaleY(0.1);
  }
  56%, 100% {
    transform: scaleY(1);
  }
}
@keyframes mcGhost {
  0%, 5% {
    clip-path: inset(0 100% 0 0);
  }
  7%, 9% {
    clip-path: inset(0 80% 0 0);
  }
  11%, 13% {
    clip-path: inset(0 60% 0 0);
  }
  15%, 17% {
    clip-path: inset(0 40% 0 0);
  }
  19%, 21% {
    clip-path: inset(0 20% 0 0);
  }
  23%, 86% {
    clip-path: inset(0 0 0 0);
  }
  88%, 100% {
    clip-path: inset(0 100% 0 0);
  }
}
@keyframes mcReveal {
  0%, 52% {
    background-color: transparent;
    color: #17141a;
  }
  54%, 84% {
    background-color: #0a4fe8;
    color: #ffffff;
  }
  86%, 100% {
    background-color: transparent;
    color: #17141a;
  }
}
.mc.is-demo .mc__body {
  animation-name: mcBreath;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}

.mc.is-demo .mc__arm--l {
  animation-name: mcArmL;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}

.mc.is-demo .mc__arm--r {
  animation-name: mcArmR;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}

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

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

.mc.is-demo .mc__ghost {
  display: flex;
  align-items: center;
  position: absolute;
  top: 50%;
  left: 14px;
  height: 60%;
  transform: translateY(-50%);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 2px;
  color: #17141a;
  animation-name: mcGhost;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.mc.is-demo .mc__input::placeholder {
  color: transparent;
}

@media (max-width: 340px) {
  .mc {
    gap: 8px;
  }
  .mc__row {
    gap: 8px;
  }
  .mc__char {
    width: 92px;
    height: 104px;
  }
  .mc__body {
    width: 76px;
    height: 82px;
  }
  .mc__eye {
    top: 34px;
    width: 9px;
    height: 11px;
  }
  .mc__eye--l {
    left: 18px;
  }
  .mc__eye--r {
    right: 18px;
  }
  .mc__cheek {
    top: 48px;
  }
  .mc__cheek--l {
    left: 10px;
  }
  .mc__cheek--r {
    right: 10px;
  }
  .mc__mouth {
    top: 52px;
  }
  .mc__arm {
    top: 36px;
    width: 8px;
    height: 34px;
    transform-origin: 4px 4px;
  }
  .mc__arm--l {
    left: 0;
  }
  .mc__arm--r {
    right: 0;
  }
  .mc__form {
    max-width: none;
  }
  .mc__label {
    font-size: 11px;
  }
  .mc__input {
    font-size: 12px;
  }
  .mc__note {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mc.is-demo .mc__body,
  .mc.is-demo .mc__arm--l,
  .mc.is-demo .mc__arm--r,
  .mc.is-demo .mc__eye,
  .mc.is-demo .mc__reveal,
  .mc.is-demo .mc__ghost {
    animation: none !important;
  }
  .mc.is-demo .mc__arm--l {
    transform: rotate(-99deg) !important;
  }
  .mc.is-demo .mc__arm--r {
    transform: rotate(99deg) !important;
  }
  .mc.is-demo .mc__eye {
    transform: scaleY(0.1) !important;
  }
  .mc.is-demo .mc__ghost {
    clip-path: inset(0 0 0 0) !important;
  }
}
