/* MathCrave Games v4 common play-area scale. All selectors are plugin-scoped. */
:root{--mcg-ui-bg:#0f172a;--mcg-ui-panel:#1e293b;--mcg-ui-line:#334155;--mcg-ui-ink:#e2e8f0;--mcg-ui-accent:#8b5cf6}
body.mcg-shell .mcg-main{background:var(--mcg-ui-bg)!important;min-width:0;}
body.mcg-shell .mcg-main .mcg-header{background:var(--mcg-ui-bg)!important;}
body.mcg-shell .mcg-main .mcg-header-title{color:#a78bfa!important;}
body.mcg-shell .mcg-main button{touch-action:manipulation;}
body.mcg-shell .mcg-main .hidden{display:none!important;}
body.mcg-shell .mcg-main button:focus-visible,body.mcg-shell .mcg-main select:focus-visible,body.mcg-shell .mcg-main input:focus-visible{outline:2px solid #c4b5fd;outline-offset:3px;}
body.mcg-shell .mcg-main button:disabled{opacity:.55;cursor:not-allowed;}
body.mcg-shell .mcg-main [id*="-screen"],body.mcg-shell .mcg-main [id*="-area"]{min-width:0;}
/* Responsive shell: no sidebar regressions; avoid oversized blank gutters. */
@media(max-width:767px){body.mcg-shell .mcg-main .mcg-header{gap:6px;padding:8px 10px!important;}body.mcg-shell .mcg-header-actions{gap:7px;}body.mcg-shell .mcg-main .mcg-header-title{font-size:16px!important;line-height:1.2;} }
@media(prefers-reduced-motion:reduce){body.mcg-shell .mcg-main button,body.mcg-shell .mcg-main .mcg-header{transition:none!important;}}
