@media(max-width:650px){
html:has(#gameScr.on),html:has(#gameScr.on) body{height:auto;min-height:100%;overflow:auto}
html body #gameScr.on{height:auto;min-height:100dvh;padding:6px 0;align-items:center}
html body #gameScr .card-shell{height:auto;max-height:none;min-height:0}
html body #gameScr #gbody.gbody{flex:0 0 auto;grid-template-rows:auto auto auto auto;align-content:center;gap:16px;padding:20px 13px 22px;margin:7px 8px}
html body #gameScr #gbody img.qimg,html body #gameScr #gbody img.qimg.picture-cutout{max-height:43dvh!important;max-width:100%!important;margin:8px 0;width:auto!important;height:auto!important}
html body #gameScr #gbody .cards3 .opt{min-height:105px}
html body #gameScr #gbody:has(img[src*="sticks-vertical"]) img.qimg{max-height:43dvh!important}
}
@media(max-width:650px) and (max-height:650px){
html body #gameScr #gbody.gbody{gap:11px;padding:13px}
html body #gameScr #gbody .cards3 .opt{min-height:85px}
html body #gameScr #gbody img.qimg{max-height:33dvh!important;margin:2px 0}
}
@media(max-width:650px){html body #gameScr .card-shell{height:auto!important;min-height:0!important;max-height:none!important}html body #gameScr #gbody.gbody{min-height:0!important;flex:0 0 auto!important;grid-template-rows:auto auto auto auto!important;align-content:center!important;gap:16px!important}html body #gameScr #gbody .cards3 .otext{font-size:15px!important;line-height:1.3!important}}
@media(max-width:650px){html body #gameScr #gbody.gbody:has(img[src*="sticks-vertical"]) img.qimg{max-height:34dvh!important}}
@media(max-width:650px){html body #gameScr #gbody.gbody:has(img[src*="sticks-vertical"]) img.qimg.picture-cutout{max-height:34dvh!important}}

/* Retain a full-size mobile game panel; allocate its centre to the artwork. */
@media(max-width:650px){html body #gameScr .card-shell{height:calc(100dvh - 12px)!important;max-height:calc(100dvh - 12px)!important;min-height:0!important}html body #gameScr #gbody.gbody{flex:1 1 0!important;min-height:0!important;grid-template-rows:auto auto minmax(0,1fr) auto!important;align-content:center!important;gap:10px!important}html body #gameScr #gbody.gbody img.qimg{max-height:100%!important;max-width:100%!important;margin:0!important}html body #gameScr #gbody .cards3 .opt{min-height:90px!important}html body #gameScr #gbody.gbody img.qimg.count-art-mobile{max-height:100%!important}}
