body.mode-lobby,
body.mode-game {
  font-family: var(--hybrid-font-body);
  color: var(--hybrid-ink);
}

/* Réticule du Chasseur — curseur viseur doré quand il vise sa cible */
body.hunter-aiming,
body.hunter-aiming * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='9' stroke='%23d4a040' stroke-width='1.8' fill='none'/%3E%3Cline x1='16' y1='2' x2='16' y2='7' stroke='%23d4a040' stroke-width='1.8' stroke-linecap='round'/%3E%3Cline x1='16' y1='25' x2='16' y2='30' stroke='%23d4a040' stroke-width='1.8' stroke-linecap='round'/%3E%3Cline x1='2' y1='16' x2='7' y2='16' stroke='%23d4a040' stroke-width='1.8' stroke-linecap='round'/%3E%3Cline x1='25' y1='16' x2='30' y2='16' stroke='%23d4a040' stroke-width='1.8' stroke-linecap='round'/%3E%3Ccircle cx='16' cy='16' r='2' fill='%23d4a040'/%3E%3C/svg%3E") 16 16, crosshair !important;
}

/* Coup d'État — Mode "Cinématique / Exécution" (Base propre) */
@keyframes dictator-cinematic-in {
  0% { 
    box-shadow: inset 0 0 0 transparent, inset 0 0 0 transparent;
    background-color: transparent;
  }
  100% { 
    box-shadow: inset 0 12vh 0 #060405, inset 0 -12vh 0 #060405;
    background-color: rgba(10, 5, 5, 0.35);
  }
}

.dictator-crown-armed {
  filter: drop-shadow(0 0 8px rgba(255, 26, 26, 0.9));
}

/* Overlay centré pour la désignation de cible */
.dictator-exec-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.dictator-exec-popup {
  pointer-events: all;
  background: var(--hybrid-bg-panel, #131219);
  border: 1px solid rgba(255, 26, 26, 0.4);
  border-radius: 16px;
  padding: 24px 20px 16px;
  width: min(420px, 90vw);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 26, 26, 0.2);
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: dictator-popup-in 0.3s cubic-bezier(0.2, 0, 0.2, 1) forwards;
}

@keyframes dictator-popup-in {
  from { opacity: 0; transform: scale(0.93) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.dictator-exec-title {
  text-align: center;
  font: 600 0.8rem/1 var(--hybrid-font-body, sans-serif);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 26, 26, 0.85);
}

.dictator-exec-popup .action-target-grid {
  gap: 8px;
}

/* Bulles de chat flottantes pendant DAY_DICTATOR */
.dictator-chat-bubble {
  position: fixed;
  z-index: 210;
  max-width: 190px;
  padding: 7px 11px;
  background: rgba(18, 14, 18, 0.92);
  border: 1px solid rgba(255, 26, 26, 0.3);
  border-radius: 12px;
  font: 400 0.75rem/1.4 var(--hybrid-font-body, sans-serif);
  color: var(--hybrid-ink, #e0dde8);
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px) scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dictator-chat-bubble strong {
  color: rgba(255, 26, 26, 0.9);
  font-weight: 600;
}
.dictator-chat-bubble--in {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.dictator-chat-bubble--out {
  opacity: 0;
  transform: translateY(-8px) scale(0.95);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

body.dictator-coup::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  background-image: radial-gradient(circle at center, transparent 40%, rgba(0, 0, 0, 0.25) 100%);
  animation: dictator-cinematic-in 0.8s cubic-bezier(0.2, 0, 0.2, 1) forwards;
}

/* Réticule du Dictateur — curseur épée, uniquement pour lui lors de la désignation */
body.dictator-aiming,
body.dictator-aiming * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%23ff1a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 17.5 3 6 3 3 6 3 17.5 14.5'/%3E%3Cline x1='13' y1='19' x2='19' y2='13'/%3E%3Cline x1='16' y1='16' x2='20' y2='20'/%3E%3Cline x1='19' y1='21' x2='21' y2='19'/%3E%3C/svg%3E") 6 18, crosshair !important;
}

/* Pyromane — flash d'explosion plein écran au clic "Déclencher" */
body.pyro-exploding::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255, 120, 0, 0.8) 0%, rgba(200, 20, 0, 0.9) 60%, rgba(20, 0, 0, 1) 100%);
  animation: pyro-flash-burn 1.1s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
  mix-blend-mode: screen;
}

@keyframes pyro-flash-burn {
  0%   { opacity: 0; }
  10%  { opacity: 1; filter: brightness(2); }
  20%  { opacity: 0.85; }
  100% { opacity: 0; }
}

/* Liste des joueurs avec tonneaux (onglet Déclencher) */
.pyro-ignite-list {
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pyro-barrel-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(255, 152, 0, 0.06);
  border: 1px solid rgba(255, 152, 0, 0.2);
  border-radius: 8px;
  font: 400 0.85rem/1 var(--hybrid-font-body, sans-serif);
  color: var(--hybrid-ink, #e0dde8);
}
.pyro-barrel-icon { font-size: 1.1rem; line-height: 1; }
.pyro-barrel-name { font-weight: 500; }

/* Badge compteur dans l'onglet Déclencher */
.pyro-barrel-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: rgba(255, 152, 0, 0.8);
  color: #111;
  font: 700 0.68rem/1 var(--hybrid-font-body, sans-serif);
  vertical-align: middle;
  margin-left: 4px;
}



/* Badge emoji sur carte joueur (buildTargetGrid badgeMap) */
.action-target-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 1rem;
  line-height: 1;
  pointer-events: none;
}
.action-target-card { position: relative; }

body.mode-lobby::before,
body.mode-game::before {
  opacity: 0.06;
}

body[data-theme="midnight"].mode-lobby,
body:not([data-theme]).mode-lobby {
  background:
    radial-gradient(circle at top, rgba(255, 217, 156, 0.12), transparent 32%),
    linear-gradient(180deg, #1c1310 0%, #241713 18%, #3f2c26 62%, #211411 100%);
}

body[data-theme="midnight"].mode-game,
body:not([data-theme]).mode-game {
  background:
    radial-gradient(ellipse at top, rgba(100, 80, 200, 0.2), transparent 44%),
    linear-gradient(180deg, #0d0e1c 0%, #11142a 22%, #141832 60%, #0b0c1a 100%);
}

body[data-theme="classic"].mode-lobby {
  background:
    radial-gradient(circle at top, rgba(255, 214, 156, 0.12), transparent 34%),
    linear-gradient(180deg, #261511 0%, #351c16 24%, #55261e 62%, #2a140f 100%);
}

body[data-theme="classic"].mode-game {
  background:
    radial-gradient(circle at top, rgba(220, 200, 160, 0.2), transparent 36%),
    linear-gradient(180deg, #ede3d2 0%, #e4d8c2 32%, #d8cbb0 70%, #cfc0a0 100%);
}

body[data-theme="grey"].mode-lobby {
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.26), transparent 34%),
    linear-gradient(180deg, #5aafd7 0%, #b8d3e5 48%, #e8edf1 100%);
}

body[data-theme="grey"].mode-game {
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.22), transparent 32%),
    linear-gradient(180deg, #71b7d8 0%, #c3d9e8 44%, #edf0f3 100%);
}

body[data-theme="midnight"][data-phase-tone="day"],
body:not([data-theme])[data-phase-tone="day"] {
  --hybrid-bg-panel: rgba(26, 32, 52, 0.88);
  --hybrid-bg-panel-soft: rgba(41, 51, 79, 0.72);
}

body[data-theme="midnight"][data-phase-tone="night"],
body:not([data-theme])[data-phase-tone="night"] {
  --hybrid-bg-panel: rgba(20, 27, 44, 0.52);
  --hybrid-bg-panel-soft: rgba(31, 40, 65, 0.34);
}

body[data-theme="classic"][data-phase-tone="day"] {
  --hybrid-bg-panel: rgba(53, 27, 24, 0.9);
  --hybrid-bg-panel-soft: rgba(74, 36, 30, 0.78);
}

body[data-theme="classic"][data-phase-tone="night"] {
  --hybrid-bg-panel: rgba(46, 25, 23, 0.58);
  --hybrid-bg-panel-soft: rgba(68, 34, 29, 0.4);
}

body[data-theme="grey"][data-phase-tone="night"] {
  --hybrid-bg-panel: rgba(42, 52, 64, 0.56);
  --hybrid-bg-panel-soft: rgba(56, 67, 82, 0.38);
}

body[data-theme="midnight"][data-phase-tone="victory"],
body:not([data-theme])[data-phase-tone="victory"] {
  --hybrid-bg-panel: rgba(40, 26, 20, 0.9);
  --hybrid-bg-panel-soft: rgba(60, 38, 30, 0.8);
}

body[data-theme="classic"][data-phase-tone="victory"] {
  --hybrid-bg-panel: rgba(60, 24, 19, 0.92);
  --hybrid-bg-panel-soft: rgba(83, 34, 28, 0.82);
}

body[data-theme="grey"][data-phase-tone="victory"] {
  --hybrid-bg-panel: rgba(58, 66, 76, 0.92);
  --hybrid-bg-panel-soft: rgba(73, 83, 96, 0.82);
}

.hidden {
  display: none !important;
}

body.mode-lobby .site-footer,
body.mode-game .site-footer {
  display: none;
}

.legacy-panel,
.legacy-center-board,
.play-topbar,
.game-role-detail-panel {
  font-family: var(--hybrid-font-body);
}
