/* content-lesson styles. Every class starts with lesson- so nothing collides. */
.lesson-root { display: flex; flex-direction: column; min-height: calc(min(832px, 100vh - 32px) - 64px); margin-bottom: -20px; }
.lesson-main { flex: 1; padding-top: 8px; }
.lesson-footer { position: sticky; bottom: 0; display: flex; gap: 10px; margin: 0 -20px; padding: 12px 20px 20px; background: linear-gradient(to top, var(--page) 78%, rgba(255, 255, 255, 0)); }
.lesson-footer .btn { flex: 1; height: 56px; font-size: 18px; border-radius: 14px; }
.lesson-footer .btn.ghost { flex: 0 0 34%; }
.lesson-footer .btn:disabled { background: var(--line); color: #98a1b3; cursor: default; }

.lesson-chip { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 13px; font-weight: 700; }
.lesson-hero { height: 190px; margin-top: 14px; border-radius: 20px; overflow: hidden; background: var(--surface); }
.lesson-hero svg { display: block; width: 100%; height: 100%; }
.lesson-title { margin: 18px 0 8px; font-size: 24px; line-height: 1.35; font-weight: 800; letter-spacing: -0.03em; }
.lesson-summary { margin: 0; font-size: 17px; line-height: 1.7; color: #3b4660; word-break: keep-all; overflow-wrap: break-word; }
.lesson-title, .lesson-result { word-break: keep-all; overflow-wrap: break-word; }
.lesson-facts { margin: 14px 0 0; font-size: 14px; color: var(--ink-sub); }
.center { text-align: center; }
.lesson-badge { display: grid; place-items: center; width: 104px; height: 104px; margin: 36px auto 8px; border-radius: 50%; background: var(--primary-soft); }

.lesson-progress { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.lesson-dots { display: flex; gap: 6px; flex-wrap: wrap; }
.lesson-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.lesson-dot.seen { background: #a9c0ea; }
.lesson-dot.on { width: 26px; border-radius: 6px; background: var(--primary); }
.lesson-count { font-size: 14px; color: var(--ink-sub); white-space: nowrap; }
.lesson-kicker { margin: 22px 0 0; font-size: 14px; font-weight: 700; color: var(--primary); }
.lesson-text { margin-top: 12px; }
.lesson-text p { margin: 0 0 14px; font-size: 18px; line-height: 1.7; letter-spacing: -0.01em; word-break: keep-all; overflow-wrap: break-word; }

.lesson-qno { margin: 10px 0 0; font-size: 14px; font-weight: 700; color: var(--primary); }
.lesson-question { margin: 10px 0 0; font-size: 20px; line-height: 1.55; font-weight: 700; word-break: keep-all; overflow-wrap: break-word; }
.lesson-choices { display: flex; gap: 12px; margin-top: 22px; }
.lesson-choice { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 148px; border: 2px solid var(--line); border-radius: 20px; background: var(--surface); font: inherit; font-size: 16px; font-weight: 700; color: var(--ink); cursor: pointer; }
.lesson-choice:disabled { cursor: default; opacity: .55; }
.lesson-choice.right { opacity: 1; border-color: #1f9d63; background: #e8f6ee; }
.lesson-choice.wrong { opacity: 1; border-color: #d9483b; background: #fdecea; }
.lesson-hint { margin: 16px 0 0; font-size: 15px; color: var(--ink-sub); text-align: center; }
.lesson-feedback { margin-top: 18px; padding: 14px 16px; border-radius: 16px; }
.lesson-feedback.good { background: #e8f6ee; }
.lesson-feedback.bad { background: #fdecea; }
.lesson-verdict { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.lesson-feedback.good .lesson-verdict { color: #17714a; }
.lesson-feedback.bad .lesson-verdict { color: #a8362b; }
.lesson-verdict-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; }
.lesson-feedback.good .lesson-verdict-icon { background: #1f9d63; }
.lesson-feedback.bad .lesson-verdict-icon { background: #d9483b; }
.lesson-feedback p { margin: 8px 0 0; font-size: 17px; line-height: 1.65; word-break: keep-all; overflow-wrap: break-word; }

.lesson-result { margin: 18px 0 14px; font-size: 24px; line-height: 1.4; font-weight: 800; }
.lesson-pips { display: flex; justify-content: center; gap: 12px; margin-bottom: 18px; }
.lesson-pip { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line); }
.lesson-pip.on { background: var(--primary); border-color: var(--primary); }
