/* Audio feature (features/audio*): the only visible part is the hint shown while the browser
   keeps the AudioContext suspended until the next user gesture. Classes are prefixed au-. */

.au-hint {
  position: fixed;
  left: 12px;
  /* Just above the chat box (232px tall, 12px from the bottom). */
  bottom: 254px;
  z-index: 21;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 10px;
  font: bold 12px var(--font);
  color: var(--gold-bright);
  cursor: pointer;
  background: linear-gradient(180deg, rgba(42, 33, 24, 0.94), rgba(20, 16, 11, 0.94));
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
  animation: au-pulse 2.4s ease-in-out infinite;
}

/* A small speaker drawn with borders: body + cone. */
.au-hint::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 8px solid var(--gold);
  box-shadow: -3px 0 0 -1px var(--gold);
}

.au-hint:hover {
  border-color: var(--gold);
}

.au-hint:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

@keyframes au-pulse {
  0%,
  100% {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5), 0 0 0 rgba(217, 180, 90, 0);
  }
  50% {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5), 0 0 12px rgba(217, 180, 90, 0.45);
  }
}

@media (prefers-reduced-motion: reduce) {
  .au-hint {
    animation: none;
  }
}
