/* 💾 Importa la fuente tipo bit de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

/* Define la animación Fade In */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    /* 🟢 TRAMA DE FONDO */
    background-color: #000000; 
    background-image: url('assets/money_pattern.png'); /* ⬅️ RUTA DEL PATRÓN */
    background-repeat: repeat; 
    
    color: white;
    /* 💥 Fuente Tipo Bit aplicada a todo el cuerpo */
    font-family: 'Press Start 2P', cursive; 
    margin: 0;
    height: 100vh;
    overflow: hidden;
    touch-action: none; 
}

/* 😼 ESTILOS DEL TÍTULO: Grande, Centrado y con Fade In */
#gameTitle {
    position: absolute;
    top: 40%; 
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.8em; 
    color: #ffd700;
    text-align: center;
    line-height: 1.2;
    z-index: 101; 
    text-shadow: 4px 4px 0 #ff0000;
    
    /* Efecto Fade In */
    animation: fadeIn 2s ease-in-out;
    padding: 10px;
}

/* 🎹 ESTILOS DEL BOTÓN: Negro con Letras Amarillas (Tipo Arcade) */
#startButton {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 15px 30px;
    
    /* Tamaño de fuente fijo para asegurar renderizado 8-bit */
    font-size: 16px; 
    
    font-weight: bold;
    color: #ffd700;
    background-color: #000000;
    border: 3px solid #ffd700;
    border-radius: 8px;
    cursor: pointer;
    z-index: 100;
    display: block; 
    
    /* Aplicación explícita de la fuente al botón */
    font-family: 'Press Start 2P', cursive;
}

#gameCanvas {
    background-color: transparent; 
    max-width: 100%;
    max-height: 85vh; 
    border: 3px solid #ffd700; 
    display: block; 
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5); 
}

/* 🏆 CAJA DE PUNTUACIONES: Fondo Negro para Resaltar */
#uiContainer {
    text-align: center;
    padding: 8px;
    margin-top: 5px;
    /* 🟢 Fondo negro sólido */
    background-color: #000000; 
    /* Borde amarillo para destacarse */
    border: 2px solid #ffd700; 
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3); /* Sombra suave */
}

#scoreDisplay, #highScoreDisplay {
    margin-bottom: 5px;
    font-size: 0.8em; 
    font-weight: bold;
    color: #ffd700;
}

#visitsDisplay {
    /* Reduce el tamaño de la fuente para hacerla sutil */
    font-size: 4px; 
    /* Opcional: Color gris sutil para diferenciarlo de las puntuaciones principales */
    color: #95a5a6; 
    font-weight: normal; 
    margin-top: 5px;
}