

.reglages { text-align: left; max-width: 640px; margin: 0 auto; }
.reglages h2 { font-family: var(--font-display); font-size: 1.25rem; color: #f0f3f6; margin: 4px 0 12px; text-align: center; }
.reglages-intro { font-size: 0.9rem; color: var(--texte-doux); line-height: 1.5; margin-bottom: 14px; text-align: center; }

.reglage { margin-bottom: 16px; }
.reglage-titre { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--texte-doux); margin-bottom: 6px; }
.choix { display: flex; flex-wrap: wrap; gap: 8px; }
.choix-btn {
  flex: 1 1 150px;
  min-height: 52px;
  padding: 8px 12px;
  font: inherit; font-size: 0.95rem; font-weight: 700; text-align: left;
  color: var(--texte);
  background: var(--surface-2);
  border: 2px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.choix-btn small { display: block; margin-top: 2px; font-size: 0.74rem; font-weight: 500; color: var(--texte-doux); line-height: 1.3; }
.choix-btn:hover { border-color: var(--line-forte); }
.choix-btn[aria-pressed="true"] { border-color: var(--color-mid); background: color-mix(in srgb, var(--color-dark) 22%, var(--surface-2)); color: #fff; }
.choix-btn:focus-visible { outline: 3px solid #f2c14e; outline-offset: 2px; }

.coche { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 0.92rem; color: var(--texte); cursor: pointer; }
.coche input { width: 20px; height: 20px; accent-color: var(--color-mid); flex-shrink: 0; }

.reglages-actions { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 18px 0 10px; }
.btn-large { min-height: 50px; padding: 12px 30px; font-size: 1.02rem; }
.reglages-erreur { color: #fca5a5; font-size: 0.88rem; font-weight: 600; text-align: center; min-height: 0; }
.reglages-erreur:empty { display: none; }
.reglages-liens { text-align: center; font-size: 0.86rem; color: var(--texte-faible); line-height: 2; }
.reglages-liens a { color: var(--color-light); text-decoration: none; font-weight: 600; }
.reglages-liens a:hover { text-decoration: underline; }

.reprise {
  margin-bottom: 18px; padding: 12px 14px;
  background: rgba(242, 193, 78, 0.1); border: 1px solid rgba(242, 193, 78, 0.4); border-radius: 8px;
  text-align: center; font-size: 0.92rem; color: #fde9b0;
}
.reprise-boutons { margin-top: 10px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }


.mes-stats { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.stats-chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin-bottom: 10px; }
.stat { padding: 10px 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; text-align: center; }
.stat b { display: block; font-size: 1.3rem; color: #f0f3f6; font-variant-numeric: tabular-nums; }
.stat span { font-size: 0.74rem; color: var(--texte-doux); }
.stats-tables { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.stats-tables th, .stats-tables td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: right; }
.stats-tables th:first-child, .stats-tables td:first-child { text-align: left; }
.stats-tables th { color: var(--texte-doux); font-weight: 600; }
.stats-note { font-size: 0.8rem; color: var(--texte-faible); margin-top: 8px; text-align: center; }
.stats-note a { color: var(--color-light); }


.salon { max-width: 640px; margin: 0 auto; text-align: center; }
.salon h2 { font-family: var(--font-display); font-size: 1.25rem; color: #f0f3f6; margin: 4px 0 12px; }
.salon-texte { font-size: 0.9rem; color: var(--texte-doux); line-height: 1.5; margin-bottom: 12px; }
.champ { display: flex; flex-direction: column; gap: 4px; text-align: left; margin-bottom: 12px; }
.champ label { font-size: 0.8rem; font-weight: 700; color: var(--texte-doux); }
.champ input {
  min-height: 46px; padding: 8px 12px;
  font: inherit; font-size: 1rem; color: var(--texte);
  background: var(--surface-2); border: 1px solid var(--line-forte); border-radius: 8px;
}
.champ input:focus { outline: 2px solid var(--color-mid); outline-offset: 1px; }
.champ input[readonly] { color: var(--texte-doux); }
.champ-code input { text-transform: uppercase; letter-spacing: 0.4em; text-align: center; font-weight: 800; font-size: 1.3rem; }
.salon-onglets { display: flex; gap: 8px; margin-bottom: 16px; }
.salon-onglets .choix-btn { text-align: center; flex: 1; }
.salon-panneau { text-align: left; }

.code-salon {
  display: inline-block; margin: 6px 0 4px; padding: 8px 22px;
  font-family: ui-monospace, Consolas, monospace; font-size: 1.8rem; font-weight: 800; letter-spacing: 0.3em; color: #6ee7b7;
  background: var(--surface-2); border: 1px solid var(--line-forte); border-radius: 10px;
}
.salon-partage { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 8px 0 16px; }
.salon-table {
  display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-areas: ". n ." "o c e" ". s ."; gap: 8px;
  max-width: 440px; margin: 0 auto 14px; padding: 14px; border-radius: 22px;
  background: radial-gradient(ellipse at center, #17573c 0%, #0f3d2a 78%); border: 2px solid #1b5a3f;
}
.salon-siege {
  min-height: 56px; padding: 6px 8px; border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font: inherit; font-size: 0.86rem; font-weight: 700; color: #ecfdf5;
  background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.16);
  overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.salon-siege small { font-size: 0.68rem; font-weight: 600; color: #a7b5ae; }
.salon-siege.libre { border-style: dashed; color: #a7b5ae; cursor: pointer; }
.salon-siege.libre:hover { border-color: #f2c14e; color: #fde9b0; }
.salon-siege.moi { border-color: #f2c14e; }
.salon-siege.equipe-a { box-shadow: inset 0 -3px 0 #6ee7b7; }
.salon-siege.equipe-b { box-shadow: inset 0 -3px 0 #93c5fd; }
.salon-centre { grid-area: c; align-self: center; font-size: 0.74rem; color: #d1fae5; line-height: 1.4; }
.salon-actions { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.salon-note { font-size: 0.8rem; color: var(--texte-faible); }
.salon-erreur { color: #fca5a5; font-size: 0.88rem; font-weight: 600; min-height: 0; margin: 6px 0; }
.salon-erreur:empty { display: none; }

.publiques { margin-top: 14px; text-align: left; }
.publiques h3 { font-size: 0.9rem; color: #f0f3f6; margin-bottom: 6px; }
.publique { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.88rem; }
.publique-vide { font-size: 0.84rem; color: var(--texte-faible); }

.bandeau-absent {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 12px; border-radius: 8px; font-size: 0.88rem; font-weight: 600;
  background: rgba(248, 113, 113, 0.1); border: 1px solid rgba(248, 113, 113, 0.4); color: #fecaca;
}
.compte-a-rebours { font-variant-numeric: tabular-nums; color: #fde9b0; }


.defi-entete { text-align: center; margin-bottom: 14px; }
.defi-entete p { font-size: 0.92rem; color: var(--texte-doux); line-height: 1.5; margin-top: 6px; }
.defi-date { font-weight: 700; color: var(--color-light) !important; }
.defi-variantes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-bottom: 12px; }
.defi-variante {
  display: flex; flex-direction: column; gap: 4px; align-items: flex-start;
  min-height: 92px; padding: 12px 14px;
  font: inherit; text-align: left; color: var(--texte);
  background: var(--surface-2); border: 2px solid var(--line); border-radius: 10px; cursor: pointer;
}
.defi-variante:hover:not(:disabled) { border-color: var(--color-mid); }
.defi-variante:disabled { cursor: default; opacity: 0.85; }
.defi-variante-nom { font-size: 1.05rem; font-weight: 800; color: #f0f3f6; }
.defi-variante-desc { font-size: 0.8rem; color: var(--texte-doux); line-height: 1.35; }
.defi-variante-statut { font-size: 0.84rem; font-weight: 700; color: #fde9b0; }
.defi-message { text-align: center; font-size: 0.9rem; color: #fca5a5; font-weight: 600; min-height: 0; margin-bottom: 8px; }
.defi-message:empty { display: none; }
.defi-serie { text-align: center; font-size: 0.9rem; color: var(--texte); margin: 8px 0 14px; }
.defi-serie b { color: #fde9b0; }
.defi-compte { text-align: center; padding: 14px; margin-bottom: 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; }
.defi-compte p { font-size: 0.92rem; color: var(--texte); line-height: 1.5; margin-bottom: 10px; }
.encart-jour {
  margin-top: 16px; padding: 14px;
  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);
}
.encart-jour h2 { font-family: var(--font-display); font-size: 1.1rem; color: #f0f3f6; margin-bottom: 10px; text-align: center; }
.encart-onglets { display: flex; justify-content: center; gap: 8px; margin-bottom: 10px; }
.encart-onglets .btn-points { min-width: 110px; }
.lien-encart { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-light); font-weight: 700; font-size: 0.88rem; text-decoration: none; }
.lien-encart:hover { text-decoration: underline; }
body.en-partie .encart-jour, body.en-partie .defi-entete, body.en-partie .defi-choix, body.en-partie .defi-intro, body.en-partie .titre-page-jeu { display: none; }
