@font-face{font-family:Naskh;font-weight:700;font-display:swap;src:url(fonts/nk700.woff2) format('woff2')}
@font-face{font-family:Kufi;font-weight:600;font-display:swap;src:url(fonts/kf600.woff2) format('woff2')}
@font-face{font-family:Kufi;font-weight:800;font-display:swap;src:url(fonts/kf800.woff2) format('woff2')}
*{box-sizing:border-box;margin:0;-webkit-tap-highlight-color:transparent}
html,body{height:100%;overflow:hidden;font-family:Kufi,sans-serif;user-select:none;-webkit-user-select:none;background:linear-gradient(#e9ecf1,#c9ced8);touch-action:pinch-zoom}
#stage{position:absolute;inset:0 0 56px 0;display:flex;align-items:center;justify-content:center;perspective:2200px}
#wrap{position:relative}
#book{position:absolute;inset:0;transform-style:preserve-3d;box-shadow:0 14px 34px #0004;--ab:44%;--fs:4.4cqw}
#book.rA,.snapbook.rA{--ab:44%;--fs:4.3cqw}#book.rA2,.snapbook.rA2{--ab:47%;--fs:4.5cqw}#book.rB,.snapbook.rB{--ab:48%;--fs:4.75cqw}#book.rC,.snapbook.rC{--ab:52%;--fs:5.2cqw}
.base{position:absolute;inset:0;background:#fffaf0;display:none;overflow:hidden}
.base::after{content:"";position:absolute;top:0;bottom:0;right:0;width:4%;background:linear-gradient(270deg,#0002,#0000);pointer-events:none}
.snapbook{position:absolute;left:0;top:0;overflow:hidden}.shot{position:absolute;inset:0;display:none}
.page{container-type:inline-size;position:absolute;inset:0;display:flex;flex-direction:column;padding:3.5cqw 4.5cqw 3.5cqw;gap:2.5cqw;background:#fffaf0}
.art{flex:0 0 var(--ab);min-height:0;container-type:size;display:flex;justify-content:center;align-items:center}
.stg{position:relative;width:min(100cqw,calc(100cqh*var(--ar)));aspect-ratio:var(--ar);border-radius:4cqw;overflow:hidden;box-shadow:0 .6cqw 3cqw #0003;background:#cfe3f5}
.stg img{position:absolute;inset:0;width:100%;height:100%;display:block}
.fx{position:absolute;inset:0;overflow:hidden;pointer-events:none}.fx i{position:absolute;bottom:-12%;font-style:normal;color:#ff5fa2;font-size:7cqw;opacity:0}
.txt{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center;gap:.4cqw;background:#fff;border-radius:4.5cqw;box-shadow:0 .6cqw 3cqw #00000022;padding:2.5cqw 3.5cqw;overflow:hidden;text-align:center}
.pp{font-size:var(--fs);font-weight:700;line-height:1.7;color:#1f2a44}
.pp.bp,.pp.bb{border-radius:4.5cqw;padding:.4cqw 3cqw;margin:.5cqw 0}.bp{background:#f9c9d9}.bb{background:#cbddf7}.pp.s{align-self:center;padding:.2cqw 4cqw}
.r{color:#e02323}.b{color:#1f4fc2}
.u{border-radius:.3em;transition:background .25s;-webkit-box-decoration-break:clone;box-decoration-break:clone;padding:.05em 0}.u.hl{background:#ffe9a8}
.toc{background:linear-gradient(#fff6e0,#fffaf0);align-items:stretch;padding-top:14cqw}.toc h2{text-align:center;font-size:9cqw;color:#e0558f;font-weight:800;margin:1cqw 0 0}
.rows{display:flex;flex-direction:column;gap:2.4cqw;flex:1;justify-content:center}
.tr{display:flex;align-items:center;gap:3.5cqw;background:#fff;border:2px solid #cfe3fa;border-radius:4cqw;padding:2.4cqw 4cqw;min-height:44px;font-size:5.2cqw;font-weight:700;color:#1f2a44;cursor:pointer}
.tr b{flex:0 0 9.5cqw;width:9.5cqw;height:9.5cqw;border-radius:50%;background:#1f4e8c;color:#fff;display:flex;align-items:center;justify-content:center;font-size:5.2cqw}.tr span{flex:1}
.tr.vd b{background:#e0558f;font-size:4cqw}.hint{text-align:center;font-size:3.6cqw;color:#7a869e;padding:1cqw 0}
.cvr{position:absolute;inset:0;overflow:hidden;background:#0a9}.cbg{position:absolute;left:-5%;top:-5%;width:110%;height:110%;object-fit:cover;filter:blur(16px)}.cfg{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.endbg{position:absolute;inset:0;background:#c3e6ff;display:flex;align-items:center;justify-content:center;container-type:size}
.endbox{position:relative;width:min(100cqw,calc(100cqh/1.413));aspect-ratio:1/1.413}.endbox>img{position:absolute;inset:0;width:100%;height:100%}
.endc{position:absolute;inset:10% 11%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3.2cqw;text-align:center}
.endc h3{font-size:9cqw;color:#e0558f;font-weight:800}
.vbox{width:100%;aspect-ratio:16/9;border-radius:3cqw;overflow:hidden;background:#000;position:relative;box-shadow:0 1cqw 4cqw #0005}
.vbox iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.vcard{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:3cqw;background:#e0261f;color:#fff;text-decoration:none;font:800 6cqw Kufi;text-align:right;padding:0 3cqw}
.vcard .play{width:14cqw;height:14cqw;border-radius:50%;background:#fff;color:#e0261f;display:flex;align-items:center;justify-content:center;font-size:7cqw}.vcard small{display:block;font:500 3.8cqw Kufi;opacity:.92}
.yt{font-size:4.2cqw;font-weight:700;color:#1f4e8c;min-height:44px;display:flex;align-items:center;text-decoration:underline}
.elinks{display:flex;gap:3cqw}.eb{background:#1f4e8c;color:#fff;border-radius:6cqw;padding:2.5cqw 5cqw;font:800 5.2cqw Kufi;min-height:44px;display:flex;align-items:center;cursor:pointer}
.cur .fx i{animation:fl 5s linear infinite}.cur .fx i:nth-child(1){left:15%}.cur .fx i:nth-child(2){left:48%;color:#ffd84a;animation-delay:1.6s}.cur .fx i:nth-child(3){left:78%;animation-delay:3.2s}.cur .fx i:nth-child(4){left:62%;color:#7fd1ff;animation-delay:2.4s}
@keyframes fl{0%{transform:translateY(0);opacity:0}15%{opacity:.95}100%{transform:translateY(-230%) rotate(25deg);opacity:0}}
.cur .rg.sway{animation:sway 3.2s ease-in-out infinite}.cur .rg.nod{animation:nod 2.4s ease-in-out infinite}.cur .rg.hop{animation:hop 1.4s ease-in-out infinite}
.cur .rg.shake{animation:shake .45s linear infinite}.cur .rg.shake2{animation:shake .55s linear infinite reverse}.cur .rg.breath{animation:breath 3.6s ease-in-out infinite}
.cur .rg.wag{animation:wag 1.1s ease-in-out infinite}.cur .rg.bow{animation:bow 3s ease-in-out infinite}.cur .rg.jump{animation:jump 1.1s cubic-bezier(.3,0,.4,1) infinite}
@keyframes sway{50%{transform:rotate(1.6deg) translateX(.8%)}}@keyframes nod{50%{transform:translateY(1.4%) rotate(-.8deg)}}@keyframes hop{40%{transform:translateY(-3.2%)}70%{transform:translateY(0)}}
@keyframes shake{25%{transform:translate(.5%,-.6%) rotate(.6deg)}75%{transform:translate(-.5%,.4%) rotate(-.6deg)}}@keyframes breath{50%{transform:scale(1.025) translateY(-.6%)}}
@keyframes wag{25%{transform:rotate(2deg)}75%{transform:rotate(-2deg)}}@keyframes bow{50%{transform:translateY(1.8%) rotate(1.2deg)}}@keyframes jump{35%{transform:translateY(-5%) scale(1.01)}60%{transform:translateY(0)}}
#strips{position:absolute;inset:0;transform-style:preserve-3d;pointer-events:none}
.st{position:absolute;top:0;transform-style:preserve-3d;transform-origin:right center}
.sf,.sb{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;overflow:hidden;background-repeat:no-repeat}
.sb{transform:rotateY(180deg);background-color:#f1e7d0;background-image:repeating-linear-gradient(0deg,#0000 0 3px,#0000000a 3px 4px)}
.sh{position:absolute;inset:0;background:#000;opacity:0}
#ctl{position:absolute;top:1.5%;left:2%;display:flex;gap:6px;z-index:50;direction:ltr}
#ctl button{width:42px;height:42px;border-radius:50%;border:0;background:#ffffffe0;color:#1f2a44;font-size:20px;box-shadow:0 2px 8px #0005;cursor:pointer;font-family:Kufi,sans-serif}
#bar{position:absolute;left:0;right:0;bottom:0;height:56px;background:#2b2f3a;display:flex;align-items:center;justify-content:center;gap:2px;direction:rtl}
#bar .nv{min-width:62px;height:44px;border-radius:22px;border:0;background:#e0558f;color:#fff;font:800 16px Kufi,sans-serif;cursor:pointer;padding:0 10px}#bar .nv:disabled{opacity:.35}
#bar nav{display:flex}#bar nav a{width:44px;height:44px;display:flex;align-items:center;justify-content:center;color:#fff;font:800 19px Kufi,sans-serif;border-radius:50%;cursor:pointer}#bar nav a.on{background:#e0558f}
#start{position:absolute;inset:0;z-index:100;display:flex;align-items:flex-end;justify-content:center;padding-bottom:12%;background:linear-gradient(#0000 50%,#000b)}
#start button{border:0;background:#e0558f;color:#fff;font:800 26px Kufi,sans-serif;border-radius:40px;padding:16px 44px;box-shadow:0 6px 22px #0007;cursor:pointer;animation:pu 1.6s infinite}
@keyframes pu{50%{transform:scale(1.07)}}
#snd{position:absolute;bottom:68px;left:50%;transform:translateX(-50%);z-index:99;border:0;background:#e0558f;color:#fff;font:800 16px Kufi;border-radius:22px;padding:8px 20px;display:none;box-shadow:0 3px 10px #0008}

/* ===== v5 : أنا زعلان - watercolor look ===== */
html,body{background:linear-gradient(#f7e8cf,#e9d4b0);font-family:Kufi,sans-serif}
#book.rA,.snapbook.rA{--fs:4.5cqw}#book.rA2,.snapbook.rA2{--fs:4.7cqw}#book.rB,.snapbook.rB{--fs:5cqw}#book.rC,.snapbook.rC{--fs:5.5cqw}
.base{background:#fbf1de}
.page{padding:0;gap:0;background:#fbf1de;display:flex;flex-direction:column}
.art{position:relative;flex:0 1 133.33cqw;min-height:70cqw;overflow:hidden;container-type:normal;display:block}
.art img.bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 25%;transform-origin:50% 30%}
.cur .art img.bg{animation:kb 16s ease-in-out infinite alternate}@keyframes kb{from{transform:scale(1)}to{transform:scale(1.06) translateY(-1%)}}
.fx i{font-size:5.5cqw;color:#ffd77a;text-shadow:0 0 2cqw #ffb347}.cur .fx i:nth-child(2),.cur .fx i:nth-child(4){color:#ffb1a0}
.txt{position:relative;z-index:2;flex:1 0 auto;margin-top:-7cqw;background:#fbf1de;border-radius:50% 50% 0 0/8cqw 8cqw 0 0;border-top:1.3cqw solid #f2a93b;box-shadow:0 -1cqw 4cqw #0003;padding:9cqw 6cqw 4cqw;display:flex;flex-direction:column;justify-content:center;gap:1cqw;text-align:center}
.pp{font-family:Naskh,serif;font-size:var(--fs);line-height:1.75;font-weight:700;color:#3a2e2a}
.pp.q{color:#1f6f6b}.pp.lesson{background:#fde7b0;border-radius:4cqw;padding:1cqw 3cqw;color:#7a3e12}
.y{color:#e2563a}.m{color:#1f7a78}.h{color:#a8680f}
.u.hl{background:#ffe2a0}.pp.lesson .u.hl{background:#ffd16a}
.toc{background:linear-gradient(#ffe7bd,#fbf1de);padding:14cqw 5cqw 3cqw;display:flex;flex-direction:column}
.toc h2{font-family:Kufi;font-weight:800;color:#e2563a;font-size:9.5cqw;text-align:center;margin:0 0 2cqw}
.rows{flex:1;display:flex;flex-direction:column;justify-content:center;gap:2.6cqw}
.tr{display:flex;align-items:center;gap:3cqw;background:#fffaf0;border:0;border-radius:4cqw;padding:1.6cqw 3cqw 1.6cqw 4cqw;min-height:44px;box-shadow:0 .8cqw 2.4cqw #8a5a1c33;font-family:Kufi;font-weight:600;font-size:4.8cqw;color:#3a2e2a;cursor:pointer}
.tr img{width:13cqw;height:13cqw;border-radius:3cqw;object-fit:cover;flex:none}.tr span{flex:1}
.tr b{flex:0 0 9cqw;width:9cqw;height:9cqw;border-radius:50%;background:#1f7a78;color:#fff;display:flex;align-items:center;justify-content:center;font-size:5cqw;order:-1}
.tr:nth-child(2n) b{background:#e2563a}.tr:nth-child(3n) b{background:#e0a02b}
.hint{text-align:center;font-size:3.4cqw;color:#8a7a62;padding:1cqw 0}
.cvp{background:#fbf1de;display:flex;flex-direction:column}.cart{position:relative;flex:0 1 133.33cqw;min-height:85cqw;overflow:hidden}.cart img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 25%}
.cband{position:relative;z-index:2;flex:1 0 auto;margin-top:-7cqw;background:#fbf1de;border-radius:50% 50% 0 0/8cqw 8cqw 0 0;border-top:1.3cqw solid #f2a93b;box-shadow:0 -1cqw 4cqw #0003;display:flex;align-items:center;justify-content:center;padding:9cqw 0 26cqw}
.ttl{font-family:Kufi;font-weight:800;font-size:15cqw;line-height:1.2;color:#e2563a;text-shadow:0 .7cqw 0 #f2a93b,0 1.2cqw 2cqw #0002}
.endp{background:#fbf1de;display:block}.eimg{position:absolute;left:0;right:0;top:0;height:46%;overflow:hidden}.eimg img{width:100%;height:100%;object-fit:cover;object-position:50% 40%;filter:saturate(1.05)}
.ecard{position:absolute;left:0;right:0;bottom:0;top:calc(46% - 7cqw);background:#fbf1de;border-radius:50% 50% 0 0/8cqw 8cqw 0 0;border-top:1.3cqw solid #f2a93b;box-shadow:0 -1cqw 4cqw #0003;padding:9cqw 6cqw 4cqw;display:flex;flex-direction:column;align-items:center;justify-content:space-evenly}
.ecard h3{font-family:Kufi;font-weight:800;font-size:8cqw;color:#e2563a}
.steps{display:flex;gap:3cqw;width:100%;justify-content:center}.steps div{flex:1;background:#fffaf0;border-radius:4cqw;box-shadow:0 .8cqw 2.4cqw #8a5a1c33;padding:2.4cqw 1cqw;text-align:center;font-family:Naskh;font-weight:700;font-size:4.2cqw;color:#1f6f6b;line-height:1.4}.steps i{display:flex;align-items:center;justify-content:center;width:10cqw;height:10cqw;margin:0 auto 1.5cqw;border-radius:50%;background:#e2563a;color:#fff;font-style:normal;font-family:Kufi;font-weight:800;font-size:6cqw}
.elinks{display:flex;gap:3cqw}.eb{background:#1f7a78;color:#fff;border-radius:6cqw;padding:2.5cqw 5cqw;font:800 5cqw Kufi;min-height:44px;display:flex;align-items:center;cursor:pointer}.eb:nth-child(2){background:#e2563a}
#bar{background:#1f4d4a}#bar .nv,#bar nav a.on{background:#e2563a}#start{background:none;padding-bottom:5%}#start button{background:#e2563a}
