/* =====================================================================
 *  Modes de jeu (normal / difficile / facile) — complète style.css, chargé après lui.
 * ===================================================================== */

/* Pastilles de mode */
.badge--mode-normal { background: #e6e9ef; color: #414b5e; }
.badge--mode-hard   { background: #fde3df; color: #8f2415; }
.badge--mode-easy   { background: #d5f0dc; color: #1c6a37; }

/* Statut « tentatives épuisées » (mode difficile) */
.badge--lost { background: #fde3df; color: #8f2415; }

/* Chiffre 0 (mode facile) : pastille neutre, lisible dans l'historique */
.disc[data-d="0"] { background: var(--paper); color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line); }

/* Rappel du mode sur la page de jeu et avant l'inscription */
.game__head .badge { align-self: center; }
.mode-notice { font-weight: 600; color: var(--bad); }

/* Mode difficile : tentatives restantes */
.attempts-left { margin: 0 0 1rem; text-align: center; color: var(--muted); font-weight: 500; }
.attempts-left.is-low { color: var(--bad); font-weight: 700; }

/* Mode facile : 7 cases de saisie, une par chiffre */
.easy { margin: 0 0 1.25rem; }
.easy__fieldset { display: grid; gap: 0.5rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.easy__label { justify-self: center; padding: 0; font-weight: 600; text-align: center; }
.easy__boxes {
  display: flex;
  justify-content: center;
  gap: clamp(0.25rem, 1.6vw, 0.5rem);
  width: 100%;
  max-width: 25rem;
  justify-self: center;
}
.easy__box {
  flex: 1 1 0;
  min-width: 0;
  max-width: 3.25rem;
  aspect-ratio: 4 / 5;
  padding: 0;
  font: 500 clamp(1.35rem, 6vw, 1.9rem)/1 var(--font-num);
  text-align: center;
  color: var(--ink);
  caret-color: var(--d6);
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 0.6rem;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.easy__box:focus,
.easy__box:focus-visible { outline: none; border-color: var(--d6); box-shadow: 0 0 0 3px rgba(63, 91, 216, 0.2); }
.easy__box:disabled { opacity: 0.5; }
