/* Russo One (SIL Open Font License), shipped with the game so it is precached for offline play. */
@font-face {
    font-family: 'Russo One';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/russo-one-latin.woff2') format('woff2');
}

/* viewport-fit=cover lets the game run under a notch; ui/screen.ts reads these to keep its buttons clear. */
:root {
    --safe-left: env(safe-area-inset-left);
    --safe-right: env(safe-area-inset-right);
}

body {
    margin: 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.87);
    background-color: #0f0f0f;
}

#app {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Phaser sizes the game to this element. At least 16:9 (taller screens get bars top and bottom);
   wider screens get a wider game, which centers its 1280x720 layout and fills the sides. */
#game-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-height: calc(100vw * 9 / 16);
}

/* The game is landscape only. Phones held upright get this message on top of the game. */
#rotate {
    display: none;
}

@media (orientation: portrait) and (pointer: coarse) {
    #rotate {
        display: flex;
        position: fixed;
        inset: 0;
        align-items: center;
        justify-content: center;
        padding: 24px;
        text-align: center;
        font: 24px "Russo One", "Arial Black", sans-serif;
        color: #ffd84a;
        background-color: #0f0f0f;
    }
}
