.math-game-page{background:#f8f9fa;min-height:100vh;display:flex;flex-direction:column}.math-game-page .site-header{margin-bottom:0}.math-game-main{flex:1;display:flex;flex-direction:column;align-items:center;padding:0 16px 16px;max-width:500px;margin:0 auto;width:100%;box-sizing:border-box}.math-seo-section{width:100%;text-align:right;font-family:Rubik,sans-serif}.math-seo-top{padding:16px 0 8px}.math-seo-top h2{font-size:1.2rem;font-weight:700;color:#212529;margin:0 0 8px}.math-seo-top p{font-size:.9rem;line-height:1.6;color:#6c757d;margin:0}.math-seo-bottom{padding:24px 0 16px;border-top:1px solid #dee2e6;margin-top:16px}.math-seo-bottom h2{font-size:1.15rem;font-weight:700;color:#212529;margin:0 0 10px}.math-seo-bottom h3{font-size:1rem;font-weight:600;color:#495057;margin:16px 0 6px}.math-seo-bottom p{font-size:.9rem;line-height:1.7;color:#6c757d;margin:0 0 8px}.math-game-header{display:flex;align-items:center;justify-content:space-between;width:100%;padding:12px 0;border-bottom:1px solid #dee2e6;margin-bottom:8px}.math-game-title{font-family:Rubik,sans-serif;font-size:1.4rem;font-weight:700;color:#212529;margin:0}.math-header-btn{background:0 0;border:none;font-size:1.4rem;color:#495057;cursor:pointer;padding:4px 8px;border-radius:4px;transition:background .2s}.math-header-btn:hover{background:#e9ecef}.math-toast{position:fixed;top:80px;left:50%;transform:translateX(-50%);background:#212529;color:#fff;padding:12px 24px;border-radius:8px;font-family:Rubik,sans-serif;font-size:.95rem;font-weight:500;z-index:1000;opacity:1;transition:opacity .3s;pointer-events:none}.math-toast.hidden{display:none}.math-toast.fade-out{opacity:0}.math-board{display:grid;grid-template-rows:repeat(6,1fr);gap:5px;padding:10px 0;direction:ltr;flex-shrink:0}.math-row{display:grid;grid-template-columns:repeat(5,1fr);gap:5px}.math-tile{width:clamp(48px,14vw,62px);height:clamp(48px,14vw,62px);display:flex;align-items:center;justify-content:center;font-family:Rubik,sans-serif;font-size:clamp(1.3rem, 5vw, 1.8rem);font-weight:700;border:2px solid #dee2e6;border-radius:4px;box-sizing:border-box;text-transform:uppercase;user-select:none;transition:border-color .1s}.math-tile[data-state=tbd]{border-color:#878a8c;color:#212529}.math-tile[data-state=correct]{background:#34a853;border-color:#34a853;color:#fff}.math-tile[data-state=present]{background:#fbbc05;border-color:#fbbc05;color:#fff}.math-tile[data-state=absent]{background:#787c7e;border-color:#787c7e;color:#fff}.math-tile.pop{animation:tilePop .1s ease-in-out}@keyframes tilePop{0%{transform:scale(1)}50%{transform:scale(1.1)}100%{transform:scale(1)}}.math-tile.flip{animation:tileFlip .5s ease forwards}@keyframes tileFlip{0%{transform:rotateX(0)}45%{transform:rotateX(90deg)}55%{transform:rotateX(90deg)}100%{transform:rotateX(0)}}.math-row.shake{animation:rowShake .5s ease}@keyframes rowShake{0%,100%{transform:translateX(0)}10%,50%,90%{transform:translateX(-4px)}30%,70%{transform:translateX(4px)}}.math-tile.bounce{animation:tileBounce .5s ease}@keyframes tileBounce{0%,100%{transform:translateY(0)}40%{transform:translateY(-20px)}60%{transform:translateY(-10px)}}.math-keyboard{width:100%;max-width:500px;margin-top:auto;padding:8px 0;direction:ltr}.math-kb-row{display:flex;justify-content:center;gap:4px;margin-bottom:4px}.math-key{font-family:Rubik,sans-serif;font-size:clamp(.9rem, 3.5vw, 1.15rem);font-weight:600;min-width:clamp(30px,8vw,44px);height:clamp(46px,12vw,58px);border:none;border-radius:6px;background:#d3d6da;color:#212529;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0 4px;user-select:none;-webkit-tap-highlight-color:transparent;transition:background .15s,color .15s}.math-key:active{transform:scale(.95)}.math-key.wide{min-width:clamp(50px,13vw,65px);font-size:clamp(.7rem, 2.5vw, .85rem)}.math-key[data-state=correct]{background:#34a853;color:#fff}.math-key[data-state=present]{background:#fbbc05;color:#fff}.math-key[data-state=absent]{background:#787c7e;color:#fff}.math-modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);z-index:9999;display:flex;align-items:center;justify-content:center;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:16px}.math-modal-overlay.hidden{display:none}.math-modal{background:#fff;border-radius:12px;padding:16px;max-width:360px;width:100%;direction:rtl;position:relative;box-shadow:0 4px 24px rgba(0,0,0,.15)}.math-modal h2{font-family:Rubik,sans-serif;font-size:1.05rem;font-weight:700;margin:0 0 8px;text-align:center;color:#212529}.math-modal h3{font-family:Rubik,sans-serif;font-size:.85rem;font-weight:600;margin:8px 0 4px;text-align:center;color:#495057}.math-modal p{font-family:Rubik,sans-serif;font-size:.82rem;line-height:1.5;color:#495057;margin:0 0 6px}.math-modal-close{position:absolute;top:12px;left:12px;background:0 0;border:none;font-size:1.5rem;color:#adb5bd;cursor:pointer;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:background .2s}.math-modal-close:hover{background:#f1f3f5;color:#495057}.math-help-examples{margin:16px 0;direction:ltr}.math-help-row{display:flex;gap:4px;margin-bottom:8px;justify-content:center}.math-help-tile{width:36px;height:36px;display:flex;align-items:center;justify-content:center;font-family:Rubik,sans-serif;font-size:.95rem;font-weight:700;border:2px solid #dee2e6;border-radius:4px;color:#212529}.math-help-tile.correct{background:#34a853;border-color:#34a853;color:#fff}.math-help-tile.present{background:#fbbc05;border-color:#fbbc05;color:#fff}.math-help-tile.absent{background:#787c7e;border-color:#787c7e;color:#fff}.math-help-desc{direction:rtl;text-align:center;font-family:Rubik,sans-serif;font-size:.85rem;color:#6c757d;margin-bottom:16px}.math-stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-bottom:8px}.math-stat-box{text-align:center}.math-stat-value{font-family:Rubik,sans-serif;font-size:1.3rem;font-weight:700;color:#212529;line-height:1.1}.math-stat-label{font-family:Rubik,sans-serif;font-size:.65rem;color:#6c757d;line-height:1.2}.math-distribution{margin:4px 0 8px}.math-dist-row{display:flex;align-items:center;gap:4px;margin-bottom:2px;direction:ltr}.math-dist-label{font-family:Rubik,sans-serif;font-size:.75rem;font-weight:600;width:12px;text-align:center;color:#212529}.math-dist-bar{min-width:16px;padding:1px 6px;font-family:Rubik,sans-serif;font-size:.7rem;font-weight:600;color:#fff;background:#787c7e;border-radius:3px;text-align:left;transition:width .3s}.math-dist-bar.highlight{background:#34a853}.math-community-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:6px 0;padding:8px;background:#f8f9fa;border-radius:8px;text-align:center}.math-community-item{display:flex;flex-direction:column;align-items:center}.math-community-value{font-family:Rubik,sans-serif;font-size:1.1rem;font-weight:700;color:#34a853;line-height:1.2}.math-community-label{font-family:Rubik,sans-serif;font-size:.6rem;color:#6c757d}.math-share-btn{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;padding:10px;background:#34a853;color:#fff;border:none;border-radius:8px;font-family:Rubik,sans-serif;font-size:.9rem;font-weight:600;cursor:pointer;margin-top:8px;transition:background .2s}.math-share-btn:hover{background:#2d9249}.math-social-share{display:flex;gap:8px;margin-top:8px}.math-social-btn{flex:1;display:flex;align-items:center;justify-content:center;gap:5px;padding:9px;border:none;border-radius:8px;font-family:Rubik,sans-serif;font-size:.8rem;font-weight:600;color:#fff;cursor:pointer;transition:opacity .2s}.math-social-btn:hover{opacity:.9}.math-social-whatsapp{background:#25d366}.math-social-facebook{background:#1877f2}.math-next-puzzle{text-align:center;margin-top:8px;padding-top:8px;border-top:1px solid #dee2e6}.math-next-puzzle p{font-size:.8rem;color:#6c757d;margin-bottom:2px}.math-countdown-time{font-family:Rubik,sans-serif;font-size:1.2rem;font-weight:700;color:#212529;letter-spacing:2px}.math-game-page .site-footer{margin-top:auto}@media (max-width:400px){.math-game-header{padding:8px 0}.math-game-title{font-size:1.2rem}.math-kb-row{gap:3px}.math-key{padding:0 2px}}@media (min-width:500px){.math-board{padding:16px 0}}