* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg1: #23308f;
  --bg2: #0c1240;
  --card: #ffffff;
  --text: #1c2340;
  --accent: #ffb300;
  --board: min(calc(100vw - 24px), calc(100dvh - 250px));
  --die: 46px;
}
html, body { height: 100%; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(circle at 50% 20%, var(--bg1), var(--bg2));
  color: #fff;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
button { font: inherit; cursor: pointer; border: none; }

.screen { display: none; height: 100dvh; }
.screen.active { display: flex; }

/* ---------- Setup ---------- */
#setup, #join, #lobby { overflow-y: auto; padding: 16px; }
.card {
  background: var(--card); color: var(--text);
  border-radius: 20px; padding: 24px; width: min(440px, 100%); margin: auto;
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
  text-align: center;
}
h1 { font-size: 48px; letter-spacing: 8px; color: #e53935; text-shadow: 3px 3px 0 #fbc02d; margin-bottom: 12px; line-height: 1; }
h1 span {
  display: block; margin-top: 6px; font-size: 22px; letter-spacing: 12px; padding-left: 12px;
  color: #fff; background: #1c2340; text-shadow: none; border-radius: 6px; padding: 6px 0 6px 12px;
  width: fit-content; margin-left: auto; margin-right: auto;
}
.logo span { color: #fff; background: #e53935; border-radius: 4px; padding: 0 4px 0 7px; font-size: 14px; letter-spacing: 3px; vertical-align: middle; }
h2 { margin-bottom: 16px; }
.sub { font-weight: 700; margin: 4px 0 8px; }
.count { display: flex; gap: 8px; justify-content: center; margin-bottom: 16px; }
.count button {
  width: 56px; height: 48px; border-radius: 12px; font-size: 20px; font-weight: 700;
  background: #eef0f7; color: var(--text);
}
.count button.on { background: var(--bg1); color: #fff; }
.player-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.prow { display: flex; align-items: center; gap: 8px; }
.dot { width: 22px; height: 22px; border-radius: 50%; flex: none; box-shadow: inset 0 -3px 0 rgba(0,0,0,.2); }
.prow input {
  flex: 1; min-width: 0; padding: 10px 12px; border-radius: 10px; border: 2px solid #e1e4ef;
  font: inherit; color: var(--text);
}
.prow .type {
  width: 46px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center;
  border: 2px solid transparent; transition: background .15s, color .15s, transform .1s;
}
.prow .type.human { background: #e3ecff; color: #1e4fd6; }
.prow .type.bot { background: #ffe9b0; color: #9a6400; }
.prow .type:hover { border-color: currentColor; }
.prow .type:active { transform: scale(.92); }

.rules { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; text-align: left; }
.rule {
  display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 10px;
  background: #f5f6fb; cursor: pointer;
}
.rule input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--bg1); flex: none; }
.rule b { display: block; font-size: 15px; }
.rule small { display: block; color: #6b7290; font-size: 12px; line-height: 1.35; }
.rule.special { background: #fff6dc; }

.primary {
  background: var(--accent); color: #3a2600; font-weight: 800; font-size: 20px;
  padding: 14px 32px; border-radius: 14px; box-shadow: 0 5px 0 #c68400;
}
.primary:active { transform: translateY(3px); box-shadow: 0 2px 0 #c68400; }
.secondary {
  background: var(--bg1); color: #fff; font-weight: 700; font-size: 16px;
  padding: 12px 22px; border-radius: 12px; box-shadow: 0 4px 0 #111a5c; margin-top: 12px;
}
.secondary:active { transform: translateY(3px); box-shadow: 0 1px 0 #111a5c; }
.online-box { margin-top: 18px; padding-top: 14px; border-top: 2px dashed #e1e4ef; }
.hint { font-size: 13px; color: #6b7290; margin: 8px 0; line-height: 1.4; }
.err { color: #d32f2f; font-weight: 600; min-height: 1.2em; margin: 8px 0; }
.field {
  width: 100%; padding: 12px; border-radius: 10px; border: 2px solid #e1e4ef;
  font: inherit; color: var(--text); margin-bottom: 12px;
}
.share { display: flex; gap: 8px; }
.share .field { margin: 0; font-size: 13px; }
.join-info { display: flex; gap: 6px; justify-content: center; margin: 4px 0 14px; }
.seat-list { display: flex; flex-direction: column; gap: 8px; margin: 16px 0 8px; text-align: left; }
.seat { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #f5f6fb; border-radius: 10px; }
.seat .sname { flex: 1; font-weight: 600; }
.seat .sname i { color: #9aa0b8; font-weight: 400; }
.tag2 { font-size: 11px; padding: 2px 7px; border-radius: 6px; background: #e3e6f3; color: #3a4170; }
.tag2.off { background: #ffe0e0; color: #b71c1c; }
#lobby .card > .ghost, #join .card > .ghost { margin-top: 12px; }
.ghost { background: rgba(255,255,255,.15); color: inherit; padding: 8px 14px; border-radius: 12px; }
.card .ghost { background: #eef0f7; }

/* ---------- Jeu ---------- */
#game { flex-direction: column; align-items: center; }
.topbar { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 0; }
.logo { font-weight: 900; letter-spacing: 4px; font-size: 20px; color: #ffcc33; }
.table { width: var(--board); flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
#board { width: var(--board); height: var(--board); }
#svg { width: 100%; height: 100%; display: block; }

.prow3 { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; min-height: 64px; align-items: center; }
.slot { display: flex; min-width: 0; }
.slot.left { justify-content: flex-start; }
.slot.center { justify-content: center; }
.slot.right { justify-content: flex-end; }

.panel {
  display: flex; align-items: center; gap: 10px; padding: 7px 12px 7px 8px; border-radius: 16px;
  background: rgba(255,255,255,.08); border: 2px solid transparent; transition: .25s; min-width: 0;
}
.slot.right .panel { flex-direction: row-reverse; padding: 7px 8px 7px 12px; text-align: right; }
.panel.active { background: rgba(255,255,255,.2); border-color: var(--c); box-shadow: 0 0 16px var(--c); }
.panel.done { opacity: .55; }
.panel.me { outline: 2px dashed rgba(255,255,255,.55); outline-offset: 3px; }
.pinfo { min-width: 0; }
.pname { font-weight: 700; font-size: 15px; max-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pstat { display: flex; gap: 4px; align-items: center; margin-top: 4px; font-size: 12px; opacity: .9; }
.slot.right .pstat { justify-content: flex-end; }
.pip { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--c); }
.pip.full { background: var(--c); }
.tag { font-size: 11px; padding: 1px 6px; border-radius: 6px; background: rgba(255,255,255,.18); }

/* Dé 3D */
.die {
  width: var(--die); height: var(--die); perspective: 260px; background: none; flex: none;
  border-radius: 10px; position: relative; opacity: .5; transition: opacity .2s;
}
.panel.active .die { opacity: 1; }
.die.ready { animation: bob 1s ease-in-out infinite; }
.die.ready::after {
  content: ""; position: absolute; inset: -6px; border-radius: 14px; border: 3px solid var(--c);
  animation: halo 1s ease-in-out infinite;
}
.die:disabled { cursor: default; }
.die.jump { animation: jump .52s cubic-bezier(.3,.7,.4,1); }
.cube {
  width: 100%; height: 100%; position: relative; transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.15,.75,.25,1);
}
.face {
  position: absolute; inset: 0; background: #fff; border-radius: 9px;
  display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 6px; gap: 2px;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.08), inset 0 -4px 8px rgba(0,0,0,.15);
  backface-visibility: hidden;
}
.face span { border-radius: 50%; }
.face span.on { background: #1c2340; }
.f1 span.on { background: #e53935; }
.f1 { transform: translateZ(calc(var(--die) / 2)); }
.f6 { transform: rotateY(180deg) translateZ(calc(var(--die) / 2)); }
.f3 { transform: rotateY(90deg) translateZ(calc(var(--die) / 2)); }
.f4 { transform: rotateY(-90deg) translateZ(calc(var(--die) / 2)); }
.f2 { transform: rotateX(90deg) translateZ(calc(var(--die) / 2)); }
.f5 { transform: rotateX(-90deg) translateZ(calc(var(--die) / 2)); }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes halo { 0%,100% { opacity: .3; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes jump {
  0% { transform: translateY(0) scale(1); }
  30% { transform: translateY(-22px) scale(1.15); }
  60% { transform: translateY(0) scale(.95); }
  75% { transform: translateY(-6px) scale(1.03); }
  100% { transform: translateY(0) scale(1); }
}

.rules-bar { text-align: center; font-size: 11px; line-height: 1.5; opacity: .85; padding: 0 4px 8px; display: flex; flex-direction: column; gap: 3px; align-items: center; }
.rules-bar .classic { color: rgba(255,255,255,.7); }
.rules-bar .mafia-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.rules-bar .mafia-list b { font-size: 10px; letter-spacing: 2px; background: #e53935; color: #fff; border-radius: 4px; padding: 1px 6px; }
.rules-bar .mafia { background: rgba(255,204,51,.14); color: #ffd966; border-radius: 4px; padding: 1px 6px; }

/* Plateau */
.board-bg { fill: #fff; }
.cell { stroke: #b9c0cf; stroke-width: 1.2; }
.tok { transition: transform .14s ease-out; }
.tok .ring { fill: none; stroke: #fff; stroke-width: 3.5; opacity: 0; }
.tok .body { transform-box: fill-box; transform-origin: 50% 70%; }
.tok.movable { cursor: pointer; }
.tok.movable .ring { animation: pulse .8s ease-in-out infinite; }
.tok.movable .body { animation: hop .8s ease-in-out infinite; }
.tok.movable .shadow { animation: squash .8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.tok.selected .ring { animation: none; opacity: 1; stroke: #ffcc33; stroke-width: 4.5; }
.tok.selected .body { animation: none; transform: translateY(-6px); }
@keyframes hop { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes squash { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.7); opacity: .6; } }
@keyframes pulse { 0%,100% { opacity: .2; } 50% { opacity: 1; } }
.target { cursor: pointer; }
.target circle { stroke: #fff; stroke-width: 3; stroke-dasharray: 5 4; animation: spin 3s linear infinite; transform-box: fill-box; transform-origin: center; }
.target text { font-weight: 800; fill: #fff; paint-order: stroke; stroke: rgba(0,0,0,.55); stroke-width: 3px; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Fin de partie ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(5,8,30,.7); display: none;
  align-items: center; justify-content: center; padding: 16px;
}
.overlay.show { display: flex; }
.ranking { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.ranking li { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; padding: 8px 12px; background: #f3f4fa; border-radius: 12px; }
.row { display: flex; gap: 10px; justify-content: center; }

@media (max-width: 480px) {
  :root { --die: 40px; --board: min(calc(100vw - 16px), calc(100dvh - 240px)); }
  .pname { max-width: 80px; font-size: 13px; }
  .panel { gap: 7px; padding: 5px 8px 5px 6px; }
  .slot.right .panel { padding: 5px 6px 5px 8px; }
}
@media (max-width: 420px) {
  .pname { max-width: 56px; }
  .tag { display: none; }
}

.top-actions { display: flex; gap: 8px; }
#soundBtn { min-width: 44px; }
.my-name { margin-top: 14px; }
#onlineBox .sub { margin-top: 0; }
#onlineBtn { margin-top: 0; }

/* Chrono et vies */
.panel { position: relative; }
.plives { display: flex; gap: 1px; font-size: 11px; line-height: 1; margin-top: 3px; }
.slot.right .plives { justify-content: flex-end; }
.heart { color: #ff4d6d; text-shadow: 0 0 4px rgba(255,77,109,.6); }
.heart.lost { color: rgba(255,255,255,.22); text-shadow: none; }
.ptimer { position: absolute; left: 12px; right: 12px; bottom: 3px; height: 4px; border-radius: 2px; overflow: hidden; background: rgba(255,255,255,.15); opacity: 0; transition: opacity .2s; }
.ptimer.on { opacity: 1; }
.ptimer i { display: block; height: 100%; width: 100%; background: var(--c); }
.ptimer.urgent i { background: #ff3b3b; animation: urgent .5s ease-in-out infinite; }
@keyframes urgent { 50% { opacity: .35; } }
.panel.out { opacity: .4; filter: grayscale(.8); }
.panel.out .pname { text-decoration: line-through; }
.tok.gone { opacity: 0; pointer-events: none; transition: opacity .8s, transform .22s ease-out; }
.ranking .elim { color: #b71c1c; font-weight: 600; }

/* Salle d'attente : choix pour les places libres */
.fill-choice { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 4px 0 12px; font-size: 14px; color: #3a4170; }
.fill-choice button { padding: 7px 12px; border-radius: 9px; background: #eef0f7; color: var(--text); font-size: 14px; }
.fill-choice button.on { background: var(--bg1); color: #fff; }
.primary:disabled { opacity: .5; cursor: default; transform: none; }

.rules-bar .short { display: none; }
@media (max-width: 480px) {
  .rules-bar .long { display: none; }
  .rules-bar .short { display: inline; }
  .rules-bar { font-size: 10px; }
}

/* Accueil en largeur */
.card.wide { width: min(940px, 100%); padding: 22px 26px; }
.card.wide h1 { font-size: 40px; margin-bottom: 14px; }
.setup-grid { display: grid; grid-template-columns: 1fr; gap: 6px 28px; text-align: left; }
.setup-grid .sub { text-align: center; }
.setup-grid .rules { margin-bottom: 8px; }
.setup-actions { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 8px; padding-top: 14px; border-top: 2px dashed #e1e4ef; }
.action-box { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.action-box .sub { margin-top: 0; }
.online-row { display: flex; gap: 8px; width: 100%; }
.online-row .field { margin: 0; }
.online-row .secondary { margin-top: 0; white-space: nowrap; box-shadow: 0 3px 0 #111a5c; }
.action-box .hint { margin: 6px 0 0; }
@media (min-width: 820px) {
  .setup-grid { grid-template-columns: 1fr 1fr; }
  .setup-actions { grid-template-columns: 1fr 1.6fr; }
  .rule small { font-size: 11.5px; }
}
/* Rappel des règles : toute la largeur sous le plateau */
#game > .rules-bar { width: 100%; padding: 4px 12px 10px; }
/* place pour la barre du chrono sous les cœurs */
.panel { padding-bottom: 12px; }
.slot.right .panel { padding-bottom: 12px; }

/* Boutons à icône de la barre du haut */
.icon-btn {
  height: 40px; min-width: 40px; padding: 0 10px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.18); font-weight: 600; font-size: 14px;
  transition: background .15s, transform .1s;
}
.icon-btn:hover { background: rgba(255,255,255,.22); }
.icon-btn:active { transform: scale(.94); }
.icon-btn.muted { color: rgba(255,255,255,.55); }
.icon-btn.quit:hover { background: rgba(229,57,53,.55); border-color: rgba(255,255,255,.3); }
@media (max-width: 480px) { .icon-btn.quit span { display: none; } }

/* Fenêtre de confirmation */
.overlay .modal { width: min(360px, 100%); }
.modal-text { color: #4a5175; margin: -6px 0 18px; line-height: 1.45; }
.danger {
  background: #e53935; color: #fff; font-weight: 800; font-size: 16px; padding: 12px 22px; border-radius: 12px; box-shadow: 0 4px 0 #9e1b19;
}
.danger:active { transform: translateY(3px); box-shadow: 0 1px 0 #9e1b19; }
.modal .ghost { padding: 12px 22px; font-size: 16px; }

/* Couronne de classement dans la maison */
.badge { transform-box: fill-box; transform-origin: 50% 60%; filter: drop-shadow(0 3px 4px rgba(0,0,0,.25)); }
.spot { transition: opacity .4s; }
.spot.faded { opacity: 0; }

/* Emojis en ligne */
.emo-btn {
  position: absolute; top: -9px; right: -9px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: #e3e6ec; color: #1c2340;
  box-shadow: 0 2px 6px rgba(0,0,0,.35); border: 2px solid #1a237e; transition: transform .12s; z-index: 2;
}
.slot.right .emo-btn { right: auto; left: -9px; }
.emo-btn:hover { transform: scale(1.12); }
.emo-btn:active { transform: scale(.9); }
.emote-picker {
  position: fixed; z-index: 50; display: none; grid-template-columns: repeat(4, 44px); gap: 4px; padding: 8px;
  background: #fff; border-radius: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.4);
}
.emote-picker.show { display: grid; }
.emote-picker .emo-title { grid-column: 1 / -1; font-size: 12px; font-weight: 700; color: #4a5175; text-align: center; padding-bottom: 2px; }
.emote-picker button { width: 44px; height: 44px; border-radius: 10px; background: #f3f4fa; font-size: 26px; line-height: 1; transition: transform .1s, background .1s; }
.emote-picker button:hover { background: #dfe3ea; transform: scale(1.1); }
.emote { transform-box: fill-box; transform-origin: center; }

/* Rejoindre avec un code */
.code-row { margin-top: 8px; }
.code-row .field { text-transform: uppercase; letter-spacing: 2px; font-weight: 700; }
.code-row .field::placeholder { text-transform: none; letter-spacing: 0; font-weight: 400; }
.secondary.alt { background: #43a047; box-shadow: 0 3px 0 #2e7031; }
.err.small { font-size: 13px; margin: 6px 0 0; min-height: 0; }
.err.small:empty { display: none; }
/* Palette d'emojis dessinés */
.emote-picker button { display: grid; place-items: center; }
.big-code { font-size: 20px; letter-spacing: 3px; color: #e53935; }

/* Bouton emoji sur le panneau jaune : gris clair pour rester visible */
.emo-btn.grey { background: #e3e6ec; color: #1c2340; }

/* Spectateur */
.spec-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; background: rgba(255,204,51,.18); color: #ffd966; font-size: 13px; font-weight: 700; }
.spec-badge[hidden] { display: none; }

/* Menu de la partie */
.menu-card { width: min(420px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; text-align: left; }
.menu-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.menu-head h2 { margin: 0; }
.menu-close { width: 38px; height: 38px; border-radius: 10px; background: #eef0f7; color: var(--text); display: grid; place-items: center; }
.menu-item {
  width: 100%; display: grid; grid-template-columns: 28px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
  padding: 12px 14px; border-radius: 12px; background: #eef0f7; color: var(--text); text-align: left;
}
.menu-item svg { grid-row: 1 / 3; }
.menu-item span { font-weight: 700; font-size: 16px; }
.menu-item small { color: #6b7290; font-size: 12px; }
.menu-item.muted { color: #6b7290; }
.menu-info { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: #fff6dc; font-size: 14px; line-height: 1.6; }
.menu-info[hidden] { display: none; }
.menu-sub { font-size: 15px; margin: 16px 0 8px; }
.menu-rules { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.mr { padding: 8px 10px; border-radius: 10px; background: #f5f6fb; font-size: 13px; line-height: 1.4; }
.mr b { display: block; font-size: 14px; }
.mr span { color: #4a5175; }
.mr-mafia { margin-top: 6px; }
.mafia-tag { font-size: 11px; letter-spacing: 2px; font-weight: 800; background: #e53935; color: #fff; border-radius: 4px; padding: 2px 7px; }
.danger.wide { width: 100%; }

/* Installer l'application */
.install-btn {
  grid-column: 1 / -1; justify-self: center; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 12px; background: #eef0f7; color: var(--text); font-weight: 700;
}
.install-btn[hidden] { display: none; }

/* Application installée : marges pour l'encoche des téléphones */
.topbar { padding-top: max(8px, env(safe-area-inset-top)); }
.overlay { z-index: 40; }

/* Menu en panneau latéral (glisse depuis la droite) */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 40; display: flex; justify-content: flex-end;
  background: rgba(5,8,30,.55); opacity: 0; visibility: hidden; transition: opacity .22s, visibility .22s;
}
.drawer-overlay.show { opacity: 1; visibility: visible; }
.drawer {
  width: min(380px, 88vw); height: 100%; display: flex; flex-direction: column;
  background: #fff; color: var(--text); text-align: left; overflow-y: auto; overscroll-behavior: contain;
  padding: max(16px, env(safe-area-inset-top)) 18px 0;
  border-radius: 18px 0 0 18px; box-shadow: -12px 0 30px rgba(0,0,0,.35);
  transform: translateX(100%); transition: transform .26s cubic-bezier(.2,.8,.2,1);
}
.drawer-overlay.show .drawer { transform: translateX(0); }
.drawer .menu-head { position: sticky; top: calc(-1 * max(16px, env(safe-area-inset-top))); background: #fff; padding: 4px 0 10px; z-index: 1; }
.drawer-foot {
  position: sticky; bottom: 0; margin-top: auto; background: #fff;
  padding: 12px 0 max(16px, env(safe-area-inset-bottom)); box-shadow: 0 -8px 12px -10px rgba(0,0,0,.25);
}
@media (max-width: 480px) { .drawer { width: 92vw; } }

/* Badge Reverse sur les pions */
.rev { pointer-events: none; }
.rev-bg { fill: #fff; stroke: #1c2340; stroke-width: 2; filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
.rev-ico path { fill: none; stroke: #1c2340; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.rev .rev-one { display: none; }
.rev.locked .rev-two { display: none; }
.rev.locked .rev-one { display: inline; }
.rev.locked .rev-bg { fill: #e3e6ec; stroke: #8a93a6; }
.rev.locked .rev-ico path { stroke: #6b7488; }

/* Emplacements publicitaires (vides tant qu'aucun bloc n'est configuré) */
.ad-slot:empty { display: none; }
.ad-slot { grid-column: 1 / -1; width: 100%; min-height: 50px; margin: 10px 0; overflow: hidden; }

/* Lien vers la politique de confidentialité */
.legal { grid-column: 1 / -1; text-align: center; font-size: 12px; margin: 6px 0 0; }
.legal a { color: #6b7290; }

/* Compteur discret des parties en ligne */
.live-count { display: inline-flex; align-items: center; gap: 6px; margin: -4px 0 10px; font-size: 12px; color: #6b7290; }
.live-count[hidden] { display: none; }
.live-count i { width: 8px; height: 8px; border-radius: 50%; background: #43a047; box-shadow: 0 0 0 0 rgba(67,160,71,.6); animation: live 2s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(67,160,71,.55); } 70% { box-shadow: 0 0 0 7px rgba(67,160,71,0); } 100% { box-shadow: 0 0 0 0 rgba(67,160,71,0); } }

/* Compteur dans la barre du haut (partie) */
.logo-wrap { display: inline-flex; align-items: center; gap: 10px; }
.live-count.top { margin: 0; color: rgba(255,255,255,.55); font-size: 11px; }
@media (max-width: 380px) { .live-count.top span { display: none; } }
