/* WAR STARS - Web Client Styles */

/* Font faces (make sure assets/fonts contains these files). */
@font-face {
    font-family: "m5x7";
    src: url("assets/fonts/m5x7.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "workbench";
    src: url("assets/fonts/workbench.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

:root {
    --bg-color: #03030a;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "m5x7", monospace;
}

/* Root wrapper to center canvas */
.root {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* Canvas: fixed internal resolution (180x320).
   Display size is controlled by JS (integer scaling for pixel perfection). */
#gameCanvas {
    image-rendering: pixelated;
    image-rendering: crisp-edges;

    /* Default (JS will override on load/resize). */
    width: 180px;
    height: 320px;

    border: none;
    outline: none;

    /* Prevent browser panning/zooming gestures from interfering with input. */
    touch-action: none;
}