/*
 * CosmoBlast — identité de la page d'accueil. Tout le reste (hero-jeu,
 * hero-flex, cartes de modes, FAQ) vient du CSS partagé chargé avant.
 */
.deco-astre  { background: #a78bfa; }
.deco-comete { background: #22d3ee; border-radius: 3px; transform: rotate(45deg); }
.deco-etoile { background: #f472b6; }

.rules { --rules-symbole: '\2726'; }

.mode-card .mode-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}
.badge-solo         { background: rgba(167, 139, 250, 0.18); color: #c4b5fd; }
.badge-defi         { background: rgba(251, 191, 36, 0.18); color: #fcd34d; }
.badge-entrainement { background: rgba(34, 211, 238, 0.16); color: #67e8f9; }
.badge-classement   { background: rgba(244, 114, 182, 0.16); color: #f9a8d4; }

.modes-header {
  text-align: center;
  font-weight: 700;
  margin: 6px 0 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
}
a.mode-card { text-decoration: none; display: block; }
a.mode-card h2 { margin: 6px 0 4px; }

/* Capture du jeu */
.cb-capture { margin: 16px 0 6px; }
.cb-capture img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--line-forte);
}
.cb-capture figcaption { margin-top: 6px; font-size: 0.82rem; color: var(--texte-doux); text-align: center; }

/* Tableaux des règles (ennemis, bonus, combo, boss) */
.cb-tableau-defile { overflow-x: auto; margin: 10px 0 12px; }
.cb-tableau {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  line-height: 1.45;
  text-align: left;
}
.cb-tableau th, .cb-tableau td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cb-tableau thead th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--texte-doux); white-space: nowrap; }
.cb-tableau tbody th { font-weight: 700; color: var(--texte); white-space: nowrap; }
.cb-tableau td { color: var(--texte-doux); }
.cb-tableau-court { max-width: 380px; }
.cb-vignette {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 52px;
  margin-right: 10px;
  vertical-align: middle;
}
/* Les ennemis sont dessinés nez vers le bas dans la planche : dans le jeu, ils
   arrivent par la droite, nez vers la gauche. */
.cb-tourne { transform: rotate(90deg); }
/* Les cinq boss partagent la soucoupe de la planche ; le jeu la teinte, la
   page fait de même par un filtre. */
.cb-boss-1 { filter: hue-rotate(185deg) saturate(1.5); }
.cb-boss-2 { filter: hue-rotate(290deg) saturate(1.3); }
.cb-boss-3 { filter: hue-rotate(215deg) saturate(1.6) brightness(1.15); }
.cb-boss-4 { filter: hue-rotate(160deg) saturate(1.8); }
@media (max-width: 520px) {
  .cb-tableau th, .cb-tableau td { padding: 7px 6px; }
  .cb-vignette { width: 46px; margin-right: 6px; }
}

/* FAQ : l'état ouvert ou fermé est porté par aria-expanded, que le script
   partagé (faq-accordeon.js) bascule. */
.faq-section { margin: 14px 0 10px; }
.faq-item {
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  min-height: 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  background: none;
  border: 0;
  color: var(--texte);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.faq-question:hover { background: color-mix(in srgb, var(--color-mid) 12%, transparent); }
.faq-question:focus-visible { outline: 2px solid var(--color-accent); outline-offset: -2px; }
.faq-question::after {
  content: '';
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--color-light);
  border-bottom: 2px solid var(--color-light);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s ease;
}
.faq-question[aria-expanded="true"]::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq-answer { padding: 0 16px 14px; color: var(--texte-doux); line-height: 1.65; font-size: 0.9rem; text-align: left; }
.faq-answer[hidden] { display: none; }