/* zon-plus.css — styles for zon-plus.js (additive) */
.zp-pick{position:fixed;inset:0;z-index:9000;display:flex;align-items:center;justify-content:center;padding:16px;background:radial-gradient(circle at 30% 20%,#7fd3ff,#3d7bff 55%,#5b3fd6);overflow:auto}
.zp-pick-card{background:#fff;border-radius:28px;padding:22px 18px;max-width:760px;width:100%;box-shadow:0 18px 50px #0004;text-align:center;font-family:inherit;max-height:96vh;overflow:auto}
.zp-pick h2{margin:0 0 4px;font-size:30px;color:#2b2f6b}
.zp-lead{color:#5a5f8a;margin:4px 0 14px}.zp-lbl{margin:12px 0 6px;font-weight:700;color:#2b2f6b;text-align:right}
.zp-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px}
.zp-prof{border:0;border-radius:22px;padding:12px 8px;background:linear-gradient(160deg,#fff7d6,#ffe08a);box-shadow:0 5px 0 #e2b23a;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:4px;font:inherit;transition:transform .15s}
.zp-prof:hover,.zp-prof:focus-visible{transform:translateY(-3px)}.zp-prof:active{transform:translateY(2px);box-shadow:0 2px 0 #e2b23a}
.zp-prof img{width:86px;height:86px;object-fit:contain;animation:zpBob 2.2s ease-in-out infinite}
.zp-prof b{font-size:19px;color:#2b2f6b}.zp-prof small{color:#7a6a2a}
.zp-prof.cur{outline:4px solid #1fb985}
.zp-prof.add{background:linear-gradient(160deg,#e9f7ff,#b9e4ff);box-shadow:0 5px 0 #6fb6e6}.zp-prof.cls{background:linear-gradient(160deg,#f1ebff,#d6c8ff);box-shadow:0 5px 0 #9b86e6}
.zp-prof.who{background:linear-gradient(160deg,#eafff4,#b8f0d3);box-shadow:0 5px 0 #5cc493}
.zp-plus{font-size:44px;line-height:86px;height:86px;display:block}
.zp-in{font:inherit;font-size:20px;padding:10px 14px;border-radius:14px;border:3px solid #cfd6ff;width:min(320px,90%);text-align:center}
.zp-row{display:flex;gap:10px;justify-content:center;align-items:center;flex-wrap:wrap;margin-top:12px}
.zp-btn{font:inherit;font-size:19px;font-weight:800;border:0;border-radius:18px;padding:12px 24px;background:#1fb985;color:#fff;box-shadow:0 5px 0 #138a62;cursor:pointer}
.zp-btn2{font:inherit;font-size:16px;border:0;border-radius:14px;padding:10px 18px;background:#eef1ff;color:#2b2f6b;cursor:pointer}
.zp-x{margin-top:14px;font:inherit;border:0;background:none;color:#3d6bff;text-decoration:underline;cursor:pointer}
.zp-err{color:#d9483a;min-height:1em;margin:6px 0 0}
.zp-grades,.zp-heroes{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.zp-g{font:inherit;border:2px solid #cfd6ff;background:#fff;border-radius:12px;padding:6px 12px;cursor:pointer}
.zp-g.on{background:#3d6bff;color:#fff;border-color:#3d6bff}
.zp-h{border:3px solid transparent;background:#f6f7ff;border-radius:16px;padding:4px;cursor:pointer;display:flex;flex-direction:column;align-items:center;font:inherit;width:78px}
.zp-h img{width:62px;height:62px;object-fit:contain}.zp-h small{font-size:12px}
.zp-h.on{border-color:#ff8a3d;background:#fff1e4}
.zp-switch{position:fixed;left:12px;bottom:12px;z-index:800;display:flex;align-items:center;gap:6px;border:0;border-radius:999px;padding:5px 14px 5px 6px;background:#fff;box-shadow:0 4px 14px #0003;font:inherit;font-weight:700;color:#2b2f6b;cursor:pointer}
.zp-switch img{width:34px;height:34px;object-fit:contain}
/* games journey path */
.zp-path{margin:14px 0;padding:16px;border-radius:26px;background:linear-gradient(180deg,#bff0ff,#e9fbd9);box-shadow:inset 0 0 0 4px #ffffffaa}
.zp-path-head{display:flex;justify-content:space-between;align-items:center;gap:8px}
.zp-path-head h2{margin:0;color:#1b4c6b}.zp-path-stars{background:#fff;border-radius:999px;padding:4px 12px;font-weight:800;color:#a86500}
.zp-road{position:relative;display:flex;flex-direction:column;gap:18px;padding:14px 4px 4px}
.zp-road:before{content:"";position:absolute;top:30px;bottom:30px;right:50%;width:0;border-right:8px dashed #f2c45a;transform:translateX(50%)}
.zp-st{position:relative;display:flex;align-items:center;gap:12px;width:min(78%,420px);padding:10px 14px;border-radius:22px;background:#fff;box-shadow:0 5px 0 #0001,0 6px 16px #0002;text-decoration:none;color:#2b2f6b;z-index:1}
.zp-st.l{align-self:flex-start}.zp-st.r{align-self:flex-end}
.zp-disc{flex:0 0 auto;width:62px;height:62px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:32px;background:linear-gradient(160deg,#ffe08a,#ffb340);box-shadow:0 4px 0 #d98a16}
.zp-info{display:flex;flex-direction:column;gap:2px}.zp-info b{font-size:18px}.zp-info small{color:#6b7090}
.zp-stars{font-size:20px;letter-spacing:2px}.zp-go{color:#fff;background:#1fb985;border-radius:999px;padding:2px 12px;font-weight:800;align-self:flex-start}
.zp-lockt{color:#8a8fa8;font-size:13px}
.zp-st.open{outline:4px solid #1fb985;animation:zpPulse 1.6s ease-in-out infinite}
.zp-st.done .zp-disc{background:linear-gradient(160deg,#b8f0d3,#1fb985);box-shadow:0 4px 0 #138a62}
.zp-st.locked,.zp-st.locked-t{filter:grayscale(.85);opacity:.75}.zp-st.soon{opacity:.6;border:3px dashed #c9cde6;box-shadow:none}
.zp-st.soon .zp-disc{background:#eef0fa;box-shadow:none;filter:grayscale(1)}
.zp-me{position:absolute;top:-34px;left:-10px;width:70px;height:70px;object-fit:contain;animation:zpWalk .5s ease-in-out infinite alternate;filter:drop-shadow(0 4px 4px #0003)}
.zp-st.r .zp-me{left:auto;right:-10px}
/* lesson: framed scene */
#teachArea.zp-frame{position:relative;border-radius:28px;padding:14px;border:6px solid transparent;background:linear-gradient(#fffdf6,#fffdf6) padding-box,linear-gradient(135deg,#ff5d8f,#ffd23f,#4fc3ff,#1fb985) border-box;box-shadow:0 10px 30px #0002}
#teachArea.zp-frame[data-zp-sub=sc]{background:linear-gradient(180deg,#eafff2,#f4fffb) padding-box,linear-gradient(135deg,#1fb985,#7fe0ff,#ffd23f) border-box}
#teachArea.zp-frame[data-zp-sub=ma]{background:linear-gradient(180deg,#fff4ea,#fffaf4) padding-box,linear-gradient(135deg,#ff8a3d,#ffd23f,#7b5cff) border-box}
#teachArea.zp-frame[data-zp-sub=ar]{background:linear-gradient(180deg,#fff0f5,#fff9fb) padding-box,linear-gradient(135deg,#ff5d8f,#ffb3d1,#ffd23f) border-box}
#teachArea.zp-frame[data-zp-sub=en],#teachArea.zp-frame[data-zp-sub=ph],#teachArea.zp-frame[data-zp-sub=es]{background:linear-gradient(180deg,#eef4ff,#f8fbff) padding-box,linear-gradient(135deg,#3d6bff,#4fc3ff,#ff5d8f) border-box}
#teachArea.zp-frame[data-zp-sub=isl]{background:linear-gradient(180deg,#effaf3,#fbfffc) padding-box,linear-gradient(135deg,#12936a,#d9b45a,#12936a) border-box}
#teachArea.zp-frame[data-zp-sub=art],#teachArea.zp-frame[data-zp-sub=st]{background:linear-gradient(180deg,#f7f0ff,#fdfaff) padding-box,linear-gradient(135deg,#7b5cff,#ff5d8f,#ffd23f,#1fb985) border-box}
#teachArea.zp-frame .tc-stage{border-radius:20px;box-shadow:inset 0 0 0 5px #ffffffcc,0 6px 0 #0001}
.zp-deco{position:absolute;inset:0;pointer-events:none;overflow:hidden;border-radius:22px}
.zp-deco span{position:absolute;font-size:30px;opacity:.28;animation:zpFloat 5s ease-in-out infinite}
.zp-deco span:nth-child(1){top:6px;left:10px}.zp-deco span:nth-child(2){top:44%;left:4px;animation-delay:1s}.zp-deco span:nth-child(3){bottom:8px;left:18%;animation-delay:2s}.zp-deco span:nth-child(4){top:8px;left:42%;animation-delay:3s}
#teachArea.zp-frame>*:not(.zp-deco){position:relative}
.zp-prog{margin:8px 0 10px}
.zp-track{position:relative;height:16px;border-radius:999px;background:#e8ebf7;margin:30px 26px 6px 30px;box-shadow:inset 0 2px 3px #0002}
.zp-track i{position:absolute;top:0;bottom:0;right:0;border-radius:999px;background:linear-gradient(90deg,#1fb985,#ffd23f);transition:width .9s ease}
.zp-track b{position:absolute;top:50%;width:12px;height:12px;margin:-6px -6px 0 0;border-radius:50%;background:#fff;box-shadow:0 0 0 3px #c9cde6}
.zp-track b.done{box-shadow:0 0 0 3px #1fb985;background:#1fb985}.zp-track b.on{box-shadow:0 0 0 3px #ff8a3d}
.zp-flag{position:absolute;left:-26px;top:-12px;font-size:24px}
.zp-walker{position:absolute;bottom:4px;width:46px;height:46px;object-fit:contain;transition:right .9s ease;filter:drop-shadow(0 3px 3px #0003)}
.zp-walker.walk{animation:zpWalk .22s ease-in-out infinite alternate}
#fig2.zp-point{animation:zpPoint 1.3s ease}#fig2.zp-cheer{animation:zpCheer 1.2s ease}#fig2.zp-nod{animation:zpNod .9s ease}
#fig2.zp-point:after{content:"👉";position:absolute;top:30%;left:-10px;font-size:36px;transform:scaleX(-1);animation:zpFade 1.3s ease forwards}
#fig2.zp-cheer:after{content:"🎉";position:absolute;top:-6px;left:40%;font-size:38px;animation:zpFade 1.2s ease forwards}
.zp-toast{position:fixed;left:50%;bottom:22px;transform:translateX(-50%);z-index:9500;padding:12px 22px;border-radius:999px;font-weight:800;font-size:19px;box-shadow:0 8px 24px #0003;animation:zpPop .3s ease}
.zp-toast.ok{background:#1fb985;color:#fff}.zp-toast.try{background:#fff4d6;color:#8a5a00}.zp-toast.out{opacity:0;transition:opacity .4s}
.zp-confetti{position:fixed;inset:0;pointer-events:none;z-index:9600;overflow:hidden}
.zp-confetti i{position:absolute;top:-20px;width:10px;height:16px;border-radius:3px;animation:zpFall 2.2s ease-in forwards}
.zp-confetti i.st{width:auto;height:auto;font-size:22px;font-style:normal}
/* intro */
.zp-intro{position:fixed;inset:0;z-index:9200;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:16px;overflow:hidden;background:radial-gradient(circle at 50% 30%,#fff3c4,#ffb86b 60%,#ff7a59);transition:opacity .35s}
.zp-intro.th-sc{background:radial-gradient(circle at 50% 30%,#e3fff1,#6fe0b0 55%,#1f9fd1)}.zp-intro.th-ma{background:radial-gradient(circle at 50% 30%,#fff4dc,#ffc16b 55%,#ff7a3d)}
.zp-intro.th-ar{background:radial-gradient(circle at 50% 30%,#fff0f6,#ff9fc2 55%,#c2367a)}.zp-intro.th-en,.zp-intro.th-ph,.zp-intro.th-es{background:radial-gradient(circle at 50% 30%,#eef5ff,#7fb3ff 55%,#3d4bd6)}
.zp-intro.th-isl{background:radial-gradient(circle at 50% 30%,#f2fff6,#7fd6a8 55%,#0f7a57)}.zp-intro.th-art,.zp-intro.th-st,.zp-intro.th-lif{background:radial-gradient(circle at 50% 30%,#f7efff,#c4a8ff 55%,#7b5cff)}
.zp-intro.out,.zp-victory.out{opacity:0}
.zp-sky span{position:absolute;bottom:-60px;font-size:42px;opacity:.55;animation:zpRise 7s linear infinite}
.zp-istage{position:relative;display:flex;align-items:flex-end;gap:12px;width:min(720px,100%);min-height:300px;justify-content:center}
.zp-ihero{width:min(46vw,260px);height:auto;filter:drop-shadow(0 12px 14px #0004);animation:zpEnter 1.1s cubic-bezier(.3,1.4,.5,1) both}
.zp-ihero.walk{animation:zpEnter 1.1s cubic-bezier(.3,1.4,.5,1) both,zpWalk .2s ease-in-out 5 alternate}
.zp-ihero.talk{animation:zpTalk .5s ease-in-out infinite alternate}.zp-ihero.cheer{animation:zpCheer 1s ease 2}
.zp-ibub{align-self:flex-start;max-width:340px;background:#fff;border-radius:24px 24px 24px 6px;padding:14px 18px;box-shadow:0 10px 24px #0003;transform:scale(0);transform-origin:bottom left;transition:transform .35s cubic-bezier(.3,1.5,.5,1)}
.zp-ibub.on{transform:scale(1)}.zp-ibub b{color:#ff7a3d}.zp-ibub p{margin:6px 0 0;font-size:21px;line-height:1.6;color:#2b2f6b;min-height:2em}
.zp-ititle{margin-top:14px;background:#ffffffd9;border-radius:999px;padding:6px 20px;font-weight:800;color:#2b2f6b;font-size:20px}
.zp-btn.pulse{animation:zpPulse 1.2s ease-in-out infinite}
/* victory */
.zp-victory{position:fixed;inset:0;z-index:9300;display:flex;align-items:center;justify-content:center;padding:16px;background:#1b1f4dcc;animation:zpPop .35s ease}
.zp-vcard{background:radial-gradient(circle at 50% 0,#fff8d9,#fff 60%);border-radius:30px;padding:24px 22px;text-align:center;max-width:420px;width:100%;box-shadow:0 0 0 6px #ffd23f,0 20px 60px #0006}
.zp-vhero{width:150px;height:150px;object-fit:contain;margin-top:-80px;animation:zpCheer 1s ease 3;filter:drop-shadow(0 10px 10px #0003)}
.zp-vcard h2{margin:6px 0;color:#2b2f6b;font-size:30px}.zp-vcard p{color:#5a5f8a;margin:0 0 8px}.zp-vcard small{display:block;color:#7a7f9a;margin:6px 0 14px}
.zp-vstars{display:flex;justify-content:center;gap:8px;font-size:52px}
.zp-vstars span{filter:grayscale(1) opacity(.35);transform:scale(.2);animation:zpStar .5s cubic-bezier(.3,1.6,.5,1) forwards}
.zp-vstars span.on{filter:none}
/* teacher card */
.zp-tcard{margin-top:18px}.zp-tblwrap{overflow:auto}
.zp-tbl{border-collapse:collapse;width:100%;min-width:560px;font-size:14px}
.zp-tbl th,.zp-tbl td{border-bottom:1px solid #e3e6f3;padding:8px 6px;text-align:right;white-space:nowrap}
.zp-tbl th{background:#f3f5ff}.zp-tav{width:28px;height:28px;object-fit:contain;vertical-align:middle;margin-left:6px}
.zp-locks{display:grid;gap:8px}.zp-lock{display:flex;justify-content:space-between;align-items:center;gap:8px;background:#f7f8ff;border-radius:12px;padding:8px 12px}
.zp-lock select{font:inherit;padding:4px 8px;border-radius:10px}
@keyframes zpBob{50%{transform:translateY(-5px)}}
@keyframes zpWalk{from{transform:translateY(0) rotate(-5deg)}to{transform:translateY(-6px) rotate(5deg)}}
@keyframes zpPulse{50%{transform:scale(1.03)}}
@keyframes zpFloat{50%{transform:translateY(-8px) rotate(8deg)}}
@keyframes zpPoint{30%{transform:translateX(-14px) rotate(-6deg)}70%{transform:translateX(-10px) rotate(-4deg)}}
@keyframes zpCheer{25%{transform:translateY(-22px) scale(1.06)}50%{transform:translateY(0)}75%{transform:translateY(-12px)}}
@keyframes zpNod{30%{transform:rotate(-4deg) translateY(3px)}60%{transform:rotate(3deg)}}
@keyframes zpFade{0%{opacity:0}20%{opacity:1}80%{opacity:1}100%{opacity:0}}
@keyframes zpPop{from{transform:translateX(-50%) scale(.6);opacity:0}}
.zp-victory{animation-name:zpPopV}@keyframes zpPopV{from{opacity:0}}
@keyframes zpFall{to{transform:translateY(110vh) rotate(720deg)}}
@keyframes zpRise{to{transform:translateY(-120vh) rotate(40deg)}}
@keyframes zpEnter{from{transform:translateX(-70vw) rotate(-8deg)}to{transform:none}}
@keyframes zpTalk{from{transform:translateY(0) scale(1)}to{transform:translateY(-4px) scale(1.02)}}
@keyframes zpStar{to{transform:scale(1)}}
@media (prefers-reduced-motion:reduce){.zp-intro *,.zp-victory *,.zp-confetti,.zp-walker,.zp-me,.zp-prof img{animation:none!important}}
@media (max-width:560px){.zp-istage{flex-direction:column;align-items:center}.zp-ibub{align-self:center}.zp-st{width:88%}.zp-disc{width:52px;height:52px;font-size:26px}}
.zp-ibub.teacher b{color:#c2367a}
.zp-aw{position:fixed;top:6px;left:50%;transform:translateX(-50%);z-index:60;display:flex;align-items:center;gap:6px;background:#fff;border:2px solid #f6c33d;border-radius:999px;padding:4px 12px 4px 4px;box-shadow:0 4px 14px rgba(0,0,0,.15);font-weight:700;font-size:14px;line-height:1.2;font-family:inherit;color:#174a8b;direction:rtl;pointer-events:none;animation:zpAwIn .5s ease-out}
.zp-aw img{width:28px;height:28px;border-radius:50%;object-fit:cover}
.zp-aw span{padding:0 4px}
@keyframes zpAwIn{from{transform:translate(-50%,-20px);opacity:0}to{transform:translateX(-50%);opacity:1}}
.zp-h3back{position:fixed;bottom:calc(12px + env(safe-area-inset-bottom,0px));right:12px;z-index:55;background:#ffd34d;color:#3a2a00;font-weight:800;text-decoration:none;border-radius:999px;padding:8px 14px;box-shadow:0 4px 14px rgba(0,0,0,.2);font-family:inherit}
