/* Pile ou face — feuille propre à l'outil. Le socle partagé
   (/commun/outil.css et /commun/formulaire.css) est chargé avant elle. */

/* --- La pièce -------------------------------------------------------------- */

.raccourcis { display: flex; gap: 8px; }

.piece {
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  margin: 8px auto 24px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  background: var(--surface);
  color: var(--accent);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.piece[data-cote="face"] { border-color: var(--attention); color: var(--attention); }

.piece.tourne { animation: tourne 0.45s ease-out; }

@keyframes tourne {
  /* La pièce part de la tranche (invisible) et revient de face : le texte
     n'apparaît jamais à l'envers. */
  from { transform: rotateY(90deg) scale(0.9); }
  to { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .piece.tourne { animation: none; }
}

.serie {
  margin: 0 0 16px;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  word-break: break-all;
  line-height: 1.7;
}

.serie .p { color: var(--accent); }
.serie .f { color: var(--attention); }

.stats {
  width: 100%;
  margin: 0 0 14px;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.stats th, .stats td { padding: 4px 6px; text-align: left; }
.stats thead th { color: var(--discret); font-weight: 400; font-size: 0.8rem; }
.stats tbody th { color: var(--discret); font-weight: 400; }
.stats td { font-variant-numeric: tabular-nums; }

/* La colonne du cumul n'apparaît qu'après plusieurs séries. */
.resultat:has(#cumul-bloc[hidden]) .cumul,
.resultat:has(#cumul-bloc[hidden]) #cumul-titre { display: none; }
