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

.totop {
  position: relative;
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.totop__ring {
  position: absolute;
  inset: 0;
  width: 72px;
  height: 72px;
  transform-origin: center;
}

.totop__ring.is-demo {
  animation: ring-spin 8s linear infinite;
}

@keyframes ring-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.totop__ring-text {
  font: 700 6.4px/1 -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0.12em;
  fill: #17141a;
}

.totop__arrow {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #17141a;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  background: #ffffff;
  border-radius: 999px;
  padding: 8px;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  box-sizing: content-box;
}

@media (prefers-reduced-motion: reduce) {
  .totop__ring.is-demo {
    animation: none;
  }
}
