*{box-sizing:border-box;-webkit-tap-highlight-color:transparent;margin:0;padding:0}
html,body{height:100%;overflow:hidden;background:#2F86E0;font-family:'Baloo 2','Noto Nastaliq Urdu',system-ui,sans-serif;color:#1F2A36;user-select:none;-webkit-user-select:none;touch-action:manipulation}
#bg{position:fixed;inset:0;width:100%;height:100%;display:block}
#vig{position:fixed;inset:0;pointer-events:none;z-index:1;background:radial-gradient(120% 90% at 50% 45%,transparent 60%,rgba(8,30,60,.28) 100%)}
#ui{position:fixed;inset:0;pointer-events:none;z-index:2}
.ar{font-family:'AlQalam','Amiri',serif;direction:rtl;font-weight:400;unicode-bidi:isolate}
.ur{font-family:'Noto Nastaliq Urdu','Amiri',serif;direction:rtl;line-height:2.1;font-weight:400;unicode-bidi:isolate}
.hl{color:#0B6B4F;background:#C6F1DF;border-radius:8px;padding:0 .08em}
.ur .hl{color:#33287F;background:#DCD8FB}
.en .hl{color:#8A2E12;background:#FFDCC9;padding:0 4px}
.scr{position:absolute;inset:0;display:flex;flex-direction:column;padding:calc(env(safe-area-inset-top,0px) + 10px) 12px calc(env(safe-area-inset-bottom,0px) + 12px);pointer-events:none;animation:fadein .35s ease}
.scr>*{pointer-events:auto}
.scr .pass{pointer-events:none}
.scr .pass>*{pointer-events:auto}
@keyframes fadein{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
/* top bar */
.top{display:flex;align-items:center;gap:8px;min-height:50px}
.top .grow{flex:1}
.rbtn{width:48px;height:48px;border-radius:50%;border:none;background:#fff;color:#0B3A6E;font-size:22px;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 0 rgba(11,58,110,.22),0 6px 14px rgba(11,58,110,.18);cursor:pointer;flex-shrink:0;position:relative;font-family:'Baloo 2'}
.rbtn:active{transform:translateY(3px);box-shadow:0 1px 0 rgba(11,58,110,.22)}
.rbtn svg{width:26px;height:26px}
.chip{display:inline-flex;align-items:center;gap:6px;background:#fff;border-radius:999px;height:40px;padding:0 14px;font-weight:800;font-size:16px;color:#0B3A6E;box-shadow:0 3px 0 rgba(11,58,110,.18),0 6px 14px rgba(11,58,110,.14);white-space:nowrap}
.chip.star{background:#FFD54F;color:#4A2A00}
.chip.sun{background:#FFF0D2;color:#6A3A00}
.chip svg{width:20px;height:20px;flex-shrink:0}
.chip .ur{font-size:13px;line-height:1;transform:translateY(2px)}
.title-chip{max-width:64vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;line-height:40px;min-width:0}
.logo{display:flex;align-items:center;gap:8px;height:44px;background:#fff;border-radius:999px;padding:0 16px;box-shadow:0 3px 0 rgba(11,58,110,.18),0 6px 14px rgba(11,58,110,.14)}
.logo b{font-size:21px;font-weight:800;color:#0B8A63;line-height:1}
.logo .ar{font-size:24px;color:#C2185B;line-height:1;transform:translateY(-1px)}
.bottom{margin-top:auto}
.card{background:#fff;border-radius:28px;padding:16px;box-shadow:0 8px 0 rgba(11,58,110,.12),0 18px 40px rgba(11,58,110,.2)}
/* buttons */
.btn{border:none;border-radius:20px;min-height:64px;padding:8px 16px;font-family:'Baloo 2','Noto Nastaliq Urdu',sans-serif;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:10px;border-bottom:6px solid rgba(0,0,0,.2);transition:transform .08s;width:100%;color:inherit}
.btn:active{transform:translateY(4px);border-bottom-width:2px;margin-top:4px}
.btn .bi{font-size:26px;line-height:1;width:32px;text-align:center;flex-shrink:0}
.btn .ni{display:inline-flex;width:24px;height:24px;flex-shrink:0;font-weight:800;font-size:20px;align-items:center;justify-content:center}
.btn .ni svg{width:24px;height:24px}
.bl{display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.05}
.bl b{font-weight:800;font-size:21px;letter-spacing:.2px}
.bl small.ur{font-size:16px;line-height:1.75;opacity:.92;margin-top:1px}
.btn.big{min-height:74px}.btn.big .bl b{font-size:22px}
.btn.green{background:#8BC34A;color:#163A08;border-bottom-color:#4C8A1E}
.btn.purple{background:#B39DDB;color:#25145A;border-bottom-color:#6A4FB8}
.btn.orange{background:#FFA65C;color:#4A1B04;border-bottom-color:#C45E1A}
.btn.blue{background:#90CAF9;color:#0B3A6E;border-bottom-color:#3C83C9}
.btn.yellow{background:#FFD54F;color:#4A2A00;border-bottom-color:#C08A00}
.btn.white{background:#fff;color:#0B3A6E;border:2px solid #BBDEFB;border-bottom:6px solid #90B9E6}
.btn.locked{background:#ECEAE4;color:#8A8880;border-bottom-color:#BDBAB0}
.btn.danger{color:#B71C1C}
.btn.sq{width:64px;flex:0 0 64px;padding:0}
.btn .nxw{font-size:30px;line-height:1.5}
.row{display:flex;gap:10px}
.row>*{flex:1;min-width:0}
.hint{font-size:13px;color:#5F6B76;text-align:center;margin-top:10px;font-weight:600}
/* home greeting */
.greet{display:flex;justify-content:center;margin-bottom:10px}
.bubble{background:#fff;border-radius:22px;padding:8px 18px 8px;text-align:center;box-shadow:0 4px 0 rgba(11,58,110,.12),0 8px 20px rgba(11,58,110,.15)}
.hello{display:flex;align-items:center;justify-content:center;gap:8px;flex-direction:row-reverse}
.hello .ar{font-size:27px;line-height:1.55;color:#0B6B4F}
.hello .nm{font-size:20px;font-weight:800;color:#C2185B}
.bubble .sub{font-size:14px;color:#3A4651;font-weight:600}
/* lesson tiles */
.tiles{display:flex;flex-direction:column;gap:10px}
.tile-row{display:flex;gap:10px}
.tile-row .tile{flex:1;min-width:0}
.tile{border-radius:20px;padding:20px 12px 8px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:3px solid;border-bottom-width:7px;position:relative;min-height:76px;transition:transform .1s;text-align:center}
.tile.bump{animation:bump .4s}
@keyframes bump{40%{transform:scale(1.05)}}
.tile .lang{position:absolute;left:12px;top:7px;font-family:'Baloo 2';font-size:13px;font-weight:800;opacity:.78;direction:ltr;letter-spacing:.3px;line-height:1.2}
.tile .lang{font-size:13px}
.t-ar{background:#5ED1A9;color:#033B2C;border-color:#0F8A63;min-height:132px}
.t-ar .w{font-size:72px;line-height:1.55;margin-top:2px}
.t-ur{background:#BDB2F2;color:#22155C;border-color:#6A55C9}
.t-ur .w{font-size:33px;line-height:2.15;font-weight:600}
.t-en{background:#FFB27A;color:#4A1B04;border-color:#C45E1A}
.t-en .w{font-size:31px;font-weight:800;line-height:1.6}
.tip{margin-top:10px;background:#FFF6DE;border:2px dashed #EF9F27;border-radius:16px;padding:10px 14px;font-size:17px;color:#5A3200;text-align:center;font-weight:600;line-height:1.4}
.tip .ur{font-size:18px;line-height:2.05;font-weight:400}
.tip .ar,.tip span.ar{font-size:24px}
.tip.dark{background:#0A3561;border-color:#7FB2E5;color:#E6F1FB;margin-top:8px}
/* progress */
.steps{display:flex;gap:5px;flex:1}
.steps span{flex:1;height:12px;border-radius:7px;background:rgba(255,255,255,.65);box-shadow:inset 0 1px 2px rgba(0,0,0,.08)}
.steps span.on{background:#FFD54F}
.steps span.done{background:#8BC34A}
/* quran card */
.qcard{background:#0B4C8C;color:#E6F1FB;border-radius:28px;padding:16px 14px 14px;border:4px double #FFD54F;text-align:center;box-shadow:0 8px 0 rgba(4,30,60,.3),0 18px 40px rgba(4,30,60,.3)}
.qcard .tag{display:inline-flex;gap:6px;align-items:center;background:#FFD54F;color:#4A2A00;border-radius:999px;height:34px;padding:0 16px;font-weight:800;font-size:16px;margin-bottom:6px}
.qcard .tag .ur{font-size:15px;line-height:1;transform:translateY(2px)}
.qcard .ayah{font-size:36px;line-height:2.15;color:#fff}
.qcard .ayah .hl{color:#033B2C;background:#5ED1A9;padding:0 .12em;border-radius:10px}
.qcard .tr{font-size:22px;line-height:2.15;color:#E6F1FB}
.qcard .tr .hl{background:#BDB2F2;color:#22155C;padding:0 4px}
.qcard .en{font-size:20px;color:#fff;line-height:1.45;margin-top:4px;font-weight:600}
.qcard .en .hl{background:#FFB27A;color:#4A1B04}
.qcard .ref{font-size:24px;color:#FFE38A;margin-top:8px;line-height:1.9;display:inline-block;background:rgba(255,255,255,.1);border-radius:999px;padding:0 16px}
/* questions */
.qprompt{text-align:center;font-weight:800;font-size:21px;color:#0B3A6E;margin-bottom:12px;line-height:1.25}
.qprompt .qm{margin:8px 0 2px}
.qprompt .ur{display:block;font-size:19px;font-weight:400;color:#5B47B5;line-height:1.9}
.mean{display:inline-flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:center}
.mean .e{background:#FFB27A;color:#4A1B04;border-radius:14px;height:44px;padding:0 16px;font-weight:800;font-size:21px;display:inline-flex;align-items:center}
.mean .u{background:#BDB2F2;color:#22155C;border-radius:14px;height:44px;padding:0 16px;font-family:'Noto Nastaliq Urdu';font-size:20px;display:inline-flex;align-items:center;line-height:1}
.mean .u{padding-top:6px}
.mean .a{background:#5ED1A9;color:#033B2C;border-radius:14px;padding:0 16px;font-size:34px;line-height:1.7;display:inline-flex;align-items:center}
.opts{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.opt{background:#fff;border:3px solid #BBDEFB;border-bottom-width:7px;border-radius:20px;min-height:92px;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#033B2C;position:relative;overflow:hidden;transition:transform .1s}
.opt .ar{font-size:44px;line-height:1.7}
.opt img{width:100%;height:100%;object-fit:contain;display:block}
.opt.pic{padding:4px;background:radial-gradient(circle at 50% 40%,#F3FAFF 0%,#CFE6FA 75%);aspect-ratio:1}
.opt:active{transform:scale(.96)}
.opt.right{border-color:#4C8A1E;background:#D5EDB8}
.opt.wrong{animation:wig .4s}
@keyframes wig{20%{transform:rotate(-6deg)}40%{transform:rotate(6deg)}60%{transform:rotate(-4deg)}80%{transform:rotate(3deg)}}
/* worlds */
.list{overflow-y:auto;flex:1;-webkit-overflow-scrolling:touch;padding:4px 2px 24px;margin-top:6px}
.sech{display:flex;align-items:center;justify-content:space-between;background:rgba(255,255,255,.92);border-radius:16px;padding:2px 14px;margin:8px 0 10px;box-shadow:0 3px 0 rgba(11,58,110,.12)}
.sech b{font-size:20px;font-weight:800;color:#0B3A6E}
.sech .ur{font-size:19px;color:#5B47B5}
.wgrid{display:grid;grid-template-columns:1fr 1fr;grid-auto-rows:max-content;gap:10px}
.world>*{flex-shrink:0}
.world{border-radius:22px;padding:10px;display:flex;flex-direction:column;align-items:center;gap:2px;cursor:pointer;border:3px solid var(--c);border-bottom-width:7px;background:var(--l);color:var(--d);text-align:center;position:relative;min-height:168px}
.world .ic{width:60px;height:60px;border-radius:18px;display:flex;align-items:center;justify-content:center;font-size:36px;background:#fff;box-shadow:0 3px 0 rgba(0,0,0,.08)}
.world .wt{width:100%}
.world .nm{font-weight:800;font-size:19px;line-height:1.15;margin-top:6px}
.world .ur{font-size:17px;line-height:2.05}
.world .bar{height:8px;background:rgba(255,255,255,.85);border-radius:6px;overflow:hidden;margin:2px 6px 0}
.world .bar i{display:block;height:100%;border-radius:6px;background:var(--c)}
.world .cnt{position:absolute;top:8px;right:12px;font-weight:800;font-size:16px}
.world .cnt span{opacity:.6}
/* path */
.path{position:relative;flex:1;overflow-y:auto;margin-top:6px}
.node{position:absolute;width:96px;height:96px;transform:translate(-50%,-50%);border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;border:5px solid #fff;box-shadow:0 6px 0 rgba(11,58,110,.25),0 10px 18px rgba(11,58,110,.2)}
.node .ar{font-size:30px;line-height:1.5}
.node .m{font-size:14px;font-weight:800;line-height:1;margin-top:-2px}
.node.pic{width:116px;height:132px;border-radius:26px;justify-content:flex-start;padding-top:2px}
.node.pic img{width:88px;height:74px;object-fit:contain;border-radius:14px;background:radial-gradient(circle at 50% 40%,rgba(255,255,255,.9) 0%,rgba(255,255,255,.35) 75%)}
.node.pic .ar{font-size:27px;line-height:1.35;margin-top:-4px}
.node.done{background:#7FDDBA;color:#033B2C}
.node.cur{background:#FFD54F;color:#4A2A00;animation:bob 1.2s ease-in-out infinite}
.node.lock{background:#ECEAE4;color:#9A988F}
.node.lock .lk svg{width:30px;height:30px}
.node.pic.lock{width:96px;height:96px;border-radius:50%;justify-content:center;padding:0}
.node .badge{position:absolute;top:-10px;right:-8px;background:#3E7E14;color:#fff;border-radius:50%;width:30px;height:30px;display:flex;align-items:center;justify-content:center;font-size:16px;border:3px solid #fff;font-weight:800}
@keyframes bob{50%{transform:translate(-50%,-50%) translateY(-8px) scale(1.05)}}
.node.cur{transform:translate(-50%,-50%)}
.pathsvg{position:absolute;left:0;top:0;pointer-events:none}
/* stories grid */
.cards{display:grid;grid-template-columns:1fr 1fr;grid-auto-rows:max-content;gap:12px;overflow-y:auto;padding:6px 2px 20px;margin-top:8px;flex:1;align-content:start}
.sc>*{flex-shrink:0}
.sc{border-radius:24px;padding:12px 10px;cursor:pointer;border:3px solid;border-bottom-width:7px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:2px;min-height:170px;position:relative}
.sc .em{font-size:44px;line-height:1.15}
.sc .nm{font-weight:800;font-size:17px;line-height:1.15;margin-top:4px}
.sc .ur{font-size:16px;line-height:2}
.sc .wd{font-size:24px;margin-top:auto;line-height:1.6}
.sc .seen{position:absolute;top:8px;right:10px;background:#fff;border-radius:999px;font-size:11px;padding:1px 8px;font-weight:800}
.sc.lock{filter:grayscale(.9);opacity:.7}
.sc .lockmsg{font-size:12px;font-weight:800;margin-top:auto}
.story-inv{text-align:center}
.story-inv .em{font-size:56px;line-height:1.2}
.story-inv .k{font-weight:800;font-size:16px;opacity:.85}
.story-inv .k .ur{font-size:15px}
.story-inv .t{font-weight:800;font-size:26px;line-height:1.25}
.story-inv .t2{font-size:20px}
/* story player */
.cap{background:rgba(255,255,255,.97);border-radius:28px;padding:12px 16px 10px;box-shadow:0 8px 0 rgba(11,58,110,.15),0 18px 40px rgba(11,58,110,.18);text-align:center}
.cap .ar{font-size:34px;line-height:2;color:#033B2C}
.cap .ur{font-size:21px;color:#22155C;line-height:2.15}
.cap .en{font-size:19px;color:#4A1B04;line-height:1.45;font-weight:700}
.dots{display:flex;gap:6px;justify-content:center;margin:10px 0}
.dots span{width:10px;height:10px;border-radius:5px;background:rgba(255,255,255,.75)}
.dots span.on{background:#FFB300;width:24px}
.ctrl{display:flex;gap:10px;align-items:stretch}
/* home flower bubble */
.fbub{position:fixed;z-index:5;transform:translate(-50%,-110%);background:#fff;border-radius:20px;padding:4px 16px 6px;text-align:center;box-shadow:0 6px 0 rgba(11,58,110,.15),0 10px 24px rgba(11,58,110,.2);pointer-events:none;animation:pop .35s cubic-bezier(.3,1.6,.5,1)}
.fbub .ar{font-size:34px;color:#0B6B4F;line-height:1.6}
.fbub .s{font-size:14px;font-weight:800;color:#4A1B04;line-height:1.2}
.fbub .s .ur{font-size:13px;color:#5B47B5}
@keyframes pop{from{transform:translate(-50%,-110%) scale(.3);opacity:0}}
/* modal */
.modal{position:fixed;inset:0;background:rgba(4,30,60,.45);display:flex;align-items:center;justify-content:center;padding:18px;z-index:20;pointer-events:auto;animation:fadein .25s}
.modal .card{width:100%;max-width:420px;max-height:88vh;overflow-y:auto}
.big-praise{text-align:center}
.big-praise>.ar{font-size:46px;color:#0B6B4F;line-height:1.7}
.big-praise .e{font-size:22px;font-weight:800;color:#0B3A6E;line-height:1.2}
.big-praise .e .ur{font-size:20px;color:#5B47B5}
.big-praise .sub,.sub{font-size:16px;color:#5F6B76;font-weight:600}
.learned{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;font-weight:800;color:#2E6B10;font-size:16px;margin-top:4px}
.learned .eq{font-weight:800}
.learned .eq .ur{font-size:14px;color:#5B47B5}
.story-words{font-size:26px;color:#0B6B4F;line-height:1.7}
.stars{display:flex;justify-content:center;align-items:flex-end;gap:4px;margin:6px 0}
.stars svg{width:44px;height:44px}
.stars svg.mid{width:58px;height:58px}
.stars svg.off{opacity:.22;filter:grayscale(1)}
.stars svg.on{animation:starin .5s cubic-bezier(.3,1.7,.5,1) both}
@keyframes starin{from{transform:scale(0) rotate(-40deg)}}
.go-col{display:flex;flex-direction:column;gap:10px;margin-top:12px}
/* parent */
.ph{display:flex;align-items:center;gap:10px}
.pt{font-weight:800;font-size:21px;color:#0B3A6E;line-height:1.2}
.prow{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0;border-bottom:1.5px solid #EEEDE8}
.prow label{font-weight:800;font-size:16px;color:#1F2A36}
.prow input{width:130px;border:2px solid #D3D1C7;border-radius:12px;padding:6px 10px;font-family:'Baloo 2';font-size:15px}
.seg{display:flex;background:#F1EFE8;border-radius:12px;padding:3px;gap:3px;flex-shrink:0}
.seg button{border:none;background:none;border-radius:9px;padding:6px 10px;font-family:'Baloo 2';font-weight:800;font-size:14px;color:#5F5E5A;cursor:pointer}
.seg button.on{background:#fff;color:#0B3A6E;box-shadow:0 2px 0 rgba(0,0,0,.1)}
.pw-h{margin-top:8px;font-size:13px;font-weight:800}
.pwords{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.pwords span{font-size:20px;border-radius:10px;padding:0 8px;background:#F1EFE8;color:#9A988F;line-height:1.6}
.pwords span.y{background:#C6F1DF;color:#033B2C}
.hold{position:absolute;inset:-4px;border-radius:50%;pointer-events:none}
#toast{position:fixed;left:50%;top:calc(env(safe-area-inset-top,0px) + 72px);transform:translateX(-50%) translateY(-20px);background:#0B3A6E;color:#fff;border-radius:999px;padding:8px 18px;font-weight:800;font-size:15px;opacity:0;transition:all .3s;z-index:30;pointer-events:none;text-align:center;max-width:90vw}
#toast.on{opacity:1;transform:translateX(-50%)}
#loading{position:fixed;inset:0;background:linear-gradient(#2F86E0,#8FC9F7);z-index:50;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff;transition:opacity .6s}
#loading.off{opacity:0;pointer-events:none}
.ld-t{font-size:40px;font-weight:800;margin-top:18px;text-shadow:0 4px 0 rgba(4,44,83,.25)}
.ld-ar{font-family:'AlQalam','Amiri';font-size:38px;line-height:1.6}
.ld-s{font-size:15px;opacity:.9;margin-top:4px}
.ld-flower{position:relative;width:90px;height:90px;animation:spin 3s linear infinite}
.ld-flower span{position:absolute;left:30px;top:0;width:30px;height:42px;border-radius:50%;background:#F06292;transform-origin:15px 45px}
.ld-flower span:nth-child(2){transform:rotate(72deg);background:#FFD54F}.ld-flower span:nth-child(3){transform:rotate(144deg);background:#BA68C8}.ld-flower span:nth-child(4){transform:rotate(216deg);background:#FF8A65}.ld-flower span:nth-child(5){transform:rotate(288deg);background:#4DD0E1}
.ld-flower i{position:absolute;left:31px;top:31px;width:28px;height:28px;border-radius:50%;background:#FFB300}
@keyframes spin{to{transform:rotate(360deg)}}
/* games */
.gwrap{flex:1;display:flex;flex-direction:column;min-height:0;margin-top:6px}
.gpanel{background:rgba(255,255,255,.96);border-radius:26px;padding:12px;box-shadow:0 8px 0 rgba(11,58,110,.12),0 18px 40px rgba(11,58,110,.16)}
.hud{display:flex;justify-content:space-between;align-items:center;gap:8px}
.hl2{font-weight:800;font-size:18px;color:#0B3A6E}
.prog{font-weight:800;font-size:16px;color:#0B3A6E}
.tgt{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:6px}
.tgt img{width:64px;height:64px;border-radius:16px;background:radial-gradient(circle at 50% 40%,#F3FAFF 0%,#CFE6FA 75%);object-fit:contain;flex-shrink:0}
.pairs{display:grid;grid-template-columns:1fr 1fr;gap:12px 46px;position:relative}
.pairs .pt{min-height:74px;border-radius:18px;border:3px solid;border-bottom-width:6px;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;position:relative;z-index:2;transition:transform .1s;text-align:center}
.pairs .pt.a{background:#5ED1A9;border-color:#0F8A63;color:#033B2C;font-family:'AlQalam','Amiri';font-size:38px;line-height:1.5}
.pairs .pt.m{background:#fff;border-color:#90CAF9;color:#4A1B04;font-weight:800;font-size:19px;line-height:1.1}
.pairs .pt.m .ur{font-size:17px;color:#5B47B5;line-height:1.8}
.pairs .pt.sel{transform:scale(1.06);border-color:#FFA000}
.pairs .pt.ok{background:#D5EDB8;border-color:#4C8A1E;color:#163A08}
.pairs svg{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none;overflow:visible}
.mem{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;perspective:800px}
.mem .mc{aspect-ratio:3/3.4;position:relative;cursor:pointer}
.mem .mc .in{position:absolute;inset:0;transition:transform .45s;transform-style:preserve-3d}
.mem .mc.f .in{transform:rotateY(180deg)}
.mem .mc .fa,.mem .mc .ba{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;border-radius:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:3px solid;border-bottom-width:6px;text-align:center}
.mem .mc .ba{background:#F48FB1;border-color:#C2185B}
.mem .mc .fa{transform:rotateY(180deg);background:#fff;border-color:#90CAF9}
.mem .mc .fa.a{font-family:'AlQalam','Amiri';font-size:34px;color:#033B2C;border-color:#5ED1A9;line-height:1.6}
.mem .mc .fa.m{font-weight:800;font-size:17px;color:#4A1B04;line-height:1.05;border-color:#FFB27A}
.mem .mc .fa.m .ur{font-size:15px;color:#5B47B5;line-height:1.8}
.mem .mc .fa img{width:70%;height:auto}
.mem .mc.ok .fa{background:#D5EDB8;border-color:#4C8A1E}
.bloom{position:relative;width:min(84vw,340px);aspect-ratio:1;margin:0 auto}
.bloom .pe{position:absolute;width:31%;height:31%;transform:translate(-50%,-50%);border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;border:4px solid #fff;box-shadow:0 5px 0 rgba(0,0,0,.12);font-weight:800;font-size:15px;line-height:1.05;text-align:center;transition:all .35s cubic-bezier(.3,1.6,.5,1);background:#F1EFE8;color:#4A4A45;padding:4px}
.bloom .pe .ur{font-size:16px;line-height:1.8}
.bloom .pe.u{background:#BDB2F2;color:#22155C}
.bloom .pe.e{background:#FFB27A;color:#4A1B04}
.bloom .pe.no{opacity:.35;transform:translate(-50%,-50%) scale(.8)}
.bloom .ce{position:absolute;left:50%;top:50%;width:36%;height:36%;transform:translate(-50%,-50%);border-radius:50%;background:#FFD54F;border:5px solid #FFA000;display:flex;align-items:center;justify-content:center;font-family:'AlQalam','Amiri';font-size:38px;color:#4A2A00;z-index:2;line-height:1.6}
.bloom.done .ce{animation:spinin 1s}
@keyframes spinin{50%{transform:translate(-50%,-50%) scale(1.25) rotate(20deg)}}
.slots{display:flex;flex-direction:column;gap:10px}
.slotrow{display:flex;gap:10px;align-items:center;background:#fff;border-radius:20px;padding:6px;border:3px solid #FFE082}
.slotrow img{width:88px;height:88px;border-radius:14px;background:radial-gradient(circle at 50% 40%,#F3FAFF 0%,#CFE6FA 75%);flex-shrink:0;object-fit:contain}
.slot{flex:1;height:74px;border:3px dashed #C08A00;border-radius:16px;display:flex;align-items:center;justify-content:center;font-size:14px;color:#8A5A00;font-weight:800}
.slot.ok{border-style:solid;border-color:#4C8A1E;background:#D5EDB8;font-family:'AlQalam','Amiri';font-size:36px;color:#163A08;line-height:1.6;font-weight:400}
.slot.hot{background:#FFF3C4}
.dtiles{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:12px;min-height:74px}
.dtile{background:#5ED1A9;color:#033B2C;border:3px solid #0F8A63;border-bottom-width:6px;border-radius:16px;padding:0 18px;font-family:'AlQalam','Amiri';font-size:34px;line-height:1.6;cursor:grab;touch-action:none;position:relative;z-index:3}
.dtile.drag{position:fixed;z-index:40;transform:scale(1.12) rotate(-4deg);pointer-events:none}
.dtile.gone{visibility:hidden}
.ayahbox{background:#0B4C8C;border:4px double #FFD54F;border-radius:22px;padding:12px;text-align:center;color:#E6F1FB}
.ayahbox .ayah{font-size:30px;line-height:2.2}
.ayahbox .gap{display:inline-block;min-width:80px;border-bottom:3px dashed #FFD54F;color:#FFD54F;padding:0 6px}
.ayahbox .gap.ok{border-bottom:none;background:#5ED1A9;color:#033B2C;border-radius:10px}
.ayahbox .en{font-size:18px;line-height:1.4;margin-top:4px;font-weight:600}
.ayahbox .ref{font-size:19px;color:#FFE38A;margin-top:4px;line-height:1.9}
.fly{position:fixed;z-index:45;pointer-events:none;font-weight:800;font-size:22px;color:#2E6B10;animation:flyup .9s ease forwards;transform:translate(-50%,-50%)}
@keyframes flyup{to{transform:translate(-50%,-140%);opacity:0}}
.center-msg{text-align:center;margin:auto 0}
.breakcard{text-align:center}
.breakcard .em{font-size:60px}
@media (min-width:700px){.scr{max-width:520px;left:0;right:0;margin:0 auto;animation:none}} /* centred with margins, not a transform, so pages slide in from the right place (18 Nov) */

/* the name اللہ inside English text: Urdu script, a touch larger so it reads clearly */
.alw{font-family:'Noto Nastaliq Urdu','Amiri',serif;font-size:1.14em;font-weight:600;unicode-bidi:isolate;direction:rtl;line-height:1}
.ur .alw{font-size:1em;font-weight:inherit}
/* narrow phones: step the larger text down a little so cards never crowd */
@media (max-width:380px){
  .world .nm{font-size:17px} .world .ur{font-size:15px}
}
/* Arabic and Urdu always run right-to-left (keeps ayah word order correct even with highlighted or blank words) */
.ayah,.t-ar .w,.pairs .pt.a,.mem .mc .fa.a,.ayahbox .ayah,.cap .ar,.tile .w.ar{direction:rtl;unicode-bidi:isolate}
.ayah .hl,.ayah .gap{unicode-bidi:isolate}
/* ﷺ: compact Naskh glyph so it never towers over the line */
.saw{font-family:'Amiri',serif;font-weight:400;font-size:1.05em;line-height:1;unicode-bidi:isolate;display:inline-block;vertical-align:-0.12em}
.t-ar .w.long{font-size:50px;line-height:1.7}

/* Urdu highlight: Nastaliq letters are tall and deep, so the box is a padded inline-block that wraps the whole word */
.ur .hl,.qcard .tr .hl{display:inline-block;line-height:1.55;padding:.16em .3em .34em;margin:0 .08em;border-radius:12px;vertical-align:baseline;unicode-bidi:isolate}
/* highlight on part of a word (e.g. غَنَمِ in غَنَمِیْ): no padding, so the letters stay joined */
.hl.part,.qcard .ayah .hl.part,.ur .hl.part{padding-left:0;padding-right:0;margin:0;border-radius:6px}
/* sharp HD picture glued to the 3D stage (sits above the canvas, below the vignette and the UI) */
#stand{position:fixed;left:0;top:0;transform-origin:0 0;pointer-events:none;z-index:0;opacity:0;transition:opacity .35s ease;will-change:transform;image-rendering:auto}
#stand.on{opacity:1}
/* Urdu tile: leave room under the "Urdu · اردو" label for tall two-word meanings */
.t-ur{padding-top:30px}
.t-ur .w{line-height:2.35;text-align:center}
.t-ur .w.long{font-size:26px;line-height:2.9}

/* in-word highlight: same text run, no padding or isolation, so the joined letter shapes are kept */
.ayah .hl.part,.hl.part{unicode-bidi:normal;display:inline;padding:0;margin:0;border-radius:4px}
/* Urdu highlight: extra room on top for tall Nastaliq letters such as ک and گ */
.ur .hl,.qcard .tr .hl{line-height:1.75;padding:.42em .32em .3em}
/* picture topics: locked words still show their picture (faded) with a small lock, so the child can see what is coming */
.node.pic.lock{width:116px;height:132px;border-radius:26px;justify-content:center;padding:0 0 4px}
.node.pic.lock img{opacity:.55;filter:saturate(.55)}
.node.pic.lock .m{color:#8A887F;margin-top:4px}
.node .lkb{position:absolute;top:-9px;right:-9px;width:32px;height:32px;border-radius:50%;background:#fff;color:#8A887F;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 0 rgba(0,0,0,.12)}
.node .lkb svg{width:18px;height:18px}
/* light picture background (js/bg.js) */
#mbg{position:fixed;inset:0;overflow:hidden;display:none;background:#487D34;pointer-events:none}
#mbg.on{display:block}
#mbg .mb-box{position:absolute;left:0;top:0;transition:transform .8s ease;will-change:transform}
#mbg .mb-pic{position:absolute;inset:0;width:100%;height:100%;display:block}
#mbg .mb-life,#mbg .mb-flowers{position:absolute;inset:0;overflow:hidden}
#mbg .mb-glow{position:absolute;left:28em;top:calc(40% - 46em);width:92em;height:92em;border-radius:50%;background:radial-gradient(closest-side,rgba(255,243,205,.7),rgba(255,243,205,.18) 55%,transparent);animation:mbBreathe 6s ease-in-out infinite}
#mbg[data-o=l] .mb-glow{left:52em;top:calc(40% - 22em);width:44em;height:44em}
#mbg .mb-drift{position:absolute;inset:0;animation:mbDrift linear infinite;will-change:transform}
#mbg .mb-cloud{position:absolute;left:0;display:block}
#mbg .c1{top:3.6%;width:40em}#mbg .c2{top:11%;width:27em;opacity:.95}
#mbg[data-o=l] .c1{top:4%;width:22em}#mbg[data-o=l] .c2{top:13%;width:15em}
#mbg[data-m=lesson][data-o=p] .c1{top:12%}#mbg[data-m=lesson][data-o=p] .c2{top:19%}
#mbg .mb-mote{position:absolute;width:.8em;height:.8em;border-radius:50%;background:#FFF8DC;box-shadow:0 0 .8em .3em rgba(255,248,220,.7);opacity:0;animation:mbRise linear infinite}
#mbg[data-o=l] .mb-mote{width:.4em;height:.4em}
#mbg .mb-fly{position:absolute;left:0;width:100%;height:10%;animation:mbFly linear infinite;will-change:transform}
#mbg[data-o=l] .mb-fly{font-size:.55em}
#mbg[data-m=lesson][data-o=p] .mb-fly{margin-top:16%}
#mbg .mb-bird{position:absolute;display:block}#mbg .mb-bird svg{display:block;width:100%;height:auto;overflow:visible}
#mbg .mb-wing{animation:mbFlap .42s ease-in-out infinite alternate;transform-origin:13px 7px}
#mbg .mb-wander{position:absolute;inset:0;animation:mbW1 11s ease-in-out infinite}
#mbg .mb-wander.w2{animation-name:mbW2;animation-duration:13s}
#mbg .mb-bfly{position:absolute;left:0;top:0;width:8.5em;display:block}#mbg[data-o=l] .mb-bfly{width:3.6em}
#mbg .mb-bfly svg{display:block;width:100%;height:auto}
#mbg .mb-bw{transform-origin:14px 11px;animation:mbWing .18s ease-in-out infinite alternate}
#mbg .mb-flowers{font-size:1em}#mbg[data-o=l] .mb-flowers{font-size:.5em}
#mbg .mb-fl{position:absolute;display:block;transform:translate(-50%,-100%);transform-origin:50% 100%}
#mbg .mb-fl.sway{animation:mbSway 4s ease-in-out infinite}
#mbg .mb-fl.grow{animation:mbGrow 1.3s cubic-bezier(.34,1.56,.64,1) both}
#mbg .mb-fl.pop{animation:mbPop .5s ease}
#mbg .mb-tw{position:absolute;width:.5em;height:.5em;border-radius:50%;background:#fff;box-shadow:0 0 .7em .25em rgba(255,255,255,.55);animation:mbTw 3s ease-in-out infinite}
@keyframes mbBreathe{0%,100%{transform:scale(.92);opacity:.75}50%{transform:scale(1.06);opacity:1}}
@keyframes mbDrift{from{transform:translateX(-45%)}to{transform:translateX(105%)}}
@keyframes mbRise{0%{transform:translate(0,0);opacity:0}15%{opacity:.85}85%{opacity:.85}100%{transform:translate(2.5em,-15em);opacity:0}}
@keyframes mbFly{0%{transform:translate(-14%,30%)}30%{transform:translate(30%,0)}58%{transform:translate(106%,20%)}100%{transform:translate(106%,20%)}}
@keyframes mbFlap{from{transform:scaleY(1)}to{transform:scaleY(-.55)}}
@keyframes mbWing{from{transform:scaleX(1)}to{transform:scaleX(.25)}}
@keyframes mbW1{0%,100%{transform:translate(8%,47%) rotate(-8deg)}25%{transform:translate(26%,44%) rotate(6deg)}50%{transform:translate(42%,49%) rotate(-4deg)}75%{transform:translate(22%,52%) rotate(8deg)}}
@keyframes mbW2{0%,100%{transform:translate(80%,52%) rotate(6deg)}30%{transform:translate(64%,47%) rotate(-6deg)}60%{transform:translate(75%,43.5%) rotate(4deg)}}
@keyframes mbSway{0%,100%{transform:translate(-50%,-100%) rotate(-3deg)}50%{transform:translate(-50%,-100%) rotate(3deg)}}
@keyframes mbGrow{from{transform:translate(-50%,-100%) scale(0)}to{transform:translate(-50%,-100%) scale(1)}}
@keyframes mbPop{0%,100%{transform:translate(-50%,-100%) scale(1)}40%{transform:translate(-50%,-100%) scale(1.3)}}
@keyframes mbTw{0%,100%{opacity:.25}50%{opacity:1}}
@media (prefers-reduced-motion:reduce){#mbg *{animation:none!important}}
#mbg .mb-plantglow{position:absolute;left:50%;top:66%;width:44em;height:44em;margin:-22em 0 0 -22em;border-radius:50%;background:radial-gradient(closest-side,rgba(255,240,190,.9),rgba(255,240,190,.3) 55%,transparent);animation:mbGlowIn 1.6s ease-out .6s both}
@keyframes mbGlowIn{from{opacity:0;transform:scale(.3)}to{opacity:1;transform:scale(1)}}
/* locked Quran-word nodes show the coming word, faded, with a small lock */
.node.lock:not(.pic) .ar{color:#8E8C84;opacity:.9}
.node.lock:not(.pic) .m{color:#9A988F}
.node .m{text-align:center;max-width:86px}
/* Arabic words inside tips use the Quran font */
.tip .tar{font-size:1.35em;line-height:1.6;unicode-bidi:isolate;color:inherit;vertical-align:middle}
.tip .ur .tar{font-size:1.05em}

/* lesson card: compact base sizes so the word's picture gets more room (13 Nov: the parent found the text too large and the picture too small) */
.card{padding:12px}
.tiles,.tile-row{gap:8px}
.tile{padding:18px 10px 5px;min-height:60px}
.t-ar{min-height:96px} .t-ar .w{font-size:56px;line-height:1.45} .t-ar .w.long{font-size:42px}
.t-ur{padding-top:24px} .t-ur .w{font-size:26px;line-height:2.05} .t-ur .w.long{font-size:22px;line-height:2.5}
.t-en .w{font-size:24px;line-height:1.4}
.tip{font-size:15px;padding:6px 10px;margin-top:8px;line-height:1.3}
.tip .ur{font-size:16px;line-height:1.85}
.qcard{padding:10px 10px 10px;border-radius:24px}
.qcard .tag{height:28px;font-size:14px;margin-bottom:0}
.qcard .tag .ur{font-size:13px}
.qcard .ayah{font-size:30px;line-height:1.9}
.qcard .tr{font-size:19px;line-height:1.95}
.qcard .en{font-size:17px;line-height:1.35}
.qcard .ref{font-size:19px;line-height:1.6;margin-top:4px}
.btn.green{min-height:56px}
.bottom>div[style]{margin-top:8px!important}
/* short screens: lesson cards step down further (sq1, then sq2, then sq3) so the picture always has room above them */
.sq1 .t-ar{min-height:84px} .sq1 .t-ar .w{font-size:50px;line-height:1.4} .sq1 .t-ar .w.long{font-size:38px}
.sq1 .t-ur .w{font-size:24px;line-height:1.95} .sq1 .t-ur .w.long{font-size:21px;line-height:2.4}
.sq1 .t-en .w{font-size:22px}
.sq1 .qcard .ayah{font-size:27px;line-height:1.8}
.sq1 .qcard .tr{font-size:17px;line-height:1.85}
.sq1 .qcard .en{font-size:15.5px}
.sq1 .qcard .ref{font-size:17px}
.sq1 .tip{font-size:14px;padding:5px 8px}
.sq1 .tip .ur{font-size:15px;line-height:1.75}
.sq1 .btn.green{min-height:52px}
.sq2 .t-ar{min-height:74px} .sq2 .t-ar .w{font-size:44px} .sq2 .t-ar .w.long{font-size:34px}
.sq2 .t-ur .w{font-size:22px} .sq2 .t-en .w{font-size:20px}
.sq2 .tile{padding:16px 8px 4px;min-height:54px}
.sq2 .qcard .ayah{font-size:24px;line-height:1.75}
.sq2 .qcard .tr{font-size:16px;line-height:1.75}
.sq2 .qcard .en{font-size:14.5px}
.sq2 .qcard .ref{font-size:15px;line-height:1.5}
.sq2 .tip{font-size:13px;line-height:1.25}
.sq2 .tip .ur{font-size:14px;line-height:1.7}
.sq2 .btn.green{min-height:48px}
.sq3 .t-ar{min-height:66px} .sq3 .t-ar .w{font-size:40px}
.sq3 .t-ur .w{font-size:20px} .sq3 .t-en .w{font-size:19px}
.sq3 .qcard .ayah{font-size:22px}
.sq3 .qcard .tr{font-size:15px}
.sq3 .tip{font-size:12.5px}
.sq3 .tip .ur{font-size:13px;line-height:1.65}
.node.pic .m{white-space:nowrap;max-width:100%}
.node.pic .ar{white-space:nowrap;max-width:100%}
.opt .ar{max-width:100%;text-align:center}

/* locked stories: faded, with a small lock; they open after a related word is learned */
.sc.lock{filter:grayscale(.85);opacity:.62}
.sc .lkb{position:absolute;top:8px;right:8px;width:28px;height:28px;border-radius:50%;background:#fff;color:#8A887F;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 0 rgba(0,0,0,.12)}
.sc .lkb svg{width:16px;height:16px}
.sc .lockmsg{font-size:12px;font-weight:800;margin-top:6px;line-height:1.3}
.sc .lockmsg .ur{font-size:12px;line-height:1.8}
.sc.wig{animation:wig .4s}
.node:not(.pic) .m{margin-top:4px}
/* ===== Level 2 ===== */
.l2lock .world{filter:grayscale(.75);opacity:.62}
.l2lock .world:after{content:'🔒';position:absolute;top:6px;left:8px;font-size:16px}
.l2note{background:rgba(255,255,255,.93);border-radius:16px;padding:6px 12px 8px;margin:-2px 0 10px;text-align:center;font-weight:800;font-size:14px;color:#0B3A6E;line-height:1.25;box-shadow:0 3px 0 rgba(11,58,110,.12)}
.l2note .ur{display:block;font-size:14px;line-height:2;color:#5B47B5;font-weight:400}
.l2note .bar{height:8px;border-radius:5px;background:#E3E8F0;overflow:hidden}.l2note .bar i{display:block;height:100%;background:#7CC243;border-radius:5px}
.wparts{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;direction:rtl;margin:0 0 4px}
.wpc{background:#fff;border-radius:12px;padding:0 8px 1px;text-align:center;border:2px solid #0F8A63}
.wpc .ar{font-size:22px;line-height:1.55;color:#033B2C}
.wpc .m{font-size:11px;font-weight:800;color:#4A1B04;line-height:1;direction:ltr;white-space:nowrap}.wpc .m .ur{font-size:11px;color:#22155C;line-height:1.9}
.forms{display:flex;gap:6px;direction:rtl;margin-top:8px}
.fm{flex:1;background:#E8FBF3;border:2px solid #0F8A63;border-radius:14px;text-align:center;padding:2px 2px 1px;position:relative;min-width:0}
.fm.on{background:#5ED1A9}
.fm .ar{font-size:24px;line-height:1.5;color:#033B2C}
.fm .m{font-size:11.5px;font-weight:800;color:#4A1B04;line-height:1.05;direction:ltr}
.fm .m .ur{display:block;font-size:11px;color:#22155C;line-height:1.9;font-weight:400}
.fm .fn{position:absolute;top:-8px;right:-4px;background:#FFD54F;color:#4A3500;border-radius:10px;font-weight:800;font-size:11px;padding:0 6px;direction:ltr;unicode-bidi:isolate;line-height:1.5}
.oppc{direction:ltr;display:flex;align-items:center;justify-content:center;gap:8px;margin-top:8px;background:#FFF6E0;border:2px dashed #EF9F27;border-radius:14px;padding:0 8px}
.oppc .ol{font-size:12px;font-weight:800;color:#8A4B00}.oppc .ol .ur{font-size:12px}
.oppc .ar{font-size:26px;line-height:1.6;color:#033B2C;position:relative;top:-.16em}
.oppc .om{font-size:13px;font-weight:800;color:#4A1B04}.oppc .om .ur{font-size:13px;color:#22155C}
.sq1 .fm .ar,.sq2 .fm .ar,.sq3 .fm .ar{font-size:21px} .sq2 .wpc .ar,.sq3 .wpc .ar{font-size:19px}
.sq2 .fm .m .ur,.sq3 .fm .m .ur{display:none}
.node.pic.sn{height:160px}
.node.pic.sn .ar{white-space:normal;font-size:17px;line-height:1.65;margin-top:-2px;text-align:center;padding:0 4px}
.node.pic.sn .m{white-space:normal;font-size:10.5px;line-height:1.1;padding:0 4px}
.node.pic.sn.lock{height:160px}
/* Build the sentence game */
.bmean{background:#FFF6E0;border-radius:16px;padding:4px 10px 6px;margin:6px 0 4px;text-align:center}
.bmean .ur{display:block;font-size:20px;line-height:2.1;color:#22155C}.bmean .e{font-size:16px;font-weight:800;color:#4A1B04;line-height:1.2}
.bslots{display:flex;direction:rtl;gap:8px;justify-content:center;flex-wrap:wrap;margin:12px 0}
.bslot{min-width:88px;min-height:64px;border-radius:16px;border:3px dashed #9BB5D6;display:flex;align-items:center;justify-content:center;padding:0 8px;background:rgba(255,255,255,.6)}
.bslot.ok{border:3px solid #0F8A63;background:#5ED1A9;animation:bpop .35s}
@keyframes bpop{from{transform:scale(.6)}to{transform:none}}
.bslot .ar,.btile .ar{font-size:30px;line-height:1.55;color:#033B2C}
.btiles{display:flex;direction:rtl;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:6px}
.btile{background:#fff;border:3px solid #6A55C9;border-bottom-width:6px;border-radius:16px;padding:0 14px;cursor:pointer;max-width:100%}
.btile.used{visibility:hidden}
.btile.wig{animation:wig .4s}
/* long meanings (Level 2 sentences) wrap inside their chip */
.mean .e,.mean .u{height:auto;min-height:44px;flex-wrap:wrap;justify-content:center;text-align:center;line-height:1.25;padding-top:4px;padding-bottom:4px}
.mean .u{line-height:2;padding-top:2px;padding-bottom:2px}
.mean .e{display:inline-block;line-height:1.3;padding-top:8px;padding-bottom:8px}
/* sentence word chips stay on one row and shrink on small screens */
.wparts{flex-wrap:nowrap}
.wpc{min-width:0;flex:0 1 auto}
.wpc .m{white-space:normal}
.sq1 .wpc .ar{font-size:20px;line-height:1.5} .sq1 .t-ar{min-height:0}
.sq2 .t-ar .w,.sq3 .t-ar .w{line-height:1.3}
.sq2 .wpc .m .ur,.sq3 .wpc .m .ur{display:none}
.sq3 .wpc .ar{font-size:17px}
.sq2 .forms,.sq3 .forms{margin-top:6px} .sq3 .fm .ar{font-size:19px;line-height:1.4}
.sq3 .tip{margin-top:6px;padding:4px 8px}
/* long Level 2 meanings: smaller so they fit in two lines */
.t-ur .w.long.xl{font-size:19px;line-height:2.1}
.t-en .w.xl{font-size:18px;line-height:1.3}
.sq2 .t-ur .w.long.xl,.sq3 .t-ur .w.long.xl{font-size:17px}
.sq2 .t-en .w.xl,.sq3 .t-en .w.xl{font-size:16px}
/* sentence meaning answers: one per row */
.opts.col{display:flex;flex-direction:column;gap:8px}
.opt.mopt{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:0;height:auto;padding:4px 10px 2px;text-align:center}
.opt.mopt .e{font-weight:800;font-size:17px;color:#4A1B04;line-height:1.25}
.opt.mopt .ur{font-size:17px;color:#22155C;line-height:2}
/* ===== level picker ===== */
.lvpick{flex:1;display:flex;flex-direction:column;gap:14px;padding:6px 4px 20px;overflow-y:auto;justify-content:center;max-width:520px;width:100%;margin:0 auto}
.lvq{align-self:center;background:rgba(255,255,255,.93);border-radius:18px;padding:2px 18px 0;text-align:center;font-weight:800;font-size:21px;color:#0B3A6E;line-height:1.2;box-shadow:0 3px 0 rgba(11,58,110,.12)}
.lvq .ur{display:block;font-size:17px;color:#5B47B5;line-height:2;font-weight:400}
.lv{position:relative;border-radius:28px;border:4px solid;border-bottom-width:9px;padding:12px 16px 12px 92px;cursor:pointer;min-height:150px;display:flex;flex-direction:column;justify-content:center;transition:transform .1s}
.lv:active{transform:translateY(3px)}
.lv1{background:#E3F6DA;border-color:#4C9A2A;color:#1E4D12}
.lv2{background:#DDF3EE;border-color:#0F8A63;color:#06402D}
.lv.lock{filter:grayscale(.7);opacity:.75}
.lv.wig{animation:wig .4s}
.lvbadge{position:absolute;top:-12px;left:-6px;width:40px;height:40px;border-radius:50%;background:#FFD54F;color:#4A3500;font-weight:800;font-size:22px;display:flex;align-items:center;justify-content:center;border:3px solid #fff;box-shadow:0 3px 0 rgba(0,0,0,.15)}
.lvem{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:66px;height:66px;border-radius:20px;background:#fff;font-size:40px;display:flex;align-items:center;justify-content:center;box-shadow:0 3px 0 rgba(0,0,0,.08)}
.lvt{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.lvt b{font-size:26px;line-height:1.1}
.lvt .ur{font-size:20px;line-height:1.9}
.lvs{font-weight:800;font-size:14px;opacity:.85;line-height:1.2}.lvs .ur{font-size:14px;font-weight:400;line-height:1.9}
.lvx{direction:rtl;text-align:right;margin:2px 0 4px;display:flex;flex-wrap:wrap;gap:4px 6px;align-items:center;justify-content:flex-end}
.lvx .ar{font-size:22px;line-height:1.55}.lvx i{font-style:normal;opacity:.4}
.lvbar{height:10px;border-radius:6px;background:rgba(255,255,255,.85);overflow:hidden}.lvbar i{display:block;height:100%;background:#7CC243;border-radius:6px}
.lvn{font-weight:800;font-size:13.5px;margin-top:3px;line-height:1.2}.lvn .ur{display:block;font-size:13px;font-weight:400;line-height:1.9}
/* only new words get a meaning chip; words from Level 1 are not explained again */
.wnew{align-self:center;font-size:11px;font-weight:800;color:#06402D;background:#FFD54F;border-radius:10px;padding:0 7px;line-height:1.7;white-space:nowrap}
.wnew .ur{font-size:11px;line-height:1.7}


/* complete-the-ayah answers: Quran font (Al Qalam Quran Majeed), like the ayah above them */
.opts .opt.ar{font-size:34px;line-height:1.6;padding:0 6px;text-align:center}

/* Make the sentence step (where-words) */
.scard{text-align:center}
.stag{display:inline-block;background:#FFD54F;color:#4A2A00;border-radius:999px;padding:3px 14px;font-weight:800;font-size:14px;margin-bottom:6px}
.stag .ur{font-size:13px}
.scard .bslots{margin:8px 0}
.bslot.key{border-color:#E0A100;background:#FFE58A}
.btile.hint{animation:hintp 1s ease-in-out infinite;border-color:#E0A100}
@keyframes hintp{50%{box-shadow:0 0 0 6px rgba(255,213,79,.7)}}
.sgo{visibility:hidden}.sgo.on{visibility:visible;animation:bpop .35s}
#ball2,#ballsh{position:fixed;left:0;top:0;pointer-events:none;z-index:0;will-change:transform;visibility:hidden}
#ballsh{border-radius:50%;background:radial-gradient(closest-side,rgba(50,28,8,.75),rgba(50,28,8,0))}
.scard .bslots,.scard .btiles{flex-wrap:nowrap;gap:6px}
.scard .bslot{min-width:56px;min-height:54px;padding:0 6px}
.scard .btile{padding:0 9px}
.scard .bslot .ar,.scard .btile .ar{font-size:27px}
.scard.n4 .bslot .ar,.scard.n4 .btile .ar{font-size:23px}

/* opposite pairs on one card (the first word on the right) */
.opair{display:flex;direction:rtl;gap:7px;align-items:center}
.opair .pcol{flex:1;min-width:0;display:flex;flex-direction:column;gap:7px;direction:ltr}
.opair .tile{min-height:0;padding:8px 4px 5px}
.opair .t-ar .w{font-size:40px;line-height:1.55;margin:0}
.opair .t-ur .w{font-size:23px;line-height:2.1}
.opair .t-en .w{font-size:20px;line-height:1.5;white-space:nowrap}
.opair .pmid{display:flex;flex-direction:column;align-items:center;font-weight:800;color:#8a5a00;font-size:12px;line-height:1.25;direction:ltr}
.opair .pmid .pa{font-size:26px;line-height:1}.opair .pmid .ur{font-size:12px;line-height:1.9}
.sq1 .opair .t-ar .w{font-size:36px}.sq2 .opair .t-ar .w,.sq3 .opair .t-ar .w{font-size:32px;line-height:1.45}
.sq2 .opair .t-ur .w,.sq3 .opair .t-ur .w{font-size:20px;line-height:1.95}.sq3 .opair .tile{padding:5px 4px 3px}
.node.opair .ar{font-size:20px}

/* Complete the sentence game (everyday sentences with a picture) */
.fillbox{background:#FFF8E1;border:4px solid #E0A100;border-radius:22px;padding:10px 10px 6px;text-align:center}
.fillbox .fpic{display:block;height:106px;width:auto;max-width:82%;margin:0 auto 2px;object-fit:contain}
.fillbox .fsent{font-size:32px;line-height:2;color:#4A3500;direction:rtl;unicode-bidi:isolate}
.fillbox .gap{display:inline-block;min-width:78px;border:3px dashed #E0A100;border-radius:12px;color:#B07A00;padding:0 8px;line-height:1.45;text-align:center;unicode-bidi:isolate;vertical-align:middle;background:rgba(255,255,255,.7)}
.fillbox .gap.ok{border:3px solid #0F8A63;background:#5ED1A9;color:#033B2C}
.fillbox .fmean{opacity:0;transition:opacity .4s}
.fillbox .fmean.on{opacity:1}
.fillbox .fmean>.ur{display:block;font-size:19px;line-height:2;color:#22155C}
.fillbox .fmean>.e{display:block;font-size:16px;font-weight:800;color:#4A1B04;line-height:1.25}
.ftip,.btip{display:block;font-size:13px;line-height:1.5;color:#5A4500;background:#FFF1C2;border-radius:12px;padding:3px 8px;margin-top:4px}
.ftip .ur,.btip .ur{display:block;font-size:14px;line-height:2}
.btip{text-align:center;animation:bpop .35s}
/* Everyday phrases path: wider boxes so a phrase fits on one line */
.node.ph{width:156px;height:92px;border-radius:30px}
.node.ph .ar{font-size:24px;white-space:nowrap;max-width:140px;overflow:hidden}
.node.ph .m{white-space:nowrap;max-width:140px;overflow:hidden}
.btip .tar,.ftip .tar{font-size:1.35em;line-height:1.6;unicode-bidi:isolate;vertical-align:middle}
.btip .ur .tar,.ftip .ur .tar{font-size:1.05em}
.fillbox .fsent{word-spacing:.18em}
/* an Arabic phrase inside a tip stays in one piece when it fits on the line */
.tip .tar,.btip .tar,.ftip .tar{display:inline-block}
.opts.col .opt .ar{white-space:nowrap}

/* ===== six more games (16 Nov) ===== */
.gmean{opacity:0;transition:opacity .4s;text-align:center;margin-top:2px}
.gmean.on{opacity:1}
.gmean>.ur{display:block;font-size:17px;line-height:1.9;color:#22155C}
.gmean>.e{display:block;font-size:14.5px;font-weight:800;color:#4A1B04;line-height:1.25}
.bub{position:relative;background:#fff;border:3px solid #0F8A63;border-radius:18px;padding:0 12px;display:inline-block;font-size:26px;line-height:1.85;color:#04342C;direction:rtl;unicode-bidi:isolate}
.bub.wig,.sitem.wig,.pot.wig,.otile.wig{animation:wig .4s}
/* Little shop */
.shopp{position:relative;overflow:hidden;padding-top:46px}
/* the shop: a striped awning, the customer behind a wooden counter, a plate where the thing is put, and two shelves */
.shopp .awn{position:absolute;left:0;right:0;top:0;height:28px;background:repeating-linear-gradient(90deg,#E8574A 0 30px,#FFF4E6 30px 60px)}
.shopp .awn::after{content:'';position:absolute;left:0;right:0;top:100%;height:12px;background:radial-gradient(circle at 15px 0,#E8574A 14px,transparent 15px) 0 0/60px 12px repeat-x,radial-gradient(circle at 45px 0,#FFF4E6 14px,transparent 15px) 0 0/60px 12px repeat-x;filter:drop-shadow(0 2px 1px rgba(80,30,0,.18))}
.bubrow{display:flex;justify-content:center;padding:0 2px;margin-bottom:12px}
.bubrow .bub{font-size:26px;line-height:1.8;padding:0 16px;text-align:center;border-radius:22px;max-width:100%;min-width:min(100%,230px)}
.shopp .gmean{margin-top:8px}
.bubrow .bub::before{content:'';position:absolute;left:calc(50% - 72px);top:100%;border:11px solid transparent;border-top:13px solid #0F8A63;border-bottom:0}
.bubrow .bub::after{content:'';position:absolute;left:calc(50% - 68px);top:100%;margin-top:-1px;border:7px solid transparent;border-top:9px solid #fff;border-bottom:0}
.bubrow .bub.thx{border-color:#E0A100;font-size:32px}.bubrow .bub.thx::before{border-top-color:#E0A100}
.shopq{display:flex;align-items:flex-end;justify-content:center;gap:26px;position:relative;z-index:1}
.shopq .cust{height:128px;width:auto;object-fit:contain;flex:none;margin-bottom:-26px}
.shopq .drop{position:relative;width:90px;height:72px;display:flex;align-items:flex-end;justify-content:center}
.shopq .drop::before{content:'';position:absolute;left:4px;right:4px;bottom:-7px;height:14px;border-radius:50%;background:#FFF8EE;box-shadow:0 2px 0 #D9B48A}
.shopq .drop img{position:relative;max-width:86px;max-height:64px;object-fit:contain}
.counter{position:relative;z-index:2;height:24px;margin:0 -12px;background:linear-gradient(#E3AE7E 0 6px,#C68B59 6px 100%);box-shadow:0 4px 0 #9C6B3A}
.shelf{background:#B97E4D;border-radius:14px;padding:0 8px;margin-top:8px;box-shadow:inset 0 0 0 3px #9C6B3A}
.srow{display:flex;justify-content:center;gap:9px;margin:0 -8px;padding:7px 8px 0;border-bottom:9px solid #8A5A30}
.srow:last-child{border-radius:0 0 14px 14px}
.sitem{flex:1;max-width:112px;height:80px;background:#FFF9F0;border:3px solid #E9CDA8;border-bottom-width:5px;border-radius:14px;display:flex;align-items:center;justify-content:center;cursor:pointer}
.sitem img{max-width:86px;max-height:64px;object-fit:contain}
.sitem.gone{visibility:hidden}
.sfoot{position:relative;margin-top:8px}.sfoot .hint{margin:0;line-height:24px}
.sfoot .coins{position:absolute;left:0;top:0;background:#FFF1C2;border-radius:999px;padding:0 10px;font-weight:800;color:#5A3A00;font-size:15px;line-height:24px}
.flyit{position:fixed;z-index:60;object-fit:contain;pointer-events:none;transition:transform .7s cubic-bezier(.3,.7,.4,1),opacity .7s ease .3s}
/* Put it there */
.psent{font-size:32px;line-height:1.9;color:#0F6E56;text-align:center}
.stagew{position:relative;width:100%;overflow:hidden;margin-top:2px}
.stage{position:absolute;left:50%;top:0;width:320px;height:300px;margin-left:-160px;transform-origin:50% 0;touch-action:none;user-select:none}
.stage img{position:absolute;-webkit-user-drag:none;user-select:none}
.pfloor{position:absolute;left:0;right:0;top:232px;height:14px;border-radius:50%;background:radial-gradient(closest-side,rgba(60,40,10,.18),rgba(60,40,10,0))}
.ptable{left:6px;top:116px;width:200px;z-index:2}
.pbag{left:196px;top:88px;height:150px;z-index:4}
.ptray{position:absolute;left:100px;top:252px;width:120px;height:44px;border-radius:14px;background:#FFF1C2;border:3px dashed #E0A100;z-index:1}
.pzone{position:absolute;z-index:5;border-radius:16px;border:3px dashed transparent;transition:border-color .2s,background .2s}
.stage.drag .pzone{border-color:rgba(224,161,0,.75);background:rgba(255,229,138,.25)}
.pzone.bad{animation:zbad .6s}
@keyframes zbad{0%,100%{border-color:transparent;background:transparent}30%{border-color:#E24B4A;background:rgba(226,75,74,.18)}}
.mover{cursor:grab;filter:drop-shadow(0 4px 3px rgba(0,0,0,.25))}
/* Answer back */
.talkq{display:flex;justify-content:space-between;align-items:flex-end;gap:6px;margin-top:4px}
.talkq .tp{flex:1;display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0}
.talkq .tp img{height:94px;width:auto;object-fit:contain}
.talkq .bub{font-size:22px;padding:0 10px;max-width:100%}
.talkq .bub.me{border-color:#E0A100;color:#B07A00;min-width:56px;text-align:center}
.talkq .bub.me.ok{border-color:#0F8A63;background:#D9F6EA;color:#04342C}
.tctx{font-size:13.5px;font-weight:700;color:#334;margin-top:4px;text-align:center}.tctx .ur{font-size:14px}
.tctx.big{font-size:17px;font-weight:800;color:#0B3A6E}.tctx.big .ur{display:block;font-size:16px;color:#534AB7;font-weight:400}
.sitp{display:block;height:112px;width:112px;object-fit:contain;margin:2px auto 0}
.gpanel .opts.col .opt{min-height:0;padding:0 8px}
.gpanel .opts.col .opt .ar{font-size:27px;line-height:1.75}
/* Paint it */
.pwrap{height:150px;display:flex;align-items:center;justify-content:center}
.ppic{max-height:146px;max-width:80%;object-fit:contain;filter:grayscale(1) brightness(1.12) contrast(.85);transition:filter 1.1s ease}
.ppic.col{filter:none}
.pots{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 14px;margin:6px auto 0;max-width:252px;background:#F1EEE6;border-radius:18px;padding:6px}
.pot{width:66px;height:66px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;background:#DCE3EC;box-shadow:0 3px 0 rgba(0,0,0,.08)}
.pot img{width:58px;height:58px;object-fit:contain}
.pot.right{box-shadow:0 0 0 4px #0F8A63}
/* Count with me */
.cgrid{display:grid;gap:6px;max-width:330px;margin:2px auto 0}
.ctile{position:relative;aspect-ratio:1;width:100%;max-width:62px;justify-self:center;display:flex;align-items:center;justify-content:center;background:#fff;border:2px solid #DCE6F2;border-radius:14px;cursor:pointer}
.ctile img{width:82%;height:82%;object-fit:contain}
.ctile.on{border-color:#0097A7;background:#E3F8FA}
.ctile .nb{position:absolute;right:-5px;top:-7px;min-width:22px;height:22px;border-radius:11px;background:#0097A7;color:#fff;font:700 15px/22px Amiri,serif;display:none}
.ctile.on .nb{display:block}
/* Which one is different */
.oddg{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:6px}
.oddg.six{grid-template-columns:repeat(3,1fr);gap:7px}
/* the picture sits in the middle of its tile; when the names show, it moves up a little (same size) and the name appears under it */
.otile{position:relative;height:142px;background:#fff;border:3px solid #9BB5D6;border-bottom-width:6px;border-radius:18px;cursor:pointer;overflow:hidden}
.otile img{position:absolute;left:50%;top:50%;width:auto;height:auto;max-height:96px;max-width:88%;object-fit:contain;transform:translate(-50%,-50%);transition:transform .45s ease}
.oddg.six .otile img{max-height:90px}
.oddg.named .otile img{transform:translate(-50%,calc(-50% - 19px))}
.otile .oname{position:absolute;left:3%;right:3%;bottom:0;text-align:center;font-size:21px;line-height:1.75;color:#04342C;opacity:0;white-space:nowrap;transition:opacity .45s}
.oddg.named .oname{opacity:1}
.otile.right{border-color:#0F8A63;background:#D9F6EA}
.obadge{display:inline-block;background:#FFD54F;color:#4A2A00;border-radius:999px;padding:1px 12px;font-weight:800;font-size:14px}
.bub .nw{white-space:nowrap}

/* ===== Languages in lessons (Parent corner, 16 Nov) ===== */
/* No Urdu: every Urdu line, tile and label is hidden */
body.no-ur .ur,body.no-ur .u,body.no-ur .t-ur{display:none !important}
/* Arabic only: meanings are blurred with an eye; one tap shows them */
body.ar-only .mn:not(.shown){position:relative;cursor:pointer}
body.ar-only .mn:not(.shown),body.ar-only .mn:not(.shown) *{color:transparent !important;text-shadow:0 0 11px rgba(30,30,70,.6) !important}
body.ar-only .mn:not(.shown) .hl{background:rgba(255,255,255,.25) !important}
body.ar-only .mn:not(.shown)::after{content:'👁';position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-size:22px;line-height:1;color:#333 !important;text-shadow:none !important;pointer-events:none;background:rgba(255,255,255,.85);border-radius:999px;padding:4px 7px}
body.ar-only .tgt .mean{display:none}
.qpic{display:flex;justify-content:center;margin-top:4px}
.qpic img{height:104px;width:auto;max-width:90%;object-fit:contain}
.pairs .pt.m.pic img,.mem .fa.pic img{max-height:58px;max-width:88%;object-fit:contain}

/* ===== English corner (16 Nov): English only, no Urdu ===== */
.lv3{background:#FFF1E4;border-color:#E8772E;color:#4A1B04;min-height:116px}
.lv3 .lvbadge{background:#FFB27A}
.elist{display:flex;flex-direction:column;gap:10px;max-width:520px;width:100%;margin:0 auto;padding:6px 4px 20px;box-sizing:border-box;overflow-y:auto}
.enode{position:relative;display:flex;align-items:center;gap:12px;background:#fff;border:3px solid #F2C9A5;border-bottom-width:6px;border-radius:20px;padding:8px 12px;cursor:pointer}
.enode img{width:88px;height:64px;object-fit:contain;flex:none}
.enode .es{font-size:21px;font-weight:800;color:#4A1B04;line-height:1.25}
.enode.cur{border-color:#E8772E;box-shadow:0 0 0 4px rgba(232,119,46,.25)}
.enode.done{border-color:#8BC34A}
.enode.lock{opacity:.55;filter:grayscale(.6)}
.enode .badge{position:absolute;top:-10px;right:-8px;background:#3E7E14;color:#fff;border-radius:50%;width:28px;height:28px;display:flex;align-items:center;justify-content:center;font-size:15px}
.enode .lkb{position:absolute;top:-9px;right:-9px;width:30px;height:30px;border-radius:50%;background:#fff;color:#8A887F;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 0 rgba(0,0,0,.1)}
.enode .lkb svg{width:16px;height:16px}
.ekey{color:#C2561A;background:#FFE3C2;border-radius:10px;padding:0 6px}
.ecard{text-align:center}
.etag{display:inline-block;background:#FFE3C2;color:#7A3A00;border-radius:999px;padding:2px 14px;font-weight:800;font-size:14px}
.esent{font-size:32px;font-weight:800;color:#4A1B04;line-height:1.3;margin-top:6px}
.esent.sm{font-size:23px;margin-top:4px}
.echips{display:flex;gap:6px;justify-content:center;margin-top:8px;flex-wrap:wrap}
.echip{border-radius:999px;padding:2px 12px;font-weight:800;font-size:14px;background:#E1EEFC;color:#042C53}
.echip.y{background:#FFF1C2;color:#5A3A00}
.etip{font-size:14px;color:#5A3200;background:#FFF6DE;border:2px dashed #EF9F27;border-radius:14px;padding:5px 10px;margin-top:8px;font-weight:600}
.opts.g2{grid-template-columns:1fr 1fr}
.opt.eopt{font-size:22px;font-weight:800;color:#0B3A6E;padding:8px 4px;min-height:0;font-family:'Baloo 2',sans-serif}
.epic{max-height:146px;max-width:86%;object-fit:contain}
/* Same in Arabic! */
.brg{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}
.bl2,.br2{position:relative;border-radius:16px;border:3px solid;border-bottom-width:6px;min-height:64px;display:flex;align-items:center;justify-content:center;gap:6px;cursor:pointer;background:#fff}
.bl2{border-color:#F2C9A5;color:#4A1B04;font-weight:800;font-size:18px;padding:0 4px}
.bl2 img{width:54px;height:40px;object-fit:contain;flex:none}
.br2{border-color:#5ED1A9;background:#E6F8F0;color:#033B2C;font-size:30px;line-height:1.6}
.bl2.sel,.br2.sel{box-shadow:0 0 0 4px rgba(55,138,221,.45)}
.bl2.ok,.br2.ok{border-color:#0F8A63;background:#D9F6EA}
.bl2.ok::after,.br2.ok::after{content:attr(data-em);position:absolute;top:-10px;right:-6px;font-size:18px}
.bl2.wig,.br2.wig{animation:wig .4s}
.tile .lang .ur{font-family:inherit;line-height:inherit;font-size:inherit;font-weight:inherit;direction:inherit}
body.no-ur .urx{display:none !important}
.prow.lrow{display:block}.prow.lrow .seg{margin-top:6px;display:flex}.prow.lrow .seg button{flex:1}

/* more choices in the games (16 Nov): 2 x 2 answers, 4 x 2 memory cards, 8 bloom petals */
.gpanel .opts.g2 .opt:not(.eopt){min-height:78px}
.mem.m4{grid-template-columns:repeat(4,1fr);gap:7px}
.mem.m4 .mc .fa.m{font-size:15.5px}.mem.m4 .mc .fa.m .ur{font-size:14px}
.bloom.b8{width:min(88vw,350px)}
.bloom.b8 .pe{width:27%;height:27%;font-size:14px}.bloom.b8 .pe .ur{font-size:15px}
.bloom.b8 .ce{width:33%;height:33%}
.slots.g4{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.slots.g4 .slotrow{flex-direction:column;gap:6px;padding:6px}
.slots.g4 .slotrow img{width:100%;height:88px}
.slots.g4 .slot{flex:none;width:100%;height:54px}
.slots.g4 .slot.ok{font-size:30px}

/* ---------- River hop (16 Nov): a painted river seen from above, behind the game panel ---------- */
#rv{position:fixed;inset:0;overflow:hidden;background:#5FA83A;pointer-events:none}
#rv .rv-ground{position:absolute;left:0;width:100%;background-size:420px 420px;background-position:0 1600px}
#rv .rv-world{position:absolute;left:0;top:0;width:100%;transition:transform .9s cubic-bezier(.45,.05,.3,1);will-change:transform}
#rv .rv-water{position:absolute;left:0;width:100%;background-size:420px 420px;overflow:hidden}
#rv .rv-flow{position:absolute;left:0;top:0;bottom:0;width:calc(100% + 420px);background:url(../img/river/streaks.webp) 0 0/420px 420px;opacity:.75;animation:rvFlow 30s linear infinite;will-change:transform}
@keyframes rvFlow{to{transform:translate3d(-420px,0,0)}}
#rv .rv-gl{position:absolute;width:6px;height:6px;border-radius:50%;background:#fff;box-shadow:0 0 8px 3px rgba(255,255,255,.7);opacity:0;animation:rvGl 4s ease-in-out infinite}
@keyframes rvGl{0%,100%{opacity:0;transform:scale(.4)}45%{opacity:.85;transform:scale(1)}60%{opacity:0}}
#rv .rv-bank{position:absolute;left:0;width:100%;background-repeat:repeat-x;background-size:420px 300px}
#rv .rv-deco img{position:absolute;width:0;height:auto;transform:translate(-50%,-50%)}
#rv .rv-pad{animation:rvPad 7s ease-in-out infinite}
@keyframes rvPad{0%,100%{transform:translate(-50%,-50%) rotate(-5deg)}50%{transform:translate(-50%,-46%) rotate(6deg)}}
#rv .rv-st{position:absolute;width:104px;height:86px}
#rv .rv-st img{position:absolute;inset:0;width:100%;height:100%}
#rv .rv-st .ar{position:absolute;left:5px;right:5px;top:37px;transform:translateY(-52%);text-align:center;font-size:36px;line-height:1.6;color:#14201B;white-space:nowrap;text-shadow:0 1px 0 rgba(255,255,255,.55);direction:rtl;unicode-bidi:isolate}
#rv .rv-st.pop{animation:rvUp .55s cubic-bezier(.3,1.5,.5,1) both}
@keyframes rvUp{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
#rv .rv-st.dip{animation:rvDip .6s ease}
@keyframes rvDip{25%{transform:translateY(7px) rotate(-3deg)}60%{transform:translateY(-2px) rotate(2deg)}}
#rv .rv-st.bob{animation:rvBob .5s ease}
@keyframes rvBob{40%{transform:translateY(5px)}}
#rv .rv-st.sink{animation:rvSink .9s ease-in forwards}
@keyframes rvSink{to{opacity:0;transform:translateY(16px)}}
#rv .rv-ring{position:absolute;width:80px;height:40px;border:3px solid rgba(255,255,255,.85);border-radius:50%;animation:rvRing .9s ease-out forwards;pointer-events:none}
@keyframes rvRing{from{transform:scale(.45);opacity:.9}to{transform:scale(1.5);opacity:0}}
#rv .rv-ball{position:absolute;left:50%;top:0;width:44px;height:44px;z-index:3;filter:drop-shadow(0 1px 1px rgba(0,0,0,.25))}
#rv .rv-shadow{position:absolute;left:50%;top:0;width:37px;height:12px;border-radius:50%;background:rgba(10,40,30,.55);filter:blur(2px);z-index:2;transform-origin:50% 50%}
#rv .rv-goal{position:absolute;left:0;width:100%;height:0}
#rv .rv-goal img{position:absolute;width:30px;height:30px;animation:rvFl .6s cubic-bezier(.3,1.6,.5,1) both}
@keyframes rvFl{from{transform:scale(0)}to{transform:scale(1)}}
/* Same in Arabic! (16 Nov, the parent asked for a bigger font and picture in the English boxes): picture on top, words under it */
.bl2{flex-direction:column;gap:0;padding:6px 4px 5px;font-size:23px;line-height:1.15}
.bl2 img{width:94%;height:64px;object-fit:contain}
.br2{font-size:40px}

/* ================= MATHS (17 Nov): number tricks for + − × ÷ ================= */
.ltr{direction:ltr;unicode-bidi:isolate;display:inline-block}
.btn.mxbtn{background:#7ED9C4;color:#0B4A3D;border-bottom-color:#2E9C84}
.w1{--c:#4C9A2A;--l:#E3F6DA;--d:#1E4D12}.w2{--c:#E2725B;--l:#FFE9E3;--d:#6B1E0E}.w3{--c:#3F6FD8;--l:#E7EEFF;--d:#0E2A6B}.w4{--c:#8E5BD8;--l:#F3E8FF;--d:#3A1670}
.mfr{width:var(--s,26px);height:var(--s,26px);object-fit:contain;display:inline-block;vertical-align:middle}
.mfr.hl{filter:drop-shadow(0 0 4px #FFC400) drop-shadow(0 0 2px #FFC400)}
.mfr.gone{opacity:.12;filter:grayscale(1)}
.mfr.in{animation:mxpop .4s ease}
@keyframes mxpop{from{transform:scale(0) translateY(-20px)}70%{transform:scale(1.2)}to{transform:none}}
/* Maths page */
.mxlist{display:flex;flex-direction:column;gap:12px}
.mxw{background:#fff;border:3px solid var(--c);border-bottom-width:7px;border-radius:24px;padding:10px 14px 10px 84px;position:relative;cursor:pointer;min-height:104px}
.mxw .em{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:60px;height:60px;border-radius:18px;background:var(--l);color:var(--c);font-size:46px;font-weight:800;display:flex;align-items:center;justify-content:center;line-height:1}
.mxw .tt{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.mxw .tt b{font-size:21px;font-weight:800;color:var(--d);line-height:1.2}
.mxw .tt .ur{font-size:19px;color:var(--c);line-height:1.8}
.mxw .s{font-size:12.5px;color:#5F6B76;font-weight:600;line-height:1.3;margin-top:-2px}
.mxw .bar{height:10px;border-radius:6px;background:var(--l);margin-top:7px;overflow:hidden}
.mxw .bar i{display:block;height:100%;background:var(--c);border-radius:6px}
.mxw .n{font-size:12px;font-weight:800;color:var(--d);margin-top:2px}
.mxcards{overflow:visible;flex:none;margin-top:0;padding:0 2px 10px}
.cards .mxsech{grid-column:1/-1;margin:10px 0 0}
.mxlist .sech{margin:6px 0 0}
/* trick path */
.mxpath{display:flex;flex-direction:column;gap:12px}
.mxn{background:#fff;border:3px solid #DDD6EE;border-bottom-width:6px;border-radius:22px;padding:8px 12px 8px 64px;position:relative;cursor:pointer;min-height:84px}
.mxn .no{position:absolute;left:10px;top:50%;transform:translateY(-50%);width:42px;height:42px;border-radius:50%;background:var(--l);color:var(--d);font-weight:800;font-size:22px;display:flex;align-items:center;justify-content:center;border:3px solid var(--c)}
.mxn .tx b{display:block;font-size:18px;font-weight:800;color:var(--d);line-height:1.25}
.mxn .tx .ur{display:block;font-size:16px;color:#5B47B5;line-height:1.9}
.mxn .exq{font-size:17px;font-weight:800;color:#5F6B76;direction:ltr;text-align:left}
.mxn .exq i{font-style:normal;color:#0F8A63}
.mxn.done{border-color:var(--c);background:var(--l)}
.mxn.done .no{background:var(--c);color:#fff}
.mxn.cur{border-color:#FFC400;animation:hintp 1.6s infinite}
.mxn.lock{opacity:.6;filter:grayscale(.7)}
.mxn .badge{position:absolute;top:-10px;right:-6px;background:#fff;border-radius:999px;padding:0 6px;font-size:12px;box-shadow:0 2px 0 rgba(0,0,0,.12)}
.mxn .lkb{position:absolute;top:-9px;right:-9px;width:30px;height:30px;border-radius:50%;background:#fff;color:#8A887F;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 0 rgba(0,0,0,.1)}
/* lesson */
.mxb{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;padding:6px 0 4px;-webkit-overflow-scrolling:touch}
.mxb>.card{margin-top:auto}
.mxcard{border-top:6px solid var(--c);padding:12px 12px 14px;text-align:center}
.mxtag{display:inline-block;background:var(--l);color:var(--d);font-weight:800;font-size:16px;border-radius:999px;padding:2px 14px;line-height:1.5}
.mxtag .ur{font-size:15px;line-height:1.6}
.mxtu{display:block;font-size:19px;color:#5B47B5;line-height:2.3;margin-top:2px}
.mxeq{font-size:40px;font-weight:800;color:#0B3A6E;direction:ltr;unicode-bidi:isolate;line-height:1.3;margin:2px 0;white-space:nowrap}
.mxeq i{font-style:normal;color:#0F8A63;background:#DFF5E1;border-radius:12px;padding:0 10px}
.mxeq .qm,.mxeq .qbox{display:inline-block;min-width:1.2em;color:#B26A00;background:#FFF3C4;border:3px dashed #F0B400;border-radius:12px;padding:0 10px;line-height:1.15}
.mxeq .qbox{color:#8E5BD8;background:#F3E8FF;border-color:#8E5BD8}
.mxeq.sm{font-size:26px}
.mxpre{font-size:19px;font-weight:800;color:#5F6B76;direction:ltr}
.mxv{display:flex;flex-direction:column;align-items:center;margin:6px 0 4px;gap:4px}
.mxcard .hide,.gpanel .hide{display:none !important}
.mxs{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px 6px;margin-top:6px;direction:ltr}
.mxs .sp{background:#F2EDFF;color:#3A1670;border-radius:12px;padding:2px 10px;font-weight:800;font-size:18px;line-height:1.5}
.mxs .sp.end{background:#DFF5E1;color:#0F6B3F;font-size:22px}
.mxs .ar2{color:#8E5BD8;font-size:18px}
.mxtip{background:#FFF8E1;border-radius:16px;padding:7px 12px;font-size:16px;color:#4A3300;font-weight:700;line-height:1.35;margin-top:10px}
.mxtip .ur{display:block;font-size:17px;line-height:2.3;color:#5B47B5;font-weight:400;margin-top:4px}
.mxgo{width:100%;margin-top:10px}
.mxopts{margin-top:8px}
.opt.mxo{min-height:66px;font-size:32px;font-weight:800;color:#0B3A6E}
.opts.mxo4{grid-template-columns:repeat(4,1fr)}
.opts.mxo4 .opt.mxo{min-height:60px;font-size:28px}
.mxhint{display:block;margin:10px auto 0;background:#FFF3C4;border:2px solid #F0B400;border-bottom-width:4px;color:#6B4A00;border-radius:999px;font-family:inherit;font-weight:800;font-size:16px;padding:4px 16px;cursor:pointer}
.mxhint .ur{font-size:15px;line-height:1.7}
.mxcheer{font-size:28px !important}
.mxcheer .ur{display:block;font-size:22px !important}
.mxlearned{background:#F3E8FF;border-radius:16px;padding:6px 14px;margin-top:6px;width:100%}
.mxlearned b{display:block;font-size:20px;color:#3A1670}
.mxlearned .ur{display:block;font-size:18px;color:#5B47B5}
/* pictures */
.mxfr{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.mxfr .tf{display:grid;grid-template-columns:repeat(5,30px);gap:2px;padding:2px;border:3px solid #5B3FA8;border-radius:9px;background:#fff}
.mxfr .tf i{width:30px;height:30px;border-radius:6px;background:#F5F1FF;display:flex;align-items:center;justify-content:center;position:relative}
.mxfr .tf i img{width:25px;height:25px;object-fit:contain}
.mxfr .tf i.q{background:#fff;border:2px dashed #C9B8F0}
.mxfr .tf i.h{background:#FFF3C4}
.mxfr .tf i.x img{opacity:.3}
.mxfr .tf i.x::after{content:'';position:absolute;left:3px;right:3px;top:50%;height:3px;margin-top:-1.5px;background:#C62828;border-radius:2px;transform:rotate(-45deg)}
.mxline{max-width:380px;display:block}
.mxgr{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.mxgr .gc{background:#fff;border:3px solid #F2B8C6;border-radius:50%;display:flex;flex-wrap:wrap;align-items:center;align-content:center;justify-content:center;gap:1px;padding:8px}
.mxgr .gc img{width:var(--s);height:var(--s);object-fit:contain}
.mxgr .e0{font-size:26px;font-weight:800;color:#B0A8C0}
.mxrows .rw{display:flex;gap:3px;justify-content:center;margin:3px 0}
.mxrows .rw img{--s:28px}
.mxrow{display:flex;align-items:center;justify-content:center;gap:8px}
.mxarw{font-size:28px;color:#8E5BD8;font-weight:800}
.mxto{display:flex;flex-direction:column;align-items:center;gap:4px}
.mxto .blk{display:flex;align-items:flex-end;gap:6px;min-height:92px}
.mxto .rods{display:flex;gap:2px}
.mxto .rod{width:10px;height:90px;border-radius:3px;background:repeating-linear-gradient(to bottom,#3F6FD8 0 8px,#2B55B8 8px 9px);box-shadow:inset 0 0 0 1px #1E3F8F}
.mxto .rod.new{background:repeating-linear-gradient(to bottom,#4CB050 0 8px,#2E8B3A 8px 9px);box-shadow:0 0 0 2px #FFC400;animation:bpop .5s}
.mxto .rod.gone{opacity:.25;box-shadow:0 0 0 2px #C62828}
.mxto .ones{display:grid;grid-template-rows:repeat(5,10px);grid-auto-flow:column;gap:2px}
.mxto .one{width:10px;height:10px;border-radius:2px;background:#FFA65C;box-shadow:inset 0 0 0 1px #C45E1A}
.mxto .lab{font-size:13px;font-weight:800;color:#5F6B76}
.mxto .lab b{font-size:19px;color:#0B3A6E}
.mxhands9{display:flex;gap:16px;justify-content:center;align-items:flex-end}
.mxhands9 .hand{display:flex;gap:3px;align-items:flex-end}
.mxhands9 .fg{width:22px;border-radius:11px 11px 5px 5px;border:2px solid #D79A70;background:#FFD9BC;position:relative;display:flex;align-items:flex-end;justify-content:center}
.mxhands9 .fg em{font-style:normal;font-size:11px;font-weight:800;color:#6B3A1E;padding-bottom:2px}
.mxhands9 .fg.bf{background:#BBDEFB;border-color:#3F6FD8}
.mxhands9 .fg.af{background:#FFE0B2;border-color:#E08A00}
.mxhands9 .fg.fold{height:22px !important;background:#FFCDD2;border-color:#C62828}
.mxlbls{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:4px}
.mxlbls .lbl{border-radius:999px;padding:1px 10px;font-size:14px;font-weight:800}
.mxlbls .lbl.t{background:#BBDEFB;color:#0E2A6B}
.mxlbls .lbl.o{background:#FFE0B2;color:#6B3A00}
.mxhands{display:flex;flex-wrap:wrap;gap:6px 8px;justify-content:center}
.mxhands .hd{display:flex;flex-direction:column;align-items:center}
.mxhands .fs{display:flex;gap:2px;align-items:flex-end}
.mxhands .fs i{width:7px;background:#FFD9BC;border:1.5px solid #D79A70;border-bottom:none;border-radius:4px 4px 0 0}
.mxhands .pm{width:45px;height:24px;background:#FFD9BC;border:1.5px solid #D79A70;border-top:none;border-radius:0 0 14px 14px}
.mxhands b{font-size:14px;color:#0E2A6B}
.mxsh{display:flex;flex-direction:column;align-items:center;gap:8px;width:100%}
.mxsh .pile{display:flex;flex-wrap:wrap;justify-content:center;gap:2px;max-width:300px;min-height:26px}
.mxsh .pile img{--s:24px;transition:opacity .3s}
.mxsh .kids{display:flex;justify-content:center;gap:8px}
.mxsh .kid{display:flex;flex-direction:column;align-items:center;width:78px}
.mxsh .kid>img{height:72px;width:auto;max-width:78px;object-fit:contain}
.mxsh .plate{width:76px;min-height:34px;margin-top:-4px;background:radial-gradient(ellipse at center,#fff 55%,#EFE7E2 100%);border:3px solid #D7CCC8;border-radius:50%/45%;display:flex;flex-wrap:wrap;justify-content:center;align-content:center;padding:3px 6px;gap:1px}
.mxsh .plate img{--s:18px}
.mxgof{display:flex;flex-wrap:wrap;gap:10px 8px;justify-content:center;padding-top:6px}
.mxgof .gb{border:2.5px dashed #8E5BD8;border-radius:14px;padding:4px 6px 4px 6px;position:relative;display:flex;gap:1px;background:#FBF8FF}
.mxgof .gb em{position:absolute;top:-9px;left:-7px;width:20px;height:20px;border-radius:50%;background:#8E5BD8;color:#fff;font-style:normal;font-size:12px;font-weight:800;display:flex;align-items:center;justify-content:center}
.mxgof .gb img{--s:22px}
.mxfam{display:flex;align-items:center;justify-content:center;gap:12px}
.mxfam .tri{width:118px;height:104px;position:relative;flex:none}
.mxfam .tri::before{content:'';position:absolute;inset:0;background:#8E5BD8;clip-path:polygon(50% 0,100% 100%,0 100%)}
.mxfam .tri::after{content:'';position:absolute;inset:5px 7px 3px;background:#F3E8FF;clip-path:polygon(50% 0,100% 100%,0 100%)}
.mxfam .tri span{position:absolute;z-index:1;font-weight:800;font-size:21px;color:#3A1670;width:40px;text-align:center}
.mxfam .tri .t{left:39px;top:26px}.mxfam .tri .l{left:8px;bottom:6px}.mxfam .tri .r{right:8px;bottom:6px}
.mxfam .tri em{position:absolute;z-index:1;left:0;right:0;top:55px;text-align:center;font-style:normal;font-size:15px;font-weight:800;color:#8E5BD8}
.mxfam .facts{display:flex;flex-direction:column;gap:2px;font-weight:800;font-size:18px;color:#3A1670;direction:ltr;text-align:left}
.mxfam .facts .k{background:#FFF3C4;border-radius:8px;padding:0 6px;margin-left:-6px;color:#6B4A00}
.mxrow .arr{display:flex;flex-direction:column;align-items:center;gap:4px}
.mxrow .dots{display:grid;gap:3px}
.mxrow .dots i{width:15px;height:15px;border-radius:50%;background:#E2725B}
.mxrow .arr b{font-size:16px;color:#0E2A6B}
.mxhalf{display:flex;align-items:center;justify-content:center}
.mxhalf .hh{display:flex;flex-wrap:wrap;justify-content:center;gap:2px;width:132px}
.mxhalf .hh img{--s:24px}
.mxhalf .cut{align-self:stretch;min-height:60px;border-left:3px dashed #C62828;margin:0 10px}
.mxdg{display:flex;gap:4px;justify-content:center;direction:ltr}
.mxdg span{width:44px;height:56px;border-radius:10px;background:#fff;border:3px solid #3F6FD8;font-size:34px;font-weight:800;color:#0E2A6B;display:flex;align-items:center;justify-content:center}
.mxdg .z.new{border-color:#2E8B3A;background:#DFF5E1;color:#0F6B3F;animation:bpop .5s}
.mxdg .z.gone{border-color:#C62828;background:#FFEBEE;color:#C62828;opacity:.55;position:relative}
.mxdg .z.gone::after{content:'';position:absolute;left:6px;right:6px;top:50%;height:4px;margin-top:-2px;background:#C62828;border-radius:2px;transform:rotate(-45deg)}
.mxjump{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px;direction:ltr}
.mxjump span{min-width:40px;height:40px;padding:0 4px;border-radius:20px;background:#E7EEFF;border:3px solid #3F6FD8;font-size:17px;font-weight:800;color:#0E2A6B;display:flex;align-items:center;justify-content:center}
.mxjump span:last-child{background:#DFF5E1;border-color:#2E8B3A;color:#0F6B3F}
.mxjump b{font-size:13px;color:#0F8A63}
/* maths games */
.qprompt.sm{font-size:18px;margin:10px 0 4px}
.mxbub{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:4px 0 8px}
.mxbub .bb{aspect-ratio:1;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:34px;font-weight:800;color:#0B3A6E;cursor:pointer;background:radial-gradient(circle at 32% 28%,#fff 0 12%,#D6EEFF 30%,#9FD3FA 75%,#6FB6EE 100%);box-shadow:inset 0 -4px 8px rgba(11,58,110,.18),0 4px 0 rgba(11,58,110,.12);transition:transform .15s,opacity .35s}
.mxbub .bb.sel{transform:scale(1.1);box-shadow:0 0 0 4px #FFC400,inset 0 -4px 8px rgba(11,58,110,.18)}
.mxbub .bb.pop{opacity:0;transform:scale(1.5);pointer-events:none}
.mxbub .bb.wrong{animation:wig .4s}
.mxf10{min-height:96px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}
.mxjl{position:relative;width:100%;max-width:380px;margin:0 auto}
.mxjl .jball{position:absolute;left:0;top:0;width:30px;height:30px;object-fit:contain;transform:translate(-100px,0);pointer-events:none}
.mxtrack{position:relative;height:78px;margin:4px 0 6px}
.mxtrack .road{position:absolute;left:0;right:0;bottom:4px;height:22px;border-radius:11px;background:#5D5D66;box-shadow:inset 0 -3px 0 rgba(0,0,0,.25)}
.mxtrack .road::after{content:'';position:absolute;left:10px;right:10px;top:50%;height:3px;margin-top:-1.5px;background:repeating-linear-gradient(to right,#FFE082 0 14px,transparent 14px 26px)}
.mxtrack .car{position:absolute;bottom:12px;width:96px;height:auto;transition:left .8s cubic-bezier(.3,.7,.3,1)}
.mxtrack .flag{position:absolute;right:0;bottom:22px;font-size:36px;line-height:1}
.mxlist>*,.mxpath>*{flex:none}
.opt.mxo.no{opacity:.45}
.mxdg .z.q{border-style:dashed;color:#B26A00;background:#FFF3C4;border-color:#F0B400}
.mxto .qto{width:64px;min-height:92px;border:3px dashed #F0B400;border-radius:10px;background:#FFF3C4;color:#B26A00;font-size:34px;font-weight:800;align-items:center;justify-content:center}
.mxjump.q span:last-child{background:#FFF3C4;border-color:#F0B400;color:#B26A00;border-style:dashed}
.gpanel .mxeq{text-align:center}
.mxsh .pile img.gone{opacity:0;transform:scale(.4);transition:opacity .35s,transform .35s}
/* navigation (17 Nov): a page slides in from the right when opened and from the left when you go back */
.scr.nv-f{animation:nvF .26s cubic-bezier(.2,.75,.25,1)}
.scr.nv-b{animation:nvB .26s cubic-bezier(.2,.75,.25,1)}
@keyframes nvF{from{opacity:0;transform:translateX(36px)}to{opacity:1;transform:none}}
@keyframes nvB{from{opacity:0;transform:translateX(-36px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.scr.nv-f,.scr.nv-b{animation:fadein .2s ease}}
.list,.cards,#path,.mxb,.path{overscroll-behavior:contain}

/* ================= LITTLE STORIES (17 Nov): Quran · Arabic · English tabs, story cards, the story reader ================= */
.stabs{display:flex;background:rgba(255,255,255,.95);border-radius:18px;padding:4px;gap:4px;margin-top:8px;box-shadow:0 3px 0 rgba(11,58,110,.12);pointer-events:auto}
.stab{flex:1;border:none;background:none;border-radius:14px;padding:5px 2px 6px;font-family:'Baloo 2';font-weight:800;font-size:15px;color:#5F6B76;line-height:1.15;cursor:pointer;display:flex;flex-direction:column;align-items:center}
.stab span{font-size:20px;line-height:1.25}
.stab.on{background:#2E9C84;color:#fff;box-shadow:0 3px 0 #1E6B5A}
.cards .sech{grid-column:1/-1;margin:4px 0 0}
.sech .tsub{font-size:13px;font-weight:800;color:#5F6B76}
.sc.tl{background:#fff;color:#0B3A6E;min-height:0;padding:10px 8px 8px}
.sc.tl .tlc{height:84px;width:100%;display:flex;align-items:flex-end;justify-content:center}
.sc.tl .tlc .tl-img{height:84px;width:auto;max-width:100%;object-fit:contain;object-position:50% 100%}
.sc.tl .tla{font-size:25px;line-height:1.75;color:#033B2C;margin-top:2px}
.sc.tl .nm{font-size:15px;margin-top:0}
.sc.tl .tln{font-size:11.5px;font-weight:700;color:#5F6B76;margin-top:2px}
.ar.tlw{font-size:1.35em;unicode-bidi:isolate;direction:rtl}
/* pictures */
.tl-img{display:block;object-fit:contain}
.tl-svg{overflow:visible}
/* reader */
.tl-pic{flex:1;min-height:0;display:flex;align-items:flex-end;justify-content:center;padding:8px 6px 6px}
.tl-pic .tl-img{height:100%;max-height:440px;width:auto;max-width:94%;object-fit:contain;object-position:50% 100%;filter:drop-shadow(0 12px 10px rgba(0,0,0,.18))}
.tl-end{font-size:64px;line-height:1;margin-bottom:10px}
.tl-cap{padding:10px 14px 12px}
.tl-tag{display:inline-block;border-radius:999px;padding:1px 12px;font-weight:800;font-size:13px;background:#DFF5EC;color:#0B4A3D;margin-bottom:2px}
.tl-cap.en-only .tl-tag{background:#FFE9D6;color:#7A3A00}
.tl-tag.q{background:#FFF3C4;color:#6B4A00}
.tl-cap .tl-ar{font-size:38px;line-height:2.05;color:#033B2C;padding-top:6px}
.tl-ar .tw{position:relative;border-radius:10px;cursor:pointer;padding:0 2px}
.tl-ar .tw.on{background:#FFE9A8;box-shadow:0 0 0 2px #E0B341}
.tl-bub{position:absolute;left:50%;bottom:100%;transform:translateX(-50%);margin-bottom:2px;background:#0B3A6E;color:#fff;font-family:'Baloo 2',sans-serif;font-weight:800;font-size:15px;line-height:1;border-radius:11px;padding:6px 10px;white-space:nowrap;direction:ltr;pointer-events:none;z-index:3}
.tl-bub:after{content:'';position:absolute;left:50%;top:100%;margin-left:-6px;border:6px solid transparent;border-top-color:#0B3A6E}
.tl-en{font-size:19px;font-weight:700;color:#4A1B04;line-height:1.35}
.tl-big{font-size:31px;font-weight:800;color:#0B3A6E;line-height:1.25;padding:4px 0}
.tl-big.sm{font-size:24px}
.tl-big .tk{background:#FFE0B2;color:#C45E1A;border-radius:10px;padding:0 6px}
.tl-opts{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
.tl-opts.pics{grid-template-columns:repeat(3,1fr)}
.tl-opts.one{grid-template-columns:1fr;gap:6px}
.tl-opts.one .tl-o{min-height:52px;flex-direction:row;gap:10px}
.tl-o{background:#fff;border:3px solid #BBDEFB;border-bottom-width:6px;border-radius:18px;padding:6px;min-height:64px;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer}
.tl-opts.pics .tl-o{height:92px}
.tl-o .tl-img{height:76px;width:auto;max-width:100%;object-fit:contain}
.tl-cap .tl-o .ar{font-size:27px;line-height:1.8;color:#033B2C}
.tl-o small{font-size:12px;font-weight:700;color:#5F6B76;line-height:1.1}
.tl-o b{font-size:19px;color:#0B3A6E}
.tl-o.right{border-color:#4CB050;background:#E8F7E4}
.tl-o.wrong{animation:wig .4s}
.tl-o.no{opacity:.45}
.tl-done{background:#F3E8FF;border-radius:16px;padding:6px 14px;margin-top:6px}
.tl-done .ar{display:block;font-size:28px;line-height:1.8;color:#033B2C}
.tl-done b{display:block;font-size:18px;color:#3A1670}
.chip .ar.tlt{font-size:20px;line-height:1}
.tl-opts.one .tl-o small{font-size:14.5px}

/* 18 Nov, the parent: "The behind flowers is bright. Can we blur some so the animals seen better": while a story is read,
   the garden's flowers are blurred, paler and still (a still layer stays light for the 2013 MacBook) */
#mbg .mb-flowers{transition:filter .4s ease,opacity .4s ease}
#mbg.soft .mb-flowers{filter:blur(3px) saturate(.6);opacity:.5}
#mbg.soft .mb-fl{animation:none !important}

/* 18 Nov, desktop only (900px and wider). First "can we expand this on desktop screen?" (Stories), then
   "please make all pages extended for desktop only": every page uses the screen's width. Lists and cards spread into
   rows; the panels you read or play on (lessons, stories, games) are wider in the middle, with the same text sizes.
   Phones and tablets (under 900px) are unchanged. */
@media (min-width:900px){
  .scr{max-width:1240px;padding-left:20px;padding-right:20px}
  .scr .bottom,.gwrap{width:100%;max-width:780px;margin-left:auto;margin-right:auto}
  .mxb{align-items:center}
  .mxb>.card{width:100%;max-width:780px}
  /* home: the panel a little wider, the four buttons in one row under Learn words */
  .scr.home .bottom{max-width:760px}
  .scr.home .card{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
  .scr.home .card>*{grid-column:1/-1}
  .scr.home .card>.row{display:contents}
  .scr.home .card>.row>.btn{grid-column:auto}
  .scr.home .card>.hint{margin-top:0}
  /* level picker: the two levels side by side */
  .lvpick{max-width:1040px;display:grid;grid-template-columns:1fr 1fr;align-content:center;gap:20px}
  .lvpick .lvq{grid-column:1/-1;justify-self:center}
  /* card grids: worlds, games, stories, maths games */
  .wgrid{grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px}
  .cards{grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:16px;padding:6px 8px 24px}
  /* English lessons, maths worlds and tricks: in rows */
  .elist{max-width:none;display:grid;grid-template-columns:repeat(auto-fill,minmax(360px,1fr));align-content:start;gap:14px}
  .mxlist{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));align-content:start;gap:14px}
  .mxlist>.sech,.mxlist>.cards{grid-column:1/-1}
  .mxpath{display:grid;grid-template-columns:repeat(auto-fill,minmax(330px,1fr));align-content:start;gap:14px}
  .mxbub{max-width:500px;margin-left:auto;margin-right:auto}           /* Friends of 10 bubbles keep their size */
  .mem{max-width:620px;margin-left:auto;margin-right:auto}              /* memory cards don't grow too tall */
  /* Stories page */
  .scr.wide .stabs{width:100%;max-width:640px;margin-left:auto;margin-right:auto}
  .scr.wide .sc.tl .tlc{height:120px}
  .scr.wide .sc.tl .tlc .tl-img{height:120px}
  .scr.wide .sc.tl .tla{font-size:28px}
  .scr.wide .sc.tl .nm{font-size:17px}
  .scr.wide .sc.tl .tln{font-size:12.5px}
}

/* ================= SCIENCE (18 Nov): home button, Science page, lesson reader, try it at home, science games ================= */
.btn.scibtn{background:#F8B4D0;color:#5C0F33;border-bottom-color:#C94F86}
.tl-svg.sci-svg{overflow:hidden}
.scards{align-content:start}
.sc.sw,.sc.sl,.sc.sg{min-height:0;padding:10px 8px 8px}
.sc.sw{background:var(--l);border-color:var(--c);color:var(--d)}
.sc.sw .tlc,.sc.sg .tlc{height:84px;width:100%;display:flex;align-items:flex-end;justify-content:center}
.sc.sw .tlc .tl-img,.sc.sg .tlc .tl-img{height:84px;width:auto;max-width:100%;object-fit:contain;object-position:50% 100%}
.sc.sw .nm,.sc.sg .nm{font-size:16px;margin-top:2px}
.sc.sw .ur,.sc.sl .ur,.sc.sg .ur{font-size:16px;line-height:1.9;color:var(--c,#5B47B5)}
.sc.sw .s{font-size:11px;font-weight:700;color:#5F6B76;line-height:1.3}
.sc.sw .bar{height:8px;width:86%;border-radius:5px;background:#fff;margin-top:6px;overflow:hidden}
.sc.sw .bar i{display:block;height:100%;background:var(--c);border-radius:5px}
.sc.sw .n{font-size:11.5px;font-weight:800;margin-top:1px}
.sc.sl{border-color:var(--c)}
.sc.sg .tln{font-size:11.5px;font-weight:700;opacity:.75}
/* reader */
.sci-cap{display:flex;flex-direction:column;align-items:center;justify-content:center}
.sci-icons{display:flex;justify-content:center;gap:6px;margin:0 0 2px}
.sci-icons span{width:40px;height:40px;border-radius:50%;background:#F1F5F9;display:flex;align-items:center;justify-content:center;font-size:21px;border:2px solid transparent;opacity:.55}
.sci-icons span.on{background:#FFF3C4;border-color:#FFB300;opacity:1}
.sci-en{font-size:26px;font-weight:800;color:#0B3A6E;line-height:1.25;padding:2px 0}
.sci-en.sm{font-size:23px}
.sci-en .tk{background:#FFE0B2;color:#C45E1A;border-radius:10px;padding:0 6px}
.cap .sci-ur{font-size:21px;line-height:2.05;color:#22155C}
.sci-ur .tk{background:#E4DCFB;color:#3A1670;border-radius:8px;padding:0 5px;font-weight:normal}
.sci-chip{display:inline-flex;align-items:center;gap:10px;border:3px solid #7ED9C4;background:#E9FBF5;border-radius:999px;padding:0 16px;margin-top:4px;height:50px}
.sci-chip small{font-size:13px;font-weight:800;color:#2E7D6B}
.cap .sci-chip .ar{font-size:28px;line-height:1.2;color:#033B2C}
.sci-dyk{align-self:stretch;background:#FFF8DC;border:2px solid #FFE08A;border-radius:16px;padding:6px 12px;margin-top:8px;font-size:15px;font-weight:700;color:#5C4300;text-align:left;line-height:1.35}
.cap .sci-dyk .ur,.gpanel .sci-dyk .ur{display:block;font-size:17px;line-height:1.95;text-align:right;color:#5C4300}
.cap.qwrap{background:none;box-shadow:none;padding:0;display:block}
.sci-home .tl-tag{background:#E3F2FD;color:#0E2A6B}
.sci-home .tl-tag .ur{font-size:14px;line-height:1}
.sci-ht{display:flex;justify-content:center;align-items:baseline;gap:10px;flex-wrap:wrap;margin-top:2px}
.sci-ht b{font-size:24px;color:#0B3A6E;line-height:1.2}
.cap .sci-ht .ur{font-size:20px;line-height:1.9;color:#5B47B5}
.sci-steps{list-style:none;margin:4px 0 0;padding:0;text-align:left;display:flex;flex-direction:column;gap:5px;align-self:stretch}
.sci-steps li{display:flex;gap:10px;align-items:flex-start;background:#F4F8FC;border-radius:14px;padding:5px 10px}
.sci-steps li>b{flex:none;width:28px;height:28px;border-radius:50%;background:#1E88E5;color:#fff;display:flex;align-items:center;justify-content:center;font-size:16px;margin-top:3px}
.sci-steps li>span{flex:1;font-size:17px;font-weight:700;color:#0B3A6E;line-height:1.3;padding-top:3px}
.cap .sci-steps li .ur{display:block;font-size:16px;line-height:1.85;text-align:right;color:#22155C}
.sci-did{margin-top:8px;min-height:54px;align-self:stretch}
.sci-qe{font-size:84px}
.sci-done b{font-size:19px}
.sci-done .ur{display:block;font-size:18px;color:#5B47B5;line-height:1.8}
/* games */
.sgp{text-align:center}
.sgp .qprompt{margin-bottom:6px}
.sg-sub{font-size:14px;font-weight:800;color:#5F6B76;margin:-2px 0 6px}
.sg-sub .ur{font-size:14px}
.sg-item{height:150px;display:flex;align-items:flex-end;justify-content:center}
.sg-item .tl-img{height:140px;width:auto;max-width:70%;object-fit:contain;filter:drop-shadow(0 8px 8px rgba(0,0,0,.15))}
.sg-bins{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}
.sg-bin{border:3px dashed;border-radius:20px;padding:6px 6px 8px;min-height:132px;cursor:pointer;display:flex;flex-direction:column;align-items:center}
.sg-bin.yes{border-color:#4C9A2A;background:#EEF8E8;color:#1E4D12}
.sg-bin.no{border-color:#8D6E63;background:#F3EEEA;color:#4E342E}
.sg-bin b{font-size:19px;line-height:1.2}
.sg-bin .ur{font-size:17px;line-height:1.8}
.sg-bin .in{display:flex;flex-wrap:wrap;justify-content:center;gap:4px;margin-top:2px}
.sg-bin.wrong{animation:wig .4s}
.sg-mini{width:40px;height:40px;background:#fff;border-radius:10px;display:flex;align-items:center;justify-content:center;padding:3px}
.sg-mini .tl-img{max-width:100%;max-height:100%;width:auto;height:auto}
.sg-slots,.sg-pool{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.sg-slot{border:3px dashed #A5D6A7;background:#F1F9F1;border-radius:16px;height:118px;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;padding:4px 2px 2px}
.sg-slot i{position:absolute;top:-9px;left:-7px;width:26px;height:26px;border-radius:50%;background:#4C9A2A;color:#fff;font-style:normal;font-weight:800;font-size:15px;display:flex;align-items:center;justify-content:center}
.sg-slot.full{border-style:solid;border-color:#4C9A2A;background:#fff}
.sg-slot .tl-img,.sg-card .tl-img{height:62px;width:auto;max-width:100%;object-fit:contain}
.sg-slot small,.sg-card small{font-size:12.5px;font-weight:800;color:#1E4D12;line-height:1.1}
.sg-slot .ur{font-size:13px;line-height:1.7;color:#5B47B5}
.sg-pool{margin-top:12px}
.sg-card{background:#fff;border:3px solid #BBDEFB;border-bottom-width:6px;border-radius:16px;height:96px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;padding:4px 2px 4px;cursor:pointer}
.sg-card.used{visibility:hidden}
.sg-card.wrong{animation:wig .4s}
.sg-bowl{height:230px;display:flex;justify-content:center;align-items:flex-end}
.sg-bowl .tl-img{height:220px;width:auto;max-width:100%}
.sg-fs{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:8px}
.sg-fs .btn.right{background:#E8F7E4;border-color:#4CB050;border-bottom-color:#2E8B32}
.sg-fs .btn.dim{opacity:.45}
@media (min-width:900px){
  .scr.home .card{grid-template-columns:repeat(5,1fr)}
  .scr.wide .sc.sw .tlc,.scr.wide .sc.sw .tlc .tl-img,.scr.wide .sc.sg .tlc,.scr.wide .sc.sg .tlc .tl-img{height:120px}
  .sgp{width:100%;max-width:640px;margin-left:auto;margin-right:auto}
}
/* home: English, Maths and Science share one row on phones and tablets: the icon sits above the words */
@media (max-width:899px){
  .scr.home .row.three{gap:8px}
  .scr.home .row.three .btn{flex-direction:column;gap:0;padding:6px 4px 4px;min-height:0}
  .scr.home .row.three .btn .bi{font-size:24px;width:auto;line-height:1.1}
  .scr.home .row.three .btn .bl{align-items:center}
  .scr.home .row.three .btn .bl b{font-size:17px;line-height:1.1}
  .scr.home .row.three .btn .bl small.ur{font-size:15px;line-height:1.6}
}
.tl-pic .tl-img.sci-qm{height:120px;max-height:120px;filter:none;margin-bottom:12px}
.sci-cap .tl-opts{align-self:stretch}
/* science reader on short screens (a small phone): the words step down in size so the picture stays big */
.ssq1 .tl-cap{padding:8px 10px 9px}
.ssq1 .sci-en{font-size:21px}
.ssq1 .cap .sci-ur{font-size:17.5px;line-height:1.85}
.ssq1 .sci-chip{height:40px;margin-top:2px;padding:0 12px}
.ssq1 .cap .sci-chip .ar{font-size:23px}
.ssq1 .sci-dyk{font-size:13px;padding:4px 10px;margin-top:5px}
.ssq1 .cap .sci-dyk .ur{font-size:14.5px;line-height:1.75}
.ssq1 .sci-icons span{width:32px;height:32px;font-size:17px}
.ssq2 .sci-en{font-size:19px}
.ssq2 .cap .sci-ur{font-size:16px;line-height:1.75}
.ssq2 .sci-chip small:first-child{display:none}
.ssq1 .sci-ht b{font-size:20px}
.ssq1 .sci-steps li>span{font-size:15px}
.ssq1 .cap .sci-steps li .ur{font-size:14.5px;line-height:1.75}
.ssq1 .sci-did{min-height:46px;margin-top:6px}
.sci-cap.sci-home{max-height:calc(100vh - 210px);max-height:calc(100dvh - 210px);overflow-y:auto;justify-content:flex-start}
@media (min-width:900px){
  .sci-steps{display:grid;grid-template-columns:1fr 1fr}
}
/* singular | plural side by side (21 Nov, like the parent's screenshot): the singular on the right, the plural on the left */
.opair.spair .pcap{font-size:14px;font-weight:800;text-align:center;color:#6A55C9;line-height:1.2}
.opair.spair .pcap .ur{font-size:14px;line-height:1.7}
.opair.spair .many .tile{border-color:#E0A100;box-shadow:0 0 0 3px #FFE6A0}
.opair.spair .pmid .pa{font-size:30px;color:#C77C00}
.spdual{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:8px;background:#F4F1FF;border-radius:14px;padding:2px 12px}
.spdual .fn{width:26px;height:26px;border-radius:50%;background:#6A55C9;color:#fff;font-weight:800;display:flex;align-items:center;justify-content:center;font-size:14px}
.spdual .ar{font-size:26px;line-height:1.7;color:#033B2C}
.spdual .m{font-size:13px;font-weight:700;color:#22155C}
.spdual .m .ur{font-size:13px}

/* ================= SENTENCES (21 Nov): home button, the Sentences page (groups like the word worlds), sentence paths, make-a-sentence, writing on the screen ================= */
.btn.snbtn{background:#FFC7A6;color:#6B2A0A;border-bottom-color:#DB7642}
@media (min-width:900px){ .scr.home .card{grid-template-columns:repeat(3,1fr)} }
.snlist .sech:first-child{margin-top:4px}
.world.sngr .ic.sic{background:#fff;overflow:hidden;padding:3px}
.world.sngr .ic.sic img{width:100%;height:100%;object-fit:contain}
.world.sngr .nm{font-size:17px}
.world .ar.gar{font-size:19px;line-height:1.75;color:var(--d)}
.sngames{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.sc.sng{min-height:0;padding:12px 8px 10px;background:#FFF1E8;border-color:#E8743B;color:#6B2A0A}
.sc.sng .tlc{height:110px;width:100%;display:flex;align-items:flex-end;justify-content:center}
.sc.sng .tlc .tl-img{height:110px;width:auto;max-width:100%;object-fit:contain;object-position:50% 100%}
.sc.sng .nm{font-size:18px;margin-top:4px}
.sc.sng .tln{font-size:12px;font-weight:700;color:#8A5A3C;line-height:1.3}
@media (min-width:900px){ .sngames{grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px} }
/* sentence paths */
.node.pic.snd{width:158px;height:176px;border-radius:26px;justify-content:flex-start;padding-top:4px;overflow:visible}
.node.pic.snd.open{background:#fff;color:#0B3A6E}
.node.pic.snd.lock{width:158px;height:176px;border-radius:26px;justify-content:flex-start;padding:4px 0 0}
.node.pic.snd img{width:100px;height:78px;flex-shrink:0}
.node.snd .snt{flex:1;min-height:0;width:100%;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0 6px 4px}
.node.snd .se{font-size:15px;font-weight:800;line-height:1.2;text-align:center}
.node.pic.snd .ar{font-size:19px;line-height:1.6;white-space:normal;text-align:center;margin:0;max-width:100%}
.node.pic.snd .m{white-space:normal;font-size:11px;line-height:1.15;margin-top:0;max-width:100%;opacity:.8}
.node.snd .lkb{position:absolute;bottom:6px;right:8px}
/* the sentence card (23 Nov: bigger words; the box being filled glows with NOW, the next one says NEXT, filled boxes turn solid with ✓) */
.sn-card{display:flex;flex-direction:column;justify-content:center;padding:12px 12px 12px}
.sn-card.rtl{direction:rtl}
.sn-card.rtl .sn-row,.sn-card.rtl .sn-qe,.sn-card.rtl .sn-mean,.sn-card.rtl .sn-you,.sn-card.rtl .sn-done,.sn-card.rtl .sn-lbl,.sn-card.rtl .sn-tag{direction:ltr}
.sn-you{align-self:center;background:#FFF3C4;color:#7A5200;border-radius:999px;padding:0 14px;font-weight:800;font-size:16px;margin-bottom:6px;line-height:30px}
.sn-boxes{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.sn-boxes.b5{display:flex;flex-wrap:wrap;justify-content:center}
.sn-boxes.b5 .sn-box{width:calc((100% - 16px) / 3)}
.sn-box{position:relative;border:3px solid var(--c);background:#fff;border-radius:14px;padding:6px 6px 6px;text-align:center;display:flex;flex-direction:column;justify-content:center;min-height:64px;cursor:pointer;transition:background .2s}
.sn-box b{font-size:13px;font-weight:800;color:var(--c);letter-spacing:.3px;line-height:1.25;filter:brightness(.8)}
.sn-box b.ar{font-size:17px;line-height:1.5;letter-spacing:0;font-weight:400}
.sn-box span{font-size:19px;font-weight:800;color:#1F2A36;line-height:1.2}
.sn-box span.ar{font-size:22px;line-height:1.5;font-weight:400}
.sn-box.up span{color:#B5C0CA}
.sn-box.none{border:2px dashed #CBD3DA;background:#F3F5F7;opacity:.6;cursor:default}
.sn-box.none b{color:#9AA6B1;filter:none}
.sn-box.none span{color:#B5C0CA}
.sn-box.f{background:var(--d);border-color:var(--d);cursor:default}
.sn-box.f b{color:#fff;filter:none;opacity:.9}
.sn-box.f span{color:#fff}
.sn-box.on{background:var(--l);border-width:4px;animation:snglow 1.4s ease-in-out infinite}
.sn-box.on span{color:var(--c);font-size:26px;filter:brightness(.85)}
.sn-box.nx{border-style:dashed}
.sn-box .tg{position:absolute;top:-10px;inset-inline-end:8px;font-style:normal;font-size:11px;font-weight:800;letter-spacing:.5px;line-height:18px;padding:0 7px;border-radius:9px;font-family:'Baloo 2',sans-serif;direction:ltr}
.sn-box .tg.now{background:var(--c);color:#fff}
.sn-box .tg.nxt{background:#fff;color:var(--c);border:2px solid var(--c);line-height:14px}
.sn-box .tg.ck{background:#fff;color:#2E7D32;border:2px solid #fff;width:22px;height:22px;padding:0;line-height:20px;border-radius:11px;top:-9px;box-shadow:0 1px 3px rgba(0,0,0,.25)}
.sn-box.just{animation:snpop .5s ease}
@keyframes snglow{0%,100%{box-shadow:0 0 0 3px #fff,0 0 0 6px var(--c)}50%{box-shadow:0 0 0 3px #fff,0 0 0 9px var(--c),0 0 18px 6px var(--c)}}
@keyframes snpop{0%{filter:brightness(1.35)}100%{filter:none}}
.sn-dots{display:flex;gap:6px;justify-content:center;margin:2px 0 4px}
.sn-dots span{width:10px;height:10px;border-radius:5px;background:#DCE3EA}
.sn-dots span.d{background:#4CB050}
.sn-dots span.c{background:#FFB300;width:24px}
.sn-qb{border:3px solid var(--c);background:var(--l);border-radius:18px;padding:6px 10px 8px;margin:12px 0 10px;text-align:center}
.sn-qk{display:inline-block;background:var(--c);color:#fff;font-size:12px;font-weight:800;letter-spacing:.5px;border-radius:9px;padding:0 9px;line-height:20px;margin-bottom:2px}
.sn-q{font-size:23px;font-weight:800;color:#0B3A6E;text-align:center;line-height:1.25}
.sn-q.ar{font-size:30px;font-weight:400;line-height:1.5}
.sn-qe{font-size:14px;font-weight:700;color:#5F6B76;text-align:center}
.sn-opts{display:flex;gap:8px}
.sn-o{flex:1 1 0;min-width:0;border:3px solid var(--c);border-bottom-width:6px;background:#fff;border-radius:16px;font-family:'Baloo 2',sans-serif;font-size:20px;font-weight:800;color:#1F2A36;padding:6px 4px;min-height:60px;line-height:1.15;cursor:pointer}
.sn-o.ar{font-family:'AlQalam','Amiri',serif;font-weight:400;font-size:27px;line-height:1.45;padding:2px 4px}
.sn-o.right{background:var(--l)}
.sn-o.wrong{animation:wig .4s}
.sn-fly{position:fixed;z-index:60;pointer-events:none;background:var(--c);color:#fff;border-radius:12px;padding:2px 12px;font-family:'Baloo 2',sans-serif;font-weight:800;white-space:nowrap;box-shadow:0 6px 16px rgba(0,0,0,.25)}
.sn-fly.ar{font-family:'AlQalam','Amiri',serif;font-weight:400;line-height:1.5}
.sn-lbl{font-size:12px;font-weight:800;letter-spacing:.6px;color:#8A96A3;text-align:center;margin-top:12px}
.sn-sent{font-size:25px;font-weight:800;text-align:center;line-height:1.7;color:#1F2A36}
.sn-sent.ar{font-size:31px;font-weight:400;line-height:1.75}
.sn-sent i{font-style:normal;background:var(--l);border-bottom:3px solid var(--c);border-radius:8px;padding:0 5px;white-space:nowrap}
.sn-sent i.just{animation:snpop .6s ease}
.sn-gap{display:inline-block;width:50px;height:1em;border-bottom:4px dashed var(--c);opacity:.45;vertical-align:-3px;border-radius:2px}
.sn-gap.now{opacity:1;width:64px;background:var(--l);border-bottom-style:solid;animation:snblink 1.2s ease-in-out infinite}
@keyframes snblink{50%{background:transparent}}
.sn-mean{font-size:15px;font-weight:700;color:#5F6B76;text-align:center;line-height:1.3}
.sn-mean.hide{visibility:hidden}
.sn-done{font-size:25px;font-weight:800;color:#2E7D32;text-align:center;margin:4px 0 0}
.sn-row{display:flex;gap:10px;margin-top:12px}
.sn-row .btn{min-height:58px;flex:1}
.sn-row .btn b{font-size:20px;white-space:nowrap}
.sn-tag{font-size:17px;font-weight:800;color:#5F6B76;text-align:center}
.sn-sent.small{font-size:19px;line-height:1.7}
.sn-sent.small.ar{font-size:23px;line-height:1.8}
.sn-sent i.dim{opacity:.45}
.sn-sent i.now{box-shadow:0 0 0 3px var(--c)}
.sn-pad{position:relative;height:150px;background:#FFFDF6;border:3px solid #E6D9B8;border-radius:16px;margin:8px 0 6px;touch-action:none;overflow:hidden;direction:ltr}
.sn-pad canvas{display:block;position:absolute;left:0;top:0;touch-action:none;cursor:crosshair}
.sn-card.writing{justify-content:flex-start}
.sn-card.writing .sn-pad{flex:1 1 auto;min-height:150px}
.sn-card.rtl .ni svg{transform:none}
/* small phones: a little smaller so the picture keeps room */
@media (max-height:700px) and (max-width:899px){
  .sn-q{font-size:20px} .sn-q.ar{font-size:25px} .sn-qb{margin:8px 0 6px;padding:4px 8px 6px}
  .sn-sent{font-size:20px} .sn-sent.ar{font-size:25px}
  .sn-o{min-height:50px;font-size:17px} .sn-o.ar{font-size:22px}
  .sn-box{min-height:52px;padding:4px} .sn-box b{font-size:11.5px} .sn-box span{font-size:15px} .sn-box.on span{font-size:20px} .sn-box b.ar{font-size:15px} .sn-box span.ar{font-size:18px}
  .sn-pad{height:120px} .sn-card.writing .sn-pad{min-height:120px}
  .sn-row .btn{min-height:50px} .sn-lbl{margin-top:8px}
  .sn-lbl.bx,.sn-sent.bx,.sn-mean.hide{display:none}
  .sn-boxes{gap:7px} .sn-box .tg{font-size:10px;line-height:16px;top:-9px}
}
/* laptops and tablets on their side: the picture on the left, the sentence card on the right, everything bigger */
@media (min-width:900px) and (min-aspect-ratio:5/4){
  .scr.sn-scr{display:grid;grid-template-columns:minmax(0,1fr) minmax(480px,620px);grid-template-rows:auto minmax(0,1fr);column-gap:24px}
  .scr.sn-scr>.top{grid-column:1/-1}
  .scr.sn-scr .tl-pic{grid-column:1;grid-row:2;align-items:center;padding:10px}
  .scr.sn-scr .tl-pic .tl-img{max-height:620px}
  .scr.sn-scr .bottom{grid-column:2;grid-row:2;margin:0;max-width:none;width:auto;display:flex;flex-direction:column;justify-content:center;min-height:0;overflow-y:auto;padding:12px 4px}
  .sn-card{padding:16px 18px}
  .sn-box{min-height:78px} .sn-box b{font-size:15px} .sn-box span{font-size:23px} .sn-box.on span{font-size:30px} .sn-box b.ar{font-size:19px} .sn-box span.ar{font-size:26px}
  .sn-box .tg{font-size:12px}
  .sn-qk{font-size:14px;line-height:22px}
  .sn-q{font-size:29px} .sn-q.ar{font-size:37px} .sn-qe{font-size:16px}
  .sn-o{font-size:24px;min-height:70px} .sn-o.ar{font-size:32px}
  .sn-sent{font-size:31px} .sn-sent.ar{font-size:38px} .sn-lbl{font-size:13px}
  .sn-mean{font-size:17px} .sn-done{font-size:30px} .sn-you{font-size:18px}
  .sn-row .btn{min-height:64px} .sn-row .btn b{font-size:22px}
  .sn-tag{font-size:19px} .sn-sent.small{font-size:23px} .sn-sent.small.ar{font-size:28px}
  .sn-pad{height:190px} .sn-card.writing .sn-pad{min-height:190px}
}

/* ================= GRAMMAR RULES (23 Nov): English page section, rule lessons, Fill the gap, Arrow match, 💡 Rule ================= */
.gv{display:inline-flex;align-items:center;justify-content:center;background:var(--c);color:#fff;border-radius:10px;font-weight:800;font-size:16px;padding:0 9px;line-height:26px;box-shadow:0 3px 0 rgba(0,0,0,.18);font-family:'Baloo 2',sans-serif}
.gv.big{font-size:26px;line-height:44px;min-width:86px;padding:0 16px;border-radius:14px}
.gv.wrong{animation:wig .4s}
.enode.gnode .gmini{display:flex;gap:4px;flex-wrap:wrap;width:112px;flex:none;justify-content:center}
.enode.gnode .gsub{font-size:13px;font-weight:700;color:#8A5A3C;line-height:1.3}
.ggames{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.sc.ggame{min-height:0;padding:12px 8px 12px;background:#FFF1E8;border-color:#E8743B;color:#6B2A0A;text-align:center}
.ggame .gge{font-size:40px;line-height:1.25}
.ggame .nm{font-size:18px}
.ggame .tln{font-size:12px;font-weight:700;color:#8A5A3C;line-height:1.3}
.scr.gscr .glist{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;padding:8px 0 4px}
.scr.gscr .glist>.card{margin:auto 0;width:100%;max-width:560px;align-self:center}
.gtag{display:inline-block;background:#FFF3C4;color:#7A4B00;border-radius:999px;padding:1px 12px;font-weight:800;font-size:14px}
.gcard .gtag{display:block;width:max-content;margin:0 auto 6px}
.gchart{position:relative;max-width:460px;margin:4px auto}
.gchart svg.garr{position:absolute;left:0;top:0;pointer-events:none;overflow:visible;z-index:0}
.ggrp{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px 0}
.gps{display:flex;flex-direction:column;gap:4px}
.gp{position:relative;z-index:1;display:flex;align-items:center;gap:8px;height:52px}
.gp img{width:70px;height:50px;object-fit:contain;background:#F4F7FB;border-radius:12px;flex:none}
.gp b{font-size:24px;font-weight:800;color:#1E1E3F}
.ggrp .gv{position:relative;z-index:1}
.gtip{margin-top:10px;font-size:16px;font-weight:700;color:#3A4652;line-height:1.5;background:#FFFBEA;border:2px dashed #F0C24B;border-radius:14px;padding:6px 10px;text-align:center}
.gtip i,.gw{font-style:normal;background:var(--c);color:#fff;border-radius:7px;padding:0 6px;font-weight:800}
.gex{display:flex;align-items:center;gap:12px;background:#F7F5FF;border-radius:16px;padding:6px 10px;margin-top:8px}
.gex img{width:80px;height:66px;object-fit:contain;flex:none}
.gex div{font-size:23px;font-weight:800;color:#1E1E3F;line-height:1.3}
.gfh{display:flex;align-items:center;justify-content:space-between;gap:8px}
.gbulb{border:2px solid #F0B400;background:#FFF8D6;color:#7A4B00;font-weight:800;font-size:15px;border-radius:999px;padding:2px 12px;font-family:'Baloo 2',sans-serif;cursor:pointer}
.gbulb.glow,.sn-rule.glow{animation:gbulb 1s ease-in-out infinite}
@keyframes gbulb{50%{box-shadow:0 0 0 5px #FFE082}}
.gq{font-size:26px;font-weight:800;text-align:center;line-height:1.45;margin:12px 0 12px;color:#1E1E3F}
.ggap{display:inline-block;width:74px;height:1em;border-bottom:4px solid #F0B400;background:#FFF6D6;border-radius:4px;vertical-align:-3px;animation:snblink 1.2s ease-in-out infinite}
.gopts{display:flex;gap:10px}
.gopt{flex:1;border:3px solid var(--c);border-bottom-width:6px;background:#fff;border-radius:16px;font-family:'Baloo 2',sans-serif;font-size:26px;font-weight:800;min-height:62px;color:#1E1E3F;cursor:pointer}
.gopt.right{background:var(--c);color:#fff}
.gopt.wrong{animation:wig .4s}
.gdots{display:flex;gap:6px;justify-content:center;margin-top:12px}
.gdots span{width:10px;height:10px;border-radius:5px;background:#DCE3EA}
.gdots span.d{background:#4CB050}
.gdots span.c{background:#FFB300;width:24px}
.grh{font-size:19px;font-weight:800;color:#7A4B00;margin-bottom:8px;text-align:center}
.grr{display:flex;align-items:center;gap:12px;font-size:22px;font-weight:800;margin:8px 0;color:#1E1E3F}
.grr .gv{min-width:74px;font-size:21px;line-height:36px}
.grn{font-size:14px;color:#6B7785;font-weight:700;text-align:center;margin-top:4px}
.ghint{align-self:center;background:#0B3A6E;color:#fff;border-radius:16px;padding:6px 16px;font-weight:800;font-size:17px;margin-top:8px;text-align:center}
.gm-scr .gmcard{padding:12px}
.gchart.gm{display:flex;justify-content:space-between;align-items:stretch;max-width:520px;margin:8px auto 0}
.gml{display:flex;flex-direction:column;gap:6px}
.gml .gp{background:#fff;border:3px solid #E3E8EE;border-radius:16px;padding:2px 14px 2px 4px;height:56px;min-width:152px;cursor:pointer}
.gml .gp.sel{border-color:#FFB300;box-shadow:0 0 0 4px #FFE082}
.gml .gp.ok{border-color:var(--c);cursor:default}
.gmr{display:flex;flex-direction:column;justify-content:space-around;padding:8px 0}
.gmr .gv{cursor:pointer;position:relative;z-index:1}
.sn-rule{border:2px solid #F0B400;background:#FFF8D6;color:#7A4B00;font-weight:800;font-size:12px;border-radius:9px;padding:0 8px;line-height:16px;margin-inline-start:6px;font-family:'Baloo 2',sans-serif;cursor:pointer;vertical-align:top}
@media (max-height:700px) and (max-width:899px){
  .gp{height:44px} .gp img{width:58px;height:42px} .gp b{font-size:21px} .gv.big{font-size:23px;line-height:38px;min-width:76px}
  .gml .gp{height:46px} .gml{gap:4px} .gex img{width:66px;height:54px} .gex div{font-size:20px}
  .gq{font-size:22px;margin:8px 0} .gopt{min-height:52px;font-size:22px} .gtip{font-size:14.5px}
}
@media (min-width:900px){
  .gq{font-size:31px} .gopt{font-size:28px;min-height:68px} .ggames{grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}
  .sn-rule{font-size:14px;line-height:18px}
}
@media (min-width:900px){ .elist .sech,.elist .ggames{grid-column:1/-1} .elist .sech{margin:4px 0 0} .gtip{font-size:17px} }
/* Arabic grammar (23 Nov): mirrored charts, Arabic words in the Quran font with a small English word under */
.gv.ar{font-family:'AlQalam','Amiri',serif;font-weight:400;font-size:21px;line-height:1.55;padding:0 10px}
.gv.big.ar{font-size:29px;line-height:1.45;padding:0 14px;min-width:96px}
.gp b.ar{font-size:28px;line-height:1.4;font-weight:400;color:#1E1E3F}
.gp small{font-size:13px;font-weight:800;color:#6B7785;align-self:flex-end;margin-bottom:8px}
.gml .gp{padding:2px;padding-inline-start:4px;padding-inline-end:14px}
.gen{text-align:center;font-size:15px;font-weight:800;color:#5F6B76;margin:-2px 0 4px}
.gex .gexa{font-size:28px;line-height:1.6}
.gex .gexm{font-size:14px;font-weight:700;color:#5F6B76;line-height:1.3}
.gnode .gesa{font-size:25px;line-height:1.5;color:#4A1B04}
.gtip .ar{font-size:1.25em;line-height:1.2}
.gq.ar{font-size:32px;line-height:1.6;font-weight:400}
.gqm{font-size:15px;font-weight:800;color:#5F6B76;text-align:center;margin:-6px 0 10px}
.gopt.ar{font-family:'AlQalam','Amiri',serif;font-weight:400;font-size:29px;line-height:1.4}
.gyou{font-size:13px;font-weight:800;background:#FFF3C4;color:#7A5200;border-radius:999px;padding:0 10px;line-height:22px}
.grr.rtl{direction:rtl}
.grr .ar{font-size:24px;font-weight:400}
.grr small{font-size:13px;color:#6B7785}
.grh .ar{font-size:24px}
.ghint .ar{font-size:22px;line-height:1.2}
.ggame .tln .ar{font-size:17px}
.sn-card.rtl .sn-rule{direction:ltr;display:block;margin:0 auto 2px}
@media (max-height:700px) and (max-width:899px){ .gp b.ar{font-size:23px} .gq.ar{font-size:26px} .gopt.ar{font-size:24px} .gex .gexa{font-size:23px} }
.gtip i{white-space:nowrap;display:inline-block}
/* full story scenes, no frame (23 Nov, the parent's bird and ant river scenes): as tall as the picture space (on a phone at most
   92% of the screen width, so the dove and the ant both show), centred on the story (--fx), the edges fading softly */
.tl-scn{position:relative;align-self:flex-end;width:calc(100% + 36px);margin:0 -18px -6px;height:100%;max-height:min(100%, 92vw);overflow:hidden;pointer-events:none}
.tl-scn img{position:absolute;top:0;height:100%;width:auto;max-width:none;left:50%;transform:translateX(calc(-1 * var(--fx)));
  -webkit-mask-image:linear-gradient(to right,transparent 0,#000 5%,#000 95%,transparent 100%),linear-gradient(to bottom,transparent 0,#000 4%,#000 90%,transparent 100%);
  -webkit-mask-composite:source-in;mask-image:linear-gradient(to right,transparent 0,#000 5%,#000 95%,transparent 100%),linear-gradient(to bottom,transparent 0,#000 4%,#000 90%,transparent 100%);mask-composite:intersect}
.sc .tlc .tl-img[src*="tales/bird_"],.tl-o .tl-img[src*="tales/bird_"]{border-radius:14px}
.elist .wgrid,.elist .sngames{width:100%}
@media (min-width:900px){ .elist .wgrid,.elist .sngames{grid-column:1/-1} }

/* ================= COLOUR MIXING (24 Nov, Science → 🎨 Colours and mixing): the lesson's Arabic line, Mix it!, Make this colour ================= */
.sci-ar{font-size:30px;line-height:1.6;color:#0F766E;text-align:center}
.sci-ur:empty,.sc .ur:empty,#qc .ur:empty,.sci-ht .ur:empty,.sci-steps .ur:empty,.sci-dyk .ur:empty{display:none}
.mxp{text-align:center;padding:12px 10px}
.mx-two,.mx-target{display:flex;align-items:center;justify-content:center;gap:10px;min-height:118px}
.mx-sp{display:flex;flex-direction:column;align-items:center;width:118px}
.mx-sp img,.mx-target img,.mx-o img{width:86px;height:86px;object-fit:contain;padding:6px;box-sizing:border-box;border-radius:50%;background:#EEF3F8;box-shadow:inset 0 0 0 2px #D3DEE9}
.mx-sp b,.mx-o b,.mx-pot b,.mx-target b{font-size:19px;font-weight:800;line-height:1.1;color:#1E1E3F}
.mx-sp .ar,.mx-o .ar,.mx-target .ar{font-size:23px;line-height:1.45;color:#0F766E}
.mx-op{font-size:42px;font-weight:800;color:#5F6B76}
.mx-mk{font-size:22px;font-weight:800;color:#1E1E3F}
.mx-target{background:#F7F5FF;border-radius:20px;padding:4px 10px}
.mx-target b{font-size:24px}.mx-target .ar{font-size:28px}
.mx-bw{display:flex;justify-content:center;margin:4px 0 2px}
.mx-bowl{width:230px;height:150px;overflow:visible}
.mx-liq{transform-box:view-box;transform-origin:115px 140px;transform:scaleY(0)}
.mx-base{fill:#fff}
.mx-q{font-size:21px;font-weight:800;color:#0B3A6E;margin:4px 0 8px}
.mx-opts{display:flex;gap:8px}
.mx-o{flex:1;border:3px solid #E3E8EE;border-bottom-width:6px;border-radius:18px;background:#fff;display:flex;flex-direction:column;align-items:center;padding:6px 2px 4px;font-family:'Baloo 2',sans-serif;cursor:pointer}
.mx-o img{width:62px;height:62px;object-fit:contain}
.mx-o:disabled{opacity:.55}
.mx-o.right{border-color:#4CB050;background:#EAF8EC}
.mx-o.wrong,.mx-pot.wrong{animation:wig .4s}
.mx-pots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.mx-pot{border:3px solid #E3E8EE;border-bottom-width:6px;border-radius:16px;background:#fff;display:flex;align-items:center;gap:8px;padding:6px 8px;font-family:'Baloo 2',sans-serif;cursor:pointer;text-align:left;min-width:0}
.mx-pot i{flex:none;width:34px;height:30px;border-radius:50% 50% 45% 45%;background:var(--c);box-shadow:inset 0 -5px 0 rgba(0,0,0,.15),0 0 0 1px rgba(0,0,0,.12)}
.mx-pot b{font-size:16px;display:block}
.mx-pn{display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.mx-pn .ar{display:block;font-size:19px;line-height:1.3;color:#0F766E}
.mx-pot.on{border-color:#FFB300;box-shadow:0 0 0 4px #FFE082}
.mx-eq{min-height:74px;display:flex;flex-direction:column;justify-content:center;font-size:20px;font-weight:800;color:#1E1E3F;margin-top:8px}
.mx-eq .ar{font-size:26px;line-height:1.55;color:#0F766E}
.mx-ch{display:inline-block;background:var(--c);border-radius:9px;padding:0 9px;box-shadow:inset 0 0 0 2px rgba(0,0,0,.14)}
.mx-no{font-size:18px;color:#8A4B00}
.mx-no .ar{font-size:22px}
.mx-fly{position:fixed;z-index:60;pointer-events:none;object-fit:contain}
@media (max-height:700px) and (max-width:899px){
  .mx-two,.mx-target{min-height:96px} .mx-sp img,.mx-target img{width:66px;height:66px} .mx-bowl{width:190px;height:124px}
  .mx-o img{width:48px;height:48px} .mx-pots{gap:6px} .mx-pot{padding:5px 4px;gap:4px} .mx-pot i{width:26px;height:24px} .mx-pot b{font-size:15px} .mx-eq{min-height:64px;font-size:18px} .mx-eq .ar{font-size:22px} .mx-q{font-size:19px;margin:2px 0 6px}
}
@media (min-width:900px){ .mx-bowl{width:280px;height:183px} .mx-sp img,.mx-target img{width:104px;height:104px} .mx-o img{width:76px;height:76px} }
/* 24 Nov: white paint sits on a black plate; the six mixes on one chart page; colour quick questions show the two paints and the answer names */
.mx-sp img.dk,.mx-target img.dk,.mx-o img.dk{background:#1C1F24;box-shadow:inset 0 0 0 2px #000}
.mxc{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%;max-width:560px;margin-top:auto}
.mxc-card{background:rgba(255,255,255,.95);border-radius:18px;padding:8px 4px 4px;box-shadow:0 4px 0 rgba(11,58,110,.10),0 8px 18px rgba(11,58,110,.10);text-align:center;min-width:0}
.mxc-row{display:flex;align-items:center;justify-content:center;gap:3px}
.mxc-row i{font-style:normal;font-weight:800;font-size:20px;color:#5F6B76;font-family:'Baloo 2',sans-serif}
.mxc-pl{flex:none;width:48px;height:48px;border-radius:50%;background:#EEF3F8;box-shadow:inset 0 0 0 2px #D3DEE9;display:inline-flex;align-items:center;justify-content:center}
.mxc-pl.dk{background:#1C1F24;box-shadow:inset 0 0 0 2px #000}
.mxc-pl img{width:86%;height:86%;object-fit:contain}
.mxc-en{font-size:13px;font-weight:800;margin-top:5px;color:#1E1E3F;white-space:nowrap;font-family:'Baloo 2',sans-serif}
.mxc-n{display:inline-block;background:var(--c);border-radius:7px;padding:0 5px;line-height:1.35;box-shadow:inset 0 0 0 1.5px rgba(0,0,0,.14)}
.mxc-ar{font-size:19px;line-height:1.55;color:#0F766E;white-space:nowrap}
.tl-o.mxq-o{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:6px 2px}
.mxq-o .mxc-pl{width:66px;height:66px}
.mxq-o b{font-size:17px;line-height:1.2;margin-top:3px;color:#1E1E3F}
.tl-opts.pics .tl-o.mxq-o{height:auto}
.tl-cap .tl-o.mxq-o .ar{font-size:21px;line-height:1.45;color:#0F766E}
@media (max-height:700px) and (max-width:899px){
  .mxc{gap:5px} .mxc-card{padding:5px 3px 2px;border-radius:14px} .mxc-pl{width:36px;height:36px} .mxc-row i{font-size:16px}
  .mxc-en{font-size:11.5px;margin-top:3px} .mxc-ar{font-size:16px;line-height:1.45}
  .mxq-o .mxc-pl{width:50px;height:50px} .mxq-o b{font-size:15px} .tl-cap .tl-o.mxq-o .ar{font-size:18px}
}
@media (min-height:800px) and (max-width:899px){
  .mxc-pl{width:min(52px,calc((50vw - 60px) / 3));height:min(52px,calc((50vw - 60px) / 3))} .mxc-row{gap:2px} .mxc-row i{font-size:19px} .mxc-en{font-size:min(13.5px,3.5vw)} .mxc-ar{font-size:min(20px,5.3vw)} .mxc-card{padding:9px 3px 5px}
}
@media (min-width:900px){
  .mxc{grid-template-columns:repeat(3,1fr);max-width:820px;gap:12px} .mxc-card{padding:10px 6px 6px} .mxc-pl{width:62px;height:62px} .mxc-row i{font-size:24px}
  .mxc-en{font-size:16px} .mxc-ar{font-size:24px} .mxq-o .mxc-pl{width:76px;height:76px}
}
/* 24 Nov: Make this colour has 3 pots a round (2 right + 1 other), so the pots are bigger, with the name and Arabic under the paint */
.mx-pots.three .mx-pot{flex-direction:column;align-items:center;text-align:center;gap:4px;padding:10px 4px 6px}
.mx-pots.three .mx-pot i{width:58px;height:50px}
.mx-pots.three .mx-pn{align-items:center}
.mx-pots.three .mx-pot b{font-size:20px}
.mx-pots.three .mx-pn .ar{font-size:23px;line-height:1.4}
@media (max-height:700px) and (max-width:899px){ .mx-pots.three .mx-pot{padding:6px 4px 4px} .mx-pots.three .mx-pot i{width:44px;height:38px} .mx-pots.three .mx-pot b{font-size:17px} .mx-pots.three .mx-pn .ar{font-size:19px} }

/* ================= SPELLING (25 Nov): English page section, Arabic spelling card in Learn words, Spell it! and Missing letter ================= */
.lv3{background:#E6F4F1;border-color:#0F766E;color:#0B3D38;min-height:120px}
.world.spgr .ic.sic{background:#fff;overflow:hidden;padding:3px}
.world.spgr .ic.sic img{width:100%;height:100%;object-fit:contain}
.world.spgr .nm{font-size:17px}
.world.spgr .spx{font-size:13px;font-weight:700;color:var(--d);line-height:1.3}
.sc.spg{min-height:0;padding:12px 8px 10px;background:#E6F4F1;border-color:#0F8A7E;color:#0B3D38}
.sc.spg .tlc{height:100px;width:100%;display:flex;align-items:flex-end;justify-content:center}
.sc.spg .tlc .tl-img{height:100px;width:auto;max-width:100%;object-fit:contain;object-position:50% 100%}
.sc.spg .nm{font-size:18px;margin-top:4px}
.sc.spg .tln{font-size:12px;font-weight:700;color:#3C6E68;line-height:1.3}
.sp-card{text-align:center;padding:12px 12px 16px}
.sp-tag{display:inline-block;background:#E3F2FD;color:#0B3A6E;border-radius:999px;padding:1px 14px;font-weight:800;font-size:14px}
.sp-q{height:42px;display:flex;align-items:center;justify-content:center;gap:8px;font-size:22px;font-weight:800;color:#0B3A6E}
.sp-q .sp-word{font-size:32px;color:#2E7D32;letter-spacing:2px}.sp-q .sp-en{font-size:24px;color:#2E7D32}
.sp-ar .sp-q{height:34px;font-size:20px}
.sp-join{height:84px;font-size:54px;line-height:1.55;color:#0F766E;display:flex;align-items:center;justify-content:center}
.sp-join.full{color:#1E1E3F}
.sp-join .sp-hint{font:800 18px/1 'Baloo 2',sans-serif;color:#8A97A6;direction:ltr}
.lvem.lvar .ar{font-size:40px;line-height:1.3;color:#0F766E;padding-bottom:8px}
.sp-boxes{display:flex;justify-content:center;gap:7px;margin:4px 0 14px}
.sp-bx{flex:0 1 58px;min-width:0;height:66px;border-radius:16px;border:3px dashed #B8C4D2;background:#F7F9FC;display:flex;align-items:center;justify-content:center;font-size:40px;font-weight:800;color:#B8C4D2;position:relative}
.sp-bx.ar{font-family:'AlQalam',serif;font-size:42px;line-height:1;padding-bottom:6px}
.sp-bx.now{border:3px solid #FFB300;background:#FFF8E1;color:#E0A000;box-shadow:0 0 0 5px rgba(255,193,7,.35);animation:spnow 1.4s ease-in-out infinite}
.sp-bx.now::after{content:'NOW';position:absolute;top:-12px;left:50%;transform:translateX(-50%);background:#FFB300;color:#fff;font:800 11px/16px 'Baloo 2',sans-serif;border-radius:6px;padding:0 6px}
@keyframes spnow{50%{box-shadow:0 0 0 9px rgba(255,193,7,.18)}}
.sp-bx.ok{border:3px solid #4CB050;background:#EAF8EC;color:#1E1E3F}
.sp-bx.ok.ar{color:#0F766E}
.sp-bx.pop{animation:sppop .3s ease-out}
@keyframes sppop{50%{transform:translateY(-6px)}}
.sp-bx.win{background:#4CB050;border-color:#2E8A3B;color:#fff}
.sp-tiles{display:flex;flex-wrap:wrap;justify-content:center;align-content:flex-start;gap:8px;min-height:70px}
.sp-tiles.many{min-height:140px}
.sp-tiles.gone{visibility:hidden}
.sp-tl{width:60px;height:62px;border-radius:16px;background:#fff;border:3px solid #CFD8E3;border-bottom-width:7px;font:800 36px/1 'Baloo 2',sans-serif;color:#1F4E8C;cursor:pointer;padding:0 0 4px}
.sp-tl.ar{font-family:'AlQalam',serif;font-size:40px;color:#0F766E;padding:0 0 8px}
.sp-tl.used{opacity:.22;pointer-events:none}
.sp-tl.hint{border-color:#FFB300;box-shadow:0 0 0 5px rgba(255,193,7,.45);animation:spnow 1s ease-in-out infinite}
.sp-tl.wrong{animation:wig .4s}
@media (max-height:700px) and (max-width:899px){
  .sp-q{height:34px;font-size:19px} .sp-join{height:64px;font-size:44px} .sp-bx{height:56px;font-size:34px} .sp-bx.ar{font-size:36px}
  .sp-tl{width:52px;height:54px;font-size:30px} .sp-tl.ar{font-size:34px} .sp-tiles{gap:6px;min-height:58px} .sp-tiles.many{min-height:118px} .sp-boxes{margin:2px 0 10px}
}
@media (min-width:900px){ .sp-tiles.many{min-height:70px} .sp-tl{width:66px;height:68px} .sp-bx{flex-basis:66px;height:74px} }

/* ================= SAY IT, THINK FIRST, FIRST-TRY STREAK (25 Nov, js/speak.js) ================= */
.sy-ov{position:fixed;inset:0;z-index:30;background:rgba(4,30,60,.35);display:flex;align-items:flex-end;justify-content:center;padding:12px 12px calc(env(safe-area-inset-bottom,0px) + 14px);animation:fadein .2s}
.sy-card{width:100%;max-width:560px;text-align:center;padding:12px 14px 16px;animation:syup .25s ease-out}
@keyframes syup{from{transform:translateY(30px);opacity:0}}
.sy-tag{display:inline-block;background:#FFEBEE;color:#B71C1C;border-radius:999px;padding:1px 14px;font-weight:800;font-size:15px}
.sy-pic{height:110px;display:flex;align-items:flex-end;justify-content:center;margin:6px 0 0}
.sy-pic img{height:100%;width:auto;max-width:80%;object-fit:contain;filter:drop-shadow(0 6px 6px rgba(0,0,0,.15))}
.sy-w.ar{font-size:50px;line-height:1.6;color:#0F766E}
.sy-w.en{font-size:40px;font-weight:800;line-height:1.3;color:#1F4E8C;margin-top:4px}
.sy-m{font-size:17px;font-weight:800;color:#7A3A00;margin-top:-4px}
.sy-m .ur{font-size:17px;font-weight:400;color:#6A1B9A}.sy-m .ar{font-size:24px;font-weight:400;color:#0F766E}
.sy-say{font-size:20px;font-weight:800;color:#0B3A6E;margin:8px 0 4px;min-height:30px}
.sy-mic{--lv:0;width:88px;height:88px;border-radius:50%;border:none;background:#E53935;color:#fff;font-size:42px;margin:4px auto 6px;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 6px 0 #A71D1A,0 0 0 calc(6px + var(--lv) * 16px) rgba(229,57,53,.22);transition:box-shadow .08s}
.sy-mic.on{background:#D32F2F}
.sy-mic:disabled{opacity:.6}
.sy-meter{display:flex;justify-content:center;gap:8px;margin:2px 0 8px}
.sy-meter i{font-style:normal;font-size:30px;filter:grayscale(1);opacity:.28;transition:opacity .2s,filter .2s}
.sy-meter i.on{filter:none;opacity:1}
.sy-gp{border:2px dashed #FFB74D;background:#FFF8EE;color:#8A4B00;border-radius:12px;padding:4px 12px;font:800 14px 'Baloo 2',sans-serif;cursor:pointer}
.sy-gp.big{font-size:19px;padding:10px 18px;border-style:solid;border-width:3px;border-bottom-width:6px;background:#E8F5E9;border-color:#4CB050;color:#1E5E24}
.sy-gpt{display:inline-block;background:#FFF3E0;border:2px dashed #FFB74D;border-radius:12px;padding:2px 10px;font-size:14px;font-weight:800;color:#8A4B00;margin-top:2px}
.sy-row{display:flex;gap:10px;margin-top:10px}
.sy-b{flex:1;border-radius:18px;padding:10px 6px;font:800 19px 'Baloo 2',sans-serif;border:3px solid;border-bottom-width:7px;cursor:pointer}
.sy-b.g{background:#E8F5E9;border-color:#4CB050;color:#1E5E24}.sy-b.w{background:#fff;border-color:#CFD8E3;color:#5F6B76}
.sy-b.wrong{animation:wig .4s}
/* the word lesson's own Say it step (the picture stays in the meadow above the card) */
.card.sy-step .sy-pic{display:none}
.card.sy-step,.sy-card{text-align:center}
.sy-w{text-align:center}
/* think first */
#think{position:fixed;inset:0;z-index:25;display:none;align-items:flex-end;justify-content:center;padding-bottom:calc(env(safe-area-inset-bottom,0px) + 18px);pointer-events:auto}
#think.on{display:flex}
.th-pill{display:flex;align-items:center;gap:10px;background:#FFF8E1;border:3px solid #FFB300;border-radius:999px;padding:6px 18px 6px 8px;font-weight:800;font-size:19px;color:#8A4B00;box-shadow:0 6px 16px rgba(0,0,0,.18);animation:syup .2s ease-out}
.th-ring{width:42px;height:42px;border-radius:50%;background:conic-gradient(#FFB300 var(--p,100%),#FFE9B0 0);display:flex;align-items:center;justify-content:center;animation:thring 3s linear forwards}
@property --p{syntax:'<percentage>';inherits:false;initial-value:100%}
@keyframes thring{from{--p:100%}to{--p:0%}}
.th-ring b{width:32px;height:32px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;font-size:18px}
body.thinking .scr .bottom,body.thinking .scr .gwrap,body.thinking .scr .sn-card{filter:grayscale(.85);opacity:.55;transition:filter .2s,opacity .2s}
/* the first-try streak */
#firep{white-space:nowrap;position:fixed;right:110px;top:calc(env(safe-area-inset-top,0px) + 12px);z-index:24;background:#FFF3E0;border:3px solid #FFB300;border-radius:999px;padding:0 12px;display:flex;align-items:center;gap:3px;font-weight:800;font-size:18px;color:#8A4B00;opacity:0;pointer-events:none;transform:translateY(-6px);transition:opacity .25s,transform .25s;box-shadow:0 3px 0 #E0A000}
#firep.on{opacity:1;transform:translateY(0)}
#firep b{font-size:20px}#firep small{font-size:13px;opacity:.7}
#firep.broke{background:#ECEFF1;border-color:#B0BEC5;color:#607D8B;box-shadow:0 3px 0 #90A4AE}
.sy-ov.pz{align-items:center;z-index:31}
.pz-card{max-width:360px;width:100%;text-align:center;padding:18px 16px}
.pz-t{font-size:28px;font-weight:800;color:#8A4B00}
.pz-e{font-size:84px;line-height:1.2;margin:6px 0}
.pz-s{font-size:19px;font-weight:700;color:#2E7D32;margin-bottom:8px}
.pz-all{display:flex;justify-content:center;gap:4px;flex-wrap:wrap;font-size:24px;margin-bottom:12px}
/* prizes in the home sky */
.pz-layer{position:absolute;inset:0;pointer-events:none}
.pz-layer span{position:absolute;font-size:clamp(50px,6vw,80px);line-height:1;animation:pzfloat 4s ease-in-out infinite;filter:drop-shadow(0 6px 6px rgba(0,0,0,.2))}   /* 30 Nov: bigger ("the reward pic is small size"); the same size all the time */
@keyframes pzfloat{50%{transform:translateY(-8px)}}
.scr.home > .top,.scr.home > .bottom{position:relative;z-index:1}
@media (max-height:700px) and (max-width:899px){ .sy-pic{height:80px} .sy-w.ar{font-size:42px} .sy-w.en{font-size:34px} .sy-mic{width:74px;height:74px;font-size:36px} .sy-meter i{font-size:26px} }

/* 30 Nov: sharp HTML words on the 3D bubbles (Bubble pop, Catch the word); under the game's own panels, taps go through to the bubbles */
.bb-lay{position:fixed;inset:0;pointer-events:none;overflow:hidden}
.bb-l{position:absolute;left:0;top:0;background:#fff;border:3px solid #0F6E56;border-radius:999px;padding:0 .5em;font-weight:400;font-size:var(--fs,30px);line-height:1.6;color:#04342C;white-space:nowrap;will-change:transform;box-shadow:0 3px 8px rgba(0,0,0,.15)}
.bb-l.wob{animation:bbwig .4s}
@keyframes bbwig{20%{rotate:-7deg}40%{rotate:7deg}60%{rotate:-4deg}80%{rotate:3deg}}

/* 30 Nov, the parent: "the words in circles has smalll size" (Make it bloom). Bigger petal words; long ones a step smaller so they fit */
.bloom .pe{font-size:19px}.bloom .pe .ur{font-size:21px;line-height:1.7}
.bloom.b8 .pe{font-size:18px}.bloom.b8 .pe .ur{font-size:20px}
.bloom .pe.long{font-size:15px}.bloom .pe.long .ur{font-size:17px}
@media (min-width:900px) and (min-height:700px){
  .bloom,.bloom.b8{width:min(58vh,470px)}
  .bloom .pe,.bloom.b8 .pe{font-size:23px}.bloom .pe .ur,.bloom.b8 .pe .ur{font-size:25px}
  .bloom .pe.long,.bloom.b8 .pe.long{font-size:19px}.bloom .pe.long .ur,.bloom.b8 .pe.long .ur{font-size:21px}
  .bloom .ce{font-size:48px}
}

/* 1 Dec: on a wide screen the lesson tips sit beside the picture (app.js sideTips), so the card is shorter and the picture bigger */
.side-tips{position:absolute;transform:translateY(-50%);display:flex;flex-direction:column;gap:12px;z-index:2;pointer-events:auto;overflow:auto}
.side-tips .tip{margin:0;font-size:17px;padding:14px 16px;line-height:1.45;box-shadow:0 6px 18px rgba(11,58,110,.12)}
.side-tips .tip .ur{font-size:19px;line-height:2.05}

/* ================= INSTALL THE APP + MOVE PROGRESS (1 Dec 2026, js/pwa.js) ================= */
.inst{display:flex;align-items:stretch;gap:6px;margin:0 0 10px}
.inst[hidden]{display:none}
.inst-go{flex:1;display:flex;align-items:center;gap:10px;min-width:0;border:3px solid #0F8A63;border-bottom-width:6px;border-radius:18px;background:linear-gradient(90deg,#E9FBF3,#FFFFFF);padding:6px 8px 6px 6px;cursor:pointer;font-family:'Baloo 2',sans-serif;text-align:left;animation:instin .5s ease-out}
@keyframes instin{from{opacity:0;transform:translateY(-6px)}}
.inst-ic img{width:44px;height:44px;border-radius:11px;display:block;box-shadow:0 3px 6px rgba(11,58,110,.2)}
.inst-t{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.15}
.inst-t b{font-size:17px;font-weight:800;color:#0B5E45}
.inst-t small{font-size:12.5px;font-weight:700;color:#4B6B60;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.inst-b{flex:none;background:#0F8A63;color:#fff;font-weight:800;font-size:16px;border-radius:12px;padding:6px 14px;box-shadow:0 3px 0 #076149}
.inst-x{flex:none;width:34px;border:none;background:rgba(11,58,110,.06);border-radius:12px;color:#5F6B76;font-size:15px;font-weight:800;cursor:pointer}
.pbtn{flex:none;border:none;border-radius:12px;background:#0F8A63;color:#fff;font:800 15px 'Baloo 2',sans-serif;padding:7px 16px;box-shadow:0 3px 0 #076149;cursor:pointer;text-decoration:none;display:inline-block}
.pbtn.alt{background:#fff;color:#0B5E45;border:2px solid #0F8A63;box-shadow:0 3px 0 #9FD8C3}
.prow.lrow > .pbtn{margin-top:8px}
.mv-btns{display:flex;gap:8px;margin-top:8px}
.mv-box{padding:4px 0 12px;border-bottom:1.5px solid #EEEDE8}
.mv-box[hidden]{display:none}
.mv-box textarea{width:100%;box-sizing:border-box;border:2px solid #CFD8E3;border-radius:12px;padding:8px;font:12px/1.35 ui-monospace,Menlo,Consolas,monospace;color:#1F2A36;resize:vertical;word-break:break-all}
.mv-row{display:flex;gap:8px;margin:6px 0}
.mv-row [hidden]{display:none}
.mv-box .sub{font-size:13px;color:#5F6B76;font-weight:700}
/* the install guide (iPhone, iPad, Android menus, Mac Safari, in-app browsers) */
.modal.g-modal .card{max-width:400px;text-align:left}
.g-h{display:flex;align-items:center;gap:12px;margin-bottom:6px}
.g-h img{width:56px;height:56px;border-radius:14px;box-shadow:0 4px 10px rgba(11,58,110,.2)}
.g-h b{display:block;font-size:22px;font-weight:800;color:#0B3A6E;line-height:1.1}.g-h small{font-size:14px;font-weight:700;color:#5F6B76}
.g-steps{list-style:none;margin:8px 0 12px;padding:0;display:flex;flex-direction:column;gap:8px}
.g-steps li{display:flex;align-items:center;gap:12px;background:#F4F8FC;border-radius:14px;padding:8px 10px}
.g-i{flex:none;width:44px;height:44px;border-radius:12px;background:#fff;box-shadow:0 2px 0 #DDE5EE;display:flex;align-items:center;justify-content:center;font-size:22px}
.g-i .g-n{font-size:13px;color:#1E88E5}
.g-t{font-size:16px;font-weight:600;color:#1F2A36;line-height:1.3}
.g-t i{font-style:normal;display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:#0F8A63;color:#fff;font-size:13px;font-weight:800;margin-right:6px;vertical-align:1px}
.modal.g-modal .btn{width:100%;margin-top:8px}
.g-arrow{position:fixed;left:50%;bottom:calc(env(safe-area-inset-bottom,0px) + 6px);transform:translateX(-50%);font-size:34px;color:#fff;text-shadow:0 2px 6px rgba(0,0,0,.4);animation:garrow 1s ease-in-out infinite}
@keyframes garrow{50%{transform:translate(-50%,8px)}}
@media (max-height:700px){ .inst-ic img{width:36px;height:36px} .inst-t b{font-size:15px} .inst-t small{font-size:11.5px} .inst-b{font-size:14px;padding:4px 10px} .inst{margin-bottom:8px} }
/* 2 Dec: on a 360 px phone the home top bar pushed the ⚙ off the edge */
@media (max-width:380px){ .scr.home .top .logo{padding:0 11px;gap:6px} .scr.home .top .logo b{font-size:18px} .scr.home .top .logo .ar{font-size:20px} .scr.home .top{gap:6px} }
