
@font-face{font-family:"FrankRuhl";src:url("fonts/FrankRuhl.woff2") format("woff2");font-weight:300 900;font-display:swap}
@font-face{font-family:"Rubik";src:url("fonts/Rubik.woff2") format("woff2");font-weight:300 900;font-display:swap}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
:root{--ink:#3b2412;--muted:#7a5a3c;--card:#ffffff;--brand:#9a3412;--brand2:#c2410c;--ok:#1aae6f;--bad:#e5484d;--gold:#ffc83d;--radius:20px;--shadow:0 6px 0 rgba(59,36,18,.12),0 10px 24px rgba(59,36,18,.12)}
html,body{margin:0;padding:0}
body{font-family:"Rubik",system-ui,Arial,sans-serif;color:var(--ink);min-height:100vh;min-height:100dvh;font-size:18px;line-height:1.45;overflow-x:hidden;transition:background .6s}
button{font-family:inherit;color:inherit;cursor:pointer}
button:focus-visible,input:focus-visible{outline:4px solid #ffd60a;outline-offset:2px}
.hidden{display:none!important}
.ico{width:26px;height:26px;display:inline-block;vertical-align:middle}
/* backgrounds */
body.bg-sky{background:linear-gradient(180deg,#8fd3ff 0%,#c9ecff 55%,#eafaf1 100%)}
body.bg-sea{background:linear-gradient(180deg,#48cae4 0%,#90e0ef 50%,#caf0f8 100%)}
body.bg-forest{background:linear-gradient(180deg,#b7e4c7 0%,#95d5b2 50%,#74c69d 100%)}
body.bg-sunset{background:linear-gradient(180deg,#ffafcc 0%,#ffc8a2 50%,#fff1c1 100%)}
body.bg-night{background:radial-gradient(circle at 20% 15%,#ffffff22 0 2px,transparent 3px),radial-gradient(circle at 70% 30%,#ffffff33 0 2px,transparent 3px),radial-gradient(circle at 40% 70%,#ffffff22 0 2px,transparent 3px),linear-gradient(180deg,#14213d 0%,#3a0ca3 100%);background-size:180px 180px,240px 240px,200px 200px,100% 100%}
body.bg-candy{background:linear-gradient(135deg,#ffd6ff 0%,#e7c6ff 35%,#c8b6ff 65%,#b8c0ff 100%)}
body.bg-desert{background:linear-gradient(180deg,#ffe8a3 0%,#ffd07b 55%,#f4a259 100%)}
body.bg-night .world-head h2,body.bg-night .map-title{color:#fff}
#bgdeco{position:fixed;inset:0;pointer-events:none;z-index:0;opacity:.55;background:
 radial-gradient(ellipse 90px 34px at 12% 14%,#fff 60%,transparent 62%),radial-gradient(ellipse 120px 40px at 82% 9%,#fff 60%,transparent 62%),radial-gradient(ellipse 80px 30px at 60% 22%,#fff 60%,transparent 62%)}
body.bg-night #bgdeco,body.bg-forest #bgdeco,body.bg-desert #bgdeco{opacity:.15}
/* top bar */
.topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:8px;padding:8px 12px;padding-top:max(8px,env(safe-area-inset-top));background:rgba(255,248,235,.92);backdrop-filter:blur(8px);box-shadow:0 2px 12px rgba(0,0,0,.08)}
.avatar-btn{border:none;background:#fff;border-radius:50%;width:52px;height:52px;padding:2px;box-shadow:0 3px 0 #e8d5b0;display:grid;place-items:center;flex:0 0 auto}
.who{min-width:0}
.pname{font-weight:700;font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:34vw}
.pstars{color:#e0a100;font-weight:700;font-size:15px;display:flex;align-items:center;gap:3px}.pstars .ico{width:18px;height:18px}
.spacer{flex:1}
.coins{display:flex;align-items:center;gap:5px;background:#fff6d6;border:2px solid #ffd76a;border-radius:999px;padding:4px 12px 4px 10px;font-weight:800;font-size:18px}
.coins .ico{width:24px;height:24px}
.coins.bump{animation:bump .5s}
@keyframes bump{40%{transform:scale(1.25)}}
.iconbtn{border:none;background:var(--brand);color:#fff;width:46px;height:46px;border-radius:14px;display:grid;place-items:center;box-shadow:0 4px 0 #6b240c;flex:0 0 auto}
.iconbtn:active{transform:translateY(3px);box-shadow:0 1px 0 #6b240c}
.iconbtn.locked{background:#c8b296;box-shadow:0 4px 0 #a08868}
main{position:relative;z-index:1;max-width:980px;margin:0 auto;padding:16px 14px 60px}
/* map */
.hero{display:flex;align-items:center;gap:14px;background:rgba(255,255,255,.92);border-radius:var(--radius);padding:16px 18px;box-shadow:var(--shadow);margin-bottom:18px}
.hero h1{margin:0;font-size:clamp(24px,5vw,38px);line-height:1.15;color:var(--brand)}
.hero p{margin:4px 0 0;color:var(--muted);font-size:16px}
.hero .heroav{flex:0 0 auto}
.stickerbar{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.worlds{display:grid;gap:16px}
.world{background:rgba(255,255,255,.94);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden;position:relative}
.world-head{display:flex;align-items:center;gap:12px;padding:14px 16px;color:#fff;background:var(--wc)}
.world-num{width:46px;height:46px;border-radius:50%;background:rgba(255,255,255,.25);display:grid;place-items:center;font-weight:800;font-size:22px;flex:0 0 auto}
.world-head h2{margin:0;font-size:22px;line-height:1.2}
.world-head .sub{font-size:15px;opacity:.95}
.world-head .rulebtn{margin-inline-start:auto;border:none;background:rgba(255,255,255,.95);color:var(--wc);font-weight:700;border-radius:12px;padding:8px 12px;display:flex;align-items:center;gap:6px;font-size:16px;flex:0 0 auto}
.world-head .rulebtn .ico{width:20px;height:20px}
.levels{display:flex;flex-wrap:wrap;gap:12px;padding:16px;align-items:stretch}
.lvl{flex:1 1 150px;min-height:96px;border:none;border-radius:18px;background:#fbf3e3;box-shadow:0 5px 0 #ecd9b6;padding:10px 12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-weight:700;font-size:17px;text-align:center}
.lvl:active{transform:translateY(3px);box-shadow:0 2px 0 #ecd9b6}
.lvl .badge{width:38px;height:38px;border-radius:50%;background:var(--wc);color:#fff;display:grid;place-items:center;font-weight:800}
.lvl.boss .badge{background:#3b2412;color:var(--gold)}
.lvl .stars{display:flex;gap:2px;color:#e5d6bd}.lvl .stars .ico{width:20px;height:20px}.lvl .stars .on{color:#ffb400}
.lvl.locked{opacity:.55;background:#f3ead8}
.lvl.locked .badge{background:#b59a78}
.lvl.next{outline:4px solid var(--gold);animation:pulse 1.6s infinite}
@keyframes pulse{50%{outline-color:#fff0}}
.shopnode{flex:0 0 auto;min-width:110px;background:#fff6d6;box-shadow:0 5px 0 #f1d27a}
.shopnode .badge{background:#ffb400}
.bonus-tag{position:absolute;top:10px;left:12px;background:#ffd60a;color:#4a2c00;border-radius:999px;padding:2px 10px;font-weight:800;font-size:14px}
/* cards & buttons */
.card{background:rgba(255,255,255,.96);border-radius:var(--radius);box-shadow:var(--shadow);padding:20px}
.btn{border:none;border-radius:16px;padding:14px 22px;font-size:20px;font-weight:800;background:var(--brand);color:#fff;box-shadow:0 5px 0 #6b240c;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:56px}
.btn:active{transform:translateY(3px);box-shadow:0 2px 0 #6b240c}
.btn.secondary{background:#fff;color:var(--brand);box-shadow:0 5px 0 #e8d5b0;border:2px solid #efdfc0}
.btn.gold{background:var(--gold);color:#4a2c00;box-shadow:0 5px 0 #d99a00}
.btn.danger{background:var(--bad);box-shadow:0 5px 0 #a8262b}
.btn[disabled]{opacity:.5;pointer-events:none}
.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
/* intro */
.intro{max-width:760px;margin:0 auto}
.intro h2{margin:0 0 6px;font-size:clamp(26px,5vw,36px);color:var(--wc)}
.intro .ruleline{display:flex;gap:10px;align-items:flex-start;margin:10px 0;font-size:clamp(18px,2.6vw,22px)}
.intro .dot{flex:0 0 14px;height:14px;border-radius:50%;background:var(--wc);margin-top:9px}
.examples{background:#fbf3e3;border-radius:16px;padding:12px 16px;margin:14px 0;font-size:clamp(19px,2.8vw,24px);font-weight:600}
.examples div{margin:4px 0}
.narr{display:flex;align-items:center;gap:10px;margin:8px 0 16px;color:var(--muted);font-size:16px}
.narr .wave{display:flex;gap:3px;align-items:flex-end;height:22px}.narr .wave i{width:4px;background:var(--wc);border-radius:2px;height:6px}
.narr.playing .wave i{animation:wave .9s infinite ease-in-out}.narr .wave i:nth-child(2){animation-delay:.15s}.narr .wave i:nth-child(3){animation-delay:.3s}.narr .wave i:nth-child(4){animation-delay:.45s}
@keyframes wave{50%{height:22px}}
/* quiz */
.quiz{max-width:820px;margin:0 auto}
.qtop{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.backbtn{border:none;background:#fff;border-radius:14px;width:46px;height:46px;display:grid;place-items:center;box-shadow:0 4px 0 #e8d5b0;color:var(--brand);flex:0 0 auto}
.progress{flex:1;height:18px;background:rgba(255,255,255,.8);border-radius:999px;overflow:hidden;box-shadow:inset 0 2px 4px rgba(0,0,0,.08)}
.progress i{display:block;height:100%;background:linear-gradient(90deg,#06d6a0,#1aae6f);border-radius:999px;transition:width .4s}
.qcount{font-weight:800;color:var(--ink);background:#fff;border-radius:12px;padding:6px 10px;font-size:16px;flex:0 0 auto}
.qcard{background:#fff;border-radius:24px;box-shadow:var(--shadow);padding:20px 18px 22px;position:relative}
.qlabel{display:inline-flex;align-items:center;gap:6px;font-weight:800;font-size:15px;border-radius:999px;padding:4px 12px;margin-bottom:8px;background:#f8eedb;color:var(--brand)}
.qlabel.think{background:#ffd60a;color:#4a2c00}
.qlabel .ico{width:20px;height:20px}
.qtext{font-size:clamp(21px,3.4vw,30px);font-weight:700;margin:4px 0 16px;line-height:1.35}
.sentence{font-size:clamp(22px,3.6vw,32px);font-weight:600;background:#fcf6ea;border-radius:16px;padding:14px 16px;margin-bottom:16px;line-height:1.6}
.sentence .blank{display:inline-block;min-width:90px;border-bottom:4px dashed var(--brand);color:var(--brand);font-weight:800;padding:0 6px}
.opts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.opts.long{grid-template-columns:1fr}
.opt{border:3px solid #efdfc0;background:#fff;border-radius:18px;padding:14px 14px;font-size:clamp(19px,3vw,26px);font-weight:700;min-height:66px;box-shadow:0 5px 0 #efdfc0;text-align:center;line-height:1.3}
.opt:active{transform:translateY(3px);box-shadow:0 2px 0 #efdfc0}
.opt.correct{background:#dcfce7;border-color:var(--ok);box-shadow:0 5px 0 #13824f;color:#0d5c37}
.opt.wrong{background:#ffe4e4;border-color:var(--bad);box-shadow:0 5px 0 #a8262b;color:#8a1c20;animation:shake .4s}
.opt.gone{visibility:hidden}
.opt[disabled]{cursor:default}
@keyframes shake{20%{transform:translateX(-8px)}40%{transform:translateX(8px)}60%{transform:translateX(-5px)}80%{transform:translateX(5px)}}
.shake{animation:shake .4s}
.chips{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;min-height:60px;margin-bottom:14px}
.chip{border:3px solid #e8d5b0;background:#fff;border-radius:14px;padding:10px 16px;font-size:clamp(19px,3vw,25px);font-weight:700;box-shadow:0 4px 0 #e8d5b0;min-height:54px}
.chip.sel{border-color:var(--brand);background:#f8eedb;transform:translateY(-3px)}
.chip.placed{background:#dcfce7;border-color:var(--ok);box-shadow:none;font-size:18px;padding:6px 12px;min-height:0}
.buckets{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.bucket{border:3px dashed #d9b98a;border-radius:18px;background:#fdf9f0;min-height:120px;padding:10px;display:flex;flex-direction:column;align-items:center;gap:8px}
.bucket h4{margin:0;font-size:clamp(19px,2.8vw,24px);color:var(--brand)}
.bucket .in{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.bucket.ready{border-color:var(--brand);background:#f8eedb;cursor:pointer}
.matchgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px 18px}
.matchcol{display:flex;flex-direction:column;gap:10px}
.mitem{border:3px solid #e8d5b0;background:#fff;border-radius:14px;padding:10px 12px;font-size:clamp(17px,2.7vw,23px);font-weight:700;box-shadow:0 4px 0 #e8d5b0;min-height:58px;line-height:1.3}
.mitem.sel{border-color:var(--brand);background:#f8eedb}
.mitem.done{background:#dcfce7;border-color:var(--ok);box-shadow:none;color:#0d5c37}
.bigword{font-size:clamp(40px,9vw,72px);font-weight:800;text-align:center;color:var(--brand);margin:6px 0 10px;letter-spacing:1px}
.slots{display:flex;gap:10px;justify-content:center;margin:6px 0 16px;direction:rtl}
.slot{width:62px;height:66px;border-radius:14px;border:3px dashed #d9b98a;background:#fdf9f0;display:grid;place-items:center;font-size:34px;font-weight:800}
.slot.filled{border-style:solid;border-color:var(--brand);background:#f8eedb}
.slotsep{align-self:center;font-size:30px;color:#d9b98a;font-weight:800}
.letters{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;direction:rtl;margin-bottom:16px}
.letter{width:58px;height:62px;border-radius:14px;border:3px solid #e8d5b0;background:#fff;font-size:32px;font-weight:800;box-shadow:0 4px 0 #e8d5b0}
.letter.used{opacity:.35}
.buildline{min-height:70px;border-radius:16px;background:#fcf6ea;border:3px dashed #d9b98a;display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:center;padding:8px;margin-bottom:14px}
.words{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;font-size:clamp(22px,3.6vw,32px)}
.word{border:3px solid #efdfc0;background:#fff;border-radius:14px;padding:8px 14px;font-weight:700;font-size:inherit;box-shadow:0 4px 0 #efdfc0}
.word.correct{background:#dcfce7;border-color:var(--ok)}
.word.wrong{background:#ffe4e4;border-color:var(--bad);animation:shake .4s}
.checkrow{display:flex;justify-content:center;gap:10px;margin-top:6px}
.tools{display:flex;justify-content:flex-start;gap:8px;margin-top:14px;min-height:10px}
.jokerbtn{border:none;border-radius:14px;background:#ffd60a;color:#4a2c00;font-weight:800;padding:8px 14px;display:flex;align-items:center;gap:6px;box-shadow:0 4px 0 #d9b400;font-size:16px}
.jokerbtn .ico{width:30px;height:24px;color:#7a5a00}
.feedback{margin-top:16px;border-radius:18px;padding:14px 16px;font-size:clamp(18px,2.6vw,22px);display:flex;gap:12px;align-items:flex-start}
.feedback.good{background:#dcfce7;color:#0d5c37}
.feedback.bad{background:#fff1e0;color:#7a3d00}
.feedback .fico{flex:0 0 40px;height:40px;border-radius:50%;display:grid;place-items:center;color:#fff}
.feedback.good .fico{background:var(--ok)}.feedback.bad .fico{background:#f08c00}
.feedback b{display:block;font-size:1.1em}
.nextrow{display:flex;justify-content:center;margin-top:16px}
.coinfly{position:fixed;z-index:60;pointer-events:none;font-weight:800;color:#b37a00;font-size:24px;animation:fly 1s forwards}
@keyframes fly{to{transform:translateY(-80px);opacity:0}}
/* result */
.result{text-align:center;max-width:620px;margin:20px auto}
.result h2{font-size:clamp(28px,6vw,42px);margin:6px 0;color:var(--brand)}
.bigstars{display:flex;justify-content:center;gap:10px;margin:10px 0}
.bigstars .ico{width:72px;height:72px;color:#ddd8f0}
.bigstars .on{color:#ffb400;animation:pop .5s backwards}
.bigstars .on:nth-child(2){animation-delay:.25s}.bigstars .on:nth-child(3){animation-delay:.5s}
@keyframes pop{0%{transform:scale(0) rotate(-40deg)}70%{transform:scale(1.25)}}
.result .stat{font-size:21px;margin:6px 0}
.result .row{justify-content:center;margin-top:16px}
/* shop */
.shop h2{margin:0 0 4px;color:var(--brand);font-size:clamp(26px,5vw,36px)}
.tabs{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.tab{border:none;border-radius:999px;padding:8px 16px;font-weight:700;background:#fff;box-shadow:0 3px 0 #e8d5b0;font-size:17px}
.tab.on{background:var(--brand);color:#fff;box-shadow:0 3px 0 #6b240c}
.items{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.item{background:#fff;border-radius:18px;box-shadow:var(--shadow);padding:12px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:6px}
.item .prev{width:96px;height:96px;display:grid;place-items:center;border-radius:16px;background:#fbf3e3}
.item .nm{font-weight:700;font-size:17px}
.item .btn{font-size:16px;padding:8px 12px;min-height:44px;width:100%}
.item.locked{opacity:.6}
.item .lockline{font-size:14px;color:var(--muted)}
.swatch{width:96px;height:96px;border-radius:16px}
.confprev{display:flex;gap:4px;flex-wrap:wrap;justify-content:center;width:70px}
.confprev i{width:12px;height:12px;border-radius:3px}
/* modal */
.modal{position:fixed;inset:0;background:rgba(20,16,50,.55);z-index:50;display:grid;place-items:center;padding:16px}
.modal-card{background:#fff;border-radius:24px;max-width:520px;width:100%;padding:22px;box-shadow:0 20px 50px rgba(0,0,0,.3);max-height:90vh;overflow:auto}
.modal-card h3{margin:0 0 10px;font-size:26px;color:var(--brand)}
.field{display:flex;flex-direction:column;gap:6px;margin:12px 0}
.field input{font:inherit;font-size:20px;padding:10px 14px;border-radius:14px;border:3px solid #e8d5b0}
.toggle{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:12px 0;font-size:18px}
.toggle input{width:26px;height:26px}
.small{font-size:15px;color:var(--muted)}
.toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);background:#3b2412;color:#fff;padding:12px 20px;border-radius:14px;z-index:70;font-weight:700;font-size:18px;max-width:90vw;text-align:center}
#confetti{position:fixed;inset:0;pointer-events:none;z-index:80;width:100%;height:100%}
@media (max-width:560px){
 body{font-size:17px}
 .opts{grid-template-columns:1fr}
 .pname{max-width:28vw;font-size:15px}
 .iconbtn{width:42px;height:42px}
 .avatar-btn{width:46px;height:46px}
 .coins{padding:3px 9px;font-size:16px}
 .world-head h2{font-size:20px}
 .world-head .rulebtn span{display:none}
 .lvl{flex-basis:calc(50% - 6px);min-height:88px;font-size:16px}
 .shopnode{flex-basis:100%}
 .slot{width:54px;height:58px;font-size:30px}
 .letter{width:48px;height:54px;font-size:28px}
 .matchgrid{gap:10px}
 .qcard{padding:16px 12px 18px}
}
@media (min-width:1100px){ main{max-width:1060px} }
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* ---- timer + music (v2) ---- */
.iconbtn{position:relative}
.iconbtn.on{background:#ff7a59;box-shadow:0 4px 0 #c4502f}
#musicBtn.on{background:#06a77d;box-shadow:0 4px 0 #047857}
.badge-n{position:absolute;top:-7px;left:-7px;background:#ffd60a;color:#3b2412;font-size:12px;font-weight:900;border-radius:999px;min-width:22px;height:22px;display:grid;place-items:center;padding:0 4px;box-shadow:0 2px 0 rgba(0,0,0,.18);line-height:1}
.qtimer{position:relative;width:52px;height:52px;flex:0 0 auto}
.qtimer svg{width:100%;height:100%;transform:rotate(-90deg);display:block}
.qtimer .trk{fill:#fff;stroke:#f1e2c6;stroke-width:5}
.qtimer .arc{fill:none;stroke:#1aae6f;stroke-width:5;stroke-linecap:round;stroke-dasharray:119.38;stroke-dashoffset:0;transition:stroke-dashoffset .1s linear,stroke .3s}
.qtimer span{position:absolute;inset:0;display:grid;place-items:center;font-weight:900;font-size:19px;color:var(--ink)}
.qtimer.warn .arc{stroke:#f4a259}
.qtimer.urgent .arc{stroke:#e5484d}
.qtimer.urgent span{color:#e5484d}
.qtimer.urgent{animation:tpulse .5s infinite alternate}
.qtimer.paused{opacity:.6}
@keyframes tpulse{to{transform:scale(1.1)}}
.choices{display:grid;gap:10px;margin:12px 0}
.choices.music{grid-template-columns:1fr 1fr}
.choice{display:flex;align-items:center;gap:10px;border:3px solid #f1e2c6;background:#fff;border-radius:16px;padding:10px 12px;font-size:19px;text-align:right;min-height:58px;box-shadow:0 3px 0 #f1e2c6}
.choice .ico{width:30px;height:30px;flex:0 0 auto;color:var(--brand)}
.choice.on{border-color:var(--brand);background:#f8eedb;box-shadow:0 3px 0 #b9a8f5}
.choice span{flex:1;display:flex;flex-direction:column;min-width:0}
.choice b{font-weight:800}
.choice small{font-weight:500;font-size:14px;color:var(--muted)}
.choice .chk{width:24px;height:24px;color:var(--ok)}
.vol{display:flex;align-items:center;gap:10px;margin:10px 0;font-weight:700;font-size:17px}
.vol input{flex:1;accent-color:var(--brand);height:30px;min-width:0}
.vol b{min-width:44px;text-align:left}
.mutednote{display:flex;align-items:center;gap:8px;background:#fff1e0;color:#7a3d00;border-radius:12px;padding:8px 12px;font-weight:700;margin-top:6px}
.linkbtn{border:none;background:none;color:var(--brand);font-weight:800;text-decoration:underline;font-size:inherit;padding:4px}
.feedback .speed{color:#b35c00;font-weight:800}
.feedback .speed .ico{width:22px;height:22px}
.chip.late{border-color:#f4a259;background:#fff1e0;box-shadow:0 4px 0 #f4c99a}
.modal-card h3 .ico{width:30px;height:30px}
@media (max-width:560px){ .topbar{gap:6px;padding-left:8px;padding-right:8px} .iconbtn{width:40px;height:40px;border-radius:12px} .iconbtn .ico{width:23px;height:23px} }
@media (max-width:440px){ .pname{display:none} .topbar{gap:5px} .iconbtn{width:37px;height:37px} .avatar-btn{width:42px;height:42px} .coins{padding:2px 7px;font-size:15px} .coins .ico{width:20px;height:20px} .qtimer{width:46px;height:46px} .choice{min-height:50px;padding:8px 10px} }

/* ===== v3: subjects, question levels, narration replay, math ===== */
.subjtabs{display:flex;gap:10px;justify-content:center;margin:4px auto 16px;max-width:520px}
.subj{flex:1;display:flex;align-items:center;justify-content:center;gap:10px;border:3px solid #efdfc0;background:#fff;border-radius:18px;padding:12px 16px;font-size:clamp(20px,3.2vw,26px);font-weight:800;color:var(--brand);box-shadow:0 5px 0 #e8d5b0;min-height:60px}
.subj .ico{width:30px;height:30px}
.subj.on{background:var(--brand);border-color:var(--brand);color:#fff;box-shadow:0 5px 0 #6b240c}
.qhead{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:6px}
.qhead .qlabel{margin-bottom:0;flex-wrap:wrap}
.lvbadge{display:inline-flex;align-items:center;gap:4px;border-radius:999px;padding:2px 10px;font-weight:800;font-size:14px;color:#fff}
.lvbadge .ico{width:16px;height:16px}
.lv-h .lvbadge,.lvbadge.lv-h{background:#16a34a}
.lvbadge.lv-b{background:#2563eb}
.lvbadge.lv-m{background:#7c3aed}
.qlabel.think{background:#f1e8ff;color:#4c1d95}
.qmeta{font-weight:700}
.readbtn{display:inline-flex;align-items:center;gap:6px;border:2px solid #e8d5b0;background:#fff;color:var(--brand);border-radius:999px;padding:6px 14px;font-weight:800;font-size:16px;min-height:44px;box-shadow:0 3px 0 #e8d5b0}
.readbtn .ico{width:24px;height:24px}
.readbtn.playing{background:#f8eedb;border-color:var(--brand)}
.readbtn.playing .ico{animation:pulse 1s ease-in-out infinite}
@keyframes pulse{50%{transform:scale(1.18)}}
.opt{display:flex;align-items:center;gap:10px;text-align:right}
.opt .ol{flex:0 0 auto;width:34px;height:34px;border-radius:50%;background:#f8eedb;color:var(--brand);display:inline-flex;align-items:center;justify-content:center;font-size:18px;font-weight:800}
.opt .ot{flex:1;text-align:center}
.opt.correct .ol{background:var(--ok);color:#fff}.opt.wrong .ol{background:var(--bad);color:#fff}
.mx{unicode-bidi:isolate;direction:ltr;white-space:nowrap;font-variant-numeric:tabular-nums}
.fr{display:inline-flex;flex-direction:column;align-items:center;vertical-align:middle;font-size:.82em;line-height:1.05;margin:0 .12em}
.fr i{font-style:normal;padding:0 .15em}
.fr i:first-child{border-bottom:.09em solid currentColor}
.fig{display:flex;justify-content:center;margin:0 0 14px}
.fig svg{max-width:100%;height:auto;background:#fff;border-radius:16px}
.numwrap{display:flex;align-items:center;justify-content:center;gap:10px;margin:4px 0 12px}
.numdisp{min-width:170px;min-height:64px;border:3px solid #e8d5b0;border-radius:16px;background:#fff;font-size:34px;font-weight:800;display:flex;align-items:center;justify-content:center;padding:4px 16px;letter-spacing:.5px;font-variant-numeric:tabular-nums}
.numdisp .ph{color:#c4bde6}
.numdisp.correct{border-color:var(--ok);background:#dcfce7;color:#0d5c37}
.numdisp.wrongv{border-color:var(--bad);background:#ffe4e4}
.numunit{font-size:22px;font-weight:800;color:var(--muted)}
.keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;max-width:330px;margin:0 auto 12px}
.key{border:3px solid #efdfc0;background:#fff;border-radius:16px;font-size:28px;font-weight:800;min-height:62px;box-shadow:0 4px 0 #efdfc0;color:var(--ink)}
.key:active{transform:translateY(3px);box-shadow:0 1px 0 #efdfc0}
.key .ico{width:30px;height:30px;color:var(--bad)}
.key:disabled{opacity:.55}
.qfpick{display:flex;gap:8px;flex-wrap:wrap}
.qfopt{border:3px solid #efdfc0;background:#fff;border-radius:999px;padding:8px 16px;font-weight:800;font-size:17px;min-height:44px}
.qfopt.on.lv-all{background:var(--brand);border-color:var(--brand);color:#fff}
.qfopt.on.lv-h{background:#16a34a;border-color:#16a34a;color:#fff}
.qfopt.on.lv-b{background:#2563eb;border-color:#2563eb;color:#fff}
.qfopt.on.lv-m{background:#7c3aed;border-color:#7c3aed;color:#fff}
.qfchip{display:inline-flex;align-items:center;gap:6px;margin-top:8px;border-radius:999px;padding:4px 12px;font-weight:800;font-size:15px;color:#fff}
.qfchip .ico{width:18px;height:18px}
.qfchip.lv-h{background:#16a34a}.qfchip.lv-b{background:#2563eb}.qfchip.lv-m{background:#7c3aed}
.musicsect{margin-top:10px}
.musicsect h4{display:flex;align-items:center;gap:6px;margin:6px 0 4px;font-size:18px}
.musicsect h4 .ico{width:22px;height:22px;color:var(--brand)}
.ytgroup{border:2px solid #ece8fb;border-radius:14px;margin:8px 0;padding:2px 10px;background:#fbfaff}
.ytgroup summary{cursor:pointer;font-weight:800;font-size:18px;padding:8px 2px;list-style-position:inside}
.ytgroup summary span{font-weight:600;font-size:14px;color:var(--muted)}
.ytgroup .choices{margin:4px 0 10px}
.ytpaste{margin:12px 0 4px;display:flex;flex-direction:column;gap:6px;font-weight:700}
.ytpaste-row{display:flex;gap:8px}
.ytpaste input{flex:1;min-width:0;font:inherit;font-size:16px;padding:10px 12px;border-radius:14px;border:3px solid #e8d5b0;text-align:left}
.ytpaste .btn{min-height:48px;padding:8px 18px}
.ytbox{position:fixed;left:10px;bottom:10px;z-index:40;background:#3b2412;border-radius:12px;padding:4px;box-shadow:0 6px 18px rgba(0,0,0,.3);width:200px}
.ytbox.hidden{display:none}
.ythead{display:flex;align-items:center;justify-content:space-between;color:#fff;font-size:13px;font-weight:700;padding:0 2px 3px 4px}
.ythead button{border:none;background:none;color:#fff;padding:2px;min-width:30px;min-height:30px;display:inline-flex;align-items:center;justify-content:center}
.ythead .ico{width:18px;height:18px}
.ytbox iframe,#ytplayer{display:block;width:192px;height:108px;border:0;border-radius:8px}
@media (max-width:480px){ .choices.music{grid-template-columns:1fr} .keypad{max-width:300px} .key{min-height:58px} .numdisp{font-size:30px} }

/* ===== מסע בבראשית additions ===== */
body.bg-parch{background:
 radial-gradient(ellipse at 15% 10%,rgba(255,255,255,.55),transparent 45%),
 radial-gradient(ellipse at 85% 85%,rgba(196,140,70,.18),transparent 50%),
 linear-gradient(180deg,#fbf0d9 0%,#f3dfb6 60%,#e9c98f 100%)}
body.bg-parch #bgdeco{opacity:.10}
.pasuk,.sentence.pasuk{font-family:"FrankRuhl","Times New Roman",serif;font-size:25px;line-height:1.75;font-weight:500;color:#3b2412;background:#fffaf0;border:2px solid #ead7b4;border-radius:16px;padding:12px 16px;box-shadow:inset 0 0 18px rgba(196,140,70,.12)}
.nik{font-family:"FrankRuhl","Times New Roman",serif;font-weight:600;font-size:1.08em}
.qsrc{font-size:13px;color:var(--muted);margin-top:4px}
.world-art{width:64px;height:64px;flex:0 0 auto;border-radius:16px;background:#fffaf0;box-shadow:0 3px 0 rgba(0,0,0,.08);display:grid;place-items:center}
.world-art svg{width:56px;height:56px}
.paidtag{display:inline-flex;align-items:center;gap:4px;font-size:13px;font-weight:800;color:#7a3d00;background:#ffe7b8;border:2px solid #f2c26b;border-radius:999px;padding:2px 10px;margin-inline-start:6px;vertical-align:middle}
.paidtag .ico{width:15px;height:15px}
.paidtag.open{color:#0d5c37;background:#dcfce7;border-color:#86efac}
.world.paylocked .levels{opacity:.72}
.paywall{text-align:center}
.paywall .pwart svg{width:120px;height:90px}
.paywall .price{font-size:40px;font-weight:900;color:#9a3412;margin:4px 0}
.paywall .priceline{font-size:17px;color:var(--muted)}
.paywall ul{list-style:none;padding:0;margin:10px auto;max-width:340px;text-align:right}
.paywall li{display:flex;gap:8px;align-items:center;padding:4px 0}
.paywall li .ico{width:20px;height:20px;color:#15803d;flex:0 0 auto}
.paywall .soon{background:#fff3d6;border:2px dashed #e0a100;border-radius:14px;padding:10px;margin-top:10px;font-weight:700}
.paywall .fine{font-size:13px;color:var(--muted);margin-top:8px}
.ordlist{display:flex;flex-direction:column;gap:8px;margin:6px 0}
.ordlist .chip{width:100%;text-align:right;justify-content:flex-start}
.ordline{min-height:56px;display:flex;flex-direction:column;gap:6px;border:3px dashed #e1c99f;border-radius:16px;padding:8px;margin-bottom:10px;background:#fffdf7}
.ordline .chip{width:100%;text-align:right}
.ordline .chip .num,.ordlist .chip .num{display:inline-grid;place-items:center;min-width:28px;height:28px;border-radius:50%;background:#9a3412;color:#fff;font-weight:800;margin-inline-end:8px;font-size:15px}
.demo-on{background:#dcfce7;border:2px solid #86efac;border-radius:12px;padding:8px 10px;font-weight:700;color:#0d5c37}
.passinfo{background:#fff3d6;border:2px solid #f2c26b;border-radius:12px;padding:8px 10px;font-weight:700;color:#7a3d00}
.ordlist .chip .num:empty{background:transparent;border:2.5px dashed #c49a5a}

/* ===================== PREMIUM LOOK (v2) ===================== */
:root{--gold2:#f5c451;--glow:0 0 0 1px rgba(255,214,120,.55),0 10px 30px rgba(120,60,10,.25),0 2px 0 rgba(255,255,255,.6) inset}
#bgart{position:fixed;inset:-4%;z-index:0;pointer-events:none;background:center/cover no-repeat;opacity:0;transition:opacity 1.1s ease;filter:saturate(1.05);transform:scale(1.02);animation:bgdrift 60s ease-in-out infinite alternate}
#bgart.on{opacity:.38}
#bgart.inworld.on{opacity:.30}
body:not(.bg-parch) #bgart.on{opacity:.16}
#bgart::after{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 50% 30%,rgba(255,246,226,.25),rgba(251,236,205,.75) 70%),linear-gradient(180deg,rgba(251,240,217,.35),rgba(233,201,143,.55))}
@keyframes bgdrift{from{transform:scale(1.02) translate3d(0,0,0)}to{transform:scale(1.08) translate3d(-1.5%,-1%,0)}}
#motes{position:fixed;inset:0;z-index:0;pointer-events:none}
main{z-index:2}
#app>section{animation:screenIn .5s cubic-bezier(.2,.8,.2,1) both}
@keyframes screenIn{from{opacity:0;transform:translateY(14px) scale(.985)}to{opacity:1;transform:none}}
.topbar{box-shadow:0 6px 24px rgba(90,50,10,.12);background:linear-gradient(180deg,rgba(255,250,238,.95),rgba(255,243,220,.9))}
/* hero */
.hero{position:relative;overflow:hidden;min-height:170px;color:#fff;background:#3b2412;box-shadow:var(--glow);border:2px solid rgba(255,214,120,.6)}
.hero-art{position:absolute;inset:0;background:url("img/map.webp") center/cover;animation:bgdrift 40s ease-in-out infinite alternate}
.hero-art::after{content:"";position:absolute;inset:0;background:linear-gradient(270deg,rgba(40,22,8,.78) 0%,rgba(40,22,8,.45) 55%,rgba(40,22,8,.1) 100%)}
.hero>*:not(.hero-art){position:relative}
.hero h1{color:#ffe7a8;text-shadow:0 2px 0 #7a3b0a,0 0 18px rgba(255,200,90,.7),0 0 40px rgba(255,170,60,.35);letter-spacing:.5px;font-family:"FrankRuhl","Rubik",serif;font-weight:900;font-size:clamp(32px,6.5vw,52px)}
.hero p{color:#fff3da;text-shadow:0 1px 3px rgba(0,0,0,.6);font-size:17px}
.hero .heroav{filter:drop-shadow(0 6px 12px rgba(0,0,0,.4))}
/* worlds */
.worlds{gap:22px}
@media (min-width:900px){.worlds{grid-template-columns:1fr 1fr}}
.world{background:linear-gradient(180deg,rgba(255,251,242,.97),rgba(253,242,220,.97));border:2px solid rgba(214,170,100,.45);box-shadow:0 14px 34px rgba(90,50,10,.18),0 3px 0 rgba(255,255,255,.7) inset;transition:transform .25s,box-shadow .25s}
.world:hover{transform:translateY(-3px);box-shadow:0 20px 44px rgba(90,50,10,.24)}
.world-banner{position:relative;height:clamp(150px,34vw,190px);overflow:hidden;background:var(--wc)}
.wb-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transform:scale(1.04);transition:transform 6s ease}
.world:hover .wb-img{transform:scale(1.12)}
.wb-shade{position:absolute;inset:0;background:linear-gradient(0deg,rgba(25,12,4,.86) 0%,rgba(25,12,4,.35) 48%,rgba(25,12,4,0) 75%),linear-gradient(90deg,transparent 60%,color-mix(in srgb,var(--wc) 35%,transparent))}
.wb-num{position:absolute;top:10px;right:12px;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;font-weight:900;font-size:21px;color:#4a2c00;background:radial-gradient(circle at 35% 30%,#fff6cf,#f5c451 55%,#c98a1a);box-shadow:0 0 0 3px rgba(255,255,255,.65),0 4px 12px rgba(0,0,0,.35)}
.wb-txt{position:absolute;right:14px;left:14px;bottom:10px;color:#fff}
.wb-txt h2{margin:0;font-size:clamp(23px,4.6vw,28px);text-shadow:0 2px 6px rgba(0,0,0,.6);display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.wb-txt .sub{font-size:15px;opacity:.95;text-shadow:0 1px 4px rgba(0,0,0,.7)}
.wb-btns{position:absolute;top:10px;left:10px;display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end;max-width:70%}
.world .rulebtn{border:none;background:rgba(255,250,238,.94);color:#5a2f0c;font-weight:800;border-radius:12px;padding:7px 11px;display:flex;align-items:center;gap:5px;font-size:15px;box-shadow:0 3px 10px rgba(0,0,0,.25);backdrop-filter:blur(4px)}
.world .rulebtn .ico{width:19px;height:19px}
.world .learnbtn{background:linear-gradient(180deg,#fff1c2,#f5c451);color:#5a2f0c}
.paidtag{font-size:13px!important;background:rgba(0,0,0,.45);border:1px solid rgba(255,255,255,.4);color:#fff}
.paidtag.open{background:rgba(26,174,111,.85)}
/* level trail */
.trail{position:relative;display:flex;flex-direction:row;justify-content:space-around;align-items:flex-start;gap:4px;padding:18px 8px 16px;min-height:178px}
.trail-svg{position:absolute;inset:0;pointer-events:none;overflow:visible}
.trail-svg path{fill:none;stroke-linecap:round}
.tp-base{stroke:rgba(150,105,50,.28);stroke-width:12}
.tp-done{stroke:url(#none);stroke:#f5c451;stroke-width:8;filter:drop-shadow(0 0 6px rgba(245,196,81,.8))}
.tp-ants{stroke:#a0703a;stroke-width:3;stroke-dasharray:2 12;animation:ants 1.2s linear infinite;opacity:.8}
@keyframes ants{to{stroke-dashoffset:-28}}
.trail .lvl{flex:1 1 0;min-width:0;max-width:150px;min-height:0;background:none;box-shadow:none;padding:0 2px;gap:3px;position:relative;z-index:1;font-size:15px;line-height:1.2}
.trail .lvl:nth-of-type(even){margin-top:34px}
.trail .lvl:active{transform:translateY(2px);box-shadow:none}
.trail .lvl .badge{width:62px;height:62px;font-size:24px;border-radius:50%;background:radial-gradient(circle at 35% 28%,color-mix(in srgb,var(--wc) 45%,#fff),var(--wc) 60%,color-mix(in srgb,var(--wc) 70%,#000));box-shadow:0 0 0 4px #fff8e8,0 0 0 6px color-mix(in srgb,var(--wc) 50%,#d9b77a),0 8px 16px rgba(60,30,5,.35);transition:transform .2s;animation:nodeIn .5s cubic-bezier(.2,1.4,.4,1) both;animation-delay:calc(var(--i)*90ms)}
@keyframes nodeIn{from{transform:scale(.3);opacity:0}}
.trail .lvl:hover .badge{transform:scale(1.08)}
.trail .lvl .badge .ico{width:28px;height:28px}
.trail .lvl.boss .badge{width:70px;height:70px;background:radial-gradient(circle at 35% 28%,#6b4a2a,#3b2412 65%,#1d1008);color:var(--gold);box-shadow:0 0 0 4px #ffe7a8,0 0 0 7px #c98a1a,0 0 22px rgba(245,196,81,.55),0 8px 16px rgba(60,30,5,.4)}
.trail .lvl.done .badge{box-shadow:0 0 0 4px #fff8e8,0 0 0 6px #f5c451,0 0 18px rgba(245,196,81,.6),0 8px 16px rgba(60,30,5,.35)}
.trail .lvl.locked{opacity:1;background:none}
.trail .lvl.locked .badge{background:radial-gradient(circle at 35% 28%,#e6d6bb,#b59a78 70%);filter:grayscale(.3);color:#fff}
.trail .lvl.locked .lname{opacity:.6}
.trail .lvl.next{outline:none;animation:none}
.trail .lvl.next .badge{animation:nodeIn .5s both,glowp 1.6s ease-in-out .6s infinite}
@keyframes glowp{50%{box-shadow:0 0 0 4px #fff8e8,0 0 0 7px #ffd34d,0 0 30px 6px rgba(255,200,60,.85),0 8px 16px rgba(60,30,5,.35);transform:scale(1.06)}}
.trail .lvl .stars{margin-top:2px}
.trail .lvl .stars .ico{width:17px;height:17px;filter:drop-shadow(0 1px 0 rgba(0,0,0,.15))}
.trail .lvl .lname{font-weight:800;color:#4a2a10;text-shadow:0 1px 0 #fff8e8;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.trail .shopnode .badge{background:radial-gradient(circle at 35% 28%,#fff1c2,#f5c451 60%,#c98a1a);color:#5a2f0c}
.world.paylocked .trail{filter:saturate(.75)}
/* intro video */
.intro.card{padding-top:0;overflow:hidden;border:2px solid rgba(214,170,100,.45);box-shadow:0 18px 40px rgba(90,50,10,.22)}
.introvid{position:relative;margin:0 -20px 14px;aspect-ratio:16/9;max-height:52vh;background:#2a1708;overflow:hidden}
.introvid video,.introvid img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.iv-shade{position:absolute;inset:0;background:linear-gradient(0deg,rgba(25,12,4,.85),rgba(25,12,4,0) 55%)}
.introvid h2{position:absolute;right:18px;bottom:8px;color:#fff!important;text-shadow:0 2px 8px rgba(0,0,0,.7),0 0 24px rgba(255,190,80,.5);margin:0}
/* question scene */
.qcard{background:linear-gradient(180deg,#fffdf8,#fff8ea);border:2px solid rgba(214,170,100,.4);box-shadow:0 16px 38px rgba(90,50,10,.18),0 3px 0 rgba(255,255,255,.8) inset}
.qscene{position:relative;margin:2px 0 14px;border-radius:18px;overflow:hidden;aspect-ratio:16/8;max-height:30vh;width:100%;background:#e9d3a8;box-shadow:0 8px 22px rgba(60,30,5,.25),0 0 0 3px #fff6e0,0 0 0 5px rgba(214,170,100,.55)}
@media (min-width:700px){.qscene{max-height:300px;aspect-ratio:16/7}}
.qs-media{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;animation:qsIn .8s ease both}
.qs-media.kb0{animation:qsIn .8s ease both,kb0 18s ease-in-out .2s infinite alternate}
.qs-media.kb1{animation:qsIn .8s ease both,kb1 18s ease-in-out .2s infinite alternate}
.qs-media.kb2{animation:qsIn .8s ease both,kb2 18s ease-in-out .2s infinite alternate}
@keyframes qsIn{from{opacity:0;filter:blur(6px)}to{opacity:1;filter:none}}
@keyframes kb0{from{transform:scale(1.02)}to{transform:scale(1.14) translate(-2%,-1%)}}
@keyframes kb1{from{transform:scale(1.12) translate(2%,0)}to{transform:scale(1.02)}}
@keyframes kb2{from{transform:scale(1.04) translate(0,1%)}to{transform:scale(1.15) translate(1.5%,-1.5%)}}
.qs-glow{position:absolute;inset:0;background:linear-gradient(115deg,transparent 30%,rgba(255,240,200,.35) 45%,transparent 60%);transform:translateX(-120%);animation:shine 5s ease-in-out 1s infinite}
@keyframes shine{0%,70%{transform:translateX(-120%)}100%{transform:translateX(120%)}}
.btn{background:linear-gradient(180deg,#c2541a,var(--brand));text-shadow:0 1px 0 rgba(0,0,0,.25)}
.btn.gold{background:linear-gradient(180deg,#ffe08a,var(--gold))}
.btn.secondary{background:#fffaf0}
.result.card{border:2px solid rgba(214,170,100,.45);box-shadow:0 18px 40px rgba(90,50,10,.22)}
/* lessons */
.lesson-list{display:grid;gap:10px;margin:10px 0}
.lesson{display:flex;align-items:center;gap:12px;text-align:right;width:100%;border:2px solid #efdfc0;background:#fffaf0;border-radius:16px;padding:8px;box-shadow:0 4px 0 #ecd9b6;transition:transform .15s}
.lesson:hover{transform:translateY(-2px)}
.lesson:active{transform:translateY(2px);box-shadow:0 1px 0 #ecd9b6}
.lthumb{position:relative;flex:0 0 132px;aspect-ratio:16/9;border-radius:10px;overflow:hidden;background:#d9c39b}
.lthumb img{width:100%;height:100%;object-fit:cover;display:block}
.lplay{position:absolute;inset:0;display:grid;place-items:center;background:rgba(0,0,0,.18)}
.lplay .ico{width:36px;height:36px;color:#fff;background:rgba(200,30,30,.9);border-radius:10px;padding:6px}
.ltxt{display:flex;flex-direction:column;gap:2px;min-width:0}
.ltxt b{font-size:16px;line-height:1.3}
.ltxt small{color:var(--muted);font-size:14px}
.lessons-inline{margin:16px 0 4px;text-align:right;background:linear-gradient(180deg,#fff8e6,#fdf0d2);border:2px solid #efd9a8;border-radius:18px;padding:12px}
.lessons-inline h3{margin:0;display:flex;align-items:center;gap:6px;color:var(--brand);font-size:20px}
.modal.wide .modal-card{max-width:860px}
.lesson-frame{position:relative;width:100%;aspect-ratio:16/9;background:#000;border-radius:14px;overflow:hidden}
.lesson-frame iframe,.lesson-frame #lessonYT{position:absolute;inset:0;width:100%;height:100%;border:0}
@media (max-width:420px){.trail .lvl{font-size:13.5px}.trail .lvl .badge{width:54px;height:54px}.trail .lvl.boss .badge{width:62px;height:62px}.lthumb{flex-basis:108px}}
@media (prefers-reduced-motion: reduce){#bgart,.hero-art,.qs-media,.qs-glow,.tp-ants,.trail .lvl .badge,#app>section{animation:none!important}}
@media (min-width:700px){.qscene{max-height:min(240px,32vh)}}
.tp-done{stroke:#f5c451}
.freetag{font-size:13px;font-weight:800;border-radius:999px;padding:2px 10px;background:rgba(26,174,111,.9);border:1px solid rgba(255,255,255,.5);color:#fff;display:inline-flex;align-items:center;gap:4px}
.intro.card{padding:0 0 20px}
.intro.card>:not(.introvid){margin-left:20px;margin-right:20px}
.introvid{margin:0 0 14px!important}
.world .paidtag.open{color:#fff!important}
.introvid{aspect-ratio:auto!important;width:100%;height:min(52vh,56vw);max-height:none!important}

/* ---- difficulty (v4) ---- */
.iconbtn.diffbtn.d-easy{background:#16a34a;box-shadow:0 4px 0 #0f6b32}
.iconbtn.diffbtn.d-mid{background:#b7791f;box-shadow:0 4px 0 #7c5113}
.iconbtn.diffbtn.d-hard{background:#dc2626;box-shadow:0 4px 0 #8f1717}
.diffpick{display:inline-flex;align-items:center;gap:8px;margin-top:10px;border:none;border-radius:999px;padding:7px 14px 7px 10px;font-weight:800;font-size:16px;color:#fff;box-shadow:0 3px 0 rgba(0,0,0,.25);cursor:pointer;font-family:inherit}
.diffpick .ico{width:22px;height:22px}
.diffpick .chev{width:14px;height:14px;transform:rotate(180deg);opacity:.85}
.diffpick b{font-weight:900}
.d-easy.diffpick,.diffchip.d-easy,.diffbanner.d-easy,.qdiff.d-easy{--dc:#16a34a}
.d-mid.diffpick,.diffchip.d-mid,.diffbanner.d-mid,.qdiff.d-mid{--dc:#b7791f}
.d-hard.diffpick,.diffchip.d-hard,.diffbanner.d-hard,.qdiff.d-hard{--dc:#dc2626}
.diffpick{background:var(--dc)}
.diffchip{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:4px 12px;font-weight:800;font-size:15px;color:#fff;background:var(--dc);vertical-align:middle}
.diffchip .ico{width:18px;height:18px}
.introdiff{display:flex;align-items:center;justify-content:center;gap:10px;margin:14px 0 4px;flex-wrap:wrap}
.linkbtn{border:none;background:none;color:var(--brand);font-weight:800;text-decoration:underline;font-size:16px;cursor:pointer;font-family:inherit;padding:6px}
.qdiff{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--dc);color:#fff;flex:0 0 auto;box-shadow:0 2px 0 rgba(0,0,0,.2)}
.qdiff .ico{width:19px;height:19px}
.diffbanner{display:flex;align-items:center;gap:10px;margin:0 0 10px;border-radius:16px;padding:8px 12px;background:#fff;border:3px solid var(--dc);animation:dbIn .5s ease-out both}
.diffbanner>.ico{width:30px;height:30px;color:var(--dc);flex:0 0 auto}
.diffbanner b{display:block;font-size:16px;color:var(--dc)}
.diffbanner span{display:block;font-size:14px;color:var(--muted);font-weight:600}
@keyframes dbIn{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
.opt.removed{opacity:.38;background:repeating-linear-gradient(135deg,#f3eadb 0 8px,#ece0ca 8px 16px)!important;border-style:dashed!important;box-shadow:none!important;cursor:default}
.opt.removed .ot{text-decoration:line-through}
.hintbtn{border:none;border-radius:14px;background:#16a34a;color:#fff;font-weight:800;padding:8px 16px;display:flex;align-items:center;gap:6px;box-shadow:0 4px 0 #0f6b32;font-size:17px;font-family:inherit;cursor:pointer}
.hintbtn .ico{width:22px;height:22px}
.hintbtn:disabled{opacity:.55;box-shadow:none}
.hintbox{display:flex;gap:8px;align-items:flex-start;margin-top:8px;background:#ecfdf3;border:2px solid #86efac;border-radius:14px;padding:8px 12px;font-size:16px;line-height:1.5;flex-basis:100%}
.hintbox .ico{width:22px;height:22px;color:#16a34a;flex:0 0 auto;margin-top:2px}
.hintbox.hidden{display:none}
.tools{flex-wrap:wrap}
.speed.hardx{color:#dc2626}
.speed.hardx .ico{color:#dc2626}
.bigstars{position:relative}
.hardbadge{display:inline-flex;align-items:center;gap:3px;align-self:flex-start;height:auto;line-height:1.2;margin-inline-start:2px;background:#dc2626;color:#fff;font-weight:900;font-size:14px;border-radius:999px;padding:3px 10px 3px 8px;box-shadow:0 2px 0 #8f1717;transform:rotate(-8deg)}
.hardbadge .ico{width:16px!important;height:16px!important;color:#fff3c4!important}
.hardmark{position:absolute;top:-6px;left:-6px;width:22px;height:22px;border-radius:50%;background:#dc2626;display:grid;place-items:center;box-shadow:0 2px 0 #8f1717}
.hardmark .ico{width:14px;height:14px;color:#fff3c4}
.dopt{display:inline-flex;align-items:center;gap:6px}
.dopt .ico{width:18px;height:18px}
.dopt.on.d-easy{background:#16a34a;border-color:#16a34a;color:#fff}
.dopt.on.d-mid{background:#b7791f;border-color:#b7791f;color:#fff}
.dopt.on.d-hard{background:#dc2626;border-color:#dc2626;color:#fff}
.diffchoices .choice.d-easy .ico:first-child{color:#16a34a}
.diffchoices .choice.d-mid .ico:first-child{color:#b7791f}
.diffchoices .choice.d-hard .ico:first-child{color:#dc2626}
@media (max-width:420px){ .topbar .iconbtn{width:34px;height:34px} .topbar .iconbtn .ico{width:21px;height:21px} }

/* ===== מסע בעולם התורה – track chooser, effects, bonus ===== */
.tracks-h{display:flex;align-items:center;gap:8px;margin:18px 4px 10px;font-size:22px}
.tracks-h .ico{width:24px;height:24px}
.tracks{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px;margin-bottom:28px}
.trackcard{position:relative;display:flex;flex-direction:column;text-align:right;padding:0;border:0;border-radius:22px;overflow:hidden;cursor:pointer;background:#fffaf0;box-shadow:0 6px 18px rgba(80,40,0,.18),0 0 0 3px color-mix(in srgb,var(--tc) 55%,transparent);font:inherit;color:inherit;animation:tcIn .5s both;animation-delay:calc(var(--i)*60ms);transition:transform .18s ease, box-shadow .18s ease}
.trackcard:hover,.trackcard:focus-visible{transform:translateY(-3px) scale(1.01);box-shadow:0 12px 26px rgba(80,40,0,.25),0 0 0 4px var(--tc)}
.trackcard:active{transform:scale(.98)}
@keyframes tcIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.tc-art{position:relative;display:block;height:150px;background:var(--tc)}
.tc-art img{width:100%;height:100%;object-fit:cover;display:block;transition:transform 4s ease}
.trackcard:hover .tc-art img{transform:scale(1.06)}
.tc-shade{position:absolute;inset:0;background:linear-gradient(to top,rgba(30,15,0,.72),rgba(30,15,0,0) 60%)}
.tc-txt{position:relative;display:flex;flex-direction:column;gap:3px;padding:10px 14px 14px;margin-top:-46px}
.tc-name{font-size:28px;font-weight:900;color:#fff;text-shadow:0 2px 6px rgba(0,0,0,.6);line-height:1.1}
.tc-sub{font-size:15px;font-weight:700;color:var(--tc);margin-top:8px}
.tc-meta{font-size:14px;color:#6b4a2b}
.tc-prog{display:block;height:9px;border-radius:9px;background:rgba(120,80,20,.15);overflow:hidden;margin-top:6px}
.tc-prog i{display:block;height:100%;background:linear-gradient(90deg,#fbbf24,var(--tc));border-radius:9px}
.tc-stars{font-size:14px;font-weight:800;color:#8a5a00;display:flex;align-items:center;gap:4px}
.tc-stars .ico{width:16px;height:16px;color:#f59e0b}
.tc-last{position:absolute;top:10px;left:10px;background:#fff7d6;color:#7c4a00;font-weight:800;font-size:13px;padding:4px 10px;border-radius:999px;box-shadow:0 2px 8px rgba(0,0,0,.2)}
.trackback{display:inline-flex;align-items:center;gap:4px;border:0;background:rgba(255,255,255,.85);border-radius:999px;padding:6px 14px 6px 10px;font:inherit;font-weight:800;font-size:15px;color:#7c4a00;cursor:pointer;margin-bottom:6px;box-shadow:0 2px 6px rgba(0,0,0,.12);min-height:40px}
.trackback .ico{width:18px;height:18px;transform:scaleX(-1)}
.fxlayer{position:fixed;width:0;height:0;pointer-events:none;z-index:8000}
.fxspark{position:absolute;left:0;top:0;width:10px;height:10px;border-radius:50%;box-shadow:0 0 10px 2px rgba(255,200,60,.8)}
.fxspark.star{width:14px;height:14px;border-radius:2px;clip-path:polygon(50% 0,61% 38%,100% 50%,61% 62%,50% 100%,39% 62%,0 50%,39% 38%)}
.fxring{position:absolute;left:0;top:0;width:40px;height:40px;border-radius:50%;transform:translate(-50%,-50%);animation:fxRing .7s ease-out forwards}
.fxring.ok{border:4px solid rgba(250,204,21,.95);box-shadow:0 0 24px rgba(250,204,21,.8)}
.fxring.bad{border:4px solid rgba(220,38,38,.75);box-shadow:0 0 18px rgba(220,38,38,.5)}
@keyframes fxRing{from{opacity:1;width:30px;height:30px}to{opacity:0;width:260px;height:260px}}
#qcard.fxmiss{animation:fxMiss .45s ease}
@keyframes fxMiss{0%,100%{transform:none}20%{transform:translateX(-7px) rotate(-.6deg)}40%{transform:translateX(7px) rotate(.6deg)}60%{transform:translateX(-4px)}80%{transform:translateX(4px)}}
.bonuscall{margin:10px auto 4px;text-align:center}
.bonusbtn{background:linear-gradient(135deg,#7c3aed,#db2777 55%,#f59e0b);color:#fff;font-size:20px;padding:12px 26px;box-shadow:0 6px 20px rgba(219,39,119,.45);animation:bonusPulse 1.6s ease-in-out infinite}
.bonusbtn.used{animation:none;opacity:.55;filter:grayscale(.4)}
@keyframes bonusPulse{0%,100%{transform:scale(1);box-shadow:0 6px 20px rgba(219,39,119,.45)}50%{transform:scale(1.05);box-shadow:0 8px 30px rgba(245,158,11,.6)}}
.paytext{font-weight:700;margin:8px 0 4px}
.payee{background:#fff7d6;border-radius:12px;padding:8px 12px;margin:6px 0;font-size:16px}
.codefield{margin-top:12px}
.coderow{display:flex;gap:8px;align-items:stretch}
.coderow input{flex:1;font-size:20px;letter-spacing:2px;text-align:center;text-transform:uppercase}
.soon.bad{color:#b91c1c}
@media (prefers-reduced-motion: reduce){.trackcard,.bonusbtn{animation:none}}

.coderow input{min-width:0;width:auto}
.coderow .btn{flex:0 0 auto;min-width:0;width:auto;padding-inline:18px}
