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

.menu {
  position: relative;
  font-weight: 500;
  font-size: clamp(13px, 3.6vw, 16px);
  line-height: 1.4;
  font-family: inherit;
}

.menu__trigger {
  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 {
  width: max-content;
  max-width: min(150px, 70vw);
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 0;
  border-radius: 16px;
  background: #fff7e6;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  transform: scale(0.9);
  opacity: 0;
}

.menu__panel li a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: #17141a;
  text-decoration: none;
}

.menu__panel li a:hover {
  background: rgba(23, 20, 26, 0.06);
}

.menu__panel::backdrop {
  background: rgba(23, 20, 26, 0.18);
}

.menu__panel:popover-open {
  animation: pop-loop 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

@keyframes pop-loop {
  0%, 30% {
    transform: scale(0.9);
    opacity: 0;
  }
  45%, 80% {
    transform: scale(1);
    opacity: 1;
  }
  95%, 100% {
    transform: scale(0.9);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .menu__panel {
    transition: none !important;
  }
  .menu__panel:popover-open {
    animation: none;
    transform: scale(1);
    opacity: 1;
  }
}
