:root{--primary:#8853e3;--accent:#f6ca6b;--ink:#1d1745;--bg:#140d33;--glass:rgba(255,255,255,.14);--stroke:rgba(255,255,255,.24);--muted:#dfd6ff;--panel:#fffdfd;--radius:27px;--shadow:0 20px 60px rgba(12,7,47,.3)}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:#130d31;color:white;font-family:ui-rounded,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}body{overflow-x:hidden}button,input{font:inherit}button{cursor:pointer;touch-action:manipulation}button:focus-visible,input:focus-visible{outline:4px solid #fff37d;outline-offset:3px}button:disabled{opacity:.5;cursor:not-allowed}.hidden{display:none!important}
#app{min-height:100dvh;position:relative;isolation:isolate;background:radial-gradient(circle at 10% 5%,#ffffff14,transparent 30%),linear-gradient(135deg,var(--bg),#1b164a)}#app:before{content:"";position:fixed;inset:0;background:var(--world) center/cover no-repeat;opacity:.45;z-index:-2;pointer-events:none}#app:after{content:"";position:fixed;inset:0;background:linear-gradient(115deg,var(--bg) 0%,#170b39c9 52%,#110d2dbb);z-index:-1;pointer-events:none}
.shell{width:min(1170px,calc(100% - 36px));margin:auto;padding-bottom:48px;min-height:100dvh}.topbar{height:83px;display:flex;justify-content:space-between;align-items:center;gap:12px}.brand,.rightbar{display:flex;align-items:center;gap:11px}.brand-mark{display:grid;place-items:center;width:41px;height:41px;border:2px solid #ffffff88;border-radius:14px;background:#ffffff2c;box-shadow:0 8px 28px #0002}.brand-name{font-weight:1000;letter-spacing:.3px;font-size:15px}.brand-sub{font-size:10px;color:#c4bde9;letter-spacing:1.6px;text-transform:uppercase}.icon-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:43px;height:43px;border-radius:14px;border:1px solid var(--stroke);background:#ffffff17;color:white;font-size:19px;transition:transform .15s,background .15s}.icon-btn:hover{background:#ffffff30;transform:translateY(-2px)}.eyebrow{text-transform:uppercase;font-size:12px;font-weight:900;letter-spacing:2.5px;color:var(--accent)}
.hero{display:grid;grid-template-columns:1.1fr 1fr;min-height:620px;gap:18px;align-items:center;padding:28px 0 34px}.hero-copy{z-index:2}.hero-title{font-size:clamp(54px,8.3vw,108px);line-height:.94;margin:15px 0 22px;letter-spacing:-5px;font-weight:1000;color:#fff;text-shadow:0 8px 0 #27114f,0 15px 44px #09051fc0}.hero-title span{color:var(--accent)}.hero-desc{max-width:460px;line-height:1.7;font-weight:600;font-size:18px;color:#ebe8ff}.hero-buttons{display:flex;flex-wrap:wrap;gap:14px;margin:34px 0}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:0;border-radius:18px;font-weight:950;padding:17px 24px;min-height:54px;box-shadow:0 8px 0 #0d0e3c88,0 17px 35px #05031944;transition:transform .16s,box-shadow .16s,filter .16s;color:white;background:linear-gradient(180deg,#ad7fff,var(--primary));text-shadow:0 1px 1px #0003}.btn:hover{transform:translateY(-3px);filter:brightness(1.08)}.btn:active{transform:translateY(4px);box-shadow:0 3px 0 #0d0e3c88,0 6px 14px #0003}.btn.gold{background:linear-gradient(180deg,#ffe99c,#f7bb3b);color:#3e2354;text-shadow:none}.btn.light{color:var(--ink);background:linear-gradient(180deg,#fff,#e7e4ff);text-shadow:none}.btn.ghost{background:#ffffff24;border:1px solid #ffffff65;box-shadow:none}.mini-tags{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}.tag{border-radius:30px;background:#ffffff1f;border:1px solid #ffffff2c;padding:10px 13px;font-weight:800;font-size:13px;color:white;backdrop-filter:blur(6px)}.hero-art{position:relative;height:580px;display:grid;place-items:center}.hero-art:before{content:"";position:absolute;width:min(90%,520px);aspect-ratio:1;border-radius:45%;background:radial-gradient(circle,#ffffff39,#ffffff09 60%,transparent 70%);box-shadow:0 0 120px var(--primary);filter:blur(2px)}.mascot{position:relative;width:min(100%,530px);max-height:580px;object-fit:contain;filter:drop-shadow(0 26px 25px #0007);animation:floaty 4s ease-in-out infinite;will-change:transform}.orbit{position:absolute;border-radius:50%;width:67px;height:67px;display:grid;place-items:center;font-size:32px;background:#ffffff38;border:2px solid #ffffff5c;box-shadow:0 15px 30px #0005;animation:floaty 3.2s ease-in-out infinite}.orbit.one{top:10%;left:3%}.orbit.two{right:0;top:25%;animation-delay:-1s}.orbit.three{bottom:15%;left:2%;animation-delay:-2s}@keyframes floaty{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-12px) rotate(1deg)}}
.section-title{text-align:center;margin:15px auto 25px;font-size:clamp(28px,4vw,48px);font-weight:1000;letter-spacing:-1.5px}.section-intro{text-align:center;margin:-12px auto 24px;max-width:640px;color:#e7ddff;line-height:1.6}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.card{border-radius:26px;padding:22px 19px 25px;background:linear-gradient(148deg,#ffffff31,#ffffff0a);border:1px solid #ffffff5c;backdrop-filter:blur(13px);box-shadow:0 20px 35px #07021833;transition:transform .17s,border-color .17s}.card:hover{transform:translateY(-4px);border-color:#ffffffa6}.card-icon{width:84px;height:84px;display:grid;place-items:center;border-radius:24px;font-size:44px;background:linear-gradient(145deg,#ffffff82,#ffffff16);box-shadow:inset 0 3px 6px #ffffff4d,0 10px 26px #0003}.card h3{font-size:25px;margin:17px 0 8px}.card p{min-height:76px;color:#eae5fc;font-size:15px;line-height:1.55}.card-foot{display:flex;justify-content:space-between;align-items:center;gap:6px;margin-top:16px}.pill{border:1px solid #ffffff50;border-radius:40px;padding:8px 11px;font-size:12px;font-weight:850;background:#ffffff13}.card .btn{padding:12px 18px;min-height:46px;border-radius:14px}
.page-header{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:20px 0 22px}.page-header h1{font-size:clamp(26px,4vw,45px);margin:6px 0}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:18px;align-items:start}.game-card{background:linear-gradient(160deg,#ffffff,#f0f0ff);color:var(--ink);border:4px solid #ffffff;border-radius:32px;box-shadow:var(--shadow);padding:28px;min-height:490px;position:relative;overflow:hidden}.game-card h2{font-weight:1000;font-size:clamp(25px,3vw,39px);margin:9px 0 15px;line-height:1.16}.game-card .sub{color:#665b88;font-size:15px;line-height:1.6}.game-card .prompt{color:var(--primary);text-transform:uppercase;font-weight:950;letter-spacing:2.1px;font-size:12px}.side-card{background:#ffffff19;border:1px solid #ffffff51;border-radius:26px;padding:22px;backdrop-filter:blur(10px)}.side-mascot{width:100%;max-height:265px;object-fit:contain;filter:drop-shadow(0 13px 14px #0005)}.side-bubble{background:#fffdfc;color:#392765;border-radius:18px;padding:15px;font-weight:850;line-height:1.5;text-align:center;margin:0 0 20px}.stat-row{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.stat{background:#ffffff25;padding:9px 13px;border-radius:15px;font-weight:900;letter-spacing:.2px}.progress-track{height:13px;border-radius:30px;background:#ffffff24;overflow:hidden;margin:13px 0}.progress-fill{height:100%;border-radius:30px;background:linear-gradient(90deg,var(--accent),#fffde2);transition:width .3s ease}.ans-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-top:26px}.answer{min-height:92px;background:white;border:3px solid #d9d0f1;border-radius:20px;color:#322252;font-weight:950;font-size:20px;box-shadow:0 7px 0 #ded4f3;transition:transform .15s,border-color .15s,background .15s;padding:14px 10px;overflow-wrap:anywhere}.answer:hover{transform:translateY(-3px);border-color:var(--primary);background:#f5efff}.answer:active{transform:translateY(3px);box-shadow:0 2px 0 #ded4f3}.answer.wrong{border-color:#f5939b;background:#ffedf1}.answer.correct{border-color:#65c99a;background:#ddffe9}.big-glyph{font-size:clamp(80px,11vw,128px);font-weight:900;line-height:1.3;text-align:center;color:var(--primary);background:linear-gradient(140deg,#fff9e7,#faf4ff);border:3px solid #f5e3bd;border-radius:25px;padding:9px;margin:12px 0;box-shadow:0 10px 0 #eee0db}.emoji-hero{font-size:68px;text-align:center;margin:12px auto 0}.feedback{margin-top:20px;padding:18px 20px;border-radius:19px;background:#e8fff0;border:2px solid #a4e9bf;color:#214c36;display:flex;justify-content:space-between;align-items:center;gap:15px;line-height:1.45;flex-wrap:wrap}.feedback.bad{background:#fff3e2;color:#643f1c;border-color:#f3cc88}.feedback strong{font-size:18px}.feedback .btn{min-height:48px;font-size:14px;padding:11px 17px}.example{border-radius:18px;padding:16px 18px;background:#f5f0ff;border:1px solid #ddd0f6;color:#443460;line-height:1.55}.tiles{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin:18px 0}.tile{min-width:76px;height:78px;border:3px solid #dbc7fb;border-bottom-width:8px;border-radius:16px;display:grid;place-items:center;background:#fff;color:#432982;font-size:40px;font-weight:900;cursor:pointer;box-shadow:0 7px 15px #2b135b18}.tile:focus-visible{outline:3px solid #ffba57}.tile.selected{opacity:.34;pointer-events:none}.build-zone{display:flex;gap:7px;min-height:84px;border:3px dashed #cfc3ed;background:#f8f4ff;border-radius:20px;align-items:center;justify-content:center;font-size:40px;padding:8px;flex-wrap:wrap;direction:rtl}.build-zone .tile{background:#ece4ff;min-height:62px;height:62px}.read-box{border-radius:23px;border:2px solid #d9d3ee;padding:22px;background:linear-gradient(170deg,#fffbf4,#f3fff8);font-size:18px;line-height:1.84;white-space:pre-line;max-height:285px;overflow:auto}.read-box strong{color:#158763}.story-cover{padding:11px 13px;border-radius:16px;background:#eefbe4;margin-bottom:16px;display:flex;gap:13px;align-items:center;font-size:18px;font-weight:900;color:#2f694b}.story-cover .scene{font-size:50px}.seq-list{display:grid;gap:12px}.seq-item{width:100%;min-height:72px;border:2px solid #e3dafa;border-radius:15px;background:#fff;color:#2b1c55;text-align:left;padding:14px;font-weight:800;font-size:16px}.seq-item b{display:inline-grid;place-items:center;background:#eee8fb;color:#714db9;border-radius:50%;width:32px;height:32px;margin-right:8px}.seq-item.picked{background:#e0fce7;border-color:#5ac68b}.choice-line{display:flex;align-items:center;gap:10px;margin:13px 0 24px;flex-wrap:wrap}.choice-line .btn{padding:10px 17px;min-height:44px}.score-board{text-align:center;max-width:660px;margin:40px auto}.score-board img{max-height:260px;max-width:230px;object-fit:contain}.score-board h1{font-size:clamp(38px,7vw,72px);margin:4px 0}.score-stars{font-size:57px;letter-spacing:9px;margin:16px}.score-number{font-size:28px;font-weight:950;color:#fff}.score-board .btn{margin:8px}
/* Science components */.lab-workbench{background:linear-gradient(150deg,#0d275b,#123d79);border:2px solid #83cfee;border-radius:20px;color:white;padding:20px;min-height:250px;margin:17px 0;position:relative;overflow:hidden}.lab-workbench:before{content:"";position:absolute;inset:0;background:linear-gradient(transparent 95%,#a3ddf515 95%),linear-gradient(90deg,transparent 95%,#a3ddf515 95%);background-size:30px 30px;pointer-events:none}.bench-title{position:relative;font-size:14px;color:#aaf6ff;letter-spacing:1.4px;font-weight:850;text-transform:uppercase}.circuit{display:flex;position:relative;align-items:center;justify-content:space-between;margin-top:34px;gap:12px;border:6px solid #f6bb45;border-radius:34px;padding:20px 27px;min-height:145px}.circuit.off{border-color:#8296b9;border-style:dashed}.circuit .part{font-size:57px;position:relative}.bulb{filter:grayscale(1);opacity:.65;transition:filter .2s,opacity .2s}.circuit.on .bulb{filter:drop-shadow(0 0 20px #fff78a);opacity:1}.lab-options{display:flex;flex-wrap:wrap;gap:9px;margin:12px 0}.lab-options button{border-radius:14px;padding:10px 15px;background:#edfbff;border:2px solid #b7d8f2;color:#17385a;font-weight:900}.lab-options button.active{border-color:#14b9cf;background:#b3f9ff}.lab-workbench .lab-options button{color:#163f63}.slider-wrap{padding:16px 0}.slider-wrap label{display:flex;justify-content:space-between;align-items:center;font-weight:850;margin-bottom:11px}.slider-wrap input[type=range]{width:100%;accent-color:var(--primary)}.track-car{height:125px;position:relative;background:linear-gradient(#39598c,#234275);border-bottom:7px solid #89d2ff;border-radius:13px;overflow:hidden}.car{font-size:54px;position:absolute;left:5%;bottom:7px;transition:transform .85s cubic-bezier(.2,.9,.3,1)}.shadow-scene{height:190px;display:flex;align-items:flex-end;justify-content:space-around;position:relative;background:linear-gradient(#7fc5f4,#d3edff 76%,#a2d78e 77%);border-radius:17px;overflow:hidden}.shadow-scene .sun{position:absolute;left:9%;top:10%;font-size:60px}.shadow-scene .tree{font-size:96px;position:absolute;left:45%;bottom:14px}.shadow-shape{position:absolute;height:18px;width:160px;border-radius:50%;background:#273e6388;left:50%;bottom:11px;transform-origin:left center}.mini-notice{font-size:13px;color:#665788;line-height:1.5}.screen-footer{padding:16px 0;text-align:center;color:#c5bade;font-size:12px}.footer-links{display:flex;gap:10px;justify-content:center;align-items:center;flex-wrap:wrap}
[dir=rtl] .seq-item{text-align:right}[dir=rtl] .seq-item b{margin:0 0 0 8px}.arabic{font-family:"Noto Naskh Arabic","Noto Sans Arabic","Geeza Pro","Arial",sans-serif;direction:rtl;font-weight:850}.arabic-big{font-family:"Noto Naskh Arabic","Noto Sans Arabic","Geeza Pro","Arial",sans-serif;direction:rtl}
@media(max-width:900px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.game-layout{grid-template-columns:minmax(0,1fr) 208px}.hero{min-height:550px}.hero-art{height:460px}.hero-copy h1{letter-spacing:-2px}.side-mascot{max-height:185px}}
@media(max-width:690px){.shell{width:calc(100% - 24px)}.topbar{height:67px}.rightbar{gap:7px}.brand-name{font-size:13px}.brand-sub{font-size:9px}.hero{grid-template-columns:1fr;min-height:0;padding-top:24px;gap:0}.hero-copy{order:1;text-align:center}.hero-art{order:0;height:285px;margin-top:0}.mascot{max-height:320px;width:100%}.orbit{width:47px;height:47px;font-size:23px}.hero-title{font-size:clamp(50px,13.5vw,83px);letter-spacing:-3px;margin:9px 0 14px}.hero-desc{font-size:15px;margin:auto}.hero-buttons,.mini-tags{justify-content:center}.hero-buttons{margin:23px 0}.hero-buttons .btn{min-height:52px}.cards{grid-template-columns:1fr}.card{padding:19px;display:grid;grid-template-columns:78px 1fr;column-gap:14px}.card-icon{grid-row:span 3;width:73px;height:73px;font-size:35px}.card h3{margin:0}.card p{min-height:0;margin:8px 0}.card-foot{grid-column:span 2}.page-header{margin:8px 0 15px}.game-layout{grid-template-columns:1fr}.game-card{padding:17px 14px;min-height:395px;border-width:3px}.side-card{display:none}.answer{font-size:16px;min-height:82px;padding:8px}.ans-grid{gap:9px;margin-top:19px}.tile{min-width:59px;height:61px;font-size:32px}.big-glyph{font-size:82px}.feedback{padding:13px}.read-box{font-size:16px;max-height:260px}.section-title{margin-top:4px}.score-board{margin:10px auto}.score-board img{max-height:195px}.score-stars{font-size:37px;letter-spacing:4px}}
@media(max-width:360px){.brand-sub{display:none}.hero-title{font-size:51px}.answer{font-size:14px}.stat-row{gap:6px}.stat{font-size:12px;padding:8px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;transition-duration:.001ms!important;scroll-behavior:auto!important}}
