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

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

.ue-wrap {
  width: min(320px, 90vw);
  display: grid;
  place-items: center;
}

.ue-dialog {
  width: min(240px, 82vw);
  box-sizing: border-box;
  padding: 20px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  font-family: -apple-system, "Segoe UI", sans-serif;
}

.ue-dialog__title {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  font-family: inherit;
  color: #17141a;
}

.ue-dialog__btn {
  padding: 8px 16px;
  border-radius: 12px;
  background: #ff4d1f;
  color: #17141a;
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  font-family: inherit;
}

.ue-dialog {
  display: flex;
  opacity: 1;
  transform: scale(1);
  transition: opacity 300ms ease-out, transform 300ms ease-out, display 300ms allow-discrete;
}

.ue-dialog.is-exiting {
  display: none;
  opacity: 0;
  transform: scale(0.92) translateY(6px);
}

@keyframes ue-exit {
  0%, 45% {
    opacity: 1;
    transform: scale(1);
  }
  90%, 100% {
    opacity: 0;
    transform: scale(0.92) translateY(6px);
  }
}
.ue-wrap.is-demo .ue-dialog {
  animation: ue-exit 2s ease-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .ue-dialog {
    transition: none;
  }
  .ue-wrap.is-demo .ue-dialog {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}
