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

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

.menu {
  box-sizing: border-box;
  width: min(100%, 216px);
  margin: 0;
  padding: 8px;
  list-style: none;
  display: grid;
  gap: 4px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #f2ded3;
  box-shadow: 0 10px 24px rgba(23, 20, 26, 0.08);
}

.mi {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.mi--new {
  background: #fff7f2;
  color: #17141a;
}

.si {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: #ff4d1f;
}

.si svg {
  width: 100%;
  height: 100%;
  display: block;
}

.lb {
  flex: 1 1 auto;
}

.si {
  transform-origin: 50% 8%;
  rotate: 0deg;
}

.stage.is-demo .si {
  animation: swing 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.dot {
  position: absolute;
  right: 10px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4d1f;
}

.ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #ff4d1f;
  opacity: 0.55;
  transform: scale(1);
}

.stage.is-demo .ring {
  animation: pulse 2s ease-out infinite;
}

.stage.is-demo .dot {
  animation: dot-throb 2s linear(0, 0.051, 0.176, 0.341, 0.518, 0.685, 0.831, 0.947, 1.032, 1.087, 1.117, 1.126, 1.121, 1.105, 1.085, 1.062, 1.041, 1.022, 1.008, 0.997, 1) infinite, pop 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite 1.24s;
}

.stage.is-demo .mi--new {
  animation: row-sway 2s linear(0, 0.051, 0.176, 0.341, 0.518, 0.685, 0.831, 0.947, 1.032, 1.087, 1.117, 1.126, 1.121, 1.105, 1.085, 1.062, 1.041, 1.022, 1.008, 0.997, 1) infinite;
}

@keyframes dot-throb {
  0% {
    transform: scale(1);
  }
  15% {
    transform: scale(1.35);
  }
  32% {
    transform: scale(0.88);
  }
  48% {
    transform: scale(1.1);
  }
  62%, 100% {
    transform: scale(1);
  }
}
@keyframes row-sway {
  0% {
    transform: translateX(0);
  }
  12% {
    transform: translateX(1.5px);
  }
  26% {
    transform: translateX(-1px);
  }
  40% {
    transform: translateX(0.5px);
  }
  55%, 100% {
    transform: translateX(0);
  }
}
@keyframes swing {
  0% {
    rotate: 0deg;
  }
  8% {
    rotate: 10deg;
  }
  28% {
    rotate: -6deg;
  }
  48% {
    rotate: 3deg;
  }
  66% {
    rotate: -1.2deg;
  }
  80%, 100% {
    rotate: 0deg;
  }
}
@keyframes pop {
  0% {
    scale: 1;
  }
  6% {
    scale: 1.32;
  }
  16% {
    scale: 0.86;
  }
  28% {
    scale: 1.06;
  }
  38%, 100% {
    scale: 1;
  }
}
@keyframes pulse {
  0% {
    opacity: 0.55;
    transform: scale(1);
  }
  70%, 100% {
    opacity: 0;
    transform: scale(2.4);
  }
}
@media (prefers-reduced-motion: reduce) {
  .stage.is-demo .ring {
    animation: none;
    opacity: 0;
  }
  .stage.is-demo .dot {
    animation: none;
    transform: none;
    scale: 1;
  }
  .stage.is-demo .mi--new {
    animation: none;
    transform: none;
  }
  .stage.is-demo .si {
    animation: none;
    rotate: 0deg;
  }
}
