:root {
  --fond: #0b1424; --fond2: #13213a; --carte: #182a47; --ligne: #263d63;
  --texte: #eef2f8; --doux: #9fb0c8; --or: #f5c542; --vert: #2ecc71; --rouge: #ff5d5d;
  --commun: #9aa7b8; --rare: #3d8bfd; --epique: #b05cff; --legendaire: #f5b301;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--fond); color: var(--texte);
  font: 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body { padding: calc(56px + env(safe-area-inset-top)) 0 calc(70px + env(safe-area-inset-bottom)); min-height: 100vh; }
button { font: inherit; color: inherit; cursor: pointer; }

.haut { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; gap: 8px;
  padding: calc(8px + env(safe-area-inset-top)) 12px 8px; background: rgba(11, 20, 36, .95);
  border-bottom: 1px solid var(--ligne); backdrop-filter: blur(6px); }
.logo { flex: 1; font-size: 15px; white-space: nowrap; }
.logo b { color: var(--or); }
.banque { font-weight: 700; color: var(--or); background: var(--pill); padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
button.banque { position: relative; border: 0; }
button.banque::after { content: ''; position: absolute; inset: -8px 0; }   /* plus facile à toucher : toute la hauteur du bandeau */
button.banque:active { filter: brightness(1.3); }
.horloge { background: var(--pill); border: 1px solid var(--ligne); border-radius: 99px; padding: 4px 9px; font-size: 13px; }

.bas { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; display: flex; background: rgba(11, 20, 36, .97);
  border-top: 1px solid var(--ligne); padding-bottom: env(safe-area-inset-bottom); }
.bas button { flex: 1; background: none; border: 0; padding: 7px 0 8px; font-size: 11px; color: var(--doux); display: flex; flex-direction: column; align-items: center; gap: 1px; }
.bas button span { font-size: 21px; filter: grayscale(.7); }
.bas button.actif { color: var(--or); }
.bas button.actif span { filter: none; }

main { padding: 12px 12px 20px; max-width: 760px; margin: 0 auto; }
h2 { font-size: 19px; margin: 6px 0 10px; }
h3 { font-size: 15px; margin: 16px 0 8px; color: var(--doux); text-transform: uppercase; letter-spacing: .06em; }
/* v20.66 : écran de chargement (div.chargement, .chg-*) : seulement dans le <style> d'index.html ; .logo-charge = écran du choix de la langue */
.logo-charge { display: block; width: 160px; height: 160px; margin: 0 auto 14px; border-radius: 22px; box-shadow: 0 6px 24px rgba(0,0,0,.45); }
.sous { color: var(--doux); font-size: 13px; }
.bloc { background: var(--fond2); border: 1px solid var(--ligne); border-radius: 14px; padding: 12px; margin-bottom: 12px; }
.ligne { display: flex; align-items: center; gap: 8px; }
.ligne > .esp { flex: 1; }
.btn { background: linear-gradient(180deg, #ffd65a, #e0a91c); color: #1b1300; border: 0; border-radius: 10px; padding: 9px 14px; font-weight: 700; }
.btn.sec { background: var(--sec); color: var(--texte); border: 1px solid var(--ligne); font-weight: 600; }
.btn.petit { padding: 5px 10px; font-size: 13px; }
.btn:disabled { opacity: .45; cursor: default; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: var(--sec); color: var(--doux); }
.badge.or { background: var(--orfond); color: var(--or); }
.badge.vert { background: #123d27; color: var(--vert); }
.badge.rouge { background: #4a1c1c; color: var(--rouge); }
.compte { font-variant-numeric: tabular-nums; font-weight: 700; }
.vide { color: var(--doux); text-align: center; padding: 18px; }

/* ---------- Cartes ---------- */
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 10px; }
.carte { position: relative; border-radius: 16px; padding: 3px; background: var(--r, var(--commun)); cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35); transition: transform .15s; }
.carte:active { transform: scale(.97); }
.carte.rare, .lv.rare { --r: linear-gradient(145deg, #7fb6ff, #2a62d9 55%, #9cc6ff); }
.carte.commun, .lv.commun { --r: linear-gradient(145deg, #c9d2dc, #6d7a8a 55%, #b5c0cc); }
.carte.epique, .lv.epique { --r: linear-gradient(145deg, #e0a8ff, #7a2fd1 55%, #d79bff); }
.carte.legendaire, .lv.legendaire { --r: linear-gradient(145deg, #fff0a8, #e09a00 45%, #fff3b8 60%, #c47f00); }
.carte.legendaire::after { content: ""; position: absolute; inset: 0; border-radius: 16px; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 45%, transparent 60%);
  background-size: 250% 100%; animation: brille 3.2s linear infinite; mix-blend-mode: overlay; }
@keyframes brille { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.carte .in { background: linear-gradient(180deg, #1b2f52, #0f1c33); border-radius: 13px; padding: 8px 9px 9px; height: 100%; }
.carte .tete { display: flex; justify-content: space-between; align-items: flex-start; }
.carte .note { font-size: 26px; font-weight: 800; line-height: 1; }
.carte .note small { display: block; font-size: 9px; font-weight: 700; letter-spacing: .08em; color: var(--doux); margin-top: 2px; }
.carte .rar { font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); }
.carte.rare .rar { color: #8fc0ff; } .carte.epique .rar { color: #d9a6ff; } .carte.legendaire .rar { color: #f5c542; }   /* v20.06 : or fixe (var(--or) devenait bleu en hiver, comme le rare) */
.carte .niv { font-size: 10px; color: var(--doux); text-align: right; margin-top: 3px; }
.carte .casaque { display: block; width: 66px; height: 66px; margin: 2px auto 0; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .5)); }
.carte .nom { text-align: center; font-weight: 800; font-size: 14px; margin: 3px 0 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.carte .nom .sexe { font-weight: 900; font-size: 17px; line-height: 1; }
.sexe.males { color: #6cb6ff; }
.sexe.femelles { color: #ff8fc7; }
.sexe.hongres { color: var(--doux); }
.carte .nom .sexe.hongres { font-size: 12px; }
.carte .meta { text-align: center; font-size: 10.5px; color: var(--doux); margin-bottom: 6px; }
.carte .stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2px 4px; font-size: 11px; }
.carte .stats span { letter-spacing: -.3px; }
/* registre 176 : une stat peut avoir 3 chiffres (plus de plafond à 99) : un petit écart garanti entre le nom et le chiffre */
.carte .stats b { font-size: 13px; letter-spacing: -.3px; }
.carte .stats div { display: flex; justify-content: space-between; gap: 2px; min-width: 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.carte .stats span { color: var(--doux); }
.carte .etat { margin-top: 7px; font-size: 10.5px; }
.jauge { height: 5px; border-radius: 3px; background: #0a1322; overflow: hidden; margin-top: 3px; }
.jauge i { display: block; height: 100%; background: linear-gradient(90deg, var(--vert), #f1c40f, var(--rouge)); }
.jauge.xp i { background: linear-gradient(90deg, #4aa3ff, #b05cff); }
.jauge.las i { background: var(--rouge); }   /* v20.31 : trop fatigué pour partir (au-dessus de FATIGUE_MAX) */
.carte.repos .in { filter: saturate(.55) brightness(.8); }
.carte .ruban { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); white-space: nowrap; text-align: center;
  background: var(--fond); border: 1px solid var(--or); color: var(--or); border-radius: 99px; font-size: 10.5px; font-weight: 700; padding: 1px 9px; z-index: 2; }
.grille { padding-top: 6px; }

/* ---------- Feuille (détail) ---------- */
.feuille { position: fixed; inset: 0; z-index: 40; background: rgba(3, 7, 15, .7); display: flex; align-items: flex-end; justify-content: center; }
.feuille[hidden] { display: none; }
.feuille .panneau { width: 100%; max-width: 640px; max-height: 92vh; overflow-y: auto; background: var(--fond2);
  border-radius: 20px 20px 0 0; border: 1px solid var(--ligne); padding: 14px 14px calc(20px + env(safe-area-inset-bottom)); animation: monte .2s ease-out; }
@keyframes monte { from { transform: translateY(40px); opacity: 0; } }
/* grand écran (PC, tablette) : fenêtre au centre. Téléphone : en bas, à portée du pouce. Guide affiché en bas : position inchangée */
@media (min-width: 700px) and (min-height: 600px) {
  body:not(.tuto-bas) .feuille { align-items: center; }
  body:not(.tuto-bas) .feuille .panneau { border-radius: 20px; }
}
.feuille .fermer { float: right; background: var(--sec); border: 0; border-radius: 99px; width: 32px; height: 32px; font-size: 16px; }
.detail { display: grid; grid-template-columns: 170px 1fr; gap: 14px; align-items: start; }
@media (max-width: 460px) { .detail { grid-template-columns: 1fr; } .detail .carte { max-width: 190px; margin: 0 auto; } }
.radar text { fill: var(--doux); font-size: 11px; font-weight: 700; }
.infos { font-size: 13px; }
.infos div { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid rgba(255, 255, 255, .06); padding: 4px 0; }
.infos span { color: var(--doux); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ---------- Courses ---------- */
.course .titre { font-weight: 800; font-size: 16px; }
.partants { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.partants td { padding: 5px 4px; border-top: 1px solid rgba(255, 255, 255, .06); vertical-align: middle; }
.partants .moi td { background: rgba(245, 197, 66, .09); }
.mini { width: 26px; height: 26px; vertical-align: middle; }
.pastille { display: inline-block; min-width: 26px; text-align: center; font-weight: 800; border-radius: 6px; padding: 1px 4px; font-size: 12px; }
.pastille.commun { background: #46505d; } .pastille.rare { background: #1f4fb0; } .pastille.epique { background: #6420b0; } .pastille.legendaire { background: #8f5c00; }   /* v20.06 : #a86c00 → #8f5c00, texte clair à 5:1 (AA) */
select { background: var(--fondi); color: var(--texte); border: 1px solid var(--ligne); border-radius: 8px; padding: 7px; font: inherit; max-width: 100%; }
input[type=number] { background: var(--fondi); color: var(--texte); border: 1px solid var(--ligne); border-radius: 8px; padding: 8px; font: inherit; width: 110px; }
.choix { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 10px; background: var(--fondi); margin-top: 6px; }
.choix .raison { font-size: 11.5px; color: var(--rouge); }
/* carte « Ton crack » (registre : carte Ton crack) : couleurs par variables seulement */
.choix.bloque > .tete-cheval, .choix.bloque > .esp > b, .choix.bloque .pastille, .choix.bloque .adapt { opacity: .6; }
.crack { margin-top: 8px; padding: 8px; border-radius: 12px; border: 1px solid var(--or); background: var(--orfond); }
.crack.bloque { border-style: dashed; border-color: var(--ligne); background: var(--fondi); }
.crack-titre { font-weight: 700; color: var(--or); display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.crack.bloque .crack-titre { color: var(--texte); }
.crack .choix { margin-top: 6px; }
.crack .choix.crack-ligne { background: var(--fondi); }
.crack-remede { font-size: 13px; margin-top: 6px; }
.crack > .raison { font-size: 12px; color: var(--rouge); }
.crack-remede .ico-img { width: 20px; height: 20px; vertical-align: middle; }
.crack .actions .btn { min-height: 36px; }

/* ---------- Boutique ---------- */
.objets { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.objet { background: var(--fond2); border: 1px solid var(--ligne); border-radius: 14px; padding: 12px; text-align: center; }
.objet .ico { font-size: 34px; }
.objet p { font-size: 12px; color: var(--doux); min-height: 50px; margin: 4px 0 8px; }

.objet.eqv.rare { border-color: var(--rare); } .objet.eqv.epique { border-color: var(--epique); } .objet.eqv.legendaire { border-color: var(--legendaire); box-shadow: 0 0 12px rgba(245, 179, 1, .25); }
.carte .stats b.plus { color: var(--vert); } .carte .stats b.moins { color: var(--rouge); } .carte .stats [data-stat] { cursor: help; }
.detail-stat { font-weight: 700; color: var(--or); margin: 2px 0; }
.eqs { display: flex; gap: 3px; margin-top: 5px; flex-wrap: wrap; }
.eq { font-size: 13px; background: #0a1322; border: 1px solid var(--ligne); border-radius: 6px; padding: 0 3px; }
.eq small { font-size: 9px; color: var(--doux); margin-left: 1px; }
.eq.rare, .eqmini .rare { border-color: var(--rare); } .eq.epique, .eqmini .epique { border-color: var(--epique); } .eq.legendaire, .eqmini .legendaire { border-color: var(--legendaire); }
.eqmini { display: flex; gap: 2px; font-size: 11px; }
.eqmini span { border: 1px solid transparent; border-radius: 4px; }
.ico-eq { font-size: 22px; width: 30px; text-align: center; }
.lien { cursor: pointer; }
b.lien { text-decoration: underline dotted var(--doux); text-underline-offset: 3px; }
.avert { font-size: 12px; color: #ffcf8a; background: #3a2a10; border-radius: 8px; padding: 6px 9px; margin: 6px 0; }
.classement td { font-size: 14px; }
.bas button { position: relative; }
.bas button[data-badge]:not([data-badge=""])::after { content: attr(data-badge); position: absolute; top: 3px; right: calc(50% - 22px);
  background: var(--rouge); color: #fff; font-size: 10px; font-weight: 800; border-radius: 99px; min-width: 16px; padding: 1px 4px; }
.quete { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .06); font-size: 14px; }
.quete .jauge { margin: 4px 0 2px; }
.adapt { font-size: 11.5px; color: #ffcf8a; }
.adapt.ok { color: var(--vert); }
.sous-onglets { display: flex; gap: 6px; margin: 4px 0 12px; background: var(--fondi); border: 1px solid var(--ligne); border-radius: 12px; padding: 4px; }
.sous-onglets button { flex: 1; background: none; border: 0; border-radius: 9px; padding: 8px; font-weight: 700; color: var(--doux); }
.sous-onglets button.on { background: var(--sec); color: var(--or); }
/* fil du monde (registre 9) : une ligne par grand moment, les miennes sur --moi ; 4 sous-onglets de Saison tiennent à 360 px */
@media (max-width: 400px) { .sous-onglets button { padding: 8px 4px; font-size: 13px; } }
.fil-l { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; margin: 0 0 6px; border-radius: 10px; background: var(--fondi); border: 1px solid var(--ligne); }
.fil-l.moi { background: var(--moi); border-color: var(--gagne); }
.fil-l .fil-ico { font-size: 20px; line-height: 1.2; flex: none; width: 26px; text-align: center; }
.fil-l .esp { min-width: 0; }
.fil-l .fil-txt { overflow-wrap: anywhere; line-height: 1.35; }
.fil-l.lien { cursor: pointer; }
/* v19.78 : le fil devient un mini chat. Fermé : bouton rond 📣 au-dessus de la barre du bas, à droite (entre Saison et Club : jamais sur
   l'Écurie centrale). Ouvert : #feuille.minichat, panneau qui monte du bas (58 % de la hauteur), lignes récentes en bas. Fonds = variables. */
.fil-bouton { position: fixed; left: calc(10px + env(safe-area-inset-left));   /* à gauche, comme dans la plupart des jeux (demande de l'utilisateur du 16/11) */ bottom: calc(66px + env(safe-area-inset-bottom)); z-index: 25; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 21px; line-height: 1; padding: 0;
  background: var(--pill); border: 1px solid var(--ligne); box-shadow: 0 4px 14px rgba(0, 0, 0, .45); }
.fil-bouton[hidden] { display: none; }
.fil-bouton:active { filter: brightness(1.25); }
/* 16/11 (lot « déplaçables ») : déplacé au doigt (placerBoutonFil, U.filBtn) ; touch-action seulement sur ce bouton */
.fil-bouton { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.fil-bouton.place { top: var(--fy); bottom: auto; }
.fil-bouton.place.d { left: auto; right: calc(10px + env(safe-area-inset-right)); }
.fil-bouton.glisse { right: auto; bottom: auto; filter: brightness(1.2); box-shadow: 0 8px 22px rgba(0, 0, 0, .6); cursor: grabbing; }
.fil-bouton .fil-n { position: absolute; top: -4px; right: -4px; margin: 0; min-width: 20px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 16px; }
.fil-bouton .fil-n[hidden] { display: none; }
body:has(#feuille:not([hidden])) .fil-bouton, body:has(#replay:not([hidden])) .fil-bouton, body:has(#tuto:not([hidden])) .fil-bouton { display: none; }
body.avec-fil { padding-bottom: calc(118px + env(safe-area-inset-bottom)); }   /* fin de page : rien sous le bouton */
/* « ma ligne » collée en bas (Classements, poule de la Coupe) : posée au-dessus du bouton, jamais dessous */
body.avec-fil .top-moi, body.avec-fil .pl-l.moi { bottom: calc(120px + env(safe-area-inset-bottom)); }
#feuille.minichat { background: rgba(3, 7, 15, .35); }
#feuille.minichat .panneau { height: 58vh; height: 58dvh; max-height: 58dvh; display: flex; flex-direction: column; overflow: hidden; padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
@media (min-width: 700px) and (min-height: 600px) { body:not(.tuto-bas) #feuille.minichat { align-items: flex-end; } body:not(.tuto-bas) #feuille.minichat .panneau { border-radius: 20px 20px 0 0; } }
html.anim-coupee #feuille.minichat .panneau { animation: none; }
.mc-tete { display: flex; align-items: center; gap: 8px; flex: none; }
.mc-onglets { flex: 1; display: flex; gap: 6px; min-width: 0; }
.mc-onglet { font-weight: 800; font-size: 16px; padding: 6px 2px; color: var(--texte); }
.mc-onglet.on { color: var(--saison); }
/* v19.79 : onglets Monde | Club (boutons, 40 px de haut) ; pastille par onglet ; discussion du club dans le panneau */
button.mc-onglet { background: none; border: 0; border-bottom: 2px solid transparent; min-height: 40px; padding: 6px 8px; color: var(--doux); font-size: 15px; white-space: nowrap; }
button.mc-onglet.on { color: var(--saison); border-bottom-color: var(--saison); }
.mc-onglet .mc-n { margin-left: 4px; }
.mc-onglet .mc-n[hidden] { display: none; }
#feuille.minichat .club-fil.mc-club { height: auto; min-height: 0; margin-top: 8px; }
.mc-saisie { flex: none; margin-top: 8px; }
.mc-saisie input { min-height: 44px; }
.mc-saisie .btn { min-width: 48px; min-height: 44px; }
.mc-club .msg-act button { position: relative; }
.mc-club .msg-act button::after { content: ''; position: absolute; inset: -7px -6px; }   /* plus facile à toucher, sans grossir la bulle */
.msg .lien-nom { cursor: pointer; }
/* clavier ouvert : le panneau prend toute la partie visible (placerMiniChat règle top / height de #feuille) */
#feuille.minichat.mc-clavier { bottom: auto; }
@media (max-height: 520px) { #feuille.minichat .panneau { height: 90vh; height: 90dvh; max-height: 90dvh; } }   /* clavier qui réduit la page (WebView Android) : presque tout l'écran */
#feuille.minichat.mc-clavier .panneau { height: 100%; max-height: 100%; border-radius: 0; }
.mc-tete .fermer { float: none; width: 40px; height: 40px; flex: none; }
.mc-filtres { flex: none; margin: 6px 0 8px; }
.mc-filtres .chip { min-height: 36px; font-size: 13px; }
#feuille.minichat .mc-filtres .chip.on { outline: none; }   /* tout est allumé par défaut : pas de double contour */
.mc-filtres .chip:not(.on) { opacity: .7; }
.mc-filtres .chip:not(.on):not([data-fil-type="*"]) { text-decoration: line-through; }   /* type caché ; « Tout » éteint = un filtre est posé */
.mc-lignes { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: 2px; }
.mc-lignes .fil-l { padding: 6px 9px; margin-bottom: 5px; }
.mc-lignes .fil-l .fil-ico { font-size: 18px; width: 24px; }
.mc-lignes .fil-l .fil-txt { font-size: 14px; }
.mc-lignes .fil-l .sous { font-size: 12px; }
.mc-vide { text-align: center; padding: 24px 12px; }
.pastille-n { background: var(--rouge); color: #fff; border-radius: 99px; font-size: 11px; padding: 1px 6px; margin-left: 3px; }
.feuille .panneau.sans-anim { animation: none; }
tr.lien { cursor: pointer; }
.profil-btn { display: flex; align-items: center; gap: 7px; background: none; border: 0; padding: 0; text-align: left; min-width: 0; }
.profil-btn b { color: var(--or); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar { display: block; flex: none; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .45)); }
.profil-tete { display: flex; align-items: center; gap: 14px; margin: 4px 0 10px; }
.profil-tete h2 { margin: 0 0 4px; }
.nom-ecurie { width: 100%; background: var(--fondi); color: var(--texte); border: 1px solid var(--ligne); border-radius: 10px; padding: 8px 10px; font: 700 18px system-ui, sans-serif; margin-bottom: 6px; }
.choix-ligne { display: flex; flex-wrap: wrap; gap: 8px; }
.pastille-choix { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--ligne); padding: 3px; background: none; }
.pastille-choix i { display: block; width: 100%; height: 100%; border-radius: 50%; }
.pastille-choix.on { border-color: var(--or); box-shadow: 0 0 0 2px rgba(245, 197, 66, .35); }
.elo { display: inline-block; font-size: 11px; font-weight: 800; color: var(--div); border: 1px solid var(--div); border-radius: 99px; padding: 0 7px; }
.objet.cosm { border-color: #5b3fa0; background: linear-gradient(180deg, #1d1838, var(--fond2)); }
.classement td:nth-child(3) { width: 40px; }
span.lien { text-decoration: underline dotted var(--doux); text-underline-offset: 2px; }
.bas button { font-size: 10px; }

/* ---------- Tirage ---------- */
.tirage { text-align: center; }
.tirage .grille { margin: 16px 0; }
.retourne { animation: retourne .6s ease-out both; }
@keyframes retourne { from { transform: rotateY(90deg) scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Replay ---------- */
.replay { position: fixed; inset: 0; z-index: 60; background: #071019; display: flex; flex-direction: column; }
.replay[hidden] { display: none; }
.replay .rh { display: flex; align-items: center; gap: 8px; padding: calc(8px + env(safe-area-inset-top)) 12px 8px; border-bottom: 1px solid var(--ligne); }
.replay .rh .t { flex: 1; min-width: 0; font-size: 13px; overflow-wrap: anywhere; }
.replay .rh .t b { font-size: 15px; display: block; }
/* l'enjeu de la course (étoiles + 1er, ou points du club), v17.26 : d'un seul tenant, il passe à la ligne entier */
.replay .rh .enjeu { display: inline-block; white-space: nowrap; color: var(--or); font-weight: 700; margin-right: 4px; }
.replay .rh .enjeu .etoiles { font-size: 11px; letter-spacing: 0; }
.enjeu { color: var(--or); white-space: nowrap; }
.replay .scene3d { position: relative; flex: 0 0 44vh; min-height: 210px; background: #0d1a2b; }
.replay .v3d { position: absolute; inset: 0; }
.replay .v3d canvas { width: 100%; height: 100%; display: block; }
.replay .attente { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; color: var(--doux); font-size: 13px; }
.replay .cams { position: absolute; top: 8px; left: 8px; display: flex; gap: 5px; }
.replay .cams .btn { padding: 4px 8px; font-size: 12px; background: rgba(10, 18, 32, .75); }
.replay .cams .on { outline: 2px solid var(--or); }
.replay .scene { position: relative; flex: 0 0 24vh; min-height: 130px; border-top: 2px solid #000; }
.replay canvas { width: 100%; height: 100%; display: block; }
/* v20.79 : la petite carte 2D posée sur la 3D (registre 190, ticket 92) et l'ancien tableau des partants sont retirés : bande « Ma course »,
   ruban et classement en fin de fichier (bloc « v20.79 ») */
.replay .reste { position: absolute; top: 8px; right: 10px; background: rgba(0, 0, 0, .6); border-radius: 8px; padding: 4px 9px; font-weight: 800; font-variant-numeric: tabular-nums; }
.replay .comm { position: absolute; left: 8px; right: 8px; bottom: 8px; background: rgba(0, 0, 0, .65); border-radius: 10px; padding: 6px 10px; font-size: 13px; min-height: 30px; }
.replay .ctrl { display: flex; gap: 6px; padding: 8px 12px; align-items: center; border-top: 1px solid var(--ligne); }
.replay .ctrl .btn { padding: 6px 11px; }
.replay .ctrl .on { outline: 2px solid var(--or); }
.replay .ordre { flex: 1 1 0; min-height: 0; overflow-y: auto; padding: 0 12px calc(10px + env(safe-area-inset-bottom)); font-size: 13px; }
.replay .ordre table { width: 100%; border-collapse: collapse; }
.replay .fin-ecran { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 12px; overflow: hidden; pointer-events: none; background: radial-gradient(circle at 50% 45%, rgba(4, 8, 14, .78), rgba(4, 8, 14, .5) 75%); animation: fin-fondu .3s ease-out both; }
@keyframes fin-fondu { from { opacity: 0; } to { opacity: 1; } }
/* réglage « 2D seulement » : plus de bloc 3D ; la distance et le commentaire passent en bandeau, le suivi 2D et la liste grandissent */
.replay.sans3d .scene3d { flex: 0 0 auto; min-height: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 8px 6px; }
.replay.sans3d .v3d, .replay.sans3d .cams { display: none; }
.replay.sans3d .reste, .replay.sans3d .comm { position: static; transform: none; }
.replay.sans3d .comm { align-self: stretch; }
.replay.sans3d .scene { flex: 0 0 34vh; }
.replay.sans3d .ordre { font-size: 15px; }
.replay.sans3d .ordre td { padding-top: 4px; padding-bottom: 4px; }
.replay .fin-carte { position: relative; z-index: 1; width: 100%; max-width: 340px; max-height: 60vh; overflow-y: auto; pointer-events: auto; text-align: center; background: linear-gradient(180deg, rgba(38, 32, 16, .96), rgba(20, 17, 9, .96)); border: 1px solid rgba(245, 197, 66, .45); border-radius: 18px; padding: 16px 16px 12px; box-shadow: 0 12px 40px rgba(0, 0, 0, .65); }
.replay .fin-carte h3 { margin: 0 0 8px; }
.replay .fin-carte .actions { justify-content: center; margin-top: 12px; }
.replay .fin-cheval { display: flex; align-items: center; gap: 8px; font-size: 15px; text-align: left; padding: 3px 0; }
.replay .fin-cheval.seul { flex-direction: column; gap: 2px; text-align: center; padding: 0; }
.replay .fin-cheval.seul .fin-place { font-size: 34px; line-height: 1.1; }
.replay .fin-cheval.seul .fin-nom { font-size: 16px; font-weight: 700; }
.replay .fin-cheval.seul .fin-gain { margin: 6px 0 0; font-size: 20px; }
.replay .fin-place { font-size: 20px; font-weight: 800; color: var(--or); }
.replay .fin-gain { margin-left: auto; color: var(--or); }
.replay .fin-conseil { margin: 8px 0 0; font-size: 13px; color: var(--doux); }
.replay .ordre td { padding: 3px 4px; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.replay .ordre .moi td { color: var(--or); font-weight: 700; }
.dot { display: inline-block; width: 13px; height: 13px; border-radius: 50%; vertical-align: -2px; border: 2px solid #fff; }

/* tickets 14 et 15 : en haut à droite, sous la cloche, sans cacher le texte */
.toasts { position: fixed; right: 8px; top: calc(52px + env(safe-area-inset-top)); z-index: 80; width: min(72vw, 300px); display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.toast { background: var(--pill); border: 1px solid var(--or); border-radius: 10px; padding: 7px 10px; box-shadow: 0 6px 16px rgba(0, 0, 0, .5); display: flex; align-items: center; gap: 8px; font-size: 13px; animation: monte .25s ease-out; pointer-events: auto; touch-action: pan-y; user-select: none; -webkit-user-select: none; transition: transform .18s ease-out, opacity .18s ease-out; }
.toast.glisse { transition: none; animation: none; }
body.anim-reduite .toast { transition: none; }
.toast .esp { flex: 1; }
/* 14/11 : ✕ de fermeture des bulles (zone tactile 32 px par ::after, le dessin reste petit) */
.toast-x { position: relative; flex: none; background: none; border: 0; color: var(--doux); font-size: 14px; line-height: 1; padding: 2px 4px; margin: -2px -4px -2px 0; cursor: pointer; }
.toast-x::after { content: ''; position: absolute; inset: -8px -6px; }
.toast-x:hover, .toast-x:focus-visible { color: var(--texte); }
.regles p, .regles li { font-size: 14px; color: #d5deea; }
.regles b { color: var(--or); }
/* v17.23 : onglet ? en cartes dépliables */
.aide .theme-r { margin: 18px 0 8px; font-size: 15px; letter-spacing: .3px; color: var(--texte); }
.aide .theme-r:first-of-type { margin-top: 6px; }
.pli { background: var(--fond2); border: 1px solid var(--ligne); border-radius: 14px; margin-bottom: 8px; overflow: hidden; transition: border-color .2s; }
.pli.ouvert { border-color: var(--or); }
.pli-tete { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; background: none; border: 0; text-align: left; }
.pli-tete .esp { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pli-tete b { color: var(--texte); font-size: 14.5px; }
.pli.ouvert .pli-tete b { color: var(--or); }
.pli-tete .sous { font-size: 12.5px; }
.pli-ico { flex: none; width: 38px; height: 38px; display: grid; place-items: center; font-size: 20px; border-radius: 11px; background: var(--fondi, #0f1c33); }
.pli-fleche { flex: none; font-size: 22px; color: var(--doux); transition: transform .2s; }
.pli.ouvert .pli-fleche { transform: rotate(90deg); color: var(--or); }
.pli-corps { padding: 0 14px 12px 60px; }   /* pas d'animation : l'écran est redessiné à chaque changement du monde, elle rejouerait */
.pli-corps ul { margin: 0; padding-left: 16px; }
.pli-corps li { margin: 5px 0; line-height: 1.45; }
.pli-corps li::marker { color: var(--or); }
body.anim-reduite .pli-fleche { transition: none; }
.note-v .pli-corps { padding-left: 14px; }
.nv-sec { margin-top: 6px; }
.nv-etiq { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--sec); color: var(--doux); }
.nv-sec.nouv .nv-etiq { background: rgba(46, 204, 113, .16); color: var(--vert); }
.nv-sec.corr .nv-etiq { background: rgba(61, 139, 253, .16); color: #8fc0ff; }
.nv-sec.equi .nv-etiq { background: rgba(245, 197, 66, .16); color: var(--or); }
.nv-sec ul { margin-top: 4px; }
.aide-liens { margin: 0 0 12px; }
@media (max-width: 360px) { .pli-corps { padding-left: 14px; } }

.tete-cheval { display: flex; justify-content: center; margin: 4px 0 0; }
.tete-cheval .avatar { filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .55)); }
.gemmes { color: #c9b8ff; background: #241d45; }
/* ticket 51 : le cadre et le fond d'un lot aux enchères ont la couleur de rareté du cheval, quel que soit le vendeur.
   Dégradé vertical comme l'ancien fond des lots de l'élevage, mais il finit sur un sombre de la même couleur et non sur --fond2 : le mélange avec les couleurs de saison était terne. */
.lot-r-commun, .lot-r-rare, .lot-r-epique, .lot-r-legendaire, .lot-r-mythique { border-width: 2px; background: linear-gradient(180deg, var(--lot-haut), var(--lot-bas)); }
.lot-r-commun { --lot-haut: #252c38; --lot-bas: #161b24; border-color: var(--commun); }
.lot-r-rare { --lot-haut: #132a55; --lot-bas: #0c1a36; border-color: var(--rare); }
.lot-r-epique { --lot-haut: #2b1a4d; --lot-bas: #1a1030; border-color: var(--epique); }
.lot-r-legendaire { --lot-haut: #3a2c0a; --lot-bas: #241b06; border-color: var(--legendaire); box-shadow: 0 0 12px rgba(245, 179, 1, .25); }
.lot-r-mythique { --lot-haut: #3f1524; --lot-bas: #280d17; border-color: var(--mythique); box-shadow: 0 0 12px rgba(255, 77, 109, .35); }
@media (max-width: 420px) { .haut { gap: 5px; padding-left: 8px; padding-right: 8px; } .banque { padding: 4px 7px; font-size: 13px; } .profil-btn b { max-width: 70px; } }

.retour { text-align: center; }
.retour-ico { font-size: 46px; }
.retour .infos { text-align: left; margin: 10px 0; }
.retour .actions { justify-content: center; }
.col-carte { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.col-carte .carte { width: 100%; }
.casaque-fiche { display: flex; flex-direction: column; align-items: center; gap: 2px; background: var(--fond2); border: 1px solid var(--ligne); border-radius: 14px; padding: 10px 18px 6px; }
.casaque-grande { width: 96px; height: 96px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .5)); }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 0 12px; }
@media (max-width: 460px) { .col-carte { max-width: 190px; margin: 0 auto; } }

/* v10 : notifications, objets cumulables, élevage, sellerie */
.cloche { position: relative; }
.nonlus { position: absolute; top: -5px; right: -6px; background: var(--rouge); color: #fff; border-radius: 99px; font-size: 10px; font-weight: 800; padding: 1px 5px; line-height: 1.3; }
.nonlus[hidden] { display: none; }
@media (max-width: 420px) { .horloge { padding: 4px 7px; font-size: 12px; } .gemmes { padding: 4px 6px; font-size: 12px; } }
/* bandeau : niveau de compte, cote ELO, rang de l'année sous le nom (majInfosHaut). 3 tailles, mesurées pour que rien ne soit coupé :
   > 560 px nom + « Niv · ◆ ELO · 🏆 rang » ; 471-560 px niveau et ELO sur 2 lignes sans le nom ; ≤ 470 px pastille du niveau sur l'avatar */
@media (max-width: 560px) { .profil-btn #nom-haut { display: none; } }
.profil-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.infos-haut { display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; color: var(--doux); white-space: nowrap; }
.infos-haut:empty { display: none; }
.ih-niv { display: inline-flex; align-items: center; gap: 3px; color: #fff; }
.ih-niv i { display: inline-block; width: 22px; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.ih-niv i b { display: block; height: 100%; background: var(--or); }
.ih-elo { color: var(--div); }
@media (max-width: 560px) {
  .profil-txt { flex: none; }
  .infos-haut { flex-direction: column; align-items: flex-start; gap: 1px; font-size: 10px; }
  .ih-rang { display: none; }
}
#avatar-haut { position: relative; display: block; }
.ih-pastille { display: none; }
@media (max-width: 470px) {
  .profil-txt { display: none; }
  .ih-pastille { display: block; position: absolute; right: -5px; bottom: -4px; min-width: 15px; padding: 0 3px; border-radius: 99px;
    background: var(--fond); border: 1.5px solid var(--div); color: #fff; font-size: 9.5px; font-weight: 800; line-height: 13px; text-align: center; }
}
@media (max-width: 345px) { .haut { gap: 3px; padding-left: 5px; padding-right: 5px; } .banque { padding: 3px 5px; font-size: 11.5px; } .horloge { padding: 3px 5px; font-size: 11px; } }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.chip { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; background: var(--fond); border: 1px solid var(--ligne); border-radius: 99px; padding: 4px 9px; cursor: pointer; user-select: none; color: var(--doux); }
.chip input { display: none; }
.chip.on, .chip:has(input:checked) { background: var(--orfond); border-color: var(--or); color: var(--or); font-weight: 700; }
button.chip { font: inherit; font-size: 12px; }
.notif { display: flex; align-items: center; gap: 8px; padding: 9px 4px; border-top: 1px solid rgba(255, 255, 255, .06); font-size: 14px; }
.notif.nouv { background: rgba(245, 197, 66, .07); border-left: 3px solid var(--or); padding-left: 8px; }
/* registre 187 : Sceau touchable et verdict du match du jour (la tournée a ses propres styles .tm-*, 18/11/2026) */
.lien-res { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.et-b { color: #ffd76a; letter-spacing: -1px; white-space: nowrap; }
.et-b i { font-style: normal; color: rgba(255, 255, 255, .25); }
.verdict { padding: 0 6px; border-radius: 6px; }
.verdict.gagne { background: rgba(60, 200, 120, .22); color: #6fe3a0; }
.verdict.perdu { background: rgba(230, 80, 80, .22); color: #ff8a8a; }
.verdict.nul { background: rgba(200, 200, 200, .18); color: #ddd; }
.badge .ico-img { width: 16px; height: 16px; vertical-align: -3px; }
.barre-rar { display: flex; height: 9px; border-radius: 5px; overflow: hidden; margin: 5px 0 2px; background: #0a1322; min-width: 60px; }
.barre-rar i { display: block; }
.barre-rar .commun { background: var(--commun); } .barre-rar .rare { background: var(--rare); } .barre-rar .epique { background: var(--epique); } .barre-rar .legendaire { background: var(--legendaire); }
.mini-pct { font-size: 11px; color: var(--doux); }
.r-commun { color: #c9d2dc; } .r-rare { color: #7fb6ff; } .r-epique { color: #d79bff; } .r-legendaire { color: var(--or); }
.tab-elevage td { font-size: 12px; text-align: center; padding: 5px 3px; }
.tab-elevage td:first-child { text-align: left; }
.calendrier { margin-bottom: 8px; }
.calendrier .actions { margin-top: 8px; }
.defile { overflow-x: auto; }
.sellerie td { padding: 4px 1px; }
.sellerie td:nth-child(2) { font-size: 12.5px; }
@media (max-width: 420px) { .sellerie td:first-child { display: none; } }
.case-eq { display: flex; flex-direction: column; align-items: center; min-width: 34px; background: #0a1322; border: 1.5px solid var(--ligne); border-radius: 8px; padding: 3px 2px; font-size: 16px; line-height: 1.1; }
.case-eq small { font-size: 9.5px; color: var(--doux); }
.case-eq.vide { opacity: .45; filter: grayscale(1); }
.case-eq.commun { border-color: var(--commun); } .case-eq.rare { border-color: var(--rare); } .case-eq.epique { border-color: var(--epique); }
.case-eq.legendaire { border-color: var(--legendaire); box-shadow: 0 0 8px rgba(245, 179, 1, .3); }
/* v11 : calendrier de la semaine (bande de l'année de jeu) */
.semaine { position: relative; height: 34px; margin: 14px 0 26px; background: #14223a; border-radius: 8px; }
.semaine .seg { position: absolute; top: 0; bottom: 0; opacity: .75; border-radius: 4px; }
.semaine .jr { position: absolute; top: 36px; transform: translateX(-50%); font-size: 11px; color: #9fb0c8; font-weight: 600; }
.semaine .mi { position: absolute; top: 0; bottom: 0; border-left: 1px dashed rgba(255, 255, 255, .3); }
.semaine .maintenant { position: absolute; top: -5px; bottom: -5px; width: 3px; margin-left: -1px; background: #fff; box-shadow: 0 0 6px #fff; border-radius: 2px; }
.bloc.compte .jauge { margin: 6px 0; }
/* v11 (C4) : sur petit écran, « Reste … m » en haut au centre, les caméras en bas au-dessus du commentaire */
@media (max-width: 420px) {
  .replay .reste { right: auto; left: 50%; transform: translateX(-50%); }
  .replay .cams { top: auto; bottom: 48px; left: 8px; right: 8px; flex-wrap: wrap; justify-content: center; }
}

/* ---------- v13 : rond de présentation, direct, cravache, soins, débrief, nouveautés, tickets ---------- */
.bandeau-direct { position: sticky; top: calc(48px + env(safe-area-inset-top)); z-index: 15; display: flex; flex-direction: column; gap: 4px; padding: 6px 10px 0; }
.bandeau-direct[hidden] { display: none; }
.bandeau { width: 100%; text-align: left; border: 1px solid var(--ligne); border-radius: 10px; padding: 8px 12px; font-weight: 700; font-size: 14px; }
.bandeau.rond { background: #2b2410; border-color: #6b5520; color: var(--or); }
.bandeau.rond.fait { background: #10301c; border-color: #2a7a4a; color: #a5f0c0; }
/* v15.1 et v15.2 : date et saison du jeu (tickets 24 et 29 : fond et accents marqués, texte toujours clair sur fond sombre), tri de l'écurie (ticket 23), aide de la cravache (ticket 21) */
:root { --saison: var(--or); --hautbas: rgba(11, 20, 36, .95); --fondi: #0f1c33; --pill: #1d2f50; --sec: #22365a; --orfond: #3d3010; --moi: #1d3358; }
body[data-saison="hiver"] { --fond: #071a33; --fond2: #0e2a4a; --carte: #143a60; --ligne: #2f6d9e; --or: #8fd8ff; --fondi: #0b2340; --pill: #14395f; --hautbas: rgba(9, 34, 62, .96); --btn1: #bfe9ff; --btn2: #6fc0ee; --sec: #173f66; --orfond: #163f5c; --moi: #1b4a73; }
body[data-saison="printemps"] { --fond: #1c0f22; --fond2: #2e1837; --carte: #3b2147; --ligne: #6b3f77; --or: #ffb3dc; --fondi: #26142e; --pill: #43264f; --hautbas: rgba(38, 18, 46, .96); --btn1: #ffd0ea; --btn2: #f28cc4; --sec: #4d2c5b; --orfond: #4f2442; --moi: #4a2a58; }
body[data-saison="ete"] { --fond: #1f1a05; --fond2: #2f2808; --carte: #3c340e; --ligne: #6f6120; --or: #ffdc55; --fondi: #272106; --pill: #443a10; --hautbas: rgba(40, 34, 8, .96); --btn1: #ffe680; --btn2: #efbe22; --sec: #4a3f12; --orfond: #4d3f08; --moi: #4a4114; }
/* 19/11 (UX repos) : couleurs « sommeil » (bloc repos de la fiche, étiquette de la carte), bleu nuit / violet teinté par saison */
:root { --dort: #171a46; --dort2: #272d6e; --dort-bord: #8a86ff; --dort-txt: #cfcbff; }
body[data-saison="hiver"] { --dort: #1b1550; --dort2: #2f2782; --dort-bord: #a08fff; --dort-txt: #d6cdff; }   /* violet : le fond d'hiver est déjà bleu */
body[data-saison="printemps"] { --dort: #221340; --dort2: #3a2266; --dort-bord: #b38aff; --dort-txt: #e2d0ff; }
body[data-saison="ete"] { --dort: #171a46; --dort2: #272d6e; --dort-bord: #8a86ff; --dort-txt: #cfcbff; }
body[data-saison="automne"] { --dort: #1e1540; --dort2: #33245f; --dort-bord: #a084ff; --dort-txt: #d9caff; }
body[data-saison="automne"] { --fond: #1f0f05; --fond2: #32190a; --carte: #41220e; --ligne: #7a4620; --or: #ffa95c; --fondi: #281408; --pill: #4a2810; --hautbas: rgba(44, 22, 8, .96); --btn1: #ffc58e; --btn2: #ef8c36; --sec: #573015; --orfond: #55300f; --moi: #55301a; }
body[data-saison] .haut, body[data-saison] .bas { background: var(--hautbas); }
body[data-saison] .btn:not(.sec):not(.crav) { background: linear-gradient(180deg, var(--btn1), var(--btn2)); }
body[data-saison] .btn.sec, body[data-saison] .sous-onglets button.on { background: var(--pill); }
body[data-saison] .banque, body[data-saison] .horloge, body[data-saison] .toast { background: var(--pill); }
body[data-saison] .choix, body[data-saison] .sous-onglets { background: var(--fondi); }
body[data-saison] h2, body[data-saison] h3 { color: var(--saison); }
body[data-saison] .carte .in { background: linear-gradient(180deg, var(--carte), var(--fondi)); }
.haut { border-bottom: 2px solid var(--saison); }
.bas button.actif { color: var(--saison); }
/* tickets 31, 36, 37 et Coupe v15.2 */
.chip.epuise { opacity: .45; background: none; border: 1px dashed var(--ligne); color: var(--doux); }
.chip.coupee { opacity: .5; text-decoration: line-through; background: none; }
.chip small { font-size: 11px; font-weight: 400; }
.chips .cout-obj { flex-basis: 100%; margin-top: 2px; }
.cout-obj:empty { display: none; }
/* v20.05 (registre 297) : « ✓ Tout équiper » sous les objets d'un cheval (engagement, cheval engagé, rond, Coupe) */
.lien-tri.cr-tout { font-size: 12px; color: var(--or); display: inline-block; margin-bottom: 2px; }
.chips .cr-tout { flex-basis: 100%; text-align: left; }
/* v20.36 : bande d'achat sur place d'un objet de course (case vide ou « Tout équiper ») */
.achat-vite { flex-basis: 100%; margin: 4px 0 2px; padding: 6px 8px; border: 1px solid var(--or); border-radius: 10px; background: var(--carte); font-size: 12px; text-align: left; }
.achat-vite .av-tete { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.achat-vite .av-x { margin-left: auto; background: none; border: 0; color: var(--doux); font-size: 14px; min-width: 32px; min-height: 32px; }
.achat-vite .av-bts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.achat-vite .raison { margin: 4px 0 0; }
.box-vide { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 120px; border: 2px dashed var(--ligne); border-radius: 16px; color: var(--doux); font-size: 12px; background: none; text-align: center; padding: 8px; }
.box-vide span { font-size: 26px; opacity: .5; }
.box-vide small { font-size: 10px; }
.box-vide.plus { border-color: var(--or); color: var(--or); }
.box-vide.plus span { opacity: 1; }
.niv-c { display: flex; align-items: center; gap: 6px; margin: 2px 0 5px; }
.niv-c .niv-p { flex: none; font-size: 11px; font-weight: 800; color: #10160c; background: var(--or); border-radius: 99px; padding: 1px 8px; }
.niv-c .jauge { flex: 1; margin: 0; }
.res-c { opacity: .8; }
.date-heure { display: flex; flex-direction: column; align-items: center; line-height: 1.15; padding-top: 2px; padding-bottom: 2px; white-space: nowrap; }
.date-heure #date-jeu { font-size: 9.5px; color: var(--saison); font-weight: 700; }
.date-heure > span:last-child { font-size: 11.5px; }
main { position: relative; z-index: 2; }
.decor-saison { position: fixed; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.decor-saison i { position: absolute; top: -30px; font-style: normal; font-size: 16px; opacity: .5; animation: decor-chute linear infinite; }
@keyframes decor-chute { to { transform: translate(30px, 105vh) rotate(200deg); } }
.tri-ecurie { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: 8px 0; }
.case-ranger { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.case-ranger .fleches { display: flex; gap: 6px; }
.case-ranger .fleches .btn { flex: 1; }
/* ranger au doigt (v15.5) */
.grille-ecurie .carte { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.glisse-en-cours { -webkit-user-select: none; user-select: none; cursor: grabbing; }
.compte-coffres.seul { margin: 4px 0 8px; color: var(--doux); font-size: 13px; }
.glisse-source { opacity: .3; }
.carte-fantome { position: fixed; z-index: 60; margin: 0; pointer-events: none; opacity: .92; box-shadow: 0 10px 28px rgba(0, 0, 0, .55); transform-origin: top left; }
/* cravache : pulsation dans la zone (v15.5), coupée par le réglage ou le système */
.btn.crav.pouls { animation: crav-pouls .55s ease-in-out infinite alternate; }
@keyframes crav-pouls { from { transform: scale(1); box-shadow: 0 0 0 0 rgba(61, 220, 132, .7); } to { transform: scale(1.03); box-shadow: 0 0 0 7px rgba(61, 220, 132, 0); } }
@media (prefers-reduced-motion: reduce) { .btn.crav.pouls { animation: none; } }
.regard { flex: none; margin-left: 6px; }
.lots { display: flex; gap: 4px; margin-top: 4px; }
.lots .btn { flex: 1; padding-left: 3px; padding-right: 3px; font-size: 11px; white-space: nowrap; }
.compte-coffres { margin-bottom: 6px; }
.replay .ordre .pastille { min-width: 22px; font-size: 11px; color: #fff; }
.crav-aide { flex: 1 1 60%; min-width: 0; font-size: 12px; }
.bandeaux-rp { display: flex; flex-direction: column; gap: 4px; }
.bandeaux-rp:empty { display: none; }
.bandeaux-rp .bandeau { padding: 5px 10px; font-size: 13px; }
.replay .fin-carte > .bandeaux-rp { margin-bottom: 10px; }   /* v20.43 : mon autre direct, en haut de la carte de fin */
.replay .fin-carte > .bandeaux-rp .bandeau { padding: 8px 12px; font-size: 14px; }
/* registre 199 : passer d'une division à l'autre dans le direct */
.divs-rp { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding: 2px 0; }
.divs-rp .chip { flex: 0 0 auto; }
.rond-parti { margin-bottom: 8px; }
.bandeau.direct { background: #3a1414; border-color: #7a2a2a; color: #ffd0d0; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { filter: brightness(1.25); } }
.ruban.direct { background: #7a1f1f; color: #fff; }
.rond3d { height: 210px; border-radius: 12px; overflow: hidden; background: var(--fondi); margin: 8px 0; position: relative; }
.rond3d canvas { width: 100%; height: 100%; display: block; }
/* cabine 3D de la fiche (16/11) : plein écran dans #feuille (feuille(…, true) : panneau sans animation, donc « fixed » tient) */
.fiche-3d { margin: 8px 0 0; }
.cab3d { position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column; background: var(--fond);
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.cab-haut { display: flex; align-items: center; gap: 10px; padding: 10px 16px; }
.cab-haut .cab-retour { flex: none; min-height: 44px; }
.cab-nom { flex: 1; min-width: 0; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cab-scene { flex: 1; min-height: 0; position: relative; overflow: hidden; background: var(--fondi); touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.cab-scene:active { cursor: grabbing; }
.cab-scene canvas { width: 100%; height: 100%; display: block; }
.cab-scene .attente { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; color: var(--doux); }
.cab-aide { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 6px 12px; border-radius: 99px;
  background: rgba(3, 7, 15, .62); color: #e8eefc; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; z-index: 1; }
.cab-bas { padding: 10px 16px 12px; }
.cab-ctl { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.cab-ctl .btn { min-height: 44px; }
.cab-ctl .cab-z { min-width: 44px; font-size: 20px; font-weight: 700; padding: 0 12px; }
.cab-info { margin: 8px 0 0; text-align: center; }
@media (max-height: 660px) { .cab-haut { padding: 6px 16px; } .cab-bas { padding: 6px 16px 8px; } .cab-info { font-size: 11px; } }
/* lot C (registre 277) : essai d'un cosmétique dans la cabine, porter / retirer sans la quitter */
.cab-essai { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 8px 10px; margin: 0 0 8px; border-radius: 12px;
  background: var(--fond2); border: 1px solid var(--saison); }
.cab-essai .esp { flex: 1 1 140px; min-width: 0; }
.cab-essai .btn { min-height: 40px; }
.cab-mes { display: flex; gap: 6px; align-items: center; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin: 0 0 8px; }
.cab-mes::-webkit-scrollbar { display: none; }
.cab-mes .chip { flex: none; min-height: 36px; }
.cab-mes > .sous { flex: none; }
@media (max-height: 700px) { .cab-mes > .sous { display: none; } .cab-essai { padding: 6px 8px; margin-bottom: 6px; } }
/* Boutique › Cosmétiques (lots C, E, G) */
.cosm-blocs { margin: 6px 0 10px; }
.cosm-blocs .chip { min-height: 36px; }
.cosm-empl { border: 1px solid var(--ligne); border-radius: 14px; background: var(--fond2); padding: 8px 10px; margin: 10px 0; }
.cosm-empl-t { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.silh { width: 64px; height: 44px; flex: none; color: var(--doux); }
.silh .z { fill: currentColor; opacity: .3; }
.silh .z.on { fill: var(--saison); opacity: 1; }
.cosm-l { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 0; border-top: 1px solid var(--ligne); }
.cosm-l .ico { font-size: 26px; width: 34px; text-align: center; flex: none; }
.cosm-l .esp { flex: 1 1 150px; min-width: 0; }
.cosm-l .esp .sous { font-size: 12px; }
.cosm-l.porte .ico { filter: drop-shadow(0 0 6px var(--saison)); }
.ico-svg { width: 1em; height: 1em; vertical-align: -0.12em; }
.cosm-act { display: flex; gap: 6px; margin-left: auto; }
.cosm-act .btn { min-height: 40px; }
.ens-liste { display: grid; gap: 8px; margin: 6px 0 4px; }
.ens { border: 1px solid #5b3fa0; border-radius: 14px; padding: 9px 11px; background: linear-gradient(180deg, #1d1838, var(--fond2)); }
.ens.complet { opacity: .75; border-color: var(--ligne); }
.ens-t { display: flex; align-items: center; gap: 8px; }
.ens-t b { flex: 1; min-width: 0; }
.ens-avant { color: var(--doux); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ens-t .btn { flex: none; font-variant-numeric: tabular-nums; }
.ens-p { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 5px 0 1px; font-size: 13px; }
.ens-p .pris { color: var(--doux); }
.ens .btn { min-height: 40px; }
.cq-bloc { border-top: 1px solid var(--ligne); padding: 8px 0 4px; }
.cq-tete { display: flex; gap: 10px; align-items: center; }
.cq-tete .casaque { width: 58px; height: 58px; flex: none; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .5)); }
.cq-edit > summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; color: var(--saison); font-weight: 600; }
.cq-l { margin: 6px 0; }
.cq-coul { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 4px; }
.cq-p { aspect-ratio: 1; min-height: 36px; border-radius: 50%; background: var(--c); border: 2px solid rgba(255, 255, 255, .25); padding: 0; cursor: pointer; }
.cq-p.on { outline: 3px solid var(--saison); outline-offset: 2px; border-color: #fff; }
/* couleur trop proche de l'autre (refusCasaque) : barrée, pas assombrie (un jaune assombri passait pour un marron) */
.cq-p.pas { background-image: linear-gradient(135deg, transparent 44%, rgba(255, 255, 255, .85) 44% 56%, transparent 56%); opacity: .55; }
.cq-motifs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 4px; }
.cq-m { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 10px; border: 1px solid var(--ligne); background: var(--fond);
  color: var(--texte); font-size: 11px; cursor: pointer; min-height: 44px; }
.cq-m .casaque { width: 38px; height: 38px; }
.cq-m small { color: var(--saison); font-variant-numeric: tabular-nums; }
.cq-m.on { border-color: var(--saison); box-shadow: 0 0 0 1px var(--saison) inset; }
.rond-cheval { border: 1px solid var(--ligne); border-radius: 12px; padding: 8px; margin: 8px 0; background: var(--fond2); }
.consignes { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.ctrl.direct { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.direct-badge { color: #fff; background: #c0392b; border-radius: 6px; padding: 2px 8px; font-weight: 800; font-size: 12px; }
.cravs { display: flex; gap: 6px; flex-wrap: wrap; }
.cravs { flex: 1 1 100%; }
.btn.crav { font-size: 15px; padding: 8px 12px; flex: 1 1 100%; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.btn.crav .crav-nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.btn.crav .crav-m { flex: none; font-weight: 800; }
.btn.crav.tot { background: #4a1c1c; color: #fff; }
.btn.crav.zone { background: var(--vert); color: #06210f; }
.moi-reste { margin-left: 8px; padding: 1px 8px; border-radius: 99px; background: var(--sec); }
.moi-reste.zone { background: var(--vert); color: #06210f; font-weight: 800; }
.moi-reste.tot { background: #4a1c1c; }
.debrief { border-left: 3px solid var(--or); padding: 4px 10px; margin: 6px 0; background: var(--fond2); border-radius: 0 8px 8px 0; }
.debrief div { font-size: 13px; color: var(--doux); }
.note-version ul { margin: 4px 0 10px; padding-left: 20px; }
textarea { width: 100%; min-height: 110px; background: var(--fondi); color: var(--texte); border: 1px solid var(--ligne); border-radius: 8px; padding: 8px; font: inherit; resize: vertical; }
.ticket { border: 1px solid var(--ligne); border-radius: 10px; padding: 8px 10px; margin: 8px 0; background: var(--fond2); }
.ticket.i-vert { border-left: 5px solid var(--vert); }
.ticket.i-rouge { border-left: 5px solid #e5484d; }
.ticket.i-orange { border-left: 5px solid #f59e0b; }
.ticket .issue { margin-top: 6px; padding: 5px 8px; border-radius: 6px; }
.ticket .issue.vert { background: rgba(46, 160, 67, .18); color: #7ee2a0; }
.ticket .issue.rouge { background: rgba(229, 72, 77, .18); color: #ff9b9e; }
.ticket .issue.orange { background: rgba(245, 158, 11, .18); color: #fbc768; }
.ticket input { width: 100%; margin-top: 6px; background: var(--fondi); color: var(--texte); border: 1px solid var(--ligne); border-radius: 8px; padding: 7px; font: inherit; }
.ticket input.ver { width: 64px; margin-top: 0; }
.btn.i-vert { border: 1px solid var(--vert); }
.btn.i-rouge { border: 1px solid #e5484d; }
.btn.i-orange { border: 1px solid #f59e0b; }
.carte .jour-c { margin-top: 4px; font-size: 10px; }
.ticket .texte { margin: 6px 0; }
.ticket .reponse { border-left: 3px solid var(--vert); padding-left: 8px; margin-top: 6px; }
.ticket textarea { min-height: 60px; margin-top: 6px; }
[data-tickets] { position: relative; }

/* ---------- v13.1 : coffres du direct ---------- */
.coffres-bloc { border-color: #6b5520; }
.ico-coffre { font-size: 28px; }
.coffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; margin: 12px 0; }
.coffre { position: relative; min-height: 120px; border-radius: 14px; border: 2px solid var(--ligne); background: var(--fond2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px; text-align: center; }
.coffre .boite { font-size: 44px; line-height: 1; }
.coffre.ferme { animation: balance 2.4s ease-in-out infinite; }
.coffre.ferme:nth-child(2) { animation-delay: .4s; } .coffre.ferme:nth-child(3) { animation-delay: .8s; } .coffre.ferme:nth-child(4) { animation-delay: 1.2s; }
@keyframes balance { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
.coffre.tremble { animation: tremble .12s linear infinite !important; }
@keyframes tremble { 0% { transform: translate(-2px, 0) rotate(-4deg); } 50% { transform: translate(2px, -1px) rotate(4deg); } 100% { transform: translate(-1px, 1px) rotate(-2deg); } }
.coffre .contenu { font-size: 12px; font-weight: 700; }
.coffre .pris { font-size: 11px; color: var(--vert); font-weight: 800; }
.coffre.gris { border-color: #6b7685; background: #1c2533; }
.coffre.bleu { border-color: #3d8bfd; background: #13284d; }
.coffre.violet { border-color: #b05cff; background: #2a1845; }
.coffre.or { border-color: #f5b301; background: #3a2c08; }
.coffre.manque { opacity: .5; transform: scale(.88); }
.coffre.eclat { animation: eclat .9s ease-out; }
.coffre.eclat.gris { --eclat: rgba(160, 170, 185, .7); } .coffre.eclat.bleu { --eclat: rgba(61, 139, 253, .9); }
.coffre.eclat.violet { --eclat: rgba(176, 92, 255, .9); } .coffre.eclat.or { --eclat: rgba(245, 179, 1, 1); }
@keyframes eclat { 0% { box-shadow: 0 0 0 0 var(--eclat); transform: scale(.8); } 40% { box-shadow: 0 0 40px 18px var(--eclat); transform: scale(1.12); } 100% { box-shadow: 0 0 0 0 transparent; transform: scale(1); } }
.coffre.eclat.or::after { content: '✨ ✨ ✨'; position: absolute; top: -14px; left: 0; right: 0; font-size: 18px; animation: paillettes 1.2s ease-out forwards; }
@keyframes paillettes { from { opacity: 1; transform: translateY(10px) scale(.6); } to { opacity: 0; transform: translateY(-30px) scale(1.4); } }
.coffres.reduit .coffre { animation: none !important; }

/* v13.1 : code de secours */
.code-secours { font: 700 24px/1.3 ui-monospace, Consolas, monospace; letter-spacing: 2px; text-align: center; padding: 14px; margin: 12px 0; border: 2px dashed var(--or); border-radius: 12px; color: var(--or); user-select: all; }

/* ---------- v13.3 : mots touchables, glossaire, malus de fatigue, réglages, prestige, onglet central ---------- */
.mot { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }
.ma { color: var(--rouge); font-style: normal; font-weight: 700; font-size: .85em; margin-left: 2px; }
/* v20.62 : bulle d'aide ancrée à l'élément touché (vue.js placerPop : left / top / largeur / --fx calculés) ; au-dessus du direct (60),
   de #feuille.sur-replay (65) et du voile du guide (75), sous la bulle du guide (90) qu'elle évite */
.popmot { position: fixed; left: 0; top: 0; width: 320px; max-width: calc(100vw - 20px); z-index: 80; background: var(--pill); display: flex; flex-direction: column;
  border: 1px solid var(--or); border-radius: 14px; padding: 10px 12px 11px; box-shadow: 0 10px 28px rgba(0,0,0,.55); font-size: 14px; }
.popmot[hidden] { display: none; }
.popmot-corps { overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; min-height: 0; line-height: 1.45; }
.popmot-corps::before { content: ''; float: right; width: 30px; height: 24px; }   /* place du ✕ sur la 1re ligne */
html[dir="rtl"] .popmot-corps::before { float: left; }
.popmot-x { position: absolute; top: 6px; right: 6px; z-index: 1; background: var(--sec); color: inherit; border: 0; border-radius: 99px; width: 32px; height: 32px; font-size: 16px; cursor: pointer; }
.popmot-x::after { content: ''; position: absolute; inset: -6px; }   /* zone de 44 px */
html[dir="rtl"] .popmot-x { right: auto; left: 6px; }
.popmot b { color: var(--or); display: block; margin-bottom: 2px; }
.popmot .pop-texte { margin-top: 4px; }
.popmot::before { content: ''; position: absolute; left: calc(var(--fx, 50%) - 8px); width: 14px; height: 14px; background: var(--pill); border: 1px solid var(--or); transform: rotate(45deg); }
.popmot.dessous::before { top: -8px; border-right: 0; border-bottom: 0; border-top-left-radius: 3px; }
.popmot.dessus::before { bottom: -8px; border-left: 0; border-top: 0; border-bottom-right-radius: 3px; }
.popmot.sans-fleche::before { display: none; }
.popmot.entre { animation: popmot-entre .14s ease-out; }
@keyframes popmot-entre { from { opacity: 0; transform: scale(.94); } }
html.anim-coupee .popmot.entre { animation: none; }
@media (prefers-reduced-motion: reduce) { .popmot.entre { animation: none; } }
.pop-calc { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.pop-calc span { font-size: 12.5px; padding: 2px 8px; border-radius: 99px; background: var(--fondi); color: var(--texte); }
.pop-calc span.tot { background: var(--orfond); color: var(--or); font-weight: 800; }
.pop-ancre { background: var(--orfond) !important; box-shadow: inset 0 0 0 1.5px var(--or); border-radius: 8px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.mot.pop-ancre { padding: 1px 4px; margin: -1px -4px; border-radius: 6px; }   /* un mot dans une phrase : le cadre ne touche pas les lettres */
.glossaire div { padding: 4px 0; border-bottom: 1px solid var(--ligne); font-size: 14px; }
.reglage { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--ligne); flex-wrap: wrap; }
.choix-reg { display: flex; gap: 4px; flex-wrap: wrap; }
.etoiles { color: var(--or); letter-spacing: 1px; font-size: 12px; }
.etoiles i { color: #3a4c6d; font-style: normal; }
.engagements .choix { margin-top: 6px; }
/* 12/11 : « Mes enchères » en haut des 3 onglets de ventes ; une ligne mène au lot */
/* Coupe des Clubs (v15) */
.score-c { text-align: center; }
.score-l { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.score-l .esp { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
.score-l .eq1 { text-align: right; color: var(--or); }
.score-l .eq2 { text-align: left; }
.pts-c { font-size: 24px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.prop-c input { flex: none; width: 20px; height: 20px; }
.ligues { display: flex; gap: 4px; margin: 6px 0; }
.ligues span { flex: 1; text-align: center; font-size: 11px; padding: 4px 0; border-radius: 6px; background: var(--fondi); color: var(--doux); }
.ligues span.on { background: var(--or); color: #1a1405; font-weight: 800; }
.classement tr.monte td:first-child { box-shadow: inset 3px 0 0 var(--vert); }
.classement tr.descend td:first-child { box-shadow: inset 3px 0 0 #e5484d; }
.defi-c { border-left: 3px solid var(--or); }
/* Grande Course du soir (v17.25) : toujours dorée, quelle que soit la saison */
.grande-c { background: linear-gradient(135deg, #3d2e08, #5a4510); border: 1px solid #c9a227; color: #ffe9a8; }
.grande-c .sous { color: #f0dca0; }
.badge.x10 { background: linear-gradient(135deg, #f5c542, #d99a16); color: #2a1d02; font-weight: 800; }
.choix.slot-grande { background: linear-gradient(90deg, rgba(245, 197, 66, .22), transparent); border-left: 3px solid #f5c542; border-radius: 8px; }
.bandeau.grande { background: linear-gradient(135deg, #4a3608, #6b4f10); border-color: #c9a227; color: #ffe08a; }
.rec-c { border-left: 3px solid var(--vert); }
.choix.lien > b:last-child { margin-left: auto; }
/* v18.13 : calendrier de la Coupe, mon prochain adversaire humain mis en avant */
details.bloc summary { cursor: pointer; }
details.bloc .sous { margin-top: 4px; }
/* carnet de saison en tuiles (v17.6) */
.carnet-hero { display: flex; align-items: center; gap: 14px; padding: 14px; margin-bottom: 10px; border-radius: 18px; border: 1px solid #7a6220; background: radial-gradient(circle at 12% 20%, #5a4410 0, transparent 60%), linear-gradient(135deg, #2b2410, #13213a 70%); }
.ch-medaille { --pc: 0%; flex: none; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--or) var(--pc), #33415e 0); box-shadow: 0 0 22px rgba(245, 197, 66, .3); }
.ch-medaille > div { width: 76px; height: 76px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--sec), var(--fondi)); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.ch-medaille b { font-size: 30px; font-weight: 900; color: var(--or); font-variant-numeric: tabular-nums; }
.ch-medaille small { color: var(--doux); font-size: 12px; margin-top: 3px; }
.ch-info { flex: 1; min-width: 0; }
.ch-sur { color: var(--doux); text-transform: uppercase; letter-spacing: .6px; font-size: 11px; font-weight: 700; }
.ch-etoiles { font-size: 25px; font-weight: 900; line-height: 1.25; font-variant-numeric: tabular-nums; }
.ch-jauge { height: 9px; border-radius: 99px; background: var(--fond); overflow: hidden; margin: 4px 0 6px; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .6); }
.ch-jauge i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #d69e1c, var(--or), #ffe78a); }
.ch-grand { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 12px; margin-bottom: 10px; color: var(--texte); font: inherit; background: var(--fond2); border: 1px solid var(--ligne); border-radius: 14px; cursor: pointer; }
.ch-grand-ico { font-size: 26px; line-height: 1; }
.ch-grand small { display: block; color: var(--doux); font-size: 11px; }
.ch-grand b { display: block; font-size: 13px; line-height: 1.25; }
.ch-grand .esp { flex: 1; min-width: 0; }
.ch-grand > .sous { white-space: nowrap; font-weight: 700; }
/* v19.98 : coffre sans fin du carnet, après le palier 100 */
.ch-coffre { padding: 10px 12px; margin-bottom: 12px; background: var(--fond2); border: 1px solid var(--or); border-radius: 14px; }
.ch-coffre-l { display: flex; align-items: center; gap: 10px; }
.ch-coffre-l .esp { flex: 1; min-width: 0; }
.ch-coffre small { display: block; color: var(--doux); font-size: 11px; }
.ch-coffre b { display: block; font-size: 14px; line-height: 1.3; }
.ch-coffre b img.ico-img.res { width: 18px; height: 18px; vertical-align: -3px; }
.ch-coffre-btn { display: block; width: 100%; margin-top: 8px; padding: 11px; font-size: 15px; }
.ch-tout { display: block; width: 100%; margin-bottom: 12px; padding: 13px; font-size: 16px; }
.cp-groupe { margin-bottom: 12px; }
.cp-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; width: 100%; padding: 4px 2px 7px; background: none; border: 0; color: var(--texte); font: inherit; text-align: left; }
.cp-tete:disabled { opacity: 1; }
.cp-groupe.fini .cp-tete { padding: 10px 12px; background: #10301e; border: 1px solid #1f6b3e; border-radius: 12px; cursor: pointer; }
.cp-groupe.fini .cp-tete .sous { color: #7fe3a8; }
.cp-groupe.fini .cp-grille { margin-top: 8px; }
.cp-grille { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.cp { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 80px; padding: 15px 2px 6px; color: var(--texte); font: inherit; background: linear-gradient(170deg, var(--pill), var(--fondi)); border: 1.5px solid var(--ligne); border-radius: 12px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cp:not(:nth-child(5n))::after { content: ''; position: absolute; right: -8px; top: 50%; width: 7px; height: 3px; background: var(--ligne); }
.cp.pris:not(:nth-child(5n))::after, .cp.pret:not(:nth-child(5n))::after { background: var(--or); }
.cp-n { position: absolute; top: 3px; left: 6px; font-size: 10px; font-weight: 800; color: var(--doux); font-variant-numeric: tabular-nums; }
.cp-ico { font-size: 25px; line-height: 32px; height: 32px; }
.cp-ico .ico-img { width: 32px; height: 32px; vertical-align: top; }
.cp-txt { font-size: 10px; font-weight: 700; line-height: 1.1; text-align: center; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.cp.rare { border-color: #4a86d8; background: linear-gradient(170deg, #1c3a68, var(--fondi)); } .cp.rare .cp-txt { color: #8fc0ff; }
.cp.epique { border-color: #9b5fd6; background: linear-gradient(170deg, #3a2260, var(--fondi)); } .cp.epique .cp-txt { color: #d9a6ff; }
.cp.legendaire { border-color: var(--or); background: linear-gradient(170deg, #5c4410, #1a1a22); box-shadow: 0 0 10px rgba(245, 197, 66, .3); } .cp.legendaire .cp-txt { color: var(--or); }
.cp.sceau { border-color: #2fb8a6; background: linear-gradient(170deg, #124a4a, var(--fondi)); } .cp.sceau .cp-txt { color: #7fe6d8; }
.cp.cosm { border-color: #e0609f; background: linear-gradient(170deg, #4d1d3e, var(--fondi)); } .cp.cosm .cp-txt { color: #ff9fce; }
.cp.eclat { border-color: #5fd0e8; background: linear-gradient(170deg, #17465c, var(--fondi)); } .cp.eclat .cp-txt { color: #a5ecff; }
.cp.copeaux .cp-txt { color: #c9d3df; }
.cp.cheval { border-width: 2px; box-shadow: 0 0 16px rgba(245, 197, 66, .6); }
.cp.cheval .cp-ico { font-size: 30px; }
.cp.gemmes .cp-txt { color: #8fe3ff; }
.cp.argent .cp-txt { color: #ffe08a; }
.cp.verrou .cp-ico, .cp.verrou .cp-txt { opacity: .62; }
.cp.pret { border-color: var(--or); background: linear-gradient(170deg, #5c4a12, #2a2410); animation: cp-pouls 1.6s ease-in-out infinite; }
.cp.pret .cp-n { color: var(--or); }
.cp.pris { filter: saturate(.35) brightness(.72); box-shadow: none; }
.cp-ok { position: absolute; top: 3px; right: 4px; width: 15px; height: 15px; display: grid; place-items: center; border-radius: 50%; background: var(--vert); color: #06210f; font-size: 10px; font-weight: 900; }
.cp.suivant { border-color: #fff; }
.cp-prog { position: absolute; left: 5px; right: 5px; bottom: 3px; height: 3px; border-radius: 9px; background: var(--fond); overflow: hidden; }
.cp-prog i { display: block; height: 100%; background: var(--or); }
.cp:active { transform: scale(.96); }
.ch-gains { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0; }
.ch-gains span { padding: 4px 9px; font-size: 12px; background: var(--fondi); border: 1px solid var(--ligne); border-radius: 99px; }
.ch-gains b { color: var(--or); margin-left: 2px; }
@keyframes cp-pouls { 50% { box-shadow: 0 0 14px rgba(245, 197, 66, .75); } }
body.anim-reduite .cp.pret { animation: none; }
@media (prefers-reduced-motion: reduce) { .cp.pret { animation: none; } }
.alerte-carnet { background: #4a1c1c; border-radius: 8px; padding: 8px; font-weight: 700; }
/* clubs (v14) */
.bas button { min-width: 0; font-size: 9.5px; letter-spacing: -.2px; }
@media (max-width: 359px) { .bas button { font-size: 0; gap: 0; } .bas button span { font-size: 20px; } }
.blason { display: inline-grid; place-items: center; flex: none; border-radius: 30% 30% 50% 50%; border: 2px solid rgba(255, 255, 255, .55); }
.blason i { font-style: normal; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .7)); }
/* v20.23 : sous-onglets du Club sur UNE ligne (3 ou 4 colonnes égales) : icône au-dessus, nom dessous, pastilles en coin
   23/11 : même forme pour toutes les barres .ss-ico (Écurie, Enchères, Atelier, Défis, Aide ; boutons faits par boutonSs) ;
   compteurs (« 5/8 », 🔒, 🍼2) en petite bulle grise .ss-n dans le coin */
.ss-ico { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; }
.ss-ico button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; min-height: 48px; padding: 6px 2px 5px; font-size: 12px; line-height: 1.1; white-space: nowrap; }
.ss-ico .ss-i { font-size: 17px; line-height: 20px; height: 20px; display: flex; align-items: center; }
.ss-ico .ss-t { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.ss-ico .ss-p { position: absolute; top: -6px; right: 0; display: flex; gap: 2px; pointer-events: none; }
.ss-ico .ss-p .pastille-n, .ss-ico .ss-p .pt-af, .ss-ico .ss-p .ss-n { margin: 0; min-width: 0; padding: 0 5px; font-size: 10px; line-height: 15px; border-radius: 99px; box-shadow: 0 0 0 1.5px var(--fondi); vertical-align: 0; }
.ss-ico .ss-p .pastille-n.neuf { font-size: 9px; padding: 0 4px; }
.ss-ico .ss-p .ss-n { background: var(--sec); color: var(--doux); font-weight: 600; opacity: 1; font-variant-numeric: tabular-nums; }
.ss-ico .ss-p .ss-n.r-plein { background: var(--rouge); color: #fff; }
.club-tete { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.club-tete h2 { margin: 0; }
.club-fil { overflow-y: auto; background: var(--fondi); border: 1px solid var(--ligne); border-radius: 10px; padding: 8px; }
.msg { position: relative; background: var(--fond2); border-radius: 10px; padding: 6px 30px 6px 9px; margin: 0 16px 6px 0; }
.msg.moi { background: var(--moi); margin: 0 0 6px 16px; }
.msg.auto { background: none; text-align: center; padding: 2px 6px; margin: 0 0 6px; color: var(--doux); font-size: 12px; }
.msg .txt { overflow-wrap: anywhere; }
.msg-act { position: absolute; top: 4px; right: 4px; display: flex; flex-direction: column; gap: 2px; }
.msg-act button { background: none; border: 0; font-size: 12px; opacity: .55; padding: 1px; }
/* tribune du match (registre 164) : mon club à bord doré (comme mon nom sur la carte du match), l'adversaire à bord rouge */
/* v20.03 : la discussion est dans le mini chat (onglet 🏟️ Match) ; ici la carte d'état de Club › Coupe et la ligne d'état de l'onglet */
.trib-c .trib-ouvrir { margin-top: 8px; min-height: 44px; }
.mc-trib-etat { flex: none; margin-top: 6px; font-size: 12px; }
.msg.mien { border-left: 3px solid var(--or); }
.msg.adv { border-left: 3px solid #e0605a; background: #2a2236; }
.club-saisie { display: flex; gap: 6px; margin-top: 8px; }
.club-saisie input { flex: 1; min-width: 0; }
.club-saisie input, .champ, input.code-club { background: var(--fondi); color: var(--texte); border: 1px solid var(--ligne); border-radius: 8px; padding: 9px; font: inherit; }
.champ { width: 100%; margin-bottom: 8px; }
input.code-club { width: 120px; text-transform: uppercase; letter-spacing: 2px; }
/* v20.54 : code cadeau (Profil et réglages › Compte) */
.code-cadeau { flex-wrap: nowrap; align-items: center; } .code-cadeau input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: 2px; }
b.code-club { letter-spacing: 2px; color: var(--or); margin-right: 6px; }
.bloc.fait { border-color: var(--vert); }
/* quêtes de club : barre à 3 paliers */
.q-barre { margin: 8px 0 4px; }
.q-barre .jauge { height: 8px; border-radius: 4px; margin: 0; }
.q-marques { position: relative; height: 26px; }
.q-marque { position: absolute; top: 0; transform: translateX(-50%); font-size: 12px; line-height: 1.2; white-space: nowrap; font-variant-numeric: tabular-nums; opacity: 0.55; }
.q-marque i { display: block; width: 2px; height: 12px; margin: -10px auto 2px; background: #cfd8e6; border-radius: 1px; }
.q-marque.dernier { transform: translateX(-100%); }
.q-marque.dernier i { margin-right: 0; }
.q-marque.ok { opacity: 1; font-weight: 700; }
.q-marque.ok i { background: var(--vert); }
.q-suite { margin: 2px 0; font-size: 13px; }
#feuille .chip.on { outline: 2px solid var(--or); }
.bas button.central { flex: 1.35; }
.bas button.central span { font-size: 28px; background: var(--pill); border: 2px solid var(--or); border-radius: 50%; width: 46px; height: 46px; display: grid; place-items: center; margin-top: -18px; filter: none; }

/* écran de compte (v15.6) */
.compte-page { max-width: 400px; margin: 0 auto; padding: 8px 4px; }
.compte-page h2 { text-align: center; }
.compte-page > .sous, .compte-page > p { text-align: center; }
.compte-page label, #form-ecurie label { display: block; font-weight: 600; margin: 12px 0 4px; }
.compte-page input, #form-ecurie #c-ecurie { width: 100%; box-sizing: border-box; padding: 10px 12px; font-size: 16px; border-radius: 10px; border: 1px solid var(--ligne); background: var(--fondi); color: #fff; }
.onglets-compte { display: flex; gap: 4px; background: var(--fondi); border-radius: 12px; padding: 4px; margin: 12px 0 4px; }
.onglets-compte button { flex: 1; border: 0; background: none; color: var(--doux); font-weight: 700; padding: 9px 4px; border-radius: 9px; font-size: 14px; cursor: pointer; }
.onglets-compte button.on { background: var(--or); color: #1a1205; }
.champ-mdp { position: relative; }
.champ-mdp input { padding-right: 46px; }
.champ-mdp .oeil { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); background: none; border: 0; font-size: 18px; padding: 6px 8px; cursor: pointer; opacity: .6; }
.champ-mdp .oeil.on { opacity: 1; }
.aide-champ { margin: 4px 0 0; font-size: 12.5px; color: var(--doux); text-align: left !important; }
.err-champ { margin: 4px 0 0; font-size: 13px; color: #ff8a80; font-weight: 600; min-height: 0; text-align: left !important; }
.envoi-compte { width: 100%; margin-top: 16px; padding: 12px; font-size: 16px; }
.lien-clair { color: #ffd76a; text-decoration: underline; font-weight: 600; }
/* connexion avec Google (registre 331, v20.30) : bouton clair comme le demande Google (fond blanc, texte sombre, logo G), le même en toute saison */
:root { --google-fond: #ffffff; --google-texte: #1f1f1f; --google-bord: #747775; }
.ou-sep { display: flex; align-items: center; gap: 10px; margin: 16px 0 10px; color: var(--doux); font-size: 13px; }
.ou-sep::before, .ou-sep::after { content: ''; flex: 1; height: 1px; background: var(--ligne); }
.btn-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--google-bord); background: var(--google-fond); color: var(--google-texte); font-size: 16px; font-weight: 600; cursor: pointer; font-family: inherit; }
.btn-google:disabled { opacity: .6; }
.g-logo { flex: none; display: inline-block; vertical-align: middle; }
.compte-page > p.google-crea { display: flex; gap: 10px; align-items: flex-start; text-align: start; background: var(--fondi); border-radius: 12px; padding: 10px 12px; margin: 12px 0 4px; }
/* registre 331 : « J'ai déjà une écurie » en tête de l'écran de création après Google (bien visible, avant le formulaire) */
.google-relier { background: var(--carte); border: 2px solid var(--or); border-radius: 12px; padding: 12px; margin: 12px 0 4px; text-align: start; }
.google-relier p { margin: 0 0 10px; }
.google-relier .btn { width: 100%; min-height: 46px; }
.google-lie, .btn-google-p { display: inline-flex; align-items: center; gap: 8px; }
.form-mdp-g label { display: block; font-weight: 600; margin: 12px 0 4px; }
.form-mdp-g input { width: 100%; box-sizing: border-box; padding: 10px 12px; font-size: 16px; border-radius: 10px; border: 1px solid var(--ligne); background: var(--fondi); color: #fff; }
/* clubs en avant (v15.6) */
.invite-club { position: relative; padding-right: 36px; }
.invite-x { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--pill, #1d2f50); color: #fff; font-size: 12px; cursor: pointer; }
.apports-club { margin: 6px 0; padding-left: 4px; list-style: none; }
.apports-club li { margin: 5px 0; }

/* Atelier (v16) */
:root { --mythique: #ff4d6d; }
.pastille.mythique { background: #b3123a; }
.eq.mythique, .eqmini .mythique { border-color: var(--mythique); box-shadow: 0 0 8px rgba(255, 77, 109, .45); }
.case-eq.mythique { border-color: var(--mythique); box-shadow: 0 0 8px rgba(255, 77, 109, .45); }
.objet.eqv.mythique { border-color: var(--mythique); }
.r-mythique { color: var(--mythique); }
button.eq { font: inherit; color: inherit; background: none; cursor: pointer; }
button.eq.choisi { outline: 2px solid var(--or); outline-offset: 1px; background: rgba(245, 197, 66, .18); }
.at-resultat { position: sticky; top: 56px; z-index: 5; }
.at-resultat > div { margin-top: 6px; }
/* compteurs touchables de l'Atelier (registre 143) */
.at-compteurs { display: flex; gap: 6px; margin-bottom: 6px; }
.at-res { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 4px; background: var(--fondi); border: 1px solid var(--ligne); border-radius: 12px; color: inherit; font: inherit; cursor: pointer; }
.at-res span { font-size: 18px; line-height: 1.1; }
.at-res b { font-size: 17px; }
.at-res small { color: var(--doux); font-size: 11px; }
.at-res:active { background: var(--sec); }
.at-fiche { margin: 4px 0 12px; padding-left: 20px; }
.at-fiche li { margin: 4px 0; }
.at-groupe .eqs { margin-top: 6px; }

/* Cases d'équipement de la fiche (v16.1) */
.slots { display: grid; grid-template-columns: repeat(5, minmax(0, 72px)); gap: 8px; }
.slot { position: relative; aspect-ratio: 1; min-width: 0; padding: 0; border: 2px solid var(--commun); border-radius: 12px; background: rgba(255, 255, 255, .05); color: inherit; font: inherit; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.slot.vide { border-style: dashed; border-color: rgba(255, 255, 255, .22); background: none; }
.slot.vide .slot-ico { opacity: .4; filter: grayscale(1); }
.slot.rare { border-color: var(--rare); background: rgba(61, 139, 253, .14); } .slot.epique { border-color: var(--epique); background: rgba(176, 92, 255, .16); }
.slot.legendaire { border-color: var(--legendaire); background: rgba(245, 179, 1, .14); box-shadow: 0 0 8px rgba(245, 179, 1, .3); }
.slot.mythique { border-color: var(--mythique); background: rgba(255, 77, 109, .16); box-shadow: 0 0 10px rgba(255, 77, 109, .45); }
.slot-ico { font-size: 26px; line-height: 1; }
.slot-bonus, .slot-dispo { position: absolute; top: 2px; right: 4px; font-size: 12px; }
.slot-dispo { font-weight: 400; opacity: .7; }
.slot small { position: absolute; bottom: 5px; left: 0; right: 0; text-align: center; font-size: 9px; opacity: .75; }
.slot-niv { position: absolute; bottom: 3px; left: 3px; font-size: 9.5px; font-weight: 700; color: var(--or); line-height: 1; }
.slot:has(.slot-niv) small { left: auto; right: 4px; text-align: right; }

/* Fiche d'un cheval au repos (v16.4) */
.bloc-repos { display: flex; flex-direction: column; gap: 8px; }
.bloc-repos .actions { margin-top: 0; }
.btn.gros { width: 100%; padding: 13px 12px; font-size: 16px; }
.btn.gros small { display: block; font-size: 12px; font-weight: 400; opacity: .8; }

/* Bases graphiques (v16.5) : icônes, boutons, fiche */
.ic { width: 1em; height: 1em; vertical-align: -.14em; fill: currentColor; flex: none; }
.ic path { fill: currentColor; }
.bas button span { line-height: 1; display: grid; place-items: center; filter: none; }
.bas button span .ic { width: 22px; height: 22px; }
.bas button.central span .ic { width: 28px; height: 28px; }
.btn { min-height: 40px; border-radius: 12px; }
.btn.petit { min-height: 34px; }
.btn:active:not(:disabled) { transform: translateY(1px); filter: brightness(.94); }
.slot-ico .ic { width: 30px; height: 30px; }
.eq .ic { width: 16px; height: 16px; }
.fiche-tete { display: flex; align-items: center; gap: 12px; padding-right: 34px; }
.fiche-tete h2 { margin: 0 0 4px; line-height: 1.15; }
.fiche-tete .sous { margin-top: 4px; }
.fiche-tete > .esp { flex: 1 1 auto; min-width: 0; }
.fiche-note { text-align: center; flex: none; }
.fiche-note b { display: block; font-size: 30px; line-height: 1; color: var(--or); }
.fiche-note small { font-size: 10px; letter-spacing: .08em; color: var(--doux); }
.fiche-niv { display: flex; align-items: center; gap: 8px; margin: 10px 0; flex-wrap: wrap; }
.fiche-niv .jauge { flex: 1; min-width: 80px; margin: 0; }
.fiche-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.fiche-chips > div { background: var(--fondi); border: 1px solid var(--ligne); border-radius: 12px; padding: 7px 9px; min-width: 0; }
.fiche-chips small { display: block; color: var(--doux); font-size: 11.5px; }
.fiche-chips b { font-size: 15px; }
.fiche-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fiche-stats > div { display: flex; justify-content: space-between; align-items: baseline; background: var(--fondi); border-radius: 10px; padding: 7px 10px; cursor: pointer; }
.fiche-stats span { color: var(--doux); font-size: 12.5px; }
.fiche-stats b { font-size: 17px; }
.fiche-stats b.plus { color: var(--vert); } .fiche-stats b.moins { color: var(--rouge); }
.fiche-plus { margin-top: 12px; border-top: 1px solid var(--ligne); padding-top: 10px; }
.fiche-plus > summary { cursor: pointer; font-weight: 700; color: var(--doux); padding: 4px 0; }
.bloc-repos > b { display: flex; align-items: center; gap: 6px; }
.bloc-repos > b .ic { width: 20px; height: 20px; }
.btn.gros .ic { width: 22px; height: 22px; vertical-align: -.3em; margin-right: 4px; }
/* 19/11 (UX repos) : bloc repos « sommeil » de la fiche, objet possédé en bouton principal, gemmes en second */
.bloc.bloc-repos { background: linear-gradient(160deg, var(--dort2), var(--dort)); border: 1px solid var(--dort-bord); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); gap: 10px; }
.repos-tete { display: flex; align-items: center; gap: 12px; }
.repos-zz { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .28); color: var(--dort-txt);
  border: 1px solid var(--dort-bord); animation: dort-flotte 3s ease-in-out infinite; }
.repos-zz .ic { width: 30px; height: 30px; }
.repos-zz { font-size: 26px; line-height: 1; }   /* v20.31 : 😮‍💨 (trop fatigué) à la place de l'icône du sommeil */
@keyframes dort-flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.repos-tete small { display: block; color: var(--dort-txt); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.repos-compte { display: block; font-size: 30px; line-height: 1.1; color: var(--texte); }
.repos-tete .sous { color: var(--dort-txt); opacity: .85; }
.repos-barre { height: 8px; border-radius: 4px; background: rgba(0, 0, 0, .35); overflow: hidden; }
.repos-barre i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--dort-bord), var(--dort-txt)); transition: width 1s linear; }
.btn.repos-recup { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 12px; min-height: 52px; }
.btn.repos-recup .ico-img { width: 30px; height: 30px; flex: none; }
.btn.repos-recup b { display: block; font-size: 15px; }
.btn.repos-recup small { display: block; font-size: 12px; font-weight: 500; opacity: .85; }
.btn.repos-recup [data-recup-fin], .btn.repos-recup [data-douche-fin] { font-variant-numeric: tabular-nums; }
/* 20/11 : Douche + massage dans le bloc repos (soin gratuit), grisée quand les soins du jour sont pris */
.bloc.bloc-repos .btn.repos-douche { background: rgba(0, 0, 0, .22); border: 1px solid var(--dort-bord); color: var(--texte); }
.repos-douche-ico { flex: none; width: 30px; text-align: center; font-size: 24px; line-height: 1; }
.bloc.bloc-repos .btn.repos-douche:disabled { opacity: .5; filter: grayscale(1); }
.bloc-repos .repos-g .btn { background: transparent; border-color: var(--dort-bord); color: var(--dort-txt); font-weight: 500; }
.obj-manque { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: rgba(0, 0, 0, .22); border-radius: 12px; padding: 8px 10px; }
.obj-manque > .ico-img { width: 28px; height: 28px; flex: none; }
.obj-manque > .esp { flex: 1; min-width: 170px; }
.obj-manque .btn { flex: none; min-height: 40px; }
.btn.avoine-vite { min-height: 40px; }
.btn.avoine-vite small { font-weight: 500; opacity: .8; }
/* rappel ailleurs sur la fiche : pastille sur le portrait, case « État » colorée */
.portrait-dort { position: relative; display: inline-flex; flex: none; }
.pastille-dort { position: absolute; right: -2px; bottom: 2px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--dort2); border: 2px solid var(--dort-bord); color: var(--dort-txt); }
.pastille-dort .ic { width: 16px; height: 16px; }
.fiche-chips > div.chip-dort { background: var(--dort); border-color: var(--dort-bord); }
.chip-dort small { color: var(--dort-txt); }
.chip-dort b { display: flex; align-items: center; gap: 4px; white-space: nowrap; color: var(--texte); }
.chip-dort b .ic { width: 16px; height: 16px; color: var(--dort-txt); }
/* carte de l'écurie : étiquette « 💤 2h09 » et récup en un geste */
.carte .ruban.dort { background: var(--dort2); border-color: var(--dort-bord); color: var(--texte); font-size: 12px; padding: 2px 10px; }
.carte.repos .in > :not(.recup-vite) { filter: saturate(.55) brightness(.8); }
.carte.repos .in { filter: none; }
.btn.recup-vite { display: flex; align-items: center; justify-content: center; gap: 3px; width: 100%; margin-top: 7px; min-height: 40px; padding: 5px 4px; font-size: 12px; white-space: nowrap; overflow: hidden; }
.btn.recup-vite .ico-img { width: 18px; height: 18px; }
.btn.recup-vite span { font-variant-numeric: tabular-nums; }
html.anim-coupee .repos-zz { animation: none; }
@media (prefers-reduced-motion: reduce) { .repos-zz { animation: none; } .repos-barre i { transition: none; } }

/* Tutoriel (v16.5) */
.tuto { position: fixed; left: 10px; right: 10px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 90; max-width: 520px; margin: 0 auto; background: var(--pill); border: 2px solid var(--or); border-radius: 14px; padding: 10px 12px; box-shadow: 0 10px 28px rgba(0, 0, 0, .6); }
.tuto[hidden] { display: none; }
.tuto.en-haut { bottom: auto; top: calc(52px + env(safe-area-inset-top)); }
.tuto p { margin: 0; font-size: 14.5px; }
.tuto .actions { margin-top: 8px; }
.tuto-pas { position: relative; font-size: 11px; color: var(--doux); padding-bottom: 5px; margin-bottom: 6px; border-bottom: 2px solid var(--ligne); }
.tuto-pas i { position: absolute; left: 0; bottom: -2px; height: 2px; background: var(--or); }
.tuto-cible { outline: 3px solid var(--or); outline-offset: 2px; border-radius: 10px; animation: tuto-pouls 1.1s ease-in-out infinite; }
@keyframes tuto-pouls { 50% { outline-color: transparent; box-shadow: 0 0 0 7px rgba(245, 197, 66, .3); } }
body.anim-reduite .tuto-cible { animation: none; }
.tuto-voile { position: fixed; z-index: 75; pointer-events: none; border-radius: 12px; box-shadow: 0 0 0 200vmax rgba(3, 7, 15, .66); }
.tuto-voile[hidden] { display: none; }
.tuto .actions .btn:not(.sec) { animation: tuto-pouls 1.1s ease-in-out infinite; outline: 3px solid var(--or); outline-offset: 2px; }
body.anim-reduite .tuto .actions .btn:not(.sec) { animation: none; }
.tuto.rappel { animation: tuto-rappel .35s ease-in-out; }
body.anim-reduite .tuto.rappel { animation: none; }
@keyframes tuto-rappel { 25% { transform: translateX(-7px); } 75% { transform: translateX(7px); } }
/* 09/11 : « passer le guide » = petit lien gris, pas un bouton (un joueur pressé le prenait pour « suivant ») ; zone tactile de 32 px quand même */
.tuto .tuto-passer { margin-left: auto; min-height: 32px; padding: 6px 2px 6px 10px; background: none; border: 0; color: var(--doux); font-size: 12px; text-decoration: underline; text-underline-offset: 2px; opacity: .85; }
.passer-guide p { color: var(--doux); margin: 0 0 14px; }
.passer-guide .btn { display: block; width: 100%; }
.passer-guide .btn.sec { margin-top: 10px; }
.tuto.sur-feuille { bottom: calc(10px + env(safe-area-inset-bottom)); }
body.tuto-bas main, body.tuto-bas .feuille .panneau { padding-bottom: 210px; }
/* v20.62 : plus de règle .popmot ici : la bulle ancrée évite toute seule la bulle du guide (placerPop) */
/* v17 : Lignée, cheval mythique */
.carte.mythique, .lv.mythique { --r: linear-gradient(145deg, #ffb3c1, #b3123a 50%, #ff8fa3 70%, #7a0c28); }
.carte.mythique .rar { color: var(--mythique); }
.choix.lig-on { outline: 2px solid var(--or); outline-offset: -2px; }
/* v17.2 : coupes et médailles de fin de direct */
/* v20.25 : coupe redessinée (replay3d.js › trophee). Elle tombe en tournant (.8 s), halo et anneau (.35 s), confettis pour le 1er,
   puis flotte doucement ; reflet et étoiles dans le SVG. Sans .anime (animations réduites ou coupées) : image fixe, étoiles visibles. */
.replay .fin-trophee { --c: #ffd75e; --h: rgba(255, 205, 70, .5); --r: rgba(255, 220, 120, .28); position: relative; flex: 0 0 auto; display: flex; justify-content: center; pointer-events: none; }
.replay .fin-trophee.p2 { --c: #e8eef5; --h: rgba(220, 232, 245, .42); --r: rgba(230, 238, 248, .24); }
.replay .fin-trophee.p3 { --c: #f2a868; --h: rgba(230, 140, 70, .42); --r: rgba(245, 175, 115, .24); }
.replay .fin-trophee.p4 { --c: #8fc0ff; --h: rgba(110, 165, 230, .35); }
.replay .fin-trophee.p5 { --c: #9fd88f; --h: rgba(120, 200, 105, .35); }
.replay .fin-trophee .coupe { position: relative; z-index: 1; line-height: 0; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .55)); }
.replay .fin-trophee .halo { position: absolute; left: 50%; top: 50%; width: 220px; height: 220px; margin: -110px 0 0 -110px; border-radius: 50%; background: radial-gradient(circle, var(--h), transparent 62%); }
.replay .fin-trophee .anneau { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border: 3px solid var(--c); border-radius: 50%; opacity: 0; }
.replay .fin-trophee .lvl-confettis { position: absolute; top: 40%; }
.replay .fin-trophee .rayons { display: none; position: absolute; left: 50%; top: 50%; width: 360px; height: 360px; margin: -180px 0 0 -180px; border-radius: 50%; background: repeating-conic-gradient(var(--r) 0 12deg, transparent 12deg 30deg); -webkit-mask-image: radial-gradient(circle, #000 25%, transparent 68%); mask-image: radial-gradient(circle, #000 25%, transparent 68%); }
.replay .fin-trophee.podium .rayons { display: block; }
.replay .fin-trophee .tr-etoile { transform-box: fill-box; transform-origin: center; opacity: .85; }
.replay .fin-trophee .tr-eclat { opacity: 0; }
.replay .fin-trophee.anime .coupe { animation: coupe-arrive .8s cubic-bezier(.2, 1.4, .4, 1) both, coupe-flotte 3.2s .8s ease-in-out infinite; }
.replay .fin-trophee.anime .rayons { animation: tt-apparait .5s .3s ease-out both, rayons-tour 9s .3s linear infinite; }
.replay .fin-trophee.anime .halo { animation: tt-apparait .5s .3s ease-out both, coupe-halo 2.4s .8s ease-in-out infinite; }
.replay .fin-trophee.anime .anneau { animation: lvl-anneau .75s .4s ease-out both; }
.replay .fin-trophee.anime .tr-etoile { opacity: 0; animation: coupe-scintille 2.4s 1s ease-in-out infinite; }
.replay .fin-trophee.anime .tr-eclat { opacity: .6; animation: coupe-eclat 3.4s .9s ease-in-out infinite; }
@keyframes coupe-arrive { 0% { transform: translateY(-70px) scale(.25) rotate(-16deg); opacity: 0; } 55% { opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes coupe-flotte { 50% { transform: translateY(-5px); } }
@keyframes coupe-halo { 50% { transform: scale(1.12); opacity: .75; } }
@keyframes coupe-scintille { 0%, 100% { transform: scale(0) rotate(0); opacity: 0; } 20% { transform: scale(1.15) rotate(45deg); opacity: 1; } 45% { transform: scale(0) rotate(90deg); opacity: 0; } }
@keyframes coupe-eclat { 0% { transform: translateX(0); } 45%, 100% { transform: translateX(135px); } }
html.anim-coupee .replay .fin-trophee *, html.anim-coupee .replay .fin-trophee svg * { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .replay .fin-trophee * { animation: none !important; } .replay .fin-trophee .tr-eclat, .replay .fin-trophee .anneau, .replay .fin-trophee .lvl-confettis { display: none; } .replay .fin-trophee .tr-etoile { opacity: .85; } }
@keyframes coupe-arrive { 0% { transform: scale(0) rotate(-20deg); opacity: 0; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes rayons-tour { to { transform: rotate(360deg); } }
.replay .fin-compte { margin-top: 10px; font-size: 12px; color: var(--doux); }
.replay .fin-barre { height: 3px; margin-top: 6px; border-radius: 2px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.replay .fin-barre i { display: block; height: 100%; width: 100%; background: var(--or); }

/* Images des objets et équipements : elles suivent la taille du texte autour */
.ico-img { display: inline-block; width: 1.3em; height: 1.3em; object-fit: contain; vertical-align: -.3em; -webkit-user-drag: none; }
/* v19.48 : la pièce des coins suit TOUJOURS la taille du texte (img/coin.png, mise par coinsEnImages d'icones.js) */
/* .coin répété exprès : passe devant les règles « .x .y .ico-img » (badges, puces, objets) qui grossissent les autres icônes */
img.ico-img.coin.coin.coin { width: 1.05em; height: 1.05em; vertical-align: -.16em; margin-left: .05em; }
/* v19.81 : Copeaux, Sceaux, Éclats (icoRes) : à la taille du texte, plus grands dans les cases de la Lignée et du carnet */
img.ico-img.res { width: 1.2em; height: 1.2em; vertical-align: -.25em; }
.lig-case .lc-ico img.ico-img.res { width: 30px; height: 30px; vertical-align: middle; }
.cp-ico img.ico-img.res, .ch-grand-ico img.ico-img.res { width: 32px; height: 32px; vertical-align: top; }
.at-res-l img.ico-img.res { width: 22px; height: 22px; vertical-align: middle; }
#feuille h2 img.ico-img.res { vertical-align: -.2em; }
.eqmini .ico-img { width: 17px; height: 17px; vertical-align: middle; }
.eq .ico-img { width: 18px; height: 18px; vertical-align: middle; }
.objet .ico .ico-img { width: 52px; height: 52px; vertical-align: middle; }
.ico-eq .ico-img { width: 30px; height: 30px; }
.ico-coffre .ico-img { width: 34px; height: 34px; vertical-align: middle; }
.coffre .boite .ico-img { width: 60px; height: 60px; vertical-align: middle; }
.chip .ico-img { width: 18px; height: 18px; vertical-align: middle; }
.slot-ico .ico-img { width: 36px; height: 36px; margin-bottom: 14px; vertical-align: middle; }
.slot-bonus { text-shadow: 0 1px 3px #000, 0 0 2px #000; }
.at-groupe b .ico-img { width: 26px; height: 26px; vertical-align: middle; }
/* v17.8 : rond à préparer (or) ou course en direct (rouge) : bordure de l'écran et icône Courses. Couleurs fixes : celles du bandeau, pas celles de la saison */
.bord-alerte { position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: 0; transition: opacity .4s; will-change: opacity; }
.bord-alerte.on { opacity: .6; }
.bord-alerte[data-etat="rond"] { box-shadow: inset 0 0 0 2px #f5c542, inset 0 0 24px 6px rgba(245, 197, 66, .75); }
.bord-alerte[data-etat="direct"] { box-shadow: inset 0 0 0 2px #ff4d4d, inset 0 0 24px 6px rgba(255, 60, 60, .8); }
/* attire l'œil quelques secondes puis se calme : il y a 2 courses toutes les 10 min */
.bord-alerte.on[data-etat="rond"] { animation: bord-pulse 1.3s ease-in-out 3; }
.bord-alerte.on[data-etat="direct"] { animation: bord-pulse .9s ease-in-out 6; }
@keyframes bord-pulse { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }
.bas button[data-alerte="rond"] { color: #f5c542; }
.bas button[data-alerte="direct"] { color: #ff8080; }
.bas button[data-alerte="rond"] span { background: #f5c542; border-color: #f5c542; color: #1a1205; border-radius: 50%; animation: tab-rond 1.3s ease-out 3; }
.bas button[data-alerte="direct"] span { background: #d92c2c; border-color: #ff8080; color: #fff; border-radius: 50%; animation: tab-direct .9s ease-out 6; }
@keyframes tab-rond { 0% { box-shadow: 0 0 0 0 rgba(245, 197, 66, .8); } 100% { box-shadow: 0 0 0 12px rgba(245, 197, 66, 0); } }
@keyframes tab-direct { 0% { box-shadow: 0 0 0 0 rgba(255, 60, 60, .8); } 100% { box-shadow: 0 0 0 12px rgba(255, 60, 60, 0); } }
body.anim-reduite .bord-alerte, body.anim-reduite .bas button[data-alerte] span { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .bord-alerte, .bas button[data-alerte] span { animation: none !important; } }

/* v17.7 : passage de niveau de compte, plein écran. Déroulé : étoile .1 s, nouveau chiffre et éclat .75 s, titre 1,05 s, avantages 1,5 s, puis Continuer */
.lvl { position: fixed; inset: 0; z-index: 1; display: flex; justify-content: center; overflow-x: hidden; overflow-y: auto; padding: max(20px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
  background: radial-gradient(circle at 50% 24%, #4a3a12 0, #16233d 38%, #070d19 78%); animation: fin-fondu .25s both; }
/* v20.55 : plein écran ouvert = la page derrière ne défile plus (sinon deux barres de défilement sur PC : calendrier de l'Avent, tournée, niveau…) */
html:has(#feuille:not([hidden]) .lvl) { overflow: hidden; }
.lvl-corps { position: relative; width: 100%; max-width: 420px; margin: auto 0; text-align: center; }
.lvl-flash { position: fixed; inset: 0; background: #fff6cf; opacity: 0; pointer-events: none; animation: lvl-flash .5s .72s ease-out both; }
.lvl-confettis { position: fixed; left: 50%; top: 24%; width: 0; height: 0; z-index: 2; pointer-events: none; }
.lvl-confettis i { position: absolute; width: 8px; height: 13px; margin: -6px 0 0 -4px; border-radius: 2px; background: var(--c); opacity: 0; animation: lvl-confetti 1.7s cubic-bezier(.12, .7, .3, 1) both; }
.lvl-badge { position: relative; width: 132px; height: 132px; margin: 22px auto 16px; animation: lvl-pop .6s .1s cubic-bezier(.2, 1.5, .4, 1) both; }
.lvl-badge svg { position: relative; display: block; filter: drop-shadow(0 6px 14px rgba(245, 197, 66, .45)); }
.lvl-rayons { position: absolute; left: 50%; top: 50%; width: 420px; height: 420px; margin: -210px 0 0 -210px; border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(rgba(255, 220, 120, .24) 0 12deg, transparent 12deg 30deg); -webkit-mask-image: radial-gradient(circle, #000 22%, transparent 68%); mask-image: radial-gradient(circle, #000 22%, transparent 68%); animation: rayons-tour 12s linear infinite; }
.lvl-anneau { position: absolute; inset: 0; border: 4px solid #ffe28a; border-radius: 50%; opacity: 0; pointer-events: none; animation: lvl-anneau .7s .75s ease-out both; }
.lvl-ancien, .lvl-nouveau { position: absolute; left: 0; right: 0; top: 49px; font-size: 40px; line-height: 40px; font-weight: 800; font-variant-numeric: tabular-nums; color: #3a2600; text-shadow: 0 1px 0 rgba(255, 255, 255, .55); }
.lvl-ancien { animation: lvl-sort .2s .62s ease-in both; }
.lvl-nouveau { animation: lvl-pop .5s .75s cubic-bezier(.2, 1.8, .4, 1) both; }
.lvl-titre { position: relative; margin: 0; font-size: 30px; line-height: 1.15; font-weight: 800; color: var(--or); text-wrap: balance; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); animation: lvl-pop .45s 1.05s cubic-bezier(.2, 1.5, .4, 1) both; }
.lvl-sous { position: relative; margin: 4px 0 16px; color: var(--texte); font-size: 15px; animation: lvl-monte .35s 1.25s ease-out both; }
.lvl-avantages { position: relative; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.lvl-carte { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: rgba(19, 33, 58, .92); border: 1px solid rgba(245, 197, 66, .5); }
.lvl-carte, .lvl-suite, .lvl-ok { animation: lvl-monte .4s calc(1.5s + var(--i) * .16s) cubic-bezier(.2, 1.1, .4, 1) both; }
.lvl-carte b { font-size: 15px; }
.lvl-carte .sous { margin-top: 2px; color: #c5d1e2; font-size: 13px; }
.lvl-ico { flex: 0 0 44px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 23px; background: var(--orfond); }
.lvl-neuf { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 99px; background: var(--vert); color: #06240f; font-size: 10.5px; font-weight: 800; vertical-align: 1px; }
.lvl-suite { position: relative; margin: 12px 0; color: var(--doux); font-size: 13px; }
.lvl-ok { position: relative; width: 100%; min-height: 48px; font-size: 16px; }
@keyframes lvl-pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes lvl-sort { to { transform: scale(1.5); opacity: 0; } }
@keyframes lvl-monte { from { transform: translateY(22px); opacity: 0; visibility: hidden; } to { transform: none; opacity: 1; visibility: visible; } }
@keyframes lvl-flash { 0% { opacity: 0; } 25% { opacity: .55; } 100% { opacity: 0; } }
@keyframes lvl-anneau { from { transform: scale(.7); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }
@keyframes lvl-confetti { 0% { transform: translate(0, 0) scale(.4); opacity: 1; } 70% { transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(1); opacity: 1; } 100% { transform: translate(var(--dx), calc(var(--dy) + 110px)) rotate(var(--r)) scale(1); opacity: 0; } }
.lvl.reduit, .lvl.reduit * { animation: none !important; }
.lvl.reduit .lvl-ancien, .lvl.reduit .lvl-flash, .lvl.reduit .lvl-anneau { display: none; }
/* arrivée des poulains à l'écurie (registre 182) : même cadre que le passage de niveau, plus court */
.arr-ico { margin: 18px auto 10px; font-size: 76px; line-height: 1; animation: lvl-pop .6s .05s cubic-bezier(.2, 1.5, .4, 1) both; }
.arr .lvl-titre { animation-delay: .25s; }
.arr .lvl-sous { animation-delay: .4s; }
.arr .lvl-carte, .arr .lvl-ok { animation-delay: calc(.55s + var(--i) * .14s); }
.arr-carte { gap: 10px; padding: 10px; }
.arr-carte .esp { min-width: 0; }
.arr-carte b { overflow-wrap: anywhere; }
.arr-carte .btn { flex: 0 0 auto; }
html.anim-coupee .arr, html.anim-coupee .arr * { animation: none !important; }
/* Naissance d'une Lignée (registre 207), ~2,3 s : parents des côtés (0-1,15 s), éclat à la couleur du poulain (1 s), tête du poulain (1,15 s),
   titre (1,6 s), chiffres (1,85 s). Sans animation (.fini au toucher ou à la fin, .reduit, html.anim-coupee) : le style de base = l'écran final. */
.nais-fen { --c: var(--commun); position: fixed; inset: 0; z-index: 1; display: flex; justify-content: center; overflow-x: hidden; overflow-y: auto;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); background: var(--fond); animation: fin-fondu .25s both; }
.nais-fen.r-rare { --c: var(--rare); } .nais-fen.r-epique { --c: var(--epique); } .nais-fen.r-legendaire { --c: var(--legendaire); } .nais-fen.r-mythique { --c: var(--mythique); }
.nais-fond { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 20%, var(--c) 0, transparent 62%); opacity: .3; }
.nais-fen.myth .nais-fond { opacity: .42; }
.nais-corps { position: relative; width: 100%; max-width: 420px; margin: auto 0; text-align: center; }
.nais-scene { position: relative; height: 180px; margin: 4px auto 6px; }
.nais-parent { position: absolute; top: 26px; left: 50%; width: 96px; margin-left: -48px; opacity: 0; pointer-events: none; }
.nais-parent small { display: block; margin-top: 2px; color: var(--doux); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nais-parent.g { --s: -1; animation: nais-parent 1.15s ease-in-out both; }
.nais-parent.d { --s: 1; animation: nais-parent 1.15s ease-in-out both; }
.nais-eclat, .nais-anneau { position: absolute; left: 50%; top: 66px; width: 80px; height: 80px; margin: -40px 0 0 -40px; border-radius: 50%; opacity: 0; pointer-events: none; }
.nais-eclat { background: radial-gradient(circle, var(--texte) 0, var(--c) 35%, transparent 70%); animation: nais-eclat .65s 1s ease-out both; }
.nais-anneau { border: 3px solid var(--c); animation: nais-anneau .75s 1.05s ease-out both; }
.nais-poulain { position: absolute; left: 50%; top: 10px; width: 112px; height: 112px; margin-left: -56px; animation: nais-nait .8s 1.15s cubic-bezier(.2, 1.4, .4, 1) both; }
.nais-poulain .tete-cheval { position: relative; z-index: 1; }
.nais-halo { position: absolute; left: 50%; top: 66px; width: 170px; height: 170px; margin: -85px 0 0 -85px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, var(--c) 0, transparent 66%); opacity: .55; animation: nais-halo .8s 1.15s ease-out both; }
.nais-fen.myth .nais-halo { width: 200px; height: 200px; margin: -100px 0 0 -100px; opacity: .8;
  background: conic-gradient(var(--mythique), var(--legendaire), var(--rare), var(--epique), var(--mythique));
  -webkit-mask-image: radial-gradient(circle, transparent 38%, #000 42%, transparent 70%); mask-image: radial-gradient(circle, transparent 38%, #000 42%, transparent 70%);
  animation: nais-halo .8s 1.15s ease-out both, rayons-tour 6s 1.95s linear infinite; }
.nais-titre { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 800; color: var(--c); text-wrap: balance; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); animation: lvl-pop .45s 1.6s cubic-bezier(.2, 1.5, .4, 1) both; }
.nais-fen.myth .nais-titre { font-size: 30px; }
.nais-info { margin-top: 10px; padding: 12px; border-radius: 14px; background: var(--fond2); border: 1px solid var(--c); animation: lvl-monte .45s 1.85s cubic-bezier(.2, 1.1, .4, 1) both; }
.nais-nom b { font-size: 20px; overflow-wrap: anywhere; }
.nais-rar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 4px 0; }
.nais-note b { font-size: 17px; color: var(--c); font-variant-numeric: tabular-nums; }
.nais-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 12px; margin: 10px 0 8px; font-size: 13px; }
.nais-stats div { display: flex; justify-content: space-between; gap: 4px; min-width: 0; padding: 2px 0; border-bottom: 1px solid var(--ligne); cursor: help; }
.nais-stats span { color: var(--doux); } .nais-stats b { font-variant-numeric: tabular-nums; }
.nais-stats b.plus { color: var(--vert); } .nais-stats b.moins { color: var(--rouge); }
.nais-niv { margin: 6px 0; }
.nais-tal { margin: 8px 0; padding: 8px 10px; border-radius: 10px; background: var(--sec); }
.nais-tal.passe { color: var(--vert); } .nais-tal.rate { color: var(--doux); }
.nais-actions { display: flex; gap: 8px; margin-top: 12px; }
.nais-actions .btn { flex: 1; min-height: 46px; }
@keyframes nais-parent { 0% { transform: translateX(calc(var(--s) * 150px)); opacity: 0; } 22% { opacity: 1; } 65% { transform: translateX(calc(var(--s) * 46px)); opacity: 1; }
  100% { transform: translateX(0) scale(.35); opacity: 0; } }
@keyframes nais-eclat { 0% { transform: scale(.2); opacity: 0; } 30% { transform: scale(1.7); opacity: 1; } 100% { transform: scale(3.4); opacity: 0; } }
@keyframes nais-anneau { from { transform: scale(.4); opacity: .9; } to { transform: scale(2.8); opacity: 0; } }
@keyframes nais-nait { from { transform: scale(.2); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes nais-halo { from { transform: scale(.3); opacity: 0; } }
/* fin tout de suite : toucher l'écran (.fini), « Animations réduites » (.reduit) ou html.anim-coupee ; le halo mythique continue de tourner seulement après .fini */
.nais-fen.fini .nais-parent, .nais-fen.fini .nais-eclat, .nais-fen.fini .nais-anneau, .nais-fen.fini .nais-poulain, .nais-fen.fini .nais-titre, .nais-fen.fini .nais-info, .nais-fen.fini { animation: none !important; }
.nais-fen.fini .nais-halo { animation: none !important; }
html:not(.anim-coupee) .nais-fen.fini.myth:not(.reduit) .nais-halo { animation: rayons-tour 6s linear infinite !important; }
.nais-fen.reduit, .nais-fen.reduit *, html.anim-coupee .nais-fen, html.anim-coupee .nais-fen * { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .lvl, .lvl * { animation: none !important; }
  .lvl-ancien, .lvl-flash, .lvl-anneau, .lvl-confettis { display: none; }
}

/* Marché des chevaux (registre 146) : lots « Jeunes entraîneurs », cheval protégé, marque de la Vente de prestige, yearlings */
.badge.jeunes { background: #16402b; color: #7fe0a8; }
.lot-ferme { opacity: .55; filter: grayscale(.6); }
.cadenas { font-size: .9em; }
/* fiche d'un de mes chevaux (19/11, v20.13) : ✏️ renommer et 🔒 cadenas, petits boutons icône à côté du nom (le nom long passe à la ligne) */
.fiche-nom { margin: 0 0 4px; overflow-wrap: break-word; }
.fiche-nom h2 { display: inline; margin: 0 4px 0 0; vertical-align: middle; }
.fiche-rapide { display: inline-flex; gap: 4px; vertical-align: middle; white-space: nowrap; }
.btn.btn-ico { width: 34px; height: 34px; padding: 0; font-size: 16px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.btn.btn-ico[data-cadenas]:not(.actif) { opacity: .6; filter: grayscale(.7); }
.btn.btn-ico.actif { background: var(--orfond); border-color: var(--or); }
.marque-prestige, .marque-verrou { margin-left: 4px; }
.yl-carte { padding: 10px; border-radius: 12px; background: #13203a; border: 1px solid #2a4069; min-width: 0; }
.yl-carte .yl-plage { display: grid; grid-template-columns: 38px 1fr 54px; gap: 4px 6px; align-items: center; font-size: 12px; margin-top: 6px; }
.yl-carte .yl-plage i { display: block; height: 8px; border-radius: 4px; background: var(--sec); position: relative; }
.yl-carte .yl-plage i b { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: var(--or); opacity: .8; }
/* fiche du yearling : colonne large (la colonne de 170 px des cartes écrasait le texte), parents en petites cases */
.detail.yl { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
@media (max-width: 620px) { .detail.yl { grid-template-columns: 1fr; } }
.yl-carte .yl-tete { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.yl-carte .yl-tete b { font-size: 15px; }
.yl-carte .yl-parents { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 360px) { .yl-carte .yl-parents { grid-template-columns: 1fr; } }
.yl-carte .yl-parent { background: rgba(255, 255, 255, .04); border-radius: 8px; padding: 6px 8px; min-width: 0; }
.yl-carte .yl-qui { display: block; font-size: 11px; color: var(--doux); }
.yl-carte .yl-pnom { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 2px 0; }
.yl-carte .yl-titre { font-size: 12.5px; font-weight: 700; margin-top: 10px; }

/* Avatars animés (registre 151, conception_avatars_animes.md). Les animations ne tournent que sous svg.av-anime : grands avatars seulement,
   12 au plus (limiterAvatars, vue.js), en pause hors de l'écran (.av-pause). transform-box seulement sur les pièces animées : les autres
   gardent leur attribut transform tel quel. */
html.anim-coupee svg.avatar * { animation: none !important; }   /* LA règle qui coupe tout : réglage « Animations réduites » ou prefers-reduced-motion */
svg.avatar.av-pause * { animation-play-state: paused !important; }
.av-tete { transform-box: view-box; transform-origin: 130px 200px; }
/* v20.23 : écu du joueur (ecuSVG, vue.js) : il se balance depuis sa pointe ; « Port de tête » = il se redresse, « Crinière au vent » =
   les rubans de la toque flottent (.av-crin) */
.av-tete.av-ecu { transform-origin: 100px 196px; }
.av-anime.allure-fier .av-ecu { animation: av-ecu-fier 6s ease-in-out infinite; }
.av-anime.allure-vent .av-ecu .av-crin { transform-origin: 124px 40px; }
@keyframes av-ecu-fier { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-5px) scale(1.035); } }
/* v20.23 : portrait 3D d'un cheval (portraits3d.js) : la tête SVG reste dessous en secours tant que l'image n'est pas prête */
/* fonds clairs sous le portrait, par rareté MONTRÉE (proposition du graphiste, portraits_3d.html) : centre, milieu, bord ; étincelles du mythique */
:root { --p3d-commun-1: #ffffff; --p3d-commun-2: #dfe5ee; --p3d-commun-3: #c6cfdc;
  /* rare et épique plus francs (demande de l'utilisateur, 20/11) : centre clair sous la tête, bord bien coloré pour se lire en 28 px */
  --p3d-rare-1: #f2f8ff; --p3d-rare-2: #8fc4ff; --p3d-rare-3: #3d8ae0;
  --p3d-epique-1: #f8f2ff; --p3d-epique-2: #c7a3ff; --p3d-epique-3: #9156e0;
  --p3d-legendaire-1: #fffdf2; --p3d-legendaire-2: #ffe9a6; --p3d-legendaire-3: #f5c542;
  --p3d-mythique-1: #fffaf8; --p3d-mythique-2: #ffd9d2; --p3d-mythique-3: #f3a99c; --p3d-etinc: #e8335a; }
svg.avatar .av-p3d { display: none; }
svg.avatar.p3d-pret .av-p3d { display: inline; }
svg.avatar.p3d-pret .av-svgtete { display: none; }
.av-anime .av-oeil { transform-box: fill-box; transform-origin: center; animation: av-cligne 5s infinite; }
.av-anime .av-oreille { transform-box: fill-box; transform-origin: 30% 100%; animation: av-oreille 9s infinite; }
.av-anime.allure-fier .av-tete { animation: av-fier 6s ease-in-out infinite; }
.av-anime.allure-fier .av-nez { transform-box: fill-box; transform-origin: center; animation: av-souffle 3s ease-in-out infinite; }
.av-anime.allure-vent .av-crin { transform-box: view-box; transform-origin: 125px 45px; animation: av-vent 2.6s ease-in-out infinite; }
.av-anime.allure-vent .av-toupet { transform-box: fill-box; transform-origin: 80% 0; animation: av-toupet 2.2s ease-in-out infinite; }
.av-anime .av-tete.hoche { animation: av-hoche .7s ease-out; }
.av-anime .av-reflet { animation: av-reflet 3s linear infinite; }
.av-anime .av-tourne { transform-box: fill-box; transform-origin: center; animation: av-tourne 5s linear infinite; }
.av-anime .av-flamme { transform-box: fill-box; transform-origin: 50% 100%; animation: av-flamme .9s ease-in-out infinite alternate; }
.av-anime .av-eclair { animation: av-eclair 3.9s steps(1) infinite; }
.av-anime .av-orage { animation: av-orage 3.9s steps(1) infinite; }
.av-anime .av-pierre { transform-box: fill-box; transform-origin: center; animation: av-pierre 2.8s ease-in-out infinite; }
.av-anime .av-halo { animation: av-halo 3.2s ease-in-out infinite; }
.av-anime .av-aurore { transform-box: fill-box; transform-origin: 50% 0; animation: av-aurore 7s ease-in-out infinite; }
.av-anime .av-aurore2 { animation-duration: 9s; animation-direction: reverse; }
.av-anime .av-scint { animation: av-scint 2.4s ease-in-out infinite; }
.av-anime .av-filante { animation: av-filante 7s linear infinite; }
.av-anime .av-confetti { transform-box: fill-box; transform-origin: center; animation: av-confetti 4s linear infinite; }
.av-anime .av-respire { animation: av-respire 4s ease-in-out infinite; }
.av-anime .av-etinc { transform-box: fill-box; transform-origin: center; animation: av-etinc 2.2s ease-in-out infinite; }
@keyframes av-cligne { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
@keyframes av-oreille { 0%, 86%, 100% { transform: rotate(0); } 89% { transform: rotate(-14deg); } 92% { transform: rotate(5deg); } 95% { transform: rotate(-4deg); } }
@keyframes av-fier { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(3.5deg); } }
@keyframes av-souffle { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }
@keyframes av-vent { 0%, 100% { transform: skewX(0) rotate(0); } 50% { transform: skewX(-3deg) rotate(1.5deg); } }
@keyframes av-toupet { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(9deg); } }
@keyframes av-hoche { 0% { transform: rotate(0); } 30% { transform: rotate(-5deg); } 60% { transform: rotate(2deg); } 100% { transform: rotate(0); } }
@keyframes av-reflet { 0% { stroke-dashoffset: 0; opacity: 0; } 6% { opacity: .9; } 40% { stroke-dashoffset: -320; opacity: .9; } 46%, 100% { stroke-dashoffset: -360; opacity: 0; } }
@keyframes av-tourne { to { transform: rotate(360deg); } }
@keyframes av-flamme { from { transform: scaleY(.65) skewX(-6deg); } to { transform: scaleY(1.1) skewX(6deg); } }
@keyframes av-eclair { 0% { opacity: 0; } 80% { opacity: 1; } 83% { opacity: 0; } 86% { opacity: 1; } 90% { opacity: 0; } }
@keyframes av-orage { 0% { opacity: .3; } 80% { opacity: 1; } 84% { opacity: .3; } 86% { opacity: .9; } 90% { opacity: .3; } }
@keyframes av-pierre { 0%, 70%, 100% { transform: scale(1); opacity: .85; } 80% { transform: scale(1.45); opacity: 1; } }
@keyframes av-halo { 0%, 100% { opacity: .2; } 50% { opacity: .65; } }
@keyframes av-aurore { 0%, 100% { transform: scale(1.08, 1); } 50% { transform: translateX(-8px) scale(1.08, 1.18); } }
@keyframes av-scint { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }
@keyframes av-filante { 0% { stroke-dashoffset: 22; opacity: 1; } 12% { stroke-dashoffset: -100; opacity: 1; } 13%, 100% { stroke-dashoffset: -100; opacity: 0; } }
@keyframes av-confetti { from { transform: translateY(var(--d0)) rotate(0deg); } to { transform: translateY(var(--d1)) rotate(540deg); } }
@keyframes av-respire { 0%, 100% { opacity: .3; } 50% { opacity: .75; } }
@keyframes av-etinc { 0%, 100% { transform: scale(.3); opacity: 0; } 50% { transform: scale(1); opacity: 1; } }
.tete-cheval.mythique .avatar { filter: drop-shadow(0 0 6px rgba(255, 77, 109, .6)) drop-shadow(0 4px 6px rgba(0, 0, 0, .5)); }
/* Sang de lignée (registre 160) : liseré turquoise qui suit la forme de la tête et de son cadre (aucune animation) ; badge 🔱 */
.tete-cheval.lignee .avatar { filter: drop-shadow(0 0 1.2px #5fe0d2) drop-shadow(0 0 1.2px #5fe0d2) drop-shadow(0 0 5px rgba(95, 224, 210, .55)) drop-shadow(0 4px 6px rgba(0, 0, 0, .5)); }
.tete-cheval.mythique.lignee .avatar { filter: drop-shadow(0 0 1.2px #5fe0d2) drop-shadow(0 0 1.2px #5fe0d2) drop-shadow(0 0 6px rgba(255, 77, 109, .6)) drop-shadow(0 4px 6px rgba(0, 0, 0, .5)); }
.badge.lignee { background: #0f3a3a; color: #7fece0; margin-left: 4px; text-decoration: none; }
.carte .rar .badge.lignee { font-size: 10px; padding: 1px 5px; vertical-align: 1px; white-space: nowrap; }
/* registre 176 : génération au sommet (G4) en doré */
.badge.lignee.gen-max { background: linear-gradient(135deg, #5a4210, #3a2a08); color: #ffd76a; box-shadow: 0 0 0 1px rgba(245, 197, 66, .55); }
/* 15/11 : génération en miniature « G2 » dans les listes (miniGen), juste après la pastille de note ; même couleur que le badge, dorée en G4 */
.gen-mini { display: inline-block; margin-left: 3px; padding: 0 4px; border-radius: 6px; background: #0f3a3a; color: #7fece0; font-size: 10px; font-weight: 700;
  line-height: 15px; vertical-align: 1px; white-space: nowrap; text-decoration: none; font-variant-numeric: tabular-nums; }
.gen-mini.gen-max { background: linear-gradient(135deg, #5a4210, #3a2a08); color: #ffd76a; box-shadow: 0 0 0 1px rgba(245, 197, 66, .55); }
/* lignes de course (grille, 1 ligne par cheval) : en tête de la ligne grise sous le nom, sans marge */
.cr-ch .adapt > .gen-mini:first-child, .cr-ch .sous > .gen-mini:first-child { margin-left: 0; vertical-align: 0; line-height: 13px; }
.lig-gen { color: #7fece0; margin-top: 4px; }
.lig-gen b { color: var(--or); }
.lig-gen .badge.lignee { font-size: 14px; padding: 3px 9px; vertical-align: middle; }
.lig-gen .sous { margin-top: 2px; }
.lig-origine { color: #7fece0; margin-top: 2px; }
/* registre 221 : chevaux à la place d'un Sceau (Lignée) */
.lig-gain { color: #7fece0; }
.profil-tete svg.av-anime, .apercu-av svg { cursor: pointer; }
.badge.anime-b { background: linear-gradient(90deg, #3a1f6b, #1f3a6b); color: #ffe066; margin-left: 4px; }
.apercu-cosm { text-align: center; }
.apercu-cosm .actions { justify-content: center; }
.apercu-av { display: flex; justify-content: center; margin: 6px 0 10px; }

/* ---------- Registre 152 : plaques de nom (nomPlaque, vue.js). Fond sombre et texte clair fixés ici : lisibles dans toutes les saisons.
   Bordure en dégradé = 2 fonds (padding-box / border-box). Animations : background-position ou border-color seulement, classe p-anim. ---------- */
/* inline-block SANS max-width en % ni overflow : dans un tableau, ces deux-là réduisent la plaque à « L… » ; un nom long passe à la ligne
   dans sa plaque (jamais plus large que le nom). Coupé avec « … » seulement là où la place est fixe (bandeau du haut, aperçus). */
.plaque { display: inline-block; vertical-align: baseline; white-space: normal;
  padding: 0 5px; border: 1px solid #5b6b80; border-radius: 6px; background: #121b2b; color: #f4f7fb; font-weight: 700; line-height: 1.3; }
.plaque.pl-grand { padding: 1px 9px; border-width: 2px; border-radius: 8px; }
.plaque.pl-mini { padding: 0 4px; border-width: 1px; box-shadow: none !important; }
.replay .club-tag, .partants .club-tag { font-weight: 700; }
.replay .club-tag.moi, .partants .club-tag.moi { color: var(--vert); }
.replay .club-tag.adv, .partants .club-tag.adv { color: var(--rouge); }
.p-ardoise { border-color: #8a9bb3; background: #1b222c; }
.p-foret { border-color: #3fae7a; background: #0b3324; color: #eafff4; }
.p-braise, .p-ocean, .p-neon, .p-pulse { border-color: transparent; }
.p-braise { background: linear-gradient(#2a1208, #2a1208) padding-box, linear-gradient(90deg, #e76f51, #f5c542) border-box; color: #fff1dc; }
.p-ocean { background: linear-gradient(#0a1d33, #0a1d33) padding-box, linear-gradient(90deg, #2d6cdf, #2ad4c8) border-box; color: #e8fbff; }
.p-pulse { border-color: #9b59ff; background: #1e0f33; color: #f6ecff; }
.p-neon { background: linear-gradient(#090f1f, #090f1f) padding-box, linear-gradient(90deg, #22e6ff, #ff3df2, #22e6ff, #ff3df2, #22e6ff) border-box; background-size: 100% 100%, 300% 100%; color: #eaffff; }
.p-neon.pl-grand { box-shadow: 0 0 6px rgba(34, 230, 255, .45); }
.p-coupe { border-color: #f5c542; background: linear-gradient(110deg, #2a2108 42%, #6b5512 50%, #2a2108 58%) 0 0 / 300% 100%; color: #ffe9a8; }
.p-saison { border-color: var(--pc, #5b6b80); border-left-width: 4px; background: #101a2c; }
.p-carnet { border-color: var(--pc, #f5c542); background: #111a2b; }
.p-carnet::before { content: '★ '; color: var(--pc, #f5c542); }
.p-equipe { border-color: #ffd36b; background: #4a0f1a; color: #fff; }
.p-equipe::before { content: '🛡 '; }
.plaque.pl-grand.p-equipe { border-style: double; border-width: 3px; }
.plaque.p-anim.p-pulse { animation: pl-pulse 4s ease-in-out infinite alternate; }
.plaque.p-anim.p-neon { animation: pl-neon 3s linear infinite; }
.plaque.p-anim.p-coupe { animation: pl-reflet 3.5s ease-in-out infinite; }
@keyframes pl-pulse { from { border-color: #9b59ff; } to { border-color: #ff5fa2; } }
@keyframes pl-neon { from { background-position: 0 0, 0 0; } to { background-position: 0 0, 100% 0; } }
@keyframes pl-reflet { 0% { background-position: 100% 0; } 60%, 100% { background-position: 0 0; } }
html.anim-coupee .plaque { animation: none !important; }   /* animations réduites : plaque fixe dans sa couleur principale */
@media (prefers-reduced-motion: reduce) { .plaque { animation: none !important; } }
.apercu-plaque { margin: 4px 0 6px; max-width: 100%; overflow: hidden; }
.apercu-plaque .plaque, .profil-btn .plaque { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.objets.plaques .objet .apercu-plaque { text-align: center; }

/* ---------- v18.4 « Sac et Forge » (registres 148-150, conception_sac_atelier.md) ---------- */
.at-titre { align-items: center; gap: 8px; }
.at-ress-l { display: flex; gap: 6px; }
/* Lignée : ce qu'il faut pour chaque étape (Écurie › Élevage) */
.at-res-l { font: inherit; font-size: 13px; color: inherit; background: var(--pill); border: 1px solid var(--ligne); border-radius: 99px; padding: 4px 9px; cursor: pointer; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sous-onglets button small { font-weight: 400; opacity: .8; font-variant-numeric: tabular-nums; }
.sous-onglets button small.r-plein { color: var(--rouge); font-weight: 800; opacity: 1; }
.sous-onglets .cadenas { opacity: .75; }
.jauge-sac .ligne { align-items: baseline; gap: 8px; }
.jauge-sac b { font-size: 16px; font-variant-numeric: tabular-nums; }
.jauge-sac .jauge { height: 8px; border-radius: 99px; margin: 6px 0; }
.jauge-sac .jauge i { background: var(--or); border-radius: 99px; }
.jauge-sac .jauge.plein i { background: var(--rouge); }
.sac-alerte { background: #4a1210; border-color: var(--rouge); }
.sac-alerte b { color: #ffb3a8; }
.filtres-sac { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 4px; margin: 8px 0 4px; }
.filtres-sac .chip { flex: 0 0 auto; }
.filtres-sac .chip .ico-img { width: 16px; height: 16px; vertical-align: middle; }
.filtres-sac .chip small { opacity: .7; }
.filtres-rar { margin-top: 0; }
.pt-rar { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; background: #46505d; }
.pt-rar.rare { background: #3d7bff; } .pt-rar.epique { background: #9b4dff; } .pt-rar.legendaire { background: #e0a020; } .pt-rar.mythique { background: #e0244f; }
.sac-outils { align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 8px; }
.lien-tri { font: inherit; color: var(--doux); background: none; border: 0; padding: 2px 0; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.lien-tri.on { color: var(--or); font-weight: 700; text-decoration: none; }
.grille-sac { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; margin: 6px 0 10px; }
.tuile-eq { --c: var(--commun); position: relative; aspect-ratio: 1 / 1.12; min-width: 0; padding: 4px 4px 9px; background: var(--fond2, #13223d); border: 2px solid var(--c); border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; font: inherit; color: inherit; }
.tuile-eq.r-commun { --c: var(--commun); } .tuile-eq.r-rare { --c: var(--rare); } .tuile-eq.r-epique { --c: var(--epique); }
.tuile-eq.r-legendaire { --c: var(--legendaire); box-shadow: 0 0 10px rgba(245, 179, 1, .35); } .tuile-eq.r-mythique { --c: var(--mythique); box-shadow: 0 0 10px rgba(255, 77, 109, .45); }
.tuile-eq .t-ico { font-size: 30px; line-height: 1; }
.tuile-eq .t-ico .ico-img { width: 44px; height: 44px; }
.tuile-eq .t-bonus { position: absolute; top: 3px; right: 5px; font-size: 12px; text-shadow: 0 1px 3px #000; }
.tuile-eq .t-rar { font-size: 9.5px; font-weight: 700; color: var(--c); text-transform: uppercase; letter-spacing: .03em; }
.tuile-eq .t-marques { position: absolute; top: 2px; left: 4px; font-size: 11px; }
/* Pièces permanentes (registre 171) : barre du jet (qualité dans sa rareté), niveau d'affûtage, paliers (pal-1 reflet, pal-2 éclat, pal-3 doré), tenue complète.
   Les reflets bougent seulement sans .pieces-calmes (animations réduites, qualité eco ou 2D) : la marque reste, fixe. */
.jet-barre { display: inline-block; width: 42px; height: 5px; border-radius: 9px; background: rgba(0, 0, 0, .45); overflow: hidden; vertical-align: middle; }
.jet-barre i { display: block; height: 100%; background: linear-gradient(90deg, #8aa0b8, var(--or)); }
.tuile-eq .jet-barre { position: absolute; left: 6px; right: 6px; bottom: 4px; width: auto; height: 4px; }
.chiffres .jet-barre { width: 100%; margin-top: 3px; }
.tuile-eq .t-niv { position: absolute; top: 18px; right: 5px; font-size: 11px; font-weight: 700; color: var(--or); text-shadow: 0 1px 3px #000; }
.pal-1 { --reflet: rgba(255, 255, 255, .28); } .pal-2 { --reflet: rgba(255, 255, 255, .5); } .pal-3 { --reflet: rgba(255, 213, 74, .75); }
.tuile-eq.pal-1, .slot.pal-1, .piece-tete.pal-1 .piece-grand, .eq.pal-1, .case-eq.pal-1 { box-shadow: inset 0 0 0 1px var(--reflet), 0 0 6px var(--reflet); }
.tuile-eq.pal-2, .slot.pal-2, .piece-tete.pal-2 .piece-grand, .eq.pal-2, .case-eq.pal-2 { box-shadow: inset 0 0 0 1px var(--reflet), 0 0 12px var(--reflet); }
.tuile-eq.pal-3, .slot.pal-3, .piece-tete.pal-3 .piece-grand, .eq.pal-3, .case-eq.pal-3 { border-color: #ffd54a; box-shadow: inset 0 0 0 1px var(--reflet), 0 0 16px var(--reflet); }
.tuile-eq.pal-1, .tuile-eq.pal-2, .tuile-eq.pal-3, .slot.pal-1, .slot.pal-2, .slot.pal-3, .piece-tete[class*="pal-"] .piece-grand { overflow: hidden; }
html:not(.pieces-calmes) .tuile-eq.pal-2::after, html:not(.pieces-calmes) .tuile-eq.pal-3::after, html:not(.pieces-calmes) .slot.pal-2::after, html:not(.pieces-calmes) .slot.pal-3::after,
html:not(.pieces-calmes) .piece-tete.pal-2 .piece-grand::after, html:not(.pieces-calmes) .piece-tete.pal-3 .piece-grand::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 35%, var(--reflet) 50%, transparent 65%); background-size: 250% 100%; animation: reflet-piece 3.2s ease-in-out infinite; }
.piece-tete .piece-grand { position: relative; }
@keyframes reflet-piece { 0% { background-position: 130% 0; } 60%, 100% { background-position: -130% 0; } }
.tenue-m { display: inline-flex; align-items: center; gap: 4px; margin-left: 4px; padding: 1px 7px; border-radius: 9px; font-size: 11px; font-weight: 700; border: 1px solid var(--c, var(--commun)); color: var(--c, var(--commun)); background: rgba(0, 0, 0, .25); white-space: nowrap; vertical-align: middle; }
.tenue-m.rare { --c: var(--rare); } .tenue-m.epique { --c: var(--epique); } .tenue-m.legendaire { --c: var(--legendaire); } .tenue-m.mythique { --c: var(--mythique); }
.tenue-m small { font-weight: 400; opacity: .85; }
.tenue-m .mot { color: inherit; }
.eqs .tenue-m { margin-left: 2px; }
/* bloc d'affûtage de la fiche d'une pièce */
.bloc.affutage { display: grid; gap: 6px; margin-bottom: 10px; }
.bloc.affutage .btn { justify-self: start; }
.aff-chance { font-weight: 700; color: var(--or); font-variant-numeric: tabular-nums; }
/* ticket 80 (v19.89) : coût de l'essai et stock côte à côte, juste au-dessus du bouton */
.aff-cout { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.aff-res { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 0; min-height: 44px; padding: 6px 9px; text-align: left;
  background: var(--fondi); border: 1px solid var(--ligne); border-radius: 12px; color: inherit; font: inherit; font-variant-numeric: tabular-nums; }
button.aff-res { cursor: pointer; } button.aff-res:active { background: var(--sec); }
.aff-res small { color: var(--doux); font-size: 11px; }
.aff-res b { font-size: 17px; white-space: nowrap; }
.aff-res .aff-as { font-size: 12.5px; color: var(--doux); white-space: nowrap; }
.aff-res .aff-manque { font-size: 12.5px; font-weight: 700; color: var(--rouge); white-space: nowrap; }
.aff-res.manque { border-color: var(--rouge); }
.aff-res.manque .aff-as { color: var(--texte); }
.aff-res img.ico-img.res { width: 18px; height: 18px; vertical-align: -3px; }
.feuille .res-retour { min-height: 40px; margin-bottom: 6px; }
.aff-cases { display: flex; gap: 3px; }
.aff-cases i { flex: 1; height: 8px; border-radius: 3px; background: rgba(255, 255, 255, .1); }
.aff-cases i.on { background: var(--or); } .aff-cases i.palier { outline: 1px solid rgba(255, 213, 74, .8); outline-offset: 1px; }
html:not(.anim-coupee) .bloc.affutage.aff-ok { animation: aff-ok .9s ease-out; }
html:not(.anim-coupee) .bloc.affutage.aff-rate { animation: aff-rate .5s ease-in-out; }
@keyframes aff-ok { 0% { box-shadow: 0 0 0 0 rgba(255, 213, 74, .9); } 100% { box-shadow: 0 0 0 14px rgba(255, 213, 74, 0); } }
@keyframes aff-rate { 0%, 100% { transform: none; } 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.tuile-eq.debord { border-style: dashed; background: repeating-linear-gradient(45deg, var(--fond2, #13223d), var(--fond2, #13223d) 6px, rgba(255, 255, 255, .06) 6px, rgba(255, 255, 255, .06) 12px); }
.tuile-eq.vide { border: 2px dashed var(--ligne); color: var(--doux); font-size: 22px; cursor: default; }
.tuile-eq .t-sur { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--doux); text-transform: none; letter-spacing: 0; }
.lieux-sac { margin-bottom: 4px; }
/* fiche d'une pièce */
.piece-tete { --c: var(--commun); display: flex; gap: 12px; align-items: center; margin: 0 36px 10px 0; }
.piece-tete.r-rare { --c: var(--rare); } .piece-tete.r-epique { --c: var(--epique); } .piece-tete.r-legendaire { --c: var(--legendaire); } .piece-tete.r-mythique { --c: var(--mythique); }
.piece-tete h2 { margin: 0 0 3px; font-size: 18px; }
.piece-grand { width: 76px; height: 76px; flex: 0 0 auto; display: grid; place-items: center; border: 2px solid var(--c); border-radius: 16px; background: rgba(0, 0, 0, .25); font-size: 40px; }
.piece-grand .ico-img { width: 60px; height: 60px; }
.chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.chiffres div { display: grid; background: var(--fondi, #0f1c33); border-radius: 10px; padding: 6px 8px; }
.chiffres small { color: var(--doux); font-size: 11px; }
.chiffres b { font-variant-numeric: tabular-nums; }
.actions-g { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 6px; }
.act { display: grid; gap: 1px; text-align: left; font: inherit; color: inherit; background: var(--fondi, #0f1c33); border: 1px solid var(--ligne); border-radius: 12px; padding: 9px 10px; cursor: pointer; }
.act b { font-size: 13.5px; } .act small { color: var(--doux); font-size: 11.5px; }
.act.fort { border-color: var(--or); }
.act.danger b { color: #ffb3a8; }
.act[disabled] { opacity: .45; cursor: default; }
.choix.pose { align-items: center; }
.mieux { color: var(--vert); font-weight: 700; white-space: nowrap; } .moins { color: var(--rouge); font-weight: 700; white-space: nowrap; }
/* forge */
.forge { display: grid; justify-items: center; gap: 8px; padding: 14px 10px; background: radial-gradient(ellipse at 50% 70%, rgba(255, 140, 40, .22), transparent 70%), var(--fondi, #0f1c33); }
.forge-slots { display: grid; grid-template-columns: repeat(3, 68px); gap: 10px; }
.forge-slots .tuile-eq { aspect-ratio: 1; }
.forge-fleche { color: var(--or); font-size: 20px; }
.forge .tuile-eq.resultat { width: 96px; aspect-ratio: 1; }
.forge .tuile-eq.resultat .t-ico .ico-img { width: 58px; height: 58px; }
.forge .sous { text-align: center; }
.tuile-eq.eclat { animation: forge-eclat 1.2s ease-out 1; }
@keyframes forge-eclat { 0% { transform: scale(.6); box-shadow: 0 0 0 0 var(--c); } 40% { transform: scale(1.15); box-shadow: 0 0 28px 10px var(--c); } 100% { transform: scale(1); } }
.carte-fusion { --c: var(--commun); display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 6px; padding: 8px 10px; text-align: left; font: inherit; color: inherit; cursor: pointer;
  background: var(--fondi, #0f1c33); border: 1px solid var(--ligne); border-left: 4px solid var(--c); border-radius: 12px; }
.carte-fusion.r-rare { --c: var(--rare); } .carte-fusion.r-epique { --c: var(--epique); } .carte-fusion.r-legendaire { --c: var(--legendaire); }
.carte-fusion .ico-img { width: 34px; height: 34px; }
.carte-fusion .esp, .choix.pose .esp { flex: 1; min-width: 0; }
/* Écurie › Élevage */
.raccourcis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 10px; }
.raccourcis button { display: grid; justify-items: center; gap: 2px; padding: 10px 4px; font: inherit; font-size: 12px; color: inherit; background: var(--fondi, #0f1c33); border: 1px solid var(--ligne); border-radius: 12px; cursor: pointer; }
.raccourcis button span { font-size: 22px; } .raccourcis button small { color: var(--doux); font-size: 10.5px; }
.raccourcis button.fort { border-color: var(--or); }
.raccourcis button[disabled] { opacity: .5; cursor: default; }
.verrou-elevage { display: grid; gap: 8px; text-align: center; padding: 18px 14px; border-style: dashed; }
.verrou-elevage .gros { font-size: 40px; }
details.presets summary { cursor: pointer; padding: 2px 0; }
/* rappel permanent du sac plein : bandeau rouge et pastille « ! » sur l'Atelier (3 pulsations puis fixe) */
.bandeau.sac-plein { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; background: linear-gradient(90deg, #7a1712, #5a120e); border-color: var(--rouge); color: #ffe1da; font-weight: 400; font-size: 13px; }
.bandeau.sac-plein .t { flex: 1; min-width: 0; }
.bandeau.sac-plein .aller { font-weight: 700; color: #fff; white-space: nowrap; }
.bas button.sac-plein[data-badge]:not([data-badge=""])::after { animation: sac-pulse 1.4s ease-in-out 3; }
@keyframes sac-pulse { 50% { transform: scale(1.3); } }
html.anim-coupee .bas button.sac-plein::after, html.anim-coupee .tuile-eq.eclat { animation: none !important; }
/* v19.59 : Écurie › 🔱 Lignée façon Forge : [Parent 1] + [Parent 2] + cases de paiement (🔱 Sceau, groupe de chevaux, ✨ Éclat) ▼ poulain */
.lig-titre { align-items: flex-start; gap: 8px; margin-bottom: 6px; }
.lig-titre > b { font-size: 13px; font-weight: 600; color: var(--doux); line-height: 1.3; }
.lig-etapes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px; }
.lig-etapes .chip { justify-content: flex-start; flex-wrap: nowrap; white-space: nowrap; min-width: 0; font-size: 12px; padding: 6px 8px; text-align: left; }
.lig-etapes .chip small { margin-left: auto; }
.lig-forge { background: radial-gradient(ellipse at 50% 65%, rgba(95, 224, 210, .16), transparent 70%), var(--fondi); gap: 6px; }
.lig-rang { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; max-width: 100%; }
.lig-plus { color: var(--or); font-weight: 700; font-size: 18px; }
.lig-case { --c: var(--ligne); position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0;
  padding: 4px; font: inherit; color: inherit; background: var(--fond2); border: 2px solid var(--c); border-radius: 12px; cursor: pointer; }
.lig-case.r-commun { --c: var(--commun); } .lig-case.r-rare { --c: var(--rare); } .lig-case.r-epique { --c: var(--epique); }
.lig-case.r-legendaire { --c: var(--legendaire); } .lig-case.r-mythique { --c: var(--mythique); }
.lig-case.parent { width: 104px; height: 108px; }
.lig-case.parent .tete-cheval { margin: 0; }
.lig-case.vide { border-style: dashed; color: var(--doux); }
.lig-case .lc-plus { font-size: 30px; line-height: 1; color: var(--or); }
.lig-case .lc-nom { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.lig-case .lc-sous { font-size: 10.5px; color: var(--doux); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lig-case.pay { width: 60px; height: 64px; }
.lig-case.pay .lc-ico { font-size: 24px; line-height: 1; }
.lig-case.sceau { --c: #5fe0d2; box-shadow: 0 0 8px rgba(95, 224, 210, .35); }
.lig-case.eclat { --c: #5fd0e8; }
.lig-case.manque { border-style: dashed; box-shadow: none; }
.lig-case.manque .lc-ico { opacity: .4; filter: grayscale(1); }
.lig-case.manque .lc-sous { color: var(--rouge); font-weight: 700; }
.lig-case.chevaux { width: 76px; }
.lig-case.chevaux.manque .lc-sous { color: var(--or); }
.lc-tetes { display: grid; grid-template-columns: repeat(3, 22px); gap: 1px; justify-content: center; }
.lc-tetes.n2 { grid-template-columns: repeat(2, 24px); }
.lc-tetes.n1 { grid-template-columns: 26px; }   /* registre 360 : 1 légendaire = 1 Sceau */
.lc-tetes .tete-cheval { margin: 0; }
.lc-tetes .lc-trou { display: block; width: 18px; height: 18px; margin: 2px; border: 1.5px dashed var(--ligne); border-radius: 50%; }
.lig-case.resultat { width: 96px; height: 96px; cursor: default; opacity: .75; }
.lig-case.resultat.pret { opacity: 1; box-shadow: 0 0 16px var(--c); }
.lig-case.resultat .lc-ico { font-size: 34px; font-weight: 800; line-height: 1; color: var(--c); }
.lig-case.resultat .lc-rar { font-size: 11px; text-transform: uppercase; letter-spacing: .03em; color: var(--c); }
.lig-cout { font-variant-numeric: tabular-nums; text-align: center; }
.lig-forge .lig-gen, .lig-forge .lig-niv { text-align: center; }
.lig-forge .lig-gen .sous { display: block; }
.lig-refus { color: var(--rouge); font-weight: 700; text-align: center; font-size: 13px; }
/* registre 302 : poulains manquants du mythique, payés au moment de la Lignée */
.lig-rachat { width: 100%; display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.lig-rachat .lig-r-choix { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.lig-rachat .lig-r-choix .lc-tetes { grid-template-columns: repeat(6, 22px); }
.lig-rachat .sous { margin: 0; }
.lig-forge .lig-tal { width: 100%; margin: 0; }
.lig-forge > .btn { min-width: 200px; }
.lig-modes { margin: 4px 0 8px; }
.choix.grise { opacity: .55; }
.choix.lig-ch .esp { flex: 1; min-width: 0; } .choix.lig-ch .btn { flex: none; }
@media (max-width: 370px) { .lig-case.parent { width: 96px; } .lig-case.pay { width: 54px; } .lig-case.chevaux { width: 72px; } }

/* v18.7 (registre 158) : Écurie › 🐎 Chevaux / 🏡 Haras / 🔱 Lignée */
/* 23/11 : les 5 onglets de l'Écurie sur une ligne (.ss-ico) ; un peu serrés sous 380 px */
@media (max-width: 380px) { .sous-ecurie { gap: 2px; } .sous-ecurie button { font-size: 11px; } }
.pt-af { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 99px; background: var(--or); color: #1a1405; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; vertical-align: 1px; }
.bloc.a-faire { border-color: var(--or); }
.bloc.a-faire.calme { border-color: var(--ligne); }
.af-l { display: flex; align-items: center; gap: 8px; padding: 6px 0 0; font-size: 13px; }
.af-l + .af-l { border-top: 1px solid var(--ligne); margin-top: 6px; }
.af-l .esp, .choix.place-h .esp, .choix.nais .esp { flex: 1; min-width: 0; }
.cal-l { margin: 0 0 4px; font-size: 13px; }
/* registre 228 (12/11) : Haras en cases (maquette C) + bandeau d'action (maquette A) ; cases de ~200 px au lieu de ~330 */
.bloc.a-faire { background: var(--orfond); }
.af-l .esp b.compte { font-variant-numeric: tabular-nums; white-space: nowrap; }
.hx-outils { display: flex; align-items: center; gap: 6px; margin: 2px 0 4px; }
.hx-outils .esp { font-size: 13px; line-height: 1.6; }
.monte-t b.compte { color: var(--texte); font-variant-numeric: tabular-nums; white-space: nowrap; }
.monte-t small { color: var(--doux); white-space: nowrap; }
.hx-outil { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 12px; border: 1px solid var(--ligne); background: var(--sec); color: inherit; font: inherit; font-size: 19px; cursor: pointer; }
.hx-outil:active { transform: scale(.95); }
.hx-outil[disabled] { opacity: .45; cursor: default; }
.grille-haras { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 16px 8px; padding-top: 12px; }
.carte.haras-c .in { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 7px 8px; text-align: center; }
.carte.haras-c .tete-cheval { margin: 0; }
.carte.haras-c .nom { max-width: 100%; margin: 1px 0 0; font-size: 13.5px; }
.carte.haras-c .meta { margin: 0; font-size: 11px; }
.carte.haras-c .meta .pastille { font-size: 11px; }
.carte.haras-c .h-infos { width: 100%; font-size: 11px; line-height: 1.35; color: var(--doux); display: grid; gap: 1px; }
.carte.haras-c .h-infos b { color: var(--texte); }
.carte.haras-c .h-infos b.compte { font-variant-numeric: tabular-nums; }
.carte.haras-c .h-act { width: 100%; margin-top: auto; padding-top: 6px; display: flex; }
.carte.haras-c .h-act .btn { flex: 1; }
.hx-gest { width: 100%; margin-top: auto; padding: 6px; border-radius: 9px; background: var(--fondi); text-align: left; font-size: 11px; }
.hx-gest .l1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-gest .barre-rar { height: 6px; margin: 4px 0 2px; min-width: 0; }
.hx-gest .l2 { display: flex; justify-content: space-between; align-items: baseline; gap: 4px; color: var(--doux); }
.hx-gest .l2 b.compte { color: var(--texte); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.choix.hx-pre .esp { flex: 1; min-width: 0; }
.choix.hx-pre > b.compte { flex: none; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.choix.hx-pre > b.moins { flex: none; font-size: 12px; white-space: normal; text-align: right; max-width: 90px; }
/* registre 238 : poulain prêt, écurie pleine : message sur plusieurs lignes, bouton d'achat d'un box à droite */
.choix.hx-pre .attend-box { color: var(--rouge); font-weight: 700; white-space: normal; margin-top: 2px; }
.choix.hx-pre > .btn { flex: none; }
/* carte de gestation : parents, poulain attendu (rareté et note, jamais ses stats ni son sexe), dates */
.gc { margin: 6px 0 10px; padding: 10px 11px; border: 1px solid var(--ligne); border-radius: 14px; background: var(--carte); }
.gc-couple { display: flex; align-items: center; gap: 6px; }
.gc-parent { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.gc-parent .tete-cheval { margin: 0; flex: none; }
.gc-parent b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-parent .sous { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-x { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--pill); color: var(--doux); font-weight: 800; }
.gc-fois { flex: none; color: var(--doux); font-weight: 800; }
.gc-attendu { display: flex; align-items: center; gap: 10px; margin: 10px 0 6px; padding: 8px; border-radius: 10px; background: var(--fondi); }
.gc-oeuf { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 2px dashed var(--ligne); background: var(--pill); font-size: 22px; }
.gc-nom { font-size: 15px; }
.gc-note { font-size: 12px; color: var(--doux); } .gc-note b { color: var(--texte); font-variant-numeric: tabular-nums; }
.gc-her { margin-top: 3px; font-size: 12px; color: var(--or); }
.gc-quand { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 6px 0 2px; font-size: 13px; }
.gc-h { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.gc-h b { font-size: 17px; line-height: 20px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gc-h small { font-size: 11.5px; font-weight: 600; color: var(--doux); white-space: nowrap; }
.gc-stats td:last-child { white-space: nowrap; }
/* fenêtres du haras : raison sur sa propre ligne (avant : coupée sous le bouton), prix sur une ligne */
.h-raison { font-size: 12px; font-weight: 700; color: var(--rouge); }
.choix.place-h .btn, .choix.saillie-c .btn { flex: none; }
.choix.saillie-c .esp { flex: 1; min-width: 0; }
.carte .ruban.prete { background: #123d27; border-color: var(--vert); color: var(--vert); }
.carte .ruban.pleine { background: #3d1430; border-color: #e76fbf; color: #ffb3dc; }
.carte .ruban.station { background: var(--orfond); }
.carte .ruban.prete { animation: haras-pulse 1.6s ease-in-out 3; }
@keyframes haras-pulse { 50% { box-shadow: 0 0 0 4px rgba(46, 204, 113, .25); } }
html.anim-coupee .carte .ruban.prete { animation: none !important; }
.box-vide.haras-vide { min-height: 96px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; color: var(--doux); }
.box-vide.haras-vide:active { transform: scale(.97); }
.jauge.nais-j { height: 7px; margin: 5px 0 3px; }
.jauge.nais-j i { background: linear-gradient(90deg, #e76fbf, var(--or)); }
.lig-niv { margin-top: 4px; }
.lig-niv b { color: var(--or); }

.carte .ruban.province { background: #10283a; border-color: #4fb3e8; color: #9fd8ff; }
.carte.absent .in { filter: saturate(.5) brightness(.75); }
.prov-places { display: grid; gap: 8px; margin-bottom: 6px; }
.prov-place { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; border: 1px solid var(--ligne); background: var(--fond2); }
.prov-place .esp { flex: 1; min-width: 0; }
.prov-place.occupee { border-color: #4fb3e8; }
.prov-place.libre { justify-content: center; border-style: dashed; color: var(--or); font: inherit; font-weight: 700; cursor: pointer; min-height: 52px; }
.prov-place.libre:active { transform: scale(.98); }
.prov-place.verrou { justify-content: center; color: var(--doux); font-size: 12.5px; border-style: dashed; }
.prov-gain { color: var(--or); font-weight: 700; font-size: 13px; margin-top: 2px; }
.prov-durees { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.prov-duree { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 12px; border: 1px solid var(--ligne); background: var(--fondi); color: var(--texte); font: inherit; font-size: 13px; cursor: pointer; }
.prov-duree b { font-size: 17px; }
.prov-duree .prov-e { color: var(--or); font-weight: 800; font-size: 15px; }
.prov-duree .sous { font-size: 11.5px; }
.prov-duree.on { border-color: var(--or); background: var(--sec); box-shadow: 0 0 0 2px rgba(245, 197, 66, .3); }
.bloc-province { border-color: #4fb3e8; display: flex; flex-direction: column; gap: 6px; }
.bloc-province .actions { margin-top: 0; }

/* 08/11 : enchères avec une écurie pleine (avertissement avant de miser) */
.avert-plein { color: #e67e22; margin-top: 6px; }

/* ---------- Talismans (registre 172) : couleur de la rareté dans --c ; unique = rose ---------- */
.tal-ico, .tuile-tal, .slot-tal, .tal-tete, .badge-tal, .tal-mini i { --c: var(--commun); }
.tal-ico.r-rare, .tuile-tal.r-rare, .slot-tal.r-rare, .tal-tete.r-rare, .badge-tal.r-rare, .tal-mini i.r-rare { --c: var(--rare); }
.tal-ico.r-epique, .tuile-tal.r-epique, .slot-tal.r-epique, .tal-tete.r-epique, .badge-tal.r-epique, .tal-mini i.r-epique { --c: var(--epique); }
.tal-ico.r-legendaire, .tuile-tal.r-legendaire, .slot-tal.r-legendaire, .tal-tete.r-legendaire, .badge-tal.r-legendaire, .tal-mini i.r-legendaire { --c: var(--legendaire); }
.tal-ico.r-unique, .tuile-tal.r-unique, .slot-tal.r-unique, .tal-tete.r-unique, .badge-tal.r-unique, .tal-mini i.r-unique { --c: #ff4d9a; }
.tal-ico { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--c); font-size: 17px; flex: none; color: inherit; }
.tal-mini { margin-left: 4px; white-space: nowrap; } .tal-mini i { font-style: normal; font-size: 12px; filter: drop-shadow(0 0 3px var(--c)); }
.grille-tal { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin: 6px 0 10px; }
.tuile-tal { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; padding: 8px 4px; background: var(--fond2, #13223d); border: 2px solid var(--c); border-radius: 12px; color: inherit; font: inherit; cursor: pointer; }
.tuile-tal .t-ico { font-size: 28px; line-height: 1.1; } .tuile-tal b { font-size: 11px; line-height: 1.2; text-align: center; }
.tuile-tal .t-et { color: var(--or); font-size: 12px; min-height: 14px; } .tuile-tal .t-rar { font-size: 9.5px; font-weight: 700; color: var(--c); text-transform: uppercase; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tuile-tal .t-marques { position: absolute; top: 2px; left: 4px; font-size: 11px; }
.tuile-tal.neuf { box-shadow: 0 0 12px var(--c); }
.tuile-tal.r-legendaire, .tuile-tal.r-unique { box-shadow: 0 0 10px var(--c); }
.slots-tal { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.slot-tal { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; padding: 8px; border: 2px solid var(--c); border-radius: 12px; background: rgba(255, 255, 255, .05); color: inherit; font: inherit; text-align: center; cursor: pointer; }
.slot-tal .t-ico { font-size: 24px; } .slot-tal small { color: var(--doux); font-size: 11px; }
.bloc.verrou { border-style: dashed; text-align: center; }   /* registre 183 : aperçu des talismans avant le niveau de compte */
.slot-tal.vide { border-style: dashed; border-color: var(--ligne); } .slot-tal.ferme { border-style: dashed; border-color: var(--ligne); opacity: .6; cursor: default; } .slot-tal.dort { opacity: .65; }
.tal-collection .choix { width: 100%; text-align: left; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; opacity: .75; } .tal-collection .choix.a { opacity: 1; }
.badge-tal { display: inline-block; padding: 0 5px; border: 1px solid var(--c); border-radius: 9px; background: rgba(255, 255, 255, .06); color: inherit; font: inherit; font-size: 12px; cursor: pointer; }
.tal-tete { display: flex; align-items: center; gap: 12px; } .tal-tete h2 { margin: 0 0 4px; }
.tal-grand { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--c); font-size: 36px; box-shadow: 0 0 14px var(--c); flex: none; }
.event-tal { border-color: var(--or); background: rgba(245, 197, 66, .1); }
.oeil-c { border-color: #ff4d9a; }
/* registre 284 : images des talismans (icones.js › imgTal) dans les ronds, tuiles, emplacements et fiches */
.tal-ico img.tal-img { width: 24px; height: 24px; vertical-align: middle; }
.tuile-tal .t-ico img.tal-img { width: 40px; height: 40px; vertical-align: middle; }
.slot-tal .t-ico img.tal-img { width: 34px; height: 34px; vertical-align: middle; }
.tal-grand img.tal-img { width: 78%; height: 78%; vertical-align: middle; }
/* Registre 284 : un talisman qui tombe, plein écran ~2,5 s. Lieu (.05 s), globe qui tombe et rebondit (.15 → 1,25 s), éclair, anneau et
   rayons (1,2 s), le globe s'ouvre sur le talisman (1,25 s), titre (1,6 s), nom / rareté / effet (1,85 s). Rare et épique : étincelles ;
   légendaire : + pluie dorée + léger tremblement ; unique : rose, tremblement plus fort. Le style de base = l'écran final : toucher (.fini),
   « Animations réduites » (.reduit) et html.anim-coupee coupent tout (les rayons tournent encore après .fini, sauf animations coupées). */
.tt { --c: var(--commun); color: var(--texte); position: fixed; inset: 0; z-index: 1; display: flex; justify-content: center; overflow-x: hidden; overflow-y: auto;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); background: var(--fond); animation: fin-fondu .25s both; }
.tt.r-rare { --c: var(--rare); } .tt.r-epique { --c: var(--epique); } .tt.r-legendaire { --c: var(--legendaire); } .tt.r-unique { --c: #ff4d9a; }
.tt-fond { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 30%, var(--c) 0, transparent 62%); opacity: .3; }
.tt.r-legendaire .tt-fond { opacity: .38; }
.tt.unique .tt-fond { opacity: .55; background: radial-gradient(circle at 50% 30%, #ff4d9a 0, #6a1440 45%, transparent 85%); }
.tt-flash { position: fixed; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 32%, #fff 0, var(--c) 38%, transparent 78%); animation: lvl-flash .55s 1.2s ease-out both; }
.tt-pluie { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.tt-pluie i { position: absolute; top: -24px; width: 5px; height: 12px; border-radius: 3px; background: linear-gradient(#fff6cf, #f5c542); opacity: 0; animation: tt-pluie 1.6s linear both; }
.tt.unique .tt-pluie i { background: linear-gradient(#ffe0ef, #ff4d9a); }
.tt-corps { position: relative; width: 100%; max-width: 420px; margin: auto 0; text-align: center; }
.tt-lieu { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 1px; animation: lvl-monte .4s .05s ease-out both; }
.tt-lieu small { color: var(--doux); font-size: 12.5px; max-width: 32ch; text-wrap: balance; }
.tt .tt-lieu b { font-size: 19px; color: var(--c); letter-spacing: .02em; text-shadow: 0 1px 8px rgba(0, 0, 0, .55); }
.tt.unique .tt-lieu { gap: 3px; }   /* v19.92 : « Talisman unique » d'abord, la condition en petit dessous */
.tt-scene { position: relative; height: 210px; margin: 6px auto 4px; }
.tt-rayons { position: absolute; left: 50%; top: 50%; width: 400px; height: 400px; margin: -200px 0 0 -200px; border-radius: 50%; pointer-events: none; opacity: .5;
  background: repeating-conic-gradient(var(--c) 0 10deg, transparent 10deg 30deg); -webkit-mask-image: radial-gradient(circle, #000 18%, transparent 66%); mask-image: radial-gradient(circle, #000 18%, transparent 66%);
  animation: tt-apparait .45s 1.2s ease-out both, rayons-tour 14s 1.2s linear infinite; }
.tt-anneau { position: absolute; left: 50%; top: 50%; width: 130px; height: 130px; margin: -65px 0 0 -65px; border: 4px solid var(--c); border-radius: 50%; opacity: 0; pointer-events: none; animation: lvl-anneau .7s 1.22s ease-out both; }
.tt-etinc { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.tt-etinc i { position: absolute; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px 2px var(--c); opacity: 0; animation: tt-etinc .8s ease-out both; }
.tt-tal { position: absolute; left: 50%; top: 50%; width: 140px; height: 140px; margin: -70px 0 0 -70px; display: flex; align-items: center; justify-content: center;
  font-size: 88px; line-height: 1; filter: drop-shadow(0 0 16px var(--c)); animation: tt-revele .6s 1.25s cubic-bezier(.2, 1.5, .4, 1) both; }
.tt-tal img.tal-img { width: 100%; height: 100%; vertical-align: middle; }
.tt.unique .tt-tal { width: 160px; height: 160px; margin: -80px 0 0 -80px; font-size: 100px; }
.tt-globe { position: absolute; left: 50%; top: 50%; width: 110px; height: 110px; margin: -55px 0 0 -55px; opacity: 0; pointer-events: none; animation: tt-chute 1.1s .15s linear both; }
.tt-demi { position: absolute; left: 0; width: 110px; height: 55px; border: 1px solid rgba(255, 255, 255, .6); box-shadow: 0 0 22px var(--c); animation: .45s 1.25s ease-in both; }
.tt-demi.h { top: 0; border-bottom: 0; border-radius: 55px 55px 0 0; animation-name: tt-ouvre-h;
  background: radial-gradient(circle at 36% 46%, rgba(255, 255, 255, .95) 0 7%, transparent 24%), radial-gradient(circle at 50% 100%, var(--c) 0, rgba(255, 255, 255, .4) 85%); }
.tt-demi.b { bottom: 0; border-top: 0; border-radius: 0 0 55px 55px; animation-name: tt-ouvre-b; background: radial-gradient(circle at 50% 0, var(--c) 0, rgba(0, 0, 0, .35) 90%); }
.tt .tt-titre { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 800; color: var(--c); text-wrap: balance; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); animation: lvl-pop .45s 1.6s cubic-bezier(.2, 1.5, .4, 1) both; }
.tt.unique .tt-titre { font-size: 31px; }
.tt-info { margin-top: 10px; padding: 12px; border-radius: 14px; background: var(--fond2); border: 1px solid var(--c); animation: lvl-monte .45s 1.85s cubic-bezier(.2, 1.1, .4, 1) both; }
.tt-nom { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.tt-nom b { font-size: 20px; overflow-wrap: anywhere; }
.tt-effet { margin: 8px 0 4px; font-weight: 600; }
.tt-seul { margin: 6px 0; padding: 6px 10px; border-radius: 10px; background: rgba(255, 77, 154, .14); color: #ffb3d2; font-weight: 700; }
.tt-grace { margin: 6px 0; }
.tt-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.tt-actions .btn { width: 100%; min-height: 46px; overflow-wrap: anywhere; }
.tt.r-legendaire .tt-corps { animation: tt-tremble .35s 1.22s linear both; }
.tt.unique .tt-corps { animation: tt-tremble-fort .55s 1.22s linear both; }
@keyframes tt-chute { 0% { transform: translateY(-62vh); opacity: 1; animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  52% { transform: translateY(0) scale(1); } 60% { transform: translateY(6px) scale(1.16, .84); animation-timing-function: ease-out; }
  76% { transform: translateY(-30px) scale(.95, 1.05); animation-timing-function: ease-in; } 88% { transform: translateY(0) scale(1.07, .93); }
  100% { transform: translateY(0) scale(1); opacity: 1; } }
@keyframes tt-ouvre-h { from { transform: none; opacity: 1; } to { transform: translate(-34px, -56px) rotate(-38deg); opacity: 0; } }
@keyframes tt-ouvre-b { from { transform: none; opacity: 1; } to { transform: translate(34px, 46px) rotate(32deg); opacity: 0; } }
@keyframes tt-revele { from { transform: scale(.2) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes tt-apparait { from { opacity: 0; transform: scale(.4); } }
@keyframes tt-etinc { 0% { transform: translate(0, 0) scale(.5); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }
@keyframes tt-pluie { 0% { transform: translateY(0) rotate(0); opacity: var(--t); } 100% { transform: translateY(110vh) rotate(260deg); opacity: 0; } }
@keyframes tt-tremble { 0%, 100% { transform: none; } 20% { transform: translate(-4px, 2px); } 40% { transform: translate(4px, -2px); } 60% { transform: translate(-3px, -1px); } 80% { transform: translate(2px, 1px); } }
@keyframes tt-tremble-fort { 0%, 100% { transform: none; } 12% { transform: translate(-9px, 4px); } 25% { transform: translate(8px, -5px); } 38% { transform: translate(-7px, -3px); }
  52% { transform: translate(6px, 4px); } 66% { transform: translate(-4px, 2px); } 80% { transform: translate(3px, -2px); } }
@media (max-height: 700px) { .tt-scene { height: 168px; } .tt-tal { width: 116px; height: 116px; margin: -58px 0 0 -58px; font-size: 72px; }
  .tt.unique .tt-tal { width: 128px; height: 128px; margin: -64px 0 0 -64px; font-size: 80px; } .tt .tt-titre { font-size: 25px; } }
.tt.fini, .tt.fini *:not(.tt-rayons) { animation: none !important; }
.tt.fini .tt-rayons { animation: rayons-tour 14s linear infinite !important; }
.tt.reduit, .tt.reduit *, html.anim-coupee .tt, html.anim-coupee .tt * { animation: none !important; }
.tt.fini .tt-pluie, .tt.fini .tt-etinc, .tt.reduit .tt-pluie, .tt.reduit .tt-etinc, html.anim-coupee .tt-pluie, html.anim-coupee .tt-etinc { display: none; }
/* v20.05 (registre 298, ticket 86) : coffre de la boutique de gemmes, plein écran ~2 s. Tremble (0 → .7 s), éclair et rayons (.7 s), s'ouvre
   (saute puis s'abaisse), objets un par un (.95 s + .3 s par objet), titre (1,35 s), boutons (1,7 s). Le style de base = l'écran final :
   .fini (toucher, « Passer », fin du temps) et html.anim-coupee coupent tout. Couleurs : variables (--c = rareté) */
.cg { --c: var(--commun); color: var(--texte); position: fixed; inset: 0; z-index: 1; display: flex; justify-content: center; overflow-x: hidden; overflow-y: auto;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); background: var(--fond); animation: fin-fondu .2s both; }
.cg.r-rare { --c: var(--rare); } .cg.r-epique { --c: var(--epique); } .cg.r-legendaire { --c: var(--legendaire); }
.cg-fond { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 28%, var(--c) 0, transparent 62%); opacity: .3; }
.cg-flash { position: fixed; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 28%, var(--texte) 0, var(--c) 38%, transparent 78%); animation: lvl-flash .5s .7s ease-out both; }
.cg .cg-passer { position: absolute; top: max(10px, env(safe-area-inset-top)); right: 16px; z-index: 2; font-size: 13px; }
.cg.fini .cg-passer { display: none; }
.cg-corps { position: relative; width: 100%; max-width: 420px; margin: auto 0; text-align: center; }
.cg-scene { position: relative; height: 180px; }
.cg-rayons { position: absolute; left: 50%; top: 50%; width: 360px; height: 360px; margin: -180px 0 0 -180px; border-radius: 50%; pointer-events: none; opacity: .45;
  background: repeating-conic-gradient(var(--c) 0 10deg, transparent 10deg 30deg); -webkit-mask-image: radial-gradient(circle, #000 18%, transparent 66%); mask-image: radial-gradient(circle, #000 18%, transparent 66%);
  animation: tt-apparait .45s .7s ease-out both, rayons-tour 14s .7s linear infinite; }
.cg-boite { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; display: flex; align-items: center; justify-content: center;
  font-size: 84px; line-height: 1; filter: drop-shadow(0 0 14px var(--c)); transform: translateY(26px) scale(.82); opacity: .6;
  animation: cg-tremble .7s linear both, cg-ouvre .55s .7s cubic-bezier(.2, 1.4, .4, 1) forwards; }
.cg-boite .ico-img { width: 110px; height: 110px; vertical-align: middle; }
.cg .cg-titre { margin: 0 0 10px; font-size: 25px; font-weight: 800; color: var(--c); text-shadow: 0 2px 10px rgba(0, 0, 0, .6); animation: lvl-pop .4s 1.35s cubic-bezier(.2, 1.5, .4, 1) both; }
.cg-objets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cg-obj { display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 12px; border-radius: 14px; background: var(--fond2); border: 1px solid var(--c);
  box-shadow: 0 0 14px -4px var(--c); animation: cg-sort .45s calc(.95s + var(--i) * .3s) cubic-bezier(.2, 1.3, .4, 1) both; }
.cg-ico { flex: none; width: 52px; text-align: center; font-size: 38px; line-height: 1; }
.cg-ico .ico-img { width: 48px; height: 48px; vertical-align: middle; }
.cg-txt { min-width: 0; overflow-wrap: anywhere; }
.cg-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; animation: lvl-monte .35s 1.7s ease-out both; }
.cg-actions .btn { width: 100%; min-height: 46px; }
@keyframes cg-tremble { 0%, 100% { transform: none; } 15% { transform: translate(-3px, 1px) rotate(-6deg); } 30% { transform: translate(3px, -1px) rotate(6deg); }
  45% { transform: translate(-4px, 0) rotate(-8deg); } 60% { transform: translate(4px, -2px) rotate(8deg); } 75% { transform: translate(-3px, 1px) rotate(-5deg); } 90% { transform: translate(2px, 0) rotate(3deg); } }
@keyframes cg-ouvre { 0% { transform: none; opacity: 1; } 40% { transform: translateY(-14px) scale(1.25); opacity: 1; } 100% { transform: translateY(26px) scale(.82); opacity: .6; } }
@keyframes cg-sort { from { transform: translateY(-110px) scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
.cg.fini, .cg.fini *:not(.cg-rayons) { animation: none !important; }
.cg.fini .cg-rayons { animation: rayons-tour 14s linear infinite !important; }
html.anim-coupee .cg, html.anim-coupee .cg * { animation: none !important; }
/* v20.21 : animation de gain (vue.js › ouvrirGain), plein écran ~1,7 s. L'objet saute (0 s), pièces / gemmes jaillissent (.15 s, .tm-pluie),
   moyen : anneau, rayons et étincelles (.2 s, .tt-etinc) ; gros : éclair (.2 s), confettis (.lvl-confettis) et pluie dorée (.tt-pluie).
   Titre (.3 s), lignes une par une (.5 s + .1 s par ligne), bouton. Le style de base = l'écran final : .fini et html.anim-coupee coupent tout.
   Couleurs : variables (--c = rareté de la meilleure pièce, sinon la force ; fonds --fond / --fond2 des saisons) */
.gn { --c: var(--or); color: var(--texte); position: fixed; inset: 0; z-index: 1; display: flex; justify-content: center; overflow-x: hidden; overflow-y: auto;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); background: var(--fond); animation: fin-fondu .2s both; }
.gn.r-rare { --c: var(--rare); } .gn.r-epique { --c: var(--epique); } .gn.r-legendaire { --c: var(--legendaire); } .gn.r-mythique { --c: var(--mythique); }
.gn-fond { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 26%, var(--c) 0, transparent 60%); opacity: .22; }
.gn.f-gros .gn-fond { opacity: .32; }
.gn-flash { position: fixed; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 26%, var(--texte) 0, var(--c) 38%, transparent 78%); animation: lvl-flash .5s .2s ease-out both; }
.gn-corps { position: relative; width: 100%; max-width: 420px; margin: auto 0; text-align: center; }
.gn-scene { position: relative; height: 150px; }
.gn-rayons { position: absolute; left: 50%; top: 50%; width: 300px; height: 300px; margin: -150px 0 0 -150px; border-radius: 50%; pointer-events: none; opacity: .4;
  background: repeating-conic-gradient(var(--c) 0 10deg, transparent 10deg 30deg); -webkit-mask-image: radial-gradient(circle, #000 18%, transparent 66%); mask-image: radial-gradient(circle, #000 18%, transparent 66%);
  animation: tt-apparait .4s .2s ease-out both, rayons-tour 14s .2s linear infinite; }
.gn-anneau { position: absolute; left: 50%; top: 50%; width: 110px; height: 110px; margin: -55px 0 0 -55px; border-radius: 50%; border: 3px solid var(--c); opacity: 0; pointer-events: none; animation: lvl-anneau .7s .2s ease-out both; }
.gn-ico { position: absolute; left: 50%; top: 50%; width: 110px; height: 110px; margin: -55px 0 0 -55px; display: flex; align-items: center; justify-content: center;
  font-size: 72px; line-height: 1; filter: drop-shadow(0 0 12px var(--c)); animation: lvl-pop .45s cubic-bezier(.2, 1.5, .4, 1) both, tm-saut .45s .45s ease-out; }
.gn-ico .ico-img { width: 96px; height: 96px; vertical-align: middle; }
.gn .tm-pluie i { width: 26px; height: 26px; margin: -13px; }
.gn .gn-titre { margin: 4px 0 4px; font-size: 26px; font-weight: 800; color: var(--c); text-shadow: 0 2px 10px rgba(0, 0, 0, .6); animation: lvl-pop .4s .3s cubic-bezier(.2, 1.5, .4, 1) both; }
.gn-source { margin: 0 0 12px; color: var(--doux); font-size: 14px; overflow-wrap: anywhere; animation: lvl-monte .35s .4s ease-out both; }
.gn-lignes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.gn-ligne { display: flex; align-items: center; gap: 10px; text-align: left; padding: 8px 12px; border-radius: 12px; background: var(--fond2); border: 1px solid var(--ligne);
  animation: lvl-monte .35s calc(.5s + var(--i) * .1s) ease-out both; }
.gn-i { flex: none; width: 40px; text-align: center; font-size: 28px; line-height: 1; }
.gn-i .ico-img { width: 34px; height: 34px; vertical-align: middle; }
.gn-t { min-width: 0; overflow-wrap: anywhere; }
.gn-t b { font-size: 18px; }
.gn-xp { display: inline-block; padding: 3px 5px; border-radius: 6px; font-size: 13px; font-weight: 800; background: var(--c); color: var(--fond); }
.gn-actions { display: flex; flex-direction: column; margin-top: 14px; animation: lvl-monte .35s calc(.6s + var(--n) * .1s) ease-out both; }
.gn-actions .btn { width: 100%; min-height: 46px; }
.gn.fini, .gn.fini *:not(.gn-rayons) { animation: none !important; }
.gn.fini .gn-rayons { animation: rayons-tour 14s linear infinite !important; }
.gn.fini .tm-pluie, .gn.fini .tt-etinc, .gn.fini .tt-pluie, .gn.fini .lvl-confettis, .gn.fini .gn-flash, .gn.fini .gn-anneau { display: none; }
html.anim-coupee .gn, html.anim-coupee .gn * { animation: none !important; }
html.anim-coupee .gn-rayons { display: none; }
/* carte de fin du direct : un talisman est tombé dans cette course (sans dire lequel : la surprise est pour la fenêtre plein écran) */
.fin-tal { margin: 6px 0 0; padding: 6px 10px; border-radius: 10px; text-align: center; font-weight: 800; background: rgba(255, 246, 207, .08); border: 1px solid rgba(245, 197, 66, .55); box-shadow: 0 0 12px rgba(245, 197, 66, .25); }
.fin-tal span { color: var(--or); background: linear-gradient(100deg, var(--or) 0 35%, #fffbe8 50%, var(--or) 65% 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: tt-brille 2.2s ease-in-out infinite; }
@keyframes tt-brille { from { background-position: 100% 0; } to { background-position: -50% 0; } }
html.anim-coupee .fin-tal span { animation: none; -webkit-text-fill-color: currentColor; background: none; }

/* ---------- Classements et podiums (registre 175) ---------- */
/* lot Classements (20/11) : 6 onglets à icône sur une ligne (soulignés : 2e niveau, distinct des sous-onglets en boîte au-dessus) */
.puces-cl { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0 0 10px; border-bottom: 1px solid var(--ligne); }
.puces-cl button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; min-height: 50px; padding: 4px 0 6px;
  background: none; border: 0; border-radius: 10px 10px 0 0; color: var(--doux); font: inherit; font-size: 11.5px; font-weight: 700; line-height: 1.1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: inset 0 -3px 0 transparent; }
.puces-cl .pc-ico { font-size: 19px; line-height: 1; filter: grayscale(.35); opacity: .85; }
.puces-cl button.on { color: var(--or); background: var(--fondi); box-shadow: inset 0 -3px 0 var(--or); }
.puces-cl button.on .pc-ico { filter: none; opacity: 1; }
/* une ligne d'outils : vue en boutons segmentés + choix de l'année (registre 264, 5 années au plus : ANNEES_CL_MAX) */
.barre-cl { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.barre-cl.seul { justify-content: flex-end; }
.barre-txt { flex: 1; min-width: 0; margin: 0; font-size: 12.5px; line-height: 1.3; color: var(--doux); }
.seg-cl { flex: 1; min-width: 0; display: flex; gap: 2px; padding: 3px; background: var(--fondi); border: 1px solid var(--ligne); border-radius: 11px; }
.seg-cl button { flex: 1 1 0; min-width: 0; min-height: 38px; padding: 4px 4px; background: none; border: 0; border-radius: 8px; color: var(--doux); font: inherit;
  font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg-cl button.on { background: var(--sec); color: var(--or); }
select.an-cl { flex: none; min-height: 44px; padding: 6px 8px; border-radius: 11px; font-weight: 800; color: var(--or); font-variant-numeric: tabular-nums; }
.cl-info { margin: 2px 0 0; text-align: center; font-size: 12.5px; color: var(--doux); font-variant-numeric: tabular-nums; }
.cl-info b { color: var(--texte); }
.cl-info + .podium { margin-top: 6px; }
.an-final { margin: 4px 0 0; text-align: center; font-weight: 700; color: var(--or, #e8c35a); }
.top-l td:nth-child(2) { width: 40px; }
.top-l td:nth-child(3) { width: auto; }
.top-l td:first-child { width: 26px; text-align: center; font-variant-numeric: tabular-nums; }
.top-l td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }   /* « 147 pts » jamais sur 2 lignes */
.top-l td:last-child small { font-size: 11px; color: var(--doux); }
/* ma ligne reste visible en haut ou en bas pendant que la liste défile (comme la poule de la Coupe, .pl-l.moi) */
.top-l tr.moi td { position: sticky; top: calc(62px + env(safe-area-inset-top)); bottom: calc(74px + env(safe-area-inset-bottom)); z-index: 2; background: var(--moi);
  box-shadow: inset 0 1px 0 var(--saison), inset 0 -1px 0 var(--saison); }
.top-l tr.moi td:first-child { box-shadow: inset 3px 0 0 var(--saison), inset 0 1px 0 var(--saison), inset 0 -1px 0 var(--saison); color: var(--or); }
.top-l tr.moi td:last-child small, .top-l tr.moi .sous { color: var(--texte); }
body.avec-fil .top-l tr.moi td { bottom: calc(120px + env(safe-area-inset-bottom)); }
.podium { position: relative; display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 6px; margin: 14px 0 6px; padding-top: 18px; overflow: hidden; }
.pod-col { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.pod-col.vide { visibility: hidden; }
.pod-haut { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; max-width: 100%; }
.pod-tete { display: flex; justify-content: center; }
.pod-couronne { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 18px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); }
.pod-grand { position: relative; display: inline-block; }
.pod-grand .pod-casaque { position: absolute; right: -10px; bottom: -4px; width: 34px; height: 34px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .6)); }
.pod-nom { font-weight: 800; font-size: 13px; line-height: 1.2; margin-top: 4px; max-width: 100%; overflow: hidden; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }   /* 2 lignes au plus (nom + titre) */
.pod-nom .plaque { font-size: 12px; }
.pod-sous { font-size: 11.5px; color: var(--doux); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod-n { font-weight: 800; font-size: 13px; color: var(--texte); margin: 2px 0 4px; }
.pod-marche { width: 100%; display: grid; place-items: center; border-radius: 10px 10px 0 0; font-size: 20px; color: rgba(0, 0, 0, .55);
  border: 1px solid rgba(255, 255, 255, .25); border-bottom: 0; transform-origin: bottom; }
.p1 .pod-marche { height: 78px; background: linear-gradient(180deg, #ffe08a, #f5c542 45%, #b8860b); box-shadow: 0 0 18px rgba(245, 197, 66, .35); }
.p2 .pod-marche { height: 56px; background: linear-gradient(180deg, #eef3f8, #c9d2dc 45%, #8a96a5); }
.p3 .pod-marche { height: 42px; background: linear-gradient(180deg, #f0b98d, #c98a5a 45%, #8a5530); }
.p1 .pod-n { color: #f5c542; }   /* or fixe : --or change avec la saison */
.pod-col.moi .pod-nom { color: var(--or); }
.pod-col.moi .pod-marche { outline: 2px solid var(--vert); outline-offset: -2px; }
.blason.ia { background: linear-gradient(135deg, #3a4a66 50%, #24324d 50%); }
.top-moi { position: sticky; bottom: calc(74px + env(safe-area-inset-bottom)); z-index: 5; display: flex; align-items: center; gap: 10px; margin: 8px 0;
  background: var(--sec); border: 1px solid var(--or); border-radius: 10px; padding: 8px 12px; font-size: 14px; box-shadow: 0 4px 14px rgba(0, 0, 0, .45); }
.top-moi > b { color: var(--or); white-space: nowrap; }
/* 10/11 : niveau de compte d'une écurie, collé au nom (Classement › Écuries seulement) ; couleurs par variables (suivent la saison) */
.niv-pastille { display: inline-block; vertical-align: 1px; margin-left: 5px; padding: 0 6px; border-radius: 99px; font-size: 10.5px; font-weight: 800; line-height: 16px;
  white-space: nowrap; background: var(--pill); color: var(--or); border: 1px solid var(--ligne); font-variant-numeric: tabular-nums; }
.pod-sous .niv-pastille { margin-left: 0; }
.top-moi .niv-pastille { vertical-align: 0; }
.titre-mini { font-size: 13px; margin-left: 3px; }
.titre-mini small { font-size: 10px; color: var(--or); margin-left: 1px; }
.palm-an h3 { margin: 0 0 6px; color: var(--or); }
.palm-an > .sous { margin-top: 6px; font-weight: 700; }
/* entrée : les marches montent (bronze, argent, puis or), les têtes arrivent, quelques confettis dorés ; rien avec les animations réduites */
html:not(.anim-coupee) .podium.pod-anim .pod-marche { animation: pod-monte .55s cubic-bezier(.2, .9, .3, 1.2) both; }
html:not(.anim-coupee) .podium.pod-anim .p3 .pod-marche { animation-delay: .05s; }
html:not(.anim-coupee) .podium.pod-anim .p2 .pod-marche { animation-delay: .15s; }
html:not(.anim-coupee) .podium.pod-anim .p1 .pod-marche { animation-delay: .28s; }
html:not(.anim-coupee) .podium.pod-anim .pod-haut, html:not(.anim-coupee) .podium.pod-anim .pod-n, html:not(.anim-coupee) .podium.pod-anim .pod-sous { animation: pod-tete .45s ease-out .45s both; }
@keyframes pod-monte { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes pod-tete { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.pod-confettis { position: absolute; inset: 0; pointer-events: none; }
.pod-confettis i { position: absolute; top: -10px; width: 6px; height: 10px; border-radius: 2px; background: var(--or); opacity: 0; animation: pod-confetti 1.6s ease-in forwards; }
.pod-confettis i:nth-child(3n) { background: #fff3c4; width: 5px; height: 7px; }
.pod-confettis i:nth-child(4n) { background: #e6a700; }
@keyframes pod-confetti { 0% { opacity: 0; transform: translateY(0) rotate(0); } 10% { opacity: 1; } 100% { opacity: 0; transform: translateY(170px) rotate(320deg); } }
html.anim-coupee .pod-confettis { display: none; }
/* UX lot 1 (10/11/2026, audit-ux-graphisme) : réparations visibles */
.replay .reste { white-space: nowrap; }   /* G3 : « Reste … m · 🐎 … m » ne passe plus à la ligne (left 50 % lui laissait la moitié de l'écran) */
.badge.or, .badge.vert, .nw { white-space: nowrap; }   /* F2 : « 🥇 1er : 1 150 € » jamais coupé en fin de ligne */
.haut, .banque, .horloge, .replay .ordre, .replay .reste, .fin-gain, .badge, .compte-coffres b { font-variant-numeric: tabular-nums; }   /* F4 : les chiffres ne sautent plus */
input[type=checkbox], input[type=radio] { accent-color: var(--or); }   /* F10 : cases aux couleurs du jeu (et de la saison) */
/* UX lot 2 (10/11/2026) : un direct lisible */
/* G2 : cravache neutre hors de la zone (le jaune voulait dire « appuie ») ; rouge foncé trop tôt, vert dans la zone (inchangés) ; coup donné bien visible */
.btn.crav:not(.zone):not(.tot):not(.fait) { background: var(--sec); color: var(--texte); border: 1px solid var(--ligne); }
.btn.crav.fait { opacity: 1; }
.btn.crav.fait.bon { border-color: var(--vert); color: #a5f0c0; background: rgba(46, 204, 113, .14); }
.btn.crav.fait.mauvais { border-color: #e5484d; color: #ffc0c0; background: rgba(229, 72, 77, .14); }
/* G4 : petit téléphone (hauteur 700 px et moins) : commentaire sur une ligne, caméras en icônes */
@media (max-width: 420px) and (max-height: 700px) {
  .replay .comm { font-size: 12px; padding: 4px 8px; min-height: 0; bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .replay .cams { bottom: 34px; }
  .replay .cams .cam-l { display: none; }
  .replay .cams .btn { min-width: 42px; font-size: 16px; }
}
/* UX lot 4 (10/11/2026) : moins de choses avant le contenu */
/* v20.69 : aide en bulle (aideBulle de vue.js) : rond « i » de 20 px dans une zone tactile de 32 px ; avec étiquette : une ligne discrète.
   Remplace les plis .aide-pli (une seule façon de montrer l'aide). La bulle elle-même = #popmot (v20.62). */
.aide-bulle { display: inline-flex; align-items: center; justify-content: center; gap: 6px; vertical-align: middle; min-width: 32px; min-height: 32px;
  margin: -6px 0 -6px 2px; padding: 0 6px; background: none; border: 0; color: var(--doux); font: inherit; font-size: 13px; font-weight: 400; cursor: pointer;
  -webkit-tap-highlight-color: transparent; text-align: start; }
.aide-bulle > i { flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--saison);
  color: var(--saison); font: italic 700 13px/1 Georgia, 'Times New Roman', serif; }
.aide-bulle.avec-texte { margin: 0; padding: 0; min-height: 32px; }
.aide-bulle.avec-texte > i { order: -1; }   /* « ⓘ étiquette », comme l'ancien pli */
.aide-bulle:focus-visible { outline: 2px solid var(--or); outline-offset: 1px; border-radius: 8px; }
.aide-bulle.pop-ancre > i { background: var(--saison); color: var(--pill); }
.aide-ligne { margin: 2px 0 10px; }
/* ticket 93 : « Comment ça marche ? » de la Lignée (écran Lignée et Règles), étapes numérotées */
.regle-etapes { margin: 6px 0 4px; padding-left: 20px; }
.regle-etapes li { margin: 3px 0; line-height: 1.4; }
.bloc.compte .aide-ligne { margin: 4px 0 0; }
.barre-filtres { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px; margin: 4px 0 8px; }
.filtres-courses { display: contents; }
.filtres-courses > summary { list-style: none; cursor: pointer; }
.filtres-courses > summary::-webkit-details-marker { display: none; }
.filtres-courses > .actions { order: 10; flex-basis: 100%; margin: 2px 0 0; padding: 8px; border: 1px solid var(--ligne); border-radius: 12px; background: var(--fondi); }
.filtres-actifs { margin: -2px 0 6px; }
.chips.defile { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.chips.defile::-webkit-scrollbar { display: none; }
.chips.defile .chip { flex: none; }
.tri-ecurie select { padding: 6px 8px; border-radius: 10px; }
/* UX lot 5 (10/11/2026) : doigts et images */
/* G8 : zones tactiles d'au moins ~40 px sans changer le dessin (marge invisible) ; puces et petits boutons un peu plus hauts */
button.horloge { position: relative; }
button.horloge::after { content: ''; position: absolute; inset: -8px -3px; }
.chip { min-height: 32px; }
.btn.petit { min-height: 36px; }
.lien-tri { position: relative; padding: 6px 2px; }
.lien-tri::after { content: ''; position: absolute; inset: -6px -4px; }
/* G10 : fenêtre ouverte : une seule bulle, tout en haut sur le voile (le haut de la fenêtre, sa croix et son titre restent libres) ;
   bandeau du rond / du direct affiché : les bulles passent en bas, au-dessus de la barre */
body:has(#feuille:not([hidden])) .toasts { top: calc(4px + env(safe-area-inset-top)); }
body:has(#feuille:not([hidden])) .toasts .toast ~ .toast { display: none; }
body:has(#bandeau-direct:not([hidden])) .toasts { top: auto; bottom: calc(80px + env(safe-area-inset-bottom)); flex-direction: column-reverse; }
/* F16 : libellés de la barre du bas lisibles, contour visible au clavier */
@media (max-width: 360px) { .bas button { font-size: 10px; } }
:focus-visible { outline: 2px solid var(--or); outline-offset: 2px; }
button:focus:not(:focus-visible) { outline: none; }
/* Onglet Courses, refonte du 11/11/2026 : une ligne par course, une seule course ouverte à la fois */
.cr-titre { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 8px 0 6px; }
.cr-titre h2 { margin: 0; }
.cr-titre > .sous { text-align: right; }
.engagements { margin-bottom: 14px; }
/* 12/11 : « Mes engagements » repliable (details) : titre = bouton, flèche après le compteur */
.engagements > summary { list-style: none; cursor: pointer; min-height: 40px; align-items: center; }
.engagements > summary::-webkit-details-marker { display: none; }
.engagements > summary > .sous::after { content: ' ▴'; font-size: 12px; opacity: .8; }
.engagements:not([open]) > summary > .sous::after { content: ' ▾'; }
.bloc.cr-b { padding: 0; margin-bottom: 8px; border-radius: 13px; }
.cr { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; column-gap: 10px; align-items: start; width: 100%; padding: 9px 12px; background: none; border: 0; border-radius: 12px; color: inherit; text-align: left; font: inherit; }
button.cr:active { background: var(--fondi); }
.cr-h { grid-row: 1 / span 2; display: flex; flex-direction: column; }
.cr-h b { font-size: 16px; line-height: 20px; font-variant-numeric: tabular-nums; }
.cr-h small { font-size: 12px; font-weight: 600; color: var(--doux); }
.cr-m, .cr-g { min-width: 0; line-height: 20px; }
.cr-m b { font-size: 15px; }
.cr-m .et-b { font-size: 11px; }
.cr-m small, .cr-g small { display: block; font-size: 12.5px; line-height: 17px; color: var(--doux); }
.cr-g { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cr-g b { font-size: 15px; color: var(--or); }
.cr-g i { font-style: normal; font-size: 12px; color: var(--doux); }
.cr-g small.gratuit { color: var(--vert); font-weight: 700; }
.cr-v { grid-column: 2 / -1; margin-top: 3px; padding-right: 16px; font-size: 13px; line-height: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--doux); }
.cr-v { display: flex; align-items: center; }
.cr-v > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cr-v::before { flex: none; }
.cr-v em { flex: none; margin-left: 8px; font-style: normal; font-size: 12px; font-weight: 700; color: var(--or); }
.cr-ok .cr-v::before, .cr-moyen .cr-v::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; vertical-align: 1px; background: var(--vert); }
.cr-moyen .cr-v::before { background: #ffcf8a; }
.cr-ok .cr-v { color: var(--texte); font-weight: 600; }
.cr-moyen .cr-v { color: #ffcf8a; }
.cr.cr-eng .cr-v { color: var(--texte); }
.cr-non .cr-h b, .cr-non .cr-m b, .cr-non .cr-g b, .cr-att .cr-h b, .cr-att .cr-m b, .cr-att .cr-g b { color: var(--doux); font-weight: 600; }
.cr-fl { position: absolute; right: 10px; bottom: 8px; font-size: 18px; line-height: 18px; color: var(--doux); }
.cr-b.ouverte { border-color: var(--saison); }
.cr-b.ouverte .cr-fl { transform: rotate(90deg); }
.cr-b.ouverte > .cr { border-radius: 12px 12px 0 0; }
.cr-corps { padding: 0 12px 10px; border-top: 1px solid var(--ligne); }
html:not(.anim-coupee) .cr-corps.vient { animation: cr-ouvre .16s ease-out; }
@keyframes cr-ouvre { from { transform: translateY(-6px); } }   /* sans opacité : une animation arrêtée (onglet en fond) ne cache rien */
.cr-avert { margin: 10px 0 0; }
.cr-corps .aide-ligne { margin: 0; }
.cr-sec { margin: 12px 0 0; font-size: 13px; font-weight: 700; color: var(--saison); }
.filtres-courses[open]::details-content { display: contents; }
.crack.bloque { margin-top: 6px; padding: 8px 10px; }
.crack.bloque .choix { margin-top: 2px; padding: 0; background: none; }
.crack.bloque p { margin: 4px 0 0; }
.crack.bloque .actions { margin-top: 6px; }
.histo-pli { margin-top: 14px; }
.histo-pli > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; list-style: none; }
.histo-pli > summary::-webkit-details-marker { display: none; }
.histo-pli > summary h3 { margin: 0; }
.histo-pli > summary small { color: var(--doux); font-variant-numeric: tabular-nums; }
.histo-pli > summary::after { content: '▾'; margin-left: auto; font-size: 12px; opacity: .8; }
.histo-pli[open] > summary::after { content: '▴'; }
.cr-pli { margin-top: 6px; }
.cr-pli > summary { display: flex; align-items: center; justify-content: space-between; min-height: 40px; font-size: 13.5px; font-weight: 600; color: var(--doux); cursor: pointer; list-style: none; }
.cr-pli > summary::-webkit-details-marker { display: none; }
.cr-pli > summary::after { content: '▾'; font-size: 12px; opacity: .8; }
.cr-pli[open] > summary::after { content: '▴'; }
.cr-bas { margin-top: 8px; border-top: 1px solid var(--ligne); }
.cr-bas .aide-bulle.avec-texte { min-height: 40px; }
.cr-div { display: flex; flex-wrap: wrap; gap: 5px; }
.cr-seg { flex: 1 1 190px; margin: 0; padding: 3px; }
.cr-seg button { padding: 5px 6px; min-height: 36px; white-space: nowrap; }
.barre-filtres .filtres-courses > summary { display: flex; align-items: center; min-height: 44px; }
.filtres-courses > .actions .chips { flex-basis: 100%; margin-top: 0; }
/* Onglet Courses, mélange B + C (12/11/2026) : la carte d'une course prend la couleur de son type (seulement la carte : barres, titres et boutons
   gardent la couleur de saison) ; course ouverte = bannière du type ; un cheval = une ligne. Couleurs choisies pour un contraste ≥ 4,5 sur la
   teinte (14 % au plus) dans les 4 saisons, pour le nom du type comme pour le texte gris. */
:root { --t-groupe: #d4a8ff; --t-list: #ffb84f; --t-hand: #7cc3ff; --t-cond: #5fdccf; --t-recl: #ff9479; --t-fede: #6ee69a; --t-vet: #d9b892; --t-classe: #8ad8fc; --t-deb: #a8e83c; --t-autre: var(--doux); }
.cr-b.t-groupe { --t: var(--t-groupe); } .cr-b.t-list { --t: var(--t-list); } .cr-b.t-hand { --t: var(--t-hand); } .cr-b.t-cond { --t: var(--t-cond); } .cr-b.t-recl { --t: var(--t-recl); }
.cr-b.t-fede { --t: var(--t-fede); } .cr-b.t-vet { --t: var(--t-vet); } .cr-b.t-classe { --t: var(--t-classe); } .cr-b.t-deb { --t: var(--t-deb); } .cr-b.t-autre { --t: var(--t-autre); }
/* v20.02 : étages du Groupe (vue.js › clsType) ; contraste ≥ 4,5 sur la teinte de la carte (14 % et 24 %) dans les 4 saisons (G3 4,5 ; G2 4,6 ; G1 5,6 ; Élite 4,7) */
:root { --t-g3: #d4a8ff; --t-g2: #b3b8ff; --t-g1: #ffd76e; --t-ge: #ff9ee6; }
.cr-b.t-g3 { --t: var(--t-g3); } .cr-b.t-g2 { --t: var(--t-g2); } .cr-b.t-g1 { --t: var(--t-g1); } .cr-b.t-ge { --t: var(--t-ge); }
.bloc.cr-b { border-color: color-mix(in srgb, var(--t) 40%, var(--ligne)); border-left: 3px solid var(--t);
  background: linear-gradient(110deg, color-mix(in srgb, var(--t) 14%, var(--fond2)) 0%, var(--fond2) 60%); }
.cr { padding: 5px 10px 5px 9px; column-gap: 8px; grid-template-columns: 44px minmax(0, 1fr) auto; }
.cr-h b { font-size: 15px; }
.cr-t { font-size: 12.5px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: var(--t); white-space: nowrap; }
.cr-med { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 5px; border-radius: 50%; font-style: normal; font-size: 10px; line-height: 1; vertical-align: -3px;
  background: color-mix(in srgb, var(--t) 30%, transparent); box-shadow: inset 0 0 0 1px var(--t); }
.cr-m { line-height: 18px; } .cr-h b { line-height: 18px; } .cr-m small, .cr-g small { font-size: 12px; line-height: 16px; } .cr-g { line-height: 19px; }
.cr-v { margin-top: 1px; font-size: 12.5px; line-height: 17px; }
.cr-b.ouverte { border-color: color-mix(in srgb, var(--t) 70%, var(--ligne)); border-left-color: var(--t); }
.cr-ban { padding: 8px 10px 9px 9px; background: linear-gradient(120deg, color-mix(in srgb, var(--t) 24%, var(--fond2)), color-mix(in srgb, var(--t) 8%, var(--fond2))); border-radius: 12px 12px 0 0; }
.cr-ban-t { position: relative; display: flex; align-items: center; gap: 9px; width: 100%; padding: 0 22px 0 0; background: none; border: 0; color: inherit; text-align: left; font: inherit; min-height: 44px; }
.cr-ban-t .cr-med { flex: none; width: 34px; height: 34px; margin: 0; font-size: 18px; vertical-align: 0; box-shadow: inset 0 0 0 1.5px var(--t), 0 0 0 2px var(--fond2); }
.cr-ban-m { min-width: 0; display: flex; flex-direction: column; }
.cr-ban-m .cr-t { color: var(--texte); opacity: .9; overflow: hidden; text-overflow: ellipsis; }
.cr-ban-m .cr-t .nw { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--doux); }
.cr-ban .titre { font-size: 17px; line-height: 21px; }
.cr-ban .cr-fl { bottom: auto; top: 12px; right: 0; }
.cr-bulles { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.cr-bulles > span { font-size: 12px; font-weight: 600; line-height: 16px; padding: 3px 8px; border-radius: 99px; background: rgba(0, 0, 0, .28); font-variant-numeric: tabular-nums; }
.cr-bulles > .etoiles { display: inline-flex; align-items: center; }
.cr-bulles .or { color: var(--or); } .cr-bulles .gr { color: var(--vert); }
.cr-bulles .badge-tal { margin-left: 4px; }
.cr-b.ouverte .cr-corps { border-top: 0; padding: 0 8px 8px; }
/* une ligne par cheval : valeur, nom + adaptation, objets en icônes, bouton ; dessous : coût des objets, prix de réclamation ou raison */
.choix.cr-ch { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; column-gap: 6px; align-items: center; padding: 5px 6px; margin-top: 5px; }
.cr-ch > .pastille { grid-column: 1; grid-row: 1; min-width: 28px; padding: 3px 2px; }
.cr-ch > .esp { grid-column: 2; grid-row: 1; min-width: 0; font-size: 13.5px; line-height: 17px; }
.cr-ch > .esp > b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-ch > .esp .adapt, .cr-ch > .esp .sous { font-size: 11.5px; line-height: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-ch > .cr-objs { grid-column: 3; grid-row: 1; display: flex; gap: 3px; }
.cr-ch > .cr-eng { grid-column: 4; grid-row: 1; min-width: 66px; padding: 4px 7px; }
.cr-ch.bloque > .esp { grid-column: 2 / 4; }
.cr-ch > .cr-x { grid-column: 2 / -1; grid-row: 2; font-size: 12px; }
.cr-ch > .cr-x:empty, .cr-ch > .cr-x > .cout-obj:empty { display: none; }
.cr-ch .raison { margin-top: 2px; font-size: 12px; }
.chip.obj { position: relative; width: 34px; height: 36px; min-height: 36px; padding: 0; justify-content: center; border-radius: 9px; background: var(--fondi); }
.chip.obj .ico-img { width: 22px; height: 22px; }
.chip.obj small { position: absolute; right: 2px; bottom: 0; font-size: 10px; font-weight: 700; line-height: 12px; color: var(--doux); font-variant-numeric: tabular-nums; }
.chip.obj.on, .chip.obj:has(input:checked) { background: var(--orfond); border-color: var(--saison); box-shadow: inset 0 0 0 1px var(--saison); }
.chip.obj.on small, .chip.obj:has(input:checked) small { color: var(--saison); }
.chip.obj.on::before, .chip.obj:has(input:checked)::before { content: '✓'; position: absolute; left: 3px; top: 0; font-size: 10px; font-weight: 800; color: var(--saison); }
.chip.obj.epuise { border-style: dashed; opacity: .45; }
.btn.discret { background: none; border: 1px solid var(--ligne); color: var(--texte); font-weight: 700; }
body[data-saison] .btn.discret:not(.sec) { background: none; }
.cr-prix { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; }
.cr-prix input { width: 92px; min-height: 36px; }
/* avant le niveau 5 : le cheval mis en avant (carte « Ton crack ») surligné, seul bouton jaune */
.crack:not(.bloque) { padding: 6px; margin-top: 6px; }
.crack:not(.bloque) .crack-titre { font-size: 12.5px; }
.crack .choix.cr-ch.crack-ligne { background: none; margin-top: 4px; padding: 2px 0; }
/* 12/11 : compte à rebours en grand, heure (de Paris) en petit dessous ; onglets Programme | Coupe des clubs ; courses de Coupe dessinées comme le programme */
.cr { grid-template-columns: 58px minmax(0, 1fr) auto; }
.cr-h b { font-size: 16px; line-height: 20px; letter-spacing: -.01em; white-space: nowrap; }
.cr-h small { font-size: 11.5px; line-height: 15px; font-weight: 600; color: var(--doux); white-space: nowrap; font-variant-numeric: tabular-nums; }
/* 13/11 : secondes dans le compte à rebours (« 59 min 59 s ») : colonne élargie, chiffre un peu plus petit */
.cr { grid-template-columns: 80px minmax(0, 1fr) auto; }
.cr-h b { font-size: 14.5px; }
.cr-ban-m { flex: 1; }
.cr-ban-h { flex: none; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.cr-ban-h b { font-size: 19px; line-height: 22px; white-space: nowrap; }
.cr-ban-h small { font-size: 11.5px; line-height: 14px; font-weight: 600; color: var(--doux); font-variant-numeric: tabular-nums; }
.cr-onglets { margin: 2px 0 10px; }
.cr-onglets button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 2px; }
.pastille-n.or { background: var(--or); color: #1b1300; font-weight: 800; font-variant-numeric: tabular-nums; }
.barre-filtres { align-items: center; }
.cr-info { margin-left: auto; text-align: right; }
:root { --t-cp-bronze: #e8a274; --t-cp-argent: #c9d6e6; --t-cp-or: #f5c542; --t-cp-platine: #9ff0dc; --t-cp-diamant: #a9d4ff; }
.cr-b.t-cp-bronze { --t: var(--t-cp-bronze); } .cr-b.t-cp-argent { --t: var(--t-cp-argent); } .cr-b.t-cp-or, .cr-b.t-cp-ouvert, .cr-b.t-grande { --t: var(--t-cp-or); }
/* v20.02 : tableaux Platine et Diamant (contraste ≥ 5,1 dans les 4 saisons) ; « ouvert » (défi Grand Prix) garde l'or */
.cr-b.t-cp-platine { --t: var(--t-cp-platine); } .cr-b.t-cp-diamant { --t: var(--t-cp-diamant); }
.cr-b.t-grande { box-shadow: 0 0 0 1px color-mix(in srgb, var(--t) 45%, transparent), 0 0 14px color-mix(in srgb, var(--t) 22%, transparent); }
.cr-g b.x10 { font-size: 17px; }
.cp-der { margin: 4px 0 8px; }
.cp-sans .actions { margin-top: 8px; }
.cp-tete { display: flex; align-items: flex-start; gap: 10px; padding-right: 40px; }
.cp-tete h2 { flex: 1; min-width: 0; }
.cp-tete .cr-ban-h { margin-top: 4px; }
/* v19.46 « Le club en ordre » : Club › Coupe = la carte du match (SEULE grande carte de score), la poule touchable avec les onglets des ligues,
   « Mon mois » (une ligne par jour), le palmarès ; Courses › Coupe : le score en une ligne, filtre Mes chevaux / Toutes. Fonds : variables seulement ;
   gagné / nul / perdu = les couleurs de .verdict (contraste ≥ 4,5 sur les 4 fonds de saison). */
:root { --gagne: #6fe3a0; --perdu: #ff8a8a; --nul: #cfd6e0; }
b.monte, .pl-cle.monte { color: var(--gagne); } b.descend, .pl-cle.descend { color: var(--perdu); }
/* 1) la carte du match du jour : teinte de saison en cours, verte / rouge / grise une fois le match fini */
.cp-hero { --t: var(--saison); padding: 12px; border-color: color-mix(in srgb, var(--t) 45%, var(--ligne));
  background: linear-gradient(160deg, color-mix(in srgb, var(--t) 12%, var(--fond2)) 0%, var(--fond2) 70%); }   /* 12 % : texte gris ≥ 4,5 dans les 4 saisons */
.cp-hero.gagne { --t: var(--gagne); } .cp-hero.perdu { --t: var(--perdu); } .cp-hero.nul, .cp-hero.attente, .cp-hero.treve { --t: var(--nul); }
.cp-h-tete { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 26px; font-size: 13px; color: var(--doux); }
.cp-h-etat { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.cp-h-etat .verdict { font-size: 14px; font-weight: 800; }
.cp-live { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; color: var(--texte); }
.cp-live::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--rouge); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rouge) 30%, transparent); }
.cp-h-defi { flex: none; padding: 3px 9px; border-radius: 99px; background: rgba(0, 0, 0, .28); font-size: 12px; font-weight: 700; color: var(--texte); white-space: nowrap; }
.cp-h-duel { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 6px; margin: 10px 0 8px; }
.cp-h-club { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; padding: 4px 2px; border-radius: 10px; text-align: center; }
.cp-h-club b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; font-size: 14px; line-height: 17px; }
.cp-h-club.moi b { color: var(--or); }
.cp-h-club small { min-height: 15px; font-size: 11.5px; line-height: 15px; color: var(--doux); }
.cp-h-club[data-club-voir], .cp-h-club[data-poule-ia] { cursor: pointer; }
.cp-h-club[data-club-voir]:active, .cp-h-club[data-poule-ia]:active { background: var(--fondi); }
.cp-h-score { display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cp-h-score b { font-size: 34px; line-height: 38px; font-weight: 800; }
.cp-h-score b:first-child { color: var(--or); }
.cp-h-score i { font-style: normal; font-size: 22px; color: var(--doux); }
.cp-h-score.vide b { color: var(--doux); }
.cp-h-barre { height: 6px; margin: 0 0 6px; border-radius: 99px; background: var(--fondi); overflow: hidden; }
.cp-h-barre i { display: block; height: 100%; border-radius: 99px; background: var(--saison); }
.cp-h-mvp { margin-top: 4px; font-size: 12.5px; color: var(--doux); }
.cp-h-mvp b { color: var(--texte); }
.cp-h-rec { margin-top: 8px; padding: 6px 9px; border-left: 3px solid var(--vert); border-radius: 9px; background: rgba(0, 0, 0, .22); font-size: 13px; }
.cp-h-hier { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--ligne); font-size: 13px; color: var(--doux); }
.cp-h-hier > b.nw { color: var(--texte); }
.cp-h-mois { margin: 0 0 10px; padding: 7px 9px; border-radius: 9px; background: var(--orfond); font-size: 13px; }
.cp-h-mois small { display: block; margin-top: 2px; color: var(--doux); }
.cp-h-txt { margin: 6px 0 0; font-size: 14px; }
.cp-h-lien { display: block; margin: 6px 0 0 auto; color: var(--or); font-weight: 700; text-decoration: none; }
.cp-hero .avert { margin: 8px 0 0; }
/* 3) la poule : une ligne touchable par club ; ▲ / ▼ = montée / descente ; ma ligne reste visible (collante) quand la liste défile */
.pl-tete { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 30px; }
.pl-tete h3 { margin: 0; }
.pl-tag { padding: 2px 8px; border-radius: 99px; background: var(--orfond); color: var(--or); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.pl-ligues { margin: 8px 0; padding: 3px; gap: 3px; }
.pl-ligues button { position: relative; min-height: 38px; padding: 6px 1px; font-size: 12px; }
.pl-ligues button.mienne::after { content: ''; position: absolute; top: 4px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--or); }
.pl-ligues button:disabled { opacity: .45; cursor: default; }
.pl-poules { margin: -2px 0 8px; }
.pl-liste { display: flex; flex-direction: column; gap: 2px; }
.pl-l { display: grid; grid-template-columns: 26px 30px minmax(0, 1fr) auto 10px; align-items: center; column-gap: 8px; width: 100%; min-height: 48px; padding: 5px 6px 5px 3px;
  border: 0; border-left: 3px solid transparent; border-radius: 9px; background: none; color: inherit; font: inherit; text-align: left; }
.pl-l:active { background: var(--fondi); }
.pl-l.monte { border-left-color: var(--vert); } .pl-l.descend { border-left-color: var(--rouge); }
.pl-l.moi { position: sticky; top: calc(62px + env(safe-area-inset-top)); bottom: calc(74px + env(safe-area-inset-bottom)); z-index: 2; background: var(--moi);
  box-shadow: 0 0 0 1px var(--saison), 0 0 14px rgba(0, 0, 0, .45); }
.pl-r { font-size: 15px; font-weight: 800; line-height: 1; text-align: center; font-variant-numeric: tabular-nums; }
.pl-r i { display: block; min-height: 10px; margin-top: 2px; font-size: 9px; font-style: normal; }
.pl-l.monte .pl-r i { color: var(--gagne); } .pl-l.descend .pl-r i { color: var(--perdu); }
.pl-n { min-width: 0; }
.pl-n b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.pl-n small { display: block; font-size: 12px; color: var(--doux); font-variant-numeric: tabular-nums; }
.pl-l.moi .pl-n small, .pl-l.moi .pl-pts small { color: var(--texte); }   /* gris sur --moi : 4,2 en hiver */
.pl-pts { line-height: 1.1; text-align: right; font-variant-numeric: tabular-nums; }
.pl-pts b { font-size: 16px; } .pl-pts small { display: block; font-size: 10.5px; color: var(--doux); }
.pl-fl, .mm-fl { font-size: 16px; color: var(--doux); }
.pl-legende { margin: 8px 0 0; }
/* 4) Mon mois : une ligne par jour ; V / N / D en pastille, aujourd'hui encadré, jours à venir en pointillés */
.mois-c .pl-tete { margin-bottom: 6px; }
.mm-bilan { font-size: 13px; color: var(--doux); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mm-bilan .g { color: var(--gagne); } .mm-bilan .p { color: var(--perdu); }
.mm-liste { display: flex; flex-direction: column; gap: 3px; }
.mm-l { display: grid; grid-template-columns: 38px 26px minmax(0, 1fr) 10px; align-items: center; column-gap: 8px; width: 100%; min-height: 46px; padding: 5px 6px;
  border: 0; border-radius: 9px; background: var(--fondi); color: inherit; font: inherit; text-align: left; }
div.mm-l { grid-template-columns: 38px 26px minmax(0, 1fr); }
button.mm-l:active { background: var(--sec); }
.mm-d { display: flex; flex-direction: column; line-height: 1.15; font-variant-numeric: tabular-nums; }
.mm-d b { font-size: 12.5px; } .mm-d small { font-size: 11px; color: var(--doux); }
.mm-p { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; font-size: 13px; font-weight: 800; }
.mm-l.gagne .mm-p { background: var(--gagne); color: #08240f; }
.mm-l.perdu .mm-p { background: var(--perdu); color: #2b0606; }
.mm-l.nul .mm-p { background: var(--nul); color: #1b2230; }
.mm-l.futur .mm-p { border: 1.5px dashed var(--ligne); }
.mm-l.live .mm-p i { width: 10px; height: 10px; border-radius: 50%; background: var(--rouge); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rouge) 30%, transparent); }
.mm-l.auj { background: var(--orfond); box-shadow: inset 0 0 0 1.5px var(--saison); }
.mm-l.treve { background: none; border: 1px dashed var(--ligne); }
.mm-l.futur .mm-m > b { font-weight: 600; }
.mm-m { min-width: 0; }
.mm-m > b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.mm-m small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--doux); }
.mm-m small b { color: var(--texte); }
.mm-pli { margin: 0; }
.mm-pli > .mm-l { margin-top: 3px; }
.mm-pli + .mm-l { margin-top: 3px; }
/* 5) palmarès du club */
.palm-l { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--ligne); }
.palm-c h3 + .palm-l { border-top: 0; }
.palm-m { font-size: 20px; }
.palm-l .esp small { display: block; font-size: 12px; color: var(--doux); }
/* Courses › Coupe : le score en UNE ligne touchable (→ Club › Coupe), filtre « Mes chevaux / Toutes » */
button.cp-score { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto 10px; align-items: center; column-gap: 6px; width: 100%; min-height: 48px;
  padding: 8px 8px 8px 10px; color: inherit; font: inherit; text-align: left; cursor: pointer; }
button.cp-score:active { background: var(--fondi); }
button.cp-score.gagne { border-left: 3px solid var(--gagne); } button.cp-score.perdu { border-left: 3px solid var(--perdu); } button.cp-score.nul { border-left: 3px solid var(--nul); }
.cp-s-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 700; }
.cp-s-n.eq1 { text-align: right; color: var(--or); } .cp-s-n.eq2 { text-align: left; }
.cp-s-sc { font-size: 19px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cp-s-etat { font-size: 12px; color: var(--doux); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cp-s-etat small { font-size: 12px; }
.cp-s-etat .cp-live { font-weight: 700; color: var(--doux); gap: 4px; }
.cp-s-etat .cp-live::before { width: 6px; height: 6px; box-shadow: none; }
button.cp-score .cr-fl { position: static; }
button.cp-score.treve { grid-template-columns: minmax(0, 1fr) 12px; }
button.cp-score.treve .eq1 { text-align: left; color: var(--texte); }
.cp-filtre { margin: 0 0 8px; }
.cp-filtre button { min-height: 40px; }
.cp-caches { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin: 2px 0 10px; }
/* l'en-tête du club : bannière teintée par la 1re couleur du blason (comme la bannière d'une course), infos en bulles */
.club-ban { margin-bottom: 10px; padding: 12px; border: 1px solid color-mix(in srgb, var(--c1) 45%, var(--ligne)); border-radius: 14px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--c1) 20%, var(--fond2)), var(--fond2) 75%); }
.club-ban .club-tete { margin-bottom: 0; }
.club-ban .cr-bulles .or { color: var(--or); }
.code-c .sous { margin-top: 4px; }
.sans-club-bas { margin-top: 14px; }
/* v19.61 : chance de talisman du coup de cravache (rond et direct) : forte quand les coffres du jour sont épuisés, .discret sinon (v19.62) */
.chance-tal { margin: 8px 0; padding: 7px 10px; border-radius: 10px; background: var(--orfond); border: 1px solid var(--saison); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.chance-tal.discret { background: transparent; border-color: var(--ligne); color: var(--doux); }
.chance-tal .tal-ico { font-size: 15px; }
.replay .chance-tal-d .chance-tal { margin: 4px 8px; padding: 5px 8px; font-size: 12px; }
/* v19.66 : talisman de la ligne = bouton vers sa fiche (couleur de sa rareté, zone de doigt agrandie sans pousser le texte) */
.chance-tal .tal-lien { position: relative; padding: 1px 7px; margin: 1px 0; font-size: inherit; color: var(--texte, inherit); text-decoration: underline dotted; text-underline-offset: 3px; }
.chance-tal .tal-lien::after { content: ''; position: absolute; inset: -9px -4px; }
.chance-tal .tal-lien:active { background: rgba(255, 255, 255, .16); }
/* fiche d'un talisman ouverte depuis le direct : au-dessus de #replay (60), sous la bordure d'alerte (70) et les bulles (80) */
#feuille.sur-replay { z-index: 65; }
/* registre 259 : records des pistes (bannière d'une course, Saison › Classements › Records, fin du direct) ; mes records en vert */
.ligne-rec { margin: 6px 2px 0; font-size: 12.5px; color: var(--doux); overflow-wrap: anywhere; }
.ligne-rec b { color: var(--txt, inherit); }
.ligne-rec.moi, .ligne-rec.moi b { color: var(--gagne); }
.rec-l tr.moi b { color: var(--gagne); }
.rec-l td { vertical-align: top; }
.fin-rec { margin: 6px 0 0; padding: 6px 10px; border-radius: 10px; background: var(--orfond); color: var(--or); font-weight: 800; text-align: center; }
.badge.rec-c { white-space: normal; }
/* v20.50 : 2 records ou plus = un seul badge touchable (▾ / ▴) ; la liste s'ouvre en pleine largeur sous l'en-tête de la fiche */
.badge.rec-bt { border: 0; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 3px 10px; margin-top: 3px; }
.rec-fl::after { content: '▾'; font-size: 12px; }
.rec-bt[aria-expanded="true"] .rec-fl::after { content: '▴'; }
.rec-liste { list-style: none; margin: 8px 0 4px; padding: 4px 10px; border-left: 3px solid var(--vert); border-radius: 8px; background: var(--sec); }
.rec-liste[hidden] { display: none; }
.rec-liste li { display: flex; gap: 10px; align-items: baseline; padding: 4px 0; font-size: 13px; line-height: 1.3; color: var(--doux); border-bottom: 1px solid var(--ligne); }
.rec-liste li:last-child { border-bottom: 0; }
.rec-liste li b { flex: 1; min-width: 0; color: var(--texte); }
.rec-liste li b + span { min-width: 4.4em; text-align: right; }
.rec-liste li span:last-child { min-width: 6.6em; text-align: right; }
/* registre 260 : étalon de renom (étoiles, bloc de la fiche) */
.renom-et { color: var(--or); font-size: 12px; letter-spacing: 1px; margin-left: 4px; white-space: nowrap; }
.renom-et .mot { border-bottom-color: var(--or); }
.renom-c { background: var(--orfond); }
.renom-l { color: var(--or); }
/* registre 261 : musée de l'écurie (cartes en grille, 3 par ligne sur téléphone) */
.musee-r { background: var(--orfond); }
.musee-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 8px; margin: 8px 0; }
.musee-c { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; padding: 8px 4px; border-radius: 12px;
  border: 1px solid var(--ligne); background: var(--carte); color: inherit; font: inherit; text-align: center; cursor: pointer; }
.musee-c b { font-size: 12.5px; line-height: 1.2; overflow-wrap: anywhere; }
.musee-c small { font-size: 11px; color: var(--doux); }
.musee-garde { position: absolute; top: 4px; right: 6px; font-size: 13px; }

/* Registre 269 (v19.76) : drapeau du pays à côté du nom d'un joueur (nomPlaque, nomDrap, imgDrapeau de vue.js). Hauteur du texte,
   coins légèrement arrondis, fine bordure (drapeaux blancs : Japon, Chypre…). Liste de choix : choixPays (profil, création de l'écurie). */
img.drap { display: inline-block; width: 1.15em; height: .86em; vertical-align: -.08em; border-radius: 2px; object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .28), 0 0 0 1px rgba(255, 255, 255, .12) inset; }
img.drap.dr-mini { width: 1.05em; height: .79em; }
img.drap.dr-grand { width: 1.3em; height: .975em; vertical-align: -.1em; }
.choix-pays { display: flex; flex-direction: column; gap: 6px; margin: 6px 0; }
.choix-pays .pays-cherche { width: 100%; box-sizing: border-box; font-size: 16px; padding: 10px 12px; border-radius: 10px; }
.pays-liste { max-height: 46vh; overflow-y: auto; border: 1px solid var(--ligne); border-radius: 10px; background: var(--carte); overscroll-behavior: contain; }
.pays-l { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 6px 12px; border: 0; border-bottom: 1px solid var(--ligne);
  background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.pays-l:last-of-type { border-bottom: 0; }
.pays-l[hidden] { display: none; }
.pays-l img.drap { width: 1.6em; height: 1.2em; flex: none; }
.pays-l.on { background: var(--sec); font-weight: 600; }
.pays-rien { padding: 10px 12px; margin: 0; }
details.pays-pli > summary { cursor: pointer; padding: 10px 12px; border: 1px solid var(--ligne); border-radius: 10px; min-height: 24px; }
/* Guerre des hippodromes (registre 272, lot 2) : une couleur à elle (--guerre, contraste ≥ 4,5 sur --carte dans les 4 saisons), fonds par color-mix */
:root { --guerre: #ff9466; }
/* 18/11 : 5 sous-onglets avec la guerre (Fil retiré) : Coupe et Pistes (pastilles « Nouveau » et « ! ») sur une demi-ligne chacun,
   Quêtes, Membres et Rang dessous ; sans case vide */
.gu-pas { font-size: 12px; filter: drop-shadow(0 0 3px color-mix(in srgb, var(--guerre) 70%, transparent)); }
.cr-g small.gu-prix, .cr-bulles .gu-prix { color: var(--gagne); }
.cr-bulles .gu-prix s { opacity: .65; font-weight: 400; }
.cr-bulles > .gu { color: var(--guerre); background: color-mix(in srgb, var(--guerre) 16%, rgba(0, 0, 0, .28)); }
.gu-ligne { margin: 6px 0; padding: 7px 10px; border-radius: 10px; border-left: 3px solid var(--guerre); background: color-mix(in srgb, var(--guerre) 12%, var(--fondi)); font-size: 13px; }
.gu-ligne b { color: var(--guerre); }
.replay .gu-d { margin: 4px 10px; font-size: 12px; padding: 5px 9px; }
.fin-gu { margin: 6px 0 0; padding: 6px 10px; border-radius: 10px; background: color-mix(in srgb, var(--guerre) 18%, var(--fondi)); color: var(--guerre); font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.gu-region { margin-top: -6px; }
.gu-cible { border-left: 3px solid var(--guerre); }
.gu-cible .ligne { align-items: flex-start; gap: 10px; }
.gu-cible .gu-ico { font-size: 26px; line-height: 1; }
.gu-cible .gu-nom { font-size: 18px; color: var(--guerre); }
.gu-cible.vide-c { border-left-color: var(--ligne); }
.gu-coffre .gu-tenues { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; }
.gu-coffre .gu-tenues span { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: color-mix(in srgb, var(--gagne) 16%, var(--fondi)); color: var(--gagne); }
.gu-coffre .gu-tenues span.danger { background: color-mix(in srgb, var(--perdu) 16%, var(--fondi)); color: var(--perdu); }
.gu-alerte { margin-top: 6px; font-size: 13px; color: var(--perdu); }
.badge.gu-danger { color: var(--perdu); border-color: color-mix(in srgb, var(--perdu) 50%, transparent); }
.badge.gu-tete { color: var(--gagne); border-color: color-mix(in srgb, var(--gagne) 50%, transparent); }
.gu-proj { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--ligne); font-size: 13px; }
.gu-suite { margin-top: 4px; color: var(--or); }
.gu-piste { padding: 10px 12px; }
.gu-piste .ligne { gap: 6px; flex-wrap: wrap; }
.gu-piste .gu-nom { font-size: 15px; }
.gu-piste.cible { border-color: var(--guerre); box-shadow: inset 3px 0 0 var(--guerre); }
.gu-piste.tenue { box-shadow: inset 3px 0 0 var(--gagne); }
.gu-piste.cible.tenue { box-shadow: inset 3px 0 0 var(--guerre), inset 6px 0 0 var(--gagne); }
.gu-tenant { font-size: 12px; color: var(--doux); max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gu-tenant.moi { color: var(--gagne); font-weight: 700; }
.gu-top { list-style: none; margin: 6px 0 0; padding: 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.gu-top li { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.gu-top li i { width: 16px; font-style: normal; color: var(--doux); text-align: right; }
.gu-top li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gu-top li.moi span, .gu-top li.moi b { color: var(--gagne); font-weight: 800; }
.gu-top li.vide-l { color: var(--doux); font-style: italic; }
.gu-piste .actions { margin-top: 6px; }
.badge.marque-guerre { color: var(--guerre); }
/* écran des résultats du dimanche (plein écran, styles .lvl du passage de niveau) */
.gu-res .lvl-carte.prise { border-color: var(--gagne); }
.gu-res .lvl-carte.perdue { border-color: var(--perdu); }
.gu-res .lvl-carte.coffre { text-align: left; }
.gu-lots { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.gu-lots span { font-size: 12px; padding: 3px 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); color: #e6edf7; }
.gu-lots span.ch { flex-basis: 100%; background: rgba(245, 197, 66, .16); color: #ffe08a; font-weight: 700; }
.gu-res .gu-res-act { justify-content: center; margin-top: 14px; }
/* pas de badge animé ici : les cartes puis les boutons montent tout de suite (sinon les boutons arrivaient avant les cartes) */
.gu-res .lvl-carte, .gu-res .gu-res-act { animation: lvl-monte .4s calc(.3s + var(--i) * .16s) cubic-bezier(.2, 1.1, .4, 1) both; }
/* v19.82 « La guerre en grand » : présentation plein écran (.gu-pres, cadre .lvl du passage de niveau), bannière avec l'image (.gu-b),
   en-tête de Club › Pistes (.gu-tete), image du sous-onglet (.ss-gu-img). Fonds par variables (saisons) ; animations coupées par .reduit et html.anim-coupee. */
/* 16/11 (présentation du haras) : cadre commun .pres, la couleur d'accent vient de --pc (.gu-pres = --guerre, .ha-pres = --haras) */
.gu-pres { --pc: var(--guerre); }
.lvl.pres { background: radial-gradient(circle at 50% 14%, color-mix(in srgb, var(--pc) 32%, var(--fond)) 0, var(--fond) 48%); }
/* v20.46 : Chrome / WebView avant 111 ne connaît pas color-mix(). Avec var() dedans, la déclaration n'est pas jetée à la lecture :
   elle devient « invalide au calcul » → fond transparent (l'écran du dessous se voyait derrière les présentations, téléphone de test Chrome 101).
   Une déclaration de secours placée avant ne sert donc à rien : il faut @supports. Fonds pleins pour les présentations et leurs pastilles. */
@supports not (color: color-mix(in srgb, red, red)) {
  .lvl.pres { background: radial-gradient(circle at 50% 14%, #1d2a44 0, var(--fond) 48%); }
  .pres .lvl-ico, .tm-cj.pris, .tm-cj.jour, .tm-h-sac, .mes-ok.fait, .gu-ligne, .gu-vc, .gu-cl, .gu-mien, .gu-etat.ouvert, .gu-etat.verrou, .gu-l-r.r1, .fin-gu { background: var(--fondi); }
  .tm-heros, .ha-tete, .li-tete, .tm-cj.gros { background: var(--carte); }
  .ouv-case.en, .tm-jal.fait .tm-jal-r, .bloc.cr-b, .cr-ban, .cp-hero, .club-ban, .mes-ench { background: var(--fond2); }
  .tm-ev, .gu-b { background: var(--carte); }
  .pres .lvl-carte, .bloc.cr-b, .cp-hero, .club-ban, .ha-tete, .li-tete, .tm-heros, .tm-ev, .mes-ench { border-color: var(--ligne); }
}
.pres .lvl-corps { padding-bottom: 8px; }
.pres-img { position: relative; width: min(220px, 60vw); margin: 6px auto 4px; animation: lvl-pop .55s .05s cubic-bezier(.2, 1.4, .4, 1) both; }
.pres-img::before { content: ""; position: absolute; inset: 8% 4%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--pc) 55%, transparent), transparent); filter: blur(10px); animation: gu-lueur 2.6s .6s ease-in-out 3 alternate both; }
.pres-photo { position: relative; display: block; width: 100%; height: auto; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .55)); }
.pres-sur { margin: 4px 0 2px; color: var(--pc); font-size: 13px; font-weight: 700; animation: lvl-monte .35s .3s ease-out both; }
.pres-sur b { color: var(--texte); font-variant-numeric: tabular-nums; }
.pres .lvl-titre { font-size: 27px; animation-delay: .35s; }
.pres .lvl-sous { margin-bottom: 12px; animation-delay: .5s; }
.pres .lvl-sous b { color: var(--pc); }
.pres .lvl-carte { align-items: flex-start; border-color: color-mix(in srgb, var(--pc) 45%, var(--ligne)); animation-delay: calc(.6s + var(--i) * .12s); }
.pres .lvl-ico { background: color-mix(in srgb, var(--pc) 22%, var(--fondi)); }
.pres .lvl-carte b { color: var(--texte); }
.pres .lvl-carte .sous b { color: var(--pc); font-weight: 700; }
.gu-gains .esp > b { display: block; margin-bottom: 6px; }
.gu-gains .sous { margin-top: 8px; line-height: 1.45; }
.gu-paliers { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.gu-paliers li { display: flex; gap: 8px; padding: 5px 0; border-top: 1px solid rgba(255, 255, 255, .08); color: #c5d1e2; }
.gu-paliers li:first-child { border-top: 0; }
.gu-paliers li b { flex: 0 0 64px; color: var(--texte); font-size: 13px; font-variant-numeric: tabular-nums; }
.gu-paliers li span { flex: 1; min-width: 0; }
.gu-paliers li.fort span { color: #ffe08a; font-weight: 700; }
.pres-act { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; animation: lvl-monte .4s calc(.6s + var(--i) * .12s) cubic-bezier(.2, 1.1, .4, 1) both; }
.pres-act .lvl-ok { animation: none; }
.pres-act .btn.sec { min-height: 44px; }
.pres-act > .sous { margin: 0; }
@keyframes gu-lueur { from { opacity: .45; transform: scale(.94); } to { opacity: 1; transform: scale(1.04); } }
html.anim-coupee .pres, html.anim-coupee .pres *, html.anim-coupee .pres *::before { animation: none !important; }
/* présentation du haras (.ha-pres) : accent rose du soir, liste « à retenir » ; en-tête de Écurie › Haras (.ha-tete) */
:root { --haras: #f4a3c0; }
.ha-pres { --pc: var(--haras); }
.ha-retenir ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.45; color: #c5d1e2; }
.ha-retenir li + li { margin-top: 4px; }
.ha-retenir li b { color: var(--haras); }
.ha-tete { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; padding: 6px 10px 6px 6px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--haras) 45%, var(--ligne));
  background: linear-gradient(100deg, color-mix(in srgb, var(--haras) 16%, var(--carte)), var(--carte) 70%); }
.ha-tete-img { flex: 0 0 56px; width: 56px; height: auto; }
.ha-tete .esp { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ha-tete .esp b { font-size: 14px; line-height: 1.25; }
.ha-tete .btn { flex: 0 0 auto; min-height: 36px; }
.ha-pres .ha-lien { margin-top: 8px; }
.ha-pres .ha-retenir { text-align: left; }
/* v20.20 présentation de la Lignée (.li-pres) : accent bleu du Sceau ; échelle des raretés et prix en pastilles ; en-tête de Écurie › Lignée (.li-tete) */
:root { --lignee: #a8bfff; }
.li-pres { --pc: var(--lignee); }
.li-pres .lvl-ico img.ico-img.res { width: 28px; height: 28px; }
.li-pres .ha-retenir li b { color: var(--lignee); }
.li-pres .ha-retenir img.ico-img.res, .li-don img.ico-img.res { width: 16px; height: 16px; vertical-align: -3px; }
.li-echelle { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 2px; margin-top: 6px; }
.li-rar { display: inline-flex; align-items: center; white-space: nowrap; padding: 2px 7px; border-radius: 99px; background: var(--fondi); border: 1px solid var(--ligne); color: var(--texte); font-size: 12px; line-height: 1.3; }
.li-rar .pt-rar { width: 8px; height: 8px; margin-right: 4px; vertical-align: 0; }
.li-fl { color: var(--lignee); font-weight: 700; padding: 0 1px; }
.li-couts { list-style: none; margin: 6px 0 0; padding: 0; }
.li-couts li { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 3px 0; border-top: 1px solid rgba(255, 255, 255, .08); font-variant-numeric: tabular-nums; }
.li-couts li:first-child { border-top: 0; }
.li-couts li > span:last-child { color: var(--texte); white-space: nowrap; font-size: 13px; }
.li-couts img.ico-img.res { width: 16px; height: 16px; vertical-align: -3px; }
.li-couts img.ico-img:not(.res) { vertical-align: -2px; }
.li-don { margin-top: 6px; }
.li-tete { border-color: color-mix(in srgb, var(--lignee) 45%, var(--ligne)); background: linear-gradient(100deg, color-mix(in srgb, var(--lignee) 16%, var(--carte)), var(--carte) 70%); }
.li-tete > .esp { flex: 1 1 auto; }
.li-tete .at-ress-l { flex: 0 0 auto; flex-direction: column; align-self: center; }
/* v20.46 présentation de la course (.co-pres) : accent vert gazon (--course, distinct de --gagne, contraste ≥ 7 sur --carte dans les 4 saisons) ;
   parts de l'allocation en pastilles ; ❔ rond à droite des onglets Courses | Coupe (.cr-tete-on) */
:root { --course: #b8e46c; }
.co-pres { --pc: var(--course); }
.co-pres .ha-retenir li b { color: var(--course); }
.co-parts { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 2px; }
.co-part { display: inline-flex; align-items: baseline; gap: 3px; white-space: nowrap; padding: 2px 8px; border-radius: 99px; background: var(--fondi); border: 1px solid var(--ligne); color: var(--texte); font-size: 12px; line-height: 1.35; font-variant-numeric: tabular-nums; }
.co-part b { color: var(--course) !important; }
.co-plus { margin-top: 4px; }
.co-etape .sous b { white-space: nowrap; }   /* « 450 et 200 m », « 3 chevaux » : jamais coupés */
.cr-tete-on { display: flex; align-items: center; gap: 8px; margin: 2px 0 10px; }
.cr-tete-on .cr-onglets { margin: 0; min-width: 0; }
.gu-aide.co-aide { width: 44px; height: 44px; }
.co-bas, .co-prem { margin: 8px 0 4px; }
/* bannière : Courses › Programme (à la place de l'ancien bandeau texte) et Club sans club */
.gu-b-boite { position: relative; margin: 0 0 10px; }
.gu-b { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 64px; padding: 6px 12px 6px 6px; text-align: left; color: var(--texte); font: inherit; font-size: 13px; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--guerre) 55%, var(--ligne)); border-radius: 14px; background: linear-gradient(100deg, color-mix(in srgb, var(--guerre) 22%, var(--carte)), var(--carte) 70%); }
.gu-b-img { flex: 0 0 64px; width: 64px; height: auto; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .45)); }
.gu-b-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.gu-b-tit { font-weight: 800; color: var(--guerre); font-size: 13.5px; }
.gu-b-tit small { color: var(--doux); font-weight: 400; font-size: 12px; }
.gu-b-l { line-height: 1.3; }
.gu-b-l b { color: var(--guerre); font-variant-numeric: tabular-nums; }
.gu-b-l.sous { font-size: 12px; }
.gu-b .aller { font-weight: 800; color: var(--guerre); font-size: 20px; }
.gu-b-boite:has(.gu-b-x) .gu-b { padding-right: 40px; }
.gu-b-x { position: absolute; top: 2px; right: 2px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--doux); font-size: 15px; cursor: pointer; }
.gu-b-boite:has(.gu-b-x) .aller { display: none; }
/* Club › Pistes : en-tête avec l'image ; sous-onglet avec l'image (la grille de 3 tient à 360 px) */
.gu-tete { display: flex; align-items: center; gap: 10px; margin: 2px 0 4px; }
.gu-tete h2 { margin: 0; }
.gu-tete-img { flex: 0 0 60px; width: 60px; height: auto; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .45)); }
.gu-tete-act { margin: 0 0 10px; }
/* registre 275 : vote de la cible (Club › Pistes et course ouverte) */
.gu-vote { display: flex; flex-direction: column; gap: 7px; margin-top: 9px; padding-top: 9px; border-top: 1px dashed var(--ligne); }
.gu-etat { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.gu-etat.ouvert { color: var(--gagne); background: color-mix(in srgb, var(--gagne) 14%, var(--fondi)); }
.gu-etat.verrou { color: var(--guerre); background: color-mix(in srgb, var(--guerre) 16%, var(--fondi)); }
.gu-etat .lien { color: inherit; }
.gu-decompte { display: flex; flex-wrap: wrap; gap: 4px; }
.gu-decompte span { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 99px; background: var(--fondi); font-variant-numeric: tabular-nums; }
.gu-decompte span b { color: var(--guerre); margin-left: 2px; }
.gu-decompte span.cible { box-shadow: inset 0 0 0 1.5px var(--guerre); }
.gu-monvote { display: flex; align-items: center; gap: 10px; }
.gu-monvote .esp { min-width: 0; }
.gu-v, .gu-passe { color: var(--guerre); }
.gu-chef .actions { margin-top: 4px; }
.gu-mespts { margin-top: 8px; }
/* v19.99 : points des membres de mon club (pli sous « Tes points cette semaine ») */
.gu-parts { margin-top: 8px; }
.gu-parts > summary .sous { margin-left: 6px; }
.gu-p0t { margin: 4px 0 2px; font-size: 12px; }
.gu-part { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 8px; row-gap: 3px; padding: 6px 8px; margin-top: 4px; border-radius: 8px; background: var(--fondi); }
.gu-part.moi { background: var(--moi); box-shadow: inset 3px 0 0 var(--guerre); }
.gu-pn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.gu-pp { font-variant-numeric: tabular-nums; color: var(--guerre); font-size: 14px; }
.gu-part.zero .gu-pp { color: var(--doux); }
.gu-pb { grid-column: 1 / -1; display: block; height: 5px; border-radius: 3px; overflow: hidden; background: var(--fond); }
.gu-pb i { display: block; height: 100%; background: var(--guerre); border-radius: 3px; }
.gu-p0 { grid-column: 1 / -1; font-size: 11.5px; }
/* v20.01 : points des joueurs du match de Coupe du jour (pli de la carte du match, Club › Coupe) */
.cpj { margin-top: 8px; text-align: left; }
.cpj > summary .sous { margin-left: 6px; }
.cpj-g { margin: 2px 0 6px; font-size: 12px; }
.cpj-filtre { margin: 4px 0 8px; }
.cpj-filtre button { min-width: 0; overflow: hidden; }
.cpj-filtre button span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cpj-blocs { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; }
.cpj-bloc { min-width: 0; }
.cpj-t { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 2px 2px 4px; border-bottom: 1px solid var(--ligne); font-size: 13.5px; }
.cpj-t > b:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cpj-tot { font-variant-numeric: tabular-nums; color: var(--saison); }
.cpj-l { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 8px; row-gap: 3px; padding: 6px 8px; margin-top: 4px; border-radius: 8px; background: var(--fondi); }
.cpj-l.moi { background: var(--moi); box-shadow: inset 3px 0 0 var(--saison); }
.cpj-l.zero { opacity: .6; }
.cpj-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.cpj-p { font-variant-numeric: tabular-nums; font-size: 14px; }
.cpj-b { grid-column: 1 / -1; display: block; height: 5px; border-radius: 3px; overflow: hidden; background: var(--fond); }
.cpj-b i { display: block; height: 100%; background: var(--saison); border-radius: 3px; }
.cpj-c { grid-column: 1 / -1; font-size: 11.5px; }
.cpj-r .cpj-n { color: var(--doux); }
.cpj-rap, .cpj-vide { margin-top: 6px; font-size: 12px; }
.gu-votes { margin-top: 6px; font-size: 12.5px; color: var(--doux); }
.gu-vn { color: var(--texte); font-weight: 600; }
.gu-vact { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 6px; }
.gu-vact .gu-effet { flex: 1 1 130px; min-width: 0; font-size: 12px; }
.gu-mien { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 10px; font-size: 13px; font-weight: 800; white-space: nowrap; color: var(--guerre); background: color-mix(in srgb, var(--guerre) 15%, var(--fondi)); }
.gu-piste.mien { border-color: color-mix(in srgb, var(--guerre) 55%, var(--ligne)); }
.gu-vc { margin: 8px 0; padding: 8px 10px; border-radius: 10px; border-left: 3px solid var(--guerre); background: color-mix(in srgb, var(--guerre) 10%, var(--fondi)); font-size: 13px; }
.gu-vc-e { line-height: 1.35; }
.gu-vc-l { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 7px; }
.gu-vc-l .btn, .gu-vc-l .gu-mien { flex: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gu-vc-l .gu-effet { flex: 1 1 120px; min-width: 0; margin: 0; }
.gu-vc .sous { margin-top: 4px; }
.gu-rep { margin: 6px 0 0; padding: 5px 8px; border-radius: 8px; background: rgba(0, 0, 0, .25); font-weight: 600; }
.gu-rappel { font-size: 11.5px; }
/* registre 275 (hors guerre) : course ouverte, le gain du 1er aussi visible que sur la ligne repliée */
.cr-ban-g { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: 7px; padding: 5px 9px; border-radius: 10px; background: rgba(0, 0, 0, .28); font-variant-numeric: tabular-nums; }
.cr-ban-g .esp, .gu-monvote .esp { flex: 1; }
.cr-ban-1 { white-space: nowrap; }
.cr-ban-1 i { font-style: normal; font-size: 12px; font-weight: 600; color: var(--doux); }
.cr-ban-1 b { font-size: 19px; line-height: 22px; color: var(--or); }
.cr-ban-top { font-size: 11.5px; font-weight: 700; color: var(--or); }
.cr-ban-e { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.cr-ban-e.gr { color: var(--vert); font-weight: 700; }
.cr-ban-e.gu-prix { color: var(--gagne); }
.cr-ban-e s { opacity: .65; font-weight: 400; }
.ss-gu-img { width: 20px; height: auto; margin-right: 3px; vertical-align: -4px; }
.pastille-n.neuf { background: var(--guerre); color: #2a1206; font-weight: 800; font-size: 10px; }
.ss-club .ss-gu-img { margin: 0; vertical-align: 0; }
/* v20.23 : bannière du club compacte */
.club-ban.compact { padding: 9px 10px; margin-bottom: 8px; }
.club-ban.compact .club-tete h2 { font-size: 18px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.club-ban.compact .club-tete .esp { min-width: 0; }
.club-ban.compact .club-devise { font-size: 12px; font-style: italic; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.club-ban.compact .cr-bulles { margin-top: 6px; gap: 4px; }
.club-ban.compact .cr-bulles > span { font-size: 12px; padding: 2px 8px; }
/* 23/11 : sur téléphone, les 4 bulles restent sur UNE ligne (plus petites) ; si la place manque encore,
   seule la 1re (le rôle, « 👑 Chef ») se raccourcit en « … », les chiffres restent entiers */
@media (max-width: 520px) {
  .club-ban.compact .cr-bulles { flex-wrap: nowrap; gap: 3px; }
  .club-ban.compact .cr-bulles > span { font-size: 11px; padding: 2px 5px; white-space: nowrap; flex-shrink: 0; }
  .club-ban.compact .cr-bulles > span:first-child { flex-shrink: 1; min-width: 26px; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 340px) {
  .club-ban.compact .cr-bulles { gap: 2px; }
  .club-ban.compact .cr-bulles > span { font-size: 10.5px; padding: 2px 4px; }
}
/* v20.23 : Club › Pistes en un écran : résumé (.gu-resume), vote replié (.gu-vote-pli), Liste (.gu-l) et Carte (.gu-carte) ; fonds par variables (4 saisons) */
.gu-resume { padding: 6px 10px 2px; border-left: 3px solid var(--guerre); }
/* retouche v20.24 : résumé en lignes fines (une ligne chacune, « … » si trop long) */
.gu-1l { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gu-r-t { flex: none; font-size: 12.5px; font-weight: 700; color: var(--guerre); font-variant-numeric: tabular-nums; }
.gu-r-t .compte { font-size: inherit; color: inherit; }
.gu-resume .cr-pli { margin-top: 0; border-top: 1px dashed var(--ligne); }
.gu-resume .cr-pli > summary { min-height: 36px; font-size: 13px; color: var(--texte); }
.gu-resume .cr-pli > summary .esp { flex: 1; }
.gu-tu-b { display: flex; gap: 6px; }
.gu-tuiles .gu-tu { flex-direction: row; display: inline-flex; align-items: baseline; gap: 4px; padding: 2px 8px; font-size: 12px; font-weight: 700; color: var(--doux); }
.gu-tuiles .gu-tu b { font-size: 15px; }
.gu-tu-l { font-size: 12.5px; margin: 2px 0; }
.gu-tu-l b { color: var(--doux); }
.gu-resume .gu-cl { margin: 4px 0 6px; padding: 4px 6px; }
.gu-resume .gu-cl small { display: inline; }
.gu-resume .gu-cl-i { font-size: 18px; }
.gu-cl-b { min-height: 34px; padding: 4px 10px; font-size: 13px; }
.gu-resume .gu-vote-pli { border-bottom: 0; }
.gu-resume .gu-coffre-pli .gu-suite-c { display: inline; }
.gu-resume details.gu-tuiles { display: block; margin-top: 2px; }
.gu-resume .gu-r-h { min-height: 38px; }
.gu-resume .gu-r-img { flex-basis: 26px; width: 26px; }
.gu-resume .gu-aide { width: 36px; height: 36px; font-size: 15px; }
.gu-r-h { display: flex; align-items: center; gap: 8px; }
.gu-r-h .esp { min-width: 0; }
.gu-r-h b { font-size: 16px; }
.gu-r-h .sous { font-size: 12.5px; }
.gu-r-h .sous .compte { font-size: inherit; color: var(--guerre); }
.gu-r-img { flex: 0 0 38px; width: 38px; height: auto; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .45)); }
.gu-aide { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ligne); background: var(--fondi); color: var(--texte); font-size: 17px; cursor: pointer; }
.gu-tuiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.gu-tu { display: flex; flex-direction: column; align-items: center; padding: 4px 4px 4px; border-radius: 10px; background: var(--fondi); text-align: center; min-width: 0; }
.gu-tu b { font-size: 18px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.gu-tu span { font-size: 11.5px; font-weight: 700; color: var(--doux); }
.gu-tu small { max-width: 100%; margin-top: 2px; font-size: 10.5px; color: var(--doux); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gu-tu.tenue b { color: var(--gagne); } .gu-tu.tete b { color: var(--guerre); } .gu-tu.defendre b { color: var(--perdu); }
.gu-tu.defendre:not(.zero) { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--perdu) 60%, transparent); }
.gu-tu.zero b { color: var(--doux); }
.gu-cl { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 6px 8px; border-radius: 10px; background: color-mix(in srgb, var(--guerre) 12%, var(--fondi)); }
.gu-cl.vide-c { background: var(--fondi); }
.gu-cl .esp { min-width: 0; }
.gu-cl-i { font-size: 22px; line-height: 1; }
.gu-cl small { display: block; font-size: 12px; color: var(--doux); font-variant-numeric: tabular-nums; }
.gu-cl .btn { flex: none; }
.gu-coffre-pli { margin-top: 8px; font-size: 13px; }
.gu-coffre-pli > summary { line-height: 1.35; }
.gu-coffre-pli .gu-suite-c { display: block; font-size: 12px; font-weight: 400; color: var(--or); }
.gu-coffre-pli > div { margin-top: 5px; }
.gu-vote-pli { margin: 2px 0 0; border-bottom: 1px dashed var(--ligne); }
.gu-cl .gu-v { font-size: 15px; }
.gu-vote-pli > .bloc { margin: 6px 0 0; }
.gu-vote-pli > summary .sous { margin-left: 6px; }
.ss-pistes { margin: 4px 0 6px; }
.ss-pistes button { min-height: 40px; }
.gu-l-aide { margin: 0 2px 6px; font-size: 12px; }
.gu-liste { display: flex; flex-direction: column; gap: 4px; }
.gu-l { border: 1px solid var(--ligne); border-radius: 10px; background: var(--carte); }
.gu-l > summary { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 10px; align-items: center; gap: 8px; min-height: 48px; padding: 5px 8px 5px 6px; list-style: none; cursor: pointer; }
.gu-l > summary::-webkit-details-marker { display: none; }
.gu-l > summary::after { content: '▾'; font-size: 11px; color: var(--doux); }
.gu-l[open] > summary::after { content: '▴'; }
.gu-l[open] > summary { border-bottom: 1px dashed var(--ligne); }
.gu-l.cible { border-color: var(--guerre); box-shadow: inset 3px 0 0 var(--guerre); }
.gu-l.defendre { box-shadow: inset 3px 0 0 var(--perdu); }
.gu-l.cible.defendre { box-shadow: inset 3px 0 0 var(--guerre), inset 6px 0 0 var(--perdu); }
.gu-l.mien:not(.cible) { border-color: color-mix(in srgb, var(--guerre) 55%, var(--ligne)); }
.gu-l-r { display: grid; place-items: center; height: 30px; border-radius: 8px; background: var(--fondi); font-size: 12.5px; font-weight: 800; color: var(--doux); font-variant-numeric: tabular-nums; }
.gu-l-r.r1 { background: color-mix(in srgb, var(--gagne) 22%, var(--fondi)); color: var(--gagne); }
.gu-l-r.r3 { color: var(--guerre); }
.gu-l-n { min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 4px; }
.gu-l-n b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.gu-l-c, .gu-l-v { font-size: 13px; }
.gu-l-n small { flex-basis: 100%; font-size: 11.5px; color: var(--doux); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gu-l-e { font-weight: 700; }
.gu-l.tenue .gu-l-e { color: var(--gagne); } .gu-l.tete .gu-l-e { color: var(--guerre); } .gu-l.defendre .gu-l-e { color: var(--perdu); }
.gu-l-p { display: flex; flex-direction: column; align-items: flex-end; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gu-l-p b { font-size: 15px; line-height: 1.15; }
.gu-l-p small { font-size: 11.5px; color: var(--doux); }
.gu-l-p small.av { color: var(--gagne); font-weight: 700; } .gu-l-p small.pres { color: var(--guerre); font-weight: 700; }
.gu-det { padding: 6px 10px 9px; }
.gu-det-t { font-size: 12px; }
.gu-moi { color: var(--gagne); }
.gu-carte-boite { margin: 0 0 8px; padding: 6px; border: 1px solid var(--ligne); border-radius: 14px; background: var(--fondi); }
.gu-carte { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.gu-f-terre { fill: color-mix(in srgb, var(--gagne) 7%, var(--carte)); }
.gu-f-mer { fill: color-mix(in srgb, #3d8bfd 30%, var(--fondi)); }
.gu-f-mont { fill: color-mix(in srgb, var(--doux) 25%, var(--carte)); }
.gu-f-pre { fill: none; stroke: color-mix(in srgb, var(--gagne) 30%, var(--carte)); stroke-width: 2; stroke-linecap: round; }
.gu-m { cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; }
.gu-m-zone { fill: transparent; }
.gu-m-pt { fill: color-mix(in srgb, var(--tc, #888) 72%, var(--carte)); stroke: color-mix(in srgb, var(--tc, #888) 70%, #fff); stroke-width: 1.5; }
.gu-m.tenue .gu-m-pt { fill: var(--gagne); stroke: #fff; stroke-width: 2; }
.gu-m.defendre .gu-m-pt { fill: var(--perdu); stroke: #fff; stroke-width: 2; }
.gu-m.tete .gu-m-pt { stroke: var(--gagne); stroke-width: 3; stroke-dasharray: 4 3; }
.gu-m-cible { fill: none; stroke: var(--guerre); stroke-width: 3; animation: gu-cible 1.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes gu-cible { 50% { opacity: .45; } }
html.anim-coupee .gu-m-cible { animation: none; }
@media (prefers-reduced-motion: reduce) { .gu-m-cible { animation: none; } }
.gu-m-r { font-size: 12px; font-weight: 800; text-anchor: middle; fill: #fff; paint-order: stroke; stroke: rgba(0, 0, 0, .55); stroke-width: 2.5px; font-variant-numeric: tabular-nums; pointer-events: none; }
.gu-m-n { font-size: 10px; font-weight: 700; text-anchor: middle; fill: var(--texte); paint-order: stroke; stroke: var(--fondi); stroke-width: 3px; pointer-events: none; }
.gu-m.on .gu-m-zone { fill: color-mix(in srgb, var(--or) 22%, transparent); stroke: var(--or); stroke-width: 2; }
.gu-m.on .gu-m-n { fill: var(--or); }
.gu-m:focus-visible .gu-m-zone { stroke: var(--texte); stroke-width: 2; }
.gu-leg { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 10px; margin-top: 4px; font-size: 11px; color: var(--doux); }
.gu-leg span { display: inline-flex; align-items: center; gap: 4px; }
.gu-leg i { width: 11px; height: 11px; border-radius: 50%; }
.gu-leg i.tenue { background: var(--gagne); } .gu-leg i.defendre { background: var(--perdu); }
.gu-leg i.tete { border: 2px dashed var(--gagne); } .gu-leg i.autre { background: linear-gradient(90deg, #3d8bfd 33%, #9b6bff 33% 66%, #f1c40f 66%); }
.gu-leg i.cible { border: 2.5px solid var(--guerre); }
.gu-cfiche { padding: 9px 2px 2px; }
.gu-cfiche > .ligne { gap: 6px; flex-wrap: wrap; padding: 0 10px; }
.gu-cfiche.cible { border-color: var(--guerre); }
.gu-cf-pts { padding: 3px 10px 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.gu-cf-pts .av { color: var(--gagne); font-weight: 700; } .gu-cf-pts .pres { color: var(--guerre); font-weight: 700; } .gu-cf-pts .loin { color: var(--doux); }
.badge.gu-b-tenue { color: var(--gagne); } .badge.gu-b-tete { color: var(--guerre); } .badge.gu-b-defendre { color: var(--perdu); }
.nv-img { display: block; width: 140px; max-width: 50%; height: auto; margin: 6px auto 4px; }

/* 18/11/2026 : tournée du matin refaite (maquette A, ux-ecurie ; mobile/suivi/maquettes/tournee/). Plein écran .lvl.pres, accent --matin.
   Couleurs des événements --ev-* : texte ≥ 4,5 sur leur carte dans les 4 saisons (mesuré). Animations coupées par .reduit / html.anim-coupee. */
:root { --matin: #ffb36b; --ev-ench: #9ccbff; --ev-monte: #f4a3c0; --ev-grande: #ffd36b; --ev-tal: #d9b3ff; --ev-vente: #8fe3b4; --ev-carnet: #ffe08a; }
.tm-pres { --pc: var(--matin); align-items: flex-start; padding-top: 0; }
.tm-pres .lvl-corps { margin: 0; text-align: left; padding-bottom: 8px; }
.tm-pres .tm-x { position: fixed; top: max(10px, env(safe-area-inset-top)); right: 12px; z-index: 3; float: none; width: 44px; height: 44px; border-radius: 50%; background: rgba(0, 0, 0, .5); color: #fff; font-size: 18px; }
.tm-img { position: relative; height: 168px; margin: 0 -16px; overflow: hidden; animation: fin-fondu .4s both; }
.tm-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 30% 62%; }
.tm-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--fond) 100%); }
.tm-img.vide { height: 56px; }
.tm-img.vide img { display: none; }
.tm-sur { position: relative; margin: -30px 0 0; text-align: center; color: var(--matin); font-size: 13px; font-weight: 700; text-shadow: 0 1px 4px rgba(0, 0, 0, .8); }
.tm-titre { margin: 2px 0 0; text-align: center; font-size: 27px; line-height: 1.15; font-weight: 800; color: var(--or); text-shadow: 0 2px 10px rgba(0, 0, 0, .6); animation: lvl-pop .45s .1s cubic-bezier(.2, 1.5, .4, 1) both; }
.tm-pres h3.tm-h3 { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 8px; font-size: 13px; color: var(--doux); }
.tm-h3 .sous { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 400; }
/* la récompense du jour */
.tm-heros { position: relative; margin: 12px 0 0; padding: 14px; border-radius: 18px; text-align: center; border: 1px solid color-mix(in srgb, var(--or) 55%, var(--ligne));
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--or) 24%, var(--carte)) 0, var(--carte) 62%); animation: lvl-monte .4s .2s cubic-bezier(.2, 1.1, .4, 1) both; }
.tm-h-sur { font-size: 12.5px; font-weight: 700; color: var(--doux); text-transform: uppercase; letter-spacing: .06em; }
.tm-heros.recu .tm-h-sur { color: var(--vert); }
.tm-h-ico { position: relative; display: flex; align-items: center; justify-content: center; width: 96px; height: 96px; margin: 6px auto 2px; }
.tm-h-ico::before { content: ""; position: absolute; inset: -16px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--or) 55%, transparent), transparent); animation: gu-lueur 2.4s ease-in-out 4 alternate both; }
.tm-heros.recu .tm-h-ico::before { animation: none; opacity: .5; }
.tm-coin .ico-img { position: relative; width: 92px; height: 92px; vertical-align: 0; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .5)); }
.tm-h-n { font-size: 28px; font-weight: 900; line-height: 1.15; color: var(--or); font-variant-numeric: tabular-nums; text-wrap: balance; }
.tm-h-n .ico-img { width: .95em; height: .95em; }
.tm-h-plus { margin: 2px 0 10px; font-size: 13.5px; }
.tm-h-plus b { color: var(--or); }
.tm-h-bonus { display: inline-block; margin: 0 0 10px; padding: 5px 12px; border-radius: 99px; font-size: 13px; font-weight: 800; color: #1b1300; background: linear-gradient(180deg, var(--btn1, #ffd65a), var(--btn2, #e0a91c)); }
.tm-h-sac { margin: 0 0 10px; padding: 7px 10px; border-radius: 10px; font-size: 12.5px; text-align: left; background: color-mix(in srgb, var(--rouge) 14%, var(--fondi)); }
.tm-h-btn { width: 100%; min-height: 52px; font-size: 17px; }
.tm-h-btn:disabled { opacity: .6; }
.tm-recu { list-style: none; margin: 6px 0 8px; padding: 0; font-size: 15px; font-weight: 700; line-height: 1.5; }
.tm-recu li:first-child { font-size: 22px; font-weight: 900; color: var(--or); }
.tm-h-dem, .tm-fait { font-size: 13.5px; color: var(--doux); }
.tm-h-dem b, .tm-fait b { color: var(--texte); }
.tm-fait { margin: 12px 0 0; padding: 12px 14px; min-height: 48px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--vert) 45%, var(--ligne)); background: var(--carte); text-align: center; }
.tm-fait b.ok { color: var(--gagne, #6fe3a0); }
/* réception : pièces (ou gemmes) qui jaillissent, l'image qui saute */
.tm-pluie { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.tm-pluie i { position: absolute; width: 22px; height: 22px; margin: -11px; background: url(img/coin.png) center / contain no-repeat; opacity: 0; animation: tm-jaillir .9s cubic-bezier(.15, .7, .3, 1) both; }
.tm-pluie.g i { background-image: url(img/gemme.png); }
.tm-heros.anim .tm-h-ico > span:first-child { animation: tm-saut .55s cubic-bezier(.2, 1.6, .4, 1) both; }
.tm-heros.anim .tm-recu { animation: lvl-monte .35s .25s ease-out both; }
@keyframes tm-jaillir { 0% { opacity: 1; transform: translate(0, 0) scale(.6); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(1) rotate(var(--r)); } }
@keyframes tm-saut { 0% { transform: scale(.7); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
/* pièce d'équipement (J7, jalons) : selle sur un halo de la rareté */
.tm-piece { --rc: var(--rare); position: relative; display: inline-flex; align-items: center; justify-content: center; width: 92px; height: 92px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--rc) 55%, transparent), transparent); }
.tm-piece.r-epique { --rc: var(--epique); } .tm-piece.r-legendaire { --rc: var(--legendaire); } .tm-piece.r-commun { --rc: var(--commun); }
.tm-piece .ico-img { width: 72%; height: 72%; vertical-align: 0; filter: drop-shadow(0 0 6px var(--rc)) drop-shadow(0 4px 8px rgba(0, 0, 0, .5)); }
.tm-piece.mini { width: 30px; height: 30px; }
.tm-piece.mini .ico-img { width: 26px; height: 26px; filter: drop-shadow(0 0 3px var(--rc)); }
/* la semaine : 7 cases reliées */
.tm-sem { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)) minmax(0, 1.45fr); gap: 4px; align-items: end; }
.tm-sem::before, .tm-sem::after { content: ""; position: absolute; left: 6%; top: 50%; height: 3px; border-radius: 2px; }
.tm-sem::before { right: 10%; background: var(--ligne); }
.tm-sem::after { width: calc(var(--fait) * 84%); background: var(--vert); }
.tm-cj { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 0; min-height: 58px; padding: 4px 1px; border-radius: 12px;
  background: var(--fondi); border: 1px solid var(--ligne); font-variant-numeric: tabular-nums; text-align: center; }
.tm-cj small { font-size: 10.5px; color: var(--doux); font-weight: 700; }
.tm-cj b { font-size: 11px; line-height: 1.1; white-space: nowrap; }
.tm-cj > .ico-img { width: 18px; height: 18px; vertical-align: 0; }
.tm-cj b .ico-img { width: 13px; height: 13px; vertical-align: -2px; }
.tm-cj.pris { background: color-mix(in srgb, var(--vert) 14%, var(--fondi)); border-color: color-mix(in srgb, var(--vert) 50%, var(--ligne)); }
.tm-cj.pris::after { content: "✓"; position: absolute; top: -7px; right: -3px; width: 17px; height: 17px; border-radius: 50%; background: var(--vert); color: #04230f; font-size: 11px; font-weight: 900; line-height: 17px; text-align: center; }
.tm-cj.jour { min-height: 66px; border: 2px solid var(--or); background: color-mix(in srgb, var(--or) 20%, var(--fondi)); box-shadow: 0 0 14px color-mix(in srgb, var(--or) 45%, transparent); }
.tm-cj.jour small { color: var(--or); }
.tm-cj.gros { min-height: 76px; background: linear-gradient(160deg, color-mix(in srgb, var(--legendaire) 28%, var(--fondi)), var(--fondi)); border-color: color-mix(in srgb, var(--legendaire) 70%, var(--ligne)); }
.tm-cj.gros small { color: var(--legendaire); }
.tm-cj.gros.jour { border-color: var(--or); }
.tm-note { margin: 6px 0 0; font-size: 12.5px; color: var(--doux); }
/* le mois : barre + 4 jalons */
.tm-m-tete b { font-size: 20px; color: var(--or); font-variant-numeric: tabular-nums; }
.tm-m-barre { position: relative; height: 10px; margin: 30px 16px 62px; border-radius: 99px; background: var(--fondi); border: 1px solid var(--ligne); }
.tm-m-barre > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: linear-gradient(90deg, var(--btn2, #e0a91c), var(--btn1, #ffd65a)); }
.tm-jal { position: absolute; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; }
.tm-jal-r { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--fond2); border: 2px solid var(--ligne); }
.tm-jal-r > .ico-img { width: 24px; height: 24px; vertical-align: 0; }
.tm-jal.fait .tm-jal-r { border-color: var(--or); background: color-mix(in srgb, var(--or) 30%, var(--fond2)); box-shadow: 0 0 10px color-mix(in srgb, var(--or) 50%, transparent); }
.tm-jal.fait .tm-jal-r::after { content: "✓"; position: absolute; top: -4px; right: -4px; width: 16px; height: 16px; border-radius: 50%; background: var(--vert); color: #04230f; font-size: 10px; font-weight: 900; line-height: 16px; text-align: center; }
.tm-jal.proch .tm-jal-r { border-color: var(--or); border-style: dashed; }
.tm-jal-j { position: absolute; top: 44px; white-space: nowrap; font-size: 11.5px; font-weight: 700; color: var(--doux); text-align: center; line-height: 1.2; }
.tm-jal-j .ico-img { width: 13px; height: 13px; vertical-align: -2px; }
.tm-jal.bout .tm-jal-j { right: -8px; text-align: right; }
.tm-jal.fait .tm-jal-j, .tm-jal.proch .tm-jal-j { color: var(--or); }
.tm-sceau { position: absolute; top: -8px; left: 26px; display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0; border-radius: 50%; border: 1px solid var(--ligne); background: var(--fond2); }
.tm-sceau::after { content: ""; position: absolute; inset: -9px; }
.tm-sceau .ico-img { width: 18px; height: 18px; vertical-align: 0; }
.tm-m-proch { font-size: 13px; }
.tm-m-proch b { color: var(--or); }
/* aujourd'hui : quêtes + événements */
.tm-quetes { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; min-height: 56px; border-radius: 14px; border: 1px solid var(--ligne); background: var(--carte); text-align: left; }
.tm-quetes > .esp { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.tm-q-tete { display: flex; align-items: center; gap: 6px; font-weight: 800; white-space: nowrap; }
.tm-q-tete .sous { font-weight: 400; }
.tm-pret { margin-left: auto; padding: 2px 8px; border-radius: 99px; background: var(--vert); color: #04230f; font-size: 11.5px; }
.tm-q { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.tm-q-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-q.faite .tm-q-t { color: var(--doux); text-decoration: line-through; }
.tm-jauge { flex: 0 0 48px; height: 6px; border-radius: 99px; background: var(--fondi); overflow: hidden; }
.tm-jauge i { display: block; height: 100%; background: var(--or); }
.tm-q.prete .tm-jauge i, .tm-q.faite .tm-jauge i { background: var(--vert); }
.tm-q-n { flex: 0 0 auto; min-width: 46px; text-align: right; font-size: 12px; color: var(--doux); font-variant-numeric: tabular-nums; }
.tm-q.prete .tm-q-n { color: var(--gagne, #6fe3a0); font-weight: 800; }
.tm-q-autres { padding-top: 6px; border-top: 1px dashed var(--ligne); font-size: 12.5px; font-weight: 700; color: var(--gagne, #6fe3a0); }
.tm-quetes .aller { font-size: 20px; font-weight: 800; color: var(--doux); }
.tm-evs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.tm-ev { --c: var(--or); display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; min-height: 64px; padding: 9px 10px; border-radius: 14px; text-align: left;
  border: 1px solid color-mix(in srgb, var(--c) 45%, var(--ligne)); background: linear-gradient(150deg, color-mix(in srgb, var(--c) 14%, var(--carte)), var(--carte) 75%); }
.tm-ev-t { display: flex; align-items: center; gap: 6px; width: 100%; min-width: 0; }
.tm-ev-ico { flex: none; font-size: 18px; line-height: 1; }
.tm-ev-t b { min-width: 0; font-size: 13.5px; line-height: 1.2; color: var(--c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-ev-s { font-size: 12px; line-height: 1.3; color: var(--texte); }
.tm-ev-s b { font-weight: 800; }
.tm-ev .compte { font-weight: 800; font-variant-numeric: tabular-nums; }
.tm-ev.large { grid-column: 1 / -1; }
.ev-ench { --c: var(--ev-ench); } .ev-monte { --c: var(--ev-monte); } .ev-grande { --c: var(--ev-grande); } .ev-guerre { --c: color-mix(in srgb, var(--guerre) 80%, #fff); }   /* --guerre seul : 4,4 en hiver et en été sur ce fond */
.ev-tal { --c: var(--ev-tal); } .ev-vente { --c: var(--ev-vente); } .ev-carnet { --c: var(--ev-carnet); }
.tm-visite { margin: 14px 0 0; padding: 8px 10px; border-radius: 10px; background: var(--fondi); font-size: 12.5px; color: var(--doux); font-variant-numeric: tabular-nums; }
.tm-visite b.p { color: var(--gagne, #6fe3a0); } .tm-visite b.m { color: var(--perdu, #ff8a8a); }
.tm-fin { margin-top: 16px; }
.tm-fin .btn { width: 100%; min-height: 48px; }
.tm-pres.reduit *, html.anim-coupee .tm-pres *, html.anim-coupee .tm-pres *::before { animation: none !important; }
.tm-pres.reduit .tm-pluie, html.anim-coupee .tm-pluie { display: none; }
/* v19.98 (18/11) : Enchères, piste C des maquettes. Une vente = un titre + une grille de vignettes au cadre de rareté (même dégradé que .carte) ;
   toucher une vignette ouvre la fenêtre du lot (#feuille). Fonds : variables (4 saisons). Bords d'état : vert (je mène), rouge (dépassé), saison (mon cheval). */
h3.lv-titre { display: flex; align-items: baseline; gap: 8px; margin: 16px 0 4px; font-size: 13px; }
h3.lv-titre .sous { margin-left: auto; font-size: 12px; text-transform: none; letter-spacing: 0; font-weight: 600; white-space: nowrap; }
.lv-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 6px; padding-top: 10px; }
.lv { position: relative; display: block; min-width: 0; padding: 2px; border: 0; border-radius: 14px; background: var(--r, var(--ligne)); color: inherit; font: inherit; text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .3); transition: transform .12s; }
.lv:active { transform: scale(.97); }
.lv.inconnu { --r: linear-gradient(145deg, var(--ligne), var(--pill) 55%, var(--ligne)); }
/* ticket 97 (20/11) : moins de vide, infos plus grosses ; l'ordre de lecture : tête, nom, note, âge · distance, prix, meneur, temps */
.lv-in { display: flex; flex-direction: column; align-items: center; height: 100%; padding: 12px 3px 7px; border-radius: 12px; background: linear-gradient(180deg, var(--lot-haut, var(--carte)), var(--lot-bas, var(--fondi))); }
/* 23/11 (demande de l'utilisateur) : le fond reprend le dégradé de rareté des anciens lots (ticket 51, .lot-r-*) ; yearling (inconnu) : fond de saison */
.lv.commun { --lot-haut: #252c38; --lot-bas: #161b24; } .lv.rare { --lot-haut: #132a55; --lot-bas: #0c1a36; } .lv.epique { --lot-haut: #2b1a4d; --lot-bas: #1a1030; }
.lv.legendaire { --lot-haut: #3a2c0a; --lot-bas: #241b06; } .lv.mythique { --lot-haut: #3f1524; --lot-bas: #280d17; }
.lv-in .tete-cheval { margin: 0; }
.lv-n { max-width: 100%; margin-top: 4px; font-size: 14.5px; font-weight: 800; line-height: 17px; overflow-wrap: anywhere; hyphens: auto;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }   /* le nom entier : 3 lignes au plus (noms composés longs) */
.lv-n .sexe { font-size: 14px; }
.lv-q { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 3px; min-height: 22px; margin-top: 3px; font-size: 12px; }
.lv-q .pastille { font-size: 14px; line-height: 20px; min-width: 30px; padding: 0 5px; }
.lv-q .gen-mini { margin: 0; }
.lv-a { margin-top: 2px; font-size: 12px; line-height: 15px; color: var(--doux); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lv-p { margin-top: auto; padding-top: 5px; font-size: 17px; line-height: 22px; font-weight: 800; color: var(--or); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lv-p.zero { color: var(--doux); font-size: 14px; font-weight: 700; }
.lv-m { max-width: 100%; font-size: 12px; line-height: 15px; color: var(--doux); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-f { font-size: 13px; line-height: 17px; color: var(--doux); font-variant-numeric: tabular-nums; }
.lv-f .compte { font-weight: 700; color: var(--texte); }
.lv-f.prol, .lot-prol { color: #ffb15c; font-weight: 700; }
.lv-r { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); z-index: 2; max-width: 96%; padding: 0 6px; border-radius: 99px; font-size: 11px; font-weight: 800; line-height: 18px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--fond); border: 1px solid var(--ligne); color: var(--doux); }
.lv.e-moi { box-shadow: 0 0 0 2px var(--vert), 0 4px 12px rgba(0, 0, 0, .3); } .lv.e-moi .lv-r { border-color: var(--vert); color: var(--vert); }
.lv.e-dep { box-shadow: 0 0 0 2px var(--rouge), 0 4px 12px rgba(0, 0, 0, .3); } .lv.e-dep .lv-r { border-color: var(--rouge); color: var(--rouge); }
.lv.e-mien .lv-r { border-color: var(--saison); color: var(--saison); }
.lv.e-ferme .lv-in > *, .lv.e-fini .lv-in > * { opacity: .55; }
.lv-tesv { margin: 0 0 10px; padding: 8px 10px; border-radius: 10px; background: var(--fondi); font-size: 13px; color: var(--doux); }
.lv-tesv b { color: var(--texte); }
.lv-plein, .lv-un { margin: 0 0 6px; }

/* « Mes enchères » (3 onglets) : encadré teinté de la saison, une rangée de 52 px par mise */
.mes-ench { margin: 0 0 10px; padding: 8px 10px 10px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--saison) 45%, var(--ligne));
  background: linear-gradient(160deg, color-mix(in srgb, var(--saison) 14%, var(--fond2)), var(--fond2) 70%); }
.mes-t { display: flex; align-items: center; gap: 6px; min-height: 28px; }
.mes-t .sous { margin-left: auto; font-size: 12px; }
.mes-ench > .sous { margin: 4px 0 0; }
.mes-l { display: flex; align-items: center; gap: 8px; min-height: 52px; margin-top: 6px; padding: 6px 6px 6px 8px; border-radius: 11px; background: var(--fondi); border-left: 3px solid var(--ligne); cursor: pointer; }
.mes-l.e-moi { border-left-color: var(--vert); } .mes-l.e-dep { border-left-color: var(--rouge); }
.mes-l .tete-cheval { margin: 0; flex: none; }
.mes-l .esp { flex: 1; min-width: 0; line-height: 18px; }
.mes-l .esp > b { font-size: 15px; }
.mes-l small { display: flex; gap: 4px; font-size: 12px; color: var(--doux); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mes-l small > span { flex: none; }
.mes-l small > .mes-qui { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mes-ok { flex: none; padding: 0 6px; font-size: 12.5px; font-weight: 800; color: var(--vert); white-space: nowrap; }
.mes-ok.fait { padding: 6px 10px; border-radius: 10px; background: color-mix(in srgb, var(--vert) 22%, var(--fondi)); animation: lv-fait .35s ease-out; }
@keyframes lv-fait { from { transform: scale(.85); opacity: .4; } }
html.anim-coupee .mes-ok.fait, html.anim-coupee .lv { animation: none; transition: none; }
.mes-relance { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 80px; min-height: 44px; padding: 4px 8px; font-size: 12px; line-height: 1.1; }
.mes-relance b { font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* fenêtre d'un lot : « ‹ Retour » (1er [data-fermer]) + titre, carte à gauche (150 px) et infos à droite, même à 360 px ; yearling : fiche pleine largeur */
.lot-tete { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
.lot-tete b { font-size: 16px; color: var(--saison); }
.lot-retour { min-height: 40px; padding: 6px 12px; }
.lot-badges { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 8px; }
.lot-det { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; align-items: start; }
.lot-det .carte { max-width: 150px; }
.lot-det.yl { grid-template-columns: minmax(0, 1fr); }
.lot-det .infos div { flex-wrap: wrap; }
.lot-det .infos b { text-align: right; font-variant-numeric: tabular-nums; }
.lot-det .infos .lot-etat { border-bottom: 0; padding-top: 6px; }
.lot-mise { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px auto; gap: 6px; align-items: stretch; margin-top: 12px; }
.lot-pm { min-height: 44px; padding: 0; font-size: 22px; font-weight: 800; border-radius: 10px; }
.lot-val { display: flex; flex-direction: column; justify-content: center; min-width: 0; border-radius: 10px; border: 1px solid var(--ligne); background: var(--fondi); }
.lot-val input[type=number] { width: 100%; min-width: 0; border: 0; background: none; padding: 4px 6px 0; text-align: center; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--texte); -moz-appearance: textfield; }
.lot-val input::-webkit-inner-spin-button, .lot-val input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.lot-val small { text-align: center; font-size: 10.5px; color: var(--doux); line-height: 13px; padding-bottom: 3px; white-space: nowrap; }
.lot-go { min-height: 44px; padding: 0 14px; font-size: 15px; font-weight: 800; }
@media (max-width: 370px) { .lv-r { font-size: 10px; padding: 0 5px; } .lv-in { padding-left: 2px; padding-right: 2px; } }
@media (max-width: 340px) { .lv-g { gap: 12px 6px; } .lot-det { grid-template-columns: 130px minmax(0, 1fr); } .lot-det .carte { max-width: 130px; } }
/* ---------- v20.06 : signes de rareté d'un cheval (lot 1, variante A ; maquette ux du 19/11) ----------
   La rareté se lit aussi par la FORME (daltoniens) : losanges ◆ (rare 1, épique 2, légendaire 3, mythique 3 + couronne) devant le chiffre
   de toutes les pastilles de note (.pastille.<rareté> : listes, direct, enchères) et devant le mot de rareté des cartes (.carte .rar).
   Cadre : coins ornés (légendaire, mythique), gemme en bas au centre (mythique ; le haut est pris par .ruban / .lv-r), reflet irisé qui
   passe sur le cadre mythique. Pur CSS : aucun gabarit changé. html.anim-coupee : reflets légendaire et mythique arrêtés.
   Ne pas confondre avec le « Cadre doré » cosmétique (avatar du joueur) : ici rien n'est acheté, tout vient de c.rarete. */
:root {
  --los-1: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 6'%3E%3Cpath d='M3 0L6 3L3 6L0 3Z'/%3E%3C/svg%3E");
  --los-2: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 6'%3E%3Cpath d='M3 0L6 3L3 6L0 3ZM10 0L13 3L10 6L7 3Z'/%3E%3C/svg%3E");
  --los-3: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 6'%3E%3Cpath d='M3 0L6 3L3 6L0 3ZM10 0L13 3L10 6L7 3ZM17 0L20 3L17 6L14 3Z'/%3E%3C/svg%3E");
  --los-m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 29 6'%3E%3Cpath d='M3 0L6 3L3 6L0 3ZM10 0L13 3L10 6L7 3ZM17 0L20 3L17 6L14 3ZM21 6V1.5L23 3.5L25 0L27 3.5L29 1.5V6Z'/%3E%3C/svg%3E");
}
.pastille.rare::before, .pastille.epique::before, .pastille.legendaire::before, .pastille.mythique::before,
.carte.rare .rar::before, .carte.epique .rar::before, .carte.legendaire .rar::before, .carte.mythique .rar::before {
  content: ""; display: inline-block; height: .45em; width: calc(.45em * var(--los-k, 1)); margin-right: .3em; vertical-align: .1em;
  background: currentColor; -webkit-mask: var(--los) no-repeat center / contain; mask: var(--los) no-repeat center / contain; }
.pastille.rare::before, .carte.rare .rar::before { --los: var(--los-1); }
.pastille.epique::before, .carte.epique .rar::before { --los: var(--los-2); --los-k: 2.167; }
.pastille.legendaire::before, .carte.legendaire .rar::before { --los: var(--los-3); --los-k: 3.333; }
.pastille.mythique::before, .carte.mythique .rar::before { --los: var(--los-m); --los-k: 4.833; }
/* colonne de 28 px des lignes « Choisis ton cheval » (.cr-ch) : les losanges passent AU-DESSUS du chiffre (pas de place à côté) */
.cr-ch > .pastille::before { display: block; height: 4px; width: calc(4px * var(--los-k, 1)); margin: 0 auto 2px; }
.carte .rar::before { height: .85em; width: calc(.85em * var(--los-k, 1)); vertical-align: -.05em; }
/* coins ornés : équerres dessinées par un seul ::before (8 dégradés), au bord intérieur du cadre, sous le texte (rien ne se chevauche) */
.carte.legendaire::before, .carte.mythique::before, .lv.legendaire::before, .lv.mythique::before {
  --k: #ffd75e; --l: 11px; --e: 2px; content: ""; position: absolute; inset: 5px; z-index: 1; pointer-events: none;
  background: linear-gradient(var(--k), var(--k)) left top / var(--l) var(--e), linear-gradient(var(--k), var(--k)) left top / var(--e) var(--l),
    linear-gradient(var(--k), var(--k)) right top / var(--l) var(--e), linear-gradient(var(--k), var(--k)) right top / var(--e) var(--l),
    linear-gradient(var(--k), var(--k)) left bottom / var(--l) var(--e), linear-gradient(var(--k), var(--k)) left bottom / var(--e) var(--l),
    linear-gradient(var(--k), var(--k)) right bottom / var(--l) var(--e), linear-gradient(var(--k), var(--k)) right bottom / var(--e) var(--l);
  background-repeat: no-repeat; opacity: .9; }
.carte.mythique::before, .lv.mythique::before { --k: #ff8fa3; }
.lv.legendaire::before, .lv.mythique::before { inset: 4px; --l: 9px; }
/* gemme du mythique, en bas au centre du cadre */
.carte.mythique::after, .lv.mythique::after { content: ""; position: absolute; bottom: -6px; left: 50%; width: 12px; height: 12px; margin-left: -6px; z-index: 2;
  transform: rotate(45deg); border-radius: 2px; pointer-events: none; background: linear-gradient(135deg, #ffd0da, #ff4d6d 50%, #7a0c28);
  border: 2px solid #ffe9a8; box-shadow: 0 0 8px rgba(255, 77, 109, .8); }
/* reflet irisé qui passe sur le cadre mythique (la couleur de fond reste le dégradé --r ; seul le reflet bouge) */
.carte.mythique, .lv.mythique { background: linear-gradient(110deg, transparent 30%, rgba(255, 215, 94, .9) 40%, rgba(120, 190, 255, .9) 50%, rgba(205, 140, 255, .9) 60%, transparent 70%), var(--r);
  background-size: 300% 100%, 100% 100%; background-repeat: no-repeat; background-position: 100% 0, 0 0; animation: irise 4.5s ease-in-out infinite; }
@keyframes irise { 0% { background-position: 100% 0, 0 0; } 60%, 100% { background-position: 0 0, 0 0; } }
/* animations réduites : reflets arrêtés ; le mythique garde un reflet fixe au milieu du cadre (matière irisée, sans mouvement) */
html.anim-coupee .carte.legendaire::after { animation: none; display: none; }
html.anim-coupee .carte.mythique, html.anim-coupee .lv.mythique { animation: none; background-position: 50% 0, 0 0; }

/* v20.10 (registres 303-304) : bonus temporaires (Boutique › ⚡ Bonus, rappel sur l'écurie) ; alerte rouge d'une confirmation (cheval de Lignée sacrifié) */
.objet.bonus-t.actif { border-color: var(--or); background: var(--orfond); }
.bonus-reste { font-size: 12px; font-weight: 700; color: var(--vert); margin: 4px 0; }
.bonus-t .lots { margin-top: 6px; }
.bonus-reste .compte { white-space: nowrap; }   /* v20.12 (UX) : « 6 j 22 h 07 » jamais coupé à 360 px */
.bonus-rappel { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; width: 100%; text-align: left; margin: 6px 0; padding: 8px 10px; border-radius: 10px;
  border: 1px solid var(--or); background: var(--orfond); color: var(--texte); font: inherit; font-size: 12.5px; cursor: pointer; }
.bonus-rappel > span { white-space: nowrap; }
.demande-alerte { color: var(--rouge); font-weight: 700; font-size: 13px; border: 1px solid var(--rouge); border-radius: 8px; padding: 6px 9px; margin: 6px 0 10px; }

/* v20.14 (UX, décision de l'utilisateur du 19/11) : Boutique en 5 onglets collés sous la barre du haut, bandeau d'une phrase par onglet
   (dégradé de la saison), cartes en ligne (bonus, objets), règle des prix : coins = .btn (or plein), gemmes = .btn.gem (bordé bleu) */
:root { --gemme: #7cc3ff; }
.bt-onglets { position: sticky; top: calc(50px + env(safe-area-inset-top)); z-index: 6; display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; padding: 4px;
  border-radius: 14px; box-shadow: 0 6px 14px rgba(0, 0, 0, .35); }
.bt-onglets button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 52px; padding: 5px 2px; font-size: 12px; }
.bt-onglets button.on { color: var(--saison); box-shadow: inset 0 -3px 0 var(--saison); }
.bt-o-img { width: 26px; height: 26px; object-fit: contain; }
.bt-o-e { font-size: 21px; line-height: 26px; height: 26px; }
.bt-o-pt { position: absolute; top: 2px; right: calc(50% - 24px); min-width: 17px; padding: 0 4px; border-radius: 9px; background: var(--vert); color: #06210f; font-size: 10.5px; line-height: 17px; }
.bt-titre { margin-top: 4px; }
.bt-vitrine { position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 4px 0 8px;
  border: 1px solid var(--ligne); border-radius: 14px; background: var(--fondi); }
.bt-vitrine::before { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, var(--saison), transparent 75%); opacity: .2; pointer-events: none; }
.bt-vitrine > * { position: relative; }
.bt-v-ico { flex: none; width: 36px; text-align: center; font-size: 28px; line-height: 36px; }
.bt-v-ico img { width: 34px; height: 34px; object-fit: contain; vertical-align: middle; }
.bt-vitrine b { display: block; font-size: 14.5px; }
.bt-vitrine small { display: block; color: var(--doux); font-size: 12.5px; font-variant-numeric: tabular-nums; }
/* ticket 96 (20/11, demande de l'utilisateur) : retour aux VIGNETTES dans tous les onglets (.objets.bt-grille > .objet) : 2 colonnes à 375 px,
   même gabarit partout (icône, nom, texte, puis les boutons de prix empilés en bas, alignés d'une vignette à l'autre) */
.objets.bt-grille { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; margin: 0 0 12px; }
.bt-grille .objet { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px 9px 10px; min-width: 0; }
.bt-grille .objet > b { font-size: 14.5px; line-height: 1.25; }
.bt-grille .objet .ico { line-height: 1.1; }
.bt-grille .objet p { min-height: 0; margin: 2px 0 4px; }
.bt-grille .objet p.bt-v-txt { font-size: 12.5px; color: var(--texte); line-height: 1.35; }
.bt-v-ap { font-size: 11.5px !important; font-variant-numeric: tabular-nums; }
.bt-v-pos { color: var(--doux); font-size: 12px; font-variant-numeric: tabular-nums; }
.bt-grille .bonus-reste { margin: 0; }
.bt-grille .objet.actif, .bt-grille .objet.cosm.porte { border-color: var(--or); background: var(--orfond); }
.bt-grille .objet.cosm { background: linear-gradient(180deg, rgba(91, 63, 160, .22), var(--fond2)); }
.bt-grille .objet.cosm.porte .ico { filter: drop-shadow(0 0 6px var(--saison)); }
.bt-v-px { margin-top: auto; width: 100%; display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.bt-v-px .btn { width: 100%; min-height: 40px; margin: 0; padding-left: 4px; padding-right: 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bt-grille .ens-p { flex-direction: column; align-items: center; gap: 2px; margin: 4px 0; font-size: 12.5px; }
.bt-grille .ens-avant { font-size: 12px; text-align: center; }
.bt-grille .ens.complet .bt-v-px { align-items: center; }
.cosm-empl .objets.bt-grille { margin-top: 8px; }
.btn.sec.gem { color: var(--texte); border: 1.5px solid var(--gemme); font-weight: 700; }   /* toujours avec .sec (fond des saisons) */
/* registre 391 (v20.75) : « Supprimer mon compte » : discret dans ⚙️ (fond des saisons, texte rouge), bouton final plein rouge */
.btn.sec.danger { color: var(--rouge); border-color: var(--rouge); }
.btn.danger:not(.sec), body[data-saison] .btn.danger:not(.sec):not(.crav) { background: var(--rouge); color: #fff; }   /* plus fort que les boutons des saisons */
@media (max-width: 360px) { .bt-v-px .btn { font-size: 12px; } .bt-onglets button { font-size: 11px; } .objets.bt-grille { gap: 8px; } }

/* ---------- Carte dorée vivante (cible C, 19/11/2026, ux-ecurie ; vue.js : CARTE_DOREE, rarVivante, medaillonCdv, decorCdv, revelerCheval) ----------
   Légendaire et mythique seulement, ÉTEINT par défaut (classes posées par vue.js seulement si CARTE_DOREE est allumée).
   Même identité que la scène du sprint : or #f5b301 / rubis #ff4d6d, #b3123a ; cœur blanc, halo coloré ; jamais de rose.
   Légendaire = or brossé gravé, coins en filigrane, médaillon rond. Mythique = rubis taillé (facettes), fenêtre octogonale sertie d'or,
   griffes, chaton à 12 facettes + couronne : une autre FORME, pas seulement une autre couleur.
   Un reflet passe de temps en temps (--cdv-t, décalé par --cdv-dec) ; arrêté par html.anim-coupee et html.pieces-calmes (eco, 2D). */
:root { --cdv-l1: #2a200b; --cdv-l2: #110c03; --cdv-m1: #2b0711; --cdv-m2: #110106; --cdv-voile: rgba(3, 4, 8, .9);
  --cdv-btn1: #ffe27a; --cdv-btn2: #e0a20c; --cdv-rbtn1: #ff6b84; --cdv-rbtn2: #b3123a; }
body[data-saison="hiver"] { --cdv-l1: #272010; --cdv-l2: #0d0b06; --cdv-m1: #270915; --cdv-m2: #0e0309; --cdv-voile: rgba(2, 6, 14, .9); }
body[data-saison="printemps"] { --cdv-l1: #2a1f0e; --cdv-l2: #120b05; --cdv-m1: #2b0812; --cdv-m2: #120207; --cdv-voile: rgba(8, 3, 10, .9); }
body[data-saison="ete"] { --cdv-l1: #2c220a; --cdv-l2: #120d02; --cdv-m1: #2b0811; --cdv-m2: #120206; --cdv-voile: rgba(8, 6, 1, .9); }
body[data-saison="automne"] { --cdv-l1: #2c1f0b; --cdv-l2: #130b03; --cdv-m1: #2c0710; --cdv-m2: #130205; --cdv-voile: rgba(9, 4, 2, .9); }
.cdv-leg { --cdv-c: #f5b301; --cdv-c2: #a86f00; --cdv-h: rgba(245, 179, 1, .5); }
.cdv-myth { --cdv-c: #ff4d6d; --cdv-c2: #b3123a; --cdv-h: rgba(255, 77, 109, .5); }

/* carte de l'Écurie : le cadre */
.carte.cdv { isolation: isolate; }
.carte.cdv::before { display: none; }                         /* équerres du lot 1 remplacées par les coins gravés */
.carte.cdv.cdv-leg::after { display: none; }                  /* reflet en boucle (3,2 s) du lot 1 remplacé par un reflet de temps en temps */
.carte.cdv .ruban { z-index: 4; }
.carte.cdv > .in { position: relative; z-index: 1; }
.carte.cdv.cdv-leg { padding: 5px;
  background: repeating-linear-gradient(100deg, rgba(255, 255, 255, .13) 0 1px, rgba(60, 35, 0, .10) 1px 2px, transparent 2px 4px),
    linear-gradient(145deg, #fff1b8 0%, #e2a40a 20%, #8a5a00 38%, #f5b301 54%, #fff0b0 66%, #b07800 84%, #f5c842 100%);
  box-shadow: 0 0 0 1px #3d2600, 0 0 14px rgba(245, 179, 1, .3), 0 6px 18px rgba(0, 0, 0, .45); }
.carte.cdv.cdv-myth { padding: 6px; border-radius: 9px; animation: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .4), transparent 26%, transparent 72%, rgba(0, 0, 0, .32)),
    conic-gradient(from 10deg, #e0284a 0 7%, #8e0f2e 0 14%, #c41a3e 0 21%, #6e0820 0 28%, #ff4d6d 0 33%, #b3123a 0 43%, #d81f45 0 50%,
      #6e0820 0 57%, #e0284a 0 64%, #8e0f2e 0 71%, #c41a3e 0 79%, #6e0820 0 86%, #d81f45 0 93%, #9c1033 0);
  box-shadow: 0 0 0 1px #2a0008, 0 0 18px rgba(255, 77, 109, .38), 0 6px 18px rgba(0, 0, 0, .45); }
/* rainure gravée autour de la fenêtre : sombre + filet clair (or) ; filet d'or du sertissage, fenêtre octogonale (rubis) */
.cdv-rainure { position: absolute; z-index: 0; pointer-events: none; }
.cdv-leg > .cdv-rainure { inset: 4px; border-radius: 14px; background: #3d2600; box-shadow: 0 0 0 1px rgba(255, 240, 190, .6); }
.cdv-myth > .cdv-rainure { inset: 5px; background: #f5b301;
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px); }
.carte.cdv.cdv-myth > .in { border-radius: 0;
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px); }
/* fenêtre : matière sombre et chaude, guilloché concentrique derrière le portrait (or) ; rayons de facettes (rubis) */
.carte.cdv.cdv-leg > .in { background: radial-gradient(85% 48% at 50% 33%, rgba(245, 179, 1, .24), transparent 70%),
  repeating-radial-gradient(circle at 50% 33%, rgba(255, 214, 102, .08) 0 1px, transparent 1.6px 6px), linear-gradient(180deg, var(--cdv-l1), var(--cdv-l2)); }
.carte.cdv.cdv-myth > .in { background: radial-gradient(85% 48% at 50% 33%, rgba(255, 77, 109, .26), transparent 70%),
  repeating-conic-gradient(from 0deg at 50% 33%, rgba(255, 77, 109, .08) 0 5deg, transparent 5deg 15deg), linear-gradient(180deg, var(--cdv-m1), var(--cdv-m2)); }
/* coins : filigrane gravé (or), griffes du sertissage (rubis) */
.cdv-coin { position: absolute; z-index: 3; width: 24px; height: 24px; pointer-events: none; background: no-repeat center / contain; }
.cdv-coin.k1 { left: 1px; top: 1px; } .cdv-coin.k2 { right: 1px; top: 1px; transform: scaleX(-1); }
.cdv-coin.k3 { left: 1px; bottom: 1px; transform: scaleY(-1); } .cdv-coin.k4 { right: 1px; bottom: 1px; transform: scale(-1, -1); }
.cdv-leg > .cdv-coin { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke-linecap='round'%3E%3Cpath d='M3.5 22V10Q3.5 3.5 10 3.5H22' stroke='%233d2600' stroke-width='2.8'/%3E%3Cpath d='M3.5 22V10Q3.5 3.5 10 3.5H22' stroke='%23ffe9a6' stroke-width='1.2'/%3E%3Cpath d='M8 19V12Q8 8 12 8H19' stroke='%23f5b301' stroke-width='1'/%3E%3Cpath d='M11.5 15.5Q11.5 11.5 15.5 11.5' stroke='%23fff3c4' stroke-width='.9'/%3E%3C/g%3E%3Cpath d='M5 1.2L8.8 5L5 8.8L1.2 5Z' fill='%23fff3c4' stroke='%235a3a00' stroke-width='.9'/%3E%3C/svg%3E"); }
.cdv-myth > .cdv-coin { width: 22px; height: 22px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23fff1b8'/%3E%3Cstop offset='.5' stop-color='%23f5b301'/%3E%3Cstop offset='1' stop-color='%238a5a00'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M1 1H15Q10 3.5 7.5 7.5Q3.5 10 1 15Z' fill='url(%23g)' stroke='%234a2c00' stroke-width='.9' stroke-linejoin='round'/%3E%3Ccircle cx='5' cy='5' r='1.7' fill='%23fff6d6'/%3E%3C/svg%3E"); }
/* gemme du mythique (lot 1) : rubis taillé serti d'or, jamais rose */
.carte.cdv.cdv-myth::after { width: 14px; height: 14px; margin-left: -7px; bottom: -7px; z-index: 4;
  background: conic-gradient(from 45deg, #ff4d6d 0 25%, #b3123a 0 50%, #6e0820 0 75%, #e0284a 0); border: 2px solid #f5b301; box-shadow: 0 0 0 1px #2a0008, 0 0 10px rgba(255, 77, 109, .8); }
/* textes de la carte */
.carte.cdv .note { background: linear-gradient(180deg, #fff 15%, var(--cdv-c) 70%, var(--cdv-c2)); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.carte.cdv .note small { -webkit-text-fill-color: var(--doux); }
.carte.cdv .nom { text-shadow: 0 0 9px var(--cdv-h); }
.carte.cdv.cdv-leg .rar { color: #ffd75e; background: rgba(245, 179, 1, .14); box-shadow: inset 0 0 0 1px rgba(245, 179, 1, .45); }
.carte.cdv.cdv-myth .rar { color: #ff6b84; background: rgba(255, 77, 109, .14); box-shadow: inset 0 0 0 1px rgba(255, 77, 109, .5); }
/* le reflet qui passe de temps en temps (la bande traverse en ~1 s, puis rien jusqu'au tour suivant) */
.cdv-reflet { position: absolute; inset: 0; z-index: 2; overflow: hidden; border-radius: inherit; pointer-events: none; }
.cdv-reflet::before { content: ""; position: absolute; top: -30%; bottom: -30%; left: -50%; width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255, 247, 214, .07) 30%, rgba(255, 255, 255, .42) 50%, rgba(255, 247, 214, .07) 70%, transparent);
  transform: translateX(0) rotate(18deg); animation: cdv-reflet var(--cdv-t, 9s) cubic-bezier(.45, .05, .25, 1) var(--cdv-dec, 0s) infinite; }
.cdv-myth > .cdv-reflet::before { width: 24%; background: linear-gradient(90deg, transparent, rgba(255, 77, 109, .22) 32%, rgba(255, 255, 255, .6) 50%, rgba(255, 77, 109, .22) 68%, transparent); }
@keyframes cdv-reflet { 0% { transform: translateX(0) rotate(18deg); } 12%, 100% { transform: translateX(520%) rotate(18deg); } }
/* mythique : une étincelle blanche sur la griffe du haut à droite, quand le reflet y arrive */
.cdv-myth > .cdv-reflet::after { content: ""; position: absolute; top: 1px; right: 1px; width: 18px; height: 18px; background: #fff; opacity: 0;
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
  animation: cdv-etincelle var(--cdv-t, 7s) ease-out var(--cdv-dec, 0s) infinite; }
@keyframes cdv-etincelle { 0%, 8% { opacity: 0; transform: scale(0) rotate(0); } 11% { opacity: 1; transform: scale(1.15) rotate(45deg); } 17%, 100% { opacity: 0; transform: scale(0) rotate(90deg); } }

/* portrait (avatarCheval) : médaillon gravé par-dessus ; glint qui fait le tour, étoile sur une facette */
.cdv-port { position: relative; display: inline-block; line-height: 0; }
.cdv-port > .cdv-med { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
.cdv-port::before { content: ""; position: absolute; inset: 6%; border-radius: 50%; pointer-events: none; box-shadow: 0 0 12px 2px var(--cdv-h); }
.cdv-glint { transform-box: view-box; transform-origin: 50% 50%; opacity: 0; animation: cdv-glint var(--cdv-t, 9s) ease-in-out var(--cdv-dec, 0s) infinite; }
@keyframes cdv-glint { 0% { opacity: 0; transform: rotate(-70deg); } 3% { opacity: .95; } 13% { opacity: 0; transform: rotate(190deg); } 100% { opacity: 0; transform: rotate(190deg); } }
.cdv-etoile { transform-box: view-box; transform-origin: 0 0; transform: translate(44px, 26px) scale(0); animation: cdv-etoile var(--cdv-t, 7s) ease-out var(--cdv-dec, 0s) infinite; }
@keyframes cdv-etoile { 0%, 7% { transform: translate(44px, 26px) scale(0) rotate(0); } 10% { transform: translate(44px, 26px) scale(1.1) rotate(45deg); } 16%, 100% { transform: translate(44px, 26px) scale(0) rotate(90deg); } }

/* fiche du cheval : halo (or) ou sceau rubis derrière le portrait, lame d'or / double lame rubis sous la tête, un éclat qui la parcourt */
.fiche-c.cdv-fiche .fiche-tete { position: relative; padding-bottom: 14px; margin-bottom: 10px; }
.cdv-fiche .fiche-tete > * { position: relative; z-index: 1; }
.cdv-fiche .fiche-tete::before { content: ""; position: absolute; z-index: 0; pointer-events: none; }
.cdv-fiche.cdv-leg .fiche-tete::before { left: -14px; top: calc(50% - 7px); width: 112px; height: 112px; margin-top: -56px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 240, 190, .3), rgba(245, 179, 1, .16) 46%, transparent 70%); }
.cdv-fiche.cdv-myth .fiche-tete::before { left: 6px; top: calc(50% - 7px); width: 72px; height: 72px; margin-top: -36px; transform: rotate(45deg);
  border: 1.5px solid rgba(255, 255, 255, .75); background: rgba(40, 0, 12, .55);
  box-shadow: 0 0 0 2px #b3123a, 0 0 20px 3px rgba(255, 77, 109, .45), inset 0 0 14px rgba(179, 18, 58, .7); }
.cdv-fiche .fiche-tete::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 14px; pointer-events: none;
  -webkit-mask: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent); mask: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent); }
.cdv-fiche.cdv-leg .fiche-tete::after { background: radial-gradient(closest-side, #fff, rgba(255, 255, 255, 0)) -80px 50% / 70px 10px no-repeat,
  linear-gradient(#fff, #fff) center / 100% 2px no-repeat, linear-gradient(180deg, transparent, rgba(245, 179, 1, .55) 50%, transparent);
  animation: cdv-lame 9s ease-in-out 1.2s infinite; }
.cdv-fiche.cdv-myth .fiche-tete::after { height: 16px; bottom: -7px;
  background: radial-gradient(closest-side, #fff, rgba(255, 255, 255, 0)) -80px 50% / 70px 12px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 .8L15.2 8L8 15.2L.8 8Z' fill='%23b3123a' stroke='%23f5b301' stroke-width='1.4'/%3E%3Cpath d='M8 .8L15.2 8H.8Z' fill='%23ff4d6d'/%3E%3C/svg%3E") center / 14px 14px no-repeat,
    linear-gradient(#fff, #fff) center 4px / 100% 1.5px no-repeat, linear-gradient(#fff, #fff) center 10.5px / 100% 1.5px no-repeat,
    linear-gradient(180deg, transparent, rgba(255, 77, 109, .55) 50%, transparent);
  animation: cdv-lame 7s ease-in-out 1.2s infinite; }
@keyframes cdv-lame { 0% { background-position: -80px 50%, center, center, center, 0 0; } 14%, 100% { background-position: calc(100% + 80px) 50%, center, center, center, 0 0; } }
.cdv-fiche.cdv-leg .fiche-tete::after { animation-name: cdv-lame-l; }
@keyframes cdv-lame-l { 0% { background-position: -80px 50%, center, 0 0; } 14%, 100% { background-position: calc(100% + 80px) 50%, center, 0 0; } }
.cdv-fiche.cdv-myth .fiche-tete::after { background-position: -80px 50%, center, center 4px, center 10.5px, 0 0; animation-name: cdv-lame-m; }
@keyframes cdv-lame-m { 0% { background-position: -80px 50%, center, center 4px, center 10.5px, 0 0; } 14%, 100% { background-position: calc(100% + 80px) 50%, center, center 4px, center 10.5px, 0 0; } }
.cdv-fiche.cdv-leg .fiche-nom h2 { text-shadow: 0 0 12px rgba(245, 179, 1, .5); }
.cdv-fiche.cdv-myth .fiche-nom h2 { text-shadow: -1px 0 0 rgba(179, 18, 58, .85), 1px 0 0 rgba(255, 77, 109, .6), 0 0 12px rgba(255, 77, 109, .45); }
.cdv-fiche .fiche-note b { background: linear-gradient(180deg, #fff 12%, var(--cdv-c) 65%, var(--cdv-c2)); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }

/* page d'essai (CARTE_DOREE.demo) */
.cdv-demo { margin: 12px 0; }
.cdv-demo-av { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin: 8px 0 12px; }
.cdv-demo-av .tete-cheval { margin: 0; }

/* révélation (revelerCheval) : 1) indice de couleur (météore), 2) montée (lames d'or / sceau rubis, rayons), 3) éclat puis la carte.
   Le style de base = l'écran final : .fini (toucher l'écran, fin du temps) et html.anim-coupee = un éclat fixe derrière la carte. */
.cdv-rev { --t1: 900ms; --t2: 1900ms; position: fixed; inset: 0; z-index: 1; display: flex; justify-content: center; overflow-x: hidden; overflow-y: auto; color: #fff;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); background: var(--fond); animation: fin-fondu .2s both;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.cdv-rev.r-leg { --cdv-c: #f5b301; --cdv-c2: #a86f00; --cdv-h: rgba(245, 179, 1, .5); }
.cdv-rev.r-myth { --t1: 1100ms; --t2: 2300ms; --cdv-c: #ff4d6d; --cdv-c2: #b3123a; --cdv-h: rgba(255, 77, 109, .5); }
.cdv-rev i { position: absolute; display: block; font-style: normal; pointer-events: none; }
.cdv-rev-fond { position: fixed; inset: 0; pointer-events: none; background: var(--cdv-voile); }
.cdv-rev-halo { position: fixed; left: 50%; top: 56%; width: 150vmin; height: 150vmin; margin: -75vmin 0 0 -75vmin; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, .22), var(--cdv-h) 16%, transparent 52%); opacity: .75; animation: cdv-r-halo .6s var(--t2) ease-out both; }
@keyframes cdv-r-halo { from { opacity: 0; transform: scale(.4); } to { opacity: .75; transform: scale(1); } }
.cdv-rev-scene { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.cdv-rev-scene > i { left: 50%; top: 50%; opacity: 0; }
/* 1. suspense : un météore, cœur blanc ; sa lueur prend la couleur (l'indice) */
.cdv-meteore { width: 46vmax; height: 3px; margin: -1.5px 0 0 -23vmax; border-radius: 3px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .4) 40%, #fff);
  box-shadow: 0 0 10px 2px var(--cdv-c), 0 0 26px 6px var(--cdv-c2); --a: 145deg; animation: cdv-r-meteore calc(var(--t1) - 150ms) cubic-bezier(.5, 0, .9, .6) 150ms both; }
.cdv-meteore.m2 { --a: 35deg; animation-delay: 320ms; animation-duration: calc(var(--t1) - 320ms); }
@keyframes cdv-r-meteore { 0% { opacity: 0; transform: rotate(var(--a)) translateX(-70vmax); filter: saturate(0) brightness(1.6); }
  15% { opacity: 1; } 55% { filter: saturate(0) brightness(1.6); } 80% { filter: none; opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateX(-23vmax); filter: none; } }
/* 2. montée : un point de lumière qui bat, les lames (or) ou le sceau (rubis), les rayons */
.cdv-point { width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #fff; box-shadow: 0 0 14px 4px var(--cdv-c), 0 0 40px 12px var(--cdv-c2);
  animation: cdv-r-point calc(var(--t2) - var(--t1) + 120ms) ease-in var(--t1) both; }
@keyframes cdv-r-point { 0% { opacity: 0; transform: scale(.3); } 20% { opacity: 1; transform: scale(1); } 45% { transform: scale(.8); } 70% { transform: scale(1.35); } 85% { transform: scale(.9); } 100% { opacity: 1; transform: scale(2.4); } }
.cdv-lame { width: 92vw; height: 3px; margin: -1.5px 0 0 -46vw; background: linear-gradient(90deg, transparent, #fff 30%, #fff 70%, transparent);
  box-shadow: 0 0 8px 2px var(--cdv-c), 0 0 22px 5px var(--cdv-c2); animation: cdv-r-lame calc(var(--t2) - var(--t1) + 80ms) cubic-bezier(.3, .8, .4, 1) var(--t1) both; }
.cdv-lame.l1 { --y: -54px; } .cdv-lame.l2 { --y: 54px; animation-delay: calc(var(--t1) + 90ms); }
@keyframes cdv-r-lame { 0% { opacity: 1; transform: translateY(var(--y)) skewY(-7deg) scaleX(0); } 40% { transform: translateY(var(--y)) skewY(-7deg) scaleX(1); }
  92% { opacity: 1; transform: translateY(0) skewY(-7deg) scaleX(.5); } 100% { opacity: 0; transform: translateY(0) skewY(-7deg) scaleX(.1); } }
.cdv-sceau { width: 150px; height: 150px; margin: -75px 0 0 -75px; border: 2px solid #fff; background: rgba(18, 0, 6, .6);
  box-shadow: 0 0 0 2px var(--cdv-c2), 0 0 26px 5px var(--cdv-c), inset 0 0 26px 3px var(--cdv-c2);
  animation: cdv-r-sceau calc(var(--t2) - var(--t1) + 80ms) cubic-bezier(.3, 1.3, .4, 1) var(--t1) both; }
.cdv-sceau.s2 { width: 96px; height: 96px; margin: -48px 0 0 -48px; --s: -1; animation-delay: calc(var(--t1) + 160ms); animation-duration: calc(var(--t2) - var(--t1) - 80ms); }
@keyframes cdv-r-sceau { 0% { opacity: 0; transform: rotate(calc(135deg * var(--s, 1))) scale(2.6); } 30% { opacity: 1; transform: rotate(45deg) scale(1); }
  80% { opacity: 1; transform: rotate(calc(45deg + 30deg * var(--s, 1))) scale(.9); } 100% { opacity: 0; transform: rotate(calc(45deg + 45deg * var(--s, 1))) scale(.15); } }
.cdv-rev-scene > .cdv-rayons { width: 130vmax; height: 130vmax; margin: -65vmax 0 0 -65vmax; top: 56%; opacity: .32;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .5) 0 1.2deg, transparent 1.2deg 9deg, var(--cdv-h) 9deg 10.5deg, transparent 10.5deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 0, rgba(0, 0, 0, .6) 18%, transparent 46%); mask: radial-gradient(circle, #000 0, rgba(0, 0, 0, .6) 18%, transparent 46%);
  animation: cdv-r-rayons var(--t2) ease-in both, cdv-r-tourne 40s linear var(--t2) infinite; }
@keyframes cdv-r-rayons { 0%, 45% { opacity: 0; transform: rotate(-40deg) scale(.5); } 100% { opacity: .32; transform: rotate(0) scale(1); } }
@keyframes cdv-r-tourne { to { transform: rotate(360deg); } }
/* 3. éclat : flash blanc, onde, puis la carte et le nom */
.cdv-flash { width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; background: radial-gradient(circle, #fff 0 18%, var(--cdv-c) 36%, var(--cdv-c2) 52%, transparent 70%);
  animation: cdv-r-flash .7s ease-out var(--t2) both; }
@keyframes cdv-r-flash { 0% { opacity: 1; transform: scale(.2); } 30% { opacity: 1; transform: scale(3.2); } 100% { opacity: 0; transform: scale(9); } }
.cdv-onde { width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 14px 3px var(--cdv-c), inset 0 0 12px 2px var(--cdv-c);
  animation: cdv-r-onde .95s cubic-bezier(.1, .7, .3, 1) calc(var(--t2) + 60ms) both; }
@keyframes cdv-r-onde { 0% { opacity: 1; transform: scale(.3); } 100% { opacity: 0; transform: scale(12); } }
.cdv-rev-corps { position: relative; z-index: 1; width: 100%; max-width: 420px; margin: auto 0; text-align: center; }
.cdv-rev-tag { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .42em; text-transform: uppercase; color: var(--cdv-c); text-shadow: 0 0 10px rgba(0, 0, 0, .8);
  animation: cdv-r-tag .5s cubic-bezier(.2, .9, .2, 1) calc(var(--t2) + 80ms) both; }
@keyframes cdv-r-tag { from { opacity: 0; letter-spacing: 1.1em; } to { opacity: 1; letter-spacing: .42em; } }
.cdv-rev-nom { margin: 0; padding: 0 6px; font-size: clamp(26px, 9vw, 44px); font-weight: 900; font-style: italic; line-height: 1.05; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-transform: uppercase; letter-spacing: .01em; text-shadow: 0 1px 0 rgba(0, 0, 0, .6), 0 0 6px var(--cdv-c), 0 0 22px var(--cdv-c); }
.r-leg .cdv-rev-nom { animation: cdv-r-nom-l .55s cubic-bezier(.15, .9, .2, 1) calc(var(--t2) + 60ms) both; }
@keyframes cdv-r-nom-l { 0% { opacity: 0; transform: translateX(45%) skewX(-14deg); } 70% { opacity: 1; transform: translateX(-2%) skewX(-5deg); } 100% { opacity: 1; transform: none; } }
.r-myth .cdv-rev-nom { text-shadow: -2px 0 0 var(--cdv-c2), 2px 0 0 var(--cdv-c), 0 0 8px var(--cdv-c), 0 0 26px var(--cdv-c2); letter-spacing: .03em;
  animation: cdv-r-nom-m .5s cubic-bezier(.2, 1.3, .4, 1) calc(var(--t2) + 40ms) both; }
@keyframes cdv-r-nom-m { 0% { opacity: 0; transform: scale(1.9); letter-spacing: .25em; } 100% { opacity: 1; transform: none; letter-spacing: .03em; } }
.cdv-rev-sous { margin: 6px 0 0; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .78); animation: fin-fondu .4s calc(var(--t2) + 300ms) both; }
.cdv-rev-carte { margin: 16px auto 0; width: 176px; }
body .cdv-rev h2.cdv-rev-nom { color: #fff; }   /* pas la couleur de la saison des h2 */
.cdv-rev .cdv-rev-carte .carte.cdv { pointer-events: none; transform-origin: 50% 40%; animation: cdv-r-carte .6s cubic-bezier(.2, 1.35, .4, 1) calc(var(--t2) + 120ms) both; }
@keyframes cdv-r-carte { 0% { opacity: 0; transform: scale(.55) translateY(24px); } 100% { opacity: 1; transform: none; } }
.cdv-rev-ok { display: block; width: 100%; max-width: 260px; min-height: 48px; margin: 18px auto 0; font-size: 16px;
  animation: fin-fondu .35s calc(var(--t2) + 650ms) both; }
.cdv-rev.r-leg .cdv-rev-ok, body[data-saison] .cdv-rev.r-leg .cdv-rev-ok { background: linear-gradient(180deg, var(--cdv-btn1), var(--cdv-btn2)); color: #1b1300; }
.cdv-rev.r-myth .cdv-rev-ok, body[data-saison] .cdv-rev.r-myth .cdv-rev-ok { background: linear-gradient(180deg, var(--cdv-rbtn1), var(--cdv-rbtn2)); color: #fff; }
@media (max-height: 660px) { .cdv-rev-carte { margin-top: 10px; width: 160px; } .cdv-rev-ok { margin-top: 12px; } }
/* fin : rien ne bouge plus, sauf le reflet de la carte ; l'éclat reste fixe derrière elle */
.cdv-rev.fini, .cdv-rev.fini .cdv-rev-halo, .cdv-rev.fini .cdv-rev-scene > i, .cdv-rev.fini .cdv-rev-tag, .cdv-rev.fini .cdv-rev-nom, .cdv-rev.fini .cdv-rev-sous,
.cdv-rev.fini .cdv-rev-ok, .cdv-rev.fini .cdv-rev-carte .carte.cdv { animation: none; }
.cdv-rev.fini .cdv-rev-scene > .cdv-rayons { animation: cdv-r-tourne 40s linear infinite; }

/* animations réduites et qualité eco / 2D : tout figé (reflets, glint, éclat de la lame) ; la révélation = un éclat fixe (classe .fini posée par vue.js) */
html.anim-coupee .cdv-reflet::before, html.anim-coupee .cdv-reflet::after, html.pieces-calmes .cdv-reflet::before, html.pieces-calmes .cdv-reflet::after,
html.anim-coupee .cdv-glint, html.anim-coupee .cdv-etoile, html.pieces-calmes .cdv-glint, html.pieces-calmes .cdv-etoile,
html.anim-coupee .cdv-fiche .fiche-tete::after, html.pieces-calmes .cdv-fiche .fiche-tete::after { animation: none !important; }
html.anim-coupee .cdv-rev, html.anim-coupee .cdv-rev *, html.anim-coupee .cdv-rev *::before, html.anim-coupee .cdv-rev *::after { animation: none !important; }

/* carte du gagnant (carteGagnantCdv, posée par replay3d.js à la place de la coupe sur la carte de fin du direct) : prolonge le ralenti de victoire */
/* 20/11 : à la taille de l'écran. --g-s = échelle de la carte (176 × ~262 px à 1), choisie par la hauteur (et la largeur) libre ;
   téléphone debout : carte AU-DESSUS du résultat ; écran couché (PC, tablette, téléphone en paysage) : carte À GAUCHE du résultat, en grand.
   La carte de résultat garde toujours ses boutons et son compte à rebours : sa hauteur maxi tient compte de la place prise par la carte. */
.cdv-gagnant { --g-s: .62; --g-h: calc(262px * var(--g-s) + 30px); position: relative; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.cdv-gagnant.r-leg { --cdv-c: #f5b301; --cdv-c2: #a86f00; --cdv-h: rgba(245, 179, 1, .5); }
.cdv-gagnant.r-myth { --cdv-c: #ff4d6d; --cdv-c2: #b3123a; --cdv-h: rgba(255, 77, 109, .5); }
.cdv-gagnant > i { position: absolute; left: 50%; top: 55%; pointer-events: none; }
.cdv-g-halo { --g-d: max(320px, calc(330px * var(--g-s))); width: var(--g-d); height: var(--g-d); margin: calc(var(--g-d) / -2) 0 0 calc(var(--g-d) / -2); border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .22), var(--cdv-h) 18%, transparent 60%); animation: cdv-r-halo .6s ease-out both; }
.cdv-g-rayons { --g-d: max(420px, calc(470px * var(--g-s))); width: var(--g-d); height: var(--g-d); margin: calc(var(--g-d) / -2) 0 0 calc(var(--g-d) / -2); opacity: .3;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .5) 0 1.2deg, transparent 1.2deg 9deg, var(--cdv-h) 9deg 10.5deg, transparent 10.5deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 0, rgba(0, 0, 0, .6) 20%, transparent 50%); mask: radial-gradient(circle, #000 0, rgba(0, 0, 0, .6) 20%, transparent 50%);
  animation: cdv-r-tourne 40s linear infinite; }
/* titre : grandit avec la carte (13 px sur un petit téléphone, 22 px sur un grand PC), deux lames d'or / rubis de chaque côté quand il y a la place */
.cdv-g-tag { position: relative; z-index: 1; display: flex; align-items: center; gap: .55em; margin-bottom: calc(4px + 6px * var(--g-s)); white-space: nowrap;
  font-size: calc(9px + 6px * var(--g-s)); line-height: 1.2; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: var(--cdv-c);
  text-shadow: 0 0 10px var(--cdv-c2), 0 0 2px var(--cdv-c2), 0 1px 0 rgba(0, 0, 0, .8); animation: cdv-g-tag .5s cubic-bezier(.2, .9, .2, 1) .15s both; }
.cdv-g-tag::before, .cdv-g-tag::after { content: ''; display: none; width: calc(14px + 22px * var(--g-s)); height: 2px; border-radius: 2px; box-shadow: 0 0 6px var(--cdv-c); }
.cdv-g-tag::before { margin-right: .3em; background: linear-gradient(90deg, transparent, var(--cdv-c) 70%, #fff); }   /* .3em : l'espace des lettres après le dernier mot */
.cdv-g-tag::after { background: linear-gradient(270deg, transparent, var(--cdv-c) 70%, #fff); }
@media (min-width: 420px) { .cdv-g-tag::before, .cdv-g-tag::after { display: block; } }
@keyframes cdv-g-tag { from { opacity: 0; letter-spacing: .9em; } to { opacity: 1; letter-spacing: .3em; } }
.cdv-g-carte { position: relative; z-index: 1; display: flex; justify-content: center; align-items: flex-start; width: calc(176px * var(--g-s)); height: calc(262px * var(--g-s)); }
.cdv-gagnant .carte.cdv { flex: 0 0 auto; width: 176px; transform: scale(var(--g-s)); transform-origin: 50% 0; animation: cdv-g-carte .55s cubic-bezier(.2, 1.35, .4, 1) both; }
@keyframes cdv-g-carte { from { opacity: 0; transform: scale(calc(var(--g-s) * .5)) translateY(30px); } to { opacity: 1; transform: scale(var(--g-s)); } }
.cdv-gagnant .carte .etat, .cdv-gagnant .carte .ruban { display: none; }   /* fatigue et « en course » : pas ici, c'est la victoire */
/* téléphone debout (ou fenêtre étroite) : au-dessus du résultat, par la hauteur libre (résultat ≈ 260 à 340 px) */
@media (min-height: 600px) { .cdv-gagnant { --g-s: .86; } }
@media (min-height: 700px) { .cdv-gagnant { --g-s: 1; } }
@media (min-height: 790px) { .cdv-gagnant { --g-s: 1.15; } }
@media (min-height: 940px) and (min-width: 420px) { .cdv-gagnant { --g-s: 1.4; } }
.replay .fin-ecran > .cdv-gagnant + .fin-carte { max-height: min(60vh, calc(100% - var(--g-h, 0px) - 10px)); }
/* écran couché assez large (PC, tablette, téléphone en paysage) : la carte à gauche, le résultat à droite ; carte par la hauteur.
   Navigateur sans :has (très ancien) : rien de tout ça, la carte reste au-dessus avec les tailles du téléphone */
@supports selector(:has(*)) {
  @media (orientation: landscape) and (min-width: 640px) {
    .replay .fin-ecran:has(> .cdv-gagnant) { flex-direction: row; gap: clamp(20px, 4vw, 64px); }
    .replay .fin-ecran:has(> .cdv-gagnant) > .fin-carte { flex: 0 1 340px; max-height: calc(100% - 8px); }
    .cdv-gagnant { --g-s: .95; }
  }
  @media (orientation: landscape) and (min-width: 640px) and (min-height: 480px) { .cdv-gagnant { --g-s: 1.3; } }
  @media (orientation: landscape) and (min-width: 760px) and (min-height: 600px) { .cdv-gagnant { --g-s: 1.6; } }
  @media (orientation: landscape) and (min-width: 900px) and (min-height: 760px) { .cdv-gagnant { --g-s: 1.9; } }
  @media (orientation: landscape) and (min-width: 1100px) and (min-height: 960px) { .cdv-gagnant { --g-s: 2.2; } }
}
.cdv-gagnant.fini *, html.anim-coupee .cdv-gagnant * { animation: none !important; }
/* ---------- Lot langues (v20.28) : écran de choix de la langue, texte de la barre du bas, écriture de droite à gauche (arabe) ---------- */
.bas button i.bas-t { font-style: normal; }
.langue-page { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px 16px; }
.langue-page .logo-charge { margin-bottom: 0; }
.langue-globe { font-size: 34px; margin: 0; }
/* v20.40 : 9 langues → la langue du téléphone en grand sur toute la largeur, les 8 autres sur 2 colonnes (tout tient sans défiler) */
.langues-choix { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 360px; }
.langue-btn { font-size: 19px; padding: 12px 8px; min-height: 54px; width: 100%; }
.langue-btn.pre { grid-column: 1 / -1; font-size: 22px; min-height: 62px; }
.langue-btn.pre { box-shadow: 0 0 0 3px var(--or); }
body.choix-langue .haut, body.choix-langue .bas { display: none; }
.langue-page .logo-charge { width: 96px; height: 96px; }
/* arabe (dir="rtl" sur <html>, posé par chargerLangue) : les rangées flex et le texte suivent seuls ; ici, ce qui est placé à la main */
[dir="rtl"] .feuille .fermer { float: left; }
[dir="rtl"] .toasts { right: auto; left: 8px; }
[dir="rtl"] .nonlus { right: auto; left: -6px; }
[dir="rtl"] .bas button[data-badge]:not([data-badge=""])::after { right: auto; left: calc(50% - 22px); }
/* chiffres, montants, heures : toujours de gauche à droite, même au milieu d'une phrase arabe */
[dir="rtl"] .banque, [dir="rtl"] #heure, [dir="rtl"] .pastille { direction: ltr; unicode-bidi: isolate; }
/* ---------- v20.33 : courses ouvertes (demande 333 lot 2, écran A2 : suivi/notes/ux_courses_ouvertes.md) ----------
   anneau = course ouverte (se vide en 5 min) ; plaque horaire = course du programme (fond noir, chiffres ambre) */
:root { --plaque-fond: #05070c; --plaque-txt: #ffb547; --ouv-base: #6b5a2e; --ouv-marche: #f5c542; --ouv-moi: #2ecc71; --ouv-vide: rgba(255, 255, 255, .08); }
.plaque-h { grid-row: 1 / span 2; display: inline-flex; flex-direction: column; align-items: center; justify-self: start; min-width: 56px; padding: 3px 6px; border-radius: 7px;
  background: var(--plaque-fond); color: var(--plaque-txt); font-variant-numeric: tabular-nums; box-shadow: inset 0 0 0 1px rgba(255, 181, 71, .25); }
.plaque-h b { font-size: 15px; line-height: 18px; letter-spacing: .03em; white-space: nowrap; }
.plaque-h small { font-size: 11.5px; line-height: 14px; font-weight: 700; opacity: .85; }
.plaque-h.rouge, .plaque-h.rouge small { color: var(--rouge); }
.ouv-anneau { position: relative; display: inline-grid; place-items: center; width: 62px; height: 62px; flex: none; }
.ouv-anneau svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ouv-anneau circle { fill: none; stroke-width: 3.2; }
.ouv-anneau .fd { stroke: var(--ouv-vide); }
.ouv-anneau .pl { stroke: var(--t, var(--or)); stroke-dasharray: 100.5; stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.ouv-anneau b { position: relative; font-size: 15px; }
.ouv-anneau.mini { width: 44px; height: 44px; }
.ouv-anneau.mini b { font-size: 11.5px; }
.cr .ouv-anneau.mini { grid-row: 1 / span 2; }
.ouv-anneau.rouge .pl { stroke: var(--rouge); } .ouv-anneau.rouge b { color: var(--rouge); animation: ouv-bat 1s infinite; }
@keyframes ouv-bat { 50% { opacity: .45; } }
.point-vif { display: inline-block; width: 8px; height: 8px; margin-left: 5px; border-radius: 50%; background: var(--rouge); animation: ouv-bat 1.2s infinite; }
/* .bloc.ouv-carte : plus fort que .bloc.cr-b (padding 0), sinon « Rejoindre » et « +300 avec toi » touchent le bord (contrôle lot 2) */
.bloc.ouv-carte { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; align-items: center; padding: 10px 12px 10px 10px; border-top-color: color-mix(in srgb, var(--t) 55%, var(--ligne)); border-right-color: color-mix(in srgb, var(--t) 55%, var(--ligne)); border-bottom-color: color-mix(in srgb, var(--t) 55%, var(--ligne)); }
.ouv-tete { display: flex; align-items: center; gap: 12px; background: none; border: 0; padding: 0; text-align: left; min-width: 0; }
.ouv-m { display: flex; flex-direction: column; min-width: 0; }
.ouv-tab { color: var(--t); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.ouv-d { font-size: 19px; line-height: 22px; }
.ouv-m small { color: var(--doux); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ouv-rej { display: flex; flex-direction: column; align-items: center; min-width: 96px; min-height: 48px; justify-content: center; }
.ouv-rej small { font-weight: 600; font-size: 12px; }
.ouv-cag { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding-left: 2px; }
.ouv-alloc { font-size: 16px; color: var(--or); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ouv-barre { flex: 1; position: relative; display: flex; height: 12px; border-radius: 6px; background: var(--ouv-vide); overflow: hidden; }
.ouv-barre::after { content: ''; position: absolute; inset-inline-end: 0; top: -2px; bottom: -2px; width: 3px; background: var(--texte); border-radius: 2px; }
.ouv-barre i { display: block; height: 100%; flex: none; }
.ouv-barre .base { background: var(--ouv-base); }
.ouv-barre .m { background: var(--ouv-marche); box-shadow: inset -1px 0 0 rgba(0, 0, 0, .35); }
.ouv-barre .m.moi { background: repeating-linear-gradient(135deg, var(--ouv-moi) 0 4px, transparent 4px 8px); animation: ouv-bat 1.4s infinite; }
.ouv-alloc i { font-style: normal; font-size: 12px; font-weight: 600; color: var(--doux); }
.ouv-qui { color: var(--doux); font-size: 12px; white-space: nowrap; }
.ouv-qui:empty { display: none; }
/* v20.34 : sous la cagnotte, qui la fait (entraîneurs, chevaux, IA au départ) et ce que j'y ajoute */
.ouv-n { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; margin-top: -4px; padding-left: 2px; font-size: 12px; line-height: 16px; color: var(--doux); }
.ouv-plus { color: var(--vert); font-weight: 700; font-size: 12px; white-space: nowrap; }
#feuille .ouv-n { margin: 4px 0 2px; }
.cr-ouv-n { margin: 0; padding: 0 12px 4px; }   /* 24/11 : sous la ligne d'une course ouverte de « Mes engagements » */
.ouv-lt small.ouv-1er { color: var(--or); font-weight: 700; white-space: nowrap; }
.ecurie-ouv .cr-titre { margin-top: 2px; }
.piles-ouv { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; }
.pile-ouv { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 2px; border-radius: 10px; background: var(--fond2); border: 1px solid var(--ligne); color: inherit; min-height: 62px; }
.pile-ouv b { font-size: 18px; line-height: 20px; }
.pile-ouv small { font-size: 10.5px; color: var(--doux); white-space: nowrap; }
.pile-ouv.p0 { background: var(--dort); border-color: var(--dort-bord); color: var(--dort-txt); }
.pile-ouv.avoine { padding: 4px 2px; }
.pile-ouv.avoine b { font-size: 12.5px; color: var(--or); }
.pile-ouv.avoine .ico-img { width: 26px; height: 26px; }
.pile-ouv.avoine small { white-space: normal; text-align: center; line-height: 1.15; overflow-wrap: anywhere; }   /* 25/11 (après v20.49) : « tu en as 126 » passe à la ligne au lieu de toucher les bords (9 langues) */
.pile-ouv.avoine.allume { border-color: var(--or); box-shadow: 0 0 10px color-mix(in srgb, var(--or) 40%, transparent); }
.cases { display: inline-flex; gap: 2px; }
.cases i { width: 7px; height: 7px; border-radius: 2px; background: var(--ouv-vide); }
.tout-prog { margin: 10px 0; }
.tout-prog > summary { list-style: none; cursor: pointer; padding: 10px 12px; border: 1px dashed var(--ligne); border-radius: 12px; background: var(--fond2); font-weight: 700; }
.tout-prog > summary::-webkit-details-marker { display: none; }
.tout-prog > summary::after { content: '▾'; color: var(--doux); }
.tout-prog[open] > summary::after { content: '▴'; }
.ouv-titre { align-items: center; margin-top: 16px; }
/* 23/11 : 3 sections (Mes engagements | Programme | Courses ouvertes), même titre repliable ; la grille est un sous-titre de « Courses ouvertes » */
.cr-sec { margin-top: 18px; }
.cr-sec .ouv-titre h3 { margin: 0; font-size: 15px; }
.cr-sec > summary + .ouv-titre { margin-top: 4px; }
.ouv-pts { display: inline-flex; align-items: center; gap: 4px; }
.ouv-pt { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--doux); }
.ouv-pt.pris { border-color: transparent; background: var(--t, var(--or)); }
.ouv-pt.t-cp-bronze { --t: var(--t-cp-bronze); } .ouv-pt.t-cp-argent { --t: var(--t-cp-argent); } .ouv-pt.t-cp-or { --t: var(--t-cp-or); } .ouv-pt.t-cp-platine { --t: var(--t-cp-platine); } .ouv-pt.t-cp-diamant { --t: var(--t-cp-diamant); }
.ouv-sab { font-size: 12px; font-weight: 700; color: var(--doux); margin-left: 4px; padding: 1px 6px; border-radius: 99px; background: var(--pill); }
.ouv-grille { display: flex; flex-direction: column; gap: 6px; }
.ouv-ligne { display: grid; grid-template-columns: 76px repeat(3, minmax(0, 1fr)); gap: 6px; align-items: stretch; }
.ouv-entete span { text-align: center; color: var(--doux); font-size: 11px; letter-spacing: -1px; }
.ouv-entete small { display: block; letter-spacing: 0; font-size: 11.5px; }
.ouv-lt { display: flex; flex-direction: column; justify-content: center; font-weight: 700; font-size: 13px; }
.ouv-lt small { color: var(--doux); font-weight: 500; font-size: 11px; }
.ouv-case { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 64px; border-radius: 10px; border: 1.5px dashed var(--ligne); background: none; color: var(--doux); font-size: 13px; }
.ouv-case.t-cp-bronze, .ouv-f-tete.t-cp-bronze { --t: var(--t-cp-bronze); } .ouv-case.t-cp-argent, .ouv-f-tete.t-cp-argent { --t: var(--t-cp-argent); } .ouv-case.t-cp-or, .ouv-f-tete.t-cp-or { --t: var(--t-cp-or); }
.ouv-case.t-cp-platine, .ouv-f-tete.t-cp-platine { --t: var(--t-cp-platine); } .ouv-case.t-cp-diamant, .ouv-f-tete.t-cp-diamant { --t: var(--t-cp-diamant); }
.ouv-case.libre { border-color: color-mix(in srgb, var(--t) 60%, transparent); color: var(--t); }
.ouv-case.libre b { font-size: 22px; line-height: 22px; }
.ouv-case.libre small { color: var(--doux); }
.ouv-case.en { border-style: solid; border-color: var(--t); background: color-mix(in srgb, var(--t) 14%, var(--fond2)); color: var(--texte); box-shadow: 0 0 10px color-mix(in srgb, var(--t) 30%, transparent); }
.ouv-case.en small { font-size: 11px; }
.ouv-case.nul { opacity: .5; }
.ouv-case.dort { background: var(--dort); border-color: var(--dort-bord); font-size: 18px; }
.ouv-case.sab { opacity: .6; font-size: 18px; }
.ouv-case.occ { opacity: .6; font-size: 18px; }
.ouv-case:disabled { opacity: .55; }
.ouv-ok { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; background: var(--vert); color: #fff; font-style: normal; font-weight: 800; font-size: 12px; display: grid; place-items: center; }
.ouv-vides { margin: 6px 0 0; }
.ouv-f-tete { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ouv-f-liste { margin-top: 10px; }
#feuille h2.t-cp-bronze { color: var(--t-cp-bronze); } #feuille h2.t-cp-argent { color: var(--t-cp-argent); } #feuille h2.t-cp-or { color: var(--t-cp-or); } #feuille h2.t-cp-platine { color: var(--t-cp-platine); } #feuille h2.t-cp-diamant { color: var(--t-cp-diamant); }
.mc-ouv { display: block; width: 100%; margin: 0 0 6px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--ligne); background: var(--fond2); color: var(--or); font-weight: 700; text-align: left; }
/* arabe : « 1900 m », « +300 » et le décompte restent de gauche à droite (sinon « m 1900 ») ; le trait du plafond suit la fin de la barre */
[dir="rtl"] .ouv-d, [dir="rtl"] .ouv-entete small, [dir="rtl"] .ouv-plus .nw, [dir="rtl"] .ouv-alloc .nw, [dir="rtl"] .ouv-1er .nw, [dir="rtl"] .plaque-h { direction: ltr; unicode-bidi: isolate; }
@media (max-width: 380px) { .ouv-ligne { grid-template-columns: 64px repeat(3, minmax(0, 1fr)); } .ouv-rej { min-width: 84px; } .piles-ouv { gap: 4px; } }
/* ---------- v20.35 : la fatigue au premier plan (suivi/notes/ux_fatigue.md, décisions de l'utilisateur du 23/11) ----------
   UN repère partout : jauge à 3 zones (.fj, grande ; .fj.mini dans .fm) sur 0 → FATIGUE.PLAFOND, crans à SEUIL et MAX (positions posées en style
   par la vue, lues dans le moteur) ; frais = vert du jeu, malus = ambre (fixe : --or change avec la saison), trop fatigué = violet « dort » de la
   saison. Hachures (.ap) = ce que la course ajoutera. 4 cases légendées (.cases.zX) = courses d'affilée. Aucune animation nouvelle. */
:root { --fat-frais: var(--vert); --fat-malus: #ffad3b; --fat-trop: var(--dort-bord); }
body[data-saison="automne"] { --fat-malus: #ffc93b; }   /* automne : l'ambre tire vers le jaune pour ne pas se confondre avec son --or orange */
.zf { --zc: var(--fat-frais); } .zm { --zc: var(--fat-malus); } .zt { --zc: var(--fat-trop); }
.af { --za: var(--fat-frais); } .am { --za: var(--fat-malus); } .at { --za: var(--fat-trop); }
.fj { position: relative; display: block; height: 12px; border-radius: 6px; background: rgba(0, 0, 0, .35); overflow: hidden; }
.fj i { position: absolute; top: 0; bottom: 0; }
.fj .z { opacity: .22; }
.fj .z.frais { background: var(--fat-frais); } .fj .z.malus { background: var(--fat-malus); } .fj .z.trop { background: var(--fat-trop); }
/* remplissage découpé par zone : on lit d'un coup « combien dans le malus » */
.fj .pl { left: 0; right: 0; border-radius: 6px; clip-path: inset(0 calc(100% - var(--p)) 0 0 round 6px);
  background: linear-gradient(90deg, var(--fat-frais) 0 var(--s), var(--fat-malus) var(--s) var(--m), var(--fat-trop) var(--m)); }
[dir="rtl"] .fj .pl { clip-path: inset(0 0 0 calc(100% - var(--p)) round 6px); background: linear-gradient(270deg, var(--fat-frais) 0 var(--s), var(--fat-malus) var(--s) var(--m), var(--fat-trop) var(--m)); }
.fj .ap { background: repeating-linear-gradient(135deg, var(--za) 0 4px, transparent 4px 7px); opacity: .9; }
.fj .cn { top: -1px; bottom: -1px; width: 2px; background: var(--fond); }
.fj-ech { position: relative; height: 15px; font-size: 10.5px; color: var(--doux); margin-top: 2px; font-variant-numeric: tabular-nums; }
.fj-ech span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
[dir="rtl"] .fj-ech span { transform: translateX(50%); }
.fj-zones { display: grid; font-size: 11px; margin-top: 1px; text-align: center; }
.fj-zones span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.fj-zones .frais { color: var(--fat-frais); } .fj-zones .malus { color: var(--fat-malus); } .fj-zones .trop { color: var(--fat-trop); }
/* mini : chiffre + petite jauge (+ → après) + mot ; le chiffre porte la couleur de la zone */
.fm { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; white-space: nowrap; font-variant-numeric: tabular-nums; vertical-align: middle; }
.fm > b { color: var(--zc); font-size: 14px; min-width: 2ch; text-align: end; }
.fm b.zf, .fm b.zm, .fm b.zt { color: var(--zc); }
.fj.mini { width: 44px; height: 7px; border-radius: 4px; flex: none; }
.fj.mini .pl { border-radius: 4px; }
.fl.m { color: var(--fat-malus); font-weight: 700; } .fl.t { color: var(--fat-trop); font-weight: 700; }
.fleche { color: var(--doux); }
[dir="rtl"] .fleche { display: inline-block; transform: scaleX(-1); }
[dir="rtl"] .fm > b, [dir="rtl"] .fm .nw b, [dir="rtl"] .bf-val { unicode-bidi: isolate; }
/* les 4 cases légendées : couleur de la zone ; .va = la course qui va être prise (hachurée) */
.cases.zf i.on, .cases.zm i.on, .cases.zt i.on { background: var(--zc); }
.cases i.va { background: repeating-linear-gradient(135deg, var(--fat-frais) 0 2px, transparent 2px 4px); outline: 1px solid var(--ouv-vide); }
.cases.zm i.va, .cases.zt i.va { background: repeating-linear-gradient(135deg, var(--zc) 0 2px, transparent 2px 4px); }
/* ligne de fatigue d'un cheval dans une liste (fenêtres Ouvrir / Rejoindre, course du programme, pile) */
.fat-l { margin-top: 3px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 12.5px; line-height: 18px; }
.fat-l .fj.mini { width: 72px; height: 9px; }
.fat-l .apres { color: var(--doux); white-space: nowrap; }
.fat-l2 > span + span::before { content: '·'; margin: 0 6px; color: var(--doux); font-weight: 400; }
.fat-l2 { display: inline; } div.fat-l2 { display: block; margin-top: 1px; }
.cr-ch > .fat-plein { grid-column: 2 / -1; grid-row: 2; min-width: 0; }
.cr-ch > .fat-plein ~ .cr-x { grid-row: 3; }
.cr-ch > .fat-plein .fat-l { margin-top: 1px; }
.btn.av-mini { display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px; font-size: 13px; min-height: 40px; white-space: nowrap; }
.btn.av-mini .ico-img { width: 20px; height: 20px; }
.btn.av-mini small { font-weight: 600; font-size: 11.5px; }
.cr-ch > .av-mini { grid-column: 3 / -1; grid-row: 1; justify-self: end; }
.td-fat .fm { font-size: 11.5px; } .td-fat .fm > b { font-size: 12.5px; }
/* fiche : le bandeau de fatigue, toujours là (remplace le bloc « trop fatigué ») */
.fiche-chips.deux { grid-template-columns: repeat(2, 1fr); }
.bandeau-fat { border-radius: 14px; padding: 11px 12px 4px; background: var(--fondi); border: 1px solid var(--ligne); display: flex; flex-direction: column; gap: 9px; margin: 0 0 6px; }
.bandeau-fat.las { background: linear-gradient(160deg, var(--dort2), var(--dort)); border-color: var(--dort-bord); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.bf-tete { display: flex; align-items: baseline; gap: 8px; }
.bf-tete .t { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--doux); font-weight: 700; }
.bf-tete .esp { flex: 1; }
.bf-val { font-size: 30px; font-weight: 800; line-height: 1; color: var(--zc); font-variant-numeric: tabular-nums; }
.bf-etat { font-size: 13px; font-weight: 700; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--zc); color: var(--zc); white-space: nowrap; }
.bf-faits { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.bf-faits > div { background: rgba(0, 0, 0, .22); border-radius: 10px; padding: 6px 9px; min-width: 0; }
.bf-faits small { display: block; font-size: 11.5px; color: var(--doux); }
.bf-faits b { font-size: 15px; font-variant-numeric: tabular-nums; }
.bf-faits .cases { margin-inline-start: 6px; vertical-align: middle; }
.bf-faits .cases i { width: 8px; height: 8px; }
.btn.bf-avoine { display: flex; align-items: center; gap: 10px; text-align: start; width: 100%; padding: 8px 12px; min-height: 52px; }
.btn.bf-avoine .ico-img { width: 30px; height: 30px; flex: none; }
.btn.bf-avoine .esp { flex: 1; min-width: 0; } .btn.bf-avoine b { display: block; font-size: 15px; } .btn.bf-avoine small { display: block; font-weight: 500; font-size: 12.5px; opacity: .85; }
.bf-pret { display: flex; align-items: baseline; gap: 4px 10px; flex-wrap: wrap; }
.bf-pret .compte { font-size: 32px; font-weight: 800; line-height: 1; color: var(--dort-txt); font-variant-numeric: tabular-nums; }
.bandeau-fat.las .sous { color: var(--dort-txt); }
.bandeau-fat.las .btn.repos-douche { background: rgba(0, 0, 0, .22); border: 1px solid var(--dort-bord); color: var(--texte); }
.bandeau-fat.las .btn.repos-douche:disabled { opacity: .5; filter: grayscale(1); }
.bf-aide .aide-bulle { min-height: 40px; font-size: 12.5px; }   /* v20.69 : bulle ⓘ (avant : pli) */
/* cartes de l'écurie : même jauge, dessous le mot et l'heure */
.carte .etat .fj { height: 7px; margin-top: 3px; }
.carte .etat .fat-v { color: var(--zc); }
.carte .etat .fat-c { margin-top: 2px; line-height: 1.3; }
/* piles « Mon écurie » : la phrase, « N courses », 🐎 après le nombre de chevaux ; touchée = la fenêtre de la pile */
.piles-leg { margin: -4px 0 6px; font-size: 12px; }
.pile-ouv { font: inherit; cursor: pointer; }
.pile-ouv:disabled { cursor: default; opacity: .55; }
.pile-ouv .pl-c { font-size: 10.5px; color: var(--doux); line-height: 1.15; text-align: center; }
.pile-ouv.p0 .pl-c, .pile-ouv.p0 small { color: var(--dort-txt); }
.pile-ouv .pl-n small { font-size: 10px; font-weight: 600; color: var(--doux); }
.pile-titre { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pile-titre .cases i { width: 10px; height: 10px; }
.pile-tout { margin: 4px 0 8px; }
.choix.pile-ch { align-items: center; }
.choix.pile-ch > .esp { flex: 1; min-width: 0; }
.choix.pile-ch b.lien { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* boutons des tableaux d'une pile : le texte sur sa ligne, les 2 boutons côte à côte dessous (même largeur) */
.pile-tabs { gap: 4px 6px; margin-top: 5px; }
.pile-tabs > .apres { flex-basis: 100%; }
.pile-tabs > .pile-tab { flex: 1 1 0; min-width: 0; padding: 5px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 24/11 : le bouton engage d'un toucher ; 2 lignes (tableau, puis distance · prix) pour que le prix tienne sur un petit écran */
.pile-tabs > .pile-tab { display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.pile-tabs > .pile-tab > span, .pile-tabs > .pile-tab > small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
/* bien adapté : ✓ vert ; mal adapté : l'écart en orange (mêmes couleurs que .adapt de la fenêtre de la course) */
.pile-tab .pt-ok { font-style: normal; color: var(--vert); }
.pile-tab .pt-mal { color: #ffcf8a; font-weight: 700; }
/* v20.35 : décomptes à chiffres fixes (les secondes battent sans faire sauter la ligne) */
.compte { font-variant-numeric: tabular-nums; }
/* v20.35 : les engagés en un toucher (courses ouvertes : sous la cagnotte ; programme : bulle « 👥 n partants ») */
.ouv-engages { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 0; max-width: 100%; min-height: 40px; padding: 3px 0; background: none; border: 0; color: var(--doux); font: inherit; font-size: 12px; line-height: 16px; text-align: start; cursor: pointer; }
.ouv-engages .eng-noms { color: var(--texte); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.ouv-engages .eng-noms b { color: var(--or); }
.cr-bulles .cr-eng-b { font: inherit; font-size: 12px; font-weight: 700; padding: 3px 9px; min-height: 32px; border-radius: 99px; border: 1px solid var(--or); background: var(--fond2); color: var(--or); cursor: pointer; }
.eng-g { margin-top: 10px; }
.eng-e { font-weight: 700; font-size: 14px; padding: 4px 0; }
.choix.eng-c { margin-top: 4px; padding: 6px 8px; min-height: 44px; }
.choix.eng-c .esp { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* v20.35 : grille « Ouvrir une course » : les adaptés à la distance en avant (point vert), les admis dessous ; la meilleure case a un liseré */
.ouv-case.libre small.ouv-ad { color: var(--fat-malus); font-weight: 700; font-size: 11.5px; line-height: 14px; white-space: nowrap; }
.ouv-case.libre small.ouv-ad.ok { color: var(--vert); }
.ouv-case.libre small.ouv-adm { font-size: 10.5px; line-height: 13px; opacity: .85; white-space: nowrap; }
.ouv-case.libre.top { border-style: solid; border-width: 2px; border-color: var(--vert); box-shadow: 0 0 8px color-mix(in srgb, var(--vert) 35%, transparent); }
@media (max-width: 380px) { .ouv-case.libre small.ouv-ad { font-size: 10.5px; } .ouv-case.libre small.ouv-adm { font-size: 10px; } }

/* ---------- Registre 365 (v20.51) : Noël 2026. Palette FIXE dans les 4 saisons (variables) : rouge velours, vert sapin, or, blanc neige.
   Plaque sucre d'orge (p-noel), ensemble complet (p-noel-ens), avatars (neige, lueurs, ampoules), calendrier de l'Avent (.av-*). ---------- */
:root { --noel-rouge: #b3122e; --noel-sapin: #0f5132; --noel-or: #e8b84a; --noel-neige: #f4f7fb; --noel-nuit: #0a1733; --noel-nuit2: #14306a;
  /* v20.55 : plus aucune couleur écrite en dur dans le bloc de Noël */
  --noel-velours: #3a0712; --noel-sapin-clair: #1c7a46; --noel-sapin-fonce: #0b3a24; --noel-bronze: #8a5a0c; --noel-creme: #fff2b0; --noel-brun: #3a2400;
  --noel-croix-fond: rgba(0, 0, 0, .5); --noel-croix: #fff; }
.p-noel { position: relative; border-color: transparent; color: var(--noel-neige);
  background: linear-gradient(var(--noel-velours), var(--noel-velours)) padding-box, repeating-linear-gradient(135deg, var(--noel-rouge) 0 6px, var(--noel-neige) 6px 12px) border-box;
  background-size: 100% 100%, 34px 34px; }
/* un peu de neige posée sur le haut */
.p-noel::before { content: ''; position: absolute; left: 3px; right: 3px; top: -3px; height: 5px; border-radius: 4px 4px 3px 3px; background: var(--noel-neige); opacity: .92;
  -webkit-mask: radial-gradient(circle at 10% 100%, #000 3px, transparent 3.5px) 0 0 / 12px 6px repeat-x, linear-gradient(#000, #000) 0 0 / 100% 3px no-repeat;
          mask: radial-gradient(circle at 10% 100%, #000 3px, transparent 3.5px) 0 0 / 12px 6px repeat-x, linear-gradient(#000, #000) 0 0 / 100% 3px no-repeat; pointer-events: none; }
.plaque.pl-mini.p-noel::before { display: none; }
.plaque.p-anim.p-noel { animation: pl-sucre 2.4s linear infinite; }
@keyframes pl-sucre { from { background-position: 0 0, 0 0; } to { background-position: 0 0, 34px 0; } }
/* ensemble « Nuit de Noël » complet : la plaque brille (lueur dorée et petits éclats de neige) */
.plaque.p-noel-ens { box-shadow: 0 0 6px color-mix(in srgb, var(--noel-or) 55%, transparent), 0 0 1px var(--noel-neige); }
.plaque.p-noel-ens::after { content: '❄'; margin-left: 4px; color: var(--noel-neige); font-size: .85em; }
.plaque.pl-mini.p-noel-ens::after { display: none; }
/* avatars (av-anime seulement) : flocons qui tombent, lumières floues qui respirent, ampoules de la couronne de houx une à une */
.av-anime .av-neige { animation: av-confetti 7s linear infinite; }
.av-anime .av-lueur { animation: av-respire 3.6s ease-in-out infinite; }
.av-anime .av-ampoule { animation: av-ampoule 4s steps(1) infinite; }
@keyframes av-ampoule { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* calendrier de l'Avent : plein écran (.lvl.pres), accent or */
.av-pres { --pc: var(--noel-or); align-items: flex-start; padding-top: 0; }
.av-pres .lvl-corps { margin: 0; text-align: left; padding-bottom: 8px; }
/* v20.55 : la croix part avec le haut de l'écran (absolute dans .lvl qui défile) : fixe, elle recouvrait le texte en défilant ;
   en bas, le bouton « Fermer » (.tm-fin) et le Retour d'Android ferment */
.av-pres .tm-x { position: absolute; top: max(10px, env(safe-area-inset-top)); right: 12px; z-index: 3; float: none; width: 44px; height: 44px; border-radius: 50%; background: var(--noel-croix-fond); color: var(--noel-croix); font-size: 18px; }
.av-pres .tm-sur { margin: 14px 48px 0; color: var(--noel-or); }
/* le sapin : l'image SpriteCook en fond, 24 paquets posés en rangs (étoile 24 en haut, 1 à 3 au pied) ; sans image : sapin dessiné en dégradé */
.av-sapin { position: relative; margin: 10px -16px 0; padding: 14px 8px 12px; overflow: hidden; border-radius: 0 0 22px 22px;
  background: radial-gradient(ellipse at 50% 100%, var(--noel-nuit2) 0, var(--noel-nuit) 70%); }
.av-sapin::before { content: ''; position: absolute; left: 50%; top: 34px; width: 92%; max-width: 380px; height: 76%; transform: translateX(-50%);
  background: linear-gradient(180deg, var(--noel-sapin-clair), var(--noel-sapin)); clip-path: polygon(50% 0, 100% 100%, 0 100%); opacity: .85; }
.av-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.av-sapin:has(.av-img)::before { display: none; }
.av-rang { position: relative; display: flex; justify-content: center; gap: 6px; margin: 4px 0; }
.av-rang.av-pied { margin-top: 12px; gap: 14px; }
.av-pq { position: relative; width: 44px; height: 44px; padding: 0; border-radius: 9px; border: 2px solid rgba(0, 0, 0, .35); color: var(--noel-neige); font-weight: 800;
  background: var(--noel-rouge); box-shadow: 0 3px 6px rgba(0, 0, 0, .45); display: flex; align-items: center; justify-content: center; }
.av-pq.c-v { background: var(--noel-sapin); }
.av-pq.c-o { background: var(--noel-bronze); }
/* ruban en croix */
.av-pq::before, .av-pq::after { content: ''; position: absolute; background: var(--noel-or); opacity: .9; pointer-events: none; }
.av-pq::before { left: 50%; top: 0; bottom: 0; width: 5px; transform: translateX(-50%); }
.av-pq::after { top: 50%; left: 0; right: 0; height: 5px; transform: translateY(-50%); }
.av-pq.c-o::before, .av-pq.c-o::after { background: var(--noel-neige); }
.av-pq-n { position: relative; z-index: 1; font-size: 15px; text-shadow: 0 1px 3px rgba(0, 0, 0, .9); }
.av-pq-ico { position: absolute; z-index: 1; right: -6px; bottom: -6px; font-size: 16px; line-height: 1; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .8)); }
.av-pq.piece { border-color: var(--noel-or); }
.av-pq.etoile { width: 54px; height: 54px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, var(--noel-creme), var(--noel-or) 55%, var(--noel-bronze)); color: var(--noel-brun); border-color: var(--noel-creme); }
.av-pq.etoile .av-pq-n { text-shadow: none; font-size: 17px; }
.av-pq.etoile::before, .av-pq.etoile::after { display: none; }
.av-pq.ouvert { opacity: .55; filter: saturate(.6); }
.av-pq.rate { opacity: .35; filter: grayscale(1); }
.av-pq.verrou { filter: brightness(.75); }
.av-pq.jour { outline: 2px solid var(--noel-neige); outline-offset: 2px; }
.av-pq.pret { animation: av-bouge 1.1s ease-in-out infinite; box-shadow: 0 0 12px color-mix(in srgb, var(--noel-or) 85%, transparent), 0 3px 6px rgba(0, 0, 0, .45); }
@keyframes av-bouge { 0%, 100% { transform: rotate(0) scale(1); } 20% { transform: rotate(-9deg) scale(1.08); } 40% { transform: rotate(8deg) scale(1.08); } 60% { transform: rotate(-4deg) scale(1.03); } 80% { transform: rotate(0) scale(1); } }
@media (max-width: 360px) { .av-pq { width: 40px; height: 40px; } .av-rang { gap: 4px; } }
.av-heros { margin: 12px 0 0; padding: 12px 14px; border-radius: 16px; text-align: center; border: 1px solid var(--noel-or); background: var(--carte);
  display: flex; flex-direction: column; gap: 6px; align-items: center; }
.av-heros b { font-size: 17px; color: var(--or); }
.av-heros .av-ouvrir { min-width: 160px; }
.av-heros .av-cond { color: var(--doux); font-size: 13.5px; }
.av-porter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.av-info { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--carte); text-align: center; }
/* registre 379 : carte « Le 24 décembre » (aperçu du skin de Noël, image d'illustration + essai 3D) */
.av-skin { display: flex; gap: 12px; align-items: center; margin: 12px 0 0; padding: 10px; border-radius: 16px; background: var(--carte); border: 1px solid var(--noel-or); }
.av-skin-img { width: 42%; max-width: 180px; aspect-ratio: 1; object-fit: cover; border-radius: 12px; flex: none; }
.av-skin-txt { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; font-size: 13.5px; line-height: 1.35; }
.av-skin-txt b { font-size: 16px; color: var(--or); }
.av-skin-txt small { font-size: 11.5px; font-style: italic; }
/* v20.63 : la jauge du cheval légendaire est dans la carte (ancienne carte .av-leg fusionnée) */
.av-skin-leg { display: block; width: 100%; }
.av-skin-leg .n { font-weight: 800; font-size: 13px; color: var(--texte); font-variant-numeric: tabular-nums; }
.av-skin-txt b.av-skin-ok { font-size: 13.5px; color: var(--vert); }
.av-jauge { display: block; height: 7px; margin-top: 4px; border-radius: 4px; background: var(--fondi); overflow: hidden; }
.av-jauge i { display: block; height: 100%; background: linear-gradient(90deg, var(--noel-rouge), var(--noel-or)); }
/* v20.63 : le titre ne passe plus sous le ✕ (44 px + 12 px du bord) */
.av-pres .tm-titre { margin: 2px 50px 0; font-size: clamp(21px, 6.4vw, 27px); }
/* v20.63 : « Programme du mois » (maquette maquette_avent_programme.html) : pli <details> fermé par défaut (U.plis.aventProg) */
.av-prog { margin: 12px 0 0; }
.av-prog > summary { list-style: none; cursor: pointer; min-height: 56px; }
.av-prog > summary::-webkit-details-marker { display: none; }
.av-prog[open] { border-color: var(--noel-or); }
.av-prog[open] .pli-fleche { transform: rotate(90deg); color: var(--noel-or); }
.av-prog .pg-l1 { display: flex; align-items: baseline; gap: 8px; }
.av-prog .pg-l1 b { font-size: 14.5px; }
.av-prog[open] .pg-l1 b { color: var(--noel-or); }
.av-prog .pg-l1 .n { margin-left: auto; color: var(--noel-or); font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.av-prog .pli-tete .sous { font-size: 12px; }
.pg-barre { display: block; height: 4px; margin: 3px 0 0; border-radius: 2px; background: var(--fondi); overflow: hidden; }
.pg-barre i { display: block; height: 100%; background: linear-gradient(90deg, var(--noel-rouge), var(--noel-or)); }
.pg-corps { padding: 2px 8px 10px; }
.pg-grille { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
/* une vignette (bouton) : numéro en haut à gauche, ce que donne la case au milieu */
.pgc { position: relative; height: 58px; min-width: 0; padding: 0; border-radius: 10px; border: 1px solid var(--ligne); background: var(--carte); color: var(--texte);
  display: flex; align-items: center; justify-content: center; }
.pgc-n { position: absolute; top: 2px; left: 5px; font-size: 10.5px; font-weight: 800; color: var(--doux); font-variant-numeric: tabular-nums; line-height: 1.2; }
.pgc-i { width: 30px; height: 30px; object-fit: contain; margin-top: 4px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
.pgc-i.emo, .pgc-di.emo { display: grid; place-items: center; font-size: 22px; line-height: 1; }
.pgc-i.pc { width: 40px; height: 34px; margin-top: 8px; }
.pgc-i.pc.large { width: calc(100% - 4px); height: 36px; margin-top: 10px; }
.pgc-q { position: absolute; bottom: 1px; left: 0; right: 0; text-align: center; font-size: 10px; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums;
  color: var(--texte); text-shadow: 0 1px 2px rgba(0, 0, 0, .9); }
.pgc.q .pgc-i { margin-top: -4px; }
.pgc.piece { border-color: color-mix(in srgb, var(--noel-or) 75%, transparent); background: color-mix(in srgb, var(--noel-or) 10%, var(--carte)); }
.pgc-b { position: absolute; right: 2px; bottom: 2px; width: 17px; height: 17px; border-radius: 50%; background: var(--fondi); border: 1px solid var(--ligne);
  display: flex; align-items: center; justify-content: center; }
.pgc-b img { width: 13px; height: 13px; object-fit: contain; }
.pgc-duo { position: relative; width: 36px; height: 32px; margin-top: 4px; }
.pgc-di { position: absolute; width: 25px; height: 25px; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); }
.pgc-di:first-child { left: 0; top: 0; } .pgc-di:last-child { right: 0; bottom: 0; }
/* ouverte : effacée + coche verte ; ratée : pointillés rouges + croix ; aujourd'hui : cadre neige ; 24 : dorée + cheval givré */
.pgc.ouvert { background: var(--fondi); }
.pgc.ouvert .pgc-i, .pgc.ouvert .pgc-duo, .pgc.ouvert .pgc-q { opacity: .6; }
.pgc-k { position: absolute; top: -4px; right: -3px; width: 17px; height: 17px; border-radius: 50%; font-size: 11px; font-weight: 900; line-height: 17px; text-align: center;
  background: var(--vert); color: var(--noel-sapin-fonce); box-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.pgc.rate { background: transparent; border-style: dashed; border-color: color-mix(in srgb, var(--rouge) 55%, var(--ligne)); }
.pgc.rate .pgc-i, .pgc.rate .pgc-q, .pgc.rate .pgc-duo { filter: grayscale(1); opacity: .3; }
.pgc.rate .pgc-n { text-decoration: line-through; color: var(--rouge); }
.pgc.rate .pgc-k { background: var(--noel-rouge); color: var(--noel-neige); }
.pgc.jour { border: 2px solid var(--noel-neige); box-shadow: 0 0 0 2px color-mix(in srgb, var(--noel-neige) 25%, transparent), 0 0 14px color-mix(in srgb, var(--noel-neige) 45%, transparent);
  animation: pg-bat 1.6s ease-in-out infinite; }
.pgc.jour .pgc-n { top: -7px; left: 50%; transform: translateX(-50%); padding: 0 6px; border-radius: 8px; background: var(--noel-neige); color: var(--noel-nuit); font-size: 10px; }
@keyframes pg-bat { 50% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--noel-neige) 35%, transparent), 0 0 20px color-mix(in srgb, var(--noel-neige) 60%, transparent); } }
.pgc.pret { border-color: var(--noel-or); box-shadow: 0 0 10px color-mix(in srgb, var(--noel-or) 70%, transparent); }
.pgc.der { border: 1px solid var(--noel-creme); background: radial-gradient(circle at 40% 30%, var(--noel-creme), var(--noel-or) 55%, var(--noel-bronze)); }
.pgc.der .pgc-n { color: var(--noel-brun); }
.pgc-leg, .pop-leg { border-radius: 50%; border: 2px solid var(--noel-creme); background: var(--noel-nuit) url(img/avent_skin_noel.jpg) 13% 22% / 300% no-repeat; }
.pgc-leg { position: absolute; right: -3px; bottom: -3px; width: 22px; height: 22px; box-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.pgc.pop-ancre { outline: 2px solid var(--or); outline-offset: 2px; }
.pg-leg { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 8px 0 0; font-size: 11.5px; color: var(--doux); }
.pg-leg span { display: inline-flex; align-items: center; gap: 4px; }
.pg-leg i { display: inline-block; width: 14px; height: 14px; border-radius: 50%; font-style: normal; font-size: 9px; font-weight: 900; line-height: 14px; text-align: center; }
.pg-leg .k { background: var(--vert); color: var(--noel-sapin-fonce); }
.pg-leg .x { background: var(--noel-rouge); color: var(--noel-neige); }
.pg-leg .j { border-radius: 4px; border: 2px solid var(--noel-neige); }
.pg-leg .p { border-radius: 4px; border: 2px solid var(--noel-or); }
/* bulle d'une vignette (montrerPop) */
.popmot .pop-tete { display: flex; gap: 10px; align-items: center; }
.popmot .pop-tete > .pop-img { width: 52px; height: 52px; object-fit: contain; flex: none; }
.popmot .pop-img.emo { display: grid; place-items: center; font-size: 36px; }
.popmot .pop-tete .esp > b { margin-bottom: 0; }
.popmot .pop-leg { width: 44px; height: 44px; flex: none; }
.popmot .pop-txt { margin: 6px 0 0; font-size: 13px; }
.popmot .pop-plus { margin-top: 6px; font-size: 13px; font-weight: 700; }
.popmot .pop-bts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.popmot .pop-piece { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; }
.popmot .pop-pi { width: 36px; height: 36px; object-fit: contain; flex: none; }
.popmot .pop-pi.emo { display: grid; place-items: center; font-size: 26px; }
.av-pres.reduit .pgc.jour, html.anim-coupee .pgc.jour { animation: none; }
/* bandeau de l'Écurie et bouton de l'onglet Saison */
.av-bandeau { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 10px; padding: 10px 12px; border-radius: 14px; text-align: left; font-size: 20px;
  color: var(--noel-neige); border: 1px solid var(--noel-or); background: linear-gradient(110deg, var(--noel-sapin), var(--noel-sapin-fonce) 60%, var(--noel-rouge)); }
.av-bandeau b { display: block; font-size: 14.5px; }
.av-bandeau small { display: block; font-size: 12.5px; opacity: .92; }
.av-bandeau.pret { animation: av-lueur-b 2s ease-in-out infinite; }
@keyframes av-lueur-b { 0%, 100% { box-shadow: 0 0 0 transparent; } 50% { box-shadow: 0 0 14px color-mix(in srgb, var(--noel-or) 80%, transparent); } }
.av-pres.reduit *, html.anim-coupee .av-pres *, html.anim-coupee .av-bandeau { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .av-pq.pret, .av-bandeau.pret { animation: none; } }
/* ---------- v20.52 : le jeu plus vivant (vue.js › « le jeu plus vivant ») ----------
   Seulement transform / opacity, aucune boucle permanente hors écran de chargement et décor de saison (arrêtés page cachée).
   html.anim-coupee (« Animations réduites » ou prefers-reduced-motion) coupe tout ce qui est nouveau ici. */
/* joueur chargé (html.tirer-jeu, posé par rendre) : le tirer pour actualiser du jeu remplace celui du navigateur (qui rechargeait toute la page) ;
   sans joueur (connexion, données introuvables), celui du navigateur reste */
html.tirer-jeu, html.tirer-jeu body { overscroll-behavior-y: none; }
/* écran de chargement (scène, barre à étapes réelles : etapeCharge) : v20.66, tout dans le <style> d'index.html */
.actions.centre { justify-content: center; }   /* bouton « Réessayer » de l'écran « données introuvables » */
/* changement d'onglet : l'écran entre du côté de l'onglet choisi, blocs en cascade, barres qui se remplissent (vivreOnglet) */
/* 25/11 : ce sont les blocs de l'écran qui glissent, jamais #main lui-même, et #main est rogné de côté (overflow-x: clip, qui garde
   les en-têtes collants) : un #main décalé de 28 px dépassait l'écran, Chrome agrandissait alors la page (innerHeight 704 → 754) et
   la barre du bas fixe descendait de 50 px : un 2e toucher rapide sur la barre ouvrait ce qui était dessous (lot des enchères). */
#main.entre-d, #main.entre-g, #main.glisse-doigt { overflow-x: clip; }
#main.entre-d > * { animation: entre-d .22s ease-out; }
#main.entre-g > * { animation: entre-g .22s ease-out; }
#main.glisse-doigt > * { transform: translateX(var(--gx, 0px)); }
#main.glisse-sortie > * { transition: transform .13s ease-out; }
#main.glisse-sortie { transition: opacity .13s ease-out; }
@keyframes entre-d { from { transform: translateX(28px); opacity: .35; } }
@keyframes entre-g { from { transform: translateX(-28px); opacity: .35; } }
#main.onglet-neuf .casc { animation: casc .26s ease-out both; animation-delay: calc(var(--i, 0) * 35ms + 40ms); }
@keyframes casc { from { transform: translateY(10px); opacity: 0; } }
#main.onglet-neuf .casc :is(.fj .pl, .jauge > i, .ch-jauge > i, .jet-barre > i, .cp-prog > i, .tm-jauge > i, .av-jauge > i, .cp-h-barre > i) { animation: barre-remplit .6s .12s ease-out both; transform-origin: left; }
[dir="rtl"] #main.onglet-neuf .casc :is(.fj .pl, .jauge > i, .ch-jauge > i, .jet-barre > i, .cp-prog > i, .tm-jauge > i, .av-jauge > i, .cp-h-barre > i) { transform-origin: right; }
@keyframes barre-remplit { from { transform: scaleX(0); } }
html.anim-coupee #main.entre-d, html.anim-coupee #main.entre-g, html.anim-coupee #main .casc, html.anim-coupee #main.onglet-neuf * { animation: none !important; }
/* boutons qui s'enfoncent sous le doigt (propriété scale : se combine aux transform déjà posés) */
.btn, .chip, .bas button, .cp, .banque, .horloge, .sous-onglets button { transition: scale .08s ease-out; }
.btn:active:not(:disabled), .chip:active, .bas button:active, .cp:active, .banque:active, .horloge:active, .sous-onglets button:active { scale: .95; }
html.anim-coupee :is(.btn, .chip, .bas button, .cp, .banque, .horloge, .sous-onglets button) { transition: none; scale: none; }
/* compteurs : pièces qui volent vers la banque, petit saut du compteur à l'arrivée (compterVers) */
.piece-vol { position: fixed; z-index: 85; width: 22px; height: 22px; margin: -11px 0 0 -11px; pointer-events: none; transition: transform .65s cubic-bezier(.5, -.3, .7, 1), opacity .65s ease-in; }
.banque { font-variant-numeric: tabular-nums; }
.banque.compte-tape { animation: compte-tape .3s ease-out; }
@keyframes compte-tape { 40% { transform: scale(1.12); } }
html.anim-coupee .piece-vol { display: none; }
html.anim-coupee .banque.compte-tape { animation: none; }
/* blocs scintillants à la place des « Chargement… » (squelette) ; le texte reste pour les lecteurs d'écran */
.lecteur { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.squel { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 12px; }
/* palpite par l'opacité seule, rythme continu d'un redessin à l'autre (--sq, squelette()), 16 battements au plus (~10 s) puis s'arrête */
.squel i { display: block; height: 46px; border-radius: 12px; background: var(--carte); opacity: .45; animation: squel .6s ease-in-out var(--sq, 0s) 16 alternate; }
.squel i:nth-child(odd) { height: 30px; width: 70%; }
@keyframes squel { to { opacity: .9; } }
html.anim-coupee .squel i { animation: none; }
/* tirer vers le bas pour actualiser : petit cheval qui galope sous le bandeau */
.ptr { position: fixed; top: calc(40px + env(safe-area-inset-top)); left: 50%; z-index: 19; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px;
  border-radius: 99px; background: var(--pill); border: 1px solid var(--saison); box-shadow: 0 4px 14px rgba(0, 0, 0, .45); font-size: 13px;
  transform: translate(-50%, -70px); opacity: 0; pointer-events: none; transition: transform .2s ease-out, opacity .2s; }
.ptr.vu { opacity: 1; }
.ptr-txt { white-space: nowrap; }
.ptr-galop { display: block; width: 36.8px; height: 28px; overflow: hidden; }
.ptr-galop img { display: block; width: 294.4px; height: 28px; max-width: none; }
.ptr.charge .ptr-galop img { animation: ptr-galop .6s steps(8) infinite; }
@keyframes ptr-galop { to { transform: translateX(-294.4px); } }
html.anim-coupee .ptr, html.anim-coupee .ptr-galop img { transition: none; animation: none !important; }
/* décor de saison : arrêté page cachée, absent avec les animations coupées */
html.page-cachee .decor-saison i, html.page-cachee .squel i { animation-play-state: paused; }   /* écran de chargement : index.html */
html.anim-coupee .decor-saison { display: none; }
.decor-saison i { opacity: .3; }   /* pétales, flocons… derrière l'écran (#main au-dessus, z-index 2) et plus discrets */

/* ---------- registre 382 (v20.61) : boutique en argent réel, lot A (vue.js › offresReelles, ouvrirCarnetDore, majCascadeDore, badgesJoueur, miniRobe) ----------
   Couleurs par variables (mêmes dans les 4 saisons : l'or du carnet doré ne change pas) ; animations : transform / opacity seulement. */
:root { --dore: #d4a537; --dore-fonce: #2e2108; --dore-clair: #ffe9a8; --dore-fond: #1d170a; }
.offres { margin: 4px 0 12px; }
.offre { position: relative; padding: 12px; margin: 0 0 10px; border-radius: 14px; border: 1px solid var(--dore); background: linear-gradient(135deg, var(--dore-fonce), var(--carte) 70%); }
.offre-t { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; color: var(--dore-clair); font-size: 18px; }
.offre-t b { font-size: 15px; } .offre-t small { color: var(--doux); font-size: 12px; }
.offre-l { margin: 8px 0; padding-left: 4px; list-style: none; font-size: 13px; } .offre-l li { margin: 3px 0; }
.offre-deja { margin: 6px 0; font-size: 13px; color: var(--dore-clair); }
.offre-px { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.offre-btn { background: linear-gradient(135deg, var(--dore), #a87a18); color: #1b1305; font-weight: 700; }
.offre-btn[aria-disabled="true"] { opacity: .75; }
.offre-note, .offre-merci { font-size: 12px; }
.cd-bandeau { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 10px; padding: 10px 12px; border-radius: 14px; text-align: left; font-size: 20px;
  color: var(--dore-clair); border: 1px solid var(--dore); background: linear-gradient(110deg, var(--dore-fonce), var(--dore-fond) 60%, var(--carte)); }
.cd-bandeau b { display: block; font-size: 14.5px; } .cd-bandeau small { display: block; font-size: 12.5px; color: var(--texte); opacity: .9; }
.cd-vitrine { display: flex; align-items: center; gap: 12px; padding: 12px; margin: 6px 0 10px; border-radius: 16px; border: 1px solid var(--dore);
  background: radial-gradient(circle at 20% 40%, color-mix(in srgb, var(--dore) 45%, transparent), var(--dore-fond) 70%); }
.cd-vitrine h2 { margin: 0 0 4px; font-size: 17px; color: var(--dore-clair); }
.cd-cheval { font-size: 54px; filter: drop-shadow(0 0 10px var(--dore)); }
.cd-cheval img { display: block; width: 76px; height: 76px; object-fit: contain; }   /* lot « icônes du carnet doré » (26/11) : le carnet illustré au lieu de 🐎 */
.cd-resume { padding: 10px 12px; margin: 0 0 10px; border-radius: 12px; background: var(--fond2); border: 1px solid var(--ligne); font-size: 13.5px; }
.cd-groupe { margin: 0 0 6px; border-radius: 12px; background: var(--fond2); border: 1px solid var(--ligne); }
.cd-groupe > summary { padding: 9px 12px; cursor: pointer; font-weight: 700; font-size: 13.5px; }
.cd-table { width: 100%; border-collapse: collapse; font-size: 12.5px; table-layout: fixed; }
.cd-table th { text-align: left; padding: 4px 6px; color: var(--doux); font-weight: 600; } .cd-table th:first-child { width: 30px; }
.cd-table td { padding: 5px 6px; border-top: 1px solid var(--ligne); vertical-align: top; overflow-wrap: anywhere; }
.cd-table tr.atteint .cd-n { color: var(--or); font-weight: 700; }
.cd-table .cd-d { color: var(--dore-clair); } .cd-table .cd-d.gros { font-weight: 700; background: color-mix(in srgb, var(--dore) 14%, transparent); }
.cd-cascade { padding: 18px 14px; text-align: center; }
.cd-cascade h2 { color: var(--dore-clair); }
.cd-c-l { list-style: none; padding: 0; margin: 10px 0; text-align: left; max-height: 55vh; overflow: auto; }
.cd-c { display: flex; gap: 8px; align-items: center; padding: 6px 8px; margin: 4px 0; border-radius: 10px; background: color-mix(in srgb, var(--dore) 16%, var(--fond2)); font-size: 13px;
  animation: cd-entre .35s ease-out both; animation-delay: calc(var(--i) * 70ms); }
.cd-c-n { min-width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--dore); color: #1b1305; font-weight: 700; font-size: 12px; }
@keyframes cd-entre { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
.cd-cascade.fini .cd-c, html.anim-coupee .cd-c { animation: none; }
@media (prefers-reduced-motion: reduce) { .cd-c { animation: none; } }
.badge-j { display: inline-block; margin: 0 3px 0 1px; font-size: .9em; line-height: 1; }
.badge-j.b-fondateur { color: var(--dore); text-shadow: 0 0 4px color-mix(in srgb, var(--dore) 70%, transparent); }
.fond-mini { display: inline-block; margin-left: 3px; color: var(--dore); font-size: 11px; font-weight: 700; text-shadow: 0 0 4px color-mix(in srgb, var(--dore) 60%, transparent); }
.fond-mini.dore { font-size: 10px; }

/* ---------- v20.71 : vitrine de la boutique (vue.js › valeurPacks, packsGemmes, vignettesDore, offresReelles ; maquette validée le 26/11)
   Images ChatGPT (originaux dans mobile/art/boutique) : img/pack_gemmes_1..6.webp, carnet_dore.webp, pack_fondateur.webp.
   Fonds par variables, les mêmes dans les 4 saisons (l'or, le rouge du ruban et le bleu nuit du Fondateur ne changent pas). */
:root { --ruban1: #8e3426; --ruban2: #5e1c14; --ruban-txt: #ffd76a; /* v20.73 : rouge vif → bordeaux, l'ancien piquait les yeux */ --bonus-fond: #8ee06a; --bonus-txt: #0f2a10;
  --vig-fond1: #3a2b0c; --vig-fond2: #1d150a; --vig-bord: #8a6a22; --vig-rare: #13305e; --vig-epique: #3a1d5e;
  --fond-nuit1: #1b1846; --fond-nuit2: #0e1030; --fond-txt: #ecebff; --fond-doux: #c9c3ff; --prix1: #ffe58a; --prix2: #f0b52a; --prix3: #c98a12;
  /* voiles en rgba, pas de color-mix : le Chrome 101 du téléphone de test ne le connaît pas et ignore toute la règle */
  --or-voile: rgba(255, 229, 138, .28); --or-trait: rgba(255, 229, 138, .25); --dore-halo: rgba(212, 165, 55, .2);
  --ruban-voile: rgba(142, 52, 38, .3); --ruban-trait: rgba(200, 96, 66, .5); --vert-voile: rgba(142, 224, 106, .18); --vert-trait: rgba(142, 224, 106, .5); }
.offre.packs, .offre.dore { padding: 12px; border-radius: 16px; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.offre.packs .offre-t { align-items: center; }
.offre.packs .offre-t b { font-size: 17px; }
.ruban-x2 { position: relative; display: block; margin: 10px -18px 12px; padding: 7px 18px 7px 56px; color: #fff; line-height: 1.2;
  background: linear-gradient(180deg, var(--ruban1), var(--ruban2)); box-shadow: 0 3px 0 rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 215, 106, .35), inset 0 -1px 0 rgba(255, 215, 106, .2); text-shadow: 0 1px 0 rgba(0, 0, 0, .35);
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 0 100%, 10px 50%); }
.ruban-x2 b { display: block; font-size: 14px; font-weight: 800; }
.ruban-x2 small { display: block; font-size: 11.5px; font-weight: 600; opacity: .92; }
.ruban-x2 .x2 { position: absolute; left: 17px; top: 50%; transform: translateY(-50%) rotate(-8deg); font-size: 22px; font-weight: 900; color: var(--ruban-txt); }
.packs-l { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.pack { position: relative; display: flex; flex-direction: column; align-items: center; padding: 16px 4px 6px; border-radius: 14px; border: 1px solid var(--ligne);
  background: radial-gradient(ellipse at 50% 34%, rgba(120, 200, 255, .20), transparent 62%), linear-gradient(180deg, var(--fond2), var(--fondi)); }
.pk-tas { width: 100%; max-width: 92px; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .45)); margin-top: -4px; }
.pk-qte { display: flex; align-items: center; gap: 3px; margin-top: 2px; font-size: 17px; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 2px 0 rgba(0, 0, 0, .4); white-space: nowrap; }
.pk-avant { min-height: 18px; font-size: 11px; color: var(--doux); text-align: center; line-height: 1.25; }
.pk-avant s { opacity: .85; }
.pk-bonus { margin: 1px 0; padding: 1px 6px; border-radius: 6px; font-size: 11px; font-weight: 800; color: var(--bonus-txt); background: var(--bonus-fond); white-space: nowrap; }
.pack .offre-btn { width: 100%; min-height: 40px; margin-top: 5px; padding: 6px 2px; font-size: 14.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.offres .offre-btn { background: linear-gradient(180deg, var(--prix1), var(--prix2) 60%, var(--prix3)); color: #2a1a00; box-shadow: 0 3px 0 rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .5); }
.pk-tampon { position: absolute; z-index: 2; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; transform: rotate(12deg);
  background: radial-gradient(circle at 35% 30%, var(--ruban1), var(--ruban2)); color: var(--ruban-txt); font-weight: 900; font-size: 12px; box-shadow: 0 2px 0 rgba(0, 0, 0, .35), 0 0 0 2px var(--prix1); }
.pack.pk-vedette { padding-top: 24px; border: 2px solid var(--dore); box-shadow: 0 0 0 3px var(--dore-halo), 0 0 18px var(--or-trait);
  background: radial-gradient(ellipse at 50% 38%, var(--or-voile), transparent 62%), linear-gradient(180deg, var(--fond2), var(--fondi)); }
.pk-vedette .pk-tampon { top: 25px; right: 5px; }
.pk-bandeau { position: absolute; top: 0; left: 0; right: 0; padding: 3px 2px; border-radius: 12px 12px 0 0; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: 9.5px; font-weight: 900; letter-spacing: .4px; text-transform: uppercase; color: #2a1a00; background: linear-gradient(90deg, var(--prix2), var(--prix1), var(--prix2)); }
/* carnet doré */
.dore-haut { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: center; }
.dore-haut img { width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); }
.dore-titre { font-size: 17px; font-weight: 800; color: var(--dore-clair); line-height: 1.2; }
.cd-chrono { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #ffd0b8;
  background: var(--ruban-voile); border: 1px solid var(--ruban-trait); }
.cd-chrono .ico-img { width: 15px; height: 15px; object-fit: contain; vertical-align: 0; }   /* lot « icônes du carnet doré » (26/11) : sablier en image */
.cd-chrono.actif { color: #c8f5c0; background: var(--vert-voile); border-color: var(--vert-trait); }
.dore-accroche { margin: 6px 0 0; font-size: 13px; line-height: 1.3; }
.dore-accroche b { color: var(--dore-clair); }
.cd-recomp-t { margin: 12px 0 6px; font-size: 12.5px; font-weight: 700; color: var(--dore-clair); }
.cd-recomp { display: flex; gap: 8px; overflow-x: auto; padding: 6px 2px 8px; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.cd-recomp::-webkit-scrollbar { display: none; }
.cd-vig { flex: 0 0 70px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 3px 5px; border-radius: 12px; text-align: center;
  background: linear-gradient(180deg, var(--vig-fond1), var(--vig-fond2)); border: 1px solid var(--vig-bord); }
.cd-vig-im { width: 40px; height: 40px; display: grid; place-items: center; font-size: 28px; line-height: 1; }
.cd-vig-im .ico-img { width: 40px; height: 40px; object-fit: contain; vertical-align: 0; }
.cd-vig b { font-size: 12px; color: #fff; line-height: 1.15; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cd-vig small { font-size: 10px; color: var(--dore-clair); line-height: 1.1; overflow-wrap: anywhere; }
.cd-vig.cosm b { font-size: 11px; }
.cd-vig.rare { border-color: var(--rare); background: linear-gradient(180deg, var(--vig-rare), var(--fondi)); }
.cd-vig.epique { border-color: var(--epique); background: linear-gradient(180deg, var(--vig-epique), var(--fondi)); }
.dore-actions { display: flex; gap: 8px; margin-top: 6px; }
.dore-actions .btn { flex: 1 1 0; min-width: 0; min-height: 44px; font-size: 14px; }
/* Pack Fondateur : cadre doré qui tourne (coupé par les animations réduites) */
.offre.fondateur { padding: 0; border: 0; background: none; }
@property --fond-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.fond-cadre { border-radius: 18px; padding: 2px; background: conic-gradient(from var(--fond-a), var(--prix1), var(--prix3), #fff6c8, var(--dore), var(--prix1)); animation: fond-tour 6s linear infinite; }
@keyframes fond-tour { to { --fond-a: 360deg; } }
html.anim-coupee .fond-cadre { animation: none; }
@media (prefers-reduced-motion: reduce) { .fond-cadre { animation: none; } }
.fond-in { position: relative; overflow: hidden; padding: 12px; border-radius: 16px; color: var(--fond-txt);
  background: radial-gradient(ellipse at 28% 50%, var(--or-voile), transparent 55%), linear-gradient(160deg, var(--fond-nuit1), var(--fond-nuit2) 70%); }
.coin-ruban { position: absolute; top: 16px; right: -36px; width: 140px; transform: rotate(35deg); padding: 3px 0; text-align: center; font-size: 10px; font-weight: 900; letter-spacing: .5px;
  text-transform: uppercase; color: #2a1a00; background: linear-gradient(90deg, var(--prix2), var(--prix1), var(--prix2)); box-shadow: 0 2px 4px rgba(0, 0, 0, .4); }
.fond-t { font-size: 19px; color: var(--prix1); padding-right: 60px; } .fond-t b { color: #fff3c4; font-weight: 900; }
.fond-sous { font-size: 12px; color: var(--fond-doux); }
.fond-corps { display: grid; grid-template-columns: 124px 1fr; gap: 8px; align-items: center; margin-top: 4px; }
.fond-corps img { width: 136px; max-width: none; max-height: 170px; object-fit: contain; margin-left: -8px;filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .55)); }
.fond-pitch { margin: 0; font-size: 13.5px; line-height: 1.3; } .fond-pitch b { color: var(--prix1); }
.fond-l { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.fond-l > div { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 6px; align-items: center; min-height: 48px; padding: 5px; border-radius: 10px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--or-trait); font-size: 11.5px; line-height: 1.2; }
.fond-l b { display: block; color: var(--prix1); font-size: 12.5px; } .fond-l small { display: block; font-size: 11px; overflow-wrap: anywhere; }
.fond-i { width: 28px; height: 28px; display: grid; place-items: center; font-size: 20px; color: var(--prix1); }
.fond-i .ico-img { width: 28px; height: 28px; object-fit: contain; vertical-align: 0; }
.fond-bas { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.fond-bas .esp { flex: 1; min-width: 0; font-size: 11.5px; line-height: 1.25; color: var(--fond-doux); }
.fond-bas .offre-btn { min-height: 44px; min-width: 128px; font-size: 15px; }
/* v20.76 (demande de l'utilisateur du 26/11) : la cravache posée SUR la vue 3D du direct (replay3d.js : cravSur, classe .crav-sur sur #replay),
   en bas à gauche au-dessus du commentaire (la petite carte 2D reste à droite). Hors zone : neutre, à demi transparent (jamais jaune, G2) ;
   trop tôt : rouge foncé ; dans la zone : vert + pulsation, anneau qui s'élargit, petit rebond à l'entrée, « TAPE ! ». Coup donné : le résultat
   reste 2,5 s puis petite pastille (.mini). « 2D seulement » / 3D indisponible : boutons dans la barre, comme avant. Barre : une ligne d'aide + ⓘ. */
:root { --crav-neutre: rgba(10, 18, 32, .66); --crav-tot: rgba(92, 22, 24, .88); --crav-bon: rgba(12, 58, 32, .88); --crav-mauvais: rgba(72, 18, 20, .88); }
.ctrl.direct .crav-aide { flex: 1 1 0; min-width: 0; overflow: hidden; }
.ctrl.direct .crav-aide .aide-bulle { max-width: 100%; font-size: 12px; }
.ctrl.direct .crav-aide .aide-bulle > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn.crav .crav-court, .btn.crav .crav-n, .btn.crav .crav-res { display: none; }
.replay.crav-sur .cravs .btn.crav:not(.mini) .crav-res { display: inline; white-space: nowrap; font-weight: 800; font-size: 17px; }
.replay.crav-sur .cravs .btn.crav[data-crav-fait] .crav-plein { display: none; }
/* sur la 3D : « 🥢 n°13 » (n° seulement si plusieurs de mes chevaux) au lieu du nom, qui coupait le n° */
.replay.crav-sur .cravs .btn.crav .crav-nom { display: none; }
.replay.crav-sur .cravs .btn.crav .crav-n { display: inline; white-space: nowrap; font-weight: 800; font-size: 17px; }
.replay.crav-sur .ctrl.direct { flex-wrap: nowrap; padding-top: 4px; padding-bottom: 4px; }
.replay.crav-sur .moi-reste { display: none; }   /* ma distance est sur le bouton */
.replay.crav-sur .comm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 0; padding: 5px 10px; }
.replay.crav-sur .scene3d > .cravs { position: absolute; left: 8px; bottom: 42px; z-index: 3; width: min(60%, 300px); display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.replay.crav-sur .cravs .btn.crav { position: relative; width: 100%; flex: none; min-height: 56px; padding: 6px 16px; border-radius: 999px; font-size: 15px; color: #fff;
  transform-origin: left center; box-shadow: 0 3px 10px rgba(0, 0, 0, .45); -webkit-tap-highlight-color: transparent; }
.replay.crav-sur .cravs.serre .btn.crav { min-height: 46px; }   /* 3 de mes chevaux ou plus */
.replay.crav-sur .cravs .btn.crav .crav-m { font-size: 18px; font-variant-numeric: tabular-nums; }
.replay.crav-sur .cravs .btn.crav:not(.zone):not(.tot):not(.fait) { background: var(--crav-neutre); color: #fff; border: 1px solid rgba(255, 255, 255, .28); opacity: .78; }
.replay.crav-sur .cravs .btn.crav.tot { background: var(--crav-tot); border: 1px solid rgba(255, 140, 140, .3); opacity: .9; }
.replay.crav-sur .cravs .btn.crav.zone { background: var(--vert); color: #06210f; border: 2px solid #eafff1; opacity: 1; }
.replay.crav-sur .cravs .btn.crav.zone .crav-m { font-size: 20px; }
.replay.crav-sur .cravs .btn.crav.fait.bon { background: var(--crav-bon); }
.replay.crav-sur .cravs .btn.crav.fait.mauvais { background: var(--crav-mauvais); }
.replay.crav-sur .cravs .btn.crav[data-crav-fait]:not(.fait) { background: var(--crav-neutre); border: 1px solid rgba(255, 255, 255, .28); }
.replay.crav-sur .cravs .btn.crav[data-crav-fait] { justify-content: flex-start; }
.replay.crav-sur .cravs .btn.crav.mini { width: auto; min-height: 34px; padding: 3px 12px; font-size: 14px; opacity: .85; box-shadow: none; }
.replay.crav-sur .cravs .btn.crav.mini .crav-plein { display: none; }
.replay.crav-sur .cravs .btn.crav.mini .crav-court { display: inline; white-space: nowrap; }
.replay.crav-sur .cravs .btn.crav .crav-plein { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
/* animation dans la zone */
.replay.crav-sur .cravs .btn.crav.zone.pouls { animation: crav-pouls-g .5s ease-in-out infinite alternate; }
.replay.crav-sur .cravs .btn.crav.zone.entre { animation: crav-rebond .45s ease-out; }
.replay.crav-sur .cravs .btn.crav.zone.pouls::after { content: ''; position: absolute; inset: -2px; border-radius: inherit; pointer-events: none; animation: crav-anneau 1s ease-out infinite; }
@keyframes crav-pouls-g { from { transform: scale(1); } to { transform: scale(1.12); } }
@keyframes crav-rebond { 0% { transform: scale(.86); } 55% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes crav-anneau { from { box-shadow: 0 0 0 0 rgba(61, 220, 132, .9); } to { box-shadow: 0 0 0 18px rgba(61, 220, 132, 0); } }
html.anim-coupee .replay.crav-sur .cravs .btn.crav { animation: none !important; }
html.anim-coupee .replay.crav-sur .cravs .btn.crav::after { display: none; }
@media (prefers-reduced-motion: reduce) { .replay.crav-sur .cravs .btn.crav { animation: none !important; } .replay.crav-sur .cravs .btn.crav::after { display: none; } }
/* téléphone : les caméras remontent en haut à gauche (en icônes), la distance en haut à droite : le bas gauche est à la cravache */
@media (max-width: 420px) {
  .replay.crav-sur .cams { top: 8px; bottom: auto; left: 8px; right: auto; flex-wrap: nowrap; justify-content: flex-start; }
  .replay.crav-sur .cams .cam-l { display: none; }
  .replay.crav-sur .cams .btn { min-width: 40px; font-size: 16px; }
  .replay.crav-sur .reste { left: auto; right: 8px; transform: none; }
}

/* ---------- v20.77 : page « Événements » (direction A, mobile/suivi/notes/maquette_evenements.html) : bannière en tête de Courses (.evb) et page
   plein écran (.evp, dans #feuille). Une couleur d'accent par événement (--ev-<k>), la même partout ; fonds et voiles par variables. ---------- */
:root { --ev-avent: var(--noel-or); --ev-givree: var(--noel-or); --ev-guerre: var(--guerre); --ev-coupe: #6fe3a1; --ev-carnet: #c9a0ff; --ev-tournee: #ffc27a; --ev-offre: #ffd65a;
  --ev-voile: rgba(4, 12, 30, .92); --ev-voile2: rgba(4, 12, 30, .55); --ev-voile0: rgba(4, 12, 30, 0); --ev-chrono: rgba(0, 0, 0, .55); --ev-point: rgba(255, 255, 255, .45);
  --ev-blanc: #fff; --ev-ombre: rgba(0, 0, 0, .45); --ev-noel-clair: #e2324e; }
.evb-boite { position: relative; margin: 0 0 10px; }
.evb { position: relative; display: flex; align-items: flex-end; width: 100%; min-height: 104px; margin: 0; padding: 30px 12px 10px; border: 1px solid var(--acc); border-radius: 16px;
  text-align: left; overflow: hidden; background: var(--fondi); color: var(--texte); font: inherit; box-shadow: 0 6px 18px var(--ev-ombre); cursor: pointer; }
.evb-img { position: absolute; right: 0; top: 0; width: 62%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.evb-img.ev-givree, .evp-ban-img.ev-givree { object-position: 50% 30%; }   /* le skin 3D carré : tête, jockey et tapis de selle */
.evb-img.ev-guerre, .evb-img.ev-coupe, .evb-img.ev-carnet, .evb-img.ev-offre, .evp-ban-img.ev-guerre, .evp-ban-img.ev-coupe, .evp-ban-img.ev-carnet, .evp-ban-img.ev-offre { object-position: 50% 45%; }
.evb::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--ev-voile) 0, var(--ev-voile2) 55%, var(--ev-voile0) 100%); }
.evb-sur { position: absolute; z-index: 2; top: 9px; left: 12px; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--acc); }
.ev-chrono { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 99px; background: var(--ev-chrono); color: var(--ev-blanc); font-size: 12px; font-weight: 700;
  font-variant-numeric: tabular-nums; white-space: nowrap; }
.evb .ev-chrono { position: absolute; z-index: 2; top: 8px; right: 10px; }
.evb-t { position: relative; z-index: 2; min-width: 0; padding-right: 80px; }
.evb-t b { display: block; font-size: 16.5px; line-height: 1.2; color: var(--ev-blanc); text-shadow: 0 1px 3px var(--ev-ombre); }
.evb-t small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; line-height: 1.3; color: var(--texte); text-shadow: 0 1px 3px var(--ev-ombre); }
.evb-t small b { display: inline; font-size: inherit; color: var(--acc); }
.evb-pts { position: absolute; z-index: 2; right: 12px; bottom: 12px; display: flex; gap: 4px; }
.evb-pts i { width: 6px; height: 6px; border-radius: 3px; background: var(--ev-point); }
.evb-pts i.on { width: 16px; background: var(--acc); }
.evb-nb { position: absolute; z-index: 3; top: -7px; right: -5px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--rouge); color: var(--ev-blanc);
  font-size: 12px; font-weight: 800; line-height: 22px; text-align: center; box-shadow: 0 2px 6px var(--ev-ombre); pointer-events: none; }
/* la page */
.evp { position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column; background: var(--fond); color: var(--texte); text-align: left;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
.evp-tete { display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 14px; border-bottom: 1px solid var(--ligne); background: var(--hautbas); }
.evp-tete h2 { flex: 1; margin: 0; font-size: 19px; }
.evp-x { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ligne); background: var(--pill); color: var(--texte); font-size: 17px; cursor: pointer; }
.evp-corps { flex: 1; display: flex; min-height: 0; }
.evp-rail { flex: 0 0 84px; overflow-y: auto; padding: 10px 6px 10px 8px; border-right: 1px solid var(--ligne); background: var(--fondi); display: flex; flex-direction: column; gap: 8px; }
.evp-ri { position: relative; flex: none; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px 5px; border-radius: 12px; border: 1px solid transparent;
  background: none; color: var(--texte); font: inherit; min-height: 44px; cursor: pointer; }
.evp-ri-im { display: block; width: 50px; height: 50px; border-radius: 12px; overflow: hidden; background: var(--fond2); border: 2px solid var(--acc); box-shadow: 0 2px 6px var(--ev-ombre); }
.evp-ri-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.evp-ri-img.ev-givree { transform: scale(1.7); transform-origin: 42% 38%; }   /* vignette : la tête et le tapis */
.evp-ri-nm { font-size: 10.5px; font-weight: 700; line-height: 1.15; text-align: center; }
.evp-ri-tm { font-size: 10px; line-height: 1.1; color: var(--doux); text-align: center; font-variant-numeric: tabular-nums; }
.evp-ri.on { background: var(--pill); border-color: var(--acc); }
.evp-ri.on .evp-ri-tm { color: var(--acc); }
.evp-pt { position: absolute; top: 2px; right: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--rouge); border: 2px solid var(--fondi); }
.evp-neuf { position: absolute; top: 0; left: -2px; padding: 1px 5px; border-radius: 6px; background: var(--rouge); color: var(--ev-blanc); font-size: 9px; font-weight: 800;
  letter-spacing: .03em; text-transform: uppercase; transform: rotate(-8deg); }
.evp-pan { flex: 1; min-width: 0; overflow-y: auto; padding: 10px 10px 16px; display: flex; flex-direction: column; gap: 9px; }
.evp-ban { position: relative; flex: none; height: 158px; border-radius: 14px; overflow: hidden; border: 1px solid var(--acc); background: var(--fondi); }
.evp-ban-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.evp-ban::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--ev-voile0) 35%, var(--ev-voile) 100%); }
.evp-ban-t { position: absolute; z-index: 1; left: 10px; right: 10px; bottom: 8px; }
.evp-ban-t > b { display: block; font-size: 17px; line-height: 1.15; color: var(--ev-blanc); text-shadow: 0 2px 4px var(--ev-ombre); }
.evp-ban-t small { display: block; font-size: 12px; color: var(--texte); }
.evp-ban-t small b { font-weight: 800; }
.evp-ban .ev-chrono { position: absolute; z-index: 1; top: 8px; left: 8px; }
.evp-etat { font-size: 13px; line-height: 1.35; }
.evp-etat b { color: var(--acc); }
.evp-score { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.evp-score b { font-size: 18px; color: var(--acc); }
.evp-jauge { position: relative; flex: none; height: 9px; border-radius: 5px; background: var(--fondi); border: 1px solid var(--ligne); }
.evp-jauge.avec-rep { margin-top: 14px; }
.evp-jauge i { display: block; height: 100%; border-radius: 5px; background: var(--acc); }
.evp-rep { position: absolute; top: -5px; width: 2px; height: 19px; background: var(--texte); }
.evp-rep::after { content: attr(data-t); position: absolute; top: -15px; left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 800; color: var(--texte); white-space: nowrap; }
.evp-rt { margin: 2px 0 -3px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--doux); }
.evp-recs { display: flex; flex-wrap: wrap; gap: 5px; }
.evp-rec { display: inline-block; padding: 4px 7px; border-radius: 9px; background: var(--fond2); border: 1px solid var(--ligne); font-size: 12px; font-weight: 700; line-height: 1.3; }
.evp-rec.leg { border-color: var(--legendaire); color: var(--legendaire); }
.evp-rec.rare { border-color: var(--rare); }
.evp-rec.pret { border-color: var(--rouge); }
.evp-rec.top { border-color: var(--acc); color: var(--acc); }
.evp-rec.ico { display: inline-flex; padding: 3px; }
.evp-rec img { vertical-align: -4px; }
.evp-rec-i { width: 26px; height: 26px; object-fit: contain; }
.evp-rec-i.emo { display: inline-grid; place-items: center; font-size: 18px; }
.evp-x2 { color: var(--acc); font-weight: 800; }
.evp-go { width: 100%; min-height: 46px; font-size: 15px; }
.evp .btn.evp-go.noel, body[data-saison] .evp .btn.evp-go.noel { background: linear-gradient(180deg, var(--ev-noel-clair), var(--noel-rouge)); color: var(--noel-neige); box-shadow: 0 0 0 1px var(--noel-or) inset; }
.evp-note { font-size: 11.5px; color: var(--doux); }
.evp-ok { color: var(--vert); font-size: 13px; }
.evp-code { margin-top: auto; padding-top: 8px; text-align: center; font-size: 13px; }

/* ---------- v20.78 : emotes du direct et nouvel écran du direct avec la 3D (conception_emotes.md, maquette du graphiste). replay3d.js pose
   .d3 sur #replay (direct + vue 3D) et .bas3d (vue 3D de moins de 330 px : un seul bouton 📷, 2 bulles). Couleurs : variables posées sur body
   (elles suivent --fond2 / --carte / --or des 4 saisons). Sans .d3 (replay, « 2D seulement ») : tout reste comme avant. ---------- */
body { --emo-voile: rgba(11, 20, 36, .8); --emo-plateau: var(--fond2); --emo-med1: var(--carte); --emo-med2: var(--fond2); --emo-attente: rgba(6, 12, 24, .82);
  --emo-bord-l: rgba(255, 255, 255, .12); --emo-vit1: rgba(120, 70, 220, .35); --emo-vit-bord: rgba(176, 92, 255, .4); --emo-ciel: #35577e; --emo-herbe: #2c6a3c; --emo-direct: #c0392b; }
body[data-saison="hiver"] { --emo-ciel: #4a6f99; --emo-herbe: #c9d9ea; }
body[data-saison="printemps"] { --emo-ciel: #6d4f86; --emo-herbe: #3d7a43; }
body[data-saison="ete"] { --emo-ciel: #6f86a8; --emo-herbe: #5c7a2a; }
body[data-saison="automne"] { --emo-ciel: #6b4e3a; --emo-herbe: #5d4a1c; }
/* (v20.79 : la pastille « ● DIRECT · Reste » du haut gauche est retirée : 🔴 et 👁 dans l'en-tête, « Reste » en haut à droite) */
/* la barre sous la 3D ne garde que la ligne d'aide de la cravache (ⓘ) ; spectateur : plus de barre */
.replay.d3 .ctrl.direct .direct-badge, .replay.d3 .ctrl.direct .regard { display: none; }
.replay.d3 .ctrl.direct:not(:has(.crav-aide)) { display: none; }
/* commentaire sur une ligne (sinon il passe sous le bouton 💬 du spectateur) */
.replay.d3 .comm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 0; padding: 5px 10px; }
/* caméras en colonne d'icônes 44 × 44 au bord gauche ; vue basse : un seul 📷 qui passe à la suivante */
.replay .cams .cam-suiv { display: none; }
.replay.d3 .cams { top: 48px; bottom: auto; left: 8px; right: auto; flex-direction: column; flex-wrap: nowrap; gap: 4px; justify-content: flex-start; }
.replay.d3 .cams .btn { width: 44px; height: 44px; min-width: 44px; padding: 0; font-size: 19px; border-radius: 12px; display: grid; place-items: center; }
.replay.d3 .cams .cam-l { display: none; }
.replay.d3.bas3d .cams .btn { display: none; }
.replay.d3.bas3d .cams .cam-suiv { display: grid; }
/* cravache en bas à DROITE, sous le pouce */
.replay.d3.crav-sur .scene3d > .cravs { left: auto; right: 8px; align-items: flex-end; width: min(62%, 230px); }
.replay.d3.crav-sur .cravs .btn.crav { transform-origin: right center; }
/* bouton 💬 : rond 56 px en bas à gauche (3D) ou dans la barre du direct (2D seulement) ; anneau du délai = --att de 1 à 0 */
.replay .emo-b { position: relative; flex: none; width: 44px; height: 44px; padding: 0; border-radius: 50%; background: var(--emo-voile); border: 2px solid var(--or); color: #fff;
  display: grid; place-items: center; font-size: 20px; -webkit-tap-highlight-color: transparent; }
.replay .emo-b[hidden] { display: none; }
.replay .emo-b::before { content: ''; position: absolute; inset: -2px; border-radius: 50%; pointer-events: none; background: conic-gradient(var(--emo-attente) calc(var(--att, 0) * 360deg), transparent 0); }
.replay .emo-b.attend .emo-b-ic { opacity: .5; }
.replay .emo-b.on { box-shadow: 0 0 0 3px var(--emo-voile), 0 0 0 5px var(--or); }
.replay.d3 .emo-b { position: absolute; left: 8px; bottom: 42px; z-index: 3; width: 56px; height: 56px; font-size: 26px; box-shadow: 0 3px 10px rgba(0, 0, 0, .45); }
.replay:not(.d3) .ctrl.direct { position: relative; }
/* plateau 2 × 4 : au-dessus du bouton ; vue basse : à côté ; 2D seulement : au-dessus de la barre */
.replay .emo-plateau { position: absolute; z-index: 6; background: var(--emo-plateau); border: 1px solid var(--ligne); border-radius: 16px; padding: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .6); }
.replay .emo-plateau[hidden] { display: none; }
.replay.d3 .emo-plateau { left: 8px; bottom: 106px; }
.replay.d3.bas3d .emo-plateau { left: 72px; bottom: 8px; }
.replay:not(.d3) .emo-plateau { left: 8px; bottom: calc(100% + 6px); }
.emo-gr { display: grid; grid-template-columns: repeat(4, 56px); gap: 4px 6px; }
.emo-choix { position: relative; width: 56px; padding: 0; background: none; border: 0; display: flex; flex-direction: column; align-items: center; color: var(--texte); -webkit-tap-highlight-color: transparent; }
.emo-choix .emo-img { width: 56px; height: 56px; font-size: 28px; }
.emo-nm { position: relative; margin-top: -7px; max-width: 62px; font-size: 9.5px; line-height: 14px; padding: 0 4px; border-radius: 6px; background: var(--fond); color: var(--doux); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.emo-plateau.att .emo-img { filter: grayscale(1) brightness(.6); }
.emo-pied { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 4px; font-size: 11.5px; color: var(--doux); }
.emo-changer { background: none; border: 0; color: var(--or); font-weight: 700; font-size: 13px; padding: 6px 4px; min-height: 36px; }
/* image d'une emote : médaillon, image (toque blanche) + masque de la toque teinté (--toque) ; sans image : le signe de secours */
.emo-img { position: relative; display: inline-grid; place-items: center; flex: none; width: 48px; height: 48px; font-size: 24px; line-height: 1; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 35% 30%, var(--emo-med1), var(--emo-med2)); border: 2px solid var(--commun); }
.emo-img.r-offerte { border-color: var(--or); } .emo-img.r-rare { border-color: var(--rare); } .emo-img.r-epique { border-color: var(--epique); } .emo-img.r-legendaire { border-color: var(--legendaire); }
.emo-img > img, .emo-img > .emo-toque { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.emo-toque { background: var(--toque); mix-blend-mode: multiply; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
.emo-ico { display: none; }
.emo-img.sans-img > img, .emo-img.sans-img > .emo-toque { display: none; }
.emo-img.sans-img > .emo-ico { display: block; }
/* bulles reçues : couloir en haut à gauche, à droite des caméras ; 3 s chacune ; cachées pendant un moment du sprint et MA zone verte */
.replay .emo-couloir { position: absolute; left: 60px; top: 46px; z-index: 4; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; max-width: min(60%, 230px); pointer-events: none; transition: opacity .2s; }
.replay:not(.d3) .emo-couloir { left: 8px; top: 8px; }
.replay .emo-couloir.cache { opacity: 0; visibility: hidden; }
.emo-bulle { pointer-events: auto; display: flex; align-items: center; gap: 6px; max-width: 100%; min-height: 40px; padding: 3px 10px 3px 3px; border-radius: 999px; background: var(--emo-voile);
  border: 1px solid var(--emo-bord-l); color: #fff; font-size: 12.5px; text-align: left; -webkit-tap-highlight-color: transparent; animation: emo-entre .25s cubic-bezier(.3, 1.6, .5, 1); }
.emo-bulle.moi { border-color: var(--or); }
.emo-bulle .emo-img { width: 34px; height: 34px; font-size: 17px; }
.emo-nom { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.emo-x { color: var(--or); font-weight: 800; font-variant-numeric: tabular-nums; }
.emo-x:empty { display: none; }
.emo-bulle.rebond { animation: emo-rebond .3s ease-out; }
.emo-bulle.part { animation: emo-sort .2s ease-in forwards; }
@keyframes emo-entre { from { transform: translateX(-14px) scale(.8); opacity: 0; } }
@keyframes emo-rebond { 50% { transform: scale(1.12); } }
@keyframes emo-sort { to { transform: translateX(-10px); opacity: 0; } }
/* petit mouvement propre à chaque emote (sur l'image, après l'entrée) */
.emo-bulle .emo-img > * { animation: .6s .25s ease-in-out 2 both; }
.emo-bulle:is(.e-bravo, .e-allez, .e-champion, .e-champagne, .e-coeur) .emo-img > * { animation-name: emo-saut; }
.emo-bulle:is(.e-ohnon, .e-escargot, .e-carotte) .emo-img > * { animation-name: emo-tremble; }
.emo-bulle:is(.e-chapeau, .e-photo, .e-clairon, .e-roses) .emo-img > * { animation-name: emo-penche; }
.emo-bulle:is(.e-fer, .e-ruee, .e-poussiere) .emo-img > * { animation-name: emo-file; }
@keyframes emo-saut { 50% { transform: translateY(-4px) scale(1.06); } }
@keyframes emo-tremble { 25% { transform: translateX(-2px) rotate(-4deg); } 75% { transform: translateX(2px) rotate(4deg); } }
@keyframes emo-penche { 50% { transform: rotate(-10deg); } }
@keyframes emo-file { 50% { transform: translateX(3px) scale(1.05); } }
/* animations réduites : apparition et disparition seulement */
html.anim-coupee .emo-bulle, html.anim-coupee .emo-bulle * { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .emo-bulle, .emo-bulle * { animation: none !important; } .replay .emo-couloir { transition: none; } }
/* Boutique › Cosmétiques › 💬 Emotes (maquette 6) */
.emo-packs { display: grid; gap: 10px; margin-bottom: 12px; }
.emo-vit { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; background: linear-gradient(135deg, var(--emo-vit1), var(--fond2) 60%); border: 1px solid var(--emo-vit-bord); }
.emo-vit-gr { display: grid; grid-template-columns: repeat(2, 44px); gap: 4px; flex: none; }
.emo-vit-gr .emo-img { width: 44px; height: 44px; font-size: 22px; }
.emo-vit .sous { margin: 2px 0 8px; }
.emo-vit s { opacity: .6; font-weight: 600; margin-right: 2px; }
.emo-t { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 14px 0 4px; }
.emo-t b { color: var(--or); }
.emo-rangee { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 6px; padding: 10px; border-radius: 14px; background: var(--fond2); border: 1px solid var(--ligne); }
.emo-case { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; min-height: 44px; padding: 4px 0; border: 0; border-radius: 12px; background: none; color: var(--doux); font-size: 11px; }
.emo-case > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.emo-case .emo-img { width: 54px; height: 54px; font-size: 27px; }
.emo-case.on { outline: 2px solid var(--or); outline-offset: 1px; }
.emo-plus { width: 54px; height: 54px; border-radius: 50%; border: 2px dashed var(--ligne); display: grid; place-items: center; color: var(--ligne); font-size: 22px; }
.emo-apercu { position: relative; min-height: 96px; margin: 10px 0; padding: 14px 12px; border-radius: 14px; background: linear-gradient(180deg, var(--emo-ciel), var(--emo-herbe)); }
.emo-apercu .emo-bulle { display: inline-flex; max-width: 80%; animation: none; }
.emo-apercu-l { position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; border-radius: 999px; background: var(--emo-voile); color: var(--doux); font-size: 11px; }
.emo-cat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.emo-carte { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; padding: 9px 6px; border-radius: 14px; background: var(--fond2); border: 1px solid var(--ligne); text-align: center; font-size: 12px; }
.emo-carte.vue { outline: 2px solid var(--or); }
.emo-carte b { max-width: 100%; overflow-wrap: anywhere; }
.emo-carte .btn { width: 100%; margin-top: auto; }
.emo-voir { padding: 0; border: 0; background: none; }
.emo-carte .emo-img { width: 52px; height: 52px; font-size: 26px; }

/* ---------- v20.79 : le bas de la course 3D, maquette D (mobile/suivi/maquettes/course3d_bas/, choix de l'utilisateur du 26/11).
   replay3d.js pose .cl3d sur #replay quand la 3D est là (direct ET replay) : « Reste » en haut à droite, caméras en rangée en haut à gauche,
   commentaire en bas à gauche, cravache (148 × 52) en bas à droite, 💬 au-dessus du commentaire. Sous la 3D : bande « Ma course » (.mac,
   avec le ruban « Le peloton »), puis le classement (.ordre.cl, hauteur RÉSERVÉE à l'ouverture : --cl-h). Paysage : 3D à gauche avec le
   ruban en verre fumé en bas, « Ma course » + classement à droite. « 2D seulement » : bande 2D comme avant, mêmes bande et classement.
   Couleurs : variables (saisons : --or, --moi, --orfond, --ligne…). ---------- */
body { --cl-argent: #c9d6e6; --cl-bronze: #e8a274; --cl-oeil: #8fe3b4; --cl-verre: rgba(7, 14, 26, .72); --cl-plaque: #fff; --cl-plaque-txt: #0b1424;
  --cl-toi-txt: #1a1405; --cl-pair: rgba(255, 255, 255, .03); --cl-tout: var(--fond2); }
.replay .corps, .replay .cote { display: contents; }
.replay .scene[hidden] { display: none; }
.replay.cl3d .scene3d { flex: 1 1 0; min-height: 150px; }
.replay.sans3d .scene { flex: 1 1 0; min-height: 120px; }
.replay .rh .regard-h { font-weight: 600; white-space: nowrap; }
/* barre « DIRECT » sous la 3D supprimée : 🔴 et 👁 dans l'en-tête, la règle de la cravache sur la ⓘ de son bouton (« 2D seulement » : gardée) */
.replay.cl3d .ctrl.direct { display: none; }
/* replay : pause, recommencer et vitesses en une rangée compacte au-dessus de la 3D */
.replay .ctrl.ctrl-rp { padding: 5px 10px; gap: 6px; border-top: 0; border-bottom: 1px solid var(--ligne); }
.replay .ctrl.ctrl-rp > .btn { min-width: 42px; height: 34px; padding: 0 8px; }
.replay .ctrl-rp .seg { margin-left: auto; display: flex; border: 1px solid var(--ligne); border-radius: 10px; overflow: hidden; }
.replay .ctrl-rp .seg .btn { border: 0; border-left: 1px solid var(--ligne); border-radius: 0; min-width: 40px; height: 32px; padding: 0 6px; font-size: 13px; }
.replay .ctrl-rp .seg .btn:first-child { border-left: 0; }
.replay .ctrl-rp .seg .btn.on { outline: 0; background: var(--orfond); color: var(--or); }
/* sur la 3D */
.replay.cl3d .reste { left: auto; right: 8px; top: 8px; transform: none; }
.replay.cl3d .cams { top: 8px; bottom: auto; left: 8px; right: auto; flex-direction: row; flex-wrap: nowrap; gap: 5px; justify-content: flex-start; }
.replay.cl3d .cams .btn { width: 42px; height: 38px; min-width: 42px; padding: 0; font-size: 17px; border-radius: 10px; display: grid; place-items: center; }
.replay.cl3d .cams .cam-l, .replay.cl3d .cams .cam-suiv, .replay.cl3d.d3.bas3d .cams .cam-suiv { display: none; }
.replay.cl3d.d3.bas3d .cams .btn:not(.cam-suiv) { display: grid; }
.replay.cl3d .comm { left: 8px; right: 8px; bottom: 8px; min-height: 0; padding: 5px 8px; font-size: 12px; line-height: 15px; white-space: normal;
  overflow: hidden; text-overflow: clip; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.replay.cl3d.crav-sur .comm { right: 172px; }
.replay.cl3d .emo-b { bottom: 70px; width: 50px; height: 50px; font-size: 23px; }
.replay.cl3d .emo-plateau { bottom: 128px; }
.replay.cl3d.bas3d .emo-plateau { left: 66px; bottom: 70px; }
.replay.cl3d .emo-couloir { left: 8px; top: 54px; }
/* bouton de cravache : 2 lignes (« 🥢 Cravache · n°10 » / « 652 m ⓘ » ; dans la zone : vert, « 🥢 TAPE ! ») ; trop tôt : neutre aussi ;
   dans la barre (2D seulement) : comme avant */
.btn.crav .crav-t, .btn.crav .crav-i { display: none; }
.btn.crav .crav-l2 { display: contents; }
.replay.cl3d.crav-sur .scene3d > .cravs { left: auto; right: 8px; bottom: 8px; width: auto; align-items: flex-end; gap: 6px; }
.replay.cl3d.crav-sur .cravs .btn.crav { width: auto; min-width: 148px; max-width: min(210px, 56vw); min-height: 52px; padding: 6px 10px; border-radius: 14px; flex-direction: column; align-items: flex-end;
  justify-content: center; gap: 1px; text-align: right; transform-origin: right bottom; }
.replay.cl3d.crav-sur .cravs.serre .btn.crav { min-height: 44px; }
.replay.cl3d.crav-sur .cravs .btn.crav .crav-n { display: none; }
.replay.cl3d.crav-sur .cravs .btn.crav[data-crav] .crav-t { display: block; max-width: 100%; font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.replay.cl3d.crav-sur .cravs .btn.crav.zone .crav-t { font-size: 18px; }
.replay.cl3d.crav-sur .cravs .btn.crav[data-crav] .crav-l2 { display: flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 600; opacity: .9; }
.replay.cl3d.crav-sur .cravs .btn.crav .crav-m { font-size: 12px; }
.replay.cl3d.crav-sur .cravs .btn.crav.zone .crav-m { font-size: 13px; }
.replay.cl3d.crav-sur .cravs .btn.crav .crav-i { display: inline-grid; place-items: center; min-width: 24px; height: 22px; margin: -4px -6px -4px 0; font-size: 13px; }
.replay.cl3d.crav-sur .cravs .btn.crav.tot { background: var(--crav-neutre); border: 1px solid rgba(255, 255, 255, .28); opacity: .78; }
.replay.cl3d.crav-sur .cravs .btn.crav[data-crav-fait] { flex-direction: row; justify-content: flex-end; }
.replay.cl3d.crav-sur .cravs .btn.crav.mini { width: auto; min-height: 34px; }
/* pastille au dossard (les 2 couleurs de la casaque + n°) : la même dans la liste, la bande et le ruban (et l'étiquette 3D) */
.replay .cq { flex: none; position: relative; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px;
  background: linear-gradient(135deg, var(--a) 0 50%, var(--b) 50% 100%); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.replay .cq i { font: 800 11px/1 system-ui, sans-serif; color: var(--cl-plaque-txt); background: var(--cl-plaque); border-radius: 4px; padding: 2px; min-width: 16px; text-align: center; }
.replay .cq.gr { width: 34px; height: 34px; border-radius: 10px; }
.replay .cq.gr i { font-size: 13px; min-width: 18px; }
/* bande « Ma course » (or) : ligne du haut 52 px + ruban 50 px */
.replay .mac { flex: none; background: linear-gradient(90deg, var(--orfond), var(--moi)); border-top: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne); }
.replay .mac-haut { display: flex; align-items: center; gap: 10px; height: 52px; padding: 4px 12px 0; }
.replay .mac-haut:empty { display: none; }
.replay .mac .qui { flex: 1; min-width: 0; line-height: 1.25; }
.replay .mac .q1, .replay .mac .duel { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.replay .mac .q1 b { font-size: 16px; color: var(--or); }
.replay .mac .q1 em { font-style: normal; font-size: 12px; color: var(--doux); margin-left: 6px; }
.replay .mac .duel { font-size: 12.5px; min-height: 16px; }
.replay .mac .duel .dev { color: var(--rouge); font-weight: 700; }
.replay .mac .duel .bon { color: var(--vert); font-weight: 700; }
.replay .mac .rang { flex: none; text-align: right; line-height: 1.1; }
.replay .mac .rang b { font-size: 24px; font-weight: 900; color: var(--or); white-space: nowrap; }
.replay .mac .rang b small { font-size: 13px; color: var(--doux); font-weight: 600; }
.replay .mac .rang > span { display: block; font-size: 12px; color: var(--doux); white-space: nowrap; font-variant-numeric: tabular-nums; }
.replay .mac .rang .ico-img { width: 14px; height: 14px; vertical-align: -2px; }
.replay .mac .fl, .replay .cl .fl { font-size: 10px; font-weight: 800; }
.replay .fl.monte { color: var(--vert); }
.replay .fl.descend { color: var(--rouge); }
.replay .mac .fin-direct { padding: 0 12px 6px; font-size: 12px; }
/* ruban « Le peloton » : la tête à droite (🏁), jetons de 20 px à leur écart réel, le mien 28 px (liseré doré, « toi »), toujours par-dessus */
.replay .ruban { position: relative; height: 50px; margin: 0 12px; }
.replay .mac.spect .ruban { margin-top: 4px; }
.replay .ruban .rb-piste { position: absolute; left: 0; right: 26px; top: 20px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .35)); }
.replay .ruban .rb-fin { position: absolute; right: 0; top: 10px; font-size: 18px; line-height: 1; }
.replay .ruban .rb-cap { position: absolute; left: 0; right: 30px; bottom: 0; display: flex; justify-content: space-between; gap: 8px; font-size: 10.5px; line-height: 12px; color: var(--doux); }
.replay .ruban .rb-cap > span:first-child { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.replay .ruban .rb-cap > span[hidden] { display: none; }
.replay .ruban .rb-cap b { color: var(--texte); font-weight: 600; }
.replay .ruban .jt { position: absolute; top: 21px; z-index: 1; transform: translate(-50%, -50%); width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--a) 0 50%, var(--b) 50% 100%); box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .7); }
.replay .ruban .jt i { font: 800 9px/1 system-ui, sans-serif; color: var(--cl-plaque-txt); background: var(--cl-plaque); border-radius: 3px; padding: 1px 2px; }
.replay .ruban .jt.moi { z-index: 3; width: 28px; height: 28px; box-shadow: 0 0 0 2.5px var(--or), 0 0 10px var(--or); }
.replay .ruban .jt.moi i { font-size: 10px; }
.replay .ruban .jt .toi { position: absolute; top: 27px; left: 50%; transform: translateX(-50%); padding: 0 4px; border-radius: 4px; background: var(--or); color: var(--cl-toi-txt);
  font: 800 9.5px/12px system-ui, sans-serif; white-space: nowrap; }
/* classement : une ligne de 30 px par cheval ; 40 px avec la 2e ligne (écurie, œil « regarde ») des chevaux d'autres joueurs */
.replay .ordre.cl { flex: none; height: var(--cl-h, auto); min-height: 0; overflow: hidden; padding: 2px 0 env(safe-area-inset-bottom); font-size: 15px; }
.replay .cl .l { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 9px; border-left: 3px solid transparent; }
.replay .cl .l:nth-child(even) { background: var(--cl-pair); }
.replay .cl .l.j { height: 40px; }
.replay .cl .l .r { flex: none; width: 20px; text-align: center; font-weight: 800; color: var(--doux); }
.replay .cl .l.p1 .r { color: var(--or); }
.replay .cl .l.p2 .r { color: var(--cl-argent); }
.replay .cl .l.p3 .r { color: var(--cl-bronze); }
.replay .cl .l .nom { flex: 1; min-width: 0; font-size: 15px; line-height: 17px; }
.replay .cl .l .l1 { display: flex; align-items: center; gap: 4px; white-space: nowrap; min-width: 0; }
.replay .cl .l .l1 .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.replay .cl .l .l1 > :not(.nm) { flex: none; }
.replay .cl .l .drap { width: 16px; height: 12px; vertical-align: -1px; }
.replay .cl .l .cs { font-size: 11px; }
.replay .cl .l .s2 { display: flex; align-items: center; gap: 5px; margin-top: 1px; font-size: 11.5px; line-height: 13px; color: var(--doux); white-space: nowrap; overflow: hidden; }
.replay .cl .s2 .ecu { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.replay .cl .s2 .oeil { flex: none; width: 14px; height: 14px; color: var(--cl-oeil); }
.replay .cl .s2 em { flex: none; font-style: normal; font-size: 10.5px; color: var(--cl-oeil); }
.replay .cl .l .fl { flex: none; width: 10px; text-align: center; }
.replay .cl .l .ec { flex: none; min-width: 58px; text-align: right; font-size: 13px; color: var(--doux); white-space: nowrap; font-variant-numeric: tabular-nums; }
.replay .cl .l.p1 .fl + .ec { color: var(--or); font-weight: 700; }
.replay .cl .l .cl-gain { flex: none; min-width: 54px; text-align: right; font-size: 13.5px; font-weight: 800; color: var(--or); white-space: nowrap; }
.replay .cl .l .cl-gain .ico-img { width: 15px; height: 15px; vertical-align: -3px; }
.replay .cl .l.moi { background: var(--moi); border-left-color: var(--or); }
.replay .cl .l.moi .nom, .replay .cl .l.moi .r { color: var(--or); font-weight: 800; }
.replay .cl .sep { height: 0; margin: 0 12px; border-top: 1px dashed var(--ligne); }
.replay .cl .autres { display: flex; align-items: center; justify-content: center; height: 34px; margin: 0 12px; color: var(--doux); font-size: 13px; font-weight: 600;
  border-top: 1px solid var(--ligne); cursor: pointer; -webkit-tap-highlight-color: transparent; }
/* « tout le classement » : fenêtre sur le bas de l'écran (✕ ou bouton retour d'Android) */
.replay .cl-tout { position: absolute; left: 0; right: 0; bottom: 0; max-height: 72%; z-index: 8; display: flex; flex-direction: column; background: var(--cl-tout);
  border-top: 1px solid var(--ligne); border-radius: 16px 16px 0 0; box-shadow: 0 -10px 30px rgba(0, 0, 0, .55); padding-bottom: env(safe-area-inset-bottom); }
.replay .cl-tout[hidden] { display: none; }
.replay .cl-tout .cl-h { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 6px 14px; border-bottom: 1px solid var(--ligne); }
.replay .cl-tout .cl-l { flex: 1 1 auto; overflow-y: auto; padding: 2px 0 8px; }
/* paysage : 3D à gauche (ruban en verre fumé en bas), « Ma course » + classement à droite, qui défile si besoin */
@media (orientation: landscape) and (max-height: 560px) {
  .replay.cl3d .corps { display: flex; flex: 1 1 0; min-height: 0; }
  .replay.cl3d .scene3d { flex: 1 1 auto; min-height: 0; }
  .replay.cl3d .cote { display: flex; flex-direction: column; flex: 0 0 min(320px, 40%); min-width: 0; overflow-y: auto; border-left: 1px solid var(--ligne); }
  .replay.cl3d .ordre.cl { height: auto; overflow: visible; }
  .replay.cl3d .scene3d > .ruban { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 2; margin: 0; height: 48px; background: var(--cl-verre);
    border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; }
  .replay.cl3d .scene3d > .ruban .rb-piste { left: 10px; right: 36px; top: 22px; }
  .replay.cl3d .scene3d > .ruban .rb-fin { right: 10px; top: 12px; }
  .replay.cl3d .scene3d > .ruban .rb-cap { left: 10px; right: 40px; bottom: 3px; }
  .replay.cl3d .scene3d > .ruban .jt { top: 23px; margin-left: 10px; }
  .replay.cl3d .comm { bottom: 64px; }
  .replay.cl3d.crav-sur .scene3d > .cravs { bottom: 64px; }
  .replay.cl3d .emo-b { bottom: 122px; }
  .replay.cl3d .emo-plateau { bottom: 178px; }
  .replay.cl3d .mac-haut { height: 46px; padding: 4px 10px; gap: 8px; }
  .replay.cl3d .mac .cq.gr { width: 30px; height: 30px; }
  .replay.cl3d .mac .q1 b { font-size: 14px; }
  .replay.cl3d .mac .duel { font-size: 11.5px; }
  .replay.cl3d .mac .rang b { font-size: 20px; }
  .replay.cl3d .cl .l { height: 28px; padding: 0 8px 0 6px; gap: 6px; }
  .replay.cl3d .cl .l.j { height: 36px; }
  .replay.cl3d .cl .l .nom { font-size: 13.5px; line-height: 15px; }
  .replay.cl3d .cl .l .s2 { font-size: 10.5px; line-height: 12px; }
  .replay.cl3d .cl .cq { width: 22px; height: 22px; }
  .replay.cl3d .cl .autres { height: 28px; }
}
