/* Learning pages (/treble-clef-notes, /bass-clef-notes). These load /app.css and /games/games.css first, so the
   page layout, staff drawings and the quiz keyboard come from there. This file only adds what is new. */

/* the answer, right under the heading */
.lp-facts{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:6px 0 4px}
.lp-fact{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:16px 18px;display:flex;flex-direction:column;gap:10px}
.lp-fact h3{margin:0;font-size:1rem;color:var(--muted)}
.lp-fact p{margin:0}
.lp-fact p + p{margin-top:-6px} /* the "or" line sits with the sentence above it */
.lp-fact .lp-or{color:var(--muted);font-size:.85rem}
/* the lines or spaces on a small staff, with big letter names under the notes */
.lp-staff svg{display:block;height:104px;width:auto;max-width:100%;margin:0 auto} /* same height in both boxes, so the staffs line up */
.lp-staff .cl{font-size:22px}
/* line notes blue, space notes yellow, in the boxes and the full chart */
.staff .lp-line{fill:var(--accent)}
.staff .lp-space{fill:var(--gold)}
.lp-chart .mct{fill:var(--muted)}
@media (max-width:560px){.lp-facts{grid-template-columns:1fr}}

/* the full chart scrolls sideways on narrow phones instead of shrinking the notes too small to read */
.lp-chart{overflow-x:auto}
.lp-chart svg{min-width:460px;max-width:640px !important}

/* the quiz */
.lp-quiz{max-width:480px;margin:22px auto 6px}
.lp-quiz .staffwrap svg{max-width:360px}
.lp-keyhint{text-align:center;margin:10px 0 0 !important}
.lp-done{text-align:center;padding:10px 0 4px}
.lp-score{font:800 1.8rem "Bricolage Grotesque",sans-serif;margin:6px 0 10px !important}
.lp-done .row{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:16px}

/* a short call to action in its own box */
.lp-cta{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:22px;margin-top:18px}
.lp-cta p:last-child{margin-bottom:0}
