/* =========================================================
   Rubrique Jeux — 976-mayotte.yt
   Styles des pages de jeux et des 6 jeux (jeux-mayotte.js).
   Préfixe « jx- » : aucune interférence avec le reste du site.
   ========================================================= */

.rubrique-jeux { --jx: #0A5C63; --jx-nuit: #122E4A; --jx-or: #F8C818; --jx-sable: #FBF8F0; --jx-encre: #16323A; --jx-gris: #51657a; --jx-bord: #dbe4ea; }
.rubrique-jeux * { box-sizing: border-box; }

.jx-boite { max-width: 1000px; margin: 0 auto; padding: 0 16px; }

/* ---------- En-tête de page ---------- */
.jx-entete { background: linear-gradient(160deg, var(--jx-nuit) 0%, var(--jx) 100%); color: #fff; padding: 28px 0 34px; }
.jx-fil { font-size: .85rem; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; color: rgba(255,255,255,.85); }
.jx-fil a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.jx-entete h1 { color: #fff; font-size: clamp(1.6rem, 5.5vw, 2.4rem); line-height: 1.15; margin: 0 0 10px; }
.jx-entete p { color: rgba(255,255,255,.92); max-width: 62ch; margin: 0; line-height: 1.55; text-align: left; }

.jx-corps { background: var(--jx-sable); padding: 26px 0 48px; }
.jx-corps h2 { font-size: 1.15rem; margin: 0 0 10px; color: var(--jx-nuit); }

/* ---------- Cartes de jeux ---------- */
.jx-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.jx-carte { display: flex; flex-direction: column; gap: 4px; padding: 18px; background: #fff; border: 1px solid var(--jx-bord); border-top: 5px solid var(--jx); border-radius: 14px; color: var(--jx-encre); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.jx-carte:hover, .jx-carte:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(18,46,74,.13); outline: none; }
.jx-carte-ic { font-size: 2rem; line-height: 1; }
.jx-carte-ti { font-weight: 800; font-size: 1.1rem; color: var(--jx-nuit); }
.jx-carte-de { color: var(--jx-gris); font-size: .93rem; line-height: 1.45; flex: 1; }
.jx-carte-go { margin-top: 8px; font-weight: 700; color: var(--jx); }
.jx-grille-mini { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.jx-grille-mini .jx-carte { padding: 12px; flex-direction: row; align-items: center; gap: 10px; }
.jx-grille-mini .jx-carte-ic { font-size: 1.5rem; }
.jx-grille-mini .jx-carte-ti { font-size: .95rem; }

.jx-note, .jx-bloc { background: #fff; border: 1px solid var(--jx-bord); border-radius: 14px; padding: 16px 18px; }
.jx-note { margin-top: 22px; }
.jx-note ul, .jx-bloc ol { margin: 0; padding-left: 20px; line-height: 1.6; }
.jx-note li, .jx-bloc li { margin: 4px 0; }
.jx-infos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 20px; }
.jx-savoir { border-left: 5px solid var(--jx-or); }
.jx-savoir p { margin: 0 0 8px; line-height: 1.55; text-align: left; }
.jx-savoir a { color: var(--jx); font-weight: 700; }
.jx-autres { margin-top: 24px; }

/* ---------- Zone de jeu ---------- */
.jx-zone { background: #fff; border: 1px solid var(--jx-bord); border-radius: 18px; padding: 16px; box-shadow: 0 8px 26px rgba(18,46,74,.08); min-height: 240px; }
.jx-noscript { text-align: center; padding: 40px 10px; color: var(--jx-gris); }

.jx-barre { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.jx-pastilles { display: flex; flex-wrap: wrap; gap: 8px; }
.jx-pastille { background: #eef4f6; color: var(--jx-nuit); border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: .92rem; white-space: nowrap; }
.jx-pastille b { color: var(--jx); }

.jx-btn { appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; border-radius: 999px; padding: 11px 20px; background: var(--jx); color: #fff; min-height: 44px; }
.jx-btn:hover, .jx-btn:focus-visible { filter: brightness(1.12); outline: 3px solid rgba(10,92,99,.3); outline-offset: 2px; }
.jx-btn.jx-clair { background: #eef4f6; color: var(--jx-nuit); }
.jx-btn[disabled] { opacity: .5; cursor: default; }
.jx-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 14px; }

/* Panneau de démarrage / fin de partie, posé sur le plateau */
.jx-plateau { position: relative; margin: 0 auto; }
.jx-voile { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; text-align: center; background: rgba(18,46,74,.86); color: #fff; border-radius: 12px; }
.jx-voile[hidden] { display: none; }
.jx-voile strong { font-size: 1.35rem; }
.jx-voile p { margin: 0; color: #fff; text-align: center; }
.jx-voile .jx-btn { background: var(--jx-or); color: var(--jx-nuit); }

.jx-message { text-align: center; font-weight: 700; color: var(--jx-nuit); min-height: 1.6em; margin: 10px 0 0; }

/* ---------- 1. Quiz ---------- */
.jx-q-progres { height: 8px; background: #e6edf1; border-radius: 99px; overflow: hidden; margin-bottom: 14px; }
.jx-q-progres i { display: block; height: 100%; width: 0; background: var(--jx); transition: width .3s; }
.jx-q-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.jx-q-num { font-weight: 800; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; color: var(--jx); }
.jx-q-chrono { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 150px; max-width: 260px; }
.jx-q-chrono .piste { flex: 1; height: 10px; border-radius: 99px; background: #e6edf1; overflow: hidden; }
.jx-q-chrono .piste i { display: block; height: 100%; width: 100%; border-radius: 99px; background: linear-gradient(90deg, #1FA9A0, #0A5C63); transition: width .1s linear; }
.jx-q-chrono b { min-width: 3.2ch; text-align: right; font-variant-numeric: tabular-nums; color: var(--jx-nuit); }
.jx-q-chrono.presse .piste i { background: #b23a48; }
.jx-q-chrono.presse b { color: #b23a48; animation: jxPouls .5s ease-in-out infinite alternate; }
@keyframes jxPouls { to { transform: scale(1.18); } }
.jx-q-question { font-size: 1.22rem; font-weight: 800; color: var(--jx-nuit); line-height: 1.35; margin: 0 0 14px; animation: jxEntre .25s ease-out; }
@keyframes jxEntre { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.jx-q-choix button { display: flex; align-items: center; gap: 12px; transition: transform .1s, border-color .15s, background .15s; }
.jx-q-choix button:active:not([disabled]) { transform: scale(.98); }
.jx-q-choix .lettre { flex: none; width: 32px; height: 32px; border-radius: 50%; background: #eef4f6; color: var(--jx-nuit); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.jx-q-choix button.bon .lettre { background: #2f8f4e; color: #fff; }
.jx-q-choix button.faux .lettre { background: #b23a48; color: #fff; }
.jx-q-choix button.faux { animation: jxSecoue .32s; }
.jx-q-expli.bon { background: #e3f6ea; border-left: 5px solid #2f8f4e; }
.jx-q-expli.faux { background: #fdf0f1; border-left: 5px solid #b23a48; }
.jx-q-picto { font-size: 3rem; line-height: 1.1; animation: jxPop .5s ease-out; }
.rubrique-jeux .jx-q-titre { font-size: 1.35rem; font-weight: 800; color: var(--jx-nuit); margin: 6px 0 4px; }
.rubrique-jeux .jx-q-moyenne { font-weight: 700; color: var(--jx-gris); }
.rubrique-jeux .jx-q-retenir { font-weight: 800; color: var(--jx-nuit); margin-top: 16px; text-transform: uppercase; font-size: .85rem; letter-spacing: .04em; }
.jx-btn.jx-son { padding: 8px 14px; min-height: 38px; font-size: .9rem; }
.jx-q-choix { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.jx-q-choix button { appearance: none; font: inherit; text-align: left; cursor: pointer; background: #fff; color: var(--jx-encre); border: 2px solid var(--jx-bord); border-radius: 12px; padding: 13px 14px; min-height: 52px; font-weight: 600; }
.jx-q-choix button:hover:not([disabled]), .jx-q-choix button:focus-visible { border-color: var(--jx); outline: none; }
.jx-q-choix button.bon { background: #e3f6ea; border-color: #2f8f4e; color: #14532d; }
.jx-q-choix button.faux { background: #fde8ea; border-color: #b23a48; color: #7f1d1d; }
.jx-q-expli { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #f1f6f8; line-height: 1.5; }
.jx-q-expli[hidden] { display: none; }
.jx-q-expli strong { display: block; margin-bottom: 2px; }
.jx-fin { text-align: center; padding: 18px 6px; }
.jx-fin .jx-fin-score { font-size: 2.6rem; font-weight: 800; color: var(--jx); line-height: 1; }
.jx-fin p { text-align: center; margin: 8px 0; }
.jx-fin ul { text-align: left; max-width: 620px; margin: 14px auto 0; padding-left: 20px; line-height: 1.55; }

/* ---------- 2. Mémo ---------- */
.jx-memo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 460px; margin: 0 auto; }
.jx-memo button { appearance: none; border: 0; padding: 0; cursor: pointer; aspect-ratio: 1; border-radius: 12px; background: transparent; perspective: 600px; font: inherit; }
.jx-memo .face { display: block; position: relative; width: 100%; height: 100%; transition: transform .3s; transform-style: preserve-3d; }
.jx-memo .recto, .jx-memo .verso { position: absolute; inset: 0; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.jx-memo .recto { background: linear-gradient(135deg, var(--jx-nuit), var(--jx)); color: var(--jx-or); font-size: 1.6rem; font-weight: 800; }
.jx-memo .verso { background: #fff; border: 2px solid var(--jx-bord); transform: rotateY(180deg); }
.jx-memo .verso .em { font-size: clamp(1.6rem, 8vw, 2.4rem); line-height: 1.1; }
.jx-memo .verso .nom { font-size: clamp(.6rem, 2.6vw, .78rem); font-weight: 700; color: var(--jx-nuit); margin-top: 2px; text-align: center; line-height: 1.1; padding: 0 2px; }
.jx-memo button.ouverte .face, .jx-memo button.trouvee .face { transform: rotateY(180deg); }
.jx-memo button.trouvee .verso { background: #e3f6ea; border-color: #2f8f4e; }
.jx-memo button:focus-visible .recto { outline: 3px solid var(--jx-or); }

/* ---------- 3. Trésors du lagon ---------- */
.jx-tresors { --n: 7; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 4px; width: 100%; max-width: 440px; margin: 0 auto; padding: 6px; background: linear-gradient(160deg, #0e7490, #0A5C63); border-radius: 14px; touch-action: manipulation; }
.jx-tresors button { appearance: none; border: 0; padding: 0; cursor: pointer; aspect-ratio: 1; border-radius: 9px; background: rgba(255,255,255,.9); font-size: clamp(1.2rem, 6.4vw, 1.9rem); line-height: 1; display: flex; align-items: center; justify-content: center; transition: transform .12s, background .12s, opacity .18s; }
.jx-tresors button.choisie { background: var(--jx-or); transform: scale(1.08); }
.jx-tresors button.vide { opacity: 0; }
.jx-tresors button.eclat { background: #fff7c2; transform: scale(.8); }
.jx-tresors button:focus-visible { outline: 3px solid var(--jx-or); }

/* ---------- 4. La récolte ---------- */
.jx-recolte { position: relative; width: 100%; max-width: 520px; height: min(70vh, 480px); margin: 0 auto; overflow: hidden; border-radius: 12px; background: linear-gradient(180deg, #bfe8f5 0%, #dff3e4 70%, #8fc27a 70%, #6fa95c 100%); touch-action: none; user-select: none; -webkit-user-select: none; }
.jx-recolte .fruit { position: absolute; top: 0; left: 0; width: 56px; height: 56px; margin: 0; padding: 0; border: 0; background: transparent; font-size: 40px; line-height: 56px; text-align: center; cursor: pointer; will-change: transform; }
.jx-recolte .fruit.pris { transition: opacity .2s, scale .2s; opacity: 0; scale: 1.6; pointer-events: none; }
.jx-recolte .palmier { position: absolute; bottom: 26%; font-size: 64px; opacity: .55; pointer-events: none; }

/* ---------- Plateau dessiné et flèches (labyrinthe de la tortue) ---------- */
.jx-banc-cadre { width: 100%; max-width: 420px; margin: 0 auto; }
.jx-banc-cadre canvas { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 12px; background: #0b3d5c; touch-action: none; }
.jx-fleches { display: grid; grid-template-columns: repeat(3, 60px); grid-template-rows: repeat(2, 56px); gap: 6px; justify-content: center; margin-top: 12px; }
.jx-fleches button { appearance: none; border: 0; border-radius: 12px; background: var(--jx-nuit); color: #fff; font-size: 1.4rem; cursor: pointer; touch-action: manipulation; }
.jx-fleches button:active { background: var(--jx); }
.jx-fleches .h { grid-column: 2; grid-row: 1; }
.jx-fleches .g { grid-column: 1; grid-row: 2; }
.jx-fleches .b { grid-column: 2; grid-row: 2; }
.jx-fleches .d { grid-column: 3; grid-row: 2; }

@media (max-width: 520px) {
  .jx-zone { padding: 12px; border-radius: 14px; }
  .jx-pastille { font-size: .85rem; padding: 5px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .jx-q-question, .jx-q-picto, .jx-q-chrono.presse b, .jx-q-choix button.faux { animation: none; }
  .jx-carte, .jx-memo .face, .jx-tresors button, .jx-q-progres i { transition: none; }
}

/* Le site justifie les paragraphes : dans les jeux, le texte reste aligné à gauche */
.rubrique-jeux .jx-q-question, .rubrique-jeux .jx-q-expli, .rubrique-jeux .jx-bloc li, .rubrique-jeux .jx-note li, .rubrique-jeux .jx-carte-de { text-align: left; }
.rubrique-jeux .jx-message, .rubrique-jeux .jx-fin p, .rubrique-jeux .jx-voile p { text-align: center; }

/* ---------- 7. Les crabes de la plage (démineur) ---------- */
.jx-crabes { --n: 8; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 3px; width: 100%; max-width: 420px; margin: 0 auto; padding: 6px; background: #c9a86a; border-radius: 12px; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.jx-crabes button { appearance: none; border: 0; padding: 0; cursor: pointer; aspect-ratio: 1; border-radius: 6px; background: #f3dfae; box-shadow: inset 0 -3px 0 rgba(122,92,46,.28); font: inherit; font-weight: 800; font-size: clamp(1rem, 5vw, 1.35rem); line-height: 1; display: flex; align-items: center; justify-content: center; -webkit-touch-callout: none; }
.jx-crabes button.ouverte { background: #fffaf0; box-shadow: none; cursor: default; }
.jx-crabes button.crabe { background: #ffd9c7; box-shadow: none; }
.jx-crabes button.pince { background: #f28b6b; }
.jx-crabes button:focus-visible { outline: 3px solid var(--jx-nuit); }
.jx-crabes .n1 { color: #2563a8; } .jx-crabes .n2 { color: #2f8f4e; } .jx-crabes .n3 { color: #b23a48; } .jx-crabes .n4 { color: #7048c8; }
.jx-crabes .n5 { color: #8a4b12; } .jx-crabes .n6 { color: #0f766e; } .jx-crabes .n7 { color: #16323A; } .jx-crabes .n8 { color: #51657a; }
.jx-btn.jx-actif { background: var(--jx-or); color: var(--jx-nuit); }

/* ---------- 9. Le chemin de la tortue ---------- */
.jx-page-tortue .jx-banc-cadre canvas { background: #f6e7c1; }

/* ---------- 12. Le voyage du maki ---------- */
.jx-maki-plateau { max-width: 470px; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 28px rgba(18,46,74,.22); }
.jx-maki-carte { display: block; width: 100%; height: auto; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.jx-maki-vagues path { fill: none; stroke: rgba(255,255,255,.34); stroke-width: 3; stroke-linecap: round; animation: jxVague 4.2s ease-in-out infinite; }
@keyframes jxVague { 0%, 100% { transform: translateX(-9px); opacity: .25; } 50% { transform: translateX(9px); opacity: .8; } }
.jx-maki-lagon { fill: none; stroke: rgba(160,235,225,.5); stroke-width: 26; stroke-linejoin: round; }
.jx-maki-ile { stroke: #f1e2b3; stroke-width: 5; stroke-linejoin: round; filter: drop-shadow(0 6px 5px rgba(8,40,60,.45)); }
.jx-maki-decor circle { fill: #2563a8; opacity: .45; }
.jx-maki-decor circle.commune { fill: #c2410c; }
.jx-maki-trace { fill: none; stroke: rgba(255,255,255,.8); stroke-width: 5; stroke-dasharray: 3 13; stroke-linecap: round; }
.jx-maki-sillage { fill: none; stroke: #F8C818; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }
/* Couleur du point : orange = chef-lieu de commune, bleu = village */
.jx-maki-village { --type: #2563a8; }
.jx-maki-village.commune { --type: #c2410c; }
.jx-maki-village .point { fill: #fff; stroke: var(--type); stroke-width: 6; }
.jx-maki-village .halo { fill: #F8C818; opacity: 0; }
.jx-maki-village .num { font: 800 23px system-ui, sans-serif; fill: var(--type); pointer-events: none; }
.jx-maki-village .nom { font: 800 31px system-ui, sans-serif; fill: var(--type); pointer-events: none; }
.jx-maki-village .nom.fond { stroke: #fff; stroke-width: 9; stroke-linejoin: round; fill: #fff; }
.jx-maki-village.cible { cursor: pointer; }
.jx-maki-village.cible .point { fill: #F8C818; }
.jx-maki-village.cible .num { fill: #122E4A; }
.jx-maki-village.cible .halo { animation: jxHalo 1.3s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes jxHalo { 0% { opacity: .75; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.9); } }
.jx-maki-village.fait .point { fill: #2f8f4e; stroke: #fff; }
.jx-maki-village.fait .num { fill: #fff; }
.jx-maki-perso { pointer-events: none; filter: drop-shadow(0 5px 4px rgba(0,0,0,.4)); }

.jx-maki-fond { position: fixed; inset: 0; z-index: 9990; display: flex; align-items: center; justify-content: center; padding: 12px; background: rgba(8,28,44,.72); overflow: hidden; }
.jx-maki-fond[hidden] { display: none; }
html.jx-fige, html.jx-fige body { overflow: hidden; }
.jx-maki-panneau { position: relative; width: 100%; max-width: 520px; max-height: 100%; overflow-y: auto; padding: 18px; border-radius: 18px; background: #FBF8F0; color: #16323A; box-shadow: 0 20px 50px rgba(0,0,0,.45); animation: jxMonte .28s ease-out; --jx: #0A5C63; --jx-nuit: #122E4A; --jx-or: #F8C818; --jx-encre: #16323A; --jx-gris: #51657a; --jx-bord: #dbe4ea; font-family: inherit; -webkit-overflow-scrolling: touch; }
.jx-maki-panneau * { box-sizing: border-box; }
@keyframes jxMonte { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.jx-maki-panneau.secoue { animation: jxSecoue .32s; }
@keyframes jxSecoue { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.jx-maki-tete { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-right: 46px; position: relative; min-height: 40px; }
.jx-maki-tete .type { font-weight: 700; font-size: .78rem; color: #fff; background: #2563a8; border-radius: 999px; padding: 4px 10px; }
.jx-maki-tete .type.commune { background: #c2410c; }
.jx-maki-croix { position: absolute; top: -4px; right: -6px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #e8eef1; color: #122E4A; font: 800 1.15rem/1 system-ui, sans-serif; cursor: pointer; }
.jx-maki-croix:hover, .jx-maki-croix:focus-visible { background: #b23a48; color: #fff; outline: none; }
.jx-maki-legende { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin: 10px 0 0; font-size: .85rem; font-weight: 700; color: var(--jx-gris); }
.jx-maki-legende span::before { content: ""; display: inline-block; width: 13px; height: 13px; border-radius: 50%; margin-right: 6px; vertical-align: -2px; background: #fff; border: 3px solid #2563a8; box-sizing: border-box; }
.jx-maki-legende .commune::before { border-color: #c2410c; }
.jx-maki-legende .fait::before { background: #2f8f4e; border-color: #2f8f4e; }
.jx-maki-tete .lieu { font-weight: 800; font-size: 1.15rem; color: var(--jx-nuit); }
.jx-maki-tete .etape { font-weight: 700; font-size: .85rem; color: #fff; background: var(--jx); border-radius: 999px; padding: 4px 11px; }
.jx-maki-jauge { display: flex; gap: 6px; margin: 10px 0 14px; }
.jx-maki-jauge i { flex: 1; height: 7px; border-radius: 99px; background: #dbe4ea; }
.jx-maki-jauge i.ok { background: #2f8f4e; } .jx-maki-jauge i.ici { background: var(--jx-or); }
.jx-maki-panneau .jx-maki-texte { font-size: 1.13rem; font-weight: 700; line-height: 1.45; color: var(--jx-encre); margin: 0 0 14px; text-align: left; }
.jx-maki-choix { display: grid; gap: 9px; }
.jx-maki-choix button { appearance: none; font: inherit; font-weight: 700; text-align: left; cursor: pointer; background: #fff; color: var(--jx-encre); border: 2px solid var(--jx-bord); border-radius: 12px; padding: 13px 14px; min-height: 50px; transition: transform .1s; }
.jx-maki-choix button:hover:not([disabled]), .jx-maki-choix button:focus-visible { border-color: var(--jx); outline: none; }
.jx-maki-choix button:active:not([disabled]) { transform: scale(.98); }
.jx-maki-choix button.bon { background: #e3f6ea; border-color: #2f8f4e; color: #14532d; }
.jx-maki-choix button.faux { background: #fde8ea; border-color: #b23a48; color: #7f1d1d; text-decoration: line-through; }
.jx-maki-panneau .jx-maki-retour { min-height: 1.4em; margin: 8px 0 0; font-weight: 700; color: #b23a48; text-align: left; }
.jx-maki-expli { margin-top: 6px; padding: 12px 14px; border-radius: 12px; background: #fff7d6; border-left: 5px solid var(--jx-or); }
.jx-maki-expli[hidden] { display: none; }
.jx-maki-expli strong { display: block; margin-bottom: 3px; color: var(--jx-nuit); }
.jx-maki-panneau .jx-maki-expli p { margin: 0; line-height: 1.5; text-align: left; }
.jx-maki-bilan { text-align: center; padding: 14px 8px 6px; }
.jx-maki-bilan .etoiles { font-size: 2.6rem; line-height: 1.1; animation: jxPop .5s ease-out; }
@keyframes jxPop { 0% { transform: scale(.3); opacity: 0; } 70% { transform: scale(1.15); } 100% { transform: none; opacity: 1; } }
.jx-maki-bilan strong { display: block; font-size: 1.3rem; color: var(--jx-nuit); margin: 8px 0 4px; }
.jx-maki-panneau .jx-maki-bilan p { margin: 0; text-align: center; color: var(--jx-gris); }
.jx-maki-appris { text-align: left; background: #fff; border: 1px solid var(--jx-bord); border-radius: 12px; padding: 12px 14px; margin-top: 14px; }
.jx-maki-appris h3 { margin: 0 0 6px; font-size: 1rem; color: var(--jx-nuit); }
.jx-maki-appris ul { margin: 0; padding-left: 18px; font-size: .93rem; line-height: 1.5; }
.jx-maki-appris li { margin: 5px 0; }
.jx-confetti { position: absolute; top: -14px; width: 9px; height: 14px; z-index: 6; border-radius: 2px; pointer-events: none; animation: jxConfetti linear forwards; }
@keyframes jxConfetti { to { transform: translateY(105vh) rotate(540deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .jx-maki-vagues path, .jx-maki-village.cible .halo, .jx-maki-panneau, .jx-maki-bilan .etoiles { animation: none; }
  .jx-maki-village.cible .halo { opacity: .5; }
}
