/* solo.php — règles propres à cette page.
   L'habillage commun vient de fichiers-partages-des-jeux/css/jeu.css ; grilles, navires
   et écran de fin de css/grille.css. */
#app {
  position: relative;
  z-index: 1;
  padding: 32px 24px 24px;
  max-width: 960px;
}

h1 {
  text-align: center;
  margin-bottom: 8px;
}

.status-bar {
  text-align: center;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: var(--texte);
  font-weight: 600;
}

.info-bar {
  font-size: 0.82rem;
}

.info-item span {
  color: var(--color-light);
  font-weight: 700;
}

/* Choix du niveau de l'ordinateur, pendant le placement seulement : il se fige au
   lancement de la partie. */
.choix-niveau {
  text-align: center;
  margin-bottom: 16px;
}

.choix-niveau-titre {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--texte-doux);
  margin-bottom: 8px;
}

.niveaux {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.niveau-btn {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  background: var(--surface-2);
  border: 1px solid var(--line-forte);
  color: var(--texte-doux);
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.niveau-btn small {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--texte-faible);
}

.niveau-btn[aria-pressed="true"] {
  background: rgba(99, 102, 241, 0.3);
  border-color: var(--color-light);
  color: var(--texte);
}

.niveau-btn[aria-pressed="true"] small {
  color: var(--texte-doux);
}

/* CTA inscription */
#cta-inscription {
  background: var(--surface-2);
  border: 1px solid var(--line-forte);
  border-radius: 8px;
  padding: 18px 20px;
  margin: 0 0 16px;
}

.cta-score-msg {
  color: var(--texte) !important;
  font-size: 0.85rem !important;
  margin-bottom: 12px !important;
}

.cta-auth-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.cta-auth-btns .btn {
  font-size: 0.85rem;
  padding: 8px 18px;
}

.back-link {
  text-align: center;
}

/* Texte de présentation, sous le jeu. */
.solo-texte {
  max-width: 760px;
  margin: 28px auto 8px;
  color: var(--texte-doux);
  font-size: 0.9rem;
  line-height: 1.7;
}

.solo-texte h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--texte);
  margin: 20px 0 10px;
  font-weight: 700;
}

.solo-texte p,
.solo-texte ul {
  margin-bottom: 12px;
}

.solo-texte ul {
  padding-left: 20px;
}

.solo-texte a {
  color: var(--color-light);
  font-weight: 600;
  text-decoration: none;
}

.solo-texte a:hover {
  text-decoration: underline;
}

@media (max-width: 780px) {

  #app {
    padding: 24px 12px 16px;
  }
}
