/* Maze v4: status stays beside the player's controls instead of top-of-iframe. */
body.mcg-game-mathmaze #math-maze-app{background:#172033!important;border:1px solid #2c3b51!important;border-radius:12px!important;box-shadow:none!important;max-width:min(740px,calc(100% - 24px))!important;width:100%!important;margin:clamp(10px,2vw,22px) auto!important;padding:clamp(12px,2.4vw,24px)!important;}
body.mcg-game-mathmaze .math-maze-info-bar{background:#243047!important;margin-bottom:10px!important;padding:10px!important;gap:6px;flex-wrap:wrap!important;}
body.mcg-game-mathmaze #maze-container{margin:10px auto 8px!important;max-width:100%!important;}
body.mcg-game-mathmaze .mcg-maze-message{position:sticky!important;bottom:8px!important;z-index:40!important;display:block;width:min(100%,500px);margin:6px auto!important;padding:10px 14px!important;border:1px solid #53627a;border-radius:10px!important;line-height:1.45;max-height:min(25dvh,150px);overflow-y:auto;box-shadow:0 6px 20px rgba(0,0,0,.35);text-align:center!important;font-size:14px!important;font-weight:650!important;color:#fff!important;}
body.mcg-game-mathmaze .mcg-maze-message--correct{background:#166534!important;border-color:#22c55e!important;}
body.mcg-game-mathmaze .mcg-maze-message--incorrect{background:#991b1b!important;border-color:#f87171!important;}
body.mcg-game-mathmaze .mcg-maze-message--win{background:#1e40af!important;border-color:#60a5fa!important;}
body.mcg-game-mathmaze .mcg-maze-message--info{background:#334155!important;border-color:#64748b!important;}
body.mcg-game-mathmaze .game-controls-row{max-width:100%!important;margin:8px auto 0!important;flex-direction:row!important;flex-wrap:wrap!important;}
body.mcg-game-mathmaze .control-group{flex-direction:row!important;flex:0 0 auto!important;}
body.mcg-game-mathmaze .control-button{min-height:40px!important;padding:9px 12px!important;font-size:13px!important;}
body.mcg-game-mathmaze .directional-button{width:43px!important;height:43px!important;}
body.mcg-game-mathmaze #start-button,body.mcg-game-mathmaze .math-maze-button-primary{background:#665be9!important;min-height:44px!important;border-radius:9px!important;box-shadow:none!important;}
@media(max-width:430px){body.mcg-game-mathmaze .game-controls-row{gap:5px!important;}body.mcg-game-mathmaze .control-button{padding:8px!important;font-size:12px!important;}body.mcg-game-mathmaze .control-group{gap:4px!important;}body.mcg-game-mathmaze .directional-button{width:39px!important;height:39px!important;}}
