/* Lessons: the path (lessons/), the lesson page (lessons/lesson.php) and the leaderboard (lessons/board.php) */

/* ---------- The path ---------- */
/* your streak and the leaderboard */
.lsStats{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
.lsStat{display:inline-flex;align-items:center;padding:6px 12px;border:1px solid var(--line);border-radius:999px;background:var(--card);
  color:var(--fg);font-size:14px;text-decoration:none;white-space:nowrap}
.lsStat b{margin-right:4px;font-variant-numeric:tabular-nums}
.lsBoard{margin-left:auto}
.lsBoard:hover{border-color:var(--acc)}
.lsNote{font-size:14px;color:var(--mut);margin:0 0 12px}
.lsProblem{font-size:14px;margin:0 0 12px;padding:10px 12px;border:1px solid var(--bad);border-radius:10px;color:var(--fg)}
.lsNote a,.sub a{color:var(--acc)}

/* stage tabs: scroll sideways on a phone */
.lsStages{display:flex;gap:6px;overflow-x:auto;padding:2px 0 8px;margin:0 0 4px;scrollbar-width:none}
.lsStages::-webkit-scrollbar{display:none}
.lsStages button{flex:0 0 auto;padding:6px 12px;border-radius:999px;border:1px solid var(--line);background:var(--card);color:var(--fg);
  font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.lsStages button[aria-selected="true"]{background:var(--acc);border-color:var(--acc);color:#fff}
.lsStages button.soon{color:var(--mut);cursor:default;font-weight:400}
.lsStages button.soon[aria-selected="true"]{color:#fff;font-weight:600}

.lsStage{padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:var(--card);margin:0 0 18px}
.lsStageT{font-size:19px;font-weight:700}
.lsStage p{margin:2px 0 10px;color:var(--mut)}
.lsStage small{color:var(--mut);font-size:13px}
.lsProg{height:8px;border-radius:999px;background:var(--line);overflow:hidden;margin-bottom:4px}
.lsProg i{display:block;height:100%;background:var(--acc);border-radius:inherit}

/* a unit: its heading, then its lessons as a winding column of picks */
.lsUnit{margin:0 0 26px}
.lsUnitH{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding:0 2px 6px;border-bottom:1px solid var(--line)}
.lsUnitH b{display:block;font-size:17px}
/* units fold: the title bar is the handle, with a small pick-shaped arrow at its right */
.lsUnitH[data-fold]{cursor:pointer;-webkit-tap-highlight-color:transparent}
.lsUnitT{flex:1 1 auto;min-width:0}
.lsUnitR{flex:0 0 auto;display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.lsCount{color:var(--mut);font-size:12px;font-variant-numeric:tabular-nums}
.lsFold{flex:0 0 auto;width:30px;height:33px;padding:0;margin-top:1px;border:0;background:none;cursor:pointer}
.lsFold svg{display:block;width:100%;height:100%}
.lsFold .pk{fill:var(--acc)}
.lsFold .chev{fill:none;stroke:#fff;stroke-width:6;stroke-linecap:round;stroke-linejoin:round;transform-box:fill-box;transform-origin:center;transition:transform .2s ease}
.lsUnit:not(.shut) .lsFold .chev{transform:rotate(180deg)}
.lsUnit.shut .lsFold .pk{fill:var(--line)}
.lsUnit.shut .lsFold .chev{stroke:var(--fg)}
.lsFold:focus-visible{outline:2px solid var(--fg);outline-offset:2px;border-radius:8px}
.lsUnit.shut{margin-bottom:10px}
.lsUnitB[hidden]{display:none}
.lsStageF{display:flex;justify-content:space-between;align-items:center;gap:10px}
.lsAll{border:0;background:none;padding:2px 0;color:var(--acc);font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.lsAll:hover{text-decoration:underline}
@media (prefers-reduced-motion:reduce){.lsFold .chev{transition:none}}
.lsUnitH span{display:block;color:var(--mut);font-size:14px}
.lsTrack{flex:0 0 auto;font-style:normal;font-size:12px;font-weight:600;padding:2px 9px;border-radius:999px;border:1.5px solid var(--mut);color:var(--fg)}
.lsTrack.t-chords{border-color:var(--f1)}.lsTrack.t-lead{border-color:var(--acc)}.lsTrack.t-rhythm{border-color:var(--f2)}
.lsTrack.t-theory{border-color:var(--f4)}.lsTrack.t-ear{border-color:var(--f3)}
.lsSoon{color:var(--mut);text-align:center;padding:12px 0 0;margin:0;font-size:14px}
.lsTestOut{display:flex;align-items:center;gap:10px;margin:10px 0 0;padding:9px 12px;border:1px dashed var(--line);border-radius:12px;color:var(--fg);text-decoration:none}
.lsTestOut:hover,.lsTestOut:focus-visible{border-color:var(--acc);border-style:solid;outline:none}
.lsTestOut b{display:block;font-size:15px}
.lsTestOut small{display:block;color:var(--mut);font-size:13px}
.lsTestIc{flex:0 0 auto;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:color-mix(in srgb,var(--acc) 16%,transparent);color:var(--acc)}
.lsTestIc svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.lsNodes{list-style:none;margin:0;padding:16px 0 0;display:flex;flex-direction:column;align-items:center;gap:10px}
.lsNodes li{transform:translateX(var(--x,0))}
.lsNode{position:relative;display:flex;flex-direction:column;align-items:center;width:150px;color:var(--fg);text-decoration:none}
.lsDot{position:relative;display:block;width:64px;height:70px}
.lsPick{position:absolute;inset:0;width:100%;height:100%}
.lsPick path{fill:var(--line);stroke:none}
.lsIc{position:absolute;left:0;right:0;top:12px;display:flex;justify-content:center;color:var(--mut)}
.lsIc svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.lsNum{font-size:20px;font-weight:800;line-height:26px;font-variant-numeric:tabular-nums}
.lsNode.done .lsPick path,.lsNode.cur .lsPick path{fill:var(--acc)}
.lsNode.done .lsIc,.lsNode.cur .lsIc{color:#fff}
/* tested out: done, but lighter and with no stars until it's played */
.lsNode.tested .lsPick path{fill:color-mix(in srgb,var(--acc) 45%,var(--line))}
.lsSkip{font-size:11px;color:var(--mut);line-height:16px}
.lsNode.chk .lsDot{width:74px;height:81px}
.lsNode.chk .lsIc{top:15px}
.lsNode.paid .lsDot::after{content:"";position:absolute;right:-2px;top:0;width:14px;height:14px;border-radius:50%;background:var(--f4);box-shadow:0 0 0 2px var(--bg)}
a.lsNode:hover .lsPick path{filter:brightness(1.08)}
a.lsNode:focus-visible{outline:none}
a.lsNode:focus-visible .lsPick path{stroke:var(--fg);stroke-width:3}
/* the lesson up next: a soft ring that breathes, and a Start bubble */
.lsNode.cur .lsPick{filter:drop-shadow(0 0 0 color-mix(in srgb,var(--acc) 60%,transparent));animation:lsGlow 1.8s ease-in-out infinite}
@keyframes lsGlow{50%{filter:drop-shadow(0 0 9px color-mix(in srgb,var(--acc) 70%,transparent))}}
.lsNode.cur{margin-top:14px}
.lsGo{position:absolute;top:-14px;left:50%;transform:translateX(-50%);padding:2px 10px;border-radius:8px;background:var(--fg);color:var(--bg);
  font-size:12px;font-weight:700;white-space:nowrap}
.lsGo + .lsStars{display:none}
.lsStars{display:flex;gap:1px;height:16px;margin-top:2px}
.lsStars i svg{width:15px;height:15px;fill:var(--line)}
.lsStars i.on svg{fill:#f5b301}
.lsT{font-size:13px;line-height:1.25;text-align:center;color:var(--mut);max-width:150px}
.lsNode.cur .lsT{color:var(--fg);font-weight:600}
.lsNode.lock .lsT{opacity:.7}
/* a test account: lessons not passed yet are open (outlined in the accent colour, not greyed out) */
.lsNode.open .lsPick path{fill:var(--card);stroke:var(--acc);stroke-width:2.5}
.lsNode.open .lsIc{color:var(--acc)}
.lsOpenAll{margin:10px 0;padding:9px 12px;border:1px dashed var(--acc);border-radius:10px;color:var(--acc);font-size:14px;font-weight:600}
.lsOpenAll.off{border-color:var(--line);color:var(--mut)}
@media (prefers-reduced-motion:reduce){.lsNode.cur .lsPick{animation:none;filter:drop-shadow(0 0 6px color-mix(in srgb,var(--acc) 60%,transparent))}}

/* ---------- The lesson page ---------- */
.lrTop{display:flex;align-items:center;gap:12px;margin:6px 0 14px}
.lrX{flex:0 0 auto;display:flex;color:var(--mut)}
.lrX svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.lrX:hover{color:var(--fg)}
.lrBar{flex:1;height:12px;border-radius:999px;background:var(--line);overflow:hidden}
.lrBar i{display:block;height:100%;width:0;background:var(--acc);border-radius:inherit;transition:width .35s ease}
.lrHead{margin:0 0 10px}
.lrHead small{color:var(--mut);font-size:13px}
.lrTitle{font-family:'Permanent Marker',system-ui,-apple-system,Segoe UI,sans-serif;font-weight:400;color:var(--acc);font-size:24px;line-height:1.2;margin:0}
.lrBody{min-height:max(300px,calc(100svh - 330px))}   /* keeps the bottom bar near the bottom */
.lrCard,.lrAsk{padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--card)}
.lrCard h2,.lrAsk h2{font-size:20px;margin:0 0 10px;line-height:1.3}
.lrCard p{margin:10px 0 0;font-size:17px;line-height:1.55}
.lrAsk small,.lrKick{display:block;color:var(--mut);font-size:13px;margin-bottom:2px}
.lrPic{margin:4px 0}
.pic{display:block;width:100%;max-width:420px;height:auto;margin:0 auto}
.pic text{font:12px system-ui,-apple-system,Segoe UI,sans-serif;fill:var(--fg)}
.pic .ld{stroke:var(--mut);stroke-width:1.2;fill:none}
.pic .ld.dash{stroke-dasharray:4 4}
.pBody{fill:var(--mut);opacity:.35}
.pHole{fill:var(--bg);stroke:var(--mut);stroke-width:1}
.pNeck,.pHead{fill:var(--mut);opacity:.6}
.pPeg,.pDark{fill:var(--fg)}
.pFret{stroke:var(--fg);stroke-width:1;opacity:.55}
.pStr{stroke:var(--fg);stroke-width:.6;opacity:.75}
.pStr.low{stroke:var(--acc);stroke-width:1.6;opacity:1}
.pStrB{stroke:var(--fg)}
.pic .pBig{font-size:17px;font-weight:800}
.pic .pMut{fill:var(--mut);font-size:11px}
.pic .pAcc{fill:var(--acc);font-weight:800}
.pFing{fill:none;stroke:color-mix(in srgb,var(--mut) 45%,var(--card));stroke-width:26;stroke-linecap:round}
.pThumb{fill:none;stroke:color-mix(in srgb,var(--mut) 85%,var(--card));stroke-width:22;stroke-linecap:round}
.pPick{fill:var(--acc)}
/* hands (session 11): skin tones that read in both themes, a brown outline, creases and nails.
   A finger is a thick line drawn twice, outline (pSkO) then skin (pSk, pSkD for fingers further back); a hand
   outline is a filled path (pSkF). */
.pSkO{fill:none;stroke:#8a5a3c;stroke-linecap:round;stroke-linejoin:round}
.pSk,.pSkD{fill:none;stroke-linecap:round;stroke-linejoin:round}
.pSk{stroke:#efc29c}.pSkD{stroke:#dca67f}
.pSkF{fill:#efc29c;stroke:#8a5a3c;stroke-width:1.5;stroke-linejoin:round}
.pSkFD{fill:#dca67f;stroke:#8a5a3c;stroke-width:1.5;stroke-linejoin:round}
.pSkFill{fill:#efc29c}
.pSkU{fill:#efc29c;stroke:#8a5a3c;stroke-width:3;stroke-linejoin:round}
.pCr{fill:none;stroke:#b7835f;stroke-width:1.6;stroke-linecap:round}
.pNail{fill:#f7ddc8;stroke:#b7835f;stroke-width:1.4}
.pPickO{stroke:#8f3510;stroke-width:1.5;stroke-linejoin:round}
.pStrL{stroke:var(--mut);stroke-width:1.2}
.pArc{fill:none;stroke:var(--acc);stroke-width:4;stroke-linecap:round}
.pArcH{fill:none;stroke:var(--acc);stroke-width:4;stroke-linecap:round;stroke-linejoin:round}
.pOk{stroke:var(--ok);stroke-width:2.4}
.pNeedle{stroke:var(--ok);stroke-width:3;stroke-linecap:round}
.pDot{fill:var(--fg)}
.pHand{fill:color-mix(in srgb,var(--mut) 40%,var(--card))}
.pBoard{fill:color-mix(in srgb,var(--mut) 30%,var(--card))}
.pWire{stroke:var(--fg);stroke-width:2.5;opacity:.6}
.pTip{fill:var(--acc)}
.pTip.ok{fill:var(--ok)}
.pTip.off{fill:var(--mut)}
.pTip.bad{fill:var(--bad)}
.pic .pTipT{fill:#fff;font-size:12px;font-weight:800}
.pic .pBadT{fill:var(--bad);font-weight:700;font-size:13px}
.pic .pOkT{fill:var(--ok);font-weight:700;font-size:13px}
.pic.chord{max-width:300px}
.pic .pHalf{stroke:var(--acc);stroke-width:1.6}

.pic.photo{border-radius:12px}   /* a finished picture (img/lessons/), shown as is */

/* answers */
.lrOpts{display:grid;gap:10px;margin:14px 0 0}
.lrOpt{display:flex;align-items:center;gap:12px;width:100%;padding:14px;border:1.5px solid var(--line);border-bottom-width:3px;border-radius:14px;
  background:var(--card);color:var(--fg);font:inherit;font-size:17px;text-align:left;cursor:pointer}
.lrOpt:hover{border-color:var(--mut)}
.lrOpt:focus-visible{outline:2px solid var(--f1);outline-offset:2px}
.lrKey{flex:0 0 auto;display:flex;align-items:center;justify-content:center;width:26px;height:26px;border:1.5px solid var(--line);border-radius:8px;
  font-size:13px;font-weight:700;color:var(--mut)}
.lrOpt[aria-checked="true"]{border-color:var(--f1);background:color-mix(in srgb,var(--f1) 10%,var(--card))}
.lrOpt[aria-checked="true"] .lrKey{border-color:var(--f1);color:var(--f1)}
.lrOpt.right{border-color:var(--ok);background:color-mix(in srgb,var(--ok) 14%,var(--card))}
.lrOpt.wrong{border-color:var(--bad);background:color-mix(in srgb,var(--bad) 12%,var(--card))}
.lrOpt.right .lrKey{border-color:var(--ok);color:var(--ok)}
.lrOpt.wrong .lrKey{border-color:var(--bad);color:var(--bad)}
.lrPlay{display:inline-flex;align-items:center;gap:8px;margin:4px 0 0;padding:12px 18px;border:0;border-radius:14px;background:var(--f1);color:#fff;
  font:inherit;font-weight:700;cursor:pointer}
.lrPlay svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* play along: the lane, the running count, and the mic settings */
.lrLane{margin:8px -4px 0;border-radius:10px;background:var(--bg);border:1px solid var(--line)}
.lrLane canvas{display:block;width:100%;height:170px}
.lrStat{display:flex;justify-content:space-between;align-items:baseline;gap:10px;min-height:24px;margin-top:6px}
.lrHeard{margin:4px 0 0;min-height:1.3em;color:var(--mut);font-size:12px;font-variant-numeric:tabular-nums}
.lrJudge{font-weight:700;font-size:15px;color:var(--mut)}
.lrStat b{font-variant-numeric:tabular-nums;white-space:nowrap}
.lrLink{border:0;background:none;padding:10px 4px;color:var(--mut);font:inherit;font-size:14px;text-decoration:underline;cursor:pointer}
.lrLink:hover{color:var(--fg)}
.lrSet{margin-top:10px;font-size:14px}
.lrSet summary{cursor:pointer;color:var(--mut)}
.lrSet label{display:flex;align-items:center;gap:10px;margin-top:8px}
.lrSet input[type=range]{flex:1;accent-color:var(--acc)}
.lrSet label span{min-width:54px;text-align:right;font-variant-numeric:tabular-nums}
.lrSet .lrChk input{accent-color:var(--acc)}
.lrSet p{margin:8px 0 0!important;font-size:13px!important;color:var(--mut)}
.lrBtn:disabled{opacity:.45;cursor:default}
.lrLane canvas.strum{height:120px}
.lrLane canvas.improv{height:110px}
/* chord changes: the chord now and next, and small diagrams of each chord */
.lrNow{display:flex;justify-content:space-between;gap:10px;margin:4px 2px 0;font-size:14px;color:var(--mut)}
.lrNow b{font-size:22px;color:var(--fg);margin-left:6px}
.lrNow span+span b{color:var(--mut)}
.lrMini{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:10px}
.lrMini figure{margin:0;width:min(140px,30%);text-align:center}
.lrMini svg{width:100%;height:auto}
.lrMini figcaption{font-weight:700;font-size:14px}
/* strumming: the pattern as arrows over the count */
.lrPat{display:flex;justify-content:center;gap:4px;flex-wrap:wrap;margin:6px 0 2px}
.lrPat span{display:flex;flex-direction:column;align-items:center;min-width:30px;padding:4px 2px;border-radius:8px;background:var(--bg);border:1px solid var(--line)}
.lrPat b{font-size:20px;line-height:1.1;color:var(--acc)}
.lrPat small{font-size:12px;color:var(--mut)}
.lrPat small{min-height:14px}
.lrPat.long{flex-wrap:nowrap;gap:2px}
.lrPat.long span{min-width:0;flex:1 1 0;padding:4px 0}
.lrPat.long b{font-size:15px}
.lrPat.long small{font-size:10px}
.lrPat.haspm span::before{content:"\00a0";font-size:9px;line-height:1;font-weight:700;letter-spacing:.04em;color:var(--mut)}
.lrPat.haspm span.pm::before{content:"PM"}
.lrPat span.pm{border-style:dashed}
.lrPat.long.haspm span::before{font-size:7px}
/* a chord shape: one dot per clean strum */
.lrDots{display:flex;justify-content:center;gap:10px;margin:6px 0 2px}
.lrDots i{width:18px;height:18px;border-radius:50%;border:2px solid var(--line)}
.lrDots i.on{background:var(--ok);border-color:var(--ok)}
/* a scale box: the frets of the box, roots filled */
.lrBox{display:block;width:100%;max-width:360px;height:auto;margin:6px auto 0}
.lrBox .tabL{stroke:var(--mut);stroke-width:1;opacity:.6}
.lrBox .tabS{font:600 10px system-ui,sans-serif;fill:var(--mut)}
.lrBox .bxN{fill:var(--card);stroke:var(--acc);stroke-width:2}
.lrBox .bxR{fill:var(--acc)}
.lrBox .bxT{font:700 10px system-ui,sans-serif;fill:var(--fg)}
.lrBox .bxT.r{fill:#fff}
/* the band's chords over a lead part (Stage 5): one box per bar, four to a line, the bar that's playing lit */
.lrBars{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;max-width:360px;margin:8px auto 2px}
.lrBars span{padding:3px 0;border-radius:6px;border:1px solid var(--line);background:var(--bg);color:var(--mut);font-weight:700;font-size:14px;text-align:center}
.lrBars span.on{background:var(--acc);border-color:var(--acc);color:#fff}
.lrGo.stop{background:var(--fg);color:var(--bg);box-shadow:0 3px 0 var(--mut)}
.lrSoon{color:var(--mut);font-size:14px!important}
.lrRow{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.lrBtn{display:inline-flex;align-items:center;justify-content:center;padding:10px 18px;border-radius:12px;border:0;background:var(--acc);color:#fff;
  font:inherit;font-weight:700;text-decoration:none;cursor:pointer}
.lrBtn.alt{background:var(--f1)}

/* the bottom bar: sits just above the dock */
.lrFoot{position:sticky;bottom:calc(var(--dock) + env(safe-area-inset-bottom,0px));display:flex;align-items:center;gap:12px;margin:16px -16px 0;
  padding:12px 16px;background:var(--bg);border-top:1px solid var(--line)}
.lrFoot.ok{background:color-mix(in srgb,var(--ok) 16%,var(--bg));border-top-color:var(--ok)}
.lrFoot.bad{background:color-mix(in srgb,var(--bad) 14%,var(--bg));border-top-color:var(--bad)}
.lrFb{flex:1;min-width:0;font-size:15px;line-height:1.35}
.lrFoot.ok .lrFb b{color:var(--ok)}
.lrFoot.bad .lrFb b{color:var(--bad)}
.lrGo{flex:0 0 auto;min-width:140px;padding:13px 20px;border:0;border-radius:14px;background:var(--acc);color:#fff;font:inherit;font-weight:800;font-size:16px;cursor:pointer;
  box-shadow:0 3px 0 color-mix(in srgb,var(--acc) 60%,#000)}
.lrGo:active{transform:translateY(2px);box-shadow:0 1px 0 color-mix(in srgb,var(--acc) 60%,#000)}
.lrGo:disabled{background:var(--line);color:var(--mut);box-shadow:none;cursor:default}
.lrFoot.ok .lrGo{background:var(--ok);box-shadow:0 3px 0 color-mix(in srgb,var(--ok) 60%,#000)}
.lrFoot.bad .lrGo{background:var(--bad);box-shadow:0 3px 0 color-mix(in srgb,var(--bad) 60%,#000)}
.lrFoot[hidden]{display:none}
@media (max-width:430px){.lrGo{min-width:116px}}

/* the end of a lesson */
.lrEnd{text-align:center;padding:10px 0}
.lrEnd h2{font-size:24px;margin:6px 0 2px}
.lrStars{display:flex;justify-content:center;gap:6px}
.lrStars i svg{width:56px;height:56px;fill:var(--line)}
.lrStars i.on svg{fill:#f5b301}
.lrStars i.on{animation:lrPop .5s cubic-bezier(.3,1.6,.5,1) both}
@keyframes lrPop{from{transform:scale(.2);opacity:0}}
@media (prefers-reduced-motion:reduce){.lrStars i.on{animation:none}}
.lrXp{font-size:34px;font-weight:800;color:var(--acc);margin:8px 0}
.lrAwards{list-style:none;padding:0;margin:0 auto 12px;max-width:320px;text-align:left}
.lrAwards li{display:flex;justify-content:space-between;padding:6px 0;border-bottom:1px solid var(--line);font-size:15px}
.lrMe{display:flex;justify-content:center;flex-wrap:wrap;gap:14px;margin:6px 0 8px;font-size:15px}
.lrMut{color:var(--mut);font-size:14px}
.lrTip{margin:8px 0 0!important;font-size:13px!important}
.lrMut a,.lrBlock a.lrBtn{color:var(--acc)}
.lrBlock a.lrBtn{color:#fff}
.lrBack{display:inline-block;margin-top:8px;color:var(--mut);font-size:14px}
/* Try again: plays the lesson from the start; the new score replaces this one */
.lrAgain{display:inline-block;margin:10px 0 0;padding:9px 20px;border:1.5px solid var(--acc);border-radius:999px;background:none;color:var(--acc);font:inherit;font-weight:700;cursor:pointer}
.lrAgain:hover{background:color-mix(in srgb,var(--acc) 10%,transparent)}
.lrAgainN{margin:6px 0 0;font-size:13px}
.lrAgainN + .lrBack{display:block}
.lrBlock{padding:30px 16px;text-align:center}
.lrBlock p{font-size:17px;margin:0 0 14px}
/* a test out: its intro card and the flag on the intro and the miss screen */
.lrTestIntro ul{margin:10px 0 0;padding-left:20px;font-size:16px;line-height:1.5}
.lrTestIntro li{margin:4px 0}
.lrTestIc{display:grid;place-items:center;width:56px;height:56px;margin:0 auto 6px;border-radius:50%;background:color-mix(in srgb,var(--acc) 16%,transparent);color:var(--acc)}
.lrTestIntro .lrTestIc{margin:0 0 8px}
.lrTestIc.miss{background:color-mix(in srgb,var(--bad) 14%,transparent);color:var(--bad)}
.lrTestIc svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* ---------- The leaderboard ---------- */
.lbList{list-style:none;padding:0;margin:0 0 14px;border:1px solid var(--line);border-radius:14px;background:var(--card);overflow:hidden}
.lbList li{display:flex;align-items:center;gap:12px;padding:10px 14px;border-top:1px solid var(--line)}
.lbList li:first-child{border-top:0}
.lbList li.me{background:color-mix(in srgb,var(--acc) 12%,var(--card))}
.lbRank{flex:0 0 28px;text-align:center;font-weight:800;color:var(--mut);font-variant-numeric:tabular-nums}
.lbList li.top1 .lbRank{color:#f5b301}.lbList li.top2 .lbRank{color:#a8b0b8}.lbList li.top3 .lbRank{color:#c9824a}
.lbName{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--fg);font-weight:600;text-decoration:none}
a.lbName:hover{color:var(--acc)}
.lbXp{flex:0 0 auto;font-variant-numeric:tabular-nums;color:var(--mut)}
/* after a lesson (board.php?from=…): your place, how you moved, your five, and what next */
.lbUnit{margin:0 0 12px;padding:12px 14px;border-radius:14px;text-align:center;font-size:20px;font-weight:800;color:#fff;
  background:linear-gradient(135deg,var(--acc),#f5b301);animation:lbPop .5s ease-out both}
.lbRankBig{display:flex;align-items:baseline;justify-content:center;gap:10px;margin:4px 0 2px}
.lbRankBig b{font-size:48px;font-weight:800;line-height:1;color:var(--acc);animation:lbPop .45s ease-out both}
.lbRankBig span{color:var(--mut)}
.lbMove{text-align:center;margin:0 0 12px;color:var(--mut);font-weight:600}
.lbMove.up{color:var(--ok);font-size:18px}
.lbWin li.me{animation:lbPop .45s .15s ease-out both}
.lbLesson{display:flex;align-items:center;gap:14px;margin:4px 0 12px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;
  background:var(--card);color:var(--fg);text-decoration:none}
.lbLesson:hover{border-color:var(--acc)}
.lbLesDot{position:relative;flex:0 0 44px;height:48px}
.lbLesDot svg{display:block;width:100%;height:100%;fill:var(--acc)}
.lbLesDot b{position:absolute;inset:0 0 6px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:16px;font-weight:800}
.lbLesT{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.lbLesT small{color:var(--acc);font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.lbLesT b{font-size:17px}
.lbLesT span{color:var(--mut);font-size:13px}
.lbNext{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin:6px 0 10px}
.lbNext .lrBtn{flex:1 1 180px;text-decoration:none}
.lbAll{text-align:center}
@keyframes lbPop{0%{transform:scale(.85);opacity:0}70%{transform:scale(1.04);opacity:1}100%{transform:scale(1)}}
@media (prefers-reduced-motion:reduce){.lbUnit,.lbRankBig b,.lbWin li.me{animation:none}}

/* A unit's progress: a small green bar under its 3/10 count */
.uBar{display:block;width:44px;height:4px;border-radius:999px;background:var(--line);overflow:hidden}
.uBar i{display:block;height:100%;background:var(--ok);border-radius:inherit}
/* Skip unit (a test out): blue, so it stands out from the orange path */
.lsTestOut{--sk:var(--f1);border:1.5px solid var(--sk);background:color-mix(in srgb,var(--sk) 10%,var(--card))}
.lsTestOut:hover,.lsTestOut:focus-visible{border-style:solid;border-color:var(--sk);background:color-mix(in srgb,var(--sk) 18%,var(--card))}
.lsTestOut b{color:var(--sk)}
.lsTestOut>span:nth-of-type(2){flex:1}
.lsTestOut .lsTestIc{background:var(--sk);color:#fff}
.lsTestGo{flex:0 0 auto;color:var(--sk);font-size:26px;line-height:1}
.lrTestIntro .lrTestIc{background:color-mix(in srgb,var(--f1) 16%,transparent);color:var(--f1)}

/* A site tip on the end screen (scripts/lesson-run.js, tipCard): a card pointing to the tuner, metronome, Chords … */
.lrTip{display:flex;gap:12px;text-align:left;margin:16px 0 4px;padding:14px;border:1.5px solid var(--f1);border-radius:14px;
  background:color-mix(in srgb,var(--f1) 9%,var(--card))}
.lrTipIc{flex:0 0 auto;display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--f1);color:#fff}
.lrTipIc svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.lrTipB{flex:1;min-width:0}
.lrTipB small{display:block;font-size:11px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;color:var(--f1)}
.lrTipB b{display:block;font-size:16px;margin:1px 0 2px}
.lrTipB p{margin:0 0 10px;font-size:14px;line-height:1.45;color:var(--fg)}
.lrTipGo{display:inline-block;padding:7px 14px;border-radius:999px;background:var(--f1);color:#fff;font-weight:600;font-size:14px;text-decoration:none}
.lrTipGo:hover,.lrTipGo:focus-visible{filter:brightness(1.1)}

/* Today's workout card (lessons/index.php, scripts/daily-card.js) */
.dwCard{margin:0 0 16px;padding:16px;border:1.5px solid color-mix(in srgb,var(--acc) 55%,var(--line));border-radius:16px;
  background:linear-gradient(160deg,color-mix(in srgb,var(--acc) 12%,var(--card)),var(--card) 60%)}
.dwCard.done{border-color:color-mix(in srgb,var(--ok) 60%,var(--line));background:var(--card)}
.dwTop{display:flex;align-items:center;gap:12px}
.dwIc{flex:0 0 auto;display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--acc);color:#fff}
.dwCard.done .dwIc{background:var(--ok)}
.dwIc svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.dwHead small{display:block;font-size:11px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;color:var(--acc)}
.dwCard.done .dwHead small{color:var(--ok)}
.dwHead h3{margin:3px 0 0;font-family:"Bebas Neue",Impact,"Arial Narrow",sans-serif;font-weight:400;font-size:34px;line-height:.95;letter-spacing:.02em}
.dwDone{margin:10px 0 0;font-size:14px;color:var(--fg)}
.dwDone b{color:var(--ok)}
.dwParts{list-style:none;margin:12px 0;padding:0;display:flex;flex-wrap:wrap;gap:6px;counter-reset:dw}
.dwParts li{counter-increment:dw;padding:4px 10px;border:1px solid var(--line);border-radius:999px;font-size:13px;background:var(--bg)}
.dwParts li::before{content:counter(dw) " ";color:var(--acc);font-weight:700}
.dwPick{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 12px}
.dwSeg{display:inline-flex;padding:3px;border-radius:999px;background:var(--line);gap:2px}
.dwSeg button{font:inherit;font-size:13px;font-weight:600;padding:6px 11px;border:0;border-radius:999px;background:transparent;color:var(--fg);cursor:pointer}
.dwSeg button[aria-checked="true"]{background:var(--acc);color:#fff}
.dwSeg button:focus-visible{outline:2px solid var(--f1);outline-offset:1px}
.dwStyle select{font:inherit;font-size:13px;padding:6px 10px;border:1px solid var(--line);border-radius:999px;background:var(--card);color:var(--fg)}
.dwGo{display:block;text-align:center;padding:12px;border-radius:12px;background:var(--acc);color:#fff;font-weight:700;font-size:16px;text-decoration:none}
.dwCard.done .dwGo{background:transparent;color:var(--fg);border:1px solid var(--line)}
.dwGo:hover,.dwGo:focus-visible{filter:brightness(1.08)}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.lrLadder{margin:12px 0 4px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;font-size:14px;line-height:1.45;text-align:left}

/* Learn Guitar hub (lessons/index.php, scripts/learn-hub.js): The Course and the genres, each a section that opens and closes */
.lgSec{margin:22px 0 8px;font-size:13px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--mut)}
.crs{margin:0 0 10px;border:1px solid var(--line);border-radius:16px;background:var(--card);overflow:hidden;scroll-margin-top:10px}
.crs.open{border-color:color-mix(in srgb,var(--acc) 50%,var(--line))}
.crsTog{display:flex;align-items:center;gap:12px;width:100%;padding:14px 14px 8px;border:0;background:none;color:var(--fg);font:inherit;text-align:left;cursor:pointer}
.crsTog:focus-visible{outline:2px solid var(--acc);outline-offset:-2px;border-radius:16px}
.crsIc{flex:0 0 auto;display:grid;place-items:center;width:40px;height:40px;border-radius:11px;background:color-mix(in srgb,var(--acc) 16%,transparent);
  color:var(--acc);font-weight:800;font-size:19px}
.crsIc svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.crsT{flex:1;min-width:0;display:flex;flex-direction:column}
.crsT b{font-size:17px}
.crsT small{color:var(--mut);font-size:13px}
.crsChev{flex:0 0 auto;width:22px;height:22px;fill:none;stroke:var(--mut);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s}
.crs.open .crsChev{transform:rotate(180deg)}
.crsMeta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;padding:0 14px 14px 66px}
.crsProg{flex:1 1 120px;height:5px;border-radius:999px;background:var(--line);overflow:hidden}
.crsProg i{display:block;height:100%;background:var(--ok);border-radius:inherit}
.crsCount{color:var(--mut);font-size:12px;white-space:nowrap}
.crsGo{flex:1 0 100%;display:block;text-align:center;padding:9px 12px;border-radius:10px;background:var(--acc);color:#fff;font-weight:700;font-size:14px;text-decoration:none}
.crs:not(.started) .crsGo{background:transparent;color:var(--acc);border:1px solid var(--acc)}
.crsGo:hover,.crsGo:focus-visible{filter:brightness(1.08)}
.crsBody{padding:4px 14px 16px;border-top:1px solid var(--line)}
.crsBlurb{color:var(--mut);font-size:14px;margin:10px 0 4px}
@media (prefers-reduced-motion:reduce){.crsChev{transition:none}}
/* a genre you haven't started is one compact row (no empty bar or Start button) until you open it */
.crs.genre:not(.started):not(.open) .crsMeta{display:none}
.crs.genre:not(.started):not(.open) .crsTog{padding-bottom:14px}
/* Learn Guitar's heading: the section heading from tools.css, with the ? button at its top right, clear of the title */
.lgHead{position:relative;padding-right:42px}
.lgHead .infoBtn{position:absolute;top:0;right:0}
/* The hub's section headings (Today, The course, Genres): the first sits closer to the streak row */
.lsNote+.lgSec,.lsStats+.lgSec{margin-top:6px}
/* Zero to Solo, the course: a feature card, as big as The Daily Ten, with its name in the poster type */
.crs.main{border:1.5px solid color-mix(in srgb,var(--acc) 55%,var(--line));background:linear-gradient(160deg,color-mix(in srgb,var(--acc) 14%,var(--card)),var(--card) 62%)}
.crs.main .crsTog{padding:16px 16px 10px}
.crs.main .crsIc{width:44px;height:44px;border-radius:12px;background:var(--acc);color:#fff}
.crs.main .crsIc svg{width:26px;height:26px}
.crs.main .crsT b{font-family:"Bebas Neue",Impact,"Arial Narrow",sans-serif;font-weight:400;font-size:34px;line-height:.95;letter-spacing:.02em}
.crs.main .crsT small{margin-top:5px;font-size:14px;line-height:1.4}
.crs.main .crsT small strong{color:var(--fg)}
.crs.main .crsMeta{padding:2px 16px 16px}
.crs.main .crsProg{height:7px}
.crs.main .crsGo{padding:12px;font-size:15px}
.crs.main:not(.started) .crsGo{background:var(--acc);color:#fff;border:0}

/* ---------- Your journey (session 18: inc/journey.php, scripts/journey.js) ---------- */
/* Locked hub: one row like a genre's, with a lock, that opens the questions */
.crs.lockRow{border:1.5px dashed color-mix(in srgb,var(--acc) 60%,var(--line));background:var(--card)}
.crs.lockRow .crsTog{padding:14px}
.crs.lockRow .crsIc{background:color-mix(in srgb,var(--acc) 18%,transparent)}
.crs.lockRow .crsT b{color:var(--acc)}
.crsChev.side{transform:none}
/* Your journey: a feature card like The Daily Ten's and Zero to Solo's */
.jrCard{margin:0 0 16px;padding:16px;border:1.5px solid color-mix(in srgb,var(--f1,#3b82f6) 55%,var(--line));border-radius:16px;
  background:linear-gradient(160deg,color-mix(in srgb,var(--f1,#3b82f6) 14%,var(--card)),var(--card) 62%)}
.jrTop{display:flex;align-items:center;gap:12px}
.jrIc{flex:0 0 auto;display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--f1,#3b82f6);color:#fff}
.jrIc svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.jrHead small{display:block;font-size:11px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;color:var(--f1,#3b82f6)}
.jrHead h3{margin:3px 0 0;font-family:"Bebas Neue",Impact,"Arial Narrow",sans-serif;font-weight:400;font-size:34px;line-height:.95;letter-spacing:.02em}
.jrLine{margin:12px 0 0;color:var(--mut);font-size:14px;line-height:1.45}
.jrLine b{color:var(--fg);font-weight:600}
.jrChips{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 0}
.jrChip{padding:5px 11px;border:1px solid var(--line);border-radius:999px;font-size:13px;font-weight:600;color:var(--fg);text-decoration:none;background:var(--bg)}
.jrChip:hover,.jrChip:focus-visible{border-color:var(--acc);color:var(--acc)}
.jrMeta{display:flex;align-items:center;gap:10px;margin:14px 0 0}
.jrMeta .crsProg{height:7px}
.jrMeta small{color:var(--mut);font-size:12px;white-space:nowrap}
.jrGo{display:block;width:100%;box-sizing:border-box;margin:12px 0 0;padding:12px;border:0;border-radius:10px;background:var(--acc);color:#fff;
  font:inherit;font-weight:700;font-size:15px;text-align:center;text-decoration:none;cursor:pointer;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.jrGo span{font-weight:400;opacity:.9}
.jrGo:hover,.jrGo:focus-visible{filter:brightness(1.08)}
.jrGo:disabled{opacity:.6;cursor:default}
.jrRe{display:block;margin:10px auto 0;padding:4px 8px;border:0;background:none;color:var(--mut);font:inherit;font-size:13px;text-decoration:underline;cursor:pointer}
.jrCard.find{border-style:dashed}

/* The questions: a .rrModal (css/base.css), one question per screen */
dialog.jrDlg{max-width:480px}
.jrBar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:-4px -6px 14px}
.jrSp{width:34px}
.jrDots{display:flex;gap:6px}
.jrDots i{width:22px;height:5px;border-radius:999px;background:var(--line)}
.jrDots i.on{background:color-mix(in srgb,var(--acc) 55%,var(--line))}
.jrDots i.now{background:var(--acc)}
.jrKick{margin:0 0 6px;font-size:11px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;color:var(--acc)}
.jrQ{margin:0 0 14px;font-size:22px;line-height:1.2}
.jrHint{margin:-8px 0 12px;color:var(--mut);font-size:14px}
.jrOpts{display:flex;flex-direction:column;gap:8px}
.jrOpts.multi{display:grid;grid-template-columns:1fr 1fr}
.jrOpt{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;min-height:54px;justify-content:center;padding:12px 14px;
  border:1.5px solid var(--line);border-radius:12px;background:var(--card);color:var(--fg);font:inherit;text-align:left;cursor:pointer}
.jrOpt b{font-size:16px;font-weight:600}
.jrOpt small{color:var(--mut);font-size:13px}
.jrOpt:hover{border-color:color-mix(in srgb,var(--acc) 60%,var(--line))}
.jrOpt.on{border-color:var(--acc);background:color-mix(in srgb,var(--acc) 16%,var(--card))}
.jrOpt:focus-visible{outline:2px solid var(--acc);outline-offset:2px}
.jrFoot,.jrBtns{display:flex;flex-direction:column;align-items:stretch;gap:4px;margin:14px 0 0}
.jrNext{padding:12px;border:0;border-radius:10px;background:var(--acc);color:#fff;font:inherit;font-weight:700;font-size:15px;cursor:pointer}
.jrSkip{align-self:center;padding:8px 14px;border:0;background:none;color:var(--mut);font:inherit;font-size:14px;cursor:pointer;text-decoration:underline}
.jrName{margin:0 0 10px;font-family:"Bebas Neue",Impact,"Arial Narrow",sans-serif;font-weight:400;font-size:44px;line-height:.95;letter-spacing:.02em;color:var(--acc)}
.jrSum{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:6px;font-size:15px;line-height:1.4}
.jrSum b{font-weight:700}
.jrNote{margin:14px 0 0;color:var(--mut);font-size:14px;line-height:1.45}
.jrBtns .jrGo{margin:0 0 4px}
.jrAlt{display:block;padding:11px;border:1px solid var(--line);border-radius:10px;color:var(--fg);text-align:center;text-decoration:none;font-weight:600}
.jrAlt:hover,.jrAlt:focus-visible{border-color:var(--acc)}
.jrMsg{margin:10px 0 0;color:var(--bad,#e5484d);font-size:14px}
.jrMsg:empty{display:none}
