.game{padding:14px 18px 30px;background:var(--cream)}
.game-head{display:grid;grid-template-columns:50px 1fr 50px;align-items:center;gap:8px}.game-head button{border:0;background:#fff;border-radius:50%;font:800 40px var(--heading)}.game-head strong{text-align:center;font:800 24px var(--heading)}.game-lang{font-weight:800;text-align:center}
.game h1{font-size:28px;margin:12px 0}.game-hero{display:block;width:180px;height:170px;object-fit:contain;margin:0 auto}.game-hero.chest{height:140px}
.module-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.module-grid button{height:220px;border:0;border-radius:25px;background:#fff;box-shadow:0 6px 0 #e4e8f2;padding:12px}.module-grid img{width:100%;height:155px;object-fit:contain}.module-grid b{font:800 21px var(--heading)}
.category-list{display:grid;gap:10px}.category-list button{height:64px;border:3px solid transparent;border-radius:20px;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 22px;font-size:19px}.category-list .chosen{border-color:#13857b;background:#e2f5ef}.game-start{margin-top:20px}
.game-progress{height:42px;background:#fff;border-radius:20px;margin-top:12px;padding:9px 16px;display:flex;justify-content:space-between}.object-scene{min-height:210px;display:flex;flex-wrap:wrap;align-content:center;justify-content:center;gap:5px}.object-scene img{width:54px;height:54px;object-fit:contain}
.shape-scene{height:210px;display:grid;place-items:center}.shape{display:inline-block;width:82px;height:82px;background:#1878ee}.shape.circle{border-radius:50%}.shape.triangle{clip-path:polygon(50% 0,100% 100%,0 100%);background:#ffc928}.shape.star{clip-path:polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 93%,50% 71%,21% 93%,32% 57%,2% 35%,39% 35%);background:#ffb400}.shape.rectangle{width:110px;height:70px}.shape.oval{border-radius:50%;width:110px}
.letter-model{height:200px;display:grid;place-items:center;font:800 120px var(--heading);color:#126ae3}.answer-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.answer-grid button,.set-grid button{min-height:72px;border:3px solid #cbe8f6;border-radius:18px;background:#fff;font:800 25px var(--heading)}.set-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.set-grid .picked{border-color:#19a867;background:#ddf8e9}
.clue{min-height:150px;display:flex;align-items:center;background:#fff;border-radius:24px;padding:12px}.clue img{width:120px}.clue p{font:800 22px var(--heading)}.word-built,.tile-bank{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;min-height:66px;margin:12px 0}.word-built span,.tile-bank button{width:52px;height:58px;border:2px solid #cda55a;border-radius:12px;background:#fff5d5;font:800 28px var(--heading)}.tile-bank button:disabled{opacity:.25}
.secondary,.hint{min-height:48px;border:2px solid var(--border);border-radius:22px;background:#fff;padding:0 22px;font-weight:800;margin:7px}.compact{width:auto;min-height:50px;padding:0 28px}.memory-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.memory-grid button{aspect-ratio:1;border:0;border-radius:14px;background:#176ee0;color:#fff;font:800 26px var(--heading)}.memory-grid .open{background:#fff;color:var(--ink);border:2px solid #ffc928}
.feedback{position:absolute;left:0;right:0;bottom:0;padding:20px;background:#fff;box-shadow:0 -8px 30px #16324f26;z-index:6}.feedback.ok{background:#d8f8e7}.feedback.bad{background:#fff0dc}.feedback h2,.feedback p{margin:4px}.result-gecko{display:block;width:240px;height:300px;object-fit:contain;margin:auto}.result-card{text-align:center;background:#fff;border-radius:24px;padding:20px}.stars{font-size:45px;color:#ffb400}
.exit-dialog{position:fixed;inset:0;background:#202b4877;z-index:20;display:grid;place-items:end center}.exit-dialog>div{width:min(100%,430px);background:#fff;border-radius:28px 28px 0 0;padding:28px;text-align:center}
.menu-label{font:800 21px var(--heading);margin:18px 0 7px}.mode-list{display:grid;grid-template-columns:1fr 1fr;gap:8px}.mode-list button{min-height:54px;border:3px solid transparent;border-radius:18px;background:#fff;font-weight:800}.mode-list .chosen{border-color:#13857b;background:#e2f5ef}.level-picker{display:flex;align-items:center;justify-content:center;gap:16px;margin:14px 0}.level-picker button{width:44px;height:44px;border:0;border-radius:50%;background:#fff;font:800 25px var(--heading)}.level-picker strong{font:800 25px var(--heading)}.mo-menu{padding-bottom:28px}.mo-menu .game-hero{height:105px}.memory-grid img{width:90%;height:90%;object-fit:contain}.new-badges{display:grid;gap:6px;margin:12px 0;padding:12px;border-radius:16px;background:#fff7d8}.new-badges span{font-weight:800}
/* Exercise tokens preserve the engine's geometry, identity and colour. */
.exercise-controls{border:0;margin:0;padding:0;min-width:0}.exercise-controls:disabled{opacity:1}
.object-scene{display:block;position:relative;width:100%;min-height:0;aspect-ratio:1.25;margin:10px auto}
.placed-object{position:absolute;transform:translate(-50%,-50%);display:block;aspect-ratio:1}
.object-scene .placed-object img{display:block;width:100%;height:100%;object-fit:contain}
.answer-grid button{display:flex;align-items:center;justify-content:center;overflow:hidden;min-height:112px;padding:12px}
.answer-grid .shape{flex-shrink:0;width:64px;height:64px}.answer-grid .shape.rectangle{width:84px;height:52px}.answer-grid .shape.oval{width:84px}
.shape{background:var(--blue)}.shape.triangle,.shape.star{background:var(--blue)}
.group-choices{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.group-choices:has(button:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}
.group-choices button{padding:4px}.group-choices .object-scene{margin:0}
.set-grid button{display:flex;align-items:center;justify-content:center;min-height:96px;padding:10px;overflow:hidden}.set-grid img{width:60px;height:60px;object-fit:contain}.set-grid .shape{width:56px;height:56px}.set-grid .shape.rectangle,.set-grid .shape.oval{width:64px}
.letter-picture{height:220px;display:grid;place-items:center}.letter-picture img{width:180px;height:180px;object-fit:contain}.letter-choice{font:800 48px var(--heading)}
.word-built span{display:grid;place-items:center;width:42px;height:52px}.word-built span.fixed{background:#d8f8e7;border-color:#13857b}.tile-bank button{width:48px;min-height:52px}.word-built{gap:5px}.tile-bank{gap:7px}
.memory-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.memory-grid button{display:grid;place-items:center;min-width:48px;min-height:64px;padding:6px}.memory-grid:has(button:nth-child(4):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}
.memory-grid img{width:100%;height:100%;min-height:0;object-fit:contain}.memory-quantity{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px}.memory-quantity img{width:22px;height:22px}
.progress-dots{display:flex;align-items:center;gap:5px;flex:1;margin-right:12px}.progress-dots span{flex:1;height:10px;border-radius:10px;background:#dce5e8}.progress-dots .done{background:#13857b}.progress-dots .current{background:var(--yellow)}
.game-progress{align-items:center;height:auto;min-height:44px;font-size:14px}.game-progress b{white-space:nowrap}
.game-intro{position:fixed;inset:0;background:#202b4877;z-index:15;display:grid;align-items:end;justify-items:center}.game-intro>div{width:min(100%,430px);background:var(--cream);border-radius:30px 30px 0 0;padding:24px;text-align:center;max-height:90dvh;overflow:auto}.game-intro img{height:160px;width:180px;object-fit:contain}.game-intro h2{font:800 32px var(--heading);margin:6px}.game-intro p{font-size:20px;font-weight:800}
.feedback{position:fixed;left:50%;right:auto;transform:translateX(-50%);width:min(100%,430px);max-height:55dvh;overflow:auto;border-radius:24px 24px 0 0}.feedback strong{display:block}
.level-picker button{width:48px;height:48px}.game-head button{min-width:48px;min-height:48px}.game button:focus-visible{outline:4px solid var(--ink);outline-offset:3px}.game button:disabled{cursor:default}.game .primary:disabled{box-shadow:none;opacity:.65}
body[data-animation=false] *,body[data-animation=false] *::before,body[data-animation=false] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(min-width:700px){.memory-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.memory-grid:has(button:nth-child(4):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}}
.availability{text-align:center;color:var(--muted);font-weight:800}

@media (min-width:768px){
  .game{padding-bottom:64px}
  .game-head{grid-template-columns:64px 1fr 64px;padding-bottom:24px;border-bottom:1px solid #202b4814;gap:20px}
  .game-head strong{font-size:30px}.game-head button{width:58px;height:58px;box-shadow:0 3px 0 #e3e8f1}.game-lang{border:1px solid var(--border);padding:12px;border-radius:16px;background:#fff;font-size:17px}
  .menu-intro{display:flex;flex-direction:row-reverse;justify-content:space-between;align-items:center;gap:40px;margin:28px 0 36px;min-height:160px}
  .menu-intro h1{font:800 clamp(34px,4vw,48px)/1.2 var(--heading);margin:0;text-wrap:balance;text-align:left}
  .menu-intro .game-hero,.menu-intro .game-hero.chest{width:180px;height:170px;margin:0;flex-shrink:0}
  .module-grid{gap:28px}.module-grid button{height:clamp(250px,25dvh,350px);border:1px solid #e3e8f1;border-radius:30px;padding:24px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px}
  .module-grid img{height:165px;max-width:230px}.module-grid b{font-size:30px}
  .mo-setup{display:grid;grid-template-columns:1fr 1fr;gap:36px;align-items:start}
  .setup-categories,.setup-options{padding:28px;background:#fff8;border:1px solid var(--border);border-radius:28px}
  .category-list{gap:16px}.category-list button{height:82px;font-size:22px}.menu-label{font-size:25px;margin:0 0 20px}
  .mode-list{grid-template-columns:1fr;gap:16px}.mode-list button{height:78px;font-size:20px;text-align:left;padding:18px 24px}
  .level-picker{justify-content:space-between;margin:28px 0}.level-picker b{margin-right:auto;font-size:20px}.level-picker strong{font-size:30px}.availability{margin:24px 0;font-size:18px}.game-start{margin-top:0}
  .game-progress{margin-top:28px;padding:16px 24px;min-height:64px;font-size:17px}.progress-dots{gap:10px;margin-right:28px}.progress-dots span{height:12px}
  .playing>h1{font-size:clamp(30px,3.5vw,42px);line-height:1.25;max-width:1100px;margin:36px auto;text-wrap:balance}
  .exercise-controls{display:block}.exercise-controls:has(.exercise-visual){display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:48px}
  .exercise-response{min-width:0;width:100%}.exercise-response:only-child{max-width:1000px;margin:0 auto}
  .exercise-visual{min-width:0;display:grid;place-items:center;min-height:350px;padding:28px;background:#fff8;border:1px solid var(--border);border-radius:30px}
  .exercise-visual .object-scene{width:100%;max-width:500px;margin:0}.shape-scene,.letter-model,.letter-picture{height:300px}.letter-model{font-size:180px}.letter-picture img{width:240px;height:240px}
  .answer-grid{gap:20px}.answer-grid button{min-height:150px;font-size:36px;border-radius:24px}.answer-grid .shape{width:88px;height:88px}.answer-grid .shape.rectangle,.answer-grid .shape.oval{width:114px}
  .set-grid{gap:16px}.set-grid button{min-height:120px}.set-grid img{width:80px;height:80px}
  .clue{display:flex;flex-direction:column;background:transparent;gap:20px;padding:0;text-align:center}.clue img{width:180px;height:210px;object-fit:contain}.clue p{font-size:28px;line-height:1.4;margin:0}
  .word-built{margin:0 0 28px;gap:8px}.word-built span{width:50px;height:62px;font-size:32px}.tile-bank{gap:10px;margin:24px 0}.tile-bank button{width:54px;height:62px;font-size:31px}
  .exercise-response>[data-g=word-check]{display:block;width:100%;margin:20px 0 8px}.exercise-response>.hint{margin-left:0}.exercise-response>[data-g=clear]{margin-left:0}
  .memory-grid,.memory-grid:has(button:nth-child(4):last-child){grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;margin:0 auto}.memory-grid button{border-radius:24px;font-size:42px;min-height:140px;max-height:260px}.memory-grid img{max-height:220px}.memory-quantity img{width:40px;height:40px}
  .feedback{width:calc(100% - 80px);max-width:1100px;bottom:24px;border-radius:28px;padding:24px 28px;display:grid;grid-template-columns:1fr 200px;gap:4px 28px;border:1px solid #16324f14;max-height:35dvh}
  .feedback h2{font:800 28px var(--heading)}.feedback p,.feedback strong{font-size:18px;line-height:1.5}.feedback button{grid-column:2;grid-row:1/4;align-self:center;margin:0;min-height:64px;width:200px}
  .game-intro,.exit-dialog{place-items:center;align-items:center;backdrop-filter:blur(5px)}
  .game-intro>div,.exit-dialog>div{width:min(calc(100% - 80px),560px);border-radius:32px;padding:40px;box-shadow:0 24px 100px #16324f30}.game-intro img{height:190px;width:220px}.game-intro p{font-size:22px;line-height:1.5}
  .game-result{display:grid;grid-template-columns:1fr 1fr;align-content:center;gap:24px 48px}.game-result>.game-head{grid-column:1/-1}.game-result>.result-gecko{grid-column:1;grid-row:2/4;width:100%;height:min(55dvh,550px)}.game-result>h1{grid-column:2;margin:30px 0 0}.result-card{grid-column:2;padding:32px;border:1px solid var(--border);box-shadow:0 8px 0 #e3e8f1}.result-card p{font-size:20px}.result-card .stars{font-size:60px}.new-badges{padding:20px;gap:12px}
}
@media (min-width:1100px){.module-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.module-grid button{height:300px}.module-grid img{height:170px;max-width:190px}}

/* Studio theme: clear hierarchy, flat controls and generous reading space. */
.game{padding-top:24px}.game-head{grid-template-columns:50px 1fr 50px;padding-bottom:18px;border-bottom:1px solid var(--border)}.game-head button{border:1px solid var(--border);border-radius:16px;background:#fff;font-size:34px;box-shadow:none}.game-head strong{font-size:21px;font-weight:750;letter-spacing:-.035em}.game-lang{font-size:12px;font-weight:800;color:var(--muted)}
.menu-intro{position:relative;display:flex;flex-direction:row-reverse;align-items:center;justify-content:space-between;gap:20px;background:#e8edfc;border-radius:26px;padding:24px;margin:24px 0}.menu-intro h1{font-size:29px;line-height:1.12;letter-spacing:-.045em;text-align:left;margin:0;font-weight:800}.menu-intro .game-hero,.menu-intro .game-hero.chest{width:100px;height:120px;margin:0;flex-shrink:0}.mo-menu .menu-intro{background:#ffede4}
.module-grid button{height:206px;border:1px solid var(--border);border-radius:24px;background:#fff;box-shadow:none;padding:18px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px}.module-grid button:nth-child(2){background:#fff0e8;border-color:#f3e0d6}.module-grid button:nth-child(3){background:#eaf3ee;border-color:#dbe8df}.module-grid button:nth-child(4){background:#efeafb;border-color:#e1dbf0}.module-grid img{height:120px;max-width:100%;object-fit:contain}.module-grid b{font-size:20px;font-weight:750;letter-spacing:-.035em}
.category-list button{border:2px solid var(--border);border-radius:18px;font-size:17px;font-weight:650}.category-list .chosen,.mode-list .chosen{border-color:var(--blue);background:#edf1ff;color:#2749be}.mode-list button{border:2px solid var(--border);border-radius:16px;font-size:14px;font-weight:650}.menu-label{font-weight:750;font-size:20px;letter-spacing:-.035em;margin:26px 0 14px}.level-picker{padding:14px 0;gap:16px}.level-picker button{border:1px solid var(--border);border-radius:14px;font-size:24px;min-width:48px;min-height:48px}.level-picker strong{font-size:25px}.availability{font-size:13px;line-height:1.5}.game-progress{background:#fff;border:1px solid var(--border);border-radius:16px;min-height:50px;font-size:12px;padding:12px;margin-top:24px}.progress-dots .done{background:#4a9274}.progress-dots .current{background:var(--blue)}
.playing>h1{font-size:26px;line-height:1.22;margin:26px 0;text-align:center;letter-spacing:-.04em}.answer-grid button,.set-grid button{border:2px solid #dce2ef;border-radius:20px;font-size:27px;box-shadow:0 3px 0 #e8edf6}.set-grid .picked{border-color:#4a9274;background:#edf7f0}.letter-model{font-size:120px;color:var(--blue)}.letter-choice{font-size:48px;font-weight:800}.clue{background:#fff;border:1px solid var(--border);border-radius:24px;padding:18px;gap:10px}.clue p{font-weight:650;font-size:19px;line-height:1.5;letter-spacing:-.02em}.clue img{width:90px;object-fit:contain}
.word-built span,.tile-bank button{border:1px solid #cdd6ec;border-radius:12px;background:#fff;font-size:25px;font-weight:750;color:var(--ink)}.word-built span{background:#e9eefb;border-color:#dce3f4}.word-built span.fixed{background:#e0f2e7;border-color:#6aa986}.tile-bank button{box-shadow:0 3px 0 #dfe5f2}.tile-bank button:disabled{box-shadow:none;opacity:.2}.secondary,.hint{border:1px solid var(--border);border-radius:14px;font-size:14px;font-weight:650;min-height:48px;margin:8px 8px 8px 0}.hint{background:#fff0e8;border-color:#f1d8c9}.memory-grid button{background:#3458d4;border-radius:18px;font-size:30px;box-shadow:0 4px 0 #2845a8}.memory-grid .open{background:#fff;color:var(--ink);border:2px solid #8bb6a0;box-shadow:none}.feedback{border:1px solid #d7e6dd;box-shadow:0 -8px 36px #202b4810}.feedback.ok{background:#e9f6ee}.feedback.bad{background:#fff0e8}.feedback h2{font-size:24px;font-weight:800;letter-spacing:-.04em}.feedback p,.feedback strong{font-size:15px;line-height:1.6}.feedback button{margin-top:18px}.game-intro>div,.exit-dialog>div{background:#fff;padding:30px;border:1px solid var(--border);box-shadow:0 24px 80px #202b4820}.game-intro h2{font-size:30px;font-weight:800;letter-spacing:-.05em}.game-intro p{font-size:17px;font-weight:500;line-height:1.65;color:var(--muted)}.exit-dialog h2{font-size:26px}.result-card{border:1px solid var(--border);box-shadow:none;padding:26px}.result-card p{line-height:1.6;color:var(--muted)}.stars{color:#dd9754}.new-badges{background:#edf1ff;border:1px solid #dfe6fb;padding:18px}.new-badges span{font-weight:650}
@media(min-width:768px){
 .game{padding:40px clamp(32px,4.5vw,72px) 64px}.game-head{grid-template-columns:58px 1fr 58px;padding-bottom:24px}.game-head strong{font-size:25px}.game-lang{font-size:13px;background:transparent;border:0}.menu-intro{min-height:200px;padding:32px 40px;margin:28px 0 32px}.menu-intro h1{font-size:clamp(34px,3.5vw,48px);max-width:650px}.menu-intro .game-hero,.menu-intro .game-hero.chest{width:180px;height:170px}.module-grid{gap:24px}.module-grid button{height:280px;padding:28px;gap:24px}.module-grid img{height:180px}.module-grid b{font-size:27px}.mo-setup{gap:28px}.setup-categories,.setup-options{background:#fff;border:1px solid var(--border);border-radius:26px;padding:28px}.menu-label{font-size:22px;margin:0 0 18px}.category-list button{height:80px;font-size:19px}.mode-list button{height:74px;font-size:17px;padding:16px}.level-picker b{font-size:16px}.availability{font-size:15px}.game-progress{font-size:15px;padding:18px 24px}.playing>h1{font-size:clamp(30px,3vw,40px);max-width:1100px;margin:36px auto}.exercise-controls:has(.exercise-visual){gap:36px}.exercise-visual{background:#e9eefb;border-color:#e0e6f4;min-height:380px;border-radius:28px;padding:32px}.clue{background:transparent;border:0;padding:0;gap:24px}.clue img{width:180px;height:210px}.clue p{font-size:25px;line-height:1.5}.answer-grid button{min-height:154px;font-size:34px}.word-built span{font-size:30px}.tile-bank button{font-size:28px}.feedback h2{font-size:26px}.feedback p,.feedback strong{font-size:17px}.feedback button{margin:0}.game-intro>div,.exit-dialog>div{padding:40px}.game-intro p{font-size:20px}.result-card{padding:36px}.game-result>h1{font-size:42px}.result-card p{font-size:18px}
}
@media(min-width:1100px){.module-grid button{height:320px}.module-grid img{height:190px}}
.primary.compact{display:inline-flex}
.exit-dialog>div{display:grid;gap:16px;text-align:left}
.exit-dialog h2{margin:0 0 8px;text-align:center}
.exit-dialog .primary,.exit-dialog .secondary{width:100%;margin:0;justify-content:center}
/* Carry the warmer theme through play, with semantic feedback colours preserved. */
.menu-intro,.exercise-visual{background:#e8efdf;border-color:#dce5d4}.mo-menu .menu-intro{background:#faeadd}.category-list .chosen,.mode-list .chosen{background:#edf4e8;color:#205841;border-color:var(--blue)}.game-intro>div{background:#fcfdf9}.letter-model{color:var(--blue)}.memory-grid button{background:#286d56;box-shadow:0 4px 0 #1a4e3d}.memory-grid .open{background:#fff;box-shadow:none}.word-built span{background:#f0f4e9;border-color:#dce4d1}.word-built span.fixed{background:#e0f2e7}.tile-bank button{border-color:#d7dfce;box-shadow:0 3px 0 #e4e9dc}.new-badges{background:#f8f0dc;border-color:#ebe0c4}.game-head .game-lang{color:var(--muted)}

/* Responsive play workspace: keep feedback in flow and preserve touch targets. */
.game{padding-bottom:calc(32px + env(safe-area-inset-bottom));padding-left:max(18px,env(safe-area-inset-left));padding-right:max(18px,env(safe-area-inset-right))}
.game-head{grid-template-columns:48px minmax(0,1fr) 48px}.game-head strong{overflow-wrap:anywhere}
.exercise-controls,.exercise-response,.exercise-visual{min-width:0}
.game-progress{gap:8px;flex-wrap:wrap}.progress-dots{min-width:80px;margin-right:0}
.playing .feedback{position:static;transform:none;width:100%;max-width:none;max-height:none;margin:24px 0 0;border-radius:22px;padding:20px;scroll-margin:16px}
.feedback button{min-height:48px}.feedback p,.feedback strong{overflow-wrap:anywhere}
.game-intro>div,.exit-dialog>div{max-height:calc(100dvh - 24px);overflow:auto;padding-bottom:calc(24px + env(safe-area-inset-bottom))}
.word-built{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);width:100%;max-width:640px;margin:16px auto;gap:clamp(2px,1vw,8px);min-height:0}
.word-built span{width:100%;min-width:0;height:auto;min-height:38px;height:clamp(38px,12vw,62px);font-size:clamp(16px,4vw,30px)}
.tile-bank{gap:8px;margin:20px 0}.tile-bank button{width:48px;height:52px;min-height:48px;flex-shrink:0}
.memory-grid{width:100%;max-width:760px;margin-inline:auto;gap:clamp(8px,2vw,20px)}
.memory-grid button{width:100%;height:auto;min-height:48px;max-height:none;aspect-ratio:1;overflow:hidden}
.memory-grid img{max-width:100%;max-height:100%;object-fit:contain}.memory-quantity{max-width:100%}.memory-quantity img{width:100%;height:auto;aspect-ratio:1}
.answer-grid,.set-grid{min-width:0}.answer-grid button,.set-grid button{min-width:0;overflow-wrap:anywhere}
@media(max-width:767px){
 .game{padding-top:max(16px,env(safe-area-inset-top))}.game-head{padding-bottom:12px}
 .game-progress{margin-top:16px}.playing>h1{font-size:clamp(22px,5.8vw,28px);margin:20px 0;line-height:1.3}
 .exercise-visual{padding:16px;background:#e8efdf;border:1px solid #dce5d4;border-radius:22px;margin-bottom:18px}
 .exercise-visual .shape-scene,.exercise-visual .letter-model,.exercise-visual .letter-picture{height:clamp(130px,24dvh,210px)}
 .exercise-visual .object-scene{max-width:300px;margin:0 auto}.letter-picture img{max-width:100%;height:150px}
 .clue{background:transparent;border:0;padding:0;gap:12px}.clue img{width:72px;flex-shrink:0}.clue p{font-size:17px;margin:0;line-height:1.5}
 .answer-grid button{min-height:88px;padding:10px}.set-grid button{min-height:80px;padding:6px}.set-grid img{max-width:100%;height:52px}
 .memory-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-width:420px}
 .module-grid button{height:auto;min-height:180px;padding:14px;gap:12px}.module-grid img{height:110px}.module-grid b{font-size:18px}
 .level-picker{gap:10px;flex-wrap:wrap}.mode-list button{padding:12px 8px;line-height:1.4}.category-list button{height:auto;min-height:64px;padding:14px 18px}
 .result-gecko{width:min(60%,220px);height:200px}.result-card{padding:20px}
}
@media(min-width:768px){
 .game{padding-left:max(32px,env(safe-area-inset-left));padding-right:max(32px,env(safe-area-inset-right))}
 .playing .exercise-controls{max-width:1200px;margin-inline:auto}.playing .feedback{max-width:1200px;margin-inline:auto}
 .exercise-visual{min-height:300px}.memory-grid button{min-height:80px}
}
@media(min-width:600px) and (max-height:500px){
 .game{padding-top:12px}.game-head{padding-bottom:8px}.game-progress{margin-top:12px}.playing>h1{font-size:23px;margin:16px 0}
 .exercise-controls:has(.exercise-visual){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:center}
 .exercise-visual{margin:0;min-height:180px;padding:14px}.exercise-visual .object-scene{max-width:230px}.exercise-visual .shape-scene,.exercise-visual .letter-model,.exercise-visual .letter-picture{height:160px}
 .clue{flex-direction:column;gap:8px}.clue img{height:90px;width:90px}.memory-grid{grid-template-columns:repeat(4,minmax(0,1fr));max-width:600px}
 .game-intro>div{display:grid;grid-template-columns:100px minmax(0,1fr);gap:8px 20px;text-align:left;padding:20px}.game-intro img{width:100px;height:120px;grid-row:1/4}.game-intro h2{font-size:25px}.game-intro p{font-size:16px;margin:0}.game-intro .primary{grid-column:2}
}
