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

.page-mock {
  position: absolute;
  inset: 24px 40px auto 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-mock__line {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.14);
}

.page-mock__line:nth-child(1) {
  width: 68%;
}

.page-mock__line:nth-child(2) {
  width: 84%;
}

.page-mock__line:nth-child(3) {
  width: 60%;
}

.totop {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: #ffd23f;
  display: none;
  place-items: center;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  cursor: pointer;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 320ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1), display 320ms allow-discrete;
}

.totop.is-visible {
  display: grid;
  opacity: 1;
  transform: translateX(0);
}
@starting-style {
  .totop.is-visible {
    opacity: 0;
    transform: translateX(40px);
  }
}

.totop.is-demo {
  display: grid !important;
  animation: totop-slide-loop 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes totop-slide-loop {
  0%, 100% {
    opacity: 0;
    transform: translateX(40px);
  }
  20%, 80% {
    opacity: 1;
    transform: translateX(0);
  }
}
.totop__arrow {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #17141a;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (prefers-reduced-motion: reduce) {
  .totop, .totop.is-demo {
    transition: none;
    animation: none;
    opacity: 1;
    transform: translateX(0);
  }
}
