@charset "UTF-8";
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);
}

.mn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.mn__dock {
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  border: 1.5px solid rgba(23, 20, 26, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 20px rgba(23, 20, 26, 0.08);
}

.mn__btn {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: rgba(23, 20, 26, 0.48);
  cursor: pointer;
  transition: color 220ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mn__btn:hover {
  color: rgba(23, 20, 26, 0.85);
}

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

.mn__btn svg {
  width: 24px;
  height: 24px;
  display: block;
}

.mn__btn.on {
  color: #17141a;
  transform: translateY(-2px);
}

.mn__line {
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 2px;
  height: 2px;
  border-radius: 999px;
  background: #17141a;
  transform: scaleX(0);
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mn__btn.on .mn__line {
  transform: scaleX(1);
}

.mn__cap {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(23, 20, 26, 0.62);
}

/* 자동 재생 — 항목마다 400ms 슬롯. delay 는 개별 속성으로(단축 리셋 방지). */
.is-demo .mn__line {
  animation-name: mn-ln;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}

.is-demo .mn__btn:nth-child(2) .mn__line {
  animation-delay: 0.4s;
}

.is-demo .mn__btn:nth-child(3) .mn__line {
  animation-delay: 0.8s;
}

.is-demo .mn__btn:nth-child(4) .mn__line {
  animation-delay: 1.2s;
}

.is-demo .mn__btn:nth-child(5) .mn__line {
  animation-delay: 1.6s;
}

.is-demo .mn__btn svg {
  animation-name: mn-ic;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.is-demo .mn__btn:nth-child(2) svg {
  animation-delay: 0.4s;
}

.is-demo .mn__btn:nth-child(3) svg {
  animation-delay: 0.8s;
}

.is-demo .mn__btn:nth-child(4) svg {
  animation-delay: 1.2s;
}

.is-demo .mn__btn:nth-child(5) svg {
  animation-delay: 1.6s;
}

@keyframes mn-ln {
  0% {
    transform: scaleX(0);
  }
  4% {
    transform: scaleX(1);
  }
  15% {
    transform: scaleX(1);
  }
  20% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(0);
  }
}
@keyframes mn-ic {
  0% {
    color: rgba(23, 20, 26, 0.48);
  }
  20% {
    color: #17141a;
  }
  100% {
    color: rgba(23, 20, 26, 0.48);
  }
}
@media (max-width: 340px) {
  .mn__dock {
    gap: 4px;
    padding: 8px;
  }
  .mn__btn {
    width: 40px;
    height: 40px;
  }
  .mn__btn svg {
    width: 22px;
    height: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .is-demo .mn__line,
  .is-demo .mn__btn svg {
    animation-name: none;
  }
  .mn__btn,
  .mn__line {
    transition: none;
  }
}
