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

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

.modal-scene {
  position: relative;
  width: min(230px, 82vw);
  height: 168px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.modal-scene__page {
  position: absolute;
  inset: 0;
  padding: 16px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-scene__line {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: #e6e2d8;
}

.modal-scene__line--short {
  width: 60%;
}

.modal-scene__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 20, 26, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background 600ms cubic-bezier(0.2, 1.4, 0.4, 1), backdrop-filter 600ms cubic-bezier(0.2, 1.4, 0.4, 1);
  pointer-events: none;
}

.modal-scene__modal {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(170px, 74%);
  padding: 12px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  text-align: center;
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0;
  transition: transform 600ms cubic-bezier(0.2, 1.4, 0.4, 1), opacity 600ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.modal-scene__title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: #c2361a;
  font-family: inherit;
}

.modal-scene__desc {
  margin: 0 0 12px;
  font-size: 11px;
  color: #6b6455;
  font-family: inherit;
}

.modal-scene__btn {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  background: #17141a;
  color: #ffffff;
  font-weight: 700;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
}

.modal-scene__btn:hover, .modal-scene__btn:focus-visible {
  background: rgb(21.0196078431%, 18.2779198636%, 23.7612958227%);
}

.modal-scene.is-demo .modal-scene__backdrop {
  animation: backdrop-cycle 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

.modal-scene.is-demo .modal-scene__modal {
  animation: modal-cycle 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

@keyframes backdrop-cycle {
  0%, 8% {
    background: rgba(23, 20, 26, 0);
    backdrop-filter: blur(0px);
  }
  23%, 77% {
    background: rgba(23, 20, 26, 0.45);
    backdrop-filter: blur(3px);
  }
  92%, 100% {
    background: rgba(23, 20, 26, 0);
    backdrop-filter: blur(0px);
  }
}
@keyframes modal-cycle {
  0%, 8% {
    transform: translate(-50%, -50%) scale(0.7);
    opacity: 0;
  }
  23%, 77% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  92%, 100% {
    transform: translate(-50%, -50%) scale(0.7);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .modal-scene__backdrop, .modal-scene__modal {
    transition: none;
  }
  .modal-scene.is-demo .modal-scene__backdrop,
  .modal-scene.is-demo .modal-scene__modal {
    animation: none;
  }
}
