/* Coin du feu (public/js/feu.js) : la vue « feu » d'une conversation au feu de camp, et la carte
   « Coin du feu » posée sur le plan. La scène est toujours la nuit (pixel art, feu-art.js) : ses
   cartes sont sombres, quel que soit le thème. Rien ne tient à la couleur seule : chaque état a son
   dessin et ses mots. */

/* --- La vue : la carte s'efface ; les vignettes restent (elles jouent les voix), invisibles --- */
.app.feu-view .minimap,
.app.feu-view .zoom,
.app.feu-view .recenter,
.app.feu-view .hint,
.app.feu-view .follow-chip {
  opacity: 0;
  pointer-events: none;
}
.app.feu-view #videos .tile {
  opacity: 0 !important;
  pointer-events: none !important;
}

.feu {
  --ink: #fbf6ee;
  --ink-2: rgba(251, 246, 238, 0.72);
  --card: rgba(18, 13, 36, 0.66);
  --card-rim: rgba(255, 236, 214, 0.14);
  --ember: #ffb35a;
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  background: #07061a;
  color: var(--ink);
  font-family: var(--font);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.015);
  transition:
    opacity 420ms var(--ease-out),
    transform 560ms var(--ease-sheet),
    visibility 0s 420ms;
}
.feu.shown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition:
    opacity 420ms var(--ease-out),
    transform 560ms var(--ease-sheet);
}
.feu > * {
  position: absolute;
  left: 0;
  top: 0;
}
.feu-sky {
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}
.feu-fire {
  image-rendering: pixelated;
  pointer-events: none;
}
/* La lueur du feu : un halo chaud qui respire (pas au mouvement réduit). */
.feu-glow {
  --glow: 1;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 158, 70, calc(0.34 * var(--glow))), rgba(255, 120, 50, calc(0.14 * var(--glow))) 45%, transparent 100%);
  mix-blend-mode: screen;
  animation: feu-breathe 3.2s ease-in-out infinite;
  transition:
    translate var(--dur-sheet) var(--ease-sheet),
    width var(--dur-sheet) var(--ease-sheet),
    height var(--dur-sheet) var(--ease-sheet);
}
@keyframes feu-breathe {
  0%,
  100% {
    opacity: 0.86;
  }
  37% {
    opacity: 1;
  }
  61% {
    opacity: 0.9;
  }
  78% {
    opacity: 0.97;
  }
}

/* --- Les places : une caméra ronde, le nom dessous, la carte et les voix --- */
.feu-seats {
  width: 0;
  height: 0;
}
.feu-seat {
  --d: 96px;
  --plate: 28px;
  position: absolute;
  left: 0;
  top: 0;
  width: var(--d);
  display: flex;
  flex-direction: column;
  align-items: center;
  outline: none;
  transition:
    translate var(--dur-sheet) var(--ease-sheet),
    opacity var(--dur-slow) var(--ease-out),
    scale var(--dur-slow) var(--ease-spring);
}
.feu-seat.entering,
.feu-seat.leaving {
  opacity: 0;
  scale: 0.7;
}
.feu-face {
  position: relative;
  width: var(--d);
  height: var(--d);
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #3b3058, #1d1631);
  box-shadow:
    0 0 0 3px rgba(255, 236, 214, 0.2),
    0 12px 28px -10px rgba(0, 0, 0, 0.7),
    0 0 34px -6px rgba(255, 150, 60, 0.35);
  transition:
    box-shadow var(--dur-base) var(--ease-out),
    filter 900ms var(--ease-out),
    scale var(--dur-base) var(--ease-spring);
}
.feu-face video,
.feu-face canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}
.feu-face video {
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-out);
}
.feu-seat.cam .feu-face video {
  opacity: 1;
}
.feu-seat.cam .feu-face canvas {
  opacity: 0;
}
.feu-seat.mirror .feu-face video {
  transform: scaleX(-1);
}
.feu-seat.speaking .feu-face {
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 7px rgba(255, 255, 255, 0.22),
    0 12px 28px -10px rgba(0, 0, 0, 0.7);
}
/* La nuit, les yeux se ferment : les autres s'assombrissent (sauf, pour un loup, les autres loups). */
.feu-shade,
.feu-ghost {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 246, 230, 0.9);
  opacity: 0;
  transition: opacity 700ms var(--ease-out);
  pointer-events: none;
}
.feu-shade svg,
.feu-ghost svg {
  width: 34%;
  height: 34%;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}
.feu-seat.asleep .feu-face {
  filter: brightness(0.32) saturate(0.4);
}
.feu-seat.asleep .feu-shade {
  opacity: 1;
}
/* Hors jeu : en gris, un petit fantôme (et sa carte retournée dessous). */
.feu-seat.out .feu-face {
  filter: grayscale(1) brightness(0.5);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}
.feu-seat.out .feu-ghost {
  opacity: 0.85;
}
.feu-seat.away:not(.out) .feu-face {
  filter: brightness(0.6) saturate(0.6);
}
/* À cliquer : un anneau, et ce que fait le clic, écrit au-dessus. */
.feu-seat.pickable {
  cursor: pointer;
}
.feu-seat.pickable .feu-face {
  box-shadow:
    0 0 0 3px rgba(255, 236, 214, 0.55),
    0 0 0 8px rgba(255, 236, 214, 0.12),
    0 12px 28px -10px rgba(0, 0, 0, 0.7);
}
.feu-seat.pickable.asleep .feu-face {
  filter: brightness(0.62) saturate(0.7);
}
.feu-seat.pickable:hover .feu-face,
.feu-seat.pickable:focus-visible .feu-face {
  scale: 1.05;
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 9px rgba(255, 255, 255, 0.2),
    0 12px 28px -10px rgba(0, 0, 0, 0.7);
}
.feu-seat.chosen .feu-face {
  box-shadow:
    0 0 0 4px var(--ember),
    0 0 0 10px rgba(255, 179, 90, 0.25),
    0 0 40px rgba(255, 170, 70, 0.5);
}
.feu-pick {
  position: absolute;
  left: 50%;
  bottom: calc(100% - var(--plate) + 8px);
  bottom: auto;
  top: -30px;
  translate: -50% 4px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(18, 13, 36, 0.86);
  border: 1px solid var(--card-rim);
  font-size: var(--fs-footnote);
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity var(--dur-fast) var(--ease-out),
    translate var(--dur-base) var(--ease-out);
}
.feu-pick:empty {
  display: none;
}
.feu-seat.pickable:hover .feu-pick,
.feu-seat.pickable:focus-visible .feu-pick,
.feu-seat.chosen .feu-pick {
  opacity: 1;
  translate: -50% 0;
}
.feu-seat.chosen .feu-pick {
  background: var(--ember);
  color: #2b1608;
  border-color: transparent;
}
/* À son tour (imposteur) : l'anneau respire. */
.feu-seat.turn .feu-face {
  box-shadow:
    0 0 0 4px #fff,
    0 0 0 10px rgba(255, 255, 255, 0.16),
    0 0 44px rgba(255, 200, 120, 0.45);
  animation: feu-turn 1.6s var(--ease-out) infinite;
}
@keyframes feu-turn {
  50% {
    scale: 1.04;
  }
}
.feu-seat.winner .feu-face {
  box-shadow:
    0 0 0 4px #ffd36a,
    0 0 40px rgba(255, 211, 106, 0.55);
}

.feu-plate {
  margin-top: 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  max-width: calc(var(--d) + 40px);
  text-align: center;
}
.feu-plate b {
  font-size: var(--fs-sub);
  font-weight: 650;
  line-height: 1.15;
  padding: 2px 9px;
  border-radius: var(--r-pill);
  background: rgba(14, 10, 28, 0.62);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.feu-seat.me .feu-plate b {
  background: rgba(255, 179, 90, 0.92);
  color: #2b1608;
}
.feu-state,
.feu-role,
.feu-votes,
.feu-person {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.feu-state {
  font-style: normal;
  font-size: var(--fs-caption);
  font-weight: 600;
  color: var(--ink-2);
}
.feu-ic {
  display: inline-grid;
  place-items: center;
  flex: none;
}
.feu-tags {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  max-width: calc(var(--d) + 60px);
}
.feu-tags:empty {
  display: none;
}
.feu-role {
  padding: 2px 8px 2px 6px;
  border-radius: var(--r-pill);
  font-size: var(--fs-caption);
  font-weight: 700;
  background: var(--tone-bg, rgba(255, 255, 255, 0.14));
  color: var(--tone-ink, var(--ink));
  animation: feu-pop var(--dur-slow) var(--ease-spring);
}
.feu-votes {
  padding: 2px 6px;
  border-radius: var(--r-pill);
  background: rgba(14, 10, 28, 0.7);
  font-size: var(--fs-caption);
  animation: feu-pop var(--dur-slow) var(--ease-spring);
}
.feu-count {
  font-weight: 700;
  margin-right: 2px;
}
.feu-voter {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-grid;
  place-items: center;
  background: #2f2648;
  font-size: 10px;
  font-weight: 700;
  margin-left: -5px;
  box-shadow: 0 0 0 1.5px rgba(14, 10, 28, 0.9);
}
.feu-voter:first-of-type {
  margin-left: 0;
}
@keyframes feu-pop {
  from {
    opacity: 0;
    scale: 0.8;
  }
}
/* Imposteur : les indices de chacun, dans une bulle à côté de sa tête (du côté du dehors). */
.feu-say {
  position: absolute;
  left: calc(100% - 4px);
  top: 4%;
  display: flex;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 14px;
  background: #fffaf2;
  color: #2b1d2f;
  font-size: var(--fs-footnote);
  font-weight: 650;
  white-space: nowrap;
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.6);
  z-index: 2;
  animation: feu-pop var(--dur-slow) var(--ease-spring);
}
.feu-say::after {
  content: "";
  position: absolute;
  left: -4px;
  bottom: 6px;
  width: 10px;
  height: 10px;
  rotate: 45deg;
  background: inherit;
}
.feu-seat.west .feu-say {
  left: auto;
  right: calc(100% - 4px);
}
.feu-seat.west .feu-say::after {
  left: auto;
  right: -4px;
}
.feu-say[hidden] {
  display: none;
}
.feu-clue {
  opacity: 0.55;
}
.feu-clue.last {
  opacity: 1;
}
.feu-clue.none {
  font-style: italic;
  font-weight: 500;
}

/* Les teintes des cartes : toujours avec leur nom et leur dessin. */
.tone-wolf {
  --tone-bg: #c8453f;
  --tone-ink: #fff;
}
.tone-seer {
  --tone-bg: #8e63d6;
  --tone-ink: #fff;
}
.tone-witch {
  --tone-bg: #2c9c8a;
  --tone-ink: #fff;
}
.tone-village {
  --tone-bg: #d8a04a;
  --tone-ink: #2b1608;
}
.tone-white {
  --tone-bg: #f3efe6;
  --tone-ink: #2b1d2f;
}
.tone-word {
  --tone-bg: #5b8def;
  --tone-ink: #fff;
}
.tone-watch {
  --tone-bg: rgba(255, 255, 255, 0.16);
  --tone-ink: var(--ink);
}

/* --- Le meneur, en haut --- */
.feu-host,
.feu-desk,
.feu-journal,
.feu-watchers {
  border-radius: var(--r-xl);
  background: var(--card);
  border: 1px solid var(--card-rim);
  -webkit-backdrop-filter: var(--glass-blur, blur(18px) saturate(1.3));
  backdrop-filter: var(--glass-blur, blur(18px) saturate(1.3));
  box-shadow: 0 18px 50px -24px rgba(0, 0, 0, 0.8);
}
/* Sans l'effet verre (app.css) : des cartes plus pleines, le feu ne s'efface plus derrière. */
:root[data-glass="off"] .feu {
  --card: rgba(18, 13, 36, 0.88);
}
.feu-host {
  padding: 12px 18px 14px;
  text-align: center;
  overflow: hidden;
  transition:
    translate var(--dur-sheet) var(--ease-sheet),
    width var(--dur-sheet) var(--ease-sheet);
}
.feu-host-in {
  animation: feu-rise 520ms var(--ease-sheet);
}
@keyframes feu-rise {
  from {
    opacity: 0;
    translate: 0 10px;
  }
}
.feu-host-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: var(--fs-footnote);
  font-weight: 650;
  color: var(--ember);
  letter-spacing: 0.01em;
}
.feu-phase {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.feu-clock {
  font-variant-numeric: tabular-nums;
  padding: 1px 8px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink);
}
.feu-clock:empty {
  display: none;
}
.feu-clock.soon {
  background: rgba(255, 179, 90, 0.25);
}
.feu-title {
  margin: 6px 0 2px;
  font-size: var(--fs-title);
  font-weight: 750;
  line-height: 1.2;
  text-wrap: balance;
}
.feu-text {
  margin: 0;
  font-size: var(--fs-sub);
  line-height: 1.4;
  color: var(--ink-2);
  text-wrap: balance;
}
.feu-bar {
  margin: 10px auto 0;
  height: 3px;
  width: min(320px, 70%);
  border-radius: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}
.feu-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #ff9f43, #ffd36a);
  transform-origin: left center;
}

/* --- Le pupitre, en bas : sa carte, ses gestes --- */
.feu-desk {
  display: flex;
  align-items: stretch;
  gap: 14px;
  padding: 12px;
  max-height: 46vh;
  overflow: auto;
  /* Ancré par le bas (feu.js pose le bas du pupitre) : il grandit vers le haut. */
  transform: translateY(-100%);
  transition:
    translate var(--dur-sheet) var(--ease-sheet),
    width var(--dur-sheet) var(--ease-sheet);
}
.feu-desk > .feu-lobby {
  flex: 1;
}
.feu-card {
  flex: 0 0 auto;
  width: 260px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--tone-bg) 22%, rgba(12, 9, 24, 0.8));
  border: 1px solid color-mix(in srgb, var(--tone-bg) 55%, transparent);
  animation: feu-flip 620ms var(--ease-sheet);
  transform-origin: center bottom;
}
@keyframes feu-flip {
  from {
    opacity: 0;
    transform: perspective(600px) rotateY(70deg) translateY(6px);
  }
}
.feu-card.big {
  width: 300px;
}
.feu-card p + p {
  margin-top: 3px;
  color: var(--ink);
}
.feu-card.big b {
  font-size: var(--fs-title-lg);
}
.feu-card-ic {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--tone-bg);
  color: var(--tone-ink);
}
.feu-card small {
  display: block;
  font-size: var(--fs-caption);
  font-weight: 650;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.feu-card b {
  display: block;
  font-size: var(--fs-headline);
  line-height: 1.2;
  margin: 1px 0 3px;
}
.feu-card p {
  margin: 0;
  font-size: var(--fs-footnote);
  line-height: 1.35;
  color: var(--ink-2);
}
.feu-word {
  font-size: var(--fs-title) !important;
  letter-spacing: 0.01em;
}
.feu-actions {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.feu-line {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: var(--fs-sub);
  line-height: 1.4;
  color: var(--ink-2);
}
.feu-line .feu-ic {
  margin-top: 2px;
  color: var(--ember);
}
.feu-line.strong {
  color: var(--ink);
  font-weight: 650;
}
.feu-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.feu .btn,
.feu-map-card .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.feu .btn:not(.primary) {
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.14);
}
.feu .btn.primary {
  background: linear-gradient(180deg, #ffb35a, #f08c35);
  color: #2b1608;
  border-color: transparent;
}
.feu .btn:disabled {
  opacity: 0.45;
}
.feu-count-line {
  font-size: var(--fs-footnote);
  color: var(--ink-2);
}
/* Quitter, arrêter la partie : en bas du pupitre, discrets, à la même place toute la partie. Une
   demande d'arrêt en cours s'y lit au-dessus (qui la propose, combien la veulent), et chacun y répond. */
.feu-stop {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feu-stop:empty {
  display: none;
}
.feu-stop-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.feu-stop-ask {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 9px 11px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 236, 214, 0.18);
}
.feu-stop-ask.fresh {
  animation: feu-rise 420ms var(--ease-sheet);
}
.feu .btn.feu-stop-btn,
.feu .btn.feu-quit-btn {
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  color: var(--ink-2);
}
.feu .btn.feu-stop-btn:hover,
.feu .btn.feu-quit-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink);
}
.feu-reveal {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-lg);
  background: var(--tone-bg);
  color: var(--tone-ink);
  font-weight: 700;
  animation: feu-flip 620ms var(--ease-sheet);
}
.feu-form {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.feu-input {
  flex: 1;
  min-width: 140px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-callout);
}
.feu-input:focus {
  outline: 2px solid var(--ember);
  outline-offset: 1px;
}
.feu-hint {
  font-size: var(--fs-caption);
  color: var(--ink-2);
}
.feu-hint.bad {
  color: #ffd36a;
  font-weight: 650;
}

/* --- Le journal (à droite) et ceux qui regardent (en bas à gauche) --- */
.feu-journal {
  left: auto;
  right: var(--edge);
  top: 50%;
  translate: 0 -50%;
  width: 230px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: var(--fs-footnote);
  color: var(--ink-2);
}
.feu-journal b {
  color: var(--ink);
  font-size: var(--fs-footnote);
}
.feu-journal p {
  margin: 0;
  display: flex;
  gap: 6px;
  line-height: 1.35;
  animation: feu-rise 420ms var(--ease-sheet);
}
.feu-journal p .feu-ic {
  margin-top: 1px;
  color: var(--ember);
}
.feu-journal[hidden],
.feu-watchers[hidden] {
  display: none;
}
@media (max-width: 1180px) {
  .feu-journal {
    display: none;
  }
}
.feu-watchers {
  top: auto;
  bottom: calc(var(--edge) + var(--dock-h) + var(--gap));
  left: var(--edge);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  max-width: 260px;
  padding: 8px 10px;
}
.feu-watchers small {
  width: 100%;
  font-size: var(--fs-caption);
  font-weight: 650;
  color: var(--ink-2);
}
.feu-person {
  padding: 2px 8px 2px 2px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.1);
  font-size: var(--fs-footnote);
}
.feu-person canvas {
  border-radius: 50%;
  background: #2f2648;
}
.feu-person.away {
  opacity: 0.55;
}

/* --- Proposer, rejoindre (la carte du plan, et le pupitre sans partie) --- */
.feu-lobby {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.feu-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.feu-choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-align: left;
  padding: 10px;
  border-radius: var(--r-lg);
  border: 1px solid var(--hairline);
  background: var(--fill);
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition:
    background var(--dur-fast) var(--ease-out),
    scale var(--dur-press) var(--ease-out);
}
.feu-choice:hover {
  background: var(--accent-ring);
}
.feu-choice:active {
  scale: 0.98;
}
.feu .feu-choice {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
}
.feu .feu-choice:hover {
  background: rgba(255, 179, 90, 0.16);
}
.feu-choice-ic {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #ffb35a, #e9772c);
  color: #2b1608;
}
.feu-choice-txt {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: var(--fs-footnote);
  line-height: 1.35;
}
.feu-choice-txt b {
  font-size: var(--fs-callout);
}
.feu-choice-txt small {
  font-weight: 650;
  opacity: 0.7;
}
.feu-people {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.feu-map-card .feu-person {
  background: var(--fill);
}
.feu-compo {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.feu-seg {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--r-md);
  background: var(--fill);
  gap: 2px;
  align-self: flex-start;
}
.feu .feu-seg {
  background: rgba(255, 255, 255, 0.08);
}
.feu-seg button {
  border: 0;
  border-radius: 9px;
  padding: 5px 10px;
  background: none;
  color: inherit;
  font: inherit;
  font-size: var(--fs-footnote);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
}
.feu-seg button.on {
  background: var(--glass-strong);
  box-shadow: 0 1px 4px rgba(31, 23, 53, 0.18);
}
.feu .feu-seg button.on {
  background: rgba(255, 179, 90, 0.9);
  color: #2b1608;
}
.feu-seg button:disabled {
  cursor: default;
}
.feu-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-footnote);
}
.feu-step button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: var(--fill);
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.feu-step button:disabled {
  opacity: 0.4;
  cursor: default;
}
.feu-step b {
  min-width: 14px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* --- La carte « Coin du feu », sur le plan, au feu de camp --- */
.feu-map-card {
  position: absolute;
  left: var(--dock-left, 50%);
  bottom: calc(var(--edge) + var(--dock-h) + var(--gap) + 46px);
  z-index: 7;
  width: min(440px, calc(100vw - 2 * var(--edge)));
  padding: 6px;
  border-radius: var(--r-xl);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 14px) scale(0.98);
  transition:
    left var(--slide),
    opacity var(--dur-base) var(--ease-out),
    transform var(--dur-slow) var(--ease-sheet),
    visibility 0s var(--dur-base);
}
.feu-map-card.shown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
  transition:
    left var(--slide),
    opacity var(--dur-base) var(--ease-out),
    transform var(--dur-slow) var(--ease-sheet);
}
.feu-map-card:not(.open) {
  width: auto;
}
.feu-map-head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 4px 10px 4px 4px;
  border: 0;
  border-radius: var(--r-lg);
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.feu-map-ic {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #ffb35a, #e9772c);
  color: #2b1608;
  flex: none;
}
.feu-map-title {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.feu-map-title b {
  font-size: var(--fs-sub);
}
.feu-map-title small {
  font-size: var(--fs-caption);
  color: var(--text-2);
}
.feu-map-card .feu-lobby {
  padding: 6px 8px 8px;
  animation: feu-rise 420ms var(--ease-sheet);
}
.feu-map-card .feu-line {
  color: var(--text-2);
}
.feu-map-card .feu-line.strong {
  color: var(--text);
}
.feu-map-card .feu-line .feu-ic {
  color: #e9772c;
}

/* --- Petit écran --- */
@media (max-width: 640px) {
  .feu-desk {
    flex-direction: column;
    gap: 8px;
  }
  .feu-card,
  .feu-card.big {
    width: auto;
  }
  .feu-choices {
    grid-template-columns: 1fr;
  }
  /* (Sa carte monte au-dessus du dock, à droite : les boutons passent à gauche, bien en vue.) */
  .feu-stop-row {
    justify-content: flex-start;
  }
  .feu-title {
    font-size: var(--fs-headline);
  }
  .feu-watchers {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .feu-glow,
  .feu-seat.turn .feu-face {
    animation: none;
  }
  .feu-seat,
  .feu-host,
  .feu-desk,
  .feu-map-card {
    transition: opacity var(--dur-base) linear;
  }
}
