/* Mini games fill the screen: no frame, header or close box; only the play area, its controls and status. */
/* Count and instruction lines that repeat what the picture already shows. */
.packing-feedback19,.morning-status18,.toy-status41,.cat-status37,.washer-count29,#packed-books{display:none!important}
#modal.fullgame51{padding:0;align-items:stretch;justify-content:stretch;background:#2f2a31;backdrop-filter:none}
#modal.fullgame51 .dialog{width:100%!important;max-width:none!important;height:100%;max-height:none!important;border:0;border-radius:0;box-shadow:none;padding:10px 12px!important;overflow:auto;display:flex;flex-direction:column;box-sizing:border-box}
#modal.fullgame51 #dialog-body{flex:1;display:flex;flex-direction:column;justify-content:center;min-height:0}
#modal.fullgame51 .speaker,#modal.fullgame51 #dialog-title,#modal.fullgame51 #dialog-body>h1+p,#modal.fullgame51 #close-dialog,#modal.fullgame51 #drag-help29,#modal.fullgame51 .drag-help29{display:none!important}
#fullback51{position:absolute;left:10px;top:10px;width:46px;height:46px;border-radius:14px;border:2px solid #9b7656;background:#ecd8b6c8;color:#5a3f2e;font-size:30px;line-height:1;z-index:5;padding:0 0 4px;box-shadow:0 2px #0002}
#modal.fullgame51 .family-stage,#modal.fullgame51 .alarm-stage18,#modal.fullgame51 .calm-board48,#modal.fullgame51 .breakfast-scene18{width:auto!important;height:auto!important;max-width:100%;max-height:calc(100svh - 150px);display:block;margin:0 auto}
#modal.fullgame51 .dance-lanes{height:min(70svh,640px)}
#modal.fullgame51 .litter-game37{width:100%;max-width:none;margin:0;box-sizing:border-box}
#modal.fullgame51 .wash-scene43,#modal.fullgame51 .toy-work41,#modal.fullgame51 .packing19,#modal.fullgame51 .drawing-work35,#modal.fullgame51 .chess-layout{width:100%;box-sizing:border-box}
#modal.fullgame51 .litter-sand37{height:min(58svh,520px)}
#modal.fullgame51 .activity-board{width:min(100%,78svh)}
#modal.fullgame51 .brush-surface{width:min(100%,calc((100svh - 130px)*1.5));max-width:none}
#modal.fullgame51 .chess-board{max-width:calc(100svh - 40px);margin:0 auto}
#modal.fullgame51 .family-controls,#modal.fullgame51 .choices{justify-content:center}
@media(max-width:650px){#modal.fullgame51 .dialog{padding:8px!important}}
