/* Container des lettres */
#word-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0;
    gap: 5px;
}

/* Inputs lettres */
.letter-input {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    border: 2px solid #1E90FF;
    border-radius: 10px;
    background-color: #1F1F1F;
    color: #FFF;
    outline: none;
    transition: all 0.2s;
}
.letter-input:focus {
    border-color: #FFD700;
    box-shadow: 0 0 5px #FFD700;
}
.letter-input:disabled {
    background-color: #555;
    cursor: default;
}

/* Div messages */
#cluedo-result-ok {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin: 10px 0;
    color: #FFD700; /* Jaune pour succès / indice */
}
#cluedo-result-no {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin: 10px 0;
    color: #FF6347; /* Rouge pour erreurs / échec */
}

/* Compteur erreurs */
#mots-error-counter {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin: 10px 0;
    color: #FF4500;
}

/* Boutons */
.bouton {
    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    margin: 5px;
}
.bouton:hover {
    opacity: 0.85;
    transform: scale(1.05);
}

/* Couleurs boutons */
.bouton-vertclair { background: #32CD32; color: #fff; }
.bouton-jaune { background: #FFA500; color: #fff; }
.bouton-noir { background: #333; color: #fff; }
.bouton-rose { background: #FF4500; color: #fff; }
.bouton-vert { background: #1E90FF; color: #fff; }
.bouton-bleu { background: #1E90FF; color: #fff; }

.regles-overlay { display: none; position: fixed; z-index: 99999; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.80); align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; } 
.regles-overlay.active { display: flex; }
.regles-popup { position: relative; width: 100%; max-width: 740px; max-height: 90vh; overflow-y: auto; background: #111; border: 1px solid gold; border-radius: 15px; padding: 20px; box-sizing: border-box; box-shadow: 0 10px 40px rgba(0,0,0,0.8), 0 0 25px rgba(255,215,0,0.15); } 
.regles-close { position: absolute; top: 10px; right: 10px; width: 35px; height: 35px; border: none; border-radius: 50%; background: #333; color: white; font-size: 20px; font-weight: bold; cursor: pointer; z-index: 2; } 
.regles-close:hover { background: #ff4444; } 

@media (max-width: 600px) { 
.regles-overlay { padding: 10px; } 
.regles-popup { max-height: 92vh; padding: 10px; } 
.tournoi-info { padding: 15px !important; } 
}

/* Responsive mobile */
@media(max-width:600px){
    .letter-input { width: 40px; height: 40px; font-size: 22px; }
    #word-grid { gap: 3px; }
}
