/* Practice speaker button (js/sfx.js). Static styles only; no animation. */
.sfx-toggle { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.sfx-ico { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sfx-state { font-size: .78em; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 1px 6px; border-radius: 999px;
  background: var(--brand-50, #EAF0F7); color: var(--brand, #1F3A5F); }
.sfx-toggle.is-muted .sfx-state { background: transparent; color: inherit; opacity: .75; box-shadow: inset 0 0 0 1px currentColor; }
.sfx-toggle.is-muted .sfx-ico { opacity: .8; }
.sfx-toggle:focus-visible { outline: 2px solid var(--focus, #2F6FEB); outline-offset: 2px; }
.sfx-toggle--reading .sfx-ico { width: 15px; height: 15px; }
.sfx-toggle--reading .sfx-state { font-size: 10px; }
/* Writing practice bar: compact (speaker + ON/OFF); "Sound" stays as the accessible name */
.sfx-toggle--writing { padding-left: 12px; padding-right: 10px; }
.sfx-toggle--writing .sfx-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 600px) {
  .sfx-toggle--writing { min-height: 44px; min-width: 44px; justify-content: center; }
}
/* Reading practice bar */
.rd-top-left.sfx-has { display: grid; grid-auto-flow: column; grid-template-rows: auto auto; grid-template-columns: max-content auto; justify-content: start; align-items: center; column-gap: 14px; }
.rd-top-left.sfx-has .sfx-rd-wide { grid-row: 1 / span 2; grid-column: 2; }
.sfx-rd-narrow { display: none !important; }
@media (max-width: 799px) {
  .rd-top-left.sfx-has { display: none; }
  .rd-on-results .rd-top-left.sfx-has, .rd-review .rd-top-left.sfx-has { display: grid; }
  .sfx-rd-wide { display: none !important; }
  .sfx-rd-narrow { display: inline-flex !important; }
  .sfx-rd-narrow .sfx-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.pr-bar-main .sfx-toggle--writing { margin-left: auto; }
@media (max-width: 899.98px) {
  .pr-bar-main .sfx-toggle--writing { order: 2; margin-left: 0; padding-left: 10px; padding-right: 8px; }
}

/* Welcome-screen mute, in the footer */
.sfx-toggle--gate {
  margin-left: auto;
  min-height: 36px;
  padding: 4px 10px;
  font-size: 13px;
}
.sfx-toggle--gate .sfx-txt { display: none; }
@media (max-width: 680px) {
  .sfx-toggle--gate { min-height: 36px; padding: 4px 8px; }
}

/* Shown only if the browser blocks welcome music after a gesture */
.sfx-login-play {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  min-height: 44px;
  padding: 0 14px;
}
.sfx-login-play[hidden] { display: none !important; }
