/* Learn (/learn/, web/learn/learn.js): the build in 3D over the whole stage, like the Studio; the chapters and steps on
   the left, what to learn on the right, back / next and before / after at the bottom. Phones: the chapters on top, the
   card at the bottom. */
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.learn{--lglass:#141418eb;--ledge:#ffffff1c;position:relative}
.wrap.app .main:has(.learn){padding-bottom:0}
.lstage{position:relative;height:calc(100vh - 128px);height:calc(100dvh - 128px);min-height:560px;border-radius:18px;overflow:hidden;border:1px solid var(--line);
	background:radial-gradient(ellipse 80% 70% at 50% 45%,#3c3c42 0%,#232327 55%,#151517 100%);color:#fff}
.lview,.lview canvas{position:absolute;inset:0;width:100%;height:100%;display:block}.lview canvas{touch-action:none;cursor:grab}
.learn svg{width:18px;height:18px;flex:none}
.lfloat{position:absolute;z-index:3;background:var(--lglass);border:1px solid var(--ledge);box-shadow:0 10px 30px #0008;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-radius:16px}
.lload{position:absolute;inset:0;z-index:9;display:grid;place-items:center;background:#151517cc;font-weight:600}.lload a{color:var(--red2)}

/* top: back, the title, the progress */
.ltop{left:16px;top:16px;right:16px;display:flex;align-items:center;gap:12px;padding:8px 14px 8px 8px;max-width:520px}
.lback{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#ffffff12;color:#fff}.lback:hover{background:var(--red)}
.ltitle{display:flex;flex-direction:column;min-width:0;flex:1}.ltitle small{font:800 9.5px Inter,sans-serif;letter-spacing:.2em;color:var(--red2)}
.ltitle b{font:500 19px var(--px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lprog{width:110px;height:7px;border-radius:9px;background:#ffffff1a;overflow:hidden}.lprog i{display:block;height:100%;width:0;background:var(--red);border-radius:9px;transition:width .4s}
#lprogt{font:700 12px Inter,sans-serif;color:#c9c8cc;min-width:46px;text-align:right}

/* left: the chapters, the steps */
.lnav{left:16px;top:84px;bottom:16px;width:236px;padding:8px;overflow:auto;display:flex;flex-direction:column;gap:2px}
.lchap{display:flex;align-items:center;gap:10px;width:100%;padding:9px 10px;border:0;border-radius:11px;background:none;color:#d9d8dc;font:600 14px Inter,sans-serif;text-align:left;cursor:pointer}
.lchap i{display:grid;place-items:center;width:24px;height:24px;border-radius:8px;background:#ffffff14;font:800 12px Inter,sans-serif;font-style:normal;flex:none}
.lchap:hover{background:#ffffff0d}.lchap.on{background:#ff38281f;color:#fff}.lchap.on i{background:var(--red)}
.lsteps{display:flex;flex-direction:column;gap:1px;margin:4px 0 0 12px;padding-left:10px;border-left:2px solid #ffffff14}
.lstep{display:flex;align-items:center;gap:8px;width:100%;padding:6px 8px;border:0;border-radius:9px;background:none;color:#bdbcc2;font:500 12.5px Inter,sans-serif;text-align:left;cursor:pointer}
.lstep i{display:grid;place-items:center;width:20px;height:20px;border-radius:6px;background:#ffffff10;font:700 10.5px Inter,sans-serif;font-style:normal;flex:none}
.lstep i svg{width:12px;height:12px}.lstep span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lstep:hover{background:#ffffff0d}.lstep.on{background:#ffffff14;color:#fff}.lstep.on i{background:var(--red)}
.lstep.seen i{background:#2e7d4f;color:#fff}.lstep.locked{opacity:.55}

/* right: the card */
.lcard{right:16px;top:16px;bottom:16px;width:min(390px,34%);padding:18px 18px 20px;overflow:auto}
.lcard h2{margin:0 0 8px;font:500 26px var(--px);line-height:1.15}.lcard h3{margin:18px 0 8px;font:800 11px Inter,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:#a9a8ae}
.lcard h3 small{font:500 11px Inter,sans-serif;letter-spacing:0;text-transform:none;color:#7d7c83;margin-left:6px}
.lcard p{margin:0 0 10px;font-size:14.5px;line-height:1.5;color:#dcdbe0}.lcard p b{color:#fff}
.lnote{font-size:13px!important;color:#a9a8ae!important}.lred{color:#ff5a4a!important}
.lbtn{display:inline-flex;align-items:center;gap:8px;margin-top:14px;padding:10px 16px;border-radius:11px;border:1px solid var(--red);background:var(--red);color:#fff;font:700 14px Inter,sans-serif;cursor:pointer;text-decoration:none}
.lbtn:hover{filter:brightness(1.1);text-decoration:none}.lbtn.ghost{background:#ffffff0f;border-color:#ffffff26;margin-top:0}.lbtn.ghost.on{background:var(--red);border-color:var(--red)}
.lstats{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:8px;margin:12px 0}
.lstats div{background:#ffffff0b;border:1px solid #ffffff14;border-radius:11px;padding:9px 11px}.lstats small{display:block;font:800 9.5px Inter,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:#a9a8ae}
.lstats b{font:500 19px var(--px)}
.llist{margin:0;padding-left:18px;color:#dcdbe0;font-size:14px;line-height:1.7}
.lplanbox{background:#0d0d10;border:1px solid #ffffff1a;border-radius:12px;padding:10px;margin:10px 0;overflow:auto}
.lplanbox canvas{display:block;margin:0 auto;cursor:crosshair;image-rendering:pixelated}.lhint{margin:8px 0 0!important;font-size:13px!important;min-height:2.6em}
.lstrip{display:flex;height:22px;border-radius:8px;overflow:hidden;margin:8px 0 6px;border:1px solid #ffffff1a}.lstrip i{display:block;min-width:2px}
.lpals{display:grid;gap:4px}
.lpal{display:flex;align-items:center;gap:10px;width:100%;padding:5px 10px 5px 5px;border:1px solid transparent;border-radius:10px;background:#ffffff08;color:#e8e7eb;font:500 13.5px Inter,sans-serif;text-align:left;cursor:pointer}
.lpal img{width:30px;height:30px;image-rendering:pixelated}.lpal span{flex:1}.lpal small{font:700 12px Inter,sans-serif;color:#a9a8ae}
.lpal:hover{background:#ffffff12}.lpal.on{border-color:var(--red);background:#ff38281f}
.ltech{background:#ffffff08;border:1px solid #ffffff14;border-radius:12px;padding:12px 14px;margin:0 0 8px}.ltech h3{margin:0 0 6px;font:500 17px var(--px);letter-spacing:0;text-transform:none;color:#fff}
.lrow{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.lsteps2{font-size:12px;color:#a9a8ae}
.lsteps2 button{border:1px solid #ffffff22;background:none;color:#e8e7eb;border-radius:7px;padding:2px 7px;font:700 11.5px Inter,sans-serif;cursor:pointer;margin:1px}.lsteps2 button:hover{border-color:var(--red)}
.lmotif{background:#ff38281a;border:1px solid #ff382855;border-radius:12px;padding:12px 14px;margin:10px 0}.lmotif b{font:800 11px Inter,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:#ff8a80}
.lmotif p{margin:6px 0 0}
.lstephead small{font:800 10.5px Inter,sans-serif;letter-spacing:.16em;color:var(--red2)}
.ltip{background:#ffd54f12;border:1px solid #ffd54f40;border-radius:12px;padding:11px 13px;margin:10px 0}.ltip b{font:800 11px Inter,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:#ffd54f}
.ltip p{margin:5px 0 0;color:#f3f1e6}
.lchips{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}.lchips button{border:1px solid #ff382866;background:#ff38281a;color:#ffb3aa;border-radius:999px;padding:4px 10px;font:700 12px Inter,sans-serif;cursor:pointer}
.lmats{display:grid;gap:4px}.lmats div{display:grid;grid-template-columns:28px 1fr auto auto;align-items:center;gap:8px;font-size:13.5px;background:#ffffff08;border-radius:9px;padding:4px 10px 4px 4px}
.lmats img{width:28px;height:28px;image-rendering:pixelated}.lmats b{font-variant-numeric:tabular-nums}.lmats small{color:#a9a8ae;font-size:11.5px}
.llock{text-align:center;padding:20px 6px}.llock>svg{width:42px;height:42px;color:var(--red2);margin-bottom:8px}
.ldone{background:#2e7d4f26;border:1px solid #2e7d4f88;border-radius:12px;padding:12px 14px;margin:14px 0 0}.ldone b{font-size:15px}.ldone p{margin:6px 0 0}
.lempty{padding:40px 20px;text-align:center}.lempty a{color:var(--red2)}

/* bottom: back, what to show, next */
.lbar{left:50%;bottom:16px;transform:translateX(-50%);display:flex;align-items:center;gap:10px;padding:7px;border-radius:16px;margin-left:-60px}
.lround{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;border:0;background:#ffffff12;color:#fff;cursor:pointer}.lround:hover{background:var(--red)}
.lseg{display:flex;background:#ffffff0b;border-radius:11px;padding:3px}.lseg button{border:0;background:none;color:#c9c8cc;font:700 13px Inter,sans-serif;padding:8px 12px;border-radius:9px;cursor:pointer}
.lseg button.on{background:var(--red);color:#fff}

@media (max-width:900px){
	.lstage{height:calc(100vh - 110px);height:calc(100dvh - 110px);min-height:420px}
	.ltop{right:16px;max-width:none}
	.lnav{top:76px;bottom:auto;left:12px;right:12px;width:auto;flex-direction:row;overflow-x:auto;padding:5px;border-radius:13px;scrollbar-width:none}.lnav::-webkit-scrollbar{display:none}
	.lchap{width:auto;white-space:nowrap;padding:7px 10px;font-size:13px}.lchap i{width:20px;height:20px}
	.lsteps{display:none}
	.lcard{top:auto;left:12px;right:12px;bottom:74px;width:auto;max-height:38%;padding:14px}
	.lstage:not(:has(.lbar:not([hidden]))) .lcard{bottom:12px}
	.lbar{left:12px;right:12px;bottom:12px;transform:none;margin:0;justify-content:space-between}
	.lcard h2{font-size:21px}
}
/* phones and tablets: no blur behind the panels (redone at each frame of the 3D, it made the top stutter) */
@media (max-width:900px){.lfloat{backdrop-filter:none;-webkit-backdrop-filter:none;background:#141418f0}}
/* phones: the top on one line (no bar, the count is enough), the chapters right under it */
@media (max-width:560px){
	.ltop{left:10px;right:10px;top:10px;gap:8px;padding:6px 8px 6px 6px}
	.lback{width:34px;height:34px}
	.ltitle b{font-size:16px}
	.lprog{display:none}
	#lprogt{min-width:0}
	.lfull{margin-left:0}
	.lnav{top:64px;left:10px;right:10px}
}

/* the free full lesson: its tag, its welcome, the way to it from a members' chapter */
.ltitle small{display:flex;align-items:center;gap:7px;white-space:nowrap;overflow:hidden}
.lfreetag{flex:none;font:800 8.5px/1 Inter,sans-serif;letter-spacing:.08em;color:#1a1200;background:#ffc23d;border-radius:5px;padding:3px 5px}
.lfree{display:flex;align-items:center;gap:6px;margin-top:12px;font-size:13.5px;color:var(--soft,#c9c8cc);text-decoration:none}.lfree b{color:#fff}.lfree svg{width:16px;height:16px}
.lfreepop{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;background:#0b0b0dcc;padding:16px}
.lfreebox{width:min(420px,100%);background:#141418;color:#ededf0;border:1px solid #ffc23d66;border-radius:18px;padding:22px;box-shadow:0 24px 70px #000a}
.lfreebox small{display:block;font:800 10.5px Inter,sans-serif;letter-spacing:.18em;color:#ffc23d;margin-bottom:6px}
.lfreebox h2{margin:0 0 8px;font:500 23px var(--px,sans-serif);line-height:1.15}.lfreebox p{margin:0 0 10px;color:#c9c8cc;font-size:14px;line-height:1.5}
.lfreebox .lfreem{color:#ededf0}.lfreeb{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.lfreeb .lbtn{flex:1 1 auto;justify-content:center}
.lbtn.ghost{background:#ffffff12;border-color:#ffffff26}

/* full screen */
.lfull{flex:none;display:grid;place-items:center;width:34px;height:34px;border-radius:10px;border:1px solid #ffffff26;background:#ffffff10;color:#fff;cursor:pointer;margin-left:6px}.lfull svg{width:18px;height:18px}
.lfull:hover{border-color:#ffffff60}
.lstage:fullscreen{height:100vh;border-radius:0;border:0}
.lstage.lfakefull{position:fixed;inset:0;z-index:9999;height:100vh;height:100dvh;min-height:0;border-radius:0;border:0}
html.snoscroll,html.snoscroll body{overflow:hidden}
/* the dimensions of "Where to start" (learn.js measure): numbers over the 3D, placed each frame */
.ldim{position:absolute;left:0;top:0;z-index:2;pointer-events:none;white-space:nowrap;font-weight:700;font-size:12px;line-height:1;letter-spacing:.02em;padding:5px 10px;border-radius:999px;background:var(--red,#c8101f);color:#fff;box-shadow:0 4px 14px #0009}
.ldim.h{background:#16161bdd;color:#d6d8ff;border:1px solid #9aa0ff}
