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

.wm {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.wm__frame {
  position: relative;
  height: clamp(96px, 50vh, 170px);
  aspect-ratio: 16/10;
  max-width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  cursor: grab;
  touch-action: none;
}

.wm__view {
  display: block;
  width: 100%;
  height: 100%;
}

.wm__ghost {
  display: none;
  position: absolute;
  inset: 0;
}

.wm__mark {
  position: absolute;
  left: 50%;
  top: 78%;
  font-weight: 800;
  font-size: 24px;
  line-height: 1;
  color: rgba(255, 247, 230, 0.94);
  text-shadow: 0 2px 9px rgba(23, 20, 26, 0.62);
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

.wm__foot {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  color: #fff7e6;
}

.wm__lab {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 800;
  font-size: clamp(8px, 2.2vw, 10px);
}

.wm__ico {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
}

.wm__track {
  position: relative;
  display: block;
  width: 76px;
  height: 6px;
  cursor: pointer;
  border-radius: 999px;
  background: rgba(255, 247, 230, 0.32);
}

.wm__track:focus-visible {
  outline: 3px solid #2f6df6;
  outline-offset: 4px;
}

.wm__thumb {
  position: absolute;
  top: 50%;
  left: 36%;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  transform: translate(-50%, -50%);
}

.wm__btn {
  cursor: pointer;
  border: 1px solid rgba(255, 247, 230, 0.34);
  background: transparent;
  color: #fff7e6;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  line-height: 1.3;
  font-size: clamp(8px, 2.2vw, 10px);
  padding: 4px 8px;
}

.wm__btn[aria-pressed=true] {
  background: #2f6df6;
  border-color: #2f6df6;
  color: #ffffff;
}

.wm__btn:focus-visible {
  outline: 3px solid #2f6df6;
  outline-offset: 2px;
}

.wm__hint {
  font-weight: 700;
  font-size: clamp(8px, 2.1vw, 10px);
  color: rgba(255, 247, 230, 0.64);
}

.wm.is-demo .wm__ghost {
  display: block;
  animation-name: wmMove;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}

@keyframes wmMove {
  0%, 6% {
    transform: translate(0, 0);
  }
  36%, 60% {
    transform: translate(18%, -16%);
  }
  88%, 100% {
    transform: translate(0, 0);
  }
}
.wm.is-demo .wm__mark {
  animation-name: wmGrow;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}

@keyframes wmGrow {
  0%, 6% {
    transform: translate(-50%, -50%) scale(1);
  }
  36%, 60% {
    transform: translate(-50%, -50%) scale(1.42);
  }
  88%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
}
.wm.is-demo .wm__thumb {
  animation-name: wmThumb;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}

@keyframes wmThumb {
  0%, 6% {
    transform: translate(-50%, -50%);
  }
  36%, 60% {
    transform: translate(-50%, -50%) translateX(24px);
  }
  88%, 100% {
    transform: translate(-50%, -50%);
  }
}
@media (max-width: 340px) {
  .wm__foot {
    gap: 4px;
  }
  .wm__hint {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wm.is-demo .wm__ghost,
  .wm.is-demo .wm__mark,
  .wm.is-demo .wm__thumb {
    animation: none !important;
  }
  .wm.is-demo .wm__ghost {
    transform: translate(18%, -16%) !important;
  }
  .wm.is-demo .wm__mark {
    transform: translate(-50%, -50%) scale(1.42) !important;
  }
  .wm.is-demo .wm__thumb {
    transform: translate(-50%, -50%) translateX(24px) !important;
  }
}
