     body {
         font-family: system-ui, sans-serif;
         text-align: center;
         user-select: none;
     }

     .palette {
         display: flex;
         gap: 14px;
         justify-content: center;
         margin: 20px;
         flex-wrap: wrap;
     }

     .fraction {
         cursor: grab;
         text-align: center;
         padding: 6px 8px;
         border-radius: 10px;
     }

     .fraction>canvas {
         border: 1px solid #ccc;
         border-radius: 50%;
         display: block;
         margin-inline: auto;
     }

     .assiettes {
         display: flex;
         gap: 20px;
         justify-content: center;
         flex-wrap: wrap;
     }

     .assiette {
         width: 160px;
         height: 160px;
         border-radius: 50%;
         border: 3px solid #222;
         position: relative;
         background: #fafafa;
     }

     .assiette canvas {
         width: 160px;
         height: 160px;
     }

     #objectif1,
     #objectif2,
     #objectif3 {
         font-size: 1.4em;
         margin: 16px 0 8px;
     }

     #niveau {
         margin: 6px 0 18px;
     }

     .stock {
         font-size: 0.85em;
         color: #444;
         margin-top: 4px;
     }

     .frac {
         display: inline-flex;
         flex-direction: column;
         align-items: center;
         line-height: 1;
         vertical-align: middle;
     }

     .frac .bar {
         width: 100%;
         border-top: 2px solid currentColor;
         margin: 0.08em 0;
     }

     .frac .top,
     .frac .bottom {
         display: block;
     }

     #grille {
         display: grid;
         grid-template-columns: repeat(3, 30%);
         grid-template-rows: 50px 200px;
         grid-gap: 50px 30px;
         margin: auto;
     }

     .signe {
         display: inline-flex;
         align-items: center;
         font-weight: 600;
         margin: 0 6px;
         line-height: 1;
     }

     #fraction1,
     #fraction2,
     #fraction3 {
         display: block;
     }


     #medaille {
         position: fixed;
         right: 0;
         bottom: 30px;
         border: 3px solid black;
         border-radius: 10px;
         animation: fadeOut 2s forwards;
         /* joue une fois, garde le dernier état */
         margin: 10px;
         padding: 5px;

         font-family: 'opendys';
     }
 .bouton {
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    margin: 6px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.bouton:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0,0,0,0.25);
}

.bouton:active {
    transform: translateY(0);
    box-shadow: 0 3px 5px rgba(0,0,0,0.2);
}

#niveau {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

#titre-niveau {
    font-size: 1.6em;
    font-weight: 700;
    margin-bottom: 10px;
    color: #0ea5e9; /* même bleu que les boutons */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.15);
}
#auteur {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #f5f5f5;  /* couleur de fond discrète */
    text-align: center;
    padding: 6px 0;
    font-size: 0.9em;
    color: #333;
    border-top: 1px solid #ccc;
}
h1{margin:0;}
