/* Background music control. Fixed, bottom-right, clear of the Help button (bottom-left) and of the Netlify badge that is injected in the bottom-right corner (64px tall). */
.bgm{position:fixed;right:16px;bottom:calc(80px + env(safe-area-inset-bottom,0px));z-index:56;display:flex;flex-direction:column;align-items:flex-end;gap:8px;font:600 .82rem/1.2 Inter,system-ui,sans-serif;color:#d7dbe2}
.bgm.bgm-raised{bottom:calc(132px + env(safe-area-inset-bottom,0px))}
.bgm *{box-sizing:border-box}
.bgm-bar,.bgm-panel{display:flex;align-items:center;gap:4px;padding:4px;border-radius:999px;border:1px solid rgba(215,219,226,.34);background:rgba(10,10,11,.92);box-shadow:0 4px 18px rgba(0,0,0,.45)}
.bgm-btn{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:44px;height:44px;padding:0 12px;border-radius:999px;border:1px solid transparent;background:transparent;color:#d7dbe2;font:inherit;cursor:pointer}
.bgm-btn:hover{background:rgba(45,212,191,.14);border-color:rgba(45,212,191,.6)}
.bgm-btn[aria-pressed="true"]{color:#2dd4bf}
.bgm-btn:focus-visible,.bgm-vol:focus-visible{outline:3px solid #2dd4bf;outline-offset:2px}
.bgm-btn svg{width:20px;height:20px;flex:none;fill:currentColor}
.bgm-btn[disabled]{opacity:.7;cursor:not-allowed}
.bgm-label{display:none}
@media (min-width:640px){.bgm-label{display:inline}}
.bgm-panel[hidden]{display:none}
.bgm-vol{width:110px;height:44px;margin:0 8px 0 2px;accent-color:#2dd4bf;background:transparent;cursor:pointer}
.bgm-eq{display:none;align-items:flex-end;gap:2px;height:14px}
.bgm-eq i{display:block;width:3px;height:6px;background:#2dd4bf;border-radius:1px}
.bgm.bgm-on .bgm-eq{display:inline-flex}
.bgm.bgm-on .bgm-eq i{animation:bgm-eq 1.1s ease-in-out infinite}
.bgm.bgm-on .bgm-eq i:nth-child(2){animation-delay:.25s}
.bgm.bgm-on .bgm-eq i:nth-child(3){animation-delay:.5s}
@keyframes bgm-eq{0%,100%{height:4px}50%{height:14px}}
@media (prefers-reduced-motion:reduce){.bgm.bgm-on .bgm-eq i{animation:none;height:10px}}
.bgm-status{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.music-credit a{text-decoration:underline}
@media print{.bgm{display:none}}
