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: 8px;
  width: min(100%, 320px);
}

.ws__machine {
  position: relative;
  box-sizing: border-box;
  width: 128px;
  height: 148px;
  border-radius: 16px;
  background: #fff7e6;
  padding: 8px 8px 0;
}

.ws__side {
  position: absolute;
  right: -6px;
  top: 6px;
  bottom: 6px;
  width: 12px;
  border-radius: 0 16px 16px 0;
  background: #ded1ba;
}

.ws__top {
  position: relative;
  height: 22px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ws__mark {
  width: 18px;
  height: 4px;
  border-radius: 999px;
  background: #ded1ba;
}

.ws__mark--short {
  width: 10px;
}

.ws__dial {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid #4a4453;
  box-sizing: border-box;
  margin-left: auto;
}

.ws__led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  transition: opacity 220ms ease-out;
}

.ws__led--run {
  background: #3ddc97;
  opacity: 1;
}

.ws__led--pause {
  background: #ff7a5e;
  opacity: 0.25;
}

.ws.is-pause .ws__led--run {
  opacity: 0.25;
}

.ws.is-pause .ws__led--pause {
  opacity: 1;
}

.ws__door {
  position: relative;
  width: 84px;
  height: 84px;
  margin: 4px auto 0;
}

.ws__ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: #ded1ba;
}

.ws__glass {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #211d29;
  overflow: hidden;
}

.ws__notch {
  position: absolute;
  right: -12px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 0 4px 4px 0;
  background: #4a4453;
}

.ws__drum {
  position: absolute;
  inset: 0;
  animation-name: wsSpin;
  animation-duration: 2s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.ws.is-pause .ws__drum {
  animation-play-state: paused;
}

.ws__water {
  position: absolute;
  left: -10%;
  bottom: -38%;
  width: 120%;
  height: 78%;
  border-radius: 50%;
  background: rgba(47, 109, 246, 0.82);
}

.ws__water--b {
  bottom: -46%;
  height: 72%;
  left: -16%;
  background: rgba(47, 109, 246, 0.45);
}

.ws__sock {
  position: absolute;
  left: 58%;
  top: 16%;
  width: 12px;
  height: 20px;
  border-radius: 999px;
  background: #ffd23f;
}

.ws__shirt {
  position: absolute;
  left: 16%;
  top: 30%;
  width: 18px;
  height: 14px;
  border-radius: 4px;
  background: #4cd4a6;
}

.ws__cat {
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 40px;
  height: 26px;
  margin-left: -20px;
}

.ws__head {
  position: absolute;
  inset: 0;
  bottom: -6px;
  border-radius: 50% 50% 4px 4px;
  background: #17141a;
}

.ws__ear {
  position: absolute;
  top: -1px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 9px solid #17141a;
}

.ws__ear--l {
  left: 5px;
}

.ws__ear--r {
  right: 5px;
}

.ws__tail {
  position: absolute;
  left: -8px;
  bottom: 2px;
  width: 14px;
  height: 9px;
  border-radius: 50%;
  background: #17141a;
  transform: rotate(24deg);
}

.ws__eye {
  position: absolute;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff7e6;
  animation-name: wsBlink;
  animation-duration: 2s;
  animation-iteration-count: infinite;
}

.ws__eye--l {
  left: 10px;
}

.ws__eye--r {
  right: 10px;
}

.ws__shine {
  position: absolute;
  left: 18%;
  top: 12%;
  width: 6px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 247, 230, 0.16);
  transform: rotate(38deg);
}

.ws__shine--b {
  left: 30%;
  top: 8%;
  height: 16px;
  opacity: 0.7;
}

.ws__label {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 26px;
  height: 8px;
  border-radius: 4px;
  background: #ded1ba;
}

.ws__btn {
  box-sizing: border-box;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: #0a4fe8;
  color: #fff7e6;
  font-family: inherit;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
}

@keyframes wsSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes wsBlink {
  0%, 42% {
    transform: scaleY(1);
  }
  46%, 50% {
    transform: scaleY(0.1);
  }
  54%, 100% {
    transform: scaleY(1);
  }
}
@media (max-width: 340px) {
  .ws__machine {
    width: 104px;
    height: 118px;
  }
  .ws__top {
    height: 18px;
  }
  .ws__mark {
    width: 12px;
  }
  .ws__dial {
    width: 10px;
    height: 10px;
  }
  .ws__door {
    width: 64px;
    height: 64px;
  }
  .ws__cat {
    width: 32px;
    height: 20px;
    bottom: -1px;
  }
  .ws__sock {
    width: 10px;
    height: 16px;
  }
  .ws__shirt {
    width: 14px;
    height: 11px;
  }
  .ws__btn {
    padding: 4px 12px;
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ws__drum, .ws__eye {
    animation-name: none !important;
  }
}
