.fips-game-wrapper {
    position: relative;
    margin: 20px auto;
    width: 100%;
    /* Maximale Breite so berechnen, dass die Höhe (16:9) immer in den Viewport passt.
       80px Abzug für WP-Adminbar, Margins und etwas Luft. */
    max-width: calc((100vh - 80px) * 16 / 9);
    background: #1a1a2e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    line-height: 0;
}

.fips-game-wrapper canvas {
    width: 100%;
    height: auto;
    display: block;
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

@media (max-width: 600px) {
    .fips-game-wrapper {
        border-radius: 0;
        margin: 0 auto;
    }
}

/* Fullscreen mode (Android Chrome, Samsung Internet etc.) */
.fips-game-wrapper:fullscreen,
.fips-game-wrapper:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    max-width: none;
    margin: 0;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.fips-game-wrapper:fullscreen canvas,
.fips-game-wrapper:-webkit-full-screen canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
