/* Polices hébergées dans le projet (Google Fonts, licence SIL OFL 1.1 — voir docs/credits.md). */
@font-face {
    font-family: 'Caveat';
    font-weight: 700;
    font-display: block;
    src: url('fonts/caveat-700.woff2') format('woff2');
}
@font-face {
    font-family: 'Special Elite';
    font-weight: 400;
    font-display: block;
    src: url('fonts/special-elite.woff2') format('woff2');
}
@font-face {
    font-family: 'Press Start 2P';
    font-weight: 400;
    font-display: block;
    src: url('fonts/press-start-2p.woff2') format('woff2');
}

/* Réglages iPhone : pas de zoom, pas de rebond, pas de sélection de texte. */
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #e6d5bb; /* kraft : les bandes autour du jeu restent invisibles */
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
}

/* Conteneur extérieur : marges de sécurité (encoche, Dynamic Island, barre du bas). */
#app {
    position: fixed;
    inset: 0;
    box-sizing: border-box;
    padding:
        env(safe-area-inset-top)
        env(safe-area-inset-right)
        env(safe-area-inset-bottom)
        env(safe-area-inset-left);
}

/* Conteneur intérieur sans marge : Phaser y place le jeu. */
#game-container {
    width: 100%;
    height: 100%;
}
