/*
 * Blue Wave Baseball — SOUND
 * ==========================
 * Mute toggle, bottom-left of the field. The Roster button already sat in
 * that corner, so this file also nudges it right by the toggle's width: the
 * two read as one cluster, [mute] [Roster]. Career mode hides the Roster
 * button entirely (career.css), and the toggle keeps its corner either way.
 *
 * Deleting sound.css restores the old layout exactly — the offset lives here,
 * not in styles.css.
 */

.sound-toggle {
  position: absolute;
  bottom: 1rem;
  left: 1.5rem;
  z-index: 14;
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  background: rgba(3, 39, 65, 0.9);
  color: white;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.sound-toggle:hover,
.sound-toggle:focus-visible {
  border-color: var(--yellow);
  color: var(--yellow);
}

.sound-toggle:active {
  transform: scale(0.94);
}

.sound-toggle svg {
  width: 1.3rem;
  height: 1.3rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* aria-pressed is the single source of truth for which icon shows. */
.sound-toggle .sound-icon-off { display: none; }
.sound-toggle[aria-pressed="true"] .sound-icon-on { display: none; }
.sound-toggle[aria-pressed="true"] .sound-icon-off { display: block; }
.sound-toggle[aria-pressed="true"] { color: rgba(255, 255, 255, 0.62); }

/* Make room in the corner: 1.5rem gutter + 2.8rem toggle + 0.7rem gap. */
.roster-toggle { left: 5rem; }

@media (max-width: 920px) {
  .sound-toggle {
    bottom: 0.75rem;
    left: 1rem;
    width: 2.5rem;
    height: 2.5rem;
  }

  .sound-toggle svg {
    width: 1.15rem;
    height: 1.15rem;
  }

  /* 1rem gutter + 2.5rem toggle + 0.6rem gap. */
  .roster-toggle { left: 4.1rem; }
}
