/* v58.72 — override older responsive rules that reserved empty board space. */
@media(max-width:520px){
 body.puzzle-page-body{height:100dvh!important;overflow:hidden!important;}
 body.puzzle-page-body .site-footer{display:none!important;}
 body.puzzle-page-body main#mainContent{height:calc(100dvh - var(--header-height))!important;min-height:0!important;overflow:hidden!important;}

 body.puzzle-page-body .puzzle-app-page{padding:0!important;margin:0!important;min-height:calc(100dvh - var(--header-height))!important}
 body.puzzle-page-body .puzzle-app-container{display:flex!important;flex-direction:column!important;justify-content:flex-start!important;align-items:stretch!important;width:100%!important;max-width:none!important;min-height:0!important;padding:0!important;margin:0!important;gap:0!important}
 body.puzzle-page-body .puzzle-app-header{display:none!important}
 body.puzzle-page-body .puzzle-studio{
    --puzzle-board-size:100vw!important;--mobile-board-size:100vw!important;
    order:0!important;display:flex!important;flex:0 0 auto!important;flex-direction:column!important;
    width:100%!important;min-height:0!important;height:auto!important;
    justify-content:flex-start!important;align-items:stretch!important;
    padding:0!important;margin:0!important;gap:0!important;
 }
 body.puzzle-page-body .puzzle-board-column{
    display:block!important;position:relative!important;order:0!important;
    flex:0 0 100vw!important;width:100vw!important;min-width:100vw!important;
    height:100vw!important;min-height:0!important;max-height:none!important;
    padding:0!important;margin:0!important;
 }
 body.puzzle-page-body .puzzle-board-shell,
 body.puzzle-page-body .puzzle-board-shell #puzzleBoard{
    display:block!important;position:relative!important;width:100vw!important;
    height:100vw!important;min-width:0!important;min-height:0!important;max-width:100vw!important;max-height:none!important;
    padding:0!important;margin:0!important;border:0!important;
    border-radius:0!important;aspect-ratio:1!important;box-shadow:none!important;
 }
 body.puzzle-page-body .puzzle-side-panel{
   order:1!important;display:grid!important;flex:0 0 auto!important;grid-template-columns:1fr!important;
   align-content:start!important;gap:5px!important;padding:6px 9px!important;
   min-height:0!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;
 }
 body.puzzle-page-body .puzzle-panel-topline{display:flex!important;margin:0!important;padding:0 1px 3px!important;min-height:22px!important;border:0!important;background:transparent!important;font-size:.7rem!important}
 body.puzzle-page-body .puzzle-title-row{display:none!important}
 body.puzzle-page-body .puzzle-instruction{display:block!important;min-height:0!important;margin:0!important;padding:4px 8px!important;font-size:.75rem!important;line-height:1.45!important}
 body.puzzle-page-body .puzzle-progress{min-height:4px!important;margin:0!important}
 body.puzzle-page-body .puzzle-board-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:repeat(2,34px)!important;gap:5px!important;margin:0!important;padding:0!important}
 body.puzzle-page-body .puzzle-board-actions .button{min-height:34px!important;padding:3px 5px!important;font-size:.69rem!important}
 body.puzzle-page-body .puzzle-board-actions [data-puzzle-reset]{grid-column:1!important;grid-row:1!important}
 body.puzzle-page-body .puzzle-board-actions [data-puzzle-next]{grid-column:2!important;grid-row:1!important}
 body.puzzle-page-body .puzzle-board-actions [data-puzzle-answer]{grid-column:2!important;grid-row:2!important}
 body.puzzle-page-body .puzzle-history-controls{grid-column:1!important;grid-row:2!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:4px!important}
 body.puzzle-page-body .puzzle-category-toolbar{
    order:1!important;flex:0 0 33px!important;display:flex!important;align-items:center!important;
    min-height:0!important;height:33px!important;width:auto!important;
    padding:2px 3px!important;margin:2px 7px 0!important;gap:4px!important;
    overflow-x:auto!important;overflow-y:hidden!important;
 }
 body.puzzle-page-body .puzzle-category-toolbar button{min-height:26px!important;height:26px!important;padding:3px 8px!important;font-size:.66rem!important;white-space:nowrap}
 body.puzzle-page-body .puzzle-result-card{display:none!important} /* explicit success text appears in the status row and toast */
 body.puzzle-page-body .puzzle-keyboard-help,body.puzzle-page-body .puzzle-login-note{display:none!important}
}
