  svg {
        border: 1px solid #444;
    }
    .cell {
        fill: white;
        stroke: black;
    }
    .black {
        fill: black;
    }
    .num {
        font-family: Arial, sans-serif;
        font-size: 20px;
        text-anchor: middle;
        dominant-baseline: central;
        fill: black;
    }
    .user {
        fill: blue;
        font-weight: bold;
    }
    .error {
        fill: red;
        font-weight: bold;
    }
    .active {
        stroke: red;
        stroke-width: 2px;
    }
    text {
        pointer-events: none;
    }

    #zone {
        display: flex;
        justify-content: center;
        margin-top: 20px;
    }

    #boutons, #choixTaille, #infos, #intro {
        text-align: center;
        margin-bottom: 15px;
    }

    button {
        margin: 5px;
        padding: 8px 15px;
        font-size: 16px;
    }
    .message {
	    margin-top: 10px;
	    padding: 8px 12px;
	    background: #f0f0f0;
	    border-radius: 6px;
	    font-size: 16px;
	    display: inline-block;
	    opacity: 1;
	    transition: opacity 1s ease;
	}

	.message.fade {
	    opacity: 0;
	}

#message-jeu {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

#message-jeu:empty {
    display: none;
}
/* Conteneur du pavé numérique */
#yakazuPadContainer {
    display: none;                 /* Caché par défaut (PC) */
    margin-top: 10px;
    text-align: center;
}

/* Pavé numérique */
.yakazu-pad {
    display: grid;
    grid-template-columns: repeat(3, 60px);
    grid-gap: 8px;
    justify-content: center;
    margin: 0 auto;
}

/* Boutons du pavé */
.yakazu-pad button {
   /* width: 60px; */
   height: 60px; 
    font-size: 24px;
    font-weight: bold;
    border: 2px solid #444;
    border-radius: 8px;
    background-color: #f2f2f2;
    color: #222;
    cursor: pointer;
    transition: background-color 0.15s, transform 0.1s;
}

/* Effet au toucher */
.yakazu-pad button:active {
    background-color: #ddd;
    transform: scale(0.95);
}

/* Bouton Effacer */
.yakazu-pad .erase-btn {
    grid-column: span 3;
    background-color: #ffdddd;
    border-color: #cc8888;
    font-size: 20px;
     padding: 10px 0;
   
}

/* Effet au toucher pour Effacer */
.yakazu-pad .erase-btn:active {
    background-color: #ffcccc;
}

/* Version mobile : pavé plus compact si écran étroit */
@media (max-width: 480px) {
    .yakazu-pad {
        grid-template-columns: repeat(3, 50px);
        grid-gap: 6px;
    }

    .yakazu-pad button {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}