/* JamLand Learn: tap tempo's own styles (/learn/guitar/tools/tap-tempo/).
   Linked from the tool panel, so only this page loads them; the parts
   (.tool, .btn, .readout) come from learn.css.

   The pad is the instrument: big, under the thumb, and it flashes gold on
   each tap (a change of color only, so nothing moves with Reduce Motion). */

#tap-tempo .tool-screen { gap: 6px; }
#tap-tempo .tool-status:empty { display: none; }

.tt-stats { display: grid; gap: 4px; width: min(100%, 340px); margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.tt-row { display: flex; align-items: center; gap: 12px; margin: 0; }
.tt-k { font: 400 18px/1.2 var(--pixel); color: var(--ink-3); }
.tt-v { margin-left: auto; font-size: 16px; color: var(--ink); font-variant-numeric: tabular-nums; }
.tt-bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; }
.tt-bar { width: 7px; height: calc(var(--h) * 3px + 3px); border-radius: 2px; background: rgba(196, 214, 240, 0.16); }
.tt-bar.on { background: var(--gold); }
.tt-bars[data-level="1"] .tt-bar.on, .tt-bars[data-level="2"] .tt-bar.on { background: var(--ember-text); }

.tt-pad {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  width: 100%; min-height: 168px; border: 0; border-radius: var(--radius); cursor: pointer;
  background: var(--raised-2); color: var(--ink); box-shadow: inset 0 0 0 2px var(--gold-dim);
  font: inherit; font-size: 15px;
  touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.tt-pad:hover { background: #26354d; }
.tt-pad.hit { background: var(--gold); color: var(--on-gold); transition: none; }
.tt-pad b { font: 400 54px/1 var(--pixel); }
.tt-pad span { opacity: 0.8; }
.tt-pad:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.tt-tweak .btn { flex: 1 1 0; min-width: 0; }
#tt-send { flex: 1 1 100%; }

@media (max-width: 640px) {
  #tap-tempo .tool-screen { min-height: 0; padding: 14px 12px 16px; }
  #tap-tempo .readout { font-size: 70px; }
  .tt-pad { min-height: 140px; }
}
@media (forced-colors: active) {
  .tt-pad { border: 2px solid ButtonText; }
  .tt-pad.hit { forced-color-adjust: none; background: Highlight; color: HighlightText; }
  .tt-bar { forced-color-adjust: none; background: GrayText; }
  .tt-bar.on { background: Highlight; }
}
@media print {
  .tt-pad, .tt-tweak { display: none; }
}
