/* css/global.css */
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: black;
    font-family: "Arial", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    font-size: 16px;
    color: #fff;
    position: absolute;
}
div {
    box-sizing: border-box;
}

/* longtap */
body {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    outline: 0;
}
canvas {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    outline: 0;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
}

canvas {
    width: 100vw;
    height: 100vh;
    object-fit: cover; /* или contain, если хотите сохранить пропорции 4:3 */
    /* Самая важная строчка для сохранения пикселей: */
    image-rendering: pixelated; 
    image-rendering: crisp-edges;
}

#layers {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

#layers canvas {
    top: 0;
    left: 0;
    position: absolute;
    background: transparent;
}
