/* Container résultat */
canvas {
    margin: 15px auto;
    box-shadow: 0 0 15px #0ff;
    border-radius: 10px;	
}

.palet {
    display: flex;             /* aligne les enfants horizontalement */
    flex-wrap: wrap;           /* passe à la ligne si trop large */
    justify-content: flex-start; /* alignement à gauche */
    gap: 10px;                 /* espace entre les éléments */
    padding: 12px 16px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    border-radius: 10px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.4;
    max-width: 500px;
    box-sizing: border-box;
	margin: 10px auto 10px auto;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(45deg, gold, orange);
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    box-shadow: 0 0 15px gold;
    transform: scale(1.05);
}

/* Chaque élément séparé */
#gratte-result-ok span {
    white-space: nowrap;       /* empêche le texte de se couper */
    background: rgba(255,255,255,0.1);
    padding: 4px 8px;
    border-radius: 6px;
}

.gratte-result-ok, .gratte-result-no {
    margin: 10px auto 0 auto;	
    padding:10px;
    border-radius:10px;
    font-weight: bold;
    text-align: center;	
    display:none;
	width: fit-content;
}

.gratte-result-ok { border: dashed lightgreen; color: white; }
.gratte-result-no { border: dashed lightcoral; color: white; }

.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; } 
}

@media (max-width: 600px){
    canvas {
       width: 95%;
	}		
}

/* Responsive : sur mobile réduire la taille */
@media (max-width: 480px) {
    #gratte-result-ok {
        font-size: 14px;
        padding: 8px 12px;
    }
    #gratte-result-ok span {
        padding: 3px 6px;
        font-size: 13px;
    }
}