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}
/* Keep the language toggle opposite the navigation control on game screens. */
.game.screen-map[dir="rtl"] .langToggle,.game.screen-learn[dir="rtl"] .langToggle,.game.screen-quiz[dir="rtl"] .langToggle,.game.screen-later[dir="rtl"] .langToggle{left:14px;right:auto}
.game.screen-map[dir="ltr"] .langToggle,.game.screen-learn[dir="ltr"] .langToggle,.game.screen-quiz[dir="ltr"] .langToggle,.game.screen-later[dir="ltr"] .langToggle{left:auto;right:14px}
