html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #000;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
}

#canvas {
    display: block;

    /*
     * Исходное соотношение игры: 480 / 420 = 8 / 7.
     * Игра занимает максимум экрана, но не растягивается криво.
     */
    width: min(100vw, 114.2857vh) !important;
    height: min(100vh, 87.5vw) !important;

    image-rendering: pixelated;
    image-rendering: crisp-edges;

    outline: none;
}
