/* 100x MOBILE pass (tag 11033302): the phone is a first-class instrument, not a shrunken desktop.
   Focus: thumb-sized keys, breathing room, readable type, focused hero, tidy transport. */

/* ---- keyboard: the star on mobile — taller keys, chunkier labels, thumb-friendly ---- */
@media (max-width:640px){
  .keyboard-wrap{padding:10px;border-radius:14px}
  .keyboard{height:210px;min-width:900px}          /* taller keys + wider scroll = real playing surface */
  .key{font-size:13px;padding-bottom:12px}
  .key .kc{font-size:12px;opacity:.85}
  .key:active{filter:brightness(.92)}
}

/* ---- rhythm: every block gets consistent air on small screens ---- */
@media (max-width:640px){
  .mode{gap:14px}
  .clock{padding:12px 14px;gap:8px 14px}
  .kb-controls{padding:12px 14px;gap:10px}
  .transport{gap:10px}
  .hero{padding:26px 18px 30px}
}

/* ---- readability: minimum 13px body text on mobile, stronger contrast ---- */
@media (max-width:640px){
  .hint,.clock-v{font-size:13px}
  .inst-list button{font-size:14px;padding:19px 12px}
  .cur-name{font-size:19px}
  .eyebrow{font-size:11.5px;letter-spacing:.18em}
}

/* ---- hero: one message, one action — the second CTA and sub2 step aside on phones ---- */
@media (max-width:640px){
  .hero-sub2{display:none}
  .hero-cta .btn-ghost{display:none}
  .hero-cta .btn-primary{min-height:54px;font-size:16px}
}

/* ---- transport: BPM input and Click/Tap get thumb height ---- */
@media (max-width:640px){
  .bpm input{min-height:44px;min-width:74px;font-size:15px}
  .transport .btn-sm{min-height:44px}
}

/* ---- drawer sheet: taller list, rounded grab feel ---- */
@media (max-width:640px){
  .sound-mode .inst-panel .inst-list{max-height:52vh}
  .sound-mode .inst-panel{border-radius:18px 18px 0 0}
  .inst-drawer-toggle{min-height:44px}
}

/* ---- delight: beat LED pulses bigger on mobile so the groove is visible at a glance ---- */
@media (max-width:640px){
  .beat-led{width:14px;height:14px}
}
