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

.stage {
  position: relative;
  overflow: hidden;
}

.menu__trigger {
  border: 0;
  border-radius: 12px;
  padding: clamp(9px, 3vw, 13px) clamp(16px, 4vw, 22px);
  font-weight: 700;
  font-size: clamp(13px, 3.6vw, 16px);
  line-height: 1;
  font-family: inherit;
  color: #fff7e6;
  background: #0a4fe8;
  cursor: pointer;
}

.menu__sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
  list-style: none;
  background: #fff7e6;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  transform: translateY(100%);
}

.menu__sheet li a {
  display: block;
  padding: clamp(9px, 2.6vw, 12px) 12px;
  border-radius: 8px;
  color: #17141a;
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  font-size: clamp(13px, 3.6vw, 15px);
  line-height: 1.2;
  font-family: inherit;
}

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

.menu__sheet.is-open {
  transform: translateY(0);
  transition: transform 300ms ease-out;
}

.menu__trigger.is-demo ~ .menu__sheet {
  animation: sheet-loop 2s ease-out infinite;
}

@keyframes sheet-loop {
  0%, 30% {
    transform: translateY(100%);
  }
  45%, 80% {
    transform: translateY(0);
  }
  95%, 100% {
    transform: translateY(100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .menu__sheet {
    transition: none !important;
  }
  .menu__trigger.is-demo ~ .menu__sheet {
    animation: none;
    transform: translateY(100%);
  }
}
@media (max-width: 360px) {
  .menu__sheet {
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  }
}
