/* ============================================================
   Pixel Dash: The Lost Coins — Stylesheet
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    background: #000;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Prevent text selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#gameCanvas {
    /* Scale up with pixelated rendering for retro look */
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    /* Scale to fit viewport while maintaining aspect ratio */
    width: 960px;
    height: 540px;
    max-width: 100vw;
    max-height: 100vh;
    /* Keep aspect ratio */
    object-fit: contain;
    display: block;
}

/* Responsive scaling */
@media (max-width: 960px) {
    #gameCanvas {
        width: 100vw;
        height: calc(100vw * 270 / 480);
    }
}

@media (max-height: 540px) {
    #gameCanvas {
        height: 100vh;
        width: calc(100vh * 480 / 270);
    }
}
