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

.rt-frame {
  position: relative;
  width: min(280px, 88vw);
  aspect-ratio: 280/160;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.rt-page {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.rt-page--out {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
}

.rt-page--in {
  background: linear-gradient(160deg, #2f6df6, rgba(23, 20, 26, 0.9));
}

.rt-page__label {
  padding: 8px 20px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  color: #fff7e6;
  font: 700 13px/1 "SFMono-Regular", Consolas, monospace;
}

.rt-page--in {
  transform: translateX(100%);
}

@keyframes rt-out {
  0%, 15% {
    transform: none;
  }
  75%, 100% {
    transform: translateX(-100%);
  }
}
@keyframes rt-in {
  0%, 15% {
    transform: translateX(100%);
  }
  75%, 100% {
    transform: none;
  }
}
.rt-frame.is-demo .rt-page--out {
  animation: rt-out 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.rt-frame.is-demo .rt-page--in {
  animation: rt-in 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .rt-frame.is-demo .rt-page--out,
  .rt-frame.is-demo .rt-page--in {
    animation: none !important;
  }
  .rt-page--out {
    transform: none;
  }
  .rt-page--in {
    transform: translateX(100%);
  }
}
