
:root{--pri:#2f6fde;--ink:#1f2433;--bg:#f6f8ff;--card:#fff;--b:#1f9d55;--c:#2f6fde;--a:#8b3fd1;--fs:1}
*{box-sizing:border-box}
html{font-size:calc(17px * var(--fs))}
body{margin:0;font-family:Rubik,Heebo,Assistant,Arial,sans-serif;background:var(--bg);color:var(--ink);direction:rtl;text-align:right;line-height:1.6}
a{color:#1a4fb8}
:focus-visible{outline:3px solid #ff9f1c;outline-offset:2px}
.skip{position:absolute;right:-999px}.skip:focus{right:8px;top:8px;background:#fff;padding:8px;z-index:9}
header.top{background:linear-gradient(90deg,#1aa3b8,#2f6fde 55%,#8b3fd1);color:#fff;padding:8px 14px;display:flex;flex-wrap:wrap;align-items:center;gap:8px;position:sticky;top:0;z-index:5;box-shadow:0 2px 10px #0002}
header.top .brand{font-weight:800;color:#fff;text-decoration:none;font-size:1.05rem;margin-left:auto}
header.top nav{display:flex;flex-wrap:wrap;gap:4px}
header.top nav a,header.top button{color:#fff;background:#ffffff26;border:0;border-radius:20px;padding:6px 12px;text-decoration:none;font:inherit;font-size:.9rem;cursor:pointer;min-height:40px}
header.top nav a[aria-current=page]{background:#fff;color:#2f6fde;font-weight:700}
.tools{display:flex;gap:4px}
main{max-width:1100px;margin:0 auto;padding:14px}
.crumbs{font-size:.88rem;margin:4px 0 10px}.crumbs ol{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:4px}.crumbs li+li:before{content:"‹ ";color:#888}
.hero{display:grid;grid-template-columns:1.1fr 1fr;gap:16px;align-items:center;background:#fff;border-radius:22px;padding:16px;box-shadow:0 6px 24px #2f6fde1f}
.hero img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:16px;display:block}
.hero h1{font-size:2rem;margin:.2em 0;line-height:1.2}
@media(max-width:760px){.hero{grid-template-columns:1fr}.hero h1{font-size:1.55rem}}
.lvls{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.lvl{border:3px solid transparent;border-radius:16px;padding:10px 14px;font:inherit;font-weight:700;cursor:pointer;color:#fff;min-height:52px;flex:1;min-width:150px;text-align:right}
.lvl small{display:block;font-weight:400;font-size:.8rem;opacity:.95}
.lvl.b{background:var(--b)}.lvl.c{background:var(--c)}.lvl.a{background:var(--a)}
.lvl[aria-pressed=true]{border-color:#ffb703;box-shadow:0 0 0 3px #fff inset,0 4px 14px #0003;transform:translateY(-2px)}
.unit{margin:22px 0 8px;padding:10px 16px;border-radius:16px;color:#fff;display:flex;gap:12px;align-items:center}
.unit h2{margin:0;font-size:1.3rem}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px}
.tcard{background:#fff;border-radius:18px;padding:14px;text-decoration:none;color:var(--ink);box-shadow:0 3px 14px #0001;border-top:6px solid var(--u,#2f6fde);display:flex;flex-direction:column;gap:4px;transition:transform .15s}
.tcard:hover{transform:translateY(-3px)}
.tcard .ic{font-size:2rem}.tcard b{font-size:1.05rem}.tcard span{font-size:.85rem;color:#555}
.chips{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}.chips i{font-style:normal;font-size:.75rem;background:#eef2ff;border-radius:10px;padding:2px 8px}
.tabs{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}
.tabs button{font:inherit;border:0;border-radius:14px;padding:10px 16px;background:#fff;box-shadow:0 2px 8px #0001;cursor:pointer;min-height:48px;font-weight:700}
.tabs button[aria-selected=true]{background:var(--u,#2f6fde);color:#fff}
.panel{background:#fff;border-radius:20px;padding:16px;box-shadow:0 4px 18px #0001}
.files{width:100%;border-collapse:collapse}.files td,.files th{padding:8px;border-bottom:1px solid #e8ebf3;text-align:right}
.fbtn{display:inline-block;border-radius:12px;padding:6px 12px;margin:2px;text-decoration:none;font-weight:700;font-size:.9rem;color:#fff}
.fbtn.pdf{background:#e0475b}.fbtn.doc{background:#2b5fc4}
.badge{display:inline-block;border-radius:12px;padding:2px 10px;color:#fff;font-size:.85rem;font-weight:700}
.badge.b{background:var(--b)}.badge.c{background:var(--c)}.badge.a{background:var(--a)}.badge.t{background:#444b5a}
.concepts{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px}
.concept{border:2px solid var(--u);border-radius:16px;padding:10px 12px}.concept h3{margin:0 0 4px;color:var(--u)}
.read p{font-size:1.08rem}
.say{border:0;background:#fff3c4;border-radius:12px;padding:6px 10px;cursor:pointer;font:inherit;min-height:40px}
.games{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:10px}
.gbtn{font:inherit;border:0;border-radius:18px;padding:16px;color:#fff;font-weight:800;font-size:1.05rem;cursor:pointer;min-height:90px;text-align:right;box-shadow:0 4px 14px #0002}
.gbtn small{display:block;font-weight:400;font-size:.8rem}
.stage{margin-top:14px;border-radius:20px;background:#f9faff;border:2px dashed #cbd3ea;padding:14px;min-height:120px}
.stage.board{font-size:1.45rem}
.q{font-size:1.25rem;font-weight:800;margin:6px 0 12px}
.k4{display:grid;grid-template-columns:1fr 1fr;gap:10px}
@media(max-width:560px){.k4{grid-template-columns:1fr}}
.k4 button{font:inherit;border:0;border-radius:16px;color:#fff;padding:14px;min-height:64px;font-weight:700;cursor:pointer;text-align:right;display:flex;gap:10px;align-items:center}
.k4 button .sh{font-size:1.5rem}
.k0{background:#e0475b}.k1{background:#2f6fde}.k2{background:#d99a00}.k3{background:#1f9d55}
.k4 button.dim{opacity:.35}.k4 button.ok{outline:5px solid #111}
.timer{height:12px;background:#e3e7f3;border-radius:8px;overflow:hidden;margin:6px 0}.timer i{display:block;height:100%;background:linear-gradient(90deg,#1f9d55,#ffb703,#e0475b);transition:width .25s linear}
.bar{display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px;font-weight:700}
.fb{min-height:1.6em;font-weight:700;margin-top:8px}
.btn{font:inherit;border:0;border-radius:14px;padding:10px 16px;background:var(--u,#2f6fde);color:#fff;font-weight:700;cursor:pointer;min-height:48px;margin:4px}
.btn.sec{background:#fff;color:var(--ink);border:2px solid #cfd6ea}
.hm{display:grid;grid-template-columns:200px 1fr;gap:14px;align-items:center}
@media(max-width:560px){.hm{grid-template-columns:1fr}}
.word{font-size:2rem;letter-spacing:.15em;font-weight:800;direction:rtl;margin:8px 0;word-break:break-word}
.keys{display:flex;flex-wrap:wrap;gap:5px}.keys button{font:inherit;width:44px;height:48px;border-radius:10px;border:2px solid #cfd6ea;background:#fff;font-size:1.2rem;font-weight:700;cursor:pointer}
.keys button:disabled{opacity:.3}
.mgrid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.mgrid div{display:flex;flex-direction:column;gap:6px}
.mgrid button{font:inherit;border:2px solid #cfd6ea;background:#fff;border-radius:12px;padding:10px;cursor:pointer;text-align:right;min-height:48px}
.mgrid button.sel{border-color:#ffb703;background:#fff8dc}.mgrid button.done{background:#e6f7ed;border-color:#1f9d55;color:#145c34}
.mem{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px}
.mem button{font:inherit;min-height:110px;border-radius:14px;border:0;cursor:pointer;background:linear-gradient(135deg,#6a5be2,#1aa3b8);color:#fff;font-size:.92rem;padding:8px}
.mem button.open{background:#fff;color:var(--ink);border:2px solid #6a5be2}.mem button.got{background:#e6f7ed;color:#145c34;border:2px solid #1f9d55}
.tfb{display:flex;gap:10px;justify-content:center}.tfb button{font:inherit;font-size:1.3rem;font-weight:800;border:0;border-radius:16px;padding:16px 30px;color:#fff;cursor:pointer;min-height:64px}
footer{max-width:1100px;margin:30px auto;padding:14px;display:flex;align-items:center;gap:10px;justify-content:center;color:#555;font-size:.9rem}
footer img{height:44px}
.pn{display:flex;justify-content:space-between;gap:8px;margin:16px 0}.pn a{background:#fff;border-radius:14px;padding:10px 14px;text-decoration:none;font-weight:700;box-shadow:0 2px 8px #0001}
.note{background:#fff8dc;border-right:5px solid #ffb703;border-radius:10px;padding:8px 12px}
.n{direction:ltr;unicode-bidi:embed}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
@media(max-width:760px){header.top{position:static;padding:6px 10px}header.top nav a,header.top button{padding:4px 10px;min-height:36px;font-size:.82rem}header.top .brand{width:100%;margin:0}.word{font-size:1.5rem;letter-spacing:.08em}}
