    /* --- Impaginazione: campo 540x720 (3:4), sempre intero nello schermo --- */
    :root { --ctrl-h: 0px; }
    /* Sui dispositivi touch la barra utility sta sopra il campo (non lo copre). */
    html.has-touch #utility-bar {
        position: static;
        order: -1;
        margin-top: 4px;
    }

    .game-wrapper {
        height: var(--app-h, 100vh);
        height: var(--app-h, 100dvh);
        gap: 8px;
    }
    #crt-container {
        --ar: 0.75;                                   /* larghezza / altezza del canvas: 540 / 720 */
        --hmax: 2400px;               /* su desktop il campo si allarga fino a riempire lo schermo */
        --h: min(var(--hmax), calc(var(--app-h, 100dvh) - var(--ctrl-h) - 16px), calc(100vw / var(--ar)));
        height: var(--h);
        width: calc(var(--h) * var(--ar));
        max-width: none;
        max-height: none;
        flex: none;
        touch-action: none;
        -webkit-user-select: none;
        user-select: none;
        -webkit-touch-callout: none;
    }
    /* Il canvas riempie sempre il contenitore, che ha già le proporzioni giuste */
    #gameCanvas {
        position: absolute;
        top: 0; left: 0;
        width: 100% !important;
        height: 100% !important;
        cursor: crosshair;
        touch-action: none;
        -webkit-tap-highlight-color: transparent;
    }

    /* La schermata iniziale lascia intravedere la stanza dietro */
    #start-screen { background-color: rgba(10, 8, 20, 0.88); }

    .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
