:root { --purple:#54258a;--deep:#35135e;--rose:#ee5086;--rose2:#ff91bc;--sun:#ffc659;--mint:#33c48e;--ink:#3e2d53;--paper:#fff9f0;--outline:rgba(112,75,132,.19);--arabic:'Cairo','Tahoma','Arial',sans-serif; }
* {box-sizing:border-box} html,body{margin:0;min-height:100%;font-family:var(--arabic);color:var(--ink)} body{background:#e1ccf9} button,input,select{font:inherit} button{cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent} button:focus-visible,input:focus-visible,select:focus-visible{outline:4px solid #ffb02d;outline-offset:3px} button:disabled{opacity:.56;cursor:default} .world{position:relative;isolation:isolate;min-height:100svh;overflow:hidden;display:flex;flex-direction:column;background:linear-gradient(135deg,#80d8fa,#aaf3c7)}
.scene-photo,.scene-tint{position:absolute;inset:0;z-index:-3;pointer-events:none}.scene-photo{background-size:cover;background-position:center;filter:saturate(1.10) brightness(1.02);transition:background-image .5s}.world[data-scene="garden"] .scene-photo{background-image:url('assets/garden.jpg')}.world[data-scene="kitchen"] .scene-photo{background-image:url('assets/kitchen.jpg')}.world[data-scene="plate"] .scene-photo{background-image:url('assets/plate.jpg')}.world[data-scene="breakfast"] .scene-photo{background-image:url('assets/breakfast.jpg')}.scene-tint{z-index:-2;background:linear-gradient(270deg,rgba(51,30,81,.35),transparent 58%),linear-gradient(0deg,rgba(53,25,91,.2),transparent 49%)}.leaf{position:absolute;z-index:-1;user-select:none;pointer-events:none;text-shadow:0 6px 7px #30303055;animation:floaty 4s ease-in-out infinite alternate}.leaf-one{color:#ffe682;font-size:42px;top:15%;left:35%}.leaf-two{color:#ffa1dc;font-size:35px;top:48%;left:4%;animation-delay:1s}.leaf-three{color:#fff4c3;font-size:40px;bottom:16%;left:42%;animation-delay:2s}
.topbar{width:min(1460px,calc(100% - 44px));height:84px;margin:18px auto 0;background:linear-gradient(105deg,rgba(75,35,125,.96),rgba(105,51,158,.91));border:2px solid #ffffff66;border-radius:27px;box-shadow:0 14px 40px #24085244, inset 0 2px #ffffff45;display:flex;align-items:center;gap:16px;padding:9px 18px;position:relative;z-index:3;color:#fff}.brand{display:flex;align-items:center;gap:11px;background:transparent;border:0;color:inherit;min-width:242px;text-align:right;padding:3px}.brand-mark{display:grid;place-items:center;width:53px;height:53px;border-radius:19px;transform:rotate(-6deg);background:linear-gradient(#fff8b7,#ffc95e);border:2px solid white;box-shadow:0 5px #bd8537;font-size:30px}.brand-text strong{font-size:23px;display:block;font-weight:900;line-height:1.3}.brand-text small{font-size:11px;color:#f4e3ff;font-weight:800}.progress-area{margin:auto;display:flex;align-items:center;gap:5px;background:#ffffff19;border:1px solid #ffffff30;padding:8px 17px;border-radius:40px;direction:ltr;min-width:210px;justify-content:center}.progress-area strong{font-size:22px}.score-split{color:#f6e8ff;font-size:15px}.tiny-star{font-size:25px}.meter{height:9px;width:90px;border-radius:20px;background:#ffffff35;overflow:hidden;margin:0 7px}.meter>div{height:100%;width:0;background:linear-gradient(90deg,#fffa98,#ffc42f);border-radius:20px;transition:width .4s}.top-controls{display:flex;align-items:center;gap:8px}.round-control{width:48px;height:48px;border-radius:17px;border:2px solid #fff7;background:linear-gradient(135deg,#ffecfc8a,#ffffff15);box-shadow:0 4px #310d5c6c;color:#fff;font-size:23px;font-weight:900;display:grid;place-items:center}.round-control[aria-pressed="false"]{filter:grayscale(.9);opacity:.65}
.center-layout{position:relative;flex:1;min-height:0;width:min(1460px,calc(100% - 44px));margin:24px auto 0;display:grid;grid-template-columns:minmax(0,1fr) minmax(520px,650px);gap:22px;direction:ltr;align-items:center}.visual-side{height:100%;min-height:510px;position:relative;direction:rtl}.character-label{position:absolute;bottom:27%;left:8%;border:2px solid #fff8;background:linear-gradient(125deg,#fffaec,#fff5ba);padding:10px 18px;transform:rotate(-5deg);border-radius:25px;box-shadow:0 7px 0 #d3a559,0 13px 20px #342b4c44;font-weight:900;color:#7c3b5a;font-size:17px;white-space:nowrap;animation:floaty 3s ease-in-out infinite alternate}.heart{color:#f4629c}.character-spark{position:absolute;top:13%;left:8%;font-size:70px;transform:rotate(-10deg);filter:drop-shadow(0 8px 8px #0003);animation:floaty 3s ease-in-out infinite alternate 1s}.glass-panel{direction:rtl;align-self:center;min-height:510px;max-height:calc(100svh - 217px);overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#d4b8ec transparent;border:3px solid rgba(255,255,255,.95);border-radius:39px;padding:32px 34px 30px;background:linear-gradient(150deg,#fffcf8f2,#fff8f3ed);box-shadow:0 17px 0 #76379a6e,0 27px 65px #27104650,inset 0 3px 0 #ffffffaa;position:relative}.glass-panel:before{content:'';position:absolute;inset:7px;border:2px dashed #dbbaf06f;border-radius:30px;pointer-events:none}.glass-panel>*{position:relative}.pill{display:inline-flex;align-items:center;gap:9px;border-radius:40px;background:#eee0ff;color:#6f37a0;padding:7px 18px;font-size:14px;font-weight:900}.main-title{margin:18px 0 6px;font-size:clamp(48px,5vw,84px);font-weight:900;line-height:1.26;color:#61329e;text-shadow:0 4px #e1cffa;letter-spacing:-2px}.main-title em{font-style:normal;color:#f05e8b;text-shadow:0 4px #ffdaeb}.subheading{font-size:21px;color:#744d7c;font-weight:800;margin:0 0 19px}.intro-copy{font-size:17px;line-height:1.9;color:#654d69;font-weight:700}.badges{display:flex;gap:9px;flex-wrap:wrap;margin:18px 0 25px}.small-badge{display:inline-flex;align-items:center;gap:6px;background:#fff;border:2px solid #ead9f5;border-radius:50px;padding:9px 14px;font-size:13px;font-weight:900;color:#71538c}.small-badge:nth-child(2){background:#fef5d6;border-color:#ffe4a0}.small-badge:nth-child(3){background:#e2fcef;border-color:#b8efd7}.action{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:0;border-radius:22px;min-height:66px;padding:14px 23px;font-size:20px;font-weight:900;color:#fff;text-align:center;box-shadow:0 9px 0 #17805c,0 17px 25px #153e3330;transition:transform .13s,box-shadow .13s;text-shadow:0 2px #124d3835}.action:active{transform:translateY(5px);box-shadow:0 4px 0 #17805c,0 9px 15px #153e3330}.action.green{background:linear-gradient(180deg,#4be7a3,#21bd80)}.action.pink{background:linear-gradient(180deg,#ff84b2,#f34c88);box-shadow:0 8px #a82c62,0 14px 24px #a82c6233}.action.purple{background:linear-gradient(180deg,#aa72ea,#803fcb);box-shadow:0 8px #582696,0 14px 24px #58269633}.action.yellow{background:linear-gradient(180deg,#ffd975,#f5a82e);box-shadow:0 8px #bf7b15,0 14px 24px #bf7b1533;color:#573f63;text-shadow:none}.action.full{width:100%}.action.small{min-height:49px;font-size:15px;border-radius:17px;padding:8px 17px}.action.outline{color:#674b83;background:#fff;border:2px solid #d7b5ec;box-shadow:0 6px #dabcec;text-shadow:none}.action.outline:active{box-shadow:0 2px #dabcec}.micro-note{margin:21px 0 0;font-size:12px;color:#8b7a94;font-weight:700;line-height:1.8}.mini-heading{font-size:32px;line-height:1.35;color:#5e288e;font-weight:900;margin:12px 0}.stage-chip{display:inline-flex;align-items:center;border:2px solid #d6c0fb;background:#e8dafe;color:#623695;border-radius:50px;padding:6px 17px;font-size:13px;font-weight:900}.question{color:#58336f;font-size:23px;line-height:1.6;font-weight:900;margin:10px 0 18px}.hint{font-size:14px;color:#7b7082;font-weight:700;margin:13px 0}.two-buttons{display:flex;gap:13px;flex-wrap:wrap}.two-buttons>.action{flex:1 1 160px}.stage-top{display:flex;align-items:center;justify-content:space-between;gap:15px}.stage-top .round-mini{border-radius:16px;border:2px solid #e9d5fc;background:#fff;color:#69409c;padding:7px 12px;font-weight:900}.stage-stars{display:flex;align-items:center;gap:7px;direction:ltr;color:#ad7a1e;font-size:15px;font-weight:900}.color-icons{display:flex;justify-content:center;gap:12px;margin:11px 0 20px}.color-icons span{font-size:55px;filter:drop-shadow(0 7px 2px #372f4730);animation:floaty 3s ease-in-out infinite alternate}.color-icons span:nth-child(2){animation-delay:.6s}.color-icons span:nth-child(3){animation-delay:1.2s}
.map-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:22px 0 10px}.map-card{display:flex;align-items:center;text-align:right;gap:12px;border:2px solid #f5ddf7;border-bottom:7px solid #d4aee5;background:linear-gradient(140deg,#fff,#fff4fc);border-radius:22px;padding:17px 13px;color:#634284;min-height:98px;transition:transform .16s,box-shadow .16s;box-shadow:0 8px 15px #582a8140}.map-card:hover{transform:translateY(-3px)}.map-icon{display:grid;place-items:center;flex:0 0 51px;width:51px;height:51px;border-radius:17px;background:linear-gradient(#ffedbd,#ffca75);font-size:28px;box-shadow:0 5px #e8a850}.map-card strong{display:block;font-size:16px;line-height:1.5}.map-card small{display:block;font-size:10px;color:#8a71a3;font-weight:800}.map-card.completed{background:linear-gradient(160deg,#f0fff5,#e4fbea);border-color:#a7ead3;border-bottom-color:#48c5a0}.map-card.locked{filter:grayscale(.7);opacity:.68}.map-card .stamp{margin-inline-start:auto;font-size:19px}
.item-tray{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0}.food-tile{border:2px solid #ead8f4;background:linear-gradient(160deg,#fff,#fff0df);border-bottom:6px solid #dab9b7;border-radius:22px;min-height:112px;color:#5e3e72;padding:10px 4px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;transition:transform .13s,filter .2s}.food-tile:hover:not(:disabled){transform:translateY(-3px)}.food-tile.selected{background:#fff7bd;border-color:#ecb94f;transform:translateY(-4px);box-shadow:0 0 0 4px #ffd97375}.food-tile.done{background:#e6f9ed;border-color:#ace5c5;filter:saturate(.8)}.food-emoji{display:block;font-size:46px;line-height:1.1;filter:drop-shadow(0 7px 3px #4f2f6f37)}.food-tile strong{font-size:13px;font-weight:900}.bins{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-top:17px}.basket{border:3px dashed #bb86da;border-radius:24px;min-height:99px;background:linear-gradient(145deg,#f4e7ff,#eee3fa);color:#744198;display:flex;align-items:center;justify-content:center;gap:8px;flex-direction:column;font-weight:900}.basket:nth-child(1){background:linear-gradient(145deg,#e9fff2,#b7f3d4);border-color:#61cc9c;color:#257953}.basket-icon{font-size:28px}.basket small{font-size:12px}.count-chip{display:inline-flex;border-radius:15px;background:#fff7;padding:3px 7px;color:#6b4981;font-size:11px}
.plate-display{display:flex;justify-content:center;gap:12px;align-items:center;flex-wrap:wrap;margin:16px 0}.plate-slot{height:63px;width:63px;border-radius:18px;background:#fcf3fa;border:3px dashed #d5c1e8;display:grid;place-items:center;font-size:28px;box-shadow:inset 0 4px 6px #9a70b817}.plate-slot.filled{border-style:solid;border-color:#8cdaaa;background:#e7f9dc}.choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:15px}.choice-card{min-height:125px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;padding:14px;border-radius:24px;background:linear-gradient(160deg,#fff,#fff0f5);border:2px solid #edd5e5;border-bottom:6px solid #d4b3d5;color:#624275;text-align:center;font-weight:900;box-shadow:0 7px 12px #7b50832b;transition:transform .14s}.choice-card:hover{transform:translateY(-3px)}.choice-card .food-emoji{font-size:41px}.choice-card strong{font-size:15px;line-height:1.55}.choice-grid.long .choice-card{min-height:140px}.choice-grid.long .choice-card .food-emoji{font-size:38px}.choice-grid.single{grid-template-columns:1fr}.memory-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:11px;max-width:450px;margin:19px auto 12px}.memory-card{aspect-ratio:1 / 1;border:0;border-radius:22px;background:linear-gradient(150deg,#af7afa,#743cc8);border-bottom:6px solid #57299d;display:grid;place-items:center;color:white;font-size:35px;box-shadow:0 8px 15px #32145f2e;transition:transform .2s,background .2s;perspective:600px}.memory-card:not(.flipped):hover{transform:translateY(-3px) rotate(-2deg)}.memory-card.flipped,.memory-card.matched{background:linear-gradient(135deg,#fff9d7,#ffe0b4);border-bottom-color:#f5b560;color:#653376;transform:rotateY(180deg)}.memory-card span{display:block;transform:rotateY(0)}.memory-card.flipped span,.memory-card.matched span{transform:rotateY(180deg)}.memory-card.matched{background:linear-gradient(135deg,#e5ffeb,#c2f5e1);border-bottom-color:#66c7a4}.memory-card:disabled{opacity:1}
.store-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:15px 0}.store-grid .food-tile{min-height:100px}.store-grid .food-emoji{font-size:38px}.chosen-list{border:2px solid #8bdabb;background:#edfff3;border-radius:20px;padding:11px 16px;font-size:15px;font-weight:900;color:#317753;min-height:51px}.chosen-list span{font-size:25px;margin:0 5px}.cheer{font-size:56px;line-height:1.2;text-align:center;margin:6px 0;animation:cheerPop .65s ease-out}.win-stars{text-align:center;font-size:45px;letter-spacing:3px;text-shadow:0 5px 5px #d6900a66;white-space:nowrap}.congrats-copy{text-align:center;font-weight:800;font-size:18px;line-height:1.8;color:#694582;margin:15px 0}.finish-title{text-align:center;color:#67319c;font-size:38px;line-height:1.5;margin:7px 0}.name-form{margin-top:22px;padding:14px;background:#fff;border:2px solid #edd6fa;border-radius:21px}.name-form label{display:block;color:#70468d;font-size:14px;font-weight:900;margin-bottom:7px}.name-form input{width:100%;border:2px solid #dfc5f1;border-radius:15px;padding:10px 15px;font-size:17px;text-align:center;color:#572c77;background:#fffbff}.foot-nav{display:flex;gap:12px;align-items:center;margin-top:21px}.foot-nav>*{flex:1}
.speech-dock{position:relative;z-index:3;direction:rtl;margin:14px auto 21px;width:min(895px,calc(100% - 48px));min-height:101px;display:flex;align-items:center;gap:13px;padding:9px 16px;background:linear-gradient(120deg,#fffefaed,#fff4e8f2);border:3px solid #fff;border-radius:30px;box-shadow:0 10px 0 #9b59a180,0 19px 37px #290e443b}.avatar{flex:0 0 79px;height:79px;border-radius:25px;background:#fff2c0;border:3px solid #f7d37e;position:relative;overflow:hidden;box-shadow:inset 0 2px #fff8,0 4px #d39d57}.avatar-photo{position:absolute;inset:0;background-image:url('assets/garden.jpg');background-size:auto 165px;background-position:9% 27%;background-repeat:no-repeat;filter:saturate(1.18)}.voice-rings{position:absolute;bottom:5px;left:5px;display:flex;align-items:flex-end;gap:2px;height:23px;opacity:0;transition:opacity .2s}.voice-rings i{background:#f65c91;width:5px;height:9px;border-radius:5px}.voice-rings i:nth-child(2){height:17px}.voice-rings i:nth-child(3){height:13px}.speaking .voice-rings{opacity:1}.speaking .voice-rings i{animation:equalize .35s ease-in-out infinite alternate}.speaking .voice-rings i:nth-child(2){animation-delay:.15s}.speaking .voice-rings i:nth-child(3){animation-delay:.29s}.speech-content{flex:1;min-width:0}.speech-eyebrow{color:#a4498a;font-size:13px;font-weight:900;display:flex;align-items:center;gap:6px}.voice-dot{width:9px;height:9px;background:#f9bc3c;border-radius:50%}.speaking .voice-dot{background:#1cc48f;box-shadow:0 0 0 6px #1cc48f33}#speechText{color:#573e72;font-weight:800;font-size:15px;line-height:1.65;margin:3px 0;max-height:3.5em;overflow:auto}.replay-voice{flex-shrink:0;display:flex;flex-direction:column;align-items:center;gap:0;padding:7px 12px;border-radius:19px;border:2px solid #dfc8f1;background:linear-gradient(#fff,#f1e8fe);color:#6a368a;font-size:28px;font-weight:900}.replay-voice span{font-size:11px}.toast{position:fixed;left:50%;bottom:135px;z-index:12;transform:translateX(-50%) translateY(20px);opacity:0;background:#582891;color:#fff;border:2px solid #fff;border-radius:18px;padding:11px 21px;max-width:90vw;text-align:center;font-weight:900;box-shadow:0 10px 30px #230c4c5c;pointer-events:none;transition:.25s}.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}.modal-layer:not([hidden]){position:fixed;inset:0;z-index:40;background:#130a3399;display:grid;place-items:center;padding:14px;backdrop-filter:blur(5px)}.modal-box{direction:rtl;background:#fffaf6;border:4px solid #fff;border-radius:29px;padding:27px;max-width:480px;width:100%;box-shadow:0 23px 75px #15062f77}.modal-box h2{font-size:28px;color:#66339a;margin:2px 0 8px}.modal-box p{font-size:14px;line-height:1.7;font-weight:700;color:#6a5580}.modal-box label{display:block;margin:12px 0 7px;color:#653b7c;font-size:13px;font-weight:900}.modal-box select{width:100%;padding:11px;border-radius:13px;border:2px solid #d5b8eb;background:white;max-width:100%}.modal-status{background:#f8eefe;border-radius:13px;padding:12px;margin:10px 0;color:#6d368f;font-weight:800;font-size:13px}.confetti{position:fixed;inset:0;z-index:8;pointer-events:none;overflow:hidden}.confetti-dot{position:absolute;top:-40px;width:12px;height:20px;border-radius:3px;animation:confettiFall 3.5s linear forwards}#printCertificate{display:none}
@keyframes floaty{from{transform:translateY(-5px) rotate(-3deg)}to{transform:translateY(8px) rotate(4deg)}}@keyframes equalize{to{height:3px;opacity:.5}}@keyframes cheerPop{0%{transform:scale(.5) rotate(-15deg)}70%{transform:scale(1.14) rotate(9deg)}100%{transform:scale(1) rotate(0)}}@keyframes confettiFall{to{transform:translateY(110vh) rotate(900deg);opacity:.2}}
@media(max-width:1100px){.center-layout{grid-template-columns:minmax(0,1fr) minmax(445px,570px)}.glass-panel{padding:25px}.topbar{height:75px}.brand-text strong{font-size:20px}.visual-side{min-height:470px}.character-label{font-size:13px}.main-title{font-size:63px}}
@media(max-width:790px){.world{min-height:100svh}.scene-photo{background-size:auto 100%;background-position:22% center;opacity:.95}.scene-tint{background:linear-gradient(180deg,#e7edfd14,#57287a2e 45%,#4e1b71a1 100%)}.topbar{width:calc(100% - 20px);margin:10px auto 0;height:65px;border-radius:22px;padding:7px;gap:5px}.brand{min-width:0;flex:1;gap:7px}.brand-mark{height:42px;width:42px;flex:0 0 42px;font-size:25px;border-radius:14px}.brand-text strong{font-size:15px}.brand-text small{font-size:9px}.progress-area{min-width:0;padding:8px;gap:2px}.progress-area strong{font-size:16px}.meter{display:none}.tiny-star{font-size:19px}.score-split{font-size:12px}.top-controls{gap:4px}.round-control{width:38px;height:40px;font-size:18px;border-radius:13px}.center-layout{width:calc(100% - 22px);display:flex;flex-direction:column;gap:0;margin:16px auto 6px}.visual-side{display:none}.glass-panel{width:100%;max-width:630px;min-height:410px;max-height:none;overflow:visible;padding:23px 23px 25px;border-radius:30px;box-shadow:0 12px 0 #73369c99,0 19px 43px #1608354d}.glass-panel:before{border-radius:23px}.main-title{font-size:clamp(49px,12vw,76px);margin-top:17px}.subheading{font-size:19px}.speech-dock{width:calc(100% - 22px);max-width:630px;margin:18px auto 20px;min-height:87px;border-radius:25px;padding:8px 10px}.avatar{flex-basis:65px;height:65px;border-radius:18px}.avatar-photo{background-size:auto 136px}.speech-content{min-width:0}#speechText{font-size:12px}.replay-voice{font-size:22px;border-radius:13px}.replay-voice span{font-size:10px}.map-grid{gap:9px}.map-card{padding:10px;min-height:86px}.map-icon{width:43px;height:43px;flex-basis:43px;font-size:23px}.map-card strong{font-size:12px}.map-card small{font-size:9px}.question{font-size:20px}.food-emoji{font-size:40px}.food-tile{min-height:92px}.choice-card{min-height:107px;padding:9px}.choice-card strong{font-size:13px}.store-grid{gap:6px}.store-grid .food-emoji{font-size:30px}.store-grid .food-tile{min-height:84px}.store-grid .food-tile strong{font-size:11px}.memory-card{border-radius:15px}}
@media(max-width:390px){.brand-text small{display:none}.brand-text strong{font-size:13px}.brand-mark{flex-basis:37px;height:37px;width:37px;font-size:23px}.topbar{height:58px}.round-control{width:33px;height:35px;font-size:16px}.progress-area{padding:7px 6px}.glass-panel{padding:20px 17px}.main-title{font-size:51px}.action{min-height:57px;font-size:17px}.food-emoji{font-size:35px}.food-tile{min-height:87px}.item-tray{gap:6px}.map-card{min-height:78px}.map-icon{flex-basis:39px;width:39px;height:39px}.map-card strong{font-size:11px}.finish-title{font-size:30px}.speech-dock{gap:7px}.avatar{flex-basis:53px;height:55px}#speechText{font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
@media print{body,.world{background:white}.world{display:none!important}#printCertificate{display:flex!important;align-items:center;justify-content:center;text-align:center;padding:3cm;min-height:90vh;border:12px double #6f3bb0;border-radius:22px}#printCertificate .certificate{font-family:Tahoma,Arial,sans-serif;direction:rtl}#printCertificate .certificate h1{font-size:43px;color:#6b318e}#printCertificate .certificate h2{font-size:32px;color:#f24e8c}#printCertificate .certificate p{font-size:19px;line-height:2}}
