Each box is a page of its own, with the same game in it: 56 × 32 at scaling: 'integer'. Where it goes only moves the space left over: the game is the same size.
The game can say where with align (SCREEN.ALIGN.TOP, BOTTOM_RIGHT…), and then it wins over the page. When it says nothing, the page decides: a page that lays its content out itself, with flex or grid, puts the game where it aligns it, and a page that says nothing has it in the middle both ways. Padding is room the game does not take.