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

.xs-wrap {
  position: relative;
  width: 40px;
  height: 40px;
}

.xs-arrow {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 16px;
  height: 16px;
  border-top: 3px solid;
  border-right: 3px solid;
}

.xs-arrow--a {
  border-color: #2f6df6;
  transform: translate(-6px, 6px) rotate(-45deg);
}

.xs-arrow--b {
  border-color: #fff7e6;
  transform: translate(6px, -6px) rotate(135deg);
}

@keyframes xs-swap-a {
  0%, 100% {
    transform: translate(-6px, 6px) rotate(-45deg);
  }
  46% {
    transform: translate(8px, -8px) rotate(-45deg);
  }
  50% {
    transform: translate(6px, -6px) rotate(-45deg);
  }
}
@keyframes xs-swap-b {
  0%, 100% {
    transform: translate(6px, -6px) rotate(135deg);
  }
  46% {
    transform: translate(-8px, 8px) rotate(135deg);
  }
  50% {
    transform: translate(-6px, 6px) rotate(135deg);
  }
}
.xs-arrow--a {
  animation: xs-swap-a 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.xs-arrow--b {
  animation: xs-swap-b 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.xs-trail {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  opacity: 0;
}

.xs-trail--a {
  background: #2f6df6;
}

.xs-trail--b {
  background: #fff7e6;
}

@keyframes xs-trail-a {
  0%, 100% {
    opacity: 0;
    transform: translate(-3px, 3px) scale(0.6);
  }
  50% {
    opacity: 0.35;
    transform: translate(3px, -3px) scale(1);
  }
}
@keyframes xs-trail-b {
  0%, 100% {
    opacity: 0;
    transform: translate(3px, -3px) scale(0.6);
  }
  50% {
    opacity: 0.35;
    transform: translate(-3px, 3px) scale(1);
  }
}
.xs-trail--a {
  animation: xs-trail-a 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) 60ms infinite;
}

.xs-trail--b {
  animation: xs-trail-b 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) 60ms infinite;
}

@media (prefers-reduced-motion: reduce) {
  .xs-arrow--a {
    animation: none !important;
    transform: translate(-6px, 6px) rotate(-45deg) !important;
  }
  .xs-arrow--b {
    animation: none !important;
    transform: translate(6px, -6px) rotate(135deg) !important;
  }
  .xs-trail--a, .xs-trail--b {
    animation: none !important;
    opacity: 0 !important;
  }
}
