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

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

.menu {
  position: relative;
  width: min(220px, 90vw);
  font-weight: 500;
  font-size: clamp(13px, 3.6vw, 16px);
  line-height: 1.4;
  font-family: inherit;
}
.menu__trigger {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: clamp(9px, 3vw, 13px) clamp(16px, 4vw, 22px);
  font-weight: 700;
  font-family: inherit;
  color: #fff7e6;
  background: #0a4fe8;
  cursor: pointer;
}
.menu__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 300ms ease-out;
  margin-top: 8px;
}
.menu__list {
  overflow: hidden;
  min-height: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff7e6;
  border-radius: 16px;
}
.menu__list li a {
  display: block;
  padding: clamp(8px, 2.6vw, 12px) clamp(12px, 3.6vw, 18px);
  color: #17141a;
  text-decoration: none;
  border-bottom: 1px solid rgba(23, 20, 26, 0.08);
}
.menu__list li:last-child a {
  border-bottom: 0;
}
.menu.is-demo .menu__panel {
  animation: reveal-loop 2s ease-out infinite;
}
.menu.is-open .menu__panel {
  animation: none;
  grid-template-rows: 1fr;
}

@keyframes reveal-loop {
  0%, 30% {
    grid-template-rows: 0fr;
  }
  45%, 80% {
    grid-template-rows: 1fr;
  }
  95%, 100% {
    grid-template-rows: 0fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .menu__panel {
    transition: none;
  }
  .menu.is-demo .menu__panel {
    animation: none;
    grid-template-rows: 0fr;
  }
}
