/* Music Mastery Kids - styles for the student tools page (tools.html, served at /tools). */

/* Tool cards: one column on phones, two on tablets, three on wide screens (never more, so the cards stay roomy). */
.grid.kt-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))}
@media(min-width:1000px){.grid.kt-grid{grid-template-columns:repeat(3,1fr)}}

.kt-card{display:flex;flex-direction:column;gap:10px}
.kt-card h3{margin:0}
.kt-card p{margin:0;color:var(--text-soft)}
/* The button fills the card's width and wraps onto two lines when the card is narrow, so it can never spill outside the card. */
.kt-card .btn{align-self:stretch;margin-top:auto;white-space:normal;text-align:center;padding:12px 16px;line-height:1.25}

/* The picture at the top of each card: the tool's own animation, or the piano drawing for Play Along Piano. */
.kt-stage{aspect-ratio:16/10;border-radius:var(--radius-m);overflow:hidden;border:1px solid var(--line);margin-bottom:8px;
  background:radial-gradient(320px 220px at 50% 30%,rgba(226,58,85,.2),transparent 70%),linear-gradient(180deg,var(--charcoal-3),var(--charcoal))}
.kt-stage svg{display:block;width:100%;height:100%}

/* "Coming soon" row under the cards. */
.kt-soon{margin-top:44px;text-align:center}
.kt-soon .chips{justify-content:center;margin-top:14px}

/* Falling notes in the piano drawing. */
.kt-bar{animation:kt-fall 3.2s linear infinite}
.kt-bar.b2{animation-delay:1.05s}
.kt-bar.b3{animation-delay:2.1s}
@keyframes kt-fall{0%{transform:translateY(-30px);opacity:0}15%{opacity:1}80%{opacity:1}100%{transform:translateY(34px);opacity:0}}
@media (prefers-reduced-motion:reduce){.kt-bar{animation:none}}
