.background-music-toggle {
  position: fixed;
  left: max(14px, env(safe-area-inset-left));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 48;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  color: #f1d69a;
  background: rgba(7, 19, 28, 0.78);
  border: 1px solid rgba(220, 188, 116, 0.72);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.background-music-toggle:hover,
.background-music-toggle:focus-visible {
  color: #fff4d4;
  background: rgba(18, 39, 50, 0.94);
  border-color: #f1d69a;
}

.background-music-toggle:focus-visible {
  outline: 3px solid rgba(255, 239, 194, 0.9);
  outline-offset: 3px;
}

.background-music-toggle .music-icon {
  width: 20px;
  height: 20px;
}

.background-music-toggle .music-icon-pause,
.background-music-toggle[data-playing='true'] .music-icon-play {
  display: none;
}

.background-music-toggle[data-playing='true'] .music-icon-pause {
  display: block;
}

@media (max-width: 767px) {
  .background-music-toggle {
    width: 42px;
    height: 42px;
  }
}

@media print {
  .background-music-toggle {
    display: none !important;
  }
}
