html,body,#root{margin:0;min-height:100%;background:#fff8e9}*{box-sizing:border-box}.game{min-height:100vh;max-width:820px;margin:auto;padding:20px;color:#43251d;background:radial-gradient(circle at 15% 5%,#fff4cc,transparent 32%),#fffaf0;font-family:Arial,"Noto Sans Hebrew",sans-serif;overflow:hidden}.game section{min-height:calc(100vh - 40px);position:relative}button{font:inherit}.home{text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center}.eyebrow{font-weight:900;letter-spacing:.08em;color:#b13a28;margin:18px 0 0}.home h1{font-family:Georgia,"Noto Serif Hebrew",serif;color:#e86f22;font-size:clamp(54px,12vw,96px);line-height:.9;margin:12px 0;text-shadow:0 4px #f3c265}.sub{font-size:21px;max-width:420px;line-height:1.5}.heroButton{border:0;border-radius:22px;background:linear-gradient(180deg,#ffcc47,#ed7b22);color:#5a2515;font-weight:900;font-size:28px;padding:18px 42px;box-shadow:0 7px 0 #a43e23,0 12px 24px #80341d30;min-width:240px}.heroButton:active{transform:translateY(4px);box-shadow:0 3px 0 #a43e23}.heroButton.small{display:block;margin:24px auto;font-size:20px;padding:14px 28px}.quiet,.back{border:0;background:transparent;color:#8b4d38;font-weight:800;font-size:18px;margin-top:18px}.spark{position:absolute;color:#f6b62d;font-size:48px;animation:twinkle 1.8s infinite}.s1{right:8%;top:12%}.s2{left:11%;top:22%;animation-delay:.6s}@keyframes twinkle{50%{transform:scale(.5) rotate(30deg);opacity:.4}}.robot{width:120px;height:170px;position:relative;margin:8px auto 0;filter:drop-shadow(0 8px 8px #6e251d30);transition:.25s}.robot .head{position:absolute;top:15px;left:22px;width:76px;height:58px;background:#b72d25;border:5px solid #69211f;border-radius:27px 27px 18px 18px}.robot .head:before{content:"";position:absolute;inset:8px 13px;background:#f2b934;clip-path:polygon(15% 0,85% 0,100% 70%,70% 100%,30% 100%,0 70%)}.robot .head i,.robot .head b{position:absolute;z-index:2;top:25px;width:15px;height:8px;background:#d9ffff;box-shadow:0 0 9px #8efaff}.robot .head i{right:15px}.robot .head b{left:15px}.robot .body{position:absolute;top:70px;left:26px;width:68px;height:65px;border:5px solid #69211f;border-radius:15px 15px 22px 22px;background:#c63528}.robot .body em{display:grid;place-items:center;width:37px;height:37px;margin:10px auto;border-radius:50%;background:#f6c542;color:#8e291e;font:900 27px Georgia}.antenna{position:absolute;top:2px;left:57px;width:7px;height:18px;background:#6b211f;border-radius:5px}.antenna:after{content:"";position:absolute;top:-5px;left:-4px;width:15px;height:15px;border-radius:50%;background:#f4c443}.arm,.leg{position:absolute;background:#b72d25;border:4px solid #69211f;border-radius:12px}.arm{top:77px;width:20px;height:55px}.arm.left{left:8px;transform:rotate(13deg)}.arm.right{right:8px;transform:rotate(-13deg)}.leg{top:128px;width:25px;height:39px}.leg.l{left:30px}.leg.r{right:30px}.robot.happy{animation:bounce .45s 2}.robot.oops{animation:shake .35s 2}.robot.power{animation:float 1.5s infinite}.robot.listening .head i,.robot.listening .head b{background:#fff;box-shadow:0 0 14px #fff}@keyframes bounce{50%{transform:translateY(-16px) scale(1.04)}}@keyframes shake{25%{transform:rotate(-5deg)}75%{transform:rotate(5deg)}}@keyframes float{50%{transform:translateY(-10px)}}.top{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:82px}.top>button{width:50px;height:50px;border-radius:16px;border:2px solid #e7b97d;background:#fff;color:#9a3b28;font-size:28px;font-weight:900}.top .robot{transform:scale(.42);transform-origin:left center;margin:-45px -34px -45px 0}.top h2{font-size:30px;color:#d96121}.path{display:grid;gap:14px;max-width:600px;margin:auto}.level{display:grid;grid-template-columns:70px 1fr;grid-template-rows:auto auto;align-items:center;text-align:right;border:2px solid #efc789;border-radius:22px;background:#fffdf7;padding:14px 18px;box-shadow:0 5px 0 #e9be7f}.level span{grid-row:1/3;font-size:36px}.level b{font-size:22px}.level small{color:#8e6a59}.level.locked{opacity:.48;filter:grayscale(.4);box-shadow:none}.level.later{border-style:dashed;background:#fff5dc}.tip{text-align:center;color:#8f654d}.letterGrid{display:grid;grid-template-columns:repeat(5,1fr);gap:11px;direction:rtl}.letter{aspect-ratio:1;border:2px solid #f1bb70;border-radius:18px;background:#fffefa;color:#e87323;font:700 clamp(35px,8vw,58px) Georgia,"Noto Serif Hebrew",serif;box-shadow:0 5px 0 #e9ba77;touch-action:manipulation}.letter:active{transform:translateY(4px);box-shadow:0 1px 0 #e9ba77}.quiz{text-align:center}.progress{height:16px;flex:1;background:#f2dfbd;border-radius:20px;overflow:hidden}.progress i{display:block;height:100%;background:linear-gradient(90deg,#ef7b26,#f6c745);transition:.3s}.quiz h2{font-size:32px;margin:4px}.listen{border:0;border-radius:20px;background:#9bd9d1;color:#174c4a;padding:14px 24px;font-size:20px;font-weight:900;box-shadow:0 5px 0 #4f9f98}.choices{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;max-width:520px;margin:28px auto}.choices button{aspect-ratio:1.35;border:3px solid #efb461;border-radius:26px;background:#fff;color:#e86d20;font:700 clamp(60px,13vw,90px) Georgia,"Noto Serif Hebrew",serif;box-shadow:0 8px 0 #dc9953}.choices button:active{transform:translateY(6px);box-shadow:0 2px 0 #dc9953}.counter{font-weight:900;color:#9f715c}.laterScreen{text-align:center;padding-top:20px}.laterScreen h2{font-size:38px;color:#cc4926}.gem{font-size:80px;color:#6fc9c3;text-shadow:0 5px #2f8681}.laterScreen h3{color:#e56d22;font-size:28px;margin-bottom:4px}.locknote{max-width:520px;margin:24px auto;background:#fff2d2;border:2px dashed #e6b45b;border-radius:18px;padding:18px;font-weight:700;line-height:1.5}@media(max-width:520px){.game{padding:14px}.letterGrid{gap:7px}.letter{border-radius:13px}.choices{gap:12px}.home .robot{transform:scale(.85)}}
.langToggle{position:fixed;z-index:20;top:14px;right:14px;border:2px solid #e8a85b;border-radius:14px;background:#fffaf0;color:#873321;font-weight:900;padding:10px 14px;box-shadow:0 3px 0 #dda05d}.game[dir="ltr"]{text-align:left}.game[dir="ltr"] .level{text-align:left}
.profilesScreen{text-align:center;padding-top:34px}.profilesScreen h1{font:700 clamp(36px,8vw,62px) Georgia,"Noto Serif Hebrew",serif;color:#e66e22;margin:0 0 22px}.profilesScreen>.robot{transform:scale(.72);margin:-18px auto -16px}.profileGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:14px;max-width:620px;margin:0 auto 26px}.profileCard{min-height:150px;border:2px solid #efb86c;border-radius:22px;background:#fffefa;box-shadow:0 6px 0 #e4aa61;color:#532b20;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}.profileCard span{font-size:48px}.profileCard b{font-size:22px}.profileCard small{color:#8e6958}.newProfile{max-width:560px;margin:auto;padding:18px;border:2px dashed #eabb76;border-radius:22px;background:#fff5dc}.newProfile h2{margin:0 0 10px;color:#9d3b28}.avatarRow{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;margin-bottom:12px}.avatarRow button{width:50px;height:50px;border:2px solid transparent;border-radius:14px;background:#fff;font-size:27px}.avatarRow button.selected{border-color:#e66f22;background:#ffe9b9;transform:scale(1.08)}.newProfile input{width:min(100%,340px);height:52px;border:2px solid #e5b371;border-radius:14px;padding:0 15px;font-size:20px;text-align:center;background:white}.newProfile .heroButton{margin:14px auto 0}.newProfile .heroButton:disabled{opacity:.45}.profilePill{position:absolute;top:10px;left:10px;z-index:4;border:2px solid #e6ad64;border-radius:18px;background:#fff8e9;padding:9px 13px;font-weight:900;color:#703323;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.game.screen-map[dir="rtl"] .langToggle,.game.screen-learn[dir="rtl"] .langToggle,.game.screen-quiz[dir="rtl"] .langToggle,.game.screen-nikudMap[dir="rtl"] .langToggle,.game.screen-nikudLearn[dir="rtl"] .langToggle,.game.screen-nikudQuiz[dir="rtl"] .langToggle{left:14px;right:auto}.vowelButton{margin-top:20px;background:linear-gradient(180deg,#9de4dd,#4ea49d);box-shadow:0 7px 0 #327b76}.nikudFree{display:block;margin:0 auto 18px;padding:12px 20px;border:2px solid #71bbb5;border-radius:16px;background:#e7fbf8}.screen-nikudLearn .letter,.screen-nikudQuiz .choices button{color:#247e78;border-color:#77c9c1}.screen-nikudLearn .letterGrid{margin-bottom:28px}@media(max-width:520px){.screen-nikudLearn .letterGrid{grid-template-columns:repeat(5,1fr)}.screen-nikudLearn .letter{font-size:34px}}
.vowelButton small{display:block;font-size:13px;margin-top:5px}.vowelButton.lockedPath{filter:grayscale(.35);opacity:.62;box-shadow:0 4px 0 #6b8b87;cursor:not-allowed}.screen-map .path{counter-reset:mission}.screen-map .level small{line-height:1.35}
.dailyButton{display:block;margin:22px auto 4px;border:2px solid #f1bb70;border-radius:18px;background:#fff9d9;color:#6d351f;padding:12px 22px;font-weight:900;font-size:18px;box-shadow:0 4px 0 #e2ab5f}.dailyButton small{display:block;font-weight:600;font-size:12px;color:#866451;margin-top:3px}.shelfLink{margin-top:10px}.shelfScreen{text-align:center}.starTotal{font-size:42px;font-weight:900;color:#d56221}.stickerShelf{max-width:570px;min-height:120px;margin:18px auto;padding:18px;display:flex;flex-wrap:wrap;justify-content:center;gap:12px;border:3px solid #deb676;border-radius:20px;background:repeating-linear-gradient(#fff9e8 0 72px,#d6a866 73px 78px)}.stickerShelf span{display:grid;place-items:center;width:58px;height:58px;border-radius:50%;background:#fff;box-shadow:0 3px 8px #6e462633;font-size:34px}.trophyPath{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;max-width:600px;margin:20px auto}.trophyPath i{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#eadfc9;color:#a99372;font-style:normal;font-size:22px}.trophyPath i.earned{background:#ffe09a;color:#7b421e}.celebrateScreen{text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center}.celebrateScreen h1{color:#df6922;font-size:42px}.bigSticker{font-size:88px;animation:bounce .5s 2}.confetti{font-size:38px;color:#efad24}.celebrateScreen p{max-width:400px;color:#795642}
/* Keep language control clear of navigation on collection and celebration screens. */
.game.screen-shelf[dir="rtl"] .langToggle,.game.screen-celebrate[dir="rtl"] .langToggle{left:14px;right:auto}
.familyScreen{text-align:center;display:flex;flex-direction:column;justify-content:center;align-items:center}.familyScreen h1{font:700 clamp(42px,9vw,72px) Georgia,"Noto Serif Hebrew",serif;color:#df6922;margin:0}.familyScreen p{font-size:20px;color:#795642}.familyCards{display:grid;grid-template-columns:repeat(2,minmax(140px,240px));gap:18px}.familyCards button{min-height:210px;border:2px solid #efb86c;border-radius:25px;background:#fffefa;box-shadow:0 7px 0 #dda45b;color:#51291e;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px}.familyCards span{font-size:62px}.familyCards b{font-size:29px;color:#d85f20}.familyCards small{font-size:15px}@media(max-width:520px){.familyCards{grid-template-columns:1fr 1fr;gap:11px}.familyCards button{min-height:175px}.familyCards span{font-size:48px}}
.deviceNote{font-size:13px!important;color:#8c6b5a!important;margin-top:18px!important}
.doorHome{position:fixed;z-index:21;top:14px;left:14px;border:2px solid #e8a85b;border-radius:14px;background:#fffaf0;color:#873321;font-weight:900;padding:10px 14px;box-shadow:0 3px 0 #dda05d}.profilePill{top:66px}@media(max-width:420px){.doorHome span{display:none}}
.game{touch-action:pan-x pan-y;-webkit-text-size-adjust:100%}.game button,.game .letter{touch-action:manipulation}.profileWrap{display:flex;flex-direction:column}.profileWrap .profileCard{width:100%;flex:1}.removeProfile{margin-top:9px;border:1px solid #d9a88d;border-radius:12px;background:#fff7f1;color:#873321;min-height:42px;font-weight:800}.practiceBadge{margin:0 auto 4px;padding:5px 10px;border-radius:99px;background:#fff0bd;color:#713a1f;font-weight:800;font-size:13px}.screen-quiz,.screen-nikudQuiz{height:100dvh;min-height:0;overflow:hidden}.screen-quiz section.quiz,.screen-nikudQuiz section.quiz{height:calc(100dvh - 28px);min-height:0;display:grid;grid-template-rows:52px minmax(72px,15vh) auto auto minmax(0,1fr);gap:4px}.screen-quiz .top,.screen-nikudQuiz .top{min-height:48px;height:48px}.screen-quiz .quiz>.robot,.screen-nikudQuiz .quiz>.robot{transform:scale(.62);transform-origin:center top;margin:-18px auto -34px}.screen-quiz .quiz h2,.screen-nikudQuiz .quiz h2{font-size:clamp(20px,4.5vh,30px);margin:0;line-height:1.05}.screen-quiz .listen,.screen-nikudQuiz .listen{justify-self:center;padding:8px 18px;font-size:17px;box-shadow:0 3px 0 #4f9f98}.screen-quiz .choices,.screen-nikudQuiz .choices{width:100%;max-width:620px;height:100%;min-height:0;margin:2px auto 0;gap:clamp(5px,1.2vh,10px);grid-auto-rows:minmax(0,1fr)}.screen-quiz .choices button,.screen-nikudQuiz .choices button{min-height:0;aspect-ratio:auto;border-radius:16px;font-size:clamp(34px,8vh,64px);box-shadow:0 4px 0 #dc9953}.choices-4{grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(2,1fr)}.choices-6{grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(2,1fr)}.choices-8{grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(2,1fr)}@media(max-height:680px){.screen-quiz section.quiz,.screen-nikudQuiz section.quiz{grid-template-rows:46px 66px auto auto minmax(0,1fr)}.screen-quiz .quiz>.robot,.screen-nikudQuiz .quiz>.robot{transform:scale(.46);margin:-28px auto -54px}.screen-quiz .quiz h2,.screen-nikudQuiz .quiz h2{font-size:19px}.screen-quiz .listen,.screen-nikudQuiz .listen{padding:6px 14px}.screen-quiz .choices button,.screen-nikudQuiz .choices button{font-size:clamp(30px,8vh,48px);border-width:2px}}@media(orientation:landscape) and (max-height:600px){.screen-quiz section.quiz,.screen-nikudQuiz section.quiz{grid-template-columns:120px 1fr;grid-template-rows:44px 38px 40px minmax(0,1fr);gap:3px}.screen-quiz .top,.screen-nikudQuiz .top{grid-column:1/3}.screen-quiz .quiz>.robot,.screen-nikudQuiz .quiz>.robot{grid-column:1;grid-row:2/5;transform:scale(.5);margin:-30px auto}.screen-quiz .quiz h2,.screen-nikudQuiz .quiz h2{grid-column:2;grid-row:2}.screen-quiz .listen,.screen-nikudQuiz .listen{grid-column:2;grid-row:3}.screen-quiz .choices,.screen-nikudQuiz .choices{grid-column:2;grid-row:4}.practiceBadge{position:absolute;top:46px;left:8px}}
