html, body { margin: 0; height: 100%; background: #141018; overflow: hidden; } main { height: 100%; display: grid; place-items: center; } canvas { display: block; width: min(100vw, calc(100vh * 16 / 9)); aspect-ratio: 16 / 9; touch-action: none; }