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

.toolbar {
  width: min(280px, 92vw);
  display: flex;
  justify-content: flex-end;
  align-self: flex-start;
}

.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: 999px;
  padding: clamp(9px, 3vw, 12px) clamp(16px, 4vw, 20px);
  font-weight: 700;
  font-family: inherit;
  color: #17141a;
  background: #fff7e6;
  cursor: pointer;
}
.menu__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: max-content;
  max-width: min(170px, 76vw);
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff7e6;
  border-radius: 16px;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  transform-origin: top right;
  transform: scale(0.9);
  opacity: 0;
  pointer-events: none;
}
.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.is-open .menu__panel {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  transition: opacity 220ms cubic-bezier(0.2, 1.4, 0.4, 1), transform 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}
.menu.is-demo .menu__panel {
  animation: reveal-loop 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

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