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

.cx-pad {
  position: relative;
  width: min(240px, 78vw);
  height: 150px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  display: grid;
  place-items: center;
  user-select: none;
}

.cx-hint {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  font-weight: 700;
}

.cx-menu {
  position: absolute;
  left: 68px;
  top: 52px;
  min-width: 128px;
  display: flex;
  flex-direction: column;
  padding: 8px;
  border-radius: 12px;
  background: #26212e;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: scale(0.7);
  transform-origin: top left;
  opacity: 0;
  pointer-events: none;
  transition: transform 220ms cubic-bezier(0.2, 1.4, 0.4, 1), opacity 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.cx-pad.is-open .cx-menu {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}

.cx-menu__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.cx-menu__item svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.cx-menu__item:hover, .cx-menu__item:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

.cx-menu__item--danger {
  color: #e2cac5;
}

.cx-pad.is-demo .cx-menu {
  animation: cx-loop 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

@keyframes cx-loop {
  0%, 10% {
    transform: scale(0.7);
    opacity: 0;
  }
  32% {
    transform: scale(1.05);
    opacity: 1;
  }
  42%, 68% {
    transform: scale(1);
    opacity: 1;
  }
  88%, 100% {
    transform: scale(0.7);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cx-menu {
    transition: none;
  }
}
