/*
 * Zappennui — la Collection (succès), les classements et les profils.
 * Mêmes jetons que site.css (papier, encre, jaune, bleu, vert, ombres franches), avec des valeurs de secours :
 * les annonces et les insignes s'affichent aussi dans les jeux ouverts seuls, qui ne chargent pas site.css.
 *
 * Les paliers sont des cubes à lettres : Étincelle (papier), Éclair (jaune), Foudre (bleu), Ennui zappé (vert, le E
 * partagé du logo). Une marque dans le coin (étincelle, éclair, double éclair, grille) les distingue aussi sans couleur.
 */
.insigne, .zap-annonces, .zap-dialogue, .zc, .zc-resume, .pastille-palier {
  --z-papier: var(--papier, #f5efe2);
  --z-papier-2: var(--papier-2, #ece3cf);
  --z-papier-3: var(--papier-3, #e1d5bb);
  --z-carte: var(--carte, #fffbf2);
  --z-encre: var(--encre, #1d1a16);
  --z-encre-2: var(--encre-2, #51483e);
  --z-encre-3: var(--encre-3, #6f6458);
  --z-bleu: var(--bleu, #2348b5);
  --z-bleu-clair: var(--bleu-clair, #dfe6f8);
  --z-jaune: var(--jaune, #ffc83d);
  --z-jaune-clair: var(--jaune-clair, #ffeab0);
  --z-vert: var(--vert, #1d8259);
  --z-rouge: var(--rouge, #b3261e);
  --z-police: var(--police, 'Bricolage Grotesque', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif);
}

/* ---------- Insignes ---------- */
.insigne {
  --t: 56px;
  position: relative; flex: none;
  display: inline-grid; place-items: center;
  width: var(--t); height: var(--t);
  border: 2px solid var(--z-encre); border-radius: calc(var(--t) * 0.2);
  box-shadow: 0 calc(var(--t) * 0.07) 0 var(--z-encre);
  background: var(--z-carte); color: var(--z-encre);
}
.insigne-s { --t: 40px; }
.insigne-l { --t: 64px; }
.insigne-xl { --t: 84px; }
.insigne .picto { width: 56%; height: 56%; }
.insigne-coin {
  position: absolute; top: calc(var(--t) * -0.14); right: calc(var(--t) * -0.14);
  width: calc(var(--t) * 0.42); height: calc(var(--t) * 0.42); min-width: 18px; min-height: 18px;
  display: grid; place-items: center;
  background: var(--z-carte); border: 2px solid var(--z-encre); border-radius: 50%;
}
.insigne-coin .marque-palier { width: 62%; height: 62%; }
.insigne.p-etincelle { background: var(--z-carte); }
.insigne.p-etincelle .insigne-coin { color: #b57800; }
.insigne.p-eclair { background: var(--z-jaune); }
.insigne.p-eclair .insigne-coin { color: var(--z-encre); }
.insigne.p-foudre { background: var(--z-bleu); color: var(--z-carte); }
.insigne.p-foudre .insigne-coin { background: var(--z-jaune); color: var(--z-encre); }
.insigne.p-zappe { background: var(--z-vert); color: var(--z-carte); outline: 3px solid var(--z-jaune); outline-offset: 2px; }
.insigne.p-zappe .insigne-coin { color: var(--z-vert); }
.insigne.e-verrou, .insigne.e-secret {
  background: var(--z-papier-2); color: var(--z-encre-3); border-style: dashed; box-shadow: none; outline: none;
}
.insigne.e-verrou .picto { opacity: .6; }
.insigne.e-verrou .insigne-coin, .insigne.e-secret .insigne-coin { background: var(--z-papier); color: var(--z-encre-3); border-style: dashed; }

.pastille-palier {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px 3px 6px; border: 2px solid var(--z-encre); border-radius: 999px;
  font-weight: 800; font-size: .88rem; background: var(--z-carte); color: var(--z-encre); white-space: nowrap;
}
.pastille-palier .marque-palier { width: 16px; height: 16px; }
.pastille-palier small { font-weight: 700; color: var(--z-encre-2); }
.pastille-palier.p-etincelle .marque-palier { color: #b57800; }
.pastille-palier.p-eclair { background: var(--z-jaune); }
.pastille-palier.p-foudre { background: var(--z-bleu); color: var(--z-carte); }
.pastille-palier.p-foudre small { color: var(--z-bleu-clair); }
.pastille-palier.p-foudre .marque-palier { color: var(--z-jaune); }
.pastille-palier.p-zappe { background: var(--z-vert); color: var(--z-carte); }
.pastille-palier.p-zappe small { color: #d8f0e4; }

/* ---------- Annonces ---------- */
.zap-annonces {
  position: fixed; z-index: 2147483000; left: 50%; transform: translateX(-50%);
  top: calc(env(safe-area-inset-top, 0px) + var(--zap-annonces-haut, 12px));
  width: min(440px, calc(100vw - 24px));
  display: grid; gap: 8px; pointer-events: none;
}
@media (min-width: 900px) {
  /* Sur grand écran, dans le coin : les annonces ne cachent pas l'écran de fin des jeux, centré. */
  .zap-annonces { left: auto; right: 16px; transform: none; width: 380px; }
}
@media (max-width: 599px) {
  /* Sur téléphone : une annonce à la fois (voir annonces.js), plus compacte. */
  .zap-annonce { gap: 10px; padding: 8px 40px 8px 10px; }
  .zap-annonce .insigne-l { --t: 44px; }
  .zap-annonce-sur { font-size: .74rem; }
  .zap-annonce-titre { font-size: 1rem; }
}
.zap-annonce {
  position: relative; pointer-events: auto;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 44px 10px 12px;
  background: var(--z-carte); color: var(--z-encre);
  border: 2px solid var(--z-encre); border-radius: 12px; box-shadow: 4px 4px 0 var(--z-encre);
  font-family: var(--z-police); line-height: 1.25;
  animation: zap-arrive .3s cubic-bezier(.2, .9, .3, 1.25) both;
}
.zap-annonce.part { animation: zap-part .2s ease-in forwards; }
.zap-annonce p { margin: 0; }
.zap-annonce-sur { display: flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 700; color: var(--z-encre-2); letter-spacing: .01em; }
.zap-annonce-sur .marque-palier { width: 14px; height: 14px; }
.zap-annonce-titre { font-weight: 800; font-size: 1.08rem; font-stretch: 90%; }
.zap-annonce-message { font-weight: 650; font-size: .98rem; }
.zap-annonce.succes .insigne { animation: zap-tombe .55s .06s cubic-bezier(.3, 1.6, .5, 1) both; }
.zap-annonce.succes .insigne::after {
  /* l'étincelle : six points qui jaillissent du cube, une seule fois */
  content: ''; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%;
  background: var(--z-jaune);
  box-shadow: 0 -38px 0 var(--z-jaune), 33px -19px 0 var(--z-bleu), 33px 19px 0 var(--z-jaune), 0 38px 0 var(--z-vert), -33px 19px 0 var(--z-jaune), -33px -19px 0 var(--z-bleu);
  opacity: 0; animation: zap-etincelle .6s .32s ease-out;
}
.zap-annonce.succes.final { background: #effaf4; }
.zap-annonce.message.ok { border-left-width: 8px; border-left-color: var(--z-vert); }
.zap-annonce.message.souci { border-left-width: 8px; border-left-color: var(--z-rouge); }
.zap-annonce-picto { display: grid; place-items: center; width: 34px; height: 34px; flex: none; }
.zap-annonce-picto .picto { width: 26px; height: 26px; }
.zap-annonce-fermer {
  position: absolute; top: 6px; right: 6px; width: 32px; height: 32px;
  display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--z-encre-2);
  font: 800 1.3rem/1 var(--z-police); cursor: pointer;
}
.zap-annonce-fermer:hover { background: var(--z-papier-2); color: var(--z-encre); }
.zap-annonce-fermer:focus-visible { outline: 3px solid var(--z-bleu); outline-offset: 1px; }
@keyframes zap-arrive { from { opacity: 0; transform: translateY(-14px) scale(.97); } }
@keyframes zap-part { to { opacity: 0; transform: translateY(-10px); } }
@keyframes zap-tombe { from { transform: translateY(-26px) rotate(-12deg); opacity: 0; } 60% { opacity: 1; } }
@keyframes zap-etincelle { 0% { opacity: 1; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.25); } }
@media (prefers-reduced-motion: reduce) {
  .zap-annonce, .zap-annonce.part, .zap-annonce.succes .insigne { animation-duration: .01ms; animation-delay: 0s; }
  .zap-annonce.succes .insigne::after { display: none; }
}
.vh {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------- Fenêtres (profil, signalement) ---------- */
.zap-dialogue {
  width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); padding: 0;
  border: 2px solid var(--z-encre); border-radius: 16px; box-shadow: 6px 6px 0 var(--z-encre);
  background: var(--z-carte); color: var(--z-encre); font-family: var(--z-police);
}
.zap-dialogue::backdrop { background: rgba(29, 26, 22, .45); }
.zap-dialogue-corps { position: relative; padding: clamp(18px, 4vw, 28px); display: grid; gap: 14px; }
.zap-dialogue h2 { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 1.8rem); padding-right: 40px; }
.zap-dialogue h2:focus, .zap-dialogue h3:focus { outline: none; }
.zap-x {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; display: grid; place-items: center;
  border: 2px solid var(--z-encre); border-radius: 10px; background: var(--z-carte); font: 800 1.4rem/1 var(--z-police); cursor: pointer;
}
.zap-form { display: grid; gap: 8px; }
.zap-form label { font-weight: 800; }
.zap-form input:not([type=checkbox]), .zap-form textarea, .zap-form select {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 2px solid var(--z-encre); border-radius: 10px;
  background: #fff; font: inherit; font-size: 1.05rem;
}
.zap-form textarea { min-height: 90px; resize: vertical; }
.zap-case { display: flex; align-items: flex-start; gap: 10px; font-weight: 650 !important; cursor: pointer; }
.zap-case input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--z-bleu); flex: none; }
.zap-aide { font-size: .9rem; color: var(--z-encre-2); }
.zap-erreur { padding: 10px 12px; border-radius: 10px; background: var(--rouge-clair, #fdecea); color: var(--z-rouge); font-weight: 700; }
.zap-ok:empty { display: none; }
.zap-ok { font-weight: 700; color: var(--z-vert); }
.zap-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.zap-actions-col { flex-direction: column; align-items: stretch; }
.zap-ligne { display: flex; gap: 8px; }
.zap-ligne input { flex: 1; min-width: 0; }
.zap-details { border: 2px solid var(--z-papier-3); border-radius: 12px; padding: 10px 14px; background: var(--z-papier); }
.zap-details summary { font-weight: 800; cursor: pointer; }
.zap-details ul { margin: 8px 0 0 18px; display: grid; gap: 6px; font-size: .95rem; }
.zap-details[open] .zap-actions { margin-top: 10px; }
.zap-code { display: grid; gap: 8px; padding: 12px 14px; border: 2px dashed var(--z-encre-3); border-radius: 12px; background: var(--z-jaune-clair); }
.zap-code-valeur code { display: block; padding: 8px 10px; border-radius: 8px; background: #fff; font-size: .9rem; word-break: break-all; user-select: all; }
.zap-copie { font-weight: 700; color: var(--z-vert); }
.zap-code .zap-copier { justify-self: start; }
.zap-lien { border: 0; padding: 0; background: none; color: var(--z-bleu); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.zap-lien-bas { font-size: .95rem; }
.zap-danger { --b-fond: var(--rouge-clair, #fdecea); color: var(--z-rouge) !important; }

/* ---------- Pages Collection, Classements, Joueur (gabarit commun : .zc) ---------- */
.zc-bandeau {
  border-bottom: var(--trait, 2px) solid var(--z-encre);
  background-color: var(--z-papier);
  background-image: linear-gradient(rgba(35, 72, 181, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(35, 72, 181, .07) 1px, transparent 1px);
  background-size: 22px 22px;
}
.zc-bandeau .conteneur { padding-block: clamp(24px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.zc-choix { grid-template-columns: minmax(0, 1fr); }
.zc-tete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; }
.zc-tete > div:first-child { flex: 1 1 320px; min-width: 0; }
.zc-tete h1 { font-size: clamp(2.2rem, 1.2rem + 4vw, 3.8rem); font-stretch: 80%; letter-spacing: -0.025em; }
.zc-tete .chapo { max-width: 52ch; margin-top: 10px; color: var(--z-encre-2); font-size: clamp(1.02rem, .98rem + .3vw, 1.15rem); }
.zc-profil { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.zc-profil-nom { font-weight: 800; }

.zc-tension {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: center;
  padding: 16px 18px; background: var(--z-carte); border: 2px solid var(--z-encre); border-radius: 16px; box-shadow: 5px 5px 0 var(--z-encre);
}
.zc-volts { grid-row: span 2; font-weight: 800; font-stretch: 80%; font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem); line-height: .9; letter-spacing: -0.02em; }
.zc-volts small { font-size: .45em; font-stretch: 100%; margin-left: 2px; }
.zc-niveau { font-weight: 800; font-size: 1.15rem; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.zc-niveau span { font-weight: 650; font-size: .95rem; color: var(--z-encre-2); }
.zc-barre {
  position: relative; display: block; height: 14px; border: 2px solid var(--z-encre); border-radius: 999px; background: var(--z-papier-2); overflow: hidden;
}
.zc-barre > i { position: absolute; inset: 0 auto 0 0; width: calc(var(--part, 0) * 100%); background: linear-gradient(90deg, var(--z-jaune) 0 55%, var(--z-vert) 55% 62%, var(--z-bleu) 62%); background-size: max(100%, 260px) 100%; }
.zc-barre.zc-barre-jeu > i { background: var(--j-accent, var(--z-bleu)); }
.zc-paliers { display: flex; flex-wrap: wrap; gap: 8px; }

.zc-section { padding-block: clamp(28px, 4vw, 48px); }
.zc-section > h2, .zc-titre-section { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); margin-bottom: 14px; }
.zc-intro { color: var(--z-encre-2); max-width: 62ch; margin-bottom: 16px; }

.zc-recents { display: flex; gap: 14px; overflow-x: auto; padding: 8px 4px 14px; scroll-snap-type: x proximity; list-style: none; }
.zc-recents li { flex: 0 0 auto; width: 150px; display: grid; justify-items: center; gap: 8px; text-align: center; scroll-snap-align: start; }
.zc-recents strong { font-size: .95rem; line-height: 1.15; }
.zc-recents small { color: var(--z-encre-2); font-size: .82rem; }

.zc-vide {
  padding: 18px 20px; border: 2px dashed var(--z-encre-3); border-radius: 14px; background: var(--z-carte); color: var(--z-encre-2);
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
}

/* Collection d'un jeu */
.zc-jeux { display: grid; gap: 22px; list-style: none; }
.zc-jeu {
  background: var(--j-carte, var(--z-carte)); border: var(--j-bord, 2px) solid var(--j-encre, var(--z-encre));
  border-radius: var(--j-rayon, 16px); box-shadow: var(--j-ombre, 5px 5px 0 var(--z-encre)); color: var(--j-encre, var(--z-encre));
}
.zc-jeu > summary { list-style: none; cursor: pointer; padding: 16px 18px; display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center; }
.zc-jeu > summary::-webkit-details-marker { display: none; }
.zc-jeu > summary:focus-visible { outline: 3px solid var(--z-bleu); outline-offset: 3px; border-radius: var(--j-rayon, 16px); }
.zc-jeu-titre { font-family: var(--j-police, inherit); font-weight: var(--j-graisse, 800); font-size: clamp(1.3rem, 1.05rem + 1vw, 1.7rem); line-height: 1.05; }
.zc-jeu-chiffres { font-weight: 800; text-align: right; white-space: nowrap; }
.zc-jeu-chiffres small { display: block; font-weight: 650; color: var(--j-discret, var(--z-encre-2)); font-size: .85rem; }
.zc-jeu .zc-barre { grid-column: 1 / -1; }
.zc-ouvrir { grid-column: 1 / -1; font-size: .9rem; font-weight: 700; color: var(--j-discret, var(--z-encre-2)); display: flex; align-items: center; gap: 6px; }
.zc-ouvrir::before { content: ''; width: 0; height: 0; border-left: 7px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; transition: transform .15s; }
.zc-jeu[open] .zc-ouvrir::before { transform: rotate(90deg); }
.zc-jeu-corps { padding: 0 18px 18px; display: grid; gap: 14px; }
.zc-liens { display: flex; flex-wrap: wrap; gap: 10px 18px; font-weight: 700; }
.zc-liens a { color: var(--j-accent, var(--z-bleu)); }

.zc-succes { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; }
.zc-s {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center;
  padding: 12px 14px; background: var(--z-carte); color: var(--z-encre); border: 2px solid var(--z-papier-3); border-radius: 12px;
}
.zc-s.obtenu { border-color: var(--z-encre); }
.zc-s .insigne { grid-row: span 3; margin: 6px 4px 6px 0; }
.zc-s-titre { font-weight: 800; line-height: 1.15; }
.zc-s-texte { font-size: .93rem; color: var(--z-encre-2); line-height: 1.35; }
.zc-s-pied { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: .82rem; font-weight: 700; color: var(--z-encre-3); }
.zc-s-pied .rarete { color: var(--z-bleu); }
.zc-s-progres { display: flex; align-items: center; gap: 8px; }
.zc-s-progres .zc-barre { flex: 1; height: 10px; min-width: 60px; }
.zc-s.secret .zc-s-titre { color: var(--z-encre-2); font-style: italic; }
.zc-secrets { font-weight: 700; color: var(--j-discret, var(--z-encre-2)); }
.zc-filtres { display: flex; flex-wrap: wrap; gap: 8px; }

.zc-puces { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.zc-puce {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px;
  border: 2px solid var(--z-encre); border-radius: 999px; background: var(--z-carte); color: var(--z-encre);
  font: inherit; font-weight: 750; font-size: .95rem; cursor: pointer; text-decoration: none;
}
.zc-puce[aria-pressed="true"], .zc-puce[aria-current="true"] { background: var(--z-encre); color: var(--z-carte); }
.zc-puce .marque-palier { width: 16px; height: 16px; flex: none; color: var(--z-vert); }
.zc-puce[aria-current="true"] .marque-palier { color: var(--z-jaune); }
.zc-jeux-onglets li { flex: none; }
.zc-jeux-onglets .zc-puce { white-space: nowrap; }
.zc-puce:focus-visible { outline: 3px solid var(--z-bleu); outline-offset: 3px; }
.zc-puce .num { font-size: .8rem; opacity: .75; }

.zc-legende { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; list-style: none; }
.zc-legende li { display: flex; gap: 12px; align-items: center; padding: 12px; background: var(--z-carte); border: 2px solid var(--z-encre); border-radius: 12px; }
.zc-legende p { font-size: .92rem; color: var(--z-encre-2); }
.zc-niveaux { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin-top: 10px; font-size: .9rem; }
.zc-niveaux li { padding: 4px 10px; border: 2px solid var(--z-papier-3); border-radius: 999px; background: var(--z-carte); }
.zc-niveaux li.ici { border-color: var(--z-encre); font-weight: 800; background: var(--z-jaune-clair); }

.zc-reglages { display: grid; gap: 12px; max-width: 640px; padding: 16px 18px; background: var(--z-carte); border: 2px solid var(--z-encre); border-radius: 14px; }

/* Classements */
.zc-choix { display: grid; gap: 12px; }
.zc-choix-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.zc-choix-ligne > span { font-weight: 800; font-size: .9rem; color: var(--z-encre-2); min-width: 7.5em; }
.zc-jeux-onglets { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; list-style: none; scrollbar-width: thin; }
.zc-jour { display: inline-flex; align-items: center; gap: 6px; }
.zc-jour button { width: 40px; height: 40px; border: 2px solid var(--z-encre); border-radius: 10px; background: var(--z-carte); font: 800 1.1rem/1 var(--z-police); cursor: pointer; }
.zc-jour button[disabled] { opacity: .4; cursor: default; }
.zc-regle {
  display: grid; gap: 8px; padding: 14px 16px; background: var(--z-carte); border: 2px solid var(--z-encre); border-radius: 14px;
}
.zc-regle p { color: var(--z-encre-2); }
.zc-verif { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: .88rem; padding: 3px 10px; border-radius: 999px; border: 2px solid currentColor; width: fit-content; }
.zc-verif.rejeu { color: var(--z-vert); }
.zc-verif.mixte { color: #8a5a00; }
.zc-verif.controle, .zc-verif.declare { color: var(--z-encre-2); }
.zc-verif svg { width: 15px; height: 15px; }
.zc-maj { font-size: .88rem; color: var(--z-encre-3); }

.zc-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--z-carte); border: 2px solid var(--z-encre); border-radius: 14px; overflow: hidden; }
.zc-table th, .zc-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--z-papier-3); vertical-align: middle; }
.zc-table thead th { background: var(--z-encre); color: var(--z-carte); font-size: .85rem; letter-spacing: .02em; }
.zc-table tbody tr:last-child td { border-bottom: 0; }
.zc-table .rang { width: 4.5em; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.zc-table .rang .egal { display: block; font-size: .72rem; font-weight: 700; color: var(--z-encre-3); }
.zc-table .valeur { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.zc-table .date { color: var(--z-encre-3); font-size: .88rem; white-space: nowrap; }
.zc-table .act { width: 1%; white-space: nowrap; }
.zc-table tr.moi td { background: var(--z-jaune-clair); }
.zc-table tr.moi .pseudo::after { content: ' (toi)'; font-weight: 650; color: var(--z-encre-2); }
.zc-table tr.podium-1 .rang { color: #9a6b00; }
.zc-table .pseudo a { color: inherit; font-weight: 750; text-decoration-color: var(--z-papier-3); }
.zc-table .depart { display: block; font-size: .78rem; font-weight: 650; color: var(--z-encre-3); }
.zc-signal { border: 0; background: none; padding: 6px; border-radius: 8px; color: var(--z-encre-3); cursor: pointer; }
.zc-signal:hover { color: var(--z-rouge); background: var(--z-papier-2); }
.zc-signal svg { width: 18px; height: 18px; display: block; }
.zc-separe td { text-align: center; color: var(--z-encre-3); font-weight: 800; letter-spacing: .3em; padding: 4px; background: var(--z-papier); }

/* L'équipe du site (EQUIPE dans vues.js) : pseudo en lettres de titre, surligné d'or, et son badge. */
.zc-nom-equipe {
  font-weight: 850; font-stretch: 78%; letter-spacing: .01em;
  background: linear-gradient(transparent 56%, #ffd23f 56%, #f2b705 92%, transparent 92%);
  padding: 0 .12em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.zc-badge-equipe {
  display: inline-block; margin-left: .45em; padding: .06em .6em; vertical-align: .14em;
  font-size: .66em; font-weight: 800; font-style: normal; letter-spacing: .06em; text-transform: uppercase; line-height: 1.5; white-space: nowrap;
  color: var(--z-encre); background: linear-gradient(135deg, #fff3c4 0%, #ffd23f 45%, #e3a008 100%);
  border: 1.5px solid var(--z-encre); border-radius: 999px; box-shadow: 0 1.5px 0 var(--z-encre);
}
h1 .zc-badge-equipe { font-size: .3em; vertical-align: .6em; letter-spacing: .08em; }

/* Les fantômes (fantomes dans vues.js) : scores d'exemple, sans rang. */
.zc-table tr.fantome td { color: var(--z-encre-2); font-style: italic; background: repeating-linear-gradient(-45deg, transparent 0 7px, rgba(29, 26, 22, .025) 7px 14px); }
.zc-table tr.fantome .rang .picto { width: 22px; height: 22px; display: block; opacity: .75; }
.zc-table tr.fantome .pseudo { font-weight: 700; }
.zc-badge-fantome {
  display: inline-block; margin-left: .5em; padding: 0 .5em; vertical-align: .1em;
  font-size: .72em; font-weight: 700; font-style: normal; white-space: nowrap;
  color: var(--z-encre-2); border: 1.5px dashed currentColor; border-radius: 999px;
}
.zc-vide-fantomes { margin-top: 14px; }
.zc-fantome-suivant { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: .88rem; color: var(--z-encre-2); }
.zc-fantome-suivant .picto { width: 18px; height: 18px; flex: none; }
.zc-pages { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-top: 12px; }
.zc-etat { padding: 18px; text-align: center; color: var(--z-encre-2); }
.zc-etat.souci { color: var(--z-rouge); font-weight: 700; }

/* Profil public */
.zc-carte-joueur { display: grid; gap: 10px; }
.zc-meilleurs { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.zc-meilleurs li { padding: 12px 14px; background: var(--z-carte); border: 2px solid var(--z-encre); border-radius: 12px; display: grid; gap: 2px; }
.zc-meilleurs strong { font-size: 1.2rem; }
.zc-meilleurs small { color: var(--z-encre-2); }

/* Résumé sur la fiche d'un jeu et dans la salle */
.zc-resume { display: grid; gap: 16px; padding: 18px; background: var(--z-carte); border: 2px solid var(--z-encre); border-radius: 16px; box-shadow: 5px 5px 0 var(--z-encre); color: var(--z-encre); }
.zc-resume-tete { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; align-items: baseline; }
.zc-resume-tete h2, .zc-resume-tete h3 { font-size: clamp(1.3rem, 1.1rem + .9vw, 1.7rem); }
.zc-rangee { display: flex; flex-wrap: wrap; gap: 14px 12px; list-style: none; }
.zc-mini-classement { list-style: none; display: grid; gap: 6px; counter-reset: none; }
.zc-mini-classement li { display: grid; grid-template-columns: 3.4em 1fr auto; gap: 8px; align-items: baseline; padding: 6px 10px; border-radius: 8px; background: var(--z-papier); }
.zc-mini-classement li.moi { background: var(--z-jaune-clair); }
.zc-mini-classement b { font-variant-numeric: tabular-nums; }
.zc-mini-classement .v { font-weight: 800; font-variant-numeric: tabular-nums; }
.zc-deux { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 18px; }

/* Panneau de la salle */
.zap-panneau { width: min(640px, calc(100vw - 16px)); }
.zap-panneau .zc-succes { grid-template-columns: 1fr; }
.zap-panneau .zc-s { padding: 10px 12px; }

@media (max-width: 560px) {
  .zc-tension { grid-template-columns: 1fr; }
  .zc-volts { grid-row: auto; }
  .zc-table .date, .zc-table th.date { display: none; }
  .zc-table th, .zc-table td { padding: 9px 8px; }
  .zc-choix-ligne > span { min-width: 100%; }
}
