:root{font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;line-height:1.5;font-weight:400;--primary-blue: #74b9ff;--primary-dark-blue: #0984e3;--success-green: #00b894;--warning-yellow: #fdcb6e;--error-red: #e17055;--light-gray: #f8f9fa;--dark-gray: #333;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{box-sizing:border-box}body{margin:0;padding:0;min-height:100vh;background:#f5f6fa;color:#333;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif}h1,h2,h3,h4,h5,h6{margin:0;font-weight:700}button{font-family:inherit;cursor:pointer;border:none;outline:none;transition:all .3s ease}button:disabled{cursor:not-allowed;opacity:.6}button:focus-visible{outline:3px solid var(--primary-blue);outline-offset:2px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.game-hub{min-height:100vh;background:linear-gradient(135deg,#667eea,#764ba2);padding:2rem;display:flex;flex-direction:column;align-items:center}.hub-header{text-align:center;margin-bottom:3rem}.hub-title{font-size:3rem;color:#fff;margin-bottom:1rem;text-shadow:2px 2px 4px rgba(0,0,0,.3);font-weight:700}.hub-subtitle{font-size:1.5rem;color:#f0f0f0;margin:0}.games-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:2rem;max-width:1200px;width:100%;margin-bottom:3rem}.game-card{background:#fff;border-radius:20px;padding:2rem;text-align:center;cursor:pointer;transition:all .3s ease;box-shadow:0 8px 25px #00000026;border:3px solid transparent}.game-card:hover{transform:translateY(-10px);box-shadow:0 15px 35px #0003;border-color:#ffffff4d}.game-icon{font-size:4rem;margin-bottom:1rem;display:block}.game-card-title{font-size:1.8rem;margin-bottom:1rem;color:#fff;font-weight:700;text-shadow:1px 1px 2px rgba(0,0,0,.3)}.game-card-description{font-size:1.1rem;color:#ffffffe6;margin-bottom:1.5rem;line-height:1.4}.play-button{background:#fff3;color:#fff;border:2px solid white;padding:.8rem 2rem;border-radius:25px;font-size:1.1rem;font-weight:700;cursor:pointer;transition:all .3s ease}.play-button:hover{background:#fff;color:#333;transform:scale(1.05)}.hub-footer{text-align:center;color:#fff;font-size:1.2rem;margin-top:auto}@media (max-width: 768px){.hub-title{font-size:2.5rem}.hub-subtitle{font-size:1.2rem}.games-grid{grid-template-columns:1fr;gap:1.5rem}.game-card{padding:1.5rem}.game-icon{font-size:3rem}.game-card-title{font-size:1.5rem}}.game-layout{min-height:100vh;background:linear-gradient(135deg,#74b9ff,#0984e3);display:flex;flex-direction:column}.game-header{background:#ffffff1a;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);padding:1rem 2rem;display:flex;justify-content:space-between;align-items:center;border-bottom:2px solid rgba(255,255,255,.2)}.back-button{background:#fff3;color:#fff;border:2px solid white;padding:.5rem 1rem;border-radius:25px;font-size:1rem;cursor:pointer;transition:all .3s ease}.back-button:hover{background:#fff;color:#0984e3;transform:scale(1.05)}.game-title{font-size:2rem;color:#fff;margin:0;text-shadow:2px 2px 4px rgba(0,0,0,.3);font-weight:700}.game-controls{display:flex;align-items:center;gap:1rem}.help-button{background:#fff3;color:#fff;border:2px solid white;width:40px;height:40px;border-radius:50%;font-size:1.2rem;cursor:pointer;transition:all .3s ease;display:flex;align-items:center;justify-content:center}.help-button:hover{background:#fff;color:#0984e3;transform:scale(1.1)}.score-display{background:#fff3;color:#fff;padding:.5rem 1rem;border-radius:20px;font-weight:700;border:2px solid rgba(255,255,255,.3)}.instructions-panel{position:fixed;inset:0;background:#000000b3;display:flex;align-items:center;justify-content:center;z-index:1000}.instructions-content{background:#fff;padding:2rem;border-radius:20px;max-width:500px;text-align:center;box-shadow:0 10px 30px #0000004d}.instructions-content h3{color:#0984e3;margin-bottom:1rem;font-size:1.5rem}.instructions-content p{font-size:1.1rem;line-height:1.5;margin-bottom:1.5rem;color:#333}.close-instructions{background:#0984e3;color:#fff;border:none;padding:.8rem 2rem;border-radius:25px;font-size:1rem;cursor:pointer;transition:all .3s ease}.close-instructions:hover{background:#74b9ff;transform:scale(1.05)}.game-content{flex:1;padding:2rem;display:flex;flex-direction:column;align-items:center;justify-content:center}@media (max-width: 768px){.game-header{padding:1rem;flex-direction:column;gap:1rem}.game-title{font-size:1.5rem}.game-controls{order:-1}.instructions-content{margin:1rem;padding:1.5rem}.game-content{padding:1rem}}.counting-game{max-width:800px;width:100%;text-align:center}.level-indicator{background:#fff3;color:#fff;padding:.5rem 1rem;border-radius:20px;font-weight:700;margin-bottom:2rem;display:inline-block}.counting-area{background:#fff;border-radius:20px;padding:2rem;box-shadow:0 10px 30px #0000001a}.counting-question{font-size:1.8rem;color:#333;margin-bottom:2rem;font-weight:700}.items-display{display:flex;flex-wrap:wrap;justify-content:center;gap:1rem;margin-bottom:2rem;min-height:120px;align-items:center;background:#f8f9fa;border-radius:15px;padding:1.5rem}.counting-item{font-size:3rem;animation:bounceIn .5s ease;transition:transform .3s ease}.counting-item:hover{transform:scale(1.1)}.number-options{display:grid;grid-template-columns:repeat(5,1fr);gap:1rem;margin-bottom:2rem}.number-button{background:#74b9ff;color:#fff;border:3px solid transparent;padding:1rem;border-radius:15px;font-size:1.5rem;font-weight:700;cursor:pointer;transition:all .3s ease;min-height:60px}.number-button:hover:not(:disabled){background:#0984e3;transform:scale(1.05)}.number-button.selected{border-color:#fdcb6e;background:#fdcb6e;color:#333}.number-button.correct{background:#00b894;border-color:#00b894;animation:correctPulse .6s ease}.number-button.incorrect{background:#e17055;border-color:#e17055;animation:shake .5s ease}@keyframes correctPulse{0%,to{transform:scale(1)}50%{transform:scale(1.1)}}.feedback{padding:1rem;border-radius:15px;margin-top:1rem;animation:slideUp .5s ease}.game-complete{display:flex;align-items:center;justify-content:center;min-height:60vh}.completion-message{background:#fff;border-radius:20px;padding:3rem;text-align:center;box-shadow:0 15px 35px #0000001a;max-width:500px}.completion-message h2{color:#00b894;margin-bottom:1rem;font-size:2rem}.final-score{font-size:1.5rem;color:#333;margin:1.5rem 0;font-weight:700}.completion-actions{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap}.play-again-button,.back-button{padding:1rem 2rem;border-radius:25px;font-size:1rem;font-weight:700;cursor:pointer;transition:all .3s ease;border:none}.play-again-button{background:#74b9ff;color:#fff}.play-again-button:hover{background:#0984e3;transform:scale(1.05)}.back-button{background:#ddd;color:#333}.back-button:hover{background:#bbb;transform:scale(1.05)}@media (max-width: 768px){.number-options{grid-template-columns:repeat(3,1fr)}.counting-item{font-size:2.5rem}.counting-question{font-size:1.5rem}.completion-actions{flex-direction:column}}.color-matching-game{max-width:800px;width:100%;text-align:center}.color-challenge{background:#fff;border-radius:20px;padding:2rem;box-shadow:0 10px 30px #0000001a}.color-question{font-size:1.8rem;color:#333;margin-bottom:2rem;font-weight:700}.target-color-display{margin-bottom:2rem}.target-color{display:inline-block;width:150px;height:150px;border-radius:20px;border:4px solid #333;display:flex;align-items:center;justify-content:center;margin:0 auto;box-shadow:0 8px 20px #0003;animation:colorPulse 2s infinite}@keyframes colorPulse{0%,to{transform:scale(1)}50%{transform:scale(1.05)}}.color-name{color:#fff;font-size:1.2rem;font-weight:700;text-shadow:2px 2px 4px rgba(0,0,0,.7);background:#0000004d;padding:.5rem 1rem;border-radius:10px}.color-options{display:grid;grid-template-columns:repeat(2,1fr);gap:1.5rem;margin-top:2rem}.color-option{width:120px;height:120px;border-radius:15px;border:4px solid transparent;cursor:pointer;transition:all .3s ease;display:flex;align-items:center;justify-content:center;margin:0 auto;position:relative;box-shadow:0 5px 15px #0003}.color-option:hover:not(:disabled){transform:scale(1.1);box-shadow:0 8px 25px #0000004d}.color-option.selected{border-color:#fdcb6e;transform:scale(1.1)}.color-option.correct{border-color:#00b894;animation:correctBounce .6s ease}.color-option.incorrect{border-color:#e17055;animation:shake .5s ease}@keyframes correctBounce{0%,to{transform:scale(1.1)}50%{transform:scale(1.2)}}.color-option-name{color:#fff;font-size:1rem;font-weight:700;text-shadow:2px 2px 4px rgba(0,0,0,.7);background:#0006;padding:.3rem .8rem;border-radius:8px}@media (max-width: 768px){.target-color{width:120px;height:120px}.color-options{grid-template-columns:repeat(2,1fr);gap:1rem}.color-option{width:100px;height:100px}.color-question{font-size:1.5rem}.color-name,.color-option-name{font-size:.9rem}}.spot-difference-game{max-width:900px;width:100%;text-align:center}.difference-challenge{background:#fff;border-radius:20px;padding:2rem;box-shadow:0 10px 30px #0000001a}.difference-question{font-size:1.8rem;color:#333;margin-bottom:1rem;font-weight:700}.difference-subtitle{font-size:1.2rem;color:#666;margin-bottom:2rem}.images-container{display:grid;grid-template-columns:1fr 1fr;gap:2rem;margin-bottom:2rem}.image-panel{background:#f8f9fa;border-radius:15px;padding:1.5rem;border:3px solid #e9ecef}.image-panel h4{color:#333;margin-bottom:1rem;font-size:1.3rem}.difference-image{background:#fff;border-radius:10px;padding:2rem;cursor:pointer;transition:all .3s ease;border:3px solid transparent;position:relative;min-height:150px;display:flex;align-items:center;justify-content:center}.difference-image:hover{border-color:#74b9ff;transform:scale(1.02)}.difference-image.modified{border-color:#fdcb6e}.emoji-display{display:flex;gap:1rem;flex-wrap:wrap;justify-content:center;align-items:center}.emoji-item{font-size:2.5rem;transition:transform .3s ease;padding:.5rem;border-radius:10px}.emoji-item:hover{transform:scale(1.1)}.emoji-item.difference-spot{background:#ffcb6e4d;border:2px dashed #fdcb6e;animation:highlight 2s infinite}@keyframes highlight{0%,to{background:#ffcb6e4d}50%{background:#ffcb6e99}}.found-marker{position:absolute;top:10px;right:10px;background:#00b894;color:#fff;padding:.5rem 1rem;border-radius:20px;font-weight:700;font-size:.9rem;animation:bounceIn .5s ease}.difference-hint{background:#e3f2fd;border:2px solid #2196f3;border-radius:15px;padding:1rem;margin:1.5rem 0;color:#1976d2;font-weight:700}@keyframes bounceIn{0%{transform:scale(0);opacity:0}50%{transform:scale(1.1)}to{transform:scale(1);opacity:1}}@media (max-width: 768px){.images-container{grid-template-columns:1fr;gap:1.5rem}.emoji-item{font-size:2rem}.difference-question{font-size:1.5rem}.difference-image{padding:1.5rem}}.pattern-game{max-width:800px;width:100%;text-align:center}.pattern-challenge{background:#fff;border-radius:20px;padding:2rem;box-shadow:0 10px 30px #0000001a}.pattern-question{font-size:1.8rem;color:#333;margin-bottom:1rem;font-weight:700}.pattern-subtitle{font-size:1.2rem;color:#666;margin-bottom:2rem}.pattern-display{display:flex;justify-content:center;gap:1rem;margin-bottom:3rem;padding:2rem;background:#f8f9fa;border-radius:15px;border:3px dashed #dee2e6}.pattern-item{width:80px;height:80px;border-radius:15px;display:flex;align-items:center;justify-content:center;border:3px solid #dee2e6;background:#fff;transition:all .3s ease}.pattern-item.filled{border-color:#74b9ff;box-shadow:0 4px 12px #74b9ff4d}.pattern-item.blank{border-color:#fdcb6e;border-style:dashed;background:#fff9e6;animation:pulse 2s infinite}@keyframes pulse{0%,to{transform:scale(1)}50%{transform:scale(1.05)}}.pattern-content{font-size:2rem;font-weight:700}.pattern-content.correct{animation:correctBounce .6s ease}.pattern-content.incorrect{animation:shake .5s ease}@keyframes correctBounce{0%,to{transform:scale(1)}50%{transform:scale(1.2)}}.color-square{width:50px;height:50px;border-radius:8px;border:2px solid #333}.blank-placeholder{font-size:2.5rem;color:#fdcb6e;font-weight:700}.pattern-options h4{color:#333;margin-bottom:1.5rem;font-size:1.3rem}.options-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;max-width:400px;margin:0 auto}.pattern-option{width:70px;height:70px;border-radius:12px;border:3px solid transparent;background:#f8f9fa;cursor:pointer;transition:all .3s ease;display:flex;align-items:center;justify-content:center;font-size:1.5rem;font-weight:700}.pattern-option:hover:not(:disabled){transform:scale(1.1);border-color:#74b9ff;background:#fff;box-shadow:0 4px 12px #74b9ff4d}.pattern-option.selected{border-color:#fdcb6e;background:#fff9e6;transform:scale(1.1)}.pattern-option.correct{border-color:#00b894;background:#d1f2eb;animation:correctPulse .6s ease}.pattern-option.incorrect{border-color:#e17055;background:#ffeaa7;animation:shake .5s ease}@keyframes correctPulse{0%,to{transform:scale(1.1)}50%{transform:scale(1.2)}}.pattern-option .color-square{width:40px;height:40px}@media (max-width: 768px){.pattern-display{flex-wrap:wrap;gap:.8rem}.pattern-item{width:60px;height:60px}.pattern-content{font-size:1.5rem}.color-square{width:35px;height:35px}.options-grid{grid-template-columns:repeat(2,1fr);gap:1rem}.pattern-option{width:80px;height:80px}.pattern-question{font-size:1.5rem}}.reading-game{max-width:800px;width:100%;text-align:center}.reading-challenge{background:#fff;border-radius:20px;padding:2rem;box-shadow:0 10px 30px #0000001a}.instruction-panel{background:#e3f2fd;border-radius:15px;padding:2rem;margin-bottom:2rem;border:3px solid #2196f3}.instruction-title{color:#1976d2;margin-bottom:1rem;font-size:1.5rem;font-weight:700}.instruction-text{font-size:1.8rem;color:#333;font-weight:700;margin-bottom:1rem;padding:1rem;background:#fff;border-radius:10px;border:2px solid #bbdefb}.instruction-help{font-size:1.1rem;color:#1976d2;margin:0;font-style:italic}.options-panel h4{color:#333;margin-bottom:1.5rem;font-size:1.3rem}.picture-options{display:grid;grid-template-columns:repeat(2,1fr);gap:1.5rem;margin-bottom:2rem}.picture-option{background:#f8f9fa;border:4px solid transparent;border-radius:20px;padding:2rem;cursor:pointer;transition:all .3s ease;min-height:120px;display:flex;align-items:center;justify-content:center}.picture-option:hover:not(:disabled){transform:scale(1.05);border-color:#74b9ff;background:#fff;box-shadow:0 8px 20px #74b9ff4d}.picture-option.selected{border-color:#fdcb6e;background:#fff9e6;transform:scale(1.05)}.picture-option.correct{border-color:#00b894;background:#d1f2eb;animation:correctBounce .6s ease}.picture-option.incorrect{border-color:#e17055;background:#ffeaa7;animation:shake .5s ease}@keyframes correctBounce{0%,to{transform:scale(1.05)}50%{transform:scale(1.15)}}@keyframes shake{0%,to{transform:translate(0)}25%{transform:translate(-5px)}75%{transform:translate(5px)}}.picture-content{text-align:center}.picture-emoji{font-size:4rem;display:block;margin-bottom:.5rem;transition:transform .3s ease}.picture-option:hover .picture-emoji{transform:scale(1.1)}.reading-tip{background:#fff3cd;border:2px solid #ffc107;border-radius:15px;padding:1rem;margin-top:1.5rem;color:#856404;font-weight:700}.feedback{padding:1rem;border-radius:15px;margin-top:2rem;animation:slideUp .5s ease}.feedback.correct{background:#d1f2eb;border:2px solid #00b894}.feedback.incorrect{background:#ffeaa7;border:2px solid #fdcb6e}.feedback-content{display:flex;align-items:center;justify-content:center;gap:.5rem}.feedback-icon{font-size:1.5rem}.feedback-text{font-size:1.2rem;font-weight:700;color:#333}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@media (max-width: 768px){.picture-options{grid-template-columns:1fr;gap:1rem}.picture-emoji{font-size:3rem}.instruction-text{font-size:1.5rem}.instruction-title{font-size:1.3rem}.picture-option{padding:1.5rem;min-height:100px}}.app{min-height:100vh;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif}*{box-sizing:border-box;margin:0;padding:0}body{margin:0;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:#f5f6fa}button{font-family:inherit;cursor:pointer;border:none;outline:none}button:focus{outline:2px solid #74b9ff;outline-offset:2px}@media (prefers-reduced-motion: reduce){*{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}@media (prefers-contrast: high){.game-card,.game-layout,.counting-area,.color-challenge,.difference-challenge,.pattern-challenge,.reading-challenge{border:2px solid #000}}
