/* Angel Astraea · the controls at the foot of the screen, shared by the entrances and the palace: a capsule of frosted glass,
   centred at the bottom, glowing softly. Each control is a fine-line icon and a word.
   The sound control shows a speaker: crossed through and SOUND OFF when quiet, its waves breathing and SOUND ON when playing.
   Markup: <div class="aa-cap"><button class="aa-btn aa-sound" role="switch" aria-checked="false"><svg>…</svg><span class="state"></span></button></div> */
.aa-cap{position:fixed;left:50%;bottom:clamp(14px,3vh,26px);z-index:8;transform:translateX(-50%);display:flex;align-items:stretch;overflow:hidden;border-radius:999px;
  background:rgba(168,154,222,.34);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.75),inset 0 1px 0 rgba(255,255,255,.9),0 0 26px rgba(255,255,255,.25),0 8px 26px rgba(96,86,170,.2);transition:opacity 1.2s}
.aa-btn{position:relative;display:flex;align-items:center;gap:10px;padding:12px 22px;background:none;border:0;cursor:pointer;color:#fff;
  font:400 10px/1 "Jost",sans-serif;letter-spacing:.32em;text-transform:uppercase;white-space:nowrap;
  text-shadow:0 0 10px rgba(255,255,255,.6),0 1px 12px rgba(80,70,160,.55);transition:background .4s}
.aa-btn+.aa-btn::before{content:"";position:absolute;left:0;top:28%;bottom:28%;width:1px;background:rgba(255,255,255,.6)}
.aa-btn:hover,.aa-btn:focus-visible{background:rgba(255,255,255,.18)}
.aa-btn:focus-visible{outline:none;box-shadow:inset 0 0 0 1px rgba(255,255,255,.9)}
.aa-btn svg{width:18px;height:18px;fill:none;stroke:#fff;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round;overflow:visible;
  filter:drop-shadow(0 0 4px rgba(255,255,255,.85)) drop-shadow(0 1px 3px rgba(80,70,160,.45))}
/* the speaker: waves hidden and a small cross when off; the waves breathing outward when on */
.aa-sound .wave{opacity:0;transition:opacity .5s}
.aa-sound .mute{opacity:1;transition:opacity .4s}
.aa-sound .state::before{content:"Sound off"}
.aa-sound[aria-checked="true"] .mute{opacity:0}
.aa-sound[aria-checked="true"] .wave{opacity:1;animation:aaWave 2.4s ease-in-out infinite}
.aa-sound[aria-checked="true"] .wave.w2{animation-delay:.4s}
.aa-sound[aria-checked="true"] .state::before{content:"Sound on"}
@keyframes aaWave{0%,100%{opacity:.35}50%{opacity:1}}
@media (max-width:700px){.aa-btn{padding:11px 16px;letter-spacing:.24em}}
@media (prefers-reduced-motion:reduce){.aa-sound[aria-checked="true"] .wave{animation:none}}
