:root{--bg:#fff7fb;--ink:#3a2348;--muted:#7a6488;--pink:#ff7eb3;--pink2:#ffd6e7;--purple:#8e5cf7;--teal:#18b6a8;--yellow:#ffc93c;--green:#22c07a;--red:#ef4b6c;--card:#fff;--radius:22px}
*{box-sizing:border-box}
html,body{margin:0;background:linear-gradient(180deg,#fff0f7 0%,#f3edff 60%,#eafaf7 100%);color:var(--ink);font-family:"Andika","Varela Round","Rubik","Arial Hebrew","Segoe UI",system-ui,-apple-system,Arial,sans-serif;min-height:100dvh}
body{overflow-x:hidden}
button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
button:focus-visible,input:focus-visible{outline:4px solid var(--purple);outline-offset:3px}
[hidden]{display:none!important}
.en{font-family:"Andika","Nunito","Trebuchet MS","Segoe UI",Arial,sans-serif;direction:ltr;unicode-bidi:isolate}
.top{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:10px;padding:10px 14px;padding-top:max(10px,env(safe-area-inset-top));background:rgba(255,255,255,.88);backdrop-filter:blur(8px);border-bottom:2px solid var(--pink2)}
.brand{display:flex;flex-direction:column;flex:1;min-width:0}
.title{font-weight:800;font-size:clamp(1rem,2.6vw,1.4rem);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.school{font-size:.85rem;color:var(--muted)}
.bh-top{font-weight:700;color:var(--muted);align-self:flex-start;order:-1}
.icon-btn{background:#fff;border:2px solid var(--pink2);border-radius:14px;padding:8px 14px;min-height:48px;min-width:48px;font-size:1.05rem;font-weight:700}
.icon-btn:hover{background:var(--pink2)}
#app{max-width:1100px;margin:0 auto;padding:12px 14px 40px}
.screen{display:none}
.screen.active{display:block;animation:fade .25s ease}
@keyframes fade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
h2{font-size:clamp(1.6rem,4vw,2.4rem);margin:8px 0 6px;text-align:center}
.hint{text-align:center;color:var(--muted);font-size:1.1rem;margin:0 0 12px}
/* start */
.start{position:fixed;inset:0;z-index:50;display:grid;place-items:center;background:linear-gradient(160deg,#ffd6e7,#e5dcff 60%,#d3f5ef);padding:16px}
.start-card{background:#fff;border-radius:30px;padding:26px 22px;text-align:center;max-width:560px;width:100%;box-shadow:0 18px 50px rgba(142,92,247,.25);position:relative}
.start-card .bh{position:absolute;top:12px;right:16px;font-weight:700;color:var(--muted)}
.duo{display:flex;justify-content:center;align-items:flex-end;gap:6px}
.duo img{height:min(30vh,200px);width:auto}
.start h1{font-size:clamp(1.7rem,6vw,2.6rem);margin:10px 0 4px;color:var(--purple)}
.sub{margin:0 0 18px;color:var(--muted);font-size:1.1rem}
.big-btn{background:linear-gradient(180deg,#ff8fbe,#ff5f9e);color:#fff;border:0;border-radius:999px;padding:16px 30px;font-size:1.35rem;font-weight:800;box-shadow:0 6px 0 #d94683;min-height:60px}
.big-btn:active{transform:translateY(3px);box-shadow:0 3px 0 #d94683}
.big-btn.alt{background:linear-gradient(180deg,#a986ff,#8e5cf7);box-shadow:0 6px 0 #6b3fd0}
/* home */
.hello{display:flex;align-items:flex-end;justify-content:center;gap:8px;margin:6px 0 16px}
.mascot{height:clamp(110px,22vw,180px);width:auto}
.bubble{background:#fff;border:3px solid var(--pink2);border-radius:24px;padding:14px 18px;font-size:clamp(1.1rem,2.6vw,1.45rem);font-weight:700;text-align:center;margin:0 0 30px;max-width:340px}
.tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.tile{border:0;border-radius:var(--radius);padding:22px 12px;display:flex;flex-direction:column;align-items:center;gap:6px;color:#fff;box-shadow:0 8px 0 rgba(0,0,0,.12);min-height:170px;justify-content:center}
.tile:hover{transform:translateY(-3px)}
.tile .ti{font-size:3rem}
.tile b{font-size:1.5rem}
.tile small{font-size:1rem;opacity:.95}
.t1{background:linear-gradient(160deg,#ff8fbe,#ff5f9e)}.t2{background:linear-gradient(160deg,#a986ff,#7b4ae8)}.t3{background:linear-gradient(160deg,#2fd0bf,#139c90)}.t4{background:linear-gradient(160deg,#ffbd4a,#f39200)}
/* chips */
.chips{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:6px 0 12px}
.chip{border:2px solid var(--pink2);background:#fff;border-radius:999px;padding:10px 16px;font-weight:700;font-size:1.05rem;min-height:48px}
.chip.on{background:var(--pink);border-color:var(--pink);color:#fff}
.toggle{display:flex;justify-content:center;gap:8px;align-items:center;font-size:1.05rem;margin-bottom:12px;color:var(--muted)}
.toggle input{width:22px;height:22px}
/* word cards */
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:14px}
.wcard{position:relative;background:#fff;border:3px solid #f1e6f7;border-radius:var(--radius);padding:14px 10px 12px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:4px;box-shadow:0 5px 0 #eadcf3;width:100%}
.wcard.playing{border-color:var(--pink);background:#fff3f8}
.wcard .em{font-size:3.4rem;line-height:1.15}
.wcard .w{font-size:1.75rem;font-weight:800;color:var(--purple)}
.wcard .he{font-size:1.15rem;color:var(--muted)}
.wcard .ex{font-size:1rem;color:var(--ink);margin-top:4px}
.hide-he .wcard .he{visibility:hidden}
.say{border:0;background:var(--pink2);border-radius:999px;min-width:48px;min-height:48px;font-size:1.3rem}
.ex-row{display:flex;align-items:center;gap:6px;margin-top:6px}
.phrases{grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}
.phrases .w{font-size:1.5rem}
/* story */
.story-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px;margin-bottom:10px}
.story-title{text-align:center;margin:4px 0 2px;font-size:1.5rem}
.story-title .en{display:block;color:var(--purple);font-size:1.35rem}
.scene{display:block;margin:10px auto;max-width:100%;width:620px;border-radius:18px;border:4px solid #fff;box-shadow:0 6px 18px rgba(0,0,0,.12)}
.lines{list-style:none;padding:0;margin:10px auto;max-width:820px;display:flex;flex-direction:column;gap:8px}
.line{display:flex;align-items:center;gap:10px;background:#fff;border:3px solid transparent;border-radius:18px;padding:8px 12px;cursor:pointer;direction:ltr;text-align:left;box-shadow:0 3px 0 #efe4f6;width:100%}
.line .av{flex:none;width:52px;height:52px;border-radius:50%;background:var(--pink2);display:grid;place-items:center;overflow:hidden;font-size:1.8rem}
.line .av img{height:60px;width:auto;margin-top:12px}
.line .txt{font-size:clamp(1.2rem,2.6vw,1.6rem);line-height:1.35}
.line .who{display:block;font-size:.9rem;font-weight:800;color:var(--teal)}
.line.head{background:transparent;box-shadow:none}
.line.head .txt{font-weight:800;color:var(--purple)}
.line.card{background:#fff6d9;border-style:dashed;border-color:#f3cf63;font-style:italic}
.line.now{border-color:var(--pink);background:#ffe9f3;transform:scale(1.01)}
.line.card.now{background:#ffe9f3;border-style:solid}
.ctrl{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
/* games */
.game-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px}
.gbtn{background:#fff;border:3px solid #efe4f6;border-radius:var(--radius);padding:18px 14px;display:flex;align-items:center;gap:12px;text-align:right;box-shadow:0 5px 0 #eadcf3;min-height:90px}
.gbtn:hover{border-color:var(--pink)}
.gbtn .gi{font-size:2.4rem}
.gbtn b{font-size:1.3rem;display:block}
.gbtn small{color:var(--muted);font-size:.98rem}
.play-top{display:flex;align-items:center;gap:10px}
.prog{flex:1;height:14px;background:#efe4f6;border-radius:99px;overflow:hidden}
#progBar{height:100%;width:0;background:linear-gradient(90deg,var(--teal),var(--pink));transition:width .3s}
.score{font-weight:800;font-size:1.1rem;min-width:70px;text-align:left}
#gTitle{text-align:center;font-size:1.5rem;margin:14px 0 2px}
.instr{text-align:center;font-size:1.25rem;color:var(--muted);margin:0 0 14px}
.q{background:#fff;border-radius:var(--radius);padding:18px;margin:0 auto 16px;max-width:820px;text-align:center;box-shadow:0 5px 0 #eadcf3}
.q .sent{font-size:clamp(1.5rem,4vw,2.2rem);font-weight:700;direction:ltr;line-height:1.4}
.q .big-em{font-size:4.5rem}
.q .bigword{font-size:clamp(2rem,6vw,3rem);font-weight:800;color:var(--purple)}
.blank{display:inline-block;min-width:3.5em;border-bottom:4px solid var(--pink);color:var(--pink)}
.hear{border:0;background:var(--teal);color:#fff;border-radius:999px;min-width:64px;min-height:64px;font-size:1.8rem;box-shadow:0 5px 0 #0f8277;margin:6px}
.opts{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;max-width:820px;margin:0 auto}
.opts.three{grid-template-columns:repeat(3,1fr)}
.opt{background:#fff;border:3px solid #e6d9f1;border-radius:20px;padding:14px 10px;font-size:clamp(1.25rem,3vw,1.7rem);font-weight:800;min-height:76px;box-shadow:0 5px 0 #e2d3ee;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}
.opt .em{font-size:2.6rem}
.opt.en{direction:ltr}
.opt:hover{border-color:var(--purple)}
.opt.right{background:#dcfbe9;border-color:var(--green);box-shadow:0 5px 0 #8fdcb3}
.opt.wrong{background:#ffe3e9;border-color:var(--red);animation:shake .35s}
.opt:disabled{cursor:default}
@keyframes shake{25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}
.who-opt img{height:70px}
.build{direction:ltr;min-height:70px;display:flex;flex-wrap:wrap;gap:8px;justify-content:center;align-items:center;padding:10px;border:3px dashed #e1cff0;border-radius:18px;margin:10px auto;max-width:820px;background:#fff}
.bank{direction:ltr;display:flex;flex-wrap:wrap;gap:10px;justify-content:center;max-width:820px;margin:0 auto}
.wtile{background:#fff;border:3px solid #e6d9f1;border-radius:14px;padding:10px 16px;font-size:clamp(1.3rem,3.4vw,1.7rem);font-weight:800;box-shadow:0 4px 0 #e2d3ee;min-height:56px}
.build .wtile{background:#f4eeff}
.wtile.used{visibility:hidden}
.build.right{border-color:var(--green);background:#e9fdf2}
.build.wrong{border-color:var(--red);animation:shake .35s}
.next-row{text-align:center;margin-top:16px}
/* praise */
.praise{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:40;display:flex;align-items:center;gap:12px;background:#fff;border:4px solid var(--yellow);border-radius:28px;padding:8px 22px 8px 14px;box-shadow:0 14px 40px rgba(0,0,0,.18);animation:pop .4s cubic-bezier(.2,1.6,.4,1)}
.praise img{height:90px}
.praise-text{display:flex;flex-direction:column;align-items:center}
.praise b{font-size:1.9rem;color:var(--pink)}
.praise span{font-size:1.3rem;color:var(--purple);font-weight:800}
@keyframes pop{from{transform:translateX(-50%) scale(.4);opacity:0}to{transform:translateX(-50%) scale(1);opacity:1}}
.done-card{background:#fff;border-radius:30px;padding:22px;text-align:center;max-width:560px;margin:20px auto;box-shadow:0 10px 30px rgba(142,92,247,.18)}
.stars{font-size:2.6rem;margin:4px 0;letter-spacing:4px}
.row{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:12px}
@media (max-width:760px){.tiles{grid-template-columns:repeat(2,1fr);gap:12px}.tile{min-height:140px;padding:16px 8px}.tile .ti{font-size:2.4rem}.tile b{font-size:1.25rem}.cards{grid-template-columns:repeat(2,1fr);gap:10px}.phrases{grid-template-columns:1fr}.wcard .em{font-size:2.8rem}.wcard .w{font-size:1.4rem}.school{display:none}.title .en,.title .dot{display:none}}
@media (max-width:420px){.opts.three{grid-template-columns:1fr}.bubble{font-size:1rem;margin-bottom:20px;padding:10px}.mascot{height:100px}.line .av{width:44px;height:44px}.big-btn{font-size:1.15rem;padding:14px 22px}}
@media (min-width:1200px){html{font-size:18px}}

.ctrl+.hint{margin-top:14px}
.duo.small img{height:150px}

/* ===== v2: lessons path ===== */
.title{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.2}
@media (max-width:520px){.title{font-size:1rem}.school{font-size:.8rem}}
.row{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin-top:14px}
.big-btn.ghost{background:#fff;color:var(--purple);border:3px solid #e2d6ff;box-shadow:0 5px 0 #e2d6ff}
.big-btn:disabled{opacity:.45;box-shadow:none;cursor:default}
.link-btn{background:none;border:0;color:var(--purple);text-decoration:underline;font-size:1.05rem;padding:10px;min-height:44px}
.login-card,.done-card{background:#fff;border-radius:28px;max-width:620px;margin:16px auto;padding:22px 18px 26px;text-align:center;box-shadow:0 14px 40px rgba(142,92,247,.15)}
.login-card .duo img,.done-card .duo img{height:min(22vh,150px)}
.name-list{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin:10px 0}
.name-btn{background:var(--pink2);border:0;border-radius:18px;padding:14px 22px;font-size:1.3rem;font-weight:800;min-height:56px}
.name-btn:hover{background:var(--pink);color:#fff}
.login-form{display:flex;flex-direction:column;gap:12px;align-items:center}
.login-form label{display:flex;flex-direction:column;gap:6px;font-weight:700;font-size:1.15rem;width:min(100%,360px)}
.login-form input,.pw{font:inherit;font-size:1.4rem;padding:12px 14px;border:3px solid var(--pink2);border-radius:16px;text-align:center;width:100%}
.code-in{letter-spacing:.3em;text-transform:uppercase;font-family:monospace}
.err{color:var(--red);font-weight:700;min-height:1.2em;margin:0}
.map-head{background:#fff;border-radius:26px;padding:16px;box-shadow:0 10px 30px rgba(142,92,247,.12);text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px}
.hello-line{display:flex;align-items:center;gap:10px;justify-content:center}
.hello-line div{display:flex;flex-direction:column}
.hello-line b{font-size:1.5rem}.hello-line span{color:var(--muted);font-size:1.1rem}
.mini{height:70px;width:auto}
.pbar{position:relative;width:min(100%,560px);height:26px;background:#f1e8f8;border-radius:99px;overflow:hidden}
.pbar-fill{height:100%;background:linear-gradient(90deg,#2fd0bf,#22c07a);border-radius:99px;transition:width .4s}
.pbar span{position:absolute;inset:0;display:grid;place-items:center;font-weight:800;font-size:.95rem}
.go-btn{font-size:1.6rem;padding:16px 46px}
.code-box{background:#fff8e1;border:2px dashed #ffc93c;border-radius:16px;padding:8px 14px;display:flex;flex-wrap:wrap;gap:4px 10px;align-items:center;justify-content:center;max-width:560px}
.code-box b{font-size:1.6rem;letter-spacing:.18em;font-family:monospace}
.code-box small{width:100%;color:var(--muted)}
.code-box.first{border-color:var(--pink);background:#fff0f6;animation:pulse 1.4s ease 3}
@keyframes pulse{50%{transform:scale(1.04)}}
.teacher-note{background:#efe8ff;border-radius:12px;padding:6px 12px;margin:0;color:var(--purple);font-weight:700}
.lessons{display:flex;flex-direction:column;gap:12px;margin-top:16px}
.lesson{background:#fff;border-radius:22px;border:3px solid #efe6f6;overflow:hidden}
.lesson.cur{border-color:var(--pink)}
.lesson.done{border-color:#bfeedd}
.lesson-head{width:100%;display:flex;align-items:center;gap:12px;background:none;border:0;padding:12px 14px;text-align:right;min-height:64px}
.lnum{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;font-size:1.3rem;background:#f3edf8;flex:none}
.lesson.done .lnum{background:var(--green);color:#fff}
.lesson.cur .lnum{background:var(--pink);color:#fff}
.ltt{display:flex;flex-direction:column;text-align:right}.ltt b{font-size:1.35rem}.ltt small{color:var(--muted);font-size:1rem}
.lesson.lock .ltt{opacity:.6}
.lsteps{list-style:none;margin:0;padding:0 12px 12px;display:flex;flex-direction:column;gap:6px}
.lstep button{width:100%;display:flex;align-items:center;gap:10px;background:#faf7fd;border:2px solid #f0e8f6;border-radius:14px;padding:8px 10px;text-align:right;min-height:48px;font-size:1rem}
.lstep.done button{background:#effbf6;border-color:#c9f0df}
.lstep.cur button{background:#fff0f6;border-color:var(--pink);font-weight:800}
.lstep button:disabled{opacity:.55;cursor:default}
.sic{width:28px;text-align:center;flex:none}
.stg{background:#efe8ff;color:var(--purple);border-radius:99px;padding:2px 10px;font-size:.85rem;font-weight:700;flex:none}
.sl{flex:1}
.step-top{display:flex;flex-direction:column;gap:6px;align-items:center;margin:4px 0 6px}
.crumb{color:var(--muted);text-align:center}
.dots{display:flex;gap:5px;flex-wrap:wrap;justify-content:center}
.sdot{width:12px;height:12px;border-radius:50%;background:#eadff2}.sdot.d{background:var(--green)}.sdot.c{background:var(--pink);transform:scale(1.35)}
.stage-tag{margin:6px auto;width:max-content;padding:4px 16px;border-radius:99px;font-weight:800;color:#fff;background:var(--purple)}
.stage-words{background:var(--pink)}.stage-text{background:var(--purple)}.stage-ex{background:var(--teal)}
.step-body{background:#fff;border-radius:24px;padding:14px;box-shadow:0 8px 26px rgba(142,92,247,.1)}
.step-nav{position:sticky;bottom:0;display:flex;gap:12px;justify-content:center;padding:12px 0;background:linear-gradient(180deg,rgba(255,255,255,0),rgba(243,237,255,.95) 40%)}
.next-btn.ready{animation:pulse 1.2s ease 2}
.count{text-align:center;color:var(--muted);font-weight:700}
.wcard.heard{border-color:#c9f0df}
.wplay{border:0;background:none;padding:0;display:flex;flex-direction:column;align-items:center;gap:4px;width:100%}
.instr-box{border-right:6px solid var(--teal);background:#f2fbfa;border-radius:14px;padding:10px 14px;margin-bottom:12px}
.exnum{display:inline-block;background:var(--teal);color:#fff;border-radius:99px;padding:2px 12px;font-weight:800;font-size:.95rem}
.ex-title{font-weight:800;color:var(--purple);margin:6px 0 0;text-align:left}
.en-instr{font-size:1.25rem;font-weight:800;margin:6px 0 2px;text-align:left}
.he-instr{font-size:1.15rem;margin:2px 0}
.rule,.example{background:#fff8e1;border-radius:12px;padding:8px 12px;margin:6px 0;font-size:1.15rem;text-align:left}
.adapted{color:var(--muted);font-size:.95rem;margin:4px 0 8px}
.q-row{border-bottom:2px dashed #f0e8f6;padding:10px 4px}
.q-row.ok .q{color:#138a57}
.q-row.missing,.mi.missing{background:#fff1f3;border-radius:12px}
.q{font-size:1.3rem;text-align:left;line-height:1.6}
.q2{font-size:1.2rem;text-align:left;color:var(--muted)}
.qn{color:var(--muted);font-weight:700;margin-inline-end:4px}
.gapslot{display:inline-block;min-width:70px;border-bottom:3px solid var(--purple);text-align:center;color:var(--purple);font-weight:800}
.opts{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;direction:ltr;justify-content:flex-start}
.opt{background:#fff;border:3px solid #e6dcf1;border-radius:14px;padding:8px 16px;font-size:1.2rem;font-weight:700;min-height:48px}
.opt:hover{border-color:var(--purple)}
.opt.right{background:var(--green);border-color:var(--green);color:#fff}
.opt.wrong{background:var(--red);border-color:var(--red);color:#fff;animation:shake .3s}
.opt.dim{opacity:.4}
.opt.picked{background:var(--purple);border-color:var(--purple);color:#fff}
.opt.used{opacity:.25}
@keyframes shake{25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}
.bank{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;background:#f6f1fb;border:2px solid #e6dcf1;border-radius:16px;padding:10px;margin-bottom:8px;direction:ltr}
.bw{background:#fff;border:2px solid #e6dcf1;border-radius:12px;padding:6px 12px;font-size:1.15rem;font-weight:700}
.bw.btn{min-height:46px}
.gapbank{position:sticky;top:70px;z-index:2}
.gapbtn{display:inline-block;min-width:90px;min-height:42px;border:0;border-bottom:3px solid var(--purple);background:#f3edff;border-radius:8px 8px 0 0;font-size:1.2rem;font-weight:800;color:var(--purple);margin:0 4px}
.gapbtn.sel{background:#ffe3ef;border-color:var(--pink)}
.gapbtn.right{background:#e3f8ee;border-color:var(--green);color:#138a57}
.gapbtn.wrong{background:var(--red);color:#fff}
.type-row .tq{text-align:right}
.tin-wrap{display:flex;gap:8px;align-items:center;direction:ltr;margin-top:6px}
.tin{font:inherit;font-size:1.35rem;padding:8px 12px;border:3px solid #e6dcf1;border-radius:14px;width:min(100%,320px)}
.tin.bad{border-color:var(--red);background:#fff1f3}
.type-row.ok .tin{border-color:var(--green);background:#e3f8ee}
.hint-btn{background:#fff8e1;border:2px solid #ffe09a;border-radius:12px;min-width:46px;min-height:46px;font-size:1.2rem}
.letters{direction:ltr;text-align:left;margin-top:4px;font-size:1.3rem;letter-spacing:.06em}
.lt{display:inline-block;min-width:.7em;text-align:center}
.lt.ok{color:#138a57;font-weight:800}.lt.no{color:var(--red);font-weight:800;text-decoration:underline}
.fin{font:inherit;font-size:1.2rem;border:0;border-bottom:3px solid var(--purple);background:#f7f3fd;padding:4px 8px;margin:0 4px;width:9em}
.match{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.mcol{display:flex;flex-direction:column;gap:8px}
.mi{background:#fff;border:3px solid #e6dcf1;border-radius:14px;padding:10px 12px;font-size:1.2rem;font-weight:700;text-align:left;min-height:52px;position:relative}
.mi.sel{border-color:var(--pink);background:#fff0f6}
.mi.right{border-color:var(--green);background:#e3f8ee}
.mi.wrong{border-color:var(--red);background:#ffe5ea;animation:shake .3s}
.mi .tag{position:absolute;top:4px;right:8px;background:var(--green);color:#fff;border-radius:99px;padding:0 8px;font-size:.9rem}
.picb{text-align:center}.pic{font-size:2.6rem}
.oline{min-height:48px;border-bottom:3px solid var(--purple);direction:ltr;text-align:left;font-size:1.3rem;padding:4px}
.ow{display:inline-block;margin-right:6px;font-weight:800;color:var(--purple)}
.class-note{background:#f2fbfa;border:3px dashed var(--teal);border-radius:18px;padding:14px;text-align:center}
.class-note ul{text-align:left;font-size:1.15rem}
.status{text-align:center;font-weight:800;color:var(--muted);font-size:1.15rem}
.status.all{color:#138a57}
.reader .line{display:flex;gap:8px;align-items:center;width:100%;text-align:left;background:none;border:0;border-radius:12px;padding:8px 10px;font-size:1.35rem;direction:ltr}
.reader .line:hover{background:#f6f1fb}
.reader .line.now{background:#ffe3ef;box-shadow:inset 4px 0 0 var(--pink)}
.reader .who{display:flex;align-items:center;gap:4px;font-weight:800;color:var(--purple);flex:none}
.reader .who img{height:34px}
.reader .who i{font-style:normal}
.reader .cardline{font-family:"Comic Sans MS","Segoe Print",cursive;color:#b0306b}
.rhead{margin:12px 0 4px;color:var(--purple);font-size:1.3rem}
.scene{display:block;max-width:100%;max-height:260px;margin:6px auto;border-radius:14px}
.ctrl{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin:8px 0}
.code-small b{font-family:monospace;font-size:1.4rem;letter-spacing:.15em}
.modal{position:fixed;inset:0;z-index:60;background:rgba(58,35,72,.45);display:grid;place-items:center;padding:16px}
.modal-card{background:#fff;border-radius:22px;padding:20px;max-width:420px;width:100%;display:flex;flex-direction:column;gap:10px;text-align:center}
.pw.bad{border-color:var(--red)}
@media (max-width:600px){.match{gap:8px}.mi{font-size:1.05rem;padding:8px}.q{font-size:1.15rem}.reader .line{font-size:1.15rem}.go-btn{font-size:1.35rem;padding:14px 32px}.step-body{padding:10px}}

@media (max-width:760px){.title .en{display:inline}.school{display:block}}
.ex-area .q-row{background:none;box-shadow:none;border-radius:0;margin:0}
.type-row.ok .letters{display:none}
.picq{font-size:2.4rem}
.pics{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin:6px 0;direction:ltr}.pics span{background:#f6f1fb;border-radius:12px;padding:6px 10px;font-size:1.3rem}.pics i{font-style:normal;color:var(--muted);margin-right:4px}
.fl{font:inherit;font-size:1.2rem;width:auto;min-width:2.4em;border:0;border-bottom:3px solid var(--purple);background:#f3edff;text-align:center;padding:2px 4px;margin:0 2px}
.fl.good{border-color:var(--green);background:#e3f8ee;color:#138a57;font-weight:800}.fl.bad{border-color:var(--red);background:#ffe5ea}
.seq-pool{display:flex;flex-direction:column;gap:8px;align-items:stretch}.seq-opt{text-align:left}.seq-done{font-size:1.2rem;text-align:left;direction:ltr;color:#138a57;font-weight:700;padding-left:1.6em}
.ex-area .q,.ex-area .q2{background:none;box-shadow:none;border:0;padding:0;margin:0}
.reader .line{box-shadow:none;margin:2px 0;border-bottom:1px solid #f3edf8}

/* ---- v3: login with name + fixed code, teacher list ---- */
.tabs{display:flex;gap:8px;justify-content:center;margin:4px auto 14px;background:#f6effb;border-radius:999px;padding:6px;width:min(100%,420px)}
.tab{flex:1;border:0;background:none;border-radius:999px;padding:12px 10px;font:inherit;font-size:1.15rem;font-weight:800;color:var(--muted);min-height:50px;cursor:pointer}
.tab.on{background:#fff;color:var(--ink);box-shadow:0 3px 10px rgba(142,92,247,.18)}
.chips{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:0 0 12px}
.chip{background:var(--pink2);border:0;border-radius:99px;padding:8px 16px;font:inherit;font-size:1.05rem;font-weight:700;min-height:44px;cursor:pointer}
.chip:hover{background:var(--pink);color:#fff}
.login-form .code-in{text-transform:none;letter-spacing:.5em;font-size:1.7rem}
.remember{background:#fff8e1;border:2px dashed #ffc93c;border-radius:14px;padding:8px 14px;margin:0;font-weight:700;width:min(100%,360px);line-height:1.5}
.err{line-height:1.5}
.net-note{position:fixed;top:6px;left:50%;transform:translateX(-50%);background:rgba(58,35,72,.92);color:#fff;border-radius:14px;padding:6px 12px;font-size:.85rem;font-weight:700;z-index:40;max-width:min(94vw,520px);text-align:center;box-shadow:0 8px 24px rgba(0,0,0,.2)}
.net-note[hidden]{display:none}
.modal-card{max-height:90vh;overflow:auto}
.stu-list{display:flex;flex-direction:column;gap:10px;text-align:right}
.stu{border:2px solid #f1e8f8;border-radius:16px;padding:10px 12px;display:flex;flex-direction:column;gap:6px}
.stu-top{display:flex;justify-content:space-between;align-items:center;font-size:1.15rem}
.stu-pct{font-weight:800;color:var(--teal)}
.stu-info{color:var(--muted);font-size:.98rem;line-height:1.4}
.stu-flag{color:#b07a00;font-weight:700}
.pbar.small{height:10px;width:100%}
.stu-btns{display:flex;flex-wrap:wrap;gap:6px}
.mini-btn{flex:1 1 auto;background:#f6effb;border:0;border-radius:12px;padding:8px 10px;font:inherit;font-size:.95rem;font-weight:700;min-height:40px;cursor:pointer;color:var(--ink)}
.mini-btn:hover{background:var(--pink2)}
.mini-btn:disabled{opacity:.5}

/* ===== rules reminder (📘 הכללים שלמדנו) ===== */
.rules-ico{padding:6px 10px;font-size:1.35rem;line-height:1}
.big-btn.rules-open{font-size:1.15rem;padding:12px 24px;min-height:52px}
#login .rules-open{display:block;margin:16px auto 0}
.rules-top{background:#fff;border-radius:26px;padding:12px 16px 14px;box-shadow:0 10px 30px rgba(142,92,247,.12);text-align:center;margin-bottom:14px;position:relative}
.rules-top .back-btn{position:absolute;top:6px;right:8px}
.rules-top h2{margin-top:34px}
.rule-index{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.rule-index .chip{font-size:1rem}
.rule-card{background:#fff;border-radius:24px;padding:16px 18px 18px;box-shadow:0 8px 26px rgba(142,92,247,.1);margin:0 auto 16px;max-width:820px;border-top:6px solid var(--purple);scroll-margin-top:90px}
.rule-head{display:flex;align-items:center;gap:12px}
.rnum{flex:0 0 auto;width:44px;height:44px;border-radius:50%;background:#efe7ff;color:var(--purple);display:grid;place-items:center;font-weight:800;font-size:1.3rem}
.rtitles h3{margin:0;font-size:1.55rem}
.rule-en{font-weight:800;color:var(--purple);font-size:1.15rem;text-align:right}
.rule-src{display:inline-block;margin:10px 0 4px;background:#f2fbfa;border:2px solid #c9efe9;color:#0f7f75;border-radius:999px;padding:4px 14px;font-weight:700;font-size:.98rem}
.rblock{margin-top:12px}
.rblock h4,.rex-h{margin:0 0 4px;color:var(--teal);font-size:1.15rem}
.rblock p{margin:3px 0;font-size:1.18rem;line-height:1.65}
.rule-card mark{border-radius:6px;padding:0 4px;font-weight:800}
.rule-card mark.k{background:#ffe1ef;color:#c2185b}
.rule-card mark.n{background:#e4dcff;color:#5b2fd6}
.rtable-wrap{margin:14px 0 6px}
.rtable{width:100%;border-collapse:separate;border-spacing:0;border:2px solid #eadff9;border-radius:16px;overflow:hidden;font-size:1.12rem}
.rtable th{background:#f6f0ff;color:var(--muted);font-weight:700;padding:8px;font-size:.95rem;text-align:right}
.rtable td{padding:8px;border-top:1px solid #f0e8fb;vertical-align:middle}
.rtable tr.now td{background:#ffe9f3}
.rtable .pw{display:inline-flex;align-items:center;gap:6px;background:#fff;border:2px solid var(--pink2);border-radius:12px;padding:6px 12px;min-height:44px;font-weight:800;font-size:1.25rem}
.rtable td.he{font-weight:700}
.rtable td.ex{color:var(--muted)}
.rtable td.who{font-weight:800;text-align:left;white-space:nowrap}
.rtable td.word{text-align:center;white-space:nowrap;font-size:1.2rem}
.rtable td.sent .en{display:block;text-align:left;font-size:1.15rem}
.gl{display:block;color:var(--muted);font-size:1.02rem;margin-top:2px;direction:rtl;text-align:right}
.rcap{color:var(--muted);font-size:.95rem;margin:4px 0 0;text-align:center}
.qrow{border:2px solid #eadff9;border-radius:16px;padding:8px 12px;margin-bottom:8px}
.qrow.now{border-color:var(--pink);background:#fff4f9}
.qline{display:flex;align-items:center;gap:10px}
.q-q{font-size:1.25rem;font-weight:800;flex:1;text-align:left}
.qans{display:flex;align-items:baseline;gap:10px;margin-top:6px;font-size:1.15rem}
.qans .en{flex:1;text-align:left}
.qmark{flex:0 0 auto;font-weight:800;font-size:.95rem;border-radius:999px;padding:2px 10px}
.qans.yes .qmark{background:#dcf7ea;color:#14925a}
.qans.no .qmark{background:#ffe3e9;color:#c8314f}
.rtip{display:flex;gap:10px;align-items:flex-start;background:#fff8e1;border:2px solid #ffe7a3;border-radius:14px;padding:10px 12px;margin:12px 0 4px;font-size:1.1rem;line-height:1.6}
.rtip .ti{font-size:1.3rem}
.rex-h{margin-top:16px}
.rex{list-style:none;margin:6px 0 0;padding:0;display:grid;gap:8px}
.rex li{display:flex;align-items:center;gap:12px;border:2px solid #f2e9fb;border-radius:16px;padding:8px 12px;transition:background .2s}
.rex li.now{border-color:var(--pink);background:#fff4f9}
.rex .say{flex:0 0 auto}
.rex-t{flex:1;min-width:0}
.rex-t .en{display:block;text-align:left;font-size:1.25rem;font-weight:700;line-height:1.5}
.rules-back2{display:block;margin:6px auto 20px}
.rule-links{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:14px}
.rule-link{background:#f3edff;color:var(--purple);border:2px solid #e2d6ff;border-radius:999px;padding:6px 14px;font-weight:700;font-size:1rem;min-height:40px}
@media (max-width:520px){
 .rule-card{padding:14px 12px 16px;border-radius:20px}
 .rtitles h3{font-size:1.35rem}
 .rblock p{font-size:1.08rem}
 .rtable{font-size:1rem}
 .rtable th,.rtable td{padding:6px 5px}
 .rtable .pw{font-size:1.1rem;padding:4px 8px}
 .rtable td.who{white-space:normal;font-size:.95rem}
 .rtable td.word{font-size:1rem;white-space:normal}
 .rtable td.sent .en{font-size:1rem}
 .rtable.be th:nth-child(3),.rtable.be td.sent .gl{font-size:.9rem}
 .q-q{font-size:1.1rem}.qans{font-size:1rem}
 .rex-t .en{font-size:1.1rem}
 .rules-ico{min-width:44px;min-height:44px}
}

.rblock .demo{display:block;text-align:left;font-size:1.2rem;font-weight:700;background:#faf7ff;border-radius:12px;padding:6px 12px;margin:6px 0;line-height:1.6}
.maplist{display:grid;gap:6px;margin:6px 0}
.mrow{display:flex;align-items:center;gap:10px;background:#faf7ff;border-radius:12px;padding:6px 12px;font-size:1.12rem}
.mrow .mhe{flex:1;font-weight:700}
.mrow .marr{color:var(--muted)}
.mrow .men{font-weight:800;font-size:1.15rem;min-width:30%;text-align:left}
@media (max-width:520px){.rblock .demo{font-size:1.05rem}.mrow{font-size:1rem}}
.rtip-t{flex:1;min-width:0}.rtip .demo{display:block;text-align:left;font-weight:700;background:#fff;border-radius:10px;padding:4px 10px;margin:5px 0 0;font-size:1.1rem}
.rules-top .back-btn{right:8px;left:auto}
.maplist{max-width:560px}
.rule-links{margin-bottom:6px}

/* ---------- teachers (v4) ---------- */
.teacher-entry{display:block;margin:14px auto 4px;background:#fff;color:var(--purple);border:2px solid #e2d6ff;border-radius:999px;padding:10px 22px;font:inherit;font-size:1.05rem;font-weight:700;min-height:46px;cursor:pointer}
.teacher-entry:hover{background:#f6effb}
.t-auth .tabs{width:100%}
.t-auth .tab{font-size:1rem;padding:10px 6px}
.class-code{background:#fff8e1;border:2px dashed #ffc93c;border-radius:18px;padding:10px 14px;display:flex;flex-direction:column;align-items:center;gap:2px}
.class-code span{font-weight:700;color:var(--muted)}
.class-code b{font-family:monospace;font-size:2rem;letter-spacing:.25em;color:var(--ink);padding-inline-start:.25em}
.class-code small{color:var(--ink);font-size:.98rem;line-height:1.45}
.class-code.big{border-color:var(--pink);background:#fff0f6;padding:16px 14px}
.class-code.big b{font-size:3.4rem}
.class-code.big small{font-size:1.1rem;font-weight:700}
.small-hint{font-size:.98rem;margin:0}
.cls-line{margin:0;font-size:1.05rem}
.cls-line b{font-family:monospace;font-size:1.3rem;letter-spacing:.15em;background:#fff8e1;border-radius:8px;padding:0 6px}
.t-code{font-family:monospace;font-weight:800;letter-spacing:.12em;background:#fff8e1;border-radius:8px;padding:2px 8px}
.admin-tag{font-size:.8rem;background:#efe6ff;color:var(--purple);border-radius:999px;padding:2px 8px;font-weight:700;vertical-align:middle}
.un-head{margin:14px 0 0;font-size:1.1rem}
.un-link{width:100%}
.t-foot{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}
.login-form .cls-in{letter-spacing:.5em}
.class-code + .small-hint{margin-top:4px}

/* ---- Unit chooser (Unit 2 build) ---- */
.unit-tabs{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:min(100%,560px)}
.unit-tab{display:flex;flex-direction:column;align-items:center;gap:2px;background:#f6effb;border:3px solid #e2d6ff;border-radius:20px;padding:10px 8px;min-height:84px;color:var(--muted);position:relative}
.unit-tab b{font-size:1.35rem;color:var(--ink)}
.unit-tab small{font-size:.9rem;line-height:1.2;text-align:center}
.unit-tab .ut-pct{font-weight:800;color:var(--teal);font-size:.95rem}
.unit-tab.on{background:linear-gradient(180deg,#fff,#fff3f9);border-color:var(--pink);box-shadow:0 5px 0 var(--pink2);color:var(--ink)}
.unit-tab.on b{color:#d94683}
.rules-pair{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;width:100%}
.rules-pair .rules-open{flex:1 1 200px;max-width:280px;font-size:1.1rem;padding:12px 16px}
#login .rules-pair{margin:16px auto 0;max-width:600px}
#login .rules-pair .rules-open{display:block;margin:0}
.rules-switch{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin:6px 0 4px}
.rsw{border:2px solid #e2d6ff;background:#fff;border-radius:999px;padding:8px 16px;font-weight:800;font-size:1.05rem;color:var(--purple);min-height:46px}
.rsw.on{background:var(--purple);border-color:var(--purple);color:#fff}
.unit-sub{color:var(--muted);margin:-4px 0 4px;font-weight:700}
.stu-units{display:flex;flex-direction:column;gap:6px;margin:4px 0}
.stu-u{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:4px 8px;font-size:1rem}
.stu-u .pbar{grid-column:1/-1}
.stu-u .su-l{font-weight:800}
.stu-u.last .su-l::after{content:" ●";color:var(--pink)}
@media (max-width:420px){.unit-tab{min-height:76px;padding:8px 6px}.unit-tab b{font-size:1.2rem}.unit-tab small{font-size:.8rem}}
.rules-top .rules-switch{margin-top:44px}
.rules-top .rules-switch+h2{margin-top:8px}

/* v7: "show me the answer" — calm blue, not the green of success */
.reveal-btn{display:block;margin:10px auto 2px;background:#eef5fd;border:2px dashed #9cc0e8;color:#2c5d8f;border-radius:14px;padding:8px 16px;font:inherit;font-size:1.05rem;font-weight:700;min-height:46px;cursor:pointer;max-width:100%}
.reveal-btn:hover{background:#e2eefb}
.reveal-box{text-align:center}
.shown-note{display:block;text-align:center;color:#2c5d8f;font-size:.98rem;margin-top:8px}
.ex-area .opt.shown,.opt.shown{background:#e3eefb;border-color:#8fb6e3;color:#2c5d8f;box-shadow:0 4px 0 #c4daf2}
.q-row.shown .q{color:#2c5d8f}
.gapbtn.shown{background:#e3eefb;border-color:#8fb6e3;color:#2c5d8f}
.fl.shown,.type-row.shown .tin{border-color:#8fb6e3;background:#e3eefb;color:#2c5d8f}
.type-row.shown .letters{display:none}
.mi.shown{border-color:#8fb6e3;background:#e3eefb}
.mi.shown .tag{background:#6f9fd6}
.ow.shown,.seq-done li.shown{color:#2c5d8f}
/* v7: teacher opens lessons for one girl */
.su-open{color:#2c5d8f;font-size:.85rem}
.open-pick{background:#f7f3fc;border-radius:14px;padding:10px;margin-top:8px;display:flex;flex-direction:column;gap:10px}
.op-unit{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.op-unit b{min-width:56px}
.op-unit select{font:inherit;font-size:1rem;padding:6px 8px;border-radius:10px;border:2px solid #e6dbf1;background:#fff;min-height:40px;max-width:100%}
.op-unit .mini-btn{flex:0 0 auto}
.op-lower{border-top:1px dashed #e0d4ee;padding-top:8px}
.op-lower .link-btn{font-size:.92rem}
.op-msg{color:#138a57;font-weight:700;font-size:.95rem;min-height:1em}
.remember-me{display:flex;align-items:center;justify-content:center;gap:8px;margin:6px 0 2px;font-size:1rem;color:var(--ink);cursor:pointer}
.remember-me input{width:20px;height:20px;accent-color:var(--purple)}
.t-out{flex:0 0 auto;min-width:96px}

/* story videos (Unit 1) */
.vid-card{background:#fff;border:3px solid #e2d6ff;border-radius:18px;margin:0 0 12px;overflow:hidden}
.vid-toggle{width:100%;display:flex;flex-direction:column;align-items:center;gap:2px;background:linear-gradient(180deg,#f6f0ff,#ece2ff);border:0;color:var(--purple);font-size:1.25rem;font-weight:800;padding:12px 14px;min-height:56px;cursor:pointer}
.vid-toggle small{font-size:.95rem;font-weight:700;color:var(--muted)}
.vid-toggle.on{background:#ece2ff}
.vid-box{padding:10px}
.vid-wrap{width:100%}
.vid-wrap video{display:block;width:100%;height:auto;aspect-ratio:16/9;background:#1d1028;border-radius:12px}
.vid-note{margin:8px 0 0;font-size:.95rem;color:var(--muted);text-align:center}
.vids-top h2{margin-top:34px}
.vids-list{display:flex;flex-direction:column;gap:16px;max-width:860px;margin:0 auto}
.vid-item{background:#fff;border-radius:22px;padding:12px;box-shadow:0 10px 30px rgba(142,92,247,.12)}
.vid-item h3{margin:2px 4px 2px;font-size:1.2rem;display:flex;flex-wrap:wrap;gap:6px;align-items:baseline}
.vid-item .vnum{color:var(--pink);font-weight:800}
.vid-item.full{border:3px solid var(--pink2)}
.vid-meta{margin:0 4px 8px;color:var(--muted);font-size:.95rem}
.vids-back{display:block;margin:18px auto 8px}
@media (max-width:520px){.vid-item{padding:8px;border-radius:16px}.vid-box{padding:6px}.vid-wrap video{border-radius:10px}}

/* v9: rule practice */
.big-btn.prac-open{display:block;margin:18px auto 2px;font-size:1.15rem;padding:13px 26px;min-height:54px;max-width:100%}
.prac{background:#fff;border-radius:24px;padding:16px 18px 18px;box-shadow:0 8px 26px rgba(142,92,247,.1);margin:0 auto 16px;max-width:820px;border-top:6px solid var(--pink)}
.prac .prac-hint{margin:2px 0;color:var(--muted);font-size:.98rem}
.prac-q{display:flex;align-items:center;gap:10px;direction:rtl}
.prac-q .say{flex:0 0 auto}
.prac-q .q{flex:1 1 auto;text-align:left;line-height:1.6}
.prac-row.now{background:#fff4f9;border-radius:12px}
.prac .opts{direction:ltr;justify-content:flex-start;padding-left:58px}
.prac-end{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin-top:14px}
.prac-end.done .prac-again{animation:pracPulse 1.2s ease-in-out 2}
@keyframes pracPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.06)}}
@media (max-width:520px){.prac{padding:14px 12px 16px;border-radius:20px}.prac .opts{padding-left:0}.prac-end .big-btn{flex:1 1 100%}}
.prac-top h2 .en{white-space:nowrap}

/* ---- Unit 3 build: three unit tabs ---- */
.unit-tabs{grid-template-columns:repeat(3,1fr);width:min(100%,720px)}
@media (max-width:420px){.unit-tabs{gap:6px}.unit-tab{padding:8px 4px}.unit-tab small{font-size:.74rem}}
/* v23: four unit tabs (2x2 on a phone) */
.unit-tabs{grid-template-columns:repeat(4,1fr);width:min(100%,920px)}
@media (max-width:700px){.unit-tabs{grid-template-columns:1fr 1fr;width:min(100%,560px)}}

/* flashcard illustrations (teacher's own art) in word cards, picture matching and "write the word under the picture" */
.wcard .em.fc{display:flex;align-items:center;justify-content:center;width:100%;height:132px;font-size:1rem;line-height:1}
.fci{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;border-radius:10px}
.wcard .em.fc .fci{max-height:132px;max-width:150px}
.picb .pic .fci{max-height:96px;max-width:100%;margin:0 auto}
.picb{padding:6px}
.fcq{display:inline-flex;vertical-align:middle;height:96px;max-width:140px}
.fcq .fci{max-height:96px;max-width:140px}
@media (max-width:760px){.wcard .em.fc{height:104px}.wcard .em.fc .fci{max-height:104px;max-width:120px}.picb .pic .fci{max-height:78px}}

/* v26: inserted lessons that a girl was already past: open, not marked done */
.lesson.new{border-color:#ffd38a}
.lesson.new .lnum{background:#ffb84d;color:#fff}
.newtag{font-style:normal;font-size:.75em;font-weight:700;color:#a45f00;background:#fff3dd;border-radius:8px;padding:1px 6px;margin-inline-start:4px}
.lstep.open button{background:#fffaf0;border-color:#ffe2b0}

/* v29: מה פתוח לכיתה */
.unit-tab.locked{background:#f3f0f6;border-color:#e3dde9;border-style:dashed;color:#9a8ca6;cursor:default;box-shadow:none}
.unit-tab.locked b{color:#9a8ca6}
.unit-tab.locked .ut-pct{color:#a08bb5;font-size:.85rem}
.unit-closed-note{background:#f5efff;border-radius:14px;padding:8px 14px;margin:0;color:var(--purple);font-weight:700;text-align:center;width:min(100%,560px)}
.all-closed{display:flex;flex-direction:column;align-items:center;gap:6px;background:#fff;border:3px dashed #e2d6ff;border-radius:22px;padding:22px 16px;width:min(100%,560px);text-align:center}
.all-closed .ac-ic{font-size:2.6rem}
.all-closed b{font-size:1.3rem;color:var(--ink)}
.all-closed span{color:var(--muted)}
.uo-list{display:flex;flex-direction:column;gap:12px;margin:6px 0 12px}
.uo-unit{border:2px solid #f1e8f8;border-radius:18px;padding:10px 12px;display:flex;flex-direction:column;gap:6px;background:#fff}
.uo-unit.closed{background:#faf8fc;border-style:dashed}
.uo-top{display:flex;justify-content:space-between;align-items:center;gap:10px}
.uo-name{display:flex;flex-direction:column;gap:0}
.uo-name b{font-size:1.2rem}
.uo-name small{color:var(--muted);font-size:.85rem}
.uo-sw{display:inline-flex;align-items:center;gap:8px;background:none;border:0;padding:4px;font:inherit;font-weight:800;cursor:pointer;color:var(--muted);min-height:44px}
.uo-sw.on{color:var(--teal)}
.uo-track{position:relative;width:52px;height:30px;border-radius:30px;background:#d9d0e2;transition:background .2s;flex:0 0 auto}
.uo-sw.on .uo-track{background:var(--teal)}
.uo-knob{position:absolute;top:3px;right:3px;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:right .2s}
.uo-sw.on .uo-knob{right:25px}
.uo-sw:disabled{opacity:.6;cursor:wait}
.uo-state{margin:0;color:var(--muted);font-size:.92rem}
.uo-les summary{cursor:pointer;font-weight:700;color:var(--purple);padding:6px 0;font-size:.98rem}
.uo-hint{margin:0 0 6px;color:var(--muted);font-size:.88rem}
.uo-row{display:flex;align-items:center;gap:10px;padding:7px 4px;border-top:1px solid #f4eef9;cursor:pointer}
.uo-row input{width:22px;height:22px;accent-color:var(--teal);flex:0 0 auto}
.uo-row .uo-lt{flex:1 1 auto;line-height:1.25}
.uo-row .uo-lt small{color:var(--muted)}
.uo-row.on{background:#effaf8;border-radius:10px}
.uo-tag{font-style:normal;background:var(--teal);color:#fff;border-radius:10px;padding:1px 8px;font-size:.78rem;white-space:nowrap}
.uo-list.busy{opacity:.7}

/* v30: teacher entry pill in the header (left side, opposite ב״ה) */
.t-btn{order:10;flex:0 0 auto;display:inline-flex;align-items:center;gap:5px;background:#fff;border:1.5px solid #e4d9ef;color:var(--muted);border-radius:999px;padding:6px 12px;min-height:40px;font-size:.86rem;font-weight:700;white-space:nowrap;opacity:.9}
.t-btn .t-ico{font-size:1rem;line-height:1}
.t-btn:hover{opacity:1;background:#f7f1fc;border-color:#d4c3e6}
.t-btn.on{color:var(--purple);border-color:#d6c6f7}
@media (max-width:520px){.top{gap:7px;padding-left:10px;padding-right:10px}.t-btn{padding:5px 9px;font-size:.78rem;gap:4px}}
@media (max-width:400px){#mapBtn:not([hidden])~.t-btn .t-lbl{display:none}#mapBtn:not([hidden])~.t-btn{min-width:40px;justify-content:center;padding:5px 8px}}

/* v31: "📘 כללים" pill beside the teacher pill; rules chooser; footer credits */
.r-btn{order:9}
.r-btn.t-btn{color:var(--purple)}
@media (max-width:400px){#mapBtn:not([hidden])~.t-btn{min-width:40px;justify-content:center;padding:5px 8px}#mapBtn:not([hidden])~.t-btn .t-lbl{display:none}}
.rch-h{margin:0;font-size:1.3rem}
.rch-sub{margin:0;color:var(--muted)}
.rch-list{display:flex;flex-direction:column;gap:10px;margin-top:4px}
.rch-btn{display:flex;flex-direction:column;align-items:center;gap:2px;background:#fff;border:2.5px solid #e2d6ff;border-radius:16px;padding:10px 14px;min-height:56px;color:var(--purple)}
.rch-btn b{font-size:1.12rem}
.rch-btn small{font-size:.85rem;color:var(--muted)}
.rch-btn:hover{background:#f7f1fc}
.rch-btn.cur{border-color:#b89cf5;background:#faf7ff}
.rch-btn.locked{opacity:.6;cursor:default;background:#f6f4f8;border-style:dashed}
.rch-soon{font-size:.8rem;color:var(--muted)}
.rch-x{align-self:center}
.rsw.locked{opacity:.55;cursor:default}
.site-foot{display:flex;flex-direction:column;align-items:center;gap:2px;max-width:760px;margin:28px auto 0;padding:14px 16px calc(16px + env(safe-area-inset-bottom));border-top:1px solid #eadff3;color:var(--muted);font-size:.78rem;line-height:1.5;text-align:center;opacity:.85}
.site-foot .sf-l{display:block}
.site-foot .sf-by{display:inline-block}

/* v32: admin site-wide totals card */
.sum-card{background:linear-gradient(135deg,#f6f0ff,#fff3f8);border:2px solid #e3d4ff;border-radius:18px;padding:14px 12px 12px;text-align:center;margin:0 0 12px;display:flex;flex-direction:column;gap:4px}
.sum-lbl{font-weight:700;color:var(--purple);font-size:1.05rem}
.sum-num{font-size:2.6rem;font-weight:800;color:var(--purple);line-height:1.1}
.sum-sub{color:var(--muted);font-size:.95rem}

/* v33: top back button on teacher list screens (sticky inside the scrolling modal card) */
.t-head{position:sticky;top:-20px;z-index:2;background:#fff;margin:-20px -20px 12px;padding:14px 16px 10px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1.5px solid #f0e8f7;border-radius:22px 22px 0 0}
.t-head h3{margin:0;text-align:right;flex:1 1 auto}
.t-back{flex:0 0 auto;background:#f6effb;border:1.5px solid #e4d9ef;color:var(--purple);border-radius:999px;padding:8px 16px;min-height:44px;min-width:88px;font:inherit;font-size:.98rem;font-weight:700;cursor:pointer;white-space:nowrap}
.t-back:hover{background:var(--pink2)}

/* v34: Unit 1 rules — explainer video card */
.rule-vid{background:#fff;border-radius:24px;padding:14px 16px 16px;box-shadow:0 8px 26px rgba(142,92,247,.1);margin:14px auto 14px;max-width:720px;border-top:6px solid var(--purple);text-align:right}
.rule-vid h3{margin:0 0 4px;font-size:1.2rem;color:var(--purple)}
.rule-vid .rv-sub{margin:0 0 10px;font-size:.95rem;color:#5c4a73}
.rule-vid .vid-wrap{max-width:720px;margin:0 auto}
.rule-vid .vid-wrap video{border-radius:14px}
@media (max-width:520px){.rule-vid{padding:12px 6px 8px;border-radius:20px;margin-left:-6px;margin-right:-6px}.rule-vid h3,.rule-vid .rv-sub{padding:0 6px}.rule-vid h3{font-size:1.08rem}}

/* v36: test review (📝 חזרה למבחן – יחידה 1) */
.rev-open{display:flex;align-items:center;gap:12px;width:100%;max-width:560px;margin:4px auto 0;padding:12px 16px;border:3px solid var(--yellow);border-radius:20px;background:linear-gradient(180deg,#fff8e1,#ffefc2);color:var(--ink);font:inherit;text-align:right;cursor:pointer;box-shadow:0 5px 0 #f2c94c;min-height:64px}
.rev-open:active{transform:translateY(3px);box-shadow:0 2px 0 #f2c94c}
.rev-open .rv-ic{font-size:2rem;flex:0 0 auto}
.rev-open .rv-t{flex:1 1 auto;display:flex;flex-direction:column;gap:2px}
.rev-open .rv-t b{font-size:1.25rem;color:#7a4b00}
.rev-open .rv-t small{font-size:.95rem;color:var(--muted);font-weight:700}
.rev-open .rv-go{flex:0 0 auto;font-size:1.2rem;color:#b07800}
#login .rev-open.on-login{margin:6px auto 0;max-width:620px}
.rev-top h2{color:#7a4b00}
.rev-check{background:#fff;border-radius:24px;padding:14px 18px;box-shadow:0 8px 26px rgba(142,92,247,.1);margin:0 auto 16px;max-width:820px;border-top:6px solid var(--yellow)}
.rev-check h3{margin:2px 0 8px;font-size:1.25rem}
.rev-check ul{margin:0;padding:0 18px 0 0;line-height:1.65;font-size:1.05rem}
.rev-check li{margin:2px 0}
.rev-nav-h{margin:12px 0 6px;color:var(--muted);font-weight:700}
.rev-nav{display:flex;flex-wrap:wrap;gap:8px}
.rev-chip{border:2px solid #e2d6ff;background:#faf7ff;color:var(--purple);border-radius:999px;padding:8px 12px;font:inherit;font-size:.95rem;font-weight:700;min-height:44px;cursor:pointer}
.rev-sec{scroll-margin-top:80px}
.rev-h{margin:2px 0 10px;font-size:1.3rem;display:flex;gap:8px;align-items:baseline;flex-wrap:wrap}
.rev-l{display:inline-grid;place-items:center;min-width:34px;height:34px;border-radius:50%;background:var(--pink);color:#fff;font-size:1.05rem}
.rev-area{margin-bottom:12px}
.rev-sec .instr-box+.rev-area .q-row:first-child{padding-top:4px}
.rev-sec .q.en{text-align:left;line-height:1.6}
.rev-sec .opts{direction:ltr;justify-content:flex-start}
.mi.mr.he-r{font-family:inherit;direction:rtl;text-align:right}
.rev-passage{background:#fffdf5;border:2px solid #f6e3a6;border-radius:16px;padding:12px 16px;margin:0 0 12px;text-align:left;font-size:1.15rem;line-height:1.75}
.rev-passage h4{margin:0 0 4px;color:var(--purple);font-size:1.25rem;text-align:center}
.rev-passage p{margin:0}
.rev-total{max-width:820px;margin:6px auto 4px}
.rev-end{max-width:820px;margin:10px auto 18px}
@media (max-width:420px){.rev-open{padding:10px 12px;gap:10px}.rev-open .rv-t b{font-size:1.1rem}.rev-open .rv-t small{font-size:.85rem}.rev-check{padding:12px 12px;border-radius:20px}.rev-passage{font-size:1.05rem;padding:10px 12px}.rev-h{font-size:1.15rem}}

/* v37: vocab list + English→Hebrew drill (review section א׳) */
.vl{background:#fffdf5;border:2px solid #ffe7a3;border-radius:18px;margin:0 auto 14px;max-width:820px}
.vl-sum{cursor:pointer;font-weight:800;font-size:1.15rem;padding:12px 14px;min-height:48px;color:#7a4b00;list-style-position:inside}
.vl-n{color:var(--muted);font-weight:700}
.vl-list{padding:0 10px 10px}
.vl-g{direction:ltr;text-align:left;font-weight:800;color:var(--teal);font-size:1rem;margin:10px 4px 4px;border-bottom:2px solid #e6f6f3;padding-bottom:2px}
.vl-row{display:flex;align-items:center;gap:10px;padding:5px 4px;border-bottom:1px dashed #f0e6c8}
.vl-row:last-child{border-bottom:0}
.vl-say{min-width:42px;min-height:42px;font-size:1.1rem;flex:0 0 auto}
.say.on{background:var(--pink);color:#fff}
.vl-en{direction:ltr;unicode-bidi:isolate;font-weight:800;color:var(--purple);font-size:1.12rem;flex:1 1 50%;text-align:left}
.vl-he{flex:1 1 50%;font-size:1.08rem;text-align:right}
.vd{max-width:820px;margin:0 auto 6px}
.vd-mode{flex-wrap:wrap}
.vd-head{margin:0 auto 10px}
.vd-bar{height:12px;background:#f1e6f7;border-radius:999px;overflow:hidden}
.vd-bar i{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--teal),var(--pink));transition:width .3s}
.vd-info{text-align:center;font-weight:800;color:var(--muted);margin:6px 0 0;font-size:1.05rem}
.vd-ok{color:#138a57}.vd-bad{color:var(--red)}
.vd-card{margin-bottom:12px;padding:14px}
.vd-w{direction:ltr;word-break:break-word}
.vd-ask{margin:4px 0 0;color:var(--muted);font-weight:700}
.vd-opt{font-size:clamp(1.15rem,3vw,1.5rem);min-height:64px}
.vd-fb{text-align:center;font-weight:800;font-size:1.15rem;min-height:1.4em;margin:10px 0 4px}
.vd-fb.ok{color:#138a57}.vd-fb.no{color:var(--red)}
.vd-fb b{color:var(--ink)}
.vd-next,.vd-retry,.vd-restart{display:block;margin:10px auto 0}
.vd-type{display:flex;gap:10px;align-items:center;justify-content:center;flex-wrap:wrap}
.vd-in{font:inherit;font-size:1.3rem;padding:10px 14px;border:3px solid #e6d9f1;border-radius:16px;min-height:56px;flex:1 1 220px;max-width:420px;text-align:right}
.vd-in.right{border-color:var(--green);background:#dcfbe9}.vd-in.wrong{border-color:var(--red);background:#ffe3e9}
.vd-check{font-size:1.15rem;padding:12px 24px;min-height:56px}
.vd-btns{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:6px}
.vd-btns .big-btn{font-size:1.05rem;padding:12px 18px;min-height:52px;margin:0}
.vd-done h4{margin:4px 0 8px;color:#138a57;font-size:1.3rem}
.vd-sum{font-size:1.1rem;margin:4px 0 8px}
.vd-miss{text-align:right;background:#fff7f9;border-radius:14px;margin:0 0 6px}
@media (max-width:420px){.vd-opts{gap:8px}.vd-opt{min-height:58px;padding:10px 6px}.vl-en{font-size:1.02rem}.vl-he{font-size:1rem}}

/* v37b: drill layout */
.rev-area .vd-opts,.vd-opts{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-width:820px;margin:0 auto;padding:0}
.vd-opts .vd-opt{width:100%;margin:0;direction:rtl;text-align:center;line-height:1.25}
.vd-card{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px 14px}
.vd-card .vd-w{flex:0 1 auto}
.vd-card .vd-ask{flex:1 1 100%}
.prac .vd-opts{direction:rtl;padding-left:0}
.vd-card .vd-ask{text-align:center}

/* v38: grade ("סיימתי – מה הציון שלי?") */
.rev-grade-wrap{max-width:820px;margin:14px auto 6px;text-align:center}
.rev-grade-btn{background:var(--purple);color:#fff;font-size:1.2rem;width:100%;max-width:460px}
.rev-grade-rule{font-size:.86rem;color:var(--muted);margin:6px auto 0;max-width:560px;line-height:1.45}
.rev-grade{margin:14px auto 0;background:var(--card);border-radius:var(--radius);box-shadow:0 6px 22px rgba(142,92,247,.16);padding:16px 14px;border:3px solid var(--pink2);scroll-margin-top:130px}
.rev-grade.g-a{border-color:var(--green)}.rev-grade.g-b{border-color:var(--yellow)}.rev-grade.g-c{border-color:var(--pink)}
.rg-label{margin:0;font-weight:800;color:var(--muted)}
.rg-big{direction:ltr;font-size:1.3rem;color:var(--ink);line-height:1}
.rg-big b{font-size:4.2rem;font-weight:800}.g-a .rg-big b{color:var(--green)}.g-b .rg-big b{color:#d79a00}.g-c .rg-big b{color:var(--pink)}
.rg-big small{font-size:1.4rem;color:var(--muted);margin-left:4px}
.rg-msg{font-size:1.25rem;font-weight:800;margin:6px 0}
.rg-cnt{margin:4px 0 10px;color:var(--ink)}
.rg-secs{display:grid;gap:6px;text-align:right}
.rg-sec{display:grid;grid-template-columns:2.2em 1fr auto;grid-template-areas:"l h g" "l n g";align-items:center;background:var(--bg);border-radius:14px;padding:6px 10px}
.rg-sl{grid-area:l;font-weight:800;color:var(--purple)}.rg-sh{grid-area:h;font-weight:700}.rg-sn{grid-area:n;font-size:.82rem;color:var(--muted)}
.rg-sg{grid-area:g;font-size:1.05rem;color:var(--muted)}.rg-sg b{font-size:1.5rem;color:var(--ink)}
.rg-sec.na{opacity:.6}
.rg-note{font-size:.82rem;color:var(--muted);margin:10px 0 0}
