﻿*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
/* pages du site : body à la hauteur du contenu, sinon l'en-tête collant (contenu dans body) sort de l'écran après une hauteur d'écran */
body:has(> #zHeader) { height: auto; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

:root {
  --z-bg: #071a15;
  --z-bg-2: #0a241d;
  --z-panel: #0e3329;
  --z-panel-2: #124236;
  --z-panel-3: #174f42;
  --z-line: #1e6455;
  --z-text: #eaf5f1;
  --z-mut: #93d8c5;
  --z-mut-2: #6daf9d;
  --z-acc: #35ffc1;
  --z-acc-2: #3dffb3;
  --z-gold: #ffc61a;
  --z-red: #ff5f6d;
  --z-blue: #5eb8ff;
  --z-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --z-fs-xs: 11px;
  --z-fs-sm: 13px;
  --z-fs-md: 15px;
  --z-fs-lg: 18px;
  --z-fs-xl: 24px;
  --z-fs-2xl: 32px;
  --z-fs-3xl: 44px;
  --z-sp-1: 4px;
  --z-sp-2: 8px;
  --z-sp-3: 12px;
  --z-sp-4: 16px;
  --z-sp-5: 24px;
  --z-sp-6: 32px;
  --z-sp-7: 48px;
  --z-r-sm: 6px;
  --z-r-md: 10px;
  --z-r-lg: 16px;
  --z-r-xl: 24px;
  --z-r-full: 999px;
  --z-sh-1: 0 2px 8px rgba(0,0,0,.25);
  --z-sh-2: 0 8px 24px rgba(0,0,0,.35);
  --z-sh-3: 0 16px 48px rgba(0,0,0,.5);
  --z-t-fast: .12s ease;
  --z-t-mid: .22s ease;
}

body {
  font-family: var(--z-font);
  font-size: var(--z-fs-md);
  color: var(--z-text);
  background: radial-gradient(1200px 800px at 20% -10%, #0d4433 0%, transparent 60%), radial-gradient(1000px 700px at 100% 100%, #0b3a2c 0%, transparent 55%), var(--z-bg);
  min-height: 100vh;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.z-app { display: grid; grid-template-rows: auto 1fr; min-height: 100vh; }
.z-main { max-width: 1400px; width: 100%; margin: 0 auto; padding: var(--z-sp-5) var(--z-sp-4) var(--z-sp-7); }

/* logo (aussi utilisé par la barre de table) */
.z-logo { display: flex; align-items: center; gap: var(--z-sp-2); font-weight: 900; font-size: var(--z-fs-lg); color: var(--z-text); letter-spacing: -.02em; }
.z-logo-z { position: relative; display: grid; place-items: center; width: 32px; height: 32px; font-weight: 900; font-size: 20px; color: var(--z-text); background: var(--z-panel-2); border-radius: var(--z-r-sm); }
.z-logo-z::after { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 2px; background: currentColor; transform: translateY(-50%); opacity: .9; }
.z-logo-text { color: var(--z-text); }
/* U11 : logo Zino (image) à la place du « Z » dessiné ; nom de fichier versionné (logo-zino-v1) */
img.z-logo-img, #zHeader img.z-logo-img { display: block; flex: none; object-fit: cover; padding: 0; background: #0b2418; box-shadow: 0 1px 6px rgba(0, 0, 0, .35); }

.z-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--z-sp-2); padding: var(--z-sp-2) var(--z-sp-4); border: none; border-radius: var(--z-r-md); font-weight: 800; font-size: var(--z-fs-sm); cursor: pointer; transition: all var(--z-t-fast); text-decoration: none; white-space: nowrap; }
.z-btn:hover { transform: translateY(-1px); }
.z-btn:active { transform: translateY(0); }
.z-btn-primary { background: linear-gradient(180deg, var(--z-acc), #10b981); color: var(--z-bg); box-shadow: 0 6px 18px rgba(53,255,193,.25); }
.z-btn-primary:hover { box-shadow: 0 8px 24px rgba(53,255,193,.4); }
.z-btn-gold { background: linear-gradient(180deg, var(--z-gold), #d97706); color: var(--z-bg); box-shadow: 0 6px 18px rgba(255,198,26,.25); }
.z-btn-ghost { background: transparent; color: var(--z-text); border: 1px solid var(--z-line); }
.z-btn-ghost:hover { background: var(--z-panel); }
.z-btn-danger { background: var(--z-red); color: #fff; }
.z-btn-lg { padding: var(--z-sp-3) var(--z-sp-5); font-size: var(--z-fs-md); }
.z-btn-sm { padding: var(--z-sp-1) var(--z-sp-3); font-size: var(--z-fs-xs); }

.z-card { background: var(--z-panel); border: 1px solid var(--z-line); border-radius: var(--z-r-lg); padding: var(--z-sp-5); box-shadow: var(--z-sh-1); }
.z-card-title { font-size: var(--z-fs-lg); font-weight: 800; margin-bottom: var(--z-sp-3); display: flex; align-items: center; justify-content: space-between; gap: var(--z-sp-3); }
.z-card-sub { font-size: var(--z-fs-sm); color: var(--z-mut); margin-bottom: var(--z-sp-4); }

.z-page-head { margin-bottom: var(--z-sp-5); }
.z-page-title { font-size: var(--z-fs-2xl); font-weight: 900; letter-spacing: -.02em; margin-bottom: var(--z-sp-2); }
.z-page-sub { color: var(--z-mut); font-size: var(--z-fs-md); }

.z-hero { position: relative; padding: var(--z-sp-7) var(--z-sp-6); border-radius: var(--z-r-xl); background: linear-gradient(135deg, var(--z-panel-3), var(--z-panel)); border: 1px solid var(--z-line); overflow: hidden; margin-bottom: var(--z-sp-6); }
.z-hero h1 { font-size: var(--z-fs-3xl); font-weight: 900; letter-spacing: -.03em; margin-bottom: var(--z-sp-3); }
.z-hero p { font-size: var(--z-fs-lg); color: var(--z-mut); margin-bottom: var(--z-sp-5); max-width: 600px; }
.z-hero-cta { display: flex; gap: var(--z-sp-3); flex-wrap: wrap; }

.z-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--z-sp-3); }
.z-grid-wide { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.z-tile { position: relative; display: flex; flex-direction: column; gap: var(--z-sp-2); padding: var(--z-sp-4); border-radius: var(--z-r-lg); background: var(--z-panel-2); border: 1px solid var(--z-line); transition: all var(--z-t-fast); cursor: pointer; min-height: 140px; text-decoration: none; color: inherit; }
.z-tile[hidden] { display: none; }   /* v9 : jeu fermé (data-game) */
.z-tile:hover { background: var(--z-panel-3); transform: translateY(-2px); box-shadow: var(--z-sh-2); }
.z-tile-art { height: 56px; display: grid; place-items: center; font-size: 42px; color: var(--z-acc); }
.z-tile-name { font-size: var(--z-fs-md); font-weight: 800; color: var(--z-text); }
.z-tile-desc { font-size: var(--z-fs-xs); color: var(--z-mut); line-height: 1.3; }
.z-tile-badge { position: absolute; top: var(--z-sp-2); left: var(--z-sp-2); font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: var(--z-r-full); background: rgba(255,198,26,.15); color: var(--z-gold); }
.z-tile-star { position: absolute; top: var(--z-sp-2); right: var(--z-sp-2); width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--z-r-full); background: transparent; border: none; cursor: pointer; color: var(--z-mut-2); font-size: 20px; transition: all var(--z-t-fast); }
.z-tile-star:hover, .z-tile-star.on { color: var(--z-gold); }

/* Sous-menus (23/10/2026) : <div class="z-scrollnav"><barre d'onglets>…</barre></div>
   une seule ligne qu'on fait glisser, collée sous l'en-tête au défilement ; fondu sur le bord qui cache encore des onglets
   (classes is-l / is-r) et onglet actif (.on, aria-current, .is-active) ramené au centre : fin de zheader.js */
:root { --z-header-h: 60px; }
@media (max-width: 767px) { :root { --z-header-h: 56px; } }
.z-scrollnav { position: sticky; top: var(--z-header-h); z-index: 90; padding: 6px 0; margin-bottom: 14px; background: var(--z-bg); }
.z-scrollnav > :first-child { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; max-width: 100%; margin-bottom: 0; }
.z-scrollnav > :first-child::-webkit-scrollbar { display: none; }
.z-scrollnav > :first-child > * { flex: none; white-space: nowrap; }
.z-scrollnav::before, .z-scrollnav::after { content: ""; position: absolute; z-index: 1; top: 6px; bottom: 6px; width: 40px; pointer-events: none; opacity: 0; transition: opacity var(--z-t-fast); }
.z-scrollnav::before { left: 0; background: linear-gradient(90deg, var(--z-bg) 15%, transparent); }
.z-scrollnav::after { right: 0; background: linear-gradient(270deg, var(--z-bg) 15%, transparent); }
.z-scrollnav.is-l::before, .z-scrollnav.is-r::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .z-scrollnav::before, .z-scrollnav::after { transition: none; } }

.z-chips { display: flex; gap: var(--z-sp-2); overflow-x: auto; padding-bottom: var(--z-sp-2); margin-bottom: var(--z-sp-4); scrollbar-width: none; }
.z-chips::-webkit-scrollbar { display: none; }
.z-chip { flex: none; padding: var(--z-sp-2) var(--z-sp-4); border-radius: var(--z-r-full); background: var(--z-panel); border: 1px solid var(--z-line); color: var(--z-mut); font-size: var(--z-fs-sm); font-weight: 700; cursor: pointer; transition: all var(--z-t-fast); }
.z-chip:hover { color: var(--z-text); }
.z-chip.on { background: var(--z-acc); color: var(--z-bg); border-color: var(--z-acc); }

.z-input, .z-select { width: 100%; padding: var(--z-sp-3) var(--z-sp-4); background: var(--z-bg-2); border: 1px solid var(--z-line); border-radius: var(--z-r-md); color: var(--z-text); font-size: var(--z-fs-md); transition: border-color var(--z-t-fast); }
.z-input:focus, .z-select:focus { outline: none; border-color: var(--z-acc); }
.z-label { display: block; font-size: var(--z-fs-sm); font-weight: 700; color: var(--z-mut); margin-bottom: var(--z-sp-2); }
.z-field { margin-bottom: var(--z-sp-4); }

.z-table { width: 100%; border-collapse: collapse; font-size: var(--z-fs-sm); }
.z-table th, .z-table td { padding: var(--z-sp-3); text-align: left; border-bottom: 1px solid var(--z-line); }
.z-table th { color: var(--z-mut); font-weight: 700; font-size: var(--z-fs-xs); text-transform: uppercase; letter-spacing: .05em; }
.z-table tr:hover td { background: rgba(53,255,193,.03); }

.z-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--z-r-full); font-size: var(--z-fs-xs); font-weight: 800; }
.z-badge-live { background: rgba(255,95,109,.15); color: var(--z-red); }
.z-badge-new { background: rgba(53,255,193,.15); color: var(--z-acc); }
.z-badge-hot { background: rgba(255,198,26,.15); color: var(--z-gold); }
.z-badge-info { background: rgba(94,184,255,.15); color: var(--z-blue); }

.z-modal-back { position: fixed; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(6px); z-index: 9000; display: none; place-items: center; padding: var(--z-sp-4); }
.z-modal-back.on { display: grid; }
.z-modal { background: var(--z-panel); border: 1px solid var(--z-line); border-radius: var(--z-r-lg); padding: var(--z-sp-5); max-width: 480px; width: 100%; box-shadow: var(--z-sh-3); }

.z-flex { display: flex; }
.z-between { justify-content: space-between; }
.z-center { align-items: center; }
.z-gap-1 { gap: var(--z-sp-1); }
.z-gap-2 { gap: var(--z-sp-2); }
.z-gap-3 { gap: var(--z-sp-3); }
.z-gap-4 { gap: var(--z-sp-4); }
.z-flex-wrap { flex-wrap: wrap; }
.z-mt-3 { margin-top: var(--z-sp-3); }
.z-mt-4 { margin-top: var(--z-sp-4); }
.z-mt-5 { margin-top: var(--z-sp-5); }
.z-mb-3 { margin-bottom: var(--z-sp-3); }
.z-mb-4 { margin-bottom: var(--z-sp-4); }
.z-mb-5 { margin-bottom: var(--z-sp-5); }
.z-muted { color: var(--z-mut); }
.z-small { font-size: var(--z-fs-sm); }
.z-bold { font-weight: 800; }
.z-tac { text-align: center; }
.z-hide { display: none !important; }

@media (max-width: 900px) {
  .z-main { padding: var(--z-sp-4) var(--z-sp-3) var(--z-sp-6); }
  .z-hero { padding: var(--z-sp-5) var(--z-sp-4); }
  .z-hero h1 { font-size: var(--z-fs-2xl); }
  .z-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}
@media (max-width: 480px) {
  .z-page-title { font-size: var(--z-fs-xl); }
  .z-grid { grid-template-columns: repeat(2, 1fr); gap: var(--z-sp-2); }
  .z-tile { min-height: 120px; padding: var(--z-sp-3); }
  .z-tile-art { height: 42px; font-size: 32px; }
  .z-tile-name { font-size: var(--z-fs-sm); }
  .z-tile-desc { display: none; }
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--z-bg-2); }
::-webkit-scrollbar-thumb { background: var(--z-panel-3); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--z-line); }

/* ==========================================================================
   BARRE DE TABLE (pour blackjack, poker, tournois)
   S'ajoute à zino.css pour coiffer les pages de jeux.
   ========================================================================== */
.z-table-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: rgba(7, 26, 21, .95);
  border-bottom: 1px solid var(--z-line);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 200;
  font-family: var(--z-font);
  color: var(--z-text);
}
.z-table-bar .z-logo-compact {
  font-size: 16px;
  gap: 6px;
  text-decoration: none;
  color: inherit;
}
.z-table-bar .z-logo-compact .z-logo-z {
  width: 26px; height: 26px; font-size: 16px;
}
.z-table-bar .z-logo-compact .z-logo-z::after {
  left: 5px; right: 5px;
}
.z-bar-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--z-panel);
  border: 1px solid var(--z-line);
  border-radius: var(--z-r-md);
  color: var(--z-mut);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all .12s ease;
}
.z-bar-back:hover { color: var(--z-text); background: var(--z-panel-2); }
.z-bar-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.z-bar-title b {
  font-size: 15px;
  font-weight: 800;
  color: var(--z-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.z-bar-title small {
  font-size: 11px;
  color: var(--z-mut);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.z-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.z-bar-pseudo {
  font-size: 13px;
  font-weight: 700;
  color: var(--z-mut);
}
.z-bar-bal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--z-panel);
  border: 1px solid var(--z-line);
  border-radius: var(--z-r-full);
  color: var(--z-acc);
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: all .12s ease;
}
.z-bar-bal:hover { background: var(--z-panel-2); }
/* 23/10/2026 : montant = bouton « flouter » (znav.js), « + » = caisse */
.z-bar-bal > button { all: unset; display: inline-flex; align-items: center; cursor: pointer; }
.z-bar-bal > button:focus-visible { outline: 2px solid var(--z-acc); outline-offset: 2px; border-radius: 6px; }
.z-bar-bal i {
  font-style: normal;
  color: var(--z-bg);
  background: var(--z-acc);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}
.z-bar-btn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--z-panel);
  border: 1px solid var(--z-line);
  border-radius: var(--z-r-md);
  color: var(--z-mut);
  cursor: pointer;
  transition: all .12s ease;
  position: relative;
}
.z-bar-btn:hover { color: var(--z-text); background: var(--z-panel-2); }
.z-bar-btn b { font-size: 12px; font-weight: 900; }
.z-bar-btn svg.on { display: none; }
.z-bar-btn.on svg.off { display: none; }
.z-bar-btn.on svg.on { display: block; }
.z-bar-btn.z-bar-danger { color: var(--z-red); }
.z-bar-btn.z-bar-danger:hover { background: rgba(255,95,109,.12); }
.z-bar-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--z-red);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  border-radius: 999px;
  padding: 1px 5px;
  min-width: 16px;
  text-align: center;
}
.z-bar-badge.hidden { display: none; }
.z-bar-sec { display: none; gap: 6px; }
.z-table-bar.open .z-bar-sec { display: inline-flex; }
.z-bar-more { font-size: 18px; font-weight: 900; }

@media (max-width: 700px) {
  .z-bar-pseudo { display: none; }
  .z-bar-back span { display: none; }
  .z-bar-title small { display: none; }
}


/* ==========================================================================
   MOBILE : page poker.html et listes similaires
   ========================================================================== */
@media (max-width: 768px) {
  /* --- Titre + actions --- */
  .z-page-title { font-size: 20px; }
  .z-mb-4 { margin-bottom: 8px; }
  .z-mb-3 { margin-bottom: 6px; }

  /* --- Filtres pastilles : 1 seule ligne défilante --- */
  .pk-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 4px;
    padding-bottom: 4px;
    margin-bottom: 8px;
    scrollbar-width: none;
  }
  .pk-filters::-webkit-scrollbar { display: none; }
  .pk-fgroup {
    gap: 3px;
    flex: none;
  }
  .pk-flabel {
    font-size: 9px;
    min-width: auto;
    margin-right: 2px;
  }
  .pk-fpill {
    padding: 5px 10px;
    font-size: 11px;
    flex: none;
  }

  /* --- Tri à pastilles : défile aussi --- */
  .pk-filters[style*="margin:0"] {
    overflow-x: auto;
  }
}




/* v9 : écrans tactiles — cibles d'au moins 44 × 44 px (en-tête, filtres, onglets, barre de table) */
@media (pointer: coarse) {
  #btnDeposit, #btnDepositHeader, .z-bar-back, .z-chip, .pk-fpill,
  #ztbMore, #btnChat, #btnQuitTable, .z-bar-btn, .z-table-bar .z-logo, .z-btn, #btnChangePseudo, .qp, #betMinus, #betPlus {
    min-height: 44px; min-width: 44px;
    display: inline-flex; align-items: center; justify-content: center;
  }
  #zBalToggle { min-height: 44px; }
  .z-table-bar .z-bar-bal { padding-top: 0; padding-bottom: 0; padding-right: 0; }
}
/* v9 : barre de table sur petit écran tactile — tout doit tenir (le logo cède sa place) */
#btnDeposit { white-space: nowrap; }
@media (pointer: coarse) and (max-width: 420px) {
  .z-table-bar .z-logo { display: none !important; }
}

/* 21/10/2026 : la barre des tournois est celle du cash (niveau et minuteur : pastille #tLevel sur la table, tournament-mode.css) */

/* v9 : carrousel de l'accueil (évènements, tournois, infos) — même esprit que l'ancien bandeau Zino Poker */
.z-carousel { position: relative; margin-bottom: var(--z-sp-6); border-radius: var(--z-r-xl); border: 1px solid var(--z-line); background: linear-gradient(135deg, var(--z-panel-3), var(--z-panel)); overflow: hidden; }
.zc-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.zc-track::-webkit-scrollbar { display: none; }
.zc-slide { flex: 0 0 100%; scroll-snap-align: start; min-height: 220px; padding: var(--z-sp-6) calc(var(--z-sp-6) + 36px); display: flex; flex-direction: column; justify-content: center; gap: 10px; box-sizing: border-box; }
.zc-slide.mtt { background: radial-gradient(120% 120% at 100% 0, rgba(162,75,255,.22), transparent 60%); }
.zc-slide.sng { background: radial-gradient(120% 120% at 100% 0, rgba(255,198,26,.18), transparent 60%); }
.zc-slide.ev { background: radial-gradient(120% 120% at 100% 0, rgba(53,255,193,.18), transparent 60%); }
.zc-tag { align-self: flex-start; padding: 4px 10px; border-radius: var(--z-r-full); background: rgba(0,0,0,.25); border: 1px solid var(--z-line); font-size: 12px; font-weight: 800; color: var(--z-acc); }
.zc-title { margin: 0; font-size: var(--z-fs-2xl, 26px); font-weight: 900; letter-spacing: -.02em; line-height: 1.15; }
.zc-text { margin: 0; color: var(--z-mut); font-size: var(--z-fs-md, 15px); max-width: 620px; }
.zc-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.zc-meta li { padding: 4px 10px; border-radius: var(--z-r-full); background: var(--z-panel); border: 1px solid var(--z-line); font-size: 12px; font-weight: 700; }
.zc-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.zc-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--z-line); background: rgba(7,26,21,.7); color: var(--z-text); font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.zc-prev { left: 8px; } .zc-next { right: 8px; }
.zc-nav:hover { background: var(--z-panel-2); }
.zc-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; }
.zc-dots button { width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.3); cursor: pointer; }
.zc-dots button[aria-current="true"] { width: 22px; border-radius: 4px; background: var(--z-acc); }
.z-carousel.single .zc-nav, .z-carousel.single .zc-dots { display: none; }
@media (max-width: 600px) {
  .zc-slide { min-height: 200px; padding: 22px 18px 34px; }
  .zc-title { font-size: 21px; }
  .zc-nav { display: none; }   /* au doigt : balayage */
  .zc-dots button { width: 10px; height: 10px; }
}
@media (pointer: coarse) {
  /* points espacés : chacun reste une cible tactile de 44 px sans changer leur aspect */
  .zc-dots { gap: 0; bottom: 0; }
  .zc-dots button { position: relative; width: 44px; height: 44px; background: transparent; }
  .zc-dots button::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(255,255,255,.3); }
  .zc-dots button[aria-current="true"] { width: 44px; background: transparent; }
  .zc-dots button[aria-current="true"]::after { width: 22px; border-radius: 4px; background: var(--z-acc); }
}
@media (prefers-reduced-motion: reduce) { .zc-track { scroll-behavior: auto; } }

/* tuiles de l'accueil : la description (nombre de tables…) reste visible sur mobile */
#homeTiles .z-tile-desc { display: block; }

/* ===== v9 : tuiles de tables (lobby poker + lobby blackjack) ===== */
.pk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.pk-card { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 14px; background: var(--z-panel); border: 1px solid var(--z-line); border-top: 3px solid var(--z-acc); transition: transform .12s ease, box-shadow .12s ease; }
.pk-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.35); }
.pk-card.sng { border-top-color: var(--z-gold); }
.pk-card.mtt { border-top-color: #a24bff; }
.pk-card.is-full { opacity: .8; }
.pk-card-head { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.pk-card .pk-icon { width: 38px !important; height: 38px !important; display: grid; place-items: center; border-radius: 10px; font-size: 18px !important; background: rgba(53,255,193,.12); }
.pk-card.sng .pk-icon { background: rgba(255,198,26,.12); }
.pk-card.mtt .pk-icon { background: rgba(162,75,255,.14); }
.pk-card-title { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pk-card .pk-name { font-size: 15px !important; font-weight: 800; color: var(--z-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-card .pk-sub { font-size: 12px !important; color: var(--z-mut); }
.pk-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 10px 0; border-top: 1px solid var(--z-line); border-bottom: 1px solid var(--z-line); }
.pk-stat { min-width: 0; text-align: center; }
.pk-stat dt { font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--z-mut); margin-bottom: 4px; white-space: nowrap; }
.pk-stat dd { margin: 0; font-size: 14px; font-weight: 800; color: var(--z-text); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-stat.full dd { color: var(--z-red); }
.pk-cd { margin: -4px 0 0; text-align: center; font-size: 13px; font-weight: 700; color: var(--z-gold); font-variant-numeric: tabular-nums; }
.pk-lot { margin: 0; padding: 8px 10px; border-radius: 10px; background: rgba(255,198,26,.1); border: 1px solid rgba(255,198,26,.35); color: var(--z-gold); font-size: 13px; }
.pk-card .pk-action { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; margin: 0 !important; }
.pk-card .pk-action .z-btn-primary, .pk-card .pk-action .z-btn-gold, .pk-card .pk-action a.z-btn-ghost { flex: 1 1 auto; max-width: 220px; padding: 10px 16px; font-size: 13px; }
@media (max-width: 600px) {
  .pk-grid { grid-template-columns: 1fr; }
  .pk-title { font-size: 19px; }
  .pk-tools { margin-left: 0; width: 100%; }
  .pk-admin { margin-left: auto; }
  .pk-stat dd { font-size: 13px; }
  .pk-card .pk-action .z-btn-primary, .pk-card .pk-action .z-btn-gold, .pk-card .pk-action a.z-btn-ghost { max-width: none; }
}
@media (pointer: coarse) { .pk-seg button, .pk-tool { min-height: 44px; min-width: 44px; } }
.pk-badge { display: inline-block; padding: 3px 9px; border-radius: var(--z-r-full); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.pk-badge.cash { background: rgba(53,255,193,.15); color: var(--z-acc); }
.pk-badge.sng  { background: rgba(255,198,26,.15); color: var(--z-gold); }
.pk-badge.mtt  { background: rgba(162,75,255,.15); color: #a24bff; }
.pk-badge.live { background: rgba(255,95,109,.15); color: var(--z-red); }

/* ===== Tuiles néon du lobby poker (illustrations : /js/pk-art.js) — format compact « affiche de casino » ===== */
.pk-grid.pk-tiles { grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 14px; }
.pk-tile {
  --t: #35ffc1; --t-d: #0b6b4a; --t-a: rgba(53,255,193,.22);
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 12px; border-radius: 14px;
  /* scène : halo de la couleur du thème en haut à droite, sol sombre, reflet bas */
  background:
    radial-gradient(90% 70% at 92% 4%, var(--t-a), transparent 60%),
    radial-gradient(70% 45% at 0% 100%, color-mix(in srgb, var(--t-d) 55%, transparent), transparent 70%),
    linear-gradient(165deg, color-mix(in srgb, var(--t-d) 38%, #0b1018) 0%, #080c13 55%, #05080d 100%);
  border: 1.5px solid color-mix(in srgb, var(--t) 85%, #fff 15%);
  box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 0 18px var(--t-a), inset 0 0 18px color-mix(in srgb, var(--t) 14%, transparent), inset 0 -30px 40px rgba(0,0,0,.35);
  cursor: default;
  transition: transform .15s ease, box-shadow .15s ease;
}
/* rais de lumière + bokeh (décor, sans animation) */
.pk-tile::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none; opacity: .55;
  background:
    conic-gradient(from 200deg at 85% -10%, transparent 0 8%, color-mix(in srgb, var(--t) 18%, transparent) 10%, transparent 14% 18%, color-mix(in srgb, var(--t) 12%, transparent) 20%, transparent 24% 100%),
    radial-gradient(3px 3px at 18% 22%, color-mix(in srgb, var(--t) 70%, transparent), transparent 100%),
    radial-gradient(2px 2px at 34% 12%, rgba(255,255,255,.55), transparent 100%),
    radial-gradient(4px 4px at 62% 30%, color-mix(in srgb, var(--t) 45%, transparent), transparent 100%),
    radial-gradient(2px 2px at 8% 58%, rgba(255,255,255,.35), transparent 100%),
    radial-gradient(5px 5px at 88% 62%, color-mix(in srgb, var(--t) 30%, transparent), transparent 100%);
}
/* reflet vitré sur le haut de la tuile */
.pk-tile::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 40%; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.06), transparent);
}
.pk-tile:hover, .pk-tile:focus-within { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 0 28px var(--t-a), 0 12px 26px rgba(0,0,0,.5), inset 0 0 22px color-mix(in srgb, var(--t) 20%, transparent); }
.pk-tile.is-open { cursor: pointer; }   /* tournoi : toute la tuile ouvre son lobby */
.pk-tile.is-full { opacity: .8; }
.pk-tile.t-emerald  { --t: #2ee59d; --t-d: #0b6b4a; --t-a: rgba(46,229,157,.28); }
.pk-tile.t-sapphire { --t: #3aa0ff; --t-d: #0b3f7a; --t-a: rgba(58,160,255,.30); }
.pk-tile.t-ruby     { --t: #ff3b5c; --t-d: #7a0b22; --t-a: rgba(255,59,92,.30); }
.pk-tile.t-gold     { --t: #ffc61a; --t-d: #8a5a00; --t-a: rgba(255,198,26,.28); }
.pk-tile.t-violet   { --t: #b46bff; --t-d: #4b1a85; --t-a: rgba(180,107,255,.32); }
.pk-tile.t-pink     { --t: #ff4fd8; --t-d: #7a0b66; --t-a: rgba(255,79,216,.30); }
.pk-tile.t-orange   { --t: #ff8a1f; --t-d: #8a3a00; --t-a: rgba(255,138,31,.30); }
.pk-tile.t-indigo   { --t: #8b8bff; --t-d: #2b2b8a; --t-a: rgba(139,139,255,.32); }

/* haut : pastille horaire / badge à gauche, illustration à droite qui déborde derrière le titre */
.pk-tile-head { position: relative; min-height: 64px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px; padding-right: 104px; }
.pk-tile .pk-art { position: absolute; z-index: -1; top: -6px; right: -6px; width: 118px; height: 84px; pointer-events: none; }
.pk-tile .pk-art .glow { filter: drop-shadow(0 0 6px var(--t)); }
/* photo du lot (tournoi à lot) à la place de l'illustration */
.pk-tile .pk-art-img { z-index: 0; top: 2px; right: 2px; width: 96px; height: 72px; object-fit: cover; border-radius: 10px; border: 1.5px solid var(--t); box-shadow: 0 0 14px var(--t-a); background: #0b1018; }
.tl-lot-img { display: block; width: 100%; max-height: 260px; object-fit: cover; border-radius: 12px; border: 1.5px solid var(--t); box-shadow: 0 0 18px var(--t-a); margin-bottom: 8px; }
.pk-time { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; white-space: nowrap; padding: 3px 9px 3px 5px; border-radius: 999px; background: rgba(0,0,0,.5); color: #fff; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; border: 1px solid rgba(255,255,255,.08); }
.pk-time .pk-ico { color: var(--t); width: 18px; height: 18px; }
.pk-tile .pk-badge { background: rgba(0,0,0,.5); color: var(--t); border: 1px solid var(--t); }
.pk-tile .pk-badge.live { color: #fff; background: #e11d48; border-color: #ff5f7e; }

/* titre « affiche » : condensé, gras, lumineux */
.pk-tile-title { position: relative; min-width: 0; margin-top: -2px; }
.pk-tile-name {
  margin: 0; font-family: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif; font-size: 25px; font-weight: 700; line-height: 1.02;
  color: #fff; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;   /* nom long : « … » sur une ligne (nom complet au survol / appui long) */
  text-shadow: 0 0 12px var(--t-a), 0 0 2px color-mix(in srgb, var(--t) 60%, transparent), 0 2px 3px rgba(0,0,0,.9);
}
.pk-tile-sub { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 700; color: var(--t); letter-spacing: .02em; }
.pk-tile-sep { height: 1px; border: 0; margin: 0; background: linear-gradient(90deg, var(--t), color-mix(in srgb, var(--t) 30%, transparent) 60%, transparent); opacity: .8; }

/* infos : icône + valeur (libellé pour les lecteurs d'écran) */
.pk-info { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pk-info li { display: flex; align-items: center; gap: 9px; min-width: 0; }
.pk-info b { font-size: 16px; font-weight: 700; color: #f4f7ff; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-info small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pk-info li.full b { color: var(--z-red); }
.pk-ico { display: inline-grid; place-items: center; width: 22px; height: 22px; color: #cfe3ff; flex: none; }
.pk-ico svg { width: 100%; height: 100%; }

.pk-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 8px; border-radius: 999px; background: linear-gradient(180deg, #ffd955, #e09c00); color: #2b1a00; font-size: 14px; font-weight: 900; box-shadow: 0 0 14px rgba(255,198,26,.45), inset 0 1px 0 rgba(255,255,255,.5); }
.pk-pill .pk-ico { color: #5a3a00; width: 17px; height: 17px; }
.pk-pill.lot { max-width: 100%; }
.pk-pill.lot span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-live { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; font-size: 12px; color: var(--z-mut); }
.pk-live b { color: #fff; font-variant-numeric: tabular-nums; }
.pk-tile .pk-cd { margin: 0; text-align: left; color: var(--t); font-size: 12.5px; }

.pk-tile .pk-action { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; margin-top: auto !important; }
.pk-tile .pk-action .z-btn { min-height: 36px; }
@media (pointer: coarse) { .pk-tile .pk-action .z-btn { min-height: 44px; min-width: 44px; } }   /* cibles tactiles (modifier, annuler, partager) */
.pk-tile .pk-action .z-btn-primary, .pk-tile .pk-action .z-btn-gold, .pk-tile .pk-action a.z-btn-ghost { flex: 1 1 auto; padding: 7px 12px; font-size: 13px; }
@media (pointer: coarse) { .pk-tile .pk-action .z-btn { min-height: 44px; } }

@media (max-width: 560px) {
  .pk-grid.pk-tiles { grid-template-columns: 1fr; gap: 10px; }
  .pk-tile { gap: 6px; padding: 9px 12px 11px; }
  .pk-tile-head { min-height: 46px; padding-right: 92px; }
  .pk-tile .pk-art { width: 100px; height: 72px; top: -4px; }
  .pk-tile-name { font-size: 23px; }
  .pk-info { gap: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .pk-tile, .pk-tile:hover, .pk-tile:focus-within { transition: none; transform: none; }
}

/* ===== Lobby d'un tournoi (fenêtre ouverte depuis sa tuile) ===== */
.tl-back { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; background: rgba(2,6,10,.72); backdrop-filter: blur(4px); }
.tl-back[hidden] { display: none; }
.tl {
  --t: #35ffc1; --t-d: #0b6b4a; --t-a: rgba(53,255,193,.22);
  position: relative; width: min(760px, 100%); max-height: min(88vh, 900px); overflow: auto; overscroll-behavior: contain;
  border-radius: 18px; border: 1.5px solid var(--t); background: linear-gradient(180deg, color-mix(in srgb, var(--t-d) 30%, #0b1018), #070b12 40%);
  box-shadow: 0 0 30px var(--t-a), 0 24px 60px rgba(0,0,0,.6);
}
.tl.t-emerald  { --t: #2ee59d; --t-d: #0b6b4a; --t-a: rgba(46,229,157,.28); }
.tl.t-sapphire { --t: #3aa0ff; --t-d: #0b3f7a; --t-a: rgba(58,160,255,.30); }
.tl.t-ruby     { --t: #ff3b5c; --t-d: #7a0b22; --t-a: rgba(255,59,92,.30); }
.tl.t-gold     { --t: #ffc61a; --t-d: #8a5a00; --t-a: rgba(255,198,26,.28); }
.tl.t-violet   { --t: #b46bff; --t-d: #4b1a85; --t-a: rgba(180,107,255,.32); }
.tl.t-pink     { --t: #ff4fd8; --t-d: #7a0b66; --t-a: rgba(255,79,216,.30); }
.tl.t-orange   { --t: #ff8a1f; --t-d: #8a3a00; --t-a: rgba(255,138,31,.30); }
.tl.t-indigo   { --t: #8b8bff; --t-d: #2b2b8a; --t-a: rgba(139,139,255,.32); }
.tl-hero { position: relative; padding: 18px 20px 14px; min-height: 120px; background: radial-gradient(80% 90% at 90% 0%, var(--t-a), transparent 65%); }
.tl-hero .pk-art { position: absolute; top: 6px; right: 46px; width: 170px; height: 122px; z-index: 0; opacity: .95; }
.tl-hero > *:not(.pk-art):not(.tl-close) { position: relative; z-index: 1; }
.tl-close { position: absolute; top: 10px; right: 10px; z-index: 2 !important; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--z-line); background: rgba(0,0,0,.45); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.tl-title { margin: 8px 0 2px; max-width: calc(100% - 190px); font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; font-size: 34px; font-weight: 700; line-height: 1; color: #fff; text-shadow: 0 0 14px var(--t-a), 0 2px 3px rgba(0,0,0,.9); }
.tl-sub { color: var(--t); font-weight: 700; font-size: 13px; }
.tl-when { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 800; }
.tl-when .pk-cd { color: var(--t); font-size: 14px; margin: 0; }
.tl-body { padding: 4px 20px 20px; display: grid; gap: 16px; }
.tl-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tl-stat { padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.tl-stat small { display: block; color: var(--z-mut); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.tl-stat b { display: block; margin-top: 2px; font-size: 17px; color: #fff; font-variant-numeric: tabular-nums; }
.tl-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tl h3 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--t); }
.tl-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.tl-table th, .tl-table td { padding: 6px 8px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.06); }
.tl-table th { color: var(--z-mut); font-weight: 700; font-size: 11.5px; }
.tl-table td.r, .tl-table th.r { text-align: right; }
.tl-scroll { max-height: 240px; overflow: auto; border-radius: 10px; border: 1px solid rgba(255,255,255,.06); }
.tl-players { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px; }
.tl-players li { padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,.04); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-players li.me { color: var(--t); font-weight: 800; }
.tl-actions { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px; background: linear-gradient(180deg, transparent, #070b12 30%); }
.tl-actions .z-btn { min-height: 44px; min-width: 160px; }
.tl-desc { margin: 0; color: var(--z-mut); font-size: 13px; }
@media (max-width: 767px) {
  .tl-back { padding: 0; place-items: stretch; }
  .tl { width: 100%; max-height: none; height: 100%; border-radius: 0; border-width: 0; }
  .tl-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tl-cols { grid-template-columns: 1fr; }
  .tl-title { font-size: 30px; max-width: calc(100% - 130px); }
  .tl-hero .pk-art { width: 130px; height: 94px; right: 44px; }
  .tl-actions .z-btn { flex: 1; }
}

/* ==========================================================================
   BARRE SUPÉRIEURE (zheader.js) — une seule ligne à toutes les largeurs
   logo · jeux (repliés dans « Jeux » sous 1024 px) · solde + Dépôt · menu du compte
   ========================================================================== */
#zHeader.z-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 8px;
  height: 60px; padding: 0 20px; box-sizing: border-box;
  background: rgba(7, 26, 21, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(53, 255, 193, .10);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .35), 0 8px 24px rgba(0, 0, 0, .18);
}
.z-header[data-minimal] { position: fixed; top: 0; left: 0; right: 0; }
#zHeader .z-logo { flex: none; gap: 8px; font-size: 19px; line-height: 1; margin-right: 8px; border-radius: 10px; }
#zHeader .z-logo-z { width: 34px; height: 34px; font-size: 20px; border-radius: 10px; color: var(--z-bg);
  background: linear-gradient(145deg, var(--z-acc), #19c995); box-shadow: 0 2px 10px rgba(53, 255, 193, .25); }
#zHeader .z-logo-z::after { left: 8px; right: 8px; height: 2px; }
#zHeader .z-logo-text { font-weight: 800; letter-spacing: -.01em; }
#zHeader a:focus-visible, #zHeader button:focus-visible { outline: 2px solid var(--z-acc); outline-offset: 2px; }

/* navigation des jeux */
#zHeader .z-nav { display: flex; align-items: center; gap: 2px; min-width: 0; }
#zHeader .z-nav a {
  display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border-radius: 8px; white-space: nowrap;
  font-size: 14px; font-weight: 650; color: var(--z-mut); transition: color var(--z-t-fast), background var(--z-t-fast);
}
#zHeader .z-nav a:hover { color: var(--z-text); background: rgba(255, 255, 255, .05); }
#zHeader .z-nav a.is-active { color: var(--z-acc); background: rgba(53, 255, 193, .10); }
#zHeader .z-nav-sep { flex: none; width: 1px; height: 18px; margin: 0 6px; background: var(--z-line); }
#zHeader .z-nav-grp { flex: none; padding: 0 4px 0 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--z-acc); opacity: .8; }

/* boutons ronds de la barre (Jeux, compte) */
#zHeader .z-hbtn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--z-line); background: rgba(255, 255, 255, .03); color: var(--z-text); font: 650 14px/1 var(--z-font);
}
#zHeader .z-hbtn:hover, #zHeader .z-hbtn[aria-expanded="true"] { background: rgba(255, 255, 255, .07); border-color: rgba(53, 255, 193, .35); }
#zHeader .z-menu-btn { display: none; }
#zHeader .z-chev { transition: transform var(--z-t-fast); opacity: .7; }
#zHeader [aria-expanded="true"] .z-chev { transform: rotate(180deg); }

/* droite : solde + Dépôt (un seul bloc), puis compte */
#zHeader .z-header-right { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }
#zHeader .z-wallet { display: flex; align-items: stretch; height: 40px; border-radius: 999px; border: 1px solid var(--z-line); background: var(--z-bg-2); overflow: hidden; }
#zHeader .z-balance {
  display: inline-flex; align-items: center; padding: 0 12px 0 16px; white-space: nowrap;
  font-size: 14px; font-weight: 800; color: var(--z-text); font-variant-numeric: tabular-nums;
}
#zHeader .z-balance:hover { color: var(--z-acc); }
#zHeader button.z-balance { border: 0; margin: 0; background: transparent; font-family: inherit; cursor: pointer; }
#zHeader button.z-balance:focus-visible { outline: 2px solid var(--z-acc); outline-offset: -2px; border-radius: 999px; }
#zHeader .z-deposit {
  display: inline-flex; align-items: center; gap: 6px; height: auto; min-height: 0; margin: 3px; padding: 0 14px; border-radius: 999px;
  font-size: 14px; font-weight: 800; white-space: nowrap; box-shadow: none;
}
#zHeader .z-deposit > span:first-child { font-size: 17px; line-height: 1; }
/* F4 : en mode fictif, aucun dépôt (le solde Ƶ reste affiché) — html[data-zmode] est posé par zcurrency.js */
html[data-zmode="fictif"] #zHeader .z-deposit, html[data-zmode="fictif"] #zDep, html[data-zmode="fictif"] .z-dep { display: none !important; }
#zHeader .z-acct { position: relative; }
#zHeader .z-acct-btn { padding: 0 10px 0 3px; position: relative; }
/* U9 : pastille de notification façon iOS / Android (demandes en attente + récompenses), en haut à droite de la photo */
#zHeader .z-badge-count {
  position: absolute; top: -5px; left: 22px; z-index: 2; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  display: inline-grid; place-items: center; font-size: 11px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums;
  color: #fff; background: #ff3b30; border: 1.5px solid #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .45); pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  #zHeader .z-badge-count { animation: zBadgeIn .3s ease-out 1; }
  @keyframes zBadgeIn { from { transform: scale(0); } to { transform: scale(1); } }
}
/* P7 : cloche du centre de notifications (pastille = nombre non lu, plafonné à « 9+ ») */
#zHeader .z-notif { position: relative; }
#zHeader .z-bell { position: relative; width: 40px; padding: 0; justify-content: center; }
#zHeader .z-bell .z-badge-count { left: auto; right: -6px; top: -6px; }
#zHeader .z-notif-panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: 340px; max-height: min(70vh, 520px); z-index: 120;
  display: flex; flex-direction: column; border-radius: 14px; border: 1px solid var(--z-line);
  background: var(--z-panel); box-shadow: var(--z-sh-3); overflow: hidden;
}
#zHeader .z-notif-panel[hidden] { display: none; }
#zHeader .z-notif-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 6px 6px 14px; border-bottom: 1px solid var(--z-line); }
#zHeader .z-notif-head b { font-size: 15px; }
#zHeader .z-notif-all { min-height: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: var(--z-acc); font: 700 13px/1 var(--z-font); cursor: pointer; }
#zHeader .z-notif-all[hidden] { display: none; }
#zHeader .z-notif-all:hover { background: rgba(255, 255, 255, .06); }
#zHeader .z-notif-list { list-style: none; margin: 0; padding: 4px; overflow-y: auto; overscroll-behavior: contain; }
#zHeader .z-notif-list a, #zHeader .z-notif-list button {
  display: flex; align-items: flex-start; gap: 10px; width: 100%; min-height: 52px; padding: 10px; border-radius: 10px;
  border: 0; background: none; color: var(--z-text); text-align: left; text-decoration: none; font: inherit; cursor: pointer;
}
#zHeader .z-notif-list a:hover, #zHeader .z-notif-list button:hover { background: rgba(255, 255, 255, .06); }
#zHeader .z-notif-list li.is-unread > * { background: rgba(53, 255, 193, .07); }
#zHeader .z-notif-list li.is-unread b::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: #ff3b30; vertical-align: middle; }
#zHeader .z-notif-ic { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--z-bg-2); font-size: 16px; }
#zHeader .z-notif-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#zHeader .z-notif-txt b { font-size: 14px; font-weight: 750; line-height: 1.25; }
#zHeader .z-notif-txt span { font-size: 13px; color: var(--z-mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#zHeader .z-notif-txt time { font-size: 12px; color: var(--z-mut); opacity: .8; }
#zHeader .z-notif-empty { padding: 22px 12px; text-align: center; color: var(--z-mut); font-size: 14px; }
#zHeader .z-avatar {
  display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%;
  font-size: 14px; font-weight: 900; color: #1a1200; background: linear-gradient(145deg, var(--z-gold), #e09a00);
}
#zHeader .z-avatar.has-photo { overflow: hidden; background: #0b1018; }
#zHeader .z-avatar.has-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
#zHeader .z-user { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 700; color: var(--z-text); }

/* menu du compte */
#zHeader .z-acct-menu {
  position: absolute; right: 0; top: calc(100% + 10px); width: 250px; padding: 6px; z-index: 120;
  display: flex; flex-direction: column; border-radius: 14px; border: 1px solid var(--z-line);
  background: var(--z-panel); box-shadow: var(--z-sh-3);
}
#zHeader .z-acct-menu[hidden] { display: none; }
#zHeader .z-acct-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--z-line); }
#zHeader .z-acct-head b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* choix du mode (seulement si l'admin a ouvert le réel ET le fictif) */
#zHeader .z-mode-sw { display: flex; gap: 2px; padding: 3px; margin: 4px 6px 8px; border-radius: 999px; background: var(--z-bg-2); border: 1px solid var(--z-line); }
#zHeader .z-mode-sw button { flex: 1; min-height: 40px; border: 0; border-radius: 999px; background: transparent; color: var(--z-mut); font: inherit; font-weight: 800; cursor: pointer; }
#zHeader .z-mode-sw button[aria-pressed="true"] { background: var(--z-acc); color: var(--z-bg); }
/* réel pas encore ouvert sur ce compte : mode actuel + lien de demande (Support) */
#zHeader .z-acct-menu a.z-mode-ask { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; margin: 4px 6px 8px; padding: 4px 6px 4px 14px; border-radius: 999px; background: var(--z-bg-2); border: 1px solid var(--z-line); font-size: 13px; text-decoration: none; }
#zHeader .z-acct-menu a.z-mode-ask b { color: var(--z-acc); white-space: nowrap; }
#zHeader .z-acct-menu a.z-mode-ask span { color: var(--z-mut); font-weight: 700; white-space: nowrap; }
#zHeader .z-acct-menu a, #zHeader .z-acct-out {
  display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px;
  font: 650 14px/1.2 var(--z-font); color: var(--z-text); text-align: left; border: 0; background: none; cursor: pointer;
}
#zHeader .z-acct-menu a:hover, #zHeader .z-acct-out:hover { background: rgba(255, 255, 255, .06); }
#zHeader .z-acct-menu a.is-active { color: var(--z-acc); }
#zHeader .z-acct-out { margin-top: 4px; border-top: 1px solid var(--z-line); border-radius: 0 0 8px 8px; color: var(--z-red); }

/* tablette et mobile : les jeux passent dans le panneau « Jeux » */
@media (max-width: 1023px) {
  #zHeader.z-header { padding: 0 14px; }
  #zHeader .z-menu-btn { display: inline-flex; }
  #zHeader .z-nav {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 110;
    display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 12px 14px 16px;
    background: var(--z-panel); border-bottom: 1px solid var(--z-line); box-shadow: var(--z-sh-2);
  }
  #zHeader .z-nav.is-open { display: grid; }
  #zHeader .z-nav a { height: 48px; justify-content: center; font-size: 15px; background: rgba(255, 255, 255, .03); border: 1px solid var(--z-line); }
  #zHeader .z-nav a.is-active { border-color: rgba(53, 255, 193, .45); }
  #zHeader .z-nav-sep { display: none; }
  #zHeader .z-nav-grp { grid-column: 1 / -1; padding: 6px 2px 0; }
}
@media (max-width: 767px) {
  #zHeader.z-header { height: 56px; padding: 0 10px; gap: 6px; }
  #zHeader .z-logo { margin-right: 2px; }
  #zHeader .z-logo-text, #zHeader .z-user, #zHeader .z-deposit-txt { display: none; }
  #zHeader .z-header-right { gap: 6px; }
  #zHeader .z-balance { padding: 0 8px 0 12px; font-size: 13px; }
  #zHeader .z-deposit { width: 34px; padding: 0; justify-content: center; }
  #zHeader .z-acct-btn { padding: 0 6px 0 3px; gap: 4px; }
  /* P7 : sur mobile, le panneau des notifications occupe toute la largeur sous le bandeau */
  #zHeader .z-notif { position: static; }
  #zHeader .z-notif-panel { position: fixed; left: 0; right: 0; top: 56px; width: auto; max-height: calc(100dvh - 56px); border-radius: 0 0 14px 14px; }
}
@media (max-width: 420px) {
  #zHeader .z-menu-btn { padding: 0; width: 40px; justify-content: center; }
  #zHeader .z-menu-btn span { display: none; }
  #zHeader .z-acct-btn .z-chev { display: none; }
  #zHeader .z-acct-btn { padding: 0 3px; }
}
/* écrans tactiles : cibles d'au moins 44 px */
@media (pointer: coarse) {
  #zHeader .z-hbtn { height: 44px; }
  #zHeader .z-wallet { height: auto; }
  #zHeader .z-balance { min-height: 44px; }
  #zHeader .z-deposit { min-height: 44px; min-width: 44px; margin: 0; }
  #zHeader .z-menu-btn { min-width: 44px; }
  #zHeader .z-bell { width: 44px; }
  #zHeader .z-logo { min-width: 44px; min-height: 44px; justify-content: center; }
  #zHeader .z-nav a { min-height: 44px; }
}
@media (pointer: coarse) and (max-width: 420px) { #zHeader .z-acct-btn { width: 44px; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { #zHeader *, #zHeader { transition: none !important; } }

/* ==========================================================================
   ACCUEIL — tuiles « affiche de casino » et carrousel en bandeaux néon (illustrations : /js/pk-art.js)
   ========================================================================== */
.hm-tile.t-emerald, .zc-neon.t-emerald  { --t: #2ee59d; --t-d: #0b6b4a; --t-a: rgba(46,229,157,.30); }
.hm-tile.t-sapphire, .zc-neon.t-sapphire { --t: #3aa0ff; --t-d: #0b3f7a; --t-a: rgba(58,160,255,.32); }
.hm-tile.t-ruby, .zc-neon.t-ruby     { --t: #ff3b5c; --t-d: #7a0b22; --t-a: rgba(255,59,92,.32); }
.hm-tile.t-gold, .zc-neon.t-gold     { --t: #ffc61a; --t-d: #8a5a00; --t-a: rgba(255,198,26,.30); }
.hm-tile.t-violet, .zc-neon.t-violet   { --t: #b46bff; --t-d: #4b1a85; --t-a: rgba(180,107,255,.34); }

/* --- tuiles d'accès rapide --- */
#homeTiles.z-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
#homeTiles .hm-tile { grid-column: span 2; }
#homeTiles .hm-tile:not(.big) { grid-column: span 3; }
.hm-tile {
  position: relative; isolation: isolate; overflow: hidden; min-height: 200px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center;
  padding: 12px 14px 16px; border-radius: 16px; text-decoration: none;
  background:
    radial-gradient(80% 60% at 50% 18%, var(--t-a), transparent 70%),
    radial-gradient(120% 60% at 50% 110%, color-mix(in srgb, var(--t-d) 70%, transparent), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--t-d) 45%, #0b1018) 0%, #070b12 100%);
  border: 1.5px solid color-mix(in srgb, var(--t) 85%, #fff 15%);
  box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 0 20px var(--t-a), inset 0 0 26px color-mix(in srgb, var(--t) 14%, transparent);
  transition: transform .15s ease, box-shadow .15s ease;
}
.hm-tile::before {   /* rais de lumière + bokeh */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .6;
  background:
    conic-gradient(from 160deg at 50% -20%, transparent 0 10%, color-mix(in srgb, var(--t) 16%, transparent) 14%, transparent 18% 26%, color-mix(in srgb, var(--t) 12%, transparent) 30%, transparent 34% 100%),
    radial-gradient(3px 3px at 14% 30%, color-mix(in srgb, var(--t) 70%, transparent), transparent 100%),
    radial-gradient(2px 2px at 82% 22%, rgba(255,255,255,.6), transparent 100%),
    radial-gradient(4px 4px at 88% 70%, color-mix(in srgb, var(--t) 40%, transparent), transparent 100%),
    radial-gradient(2px 2px at 20% 78%, rgba(255,255,255,.35), transparent 100%);
}
.hm-tile:hover, .hm-tile:focus-visible { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 0 32px var(--t-a), 0 12px 28px rgba(0,0,0,.5), inset 0 0 26px color-mix(in srgb, var(--t) 22%, transparent); }
.hm-tile:focus-visible { outline: 2px solid var(--t); outline-offset: 3px; }
.hm-art { position: relative; width: 170px; height: 112px; margin: 0 auto -6px; pointer-events: none; }   /* au-dessus du titre, sans le recouvrir */
.hm-tile .hm-title, .hm-tile .hm-desc, .hm-tile .hm-count { position: relative; z-index: 1; }
/* une seule ligne par texte (filet de sécurité si un libellé est trop long) */
.hm-tile .hm-title, .hm-tile .hm-desc, .hm-tile .hm-count { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-art .pk-art { width: 100%; height: 100%; }
.hm-art .glow, .zc-art .glow { filter: drop-shadow(0 0 7px var(--t)); }
.hm-tile .hm-title {
  margin: 0; font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; font-weight: 700; font-size: 34px; line-height: 1; text-transform: uppercase; letter-spacing: .01em;
  background: linear-gradient(180deg, #fff6c8 0%, color-mix(in srgb, var(--t) 70%, #ffd34d) 55%, color-mix(in srgb, var(--t) 80%, #a06a00) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 10px var(--t-a)) drop-shadow(0 2px 2px rgba(0,0,0,.9));
}
.hm-tile .hm-desc { font-size: 13px; font-weight: 600; color: #e8eef7; line-height: 1.3; text-shadow: 0 1px 2px rgba(0,0,0,.8); }
.hm-tile .hm-count { margin-top: 4px; padding: 3px 10px; border-radius: 999px; background: rgba(0,0,0,.45); border: 1px solid color-mix(in srgb, var(--t) 50%, transparent); color: var(--t); font-size: 11.5px; font-weight: 800; }
.hm-tile.big { min-height: 220px; }
/* P3 : tuile grisée (ex. arcade en mode réel tant que l'admin ne l'a pas ouverte) */
.hm-tile.is-off { filter: grayscale(1); opacity: .55; pointer-events: none; cursor: default; }
.hm-tile.big .hm-art { width: 180px; height: 120px; }
@media (max-width: 1023px) {
  #homeTiles.z-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #homeTiles .hm-tile, #homeTiles .hm-tile:not(.big) { grid-column: span 1; }
  #homeTiles .hm-tile.big:first-child { grid-column: span 2; }
}
@media (max-width: 480px) {
  #homeTiles.z-grid { gap: 10px; }
  .hm-tile, .hm-tile.big { min-height: 176px; padding: 10px 10px 12px; }
  .hm-art, .hm-tile.big .hm-art { width: 130px; height: 86px; }
  .hm-tile .hm-title { font-size: 27px; }
  .hm-tile .hm-desc { font-size: 12px; }
}

/* --- carrousel : bandeaux néon (illustration · texte · badge) --- */
.z-carousel { border: 0; background: transparent; }
.zc-slide.zc-neon {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; align-items: center; gap: 18px;
  padding: 22px 60px 34px 26px; border-radius: 18px;
  border: 1.5px solid color-mix(in srgb, var(--t) 85%, #fff 15%);
  background:
    radial-gradient(60% 120% at 8% 50%, var(--t-a), transparent 70%),
    radial-gradient(50% 90% at 100% 100%, color-mix(in srgb, var(--t-d) 60%, transparent), transparent 70%),
    linear-gradient(120deg, color-mix(in srgb, var(--t-d) 40%, #0b1018) 0%, #070b12 60%);
  box-shadow: inset 0 0 30px color-mix(in srgb, var(--t) 16%, transparent);
}
.zc-slide.zc-neon::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background:
    conic-gradient(from 230deg at 20% -30%, transparent 0 8%, color-mix(in srgb, var(--t) 14%, transparent) 11%, transparent 15% 100%),
    radial-gradient(3px 3px at 40% 20%, color-mix(in srgb, var(--t) 70%, transparent), transparent 100%),
    radial-gradient(2px 2px at 70% 80%, rgba(255,255,255,.5), transparent 100%),
    radial-gradient(4px 4px at 92% 25%, color-mix(in srgb, var(--t) 40%, transparent), transparent 100%);
}
.zc-art { width: 170px; height: 122px; }
.zc-art .pk-art { width: 100%; height: 100%; }
.zc-body { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.zc-neon .zc-tag { color: var(--t); border-color: color-mix(in srgb, var(--t) 50%, transparent); }
.zc-neon .zc-title {
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; font-weight: 700; font-size: 34px; line-height: 1.02; letter-spacing: .01em; color: #fff;
  text-shadow: 0 0 14px var(--t-a), 0 2px 3px rgba(0,0,0,.9);
}
.zc-neon .zc-text { color: #d9e3ef; }
.zc-neon .zc-meta li { background: rgba(0,0,0,.4); border-color: color-mix(in srgb, var(--t) 40%, transparent); }
.zc-badge {
  display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 120px; padding: 12px 16px; border-radius: 14px; text-align: center;
  border: 1.5px solid var(--t); background: linear-gradient(180deg, color-mix(in srgb, var(--t) 22%, #0b1018), #0b1018);
  box-shadow: 0 0 18px var(--t-a), inset 0 0 14px color-mix(in srgb, var(--t) 20%, transparent);
}
.zc-badge b { font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; font-size: 34px; line-height: 1; color: #fff; text-shadow: 0 0 10px var(--t-a); white-space: nowrap; }
.zc-badge span { margin-top: 2px; font-size: 13px; font-weight: 800; color: var(--t); }
@media (max-width: 767px) {
  .zc-slide.zc-neon { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 16px 16px 34px; }
  .zc-art { width: 96px; height: 70px; align-self: start; }
  .zc-badge { grid-column: 1 / -1; flex-direction: row; gap: 8px; min-width: 0; padding: 8px 12px; justify-self: start; }
  .zc-badge b { font-size: 24px; }
  .zc-neon .zc-title { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { .hm-tile, .hm-tile:hover { transition: none; transform: none; } }

/* --- carrousel compact (16/10/2026) : bandeau moins épais, emplacement réservé pendant le chargement --- */
.z-carousel { margin-bottom: var(--z-sp-5); }
.zc-slide { min-height: 0; }
.zc-slide.zc-neon { grid-template-columns: 112px minmax(0, 1fr) auto; gap: 14px; padding: 12px 56px 26px 18px; }
.zc-art { width: 112px; height: 78px; }
.zc-body { gap: 5px; }
.zc-neon .zc-title { font-size: 27px; }
.zc-neon .zc-text { font-size: 14px; line-height: 1.35; }
.zc-meta li { padding: 2px 9px; }
.zc-cta { margin-top: 2px; }
.zc-cta .z-btn { min-height: 38px; padding-top: 0; padding-bottom: 0; }
.zc-badge { min-width: 100px; padding: 8px 12px; }
.zc-badge b { font-size: 28px; }
.zc-dots { bottom: 4px; }
.zc-skeleton { height: 150px; border-radius: 18px; border: 1.5px solid var(--z-line); background: linear-gradient(110deg, var(--z-panel) 30%, var(--z-panel-2) 50%, var(--z-panel) 70%) 0 0 / 300% 100%; animation: zc-shimmer 1.4s linear infinite; }
@keyframes zc-shimmer { to { background-position: -150% 0; } }
.z-carousel.is-loading .zc-nav, .z-carousel.is-loading .zc-dots { display: none; }
#homeTiles:empty { min-height: 180px; }
@media (max-width: 767px) {
  /* téléphone : une colonne, illustration masquée, badge en pastille dans le coin → bandeau bien moins haut */
  .zc-slide.zc-neon { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 10px 12px 26px; }
  .zc-art { display: none; }
  .zc-neon .zc-title { font-size: 21px; padding-right: 92px; }
  .zc-neon .zc-text { display: none; }       /* les pastilles d'infos suffisent sur téléphone */
  .zc-badge { position: absolute; top: 10px; right: 10px; flex-direction: column; min-width: 0; max-width: 96px; padding: 4px 8px; border-radius: 10px; }
  .zc-badge b { font-size: 17px; }
  .zc-badge span { font-size: 10px; margin: 0; }
  .zc-tag { font-size: 11px; padding: 2px 8px; }
  .zc-skeleton { height: 128px; }
}
@media (pointer: coarse) { .zc-cta .z-btn { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) { .zc-skeleton { animation: none; } }

/* --- chat général de l'accueil : carte en verre transparent, visuel néon, bulles de messages --- */
.hm-chat[hidden], .z-carousel[hidden] { display: none; }
.z-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hm-chat {
  position: relative; isolation: isolate; overflow: hidden; border-radius: 18px;
  background: linear-gradient(160deg, rgba(14, 51, 41, .55), rgba(5, 8, 13, .72));
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1.5px solid rgba(58, 160, 255, .45); box-shadow: 0 0 24px rgba(58, 160, 255, .18), inset 0 0 30px rgba(58, 160, 255, .08);
}
.hm-chat .hc-art {
  position: absolute; top: 0; right: 0; z-index: -1; width: min(460px, 60%); height: 100%; object-fit: cover; object-position: 30% 20%; opacity: .32; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.hm-chat .hc-title { display: flex; align-items: center; gap: 8px; }
.hm-chat .hc-live { width: 9px; height: 9px; border-radius: 50%; background: #2ee59d; box-shadow: 0 0 8px #2ee59d; }
.hm-chat .hc-list { list-style: none; margin: 0 0 12px; padding: 4px 6px 4px 0; height: 260px; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; }
.hm-chat .hc-msg { display: flex; align-items: flex-end; gap: 8px; max-width: 85%; }
.hm-chat .hc-msg.hc-me { align-self: flex-end; flex-direction: row-reverse; }
.hm-chat .hc-av { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 900; color: #05080d; background: var(--c); box-shadow: 0 0 10px color-mix(in srgb, var(--c) 50%, transparent); }
.hm-chat .hc-bubble { min-width: 0; padding: 7px 12px 8px; border-radius: 14px 14px 14px 4px; background: rgba(11, 16, 24, .72); border: 1px solid rgba(255, 255, 255, .08); }
.hm-chat .hc-me .hc-bubble { border-radius: 14px 14px 4px 14px; background: linear-gradient(135deg, rgba(53, 255, 193, .22), rgba(58, 160, 255, .18)); border-color: rgba(53, 255, 193, .35); }
.hm-chat .hc-admin .hc-bubble { background: linear-gradient(135deg, rgba(255, 198, 26, .2), rgba(11, 16, 24, .75)); border-color: rgba(255, 198, 26, .45); }
.hm-chat .hc-meta { display: flex; align-items: baseline; gap: 6px; font-size: 12px; margin-bottom: 2px; }
.hm-chat .hc-meta b { color: var(--z-acc); }
.hm-chat .hc-admin .hc-meta b { color: var(--z-gold); }
.hm-chat .hc-meta small, .hm-chat .hc-meta time { color: var(--z-mut-2); font-size: 11px; }
.hm-chat .hc-bubble p { margin: 0; font-size: 14px; line-height: 1.4; color: var(--z-text); overflow-wrap: anywhere; }
.hm-chat .hc-list > li { flex: none; margin: 0; }
.hm-chat .hc-sys { align-self: center; color: var(--z-mut); font-style: italic; font-size: 13px; }
.hm-chat .hc-form { display: flex; gap: 8px; padding: 6px; border-radius: 14px; background: rgba(5, 8, 13, .55); border: 1px solid rgba(255, 255, 255, .08); }
.hm-chat .hc-form input { flex: 1; min-width: 0; min-height: 44px; background: transparent; border: 0; }
.hm-chat .hc-form input:focus-visible { outline: 2px solid var(--z-acc); outline-offset: 0; border-radius: 10px; }
.hm-chat .hc-form button { min-height: 44px; }
.hm-chat .hc-status { min-height: 1.2em; margin: 6px 0 0; color: var(--z-red); }
@media (max-width: 480px) { .hm-chat .hc-list { height: 220px; } .hm-chat .hc-msg { max-width: 92%; } .hm-chat .hc-art { width: 85%; opacity: .22; } }
@media (prefers-reduced-transparency: reduce) { .hm-chat { background: var(--z-panel); backdrop-filter: none; -webkit-backdrop-filter: none; } }

/* --- visuels néon (16/10/2026) : photos en fond des tuiles, du carrousel et des lobbys, fondues vers le texte --- */
.hm-tile.has-photo { justify-content: flex-end; padding-top: 0; }
.hm-tile .hm-photo {
  position: absolute; inset: 0 0 auto 0; z-index: -1; width: 100%; height: 78%; object-fit: cover; object-position: 50% 20%;
  -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%); mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
  pointer-events: none; transition: transform .3s ease;
}
.hm-tile.has-photo:hover .hm-photo { transform: scale(1.04); }
.hm-tile.has-photo.big { min-height: 260px; }
.hm-tile.has-photo:not(.big) { min-height: 240px; }
.hm-tile.has-photo:not(.big) .hm-photo { height: 100%; object-position: 30% 25%; -webkit-mask-image: linear-gradient(90deg, #000 30%, rgba(0,0,0,.25) 75%, transparent); mask-image: linear-gradient(90deg, #000 30%, rgba(0,0,0,.25) 75%, transparent); }
.hm-tile.has-photo:not(.big) { align-items: flex-end; text-align: right; padding-right: 20px; }
@media (max-width: 767px) {
  .hm-tile.has-photo.big, .hm-tile.has-photo:not(.big) { min-height: 210px; }
  .hm-tile.has-photo:not(.big) { align-items: center; text-align: center; padding-right: 14px; }
  .hm-tile.has-photo:not(.big) .hm-photo { height: 72%; object-position: 50% 20%; -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent); mask-image: linear-gradient(180deg, #000 45%, transparent); }
}
@media (prefers-reduced-motion: reduce) { .hm-tile .hm-photo { transition: none; } .hm-tile.has-photo:hover .hm-photo { transform: none; } }

.zc-slide.has-img::after {
  content: ""; position: absolute; inset: 0 0 0 auto; width: 58%; z-index: -1; pointer-events: none;
  background: var(--zc-img) 50% 25% / cover no-repeat; opacity: .75;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 55%); mask-image: linear-gradient(90deg, transparent 0, #000 55%);
}
.zc-slide.has-img .zc-art { display: none; }
.zc-slide.has-img.zc-neon { grid-template-columns: minmax(0, 1fr) auto; }
.zc-slide.has-img .zc-title { text-shadow: 0 0 14px var(--t-a), 0 2px 4px rgba(0,0,0,.95); }
@media (max-width: 767px) { .zc-slide.has-img::after { width: 70%; opacity: .5; } .zc-slide.has-img.zc-neon { grid-template-columns: minmax(0, 1fr); } }

/* lobby poker : tuiles avec visuel en fond du haut, fond illustré de la page, lobby d'un tournoi */
.pk-tile .pk-bg {
  position: absolute; inset: 0 0 auto 0; z-index: -1; width: 100%; height: 132px; object-fit: cover; object-position: 50% 35%; opacity: .9; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 35%, transparent 100%); mask-image: linear-gradient(180deg, #000 35%, transparent 100%);
}
.pk-tile.has-bg .pk-tile-head { padding-right: 0; justify-content: space-between; }
.pk-tile.has-bg .pk-tile-name { text-shadow: 0 0 12px var(--t-a), 0 2px 5px rgba(0,0,0,.95); }
.pk-tile.has-bg .pk-tile-title { margin-top: 0; }
.pk-tile.has-bg .pk-tile-head { min-height: 52px; }
.z-main { position: relative; isolation: isolate; }
.pk-hero {
  position: absolute; z-index: -1; top: calc(-1 * var(--z-sp-5, 24px)); left: 0; right: 0; height: 420px;
  pointer-events: none; opacity: .5;
  background:
    linear-gradient(180deg, transparent 0%, var(--z-bg) 96%),
    linear-gradient(90deg, var(--z-bg) 0%, transparent 30%, transparent 70%, var(--z-bg) 100%),
    var(--pk-hero, none) 50% 25% / cover no-repeat;
  transition: background-image .3s;
}
@media (max-width: 767px) { .pk-hero { height: 300px; opacity: .4; } }
.tl-hero { position: relative; isolation: isolate; overflow: hidden; }
.tl-hero .tl-bg {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 35%; opacity: .6; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 60%); mask-image: linear-gradient(90deg, transparent 0%, #000 60%);
}
.tl-hero > *:not(.pk-art):not(.tl-close):not(.tl-bg) { position: relative; z-index: 1; }
/* lisibilité sur les photos : voile sombre derrière le texte ; photos jamais agrandies au-delà de leur définition */
.hm-tile.has-photo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 62%; z-index: -1; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(5,8,13,.78) 45%, rgba(5,8,13,.95)); }
.hm-tile.has-photo .hm-title { font-size: min(38px, 8.5vw); }   /* « BLACKJACK » tient sur une demi-tuile dès 375 px ; dégradé doré conservé (le text-shadow ternissait le texte découpé) */
.hm-tile.has-photo:not(.big)::after { inset: 0 0 0 auto; width: 60%; height: 100%; background: linear-gradient(90deg, transparent, rgba(5,8,13,.85) 40%, rgba(5,8,13,.95)); }
@media (min-width: 768px) { .hm-tile.has-photo:not(.big) .hm-photo { width: 52%; } }
.zc-slide.has-img::after { width: min(58%, 440px); background-size: cover; }
@media (min-width: 768px) { .zc-slide.has-img.zc-neon { padding-left: 56px; } }
@media (max-width: 767px) { .hm-tile.has-photo:not(.big)::after { inset: auto 0 0 0; width: auto; height: 62%; background: linear-gradient(180deg, transparent, rgba(5,8,13,.78) 45%, rgba(5,8,13,.95)); } }

/* barre supérieure illustrée (17/10/2026) : bandeau vert (jetons, cartes K-Q-A, billets) sur toute la largeur,
   voilé à gauche et à droite pour garder lisibles le logo, le solde et le compte ; liseré dégradé */
#zHeader.z-header { isolation: isolate; border-bottom: 0; }
#zHeader.z-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 20, 15, .88) 0%, rgba(5, 20, 15, .35) 28%, rgba(5, 20, 15, .2) 50%, rgba(5, 20, 15, .35) 72%, rgba(5, 20, 15, .88) 100%),
    linear-gradient(180deg, rgba(5, 20, 15, .15), rgba(5, 20, 15, .5)),
    url(/img/art/bandeau-vert.webp) center 48% / cover no-repeat;
}
#zHeader.z-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, #ffc61a, #3aa0ff 25%, #b46bff 50%, #ff3b5c 75%, #2ee59d);
  opacity: .75; box-shadow: 0 0 10px rgba(180,107,255,.45);
}
#zHeader .z-wallet, #zHeader .z-acct-btn, #zHeader .z-menu-btn { background-color: rgba(7, 26, 21, .72); }
@media (max-width: 767px) { #zHeader.z-header::before { background-position: 0 0, 0 0, 50% 48%; } }
@media (prefers-reduced-motion: reduce) { #zHeader.z-header::after { box-shadow: none; } }

/* --- tuiles du lobby affinées (17/10/2026) : plus basses, bordure fine, infos sur une ligne, visuel en bandeau --- */
.pk-tile { gap: 6px; padding: 8px 10px 10px; border-radius: 12px; border-width: 1px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.55), 0 0 12px var(--t-a), inset 0 0 14px color-mix(in srgb, var(--t) 10%, transparent); }
.pk-tile .pk-bg { height: 96px; }
.pk-tile.has-bg .pk-tile-head { min-height: 42px; }
.pk-tile-name { font-size: 22px; }
.pk-tile-sub { font-size: 11px; }
.pk-tile .pk-time { font-size: 12px; padding: 2px 8px 2px 4px; }
.pk-time .pk-ico { width: 15px; height: 15px; }
.pk-info { gap: 2px; }
.pk-info li { gap: 7px; }
.pk-info b { font-size: 14px; }
.pk-ico { width: 18px; height: 18px; }
.pk-pill { font-size: 12.5px; padding: 3px 10px 3px 7px; }
.pk-tile .pk-cd { font-size: 12px; }
.pk-live { font-size: 11.5px; }
.pk-tile .pk-action .z-btn-primary, .pk-tile .pk-action .z-btn-gold, .pk-tile .pk-action a.z-btn-ghost { padding: 6px 12px; }
@media (max-width: 560px) { .pk-tile-name { font-size: 21px; } .pk-tile .pk-bg { height: 88px; } }

/* 039 : annonces du site sur l'accueil (Admin → Actu, js/znews.js) */
.z-newsbox { display: grid; gap: var(--z-sp-2); margin-bottom: var(--z-sp-5); }
.z-newsbox[hidden] { display: none; }
.z-news { display: flex; gap: var(--z-sp-3); align-items: flex-start; padding: var(--z-sp-3) var(--z-sp-4); border-radius: var(--z-r-md); background: var(--z-panel); border: 1px solid var(--z-line); border-left: 3px solid var(--z-acc); }
.z-news.pinned { border-left-color: var(--z-gold); }
/* P8 : annonce avec visuel (pub de l'admin) : image au-dessus sur mobile, à gauche dès 768 px */
.z-news.has-img { flex-wrap: wrap; }
.z-news-img { display: block; width: 100%; max-height: 220px; object-fit: cover; border-radius: var(--z-r-sm, 8px); background: var(--z-panel); }
@media (min-width: 768px) { .z-news.has-img { flex-wrap: nowrap; } .z-news-img { width: 180px; height: 120px; max-height: none; flex: none; } }
.z-news-body { flex: 1; min-width: 0; }
.z-news-body b { display: block; font-size: var(--z-fs-md); overflow-wrap: anywhere; }
.z-news-body p { margin: 4px 0 0; color: var(--z-mut); font-size: var(--z-fs-sm); line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.z-news-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--z-acc); font-weight: 700; font-size: var(--z-fs-sm); }
.z-news-x { flex: none; width: 44px; height: 44px; margin: -8px -10px -8px 0; border: 0; background: transparent; color: var(--z-mut); font-size: 16px; cursor: pointer; border-radius: 50%; }
.z-news-x:hover { color: var(--z-text); }

/* ===== F1 (23/10/2026) : UI transverse hors admin ===== */
/* B.3 : pastilles et onglets sans fond sombre — l'inactif n'a plus qu'un contour, l'actif garde son fond */
.z-chip:not(.on), .pk-fpill:not(.on), .z-tabs > :not(.on), .ar-chips button:not(.on), .pk-tool:not(.pk-tool-acc) { background: transparent; }
html #tabs.z-chips, html .pk-seg, html .w-seg { background: transparent; }
.z-chip:not(.on), .pk-fpill:not(.on), .ar-chips button:not(.on) { color: var(--z-text); border-color: color-mix(in srgb, var(--z-line) 60%, var(--z-mut)); }
/* barre collée sous l'en-tête : plus de bande opaque, seulement un flou de ce qui défile dessous */
.z-scrollnav { background: transparent; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
/* B.2 / B.7a : toute barre d'onglets ou de sous-menu tient sur une seule ligne qu'on fait glisser */
.z-chips, .z-tabs, .pk-seg, #ctTypeTabs { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; max-width: 100%; }
.z-chips > *, .z-tabs > *, .pk-seg > * { flex: none; white-space: nowrap; }
/* B.4 : tuiles des tables plus basses (lobby poker : blindes, buy-in et joueurs sur une ligne ; lobby blackjack) */
.pk-tile { gap: 5px; padding: 7px 10px 9px; }
.pk-tile .pk-bg { height: 80px; }
.pk-tile-head, .pk-tile.has-bg .pk-tile-head { min-height: 34px; }
.pk-tile .pk-art { width: 92px; height: 66px; }
.pk-tile-head { padding-right: 84px; }
.pk-tile-name { font-size: 19px; }
.pk-info { display: flex; flex-wrap: wrap; gap: 2px 14px; }
.pk-info li { gap: 5px; }
.pk-info b { font-size: 13.5px; }
.pk-ico { width: 16px; height: 16px; }
.pk-tile .pk-action .z-btn-primary, .pk-tile .pk-action .z-btn-gold, .pk-tile .pk-action a.z-btn-ghost { padding: 5px 12px; }
.pk-card { gap: 8px; padding: 10px 12px; }
.pk-card-head { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px; }
.pk-card .pk-icon { width: 30px !important; height: 30px !important; font-size: 15px !important; border-radius: 8px; }
.pk-stats { padding: 6px 0; }
.pk-stat dt { margin-bottom: 2px; }
.pk-card .pk-action .z-btn-primary, .pk-card .pk-action .z-btn-gold, .pk-card .pk-action a.z-btn-ghost { padding: 7px 14px; }
@media (max-width: 560px) { .pk-tile-name { font-size: 18px; } .pk-tile .pk-bg { height: 74px; } .pk-tile-head { min-height: 32px; padding-right: 76px; } .pk-tile .pk-art { width: 84px; height: 60px; } }
/* B.5 : cartes joueurs (amis, demandes, messages) plus compactes */
html .zs-row { gap: 10px; padding: 7px 0; }
html .zs-av:not(.big) { width: 36px; height: 36px; font-size: 15px; }
html .zs-who { gap: 8px; }
/* B.6 : boutons uniformes — même arrondi, gros boutons ramenés à une taille raisonnable (44 px tactile conservé plus haut) */
.z-btn { border-radius: var(--z-r-md); line-height: 1.15; }
.z-btn-lg { padding: 10px 18px; font-size: 15px; }

/* G5 (24/10/2026) : pastilles réduites (~ -20 % : police 12 px, fond dessiné ~30 px au lieu de 40-44).
   Au doigt, la ZONE DE CLIC reste à 44 px : bordure haute/basse transparente de 7 px, fond limité à l'intérieur
   (background-clip), trait de contour redessiné par une ombre interne (--zp-line). */
html .z-chip, html .ar-chips button, html .pk-fpill { padding: 6px 12px; font-size: 12px; line-height: 1.15; }
html .ar-chips button { min-height: 30px; min-width: 30px; }
html .pk-seg button { padding: 6px 11px; font-size: 12px; font-weight: 800; line-height: 1; }
html .pk-tool { min-height: 30px; min-width: 30px; padding: 5px 10px; font-size: 12px; font-weight: 700; line-height: 1; }
html .pk-tool.pk-tool-acc { font-size: 15px; }
html body .z-tabs > * { padding: 6px 12px !important; font-size: 12px !important; line-height: 1.15; }
html body #adNav > button { min-height: 32px !important; font-size: 12px !important; }
html #tabs .z-chip { padding: 6px 11px; }
html body #adNav > button .ic { font-size: 13px; }
@media (pointer: coarse) {
  html .z-chip, html .pk-fpill, html .ar-chips button, html .pk-seg button, html .pk-tool,
  html body .z-tabs > *, html body #adNav > button, html body .z-subtabs > * {
    min-height: 44px !important; min-width: 44px; padding-top: 0 !important; padding-bottom: 0 !important;
    border-top: 7px solid transparent !important; border-bottom: 7px solid transparent !important;
    border-left-width: 0 !important; border-right-width: 0 !important;
    background-clip: padding-box !important; box-shadow: inset 0 0 0 1px var(--zp-line, var(--z-line));
  }
  html .z-chip:not(.on), html .pk-fpill:not(.on), html .ar-chips button:not(.on) { --zp-line: color-mix(in srgb, var(--z-line) 60%, var(--z-mut)); }
  html .z-chip.on, html .pk-fpill.on, html .ar-chips button.on, html .pk-tool-acc, html .pk-tool[aria-expanded="true"] { --zp-line: var(--z-acc); }
  html .pk-fpill.sng.on { --zp-line: var(--z-gold); }
  html body .z-tabs > .on { --zp-line: #2ed3a7; }
  html .pk-seg button { --zp-line: transparent; }
  html .pk-seg, html #tabs.z-chips { padding: 0 3px; }
  html #tabs .z-chip { --zp-line: transparent; }
  html body #adNav > button .n { line-height: 1.3; }
}
