body {
    font-family: 'Arial', sans-serif;
    background-image: url('assets/background-cugdl.png'); 
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.game-container {
    background-color: rgba(0, 0, 0, 0.9); 
    color: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 
        0 0 0 5px currentColor,
        0 0 30px rgba(0, 0, 0, 0.8);
    text-align: center;
    width: 90%;
    max-width: 450px;
    animation: color-cycle 6s linear infinite;
}

/* --- DEFINICIÓN DE LA ANIMACIÓN DE COLOR --- */
@keyframes color-cycle {
    0% {
        color: #fff;
    }
    14.3% {
        color: #0068a7;
    }
    28.6% {
        color: #cf2573;
    }
    43% {
        color: #419c94;
    }
    57.2% {
        color: #9ebb3d;
    }
    71.5% {
        color: #6d4f8e;
    }
    85.8% {
        color: #0068a7;
    }
    100% {
        color: #ffffff;
    }
}

.balance-info {
    font-size: 1.5em;
    font-weight: bold;
    color: #00ff00; 
    margin-bottom: 20px;
}

.result-display {
    min-height: 40px;
    margin-bottom: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffcc00;
}

/* --- Máquina de Carretes --- */
.slots-machine {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 150px;
    overflow: hidden; 
    border: 10px solid #555;
    border-radius: 5px;
    background-color: #000;
    margin: 20px 0;
    position: relative;
}

.reel {
    width: 30%;
    height: 100%;
    transition: transform 1.8s cubic-bezier(0.25, 0.1, 0.25, 1); 
    will-change: transform; 
}

.slot {
    height: 150px; 
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    
    background-color: transparent;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); 

    /* Estilos para la imagen de los logos */
    background-size: contain; 
    background-repeat: no-repeat;
    background-position: center;
}

/* Botón y Apuesta */
button {
    background-color: #cc0000;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
    margin-top: 10px;
    transition: background-color 0.3s;
}

button:disabled {
    background-color: #888;
    cursor: not-allowed;
}

.jackpot-glow {
    box-shadow: 0 0 15px 5px gold;
    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    from {
        box-shadow: 0 0 10px 2px #ffcc00;
    }
    to {
        box-shadow: 0 0 20px 5px #ff0000;
    }
}