/* Sound belongs beside language: an optional browsing preference, never a CTA. */
.site-preferences{display:flex;align-items:center;gap:16px;margin-left:auto}
.sound-preferences{position:relative;flex-shrink:0;z-index:20}
.sound-preferences button{font:inherit;cursor:pointer}
.sound-trigger{display:inline-flex;align-items:center;gap:8px;border:0;border-left:1px solid var(--line);border-radius:0;background:transparent;color:var(--ink);min-height:44px;padding:8px 0 8px 16px;font-size:12px!important;white-space:nowrap}
.sound-trigger svg{fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;overflow:visible}
.sound-state{color:var(--muted);font-size:10px}
.sound-waves{display:none}.sound-preferences[data-audible=true] .sound-waves{display:initial}.sound-preferences[data-audible=true] .sound-slash{display:none}
.sound-trigger[aria-expanded=true]{color:var(--accent)}
.sound-panel{position:absolute;right:0;top:calc(100% + 12px);width:350px;max-width:88vw;border:1px solid #b6c3b5;border-radius:4px;padding:24px;background:var(--paper);color:#24392e;box-shadow:0 16px 40px #050b0833;text-align:left}
.sound-panel[hidden]{display:none}
.sound-panel-heading{display:flex;align-items:flex-start;gap:12px;justify-content:space-between}
.sound-panel h2{font-size:19px;line-height:1.5;font-weight:500;letter-spacing:0;margin:0;max-width:240px}
.sound-close{flex-shrink:0;background:transparent;color:#435d4c;border:0;font-size:24px!important;width:44px;min-height:44px;padding:0;margin:-10px -12px 0 0}
.sound-panel p{font-size:12px;line-height:1.8;color:#536958;margin:12px 0 20px}
.sound-option{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #bcc7b6;padding-top:18px;font-size:13px;min-height:63px}
.sound-switch{position:relative;width:48px;min-width:48px;height:44px;padding:0;border:0;background:transparent}
.sound-switch:before{content:'';position:absolute;top:8px;left:0;width:48px;height:28px;background:#7a897b;border-radius:20px}
.sound-switch span{position:absolute;top:12px;left:4px;width:20px;height:20px;background:#fffdf5;border-radius:50%;transition:transform .15s}
.sound-switch[aria-checked=true]:before{background:#315d48}.sound-switch[aria-checked=true] span{transform:translateX(20px)}
.sound-volume-heading{display:flex;align-items:center;justify-content:space-between;font-size:12px;margin-top:15px}.sound-volume-heading output{font-variant-numeric:tabular-nums;color:#536958}
#sound-volume{display:block;width:100%;height:44px;accent-color:#315d48;cursor:pointer;margin:0 0 8px}#sound-volume:disabled{opacity:.45;cursor:default}
.sound-preview{display:block;width:100%;min-height:44px;background:transparent;color:#315d48;border:1px solid #819b87;border-radius:3px;font-size:12px!important;padding:10px 14px}
.sound-preview:disabled{opacity:.5;cursor:default}.sound-panel .sound-status{font-size:11px;margin:8px 0 0}.sound-status:empty{display:none}.sound-panel .sound-game-note{border-top:1px solid #bcc7b6;padding-top:16px;margin:18px 0 0;font-size:11px}
.sound-preferences button:focus-visible,.sound-preferences input:focus-visible{outline:2px solid #56806a;outline-offset:4px}.sound-trigger:focus-visible{outline-color:var(--accent)!important}
@media(max-width:1100px){body>header{gap:22px}body>header nav{gap:22px}.site-preferences .locale-label{display:none}.site-preferences{gap:12px}}
@media(max-width:900px){.site-preferences .locale-control{margin-left:0}body>header nav{order:3}}
@media(max-width:600px){.site-preferences{gap:10px}.site-preferences .locale-select{max-width:115px}.sound-trigger{padding-left:10px;gap:5px}.sound-trigger svg{width:16px}.sound-state{display:none}.sound-panel{width:340px;padding:22px;top:calc(100% + 10px)}}
@media(max-width:360px){body>header .wordmark{font-size:27px;gap:5px}.site-preferences{gap:7px}.site-preferences .locale-select{max-width:105px;padding-left:6px}.sound-trigger{padding-left:7px}}
@media(prefers-reduced-motion:reduce){.sound-switch span{transition:none}}
@media(max-width:380px){.site-preferences{width:100%;justify-content:space-between;margin-left:0}body>header .wordmark{font-size:31px}.site-preferences .locale-select{max-width:132px}.sound-state{display:inline}.sound-trigger{padding-left:12px;gap:8px}}
.sound-panel{max-height:calc(100dvh - 120px);overflow:auto;overscroll-behavior:contain}
.music-section{border-top:1px solid #bcc7b6;padding:16px 0 20px}.music-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.music-heading h3{font-size:14px;font-weight:500;margin:0}.music-toggle{min-height:44px;border:1px solid #66816c;background:#315d48;color:#fffdf5;border-radius:3px;padding:9px 12px;font-size:12px!important}.music-section>label{display:block;font-size:12px;margin-bottom:7px}#music-track{width:100%;font:inherit;font-size:12px;min-height:44px;padding:9px 12px;background:transparent;color:#24392e;border:1px solid #819b87;border-radius:3px}#music-track option{background:#ede8db}#music-volume{width:100%;height:44px;accent-color:#315d48;cursor:pointer}.music-section .music-status{margin:0 0 10px;font-size:11px}.music-details{font-size:11px;line-height:1.8;color:#536958}.music-details summary{cursor:pointer;min-height:44px}.music-details p{font-size:11px;margin:8px 0 0}#music-track:focus-visible{outline:2px solid #56806a;outline-offset:4px}
@media(max-width:600px){.sound-panel{max-height:calc(100dvh - 180px)}}
.nav-feedback{position:fixed;z-index:100;bottom:18px;left:50%;transform:translateX(-50%);width:min(620px,90vw);display:flex;align-items:center;flex-wrap:wrap;gap:12px;background:#ede8db;color:#24392e;border:1px solid #819b87;border-radius:4px;padding:16px;font-size:13px;box-shadow:0 8px 24px #0003}.nav-feedback[hidden]{display:none}.nav-feedback a{text-decoration:underline;text-underline-offset:3px}.nav-feedback button{min-height:44px;background:transparent;border:1px solid #819b87;color:inherit;border-radius:3px;padding:8px 12px;font:inherit}.nav-feedback a:focus-visible,.nav-feedback button:focus-visible{outline:2px solid #315d48;outline-offset:4px}
