html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #1b1a20;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.wv {
  box-sizing: border-box;
  width: clamp(288px, 94vw, 432px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.wv__body {
  padding: 16px;
  background: #fbf6ee;
  text-align: center;
}

.wv__lead {
  margin: 0;
  color: #575162;
  font-weight: 600;
  font-size: clamp(11px, 2.6vw, 13px);
  line-height: 1.3;
  font-family: inherit;
}

.wv__edge {
  position: relative;
  height: 28px;
  overflow: hidden;
  background: #fbf6ee;
}

.wv__wave {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 960px;
  height: 28px;
  background-repeat: repeat-x;
  background-size: 120px 28px;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-duration: 2s;
}

.wv__wave--back {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='28' viewBox='0 0 120 28' preserveAspectRatio='none'%3E%3Cpath d='M0 12C20 2 40 2 60 12S100 22 120 12V28H0Z' fill='%23b9b3c4'/%3E%3C/svg%3E");
  animation-name: waveBack;
}

.wv__wave--front {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='28' viewBox='0 0 120 28' preserveAspectRatio='none'%3E%3Cpath d='M0 14C15 0 45 0 60 14S105 28 120 14V28H0Z' fill='%231b1a20'/%3E%3C/svg%3E");
  animation-name: waveFront;
}

.wv__foot {
  padding: 12px 16px 16px;
  background: #1b1a20;
}

.wv__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.wv__nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.wv__link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(11px, 2.6vw, 12px);
  line-height: 1.4;
}

.wv__link:hover {
  color: #b3dad5;
}

.wv__link:focus-visible {
  outline: 2px solid #b3dad5;
  outline-offset: 3px;
  border-radius: 4px;
}

.wv__toggle {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid #b9b3c4;
  border-radius: 999px;
  background: #2c2a33;
  color: #b9b3c4;
  cursor: pointer;
  font-weight: 600;
  font-size: 11px;
  line-height: 1.3;
  font-family: inherit;
}

.wv__toggle:focus-visible {
  outline: 2px solid #b3dad5;
  outline-offset: 2px;
}

.wv__toggle[aria-pressed=false] .wv__t--play {
  display: none;
}

.wv__toggle[aria-pressed=true] .wv__t--stop {
  display: none;
}

.wv__copy {
  margin: 8px 0 0;
  color: #b9b3c4;
  font-weight: 500;
  font-size: 10px;
  line-height: 1.4;
  font-family: inherit;
}

@keyframes waveBack {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-240px);
  }
}
@keyframes waveFront {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-480px);
  }
}
.wv.is-paused .wv__wave {
  animation-play-state: paused;
}

@media (max-width: 340px), (max-height: 220px) {
  .wv {
    width: 276px;
  }
  .wv__body {
    padding: 8px;
  }
  .wv__edge {
    height: 20px;
  }
  .wv__wave {
    height: 20px;
    background-size: 120px 20px;
  }
  .wv__foot {
    padding: 8px;
  }
  .wv__nav {
    gap: 8px;
  }
  .wv__link {
    font-size: 11px;
  }
  .wv__toggle {
    font-size: 10px;
  }
  .wv__copy {
    margin: 4px 0 0;
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wv__wave {
    animation: none !important;
  }
}
