/* FSG practice tools: shared metronome. Goes with /tools/metronome.js on every tool page; uses the colours and .btn
   from /tools/shell.css. Change it here and it changes on every page. */
.fsg-metro{display:grid;gap:14px;min-width:0}

/* one block per beat; the beat being heard is lit; beat 1 is stronger */
.fsg-metro-beats{display:flex;gap:8px}
.fsg-metro-beat{flex:1 1 0;min-width:0;max-width:160px;height:54px;border-radius:14px;border:1.5px solid var(--border);background:var(--pale);color:var(--ink-soft);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-weight:900;line-height:1;font-variant-numeric:tabular-nums}
.fsg-metro-beat.first{border:2.5px solid var(--coral);color:var(--coral)}
.fsg-metro-beat.on{background:var(--sun);border-color:var(--sun);color:var(--ink)}
.fsg-metro-beat.first.on{background:var(--coral);border-color:var(--coral);color:#fff;box-shadow:0 6px 18px rgba(251,86,7,.35)}
.fsg-metro-pips{display:flex;gap:4px}
.fsg-metro-pips:empty{display:none}
.fsg-metro-pips i{width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.25}
.fsg-metro-pips i.on{opacity:1}

/* time signature, clicks per beat, click sound */
.fsg-metro-controls{display:flex;gap:10px 22px;flex-wrap:wrap;align-items:center}
.fsg-metro-field{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.fsg-metro-label{font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;color:var(--ink-soft);font-weight:800}
.fsg-metro-seg{display:inline-flex;border:1.5px solid var(--border);border-radius:100px;padding:3px;gap:2px;background:var(--card)}
.fsg-metro-seg button{border:0;background:transparent;border-radius:100px;padding:5px 12px;min-width:36px;min-height:30px;font-weight:800;font-size:.82rem;color:var(--ink-soft);cursor:pointer;font-variant-numeric:tabular-nums}
.fsg-metro-seg button[aria-pressed="true"]{background:var(--ink);color:#fff}
.fsg-metro-hint{font-size:.82rem;font-weight:700;color:var(--ink-soft);min-width:96px}

/* speed */
.fsg-metro-speed{display:grid;grid-template-columns:auto minmax(120px,1fr);gap:8px 14px;align-items:center}
.fsg-metro-bpm{font-family:var(--serif);font-weight:900;font-size:1.6rem;font-variant-numeric:tabular-nums;display:flex;align-items:center;gap:6px;min-width:118px}
.fsg-metro-icon{display:inline-flex}
.fsg-metro-bpm svg{width:22px;height:30px}
.fsg-metro input[type=range]{width:100%;accent-color:var(--coral);height:28px}

/* its own Start/Stop, when a tool does not drive it */
.btn.fsg-metro-go{justify-self:start;background:var(--coral);border-color:var(--coral);color:#fff;min-width:118px;border-radius:100px}
.btn.fsg-metro-go:hover{background:var(--coral);box-shadow:0 6px 20px rgba(251,86,7,.4)}

@media(max-width:640px){.fsg-metro-beat{height:48px}.fsg-metro-seg button{min-height:34px}.fsg-metro-hint{min-width:0}}
