/* ==================================================================
   THE GREEN TURTLES — audio-controls.css
   ------------------------------------------------------------------
   Standalone styling for the two top-right mute buttons and the
   background ambience — see audio-controls.js, which builds this
   markup at runtime (nothing in index.html references these
   classes directly, same pattern as crab.css/crab.js).
   ================================================================== */

.audio-controls {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 5;
  display: flex;
  gap: 0.5rem;
}

.audio-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1b4332;
  background: rgba(255, 255, 255, 0.85);
  border: none;
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.audio-btn:hover {
  transform: scale(1.06);
}

.audio-btn:active {
  transform: scale(0.96);
}

/* Reflects whichever sound this button controls being effectively
   silent right now — for the ambience button that's "muted OR the
   master All-Sound switch is on", not just its own toggle, so it
   never visually claims to be playing when it isn't. */
.audio-btn.muted {
  background: rgba(255, 255, 255, 0.5);
  color: #6b7a72;
}

@media (max-width: 480px) {
  .audio-controls {
    top: 0.5rem;
    right: 0.5rem;
    gap: 0.35rem;
  }

  .audio-btn {
    font-size: 0.7rem;
    padding: 0.3rem 0.55rem;
  }
}
