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

.ms-mouse {
  position: relative;
  box-sizing: border-box;
  width: 44px;
  height: 68px;
  border: 3px solid #17141a;
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 12px;
}

.ms-dot {
  width: 8px;
  height: 16px;
  border-radius: 999px;
  background: #17141a;
  opacity: 1;
  transform: translateY(0);
}

@keyframes ms-scroll {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  55% {
    opacity: 1;
    transform: translateY(20px);
  }
  63% {
    opacity: 0.6;
    transform: translateY(27px);
  }
  70% {
    opacity: 0;
    transform: translateY(24px);
  }
  100% {
    opacity: 0;
    transform: translateY(24px);
  }
}
.ms-dot {
  animation: ms-scroll 1.6s ease-out infinite;
}

.ms-trail {
  position: absolute;
  top: 12px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #17141a;
  opacity: 0;
}

@keyframes ms-trail-scroll {
  0% {
    opacity: 0;
    transform: translateY(-4px) scale(0.6);
  }
  40% {
    opacity: 0.3;
    transform: translateY(8px) scale(0.8);
  }
  85%, 100% {
    opacity: 0;
    transform: translateY(20px) scale(0.4);
  }
}
.ms-trail {
  animation: ms-trail-scroll 1.6s ease-out 120ms infinite;
}

@media (prefers-reduced-motion: reduce) {
  .ms-dot {
    animation: none !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
  .ms-trail {
    animation: none !important;
    opacity: 0 !important;
  }
}
