.visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.sounds { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,150px),1fr)); gap:12px; list-style:none; padding:0; margin:0 0 20px; }
.tile { display:grid; gap:6px; padding:10px; border:1px solid var(--line); background:var(--card); border-radius:18px; }
.tile.playing { border-color:var(--accent); box-shadow:0 0 0 2px var(--accent); }
.tile .play { min-height:96px; padding:10px; border-radius:12px; font-size:1.05rem; background:hsl(var(--hue) 35% 30%); }
.tile .loop { min-height:44px; font-size:.8rem; }
.tile .loop[aria-pressed=true] { background:var(--accent); color:#fff; border-color:var(--accent); }
/* Fixed bar; --dock-h (set by app.js) pads main so the last tiles and footer scroll clear of it. */
main { padding-bottom:calc(var(--dock-h, 180px) + 32px + env(safe-area-inset-bottom)); }
.dock { position:fixed; left:50%; transform:translateX(-50%); width:min(calc(100% - 24px),736px); bottom:calc(12px + env(safe-area-inset-bottom)); z-index:2; display:grid; gap:8px; padding:12px 16px; box-shadow:0 6px 24px #0003; }
.volume { display:flex; align-items:center; gap:12px; font-weight:650; }
.volume input { flex:1; min-width:0; min-height:44px; accent-color:var(--accent); }
.volume output { min-width:3.5ch; text-align:right; font-variant-numeric:tabular-nums; }
.actions { display:flex; flex-wrap:wrap; gap:10px; }
.actions button { flex:1 1 130px; min-height:48px; }
.actions .stop { background:#a3382c; }
.actions .running { background:var(--accent); color:#fff; border-color:var(--accent); }
.small-key { font-weight:400; opacity:.8; }
#status { margin:0; min-height:1.5em; }
