body {
    margin: 0;
    /* Un fond sombre avec un léger dégradé */
    background: radial-gradient(circle at center, #2b2b45, #0f0f1a);
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

h1 {
    font-size: 3.5em;
    text-transform: uppercase;
    text-shadow: 0 0 10px #e94560, 0 0 20px #e94560; /* Effet néon */
    margin-bottom: 30px;
}

.ecran {
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    border: 1px solid #333;
}

button {
    padding: 15px 35px;
    margin: 15px;
    font-size: 18px;
    cursor: pointer;
    background: linear-gradient(45deg, #e94560, #d82b45);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.4);
}

button:hover {
    transform: scale(1.05); /* Le bouton grossit un peu */
    box-shadow: 0 5px 25px rgba(233, 69, 96, 0.8);
}

button:disabled {
    background: #555;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.selection-container {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
}

.joueur-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

.grille {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.perso-btn {
    width: 60px;
    height: 60px;
    border: 3px solid transparent;
    border-radius: 10px;
    transition: transform 0.2s;
    padding: 0;
    margin: 0;
}

.perso-btn:hover {
    transform: scale(1.1);
    border-color: rgba(255,255,255,0.5);
}

canvas {
    /* Ciel avec un léger dégradé */
    background: linear-gradient(to bottom, #87CEEB, #e0f6ff);
    border: 6px solid #222;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
}
.flip-horizontal {
    transform: scaleX(-1);
}