/* Free Play (modes/freeplay.js) and the live scrolling staff (NS.FreeCore.createLiveStaff, also used by
   the Play by Ear Practise step). Uses the tokens defined in index.html. WP8 owns this file. */

.fp-card { display: flex; flex-direction: column; gap: 2px; }
.fp-staff { display: block; width: 100%; height: auto; overflow: hidden; }
.fp-staff .fp-track { transition: transform 180ms ease-out; }
.fp-staff .fp-track.fp-instant { transition: none; }
.fp-staff .fp-note { -webkit-tap-highlight-color: transparent; }
.fp-staff .fp-label.fp-reveal { animation: fp-fade-in 400ms ease-out both; }
@keyframes fp-fade-in { from { opacity: 0; } to { opacity: 1; } }

.fp-status {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 22px; padding: 0 12px 4px; text-align: center;
  font-size: 0.85rem; color: var(--muted);
}
.fp-beat {
  flex: none; width: 10px; height: 10px; border-radius: 50%;
  background: var(--line); transition: background 80ms linear;
}
.fp-beat.on { background: var(--accent); }

.fp-feedback { position: relative; }
.fp-feedback .big { overflow-wrap: anywhere; }
.fp-feedback .muted { overflow-wrap: anywhere; }
.fp-undo { align-self: flex-start; margin-top: 8px; }

.fp-song {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 12px 16px; border-radius: 14px;
  background: var(--card); border: 1.5px solid var(--good);
}
.fp-song-text { flex: 1 1 180px; min-width: 0; font-weight: 700; overflow-wrap: anywhere; }

.fp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fp-chip { white-space: nowrap; }
.fp-found { font-size: 0.95rem; }
.fp-kb-note { font-size: 0.85rem; margin-top: 8px; }

/* Keys lit during Play back */
.fp .keyboard .white.playing { background: var(--key-playing); box-shadow: inset 0 -6px 0 var(--listen); }
.fp .keyboard .black.playing { background: var(--listen); }

@media (prefers-reduced-motion: reduce) {
  .fp-staff .fp-track { transition: none; }
  .fp-staff .fp-label.fp-reveal { animation: none; }
  .fp-beat { transition: none; }
}
