@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:#ef759b;--gold:#ffc94f;--mint:#73d8bd;--cream:#fffaf1;--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,#6d62d8 0 18%,transparent 42%),linear-gradient(135deg,#faf5ff,#fff5dc 55%,#e0fbf2);background-attachment:fixed}.topbar{height:70px;padding:11px clamp(12px,4vw,62px);display:flex;align-items:center;justify-content:space-between;gap:12px;background:#202653;color:#fff;box-shadow:0 5px #131633;position:sticky;top:0;z-index:10}.brand{display:flex;align-items:center;gap:8px;font-weight:900}.brand small{display:block;color:#ffda66;font:900 10px Nunito;letter-spacing:.18em}.back,.sound{color:#fff;text-decoration:none;border:2px solid #fff3;border-radius:99px;padding:8px 13px;background:#fff1;font:800 .8rem Cairo}.sound{cursor:pointer}.shell{width:min(1450px,100%);margin:auto;padding:26px clamp(10px,4vw,62px) 60px}.hero{border:5px solid #fff;border-radius:34px;padding:30px clamp(20px,5vw,65px);display:flex;justify-content:space-between;align-items:center;gap:20px;background:linear-gradient(125deg,#fff2c8,#ffe5ed 55%,#d9f8ef);box-shadow:var(--shadow)}.hero>div:first-child{max-width:700px}.eyebrow{display:inline-block;background:var(--purple);color:#fff;border-radius:99px;padding:5px 14px;font-size:.8rem;font-weight:900;box-shadow:0 4px #4435a0}.hero h1{font-size:clamp(2rem,4.5vw,4rem);line-height:1.05;margin:15px 0 8px}.hero h1 b{display:block;color:#d95f8c;font:900 clamp(.9rem,1.8vw,1.35rem) Nunito;letter-spacing:.06em;margin-top:8px}.hero p{font-size:1.08rem;color:#5f5a7a;font-weight:700}.primary,.hint,.restart,.reset,.choice,.book,.shelf,.step,.tag,.match-card{border:0;border-radius:15px;padding:10px 16px;min-height:45px;font:900 .95rem Cairo;cursor:pointer}.primary{background:linear-gradient(135deg,#f47a9e,#da5686);color:#fff;box-shadow:0 5px #b33e69}.hero-art{width:250px;height:185px;border:6px solid #fff;border-radius:28px;background:linear-gradient(#8fe5f0 0 55%,#84d28b 56%);box-shadow:inset 0 -14px #5bad73;display:grid;place-items:center;align-content:center;transform:rotate(3deg);font-size:75px}.hero-art span{font:900 1rem Cairo;color:#fff;text-shadow:0 2px #477448;margin-top:-11px}.layout{display:grid;grid-template-columns:300px 1fr;gap:22px;margin-top:24px;align-items:start}.side,.game{background:#ffffffd9;border:4px solid #fff;border-radius:28px;box-shadow:var(--shadow);backdrop-filter:blur(8px)}.side{padding:16px}.speech{display:flex;gap:9px;align-items:center;background:#fff3c5;border:2px solid #f5d66a;border-radius:18px;padding:9px}.speech img{width:50px;height:50px;object-fit:cover;object-position:center 24%;border-radius:50%;border:3px solid white}.speech p{font-size:.78rem;color:#625a73;font-weight:700;margin:2px 0;line-height:1.55}.side h2{font-size:1rem;margin:17px 0 9px;border-top:2px dashed #ded8f3;padding-top:13px}.tasks{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}.task{border:3px solid #e7dffb;background:#f8f5ff;color:#6655ba;border-radius:11px;padding:7px 2px;font-weight:900;font-size:.72rem;cursor:pointer}.task small{display:block;font-size:.52rem;color:#8b83a8}.task.active{background:#6653d7;color:#fff;border-color:#6653d7;box-shadow:0 4px #4435a0}.task.done{background:#e2faef;border-color:#75cfae}.task:disabled{opacity:.6;cursor:not-allowed}.progress-card{background:#f1edff;border-radius:15px;padding:10px;margin-top:15px;font-size:.8rem}.progress-card span{font-weight:800}.progress-card b{float:left;color:#d45f87}.progress-card div{height:9px;background:#ddd5f5;border-radius:99px;overflow:hidden;margin-top:8px}.progress-card i{display:block;height:100%;width:0;background:linear-gradient(90deg,#74d8bc,#ffc84f,#ef759b);border-radius:99px;transition:.3s}.title-card{margin-top:12px;background:#fff3c2;border-radius:15px;padding:10px;font-size:1rem}.title-card small{display:block;color:#82778e;font-size:.65rem}.reset{width:100%;margin-top:14px;background:#fff;color:#8a7486;border:2px solid #ead8df;font-size:.7rem}.game{padding:20px;min-width:0}.game-head{display:flex;justify-content:space-between;gap:12px;align-items:start}.game-head h2{margin:2px 0;font-size:clamp(1.2rem,2.8vw,2rem)}.game-head span{color:#6b58ce;font-weight:900;font-size:.85rem}.stars{direction:ltr;color:#ffc13d;font-size:1.2rem;letter-spacing:2px;white-space:nowrap}.instruction{text-align:center;color:#756d87;font-weight:800}.activity{min-height:360px;background:#f4f1ff;border:3px dashed #d7cdf5;border-radius:22px;padding:18px;display:grid;place-items:center}.activity-inner{width:min(760px,100%);text-align:center}.choices,.books,.shelves,.steps,.matches{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}.choice{background:#fff;color:#5346ae;border:3px solid #ded4fa;box-shadow:0 4px #cfc4ef;min-width:130px}.choice.correct,.book.correct,.tag.correct,.match-card.correct{background:#dff8eb;border-color:#55bd92;color:#207b5f}.choice.wrong{background:#ffe0e7;border-color:#ed7895}.book{background:#fff;border:3px solid #ded4fa;box-shadow:0 5px #cfc4ef;display:grid;gap:3px;min-width:120px}.book .cover{height:75px;border-radius:8px;background:linear-gradient(145deg,#f47b9e,#694fd0);display:grid;place-items:center;color:#fff;font-size:1.7rem}.book:nth-child(2) .cover{background:linear-gradient(145deg,#70d8bd,#2b91c7)}.book:nth-child(3) .cover{background:linear-gradient(145deg,#ffc84f,#ef7c52)}.book:nth-child(4) .cover{background:linear-gradient(145deg,#8c72e9,#33306f)}.dragzone{min-height:65px;border:3px dashed #cfc4ef;border-radius:16px;padding:9px;display:flex;gap:8px;justify-content:center;align-items:center;flex-wrap:wrap;background:#fff}.shelf{background:#8d542b;color:white;border:4px solid #633416;min-width:145px}.shelf small{display:block;color:#ffeebc;font-size:.62rem}.tag{background:#fff;border:3px solid #ded4fa;min-width:145px}.step{background:#fff;border:3px solid #ded4fa}.step.selected{background:#dff8eb;border-color:#55bd92}.match-card{background:#fff;border:3px solid #ded4fa;min-width:140px}.match-card small{display:block;color:#7d748c}.feedback{margin-top:14px;font-weight:900;color:#628254;min-height:28px}.actions{display:flex;gap:9px;justify-content:center;margin-top:14px}.hint,.restart{background:#f1edff;color:#5d4fc0;border:2px solid #ddd3fa;font-size:.8rem}.restart{background:#fff0f4;color:#b24c73;border-color:#f1ceda}.modal{position:fixed;inset:0;background:#15183dcc;z-index:30;display:grid;place-items:center;padding:18px}.modal-box{width:min(480px,100%);padding:25px;border:5px solid white;border-radius:30px;background:var(--cream);box-shadow:0 25px 70px #09091f88;text-align:center}.modal-box img{width:94px;height:94px;object-fit:cover;object-position:center 24%;border-radius:50%;border:5px solid white;box-shadow:0 5px #aa765e}.modal-box h2{font-size:1.7rem}.modal-box p{color:#6b637e;font-weight:700;line-height:1.85}.celebrate,.big-stars{font-size:2.2rem}.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:50;transition:.25s}.toast.show{opacity:1;transform:translate(-50%,0)}[hidden]{display:none!important}@media(max-width:850px){.layout{grid-template-columns:1fr}.side{order:2}.hero-art{width:190px;height:160px;font-size:55px}}@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{font-size:.7rem}.hero{padding:22px;min-height:0}.hero-art{display:none}.game{padding:12px}.game-head{display:block}.stars{margin-top:7px}.activity{padding:11px;min-height:330px}.tasks{gap:4px}.task{font-size:.62rem}.book,.choice,.tag,.shelf,.match-card{min-width:105px}}
.book.selected{outline:4px solid #ef759b;outline-offset:3px;transform:translateY(-3px)}.dragzone{touch-action:manipulation}
