/* Encouragement on the lesson-complete screen (js/cheer.js).
   Kept in its own file so it stays out of the way of style.css changes;
   only tokens from style.css are used, so light and dark both follow. */

.modal:has(.cheer) { max-height: calc(100dvh - 32px); overflow-y: auto; }

.cheer { margin-top: 18px; text-align: left; display: grid; gap: 12px; }

.cheer-progress { display: grid; gap: 6px; }
.cheer-progress-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .9rem; }
.cheer-progress-row b { font-weight: 700; }
.cheer-progress-row .muted { font-size: .82rem; }
.cheer-bar { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.cheer-bar span { display: block; height: 100%; min-width: 8px; border-radius: inherit; background: linear-gradient(90deg, var(--s-green), var(--go)); transition: width .6s ease-out; }

.cheer-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .9rem; }
.cheer-facts li { display: flex; align-items: flex-start; gap: 8px; }
.cheer-facts svg.i { width: 16px; height: 16px; margin-top: 2px; color: var(--s-green); }

.cheer-story { margin: 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.cheer-story figcaption { display: flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.cheer-story figcaption svg.i { width: 15px; height: 15px; color: var(--s-yellow); }
.cheer-story.cheer-oops figcaption svg.i { color: var(--s-blue); }
.cheer-story p { margin: 0 0 8px; font-size: .9rem; line-height: 1.6; }
.cheer-source { display: block; font-size: .75rem; line-height: 1.45; color: var(--faint); text-decoration: none; }
.cheer-source:hover { color: var(--muted); text-decoration: underline; }
.cheer-source svg.i { width: 12px; height: 12px; margin-left: 4px; vertical-align: -1px; }

@media (prefers-reduced-motion: reduce) { .cheer-bar span { transition: none; } }
