.pair-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}
.pair-row:last-child { border-bottom: none; }
.pair-row__words { flex: 1; display: flex; align-items: center; gap: 8px; }
.pair-row__vs { color: var(--paper-faint); font-family: var(--font-mono); font-size: 11px; }
.pair-row__del {
  background: none; border: none; color: var(--paper-faint); cursor: pointer;
  font-size: 18px; line-height: 1; padding: 4px 8px;
}
.pair-row__del:hover { color: var(--red); }

.cat-card { margin-bottom: 20px; }
.cat-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cat-card__del {
  background: none; border: 1px solid var(--line); color: var(--paper-faint);
  border-radius: var(--radius-s); padding: 6px 10px; font-size: 12px; cursor: pointer;
}
.cat-card__del:hover { color: var(--red); border-color: var(--red-dim); }

.add-pair-form { display: flex; gap: 8px; margin-top: 14px; }
.add-pair-form .input { padding: 10px 12px; font-size: 14px; }

/* Sélecteur de jeu : les catalogues de mots n'ont pas tous la même forme, on
   bascule de l'un à l'autre plutôt que de les empiler.

   La barre DÉFILE à l'horizontale, et ne se partage plus la largeur. Avec sept
   jeux, `flex: 1` donnait sur un téléphone des onglets de quarante pixels où
   « Wavelength » et « Le Faussaire » se réduisaient à trois lettres et des
   points de suspension — on ne choisissait plus un jeu, on devinait lequel.
   Le prix à payer est qu'on ne les voit plus tous d'un coup : le calage sur
   l'onglet suivant et le voisin qu'on laisse dépasser au bord disent qu'il y a
   de la suite. */
.game-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: var(--space-4);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  /* La barre de défilement mangerait une ligne sous les onglets pour rien :
     le geste est tactile, et le débordement se voit déjà. */
  scrollbar-width: none;
  padding-bottom: 2px;
}
.game-tabs::-webkit-scrollbar { display: none; }
.game-tab {
  flex: 0 0 auto;
  scroll-snap-align: start;
  white-space: nowrap;
  background: var(--ink-900);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  color: var(--paper-dim);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 14px;
  cursor: pointer;
}
.game-tab.is-active {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--amber-ink);
}

/* Les deux moitiés de l'espace : le contenu des jeux, et les animations. Un
   trait sous l'onglet actif plutôt qu'un pavé plein — la barre des jeux, juste
   dessous, est déjà en aplat, et deux aplats l'un sur l'autre ne diraient plus
   lequel commande l'autre. */
/* Trois sections tiennent tout juste sur un téléphone étroit, et la pastille
   des propositions en attente ajoute encore quelques pixels. La barre défile
   donc plutôt que de se comprimer — même raison qu'à la barre des jeux : un
   onglet réduit à trois lettres ne se choisit plus, il se devine. */
.section-tabs {
  display: flex;
  gap: var(--space-3);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--space-4);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.section-tabs::-webkit-scrollbar { display: none; }
.section-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--paper-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 10px 2px;
  margin-bottom: -1px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.section-tab.is-active { color: var(--amber); border-bottom-color: var(--amber); }

/* Combien de propositions attendent. Une pastille et pas un simple nombre :
   dans une barre entièrement en petites capitales monospace, un chiffre nu se
   lit comme une partie du mot. */
.tab-count {
  display: inline-block;
  min-width: 17px;
  padding: 1px 5px;
  border-radius: 9px;
  background: var(--amber);
  color: var(--amber-ink);
  font-size: 10px;
  line-height: 15px;
  text-align: center;
  vertical-align: 1px;
}

/* --- La file des propositions -------------------------------------------- */

.prop-card { margin-bottom: 16px; }
.prop-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.prop-card__meta {
  color: var(--paper-faint);
  font-family: var(--font-mono);
  font-size: 11px;
}
.prop-card__body {
  color: var(--paper);
  font-size: 16px;
  line-height: 1.6;
  margin: 12px 0 16px;
}
.prop-card__actions { display: flex; gap: var(--space-2); }
.prop-card__actions .btn { width: 100%; }

/* La signature d'une entrée proposée. Elle se range à la fin de la ligne et
   n'entre jamais en concurrence avec le mot lui-même : c'est une note de bas
   de page, pas une colonne. */
.pair-row__by {
  color: var(--paper-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  margin-left: auto;
  padding-left: 10px;
  flex-shrink: 0;
}

/* --- La galerie des animations ------------------------------------------- */

.fx-warn {
  border: 1px solid var(--amber-dim);
  background: rgba(232, 163, 61, 0.08);
  border-radius: var(--radius-m);
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--paper-dim);
  margin-bottom: 20px;
}
.fx-warn b { color: var(--amber); }
.fx-warn code { font-family: var(--font-mono); font-size: 12px; }

/* Le plateau d'essai : de faux sièges, uniquement là pour donner un point
   d'accroche aux effets visés. Ils imitent la grille du Jeu de la Place d'assez
   près pour qu'une loupe ou un bouclier tombe à une échelle crédible. */
.fx-stage {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.fx-seat {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--ink-900);
  color: var(--ink-950);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}
.fx-seat:hover { border-color: var(--paper-faint); }
.fx-seat.is-a { background: var(--amber); border-color: var(--amber); }
.fx-seat.is-b { background: var(--paper-dim); border-color: var(--paper-dim); }

/* Le tampon est `position: absolute`, calé en haut à droite de son conteneur :
   sans un ancêtre positionné ici, il irait se coller au coin du dossier, par
   dessus le titre. On lui rend donc le cadre qu'il a dans un vrai verdict. */
.fx-stamp-row {
  position: relative;
  min-height: 56px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-m);
  padding: var(--space-3);
  margin-top: 16px;
  font-size: 12px;
  color: var(--paper-faint);
  line-height: 1.5;
}

/* La barre de commande suit le défilement : la liste est longue, et le bouton
   d'arrêt doit rester sous le pouce quand un maintien tourne. */
.fx-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 17, 25, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 10px 12px;
  margin-bottom: 20px;
}
.fx-bar__note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--paper-faint);
  flex: 1;
  text-align: right;
}

.fx-file {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--paper-faint);
  margin-bottom: var(--space-3);
}

.fx-grid { display: grid; gap: 10px; }
@media (min-width: 640px) { .fx-grid { grid-template-columns: 1fr 1fr; } }

.fx-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--ink-900);
  padding: 12px;
}
/* Celui qui passe pendant un enchaînement. On le cerne au lieu de le colorer :
   la carte reste lisible, et c'est l'écran qu'on regarde de toute façon. */
.fx-card.is-playing { border-color: var(--amber); }
.fx-card__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fx-card__name { font-weight: 600; font-size: 14px; flex: 1; }
.fx-card__when { font-size: 12px; color: var(--paper-faint); line-height: 1.45; flex: 1; }
.fx-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fx-card__id {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--paper-faint);
}
