/* Asegurar que el body ocupe toda la pantalla */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
    overflow: hidden;
    box-sizing: border-box;
    background-image: url("/img/tetris-bg-resized.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.game-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgb(0 0 0 / 0.25);
    width: 100vw;
    height: 100vh;
}

/* Contenedor del título */
.title-container {
    gap: 15px;
    text-align: center;
    margin-bottom: 5px;
    width: 100%;
    max-width: 360px; /* Mismo ancho base que el canvas */
}

.title {
    font-family: 'Press Start 2P', cursive;
    color: #8d8d8d;
    font-size: 20px;
    margin: 0;
    color: white;
    text-shadow: #000 2px 2px;
}

.coded-by {
    font-family: 'Press Start 2P', cursive;
    color: #666;
    font-size: 8px;;
    color: white;
    text-shadow: #000 2px 2px;
}

/* Canvas responsivo */
#gameCanvas {
    display: block;
    max-width: 100%;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    border-radius: 15px;
    border: 2px solid rgb(255, 255, 255, 0.25);
}

/* Variable para escalar HUD en pantallas pequeñas */
:root {
    --hud-scale: 1;
}