* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

canvas {
    display: block;
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
}

/* Garantir que o canvas seja perfeitamente responsivo em todos os dispositivos */
@media (max-width: 768px) {
    canvas {
        width: 100vw;
        height: 100vh;
        max-width: 100%;
        max-height: 100%;
    }

    /* Prevenir zoom e scroll no mobile */
    html, body {
        touch-action: none;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }
}

/* Para dispositivos muito pequenos */
@media (max-width: 480px) {
    canvas {
        width: 100vw;
        height: 100vh;
    }
}

/* Para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    canvas {
        width: 100vw;
        height: 100vh;
    }
}

/* Para desktops grandes */
@media (min-width: 1025px) {
    canvas {
        width: 100vw;
        height: 100vh;
    }
}
