body {
    background-color: #222;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: 'Arial', sans-serif;
}

#game-container {
    position: relative;
    width: 800px;
    height: 600px;
    background-image: url('background_yoshi.png');
    background-size: cover; /* Adapte l'image à la boite */
    background-position: center;
    border: 5px solid white;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    overflow: hidden; /* Coupe ce qui sort du cadre */
}

#ui-bar {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    z-index: 100;
}

.stat {
    margin-right: 15px;
    display: inline-block;
    font-size: 20px;
}

#player {
    position: absolute;
    width: 150px;
    height: 150px;
    z-index: 10;
}

.item {
    position: absolute;
    width: 40px;
    height: 40px;
    z-index: 5;
}

/* Écran Game Over */
#game-over-screen {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.hidden {
    display: none !important;
}

#leaderboard-list {
    background: #333;
    padding: 20px;
    border-radius: 10px;
    list-style: none;
    width: 200px;
    text-align: left;
}
#leaderboard-list li {
    border-bottom: 1px solid #555;
    padding: 5px 0;
}