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

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

.menu {
  position: relative;
  align-self: flex-start;
  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: #17141a;
  background: #fff7e6;
  cursor: pointer;
}
.menu__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: max-content;
  max-width: min(150px, 76vw);
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff7e6;
  border-radius: 16px;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 220ms ease-out, transform 220ms ease-out;
}
.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:hover .menu__panel, .menu.is-open .menu__panel {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition-delay: 150ms;
}
.menu.is-demo .menu__panel {
  animation: reveal-loop 2s ease-out infinite;
}

@keyframes reveal-loop {
  0%, 40% {
    opacity: 0;
    transform: translateY(-6px);
  }
  55%, 80% {
    opacity: 1;
    transform: none;
  }
  95%, 100% {
    opacity: 0;
    transform: translateY(-6px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .menu__panel {
    transition: none !important;
  }
  .menu.is-demo .menu__panel {
    animation: none;
    opacity: 0;
    transform: none;
  }
}
