/* ==========================================================================
   jeux.css — l'onglet « Jeux » (21/10/2026), dans la DA du TVA.
   Chaque jeu est un dossier manille à onglet, le règlement est une fiche tamponnée
   présentée par Miss Minutes, les écrans de jeu sont des moniteurs en noyer.
   Tout passe par les jetons de tva.css : aucune couleur d'accent en dur.
   ========================================================================== */
.jx-main { width: 100%; padding-bottom: 72px; }
.jx-corps { padding: clamp(8px, 2vw, 24px) var(--bord, clamp(16px, 4vw, 56px)) 0; }   /* pleine largeur, calée sur le bord commun (--bord) comme les autres pages */

/* ── La liste des jeux (23/10/2026) : les cartes du site, comme une affiche du catalogue ──
   Même passe-partout, même légende, même survol que .poster-card. Ni onglet, ni record, ni mention du mode
   hardcore : le règlement les dit. Depuis le 21/11/2026, l'illustration du jeu (scène Marvel teintée + icône,
   images/jeux/illustrations) tient la place de l'affiche, en 3:2, cinq jeux par ligne. */
.jx-grille { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.jx-grille > li { display: flex; min-width: 0; }
.jx-carte-jeu { width: 100%; padding: 0; text-align: left; font: inherit; color: inherit; }
.jx-carte-jeu:focus-visible { outline: 3px solid var(--accent-texte); outline-offset: 3px; }
.jx-carte-jeu .poster-img-wrap { aspect-ratio: 3 / 2; width: auto; }
/* Les illustrations sont déjà teintées : pas le voile sépia que tva.css pose sur les affiches. */
html[data-da] .jx-carte-jeu .poster-img-wrap img { object-position: center; filter: none; }
.jx-carte-jeu .poster-caption { flex: 1; }
.jx-carte-jeu .poster-title { min-height: 0; margin-bottom: 3px; font-size: 0.86rem; }
.jx-carte-texte {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    font-size: 0.74rem; line-height: 16px; color: var(--lb-muted-clair);
}
@media (max-width: 640px) {
    .jx-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .jx-carte-texte { display: none; }   /* au téléphone, le titre suffit, comme sous une affiche */
    .jx-carte-jeu .poster-title { font-size: 0.78rem; }
}

/* ── Le règlement, présenté par Miss Minutes ───────────────────────────── */
.jx-regles { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 16px; background: rgba(28, 19, 13, 0.62); }
.jx-regles[hidden] { display: none; }
.jx-regles-dossier {
    position: relative; display: grid; grid-template-columns: minmax(150px, 230px) minmax(0, 1fr); align-items: end; gap: 0 10px;
    width: min(780px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 26px 30px 26px 14px;
    background: var(--bg-card); border: var(--trait); border-radius: var(--rayon-carte); box-shadow: var(--ombre-levee);
    animation: jx-arrivee 0.35s var(--ease-out, ease-out);
}
@keyframes jx-arrivee { from { opacity: 0; transform: translateY(18px) rotate(-1deg); } }
.jx-regles-miss { width: 100%; height: auto; align-self: end; animation: mm-flotte 3.4s ease-in-out infinite; }
.jx-regles-bulle {
    position: relative; padding: 20px 22px; border: 2px solid var(--doom-green); border-radius: 16px; background: #fff3df; color: #3a1606;
}
.jx-regles-bulle::before {
    content: ''; position: absolute; left: -11px; bottom: 34px; width: 18px; height: 18px; background: #fff3df;
    border-left: 2px solid var(--doom-green); border-bottom: 2px solid var(--doom-green); transform: rotate(45deg);
}
.jx-regles-sur { margin: 0 0 6px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.07em; text-transform: uppercase; color: #8c3509; }
.jx-regles-titre { margin: 0 0 8px; font-family: var(--font-display); font-weight: 900; font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 0.95; text-transform: uppercase; color: #1f150d; }
.jx-regles-intro { margin: 0 0 12px; font-family: var(--font-serif); font-style: italic; font-size: 1.08rem; line-height: 1.4; color: #3a1606; }
.jx-regles-liste { margin: 0 0 16px; padding-left: 1.3em; font-size: 0.95rem; line-height: 1.5; color: #3a1606; }
.jx-regles-liste li { margin-bottom: 0.35em; }
.jx-regles-liste li::marker { font-family: var(--font-mono); color: #8c3509; }
.jx-regles-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.jx-tampon {
    position: absolute; right: 18px; top: 10px; padding: 3px 10px; border: 3px double var(--doom-green); border-radius: 6px;
    color: var(--doom-green); font-family: var(--font-mono); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
    transform: rotate(8deg); opacity: 0.75; pointer-events: none;
}
body.jx-regles-ouvertes { overflow: hidden; }
@media (max-width: 620px) {
    .jx-regles-dossier { grid-template-columns: minmax(0, 1fr); padding: 18px 14px; }
    .jx-regles-miss { width: 120px; justify-self: center; margin-bottom: -6px; }
    .jx-regles-bulle::before { left: 50%; top: -11px; bottom: auto; transform: translateX(-50%) rotate(135deg); }
}

/* ── Les boutons ─────────────────────────────────────────────────────────── */
.jx-bouton {
    display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border: 0;
    border-radius: var(--rayon-bouton); background: var(--doom-green); color: var(--on-accent); cursor: pointer;
    font-family: var(--font-ui); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase;
    box-shadow: 0 3px 0 var(--nuit-deep);
}
.jx-bouton:hover { filter: brightness(1.08); }
.jx-bouton:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--nuit-deep); }
.jx-lien { padding: 6px 0; border: 0; background: none; color: var(--accent-texte); cursor: pointer; font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.jx-bouton:focus-visible, .jx-lien:focus-visible, .jx-choix:focus-visible { outline: 3px solid var(--accent-texte); outline-offset: 3px; }

/* ── La partie ───────────────────────────────────────────────────────────── */
.jx-barre { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; margin-bottom: 18px; border-bottom: 3px double var(--doom-green); }
.jx-barre-titre { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: clamp(1.4rem, 3vw, 2rem); text-transform: uppercase; color: var(--lb-white); text-align: center; }
.jx-jeu { max-width: 920px; margin: 0 auto; }
.jx-tete {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-bottom: 16px; padding: 8px 14px;
    background: var(--bg-elevated); border-radius: var(--rayon-bouton); font-family: var(--font-mono); font-size: 0.78rem;
    letter-spacing: 0.05em; text-transform: uppercase; color: var(--lb-white);
}
.jx-tete b { color: var(--accent-texte); }
.jx-attente { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px 0; font-family: var(--font-serif); font-style: italic; font-size: 1.15rem; color: var(--lb-text); text-align: center; }
.jx-attente img { animation: mm-flotte 2s ease-in-out infinite; }
.jx-consigne { margin: 0 0 12px; font-size: 1.05rem; color: var(--lb-text); }
.jx-source { min-height: 1.4em; margin: 12px 0 0; font-family: var(--font-mono); font-size: 0.78rem; color: var(--lb-muted); text-align: center; }

/* Les choix */
.jx-choix-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.jx-choix-visages { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.jx-choix {
    display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 10px 14px; cursor: pointer;
    background: var(--bg-card); border: 2px solid var(--lb-border); border-radius: var(--rayon-carte); box-shadow: var(--ombre-table);
    color: var(--lb-white); font: inherit; font-weight: 600; font-size: 0.98rem; line-height: 1.25; text-align: center;
    transition: transform 0.15s, border-color 0.15s;
}
.jx-choix:hover:not(:disabled) { border-color: var(--doom-green); transform: translateY(-2px); }
.jx-choix:disabled { cursor: default; }
.jx-choix-visages .jx-choix { flex-direction: column; padding: 12px 8px; }
.jx-choix img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; background: var(--bg-elevated); }
.jx-choix.est-juste, .est-juste > .jx-choix { border-color: var(--tva-sarcelle, #2e5e5a); background: #d9e8de; color: #12302b; }
.jx-choix.est-faux { border-color: #a3261b; background: #f3d3c9; color: #4a0f08; animation: jx-non 0.35s; }
@keyframes jx-non { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* Qui a dit ça ? */
.jx-replique {
    margin: 0 0 20px; padding: 24px 28px; background: var(--bg-card); border-left: 6px solid var(--doom-green); border-radius: var(--rayon-carte);
    box-shadow: var(--ombre-table); font-family: var(--font-serif); font-style: italic; font-size: clamp(1.2rem, 2.6vw, 1.6rem); line-height: 1.35; color: var(--lb-white);
}

/* Un écran du TVA (scène du jour, photogramme) */
.jx-ecran {
    position: relative; overflow: hidden; aspect-ratio: 16 / 9; max-width: 760px; margin: 0 auto 18px; border: 10px solid var(--tva-noyer, #2a1c12);
    border-radius: 22px; background: #000; box-shadow: var(--ombre-levee);
}
.jx-ecran::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.12) 0 1px, transparent 1px 3px), radial-gradient(ellipse, transparent 55%, rgba(0, 0, 0, 0.45)); }
.jx-ecran img { width: 100%; height: 100%; object-fit: cover; transition: filter 0.6s, transform 0.6s; }
.jx-indices { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.jx-indices li { padding: 5px 12px; border: 1.5px dashed var(--doom-green); border-radius: 999px; font-size: 0.88rem; color: var(--lb-text); background: var(--bg-card); }
.jx-essais { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.jx-essais li { padding: 3px 10px; border-radius: 4px; font-size: 0.85rem; }
.jx-essais .est-faux { background: #f3d3c9; color: #4a0f08; text-decoration: line-through; }
.jx-essais .est-juste { background: #d9e8de; color: #12302b; font-weight: 700; }
.jx-saisie { display: flex; gap: 10px; max-width: 560px; margin: 0 auto; }
.jx-saisie input { flex: 1; min-width: 0; min-height: 44px; padding: 0 14px; border: 2px solid var(--lb-border); border-radius: var(--rayon-bouton); background: var(--bg-card); color: var(--lb-white); font: inherit; font-size: 1rem; }
.jx-saisie input:focus { outline: none; border-color: var(--doom-green); }
.jx-verdict { text-align: center; }
.jx-verdict p { font-size: 1.05rem; color: var(--lb-text); }

/* La Ligne sacrée */
.jx-ordre { list-style: none; counter-reset: jx; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.jx-ordre-item {
    counter-increment: jx; display: grid; grid-template-columns: 2.2em 128px minmax(0, 1fr) auto; align-items: center; gap: 14px;
    padding: 8px 12px 8px 8px; background: var(--bg-card); border: 2px solid var(--lb-border); border-radius: var(--rayon-carte); box-shadow: var(--ombre-table); cursor: grab;
}
.jx-ordre-item::before { content: counter(jx); text-align: center; font-family: var(--font-display); font-weight: 900; font-size: 1.6rem; color: var(--accent-texte); }
.jx-ordre-item img { width: 128px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; }
.jx-ordre-item b { display: block; color: var(--lb-white); line-height: 1.25; }
.jx-ordre-item span { font-size: 0.85rem; color: var(--lb-muted); }
.jx-ordre-item strong { color: var(--accent-texte); }
.jx-ordre-item.est-pris { opacity: 0.5; }
.jx-ordre-item.est-juste { border-color: var(--tva-sarcelle, #2e5e5a); background: #e3eee6; }
.jx-ordre-item.est-faux { border-color: #a3261b; background: #f7e0d8; }
.jx-fleches { display: flex; flex-direction: column; gap: 4px; }
.jx-fleches button { width: 34px; height: 30px; border: var(--trait); border-radius: 5px; background: var(--bg-elevated); color: var(--lb-white); cursor: pointer; font-size: 1rem; }

/* Avant ou après ? */
.jx-duel { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 18px; }
.jx-duel-carte { margin: 0; overflow: hidden; background: var(--bg-card); border: var(--trait); border-radius: var(--rayon-carte); box-shadow: var(--ombre-table); }
.jx-duel-carte img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.jx-duel-carte figcaption { display: grid; gap: 2px; padding: 12px 14px; }
.jx-duel-carte b { color: var(--lb-white); line-height: 1.25; }
.jx-duel-carte span { font-size: 0.85rem; color: var(--lb-muted); }
.jx-duel-carte strong { margin-top: 4px; font-family: var(--font-display); font-weight: 900; font-size: 1.4rem; text-transform: uppercase; color: var(--accent-texte); }
.jx-duel-boutons { display: grid; gap: 10px; min-width: 120px; }

/* Six degrés */
.jx-degres { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 10px; }
.jx-fiche { display: grid; grid-template-columns: 76px auto; align-items: center; gap: 12px; margin: 0; padding: 10px 16px 10px 10px; background: var(--bg-card); border: 2px solid var(--lb-border); border-radius: var(--rayon-carte); }
.jx-fiche.est-cible { border-style: dashed; border-color: var(--doom-green); }
.jx-fiche img { width: 76px; height: 100px; object-fit: cover; border-radius: 6px; }
.jx-fiche figcaption { display: grid; gap: 2px; }
.jx-fiche span { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-texte); }
.jx-fiche b { color: var(--lb-white); font-size: 1.05rem; }
.jx-fiche i { font-size: 0.8rem; color: var(--lb-muted); }
.jx-degres-fleche { font-size: 2rem; color: var(--accent-texte); }
.jx-fil { margin: 0 0 12px; text-align: center; font-size: 0.88rem; color: var(--lb-muted-clair); }
.jx-voisins { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.jx-voisin { display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; text-align: left; cursor: pointer; background: var(--bg-card); border: var(--trait); border-radius: 999px; color: var(--lb-white); font: inherit; }
.jx-voisin:hover { border-color: var(--doom-green); }
.jx-voisin img { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; }
.jx-voisin span { display: grid; min-width: 0; }
.jx-voisin b { font-size: 0.9rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jx-voisin i { font-style: normal; font-size: 0.74rem; color: var(--accent-texte); }

/* Une question sur un personnage */
.jx-question-visage { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 18px; }
.jx-question-visage img { width: 130px; height: 180px; object-fit: cover; border-radius: var(--rayon-carte); box-shadow: var(--ombre-levee); border: 6px solid var(--bg-card); }
.jx-question-visage div { display: grid; gap: 4px; }
.jx-question-visage b { font-family: var(--font-display); font-weight: 900; font-size: 1.8rem; line-height: 1; text-transform: uppercase; color: var(--lb-white); }
.jx-question-visage span { color: var(--lb-muted-clair); }
.jx-question-visage i { font-size: 0.9rem; color: var(--lb-muted); }
.jx-revele { margin-top: 16px; }

/* L'année de sortie */
.jx-annee { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 26px; align-items: center; }
.jx-annee img { width: 100%; border-radius: var(--rayon-carte); box-shadow: var(--ombre-levee); }
.jx-annee > div { display: grid; gap: 12px; }
.jx-annee b { font-family: var(--font-display); font-weight: 900; font-size: 1.8rem; text-transform: uppercase; color: var(--lb-white); line-height: 1; }
.jx-annee output { font-family: var(--font-display); font-weight: 900; font-size: 4rem; line-height: 1; color: var(--accent-texte); }
.jx-annee input[type="range"] { width: 100%; accent-color: var(--doom-green); }
.jx-annee-reglage { display: flex; align-items: center; gap: 18px; }
.jx-annee-pas {
    width: 48px; height: 48px; flex: 0 0 auto; border: 2px solid var(--lb-border); border-radius: 50%; background: var(--bg-card);
    color: var(--lb-white); font-family: var(--font-display); font-weight: 900; font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.jx-annee-pas:hover { border-color: var(--doom-green); color: var(--accent-texte); }
.jx-annee-bornes { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.75rem; color: var(--lb-muted); }
.jx-annee .jx-bouton { justify-self: start; }
.jx-annee .jx-source { text-align: left; }

/* Le procès */
.jx-proces { padding: 30px; text-align: center; background: var(--bg-card); border: var(--trait); border-radius: var(--rayon-carte); box-shadow: var(--ombre-table); }
.jx-affirmation { min-height: 4.2em; margin: 0 0 20px; font-family: var(--font-serif); font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.35; color: var(--lb-white); }
.jx-affirmation b { color: var(--accent-texte); font-weight: 600; }
.jx-vf { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 460px; margin: 0 auto; }
.jx-vf .jx-choix { min-height: 64px; font-family: var(--font-display); font-weight: 900; font-size: 1.6rem; text-transform: uppercase; }

/* La mémoire : les cartes du TVA livrées par l'utilisateur (images/jeux/carte-dos.webp, carte-cadre.webp).
   Le recto pose le portrait vertical SOUS le cadre, dont la fenêtre est transparente ; la taille d'une carte
   est calculée par jeux.js pour que toute la grille tienne à l'écran (--carte-l). */
.jx-memoire { display: grid; justify-content: center; gap: 8px; margin: 0 auto; --carte-l: 120px; }
.jx-carte { position: relative; width: var(--carte-l); aspect-ratio: 2 / 3; padding: 0; border: 0; background: none; cursor: pointer; perspective: 800px; }
.jx-carte > span { position: absolute; inset: 0; border-radius: calc(var(--carte-l) * 0.06); backface-visibility: hidden; transition: transform 0.45s var(--ease-out, ease-out); filter: drop-shadow(0 4px 6px rgba(28, 19, 13, 0.35)); }
.jx-carte-dos { background: url("images/jeux/carte-dos.webp") center / 100% 100% no-repeat; }
.jx-carte-face { transform: rotateY(180deg); }
.jx-carte-face::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: url("images/jeux/carte-cadre.webp") center / 100% 100% no-repeat; }
.jx-carte-face img, .jx-carte-face b { position: absolute; z-index: 0; top: 8.6%; bottom: 8.6%; left: 6.6%; right: 6.6%; width: auto; height: auto; }
.jx-carte-face img { width: 86.8%; height: 82.8%; object-fit: cover; object-position: center 20%; }
.jx-carte-face.est-nom b {
    display: grid; place-items: center; padding: 8%; background: var(--tva-noyer, #2a1c12); color: #ffe9bf; text-align: center;
    font-family: var(--font-display); font-weight: 900; text-transform: uppercase; line-height: 1;
    font-size: calc(var(--carte-l) * 0.13); overflow-wrap: anywhere;
}
.jx-carte.est-ouverte .jx-carte-dos { transform: rotateY(-180deg); }
.jx-carte.est-ouverte .jx-carte-face { transform: rotateY(0); }
.jx-carte.est-trouvee .jx-carte-face { filter: drop-shadow(0 0 0 transparent) saturate(1.1); }
.jx-carte.est-trouvee::after {
    content: '✓'; position: absolute; right: 4%; top: 2%; z-index: 2; display: grid; place-items: center;
    width: 22%; aspect-ratio: 1; border-radius: 50%; background: var(--tva-sarcelle, #2e5e5a); color: #fff;
    font-size: calc(var(--carte-l) * 0.13); font-weight: 700;
}
.jx-carte:focus-visible { outline: 3px solid var(--accent-texte); outline-offset: 3px; border-radius: 8px; }

/* Le mode hardcore : l'interrupteur du règlement, la mention dans le titre et sur le dossier */
.jx-hc { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 16px; padding: 10px 12px; border: 2px dashed #b5491a; border-radius: 10px; color: #3a1606; font-size: 0.92rem; line-height: 1.4; cursor: pointer; }
.jx-hc[hidden] { display: none; }
.jx-hc input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: #b5491a; flex: 0 0 auto; }
.jx-hc b { color: #8c3509; text-transform: uppercase; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.06em; }
.jx-choix-numeros .jx-choix { font-family: var(--font-mono); font-size: 1.25rem; letter-spacing: 0.06em; }
.jx-choix-trois { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Six degrés : la saisie et ses messages */
.jx-message { min-height: 1.5em; margin: 10px 0 4px; text-align: center; color: var(--lb-text); }
.jx-message b { color: var(--accent-texte); }
.jx-actions-sec { display: flex; justify-content: center; gap: 22px; margin: 6px 0 0; }

/* Les boutons secondaires et l'export */
.jx-bouton-sec { background: var(--bg-card); color: var(--accent-texte); border: 2px solid var(--doom-green); box-shadow: none; }
.jx-bouton-sec:hover { background: var(--bg-elevated); filter: none; }
.jx-centre { justify-content: center; }

/* L'élagage */
.jx-pendu { display: grid; gap: 16px; justify-items: center; }
.jx-branche { width: min(420px, 100%); height: 14px; border-radius: 999px; background: var(--bg-elevated); overflow: hidden; }
.jx-branche span { display: block; height: 100%; width: calc(var(--reste) * 100%); background: var(--doom-green); transition: width 0.4s; }
.jx-mot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 4px 0; }
.jx-lettre { display: grid; place-items: end center; width: 1.6em; height: 1.9em; border-bottom: 3px solid var(--lb-white); font-family: var(--font-display); font-weight: 900; font-size: clamp(1.4rem, 3.4vw, 2rem); text-transform: uppercase; color: var(--lb-white); }
.jx-sep { width: 0.7em; font-family: var(--font-display); font-weight: 900; font-size: clamp(1.4rem, 3.4vw, 2rem); color: var(--lb-white); }
.jx-clavier-ecran { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 560px; }
.jx-clavier-ecran button { width: 40px; height: 44px; border: var(--trait); border-radius: 6px; background: var(--bg-card); color: var(--lb-white); cursor: pointer; font-family: var(--font-display); font-weight: 900; font-size: 1.1rem; box-shadow: 0 2px 0 var(--lb-border); }
.jx-clavier-ecran button:hover:not(:disabled) { border-color: var(--doom-green); }
.jx-clavier-ecran button:disabled { opacity: 0.32; cursor: default; box-shadow: none; }

/* Le verdict de fin de partie (23/10/2026) : une fiche posée PAR-DESSUS la partie, centrée et tenue dans l'écran,
   pour ne plus avoir à descendre la chercher. Trois humeurs : gagné (confettis), record (tampon qui s'écrase,
   éclair, pluie fournie), perdu (secousse, tampon « Élagué », fond assombri). */
.jx-verdict-voile, .jx-partage-voile {
    position: fixed; inset: 0; z-index: 2100; display: grid; place-items: center; padding: 16px;
    background: rgba(28, 19, 13, 0.62); animation: jx-voile 0.25s ease-out;
}
.jx-verdict-voile.est-perdu { background: radial-gradient(ellipse at center, rgba(28, 19, 13, 0.55), rgba(70, 14, 6, 0.82)); }
.jx-verdict-voile.est-record::before {
    content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle, rgba(255, 233, 191, 0.75), transparent 60%);
    animation: jx-eclair 0.9s ease-out forwards;
}
@keyframes jx-voile { from { opacity: 0; } }
@keyframes jx-eclair { from { opacity: 1; } to { opacity: 0; } }
.jx-fin {
    position: relative; display: grid; grid-template-columns: minmax(120px, 200px) minmax(0, 1fr); align-items: center; gap: 22px;
    width: min(760px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 28px 30px 26px 22px;
    background: var(--bg-card); border: var(--trait); border-radius: var(--rayon-carte); box-shadow: var(--ombre-levee);
    animation: jx-fiche 0.55s cubic-bezier(.2, 1.5, .4, 1);
}
.est-perdu .jx-fin { animation: jx-fiche 0.4s ease-out, jx-secousse 0.5s 0.35s; }
@keyframes jx-fiche { from { opacity: 0; transform: translateY(40px) scale(0.92) rotate(-2deg); } }
@keyframes jx-secousse { 15%, 55% { transform: translateX(-10px) rotate(-1deg); } 35%, 75% { transform: translateX(10px) rotate(1deg); } }
.jx-secousse { animation: jx-secousse 0.5s; }
.jx-fin-miss { width: 100%; height: auto; animation: jx-miss 0.7s 0.15s cubic-bezier(.2, 1.6, .4, 1) both; }
.est-perdu .jx-fin-miss { animation-name: jx-miss-triste; }
@keyframes jx-miss { from { opacity: 0; transform: translateY(30px) scale(0.6); } }
@keyframes jx-miss-triste { from { opacity: 0; transform: translateY(-20px) rotate(-12deg); } }
.jx-fin-texte p { margin: 0 0 8px; color: var(--lb-text); }
.jx-fin-sur { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-texte) !important; }
.jx-fin-score { font-family: var(--font-display); font-weight: 900; font-size: clamp(3.4rem, 9vw, 5rem); line-height: 1; color: var(--lb-white) !important; }
.jx-fin-score small { font-size: 0.45em; color: var(--lb-muted); }
.est-record .jx-fin-score { animation: jx-compteur 0.9s 0.3s ease-out both; }
@keyframes jx-compteur { from { transform: scale(0.4); opacity: 0; } 60% { transform: scale(1.18); } }
.jx-fin-detail { font-size: 0.95rem; }
.jx-fin-mot { font-family: var(--font-serif); font-style: italic; font-size: 1.15rem; }
.jx-fin-ancien { font-family: var(--font-mono); font-size: 0.78rem; color: var(--lb-muted) !important; }
.jx-fin-fermer {
    position: absolute; right: 10px; top: 8px; z-index: 2; width: 34px; height: 34px; border: var(--trait); border-radius: 50%;
    background: var(--bg-elevated); color: var(--lb-white); font-size: 1.3rem; line-height: 1; cursor: pointer;
}
/* Le tampon du verdict : il s'écrase sur la fiche, de travers. */
.jx-fin-tampon {
    position: absolute; left: 14px; top: 14px; padding: 4px 14px; border: 4px double var(--doom-green); border-radius: 8px;
    color: var(--doom-green); font-family: var(--font-display); font-weight: 900; font-size: clamp(1.2rem, 3vw, 1.7rem);
    letter-spacing: 0.06em; text-transform: uppercase; transform: rotate(-12deg); opacity: 0.85; pointer-events: none; z-index: 1;
    animation: jx-tampon 0.45s 0.45s cubic-bezier(.3, 1.4, .5, 1) both;
}
.est-perdu .jx-fin-tampon { border-color: #a3261b; color: #a3261b; }
.est-record .jx-fin-tampon { background: var(--doom-green); color: var(--on-accent); opacity: 1; font-size: clamp(1.4rem, 3.6vw, 2.1rem); }
@keyframes jx-tampon { from { opacity: 0; transform: scale(3.2) rotate(8deg); } 70% { transform: scale(0.92) rotate(-10deg); } }
/* Sous la partie : rouvrir le verdict, ou partager. */
.jx-fin-barre {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 22px; margin: 18px auto 0; padding: 10px 16px;
    max-width: 720px; border: 2px dashed var(--doom-green); border-radius: var(--rayon-carte); background: var(--bg-card); color: var(--lb-text);
}
.jx-fin-barre b { color: var(--lb-white); font-family: var(--font-display); font-size: 1.2rem; }
/* Les confettis du TVA */
.jx-confettis { position: fixed; inset: 0; z-index: 2200; pointer-events: none; overflow: hidden; }
.jx-confettis i { position: absolute; top: -20px; width: 8px; height: 14px; animation: jx-tombe linear forwards; }
@keyframes jx-tombe { to { transform: translate(var(--derive, 0), 108vh) rotate(var(--tour, 540deg)); } }

/* La fenêtre de partage : l'aperçu de l'image, Télécharger et Partager. */
.jx-partage {
    position: relative; display: grid; gap: 14px; justify-items: center; width: min(520px, 100%); max-height: calc(100vh - 32px);
    overflow: auto; padding: 24px; background: var(--bg-card); border: var(--trait); border-radius: var(--rayon-carte); box-shadow: var(--ombre-levee);
    animation: jx-fiche 0.4s ease-out;
}
.jx-partage-apercu { width: 100%; display: grid; place-items: center; min-height: 200px; }
.jx-partage-apercu img { display: block; width: auto; max-width: 100%; max-height: calc(100vh - 240px); border-radius: 8px; box-shadow: var(--ombre-levee); }
.jx-partage a.jx-bouton { text-decoration: none; }
.jx-partage a.jx-bouton[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
.jx-reseaux { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 14px; font-size: 0.9rem; color: var(--lb-text); }
.jx-reseaux[hidden] { display: none; }
.jx-reseaux p { width: 100%; margin: 0; text-align: center; }
.jx-reseaux a { padding: 6px 12px; border: 2px solid var(--doom-green); border-radius: 999px; color: var(--accent-texte); font-weight: 700; text-decoration: none; }

@media (max-width: 760px) {
    .jx-choix-visages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .jx-duel { grid-template-columns: minmax(0, 1fr); }
    .jx-duel-boutons { grid-template-columns: 1fr 1fr; }
    .jx-annee, .jx-fin { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
    .jx-fin { padding-top: 40px; }
    .jx-fin-miss { width: 120px; }
    .jx-fin-tampon { right: 50%; transform: translateX(50%) rotate(-6deg); top: 10px; }
    .jx-annee img { width: 150px; }
    /* Les boutons des fenêtres (règlement, verdict, partage) prennent toute la largeur : on les touche du pouce. */
    .jx-regles-actions .jx-bouton, .jx-regles-actions .mv9-bouton { flex: 1 1 100%; }
    .jx-annee > div { width: 100%; justify-items: center; }
    .jx-annee input[type="range"] { height: 34px; }
    .jx-annee-bornes { width: 100%; }
    .jx-fin img { width: 130px; }
    .jx-annee .jx-bouton, .jx-annee .jx-source { justify-self: center; text-align: center; }
    .jx-degres { flex-direction: column; gap: 6px; }
    .jx-degres-fleche { transform: rotate(90deg); }
    .jx-ordre-item { grid-template-columns: 1.6em 84px minmax(0, 1fr) auto; gap: 8px; }
    .jx-ordre-item img { width: 84px; }
    .jx-question-visage img { width: 100px; height: 140px; }
    .jx-question-visage b { font-size: 1.4rem; }
    .jx-choix-trois { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .jx-barre { flex-wrap: wrap; }
    .jx-barre-titre { order: -1; width: 100%; }
    /* Miss Minutes reste au coin : la partie garde de quoi défiler au-dessus d'elle. */
    .jx-jeu { padding-bottom: 96px; }
    body:has(#jx-partie:not([hidden])) .mm-perso { width: 64px; }
}
@media (prefers-reduced-motion: reduce) {
    .jx-regles-miss, .jx-attente img, .jx-regles-dossier, .jx-choix.est-faux, .jx-fin, .jx-fin-miss, .jx-fin-tampon, .jx-fin-score,
    .jx-verdict-voile::before, .jx-secousse, .jx-partage { animation: none !important; }
    .jx-carte > span { transition: none; }
}

/* ── Les jeux du 23/10/2026 ───────────────────────────────────────────── */
/* Personnage flouté : un portrait, pas un écran 16:9. */
.jx-ecran.jx-ecran-portrait { aspect-ratio: 2 / 3; max-width: 280px; }
.jx-ecran.jx-ecran-portrait img { object-position: top; transform-origin: 50% 28%; }   /* le zoom vise le visage */
/* Devine le personnage / le film : la fiche, nom caviardé, en texte droit. */
.jx-replique.jx-fiche { display: block; font-family: var(--font-body); font-style: normal; font-size: clamp(1rem, 1.6vw, 1.12rem); line-height: 1.55; color: var(--lb-text); }
/* Le casting : l'affiche au départ, puis une grille de cases à remplir. */
.jx-casting-depart { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; text-align: left; }
.jx-casting-depart img { width: 150px; border-radius: var(--rayon-carte); box-shadow: var(--ombre-levee); border: 6px solid var(--bg-card); }
.jx-casting-depart > div { display: grid; gap: 6px; }
.jx-casting-depart b { font-family: var(--font-display); font-weight: 900; font-size: 2rem; line-height: 1; text-transform: uppercase; color: var(--lb-white); }
.jx-casting-depart i { color: var(--lb-muted); }
.jx-casting { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.jx-casting li {
    display: grid; justify-items: center; align-content: start; gap: 6px; min-height: 120px; padding: 8px 6px;
    background: var(--bg-card); border: 1.5px dashed var(--lb-border); border-radius: var(--rayon-carte); text-align: center;
}
.jx-casting li > span { font-size: 0.78rem; line-height: 1.25; color: var(--lb-text); }
.jx-casting li:not(.est-trouve):not(.est-manque) > span { margin: auto; font-family: var(--font-display); font-weight: 900; font-size: 2rem; color: var(--lb-border); }
.jx-casting img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.jx-casting .est-trouve { border-style: solid; border-color: var(--doom-green); animation: jx-trouve 0.35s var(--ease-out, ease-out); }
.jx-casting .est-manque { opacity: 0.55; filter: grayscale(1); }
@keyframes jx-trouve { from { transform: scale(0.8); } }
@media (prefers-reduced-motion: reduce) { .jx-casting .est-trouve { animation: none; } }
@media (max-width: 640px) { .jx-casting { grid-template-columns: repeat(3, minmax(0, 1fr)); } .jx-casting-depart img { width: 110px; } }
/* Le casting en « Choix du film/série » (23/11/2026) : catégories en pastilles, recherche, puis les affiches ; seule la
   grille défile, le tout tient dans l'écran. */
.jx-cast-choix { display: grid; grid-template-rows: auto auto auto minmax(0, 1fr); gap: 12px; width: min(1100px, 100%); margin: 0 auto;
    height: calc(100dvh - var(--nav-h, 64px) - var(--filter-h, 56px) - 80px); min-height: 360px; }
.jx-cast-familles { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.jx-cast-cherche { justify-self: center; width: min(420px, 100%); min-height: 40px; padding: 8px 14px; font: inherit; font-size: 1rem;
    color: var(--lb-white); background: var(--bg-card); border: 1.5px solid var(--lb-border); border-radius: var(--rayon-carte); }
.jx-cast-cherche:focus-visible { outline: 2px solid var(--doom-green); outline-offset: 1px; }
.jx-cast-oeuvres { list-style: none; margin: 0; padding: 2px; overflow-y: auto; display: grid; align-content: start;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.jx-cast-oeuvre { width: 100%; display: grid; gap: 4px; padding: 6px; text-align: left; cursor: pointer; font: inherit;
    background: var(--bg-card); border: 1.5px solid var(--lb-border); border-radius: var(--rayon-carte); color: var(--lb-text); }
.jx-cast-oeuvre:hover, .jx-cast-oeuvre:focus-visible { border-color: var(--doom-green); outline: none; }
.jx-cast-oeuvre img, .jx-cast-sans { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: calc(var(--rayon-carte) - 2px); background: var(--bg-elevated); display: block; }
.jx-cast-oeuvre b { font-size: 0.82rem; line-height: 1.25; color: var(--lb-white); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.jx-cast-oeuvre small { font-size: 0.72rem; color: var(--lb-muted); }
.jx-cast-vide { grid-column: 1 / -1; text-align: center; color: var(--lb-muted); padding: 24px 0; }
@media (max-width: 640px) {
    .jx-cast-choix { height: auto; min-height: 0; }
    .jx-cast-oeuvres { overflow: visible; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .jx-cast-cherche { font-size: 16px; }
}

/* ══ La tierlist (21/11/2026) ══════════════════════════════════════════════════════════════
   Couleurs des rangs : dosages de l'accent du thème (posés en ligne par jeux.js), aucune autre teinte. */
.jx-jeu-tierlist { max-width: 1180px; }
.tl-choix { text-align: center; padding: 10px 0 30px; }
.tl-question { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(1.6rem, 4vw, 2.4rem); color: var(--lb-white); margin: 6px 0 18px; }
.tl-choix-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; max-width: 720px; margin: 0 auto; }
.tl-grand { display: flex; flex-direction: column; gap: 6px; padding: 26px 20px; border: 2px solid var(--lb-border); border-radius: 12px; background: var(--bg-card); color: var(--lb-white); cursor: pointer; text-align: left; transition: border-color var(--dur-1), transform var(--dur-1); }
.tl-grand b { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 1.6rem; color: var(--accent-texte); }
.tl-grand span { color: var(--lb-muted-clair); font-size: 0.95rem; }
.tl-grand:hover, .tl-grand:focus-visible { border-color: var(--doom-green); transform: translateY(-2px); outline: none; }
.tl-note { margin: 10px 0; color: var(--lb-muted); font-size: 0.88rem; }
.tl-barre { flex-wrap: wrap; gap: 6px 16px; }
.tl-outils { display: inline-flex; flex-wrap: wrap; gap: 4px 14px; }
.tl-filtres { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0 4px; }
.tl-pastilles { display: flex; flex-wrap: wrap; gap: 6px; }
.tl-pastille { min-height: 34px; padding: 0 12px; border: 2px solid var(--lb-border); border-radius: 17px; background: var(--bg-card); color: var(--lb-white); font: 600 0.78rem var(--font-ui); text-transform: uppercase; letter-spacing: 0.04em; cursor: pointer; }
.tl-pastille[aria-pressed="true"] { background: var(--doom-green); border-color: var(--doom-green); color: var(--on-accent, #fff); }

/* Les cartes : affiche 2:3 pour une œuvre, pastille carrée pour un personnage. */
.tl-carte { position: relative; display: flex; flex-direction: column; width: 72px; padding: 0; border: 2px solid transparent; border-radius: 6px; background: var(--bg-dark); cursor: grab; touch-action: none; user-select: none; overflow: hidden; }
.tl-carte img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; pointer-events: none; }
.tl-carte.est-carre img { aspect-ratio: 1; }
.tl-carte span { display: block; padding: 2px 3px; font-size: 0.62rem; line-height: 1.15; color: var(--lb-white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--bg-card); }
.tl-carte:focus-visible { outline: 3px solid var(--accent-texte); outline-offset: 1px; }
.tl-carte.est-choisie { border-color: var(--doom-green); box-shadow: 0 0 0 2px var(--doom-green); }
.tl-carte.est-fantome-source { opacity: 0.35; }
.tl-fantome { position: fixed; left: 0; top: 0; z-index: 900; pointer-events: none; opacity: 0.92; transform-origin: 0 0; rotate: -3deg; }

.tl-selection { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; margin: 10px 0 16px; }
.tl-selection .tl-carte { width: auto; cursor: pointer; }
.tl-selection .tl-carte.est-exclue { opacity: 0.32; filter: grayscale(1); }
.tl-selection .tl-carte.est-exclue::after { content: '✕'; position: absolute; top: 4px; right: 4px; width: 18px; height: 18px; border-radius: 50%; background: rgba(28, 19, 13, 0.8); color: #fff3df; font-size: 0.7rem; line-height: 18px; text-align: center; }
.tl-valider { position: sticky; bottom: 10px; display: flex; justify-content: center; padding: 8px 0; z-index: 4; }

/* Les rangs. */
.tl-liste { display: flex; flex-direction: column; gap: 4px; margin: 12px 0 18px; border: 2px solid var(--lb-border); border-radius: 10px; overflow: hidden; background: var(--lb-border); }
.tl-rang { display: grid; grid-template-columns: 110px minmax(0, 1fr); min-height: 104px; background: var(--bg-card); }
.est-persos .tl-rang { min-height: 100px; }
/* L'étiquette d'un rang (21/11/2026) : un appui dessus ouvre son nom et « Supprimer la ligne ». Elle s'éclaircit au
   survol et quand son menu est ouvert, pour dire qu'elle se touche. */
.tl-etiquette { position: relative; display: flex; align-items: center; justify-content: center; padding: 8px; text-align: center; cursor: pointer; transition: filter var(--dur-1, 120ms); }
.tl-etiquette:hover, .tl-etiquette[aria-expanded="true"] { filter: brightness(1.1); }
.tl-etiquette:focus-visible { outline: 3px solid var(--accent-texte); outline-offset: -3px; }
.tl-nom { display: block; max-width: 100%; font-family: var(--font-display); font-weight: 900; font-size: 1.45rem; line-height: 1.05; text-transform: uppercase; overflow-wrap: anywhere; padding: 2px 4px; }
.tl-menu-rang { width: min(300px, calc(100vw - 16px)); }
/* Les couleurs d'un rang : des pastilles rondes pour le fond, des cartouches « Aa » pour le texte (chacune montre le texte
   sur le fond choisi). Le choix en cours est cerclé à l'accent, sans ombre (règle du site). */
.tl-teintes { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 2px 4px; }
.tl-teinte { width: 24px; height: 24px; padding: 0; border: 2px solid var(--lb-border); border-radius: 50%; cursor: pointer; }
.tl-teinte:hover { border-color: var(--doom-green); }
.tl-teinte[aria-pressed="true"] { outline: 2px solid var(--accent-texte); outline-offset: 2px; border-color: var(--bg-card); }
.tl-teinte:focus-visible { outline: 3px solid var(--accent-texte); outline-offset: 2px; }
.tl-teinte-texte { width: auto; min-width: 44px; height: 28px; padding: 0 8px; border-radius: 6px; font-family: var(--font-display); font-weight: 900; font-size: 0.95rem; line-height: 1; text-transform: uppercase; }
.tl-m-sep { height: 1px; margin: 10px 2px 4px; background: var(--lb-border); }
.tl-m-supprimer:disabled { opacity: 0.4; cursor: default; }
.tl-zone { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; padding: 8px; min-height: 100%; transition: background var(--dur-1); }
.tl-zone.est-survolee, .tl-en-attente .tl-zone:hover { background: color-mix(in srgb, var(--doom-green) 12%, var(--bg-card)); }
.tl-en-attente .tl-zone { cursor: copy; }
.tl-reserve-titre { margin: 18px 0 6px; font-family: var(--font-display); font-weight: 900; text-transform: uppercase; color: var(--lb-white); font-size: 1.2rem; }
.tl-reserve-titre small { margin-left: 8px; font: 400 0.82rem var(--font-body); text-transform: none; color: var(--lb-muted); }
.tl-reserve { min-height: 120px; border: 2px dashed var(--lb-border); border-radius: 10px; }
@media (max-width: 640px) {
    .tl-rang { grid-template-columns: 74px minmax(0, 1fr); }
    .tl-nom { font-size: 1.05rem; }
    .tl-carte { width: 56px; }
    .tl-selection { grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .tl-grand, .tl-zone { transition: none; } .tl-fantome { rotate: none; } }
.tl-valider.est-libre { position: static; }   /* au classement, le bouton ne doit pas couvrir la réserve */

/* Tierlist, filtrage revu (21/11/2026) : `hidden` doit l'emporter sur le display:flex des cartes (la recherche
   ne cachait rien), champs étiquetés, actions sur la sélection affichée, filtres compacts de la réserve. */
.tl-carte[hidden] { display: none !important; }
.tl-filtres { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; margin: 12px 0 8px; }
.tl-champ { display: flex; flex-direction: column; gap: 4px; min-width: 150px; flex: 0 1 auto; }
.tl-champ > span { font: 600 0.7rem var(--font-ui); text-transform: uppercase; letter-spacing: 0.06em; color: var(--lb-muted); }
.tl-champ-q { flex: 1 1 260px; }
.tl-champ input, .tl-champ select { flex: none; height: 38px; min-height: 38px; max-width: 100%; padding: 0 10px; border: 2px solid var(--lb-border); border-radius: 8px; background: var(--bg-dark); color: var(--lb-white); font: 0.95rem var(--font-body); }
.tl-champ select { max-width: 280px; }
.tl-champ input:focus-visible, .tl-champ select:focus-visible { outline: 2px solid var(--accent-texte); outline-offset: 1px; }
.tl-actions-sel { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 4px 0 6px; }
.tl-actions-sel #tl-vus { flex: 1 1 100%; font-size: 0.85rem; color: var(--lb-muted-clair); }
.tl-vide { margin: 14px 0; color: var(--lb-muted); font-style: italic; }
.tl-reserve .tl-vide { margin: 8px; }
@media (max-width: 640px) { .tl-champ { min-width: 0; flex: 1 1 45%; } .tl-champ select { max-width: none; } }
.tl-carte span small { display: block; font-family: var(--font-mono); font-size: 0.56rem; color: var(--lb-muted); }   /* la réalité, pour départager les homonymes */

/* Tierlist, la barre de sélection (21/11/2026) : la .lb-filterbar du site, collée sous la navigation et étendue à
   toute la largeur de la fenêtre, comme sur la page Personnages. La barre de titre du jeu s'efface pendant ce temps. */
/* Mêmes marges que toutes les barres du site, dont celle du catalogue : var(--bord), le bord commun posé par v9.css
   (« Une seule colonne »), aligné sur le logo de la navigation (21/11/2026). */
/* --bord est un pourcentage du bloc qui contient la barre : ici la zone de jeu (1 180 px au plus), pas la page, d'où des
   boutons trop près des bords en grand écran (21/11/2026). La page des jeux devient un conteneur, et la barre se cale
   sur SA largeur (cqw), exactement comme --bord le fait pour les barres posées directement dans la page. */
.jx-main { container-type: inline-size; }
.tl-filterbar { width: 100cqw; margin: 0 0 10px calc(50% - 50cqw); gap: 14px;
    padding-left: max(var(--gouttiere), calc((100cqw - var(--page-max)) / 2)) !important;
    padding-right: max(var(--gouttiere), calc((100cqw - var(--page-max)) / 2)) !important; }
/* Collée à la navigation dès l'ouverture : la marge haute du conteneur des jeux laissait ~7 px de vide (21/11/2026). */
body.tl-en-selection .jx-corps { padding-top: 0; }
.tl-filterbar .pill { flex-shrink: 0; }
.tl-filterbar .pill.tl-retour { border-color: var(--doom-green); color: var(--accent-texte); }
.tl-filterbar .pill[disabled] { opacity: 0.55; cursor: progress; }
.tl-recherche { flex: 0 0 auto; }
.tl-recherche input { width: clamp(170px, 18vw, 260px); height: 32px; padding: 0 12px; border: 1px solid var(--lb-border); border-radius: 16px; background: var(--lb-surface, var(--bg-card)); color: var(--lb-text); font-size: 0.82rem; }
.tl-recherche input:focus { outline: none; border-color: var(--doom-green); }
.tl-plage { gap: 6px; }
.tl-plage input { width: 52px; height: 30px; padding: 0 6px; border: 1px solid var(--lb-border); border-radius: var(--radius, 6px); background: var(--lb-surface, var(--bg-card)); color: var(--lb-text); font: 0.8rem var(--font-mono); text-align: center; }
.tl-plage span { font-size: 0.72rem; color: var(--lb-muted); }
.tl-plage input:focus { outline: none; border-color: var(--doom-green); }
.tl-univers-btn { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }

/* Le panneau des univers, posé sur <body> sous son bouton. */
.tl-univers-panneau { position: fixed; z-index: 600; width: min(380px, calc(100vw - 16px)); max-height: min(70vh, 560px); display: flex; flex-direction: column;
    background: var(--bg-card); border: 2px solid var(--lb-border); border-radius: 10px; box-shadow: 0 18px 40px -16px rgba(28, 19, 13, 0.55); }
.tl-univers-tete { display: flex; gap: 10px; align-items: center; padding: 10px; border-bottom: 1px solid var(--lb-border); }
.tl-univers-tete input { flex: 1; min-width: 0; height: 32px; padding: 0 10px; border: 1px solid var(--lb-border); border-radius: 6px; background: var(--bg-dark); color: var(--lb-white); }
.tl-univers-liste { overflow-y: auto; overflow-x: hidden; padding: 4px 10px 8px; }
.tl-univers-liste fieldset { border: 0; margin: 8px 0 0; padding: 0; min-width: 0; }   /* sans min-width, un fieldset prend la largeur de son plus long libellé */
.tl-univers-liste legend { display: flex; align-items: center; gap: 8px; width: 100%; box-sizing: border-box; padding-right: 4px; padding: 6px 0 4px; font: 700 0.72rem var(--font-ui); text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent-texte); }
.tl-univers-liste legend label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.tl-univers-liste small { margin-left: auto; font: 0.72rem var(--font-mono); color: var(--lb-muted); }
.tl-univers-ligne { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 14px; border-radius: 4px; font-size: 0.86rem; color: var(--lb-white); cursor: pointer; }
.tl-univers-ligne:hover { background: var(--bg-dark); }
.tl-univers-ligne[hidden] { display: none; }
.tl-univers-ligne span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-univers-pied { padding: 10px; border-top: 1px solid var(--lb-border); display: flex; justify-content: flex-end; }
.tl-univers-panneau input[type="checkbox"] { accent-color: var(--doom-green); width: 16px; height: 16px; flex: none; }

/* Tierlist, barre en icônes (21/11/2026) : chaque filtre est un bouton rond qui ouvre un petit menu (.om-menu, le dessin
   des menus du clic droit du catalogue). Un point d'accent marque un filtre actif ; le résumé en clair suit à droite. */
.tl-ico { position: relative; flex-shrink: 0; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--lb-border); border-radius: 50%; background: transparent; color: var(--lb-muted); cursor: pointer; transition: border-color 0.15s, color 0.15s, background 0.15s; }
.tl-ico:hover, .tl-ico[aria-expanded="true"] { border-color: var(--doom-green); color: var(--accent-texte); }
.tl-ico.est-actif { color: var(--accent-texte); border-color: var(--doom-green); background: color-mix(in srgb, var(--doom-green) 12%, transparent); }
.tl-ico:focus-visible { outline: 2px solid var(--accent-texte); outline-offset: 2px; }
.tl-ico-point { position: absolute; top: 3px; right: 3px; width: 8px; height: 8px; border-radius: 50%; background: var(--doom-green); box-shadow: 0 0 0 2px var(--bg-dark); }
.tl-ico-point[hidden] { display: none; }
.tl-resume { flex: 1 1 auto; min-width: 0; font-size: 0.75rem; color: var(--lb-muted-clair); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-filterbar .count-badge { margin-left: auto; }

.tl-menu { position: fixed; z-index: 600; width: min(300px, calc(100vw - 16px)); max-height: min(72vh, 560px); overflow-y: auto; padding: 8px 10px 10px; }
.tl-menu-univers { width: min(380px, calc(100vw - 16px)); display: flex; flex-direction: column; overflow: hidden; }
.tl-menu-univers .tl-univers-liste { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 0 2px; }
.tl-m-titre { margin: 8px 2px 6px; font: 700 0.7rem var(--font-ui); text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-texte); }
.tl-m-tete { display: flex; align-items: baseline; gap: 12px; }
.tl-m-tete .tl-m-titre { flex: 1; }
.tl-m-champ { width: 100%; height: 36px; margin: 0 0 6px; padding: 0 10px; border: 1px solid var(--lb-border); border-radius: 8px; background: var(--bg-dark); color: var(--lb-white); font: 0.92rem var(--font-body); }
.tl-m-champ:focus { outline: none; border-color: var(--doom-green); }
.tl-m-ligne { display: flex; align-items: center; gap: 10px; padding: 6px 6px; border-radius: 6px; font-size: 0.88rem; color: var(--lb-white); cursor: pointer; }
.tl-m-ligne:hover { background: var(--bg-dark); }
.tl-m-ligne input { accent-color: var(--doom-green); width: 16px; height: 16px; flex: none; }
.tl-m-interrupteur span { display: flex; flex-direction: column; gap: 2px; }
.tl-m-interrupteur small { font-size: 0.76rem; color: var(--lb-muted); }
.tl-m-plage { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 2px 6px; font-size: 0.86rem; color: var(--lb-white); }
.tl-m-plage input { width: 58px; height: 32px; margin-left: 4px; padding: 0 6px; border: 1px solid var(--lb-border); border-radius: 6px; background: var(--bg-dark); color: var(--lb-white); font: 0.85rem var(--font-mono); text-align: center; }
.tl-m-plage small { flex-basis: 100%; font-size: 0.74rem; color: var(--lb-muted); }
.tl-m-rapides { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 4px 2px; }
.tl-m-rapides .tl-pastille { min-height: 28px; padding: 0 10px; font-size: 0.7rem; }
.tl-menu .tl-univers-liste input[type="checkbox"] { accent-color: var(--doom-green); width: 16px; height: 16px; flex: none; }
/* Le fond des petits menus : le dessin de .om-menu (oeuvre-menu.css), que la page Jeux ne charge pas. */
.tl-menu { background: var(--bg-card); border: 2px solid var(--lb-border); border-radius: 10px;
    background-image: linear-gradient(to right, var(--doom-green) 0 4px, transparent 4px); padding-left: 14px;
    box-shadow: 0 18px 40px -16px rgba(28, 19, 13, 0.55); animation: tl-menu 160ms ease-out both; }
@keyframes tl-menu { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .tl-menu { animation: none; } }

/* Le menu « sélection » de la barre (21/11/2026) et le bouton « Classer » en bout de barre. */
.tl-m-info { margin: 0 2px 6px; font-size: 0.8rem; color: var(--lb-muted); }
.tl-m-action { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 8px; border: 0; border-radius: 6px; background: none; color: var(--lb-white); font: 0.88rem var(--font-body); text-align: left; cursor: pointer; }
.tl-m-action b { width: 22px; height: 22px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--bg-dark); color: var(--accent-texte); font-size: 0.8rem; }
.tl-m-action:hover, .tl-m-action:focus-visible { background: var(--bg-dark); outline: none; }
.tl-m-action:focus-visible { box-shadow: inset 0 0 0 2px var(--accent-texte); }
.tl-filterbar .count-badge { margin-left: auto; }
.tl-filterbar .tl-valider-barre { flex-shrink: 0; padding: 7px 16px; font-size: 0.78rem; }
/* La recherche du classement (23/11/2026) : un champ au trait des boutons de la barre, loupe dedans. */
.tl-recherche { position: relative; flex: 0 1 260px; min-width: 150px; display: block; }
.tl-recherche > svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--lb-muted); pointer-events: none; }
.tl-recherche input { width: 100%; height: 36px; box-sizing: border-box; padding: 0 10px 0 32px; border: 1px solid var(--lb-border);
    border-radius: var(--rayon-bouton, 8px); background: var(--bg-card); color: var(--lb-white); font: 0.88rem var(--font-body); }
.tl-recherche input::placeholder { color: var(--lb-muted); }
.tl-recherche input:focus { outline: none; border-color: var(--doom-green); }
/* Au téléphone, le champ prend sa propre ligne sous les boutons : dans la rangée qui défile, « Fin » le recouvrait. */
@media (max-width: 640px) {
    .tl-filterbar:has(.tl-recherche) { flex-wrap: wrap; height: auto; row-gap: 8px; }
    .tl-filterbar .tl-recherche { order: 10; flex: 0 0 100%; min-width: 0; }
    .tl-recherche input { font-size: 16px; height: 40px; }
    .tl-filterbar:has(.tl-recherche) .tl-valider-barre { margin-left: auto; box-shadow: none; }
}
.tl-note { margin: 2px 0 10px; }
.tl-note #tl-vus { color: var(--lb-white); font-weight: 600; }
/* Écran étroit : le bouton « Classer » reste collé au bord droit de la barre, le résumé en clair s'efface. */
.tl-filterbar .tl-valider-barre { position: sticky; right: 0; z-index: 1; box-shadow: -12px 0 10px -4px rgba(var(--bg-rgb), 0.96); }
@media (max-width: 980px) { .tl-filterbar .tl-resume { display: none; } .tl-filterbar { gap: 10px; } }
@media (max-width: 640px) { .tl-filterbar .count-badge { display: none; } .tl-filterbar .pill.tl-retour { padding: 5px 10px; } }

/* La barre de la page Jeux (21/11/2026) : la .lb-filterbar du site, sous la navigation, sur l'accueil (familles de jeux)
   comme dans chaque jeu (retour, titre, règles, record). Les tierlists posent la leur et masquent celle-ci. */
.jx-filterbar[data-mode="accueil"] .jx-fb-jeu, .jx-filterbar[data-mode="jeu"] .jx-fb-accueil { display: none !important; }
.jx-filterbar .count-badge { margin-left: auto; }
.jx-filterbar .pill small { margin-left: 4px; font-family: var(--font-mono); font-size: 0.68rem; opacity: 0.7; }
.jx-filterbar .pill.tl-retour, .tl-filterbar .pill.tl-retour { border-color: var(--doom-green); color: var(--accent-texte); }
.jx-fb-titre { margin: 0; flex: 0 1 auto; min-width: 0; font-family: var(--font-display); font-weight: 900; font-size: 1.15rem; line-height: 1; text-transform: uppercase; color: var(--lb-white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.tl-en-selection .jx-filterbar { display: none; }
/* La barre de titre d'avant n'existe plus : la partie commence sous la barre. */
#jx-partie { padding-top: 0; }
@media (max-width: 980px) { .tl-filterbar .jx-fb-titre, .tl-filterbar .jx-fb-titre + .filter-sep { display: none; } }

/* L'en-tête d'une partie dans la barre (21/11/2026) : manche, score, chrono, en mono, entre le titre et le record. */
.jx-fb-tete { display: flex; flex: 1 1 auto; min-width: 0; justify-content: center; }
.jx-fb-tete:empty { display: none; }
.jx-fb-tete .jx-tete { margin: 0; padding: 6px 12px; gap: 4px 18px; flex-wrap: nowrap; background: var(--bg-elevated); border-radius: 999px; font-size: 0.74rem; white-space: nowrap; overflow: hidden; }
.jx-fb-tete .jx-tete > span:empty { display: none; }
.jx-fb-tete .jx-tete > * { overflow: hidden; text-overflow: ellipsis; }

/* Le tableau de bord d'une partie (21/11/2026) : EN TÊTE DE LA PARTIE, hors de la barre de la page. Des cases
   étiquette + valeur, séparées d'un filet, dans une plaque centrée. Manche avec sa jauge, score en accent, chronomètre
   en chiffres fixes. */
.jx-tete.jx-hud { width: fit-content; max-width: 100%; margin: 4px auto 18px; flex-wrap: nowrap; justify-content: center; align-items: stretch;
    gap: 0; padding: 8px 6px; border: 2px solid var(--lb-border); border-radius: var(--rayon-carte, 12px);
    background: var(--bg-card); text-transform: none; letter-spacing: 0; }
.jx-hud-c { display: grid; grid-template-columns: auto auto; grid-template-areas: "l l" "v p"; align-items: center; justify-items: start;
    column-gap: 12px; row-gap: 3px; padding: 2px 22px; min-width: 0; }
.jx-hud-c + .jx-hud-c { border-left: 1px solid var(--lb-border); }
.jx-hud-c > small { grid-area: l; display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: 0.64rem;
    font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--lb-muted); line-height: 1.2; }
.jx-hud-c > b { grid-area: v; font-family: var(--font-display); font-weight: 800; font-size: 1.55rem; line-height: 1; color: var(--lb-white);
    font-variant-numeric: tabular-nums; white-space: nowrap; }
.jx-hud-c > b em { margin-left: 2px; font-style: normal; font-size: 0.72em; font-weight: 700; color: var(--lb-muted); }
.jx-hud-score > b { color: var(--accent-texte); }
.jx-hud-ico { width: 11px; height: 11px; flex-shrink: 0; }
.jx-hud-chrono > b { font-family: var(--font-mono); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.02em; min-width: 3.6ch; }
.jx-hud-chrono.est-rebours > small, .jx-hud-chrono.est-rebours > b { color: var(--accent-texte); }
.jx-hud-titre > b { max-width: 220px; overflow: hidden; text-overflow: ellipsis; font-size: 1.05rem; }
/* La jauge des manches : un segment par manche (jusqu'à 12), sinon une barre continue. */
.jx-hud-prog { grid-area: p; display: inline-flex; gap: 3px; align-self: center; }
.jx-hud-prog i { width: 13px; height: 9px; border-radius: 2px; background: var(--lb-border); }
.jx-hud-prog i.est-fait { background: var(--lb-muted); }
/* Résultat de chaque manche passée (21/11/2026) : vert juste, rouge ratée, vert pâle à moitié. Aucune ne prend
   l'accent orange, trop proche du rouge : la manche en cours est seulement cerclée d'encre. */
.jx-hud-prog i.est-fait.est-juste { background: #2f8f5b; }
.jx-hud-prog i.est-fait.est-partiel { background: #9cc9ad; }
.jx-hud-prog i.est-fait.est-faux { background: #d32f2f; }
/* Le délai de « Qui a dit ça ? » : la case « Reste » passe à l'accent dans les trois dernières secondes, et une barre
   se vide sous la réplique (elle remplace le petit trait d'accent). */
.jx-hud-reste.est-urgent > small, .jx-hud-reste.est-urgent > b, .jx-hud-reste.est-urgent > b em { color: #a3261b; }
.jx-replique .jx-delai { display: block; width: min(220px, 60%); height: 4px; margin: 20px auto 0; border-radius: 2px; background: var(--lb-border); overflow: hidden; }
.jx-replique .jx-delai i { display: block; height: 100%; background: var(--doom-green); transform-origin: left center; animation: jx-delai linear forwards; }
.jx-replique:not(.jx-fiche):has(.jx-delai)::after { display: none; }
@keyframes jx-delai { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.jx-hud-prog i.est-cours { background: transparent; outline: 2px solid var(--lb-white); outline-offset: -2px; }
.jx-hud-prog.est-continu { width: 90px; height: 6px; border-radius: 3px; background: var(--lb-border); overflow: hidden; }
.jx-hud-prog.est-continu i { display: block; width: 0; height: 100%; border-radius: 0; background: var(--doom-green); }
@media (max-width: 640px) {
    .jx-tete.jx-hud { width: 100%; padding: 6px 2px; margin-bottom: 14px; }
    .jx-hud-c { flex: 1 1 0; padding: 1px 8px; justify-items: center; grid-template-areas: "l l" "v v"; }
    .jx-hud-prog { display: none; }
    .jx-hud-c > b { font-size: 1.2rem; }
    .jx-hud-chrono > b { font-size: 1rem; }
    .jx-hud-c > small { font-size: 0.55rem; }
    .jx-hud-titre { display: none; }
}

/* La réplique de « Qui a dit ça ? » (21/11/2026) : une carte centrée, une pastille de guillemets posée à cheval sur son
   bord haut, le texte en italique équilibré. Les guillemets ne sont plus dans le texte, la pastille les dit. */
.jx-replique:not(.jx-fiche) {
    position: relative; width: 100%; max-width: 780px; box-sizing: border-box; margin: 26px auto 22px; padding: 38px clamp(20px, 5vw, 56px) 30px;
    background: var(--bg-card); border: 2px solid var(--lb-border); border-left-width: 2px; border-radius: var(--rayon-carte, 12px);
    text-align: center; font-size: clamp(1.25rem, 2.5vw, 1.7rem); line-height: 1.38; color: var(--lb-white);
}
.jx-replique:not(.jx-fiche)::before {
    content: '\201C'; position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
    width: 46px; height: 46px; display: grid; place-items: center; padding-top: 18px; box-sizing: border-box;
    border-radius: 50%; background: var(--doom-green); color: var(--on-accent);
    font-family: var(--font-serif); font-style: normal; font-size: 3.1rem; line-height: 1;
}
.jx-replique:not(.jx-fiche) p { margin: 0; text-wrap: balance; }
.jx-replique:not(.jx-fiche)::after {
    content: ''; display: block; width: 44px; height: 2px; margin: 18px auto 0; border-radius: 1px; background: var(--doom-green);
}
@media (max-width: 760px) { .jx-filterbar .jx-fb-titre { display: none; } .jx-filterbar .jx-fb-titre + .filter-sep { display: none; } }

/* Tout sur un écran (21/11/2026) : l'écran du TVA prend la place qui reste sous la navigation et la barre de la page,
   moins ce qui vient dessous (indices, essais, saisie : environ 230 px). Mesuré à 1366 x 768. */
.jx-ecran { width: min(760px, 100%, calc((100dvh - var(--nav-h, 64px) - var(--filter-h, 52px) - 240px) * 16 / 9)); max-width: none; margin-bottom: 14px; }
.jx-ecran.jx-ecran-portrait { width: min(280px, 100%, calc((100dvh - var(--nav-h, 64px) - var(--filter-h, 52px) - 250px) * 2 / 3)); max-width: none; }
.jx-jeu { padding-top: 4px; }
/* Les devinettes floues : un peu plus grandes, la place des indices et des essais restant réservée sous l'image. */
.jx-jeu-scene-floutee .jx-ecran { width: min(820px, 100%, calc((100dvh - var(--nav-h, 64px) - var(--filter-h, 52px) - 230px) * 16 / 9)); }
.jx-jeu-perso-floute .jx-ecran.jx-ecran-portrait { width: min(320px, 100%, calc((100dvh - var(--nav-h, 64px) - var(--filter-h, 52px) - 230px) * 2 / 3)); }
@media (max-width: 640px) { #jx-record { display: none !important; } .jx-fb-tete .jx-tete { gap: 4px 10px; padding: 5px 10px; font-size: 0.68rem; } }
@media (max-width: 640px) { .jx-retour-txt { display: none; } }   /* au téléphone, la flèche seule laisse la place à l'en-tête de manche */
@media (max-width: 640px) { .jx-filterbar { gap: 8px; } }
/* Nouvelle partie et règles en icônes rondes, comme la barre des tierlists (21/11/2026). .tl-ico pose un display : le
   [hidden] doit le battre. */
#jx-revoir[hidden], #jx-rejouer[hidden] { display: none; }
.jx-filterbar #jx-record + .tl-ico { margin-left: 0; }
/* La fenêtre des règles se ferme par une croix en haut à droite, plus par un bouton « Fermer ». */
.jx-regles-dossier { position: relative; }
.jx-regles-fermer { position: absolute; top: 14px; right: 14px; }
.jx-regles-dossier .jx-regles-titre { padding-right: 44px; }
@media (max-width: 640px) {
    .jx-filterbar[data-mode="jeu"] { height: auto; min-height: var(--filter-h, 52px); padding-top: 6px; padding-bottom: 6px; }
    .jx-fb-tete .jx-tete { flex-wrap: wrap; justify-content: center; white-space: normal; border-radius: 10px; line-height: 1.35; }
    .jx-fb-tete .jx-tete > * { overflow: visible; text-overflow: clip; }
}

/* Les règles, le contenu seul (21/11/2026) : dans la page au lancement d'un jeu, dans une fenêtre sobre par le bouton
   « Les règles ». Plus de Miss Minutes, de bulle ni de tampon. */
.jx-regles-dossier { display: block; width: min(640px, 100%); padding: 24px 26px 22px; }
.jx-regles-titre { margin: 0 0 14px; font-size: clamp(1.4rem, 3vw, 1.8rem); color: var(--lb-white); }
.jx-regles-liste { color: var(--lb-text); }
.jx-regles-liste li::marker { color: var(--accent-texte); }
.jx-regles-page { max-width: 720px; margin: 12px auto 0; padding: 22px 26px 22px; background: var(--bg-card); border: 2px solid var(--lb-border); border-radius: var(--rayon-carte, 12px); }
.jx-regles-page-titre { margin: 0 0 14px; font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; text-transform: uppercase; color: var(--lb-white); }
.jx-regles-page .jx-regles-liste { font-size: 1rem; line-height: 1.6; }
.jx-regles-page .jx-hc, .jx-regles-dossier .jx-hc { margin: 0 0 16px; }

/* ── La page de lancement d'un jeu (21/11/2026, d'après une maquette de l'utilisateur) ──────────────────────────
   En tête, une fiche FINE : vignette, famille, titre, état (mode, record) et « Lancer le jeu ». Dessous, deux cases au
   dessin des dossiers du site : le mode à gauche (au dessin des types de marathon : rond d'icône qui prend l'accent
   une fois choisi, titre d'affiche ; la description n'est plus qu'une infobulle), les règles à droite. Un jeu sans mode
   ni option n'a que les règles, sur toute la largeur.
   Sur ordinateur, le tout TIENT DANS L'ÉCRAN (demande du 21/11/2026) : la page fait la hauteur qui reste sous la
   navigation et la barre (60 px = la marge haute de .jx-corps, celle de .jx-lance et un peu d'air en bas), les deux
   cases prennent la même hauteur, bloquée, et c'est leur contenu qui défile s'il déborde ; l'option hardcore reste
   visible en bas de sa case. */
.jx-lance { max-width: 1120px; margin: 12px auto 0; display: grid; gap: 14px; }
.jx-lance-tete {
    display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: center; gap: 10px 22px;
    padding: 10px 20px 10px 10px; background: var(--bg-card); border: 2px solid var(--lb-border); border-radius: var(--rayon-carte);
}
.jx-lance-img { display: block; width: 120px; height: 80px; object-fit: cover; border: var(--trait); border-radius: calc(var(--rayon-carte) - 4px); }
.jx-lance-titres { min-width: 0; }
.jx-lance-sur { margin: 0 0 4px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-texte); }
.jx-lance-titre { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: clamp(1.6rem, 2.8vw, 2.2rem); line-height: 0.92; text-transform: uppercase; color: var(--lb-white); }
.jx-lance-etat, .jx-regles-mode {
    display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 8px 0 0; font-family: var(--font-mono); font-size: 0.72rem;
    letter-spacing: 0.05em; text-transform: uppercase; color: var(--lb-muted);
}
.jx-lance-etat b, .jx-regles-mode b { font-weight: 600; color: var(--lb-white); }
.jx-regles-mode { margin: 0 0 16px; }
.jx-lance-go { gap: 14px; min-height: 52px; padding: 0 26px; font-size: 1.05rem; }
.jx-lance-go svg { width: 16px; height: 16px; flex: 0 0 auto; }
.jx-lance-corps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.jx-lance-corps.est-seul { grid-template-columns: minmax(0, 1fr); }
.jx-lance-case { padding: 16px 18px 18px; background: var(--bg-card); border: 2px solid var(--lb-border); border-radius: var(--rayon-carte); }
.jx-lance-h { margin: 0 0 12px; font-family: var(--font-display); font-weight: 900; font-size: 1.45rem; line-height: 1; text-transform: uppercase; color: var(--lb-white); }
.jx-lance-case .jx-regles-liste { margin: 0; font-size: 1rem; line-height: 1.6; }
.jx-lance-case .jx-hc { margin: 12px 0 0; }

/* L'interrupteur Simple / Hardcore (23/11/2026, d'après l'image « DAY / NIGHT » de l'utilisateur), au bas de la case
   des règles. Au repos : contour d'encre, mot à gauche, rond plein à droite. En hardcore : aplat d'accent, rond clair à
   gauche, mot à droite. Le rond glisse d'un bord à l'autre. À côté, ce seul niveau en une ligne (« 10 secondes par
   réplique »), qui change avec lui ; l'interrupteur reste petit (retour du 23/11/2026 : « trop gros et large »). */
.jx-hc-pied {
    display: flex; align-items: center; gap: 12px; margin: 12px 0 0; padding-top: 12px;
    border-top: 2px dashed var(--lb-border);
}
.jx-hc-bascule {
    --rond: 18px;
    position: relative; flex: 0 0 auto; display: flex; align-items: center; width: 106px; height: 28px;
    padding: 0 calc(var(--rond) + 8px) 0 10px; cursor: pointer;
    font-family: var(--font-display); font-weight: 900; font-size: 0.88rem; line-height: 1; letter-spacing: 0.03em;
    text-transform: uppercase; color: var(--lb-white);
    background: var(--bg-card); border: 2px solid var(--lb-white); border-radius: 999px;
    transition: background-color var(--dur-2, 160ms), border-color var(--dur-2, 160ms), color var(--dur-2, 160ms), padding var(--dur-2, 160ms);
}
.jx-hc-mot { flex: 1 1 auto; text-align: center; white-space: nowrap; }
.jx-hc-rond {
    position: absolute; top: 50%; left: calc(100% - var(--rond) - 3px); width: var(--rond); height: var(--rond);
    border-radius: 50%; background: var(--lb-white); transform: translateY(-50%);
    transition: left var(--dur-2, 160ms) ease, background-color var(--dur-2, 160ms);
}
.jx-hc-bascule.est-hc {
    padding: 0 8px 0 calc(var(--rond) + 8px); color: var(--on-accent);
    background: var(--doom-green); border-color: var(--doom-green);
}
.jx-hc-bascule.est-hc .jx-hc-rond { left: 3px; background: var(--on-accent); }
.jx-hc-bascule:hover:not(.est-hc) { border-color: var(--doom-green); }
.jx-hc-bascule:hover:not(.est-hc) .jx-hc-rond { background: var(--doom-green); }
.jx-hc-bascule:focus-visible { outline: 3px solid var(--accent-texte); outline-offset: 3px; }
.jx-hc-quoi { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 0.95rem; line-height: 1.35; color: var(--lb-text); }
/* Trois niveaux (Facile, Difficile, Hardcore ; 23/11/2026) : la même pastille que l'interrupteur, coupée en trois cases,
   la case choisie en aplat d'accent. Un second pied (l'option chrono du casting) se colle au premier. */
.jx-niv-choix { flex: 0 0 auto; display: flex; height: 28px; padding: 2px; gap: 2px; border: 2px solid var(--lb-white); border-radius: 999px; background: var(--bg-card); }
.jx-niv-choix button {
    padding: 0 10px; border: 0; border-radius: 999px; background: none; cursor: pointer;
    font-family: var(--font-display); font-weight: 900; font-size: 0.82rem; line-height: 1; letter-spacing: 0.03em;
    text-transform: uppercase; color: var(--lb-white);
    transition: background-color var(--dur-2, 160ms), color var(--dur-2, 160ms);
}
.jx-niv-choix button:hover:not(.est-actif) { color: var(--accent-texte); }
.jx-niv-choix button.est-actif { background: var(--doom-green); color: var(--on-accent); }
.jx-niv-choix button:focus-visible { outline: 3px solid var(--accent-texte); outline-offset: 2px; }
.jx-hc-pied + .jx-chrono-pied { margin-top: 8px; padding-top: 0; border-top: 0; }
@media (max-width: 700px) { .jx-niv-choix { height: 34px; } .jx-niv-choix button { padding: 0 12px; } }
@media (prefers-reduced-motion: reduce) { .jx-hc-bascule, .jx-hc-rond { transition: none; } }

/* Les modes : une case par vivier, cliquable, choisie au clavier par les flèches (radiogroup). */
.jx-modes { display: grid; gap: 8px; align-content: start; }
.jx-mode {
    display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 0 14px; width: 100%;
    padding: 8px 16px 8px 8px; text-align: left; cursor: pointer; font: inherit; color: var(--lb-text);
    background: var(--bg-card); border: 2px solid var(--lb-border); border-radius: var(--rayon-carte);
    transition: border-color var(--dur-2, 160ms), background-color var(--dur-2, 160ms);
}
.jx-mode:hover { border-color: var(--doom-green); }
.jx-mode.est-actif { border-color: var(--doom-green); background: var(--bg-elevated); }
.jx-mode:focus-visible { outline: 3px solid var(--accent-texte); outline-offset: -3px; }
.jx-mode-ico {
    display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
    background: var(--bg-elevated); border: var(--trait); color: var(--lb-white);
}
.jx-mode.est-actif .jx-mode-ico { background: var(--doom-green); border-color: transparent; color: var(--on-accent); }
.jx-mode-ico svg { width: 19px; height: 19px; }
.jx-mode-txt { min-width: 0; }
.jx-mode-txt b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; line-height: 1; text-transform: uppercase; color: var(--lb-white); }
.jx-mode-n { font-family: var(--font-mono); font-size: 0.85rem; color: var(--lb-muted); }
.jx-mode.est-actif .jx-mode-n { color: var(--accent-texte); }

/* La hauteur bloquée, sur ordinateur seulement : au téléphone les deux cases s'empilent et la page défile. */
@media (min-width: 901px) {
    .jx-lance { height: calc(100dvh - var(--nav-h, 64px) - var(--filter-h, 52px) - 60px); min-height: 420px; grid-template-rows: auto minmax(0, 1fr); }
    .jx-lance-corps { align-items: stretch; min-height: 0; }
    .jx-lance-case { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
    .jx-lance-h, .jx-lance-case .jx-hc, .jx-hc-pied { flex: 0 0 auto; }
    .jx-lance-case .jx-regles-liste {
        flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
        scrollbar-width: thin; scrollbar-color: var(--lb-border) transparent;
    }
    /* Les modes ne défilent JAMAIS (demande du 21/11/2026) : ils se partagent la hauteur de la case, 64 px chacun au plus,
       moins s'il le faut, et leur contenu suit la hauteur de SA case (unités cqh : rond d'icône, titre, nombre). */
    .jx-lance-case .jx-modes {
        flex: 1 1 auto; min-height: 0; overflow: hidden;
        grid-auto-rows: minmax(0, 64px); gap: clamp(4px, 1.1vh, 8px);
    }
    .jx-lance-case .jx-mode {
        container-type: size; height: 100%; min-height: 0; padding-block: 0;
        grid-template-columns: auto minmax(0, 1fr) auto;
    }
    .jx-lance-case .jx-mode-ico { width: min(38px, 74cqh); height: min(38px, 74cqh); }
    .jx-lance-case .jx-mode-ico svg { width: 52%; height: 52%; }
    .jx-lance-case .jx-mode-txt b { font-size: clamp(0.78rem, 36cqh, 1.2rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .jx-lance-case .jx-mode-n { font-size: clamp(0.7rem, 28cqh, 0.85rem); }
    /* Une liste qui défile rogne ce qui dépasse de sa boîte : les numéros (« 1. », en mono) doivent tenir dans sa marge. */
    .jx-lance-case .jx-regles-liste { padding: 0 6px 0 2.2em; }
}
@media (max-width: 900px) {
    .jx-lance-corps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
    /* Au téléphone, l'illustration reste une vignette à côté du titre : en pleine largeur, elle repoussait le choix du
       mode sous la ligne de flottaison. */
    .jx-lance-tete { grid-template-columns: 88px minmax(0, 1fr); gap: 10px 14px; padding: 10px; }
    .jx-lance-img { width: 88px; height: 59px; }
    .jx-lance-titre { font-size: 1.6rem; }
    .jx-lance-go { grid-column: 1 / -1; width: 100%; min-height: 48px; }
    .jx-lance-case { padding: 14px 14px 16px; }
    .jx-mode { gap: 0 12px; padding-right: 12px; }
    .jx-hc-pied { flex-wrap: wrap; }
    /* Au doigt, l'interrupteur grandit un peu (32 px de haut au moins). */
    .jx-hc-bascule { --rond: 22px; height: 34px; width: 118px; }
    /* Les saisies au téléphone (23/11/2026, banc d'essai) : le champ prend TOUTE la ligne, les boutons passent dessous.
       À côté de « Valider » et « Passer », il ne restait que 161 px, et la liste de suggestions, de la même largeur,
       coupait les titres. 16 px de police : en dessous, le navigateur zoome sur le champ. */
    .jx-saisie { flex-wrap: wrap; justify-content: center; }
    .jx-saisie > .jx-sugg-zone, .jx-saisie > input { flex: 1 1 100%; }
    .jx-saisie > .jx-bouton { flex: 1 1 auto; }
    .jx-saisie input { font-size: 16px; }
}

/* La fin d'une tierlist (21/11/2026) : la fenêtre de partage, plus large, avec l'image en grand ; une liste très longue
   défile DANS l'aperçu, les boutons restent sous les yeux. */
.jx-partage.tl-fin { width: min(1000px, 100%); gap: 12px; }
.tl-fin .jx-regles-sur { margin: 0; }
.tl-fin-titre { margin: -4px 0 0; font-family: var(--font-display); font-weight: 900; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1; text-transform: uppercase; color: var(--lb-white); }
.tl-fin-apercu { max-height: calc(100vh - 250px); overflow-y: auto; align-items: start; border: var(--trait); border-radius: 10px; background: var(--bg-dark); }
.tl-fin-apercu img { max-height: none; width: 100%; border-radius: 0; box-shadow: none; }
.tl-fin .jx-regles-actions { flex-wrap: wrap; }

/* Une partie centrée dans l'écran (21/11/2026) : le tableau de bord reste en haut, le reste (citation, choix, écran…)
   se place au milieu de la place qui reste, en hauteur comme en largeur. Deux cales souples (::before et ::after)
   entourent le contenu ; `order` remet le tableau de bord devant la première. Les tierlists gardent leur mise en page. */
.jx-jeu:not(.jx-jeu-tierlist-persos):not(.jx-jeu-tierlist-oeuvres) {
    display: flex; flex-direction: column; min-height: calc(100dvh - var(--nav-h, 64px) - var(--filter-h, 52px) - 40px);
}
.jx-jeu:not(.jx-jeu-tierlist-persos):not(.jx-jeu-tierlist-oeuvres) > * { order: 2; }
.jx-jeu:not(.jx-jeu-tierlist-persos):not(.jx-jeu-tierlist-oeuvres) > .jx-tete { order: 0; flex-shrink: 0; }
.jx-jeu:not(.jx-jeu-tierlist-persos):not(.jx-jeu-tierlist-oeuvres)::before { content: ''; order: 1; flex: 1 1 0; }
.jx-jeu:not(.jx-jeu-tierlist-persos):not(.jx-jeu-tierlist-oeuvres)::after { content: ''; order: 3; flex: 1 1 0; }

/* La liste de suggestions illustrée (Scène floutée, 21/11/2026) : elle s'ouvre AU-DESSUS du champ, la saisie étant en
   bas de l'écran ; une ligne = l'affiche, le titre, le type et l'année. La ligne surlignée prend le filet d'accent. */
.jx-sugg-zone { position: relative; flex: 1; min-width: 0; display: flex; }
.jx-sugg-zone input { width: 100%; }
.jx-sugg { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); z-index: 30; margin: 0; padding: 6px; list-style: none;
    max-height: min(420px, 55vh); overflow-y: auto; background: var(--bg-card); border: 2px solid var(--lb-border); border-radius: var(--rayon-carte, 12px); }
.jx-sugg[hidden] { display: none; }
.jx-sugg li { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 12px; padding: 6px 10px 6px 6px;
    border-left: 3px solid transparent; border-radius: 8px; cursor: pointer; }
.jx-sugg li[aria-selected="true"] { background: var(--bg-elevated); border-left-color: var(--doom-green); }
.jx-sugg li img, .jx-sugg-vide { width: 36px; height: 54px; object-fit: cover; border-radius: 4px; background: var(--lb-border); }
.jx-sugg-vide { display: block; }
.jx-sugg-txt { display: grid; gap: 2px; min-width: 0; }
.jx-sugg-txt b { font-weight: 700; color: var(--lb-white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jx-sugg-txt small { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--lb-muted); }

/* La feuille d'indices des devinettes floues (21/11/2026) : à droite de l'image, cinq cases numérotées ; les cachées
   disent quand elles tomberont, une case dévoilée arrive en fondu. Sous 900 px, la feuille passe sous l'image. */
.jx-jeu-scene-floutee, .jx-jeu-perso-floute { max-width: 1180px; }
.jx-floue { display: flex; justify-content: center; align-items: stretch; gap: 20px; margin-bottom: 14px; }
.jx-floue .jx-ecran { flex: 0 0 auto; margin: 0; }
.jx-feuille { flex: 0 0 300px; display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 14px; background: var(--bg-card);
    border: 2px solid var(--lb-border); border-radius: var(--rayon-carte, 12px); }
.jx-feuille-titre { display: flex; justify-content: space-between; align-items: baseline; margin: 0; padding-bottom: 8px; border-bottom: 1px solid var(--lb-border);
    font-family: var(--font-display); font-weight: 900; font-size: 1.1rem; text-transform: uppercase; color: var(--lb-white); }
.jx-feuille-titre span { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; color: var(--lb-muted); }
.jx-feuille ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.jx-feuille li { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: start; gap: 10px; padding: 8px 10px; border-radius: 8px;
    font-size: 0.9rem; line-height: 1.35; }
.jx-feuille-n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; }
.jx-feuille li.est-revele { background: var(--bg-elevated); color: var(--lb-text); }
.jx-feuille li.est-revele .jx-feuille-n { background: var(--doom-green); color: var(--on-accent); }
.jx-feuille li.est-cache { border: 1.5px dashed var(--lb-border); color: var(--lb-muted); font-style: italic; font-size: 0.82rem; }
.jx-feuille li.est-cache .jx-feuille-n { border: 1.5px solid var(--lb-border); color: var(--lb-muted); font-style: normal; }
.jx-feuille li.est-nouveau { animation: jx-indice 0.5s var(--retard, 0s) ease-out both; }
@keyframes jx-indice { from { opacity: 0; transform: translateX(14px); } }
@media (prefers-reduced-motion: reduce) { .jx-feuille li.est-nouveau { animation: none; } }
@media (max-width: 900px) {
    .jx-floue { flex-direction: column; align-items: center; }
    .jx-feuille { flex: 0 0 auto; width: min(560px, 100%); box-sizing: border-box; }
}

/* Sans image (Personnage flouté : le portrait donnerait la réponse) : le nom, puis réalité et interprète. */
.jx-sugg li.sans-img { grid-template-columns: minmax(0, 1fr); padding: 7px 12px; }
.jx-sugg li.sans-img small { text-transform: none; letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Trois colonnes pour les devinettes floues (21/11/2026) : les essais à gauche, l'image, les indices à droite. L'image
   cède la place aux deux feuilles (elle garde son 16:9, sa hauteur suit). */
.jx-jeu-scene-floutee, .jx-jeu-perso-floute { max-width: 1320px; }
.jx-floue { gap: 16px; }
.jx-floue .jx-feuille { flex: 0 0 250px; }
.jx-floue .jx-ecran:not(.jx-ecran-portrait) { max-width: calc(100% - 532px); }
.jx-feuille li.est-rate { background: #f3d3c9; color: #4a0f08; }
.jx-feuille li.est-rate > span:last-child { text-decoration: line-through; }
.jx-feuille li.est-rate .jx-feuille-n { background: #d32f2f; color: #fff; }
.jx-feuille li.est-bon { background: #d9e8de; color: #12302b; font-weight: 700; }
.jx-feuille li.est-bon .jx-feuille-n { background: #2f8f5b; color: #fff; }
.jx-feuille li { overflow-wrap: anywhere; }
/* Une saisie plus large, et des propositions qui montrent le titre entier (sur deux lignes au besoin). */
.jx-jeu-scene-floutee .jx-saisie, .jx-jeu-perso-floute .jx-saisie { max-width: 820px; width: 100%; }
.jx-sugg { max-height: min(460px, 60vh); }
.jx-sugg-txt b { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.25; }
@media (max-width: 900px) {
    .jx-floue .jx-feuille { flex: 0 0 auto; width: min(560px, 100%); }
    .jx-floue .jx-ecran:not(.jx-ecran-portrait) { max-width: 100%; }
    .jx-feuille-essais { order: 2; }
    .jx-floue > .jx-feuille:last-child { order: 3; }
}
/* Au téléphone, les feuilles passent sous l'image : seules les cases remplies restent, pour garder la saisie proche. */
@media (max-width: 900px) {
    .jx-feuille li.est-cache { display: none; }
    .jx-feuille:not(:has(li:not(.est-cache))) { display: none; }
    .jx-feuille { padding: 10px 12px; gap: 6px; }
}

/* L'image et ses choix côte à côte (La scène post-crédit, 21/11/2026) : les quatre réponses en colonne à droite,
   l'image prend le reste. Sous 900 px, les choix repassent dessous. */
.jx-jeu-post-credit, .jx-jeu-photogramme { max-width: 1240px; }
.jx-cote { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 6px; }
.jx-cote .jx-ecran { flex: 0 1 auto; margin: 0; width: min(760px, calc(100% - 360px), calc((100dvh - var(--nav-h, 64px) - var(--filter-h, 52px) - 200px) * 16 / 9)); }
.jx-choix-colonne { flex: 0 0 340px; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (max-width: 900px) {
    .jx-cote { flex-direction: column; align-items: stretch; }
    .jx-cote .jx-ecran { width: 100%; }
    .jx-choix-colonne { flex: 0 0 auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* La Ligne sacrée tient dans l'écran (21/11/2026) : la hauteur des cinq vignettes se calcule sur la place qui reste
   sous le tableau de bord et au-dessus du bouton (72 px au plus), et les flèches passent côte à côte au lieu d'être
   empilées, ce qui dictait la hauteur de chaque ligne. */
.jx-jeu-ligne-sacree .jx-ordre { gap: 8px; margin-bottom: 12px;
    --h: clamp(40px, calc((100dvh - var(--nav-h, 64px) - var(--filter-h, 52px) - 320px) / 5), 72px); }
.jx-jeu-ligne-sacree .jx-ordre-item { grid-template-columns: 2.2em auto minmax(0, 1fr) auto; padding: 6px 12px 6px 6px; }
.jx-jeu-ligne-sacree .jx-ordre-item img { width: auto; height: var(--h); }
.jx-jeu-ligne-sacree .jx-ordre-item b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jx-jeu-ligne-sacree .jx-fleches { flex-direction: row; }
.jx-jeu-ligne-sacree > .jx-bouton { align-self: center; }

/* Une proposition de personnage (Six degrés) : pastille ronde, nom, puis réalité et interprète. */
.jx-sugg li.est-rond img, .jx-sugg li.est-rond .jx-sugg-vide { width: 36px; height: 36px; border-radius: 50%; }
.jx-sugg li.est-rond small { text-transform: none; letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jx-jeu-six-degres .jx-saisie { max-width: 720px; width: 100%; }
/* Le casting : la saisie prend la largeur (23/11/2026 : réduite à son contenu, elle ne faisait que 237 px). */
.jx-jeu-casting .jx-saisie { max-width: 640px; width: 100%; align-items: center; }

/* Sur une carte de choix de personnage : sa réalité et son interprète sous le nom (21/11/2026). */
.jx-choix .jx-choix-sous { display: block; max-width: 100%; margin-top: -2px; font-size: 0.74rem; font-weight: 500; line-height: 1.25;
    color: var(--lb-muted); text-align: center; overflow-wrap: anywhere; }
.jx-choix.est-juste .jx-choix-sous, .jx-choix.est-faux .jx-choix-sous { color: inherit; opacity: 0.75; }
/* Dans une proposition, le surnom suit le nom, en plus discret. */
.jx-sugg-txt b i { font-style: normal; font-weight: 500; color: var(--lb-muted); }

/* La case « Reste » des chronos de manche (21/11/2026) : les secondes, et dessous une barre qui se vide. Elle passe au
   rouge dans le dernier cinquième du temps (au moins trois secondes). */
.jx-hud-prog.jx-reste-barre { width: 56px; height: 5px; }
.jx-hud-prog.jx-reste-barre i { width: 100% !important; transform-origin: left center; animation: jx-delai linear forwards; }
.jx-hud-reste.est-urgent .jx-reste-barre i { background: #d32f2f; }

/* ── Confort de jeu (22/11/2026) ── */
/* Miss Minutes pendant une partie : sa bulle passe AU-DESSUS d'elle, étroite, dans la marge de droite, au lieu de
   s'étendre vers la gauche par-dessus les réponses ; elle ne capte pas les clics. */
body.jx-en-jeu .mm-compagne { flex-direction: column; align-items: flex-end; gap: 6px; }
body.jx-en-jeu .mm-bulle { order: -1; max-width: 190px; margin: 0; pointer-events: none; font-size: 0.82rem; }
body.jx-en-jeu .mm-bulle::after { right: 34px; bottom: -9px; transform: rotate(45deg); }
body.jx-en-jeu .mm-perso { width: clamp(70px, 6vw, 92px); }
/* Les consignes sont centrées comme le reste de la partie. */
.jx-jeu .jx-consigne, .jx-jeu .jx-fil { text-align: center; }
/* Les fiches de « Devine le personnage » et « Devine le film » : une vraie carte, aérée, détachée des réponses. */
.jx-replique.jx-fiche { width: 100%; max-width: 860px; box-sizing: border-box; margin: 0 auto 22px; padding: 22px 30px;
    border: 2px solid var(--lb-border); border-left-width: 2px; border-radius: var(--rayon-carte, 12px);
    text-align: center; text-wrap: pretty; font-size: clamp(1.02rem, 1.5vw, 1.14rem); line-height: 1.6; }
/* Le procès : une carte à la mesure de sa phrase, plus un grand cadre vide. */
.jx-proces { width: 100%; max-width: 760px; box-sizing: border-box; margin: 0 auto; padding: 28px 30px 26px; }
.jx-affirmation { min-height: 2.8em; margin-bottom: 22px; text-wrap: balance; }   /* pas de grille : chaque <b> deviendrait une ligne */

/* ── Banc d'essai du 23/11/2026, au téléphone ──
   La Ligne sacrée : la vignette rapetisse, le titre tient sur deux lignes au lieu d'être coupé à quatre lettres
   (« Arrivé… »), et les flèches s'empilent à nouveau, plus grandes, pour laisser la largeur au texte. */
@media (max-width: 700px) {
    .jx-jeu-ligne-sacree .jx-ordre-item { grid-template-columns: 1.4em 72px minmax(0, 1fr) auto; gap: 8px; padding: 6px 6px 6px 4px; }
    .jx-jeu-ligne-sacree .jx-ordre-item img { width: 72px; height: auto; }
    .jx-jeu-ligne-sacree .jx-ordre-item b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 0.92rem; }
    .jx-jeu-ligne-sacree .jx-ordre-item span { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.78rem; }
    .jx-jeu-ligne-sacree .jx-fleches { flex-direction: column; }
    .jx-fleches button { width: 40px; height: 34px; }
    /* Miss Minutes, en bas à droite, recouvrait le dernier bouton d'une partie (« Passer ») : pendant un jeu, elle
       laisse passer les touchers, et la partie garde de la place sous elle pour qu'on puisse la faire défiler. */
    body.jx-en-jeu .mm-compagne, body.jx-en-jeu .mm-compagne * { pointer-events: none !important; }
    body.jx-en-jeu .jx-jeu { padding-bottom: 88px; }
    /* « Passer », « J'abandonne » : sur leur propre ligne, au centre, loin du coin de Miss Minutes. */
    .jx-saisie > .jx-lien { flex: 1 1 100%; text-align: center; }
    /* Personnage flouté : le portrait laisse la saisie dans l'écran. */
    .jx-jeu-perso-floute .jx-ecran.jx-ecran-portrait { width: min(230px, 62vw); margin-inline: auto; }
    /* Avant ou après : des captures moins hautes, pour voir les deux scènes et les deux boutons d'un coup d'œil. */
    .jx-duel { gap: 10px; }
    .jx-duel-carte img { aspect-ratio: 2 / 1; }
    .jx-duel-carte figcaption { padding: 8px 12px; }
    .jx-duel-carte strong { font-size: 1.15rem; }
    /* La ligne « réalité, interprète » d'une proposition se lit en entier, sur deux lignes : l'interprète départage
       deux Scott Summers, il ne doit pas tomber dans les points de suspension. */
    .jx-sugg li.est-rond small, .jx-sugg li.sans-img small { white-space: normal; overflow: visible; }
}
/* La barre d'une tierlist au téléphone : la flèche seule pour revenir, comme dans les autres jeux, sinon « Fin de la
   tierlist », collé à droite, recouvrait deux des trois icônes (banc d'essai du 23/11/2026). */
@media (max-width: 640px) {
    .tl-filterbar { gap: 8px; }
    .tl-filterbar .tl-valider-barre { padding: 7px 12px; }
}
