/* Lesson player (cards, questions, feedback) and the lesson complete screen. */
/* lesson player */
.player{display:flex;flex-direction:column;min-height:100%}
.ptop{display:flex;align-items:center;gap:12px;padding-block:14px}
.x{width:40px;height:40px;border-radius:50%;border:0;background:transparent;display:grid;place-items:center;color:var(--muted)}
.x svg{width:22px;height:22px}
.prog{flex:1;height:12px;background:var(--line);border-radius:8px;overflow:hidden}
.prog span{display:block;height:100%;background:var(--accent);border-radius:8px;transition:width .3s}
.card{flex:1;display:flex;flex-direction:column;gap:18px;padding-block:12px 20px}
.kind{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.card .big{font-size:21px;line-height:1.45;font-weight:500}
.card .q{font-size:20px;line-height:1.4;font-weight:700;font-family:var(--body)}
.opts{display:flex;flex-direction:column;gap:10px}
.opt{text-align:left;background:var(--surface);border:2px solid var(--line);border-bottom-width:4px;border-radius:12px;padding:14px 16px;font-weight:600;font-size:16px}
.opt.sel{border-color:var(--accent);background:var(--accent-soft)}
.opt.right{border-color:var(--accent);background:var(--accent-soft)}
.opt.wrong{border-color:var(--bad);background:var(--bad-soft)}
.opt[disabled]{cursor:default}
.fb{border-radius:12px;padding:14px 16px;font-size:15px;display:flex;flex-direction:column;gap:4px}
.fb b{font-size:16px}
.fb.good{background:var(--accent-soft)} .fb.good b{color:var(--accent)}
.fb.bad{background:var(--bad-soft)} .fb.bad b{color:var(--bad)}
.fb.neutral{background:var(--surface);border:1px solid var(--line)}
.term{background:none;border:0;padding:0;font:inherit;color:inherit;border-bottom:2px dotted var(--accent);font-weight:600}
.foot{font-size:12px;color:var(--muted)}
.actions{position:sticky;bottom:0;background:var(--bg);padding-block:12px calc(16px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--line)}
.sort-row{display:flex;align-items:center;justify-content:space-between;gap:10px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:10px 10px 10px 14px}
.sort-row span{font-weight:600;font-size:15px;min-width:0}
.seg{display:flex;gap:6px;flex:none}
.seg button{border:2px solid var(--line);background:var(--bg);border-radius:9px;padding:6px 10px;font-size:13px;font-weight:700;color:var(--muted)}
.seg button.on{border-color:var(--accent);color:var(--accent);background:var(--accent-soft)}
.sort-row.right{border-color:var(--accent)}
.sort-row.wrong{border-color:var(--bad);background:var(--bad-soft)}
.sort-list{display:flex;flex-direction:column;gap:8px}
.guess{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:20px 18px;display:flex;flex-direction:column;gap:10px}
.guess .val{font-family:var(--display);font-size:42px;font-weight:700;color:var(--accent);line-height:1}
.guess input[type=range]{width:100%;accent-color:var(--accent);height:32px}
.guess .scale{display:flex;justify-content:space-between;font-size:13px;color:var(--muted)}
.reveal{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.reveal div{background:var(--bg);border-radius:10px;padding:10px 12px}
.reveal small{display:block;font-size:12px;color:var(--muted);font-weight:600}
.reveal strong{font-family:var(--display);font-size:24px}
.reveal .ans strong{color:var(--accent)}
.field{display:flex;flex-direction:column;gap:6px}
.field label{font-size:13px;font-weight:600;color:var(--muted)}
.field input{font:inherit;font-size:16px;padding:12px 14px;border:2px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);width:100%;min-width:0}
.field select{font:inherit;font-size:16px;padding:12px 10px;border:2px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);width:100%;min-width:0;min-height:50px}
.money{position:relative}
.money::before{content:"£";position:absolute;left:14px;top:50%;transform:translateY(-50%);color:var(--muted);font-weight:600}
.money input{padding-left:28px}
.goal{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:12px;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.goal .field:first-child{grid-column:1/-1}
.goal .tag{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;color:var(--muted)}
.goals{display:flex;flex-direction:column;gap:10px}
.targets{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.targets div{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:12px 14px}
.targets small{font-size:12px;color:var(--muted);font-weight:600;display:block}
.targets strong{font-family:var(--display);font-size:26px;color:var(--accent)}
.checks{display:flex;flex-direction:column;gap:10px}
.chk{display:flex;gap:12px;align-items:center;background:var(--surface);border:2px solid var(--line);border-radius:12px;padding:14px 16px;font-weight:600;cursor:pointer}
.chk input{width:22px;height:22px;accent-color:var(--accent);flex:none}
.chk:has(input:checked){border-color:var(--accent);background:var(--accent-soft)}
.olist{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:8px;font-size:19px;font-weight:500}
.helplinks{display:flex;flex-direction:column;gap:8px}
.helplinks a{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:12px 16px;font-weight:600;text-decoration:none}
.exgroups{display:flex;flex-direction:column;gap:10px}
.exg{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:12px 16px}
.exg small{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.exg ul{margin:6px 0 0;padding-left:20px;display:flex;flex-direction:column;gap:6px;font-weight:600}
.dots{display:grid;grid-template-columns:repeat(20,1fr);gap:4px;margin-block:6px}
.dots i{aspect-ratio:1;border-radius:50%;background:var(--accent)}
.dots i.l{background:var(--bad)}
.sl{display:flex;flex-direction:column;gap:2px}
.sl-top{display:flex;justify-content:space-between;align-items:baseline;font-size:14px}
.sl-top label{color:var(--muted);font-weight:600}
.sl input{width:100%;accent-color:var(--accent);height:30px}
.split{height:14px;border-radius:8px;background:var(--gold);overflow:hidden;margin-top:4px}
.split span{display:block;height:100%;background:var(--accent)}
.legend{display:flex;justify-content:space-between;gap:10px;font-size:13px;color:var(--muted);flex-wrap:wrap}
.legend i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:6px;vertical-align:middle}
.legend .k1{background:var(--accent)} .legend .k2{background:var(--gold)}
.ordlist{margin:0;padding-left:24px;display:flex;flex-direction:column;gap:8px;font-weight:600;min-height:8px}
.ordlist li{padding:10px 12px;border-radius:10px;background:var(--accent-soft)}
.ordlist li.wrong{background:var(--bad-soft)}
.takeaway{background:var(--accent-soft);border-radius:var(--r);padding:22px 20px;font-family:var(--display);font-size:24px;font-weight:600;line-height:1.3}

/* complete */
.done-wrap{display:flex;flex-direction:column;gap:20px;padding-block:40px 24px;text-align:center;align-items:center}
.badge{width:96px;height:96px;border-radius:50%;background:var(--gold-soft);display:grid;place-items:center;color:var(--gold)}
.badge svg{width:48px;height:48px}
.done-wrap h1{font-size:32px}
.tiles{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:100%}
.tiles div{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:2px}
.tiles small{font-size:12px;color:var(--muted);font-weight:700;text-transform:uppercase;letter-spacing:.06em}
.tiles strong{font-family:var(--display);font-size:28px}
.tiles .xp strong{color:var(--gold)}
.tiles .st strong{color:var(--accent)}
.kt{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:14px 16px;text-align:left;width:100%}
.kt small{font-size:12px;color:var(--muted);font-weight:700;text-transform:uppercase;letter-spacing:.06em}
.save{background:var(--gold-soft);border-radius:12px;padding:16px;text-align:left;width:100%;display:flex;flex-direction:column;gap:10px}
.btn-row{display:flex;flex-direction:column;gap:10px;width:100%}
.review{text-align:left;width:100%;display:flex;flex-direction:column;gap:6px;font-size:15px}

/* "Here's your path" card at the end of the getting-to-know-you questions */
.pathlines p{margin:0 0 14px;font-size:18px;line-height:1.45}

/* Drawings above some explain cards */
.pic{display:flex;justify-content:center;color:var(--muted);margin:0 0 14px}
.pic svg{max-width:100%;height:auto}
.pic .pa{stroke:var(--accent)}
/* "Show me the maths" / "Tell me more" under feedback */
.fb details.more{margin-top:8px;font-size:14px}
.fb details.more summary{cursor:pointer;font-weight:700;color:var(--accent);list-style:none}
.fb details.more summary::-webkit-details-marker{display:none}
.fb details.more summary::after{content:" ▾"}
.fb details.more[open] summary::after{content:" ▴"}
.fb details.more p{margin:6px 0 0}
/* A small cheer on a right answer */
.fb.win{animation:fbwin .35s ease-out}
.fb .pop{display:inline-grid;place-items:center;width:22px;height:22px;margin-left:8px;border-radius:50%;background:var(--accent);color:#fff;font-size:13px;vertical-align:2px;animation:pop .45s cubic-bezier(.3,1.6,.5,1)}
@keyframes fbwin{from{transform:translateY(6px);opacity:.4}to{transform:none;opacity:1}}
@keyframes pop{0%{transform:scale(0)}100%{transform:scale(1)}}
@media (prefers-reduced-motion: reduce){.fb.win,.fb .pop{animation:none}}
/* New word cards, "You can now..." and the words a lesson added to My words */
.wordcard h2{font-family:var(--display,inherit);font-size:34px;line-height:1.1;margin:4px 0 12px;color:var(--accent)}
.wordcard .like{margin:14px 0 0;padding:12px 14px;border-radius:12px;background:var(--accent-soft);font-size:16px;line-height:1.4}
.cannow{display:flex;gap:10px;align-items:flex-start;text-align:left;width:100%;background:var(--accent-soft);border-radius:12px;padding:12px 14px}
.cannow span{flex:none;width:22px;height:22px;color:var(--accent)}
.cannow span svg{width:22px;height:22px}
.cannow p{margin:0;font-weight:600;line-height:1.4}
.newwords{text-align:left;width:100%}
.newwords small{display:block;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin-bottom:8px}
.newwords div{display:flex;flex-wrap:wrap;gap:8px}
.term.chip{border:1px solid var(--line);border-radius:999px;padding:6px 12px;background:var(--surface);font-size:14px}
.mywords{margin-bottom:16px}
.mywords p{margin:0}
/* Lesson complete: today's goal, the plant when it's done, and Home next to the next lesson */
.goaldone{width:100%;text-align:center;background:var(--accent-soft);border-radius:16px;padding:16px 16px 18px}
.goaldone h2{font-size:22px;margin:4px 0 6px}
.goaldone p{margin:0;color:var(--muted)}
.gd-plant{width:120px;height:120px;margin:0 auto 4px}
.gd-plant svg{width:100%;height:100%;transform-origin:50% 90%}
.goaldone .gd-plant svg{animation:gd-water .9s ease-out both}
.goaldone.grew .gd-plant svg{animation:gd-grow 1.1s cubic-bezier(.3,1.5,.5,1) both}
@keyframes gd-water{0%{transform:rotate(-4deg)}40%{transform:rotate(4deg)}70%{transform:rotate(-2deg)}100%{transform:none}}
@keyframes gd-grow{0%{transform:scale(.55);opacity:.4}100%{transform:none;opacity:1}}
.tiles .xp{position:relative}
.xp-plus{position:absolute;top:8px;right:10px;font-style:normal;font-weight:700;font-size:14px;color:var(--gold);animation:xp-pop 1s ease-out both}
@keyframes xp-pop{0%{opacity:0;transform:translateY(8px)}40%{opacity:1;transform:none}100%{opacity:1}}
.todaybar{width:100%;text-align:left;display:flex;flex-direction:column;gap:6px}
.todaybar small{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.todaybar .hbar i{transition:width 1s ease-out .3s}
.todaybar .muted{font-size:14px}
.upnext{width:100%;text-align:left;margin:4px 0 -2px;font-weight:600}
.upnext small{display:block;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.btn-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:100%}
@media (prefers-reduced-motion:reduce){.goaldone .gd-plant svg,.xp-plus{animation:none}.todaybar .hbar i{transition:none}}
.pic.sm svg{width:96px;height:60px}
.wordcard .pic.sm{justify-content:flex-start;margin-bottom:4px}
