/* ---------- volume toast ---------- */
.volume-toast {
  position: fixed;
  z-index: 80;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 20px;
  width: calc(100vw - 32px);
  max-width: 380px;

  background:
    linear-gradient(135deg, rgba(122, 63, 184, 0.46), rgba(155, 108, 255, 0.24)),
    rgba(35, 12, 58, 0.6);

  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.32),
    inset 0 1px 1px rgba(255, 255, 255, 0.32);

  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);

  color: #fff6e9;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  opacity: 0;
  pointer-events: none;

  /* mobile default: drop in from top, centered */
  top: calc(14px + env(safe-area-inset-top, 0px));
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translateX(-50%) translateY(-140%);

  transition:
    transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.3s ease;
}

.volume-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.volume-toast::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.24) 0%,
    rgba(201, 160, 217, 0.1) 55%,
    rgba(255, 255, 255, 0.02) 100%
  );
}

.volume-toast > * {
  position: relative;
  z-index: 1;
}

.volume-toast-icon {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--marigold);
  filter: drop-shadow(0 0 6px rgba(243, 190, 91, 0.35));
}
.volume-toast-icon svg {
  width: 100%;
  height: 100%;
}

.volume-toast-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.volume-toast-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 246, 233, 0.65);
}

.volume-toast-text {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  word-break: break-word;
}

/* desktop: slide in from bottom-right instead */
@media (min-width: 601px) {
  .volume-toast {
    top: auto;
    left: auto;
    right: calc(24px + env(safe-area-inset-right, 0px));
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-width: 340px;
    transform: translateX(0) translateY(24px);
  }

  .volume-toast.show {
    transform: translateX(0) translateY(0);
  }
}