/* lite.css : correctifs v207 (chargé en dernier)
   1) pseudo du chat lisible  2) mode éco qui n'efface plus les pages  3) moins de batterie */

/* ---------- 1) Chat : le pseudo (avec avatar, badge, titre) ne s'écrase plus à 1 lettre par ligne ---------- */
.chatHead { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; }
.chatHead .chatName { display: inline-flex; flex: 0 1 auto; min-width: 0; max-width: 100%; }
.chatHead .nm,
.chatList .nm { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; min-width: 0; max-width: 100%; writing-mode: horizontal-tb; }
.chatList .nmText,
.chatList .nmStaff { white-space: nowrap; word-break: normal; overflow-wrap: normal; hyphens: none; }
.chatList .nmTitle { white-space: nowrap; flex: 0 0 auto; word-break: normal; overflow-wrap: normal; }
.chatList .nmAv { flex: 0 0 auto; }
.chatHead .chatTime { white-space: nowrap; margin-left: auto; }
.chatMsg p { overflow-wrap: anywhere; word-break: normal; margin: 2px 0 0; }

/* ---------- 2) Mode éco : plus d'animations, mais le contenu est TOUJOURS visible ---------- */
/* Les animations vont directement à leur état final (au lieu d'être figées au début, ce qui laissait tout invisible) */
html.eco body :not(#packZone):not(#packZone *):not(#reveal):not(#reveal *),
html.eco body :not(#packZone):not(#packZone *):not(#reveal):not(#reveal *)::before,
html.eco body :not(#packZone):not(#packZone *):not(#reveal):not(#reveal *)::after {
  animation-duration: 0.001s !important;
  animation-delay: 0s !important;
  animation-iteration-count: 1 !important;
  animation-fill-mode: both !important;
  transition-duration: 0s !important;
  transition-delay: 0s !important;
  scroll-behavior: auto !important;
}
/* Sécurité : si un autre fichier coupe les animations (animation: none), le contenu reste affiché */
html.eco body, html.eco main, html.eco .view:not([hidden]),
html.eco #reveal, html.eco #deck, html.eco .deck, html.eco .dcard,
html.eco .dcard .back, html.eco .dcard .front, html.eco .dcard .front *,
html.eco #packZone, html.eco #pack, html.eco #recap, html.eco #recap *,
html.eco .modal:not([hidden]), html.eco .modalBox, html.eco .modalBox *,
html.eco img { visibility: visible !important; content-visibility: visible !important; }
html.eco body, html.eco main, html.eco .view:not([hidden]), html.eco #reveal, html.eco #deck,
html.eco .dcard .back, html.eco .dcard .front, html.eco .dcard .front *,
html.eco #recap, html.eco #recap *, html.eco .modalBox, html.eco .modalBox *, html.eco img { opacity: 1 !important; }
html.eco .dcard:not([style*="opacity: 0"]) { opacity: 1 !important; }
html.eco main { display: block !important; }

/* Booster : « Chargement… » affiché sur la carte retournée tant que sa photo n'est pas arrivée */
.dcard .front .ldgTxt { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px; font-weight: 700; font-size: 15px; color: #fff; background: rgba(15,15,25,.82); border-radius: inherit; pointer-events: none; }

/* Dos de cartes affichés avant l'arrivée des cartes : « Chargement… » au clic */
.ldgDeck { position: absolute; left: 50%; bottom: -44px; transform: translateX(-50%); z-index: 20; padding: 8px 16px; border-radius: 999px; background: rgba(15,15,25,.88); color: #fff; font-weight: 700; font-size: 15px; white-space: nowrap; pointer-events: none; }

/* Dos de carte : couleur de secours, jamais de « vide » même si l'image du dos n'est pas encore arrivée */
.dcard .back { background-color: #1c2150; }
/* Garde-fou (ajouté par le script si les cartes restaient invisibles) */
.deck.nofx .dcard:not([style*="opacity: 0"]) { opacity: 1 !important; visibility: visible !important; animation: none !important; }
.deck.nofx .dcard .back { opacity: 1 !important; visibility: visible !important; animation: none !important; }

/* Fiche d'une carte : « Chargement… » tant que la photo n'est pas arrivée */
.big .art { position: relative; }
.big .art .ldgImg { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; color: #fff; background: rgba(15,15,25,.55); pointer-events: none; }

/* ---------- 3) Batterie : plus de flou temps réel (très coûteux sur téléphone) ni d'animations infinies de décor ---------- */
@media (hover: none), (max-width: 820px) {
  *, *::before, *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  body *::before, body *::after { animation-iteration-count: 1 !important; }
}
