/* Effets animés : révélation, radar, boussole, chaud/froid, « tu es vu ». (chargé après 08-chat.css, l'ordre compte pour la cascade) */

/* ---------- Effets animés : révélation, radar, boussole, chaud/froid, « tu es vu » (maquettes : docs/design/animations/) ---------- */
#fx {
  position: absolute;
  inset: 0;
  z-index: 1004;
  pointer-events: none;
  overflow: hidden;
}
#fx > * {
  position: absolute;
  inset: 0;
}
/* losange révélé : il gonfle en arrivant, puis 3 anneaux fins partent en décalé */
.reveal-pin.reveal-pop {
  animation: fx-pop 0.6s ease-out;
}
.reveal-pin.reveal-wait {
  opacity: 0;
}
@keyframes fx-pop {
  0% {
    transform: scale(0);
  }
  45% {
    transform: scale(1.35);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}
.fx-sonar {
  position: relative;
  width: 100%;
  height: 100%;
}
.fx-sonar i {
  position: absolute;
  inset: 0;
  border: 2px solid var(--danger);
  border-radius: 50%;
  animation: fx-ring 1.5s ease-out both;
}
.fx-sonar i:nth-child(2) {
  animation-delay: 0.25s;
}
.fx-sonar i:nth-child(3) {
  animation-delay: 0.5s;
}
@keyframes fx-ring {
  0% {
    transform: scale(0.2);
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  100% {
    transform: scale(5.5);
    opacity: 0;
  }
}
/* radar : 3 ondes successives depuis le chercheur qui l'a lancé */
.fx-radar {
  position: relative;
  width: 100%;
  height: 100%;
}
.fx-radar i {
  position: absolute;
  inset: 0;
  border: 2.5px solid var(--ev-radar);
  border-radius: 50%;
  animation: fx-wring 1.2s linear both;
}
.fx-radar i:nth-child(2) {
  animation-delay: 0.4s;
}
.fx-radar i:nth-child(3) {
  animation-delay: 0.8s;
}
@keyframes fx-wring {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  75% {
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}
/* boussole : cadran au centre, l'aiguille fait 2 tours, dépasse, revient, puis s'arrête sur la direction (--deg) */
.fx-compass {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fx-card 3s ease both;
}
@keyframes fx-card {
  0% {
    opacity: 0;
    transform: scale(0.85);
  }
  8%,
  88% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
    transform: scale(0.95);
  }
}
.fx-dial {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 2px solid var(--text);
  /* liseré net (couleur du fond) des deux côtés du trait : l'anneau reste lisible sur une carte chargée, sans disque */
  box-shadow:
    0 0 0 1px var(--surface),
    inset 0 0 0 1px var(--surface);
}
/* 8 graduations, tournées autour du centre de l'anneau */
.fx-dial .t {
  position: absolute;
  left: 50%;
  top: -2px;
  width: 2px;
  height: 10px;
  margin-left: -1px;
  background: var(--text);
  transform-origin: 50% 75px;
  transform: rotate(calc(var(--k) * 45deg));
}
.fx-dial .n {
  position: absolute;
  left: 50%;
  top: -27px;
  transform: translateX(-50%);
  padding: 1px 5px 0;
  border-radius: 2px;
  background: var(--danger);
  color: #fff;
  font: 800 15px/1.1 var(--cond);
}
.fx-dial .needle {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 14px;
  height: 58px;
  margin-left: -7px;
  transform-origin: 50% 65px;
  animation: fx-needle 3s both;
  background: var(--accent);
  clip-path: polygon(50% 0, 100% 100%, 50% 82%, 0 100%);
}
@keyframes fx-needle {
  0%,
  6% {
    transform: rotate(0deg);
    animation-timing-function: cubic-bezier(0.3, 0.1, 0.3, 1);
  }
  42% {
    transform: rotate(calc(745deg + var(--deg)));
    animation-timing-function: ease-in-out;
  }
  52% {
    transform: rotate(calc(708deg + var(--deg)));
  }
  60% {
    transform: rotate(calc(727deg + var(--deg)));
  }
  66%,
  100% {
    transform: rotate(calc(720deg + var(--deg)));
  }
}
.fx-compass.jammed .needle {
  animation: fx-jam 0.35s ease-in-out infinite alternate;
}
@keyframes fx-jam {
  0% {
    transform: rotate(-40deg);
  }
  30% {
    transform: rotate(25deg);
  }
  60% {
    transform: rotate(-10deg);
  }
  100% {
    transform: rotate(50deg);
  }
}
/* chaud/froid : bulle de la couleur du palier autour du joueur, avec le palier écrit à côté */
.fx-hotcold {
  --hc: var(--heat-burning);
  position: relative;
  width: 100%;
  height: 100%;
}
.fx-hotcold.lvl-hot {
  --hc: var(--heat-hot);
}
.fx-hotcold.lvl-warm {
  --hc: var(--heat-warm);
}
.fx-hotcold.lvl-cold {
  --hc: var(--heat-cold);
}
.fx-hotcold.lvl-jammed {
  --hc: var(--heat-jammed);
}
.fx-hotcold .halo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: fx-halo 3.2s ease-in-out both;
  background: radial-gradient(color-mix(in srgb, var(--hc) 50%, transparent), color-mix(in srgb, var(--hc) 18%, transparent) 55%, transparent 70%);
}
@keyframes fx-halo {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  25% {
    transform: scale(1.05);
    opacity: 1;
  }
  40% {
    transform: scale(0.92);
  }
  55% {
    transform: scale(1);
  }
  75% {
    transform: scale(0.94);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}
.fx-hotcold .frost {
  position: absolute;
  inset: 45px;
  border-radius: 50%;
  border: 2.5px dashed var(--hc);
  animation: fx-frost 3.2s linear both;
}
@keyframes fx-frost {
  0% {
    transform: rotate(0deg) scale(0.4);
    opacity: 0;
  }
  18% {
    transform: rotate(40deg) scale(1);
    opacity: 1;
  }
  85% {
    transform: rotate(160deg) scale(1);
    opacity: 1;
  }
  100% {
    transform: rotate(180deg);
    opacity: 0;
  }
}
.fx-hotcold .hc-pill {
  position: absolute;
  left: calc(50% + 22px);
  top: calc(50% - 15px);
  white-space: nowrap;
  background: var(--surface);
  border: 2px solid var(--hc);
  color: var(--hc);
  border-radius: var(--radius);
  padding: 2px 7px;
  animation: fx-pill 3.2s ease both;
}
.fx-hotcold .hc-pill b {
  font: 800 18px/1 var(--cond);
  text-transform: uppercase;
}
.fx-hotcold .hc-pill small {
  font-size: 11px;
  color: var(--muted);
  margin-left: 4px;
}
@keyframes fx-pill {
  0%,
  15% {
    opacity: 0;
    transform: translateX(-6px);
  }
  25%,
  88% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
  }
}
.fx-hotcold.lvl-burning .hc-pill {
  animation:
    fx-pill 3.2s ease both,
    fx-shake 0.5s 0.8s;
}
@keyframes fx-shake {
  0%,
  100% {
    translate: 0;
  }
  20% {
    translate: -3px 1px;
  }
  40% {
    translate: 3px -1px;
  }
  60% {
    translate: -3px 0;
  }
  80% {
    translate: 3px 1px;
  }
}
/* ---------- Annonces plein écran (révélation, pouvoirs, capture…) : grand texte centré (maquettes : docs/design/annonces/) ---------- */
.fx-ann {
  --col: var(--danger);
  --d: 3600ms;
}
.fx-ann > * {
  position: absolute;
}
.ann-scrim {
  inset: 0;
  background: rgba(14, 14, 14, 0.5);
  animation: ann-scrim var(--d) both;
}
@keyframes ann-scrim {
  0%,
  3% {
    opacity: 0;
  }
  14%,
  78% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
/* fondus de couleur venus des bords (ou du centre) */
.ann-fade {
  opacity: 0;
  animation: ann-fade var(--d) both;
}
.ann-fade.l,
.ann-fade.r {
  top: 0;
  bottom: 0;
  width: 85%;
}
.ann-fade.t,
.ann-fade.b {
  left: 0;
  right: 0;
  height: 60%;
}
.ann-fade.l {
  left: 0;
  --sx: -100%;
  --sy: 0;
  background: linear-gradient(to right, var(--col), color-mix(in srgb, var(--col) 55%, transparent) 40%, transparent);
}
.ann-fade.r {
  right: 0;
  --sx: 100%;
  --sy: 0;
  background: linear-gradient(to left, var(--col), color-mix(in srgb, var(--col) 55%, transparent) 40%, transparent);
}
.ann-fade.t {
  top: 0;
  --sx: 0;
  --sy: -100%;
  background: linear-gradient(to bottom, var(--col), color-mix(in srgb, var(--col) 55%, transparent) 40%, transparent);
}
.ann-fade.b {
  bottom: 0;
  --sx: 0;
  --sy: 100%;
  background: linear-gradient(to top, var(--col), color-mix(in srgb, var(--col) 55%, transparent) 40%, transparent);
}
.ann-fade.c {
  inset: -40px;
  background: radial-gradient(circle, color-mix(in srgb, var(--col) 85%, transparent), color-mix(in srgb, var(--col) 45%, transparent) 40%, transparent 70%);
  animation-name: ann-fade-c;
}
@keyframes ann-fade {
  0%,
  3% {
    transform: translate(var(--sx), var(--sy));
    opacity: 0;
    animation-timing-function: cubic-bezier(0.2, 0.8, 0.3, 1);
  }
  15% {
    transform: none;
    opacity: 0.95;
  }
  72% {
    transform: none;
    opacity: 0.8;
  }
  92%,
  100% {
    transform: translate(calc(var(--sx) * -0.25), calc(var(--sy) * -0.25));
    opacity: 0;
  }
}
@keyframes ann-fade-c {
  0%,
  3% {
    transform: scale(0);
    opacity: 0;
  }
  16% {
    transform: scale(1.1);
    opacity: 1;
  }
  60% {
    transform: scale(1);
    opacity: 0.9;
  }
  88%,
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}
/* texte : icône, petite ligne, grand mot, carte de détail */
.ann-center {
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  padding-bottom: calc(24px + var(--tab-h));
}
.ann-hero {
  text-align: center;
  color: #fff;
  max-width: 100%;
  animation: ann-in var(--d) both;
}
.fx-ann:has(.ann-fade.l) .ann-hero {
  --fx: -420px;
}
.fx-ann:has(.ann-fade.r):not(:has(.ann-fade.l)) .ann-hero {
  --fx: 420px;
}
.fx-ann:has(.ann-fade.t) .ann-hero {
  --fy: -380px;
}
.fx-ann:has(.ann-fade.b):not(:has(.ann-fade.t)) .ann-hero {
  --fy: 380px;
}
@keyframes ann-in {
  0%,
  4% {
    transform: translate(var(--fx, 0), var(--fy, -40px));
    opacity: 0;
    animation-timing-function: cubic-bezier(0.15, 0.85, 0.35, 1.1);
  }
  5% {
    opacity: 1;
  }
  17%,
  76% {
    transform: none;
    opacity: 1;
    animation-timing-function: cubic-bezier(0.6, 0, 0.9, 0.4);
  }
  90%,
  100% {
    transform: translate(calc(var(--fx, 0) * -1), calc(var(--fy, 40px) * -1));
    opacity: 0;
  }
}
.ann-ic {
  width: 62px;
  height: 62px;
  margin: 0 auto 10px;
  border-radius: var(--radius);
  background: var(--col);
  display: grid;
  place-items: center;
  box-shadow:
    0 0 0 2px #fff,
    3px 3px 0 rgba(14, 14, 14, 0.45);
}
.ann-ic .ic {
  width: 32px;
  height: 32px;
}
.ann-kick {
  font: 700 0.85rem var(--cond);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
}
.ann-big {
  position: relative;
  display: inline-block;
  font: 800 58px/0.95 var(--cond);
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  overflow-wrap: anywhere;
}
.ann-big.sm {
  font-size: 46px;
}
.ann-big.xs {
  font-size: 36px;
}
.ann-detail {
  width: min(320px, 100%);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius);
  padding: 9px 12px;
  font-size: 0.86rem;
  line-height: 1.3;
  box-shadow: var(--shadow-2);
  animation: ann-detail var(--d) both;
}
.ann-detail b {
  display: block;
  font: 700 0.9rem var(--cond);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--col);
}
@keyframes ann-detail {
  0%,
  16% {
    transform: translateY(14px);
    opacity: 0;
  }
  24%,
  76% {
    transform: none;
    opacity: 1;
  }
  88%,
  100% {
    transform: translateY(8px);
    opacity: 0;
  }
}
/* variantes du grand mot */
.as-skew .ann-big {
  transform: skewX(-12deg);
}
.as-dissolve .ann-big {
  animation: ann-dissolve var(--d) both;
}
@keyframes ann-dissolve {
  0%,
  60% {
    filter: blur(0);
    letter-spacing: 0.01em;
    opacity: 1;
  }
  82%,
  100% {
    filter: blur(10px);
    letter-spacing: 0.35em;
    opacity: 0;
  }
}
.ann-glitch {
  position: relative;
  display: inline-block;
}
.ann-glitch::before,
.ann-glitch::after {
  content: attr(data-t);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
}
.ann-glitch::before {
  color: var(--ink);
  animation: ann-gl1 0.5s steps(2) infinite;
}
.ann-glitch::after {
  color: var(--accent);
  animation: ann-gl2 0.45s steps(2) infinite;
}
@keyframes ann-gl1 {
  0% {
    clip-path: inset(0 0 70% 0);
    transform: translateX(-3px);
  }
  25% {
    clip-path: inset(40% 0 30% 0);
    transform: translateX(-5px);
  }
  50% {
    clip-path: inset(75% 0 5% 0);
  }
  75% {
    clip-path: inset(10% 0 60% 0);
    transform: translateX(2px);
  }
  100% {
    clip-path: inset(55% 0 20% 0);
  }
}
@keyframes ann-gl2 {
  0% {
    clip-path: inset(60% 0 10% 0);
    transform: translateX(3px);
  }
  25% {
    clip-path: inset(5% 0 80% 0);
    transform: translateX(5px);
  }
  50% {
    clip-path: inset(30% 0 45% 0);
  }
  75% {
    clip-path: inset(80% 0 0 0);
    transform: translateX(-2px);
  }
  100% {
    clip-path: inset(20% 0 55% 0);
  }
}
.ann-double {
  position: relative;
  display: inline-block;
}
.ann-double > span {
  display: inline-block;
  animation: ann-dup-a var(--d) both;
}
.ann-double > span + span {
  position: absolute;
  left: 0;
  top: 0;
  color: transparent;
  -webkit-text-stroke: 1.6px #fff;
  text-shadow: none;
  animation-name: ann-dup-b;
}
@keyframes ann-dup-a {
  0%,
  6% {
    transform: translateX(-260px);
    animation-timing-function: cubic-bezier(0.2, 0.85, 0.3, 1);
  }
  20%,
  40% {
    transform: none;
  }
  50%,
  100% {
    transform: translate(-6px, -4px);
  }
}
@keyframes ann-dup-b {
  0%,
  6% {
    transform: translateX(260px);
    animation-timing-function: cubic-bezier(0.2, 0.85, 0.3, 1);
  }
  20%,
  40% {
    transform: none;
  }
  50%,
  100% {
    transform: translate(7px, 5px);
  }
}
.ann-live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.ann-live i {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  background: #fff;
  animation: ann-live 0.8s infinite;
}
@keyframes ann-live {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
.as-count .ann-big {
  font-size: 84px;
}
.as-stamp {
  animation-name: ann-stamp;
}
.as-stamp .ann-big {
  border: 5px solid #fff;
  border-radius: var(--radius);
  padding: 2px 14px 0;
}
@keyframes ann-stamp {
  0%,
  6% {
    transform: scale(3) rotate(-14deg);
    opacity: 0;
    animation-timing-function: cubic-bezier(0.6, 0, 1, 0.6);
  }
  14% {
    transform: scale(0.92) rotate(-7deg);
    opacity: 1;
  }
  18%,
  80% {
    transform: rotate(-7deg);
    opacity: 1;
  }
  92%,
  100% {
    transform: rotate(-7deg) scale(0.9);
    opacity: 0;
  }
}
.as-drop {
  animation-name: ann-drop;
}
@keyframes ann-drop {
  0%,
  6% {
    transform: translateY(-340px);
    opacity: 0;
    animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45);
  }
  7% {
    opacity: 1;
  }
  14% {
    transform: translateY(0) scale(1.08, 0.9);
    animation-timing-function: ease-out;
  }
  18% {
    transform: translateY(-18px);
    animation-timing-function: ease-in;
  }
  22%,
  80% {
    transform: none;
    opacity: 1;
  }
  92%,
  100% {
    transform: translateY(30px);
    opacity: 0;
  }
}
/* égaliseur qui s'aplatit (silence radio) */
.ann-eq {
  display: flex;
  gap: 4px;
  justify-content: center;
  align-items: center;
  height: 34px;
  margin-bottom: 6px;
}
.ann-eq i {
  width: 6px;
  border-radius: 3px;
  background: #fff;
  animation: ann-eq var(--d) both;
}
@keyframes ann-eq {
  0%,
  10% {
    height: var(--h);
  }
  14% {
    height: calc(var(--h) * 0.5);
  }
  18% {
    height: var(--h);
  }
  22% {
    height: calc(var(--h) * 0.7);
  }
  34%,
  100% {
    height: 3px;
  }
}
.ann-flat {
  width: 110px;
  height: 3px;
  margin: 0 auto 10px;
  border-radius: 2px;
  background: #fff;
  animation: ann-flat var(--d) both;
}
@keyframes ann-flat {
  0%,
  32% {
    transform: scaleX(0);
  }
  40%,
  100% {
    transform: none;
  }
}
/* anneau d'attente (capture déclarée) */
.ann-ring {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 8px;
  color: #fff;
}
.ann-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.ann-ring circle {
  fill: none;
  stroke-width: 8;
}
.ann-ring .trk {
  stroke: rgba(255, 255, 255, 0.25);
}
.ann-ring .fill {
  stroke: #fff;
  stroke-linecap: round;
  stroke-dasharray: 327;
  stroke-dashoffset: 327;
  animation: ann-ring var(--d) linear both;
}
@keyframes ann-ring {
  10% {
    stroke-dashoffset: 327;
  }
  90%,
  100% {
    stroke-dashoffset: 0;
  }
}
.ann-ring > .ic {
  position: absolute;
  inset: 30px;
  width: 50px;
  height: 50px;
}
/* couches décoratives */
.ann-speed {
  inset: 0;
  animation: ann-scrim var(--d) both;
}
.ann-speed i {
  position: absolute;
  left: 0;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(to right, transparent, #fff);
  opacity: 0;
  animation: ann-speed 0.9s linear infinite;
}
@keyframes ann-speed {
  0% {
    transform: translateX(-160px);
    opacity: 0;
  }
  15% {
    opacity: 0.9;
  }
  100% {
    transform: translateX(110vw);
    opacity: 0;
  }
}
.ann-fog {
  left: 50%;
  top: 45%;
  width: 300px;
  height: 300px;
  margin: -150px 0 0 -150px;
  border-radius: 50%;
  background: radial-gradient(rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0) 70%);
  animation: ann-fade-c var(--d) both;
}
.ann-scan {
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 2px, transparent 2px 4px);
  animation: ann-scan var(--d) both;
}
.ann-noise {
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1.2px), radial-gradient(rgba(0, 0, 0, 0.2) 1px, transparent 1.2px);
  background-size:
    5px 5px,
    7px 7px;
  animation:
    ann-noise 0.2s steps(3) infinite,
    ann-scan var(--d) both;
}
@keyframes ann-scan {
  0%,
  4% {
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  10% {
    opacity: 0.3;
  }
  13%,
  72% {
    opacity: 0.9;
  }
  74% {
    opacity: 0.2;
  }
  76% {
    opacity: 0.9;
  }
  92%,
  100% {
    opacity: 0;
  }
}
@keyframes ann-noise {
  0% {
    background-position:
      0 0,
      3px 2px;
  }
  50% {
    background-position:
      2px 3px,
      0 1px;
  }
  100% {
    background-position:
      1px 1px,
      2px 4px;
  }
}
.ann-waves {
  left: 50%;
  bottom: var(--tab-h);
  width: 0;
  height: 0;
}
.ann-waves i {
  position: absolute;
  width: 560px;
  height: 560px;
  left: -280px;
  top: -280px;
  border-radius: 50%;
  border: 3px solid var(--col);
  opacity: 0;
  animation: ann-wave var(--d) linear both;
}
.ann-waves i:nth-child(2) {
  animation-delay: 0.35s;
}
.ann-waves i:nth-child(3) {
  animation-delay: 0.7s;
}
@keyframes ann-wave {
  0%,
  4% {
    transform: scale(0);
    opacity: 0;
  }
  6% {
    opacity: 1;
  }
  40%,
  100% {
    transform: scale(1);
    opacity: 0;
  }
}
.ann-flash {
  inset: 0;
  background: #fff;
  animation: ann-flash var(--d) both;
}
@keyframes ann-flash {
  0%,
  3% {
    opacity: 0;
  }
  5% {
    opacity: 0.95;
  }
  14%,
  100% {
    opacity: 0;
  }
}
.ann-confetti {
  /* palette de l'app : deux fois plus d'orange, du rouge, du blanc et de l'encre */
  --cf0: var(--accent);
  --cf1: var(--danger);
  --cf2: #fff;
  --cf3: var(--accent);
  --cf4: var(--ink);
  left: 50%;
  top: 38%;
  width: 0;
  height: 0;
  z-index: 2;
}
.ann-confetti i {
  position: absolute;
  width: 7px;
  height: 11px;
  left: -3px;
  top: -5px;
  border-radius: 1px;
  background: var(--cc);
  opacity: 0;
  animation: ann-confetti var(--d) both;
}
@keyframes ann-confetti {
  0%,
  9% {
    transform: none;
    opacity: 0;
  }
  10% {
    opacity: 1;
    animation-timing-function: cubic-bezier(0.1, 0.8, 0.3, 1);
  }
  32% {
    transform: translate(var(--x), var(--y)) rotate(var(--r));
  }
  82% {
    transform: translate(calc(var(--x) * 1.15), calc(var(--y) + 220px)) rotate(calc(var(--r) * 3));
    opacity: 1;
  }
  92%,
  100% {
    opacity: 0;
  }
}
.ann-red {
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(40, 0, 0, 0.35) 30%, rgba(160, 8, 14, 0.9) 100%);
  animation: ann-red var(--d) both;
}
@keyframes ann-red {
  0%,
  4% {
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  12% {
    opacity: 0.5;
  }
  16%,
  80% {
    opacity: 1;
  }
  94%,
  100% {
    opacity: 0;
  }
}
.ann-blink {
  inset: 0;
  box-shadow: inset 0 0 0 8px var(--danger);
  animation: ann-blink var(--d) both;
}
@keyframes ann-blink {
  0%,
  4% {
    opacity: 0;
  }
  8%,
  18%,
  28%,
  38%,
  48%,
  58%,
  68% {
    opacity: 1;
  }
  13%,
  23%,
  33%,
  43%,
  53%,
  63% {
    opacity: 0.25;
  }
  80%,
  100% {
    opacity: 0;
  }
}
/* badge de rôle qui se retourne (tracké attrapé qui change de camp) */
#roleBadge.role-flip {
  animation: role-flip 0.9s ease both;
}
@keyframes role-flip {
  0% {
    transform: perspective(200px) rotateX(0);
  }
  50% {
    transform: perspective(200px) rotateX(90deg) scale(1.3);
  }
  70% {
    transform: perspective(200px) rotateX(0) scale(1.3);
    box-shadow: 0 0 0 3px #fff;
  }
  100% {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  #fx {
    display: none;
  }
  #roleBadge.role-flip {
    animation: none;
  }
  .reveal-pin.reveal-pop {
    animation: none;
  }
  .reveal-pin.reveal-wait {
    opacity: 1;
  }
}

/* ---------- Révélation côté chercheurs : pastille éclair sous la barre du haut, sans voile (maquettes : planche 11) ---------- */
.rp-edge {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 5px var(--danger);
  animation: rp-edge 0.6s both;
}
@keyframes rp-edge {
  0% {
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  45% {
    opacity: 0.15;
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
.rp-pill {
  position: absolute;
  left: 50%;
  top: var(--top-h);
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 24px);
  white-space: nowrap;
  background: var(--col);
  color: #fff;
  border-radius: var(--radius);
  padding: 5px 14px 5px 5px;
  box-shadow: var(--shadow-2);
  animation: rp-pill 2.4s both;
}
.rp-ic {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 2px;
  background: #fff;
  color: var(--col);
  display: grid;
  place-items: center;
}
.rp-ic .ic {
  width: 17px;
  height: 17px;
}
.rp-pill b {
  font: 800 16px/1 var(--cond);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.rp-pill small {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.92;
  overflow: hidden;
  text-overflow: ellipsis;
}
@keyframes rp-pill {
  0% {
    transform: translate(-50%, -70px);
    opacity: 0;
    animation-timing-function: cubic-bezier(0.2, 0.9, 0.3, 1.3);
  }
  12%,
  82% {
    transform: translate(-50%, 0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -70px);
    opacity: 0;
  }
}
