/* AlyFa A2: the renewed learner kit (2026-11). docs/design_system.md, "A2: the renewed learner kit".
   Two parts: THE KIT, the boards' kit2.css with every rule scoped to the .a2 root (generated: edit
   static/css/a2/kit.src.css and run `python scripts/a2/scope_kit.py`, or `make css`), and THE APP
   SHELL, hand-written below it (edit it here). Linked by templates/partials/head_assets.html after
   tailwind.build.css; nothing here applies outside an element with class "a2". */
/* ==== A2 KIT: generated by scripts/a2/scope_kit.py from static/css/a2/kit.src.css. Do not edit here. ==== */
/* AlyFa mock kit, wave 2. One family (Baloo 2), a quiet stage, objects that answer the hand. */
.a2{--paper:#F4EFE6;--ink:#15171E;--mut:#5B6172;--faint:#686E81;--line:rgba(21,23,30,.10);--line2:rgba(21,23,30,.2);
--blue:#1C39BB;--blueD:#142A8C;--blueT:#E8ECFB;--gold:#E8A21A;--goldD:#8A5A00;--goldT:#FCF1D8;--slate:#5E6884;--slateT:#ECEEF3;--pom:#C4304A;
--fd:"Baloo 2",system-ui,sans-serif;--fb:"Baloo 2",system-ui,sans-serif;--ffa:"Vazirmatn",sans-serif;background:var(--paper);color:var(--ink);font:500 18px/1.4 var(--fb);-webkit-font-smoothing:antialiased}
/* scope_kit.py: in the root above, --paper is #F4EFE6 (the boards' page colour) and the board stage (position:relative; min-height:100vh; overflow:hidden; isolation:isolate) is gone: the app shell's .a2-stage is the stage. */
.a2.t2{--fb:"Figtree",system-ui,sans-serif}
.a2.fa2{--ffa:"Baloo Bhaijaan 2","Vazirmatn",sans-serif}
.a2 *{box-sizing:border-box}
:where(.a2) button{font:inherit;color:inherit;border:0;background:none;padding:0;margin:0;cursor:pointer;-webkit-tap-highlight-color:transparent}
:where(.a2) a{color:inherit;text-decoration:none}
.a2 :focus-visible{outline:3px solid var(--blue);outline-offset:3px}
:where(.a2) img{display:block}
:where(.a2) p{margin:0}
:where(.a2) .fld{position:absolute;inset:0;width:100%;height:100%;z-index:-1;pointer-events:none}
:where(.a2) .d1{font:800 104px/.95 var(--fd);letter-spacing:-.02em;margin:0}
:where(.a2) .d2{font:800 56px/1 var(--fd);letter-spacing:-.015em;margin:0}
:where(.a2) .d3{font:800 40px/1.05 var(--fd);letter-spacing:-.01em;margin:0}
:where(.a2) .d4{font:700 26px/1.15 var(--fd);margin:0}
:where(.a2) .fa{font-family:var(--ffa);direction:rtl;unicode-bidi:isolate}
:where(.a2) .mut{color:var(--mut)}
:where(.a2) .cap{font:700 13px/1 var(--fb);letter-spacing:.09em;text-transform:uppercase;color:var(--faint)}
:where(.a2) .tg{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 9px;border-radius:7px;background:var(--ink);color:#fff;font:700 13px/1 var(--fb);letter-spacing:.03em;white-space:nowrap}
:where(.a2) .tg b{font-weight:500;opacity:.78}
:where(.a2) .lab{display:flex;align-items:center;gap:10px;margin-bottom:16px}
:where(.a2) .lab small{font:500 15px/1.2 var(--fb);color:var(--mut)}
:where(.a2) .bx{position:relative;padding:26px;border-radius:26px;background:#fff;box-shadow:0 0 0 1px var(--line)}

/* top bar */
:where(.a2) .tb{position:relative;z-index:6;display:flex;align-items:center;gap:18px;height:76px;padding:0 32px}
:where(.a2) .grow{flex:1}
:where(.a2) .bk{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:#fff;box-shadow:inset 0 0 0 1.5px var(--line2);transition:box-shadow .2s;flex:none}
:where(.a2) .bk svg{width:20px;height:20px;transition:transform .25s cubic-bezier(.3,1.5,.5,1)}
:where(.a2) .bk:hover{box-shadow:inset 0 0 0 2px var(--ink)}
:where(.a2) .bk:hover svg{transform:translateX(-3px)}
:where(.a2) .ttl{display:flex;align-items:baseline;gap:10px;font:800 22px/1 var(--fd);white-space:nowrap}
:where(.a2) .ttl small{font:500 16px/1 var(--fb);color:var(--mut)}
:where(.a2) .sec{display:flex;align-items:center;gap:9px}
:where(.a2) .sec a{display:block;width:10px;height:10px;border-radius:50%;background:var(--line2);transition:transform .2s,background .2s;font-size:0;overflow:hidden}
:where(.a2) .sec a:hover{transform:scale(1.5);background:var(--ink)}
:where(.a2) .sec a.done{background:var(--blue)}
:where(.a2) .sec a.cur{width:auto;height:30px;padding:0 13px;border-radius:15px;background:var(--ink);color:#fff;font:700 15px/30px var(--fb)}
:where(.a2) .sec a.cur:hover{transform:none}
:where(.a2) .nl{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 15px 0 12px;border-radius:20px;background:#fff;box-shadow:inset 0 0 0 1.5px var(--line2);font:700 15px/1 var(--fb);color:var(--ink);transition:box-shadow .2s;white-space:nowrap}
:where(.a2) .nl svg{width:18px;height:18px}
:where(.a2) .nl:hover,:where(.a2) .nl.on{box-shadow:inset 0 0 0 2px var(--ink)}
:where(.a2) .nlp{position:absolute;right:32px;top:66px;z-index:40;width:340px;padding:10px;border-radius:22px;background:#fff;box-shadow:0 0 0 1px var(--line),0 30px 60px -24px rgba(21,23,30,.45);animation:a2-pop .22s cubic-bezier(.3,1.4,.5,1)}
:where(.a2) .nlp a,:where(.a2) .nlp button{display:flex;align-items:center;gap:14px;width:100%;padding:14px;border-radius:14px;text-align:left;transition:background .15s}
:where(.a2) .nlp a:hover,:where(.a2) .nlp button:hover{background:var(--paper)}
:where(.a2) .nlp b{display:block;font:800 20px/1.1 var(--fd)}
:where(.a2) .nlp small{display:block;margin-top:3px;font:500 15px/1.25 var(--fb);color:var(--mut)}
:where(.a2) .nlp .ar{margin-left:auto;font:800 22px/1 var(--fd);color:var(--faint);transition:transform .2s,color .2s}
:where(.a2) .nlp a:hover .ar,:where(.a2) .nlp button:hover .ar{transform:translateX(4px);color:var(--ink)}

/* the one forward control: GO-3, a pearl on its thread. Blue = go on, gold = earned, slate = after a miss, seed = not yet. */
:where(.a2) .go{--ch:#fff;position:relative;display:inline-flex;align-items:center;gap:14px;height:72px;padding:0 24px 0 0;color:var(--ink);font:800 26px/1 var(--fd);white-space:nowrap;background:repeating-linear-gradient(90deg,currentColor 0 5px,transparent 5px 11px) 100% 50%/18px 2px no-repeat;transition:color .25s}
:where(.a2) .go::before{content:"";order:1;width:44px;height:2px;border-radius:1px;background:currentColor;transform-origin:0 50%;transition:transform .35s cubic-bezier(.3,1.5,.5,1)}
:where(.a2) .go canvas{order:2;display:block;width:64px;height:64px;flex:none;border-radius:50%;filter:drop-shadow(0 9px 9px rgba(21,23,30,.34));transition:transform .45s cubic-bezier(.3,1.6,.5,1),opacity .3s}
:where(.a2) .go::after{content:"";position:absolute;z-index:1;right:52px;top:50%;width:13px;height:13px;margin-top:-6.5px;border-top:4px solid var(--ch);border-right:4px solid var(--ch);border-radius:2px;transform:rotate(45deg);transition:transform .45s cubic-bezier(.3,1.6,.5,1),opacity .2s;pointer-events:none}
:where(.a2) .go:hover::before{transform:scaleX(1.2)}
:where(.a2) .go:hover canvas{transform:translateX(9px) rotate(50deg) scale(1.05)}
:where(.a2) .go:hover::after{transform:translateX(11px) rotate(45deg)}
:where(.a2) .go:active canvas{transform:translateX(9px) scale(.9)}
:where(.a2) .go.wait{--ch:transparent;color:var(--faint);cursor:default;background:none}
:where(.a2) .go.wait::before{background:var(--line2)}
:where(.a2) .go.wait canvas,:where(.a2) .go.wait:hover canvas{filter:none;transform:none}
:where(.a2) .go.wait:hover::before{transform:none}
:where(.a2) .go.won{--ch:#2A1B00;color:var(--goldD)}
:where(.a2) .go.won canvas{animation:a2-glow 1.9s ease-out infinite}
:where(.a2) .go.fix{color:var(--slate)}
:where(.a2) .go.roll canvas{transform:translateX(150px) rotate(420deg);opacity:0;transition:transform .55s cubic-bezier(.5,0,.9,.5),opacity .3s .25s}
:where(.a2) .go.roll::after{opacity:0}
/* its quiet twin, back one page */
:where(.a2) .gb{display:inline-flex;align-items:center;gap:11px;height:48px;padding:0 4px;font:700 18px/1 var(--fb);color:var(--mut);white-space:nowrap;transition:color .2s}
:where(.a2) .gb::before{content:"";width:10px;height:10px;border-left:3px solid currentColor;border-bottom:3px solid currentColor;border-radius:2px;transform:rotate(45deg);transition:transform .3s cubic-bezier(.3,1.6,.5,1)}
:where(.a2) .gb:hover{color:var(--ink)}
:where(.a2) .gb:hover::before{transform:translateX(-5px) rotate(45deg)}
/* leave the lesson: a word, never an arrow */
:where(.a2) .ex{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 15px 0 10px;border-radius:20px;background:#fff;box-shadow:inset 0 0 0 1.5px var(--line2);font:700 15px/1 var(--fb);color:var(--ink);white-space:nowrap;flex:none;transition:box-shadow .2s}
:where(.a2) .ex svg{width:22px;height:22px}
:where(.a2) .ex:hover{box-shadow:inset 0 0 0 2px var(--ink)}
:where(.a2) .qa{display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 2px;font:700 17px/1 var(--fb);color:var(--mut);background:linear-gradient(currentColor,currentColor) 0 calc(100% - 9px)/0 2px no-repeat;transition:background-size .25s,color .2s;white-space:nowrap}
:where(.a2) .qa:hover{color:var(--ink);background-size:100% 2px}
:where(.a2) .qa svg{width:18px;height:18px}
:where(.a2) .gh{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:48px;padding:0 20px;border-radius:24px;background:#fff;box-shadow:inset 0 0 0 1.5px var(--line2);font:700 17px/1 var(--fb);transition:box-shadow .2s,transform .15s;white-space:nowrap}
:where(.a2) .gh:hover{box-shadow:inset 0 0 0 2px var(--ink)}
:where(.a2) .gh:active{transform:scale(.97)}
:where(.a2) .gh svg{width:18px;height:18px}
:where(.a2) .gz{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:10px;height:64px;padding:0 30px;border-radius:20px;color:#fff;font:800 21px/1 var(--fd);background:radial-gradient(220px circle at var(--mx,28%) var(--my,-20%),rgba(255,255,255,.5),rgba(255,255,255,0) 60%),linear-gradient(180deg,#2B4BD6,#1C39BB 55%,#142A8C);box-shadow:inset 0 1.5px 0 rgba(255,255,255,.5),inset 0 -5px 0 rgba(8,18,74,.55),0 14px 22px -12px rgba(20,42,140,.7);transform:perspective(700px) rotateX(calc(var(--ty,0) * -5deg)) rotateY(calc(var(--tx,0) * 7deg));transition:transform .15s,box-shadow .15s}
:where(.a2) .gz:active{transform:perspective(700px) translateY(3px) scale(.985);box-shadow:inset 0 1.5px 0 rgba(255,255,255,.4),inset 0 -2px 0 rgba(8,18,74,.55),0 6px 10px -8px rgba(20,42,140,.7)}

/* progress: glaze (kept), chortkeh, the written line */
:where(.a2) .pg{display:flex;gap:5px;width:100%}
:where(.a2) .pg i{flex:1;height:14px;border-radius:7px;background:#E3E0D8;box-shadow:inset 0 2px 2px rgba(0,0,0,.12);transition:background .3s}
:where(.a2) .pg i.ok{background:radial-gradient(70px circle at var(--mx,30%) 0,rgba(255,255,255,.75),transparent 70%),linear-gradient(180deg,#4F76F0,#1C39BB);box-shadow:inset 0 1.5px 0 rgba(255,255,255,.55),inset 0 -2px 0 rgba(8,18,74,.4)}
:where(.a2) .pg i.no{background:radial-gradient(70px circle at var(--mx,30%) 0,rgba(255,255,255,.7),transparent 70%),linear-gradient(180deg,#A9B1C6,#6E7791);box-shadow:inset 0 1.5px 0 rgba(255,255,255,.55),inset 0 -2px 0 rgba(30,36,60,.35)}
:where(.a2) .pg i.now{background:#fff;box-shadow:inset 0 0 0 2px var(--ink)}
:where(.a2) .ab{position:relative;height:28px}
:where(.a2) .ab::before{content:"";position:absolute;left:0;right:0;top:13px;height:2px;border-radius:1px;background:var(--line2)}
:where(.a2) .ab canvas{position:absolute;top:2px;left:0;width:24px;height:24px;transition:transform .55s cubic-bezier(.45,1.45,.5,1)}
:where(.a2) .wl{position:relative;display:inline-block;font:700 30px/1.5 var(--ffa);direction:rtl;white-space:nowrap}
:where(.a2) .wl .b{color:rgba(21,23,30,.16)}
:where(.a2) .wl .t{position:absolute;inset:0;color:var(--ink);transition:clip-path .6s cubic-bezier(.4,0,.2,1)}

/* voice */
:where(.a2) .spk{position:relative;display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:var(--ink);color:#fff;flex:none;transition:transform .2s cubic-bezier(.3,1.6,.5,1),background .2s}
:where(.a2) .spk svg{width:24px;height:24px}
:where(.a2) .spk:hover{transform:scale(1.08)}
:where(.a2) .spk:active{transform:scale(.94)}
:where(.a2) .spk.on{background:var(--blue)}
:where(.a2) .spk.on::after{content:"";position:absolute;inset:-6px;border-radius:50%;border:2px solid var(--blue);animation:a2-ring 1s ease-out infinite}
:where(.a2) .spk.sm{width:40px;height:40px}
:where(.a2) .spk.sm svg{width:18px;height:18px}
:where(.a2) .spk.lg{width:76px;height:76px}
:where(.a2) .spk.lg svg{width:34px;height:34px}
:where(.a2) .str{display:block;width:100%;height:56px}
:where(.a2) .sp4{display:inline-flex;align-items:center;height:44px;padding:0 4px;border-radius:22px;background:#fff;box-shadow:inset 0 0 0 1.5px var(--line2)}
:where(.a2) .sp4 button{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;font:800 22px/1 var(--fd);color:var(--ink);transition:background .15s,transform .15s}
:where(.a2) .sp4 button:hover{background:var(--paper)}
:where(.a2) .sp4 button:active{transform:scale(.86)}
:where(.a2) .rd{display:flex;align-items:center;gap:8px;min-width:88px;justify-content:center;font:800 16px/1 var(--fd);font-variant-numeric:tabular-nums;color:var(--sc);transition:color .2s}
:where(.a2) .mt{display:flex;align-items:flex-end;gap:3px;height:18px}
:where(.a2) .mt i{width:4px;border-radius:2px;background:var(--line2);transition:background .2s}
:where(.a2) .mt i:nth-child(1){height:6px}:where(.a2) .mt i:nth-child(2){height:9px}:where(.a2) .mt i:nth-child(3){height:12px}:where(.a2) .mt i:nth-child(4){height:15px}:where(.a2) .mt i:nth-child(5){height:18px}
:where(.a2) .mt i.on{background:var(--sc)}
:where(.a2) .lv0{--sc:#2F7FC1}:where(.a2) .lv1{--sc:#3B63B0}:where(.a2) .lv2{--sc:#15171E}:where(.a2) .lv3{--sc:#B85A14}:where(.a2) .lv4{--sc:#C63D0C}
:where(.a2) .sp3{position:relative;display:inline-block;width:132px;height:92px}
:where(.a2) .sp3 svg{position:absolute;left:0;top:0;width:132px;height:84px;overflow:visible}
:where(.a2) .sp3 .nd{transform-origin:66px 70px;transition:transform .5s cubic-bezier(.3,1.8,.5,1)}
:where(.a2) .sp3 button{position:absolute;top:0;height:78px;width:50%;transition:background .15s}
:where(.a2) .sp3 button.l{left:0;border-radius:66px 0 0 10px}
:where(.a2) .sp3 button.r{right:0;border-radius:0 66px 10px 0}
:where(.a2) .sp3 button:hover{background:rgba(21,23,30,.06)}
:where(.a2) .sp3 .rd{position:absolute;left:0;right:0;bottom:0;min-width:0;pointer-events:none}
:where(.a2) .kl{font:800 44px/1.12 var(--fd);letter-spacing:-.01em;margin:0;cursor:pointer;text-align:left}
:where(.a2) .kl span{position:relative;display:inline-block;margin-right:.24em;transition:color .15s,transform .2s cubic-bezier(.3,1.6,.5,1)}
:where(.a2) .kl .on{color:var(--blue);transform:translateY(-5px)}
:where(.a2) .kl .nw{background:linear-gradient(var(--gold),var(--gold)) 0 100%/100% 4px no-repeat}
:where(.a2) .kl .gr{background:linear-gradient(90deg,var(--blue) 55%,transparent 0) 0 100%/9px 4px repeat-x}

/* lesson pieces */
:where(.a2) .av2{width:44px;height:44px;border-radius:50%;background-size:cover;background-position:center;flex:none;box-shadow:0 0 0 2px #fff,0 0 0 3.5px var(--line2)}
:where(.a2) .av2.sm{width:32px;height:32px}
:where(.a2) .wd{display:flex;align-items:baseline;gap:10px;padding:11px 15px;border-radius:14px;background:#fff;box-shadow:inset 0 0 0 1px var(--line);transition:transform .2s cubic-bezier(.3,1.5,.5,1),box-shadow .2s;text-align:left}
:where(.a2) .wd b{font:800 20px/1.1 var(--fd)}
:where(.a2) .wd span{font:500 16px/1.2 var(--fb);color:var(--mut)}
:where(.a2) .wd i{margin-left:auto;font:500 18px/1 var(--ffa);font-style:normal;color:var(--faint)}
:where(.a2) .wd:hover{transform:translateY(-2px);box-shadow:inset 0 0 0 1.5px var(--ink)}
:where(.a2) .nt{display:flex;align-items:center;gap:12px;padding:10px 16px 10px 10px;border-radius:16px;background:var(--goldT);color:#4A3200;font:600 16px/1.3 var(--fb)}
:where(.a2) .nt img{width:38px;height:38px;flex:none;object-fit:contain}
:where(.a2) .cm{position:relative;border-radius:28px;overflow:hidden;background:#EDE9E0;box-shadow:0 0 0 1px var(--line),0 40px 60px -44px rgba(21,23,30,.55);flex:none}
:where(.a2) .cm img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .45s}
:where(.a2) .cm img.on{opacity:1}
:where(.a2) .cm .nav{position:absolute;top:50%;z-index:3;display:grid;place-items:center;width:52px;height:52px;margin-top:-26px;border-radius:50%;background:rgba(255,255,255,.88);box-shadow:0 6px 16px -6px rgba(0,0,0,.45);transition:transform .2s cubic-bezier(.3,1.6,.5,1),background .2s,opacity .2s}
:where(.a2) .cm .nav.l{left:14px}
:where(.a2) .cm .nav.r{right:14px}
:where(.a2) .cm .nav:hover{transform:scale(1.1);background:#fff}
:where(.a2) .cm .nav:active{transform:scale(.92)}
:where(.a2) .cm .nav svg{width:22px;height:22px}
:where(.a2) .cm .nav.off{opacity:.3;pointer-events:none}
:where(.a2) .cm .pp{position:absolute;left:0;right:0;bottom:14px;z-index:3;display:flex;justify-content:center;gap:6px}
:where(.a2) .cm .pp i{width:7px;height:7px;border-radius:4px;background:rgba(255,255,255,.65);box-shadow:0 0 0 1px rgba(0,0,0,.18);transition:width .25s,background .25s}
:where(.a2) .cm .pp i.on{width:22px;background:#fff}
:where(.a2) .bbl{position:absolute;z-index:2;max-width:58%;padding:10px 16px 11px;border-radius:20px;background:#fff;border:2px solid var(--ink);color:var(--ink);font:700 19px/1.2 var(--fd);transform:translateX(-50%);animation:a2-bbl .3s cubic-bezier(.3,1.5,.5,1)}
:where(.a2) .bbl i{position:absolute;bottom:-10px;width:16px;height:16px;margin-left:-8px;background:#fff;border-right:2px solid var(--ink);border-bottom:2px solid var(--ink);transform:rotate(45deg)}

/* choices */
:where(.a2) .bd{position:relative;padding-left:66px}
:where(.a2) .bd::before{content:"";position:absolute;left:23px;top:6px;bottom:6px;width:2px;border-radius:1px;background:var(--line2)}
:where(.a2) .bd .be{position:absolute;left:4px;top:16px;width:40px;height:40px;transition:transform .45s cubic-bezier(.4,1.5,.5,1);filter:drop-shadow(0 4px 5px rgba(0,0,0,.25))}
:where(.a2) .bo{display:flex;align-items:center;gap:14px;width:100%;height:72px;text-align:left;font:700 28px/1.1 var(--fd);color:var(--mut);transition:transform .25s cubic-bezier(.3,1.5,.5,1),color .2s,opacity .2s}
:where(.a2) .bo:hover{transform:translateX(8px);color:var(--ink)}
:where(.a2) .bo.sel{color:var(--ink);transform:translateX(8px)}
:where(.a2) .bo.ok{color:var(--goldD);transform:translateX(8px)}
:where(.a2) .bo.no{color:var(--faint);text-decoration:line-through;text-decoration-thickness:2px}
:where(.a2) .bo.dim{opacity:.4}
:where(.a2) .bo small{font:700 14px/1 var(--fb);letter-spacing:.06em;text-transform:uppercase;color:var(--goldD)}
:where(.a2) .fo{display:flex;flex-direction:column;gap:6px}
:where(.a2) .fo button{position:relative;align-self:flex-start;text-align:left;padding:6px 2px 10px;font:800 34px/1.15 var(--fd);color:var(--ink);transition:opacity .25s,filter .25s,transform .25s cubic-bezier(.3,1.5,.5,1)}
:where(.a2) .fo:not(.done):hover button:not(:hover){opacity:.26}
:where(.a2) .fo.done button{cursor:default;pointer-events:none}
:where(.a2) .fo.done button:not(.ok):not(.no):not(.sel){opacity:.2}
:where(.a2) .fo button small{display:none;margin-top:12px;font:600 17px/1.2 var(--fb);color:var(--mut)}
:where(.a2) .fo button.no small,:where(.a2) .fo button.ok small{display:block}
:where(.a2) .fo button::after{content:"";position:absolute;left:0;right:0;top:45px;height:6px;border-radius:3px;background:var(--blue);transform:scaleX(0) rotate(-.6deg);transform-origin:0 50%;transition:transform .35s cubic-bezier(.3,1.3,.5,1),background .2s}
:where(.a2) .fo button.sel::after,:where(.a2) .fo button.ok::after,:where(.a2) .fo button.no::after{transform:scaleX(1) rotate(-.6deg)}
:where(.a2) .fo button.ok::after{background:var(--gold)}
:where(.a2) .fo button.no{color:var(--faint)}
:where(.a2) .fo button.no::after{background:var(--slate);top:24px;height:4px}
:where(.a2) .kd{display:inline-flex;align-items:center;gap:12px;font:700 16px/1 var(--fb);color:var(--mut)}
:where(.a2) .kd img{width:52px;height:52px;object-fit:contain;filter:drop-shadow(0 6px 6px rgba(21,23,30,.16))}
:where(.a2) .inp{display:block;width:100%;border:0;border-bottom:2.5px solid var(--ink);border-radius:0;background:none;padding:6px 0 10px;font:800 40px/1.1 var(--fd);color:var(--ink);outline:none;caret-color:var(--blue);transition:border-color .2s,color .2s}
:where(.a2) .inp::placeholder{color:rgba(21,23,30,.42);font-weight:700}
:where(.a2) .inp:focus{border-color:var(--blue)}
:where(.a2) .inp.won{border-color:var(--gold);color:var(--goldD)}
:where(.a2) .inp.fix{border-color:var(--slate);color:var(--faint);text-decoration:line-through}
:where(.a2) .rs{font:800 24px/1.15 var(--fd);animation:a2-in .3s both}
:where(.a2) .rs small{display:block;font:600 17px/1.3 var(--fb);color:var(--mut)}
:where(.a2) .rs.won{color:var(--goldD)}
:where(.a2) .streak{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 14px;border-radius:18px;background:var(--goldT);color:var(--goldD);font:800 16px/1 var(--fd);animation:a2-pop .35s cubic-bezier(.3,1.6,.5,1)}

/* drawer, sheet */
:where(.a2) .scr{position:absolute;inset:0;z-index:30;background:rgba(21,23,30,.38);animation:a2-fade .2s;border:0;width:100%;cursor:default}
:where(.a2) .dw{position:absolute;top:0;right:0;bottom:0;z-index:31;width:470px;padding:26px 30px;background:#fff;box-shadow:-30px 0 60px -30px rgba(21,23,30,.5);animation:a2-slide .32s cubic-bezier(.2,.9,.3,1);display:flex;flex-direction:column;gap:20px;overflow:auto}
:where(.a2) .tabs{display:flex;gap:4px;padding:4px;border-radius:16px;background:var(--paper)}
:where(.a2) .tabs button{flex:1;height:40px;border-radius:12px;font:700 16px/1 var(--fb);color:var(--mut);transition:background .2s,color .2s}
:where(.a2) .tabs button.on{background:#fff;color:var(--ink);box-shadow:0 1px 0 var(--line),0 6px 12px -8px rgba(21,23,30,.4)}
:where(.a2) .md{position:absolute;left:50%;top:50%;z-index:31;width:640px;margin:-230px 0 0 -320px;padding:30px;border-radius:30px;background:#fff;box-shadow:0 40px 80px -30px rgba(21,23,30,.6);animation:a2-pop .28s cubic-bezier(.3,1.3,.5,1)}

/* match: zip */
:where(.a2) .zp{position:relative;width:760px}
:where(.a2) .zl,:where(.a2) .zr{position:absolute;display:flex;flex-direction:column;justify-content:center;height:64px;width:340px;padding:0 22px;border-radius:18px;background:#fff;box-shadow:inset 0 0 0 1.5px var(--line2);text-align:left;transition:top .5s cubic-bezier(.4,1.3,.5,1),left .38s cubic-bezier(.4,1.4,.5,1),right .38s cubic-bezier(.4,1.4,.5,1),border-radius .3s,background .3s,box-shadow .2s,color .3s}
:where(.a2) .zl{left:0;font:800 23px/1.1 var(--fd)}
:where(.a2) .zr{right:0;font:600 20px/1.15 var(--fb)}
:where(.a2) .zl:hover,:where(.a2) .zr:hover{box-shadow:inset 0 0 0 2px var(--ink)}
:where(.a2) .zl.sel,:where(.a2) .zr.sel{box-shadow:inset 0 0 0 2.5px var(--blue);background:var(--blueT)}
:where(.a2) .zl.j{left:40px;border-radius:18px 0 0 18px;background:var(--blueT);color:var(--ink);box-shadow:inset 0 0 0 1.5px rgba(28,57,187,.42)}
:where(.a2) .zr.j{right:40px;border-radius:0 18px 18px 0;background:var(--blueT);color:var(--ink);box-shadow:inset 0 0 0 1.5px rgba(28,57,187,.42)}
:where(.a2) .zl.j.won{background:var(--gold);color:#2A1B00;box-shadow:none}
:where(.a2) .zr.j.won{background:#F2C253;color:#2A1B00;box-shadow:none}
:where(.a2) .zl.j.fix{background:var(--slate);color:#fff;box-shadow:none}
:where(.a2) .zr.j.fix{background:#7A84A0;color:#fff;box-shadow:none}
:where(.a2) .zr small{font:600 13px/1.1 var(--fb);opacity:.85;text-decoration:line-through}

/* guide caption (GB-2) */
:where(.a2) .cp{position:absolute;left:50%;bottom:44px;z-index:12;display:flex;align-items:center;gap:14px;height:72px;padding:0 26px 0 12px;border-radius:36px;background:rgba(16,18,26,.93);color:#fff;transform:translateX(-50%);box-shadow:0 24px 50px -20px rgba(0,0,0,.7);animation:a2-cap .5s cubic-bezier(.2,1.2,.3,1) both;white-space:nowrap}
:where(.a2) .cp b{font:800 26px/1 var(--fd)}
:where(.a2) .cp small{font:600 14px/1 var(--fb);color:rgba(255,255,255,.72);margin-left:6px}
:where(.a2) .cp .mk{display:grid;place-items:center;width:50px;height:50px;border-radius:50%;background:#1C39BB;flex:none}
:where(.a2) .cp .mk svg{width:40px;height:40px}
:where(.a2) .cp.e1::before{content:"";position:absolute;inset:0;border-radius:36px;box-shadow:0 0 0 0 rgba(245,162,60,.75);animation:a2-beacon 1.7s ease-out infinite}
:where(.a2) .eq{display:none;align-items:center;gap:3px;height:22px}
:where(.a2) .cp.e3 .eq{display:flex}
:where(.a2) .eq i{width:4px;height:100%;border-radius:2px;background:#F5A23C;transform-origin:50% 50%;animation:a2-eq .7s ease-in-out infinite}
:where(.a2) .eq i:nth-child(2){animation-delay:.12s}:where(.a2) .eq i:nth-child(3){animation-delay:.3s}:where(.a2) .eq i:nth-child(4){animation-delay:.2s}

/* sound keys */
:where(.a2) .sk{display:flex;align-items:center;gap:12px;height:56px;padding:0 18px 0 8px;border-radius:28px;background:#fff;box-shadow:inset 0 0 0 1.5px var(--line2);font:700 17px/1.1 var(--fb);text-align:left;transition:box-shadow .2s,transform .12s}
:where(.a2) .sk .pl{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--ink);color:#fff;flex:none}
:where(.a2) .sk .pl svg{width:16px;height:16px}
:where(.a2) .sk small{display:block;font:500 14px/1.1 var(--fb);color:var(--mut)}
:where(.a2) .sk:hover{box-shadow:inset 0 0 0 2px var(--ink)}
:where(.a2) .sk:active{transform:scale(.97)}

/* result */
:where(.a2) .halo{position:absolute;inset:-70px;border-radius:50%;background:radial-gradient(circle,rgba(232,162,26,.32),rgba(232,162,26,0) 66%);animation:a2-breathe 2.6s ease-in-out infinite;pointer-events:none}
:where(.a2) .rays{position:absolute;inset:-150px;border-radius:50%;background:repeating-conic-gradient(from 0deg,rgba(232,162,26,.26) 0 5deg,rgba(232,162,26,0) 5deg 20deg);-webkit-mask:radial-gradient(circle,rgba(0,0,0,0) 32%,#000 36%,rgba(0,0,0,0) 70%);mask:radial-gradient(circle,rgba(0,0,0,0) 32%,#000 36%,rgba(0,0,0,0) 70%);animation:a2-spin 26s linear infinite;pointer-events:none}
:where(.a2) .strand{position:relative;display:flex;align-items:center;gap:22px}
:where(.a2) .strand::before{content:"";position:absolute;left:8px;right:8px;top:50%;height:2px;margin-top:-1px;background:var(--line2)}
:where(.a2) .strand canvas{position:relative;width:20px;height:20px}
:where(.a2) .strand canvas.new{width:30px;height:30px;animation:a2-land .9s cubic-bezier(.3,1.5,.5,1) .5s both}

:where(.a2) .in1{animation:a2-in .5s cubic-bezier(.2,.9,.3,1) both}
:where(.a2) .in2{animation:a2-in .5s cubic-bezier(.2,.9,.3,1) .1s both}
:where(.a2) .in3{animation:a2-in .5s cubic-bezier(.2,.9,.3,1) .2s both}
:where(.a2) .in4{animation:a2-in .5s cubic-bezier(.2,.9,.3,1) .32s both}
:where(.a2) .shake{animation:a2-shake .4s}

@keyframes a2-pop{from{opacity:0;transform:scale(.9)}to{opacity:1;transform:scale(1)}}
@keyframes a2-bbl{from{opacity:0;transform:translateX(-50%) scale(.8)}to{opacity:1;transform:translateX(-50%) scale(1)}}
@keyframes a2-cap{from{opacity:0;transform:translateX(-50%) translateY(30px)}to{opacity:1;transform:translateX(-50%) translateY(0)}}
@keyframes a2-fade{from{opacity:0}to{opacity:1}}
@keyframes a2-slide{from{transform:translateX(60px);opacity:0}to{transform:translateX(0);opacity:1}}
@keyframes a2-in{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}
@keyframes a2-ring{from{opacity:.9;transform:scale(.9)}to{opacity:0;transform:scale(1.35)}}
@keyframes a2-breathe{0%,100%{transform:scale(.94);opacity:.8}50%{transform:scale(1.06);opacity:1}}
@keyframes a2-spin{to{transform:rotate(360deg)}}
@keyframes a2-beacon{0%{box-shadow:0 0 0 0 rgba(245,162,60,.7)}100%{box-shadow:0 0 0 22px rgba(245,162,60,0)}}
@keyframes a2-eq{0%,100%{transform:scaleY(.3)}50%{transform:scaleY(1)}}
@keyframes a2-shake{0%,100%{transform:translateX(0)}25%{transform:translateX(-7px)}75%{transform:translateX(7px)}}
@keyframes a2-land{0%{opacity:0;transform:translateY(-90px) scale(2.4)}100%{opacity:1;transform:translateY(0) scale(1)}}
@keyframes a2-dash{to{stroke-dashoffset:-40}}
@keyframes a2-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
@keyframes a2-out{to{opacity:0;transform:translateY(-10px)}}
@media (prefers-reduced-motion:reduce){.a2 *,.a2 *::before,.a2 *::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}

/* road pearls */
:where(.a2) .pn{position:relative;display:grid;place-items:center;border-radius:50%;transition:transform .3s cubic-bezier(.3,1.6,.5,1)}
:where(.a2) .pn:hover{transform:translateY(-4px) scale(1.06)}
:where(.a2) .pn:active{transform:scale(.95)}
:where(.a2) .pn canvas{display:block;border-radius:50%;filter:drop-shadow(0 10px 10px rgba(21,23,30,.28))}
:where(.a2) .pn .nm{position:absolute;left:50%;bottom:calc(100% + 12px);z-index:5;transform:translateX(-50%) translateY(6px);padding:9px 13px;border-radius:12px;background:var(--ink);color:#fff;font:800 17px/1 var(--fd);white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .2s,transform .25s cubic-bezier(.3,1.5,.5,1)}
:where(.a2) .pn .nm small{display:block;margin-top:5px;font:500 13px/1 var(--fb);opacity:.8}
:where(.a2) .pn:hover .nm,:where(.a2) .pn:focus-visible .nm{opacity:1;transform:translateX(-50%) translateY(0)}
:where(.a2) .pn.done::after{content:"";position:absolute;inset:-5px;border-radius:50%;border:3px solid var(--gold);pointer-events:none}
:where(.a2) .pn.next::before{content:"";position:absolute;inset:-14px;border-radius:50%;border:2px solid var(--blue);animation:a2-ring 1.6s ease-out infinite;pointer-events:none}
:where(.a2) .pn.lock{cursor:default}
:where(.a2) .pn.lock:hover{transform:none}
:where(.a2) .vp{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
:where(.a2) .vp line{stroke-width:3;stroke-linecap:round}
:where(.a2) .vp.next line{animation:a2-vp 1.1s ease-in-out infinite}
@keyframes a2-vp{0%,100%{opacity:.4}50%{opacity:1}}

/* answer keys (two equal choices) and the riders */
:where(.a2) .ans{display:inline-flex;align-items:center;gap:14px;width:316px;height:84px;padding:0 24px 0 12px;border-radius:42px;background:#fff;box-shadow:inset 0 0 0 2px var(--ink);font:800 34px/1 var(--fd);white-space:nowrap;transition:background .25s,color .25s,transform .25s cubic-bezier(.3,1.5,.5,1),opacity .3s,box-shadow .25s}
:where(.a2) .ans canvas{display:block;width:60px;height:60px;border-radius:50%;transition:transform .35s cubic-bezier(.3,1.7,.5,1)}
:where(.a2) .ans:hover,:where(.a2) .ans.sel{background:var(--ink);color:#fff;transform:translateY(-3px);box-shadow:inset 0 0 0 2px var(--ink),0 22px 30px -18px rgba(21,23,30,.6)}
:where(.a2) .ans:hover canvas{transform:rotate(18deg) scale(1.06)}
:where(.a2) .ans:active{transform:translateY(1px) scale(.98)}
:where(.a2) .ans.off{opacity:.18;pointer-events:none}
:where(.a2) .spr{position:absolute;left:0;bottom:0;background-repeat:no-repeat;transition:opacity .15s}
:where(.a2) .spr.hid{opacity:0}
:where(.a2) .spr.run{animation:a2-ride 4.6s cubic-bezier(.6,0,.9,.7) forwards}
@keyframes a2-ride{0%,46%{transform:translateX(0)}100%{transform:translateX(56vw)}}
:where(.a2) .hw{font:700 22px var(--fd);fill:rgba(21,23,30,.17);letter-spacing:.04em}
:where(.a2) .tabs a{flex:1;display:grid;place-items:center;height:40px;border-radius:12px;font:700 16px/1 var(--fb);color:var(--mut);transition:background .2s,color .2s}
:where(.a2) .tabs a.on{background:#fff;color:var(--ink);box-shadow:0 1px 0 var(--line),0 6px 12px -8px rgba(21,23,30,.4)}
:where(.a2) .tgl{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 15px;border-radius:20px;background:#fff;box-shadow:inset 0 0 0 1.5px var(--line2);font:700 15px/1 var(--fb);color:var(--mut);transition:background .2s,color .2s,box-shadow .2s}
:where(.a2) .tgl.on{background:var(--ink);color:#fff;box-shadow:none}
:where(.a2) .sr{display:grid;grid-template-columns:52px minmax(0,1fr) 290px 44px;align-items:center;gap:6px 18px;width:100%;padding:13px 16px;border-radius:20px;text-align:left;transition:background .2s,box-shadow .2s}
:where(.a2) .sr:hover{background:#fff;box-shadow:0 0 0 1px var(--line)}
:where(.a2) .sr.on{background:#fff;box-shadow:0 0 0 1.5px var(--ink)}
:where(.a2) .sr .pl{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--ink);color:#fff;opacity:0;transition:opacity .2s}
:where(.a2) .sr .pl svg{width:16px;height:16px}
:where(.a2) .sr:hover .pl,:where(.a2) .sr.on .pl{opacity:1}
:where(.a2) .sr.on .pl{background:var(--blue)}
:where(.a2) .gone{visibility:hidden}

/* grammar card */
:where(.a2) .ek{display:inline-flex;align-items:center;gap:12px;height:68px;padding:0 26px;border-radius:22px;background:#fff;box-shadow:inset 0 0 0 2px var(--line2);font:800 30px/1 var(--fd);transition:background .2s,color .2s,box-shadow .2s,transform .2s cubic-bezier(.3,1.5,.5,1)}
:where(.a2) .ek small{font:600 16px/1 var(--fb);color:var(--mut);transition:color .2s}
:where(.a2) .ek:hover{box-shadow:inset 0 0 0 2px var(--ink);transform:translateY(-2px)}
:where(.a2) .ek.on{background:var(--blue);color:#fff;box-shadow:none}
:where(.a2) .ek.on small{color:rgba(255,255,255,.85)}
:where(.a2) .snapin{display:inline-block;color:var(--blue);animation:a2-snap .45s cubic-bezier(.3,1.6,.5,1)}
@keyframes a2-snap{0%{opacity:0;transform:translateY(46px) scale(.7)}60%{opacity:1}100%{transform:none}}
:where(.a2) .ln2{display:flex;align-items:center;gap:14px;padding:14px 18px;border-radius:20px;background:#fff;box-shadow:0 0 0 1px var(--line)}
:where(.a2) .ln2 .fi{font:800 24px/1.15 var(--fd)}
:where(.a2) .ln2 .fi b{color:var(--blue);font-weight:800}
:where(.a2) .ln2 .en{font:500 17px/1.25 var(--fb);color:var(--mut)}

/* wave 3 ------------------------------------------------------------------ */
@keyframes a2-glow{0%{box-shadow:0 0 0 0 rgba(232,162,26,.6)}100%{box-shadow:0 0 0 20px rgba(232,162,26,0)}}
@keyframes a2-flow{to{stroke-dashoffset:-24}}
@keyframes a2-unfurl{from{opacity:0;transform:scaleX(.2)}to{opacity:1;transform:none}}
@keyframes a2-draw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
:where(.a2) .sp4.stp{--sc:var(--ink)}
:where(.a2) .sp4.stp .rd{min-width:74px}
:where(.a2) .sp4 button svg{width:18px;height:18px}
:where(.a2) .sp4 button.off{opacity:.28;pointer-events:none}

/* who is speaking: WHO-1 pin, WHO-2 light, WHO-3 thread (the stored head point of each speaker) */
:where(.a2) .who1{position:absolute;z-index:2;display:flex;align-items:center;justify-content:center;gap:3px;width:44px;height:44px;margin:-62px 0 0 -22px;border-radius:50%;background:#fff;box-shadow:0 10px 18px -6px rgba(0,0,0,.55);transition:left .5s cubic-bezier(.4,1.3,.5,1),top .5s cubic-bezier(.4,1.3,.5,1);pointer-events:none}
:where(.a2) .who1::after{content:"";position:absolute;left:50%;bottom:-5px;width:14px;height:14px;margin-left:-7px;background:#fff;border-radius:3px;transform:rotate(45deg);z-index:-1}
:where(.a2) .who1 i{width:4px;height:18px;border-radius:2px;background:var(--blue);transform:scaleY(.3)}
:where(.a2) .who1.on i{animation:a2-eq .6s ease-in-out infinite}
:where(.a2) .who1.on i:nth-child(2){animation-delay:.15s}
:where(.a2) .who1.on i:nth-child(3){animation-delay:.3s}
:where(.a2) .who2{position:absolute;inset:0;z-index:1;overflow:hidden;pointer-events:none;border-radius:28px}
:where(.a2) .who2 i{position:absolute;width:300%;height:300%;transform:translate(-50%,-50%);background:radial-gradient(circle 230px at 50% 50%,rgba(16,18,26,0) 0,rgba(16,18,26,0) 44%,rgba(16,18,26,.58) 100%);transition:left .6s cubic-bezier(.4,0,.2,1),top .6s cubic-bezier(.4,0,.2,1)}
:where(.a2) .who3{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible;z-index:4;pointer-events:none}
:where(.a2) .who3 path{fill:none;stroke-linecap:round}
:where(.a2) .who3 .u{stroke:#fff;stroke-width:6.5;opacity:.94}
:where(.a2) .who3 .o{stroke:var(--ink);stroke-width:2.5}
:where(.a2) .who3.on .o{stroke:var(--blue);stroke-dasharray:3 9;animation:a2-flow .45s linear infinite reverse}
:where(.a2) .who3 circle{fill:#fff;stroke:var(--ink);stroke-width:2.5}
:where(.a2) .who3.on circle{stroke:var(--blue)}

/* new words: WD-2 gloss lines (no cards), WD-3 lens (under the word itself) */
:where(.a2) .gl{display:grid;grid-template-columns:172px minmax(0,1fr) auto;align-items:baseline;column-gap:16px;width:100%;padding:9px 2px;border-top:1.5px solid var(--line);text-align:left}
:where(.a2) .gl b{justify-self:start;font:800 21px/1.25 var(--fd);background:linear-gradient(var(--gold),var(--gold)) 0 100%/100% 3px no-repeat;transition:background-size .25s}
:where(.a2) .gl span{font:500 18px/1.25 var(--fb);color:var(--mut)}
:where(.a2) .gl i{font:500 20px/1.25 var(--ffa);font-style:normal;color:var(--faint)}
:where(.a2) .gl:hover b,:where(.a2) .gl.on b{background-size:100% 100%}
:where(.a2) .kl .hot{color:var(--goldD)}
:where(.a2) .kl .tap{cursor:pointer}
:where(.a2) .kl .lens{position:absolute;left:0;top:calc(100% + 8px);z-index:6;display:flex;align-items:baseline;gap:10px;margin:0;padding:9px 14px;border-radius:13px;background:var(--ink);color:#fff;font:600 18px/1.2 var(--fb);letter-spacing:0;white-space:nowrap;box-shadow:0 16px 28px -14px rgba(21,23,30,.6);animation:a2-pop .2s cubic-bezier(.3,1.4,.5,1)}
:where(.a2) .kl .lens::before{content:"";position:absolute;left:18px;top:-5px;width:12px;height:12px;border-radius:2px;background:inherit;transform:rotate(45deg)}
:where(.a2) .kl .open{z-index:5}
:where(.a2) .kl .lens b{font-weight:800}
:where(.a2) .kl .lens i{font:500 19px/1.2 var(--ffa);font-style:normal;opacity:.8}
:where(.a2) .kl .lens em{font-style:normal;opacity:.86}
:where(.a2) .sp4.stp button.nx{background:var(--blue);color:#fff}
:where(.a2) .sp4.stp button.nx:hover{background:var(--blueD)}
:where(.a2) .cmw{position:relative;flex:none}

/* a note that belongs to a line hangs from that line */
:where(.a2) .ntl{position:relative;display:flex;align-items:flex-start;gap:10px;margin:2px 0 6px 86px;padding:10px 16px 11px 12px;border-radius:4px 16px 16px 16px;background:var(--goldT);color:#4A3200;font:600 16px/1.35 var(--fb);max-width:640px}
:where(.a2) .ntl::before{content:"";position:absolute;left:-19px;top:-14px;width:19px;height:30px;border-left:2px solid var(--gold);border-bottom:2px solid var(--gold);border-radius:0 0 0 12px}
:where(.a2) .ntl img{width:30px;height:30px;flex:none;object-fit:contain}

/* GB-4 hoofbeat: the tag sits on the pearl to press; a gold thread runs to it from Rakhsh's hoof */
:where(.a2) .tag4{position:absolute;z-index:44;display:flex;flex-direction:column;gap:6px;padding:13px 20px 14px 18px;border-radius:18px;background:rgba(16,18,26,.95);color:#fff;white-space:nowrap;box-shadow:0 22px 40px -18px rgba(0,0,0,.75);transform-origin:0 50%;animation:a2-unfurl .5s cubic-bezier(.3,1.5,.5,1) .45s both;pointer-events:none}
:where(.a2) .tag4::before{content:"";position:absolute;left:-6px;top:50%;width:16px;height:16px;margin-top:-8px;border-radius:3px;background:rgb(16,18,26);transform:rotate(45deg)}
:where(.a2) .tag4 b{font:800 24px/1 var(--fd)}
:where(.a2) .tag4 small{font:700 14px/1 var(--fb);color:#F5C469;letter-spacing:.02em}
:where(.a2) .hoof{position:absolute;inset:0;width:100%;height:100%;z-index:43;pointer-events:none;overflow:visible}
:where(.a2) .hoof path{fill:none;stroke:#F5A23C;stroke-width:3;stroke-linecap:round}
:where(.a2) .hoof .d{stroke-dasharray:1;stroke-dashoffset:1;animation:a2-draw .5s cubic-bezier(.4,0,.2,1) forwards}
:where(.a2) .hoof .f{stroke:#FFE2A8;stroke-dasharray:3 9;opacity:0;animation:a2-flow .45s linear infinite,a2-fade .3s .5s forwards}
@keyframes a2-enter{from{transform:translateX(-800px)}to{transform:translateX(0)}}

/* GO-3 without words: the glyph says it. An arrow goes on; a tick sends the answer for checking. */
:where(.a2) .go.bare{padding-left:0}
:where(.a2) .go.tick::after{right:56px;width:9px;height:18px;margin-top:-12px;border-top:0;border-right:4px solid var(--ch);border-bottom:4px solid var(--ch);transform:rotate(42deg)}
:where(.a2) .go.tick:hover::after{transform:translateX(11px) rotate(42deg)}
:where(.a2) .go.wait.tick::after{border-color:rgba(21,23,30,.28)}
/* EX-3: the riders, small and inked, facing out. At rest nothing else; the thread to the edge is drawn on hover. */
:where(.a2) .ext{position:relative;display:inline-flex;align-items:center;gap:7px;height:44px;margin-right:26px;flex:none;color:var(--faint);font:700 12px/1 var(--fb);letter-spacing:.12em;text-transform:uppercase;transition:color .25s}
:where(.a2) .ext::before{content:"";position:absolute;left:-32px;bottom:2px;width:0;height:2px;border-radius:1px;background:var(--ink);transition:width .4s cubic-bezier(.3,1.1,.5,1)}
:where(.a2) .ext .rd2{position:relative;display:block;width:38px;height:36px;background-repeat:no-repeat;background-size:494px 36px;opacity:.8;transition:transform .6s cubic-bezier(.3,1.1,.5,1),opacity .25s}
:where(.a2) .ext:hover,:where(.a2) .ext:focus-visible{color:var(--ink)}
:where(.a2) .ext:hover::before,:where(.a2) .ext:focus-visible::before{width:calc(100% + 32px)}
:where(.a2) .ext:hover .rd2,:where(.a2) .ext:focus-visible .rd2{transform:translateX(-8px);opacity:1}
/* EX-4: no riders at all, only their tracks leading off the page */
:where(.a2) .exh{display:inline-flex;align-items:center;gap:8px;height:52px;flex:none;color:var(--faint);font:700 13px/1 var(--fb);letter-spacing:.1em;text-transform:uppercase;transition:color .25s}
:where(.a2) .exh svg{width:78px;height:44px;overflow:visible}
:where(.a2) .exh:hover,:where(.a2) .exh:focus-visible{color:var(--ink)}
:where(.a2) .exh:hover path,:where(.a2) .exh:focus-visible path{animation:a2-vp .9s ease-in-out infinite}
:where(.a2) .exh path:nth-child(2){animation-delay:.14s}
:where(.a2) .exh path:nth-child(3){animation-delay:.28s}
:where(.a2) .exh path:nth-child(4){animation-delay:.42s}
/* the door pearl: the answer's pearl leaves its button, drops to the thread and opens onto the road */
@keyframes a2-door-yes{from{transform:translateX(calc(-15vw + 42px))}to{transform:translateX(0)}}
@keyframes a2-door-some{from{transform:translateX(calc(-15vw + 376px))}to{transform:translateX(0)}}
@keyframes a2-door-fall{0%{transform:translateY(calc(-81vh + 387px));animation-timing-function:cubic-bezier(.55,0,1,.6)}52%{transform:translateY(0);animation-timing-function:cubic-bezier(0,.5,.5,1)}68%{transform:translateY(-34px);animation-timing-function:cubic-bezier(.5,0,1,.5)}84%{transform:translateY(0);animation-timing-function:cubic-bezier(0,.5,.5,1)}92%{transform:translateY(-9px);animation-timing-function:cubic-bezier(.5,0,1,.5)}100%{transform:translateY(0)}}
@keyframes a2-door-grow{from{transform:scale(.68)}to{transform:scale(1)}}

/* LN-1 line beads: the lesson's lines are beads on one thread, and the thread ends in the forward pearl */
:where(.a2) .lnr{display:flex;align-items:center;gap:6px}
:where(.a2) .lnp{display:grid;place-items:center;width:40px;height:44px;color:var(--mut);transition:color .2s,transform .25s cubic-bezier(.3,1.6,.5,1)}
:where(.a2) .lnp svg{width:18px;height:18px}
:where(.a2) .lnp:hover{color:var(--ink);transform:translateX(-3px)}
:where(.a2) .lnp.off{opacity:.25;pointer-events:none}
:where(.a2) .lnt{position:relative;display:flex;align-items:center;gap:2px;padding:0 4px}
:where(.a2) .lnt::before{content:"";position:absolute;left:0;right:-22px;top:50%;height:2px;margin-top:-1px;border-radius:1px;background:var(--line2)}
:where(.a2) .lnb{position:relative;display:grid;place-items:center;width:28px;height:44px}
:where(.a2) .lnb::after{content:"";width:10px;height:10px;border-radius:50%;background:var(--paper);box-shadow:inset 0 0 0 2px var(--ink);transition:width .3s cubic-bezier(.3,1.6,.5,1),height .3s cubic-bezier(.3,1.6,.5,1),background .2s,box-shadow .2s,transform .2s}
:where(.a2) .lnb.seen::after{background:var(--ink)}
:where(.a2) .lnb.cur::after{width:20px;height:20px;background:var(--blue);box-shadow:0 0 0 5px rgba(28,57,187,.16)}
:where(.a2) .lnb:hover::after{transform:scale(1.25)}
:where(.a2) .lnr .go{margin-left:14px}
:where(.a2) .lnr .go::before{display:none}
:where(.a2) .go.sm{height:60px}
:where(.a2) .go.sm canvas{width:52px;height:52px}
:where(.a2) .go.sm::after{right:46px;width:11px;height:11px;margin-top:-5.5px;border-top-width:3.5px;border-right-width:3.5px}

/* wave 4: after the first lesson. One stage for every page: a thread across it, the learner's pearl on the thread. */
:where(.a2) .pth{display:flex;align-items:center}
:where(.a2) .pth span{position:relative;display:flex;align-items:center;gap:8px;font:700 14px/1 var(--fb);color:var(--faint);white-space:nowrap}
:where(.a2) .pth span::before{content:"";width:10px;height:10px;border-radius:50%;background:var(--paper);box-shadow:inset 0 0 0 2px var(--line2)}
:where(.a2) .pth span + span{margin-left:12px;padding-left:38px}
:where(.a2) .pth span + span::after{content:"";position:absolute;left:0;top:50%;width:26px;height:2px;margin-top:-1px;border-radius:1px;background:var(--line2)}
:where(.a2) .pth span.done{color:var(--mut)}
:where(.a2) .pth span.done::before{background:var(--gold);box-shadow:none}
:where(.a2) .pth span.cur{color:var(--ink)}
:where(.a2) .pth span.cur::before{background:var(--blue);box-shadow:0 0 0 4px rgba(28,57,187,.16)}
:where(.a2) .hzn{position:absolute;left:0;right:0;height:2px;background:var(--line2)}
:where(.a2) .ndl{position:absolute;left:0;height:2px;background:var(--ink);transition:width .7s cubic-bezier(.4,0,.2,1),background .3s}
:where(.a2) .flb{display:block;margin-bottom:2px;font:700 13px/1 var(--fb);letter-spacing:.09em;text-transform:uppercase;color:var(--faint)}
:where(.a2) .fin{display:block;width:100%;border:0;border-bottom:2px solid var(--line2);border-radius:0;background:none;padding:8px 0 10px;font:700 26px/1.2 var(--fd);color:var(--ink);outline:none;caret-color:var(--blue);transition:border-color .2s}
:where(.a2) .fin::placeholder{color:rgba(21,23,30,.36);font-weight:600}
:where(.a2) .fin:focus{border-color:var(--blue)}
:where(.a2) .fin.ok{border-color:var(--gold)}
:where(.a2) .pl3{display:grid;grid-template-columns:20px minmax(0,1fr) auto;align-items:center;gap:16px;width:100%;padding:15px 22px 15px 20px;border-radius:20px;background:#fff;box-shadow:inset 0 0 0 1.5px var(--line2);text-align:left;transition:box-shadow .2s,background .2s,transform .25s cubic-bezier(.3,1.5,.5,1)}
:where(.a2) .pl3:hover{transform:translateX(4px)}
:where(.a2) .pl3 i{width:16px;height:16px;border-radius:50%;box-shadow:inset 0 0 0 2px var(--line2);transition:background .2s,box-shadow .2s}
:where(.a2) .pl3 b{display:block;font:800 23px/1.1 var(--fd)}
:where(.a2) .pl3 small{display:block;margin-top:3px;font:500 15px/1.2 var(--fb);color:var(--mut)}
:where(.a2) .pl3 em{font:800 23px/1 var(--fd);font-style:normal;white-space:nowrap}
:where(.a2) .pl3 em small{display:inline;margin:0 0 0 3px;font:600 14px/1 var(--fb)}
:where(.a2) .pl3.on{background:var(--blueT);box-shadow:inset 0 0 0 2.5px var(--blue)}
:where(.a2) .pl3.on i{background:var(--blue);box-shadow:0 0 0 4px rgba(28,57,187,.16)}
:where(.a2) .fpl{display:inline-flex;align-items:center;gap:5px;height:42px;padding:0 15px 0 8px;border-radius:21px;background:#fff;box-shadow:0 6px 16px -8px rgba(0,0,0,.45);font:800 18px/1 var(--fd);color:var(--ink);white-space:nowrap}
:where(.a2) .fpl img{width:28px;height:28px;object-fit:contain}
:where(.a2) .tag4.up{transform-origin:100% 0}
:where(.a2) .tag4.up::before{left:auto;right:28px;top:-6px;margin-top:0}
:where(.a2) .tag4.rgt{transform-origin:100% 50%}
:where(.a2) .tag4.rgt::before{left:auto;right:-6px}
:where(.a2) .fin:focus-visible,:where(.a2) .inp:focus-visible{outline:none}
:where(.a2) .tag4.dn{transform-origin:100% 100%}
:where(.a2) .tag4.dn::before{left:auto;right:26px;top:auto;bottom:-6px;margin-top:0}
/* wave 5: the rolling pearl (sign-up to the road) */
@keyframes a2-pan{from{opacity:0;transform:translateX(130px)}to{opacity:1;transform:none}}
@keyframes a2-now{0%,100%{box-shadow:0 0 0 0 rgba(232,162,26,.55)}55%{box-shadow:0 0 0 16px rgba(232,162,26,0)}}
/* The runtime wraps each dynamic text in span.sc-interp. It is text, never a part: no component rule may style it. */
@keyframes a2-seat{0%,100%{box-shadow:0 0 0 0 rgba(28,57,187,.34)}55%{box-shadow:0 0 0 13px rgba(28,57,187,0)}}
@keyframes a2-kpulse{0%,100%{box-shadow:0 0 0 0 rgba(var(--c),.42)}55%{box-shadow:0 0 0 13px rgba(var(--c),0)}}
@keyframes a2-weave{to{background-position:11px 0}}
/* PRICE-1 (owner 2026-11-17, the price badge): the pearl you press keeps its arrow, and what the press costs
   is a small white badge on the pearl's shoulder, the feather and the number (a2/price.html draws it) */
:where(.a2) .pp{position:relative;display:block;flex:none;order:2;transition:transform .45s cubic-bezier(.3,1.6,.5,1)}
:where(.a2) .pp canvas{position:relative;display:block;border-radius:50%;filter:drop-shadow(0 9px 9px rgba(20,42,140,.4))}
/* The badge is as wide as its words (owner, Screen QC 2026-11-21: "the capsule is smaller than the text" — inside a
   narrow pearl an absolute badge shrank to the pearl's width and its number spilled out). */
:where(.a2) .pq{position:absolute;z-index:2;right:-17px;top:-10px;display:flex;align-items:center;gap:1px;width:max-content;height:25px;padding:0 9px 0 4px;border-radius:13px;background:#fff;box-shadow:0 4px 10px -4px rgba(10,20,80,.55),0 0 0 1px rgba(21,23,30,.07);color:var(--ink);font:800 15px/1 var(--fd);letter-spacing:-.01em;font-variant-numeric:tabular-nums;white-space:nowrap;pointer-events:none}
:where(.a2) .pq img{display:block;flex:none;width:19px;height:19px;object-fit:contain;transform:rotate(16deg)}
:where(.a2) .pq b{font-weight:inherit}
:where(.a2) .pq small{margin:0 3px 0 5px;font:700 12px/1 var(--fb);letter-spacing:.04em;color:var(--mut)}
:where(.a2) .pp.sm .pq{right:-15px;top:-9px;height:23px;padding-right:8px;font-size:14px}
:where(.a2) .pp.sm .pq img{width:17px;height:17px}
:where(.a2) .pp.lg .pq{right:-6px;top:-2px;height:30px;padding:0 11px 0 5px;border-radius:15px;font-size:18px}
:where(.a2) .pp.lg .pq img{width:23px;height:23px}
:where(.a2) .go.pay canvas,:where(.a2) .go.pay:hover canvas,:where(.a2) .go.pay:active canvas{transform:none}
:where(.a2) .go.pay:hover .pp{transform:translateX(9px)}
:where(.a2) .go.pay:active .pp{transform:translateX(9px) scale(.94)}
@keyframes a2-pin{from{opacity:0;transform:translate(110px,240px) scale(1.25)}to{opacity:1;transform:none}}
@keyframes a2-rise{from{opacity:0;transform:translateY(120px)}to{opacity:1;transform:none}}
/* ==== END A2 KIT ==== */

/* ==== A2 APP SHELL: hand-written. scripts/a2/scope_kit.py keeps everything between these markers. ==== */
/* What the app adds around the boards' kit. Edit here; scope_kit.py keeps this section as it is.
   Selectors here carry their own a2- prefix (or sit under .a2-chrome), so they need no :where(.a2).
   Every component that can be toggled with the `hidden` attribute says so below with its own
   [hidden] rule: a display rule here would otherwise beat the attribute. */

/* -- the root in the app ---------------------------------------------------------------------- */

/* The strand colour (r,g,b) a page's kicker, summary and pulses read. A page root sets its own:
   gold 196,130,10 the road · blue 28,57,187 missions and the primary action · turquoise 18,140,132
   trips · pomegranate 196,48,74 tales · ink 21,23,30 your own lessons. */
.a2{--c:28,57,187}

/* A scrolling renewed page (most pages): <div class="a2 a2-page …"> as the content block's root.
   The paper reaches the viewport's edges; base.html's <main> keeps its column (centred, at most
   1600px), its side padding and its top and bottom clearance for the corner chrome. */
body:has(.a2-page),body:has(.a2-stage){background:#F4EFE6}

/* The boards' full-viewport stage (a practice or review session, the first-run pages, the tale
   reader): <div class="a2 a2-stage …">. One viewport tall, nothing scrolls out of it, and it is
   the positioning box for the board's absolutely placed parts. <main> gives up its column and
   padding so the stage starts at the viewport's corner. Such a page normally empties
   {% block a2_chrome %} too. */
.a2-stage{position:relative;min-height:100vh;min-height:100dvh;overflow:hidden;isolation:isolate}
#af-main:has(.a2-stage){max-width:none;margin:0;padding:0}

/* The kit's .fin is a text field; the app's .fin is a Finglish run inside chat text
   (apps/chat/templatetags/chat_markup.py FIN_CLASS and its JS mirror). Inside an .a2 page a
   span.fin stays a run of text. */
:where(.a2) span.fin{display:inline;width:auto;border:0;border-radius:0;padding:0;background:none;font:inherit}
/* One-line text boxes are one line tall in Safari too. WebKit never sets a one-line <input>'s line
   shorter than its font's "normal" line (Baloo 2's is 1.6em), so a field set at 1.1-1.4 stood 2-25px
   taller in Safari than in Chrome (the Safari sweep, 2026-11-19). The box's height is therefore one
   line (1lh) plus its padding and border; a rule that moves a field's padding or border restates it. */
:where(.a2) .fin:where(input){height:calc(1lh + 20px)}
:where(.a2) .inp:where(input){height:calc(1lh + 18.5px)}

/* A pearl from templates/a2/pearl.html: drawn at its data-size through --s unless the page's own
   CSS sizes the canvas (any rule naming the canvas outweighs this one). */
:where(.a2) .a2-pl{display:block;width:var(--s,64px);height:var(--s,64px);border-radius:50%}

/* Words for a screen reader only. */
.a2-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* -- the corner chrome (templates/a2/chrome.html, mounted by base.html's {% block a2_chrome %}) - */

/* The wrapper draws nothing: its children are fixed to the viewport and inherit the kit's tokens
   and type through it. */
.a2.a2-chrome{display:contents}

/* The window button and the tutor button keep the classes of the controls they replaced
   (.af-wm-trigger, .af-chatw-launcher: position, stacking, the menu-open glass, the lift over a
   docked bar, the step aside while a sheet is open, all in alyfa.css); these rules give them the
   boards' geometry and look. Desktop: as on the boards at 1440x900 (Queue, Mission). */
.a2-chrome .a2-win{right:104px;bottom:calc(34px + var(--af-cc-lift, 0px));width:50px;height:50px;border:0;border-radius:16px;background:#fff;color:var(--ink);box-shadow:0 10px 20px -10px rgba(0,0,0,.5)}
.a2-chrome .a2-win:hover{transform:translateY(-1px);box-shadow:0 14px 24px -10px rgba(0,0,0,.5)}
.a2-chrome .a2-win svg{width:24px;height:24px}
.a2-chrome .a2-tutor{right:28px;bottom:calc(28px + var(--af-cc-lift, 0px));width:62px;height:62px;border:0;border-radius:50%;background:var(--blue);color:#fff;box-shadow:0 16px 26px -12px rgba(20,42,140,.85)}
.a2-chrome .a2-tutor:hover{background:var(--blueD)}
.a2-chrome .a2-tutor svg{width:28px;height:28px}
.a2-chrome .a2-win[hidden],.a2-chrome .a2-tutor[hidden]{display:none}
/* Alone (no tutor button: a visitor, a guest, /chat/ itself), the window button takes the corner instead of
   waiting beside an empty seat (owner, 2026-11-17, on the road at 375px: "this menu button looks so stranded"). */
.a2-chrome > .a2-win:last-child{right:28px}

/* The feather pill: partials/energy_meter.html (#af-energy-meter, which also wears .af-wm-energy
   for the landing shell) drawn as the boards' .fpl, top right, on the brand mark's centre line.
   Not a control: it takes no pointer. It steps aside while the window menu is open (alyfa.css,
   Settings and Log out take that corner) and while a sheet is open. */
.a2-chrome .fpl{position:fixed;top:calc(var(--af-wm-edge) + (var(--af-wm-size) - 42px) / 2);right:28px;z-index:60;margin:0;border:0;min-height:0;transform:none;pointer-events:none;font-variant-numeric:tabular-nums}
.a2-chrome .af-wm-energy-out{color:var(--goldD)}
.a2-chrome .fpl[hidden]{display:none}

/* The made-for-you strand's slot (#a2-made), hanging under the pill. Empty until the strand is
   built into it; empty, it is not displayed. */
.a2-made{position:fixed;top:calc(var(--af-wm-edge) + (var(--af-wm-size) + 42px) / 2 + 10px);right:28px;z-index:59;display:flex;flex-direction:column;align-items:center;gap:10px;width:42px}
.a2-made:empty,.a2-made[hidden]{display:none}
body[data-af-menu="open"] .a2-made,.af-cc-hidden .a2-made,.af-cc-hidden .a2-chrome .fpl{opacity:0;visibility:hidden;pointer-events:none}

/* The corner column: how far the window and tutor buttons reach in from the viewport's right edge,
   with 8px of air (desktop: right 104px + 50px; compact: right 88px + 48px). A control a page must
   keep from under them at the foot of a phone screen (a row link, a picture's arrows, a link in the
   last line) stops this far short of the right edge; text may pass under them. */
:root{--a2-cc-w:162px}

/* The paper band (templates/a2/chrome.html .a2-band; R5-4, FX-A 2026-11). Once the page has scrolled
   (html.a2-scrolled, static/js/a2/dock.js), a short fade in the paper colour lies under the top corner
   row (the brand mark, the made-for-you strand, the feather pill), so the page's lines never read
   through it. Not at the page's top: whatever the page lifts into that band at first view (a back link, a
   crumb) is not covered. Left out where the ground is ruled (a lesson, the conversations, the tutor's
   page: the band would cut the ground's lines), on the road (its own bar) and on the legal pages (their
   own band, solid under the sticky find bar, static/css/a2/legal.css). At every width (FIX final row 8,
   review R6-7: on a desktop shelf or Your-lessons page scrolled to its end the fixed brand mark sat on
   the page name's first letter; it was phone-only). */
.a2-band{display:block;position:fixed;left:0;right:0;top:0;z-index:45;height:calc(var(--af-wm-edge) + var(--af-wm-size) + 6px);background:linear-gradient(#F4EFE6 62%,rgba(244,239,230,0));pointer-events:none;opacity:0;transition:opacity .2s}
html.a2-scrolled .a2-band{opacity:1}
body:has(#af-main canvas[data-field]) .a2-band,body:has(.hk) .a2-band,body:has(.a2-page.lg) .a2-band{display:none}
.a2-band[hidden]{display:none}

/* The lessons-in-the-works pill (components/job_tray.html) stays beside the window button until
   the made-for-you strand replaces it: its position tokens follow the new button. */
:root:has(.a2-chrome){--af-tray-right:166px;--af-tray-bottom:34px}
.a2-chrome ~ .af-tray{--af-wm-size:50px}

/* -- the page header ----------------------------------------------------------------------------- */

/* <header class="a2-hd"><p>Kicker</p><h1>Page name</h1></header> then <p class="a2-sum">the one
   line</p>: a page has its name and ONE line, which the chosen thing's own line replaces
   (role="status" on .a2-sum when it changes in place). The kicker and a <b> in the line wear the
   strand colour (--c). */
.a2-hd{margin:0}
.a2-hd p{margin:0;font:700 12px/1 var(--fd);letter-spacing:.18em;text-transform:uppercase;color:rgb(var(--c))}
.a2-hd h1{margin:10px 0 0;font:800 clamp(38px,2.6vw + 22px,60px)/1 var(--fd);letter-spacing:-.02em;color:var(--ink);text-wrap:balance}
.a2-sum{margin:18px 0 0;max-width:700px;min-height:2.84em;font:500 19px/1.42 var(--fb);color:rgba(21,23,30,.84)}
.a2-sum b{font-weight:800;color:rgb(var(--c))}
.a2-hd[hidden],.a2-sum[hidden]{display:none}

/* -- the back link (templates/a2/back.html: the kit's .gb) ------------------------------------- */

/* As a page's first element it rides the top band beside the brand mark, centred on it (the same
   measure as alyfa.css's lifted crumb: <main>'s 5.5rem top padding and --af-wm-inline side edge),
   so the page's name starts a row higher. It steps aside while the mark's own hover pill slides
   out over that spot. */
/* A long label never runs under the top-right chrome (the feather pill and the made-for-you strand,
   or a visitor's Sign in): in the band its width is capped by what the chrome leaves
   (--a2-top-w, measured by static/js/a2/dock.js). The link is a block, its chevron an inline box, and
   the whole visible link presses. */
.a2-back{display:block;width:max-content;max-width:100%;padding:0 4px 0 0;overflow:hidden;text-overflow:ellipsis;line-height:48px}
.a2-back::before{display:inline-block;margin:0 11px 0 6px;vertical-align:middle;position:relative;top:-2px}
.a2-back:hover::before{transform:translateX(-3px) rotate(45deg)}
.a2-page > .a2-back:first-child{margin:calc(var(--af-wm-edge) + (var(--af-wm-size) - 48px) / 2 - 5.5rem) 0 20px calc(var(--af-wm-edge) + var(--af-wm-size) + 14px - var(--af-wm-inline));transition:opacity .15s}
.a2-page > .a2-back:first-child,.do-bk > .a2-back{max-width:calc(100vw - var(--af-wm-edge) - var(--af-wm-size) - 14px - var(--a2-top-w, 0px) - 12px)}
/* ...and a label that does not fit WHOLE is not shown cut: the link is the chevron alone, a 48px target,
   its label its accessible name (static/js/a2/dock.js adds .a2-back-bare and the aria-label). */
.a2-back.a2-back-bare{width:48px;min-width:48px;height:48px;padding:0;font-size:0;text-overflow:clip}
body:has(.af-wm-home:hover) .a2-page > .a2-back:first-child{opacity:0}
.a2-back[hidden]{display:none}

/* -- a refused priced press (templates/a2/price_refused.html) ------------------------------------ */

/* PRICE-1 on the grey seed pearl (board R-1): the pearl's shadow in ink, the feather greyed, the
   price in slate. One look on every page (FIX final row 6; it was static/css/a2/missions.css's). */
:where(.a2) .pp.off canvas{filter:drop-shadow(0 6px 6px rgba(21,23,30,.2))}
:where(.a2) .pp.off img{filter:grayscale(1);opacity:.45}
:where(.a2) .pp.off b{color:#5B6172;text-shadow:none}
/* its tag (price_refused.html pr_part="tag"; owner F3 16c): the gate's sentence on a small dark tag at
   the pearl, "See plans" under the sentence inside it, never a standing word. Hidden at rest; shown
   while the refused press before it is hovered or focused, while the pointer or focus is in it, or
   with .on (a tap). It lingers a moment so the pointer can reach its words. The page places it. */
:where(.a2) .pr-tag{position:absolute;z-index:44;display:block;width:262px;margin:0;padding:12px 16px 12px;border-radius:14px;background:rgba(16,18,26,.95);color:#fff;font:600 15px/1.35 var(--fb);text-align:left;white-space:normal;letter-spacing:0;opacity:0;visibility:hidden;transform:translateY(-4px);transition:opacity .2s .35s,transform .2s .35s,visibility 0s .55s}
:where(.a2) [aria-disabled="true"]:hover ~ .pr-tag,:where(.a2) [aria-disabled="true"]:focus-visible ~ .pr-tag,:where(.a2) .pr-tag:hover,:where(.a2) .pr-tag:focus-within,:where(.a2) .pr-tag.on{opacity:1;visibility:visible;transform:none;transition-delay:0s}
:where(.a2) .pr-tag[hidden]{display:none}
:where(.a2) .pr-why{display:block}
:where(.a2) .pr-ways{display:flex;flex-wrap:wrap;gap:0 18px;margin:2px 0 -10px}
:where(.a2) .pr-ways .qa{height:40px;color:#F5C469;font-size:15px;font-weight:800}
:where(.a2) .pr-ways .qa:hover,:where(.a2) .pr-ways .qa:focus-visible{color:#fff}
@media (prefers-reduced-motion:reduce){:where(.a2) .pr-tag{transition:none}}

/* -- the white sheet (templates/a2/sheet.html) ---------------------------------------------------- */

/* Anchored to what opened it: the caller places it (top/left/right on the sheet, against a
   positioned ancestor). Word filters inside are the kit's .qa. Never a full modal for a list.
   Below 700px it is a sheet from the bottom edge, over the dock and the corner buttons. */
.a2-sheet{position:absolute;z-index:41;width:min(452px,calc(100vw - 32px));max-height:calc(100vh - 120px);overflow:auto;padding:20px 22px 16px;border-radius:24px;background:#fff;color:var(--ink);box-shadow:0 30px 60px -28px rgba(10,14,40,.5),0 2px 0 rgba(21,23,30,.04);transform-origin:100% 0;animation:a2-pop .28s cubic-bezier(.3,1.4,.5,1) both}
.a2-sheet h2{margin:0 0 8px;font:800 24px/1.1 var(--fd);letter-spacing:-.01em}
.a2-sheet[hidden]{display:none}

/* -- the toast ------------------------------------------------------------------------------------ */

/* One short line, low in the middle, clear of the corner buttons. <small> under it in gold for a
   detail. */
.a2-toast{position:fixed;left:50%;bottom:calc(36px + var(--af-cc-lift, 0px));z-index:90;width:max-content;max-width:min(560px,calc(100vw - 32px));padding:12px 20px 13px;border-radius:16px;background:rgba(16,18,26,.94);color:#fff;font:700 16px/1.25 var(--fb);box-shadow:0 22px 40px -18px rgba(0,0,0,.6);transform:translateX(-50%);animation:a2-fade .25s both}
.a2-toast small{display:block;margin-top:4px;font:700 13px/1.2 var(--fb);color:#F5C469}
.a2-toast[hidden]{display:none}

/* -- the dock: the one line and the one next step ------------------------------------------------- */

/* <div class="a2-dock">…the line… …the GO…</div>. In the page's flow from 700px; below it, pinned
   to the bottom edge with no band, the corner buttons on its row where it leaves them room, else
   riding above it (the responsive block below; static/js/a2/dock.js decides). */
.a2-dock{display:flex;align-items:center;gap:24px}
.a2-dock[hidden]{display:none}

/* -- responsive (docs: SPEC §4; the boards are drawn at 1440x900) ------------------------------- */

/* Compact corners on a phone and on a short screen: smaller, still 44px and over. */
@media (max-width:699px),(orientation:portrait) and (max-width:1199px),(max-height:620px){
  .a2-chrome .a2-win{right:88px;bottom:calc(22px + var(--af-cc-lift, 0px));width:48px;height:48px;border-radius:15px}
  .a2-chrome .a2-tutor{right:20px;bottom:calc(18px + var(--af-cc-lift, 0px));width:56px;height:56px}
  .a2-chrome > .a2-win:last-child{right:20px}
  .a2-chrome .a2-tutor svg{width:26px;height:26px}
  .a2-chrome .fpl{top:calc(var(--af-wm-edge) + (var(--af-wm-size) - 38px) / 2);right:20px;height:38px;font-size:16px}
  .a2-chrome .fpl img{width:24px;height:24px}
  .a2-made{right:20px;top:calc(var(--af-wm-edge) + (var(--af-wm-size) + 38px) / 2 + 10px);width:38px}
  :root:has(.a2-chrome){--af-tray-right:148px;--af-tray-bottom:22px}
  .a2-chrome ~ .af-tray{--af-wm-size:48px}
  :root{--a2-cc-w:144px}
}
@media (max-width:699px),(orientation:portrait) and (max-width:1199px){
  .a2-sum{font-size:17px}
  .a2-sheet{position:fixed;left:8px;right:8px;top:auto;bottom:8px;z-index:85;width:auto;max-height:calc(100dvh - 96px);border-radius:22px;transform-origin:50% 100%}
  .a2-toast{bottom:calc(92px + var(--af-cc-lift, 0px))}
  /* A page with no room for a corner button on a phone says so on any of its elements (owner, 2026-11-17,
     round 2: no window button on the dialogue, grammar-card and word pages; no tutor button on the shelves):
     [data-a2-nowin] hides the window button, [data-a2-notutor] the tutor button; the other keeps the corner. */
  body:has([data-a2-nowin]) .a2-chrome .a2-win{display:none}
  body:has([data-a2-notutor]) .a2-chrome .a2-tutor{display:none}
  body:has([data-a2-notutor]) .a2-chrome .a2-win{right:20px}
  /* THE DOCK HAS NO BAND (owner, 2026-11-17, round 2, every view: "remove the background on the bottom
     buttons … the buttons don't need a background that'd cover content"): its buttons and words float over
     the page. The bar itself takes no press, only its controls do, so what shows through it stays pressable.
     A page's own bottom bar ([data-a2-dock]) draws no band either (doors.css, offer.css, plans.css,
     practice.css). */
  .a2-dock{position:fixed;left:0;right:0;bottom:0;z-index:45;gap:14px;min-height:76px;padding:10px 16px calc(10px + env(safe-area-inset-bottom, 0px))}
  .a2-dock,[data-a2-dock]{pointer-events:none}
  :is(.a2-dock,[data-a2-dock]) :is(a,button,input,select,textarea,label,summary,[tabindex],[role="button"]){pointer-events:auto}
  /* ONE dock measurement (static/js/a2/dock.js, whose header is the contract): it measures the
     visible pinned dock (a .a2-dock, or any bottom bar a page marks [data-a2-dock]) and writes its
     real height as --a2-dock-h on <html>; nothing else writes it. From it, (a) the corner buttons'
     lift and (b) the page's bottom room: scrolled to its end, the last line clears the dock and the
     lifted buttons (7rem = the buttons' 74px and air). 76px is the fallback before it measures or
     without script. */
  body:has(.a2-dock:not([hidden])),body:has([data-a2-dock]:not([hidden])){--af-cc-lift:calc(var(--a2-dock-h, calc(76px + env(safe-area-inset-bottom, 0px))) + var(--af-cc-step, 0px))}
  body:has(.a2-dock:not([hidden])) #af-main,body:has([data-a2-dock]:not([hidden])) #af-main{padding-bottom:calc(var(--a2-dock-h, calc(76px + env(safe-area-inset-bottom, 0px))) + 7rem)}
  /* THE CORNER BUTTONS ON THE DOCK'S ROW (owner, round 1: "all buttons are in one row at the very bottom";
     round 2 on the grammar card: "figure out where to place chat so it's not this up on the page"). dock.js
     measures which of three it is: html.a2-dock-free, the dock's content already ends short of the corner
     buttons (a centred small GO), so they stay down on its row; html.a2-dock-row, the dock still holds its
     content with its right edge at the corner column (--a2-dock-cc: what the visible corner buttons take
     from the right edge), so it narrows to there and they stay down beside it; neither (the dock needs the
     whole width: a long line, a worded GO beside both buttons), they ride above it as before. On the row
     the dock's content sits on the corner buttons' centre line, 46px over the bottom edge (the 72px GO in
     a 92px dock), both rising with the safe area; the page's end needs only the dock's height and air. */
  html.a2-dock-row .a2-dock,html.a2-dock-row [data-a2-dock]{right:var(--a2-dock-cc, 0px)}
  html.a2-dock-row .a2-dock,html.a2-dock-free .a2-dock{min-height:calc(92px + env(safe-area-inset-bottom, 0px))}
  html:is(.a2-dock-row,.a2-dock-free) body:has(.a2-dock:not([hidden])),html:is(.a2-dock-row,.a2-dock-free) body:has([data-a2-dock]:not([hidden])){--af-cc-lift:calc(env(safe-area-inset-bottom, 0px) + var(--af-cc-step, 0px))}
  html:is(.a2-dock-row,.a2-dock-free) body:has(.a2-dock:not([hidden])) #af-main,html:is(.a2-dock-row,.a2-dock-free) body:has([data-a2-dock]:not([hidden])) #af-main{padding-bottom:calc(var(--a2-dock-h, calc(92px + env(safe-area-inset-bottom, 0px))) + 1.5rem)}
  html:is(.a2-dock-row,.a2-dock-free) .a2-toast{bottom:calc(var(--a2-dock-h, 92px) + 12px)}
  html.a2-dock-row,html.a2-dock-free{scroll-padding-bottom:calc(var(--a2-dock-h, 92px) + 16px)}
  /* R7-T1 (owner, 2026-11-18, a trip's More highlights on the iPhone 17e: "these butons stay so up high on the page"):
     the trip page and its twin, the mission page, have no docked bar and no action row under the corner, so their
     corner buttons and "Ask about this trip" never lift: whatever lift reached the page (a measured step left on
     <html>, a dock's or an action bar's) is cancelled there. */
  body:has(.a2-page.tp.mb),body:has(.a2-page.mi.mb){--af-cc-lift:0px}
}
@media (prefers-reduced-motion:reduce){
  .a2-sheet,.a2-toast{animation:none}
  .a2-page > .a2-back:first-child{transition:none}
}
/* ==== END A2 APP SHELL ==== */
