
:root{--ink:#2b1d22;--wine:#7a2e3a;--wine2:#5b1f2a;--gold:#b8893b;--gold2:#e7cf9a;--paper:#fbf6ec;--paper2:#f3e9d6;--navy:#1f3352;--teal:#2c6e6a;--fs:17px;--ok:#2e7d32;--bad:#b3261e;--ser:"Noto Serif Hebrew","Frank Ruhl Libre","David","Times New Roman",serif;--sans:"Rubik","Heebo","Noto Sans Hebrew","Arial Hebrew",Arial,sans-serif}
*{box-sizing:border-box}html{font-size:var(--fs)}
body{margin:0;font-family:var(--sans);color:var(--ink);background:var(--paper);background-image:radial-gradient(circle at 15% 10%,#fffaf0 0,transparent 45%),radial-gradient(circle at 90% 80%,#f1e2c6 0,transparent 40%);line-height:1.65;overflow-x:hidden}
a{color:var(--wine)}a:hover{color:var(--wine2)}
:focus-visible{outline:4px solid #f2b600;outline-offset:2px;border-radius:6px}
.skip{position:absolute;right:-999px;top:0;background:#fff;padding:.5rem 1rem;z-index:99}.skip:focus{right:1rem}
header.top{background:linear-gradient(135deg,#3a1a22,#5b1f2a 55%,#7a2e3a);color:#fff;box-shadow:0 6px 18px rgba(60,20,30,.35);position:sticky;top:0;z-index:20}
.topin{max-width:1180px;margin:auto;display:flex;align-items:center;gap:.6rem;padding:.45rem .8rem;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:.5rem;color:#fff;text-decoration:none;font-family:var(--ser);font-weight:700;font-size:1.08rem}
.brand img{width:34px;height:34px;border-radius:50%;border:2px solid var(--gold2)}
nav.main{display:flex;gap:.15rem;flex-wrap:wrap;flex:1;justify-content:flex-start}
nav.main a{color:#fbeedd;text-decoration:none;padding:.35rem .6rem;border-radius:999px;font-size:.92rem;white-space:nowrap}
nav.main a[aria-current=page],nav.main a:hover{background:rgba(255,255,255,.16);color:#fff}
.tools{display:flex;gap:.3rem;align-items:center}
.tools button,.trk{background:rgba(255,255,255,.14);color:#fff;border:1px solid rgba(255,255,255,.3);border-radius:999px;padding:.3rem .65rem;font:inherit;font-size:.85rem;cursor:pointer;text-decoration:none}
.menu{display:none}
@media (max-width:760px){.menu{display:inline-block}nav.main{display:none;width:100%;order:9}nav.main.open{display:flex}.brand span.t{font-size:.95rem}}
main{max-width:1180px;margin:auto;padding:1rem .9rem 3rem}
.crumbs{font-size:.88rem;margin:.2rem 0 .8rem;color:#6b5a50}.crumbs a{text-decoration:none}.crumbs span[aria-current]{font-weight:700;color:var(--ink)}
h1,h2,h3{font-family:var(--ser);line-height:1.25}h1{font-size:2rem;margin:.3rem 0 .6rem;color:var(--wine2)}h2{font-size:1.45rem;color:var(--wine);margin:1.6rem 0 .6rem}h3{font-size:1.15rem;margin:1rem 0 .4rem}
.hero{position:relative;border-radius:26px;padding:2rem 1.4rem;background:linear-gradient(140deg,#fffaf0,#f4e5c8);box-shadow:0 1px 0 #fff inset,0 18px 40px rgba(90,50,30,.18),0 3px 8px rgba(90,50,30,.12);overflow:hidden;transform-style:preserve-3d}
.hero:before{content:"";position:absolute;inset:auto -60px -80px auto;width:260px;height:260px;border-radius:50%;background:radial-gradient(circle,#e7cf9a,transparent 70%);opacity:.7}
.hero h1{font-size:2.3rem;margin:0}.hero p{font-size:1.1rem;max-width:720px}
.book3d{position:absolute;left:1.4rem;top:1.2rem;width:110px;height:150px;transform:perspective(600px) rotateY(28deg) rotateX(6deg);border-radius:4px 10px 10px 4px;background:linear-gradient(90deg,#4a1720 0 12px,#7a2e3a 12px);box-shadow:-10px 14px 24px rgba(0,0,0,.28),inset -6px 0 0 #f3e9d6,inset -8px 0 0 #d8c39b;display:flex;align-items:center;justify-content:center;font-size:2.8rem}
@media (max-width:760px){.book3d{position:static;margin:0 auto 1rem;width:84px;height:112px;font-size:2rem}.hero h1{font-size:1.7rem}}
.grid{display:grid;gap:1rem;grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}
.card{display:block;background:#fffdf8;border-radius:18px;padding:1rem 1.1rem;text-decoration:none;color:inherit;border:1px solid #ead9b8;box-shadow:0 10px 22px rgba(90,50,30,.12),0 2px 0 #fff inset;transition:transform .2s,box-shadow .2s;position:relative}
a.card:hover{transform:translateY(-4px) rotateX(3deg);box-shadow:0 18px 32px rgba(90,50,30,.2)}
.card .em{font-size:2rem}.card h3{margin:.3rem 0}.card p{margin:.2rem 0;font-size:.95rem;color:#5e4c44}
.spine{border-right:10px solid var(--wine);background:linear-gradient(90deg,#fffdf8 85%,#f6ead2)}
.chip{display:inline-block;background:var(--paper2);border:1px solid #e2cfa8;border-radius:999px;padding:.12rem .6rem;font-size:.8rem;margin:.1rem;color:#5b4232}
.chip.pd{background:#e6f2ea;border-color:#a9cfb4;color:#24563a}.chip.kd{background:#fdeee0}
.tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:.7rem}
@media (max-width:560px){.tiles{grid-template-columns:repeat(3,1fr);gap:.4rem}.tile{padding:.6rem .3rem!important;font-size:.85rem}}
.tile{border:2px solid #e2cfa8;background:#fffdf8;border-radius:16px;padding:.9rem .6rem;text-align:center;cursor:pointer;font:inherit;color:inherit;box-shadow:0 6px 0 #e2cfa8,0 10px 18px rgba(90,50,30,.12);transition:transform .15s}
.tile:hover{transform:translateY(-2px)}.tile[aria-pressed=true]{background:var(--wine);color:#fff;border-color:var(--wine2);box-shadow:0 6px 0 var(--wine2)}
.tile b{display:block;font-size:1.02rem}.tile small{opacity:.85}
.bandh{font-weight:700;margin:.6rem 0 .2rem;font-family:var(--ser)}
.panel{background:#fffdf8;border:1px solid #ead9b8;border-radius:18px;padding:1rem 1.2rem;margin:1rem 0;box-shadow:0 8px 18px rgba(90,50,30,.08)}
.panel.big{border-right:8px solid var(--gold)}
.trackbar{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap;background:#f6ecda;border-radius:14px;padding:.45rem .8rem;margin-bottom:.8rem;font-size:.92rem}
.poem,.prose{font-family:var(--ser);background:#fffdf7;border-right:4px solid var(--gold);padding:1rem 1.3rem;border-radius:10px;white-space:pre-line;font-size:1.12rem;line-height:2.05;box-shadow:inset 0 0 30px rgba(184,137,59,.08)}
.prose{line-height:1.9}.sec{display:block;font-weight:700;color:var(--wine);margin-top:.8rem}
.tabs{display:flex;gap:.3rem;flex-wrap:wrap;margin:.6rem 0}.tabs button{font:inherit;border:1px solid #d9c39b;background:#fff;border-radius:999px;padding:.35rem .8rem;cursor:pointer}.tabs button[aria-selected=true]{background:var(--wine);color:#fff;border-color:var(--wine)}
.q{background:#fff;border:1px solid #eadcc0;border-radius:14px;padding:.7rem .9rem;margin:.55rem 0}.q .lvl{font-size:.75rem;font-weight:700;border-radius:999px;padding:.05rem .5rem;margin-left:.4rem;color:#fff}
.l1{background:#2c6e6a}.l2{background:#1f3352}.l3{background:#7a2e3a}
textarea{width:100%;min-height:70px;font:inherit;border:1px solid #d9c39b;border-radius:10px;padding:.5rem;background:#fffdf8}
.btn{display:inline-block;font:inherit;background:var(--wine);color:#fff;border:0;border-radius:999px;padding:.5rem 1.1rem;cursor:pointer;text-decoration:none;box-shadow:0 4px 0 var(--wine2);margin:.2rem}
.btn:hover{color:#fff;filter:brightness(1.08)}.btn.sec2{background:#fff;color:var(--wine);border:2px solid var(--wine);box-shadow:none}
.btn.gold{background:var(--gold);box-shadow:0 4px 0 #8a6527}
.opts{display:grid;gap:.5rem;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));margin:.5rem 0}
.opt{font:inherit;text-align:right;background:#fff;border:2px solid #d9c39b;border-radius:14px;padding:.7rem .9rem;cursor:pointer;min-height:52px}
.opt.right{background:#e6f4ea;border-color:var(--ok)}.opt.wrong{background:#fdecea;border-color:var(--bad)}
.fb{min-height:1.4rem;font-weight:700;margin:.3rem 0}.fb.ok{color:var(--ok)}.fb.no{color:var(--bad)}.hint{background:#fff8e1;border-radius:10px;padding:.4rem .7rem;margin:.3rem 0}
.dev{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:.7rem}.dev .card{padding:.8rem}
.dev .k{font-weight:700;color:var(--wine);font-family:var(--ser);font-size:1.1rem}
.gl{cursor:pointer;border:0;background:#e9f0fb;border-radius:999px;padding:.3rem .7rem;margin:.15rem;font:inherit}
.pop{position:fixed;inset:auto 1rem 1rem 1rem;max-width:520px;margin:auto;background:#fff;border-radius:18px;padding:1rem 1.2rem;box-shadow:0 20px 50px rgba(0,0,0,.3);z-index:50;border-top:6px solid var(--gold)}
.pop .e{font-size:2.6rem}
.conn{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:.5rem}.conn div{border-radius:12px;padding:.5rem .7rem}
.c0{background:#e3f2fd}.c1{background:#fde2e4}.c2{background:#e8f5e9}.c3{background:#e3e8fb}
.nextprev{display:flex;justify-content:space-between;gap:.5rem;margin-top:1.6rem;flex-wrap:wrap}
table.r{width:100%;border-collapse:collapse;background:#fff}table.r th,table.r td{border:1px solid #e2cfa8;padding:.45rem .6rem;text-align:right;vertical-align:top}table.r th{background:#f3e3c8}
.tblwrap{overflow-x:auto}
footer.ft{background:#2b1d22;color:#f1e6d4;padding:1.4rem 1rem;text-align:center;font-size:.9rem}footer.ft a{color:var(--gold2)}footer.ft img{width:40px;height:40px;border-radius:50%;vertical-align:middle;margin-left:.4rem}
.cardsdeck{display:grid;grid-template-columns:repeat(3,1fr);gap:.6rem}
@media (max-width:560px){.cardsdeck{grid-template-columns:repeat(2,1fr)}}
.flip{perspective:900px;height:210px;cursor:pointer;border:0;background:none;padding:0;font:inherit}
.flip .in{position:relative;width:100%;height:100%;transition:transform .6s;transform-style:preserve-3d}.flip.on .in{transform:rotateY(180deg)}
.flip .f,.flip .b{position:absolute;inset:0;border-radius:16px;backface-visibility:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:.7rem;text-align:center;box-shadow:0 10px 20px rgba(90,50,30,.18)}
.flip .f{background:linear-gradient(140deg,#7a2e3a,#3a1a22);color:#fff;font-family:var(--ser);font-size:1.4rem}.flip .b{background:#fffdf8;border:2px solid var(--gold);transform:rotateY(180deg);font-size:.95rem;overflow:auto}
.game{background:#fffdf8;border-radius:22px;padding:1rem 1.1rem;box-shadow:0 14px 30px rgba(90,50,30,.15);border:1px solid #ead9b8}
.score{display:flex;gap:.6rem;flex-wrap:wrap;font-weight:700}.score span{background:#f3e3c8;border-radius:999px;padding:.2rem .7rem}
.kq{display:grid;grid-template-columns:1fr 1fr;gap:.6rem}.kq button{font:inherit;color:#fff;border:0;border-radius:14px;padding:1rem .8rem;min-height:70px;cursor:pointer;text-align:right;font-weight:600;box-shadow:0 5px 0 rgba(0,0,0,.25)}
.k0{background:#c0392b}.k1{background:#1f5fa8}.k2{background:#b7860b}.k3{background:#2e7d32}
@media (max-width:560px){.kq{grid-template-columns:1fr}}
.kq button.dim{opacity:.35}.kq button.right{outline:5px solid #111}
.bucket{border:2px dashed #c9a46a;border-radius:14px;padding:.5rem;min-height:90px;background:#fff}.bucket h4{margin:.1rem 0 .3rem;color:var(--wine)}
.item{display:block;width:100%;font:inherit;text-align:right;background:#fff8ec;border:1px solid #e2cfa8;border-radius:10px;padding:.45rem .6rem;margin:.25rem 0;cursor:pointer}
.item[aria-pressed=true]{background:#ffe9a8;border-color:#b8893b}.item.ok{background:#e6f4ea}.item.no{background:#fdecea}
.letters{display:flex;flex-wrap:wrap;gap:.3rem;direction:rtl}.letters button{width:42px;height:44px;font:inherit;font-size:1.15rem;border-radius:10px;border:1px solid #d9c39b;background:#fff;cursor:pointer}.letters button:disabled{opacity:.35}
.word{font-size:2rem;letter-spacing:.35rem;font-family:var(--ser);margin:.6rem 0;direction:rtl}
.lock{display:inline-flex;width:44px;height:52px;align-items:center;justify-content:center;border-radius:10px;background:#3a1a22;color:#e7cf9a;font-size:1.4rem;margin:.15rem;font-family:var(--ser)}
.cert{text-align:center;border:6px double var(--gold);border-radius:20px;padding:1.4rem;background:linear-gradient(140deg,#fffaf0,#f4e5c8)}
pre.code{direction:ltr;text-align:left;background:#2b1d22;color:#f6e7c8;padding:.7rem;border-radius:12px;overflow-x:auto;font-size:.8rem;white-space:pre-wrap;word-break:break-all}
.note{background:#eef6f5;border-right:5px solid var(--teal);padding:.6rem .9rem;border-radius:10px}
.lvd{background:#fff4e5;border-right:5px solid #e08a00;padding:.6rem .9rem;border-radius:10px}
.files li{margin:.3rem 0}.tag{font-size:.75rem;border-radius:6px;padding:.05rem .4rem;margin-inline-start:.3rem;color:#fff}.tg-s{background:#2c6e6a}.tg-t{background:#7a2e3a}.tg-p{background:#b3261e}.tg-w{background:#1f5fa8}.tg-l{background:#6b5a50}
body.embed header.top,body.embed footer.ft,body.embed .crumbs,body.embed .nextprev,body.embed .noembed{display:none!important}body.embed main{padding:.5rem}
body.kids .opt,body.kids .btn{font-size:1.2rem;min-height:64px}body.kids .poem,body.kids .prose{font-size:1.3rem}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
@media print{header.top,footer.ft,.crumbs,.nextprev,.tools,.noprint{display:none!important}body{background:#fff}.cardsdeck{grid-template-columns:repeat(3,1fr)}.flip{height:62mm}.flip .in{transform:none!important}.flip .b{display:none}}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}

main:focus{outline:none}

/* ===== פעילויות אינטראקטיביות ===== */
.card.act,.card3d.act,.dev.act{cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:#7c3aed22;touch-action:manipulation}
.card.act:active,.card3d.act:active,.dev.act:active{transform:scale(.98)}
.card:not(a):not(.act):hover{transform:none}
.actrow{margin:.6rem 0 0}
.actopen-btn,.btn.actb{display:inline-flex;align-items:center;gap:.3rem;min-height:44px;font-weight:700;cursor:pointer;touch-action:manipulation}
.act-done::after{content:"✓ שמרתי";position:absolute;top:.5rem;left:.6rem;background:#16a34a;color:#fff;border-radius:99px;padding:.1rem .55rem;font-size:.8rem;font-weight:700}
.box.act-done,.dev.act-done,.q.act-done{position:relative}
body.actopen{overflow:hidden}
.actm{position:fixed;inset:0;z-index:9999;background:#1e10347a;display:flex;align-items:flex-start;justify-content:center;overflow:auto;padding:1rem .6rem;-webkit-overflow-scrolling:touch}
.actbox{background:#fff;color:#1f1633;border-radius:22px;max-width:760px;width:100%;padding:1rem 1.1rem 1.3rem;box-shadow:0 30px 60px -20px #000a;outline:none;font-size:calc(1rem*var(--fs,1))}
.acthead{display:flex;align-items:center;gap:.5rem;border-bottom:3px dashed #e9d5ff;padding-bottom:.5rem}
.acthead h2{margin:0;flex:1;font-size:1.35rem}
.acti{font-size:2.2rem}
.actx{min-width:44px;min-height:44px;border-radius:50%;border:0;background:#f3e8ff;font-size:1.2rem;cursor:pointer}
.acttr{margin:.5rem 0;font-size:.9rem}.acttr select{font:inherit;padding:.3rem;border-radius:10px}
.actins{background:#fff7ed;border:2px solid #fed7aa;border-radius:16px;padding:.6rem .9rem;margin:.6rem 0}
.actins p{margin:.3rem 0}
.hn-note{color:#9a3412;font-weight:700}
.actgl{margin:.5rem 0}.actgl .gl{margin:.15rem}
.actf{padding:0;margin:.4rem 0;list-style:none;counter-reset:af}
.actf>li{counter-increment:af;background:#f8f5ff;border:2px solid #e9d5ff;border-radius:16px;padding:.6rem .8rem;margin:.55rem 0}
.actf>li>label b::before,.actf>li>b::before{content:counter(af);display:inline-grid;place-items:center;width:1.6em;height:1.6em;border-radius:50%;background:#7c3aed;color:#fff;margin-left:.4rem;font-size:.85em}
.actf textarea{width:100%;box-sizing:border-box;margin-top:.4rem;border:2px solid #c4b5fd;border-radius:12px;padding:.55rem;font:inherit;font-size:1rem;resize:vertical;background:#fff;-webkit-user-select:text;user-select:text}
.actf textarea:focus{outline:3px solid #f59e0b;border-color:#7c3aed}
.chips{display:flex;flex-wrap:wrap;gap:.4rem;margin:.4rem 0}
.chips button,.starter{font:inherit;border:2px solid #a78bfa;background:#fff;border-radius:14px;padding:.45rem .8rem;min-height:44px;cursor:pointer;touch-action:manipulation}
.chips button.on{background:#7c3aed;color:#fff}
.starter{display:block;margin:.35rem 0;background:#ecfeff;border-color:#67e8f9;text-align:right}
.hanam .chips button{font-size:1.2rem;min-height:56px;padding:.6rem 1rem}
.hanam .actf textarea{font-size:1.2rem}
.hanam .acthead h2{font-size:1.6rem}
.chk label{display:flex;gap:.5rem;align-items:center;min-height:40px;font-size:1rem}
.chk input{width:24px;height:24px}
.stars{display:flex;gap:.2rem;margin-top:.3rem}
.stars button{font-size:2rem;background:none;border:0;color:#f59e0b;min-width:44px;min-height:44px;cursor:pointer}
.reccard{margin:.6rem 0}.reccard .rc{background:linear-gradient(135deg,#fef3c7,#fce7f3);border-radius:18px;padding:.8rem 1rem;border:3px dashed #f59e0b;transform:rotate(-1deg)}
.rc h3{margin:.1rem 0}.rs{color:#f59e0b;font-size:1.5rem;margin:.1rem 0}
.actbar{display:flex;flex-wrap:wrap;gap:.45rem;margin-top:.8rem;position:sticky;bottom:-1.3rem;background:#fff;padding:.5rem 0}
.actbar .btn{min-height:46px;cursor:pointer;touch-action:manipulation}
.actst{color:#15803d;font-weight:700;min-height:1.2em;margin:.3rem 0}
.printtip{background:#eff6ff;border:2px solid #93c5fd;border-radius:14px;padding:.6rem .8rem}
.printonly{display:none}
@media print{
 body.actopen>*:not(#actm){display:none!important}
 body.actopen .actm{position:static;background:none;padding:0;display:block;overflow:visible}
 body.actopen .actbox{box-shadow:none;max-width:none;border-radius:0}
 .actm .noprint,.actm .actx,.actm .chips,.actm .starter,.actm .actbar{display:none!important}
 .actm textarea{display:none}
 .actm .printonly{display:block}
 .actm .pv{min-height:4.5em;border-bottom:1px solid #999;white-space:pre-wrap;background:repeating-linear-gradient(#fff 0 1.45em,#ccc 1.45em 1.5em)}
 .actf>li{break-inside:avoid}
}
.card:not(a):not(.act):hover{transform:none}
.pop,.glpop{z-index:10001}

/* practice sheets (1.11) */
.practice-print{border:3px solid #7a2e3a;border-radius:18px;background:linear-gradient(135deg,#fff8ec,#f3e9ff);padding:.8rem 1rem;margin:1rem 0;box-shadow:0 6px 0 #e6d3b8}
.practice-print h2{margin:.1rem 0 .3rem;font-size:1.35rem;color:#7a2e3a}
.practice-print p{margin:.3rem 0}
.pp-rows{display:flex;flex-direction:column;gap:.5rem;margin:.5rem 0}
.pp-row{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;background:#fff;border-radius:14px;padding:.45rem .6rem;border:2px solid #e8dcc8}
.pp-row.cur{border-color:#2f6f8f;background:#eef7ff;box-shadow:0 0 0 3px #bfe0f5}
.pp-v{font-weight:700;min-width:7.5rem}
.pp-b{display:inline-flex;align-items:center;justify-content:center;min-height:48px;min-width:96px;padding:.4rem 1rem;border-radius:12px;background:#7a2e3a;color:#fff!important;font-weight:700;text-decoration:none;font-size:1.05rem}
.pp-b.w{background:#2f5f9f}
.pp-b:hover{filter:brightness(1.12)}
.pp-b:focus-visible,.pp-home:focus-visible{outline:4px solid #f5b400;outline-offset:2px}
.pp-b.sm{min-height:44px;min-width:64px;padding:.3rem .7rem;font-size:.95rem}
.pp-more{font-size:.95rem}
.pp-home{display:flex;gap:.8rem;align-items:center;margin:1rem 0;padding:1rem;border-radius:18px;background:linear-gradient(135deg,#7a2e3a,#2f5f9f);color:#fff!important;text-decoration:none;font-size:1.05rem;box-shadow:0 6px 0 #4b1d26}
.pp-home .em{font-size:2.4rem}
.pr-list{list-style:none;padding:0;margin:.4rem 0 1rem}
.pr-item{display:flex;flex-wrap:wrap;gap:.4rem 1rem;align-items:center;padding:.6rem .4rem;border-bottom:1px dashed #d8c9b0}
.pr-t{flex:1 1 14rem;font-weight:700}
.pr-bs{display:flex;flex-wrap:wrap;gap:.4rem .9rem}
.pr-v{white-space:nowrap}
@media (max-width:480px){.pp-v{min-width:100%}.pp-b{flex:1 1 40%}.pr-v{white-space:normal}}
@media print{.practice-print{display:none}}

/*COVERFIX*/.cover{margin:0 auto 14px;max-width:1100px;border-radius:18px;overflow:hidden;box-shadow:0 6px 22px rgba(0,0,0,.18);aspect-ratio:2048/1117;background:#e9e4f5}.cover img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}@media(max-width:600px){.cover{border-radius:12px;margin-bottom:10px}}
