intro .intro{position:relative;min-height:calc(100svh - 175px);padding:clamp(28px,6vw,72px);background:transparent;border:0;border-radius:0;box-shadow:none;display:grid;direction:ltr;grid-template-columns:.9fr 1.1fr;grid-template-areas:"art tag" "art title" "art desc" "art button";align-content:center;align-items:center;column-gap:clamp(35px,7vw,95px);text-align:right}@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&display=swap');
:root{--ink:#20324b;--accent:#5b5bd6;--accent2:#8c8cf3;--soft:#f1f1ff;--card:#fff;--good:#178f69;--bad:#c75b67}
*{box-sizing:border-box}body{margin:0;min-height:100vh;font-family:Cairo,Arial,sans-serif;background:linear-gradient(145deg,var(--soft),#fff 60%);color:var(--ink);direction:rtl}
header{min-height:90px;padding:12px clamp(18px,5vw,64px);display:flex;align-items:center;justify-content:space-between;gap:16px;background:#ffffffd9;border-bottom:1px solid #0001}.brand{display:flex;align-items:center;gap:12px}.brand img{width:76px;height:58px;object-fit:contain}.brand b,.brand small{display:block}.brand b{color:var(--accent)}.brand small{font-size:11px;color:#70808c}.tools{display:flex;gap:8px}.tool{width:44px;height:44px;border:1px solid #d8e1e7;background:#fff;color:var(--ink);border-radius:14px;display:grid;place-items:center;text-decoration:none;cursor:pointer;font:inherit;font-size:20px}.tool.off{opacity:.45}
main{width:min(1180px,calc(100% - 28px));margin:auto;padding:8px 0 32px}.screen{display:none}.screen.active{display:block}.intro,.panel{background:var(--card);border:1px solid #0001;border-radius:32px;box-shadow:0 22px 60px #23304c14;padding:clamp(22px,5vw,48px);text-align:center}.panel,#setup .intro{width:min(920px,100%);margin:auto}#intro .intro{position:relative;min-height:calc(100svh - 175px);padding:clamp(28px,5vw,58px);background:transparent;border:0;border-radius:0;box-shadow:none;display:grid;direction:ltr;grid-template-columns:minmax(330px,460px) minmax(420px,590px);grid-template-areas:"art tag" "art title" "art desc" "art button";grid-template-rows:auto auto auto auto;justify-content:center;align-content:center;align-items:center;column-gap:clamp(28px,4vw,62px);row-gap:8px;text-align:right}#intro .eyebrow{grid-area:tag;justify-self:end;direction:rtl}#intro .hero-art{grid-area:art;min-width:0;margin:0;white-space:nowrap;line-height:1;font-size:clamp(78px,8vw,126px);letter-spacing:-8px;filter:drop-shadow(0 18px 20px #0002)}#intro .game-name{grid-area:title;direction:rtl;width:100%;margin:7px 0}#intro .game-desc{grid-area:desc;direction:rtl;margin:0 0 18px;max-width:590px}#intro #begin{grid-area:button;justify-self:end;direction:rtl}.eyebrow{display:inline-block;background:var(--soft);color:var(--accent);padding:7px 14px;border-radius:999px;font-weight:800}.hero-art{font-size:clamp(64px,14vw,112px);margin:14px}h1{font-size:clamp(30px,7vw,55px);line-height:1.25;margin:8px 0}p{font-size:clamp(16px,3.2vw,21px);line-height:1.9;margin:7px auto 20px;max-width:700px}.levels{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:12px;margin:22px 0}.level{font:inherit;background:#fff;border:2px solid #dde3ed;border-radius:20px;padding:16px 8px;color:var(--ink);cursor:pointer}.level b,.level small{display:block}.level.selected{border-color:var(--accent);background:var(--soft);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 15%,transparent)}button.primary{font:inherit;border:0;border-radius:18px;background:linear-gradient(135deg,var(--accent),var(--accent2));color:#fff;font-weight:800;padding:14px 30px;font-size:18px;cursor:pointer;box-shadow:0 12px 25px color-mix(in srgb,var(--accent) 25%,transparent)}button:disabled{opacity:.45;cursor:not-allowed}.top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px}.progress{height:10px;flex:1;background:#e8edf3;border-radius:99px;overflow:hidden}.progress i{display:block;height:100%;width:0;background:var(--accent);transition:.3s}.counter,.timer{font-weight:800;white-space:nowrap}.question{font-size:clamp(23px,5vw,36px);font-weight:800;line-height:1.6;margin:12px auto 22px}.visual{font-size:clamp(55px,12vw,94px);min-height:100px;display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap}.options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:22px}.option{min-height:112px;font:inherit;font-size:clamp(17px,3vw,23px);font-weight:800;background:#fff;border:2px solid #dce3eb;border-radius:22px;padding:14px;cursor:pointer;color:var(--ink)}.option .emoji{display:block;font-size:42px}.option.correct{border-color:var(--good);background:#eaf9f3;color:var(--good)}.option.wrong{border-color:var(--bad);background:#fff0f1;color:var(--bad)}.feedback{min-height:40px;margin:15px 0 0;font-size:20px;font-weight:800}.finish-art{font-size:90px}.stats{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin:20px}.stats span{background:var(--soft);border-radius:16px;padding:12px 18px;font-weight:800}footer{text-align:center;padding:22px 15px 30px;color:#5d6875}footer b,footer span{display:block}
@media(max-width:760px){header{min-height:75px;padding:8px 14px}.brand img{width:58px;height:45px}.brand b{font-size:13px}.brand small{font-size:9px}.intro,.panel{border-radius:24px;padding:20px 16px}#intro .intro{min-height:calc(100svh - 145px);display:grid;grid-template-columns:1fr;grid-template-areas:"tag" "title" "art" "desc" "button";gap:5px;text-align:center;padding:26px 16px}#intro .eyebrow,#intro #begin{justify-self:center}#intro .game-name{text-align:center}#intro .game-desc{text-align:center;margin:0 auto 17px}#intro .hero-art{font-size:clamp(75px,25vw,115px);margin:5px}.levels{grid-template-columns:1fr}.level{padding:10px}.options{grid-template-columns:1fr}.option{min-height:88px}.question{margin-top:4px}.top{flex-wrap:wrap}.progress{order:3;flex-basis:100%}}
#setup .intro,.panel{background:color-mix(in srgb,var(--soft) 48%,#fff);border-color:color-mix(in srgb,var(--accent) 18%,transparent);box-shadow:0 22px 55px color-mix(in srgb,var(--accent) 12%,transparent)}#setup{padding-top:clamp(22px,5vw,55px)}#play,#finish{padding-top:clamp(18px,4vw,42px)}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* مشاهد الترحيب المصممة للألعاب الجديدة */
.hero-scene{position:relative;width:min(100%,420px);height:300px;margin:auto;overflow:hidden;border-radius:42px;isolation:isolate;letter-spacing:0;font-family:Cairo,Arial,sans-serif}
.hero-scene span{position:absolute;display:grid;place-items:center}
.garden-scene{background:linear-gradient(180deg,#f5ffd9,#dff1a8)}
.garden-scene:before{content:"";position:absolute;width:310px;height:150px;border-radius:50%;background:#a9d66a;left:-35px;bottom:-65px;box-shadow:270px 25px 0 #d7e985}
.garden-scene .sun{width:70px;height:70px;border-radius:50%;background:#ffd65a;right:25px;top:24px;box-shadow:0 0 0 16px #ffd65a22}
.garden-scene .flower{font-size:68px;bottom:43px}.garden-scene .f1{right:42px}.garden-scene .f2{right:142px}.garden-scene .f3{right:242px;filter:hue-rotate(110deg)}
.garden-scene .glass{font-size:92px;left:110px;top:65px;transform:rotate(-12deg);filter:drop-shadow(0 14px 12px #39521d33)}
.room-scene{background:linear-gradient(180deg,#e8fbf9 0 68%,#c8e2d8 68%)}
.room-scene:before{content:"";position:absolute;inset:22px 28px auto auto;width:105px;height:75px;border-radius:12px;background:#fff9d8;border:8px solid #fff;box-shadow:0 8px 18px #285d5e1a}
.room-scene .shelf{left:35px;top:48px;width:110px;height:13px;border-radius:8px;background:#8a5c3f;box-shadow:0 58px 0 #8a5c3f}
.room-scene .box{font-size:88px;right:42px;bottom:24px}.room-scene .bear{font-size:82px;left:55px;bottom:22px}.room-scene .ball{font-size:48px;left:174px;bottom:28px}.room-scene .lamp{font-size:54px;right:70px;top:34px}
.steps-scene{background:linear-gradient(145deg,#eeeaff,#dcd5ff)}
.steps-scene:before{content:"";position:absolute;width:250px;height:250px;border:3px dashed #7767cd55;border-radius:50%;left:85px;top:22px}
.steps-scene .step{width:95px;height:92px;border-radius:24px;background:#fff;box-shadow:0 14px 24px #55479b22;font-size:47px;border:2px solid #ffffff}.steps-scene .step:after{content:attr(data-n);position:absolute;right:-8px;top:-9px;width:28px;height:28px;border-radius:50%;background:#6654c7;color:#fff;font:800 14px Cairo;display:grid;place-items:center}
.steps-scene .s1{right:33px;top:45px}.steps-scene .s2{left:162px;top:150px}.steps-scene .s3{left:32px;top:45px}.steps-scene .arrow{font-size:42px;color:#6654c7}.steps-scene .a1{right:147px;top:92px;transform:rotate(25deg)}.steps-scene .a2{left:124px;top:91px;transform:rotate(-25deg)}
@media(max-width:760px){.hero-scene{width:min(88vw,330px);height:225px;border-radius:30px}.garden-scene .sun{width:48px;height:48px;right:18px;top:16px}.garden-scene .flower{font-size:48px;bottom:30px}.garden-scene .f1{right:26px}.garden-scene .f2{right:100px}.garden-scene .f3{right:174px}.garden-scene .glass{font-size:68px;left:62px;top:48px}.room-scene .shelf{left:22px;top:34px;width:84px;box-shadow:0 44px 0 #8a5c3f}.room-scene .box{font-size:64px;right:25px;bottom:16px}.room-scene .bear{font-size:62px;left:31px;bottom:14px}.room-scene .ball{font-size:36px;left:128px;bottom:19px}.room-scene .lamp{font-size:42px;right:47px;top:22px}.steps-scene:before{width:185px;height:185px;left:72px;top:18px}.steps-scene .step{width:72px;height:69px;border-radius:18px;font-size:34px}.steps-scene .s1{right:22px;top:34px}.steps-scene .s2{left:128px;top:112px}.steps-scene .s3{left:22px;top:34px}.steps-scene .arrow{font-size:30px}.steps-scene .a1{right:112px;top:68px}.steps-scene .a2{left:95px;top:68px}}

/* أزرار نهاية المستوى موحدة مع الألعاب السابقة */
.finish-actions-row{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;direction:rtl;margin-top:20px}
.finish-action{min-height:58px;padding:13px 28px;border-radius:18px;font:800 18px Cairo,Arial,sans-serif;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;text-decoration:none;white-space:nowrap}
.finish-next{border:0;background:linear-gradient(135deg,var(--accent),var(--accent2));color:#fff;box-shadow:0 12px 25px color-mix(in srgb,var(--accent) 25%,transparent)}
.finish-secondary{border:1px solid #d8e1e7;background:#fff;color:var(--ink);box-shadow:none}
.finish-actions-row [hidden]{display:none!important}
@media(max-width:760px){.finish-actions-row{gap:8px}.finish-action{min-height:52px;padding:11px 16px;font-size:15px;border-radius:15px}}
