/* The score: shared signature components (docs/UI.md). The strip is drawn by js/lib/score.js. */
.scorewrap { position: relative; padding-bottom: 20px; }
.scorewrap .ticks { position: absolute; left: 0; right: 0; bottom: 0; height: 16px; }
.scorewrap .ticks span { position: absolute; transform: translateX(-2px); font: 600 .66rem/1 var(--font-mono); color: var(--muted); }
.scorewrap .ticks span:last-child { transform: translateX(-100%); }
.scorewrap .playhead { position: absolute; top: 0; bottom: 18px; width: 0; pointer-events: none; }
.scorewrap .playhead::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--brand); }
.scorewrap .playhead i { position: absolute; left: -6px; bottom: -4px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
.score { display: block; width: 100%; height: auto; color: var(--ink); overflow: visible; touch-action: pan-y; }
.score .ruler { stroke: var(--line-strong); stroke-width: 1.5; }
.score .tick { stroke: var(--line-strong); stroke-width: 1; }
.score .tick.major { stroke: var(--muted); }
.score .note { fill: var(--tempo); }
.score .rest { fill: var(--rest-soft); stroke: var(--rest); stroke-width: 1.2; stroke-dasharray: 4 4; }
.score .rest.long { stroke-width: 2; stroke-dasharray: none; fill: color-mix(in srgb, var(--rest) 22%, var(--rest-soft)); }
.score .flagpole { stroke: var(--flag-ink); stroke-width: 1.6; }
.score .flagcloth { fill: var(--flag); }
.score .flagcloth.confirmed { fill: var(--flag-ink); }
.score .target { stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 2 3; }
.score .band { fill: var(--tempo-soft); } .score .needle { fill: var(--brand); } .score .scale { stroke: var(--line-strong); stroke-width: 2; stroke-linecap: round; }
.score.gauge { max-width: 380px; margin-inline: auto; } .score.gauge text { font: 600 9px var(--font-mono); fill: var(--muted); }
.scorewrap.seekable { cursor: pointer; }
.score-mini { height: 46px; }
.score .mini-bar { fill: var(--tempo); } .score .mini-track { fill: var(--bg-2); }
.score-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 0; padding: 0; list-style: none; font: 600 .72rem/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.score-legend li { display: inline-flex; align-items: center; gap: 6px; }
.score-legend i { display: inline-block; width: 14px; height: 10px; border-radius: 2px; background: var(--tempo); }
.score-legend i.rest { background: var(--rest-soft); border: 1.5px dashed var(--rest); } .score-legend i.flag { width: 0; height: 0; border-radius: 0; background: none; border-left: 10px solid var(--flag); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
/* metrics: a big condensed numeral over a mono label, like a counter on a tape deck */
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r-sheet); background: var(--surface); overflow: hidden; }
.metric { padding: 16px 18px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; display: grid; gap: 2px; align-content: start; }
.metric dt { font: 700 .68rem/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.metric dd { margin: 0; font: 800 2.5rem/1 var(--font-display); font-variant-numeric: tabular-nums; } .metric dd small { font: 600 .8rem var(--font-mono); color: var(--muted); letter-spacing: 0; }
.metric .sub { font-size: .82rem; color: var(--muted); }
.timecode { font: 600 .8rem/1 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--muted); }
.tempo-word { font: 800 clamp(1.8rem, 3.6vw, 2.6rem)/1 var(--font-read); font-style: italic; color: var(--tempo-ink); }
.lamp { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
@media (prefers-reduced-motion: no-preference) { .lamp.live { animation: lamp 1.2s ease-in-out infinite; } @keyframes lamp { 50% { opacity: .35; } } }
