.wey-sound-toggle {
  position: fixed;
  top: 22px;
  right: 24px;
  z-index: 2147483000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: rgba(250, 247, 239, 0.9);
  font: 500 9px/1.2 "Inter", "Space Grotesk", Arial, sans-serif;
  letter-spacing: 0.16em;
  text-shadow: 0 1px 9px rgba(0, 0, 0, 0.68);
  cursor: pointer;
  opacity: 0.78;
  transition: color 220ms ease, opacity 220ms ease, transform 220ms ease;
  -webkit-tap-highlight-color: transparent;
}

.wey-sound-toggle:hover,
.wey-sound-toggle.is-on {
  color: var(--red-bright, var(--accent, #f2e9d9));
  opacity: 1;
}

.wey-sound-toggle:hover {
  transform: translateY(-1px);
}

.wey-sound-toggle:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 5px;
}

.wey-sound-meter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 13px;
  height: 12px;
}

.wey-sound-meter i {
  display: block;
  width: 1.5px;
  height: 4px;
  background: currentColor;
  transform-origin: center;
}

.wey-sound-meter i:nth-child(2) {
  height: 8px;
}

.wey-sound-toggle.is-on .wey-sound-meter i {
  animation: wey-sound-level 620ms ease-in-out infinite alternate;
}

.wey-sound-toggle.is-on .wey-sound-meter i:nth-child(2) {
  animation-delay: 180ms;
}

.wey-sound-toggle.is-on .wey-sound-meter i:nth-child(3) {
  animation-delay: 340ms;
}

@keyframes wey-sound-level {
  from { transform: scaleY(0.42); }
  to { transform: scaleY(1.22); }
}

@media (max-width: 560px) {
  .wey-sound-toggle {
    top: 14px;
    right: 12px;
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wey-sound-toggle,
  .wey-sound-toggle:hover {
    transition: none;
    transform: none;
  }

  .wey-sound-toggle.is-on .wey-sound-meter i {
    animation: none;
  }
}
