/* defi-du-jour.php — règles propres à la page du défi.
   Plateau, boutons et écran de fin : css/jeu.css ; intro et bloc compte :
   defi-du-jour.css partagé ; tableau : classement-bloc.css partagé. */

/* Convention des pages défi : 800 px au moins */
#app.app-defi { max-width: 800px; }

.defi-jeu { margin-bottom: 18px; }
.defi-objectif {
  font-size: 0.95rem;
  color: #e2e8f0;
  margin-bottom: 10px;
  line-height: 1.5;
}
.defi-objectif strong { color: var(--color-light); }

/* Classement du jour : encadré, masqué tant que personne n'a joué */
.classement-section {
  background: rgba(148, 163, 184, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: 18px 16px;
  margin: 8px 0 20px;
  text-align: center;
}
.classement-section h2 { font-size: 1.1rem; margin-bottom: 10px; color: #f0f3f6; }
.classement-note { font-size: 0.82rem; color: #94a3b8; margin: 8px 0; }

/* Pendant la tentative, on ne garde que le jeu */
body.mode-jeu-actif .defi-intro,
body.mode-jeu-actif .classement-section,
body.mode-jeu-actif .bandeau-infos-wrap,
body.mode-jeu-actif .bloc-jeux-une-wrap { display: none !important; }

/* Compte à rebours jusqu'à la finale suivante (site traduit seulement, 16/11/2026), sous
   la date. La date garde sa marge du bas : on la reporte sous le compte à rebours. */
.defi-date:has(+ .defi-rebours) { margin-bottom: 4px; }
.defi-rebours {
  margin: 0 0 18px;
  font-size: 0.85rem;
  color: var(--texte-doux, #94a3b8);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
body.mode-jeu-actif .defi-rebours { display: none; }
