html,
body {
    margin: 0;
    padding: 0;
    background: #050510;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
}

canvas {
    /* Default size — will be overridden by JS resize handler */
    width: 960px;
    height: 540px;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    background: #080816;
    box-shadow: 0 0 40px rgba(255, 0, 180, .35);
}

/* Fullscreen: canvas fills entire screen with letterboxing */
:fullscreen canvas,
:-webkit-full-screen canvas {
    box-shadow: none;
}

/* When the canvas itself is the fullscreen element */
canvas:fullscreen,
canvas:-webkit-full-screen {
    box-shadow: none;
    cursor: none;
}

:fullscreen body,
:-webkit-full-screen body {
    background: #000;
}

:fullscreen {
    background: #000;
}

/* Prevent text selection and touch callouts during gameplay */
canvas {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: none;
}
