:root{font:16px/1.55 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#20314f;background:#f6f7fe;--navy:#073da8;--purple:#1752c5;--line:#dce2f0}*{box-sizing:border-box}body{margin:0}a{color:#315e92;text-underline-offset:4px}button,input,select{font:inherit;color:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.55}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid #df920c;outline-offset:4px}button{background:white;border:1px solid var(--line);border-radius:13px;padding:12px 16px;min-height:46px;font-weight:700}h1,h2,h3,p{margin:0 0 13px}h1,h2,h3{line-height:1.18;letter-spacing:-.035em}h1{font-size:clamp(32px,5.5vw,57px)}h2{font-size:clamp(24px,3.5vw,33px)}h3{font-size:clamp(22px,3vw,30px)}header{background:var(--navy);color:white;border-bottom:3px solid #ffd24a}.wrap{width:min(1120px,calc(100% - 36px));margin:auto}.header-row{display:flex;align-items:center;justify-content:space-between;padding:17px 0;gap:15px}.brand{color:white;text-decoration:none;font-size:22px;font-weight:850}.brand small{display:block;font-size:10px;letter-spacing:.13em;color:#d9e3f6}.header-links{display:flex;gap:18px;align-items:center}.header-links a{color:white;font-size:13px}.bh{color:#ffd984;font-size:20px}.skip{position:absolute;top:-100px}.skip:focus{top:8px;left:8px;background:white;z-index:5;padding:12px}.hero{position:relative;overflow:hidden;margin:28px 0 22px;padding:33px 36px;border-radius:27px;background:linear-gradient(120deg,#073da8,#155bea);color:white;display:flex;justify-content:space-between;gap:25px;align-items:center}.hero:after{content:'✦';position:absolute;font-size:190px;right:165px;top:-55px;color:#ffffff08;pointer-events:none}.hero h1{max-width:640px}.hero em{font-style:normal;color:#ffd24a}.hero p{max-width:600px;color:#e0e6f8}.eyebrow{font-size:11px;letter-spacing:.15em;text-transform:uppercase;font-weight:850;color:#7565a1}.hero .eyebrow{color:#e9c980}.hero-art{font-size:80px;transform:rotate(-8deg);line-height:1;flex-shrink:0;filter:drop-shadow(0 10px 0 #0002)}.universe{display:flex;gap:9px;flex-wrap:wrap;margin:20px 0}.universe button[aria-pressed=true]{background:var(--navy);border-color:var(--navy);color:white;box-shadow:0 3px 0 #0b1930}.stats-strip{border:1px solid var(--line);border-radius:17px;padding:14px 18px;background:white;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:25px}.stats-strip strong{color:#1752c5}.small{font-size:13px;color:#5a6980}.step-heading{display:flex;align-items:center;gap:13px;margin:26px 0 18px}.step-heading .number{background:#e4edff;color:#1752c5;min-width:41px;height:41px;display:grid;place-items:center;border-radius:14px;font-weight:850}.step-heading h2{margin:0;font-size:25px}.subjects{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:13px}.subject{--tone:#3c699f;--soft:#e9f1ff;--edge:#c3d5ef;text-align:left;background:var(--soft);border-color:var(--edge);border-bottom:4px solid var(--edge);padding:18px;border-radius:21px;display:flex;flex-direction:column;gap:10px;min-height:155px}.tone-1{--tone:#7b54a7;--soft:#f0e9fc;--edge:#d6c5ee}.tone-2{--tone:#177c81;--soft:#e7f6f4;--edge:#b7dfd9}.tone-3{--tone:#a76320;--soft:#fff3d7;--edge:#eed29a}.tone-4{--tone:#ad5544;--soft:#ffebe5;--edge:#efc3b6}.tone-5{--tone:#a64e7f;--soft:#f9eaf3;--edge:#ecc6dc}.subject>span{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:white;font-size:25px;color:var(--tone)}.subject strong{font-size:18px}.subject small{font-size:12px;font-weight:500}.subject[aria-pressed=true]{outline:3px solid var(--tone);outline-offset:2px}.filters{display:grid;grid-template-columns:2fr 1fr 1.5fr;gap:12px;margin:20px 0 12px}.field{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:750}.field input,.field select{width:100%;min-height:47px;border:1px solid #bccae0;border-radius:12px;padding:9px 12px;background:white}.lesson-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.lesson-card{display:flex;flex-direction:column;text-align:left;gap:7px;padding:19px;border-radius:18px}.lesson-card strong{font-size:16px}.lesson-card small{color:#1752c5;font-size:11px;font-weight:800}.lesson-card span{font-size:12px;line-height:1.5;color:#607089;overflow-wrap:anywhere}.lesson-card em{font-style:normal;font-size:11px;color:#26717d;margin-top:auto;padding-top:8px}.lesson-card[aria-pressed=true]{border:2px solid #1752c5;background:#eef4ff}.more{display:block;margin:18px auto}.games-panel{margin:34px 0;padding:25px;border:1px solid #c7d7f4;background:#eaf1ff;border-radius:26px;scroll-margin-top:15px}.chosen{background:#fff9;border-radius:17px;padding:18px;margin-bottom:22px}.chosen h3{font-size:24px}.chosen p{font-size:13px;margin:0;color:#5e6b82}.game-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.game-options button{display:flex;flex-direction:column;align-items:flex-start;text-align:left;background:white;border-bottom:4px solid #a6bde8;padding:20px;gap:12px;border-radius:21px}.game-options b{font-size:19px;line-height:1.2}.game-options small{font-size:12px;font-weight:400;line-height:1.5;color:#53667f}.game-options .game-icon{font-size:35px}.game-options .play{margin-top:auto;padding-top:9px;color:#1752c5;font-size:12px;font-weight:850}.settings{margin:20px 0 0;display:flex;gap:10px;align-items:center;font-size:13px}.settings select{padding:8px;border:1px solid #c7beda;border-radius:10px;background:white}.stage{background:white;border:1px solid #d8dff0;border-radius:26px;padding:26px;margin:25px 0;scroll-margin-top:15px}.stage-top{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;border-bottom:1px solid var(--line);padding-bottom:17px;margin-bottom:22px}.stage-top h2{font-size:27px;margin:0}.stage-top button{font-size:12px;padding:9px 13px}.question{max-width:760px;margin:auto}.question-top{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px;color:#1752c5;margin-bottom:20px;font-weight:800}.question-top button{font-size:12px}.hebrew{font-size:clamp(25px,4vw,37px);line-height:1.6;text-align:center}.diagram{display:flex;justify-content:center;gap:12px;font-size:30px;padding:12px;margin-bottom:15px}.answers{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin:23px 0}.answers button{display:flex;align-items:center;gap:12px;text-align:start;min-height:74px;border-radius:17px;font-weight:600}.answers b{display:grid;place-items:center;width:29px;height:29px;background:#edf1fa;border-radius:9px;flex-shrink:0;font-size:13px}.answers button:disabled{opacity:1}.answers .good{background:#e4f6ed;border:2px solid #238761}.answers .wrong{background:#fff0e8;border:2px solid #c87954}#feedback{background:#eff8f2;border-radius:16px;padding:20px;margin:16px 0}#feedback p:last-child{margin:0}#feedback strong{color:#246b50}.primary{background:#1752c5;color:white;border-color:#1752c5;border-bottom:4px solid #063794}.memory-top{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.memory-top p{font-weight:800;color:#1752c5}.memory-top label{font-size:13px}.memory-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin:20px 0}.memory-card{min-height:130px;font-size:30px;background:#dfebff;border-color:#b7cef9;border-bottom:4px solid #90b1ed}.memory-card.fr{background:#fff3da;border-color:#f2ddb2;border-bottom-color:#e4c68f}.memory-card.revealed{background:white;font-size:18px;line-height:1.5;overflow-wrap:anywhere}.memory-card:disabled{opacity:1}.memory-card.matched{background:#e4f7ed;border-color:#b3dcc8;color:#236b51}.memory-card.matched:after{content:' ✓';font-size:16px}.play-hud{display:flex;justify-content:space-between;align-items:center;gap:12px;max-width:480px;margin:0 auto 12px;font-size:13px;font-weight:750}.canvas-wrap{position:relative;margin:auto;max-width:440px;background:#162d50;border-radius:20px;overflow:hidden}.canvas-wrap.blocks{max-width:288px}.canvas-wrap canvas{display:block;width:100%;height:auto;aspect-ratio:1/1.14;touch-action:none}.canvas-wrap.blocks canvas{aspect-ratio:8/14}.pause-cover{position:absolute;inset:0;background:#152c50ec;color:white;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:25px}.pause-cover strong{font-size:28px;margin-bottom:15px}.action-controls{display:flex;justify-content:center;gap:8px;margin:14px auto;max-width:520px}.action-controls button{flex:1;min-width:0;padding:9px 5px;background:#eff2fb}.action-controls b{display:block;font-size:23px}.action-controls small{display:block;font-size:10px;font-weight:500}#action>.small{text-align:center;max-width:580px;margin:15px auto}.result{text-align:center;max-width:730px;margin:auto}.result-stars{color:#eab447;font-size:45px}.big-score{font-size:65px;font-weight:900;color:#1752c5;line-height:1.2}.big-score small{display:block;font-size:15px;font-weight:600;margin-bottom:20px}.result-buttons{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin:23px 0}.result details{text-align:left;padding:18px;background:#f7f8fd;border-radius:15px}.result article{border-top:1px solid var(--line);padding:15px 0}.result article p{font-size:14px;margin:7px 0}.status{min-height:25px;font-size:14px;color:#426581;margin:20px 0}.error{color:#983e2d;background:#fff0e8;padding:16px;border-radius:13px}.footer{border-top:1px solid var(--line);margin-top:35px;padding:25px 0;font-size:12px;display:flex;gap:15px;flex-wrap:wrap;justify-content:space-between;color:#65748a}[hidden]{display:none!important}@media(hover:hover) and (prefers-reduced-motion:no-preference){.subject,.lesson-card,.game-options button{transition:transform .15s,box-shadow .15s}.subject:hover,.lesson-card:hover,.game-options button:hover:not(:disabled){transform:translateY(-3px);box-shadow:0 7px 18px #18305012}}@media(max-width:800px){.game-options{grid-template-columns:1fr 1fr}.lesson-cards{grid-template-columns:1fr 1fr}.hero-art{font-size:60px}.filters{grid-template-columns:1fr 1fr}.filters .field:first-child{grid-column:1/-1}}@media(max-width:520px){.wrap{width:calc(100% - 24px)}.header-row{gap:10px}.brand{font-size:18px}.header-links{gap:10px}.header-links a{font-size:11px}.hero{padding:25px 22px;margin-top:19px;display:block}.hero-art{display:none}.hero p{font-size:14px}.subjects{grid-template-columns:1fr 1fr;gap:11px}.subject{min-height:145px;padding:15px}.subject strong{font-size:16px}.step-heading h2{font-size:22px}.stats-strip{font-size:13px}.lesson-cards{grid-template-columns:1fr}.lesson-card{padding:16px}.filters{gap:10px}.games-panel,.stage{padding:17px;border-radius:22px}.game-options{gap:10px}.game-options button{padding:16px}.game-options b{font-size:17px}.chosen{padding:16px}.chosen h3{font-size:22px}.stage-top h2{font-size:22px}.answers{grid-template-columns:1fr;gap:10px}.answers button{min-height:64px;font-size:15px}.memory-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.memory-card{min-height:115px;padding:9px}.memory-card.revealed{font-size:15px}.memory-top{font-size:13px}.question-top{gap:8px}.stage-top{align-items:center}.canvas-wrap{border-radius:13px}.action-controls{gap:6px}.action-controls small{font-size:9px}.settings{flex-wrap:wrap}.diagram{font-size:24px;gap:8px}.footer{line-height:1.7}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* A light, image-free adventure identity for both age modes. */
.hero{background:radial-gradient(ellipse at 92% 12%,#57a1ff66,transparent 50%),linear-gradient(115deg,#083a9e,#165fe9);border:1px solid #4b86ed;border-bottom:6px solid #062c79}.hero-art{position:relative;font-size:inherit;transform:rotate(5deg);width:192px;filter:none}.quest-badge{border:3px solid #ffe07b;background:#0b348f;clip-path:polygon(0 0,100% 0,100% 75%,50% 100%,0 75%);padding:17px 12px 40px;text-align:center;box-shadow:inset 0 0 40px #1e67ed}.quest-badge>span{font-size:40px;color:#ffd24a}.quest-badge b{display:block;font-size:24px;line-height:1.12;letter-spacing:.03em;margin:8px 0}.quest-badge small{font-size:8px;letter-spacing:.12em;color:#ffe591}.orbit-star,.orbit-spark{position:absolute;font-size:35px;color:#ffd24a;z-index:1}.orbit-star{left:-25px;top:4px}.orbit-spark{right:-18px;bottom:23px}.profile-panel{background:white;border:1px solid #c7d7f4;border-radius:22px;padding:22px;margin:20px 0;display:grid;grid-template-columns:1fr 1.25fr;gap:12px 25px;align-items:center}.profile-panel h2{font-size:24px;margin:0}.profile-panel .eyebrow{color:#1752c5;margin-bottom:9px}.profile-choices{display:grid;grid-template-columns:1fr 1fr;gap:10px}.profile-choices button{display:grid;grid-template-columns:auto 1fr;text-align:left;gap:0 9px;border-bottom-width:4px;padding:13px}.profile-choices button>span{grid-row:span 2;font-size:29px;color:#ba7c00;align-self:center}.profile-choices small{font-size:11px;font-weight:500}.profile-choices button[aria-pressed=true]{background:#e9f1ff;border-color:#1752c5;box-shadow:0 0 0 1px #1752c5}.profile-panel>p{grid-column:1/-1;margin:0}#profile-note{font-size:14px}.game-options{grid-template-columns:repeat(3,minmax(0,1fr))}.game-options button{position:relative}.game-options .recommended{border-color:#e4bc44;border-bottom-color:#c99109}.game-options .recommended:before{content:'Pour ton mode';font-size:10px;background:#fff2b8;color:#735000;padding:4px 8px;border-radius:6px;align-self:flex-end}.game-options .play{border-top:1px solid #e1e9f7;width:100%}.subject{--soft:#e2edff;--edge:#b9d1ff}.tone-1{--soft:#eae2ff;--edge:#d5bfff}.tone-2{--soft:#daf6ee;--edge:#a1e4d4}.tone-3{--soft:#fff0bb;--edge:#f3d575}.tone-4{--soft:#ffe3d5;--edge:#f5bca1}.tone-5{--soft:#e2e6ff;--edge:#bcc6ff}.duos-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:20px 0}.duos-grid h3{font-size:15px;text-align:center}.duos-grid>div{display:flex;flex-direction:column;gap:10px}.duos-grid button{min-height:78px;flex:1;background:#e4eeff;border-color:#a7c1ec;overflow-wrap:anywhere;font-size:21px}.duos-grid [data-right]{background:#fff2ca;border-color:#e8cf88;font-size:16px}.duos-grid [aria-pressed=true]{outline:3px solid #1752c5;outline-offset:2px;background:#c8ddff}.duos-grid .matched{opacity:1;background:#e3f5ea;border-color:#86cba8;color:#186844}.duos-grid .matched:after{content:' ✓'}.memory-card.he{background:#dfebff}.memory-card.he.revealed{background:white}.memory-card.he.matched{background:#e4f7ed}body[data-profile=explorer] .answers button{font-size:18px;min-height:85px}body[data-profile=challenger] .hero{background:radial-gradient(ellipse at 92% 12%,#3174e977,transparent 50%),linear-gradient(115deg,#07245e,#104bb2)}body[data-profile=challenger] .quest-badge{background:#061f54}body[data-profile=challenger] .memory-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:800px){.profile-panel{grid-template-columns:1fr}.game-options{grid-template-columns:1fr 1fr}.hero-art{width:150px}.quest-badge b{font-size:19px}.profile-panel h2{font-size:22px}}
@media(max-width:520px){.hero-art{display:none}.profile-panel{padding:17px}.profile-choices button{padding:11px;gap:0 6px}.profile-choices b{font-size:14px}.profile-choices small{font-size:10px}.profile-choices button>span{font-size:24px}.duos-grid{gap:12px}.duos-grid button{padding:10px;font-size:19px}.duos-grid [data-right]{font-size:14px}body[data-profile=challenger] .memory-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.game-options .recommended:before{font-size:9px}}
