@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@600;700;800;900&family=Nunito:wght@800;900&display=swap');
:root{--ink:#202653;--purple:#6653d7;--pink:#f27b9e;--gold:#ffc84f;--mint:#70d7bd;--cream:#fffaf1;--wall:#4b3b95;--path:#fff2c7;--shadow:0 18px 44px #16163d30}*{box-sizing:border-box}body{margin:0;min-height:100vh;font-family:Cairo,Tahoma,sans-serif;color:var(--ink);background:radial-gradient(circle at 90% 0,#6d62d9 0 18%,transparent 42%),linear-gradient(135deg,#f8f3ff,#fff7e3 55%,#e0fbf2);background-attachment:fixed}.topbar{height:70px;padding:11px clamp(12px,4vw,62px);display:flex;align-items:center;justify-content:space-between;gap:14px;background:#202653;color:#fff;box-shadow:0 5px 0 #131633;position:sticky;top:0;z-index:10}.brand{display:flex;align-items:center;gap:9px;font-weight:900}.brand small{display:block;color:#ffdb65;font:900 10px Nunito;letter-spacing:.2em}.brand-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:13px;background:linear-gradient(145deg,#ffd657,#f17b9f);font-size:23px;box-shadow:0 4px 0 #b94e74}.back,.sound-btn{color:#fff;text-decoration:none;border:2px solid #fff3;border-radius:999px;padding:8px 13px;background:#fff1;font-weight:800}.sound-btn{font-size:.82rem}.shell{width:min(1450px,100%);margin:auto;padding:26px clamp(10px,4vw,62px) 60px}.hero{border:5px solid #fff;border-radius:34px;padding:28px clamp(20px,5vw,64px);min-height:275px;display:flex;align-items:center;justify-content:space-between;gap:25px;background:linear-gradient(125deg,#fff3c8,#ffe5ee 52%,#daf8ef);box-shadow:var(--shadow);overflow:hidden;position:relative}.hero:after{content:"";position:absolute;right:-60px;bottom:-100px;width:310px;height:220px;background:#fff8;border-radius:50%;transform:rotate(-12deg)}.hero>div:first-child{position:relative;z-index:2;max-width:670px}.eyebrow,.kicker{background:var(--purple);color:#fff;border-radius:99px;display:inline-block;padding:5px 14px;font-size:.8rem;font-weight:900;box-shadow:0 4px 0 #4435a0}.hero h1{font-size:clamp(2.1rem,5vw,4.3rem);line-height:1.04;margin:16px 0 8px}.hero h1 b{display:block;font:900 clamp(.85rem,1.7vw,1.35rem) Nunito;letter-spacing:.24em;color:#db628c;margin-top:8px}.hero p{font-size:1.08rem;color:#5d597c;font-weight:700}.start-btn,.secondary-btn,.action-btn{border:0;border-radius:16px;min-height:49px;padding:11px 18px;font-weight:900;cursor:pointer}.start-btn{background:linear-gradient(135deg,#f47c9f,#da5786);color:white;box-shadow:0 5px 0 #b33f69}.secondary-btn{background:#fff;color:#5c4fc0;border:3px solid #e1d8fb;box-shadow:0 4px 0 #cfc3ee}.hero-art{width:350px;height:220px;flex:none;background:linear-gradient(#8fe5f0 0 56%,#79cf85 57%);border:6px solid #fff;border-radius:30px;position:relative;box-shadow:inset 0 -17px #5dae75;transform:rotate(2deg)}.hero-art:before,.hero-art:after{content:"☁️";position:absolute;font-size:42px;opacity:.8}.hero-art:before{top:22px;right:28px}.hero-art:after{top:50px;left:30px;transform:scale(.72)}.hero-barsho{position:absolute;bottom:14px;left:118px;width:82px;height:116px;border-radius:42px 42px 20px 20px;overflow:hidden;border:5px solid #fff;background:#ffd45a;box-shadow:0 6px 0 #8d6d45}.hero-barsho img{width:100%;height:100%;object-fit:cover;object-position:center 25%}.hero-book{position:absolute;bottom:26px;right:60px;font-size:66px;filter:drop-shadow(0 6px 0 #8e6436);animation:bob 2s ease-in-out infinite}.planet{position:absolute;top:38px;right:148px;font-size:45px;color:#ffd357;filter:drop-shadow(0 4px #df9c35);animation:bob 2.3s ease-in-out infinite}@keyframes bob{50%{transform:translateY(-9px) rotate(7deg)}}.layout{display:grid;grid-template-columns:300px 1fr;gap:22px;margin-top:24px;align-items:start}.side-card,.game-card{background:#ffffffd9;border:4px solid #fff;border-radius:28px;box-shadow:var(--shadow);backdrop-filter:blur(8px)}.side-card{padding:16px}.speech{display:flex;align-items:center;gap:9px;background:#fff4c5;border:2px solid #f5d76a;border-radius:19px;padding:9px}.speech img{width:48px;height:48px;object-fit:cover;object-position:center 24%;border-radius:50%;border:3px solid #fff}.speech p{font-size:.78rem;color:#625b73;font-weight:700;margin:3px 0 0;line-height:1.55}.side-section{border-top:2px dashed #ded8f3;margin-top:14px;padding-top:13px}.side-section h2{font-size:1.03rem;margin:0 0 9px}.levels{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.level-btn{border:3px solid #e7dffb;background:#f8f5ff;color:#6655ba;border-radius:12px;padding:7px 2px;font-weight:900;font-size:.72rem;cursor:pointer}.level-btn small{display:block;font-size:.58rem;color:#8b83a8}.level-btn.active{background:#6653d7;border-color:#6653d7;color:#fff;box-shadow:0 4px 0 #4435a0}.level-btn.done{border-color:#71cfae;background:#e3fbf0}.level-btn.active small{color:#eee8ff}.reward-box{display:grid;grid-template-columns:34px 1fr 34px 1fr;gap:3px;align-items:center;background:linear-gradient(135deg,#fff3b0,#ffe6f0);padding:9px;border-radius:16px;text-align:center}.reward-box span{font-size:1.55rem}.reward-box b{display:block;font-size:1.22rem;color:#db668b}.reward-box small{display:block;color:#807691;font-size:.61rem}.help-list p{font-size:.78rem;color:#6b6680;line-height:1.8;font-weight:700;margin:0}.game-card{padding:20px;min-width:0}.game-head{display:flex;align-items:start;justify-content:space-between;gap:12px}.stage-label{font-size:.85rem;color:#6a58ca;font-weight:900}.game-head h2{font-size:clamp(1.2rem,2.8vw,2rem);margin:2px 0 0}.hud{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.hud span{background:#fff2c7;border-radius:13px;padding:6px 9px;font-weight:800;font-size:.78rem;white-space:nowrap}.hud span:nth-child(2){background:#dff9ef}.hud span:nth-child(3){background:#eee9ff}.progress{height:10px;border-radius:99px;background:#eee9fa;overflow:hidden;margin:14px 0}.progress i{display:block;height:100%;width:0;background:linear-gradient(90deg,#6dd7bd,#ffca51,#f2789d);border-radius:inherit;transition:width .3s}.maze-wrap{width:min(100%,790px);margin:auto;aspect-ratio:1/1;background:#6b55bb;padding:7px;border:6px solid #fff;border-radius:24px;box-shadow:inset 0 0 0 3px #49378e,0 12px 25px #36225930;position:relative;overflow:hidden}.maze{height:100%;display:grid;gap:3px;background:#4b3b95;padding:3px}.cell{min-width:0;min-height:0;background:var(--wall);position:relative;display:grid;place-items:center;border-radius:4px}.cell.open{background:var(--path);box-shadow:inset 0 2px #fff8}.cell.item:before{font-size:clamp(11px,2.2vw,25px);filter:drop-shadow(0 2px 0 #a47b2d)}.cell.star:before{content:"⭐"}.cell.key:before{content:"🔑"}.cell.book:before{content:"📖"}.cell.chest:before{content:"🎁"}.cell.door:before{content:"🚪"}.cell.secret{background:linear-gradient(135deg,#e8d4ff,#ffe9a7);animation:secret 1.8s ease-in-out infinite}@keyframes secret{50%{filter:brightness(1.15)}}.player{width:78%;height:78%;object-fit:cover;object-position:center 23%;border-radius:50%;border:3px solid #fff;box-shadow:0 4px 0 #8f5b49;z-index:2;animation:walk .55s ease-in-out infinite alternate}.player.idle{animation:none}.player.celebrate{animation:celebrate .55s ease-in-out infinite alternate}@keyframes walk{to{transform:translateY(-3px) rotate(3deg)}}@keyframes celebrate{to{transform:translateY(-10px) rotate(12deg) scale(1.12)}}.goal{font-size:clamp(16px,3vw,32px);filter:drop-shadow(0 3px 0 #a37334);animation:bob 1.4s ease-in-out infinite}.hint-path{position:absolute;inset:7px;border:5px dashed #ffaf43;border-radius:17px;pointer-events:none;animation:hint 1s ease-in-out infinite;background:linear-gradient(90deg,transparent,#ffca5140,transparent)}@keyframes hint{50%{opacity:.35}}.game-actions{display:flex;gap:8px;flex-wrap:wrap;margin:15px auto 10px;max-width:790px}.action-btn{background:#f4f0ff;color:#5d4fc0;border:2px solid #ded4fa;min-height:43px;padding:8px 12px;font-size:.78rem}.touch-controls{display:grid;grid-template-columns:repeat(3,54px);grid-template-rows:repeat(2,54px);gap:7px;justify-content:center;margin-top:12px}.touch-controls button{border:0;border-radius:17px;background:linear-gradient(#fff,#eee8ff);color:#5e4fc1;font-size:1.3rem;font-weight:900;box-shadow:0 4px 0 #c8bdec;touch-action:manipulation}.control-note{text-align:center;color:#827995;font-size:.72rem;font-weight:800;margin:8px 0 0}.modal{position:fixed;inset:0;background:#16173dcc;z-index:40;display:grid;place-items:center;padding:18px}.modal-box{width:min(480px,100%);padding:25px;border-radius:30px;border:5px solid #fff;background:var(--cream);box-shadow:0 25px 70px #09091f88;text-align:center;animation:pop .35s ease-out}.modal-barsho{width:92px;height:92px;object-fit:cover;object-position:center 24%;border-radius:50%;border:5px solid #fff;box-shadow:0 5px 0 #b37a60}.modal-box h2{font-size:1.8rem;margin:12px 0 5px}.modal-box p{color:#6b647e;font-weight:700;line-height:1.9}.win{background:linear-gradient(#fffaf0,#fff0f8)}.big-celebrate{font-size:2rem}.win-stars{font-size:2.3rem;letter-spacing:7px;margin:10px}.win-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}@keyframes pop{from{opacity:0;transform:scale(.8)}}.toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,20px);opacity:0;background:#202653;color:#fff;border-radius:99px;padding:11px 17px;font-weight:800;z-index:80;transition:.25s;pointer-events:none}.toast.show{opacity:1;transform:translate(-50%,0)}[hidden]{display:none!important}@media(max-width:850px){.layout{grid-template-columns:1fr}.side-card{order:2}.hero-art{width:270px}.side-card{display:grid;grid-template-columns:1.4fr 1fr;gap:12px}.speech{grid-column:1/-1}.side-section{margin-top:0}.help-list{grid-column:1/-1}}@media(max-width:600px){.topbar{height:auto;min-height:65px;flex-wrap:wrap;justify-content:center}.brand{order:-1;width:100%;justify-content:center}.back,.sound-btn{font-size:.72rem}.hero{padding:22px;min-height:0}.hero-art{display:none}.hero h1{font-size:2.2rem}.layout{margin-top:16px}.game-card{padding:12px}.game-head{display:block}.hud{justify-content:flex-start;margin-top:10px}.maze-wrap{border-width:4px;padding:4px}.maze{gap:2px;padding:2px}.side-card{display:block}.side-section{margin-top:14px}.touch-controls{grid-template-columns:repeat(3,50px);grid-template-rows:repeat(2,50px)}}
.maze-wrap{touch-action:none;cursor:grab}.maze-wrap:active{cursor:grabbing}.gesture-note{margin:12px auto 0;text-align:center;color:#665a80;font-size:.82rem;font-weight:900;background:#f2efff;border:2px dashed #d4c8f2;border-radius:999px;padding:8px 14px;width:fit-content;max-width:100%}.touch-controls{display:none!important}
.maze{direction:ltr}
