/* ═══════════════════════════════════════════════════════════════════
   Mur d'enquête : fiches papier épinglées sur un plateau sombre.
   Marqueur rouge pour le tour en cours, tampons encreurs, ruban adhésif.
   Aucune police externe — Impact et Courier sont partout et ont du caractère.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --board: #23211c;
  --board-2: #14130f;
  --paper: #efe7d5;
  --paper-2: #e2d8c2;
  --paper-edge: #cbbfa4;
  --ink: #211d17;
  --ink-soft: #6d6353;
  --red: #b8322f;
  --red-bright: #d94b45;
  --green: #4a7a4e;
  --amber: #b8862f;

  /* Largeur des colonnes publicitaires : 0 tant qu'on n'a pas la place. */
  --rail-w: 0px;
  --rail-gap: 14px;

  --display: Impact, Haettenschweiler, "Franklin Gothic Bold", "Arial Narrow", sans-serif;
  --type: "Courier New", "Nimbus Mono", monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  /* La marge réserve la largeur des colonnes publicitaires : le contenu se
     rétrécit au lieu de passer dessous. */
  padding: 20px calc(var(--rail-w) + var(--rail-gap) * 2) 60px;
  min-height: 100vh;
  color: var(--paper);
  font: 16px/1.55 var(--type);
  background:
    radial-gradient(ellipse at 50% 0%, #33302a 0%, transparent 60%),
    repeating-linear-gradient(90deg, rgba(0,0,0,.05) 0 2px, transparent 2px 4px),
    linear-gradient(160deg, var(--board), var(--board-2));
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
}

[hidden] { display: none !important; }

.screen { width: 100%; max-width: 520px; }
.screen.board { max-width: 1180px; }

/* ── Chemise cartonnée ─────────────────────────────────────────────── */

.folder { position: relative; margin-top: 26px; }

.folder-tab {
  display: inline-block;
  background: var(--paper-2);
  color: var(--ink);
  font-family: var(--display);
  letter-spacing: 0.16em;
  font-size: 14px;
  padding: 7px 22px 5px;
  border-radius: 8px 8px 0 0;
  transform: translateX(16px);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.12);
}

.sheet {
  background: var(--paper);
  color: var(--ink);
  border-radius: 3px;
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,.55), 0 0 0 1px var(--paper-edge);
  /* Fibres du papier */
  background-image:
    repeating-linear-gradient(0deg, rgba(120,100,60,.045) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(120,100,60,.03) 0 1px, transparent 1px 5px);
}

.title {
  font-family: var(--display);
  font-size: clamp(44px, 12vw, 76px);
  line-height: 0.86;
  margin: 0;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-shadow: 3px 3px 0 var(--red);
}
.title span { display: block; color: var(--red); text-shadow: 3px 3px 0 var(--ink); }

.stencil-line {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--paper-edge);
  padding-bottom: 12px;
}

.hint { margin: 0; font-size: 13px; color: var(--ink-soft); }

/* ── Champs et boutons ─────────────────────────────────────────────── */

.field { display: flex; flex-direction: column; gap: 5px; }
.field-label {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft);
}

input[type=text], input:not([type]) {
  font: 17px var(--type);
  color: var(--ink);
  padding: 10px 2px;
  border: none;
  border-bottom: 2px solid var(--ink);
  background: transparent;
  border-radius: 0;
}
input::placeholder { color: #b3a68c; }
input:focus { outline: none; border-bottom-color: var(--red); background: rgba(184,50,47,.05); }
.code-input { text-transform: uppercase; letter-spacing: 0.45em; font-weight: bold; font-size: 22px; }

/* Bouton tampon : ombre dure, s'enfonce au clic. */
.stamp-btn {
  font: bold 15px/1 var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--red);
  border: 2px solid var(--ink);
  padding: 14px 18px;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .06s, box-shadow .06s;
}
.stamp-btn:hover:not(:disabled) { transform: translate(1px, 1px); box-shadow: 3px 3px 0 var(--ink); }
.stamp-btn:active:not(:disabled) { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.stamp-btn:disabled { opacity: .4; cursor: not-allowed; }
.stamp-btn.ghost { background: transparent; color: var(--ink); }

.link-btn {
  font: 13px var(--type);
  background: none; border: none; color: var(--ink-soft);
  text-decoration: underline; cursor: pointer; padding: 4px;
}

.divider {
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft);
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--paper-edge); }

.toggle { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; }
.toggle .box {
  flex: none; width: 20px; height: 20px; margin-top: 2px;
  border: 2px solid var(--ink); background: transparent;
}
.toggle input:checked + .box {
  background: var(--red);
  box-shadow: inset 0 0 0 3px var(--paper);
}
.toggle em { color: var(--ink-soft); font-style: normal; font-size: 12px; }

/* ── Bandeau HUD ───────────────────────────────────────────────────── */

.hud {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-bottom: 16px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: #8f8674;
}
.hud-item { border: 1px solid #3d3931; padding: 5px 10px; background: rgba(0,0,0,.25); }
.hud-item strong { color: var(--paper); }
.hud-phase { color: var(--red-bright); border-color: var(--red); }

/* Le code doit se lire d'un bout à l'autre de la table : c'est la seule
   chose que les autres joueurs ont besoin de recopier. */
.hud-code {
  display: flex; align-items: center; gap: 10px;
  background: var(--paper); color: var(--ink);
  border: 2px solid var(--ink);
  padding: 4px 12px 5px;
  font-size: 11px;
}
.hud-code strong {
  font-family: var(--display); font-size: 26px;
  letter-spacing: 0.22em; margin-right: -0.22em;
  color: var(--red);
}

/* Bandeau du code au salon */
.code-hero {
  background: var(--paper); color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 0 12px 30px rgba(0,0,0,.5);
  padding: 14px 18px 16px;
  margin-bottom: 22px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  transform: rotate(-0.4deg);
}
.code-hero-label {
  font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-soft);
}
.code-hero strong {
  font-family: var(--display);
  font-size: clamp(48px, 15vw, 76px); line-height: 1;
  letter-spacing: 0.18em; margin-right: -0.18em;
  color: var(--red);
}

/* Accueil en étapes */
.step { display: flex; flex-direction: column; gap: 14px; }
.choice-row { display: flex; flex-direction: column; gap: 10px; }
.back { align-self: flex-start; padding-left: 0; }
.who-line { margin: 0; font-size: 14px; color: var(--ink-soft); }
.who-line strong { color: var(--ink); }

/* Panneau de réglages */
.options { display: flex; flex-direction: column; gap: 10px;
  border: 1px dashed var(--paper-edge); padding: 12px 13px; }
.opt-row { display: flex; align-items: center; gap: 12px; }
.opt-text { flex: 1; font-size: 14px; }
.opt-text small { display: block; font-size: 11.5px; color: var(--ink-soft); }
.stepper { display: flex; align-items: center; gap: 4px; flex: none; }
.stepper button {
  width: 30px; height: 30px; padding: 0; font: bold 18px/1 var(--type);
  background: var(--paper-2); color: var(--ink); border: 2px solid var(--ink);
  cursor: pointer; box-shadow: 2px 2px 0 var(--ink);
}
.stepper button:active:not(:disabled) { transform: translate(2px,2px); box-shadow: none; }
.stepper button:disabled { opacity: .3; cursor: not-allowed; }
.stepper .val {
  min-width: 34px; text-align: center;
  font-family: var(--display); font-size: 20px;
}
.options.readonly { opacity: .85; }

/* ── Bandeau du mot ────────────────────────────────────────────────── */

.word-banner {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 18px 22px 20px;
  margin-bottom: 34px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  transform: rotate(-0.35deg);
  box-shadow: 0 14px 34px rgba(0,0,0,.5);
  background-image: repeating-linear-gradient(0deg, rgba(120,100,60,.05) 0 1px, transparent 1px 3px);
}
.word-label {
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-soft);
}
.word-banner strong {
  font-family: var(--display);
  font-size: clamp(38px, 9vw, 68px);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.role-hint { font-size: 12.5px; color: var(--ink-soft); text-align: center; max-width: 46ch; }

.word-banner.mrwhite { background: var(--ink); color: var(--paper); border-color: var(--red); }
.word-banner.mrwhite .word-label, .word-banner.mrwhite .role-hint { color: #b0a48d; }
.word-banner.mrwhite strong { color: var(--red-bright); }

/* Ruban adhésif */
.tape {
  position: absolute; top: -11px; width: 74px; height: 22px;
  background: rgba(226, 214, 176, .55);
  border-left: 1px dashed rgba(0,0,0,.12); border-right: 1px dashed rgba(0,0,0,.12);
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.tape-l { left: 22px; transform: rotate(-5deg); }
.tape-r { right: 22px; transform: rotate(4deg); }

/* ── Rangée de suspects ────────────────────────────────────────────── */

.lineup {
  display: flex; gap: 18px; align-items: flex-start;
  overflow-x: auto; padding: 6px 2px 20px;
  scrollbar-width: thin;
  /* `safe` : centré tant que ça tient, aligné à gauche dès que ça déborde —
     sinon les premières fiches deviennent inatteignables au défilement. */
  justify-content: flex-start;
  justify-content: safe center;
}
.lineup-game { gap: 22px; }

/* Au salon, pas de colonne d'indices : des vignettes plus petites qui
   passent à la ligne, pour voir les 16 agents sans défilement latéral. */
#lobby-players { flex-wrap: wrap; overflow-x: visible; gap: 12px; }
#lobby-players .suspect { flex: 0 0 104px; gap: 6px; }
/* La marge basse reste indispensable ici aussi : sans elle les badges,
   positionnés en absolu, recouvrent le nom du joueur. */
#lobby-players .fiche { padding: 6px 6px 24px; }
#lobby-players .nameplate { font-size: 12px; padding: 5px 2px 6px; letter-spacing: 0.05em; }
#lobby-players .badge { font-size: 9px; padding: 2px 5px; }

.suspect { flex: 0 0 168px; display: flex; flex-direction: column; gap: 10px; }

/* La fiche photo */
.fiche {
  position: relative;
  background: var(--paper);
  border: 2px solid var(--ink);
  /* La marge basse réserve la place du bandeau de badges. */
  padding: 9px 9px 28px;
  box-shadow: 0 10px 22px rgba(0,0,0,.45);
}
.portrait-svg {
  display: block; width: 100%; aspect-ratio: 1; object-fit: contain;
  border: 1px solid rgba(0,0,0,.35);
  /* Fond clair derrière les avatars, qui sont transparents. */
  background: #d9d0ba;
}

.nameplate {
  font-family: var(--display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  text-align: center;
  padding: 7px 4px 4px;
  font-size: 15px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Numéro d'ordre de passage, pour lever toute ambiguïté sur qui suit qui. */
.seat-no {
  position: absolute; top: 9px; left: 9px;
  min-width: 20px; height: 20px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--paper);
  font-family: var(--display); font-size: 12px; letter-spacing: 0.04em;
}
.nameplate .you { color: var(--red); }

/* Cadre rouge du joueur dont c'est le tour : double trait décalé,
   comme un marqueur passé à la main autour de la fiche. */
.suspect.active .fiche::before,
.suspect.active .fiche::after {
  content: "";
  position: absolute; pointer-events: none;
  border: 5px solid var(--red);
  top: -11px; left: -11px; right: -11px; bottom: -11px;
}
.suspect.active .fiche::before {
  transform: rotate(-1.1deg); opacity: .85;
  animation: frame-pulse 2.2s ease-in-out infinite;
}
.suspect.active .fiche::after { transform: rotate(0.7deg); border-width: 4px; opacity: .7; }
.suspect.active .fiche { box-shadow: 0 0 34px rgba(217, 75, 69, .35), 0 10px 22px rgba(0,0,0,.45); }

/* Le joueur le plus désigné. Personne n'est éliminé — chaque bulletin ne
   joue que pour les points de celui qui l'a déposé — donc pas de portrait
   grisé ni de nom barré : un simple liseré signale la tête du scrutin, et
   plusieurs ex æquo peuvent le porter en même temps. */
.suspect.top-voted .fiche { box-shadow: 0 0 0 3px var(--amber), 0 10px 22px rgba(0,0,0,.45); }

/* Ruban en travers : il désigne les imposteurs une fois la partie finie.
   C'est lui qui répond à « qui était l'undercover ». */
.fiche[data-stamp]::after {
  content: attr(data-stamp);
  /* Contenu dans les bords de la carte : débordant, le ruban recouvrait le
     portrait du joueur voisin. */
  position: absolute; left: 2px; right: 2px; top: 37%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 17px; letter-spacing: 0.1em;
  color: var(--paper);
  background: var(--red);
  border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  padding: 6px 0 5px;
  transform: rotate(-8deg);
  box-shadow: 0 3px 10px rgba(0,0,0,.4);
  animation: stamp-slam .45s cubic-bezier(.2,1.4,.4,1) both;
}

.suspect.off .fiche { opacity: .5; }

/* Vote : la fiche devient cliquable. Le liseré pointillé est permanent —
   ne signaler la cible qu'au survol laisse le joueur ignorer qu'il peut
   cliquer, et c'est invisible au doigt sur mobile. */
.suspect.votable .fiche {
  cursor: pointer; transition: transform .1s;
  outline: 2px dashed rgba(184, 50, 47, .6); outline-offset: 4px;
}
.suspect.votable .fiche:hover { transform: translateY(-4px) rotate(-1deg); }
.suspect.votable .fiche:hover::before {
  content: "DÉSIGNER"; position: absolute; inset: auto 0 34% 0;
  text-align: center; font-family: var(--display); font-size: 15px;
  letter-spacing: 0.12em; color: var(--paper);
  background: rgba(184,50,47,.92); padding: 5px 0;
}
.suspect.voted .fiche { outline: 3px solid var(--red); outline-offset: 3px; }

/* Badges épinglés DANS la fiche, en position absolue.
   Sous la fiche, leur nombre variable (hôte, hors ligne, a voté, rôle…)
   décalait verticalement la colonne d'indices de chaque joueur : les
   indices ne s'alignaient plus d'une colonne à l'autre. En les sortant du
   flux, la fiche garde une hauteur constante et les indices démarrent tous
   à la même hauteur. */
.badges {
  position: absolute; left: 6px; right: 6px; bottom: 5px;
  display: flex; flex-wrap: wrap; gap: 4px; justify-content: center;
  pointer-events: none;
}
.badge {
  font-family: var(--display); font-size: 10.5px; letter-spacing: 0.12em;
  padding: 3px 7px; border: 1.5px solid currentColor; color: var(--ink-soft);
  background: var(--paper-2); transform: rotate(-1deg);
}
.badge.host { color: var(--amber); }
.badge.off { color: var(--red); }
.badge.ok { color: var(--green); }
.badge.turn { color: var(--paper); background: var(--red); border-color: var(--ink); }
.badge.civil { color: var(--green); }
.badge.undercover { color: var(--red); }
.badge.mrwhite { color: var(--ink); background: var(--paper); }

/* Indices empilés sous chaque suspect — colonne par joueur, pas
   chronologique : c'est en comparant les colonnes qu'on démasque. */
.slips { display: flex; flex-direction: column; gap: 7px; }
.slip {
  background: var(--paper-2);
  color: var(--ink);
  border-left: 4px solid var(--red);
  padding: 7px 9px 6px;
  font-size: 14.5px;
  box-shadow: 2px 2px 0 rgba(0,0,0,.35);
  word-break: break-word;
}
.slip .no {
  display: block; font-size: 9.5px; letter-spacing: 0.16em;
  color: var(--ink-soft); text-transform: uppercase;
}
.slip.skipped { color: var(--ink-soft); font-style: italic; border-left-color: var(--ink-soft); }
.slip.pending {
  background: transparent; border: 1px dashed #4a453b; border-left: 4px solid #4a453b;
  color: #6f695c; box-shadow: none;
}

/* ── Panneau d'action ──────────────────────────────────────────────── */

.action {
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 18px;
  display: flex; flex-direction: column; gap: 13px;
  box-shadow: 0 12px 28px rgba(0,0,0,.5);
  transform: rotate(0.25deg);
}
.action .prompt {
  margin: 0; font-family: var(--display); font-size: 20px;
  letter-spacing: 0.04em; text-transform: uppercase;
}
/* Un bouton étiré sur 1100 px n'a plus l'air d'un tampon. */
.action > .stamp-btn, .action > .link-btn { align-self: flex-start; }
.action .hint { color: var(--ink-soft); }
.action .row { display: flex; gap: 10px; align-items: flex-end; max-width: 620px; }
.action .row input { flex: 1; min-width: 0; }

.headline {
  font-family: var(--display); font-size: clamp(24px, 5vw, 34px);
  line-height: 1.05; text-transform: uppercase; letter-spacing: 0.03em;
}
.headline.red { color: var(--red); }

.ballots { font-size: 13.5px; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 4px 14px; }

.verdict {
  border: 3px double var(--ink); padding: 12px 14px;
  display: flex; flex-direction: column; gap: 6px;
}
.verdict.civil { border-color: var(--green); }
.verdict.undercover { border-color: var(--red); }
.verdict.mrwhite { border-color: var(--amber); }

.words-reveal { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.word-chip {
  border: 2px solid var(--ink); padding: 8px 16px 10px;
  display: flex; flex-direction: column; gap: 1px;
  background: var(--paper-2);
  animation: card-flip .5s cubic-bezier(.2,1.2,.3,1) both;
}
.word-chip:nth-child(2) { animation-delay: .12s; }
.word-chip .chip-label {
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft);
}
.word-chip strong {
  font-family: var(--display); font-size: 30px; letter-spacing: 0.04em; text-transform: uppercase;
}
.word-chip.under { border-color: var(--red); }
.word-chip.under strong { color: var(--red); }

/* ── Accusations : qui vote pour qui, en direct ────────────────────── */

/* Bandeau sous la carte. Sa hauteur est égalisée en JS entre toutes les
   colonnes pour que les indices démarrent tous à la même hauteur. */
.undercard {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 2px 0 4px;
}
.accusers {
  display: flex; flex-wrap: wrap; gap: 4px; justify-content: center;
}
.accuse-count {
  width: 100%; text-align: center;
  font-family: var(--display); font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--red-bright);
}
.accuse-count strong { font-size: 17px; }
.accuser {
  background: var(--red); color: var(--paper);
  border: 2px solid var(--ink);
  font-family: var(--display); font-size: 11.5px; letter-spacing: 0.06em;
  padding: 3px 7px 2px;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  box-shadow: 2px 2px 0 rgba(0,0,0,.45);
  transform: rotate(-1.5deg);
}
.accuser.mine { background: var(--paper); color: var(--red); }
.accuser:nth-child(odd) { transform: rotate(1.6deg); }

/* La cible que j'ai désignée */
.suspect.voted .fiche { outline: 3px solid var(--red); outline-offset: 3px; }

/* Points marqués sur la partie */
.gain {
  font-family: var(--display); font-size: 24px; letter-spacing: 0.04em;
  color: var(--green);
  background: var(--paper); border: 2px solid var(--green);
  padding: 2px 10px 3px; transform: rotate(-2deg);
}

/* ── Classement ────────────────────────────────────────────────────── */

.scoreboard { display: flex; flex-direction: column; gap: 6px; }
.score-line {
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px dotted var(--paper-edge); padding-bottom: 5px;
}
.score-line.mine .sname { color: var(--red); font-weight: bold; }
.score-line .rank {
  font-family: var(--display); font-size: 17px; color: var(--ink-soft);
  min-width: 20px;
}
.score-line .sname { min-width: 92px; font-size: 15px; }
.score-line .bar {
  flex: 1; min-width: 40px; height: 12px;
  background: var(--paper-2); border: 1px solid var(--paper-edge);
}
.score-line .bar-fill {
  display: block; height: 100%; background: var(--red);
  animation: bar-grow .7s cubic-bezier(.2,.9,.3,1) both;
  transform-origin: left center;
}
.score-line .pts { font-family: var(--display); font-size: 19px; min-width: 74px; text-align: right; }
.score-line .delta { color: var(--green); font-size: 14px; }

/* ── Animations ────────────────────────────────────────────────────── */

@keyframes deal-in {
  from { opacity: 0; transform: translateY(18px) rotate(-2.5deg) scale(.94); }
  to   { opacity: 1; transform: none; }
}
.deal-in { animation: deal-in .42s cubic-bezier(.2,1.1,.35,1) both; }

@keyframes type-in {
  from { opacity: 0; transform: translateX(-10px); clip-path: inset(0 100% 0 0); }
  to   { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
}
.type-in { animation: type-in .32s ease-out both; }

@keyframes drop-in {
  0%   { opacity: 0; transform: translateY(-14px) rotate(-8deg) scale(1.25); }
  70%  { transform: translateY(2px) rotate(2deg) scale(.98); }
  100% { opacity: 1; transform: rotate(-1.5deg); }
}
.drop-in { animation: drop-in .34s cubic-bezier(.2,1.3,.4,1) both; }

@keyframes stamp-slam {
  0%   { opacity: 0; transform: rotate(-8deg) scale(2.4); }
  60%  { opacity: 1; transform: rotate(-8deg) scale(.96); }
  100% { opacity: 1; transform: rotate(-8deg) scale(1); }
}

@keyframes card-flip {
  from { opacity: 0; transform: perspective(600px) rotateX(-70deg); }
  to   { opacity: 1; transform: none; }
}

@keyframes slam-in {
  0%   { opacity: 0; transform: scale(.9); }
  60%  { transform: scale(1.02); }
  100% { opacity: 1; transform: none; }
}
.slam-in { animation: slam-in .4s cubic-bezier(.2,1.3,.4,1) both; }

@keyframes pop-in {
  0%   { opacity: 0; transform: scale(.4) rotate(-2deg); }
  70%  { transform: scale(1.15) rotate(-2deg); }
  100% { opacity: 1; transform: scale(1) rotate(-2deg); }
}
.pop-in { animation: pop-in .4s cubic-bezier(.2,1.4,.4,1) both; }

@keyframes grow-in {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: none; }
}
.grow-in { animation: grow-in .35s ease-out both; }

@keyframes bar-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@keyframes toast-pop {
  0%   { opacity: 0; transform: translateX(-50%) translateY(-14px) rotate(-1deg); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0) rotate(-1deg); }
}
.toast.pop { animation: toast-pop .26s cubic-bezier(.2,1.4,.4,1) both; }

/* Le cadre rouge du joueur actif respire, pour attirer l'œil sans clignoter. */
@keyframes frame-pulse {
  0%, 100% { opacity: .85; }
  50%      { opacity: .45; }
}

/* Respect du réglage système : personne ne doit subir ces animations. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ── Divers ────────────────────────────────────────────────────────── */

.toast {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%) rotate(-1deg);
  background: var(--red); color: var(--paper);
  font-family: var(--display); letter-spacing: 0.08em; font-size: 15px;
  padding: 11px 20px; border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 rgba(0,0,0,.6);
  z-index: 60; max-width: 92vw; text-align: center;
}

@media (max-width: 620px) {
  .suspect { flex: 0 0 140px; }
  .hud-code { margin-left: 0; }
}

/* ── Chronomètre de tour ───────────────────────────────────────────── */

.countdown {
  display: flex; align-items: center; gap: 12px;
  background: var(--paper); color: var(--ink);
  border: 2px solid var(--ink);
  padding: 8px 14px; margin-bottom: 16px;
}
.countdown-label {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft);
}
.countdown strong {
  font-family: var(--display); font-size: 26px; min-width: 44px; text-align: right;
}
.countdown-track { flex: 1; height: 10px; background: var(--paper-2); border: 1px solid var(--paper-edge); }
.countdown-track > span {
  display: block; height: 100%; background: var(--green);
  transition: width .2s linear;
}
.countdown.urgent strong { color: var(--red); }
.countdown.urgent .countdown-track > span { background: var(--red); animation: frame-pulse .7s ease-in-out infinite; }

/* ── Écran de fin ──────────────────────────────────────────────────── */

.victory {
  border: 3px solid var(--ink);
  background: var(--paper-2);
  padding: 20px 18px 22px;
  text-align: center;
  position: relative; overflow: hidden;
}
/* Rayons partant du centre : l'annonce doit claquer. */
.victory::before {
  content: ""; position: absolute; inset: -60%;
  background: repeating-conic-gradient(from 0deg,
    rgba(184,50,47,.10) 0deg 7deg, transparent 7deg 14deg);
  animation: slow-spin 40s linear infinite;
}
.victory > * { position: relative; }
.victory.final { border-color: var(--amber); }

.victory-title {
  font-family: var(--display);
  font-size: clamp(30px, 6vw, 54px); line-height: 1;
  letter-spacing: 0.02em; color: var(--ink);
  text-shadow: 3px 3px 0 var(--paper);
}
.victory.final .victory-title { color: var(--red); }
.victory-sub { margin-top: 4px; font-size: 14px; color: var(--ink-soft); }

.victory-faces { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 14px; }
.victory-face { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 78px; }
.victory-face img {
  width: 68px; height: 68px; object-fit: contain;
  background: var(--paper); border: 2px solid var(--ink);
}
.victory-face span {
  font-family: var(--display); font-size: 13px; letter-spacing: 0.05em;
  max-width: 78px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.word-duel { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.duel-vs {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft);
}

/* Podium */
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 10px; }
.podium-step {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  width: 104px; animation: deal-in .5s cubic-bezier(.2,1.1,.35,1) both;
}
.podium-face {
  width: 58px; height: 58px; object-fit: contain;
  background: var(--paper); border: 2px solid var(--ink);
}
.podium-name {
  font-family: var(--display); font-size: 13px; letter-spacing: 0.05em;
  max-width: 104px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.podium-block {
  width: 100%; border: 2px solid var(--ink); background: var(--paper-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  padding: 6px 4px;
}
.podium-step.p1 .podium-block { height: 96px; background: var(--amber); color: var(--ink); }
.podium-step.p2 .podium-block { height: 74px; background: #c9c4b6; }
.podium-step.p3 .podium-block { height: 58px; background: #c1a184; }
.podium-rank { font-family: var(--display); font-size: 30px; line-height: 1; }
.podium-score { font-family: var(--display); font-size: 17px; }
.podium-gain { font-size: 12px; color: var(--green); font-weight: bold; }
.podium-step.p1 .podium-gain { color: #1f4a24; }

/* Bilan */
.score-face {
  width: 30px; height: 30px; object-fit: contain; flex: none;
  background: var(--paper-2); border: 1px solid var(--ink);
}
.score-line .sname { display: flex; flex-direction: column; }
.score-line .sname-txt { font-size: 15px; line-height: 1.1; }
.score-line .why { font-size: 10.5px; color: var(--ink-soft); }
.score-line .delta.zero { color: var(--ink-soft); }

@keyframes slow-spin { to { transform: rotate(360deg); } }

@media (max-width: 620px) {
  .podium-step { width: 88px; }
  .score-line .sname { min-width: 70px; }
}

/* ── Emplacements publicitaires ────────────────────────────────────── */

/* Deux colonnes dans les marges sur grand écran, un bandeau sous le contenu
   sinon. La bascule est faite par le CSS seul : le JS monte les trois
   encarts une fois et n'y retouche plus, sinon un simple redimensionnement
   compterait comme un nouvel affichage côté régie. */

.ad-rail {
  display: none;
  position: fixed; top: 50%; transform: translateY(-50%);
  width: var(--rail-w); height: min(620px, 78vh);
  flex-direction: column; gap: 6px;
  border: 1px dashed #4a453b; padding: 8px;
  z-index: 5;
}
#ad-left { left: var(--rail-gap); }
#ad-right { right: var(--rail-gap); }
.ad-rail .ad-placeholder { flex: 1; }

#ad-bottom { width: 100%; max-width: 680px; }

@media (min-width: 1400px) {
  :root { --rail-w: 160px; }
  .ad-rail { display: flex; }
  #ad-bottom { display: none; }
}
@media (min-width: 1820px) {
  :root { --rail-w: 300px; }
}

/* La mention « Publicité » est obligatoire : une annonce doit être
   identifiable comme telle. */
.ad-slot {
  margin-top: 22px;
  border: 1px dashed #4a453b;
  padding: 8px;
  display: flex; flex-direction: column; gap: 6px;
  overflow: hidden;
}
.ad-label {
  font-size: 9.5px; letter-spacing: 0.24em; text-transform: uppercase;
  color: #6f695c;
}
.ad-placeholder {
  min-height: 92px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: repeating-linear-gradient(45deg,
    rgba(255,255,255,.025) 0 8px, transparent 8px 16px);
  border: 1px solid #3d3931;
  color: #6f695c; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px;
}

/* ── Sélecteur de langue d'interface ───────────────────────────────── */

/* Choix personnel : il n'affecte que l'affichage de ce joueur. La langue
   des mots, elle, est un réglage de salle, dans le panneau de réglages. */
.lang-switch {
  position: fixed; top: 12px; right: 12px; z-index: 20;
  display: flex; gap: 4px;
}
.lang-switch.inline { position: static; flex: none; }
.lang-btn {
  font: bold 11px/1 var(--display);
  letter-spacing: 0.12em;
  padding: 6px 9px;
  background: rgba(0,0,0,.35); color: #8f8674;
  border: 1px solid #3d3931;
  cursor: pointer;
}
.lang-btn.on { background: var(--red); color: var(--paper); border-color: var(--ink); }
.lang-btn:disabled { opacity: .5; cursor: not-allowed; }
.lang-switch.inline .lang-btn { background: var(--paper-2); color: var(--ink-soft); border-color: var(--ink); }
.lang-switch.inline .lang-btn.on { background: var(--red); color: var(--paper); }

/* Sur grand écran, le sélecteur ne doit pas se poser sur la colonne de pub. */
@media (min-width: 1400px) {
  .lang-switch { right: calc(var(--rail-w) + var(--rail-gap) * 2); }
}

/* ═══════════════════════════════════════════════════════════════════
   Page d'accueil — contenu de présentation
   Rédigé côté serveur, lisible sans JavaScript : c'est lui qui porte le
   référencement. Mis en scène comme les pièces d'un dossier d'enquête,
   pour rester dans la charte du jeu.
   ═══════════════════════════════════════════════════════════════════ */

#screen-home { max-width: 760px; }

.pitch {
  background: var(--paper); color: var(--ink);
  border: 2px solid var(--ink);
  padding: 22px 24px 24px;
  margin-top: 26px;
  box-shadow: 0 14px 32px rgba(0,0,0,.5);
  transform: rotate(-0.25deg);
}
.pitch-title {
  font-family: var(--display); font-size: clamp(24px, 4.4vw, 36px);
  line-height: 1.02; margin: 0 0 10px; text-transform: uppercase;
  letter-spacing: 0.01em;
}
.pitch-body { margin: 0 0 10px; font-size: 15.5px; }
.pitch-free {
  margin: 0; display: inline-block;
  font-family: var(--display); font-size: 13px; letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--red); color: var(--paper);
  border: 2px solid var(--ink); padding: 5px 10px 4px;
  transform: rotate(-1.2deg);
}

.dossier-block {
  background: var(--paper); color: var(--ink);
  border: 2px solid var(--ink);
  padding: 22px 24px 24px;
  margin-top: 22px;
  box-shadow: 0 14px 32px rgba(0,0,0,.45);
}
.block-title {
  font-family: var(--display); font-size: clamp(20px, 3.4vw, 28px);
  margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.03em;
  border-bottom: 3px double var(--ink); padding-bottom: 8px;
}
.sub-title {
  font-family: var(--display); font-size: 15px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-soft);
  margin: 22px 0 10px;
}
.block-lead { margin: 0; font-size: 15px; }

/* Les trois temps d'une partie, en fiches numérotées. */
.steps { list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.step-card {
  position: relative;
  background: var(--paper-2); border: 1px solid var(--paper-edge);
  padding: 26px 14px 14px;
}
.step-no {
  position: absolute; top: -2px; left: -2px;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--paper);
  font-family: var(--display); font-size: 15px;
}
.step-card h3 {
  font-family: var(--display); font-size: 17px; margin: 0 0 6px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.step-card p { margin: 0; font-size: 13.5px; color: var(--ink-soft); }

/* Chiffres clés, présentés comme des tampons. */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px; margin: 18px 0 4px;
}
.stat {
  border: 2px solid var(--red); padding: 10px 8px 8px; text-align: center;
  display: flex; flex-direction: column; gap: 2px;
  transform: rotate(-0.6deg);
}
.stat:nth-child(even) { transform: rotate(0.7deg); }
.stat strong {
  font-family: var(--display); font-size: clamp(26px, 5vw, 38px);
  line-height: 1; color: var(--red);
}
.stat span {
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft);
}

/* Échantillon de paires réelles : à la fois preuve et contenu indexable. */
.samples { display: flex; flex-wrap: wrap; gap: 8px; }
.sample {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--paper-2); border-left: 4px solid var(--red);
  padding: 5px 10px 4px;
  box-shadow: 2px 2px 0 rgba(0,0,0,.25);
  font-size: 14.5px;
}
.sample i { font-style: normal; color: var(--ink-soft); font-size: 11px; }

.rejects { margin: 0; padding-left: 18px; font-size: 14px; }
.rejects li { margin-bottom: 6px; }

.faq { margin: 0; }
.faq dt {
  font-family: var(--display); font-size: 16px; letter-spacing: 0.03em;
  margin-top: 14px;
}
.faq dt:first-child { margin-top: 0; }
.faq dd { margin: 4px 0 0; font-size: 14px; color: var(--ink-soft); }


/* ── Page de supervision ───────────────────────────────────────────── */

.status-page { padding-inline: 14px; }
.metrics {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px;
}
.m-card {
  background: var(--paper); color: var(--ink);
  border: 2px solid var(--ink); border-left-width: 8px;
  padding: 11px 13px 12px;
  display: flex; flex-direction: column; gap: 1px;
}
/* Le code couleur porte sur le liseré : lisible d'un coup d'œil, sans
   rendre la carte illisible comme le ferait un fond coloré. */
.m-card.ok   { border-left-color: var(--green); }
.m-card.warn { border-left-color: var(--amber); }
.m-card.bad  { border-left-color: var(--red); }
.m-card.na   { border-left-color: var(--paper-edge); opacity: .7; }
.m-label {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft);
}
.m-value { font-family: var(--display); font-size: 27px; line-height: 1.05; }
.m-card.bad .m-value { color: var(--red); }
.m-card.warn .m-value { color: #8a6420; }
.m-note { font-size: 11.5px; color: var(--ink-soft); }

.m-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
.m-table td { border-bottom: 1px dotted var(--paper-edge); padding: 5px 2px; }
.m-table td:last-child { text-align: right; font-family: var(--display); font-size: 17px; }

/* ═══════════════════════════════════════════════════════════════════
   Pages de contenu — règles, à propos, mentions
   Même charte que le jeu : feuille de papier sur plateau sombre. Le texte
   long y respire davantage, avec des interlignes plus généreux.
   ═══════════════════════════════════════════════════════════════════ */

.content-page { max-width: 780px; }
.content-page .sheet { padding: 30px 30px 34px; line-height: 1.65; }
.page-title {
  font-family: var(--display);
  font-size: clamp(30px, 6vw, 46px); line-height: 1;
  margin: 0 0 18px; text-transform: uppercase; letter-spacing: 0.02em;
  border-bottom: 4px double var(--ink); padding-bottom: 12px;
}
.content-page p { margin: 0 0 14px; }
.content-page a { color: var(--red); }
.lede {
  font-size: 17px; border-left: 5px solid var(--red);
  padding: 2px 0 2px 14px; margin-bottom: 22px !important;
}
.content-page .block-title {
  font-family: var(--display); font-size: 21px;
  margin: 26px 0 12px; text-transform: uppercase; letter-spacing: 0.04em;
  border-bottom: 1px solid var(--paper-edge); padding-bottom: 6px;
}
.back-home {
  display: inline-block; margin: 22px 0 -8px;
  font-size: 13px; color: #8f8674; text-decoration: none;
}
.back-home:hover { color: var(--red-bright); }
.cta-line { margin-top: 24px !important; }
.cta-line .stamp-btn { display: inline-block; text-decoration: none; }
.nowrap { white-space: nowrap; }

/* Les rôles, repris des fiches du jeu */
.role-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px; margin: 4px 0 8px;
}
.role-card {
  border: 2px solid var(--ink); border-top-width: 7px;
  background: var(--paper-2); padding: 12px 14px 14px;
}
.role-card.civil { border-top-color: var(--green); }
.role-card.under { border-top-color: var(--red); }
.role-card.white { border-top-color: var(--amber); }
.role-tag {
  font-family: var(--display); font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-soft);
}
.role-word {
  font-family: var(--display); font-size: 30px; line-height: 1;
  margin: 2px 0 8px !important; letter-spacing: 0.03em;
}
.role-card.under .role-word { color: var(--red); }
.role-card.white .role-word { color: var(--amber); }
.role-card p:last-child { font-size: 13.5px; margin: 0 !important; color: var(--ink-soft); }

/* Une manche rejouée : les indices comme au jeu, avec le commentaire à côté */
.replay { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 14px; }
.replay-turn {
  display: grid; grid-template-columns: 96px 130px 1fr;
  gap: 10px;
  /* Alignement sur le haut plutôt que sur la ligne de base : cette dernière
     gonflait la hauteur des lignes dont le commentaire tient sur deux
     lignes, et la ligne suspecte faisait le double des autres. */
  align-items: start;
  border-left: 4px solid var(--paper-edge); padding: 8px 0 8px 12px;
}
.replay-who, .replay-note { line-height: 1.5; padding-top: 2px; }
.replay-turn.suspect { border-left-color: var(--red); background: rgba(184,50,47,.06); }
.replay-who {
  font-family: var(--display); font-size: 15px; letter-spacing: 0.06em;
  text-transform: uppercase;
}
.replay-clue {
  background: var(--paper-2); border-left: 3px solid var(--red);
  padding: 3px 9px; font-size: 15px;
}
.replay-note { font-size: 13px; color: var(--ink-soft); }
.replay-end {
  border: 3px double var(--ink); padding: 10px 14px;
  font-size: 15px; margin-bottom: 14px !important;
}
@media (max-width: 620px) {
  .replay-turn { grid-template-columns: 1fr; gap: 3px; }
  .replay-clue { justify-self: start; }
}

/* Tableaux et listes */
.rules-table { width: 100%; border-collapse: collapse; margin: 4px 0 16px; }
.rules-table td { border-bottom: 1px dotted var(--paper-edge); padding: 8px 4px; vertical-align: top; }
.rules-table td.pts {
  font-family: var(--display); font-size: 22px; color: var(--red);
  width: 84px; white-space: nowrap;
}
.rules-table td.key {
  font-family: var(--type); font-weight: bold; width: 120px; white-space: nowrap;
}
.rules-list { margin: 0 0 16px; padding-left: 20px; }
.rules-list li { margin-bottom: 8px; }
.rules-dl { margin: 0 0 16px; }
.rules-dl dt {
  font-family: var(--display); font-size: 15px; letter-spacing: 0.04em;
  margin-top: 12px;
}
.rules-dl dd { margin: 2px 0 0 0; font-size: 14px; color: var(--ink-soft); }

/* Ce que le système écarte */
.reject-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px; margin: 6px 0 16px;
}
.reject-card {
  border: 1px dashed var(--paper-edge); padding: 10px 12px;
  background: repeating-linear-gradient(45deg,
    rgba(184,50,47,.03) 0 8px, transparent 8px 16px);
}
.reject-pair {
  display: block; font-family: var(--display); font-size: 17px;
  letter-spacing: 0.03em; color: var(--red); margin-bottom: 4px;
}
.reject-pair i { font-style: normal; color: var(--ink-soft); margin: 0 4px; }
.reject-card p { font-size: 13px; color: var(--ink-soft); margin: 0 !important; }

/* Contact */
.contact-card {
  border: 3px double var(--ink); background: var(--paper-2);
  padding: 16px 18px 18px; text-align: center;
  display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px;
}
.contact-label {
  font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft);
}
.contact-mail {
  font-family: var(--display); font-size: clamp(20px, 4.6vw, 30px);
  letter-spacing: 0.03em; color: var(--red); word-break: break-all;
}


/* ── Bandeau de consentement ───────────────────────────────────────── */

.consent {
  position: fixed; left: 14px; right: 14px; bottom: 14px; z-index: 100;
  max-width: 720px; margin: 0 auto;
  background: var(--paper); color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 0 16px 40px rgba(0,0,0,.6);
  padding: 16px 18px;
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  animation: consent-in .3s cubic-bezier(.2,1.1,.35,1) both;
}
.consent-text { flex: 1; min-width: 240px; }
.consent-text strong {
  display: block; font-family: var(--display); font-size: 17px;
  letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 3px;
}
.consent-text p { margin: 0 0 4px; font-size: 13.5px; }
.consent-link { font-size: 12px; color: var(--red); }
/* Les deux boutons ont le même poids : un « refuser » discret rendrait le
   consentement non libre, donc invalide. */
.consent-actions { display: flex; gap: 8px; flex: none; }
.consent-actions .stamp-btn { padding: 11px 16px; font-size: 13px; }

@keyframes consent-in {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   Pied de page
   Une bande sobre, séparée du contenu par un filet, où les liens sont
   groupés par nature : ce qui parle du jeu d'un côté, ce qui parle du
   site de l'autre. Les mentions légales doivent rester joignables en un
   clic depuis n'importe quelle page.
   ═══════════════════════════════════════════════════════════════════ */

.site-foot {
  width: 100%;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid #3d3931;
  color: #8f8674;
  font-size: 13px;
  text-align: left;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 22px 26px;
  align-items: start;
}

.foot-brand { padding-right: 10px; }
.foot-logo {
  display: block;
  font-family: var(--display);
  font-size: 21px; letter-spacing: 0.04em;
  color: var(--paper); line-height: 1;
}
.foot-logo b { color: var(--red-bright); font-weight: normal; }
.foot-brand p { margin: 7px 0 0; font-size: 12px; color: #6f695c; line-height: 1.5; }

.foot-col { display: flex; flex-direction: column; gap: 5px; }
.foot-col h2 {
  margin: 0 0 3px;
  font-family: var(--display);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: #6f695c; font-weight: normal;
}
.foot-col a {
  color: #a9a08c; text-decoration: none;
  font-size: 12.5px; line-height: 1.45;
  border-bottom: 1px solid transparent;
  width: fit-content;
}
.foot-col a:hover { color: var(--red-bright); border-bottom-color: var(--red); }

.foot-bottom {
  margin-top: 22px; padding-top: 14px;
  border-top: 1px solid #2c2823;
  display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center;
  font-size: 11.5px; color: #6f695c;
}
.foot-dot { color: #3d3931; }
.foot-link-btn {
  margin-left: auto;
  background: none; border: 1px solid #3d3931; color: #8f8674;
  font: inherit; cursor: pointer;
  padding: 3px 9px;
}
.foot-link-btn:hover { color: var(--red-bright); border-color: var(--red); }

@media (max-width: 640px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-link-btn { margin-left: 0; }
}
