/* ============================================================
   Кнопка звука
   ============================================================ */
.ny-snd {
  position: fixed;
  left: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 400;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  background: rgba(20, 12, 32, .82);
  backdrop-filter: blur(10px);
  color: #c2aed6;
  cursor: pointer;
  transition: color .2s, border-color .2s, transform .15s, box-shadow .25s;
}
.ny-snd:hover { color: #fff; border-color: rgba(255, 255, 255, .35); }
.ny-snd:active { transform: scale(.94); }
.ny-snd svg { display: block; }

/* выключено: перечёркнутый динамик */
.ny-snd .ny-snd-off { display: block; }
.ny-snd .ny-snd-on { display: none; }

/* включено: волны и подсветка */
.ny-snd.on {
  color: #ff8ac4;
  border-color: rgba(255, 61, 154, .55);
  box-shadow: 0 0 18px rgba(255, 61, 154, .35);
}
.ny-snd.on .ny-snd-off { display: none; }
.ny-snd.on .ny-snd-on { display: block; }

/* первый раз — мягко мигает, чтобы заметили */
.ny-snd.hint { animation: nySndPulse 2.2s ease-in-out infinite; }
@keyframes nySndPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 61, 154, 0); }
  50%      { box-shadow: 0 0 0 9px rgba(255, 61, 154, .16); }
}

@media (max-width: 620px) {
  .ny-snd { width: 38px; height: 38px; left: 11px; bottom: calc(11px + env(safe-area-inset-bottom, 0px)); }
}
