/* Minijuegos de Momo: controles grandes, navegación por teclado y movimiento opcional. */
.mg-description{font-size:1rem;line-height:1.6;color:#67736b;margin:0 0 1.25rem}.mg-game-cards{display:grid;gap:.8rem}.mg-game-card{display:flex;align-items:center;gap:1rem;width:100%;padding:1.1rem;text-align:left;border:1px solid #e8e9e4;background:#fff;border-radius:20px;cursor:pointer;color:#243a2f;transition:transform .18s,box-shadow .18s}.mg-game-card:hover{transform:translateY(-2px);box-shadow:0 6px 20px #25482b0b}.mg-game-card:focus-visible,.mg-spark:focus-visible,.mg-memory-card:focus-visible,.mg-element-option:focus-visible{outline:3px solid #27724b;outline-offset:4px}.mg-game-illustration{flex:0 0 68px;height:68px;display:grid;place-items:center;position:relative;font-size:2rem;border-radius:18px;background:var(--mg-soft)}.mg-game-illustration i{position:absolute;right:5px;top:3px;font-size:1rem;font-style:normal;color:var(--mg-accent)}.mg-card-copy{display:grid;gap:.25rem;flex:1}.mg-card-copy>strong{font-size:1.05rem;line-height:1.35}.mg-card-copy>span{font-size:.95rem;line-height:1.5;color:#657369}.mg-card-copy>small{font-size:.8rem;color:#7a847c;line-height:1.5}.mg-play-label{font-size:.9rem;font-weight:700;background:#edf3e6;padding:.5rem .85rem;border-radius:12px}.mg-reward-note{font-size:.85rem;line-height:1.6;color:#6b756d;margin:1.1rem 0 0}.mg-coral{--mg-soft:#fff0df;--mg-accent:#d77d43}.mg-blue{--mg-soft:#e2f5fc;--mg-accent:#3c95ae}.mg-lilac{--mg-soft:#f0e9fb;--mg-accent:#9874b8}.mg-green{--mg-soft:#eaf3db;--mg-accent:#74964c}.mg-progress-head{display:flex;justify-content:space-between;align-items:center;gap:1rem;font-size:.95rem;color:#647167;margin-bottom:.6rem}.mg-progress-head strong{color:#2e4736;white-space:nowrap}.mg-progress{height:9px;border-radius:20px;overflow:hidden;background:#eaf0e5}.mg-progress>span{display:block;height:100%;border-radius:20px;background:#a0c953;transition:width .25s}.mg-spark-field{height:300px;position:relative;overflow:hidden;border-radius:24px;margin-top:1.2rem;background:radial-gradient(ellipse at 40% 40%,#fff9e9,#fff0dd 80%)}.mg-spark{position:absolute;transform:translate(-50%,-50%);border:1px solid #fff9;border-radius:50%;width:64px;height:64px;background:#fff9;box-shadow:0 5px 16px #b1751b15;cursor:pointer;transition:opacity .2s,box-shadow .2s;display:grid;place-items:center}.mg-spark>span{display:block;font-size:2.1rem;animation:mg-glow 2.8s var(--mg-delay,0s) ease-in-out infinite}.mg-spark:hover{box-shadow:0 5px 20px #b1751b30}.mg-spark.mg-caught{opacity:0;pointer-events:none}.mg-field-star{position:absolute;color:#dca567;opacity:.5;pointer-events:none}.mg-star-one{left:10%;top:46%;font-size:1.6rem}.mg-star-two{left:50%;top:76%;font-size:2rem}.mg-star-three{right:10%;top:8%;font-size:1.3rem}.mg-feedback{min-height:3em;font-size:.95rem;line-height:1.5;color:#536b59;text-align:center;margin:1rem 0 0}.mg-footer{display:flex;align-items:center;justify-content:space-between;gap:1rem;border-top:1px solid #edf0e9;padding-top:1rem;margin-top:.7rem}.mg-footer>span{color:#7d867e;font-size:.8rem}.mg-back{font-size:.9rem}.mg-memory-meta{display:flex;align-items:center;justify-content:space-between;gap:1rem;font-size:.85rem;color:#788077;margin:1.15rem 0 .75rem}.mg-memory-meta strong{font-weight:600;white-space:nowrap;color:#526250}.mg-memory-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem}.mg-memory-card{min-height:112px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:.4rem;border:1px solid #e2dbee;border-radius:17px;background:#f1eafb;cursor:pointer;color:#9874b8;transition:background .2s,border-color .2s,transform .15s}.mg-memory-card:hover:not(:disabled){transform:translateY(-2px)}.mg-memory-card.mg-revealed{background:var(--mg-soft);border-color:var(--mg-accent);color:#44553e}.mg-memory-card.mg-matched{border-color:#a9c987;box-shadow:inset 0 0 0 1px #b9d39d;opacity:.8}.mg-memory-card:disabled{cursor:default}.mg-card-face{font-size:2rem;line-height:1.3}.mg-card-caption{font-size:.875rem;font-weight:600}.mg-element-prompt{text-align:center;border-radius:20px;background:#f7f8f2;padding:1.5rem .75rem;margin:1.1rem 0}.mg-element-prompt>span{font-size:.8rem;color:#88917f}.mg-element-prompt h3{margin:.5rem 0;font-size:1.65rem;line-height:1.3;color:#263d2d;letter-spacing:-.03em}.mg-element-prompt h3 strong{color:#688c3e}.mg-element-prompt p{font-size:.9rem;color:#6c7869;margin:.5rem 0 0}.mg-element-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem}.mg-element-option{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:.6rem;padding:1rem .5rem;min-height:115px;border:1px solid transparent;border-radius:18px;background:var(--mg-soft);cursor:pointer;color:#465544;transition:transform .18s,border-color .18s}.mg-element-option:hover:not(:disabled){transform:translateY(-3px);border-color:var(--mg-accent)}.mg-element-option>span{font-size:2.1rem;line-height:1.3}.mg-element-option>strong{font-size:1rem;font-weight:600}.mg-element-option.mg-correct{border:2px solid #6f9d41;box-shadow:0 0 0 3px #8fb64a22}.mg-element-option:disabled{cursor:default}.mg-fallback{text-align:center;padding:1rem}.mg-fallback>span{font-size:3rem}.mg-fallback h3{font-size:1.5rem}.mg-fallback p{color:#687769;line-height:1.6;margin:1rem 0 1.5rem}@keyframes mg-glow{0%,100%{transform:scale(1)}50%{transform:scale(1.12)}}@media(max-width:600px){.mg-game-card{padding:.9rem;gap:.75rem;flex-wrap:wrap}.mg-game-illustration{flex-basis:54px;height:54px;font-size:1.65rem;border-radius:15px}.mg-card-copy{min-width:170px}.mg-play-label{margin-left:auto;font-size:.8rem}.mg-card-copy>strong{font-size:1rem}.mg-card-copy>span{font-size:.9rem}.mg-card-copy>small{font-size:.75rem}.mg-spark-field{height:280px}.mg-spark{width:58px;height:58px}.mg-memory-grid{gap:.5rem}.mg-memory-card{min-height:95px;border-radius:13px}.mg-card-face{font-size:1.75rem}.mg-card-caption{font-size:.875rem}.mg-memory-meta{font-size:.8rem}.mg-element-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}.mg-element-option{min-height:100px;padding:.7rem}.mg-element-prompt{padding:1.1rem .75rem}.mg-element-prompt h3{font-size:1.5rem}.mg-footer{align-items:flex-start;flex-direction:column;gap:.7rem}.mg-footer>span{align-self:center}.mg-back{width:100%;justify-content:center}}@media(prefers-reduced-motion:reduce){.mg-spark>span{animation:none}.mg-game-card,.mg-spark,.mg-progress>span,.mg-memory-card,.mg-element-option{transition:none}.mg-game-card:hover,.mg-memory-card:hover:not(:disabled),.mg-element-option:hover:not(:disabled){transform:none}}

/* Brío v1.1: ten games, shared pause state and large touch controls. */
.mg-game-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.mg-game-card{display:grid;grid-template-columns:50px minmax(0,1fr);align-content:start;align-items:start;padding:19px;gap:12px;border-radius:17px;min-width:0}.mg-game-illustration{width:50px;height:50px;border-radius:15px;flex-basis:auto;font-size:26px;grid-row:span 2}.mg-card-copy{min-width:0;gap:6px}.mg-card-copy>strong{font-size:16px}.mg-card-copy>span{font-size:14px;line-height:1.55}.mg-card-copy>small{font-size:12px;line-height:1.7}.mg-play-label{grid-column:2;justify-self:start;margin:0;font-size:13px;padding:6px 12px}.mg-description{font-size:15px;line-height:1.75;color:#61725f}.mg-reward-note{font-size:13px;line-height:1.8}.mg-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0 15px;padding:9px 0;border-block:1px solid #e8eee1}.mg-toolbar>span{font-size:12px;color:#859378}.mg-pause-button{padding:10px 15px;min-height:44px;background:#edf3e6;color:#4d6c3a;border-radius:10px;font-size:14px;font-weight:650}.mg-play-wrap{position:relative;min-height:170px}.mg-play-area{min-width:0}.mg-pause-overlay{position:absolute;inset:0;z-index:10;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:25px;border:1px solid #e3e9da;border-radius:20px;background:#f8fbf2f5;backdrop-filter:blur(8px)}.mg-pause-overlay[hidden],.mg-start[hidden]{display:none}.mg-pause-overlay>span{font-size:42px;margin-bottom:12px}.mg-pause-overlay h3{font-size:21px;margin-bottom:10px}.mg-pause-overlay p{font-size:14px;color:#849374;margin-bottom:20px}.mg-paused .mg-play-area{pointer-events:none;user-select:none}.mg-paused .mg-play-area *{animation-play-state:paused!important}.mg-feedback{font-size:14px;line-height:1.7;min-height:3.4em;margin:15px 0 0}.mg-footer{padding-top:17px;gap:15px}.mg-footer .button{font-size:14px}.mg-footer .text-button{font-size:13px;min-height:44px;padding:10px}.mg-stage{height:285px;width:100%;position:relative;overflow:hidden;border-radius:20px;margin-top:18px;isolation:isolate;outline-offset:4px;touch-action:pan-y}.mg-stage:focus-visible{outline:3px solid #668c3f}.mg-start{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:5;min-width:150px;box-shadow:0 6px 25px #152b2d33;background:#d1f58a;color:#243b24;font-size:16px}.mg-start:hover{transform:translate(-50%,-50%)}.mg-direction-controls,.mg-aim-controls,.mg-lane-controls,.mg-small-actions{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:16px}.mg-direction-controls button{min-width:62px;min-height:52px;padding:8px 18px;font-size:26px;font-weight:650;border:1px solid #dfe7d3;background:#f0f6e8;border-radius:13px;color:#53763d;touch-action:manipulation}.mg-direction-controls button:active{background:#d6e8bf}.mg-aim-controls,.mg-lane-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.mg-aim-controls button,.mg-lane-controls button{min-height:48px;font-size:14px;border:1px solid #dee7d4;background:#f4f8ef;color:#627852;border-radius:11px;padding:11px 6px;font-weight:600;touch-action:manipulation}.mg-aim-controls button.mg-selected,.mg-lane-controls button.mg-selected{background:#d6edb8;border-color:#96b970;color:#3e622c;box-shadow:inset 0 0 0 1px #96b970}.mg-shoot-button{width:100%;margin-top:13px;min-height:49px}.mg-range-label{display:block;color:#738464;font-size:13px;margin-top:15px}.mg-range-label input{display:block;width:100%;height:40px;margin:7px 0 0;accent-color:#7da943;cursor:ew-resize;touch-action:pan-y}.mg-game button:focus-visible,.mg-game-card:focus-visible{outline:3px solid #547f35;outline-offset:4px}.mg-game button{touch-action:manipulation}.mg-small-actions .button{min-height:46px;font-size:14px}.mg-small-actions{margin-top:18px}
.mg-pong{background:radial-gradient(ellipse at 50% 50%,#315f4c,#1c3e32);border:7px solid #dcebcf;box-shadow:inset 0 0 0 2px #779a7655}.mg-pong:before{content:'';position:absolute;inset:12px;border:1px solid #9cbe8b55;border-radius:8px}.mg-pong-net{position:absolute;left:8%;right:8%;top:47%;border-top:2px dashed #d7edbc55}.mg-pong-ball{position:absolute;left:50%;top:65%;width:18px;height:18px;border-radius:50%;transform:translate(-50%,-50%);background:#effba7;box-shadow:0 0 18px #d4ef8755}.mg-paddle{position:absolute;top:86%;left:50%;width:32%;height:12px;background:#d0f18b;border:2px solid #edfcca;border-radius:8px;transform:translateX(-50%);box-shadow:0 3px 7px #142c2b55}
.mg-soccer{background:repeating-linear-gradient(0deg,#72994d 0,#72994d 46px,#7fa554 46px,#7fa554 92px);border:5px solid #e2edda}.mg-soccer:before{content:'';position:absolute;left:7%;right:7%;top:5%;bottom:-10%;border:2px solid #faffea99;border-radius:8px}.mg-soccer:after{content:'';position:absolute;width:60%;height:45%;border:2px solid #faffea88;left:20%;bottom:-25%;border-radius:50%;pointer-events:none}.mg-goal-net{position:absolute;left:12%;width:76%;top:8%;height:34%;border:5px solid #f5f6e5;border-bottom-width:3px;background:repeating-linear-gradient(0deg,transparent 0,transparent 12px,#f9ffed66 12px,#f9ffed66 13px),repeating-linear-gradient(90deg,transparent 0,transparent 18px,#f9ffed66 18px,#f9ffed66 19px),#3e63466b;box-shadow:0 5px 10px #38553822;transform:perspective(200px) rotateX(-8deg)}.mg-goalkeeper{position:absolute;left:50%;top:29%;font-size:39px;transform:translate(-50%,-50%);width:19%;text-align:center;z-index:2;filter:drop-shadow(0 3px 2px #29482b55)}.mg-aim-marker{position:absolute;left:50%;top:18%;transform:translate(-50%,-50%);color:#fff4b7;font-size:28px;z-index:3;line-height:1;pointer-events:none}.mg-football{position:absolute;left:50%;top:87%;font-size:30px;transform:translate(-50%,-50%);z-index:4;filter:drop-shadow(0 4px 3px #29482b55)}
.mg-track{background:linear-gradient(90deg,#d9e8c1 0,#d9e8c1 5%,#6f8e5c 5%,#809c69 95%,#d9e8c1 95%);border:4px solid #dfeacc}.mg-track>i{position:absolute;top:0;bottom:0;left:35%;width:2px;background:repeating-linear-gradient(to bottom,#eef5dc99 0,#eef5dc99 18px,transparent 18px,transparent 32px)}.mg-track>i+i{left:65%}.mg-rock{position:absolute;left:50%;top:-12%;font-size:36px;transform:translate(-50%,-50%);filter:drop-shadow(0 5px 3px #38513e44)}.mg-runner{position:absolute;top:80%;left:50%;width:68px;height:68px;transform:translate(-50%,-50%);transition:left .12s}.mg-runner img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 6px 3px #38513e33)}
.mg-puzzle-meta{display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:13px;color:#7c8b70;margin:16px 0}.mg-puzzle-meta strong{font-weight:600;font-size:12px;white-space:nowrap}.mg-puzzle-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;max-width:365px;margin:0 auto;padding:10px;background:#eee7f5;border:1px solid #e1d7ec;border-radius:19px}.mg-puzzle-tile,.mg-puzzle-empty{aspect-ratio:1;border-radius:12px;min-width:0}.mg-puzzle-tile{background-color:#e7dcf2;background-image:url('mascot.svg');background-size:300% 300%;background-position:var(--tile-x) var(--tile-y);border:2px solid #ffffffcc;box-shadow:0 3px 5px #8c739519;display:flex;align-items:flex-start;justify-content:flex-start;padding:7px;position:relative}.mg-puzzle-tile>span{display:grid;place-items:center;min-width:29px;height:29px;border-radius:9px;background:#fffffff0;color:#7c5e95;font-family:Manrope,sans-serif;font-size:16px;font-weight:800;box-shadow:0 2px 3px #8c739519}.mg-puzzle-empty{border:2px dashed #d5c7e4;background:#f5eff9}.mg-puzzle-tile.mg-hint{border:3px solid #d39b42;box-shadow:0 0 0 3px #ecd59d99}.mg-puzzle-tile:hover{border-color:#b69ace}
.mg-sequence-status{text-align:center;background:#f3f6eb;border-radius:13px;padding:15px;font-size:14px;color:#758b62;margin:16px 0}.mg-sequence-pads{display:grid;grid-template-columns:1fr 1fr;gap:13px}.mg-sequence-pad{min-height:125px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;border:3px solid transparent;border-radius:20px;background:var(--mg-soft);color:#627058;transition:box-shadow .12s,filter .12s,border-color .12s}.mg-sequence-pad>span{font-size:34px}.mg-sequence-pad>strong{font-size:15px}.mg-sequence-pad.mg-lit{border-color:var(--mg-accent);filter:saturate(1.7);box-shadow:0 0 0 5px color-mix(in srgb,var(--mg-accent) 28%,transparent),inset 0 0 35px #fff8}
.mg-maze-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;background:#e6eddc;border:1px solid #d9e4ca;border-radius:16px;padding:9px;max-width:365px;margin:16px auto}.mg-maze-cell{aspect-ratio:1;min-width:0;display:grid;place-items:center;background:#fbfcf5;border-radius:7px;font-size:29px;position:relative}.mg-maze-cell.mg-wall{background:#8da66c;box-shadow:inset 0 3px 0 #b5c89355,inset 0 -3px 0 #6c885455}.mg-maze-cell img{width:115%;height:115%;max-width:none;object-fit:contain;position:relative;z-index:1}.mg-maze-cell.mg-path-hint{box-shadow:inset 0 0 0 3px #ddae4a;background:#fff2c4}
.mg-balance{position:relative;height:180px;border-radius:20px;background:#faf5e8;margin:18px 0 20px;overflow:hidden}.mg-balance:after{content:'';position:absolute;left:50%;top:53%;transform:translateX(-50%);width:0;height:0;border-left:24px solid transparent;border-right:24px solid transparent;border-bottom:60px solid #bba8cf;z-index:0}.mg-balance-beam{position:absolute;width:78%;left:11%;height:7px;top:48%;background:#a68bbf;border-radius:6px;transform-origin:center;transition:transform .25s;z-index:1}.mg-balance-bowl{position:absolute;left:12%;bottom:18%;width:29%;height:80px;border:2px solid #c9b9d8;background:#fffcf3;border-radius:12px 12px 35px 35px;display:flex;align-items:center;justify-content:center;flex-direction:column;z-index:2}.mg-balance-bowl+.mg-balance-bowl{left:auto;right:12%;background:#edf5dc;border-color:#c3d7a1}.mg-balance-bowl>span{font-size:12px;color:#9487a0}.mg-balance-bowl>strong{font-family:Manrope,sans-serif;font-size:34px;line-height:1.3;color:#85689a}.mg-balance-bowl+.mg-balance-bowl>strong{color:#7c9957}.mg-number-buttons{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.mg-number-buttons button{aspect-ratio:1;min-height:48px;border:1px solid #e1d8eb;background:#f4eef9;border-radius:13px;font-size:23px;font-weight:700;color:#9a81b2}.mg-number-buttons button.mg-selected{background:#d6ecc0;border:2px solid #98b674;color:#567a36}
@media(max-width:600px){.mg-game-cards{grid-template-columns:1fr;gap:12px}.mg-game-card{grid-template-columns:49px minmax(0,1fr);padding:17px;gap:10px}.mg-game-illustration{width:49px;height:49px}.mg-card-copy{min-width:0}.mg-play-label{grid-column:2;margin:0}.mg-description{font-size:14px}.mg-toolbar{margin:8px 0 12px}.mg-toolbar>span{font-size:11px}.mg-toolbar .mg-pause-button{font-size:13px;padding:9px 12px}.mg-stage{height:265px;margin-top:14px;border-radius:17px}.mg-direction-controls{gap:9px}.mg-direction-controls button{min-width:57px;min-height:50px;padding:8px 15px}.mg-aim-controls button,.mg-lane-controls button{font-size:13px;min-height:48px}.mg-puzzle-grid,.mg-maze-grid{width:100%;max-width:345px}.mg-puzzle-meta{font-size:12px;gap:8px;flex-wrap:wrap}.mg-puzzle-meta strong{font-size:12px}.mg-puzzle-grid{padding:8px;gap:6px}.mg-puzzle-tile,.mg-puzzle-empty{border-radius:10px}.mg-puzzle-tile{padding:5px}.mg-puzzle-tile>span{min-width:26px;height:26px;font-size:14px}.mg-sequence-pad{min-height:112px;border-radius:16px}.mg-sequence-pads{gap:10px}.mg-sequence-pad>strong{font-size:14px}.mg-maze-grid{padding:7px;gap:3px}.mg-maze-cell{font-size:25px;border-radius:5px}.mg-small-actions{gap:9px}.mg-small-actions .button{font-size:13px;padding:12px 14px}.mg-number-buttons{gap:7px}.mg-number-buttons button{font-size:22px;border-radius:11px}.mg-footer{flex-direction:row;align-items:center}.mg-footer .mg-back{width:auto;font-size:13px;padding:12px 15px}.mg-feedback{font-size:13px}.mg-pause-overlay{padding:20px}.mg-pause-overlay h3{font-size:19px}.mg-pause-overlay p{font-size:13px}.mg-runner{width:61px;height:61px}}
@media(prefers-reduced-motion:reduce){.mg-runner,.mg-sequence-pad,.mg-balance-beam{transition:none}.mg-stage *{animation:none!important}}
