body {
margin: 0px;
overflow: hidden;
background: #7a0d14;
touch-action: none;
}

canvas {
display: block;
}

/* Bouton musique */
#musicBtn {
position: absolute;
top: 0.9em;
right: 0.9em;
z-index: 10;
padding: 0.5em 0.9em;
font: 600 14px system-ui, sans-serif;
color: #fff3e6;
background: rgba(0, 0, 0, 0.35);
border: 1px solid rgba(255, 243, 230, 0.5);
border-radius: 999px;
cursor: pointer;
}

#musicBtn[aria-pressed="false"] {
opacity: 0.6;
}

/* Boutons de niveau, placés dans la carte du jeu par game.js */
#levels {
position: absolute;
left: 50%;
transform: translateX(-50%);
z-index: 10;
display: flex;
gap: 10px;
}

#levels button {
min-width: 92px;
padding: 0.7em 1em;
font: 700 16px system-ui, sans-serif;
color: #fff3e6;
background: #b3141c;
border: 0;
border-radius: 999px;
cursor: pointer;
}

#levels button:hover {
background: #8f1019;
}

#levels button.dernier {
outline: 3px solid #ffd9a8;
outline-offset: 1px;
}

#musicBtn:focus-visible,
#levels button:focus-visible {
outline: 3px solid #ffd9a8;
outline-offset: 2px;
}