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

.ws {
  box-sizing: border-box;
  display: grid;
  gap: 12px;
  width: min(320px, 88vw);
  color: #17141a;
}

.ws * {
  box-sizing: border-box;
}

.ws__screen {
  position: relative;
  overflow: hidden;
  border: 2px solid #17141a;
  border-radius: 16px;
  background: #fff7e6;
}

.ws__pages {
  display: grid;
  min-height: 120px;
  padding: 12px;
}

.ws__page {
  grid-area: 1/1;
  display: grid;
  gap: 8px;
  align-content: start;
}

.ws__page--b {
  opacity: 0;
}

.ws__pages.is-b .ws__page--a {
  opacity: 0;
}

.ws__pages.is-b .ws__page--b {
  opacity: 1;
}

.ws__eyebrow {
  justify-self: start;
  margin: 0;
  padding: 4px 8px;
  border-radius: 999px;
  background: #17141a;
  color: #fff7e6;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.ws__head {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.ws__text {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.ws__band {
  position: absolute;
  inset: 0;
  background: #17141a;
  transform: translateX(-101%);
}

.ws__band.is-run {
  animation-name: ws-once;
  animation-duration: 720ms;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: 1;
  animation-fill-mode: both;
}

@keyframes ws-once {
  0% {
    transform: translateX(-101%);
  }
  45%, 55% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(101%);
  }
}
.ws__go {
  justify-self: center;
  margin: 0;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: #17141a;
  color: #fff7e6;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.ws__go:focus-visible {
  outline: 2px solid #17141a;
  outline-offset: 2px;
}

@keyframes ws-sweep {
  0% {
    transform: translateX(-101%);
  }
  22%, 25% {
    transform: translateX(0);
  }
  33% {
    transform: translateX(101%);
    animation-timing-function: steps(1, end);
  }
  46% {
    transform: translateX(-101%);
  }
  68%, 71% {
    transform: translateX(0);
  }
  79%, 100% {
    transform: translateX(101%);
  }
}
@keyframes ws-a {
  0%, 22% {
    opacity: 1;
  }
  23%, 68% {
    opacity: 0;
  }
  69%, 100% {
    opacity: 1;
  }
}
@keyframes ws-b {
  0%, 22% {
    opacity: 0;
  }
  23%, 68% {
    opacity: 1;
  }
  69%, 100% {
    opacity: 0;
  }
}
.ws.is-demo .ws__band {
  animation-name: ws-sweep;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}
.ws.is-demo .ws__page--a {
  animation-name: ws-a;
}
.ws.is-demo .ws__page--b {
  animation-name: ws-b;
}
.ws.is-demo .ws__page {
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

@media (max-width: 340px) {
  .ws {
    gap: 8px;
  }
  .ws__pages {
    min-height: 88px;
    padding: 8px;
  }
  .ws__page {
    gap: 4px;
  }
  .ws__eyebrow {
    font-size: 10px;
  }
  .ws__head {
    font-size: 15px;
  }
  .ws__text {
    font-size: 11px;
  }
  .ws__go {
    padding: 4px 12px;
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ws.is-demo .ws__band,
  .ws.is-demo .ws__page--a,
  .ws.is-demo .ws__page--b,
  .ws__band.is-run {
    animation: none !important;
  }
  .ws.is-demo .ws__band {
    transform: translateX(-101%) !important;
  }
  .ws.is-demo .ws__page--a {
    opacity: 0 !important;
  }
  .ws.is-demo .ws__page--b {
    opacity: 1 !important;
  }
}
