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

.ws {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 400px;
}

.ws__hint {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-weight: 700;
  font-size: clamp(11px, 3vw, 12px);
  color: #fff7e6;
}

.ws__ico {
  width: 16px;
  height: 16px;
  color: #4cd4a6;
}

.ws__scope {
  box-sizing: border-box;
  width: 100%;
  padding: 8px 8px 0;
  border-radius: 16px;
  background: #211d26;
  border: 1px solid rgba(255, 247, 230, 0.12);
}

.ws__svg {
  display: block;
  width: 100%;
  height: 104px;
}

.ws__base {
  fill: none;
  stroke: rgba(255, 247, 230, 0.28);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.ws__flow {
  fill: none;
  stroke: #4cd4a6;
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(76, 212, 166, 0.45));
}

.ws__foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

.ws__play {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  background: #ffd23f;
  color: #17141a;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  font-size: clamp(11px, 3vw, 12px);
  line-height: 1;
}

.ws__ico--pause {
  display: none;
}

.ws__play[aria-pressed=true] .ws__ico--play {
  display: none;
}

.ws__play[aria-pressed=true] .ws__ico--pause {
  display: inline-block;
}

.ws__play .ws__ico {
  color: #17141a;
}

.ws__level {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ws__levelLabel {
  font-weight: 700;
  font-size: clamp(10px, 2.6vw, 11px);
  color: rgba(255, 247, 230, 0.82);
}

.ws__levelBox {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 48px;
  height: 20px;
  border-radius: 4px;
  padding: 0 4px;
  background: rgba(255, 247, 230, 0.16);
  color: #fff7e6;
  font-weight: 800;
  font-size: clamp(11px, 3vw, 12px);
  line-height: 1;
}

.ws__loop {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  visibility: hidden;
}

.ws__loop i {
  grid-area: 1/1;
  font-style: normal;
  visibility: hidden;
}

.ws.is-demo .ws__flow {
  stroke-dasharray: 56 124;
  animation-name: wsFlow;
  animation-duration: 2s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes wsFlow {
  from {
    stroke-dashoffset: 180;
  }
  to {
    stroke-dashoffset: 0;
  }
}
.ws.is-demo .ws__levelText {
  color: transparent;
}

.ws.is-demo .ws__loop {
  visibility: visible;
}

.ws.is-demo .ws__loop i {
  animation-name: wsStateName;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.ws.is-demo .ws__loop i:nth-child(1) {
  animation-delay: 0ms;
}

.ws.is-demo .ws__loop i:nth-child(2) {
  animation-delay: 666ms;
}

.ws.is-demo .ws__loop i:nth-child(3) {
  animation-delay: 1332ms;
}

@keyframes wsStateName {
  0%, 33% {
    visibility: visible;
  }
  34%, 100% {
    visibility: hidden;
  }
}
@media (max-width: 340px) {
  .ws {
    gap: 8px;
  }
  .ws__scope {
    padding: 4px 4px 0;
  }
  .ws__svg {
    height: 76px;
  }
  .ws__foot {
    gap: 8px;
  }
  .ws__play {
    padding: 4px 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ws.is-demo .ws__flow {
    animation: none !important;
    stroke-dasharray: none;
  }
  .ws.is-demo .ws__loop i {
    animation: none !important;
  }
  .ws.is-demo .ws__levelText {
    color: #fff7e6 !important;
  }
  .ws.is-demo .ws__loop {
    visibility: hidden !important;
  }
  .ws__flow {
    transition: none !important;
  }
}
