/* 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 {
    margin-top:20px;
    padding:15px;
    background:linear-gradient(45deg,#00ff88,#00994d);
    color:#FFFFFF;
    font-weight:bold;
    border-radius:10px;
    text-align:center;
    box-shadow:0 0 15px #00ff88;
}

.gratte-result-no {
    margin:20px auto 10px auto;
    padding:15px;
    background:linear-gradient(45deg,#ff4444,#990000);
    color:#fff;
    font-weight:bold;
    border-radius:10px;
    text-align:center;
    box-shadow:0 0 15px red;
}

@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;
    }
}