/* Lesson progress line, daily streak flame and calendar, celebration. */
/* lesson progress under the title */
.lesson-progress { font-size: 13px; color: var(--muted); margin-top: 4px; display: flex; gap: 12px; flex-wrap: wrap; }
.lesson-progress .ok { color: var(--good); font-weight: 600; }
.lesson-progress .done-all { color: var(--good); font-weight: 700; }
.lesson-list .chk { color: var(--good); font-weight: 700; font-size: 12px; }

/* daily streak */
.top-actions { display: flex; gap: 8px; align-items: center; }
.streak-btn { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: 5px 12px 5px 9px; cursor: pointer; font-weight: 700; font-variant-numeric: tabular-nums; position: relative; }
.streak-btn .flame { font-size: 17px; filter: grayscale(1); opacity: .55; transition: filter .3s, opacity .3s; }
.streak-btn.lit .flame { filter: none; opacity: 1; }
.streak-btn.lit { border-color: #f0a24a; color: #c4620f; }
.today-bar { display: inline-block; width: 34px; height: 5px; background: var(--line); border-radius: 3px; overflow: hidden; margin-left: 4px; }
.today-bar span { display: block; height: 100%; width: 0; background: #f08a24; border-radius: 3px; transition: width .4s; }
.today-bar.wide { width: 100%; height: 8px; margin: 6px 0 0; }
.streak-hero { display: flex; gap: 14px; align-items: center; margin: 10px 0 6px; }
.big-flame { font-size: 46px; line-height: 1; }
.big-flame.off { filter: grayscale(1); opacity: .5; }
.streak-count { font-size: 18px; } .streak-count b { font-size: 34px; }
.today-line { margin: 10px 0; font-size: 14px; }
.streak-stats { display: flex; gap: 18px; font-size: 14px; color: var(--muted); } .streak-stats b { color: var(--ink); }
h3.sub3 { font-size: 14px; margin: 16px 0 8px; }
.streak-cal { display: grid; grid-template-rows: repeat(7, 14px); grid-auto-flow: column; grid-auto-columns: 14px; gap: 3px; }
.streak-cal i { border-radius: 3px; background: var(--line); }
.streak-cal i.c1 { background: #f6cf9f; } .streak-cal i.c2 { background: #f08a24; } .streak-cal i.today { outline: 2px solid var(--ink); outline-offset: 1px; }
.streak-cal i.future { background: transparent; }
.cal-legend { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); margin-top: 8px; }
.cal-legend span { width: 11px; height: 11px; border-radius: 3px; display: inline-block; background: var(--line); margin-left: 6px; }
.cal-legend .c1 { background: #f6cf9f; } .cal-legend .c2 { background: #f08a24; }
.goal-pick { display: flex !important; align-items: center; gap: 10px; }
.goal-pick select { width: auto !important; display: inline-block !important; margin: 0 !important; }

/* celebration */
.spark-layer { position: fixed; inset: 0; pointer-events: none; z-index: 50; }
.spark { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #f08a24;
  animation: spark 900ms ease-out forwards; }
@keyframes spark { from { transform: translate(0, 0) scale(1); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }
.toast { position: fixed; left: 50%; top: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 18px;
  border-radius: 999px; font-weight: 600; z-index: 51; animation: toast 3.2s ease forwards; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, -10px); } 10%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }
.streak-btn.pop { animation: pop .6s ease; }
@keyframes pop { 40% { transform: scale(1.25); } }
@media (max-width: 760px) { .today-bar { display: none; } .streak-btn .today-bar.wide { display: block; } }
