html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: #000; /* black letterbox bars when the aspect ratio differs */
    overflow: hidden; /* the game fills the viewport exactly - no scrollbars */
}

/* The game fills the whole viewport. Phaser's Scale Manager (FIT) centers the
   canvas inside here; any leftover space shows as black letterbox bars. */
#content {
    width: 100vw;
    height: 100vh;
}

#content canvas {
    display: block;
}

.canvas-supported .canvas-fallback {
    display: none;
}

.canvas-fallback {
    box-sizing: border-box;
    width: min(680px, calc(100vw - 32px));
    margin: 0 auto;
    padding: 48px 0;
    color: #f5f7fb;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

.canvas-fallback h1 {
    margin: 0 0 16px;
    font-size: 40px;
}

.canvas-fallback p {
    margin: 0 0 14px;
    font-size: 18px;
}
