/* Lecteur de jeu : chaque jeu applique ses propres couleurs, polices, boutons et panneaux via des variables. */
body.plein-ecran { padding-bottom: 0; background: #111; }
.jeu {
  --j1: #c0392b; --j2: #2c3e50; --jb: #c0392b; --jbt: #fff; --jt: #1b1b1b; --jf: #f4efe3; --jp: #ffffff; --ja: #f1c40f;
  --jft: 'Big Shoulders', sans-serif; --jfx: 'Barlow', sans-serif; --jr: 10px; --jo: 0 4px 0 rgba(0, 0, 0, 0.85);
  position: relative; min-height: 100vh; min-height: 100dvh; color: var(--jt); background: var(--jf); font-family: var(--jfx);
  display: flex; flex-direction: column; overflow-x: hidden;
}
.jeu .fond-jeu { position: fixed; inset: 0; z-index: 0; background-size: cover; background-position: center; pointer-events: none; }
.jeu .fond-jeu::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, var(--voile, 0)); }
.jeu > *:not(.fond-jeu):not(.particules) { position: relative; z-index: 1; }
.jeu h1, .jeu h2, .jeu h3, .jeu .titre-j { font-family: var(--jft); }

/* Styles de jeu : textures et caractère des panneaux. */
.jeu[data-style='nuit'] { --jo: 0 4px 0 rgba(0, 0, 0, 0.9); }
.jeu[data-style='neon'] .j-panneau { box-shadow: 0 0 0 2px var(--j1), 0 4px 0 var(--j1); }
.jeu[data-style='luxe'] .j-panneau { border-color: #c9a646; }
.jeu[data-style='bois'] { background-image: repeating-linear-gradient(92deg, rgba(0, 0, 0, 0.07) 0 3px, transparent 3px 13px); }
.jeu[data-style='pierre'] { background-image: radial-gradient(rgba(0, 0, 0, 0.08) 1px, transparent 1.3px); background-size: 7px 7px; }
.jeu[data-style='papier'] { background-image: radial-gradient(rgba(0, 0, 0, 0.05) 0.7px, transparent 0.8px); background-size: 5px 5px; }
.jeu[data-style='bonbon'] { --jr: 22px; }
.jeu[data-style='minimal'] { --jo: none; }

/* Panneaux du jeu. */
.j-panneau { background: var(--jp); border: 2px solid rgba(0, 0, 0, 0.85); border-radius: var(--jr); box-shadow: var(--jo); }
.jeu[data-panneau='papier'] .j-panneau { background-image: radial-gradient(rgba(0, 0, 0, 0.05) 0.7px, transparent 0.8px); background-size: 5px 5px; }
.jeu[data-panneau='cadre'] .j-panneau { border-width: 4px; border-style: double; }
.jeu[data-panneau='verre'] .j-panneau { background: color-mix(in srgb, var(--jp) 72%, transparent); }
.jeu[data-panneau='contour'] .j-panneau { background: transparent; border-color: var(--j1); }
.jeu[data-ombre-p='aucune'] .j-panneau { box-shadow: none; }
.jeu[data-ombre-p='douce'] .j-panneau { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); }

/* Boutons du jeu : forme, taille, ombre réglées par le créateur. */
.j-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; min-height: 46px; padding: 0.55em 1.3em;
  background: var(--jb); color: var(--jbt); border: 2px solid rgba(0, 0, 0, 0.85); border-radius: 999px; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.85);
  font: 800 1rem/1 var(--jft); letter-spacing: 0.04em; cursor: pointer; text-decoration: none; transition: transform 0.08s ease-out, box-shadow 0.08s;
}
.jeu[data-maj='1'] .j-btn { text-transform: uppercase; }
.j-btn:hover { transform: translateY(-1px); }
.j-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.85); }
.j-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.j-btn.second { background: var(--jp); color: var(--jt); }
.j-btn.petit { min-height: 36px; font-size: 0.85rem; padding: 0.4em 0.9em; }
.jeu[data-bouton='carre'] .j-btn { border-radius: 6px; }
.jeu[data-bouton='biseau'] .j-btn { border-radius: 0; clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 10px 100%, 0 50%); box-shadow: none; }
.jeu[data-bouton='ticket'] .j-btn { border-radius: 8px; -webkit-mask: radial-gradient(circle 7px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 7px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat; mask: radial-gradient(circle 7px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 7px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat; }
.jeu[data-bouton='contour'] .j-btn { background: transparent; color: var(--jb); border-color: var(--jb); }
.jeu[data-bouton='pilule'] .j-btn { border-radius: 999px; padding-inline: 2em; }
.jeu[data-taille-b='s'] .j-btn { min-height: 38px; font-size: 0.88rem; }
.jeu[data-taille-b='l'] .j-btn { min-height: 56px; font-size: 1.2rem; }
.jeu[data-ombre-b='aucune'] .j-btn { box-shadow: none; }
.jeu[data-ombre-b='douce'] .j-btn { box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3); }
.j-btn[data-forme='contour'] { background: transparent; color: var(--jb); border-color: var(--jb); }
.j-btn[data-forme='carre'] { border-radius: 6px; }
.j-btn[data-forme='pilule'], .j-btn[data-forme='pastille'] { border-radius: 999px; }

/* Barre du haut du jeu (hors menu principal). */
.j-haut { display: flex; align-items: center; gap: 10px; padding: 10px clamp(12px, 3vw, 24px); flex-wrap: wrap; }
.j-haut .titre-j { font-size: clamp(22px, 3vw, 30px); text-transform: uppercase; margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.j-monnaies { display: flex; gap: 8px; flex-wrap: wrap; }
.j-monnaie { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 6px; border-radius: 999px; background: var(--jp); border: 2px solid rgba(0, 0, 0, 0.85); font: 800 15px/1 var(--jft); color: var(--jt); }
.j-monnaie .ico { width: 22px; height: 22px; color: var(--c); filter: drop-shadow(0 1.5px 0 rgba(0, 0, 0, 0.6)); }
.j-monnaie.bump { animation: bump 0.35s ease-out; }
@keyframes bump { 40% { transform: scale(1.18); } }

/* Navigation du jeu. */
.j-nav { display: flex; gap: 6px; padding: 8px; justify-content: center; flex-wrap: wrap; }
.j-nav button { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; min-width: 64px; padding: 6px 8px; border: 2px solid transparent; border-radius: 12px; background: transparent; color: var(--jt); cursor: pointer; font: 700 12px/1 var(--jfx); text-transform: uppercase; letter-spacing: 0.04em; }
.j-nav button .ico { width: 24px; height: 24px; }
.j-nav button.actif { background: var(--j1); color: var(--jbt); border-color: rgba(0, 0, 0, 0.85); }
.j-nav button .rond { position: absolute; transform: translate(14px, -6px); min-width: 18px; height: 18px; border-radius: 9px; background: var(--ja); color: #111; border: 1.5px solid #111; font: 800 11px/15px var(--jft); padding: 0 4px; }
.jeu[data-nav-style='onglets'] .j-nav button { flex-direction: row; font-size: 14px; border-radius: 999px; }
.jeu[data-nav-style='pastilles'] .j-nav button { flex-direction: row; background: var(--jp); border-color: rgba(0, 0, 0, 0.85); border-radius: 999px; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.85); }
.jeu[data-nav-style='pastilles'] .j-nav button.actif { background: var(--j1); }
.jeu[data-nav='bas'] .j-nav { position: sticky; bottom: 0; z-index: 20; background: var(--jp); border-top: 2px solid rgba(0, 0, 0, 0.85); padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
.jeu[data-nav='haut'] .j-nav { position: sticky; top: 0; z-index: 20; background: var(--jp); border-bottom: 2px solid rgba(0, 0, 0, 0.85); order: -1; }
.jeu[data-nav='gauche'] { padding-left: 96px; }
.jeu[data-nav='gauche'] .j-nav { position: fixed; left: 0; top: 0; bottom: 0; z-index: 20; flex-direction: column; justify-content: center; background: var(--jp); border-right: 2px solid rgba(0, 0, 0, 0.85); width: 88px; }
@media (max-width: 700px) {
  .jeu[data-nav='gauche'] { padding-left: 0; }
  .jeu[data-nav='gauche'] .j-nav { position: sticky; top: auto; bottom: 0; width: auto; flex-direction: row; border-right: none; border-top: 2px solid rgba(0, 0, 0, 0.85); }
  .j-nav button { min-width: 0; flex: 1; font-size: 10px; }
}
.j-ecran { flex: 1; padding: 6px clamp(12px, 3vw, 28px) 28px; max-width: 1300px; width: 100%; margin: 0 auto; }

/* Pastille « L'Imprimerie » toujours là pour sortir. */
.sortie { position: fixed; z-index: 60; left: 10px; top: 10px; display: flex; gap: 6px; }
.sortie button, .sortie a { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: 999px; border: 2px solid #151515; background: #fbf8f1; color: #151515; font: 800 12px/1 'Barlow Condensed', sans-serif; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; text-decoration: none; box-shadow: 0 2px 0 #151515; }
.sortie .pastille-test { background: #ffd500; }
.jeu .j-haut { padding-left: 150px; }
@media (max-width: 700px) { .jeu .j-haut { padding-left: 12px; padding-top: 52px; } }

/* ─── Menu principal (positions libres, en % d'une scène 16:9) ───────────── */
.menu-scene { position: relative; width: min(100%, calc((100dvh - 90px) * 16 / 9)); aspect-ratio: 16 / 9; margin: 0 auto; container-type: inline-size; }
.menu-el { position: absolute; display: flex; align-items: center; justify-content: center; }
.menu-el > * { max-width: 100%; max-height: 100%; }
.menu-el .titre-j { font-size: calc(var(--t, 3) * 1cqw); line-height: 0.95; text-transform: uppercase; text-align: center; margin: 0; overflow-wrap: anywhere; }
.menu-el .texte-j { font-size: calc(var(--t, 1.6) * 1cqw); line-height: 1.3; }
.menu-el .j-btn { width: 100%; height: 100%; font-size: calc(var(--t, 1.8) * 1cqw); min-height: 0; }
.menu-el .logo-j { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0.4cqw 0 rgba(0, 0, 0, 0.5)); }
.menu-el .image-j { width: 100%; height: 100%; object-fit: cover; border-radius: var(--jr); }
.menu-el .forme-j { width: 100%; height: 100%; border-radius: var(--jr); display: grid; place-items: center; padding: 1cqw; }
.menu-el.anime-flotte > * { animation: flotte 3.2s ease-in-out infinite; }
.menu-el.anime-pulse > * { animation: pulse 2.2s ease-in-out infinite; }
.menu-el.anime-balance > * { animation: balance 2.8s ease-in-out infinite; }
@keyframes flotte { 50% { transform: translateY(-0.8cqw); } }
@keyframes pulse { 50% { transform: scale(1.04); } }
@keyframes balance { 25% { transform: rotate(-2deg); } 75% { transform: rotate(2deg); } }
.menu-el .vitrine-j { position: relative; width: 100%; height: 100%; }
.menu-el .vitrine-j .carte { position: absolute; bottom: 0; width: 30%; left: 50%; }
.menu-el .joueur-j { display: flex; align-items: center; gap: 1cqw; padding: 0.6cqw 1.4cqw 0.6cqw 0.6cqw; font-size: 1.4cqw; width: 100%; }
.menu-el .joueur-j .avatar { width: 4cqw; height: 4cqw; font-size: 2cqw; }
.menu-el .joueur-j b { display: block; font-family: var(--jft); font-size: 1.6cqw; }
.menu-el .xp { height: 0.8cqw; border-radius: 1cqw; background: rgba(0, 0, 0, 0.2); overflow: hidden; margin-top: 0.4cqw; border: 1.5px solid rgba(0, 0, 0, 0.7); }
.menu-el .xp i { display: block; height: 100%; background: var(--ja); }
.menu-el .j-monnaies { justify-content: var(--align, flex-end); width: 100%; }
.menu-el .j-monnaie { font-size: 1.5cqw; }
.menu-el .j-monnaie .ico { width: 2.2cqw; height: 2.2cqw; }
.menu-el .boosters-j, .menu-el .modes-j { display: flex; gap: 1.2cqw; width: 100%; height: 100%; justify-content: center; align-items: center; }
.menu-el .modes-j { flex-direction: column; }
.menu-el .modes-j .j-btn { height: auto; flex: 1; max-height: 6cqw; }
.menu-el .boosters-j .pack { width: min(calc((100% - (var(--n, 1) - 1) * 1.2cqw) / var(--n, 1)), 22cqw); height: auto; max-height: 100%; flex: none; }
.menu-el .boosters-j .pack .nom-pack { font-size: 1.1cqw; }
@media (max-width: 700px) {
  .menu-scene.mobile { aspect-ratio: auto; display: flex; flex-direction: column; gap: 12px; padding: 54px 0 12px; container-type: normal; }
  .menu-scene.mobile .menu-el { position: static; width: 100% !important; height: auto !important; transform: none !important; }
  .menu-scene.mobile .menu-el .titre-j { font-size: clamp(28px, 9vw, 46px); }
  .menu-scene.mobile .menu-el .texte-j { font-size: 16px; }
  .menu-scene.mobile .menu-el .j-btn { font-size: 18px; min-height: 52px; }
  .menu-scene.mobile .menu-el .logo-j { max-height: 30vh; }
  .menu-scene.mobile .menu-el .joueur-j { font-size: 14px; }
  .menu-scene.mobile .menu-el .joueur-j .avatar { width: 40px; height: 40px; font-size: 18px; }
  .menu-scene.mobile .menu-el .joueur-j b { font-size: 16px; }
  .menu-scene.mobile .menu-el .xp { height: 8px; }
  .menu-scene.mobile .menu-el .j-monnaie { font-size: 15px; }
  .menu-scene.mobile .menu-el .j-monnaie .ico { width: 22px; height: 22px; }
  .menu-scene.mobile .menu-el .vitrine-j { height: 220px; }
  .menu-scene.mobile .menu-el .boosters-j { height: 170px; }
  .menu-scene.mobile .menu-el .modes-j .j-btn { max-height: none; }
  .menu-scene.mobile .menu-el .image-j { max-height: 220px; }
}

/* ─── Boosters (sachets, coffres, enveloppes…) ─────────────────────────── */
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px; }
.pack-bloc { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 16px; }
.pack-bloc h3 { margin: 0; font-size: 22px; text-transform: uppercase; }
.pack-bloc p { margin: 0; font-size: 14px; opacity: 0.85; }
.pack { --pc: #c0392b; --pc2: #111; position: relative; width: 150px; aspect-ratio: 0.68; cursor: pointer; transition: transform 0.15s ease-out; }
.pack:hover { transform: translateY(-4px) rotate(-1.5deg); }
.pack .corps-pack { position: absolute; inset: 0; border: 2px solid #111; border-radius: 6px; overflow: hidden; background: linear-gradient(150deg, var(--pc), var(--pc2)); box-shadow: 0 5px 0 #111; }
.pack .corps-pack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pack .nom-pack { position: absolute; left: 6%; right: 6%; bottom: 10%; padding: 4px 6px; background: #fbf8f1; color: #111; border: 2px solid #111; border-radius: 4px; font: 900 13px/1.05 var(--jft); text-transform: uppercase; text-align: center; transform: rotate(-3deg); }
.pack .reflet { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.35) 45%, transparent 55%); }
/* Sachet : bords crantés en haut et en bas. */
.pack[data-anim='sachet'] .corps-pack { border-radius: 2px; -webkit-mask: linear-gradient(#000, #000) center / 100% calc(100% - 12px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 90deg, #0000 91deg) top / 10px 6px repeat-x, conic-gradient(from 135deg at top, #0000, #000 1deg 90deg, #0000 91deg) bottom / 10px 6px repeat-x; mask: linear-gradient(#000, #000) center / 100% calc(100% - 12px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 90deg, #0000 91deg) top / 10px 6px repeat-x, conic-gradient(from 135deg at top, #0000, #000 1deg 90deg, #0000 91deg) bottom / 10px 6px repeat-x; box-shadow: none; }
.pack[data-anim='sachet']::after { content: ''; position: absolute; left: 0; right: 0; top: 14%; border-top: 2px dashed rgba(255, 255, 255, 0.65); }
.pack[data-anim='coffre'] { aspect-ratio: 1.15; }
.pack[data-anim='coffre'] .corps-pack { border-radius: 10px 10px 6px 6px; border-width: 3px; }
.pack[data-anim='coffre'] .corps-pack::before { content: ''; position: absolute; left: 0; right: 0; top: 34%; height: 10%; background: #d4a437; border-top: 2px solid #111; border-bottom: 2px solid #111; z-index: 1; }
.pack[data-anim='coffre'] .corps-pack::after { content: ''; position: absolute; left: 44%; top: 30%; width: 12%; height: 18%; background: #e8c25a; border: 2px solid #111; border-radius: 3px; z-index: 2; }
.pack[data-anim='enveloppe'] { aspect-ratio: 1.45; }
.pack[data-anim='enveloppe'] .corps-pack::before { content: ''; position: absolute; inset: 0 0 45% 0; background: linear-gradient(to bottom right, transparent 49.5%, rgba(0, 0, 0, 0.6) 50%, transparent 51%), linear-gradient(to bottom left, transparent 49.5%, rgba(0, 0, 0, 0.6) 50%, transparent 51%); z-index: 1; }
.pack[data-anim='eventail'] .corps-pack { transform: rotate(-4deg); }
.pack[data-anim='eventail']::before, .pack[data-anim='eventail']::after { content: ''; position: absolute; inset: 0; border: 2px solid #111; border-radius: 6px; background: var(--pc2); z-index: -1; }
.pack[data-anim='eventail']::before { transform: rotate(-12deg) translateX(-10%); }
.pack[data-anim='eventail']::after { transform: rotate(8deg) translateX(8%); }
.pack[data-anim='portail'] { aspect-ratio: 1; }
.pack[data-anim='portail'] .corps-pack { border-radius: 50%; border-width: 4px; background: radial-gradient(circle, var(--pc) 0 30%, var(--pc2) 31% 45%, var(--pc) 46% 60%, var(--pc2) 61%); }
.pack[data-anim='portail'] .nom-pack { bottom: -8%; }
.pack-prix { display: inline-flex; gap: 6px; align-items: center; }
.ticket-pack { position: absolute; top: -8px; right: -8px; z-index: 3; background: var(--ja); color: #111; border: 2px solid #111; border-radius: 999px; padding: 2px 8px; font: 900 13px/1.2 var(--jft); }

/* Scène d'ouverture. */
.ouverture { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; background: rgba(8, 8, 10, 0.9); padding: 16px; overflow: auto; }
.ouverture .pack { width: min(240px, 52vw); cursor: default; }
.ouverture .pack.tremble { animation: tremble 0.55s ease-in-out 2; }
@keyframes tremble { 20% { transform: rotate(-4deg) translateX(-6px); } 40% { transform: rotate(4deg) translateX(6px); } 60% { transform: rotate(-3deg); } 80% { transform: rotate(3deg); } }
.ouverture .pack.ouvert { animation: ouvre 0.45s ease-in forwards; }
@keyframes ouvre { to { transform: translateY(-40px) scale(1.15); opacity: 0; } }
.ouverture .main-tirage { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(8px, 2vw, 18px); max-width: 1100px; }
.ouverture .slot { width: clamp(110px, 17vw, 190px); perspective: 900px; cursor: pointer; }
.ouverture .slot .tourne { position: relative; transition: transform 0.55s cubic-bezier(0.3, 1.4, 0.5, 1); transform-style: preserve-3d; }
.ouverture .slot .face, .ouverture .slot .verso { backface-visibility: hidden; }
.ouverture .slot .face { position: absolute; inset: 0; transform: rotateY(180deg); }
.ouverture .slot.retournee .tourne { transform: rotateY(180deg); }
.ouverture .slot { animation: jaillit 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) backwards; }
@keyframes jaillit { from { transform: translateY(80px) scale(0.6) rotate(var(--r, 0deg)); opacity: 0; } }
.ouverture .slot.rang-2.retournee .tourne, .ouverture .slot.rang-3.retournee .tourne { animation: rebond 0.6s 0.45s ease-out; }
@keyframes rebond { 40% { transform: rotateY(180deg) scale(1.12); } }
.ouverture .anneau { position: absolute; inset: -12%; border-radius: 50%; border: 4px solid var(--rc); opacity: 0; pointer-events: none; }
.ouverture .slot.retournee .anneau { animation: anneau 0.7s 0.35s ease-out; }
@keyframes anneau { 0% { opacity: 0.9; transform: scale(0.6); } 100% { opacity: 0; transform: scale(1.3); } }
.ouverture .etiquette-rarete { margin-top: 8px; text-align: center; font: 900 15px/1 var(--jft); text-transform: uppercase; letter-spacing: 0.05em; color: var(--rc); opacity: 0; transition: opacity 0.2s 0.4s; text-shadow: 0 2px 0 #000; }
.ouverture .slot.retournee .etiquette-rarete { opacity: 1; }
.ouverture .actions-ouv { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.ouverture .titre-ouv { color: #fff; font: 900 clamp(26px, 4vw, 40px)/1 var(--jft); text-transform: uppercase; margin: 0; text-align: center; }
.ouverture .gains { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

/* ─── Collection ───────────────────────────────────────────────────────── */
.coll-outils { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.coll-outils select, .coll-outils input { min-height: 40px; padding: 6px 10px; border-radius: 10px; border: 2px solid rgba(0, 0, 0, 0.85); background: var(--jp); color: var(--jt); }
.coll-barre { height: 14px; border-radius: 8px; background: rgba(0, 0, 0, 0.15); border: 2px solid rgba(0, 0, 0, 0.85); overflow: hidden; flex: 1; min-width: 120px; }
.coll-barre i { display: block; height: 100%; background: var(--j1); }
.grille-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--tc, 150px), 1fr)); gap: 18px 14px; }
.grille-cartes.petite { --tc: 110px; }
.grille-cartes.grande { --tc: 210px; }
.case-carte { position: relative; cursor: pointer; }
.case-carte.manquante .carte { filter: grayscale(1) brightness(0.55); opacity: 0.45; }
.case-carte .num { text-align: center; font: 700 12px/1 var(--jfx); margin-top: 6px; opacity: 0.75; }
.serie-titre { display: flex; align-items: center; gap: 10px; margin: 22px 0 10px; }
.serie-titre h3 { margin: 0; font-size: 24px; text-transform: uppercase; }

.detail-carte { display: grid; grid-template-columns: minmax(200px, 320px) 1fr; gap: 22px; align-items: start; }
@media (max-width: 640px) { .detail-carte { grid-template-columns: 1fr; justify-items: center; } }

/* Missions, succès, objectifs. */
.lignes-j { display: grid; gap: 10px; }
.ligne-j { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; }
.ligne-j .ico.grand { width: 34px; height: 34px; color: var(--j1); }
.ligne-j h4 { margin: 0; font-size: 17px; }
.ligne-j .prog { height: 10px; border-radius: 6px; background: rgba(0, 0, 0, 0.15); overflow: hidden; margin-top: 6px; border: 1.5px solid rgba(0, 0, 0, 0.7); }
.ligne-j .prog i { display: block; height: 100%; background: var(--j1); }
.ligne-j.fini { opacity: 0.6; }
.ligne-j .recomp { display: inline-flex; gap: 4px; align-items: center; font: 800 13px/1 var(--jft); }

/* ─── Partie ───────────────────────────────────────────────────────────── */
.partie { display: grid; grid-template-rows: auto 1fr auto auto; gap: 10px; min-height: calc(100dvh - 140px); }
.camp { display: grid; gap: 8px; padding: 10px; }
.camp-tete { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.camp-tete b { font-family: var(--jft); font-size: 20px; text-transform: uppercase; }
.jauges { display: flex; gap: 8px; flex-wrap: wrap; }
.jauge { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 8px; border-radius: 999px; background: var(--jp); border: 2px solid rgba(0, 0, 0, 0.85); font: 900 18px/1 var(--jft); color: var(--jt); }
.jauge .ico { width: 22px; height: 22px; color: var(--c); }
.jauge.touche { animation: touche 0.4s ease-out; }
@keyframes touche { 30% { transform: translateX(-4px) scale(1.08); } 60% { transform: translateX(3px); } }
.flottant { position: absolute; left: 50%; top: -6px; transform: translateX(-50%); font: 900 20px/1 var(--jft); pointer-events: none; animation: flotteHaut 1.1s ease-out forwards; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.6); white-space: nowrap; }
.flottant.moins { color: #ff4d4d; }
.flottant.plus { color: #45d66b; }
@keyframes flotteHaut { from { opacity: 1; transform: translate(-50%, 0) scale(1.2); } to { opacity: 0; transform: translate(-50%, -38px) scale(1); } }
.terrain { display: flex; gap: 10px; min-height: 120px; padding: 10px; flex-wrap: wrap; justify-content: center; align-items: center; border: 2px dashed rgba(0, 0, 0, 0.35); border-radius: var(--jr); }
.terrain .carte-t { width: clamp(70px, 9vw, 110px); }
.terrain .carte-t.arrive { animation: pose 0.4s cubic-bezier(0.2, 1.4, 0.4, 1); }
@keyframes pose { from { transform: translateY(-40px) scale(1.2) rotate(-6deg); opacity: 0; } }
.terrain-vide { opacity: 0.55; font-size: 14px; }
.main-joueur { display: flex; gap: 8px; justify-content: center; padding: 10px 6px 4px; overflow-x: auto; }
.main-joueur .carte-m { width: clamp(84px, 11vw, 140px); flex: none; transition: transform 0.12s ease-out; cursor: pointer; }
.main-joueur .carte-m.jouable:hover { transform: translateY(-14px); }
.main-joueur .carte-m.jouable .carte-in { box-shadow: 0 0 0 0.9cqw var(--ja), 0 0.9cqw 0 rgba(0, 0, 0, 0.55); }
.main-joueur .carte-m.bloquee { opacity: 0.55; cursor: not-allowed; }
.main-adverse { display: flex; justify-content: center; }
.main-adverse .carte { width: 46px; margin: 0 -10px; }
.centre-partie { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.bandeau-tour { align-self: center; padding: 6px 18px; border-radius: 999px; background: var(--j1); color: var(--jbt); border: 2px solid rgba(0, 0, 0, 0.85); font: 900 18px/1 var(--jft); text-transform: uppercase; }
.bandeau-tour.entre { animation: glisseG 0.5s cubic-bezier(0.2, 1.3, 0.4, 1); }
@keyframes glisseG { from { transform: translateX(-60px); opacity: 0; } }
.journal-partie { max-height: 96px; overflow: hidden; display: grid; gap: 3px; justify-items: center; font-size: 14px; }
.journal-partie div { padding: 2px 10px; border-radius: 99px; background: rgba(0, 0, 0, 0.55); color: #fff; }
.journal-partie div:last-child { font-weight: 700; }
.manche { display: flex; gap: 18px; justify-content: center; align-items: center; }
.manche .carte { width: clamp(100px, 13vw, 150px); }
.manche .vs { font: 900 36px/1 var(--jft); }
.actions-partie { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; padding-bottom: 8px; }
.resultat { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(0, 0, 0, 0.75); padding: 16px; }
.resultat .j-panneau { padding: 26px; text-align: center; display: grid; gap: 14px; justify-items: center; max-width: 460px; width: 100%; animation: monte 0.3s cubic-bezier(0.2, 1.3, 0.4, 1); }
.resultat h2 { margin: 0; font-size: clamp(40px, 8vw, 64px); text-transform: uppercase; line-height: 0.9; }

/* Écran de chargement d'un jeu. */
.charge-jeu { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; align-content: center; gap: 18px; background: var(--jf); background-size: cover; background-position: center; transition: opacity 0.35s; }
.charge-jeu.part { opacity: 0; pointer-events: none; }
.charge-jeu .logo-c { max-width: min(320px, 70vw); max-height: 30vh; object-fit: contain; }
.charge-jeu .nom-c { font: 900 clamp(34px, 7vw, 64px)/0.9 var(--jft); text-transform: uppercase; color: var(--jt); text-align: center; }
.charge-jeu .barre-c { width: min(320px, 70vw); height: 12px; border-radius: 8px; border: 2px solid rgba(0, 0, 0, 0.85); background: var(--jp); overflow: hidden; }
.charge-jeu .barre-c i { display: block; height: 100%; width: 0; background: var(--j1); animation: remplit 0.8s ease-out forwards; }
@keyframes remplit { to { width: 100%; } }
.charge-jeu .points-c { display: flex; gap: 8px; }
.charge-jeu .points-c i { width: 14px; height: 14px; border-radius: 50%; background: var(--j1); border: 2px solid rgba(0, 0, 0, 0.85); animation: saute 0.8s ease-in-out infinite; }
.charge-jeu .points-c i:nth-child(2) { animation-delay: 0.15s; }
.charge-jeu .points-c i:nth-child(3) { animation-delay: 0.3s; }
@keyframes saute { 50% { transform: translateY(-10px); } }
.charge-jeu .cartes-c { display: flex; }
.charge-jeu .cartes-c i { width: 34px; height: 48px; margin: 0 -6px; border-radius: 4px; border: 2px solid rgba(0, 0, 0, 0.85); background: var(--j1); animation: saute 0.9s ease-in-out infinite; }
.charge-jeu .cartes-c i:nth-child(2) { background: var(--j2); animation-delay: 0.15s; }
.charge-jeu .cartes-c i:nth-child(3) { background: var(--ja); animation-delay: 0.3s; }

/* Transitions entre écrans (réglées par le créateur). */
.j-ecran.entree-fondu { animation: tFondu 0.25s ease-out; }
.j-ecran.entree-glisse { animation: tGlisse 0.3s cubic-bezier(0.2, 1.1, 0.4, 1); }
.j-ecran.entree-zoom { animation: tZoom 0.28s cubic-bezier(0.2, 1.2, 0.4, 1); }
.j-ecran.entree-rideau { animation: tRideau 0.4s ease-out; }
@keyframes tFondu { from { opacity: 0; } }
@keyframes tGlisse { from { opacity: 0; transform: translateX(40px); } }
@keyframes tZoom { from { opacity: 0; transform: scale(0.94); } }
@keyframes tRideau { from { clip-path: inset(0 0 100% 0); } }

/* Particules d'ambiance (désactivées en photosensible). */
.particules { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.particules i { position: absolute; bottom: -20px; width: var(--s, 6px); height: var(--s, 6px); border-radius: 50%; background: var(--pcol, rgba(255, 255, 255, 0.6)); animation: monteP var(--d, 12s) linear infinite; animation-delay: var(--dl, 0s); left: var(--x, 50%); }
.particules[data-type='neige'] i { bottom: auto; top: -20px; animation-name: tombeP; }
.particules[data-type='etoiles'] i { animation-name: brilleP; bottom: auto; top: var(--y, 50%); }
.particules[data-type='braises'] i { --pcol: rgba(255, 140, 40, 0.75); border-radius: 2px; }
.particules[data-type='bulles'] i { background: transparent; border: 2px solid rgba(255, 255, 255, 0.55); }
@keyframes monteP { to { transform: translate(30px, -110vh); } }
@keyframes tombeP { to { transform: translate(-30px, 110vh); } }
@keyframes brilleP { 0%, 100% { opacity: 0.15; } 50% { opacity: 0.85; } }
body.photosensible .particules { display: none; }

/* Ouverture une carte à la fois. */
.ouverture .compteur-ouv { color: #fff; font: 900 18px/1 var(--jft); letter-spacing: 0.1em; min-height: 18px; }
.ouverture .zone-une { display: grid; place-items: center; min-height: min(62vh, 470px); }
.ouverture .slot.une { width: min(300px, 62vw, 44vh); animation: jaillit 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) backwards; }
.ouverture .aide-ouv { color: rgba(255, 255, 255, 0.75); margin: 0; font-weight: 600; }
.ouverture .recap-carte { width: clamp(96px, 15vw, 170px); animation: jaillit 0.4s cubic-bezier(0.2, 1.4, 0.4, 1) backwards; }
.ouverture .recap-carte:nth-child(2) { animation-delay: 60ms; }
.ouverture .recap-carte:nth-child(3) { animation-delay: 120ms; }
.ouverture .recap-carte:nth-child(4) { animation-delay: 180ms; }
.ouverture .recap-carte:nth-child(5) { animation-delay: 240ms; }
