* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #1a1a2e;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    background-color: #16213e;
    border-radius: 16px;
    padding: 40px;
    width: 700px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

h1 {
    color: #e94560;
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
}

.jeu {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.colonne-gauche {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.colonne-droite {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

canvas {
    background-color: #0f3460;
    border-radius: 12px;
}

#essais {
    color: #a8a8b3;
    font-size: 14px;
}

#lettres-ratees {
    color: #e94560;
    font-size: 14px;
    text-align: center;
    max-width: 200px;
}

#mot {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.lettre {
    color: #ffffff;
    font-size: 32px;
    font-weight: bold;
    border-bottom: 3px solid #e94560;
    width: 30px;
    text-align: center;
    padding-bottom: 4px;
}

#message {
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    min-height: 30px;
}

#alphabet {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.btn-lettre {
    background-color: #0f3460;
    color: #ffffff;
    border: 2px solid #e94560;
    border-radius: 6px;
    width: 40px;
    height: 40px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-lettre:hover {
    background-color: #e94560;
}

.btn-lettre.utilisee {
    background-color: #333;
    border-color: #555;
    color: #555;
    cursor: not-allowed;
}

.btn-lettre.correcte {
    background-color: #2ecc71;
    border-color: #2ecc71;
}

.btn-lettre.incorrecte {
    background-color: #e74c3c;
    border-color: #e74c3c;
}

#btn-rejouer {
    background-color: #e94560;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 36px;
    font-size: 18px;
    cursor: pointer;
    display: none;
    margin: 0 auto;
}

#btn-rejouer:hover {
    background-color: #c73652;
}