[hidden]{display:none!important}.games-banner{position:relative;display:flex;align-items:center;justify-content:space-between;gap:18px;background:var(--hero);border:1px solid var(--line);border-radius:28px;padding:32px 42px;overflow:hidden}.games-banner h1{font-size:clamp(32px,5vw,49px);margin:10px 0}.games-banner p{color:var(--muted);max-width:650px}.games-mascot{width:clamp(78px,20vw,175px);height:auto;object-fit:contain}.game-note{font-size:12px;margin-top:10px}.games-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:27px 0 15px}.games-heading h2{font-size:23px}.age-filter{display:flex;gap:5px;flex-wrap:wrap}.age-filter button,.game-secondary{border:1px solid var(--line);background:var(--surface);border-radius:12px;padding:9px 12px;min-height:44px;font-weight:600}.age-filter button[aria-pressed=true]{background:var(--soft);color:var(--accent);border-color:var(--accent)}.game-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.game-card{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:22px;overflow:hidden;box-shadow:var(--shadow)}.game-cover{display:flex;align-items:center;justify-content:space-between;height:130px;padding:14px 20px;background:var(--cover);color:#392e52}.game-cover img{height:105px;width:90px;object-fit:contain}.game-cover span{font-size:42px}.game-card-body{padding:17px;display:flex;flex-direction:column;flex:1;gap:8px}.game-card h3{font-size:18px;line-height:1.4}.game-card p{color:var(--muted);font-size:13px;flex:1}.game-age{color:var(--accent);font-size:12px;font-weight:700}.game-card .primary{width:100%;margin-top:5px}.game-panel{background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:clamp(15px,4vw,34px);margin-top:22px}.game-toolbar,.game-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}.game-heading{margin-top:20px}.game-heading h2{font-size:clamp(22px,3vw,29px)}#game-progress{font-size:13px;color:var(--accent);font-weight:700}#game-instruction{font-size:18px;font-weight:600;margin:13px 0}#read-question{font-size:13px;margin-bottom:16px}#game-board{margin:8px 0 16px}#game-feedback{min-height:42px;color:var(--accent);font-size:16px;font-weight:600;margin:10px 0}#game-next{min-width:150px}.question-picture{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:10px;font-size:56px;min-height:90px;margin:10px 0 20px}.question-picture img{width:90px;height:95px;object-fit:contain}.choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr));gap:12px}.choice{border:2px solid var(--line);border-radius:18px;background:var(--hero);min-height:100px;display:grid;place-items:center;align-content:center;gap:8px;padding:16px 10px;font-size:16px;font-weight:700}.choice .symbol{font-size:38px}.choice:disabled{cursor:default}.choice.good{border-color:#329b6b;background:#d9f3e4;color:#215b3f}.choice.try{border-color:#d29d42}.memory-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;max-width:580px;margin:auto}.memory-card{aspect-ratio:1;display:grid;place-items:center;border:2px solid var(--line);border-radius:18px;background:var(--soft);font-size:36px;color:var(--accent);padding:8px}.memory-card img{width:100%;height:100%;object-fit:contain;max-height:105px}.memory-card.flipped{background:var(--hero)}.memory-card.matched{background:#d9f3e4;border-color:#329b6b}.difference{display:grid;grid-template-columns:1fr 1fr;gap:14px;max-width:650px;margin:auto}.difference h3{text-align:center;font-size:15px;margin-bottom:8px}.difference-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:6px;background:var(--hero);border-radius:16px;padding:8px}.diff-tile{display:grid;place-items:center;aspect-ratio:1;border:2px solid var(--line);border-radius:12px;background:var(--surface);padding:5px}.diff-tile img{width:100%;height:100%;max-height:105px;object-fit:contain}.diff-tile.good{border-color:#329b6b;background:#d9f3e4}.puzzle-wrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:20px}.puzzle-preview{width:110px;text-align:center;color:var(--muted);font-size:12px}.puzzle-preview img{width:100%;height:auto}.puzzle-grid{width:min(100%,340px);display:grid;gap:5px;aspect-ratio:1}.puzzle-piece{background-repeat:no-repeat;border:2px solid var(--line);border-radius:8px;min-width:0;min-height:0;background-color:var(--hero)}.puzzle-piece.selected{outline:3px solid var(--accent);outline-offset:1px}.win{text-align:center;padding:25px 10px}.win img{width:105px;height:120px;object-fit:contain}.win h3{font-size:26px}.win p{margin-top:10px;color:var(--muted)}.sound-play{display:block;margin:0 auto 20px;min-height:54px}.shape-symbol{display:inline-block;width:56px;height:56px;background:#7861d8}.shape-symbol.circle{border-radius:50%;background:#de795f}.shape-symbol.triangle{clip-path:polygon(50% 0,100% 100%,0 100%);background:#329b6b}.shape-symbol.square{border-radius:5px}.shape-symbol.rectangle{width:75px;height:42px;background:#dc9c29;border-radius:5px}@media(max-width:767px){.game-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.games-banner{padding:23px 15px;border-radius:22px}.game-cover{height:100px;padding:10px}.game-cover img{height:80px;width:67px}.game-cover span{font-size:30px}.game-card-body{padding:12px}.game-card h3{font-size:15px}.game-card p{font-size:12px}.game-panel{padding:16px}.memory-grid{gap:7px}.memory-card{border-radius:12px;padding:4px}.choices{grid-template-columns:1fr 1fr}.choice{font-size:14px;min-height:90px}.question-picture{font-size:42px}.question-picture img{width:65px;height:70px}.difference{gap:7px}.difference-grid{gap:4px;padding:5px}.diff-tile{padding:3px}.game-heading h2{font-size:20px}}@media(max-width:360px){.game-grid{grid-template-columns:1fr}.choices{grid-template-columns:1fr}}

#voice-status{font-size:.82rem;color:var(--muted);margin:.35rem 0}#voice-status:empty{display:none}

/* Large listening control for little hands. */
.sound-play{width:min(100%,360px);min-height:68px;padding:16px 20px;font-size:clamp(18px,3vw,22px);font-weight:700;line-height:1.35;border-radius:18px;white-space:normal;touch-action:manipulation}.sound-play[aria-busy=true]{background:#5141ab;color:#fff}.sound-play:focus-visible{outline:3px solid var(--accent);outline-offset:4px}

/* Programmatic heading focus remains available to screen readers. Interactive controls retain their focus rings. */
#game-title:focus{outline:none;box-shadow:none}
