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

.swap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  cursor: pointer;
  padding: 16px 32px;
  border-radius: 12px;
  background: rgba(47, 109, 246, 0.1);
  color: #2f6df6;
  font-family: inherit;
  font-size: clamp(18px, 5.5vw, 24px);
  font-weight: 800;
  box-shadow: inset 0 0 0 2px rgba(47, 109, 246, 0.35);
}

.swap__ic {
  position: relative;
  width: 34px;
  height: 34px;
  transform-style: preserve-3d;
}

.swap__face {
  position: absolute;
  inset: 0;
  display: flex;
  backface-visibility: hidden;
}

.swap__face--back {
  transform: rotateY(180deg);
}

.swap.is-demo .swap__ic {
  animation: swap-spin 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes swap-spin {
  0%, 22% {
    transform: rotateY(0deg);
  }
  50%, 72% {
    transform: rotateY(180deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .swap.is-demo .swap__ic {
    animation: none;
  }
}
