.fluxy-hud {
  position: absolute;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: .65rem;
  width: min(28rem, calc(100vw - 2rem));
  pointer-events: none;
}

.fluxy-entete, #fluxy-bulle {
  color: var(--texte);
  background: #191427f5;
  border: 2px solid var(--or);
  box-shadow: .24rem .24rem #100d18b3;
}

.fluxy-entete, .fluxy-reglages summary {
  display: flex;
  align-items: center;
  gap: .65rem;
  font: 700 1rem var(--police-titre);
}

.fluxy-entete { padding: .35rem .65rem; }
.fluxy-entete small { color: var(--texte-discret); font: .85rem var(--police-texte); }

.fluxy-visage {
  display: inline-block;
  position: relative;
  flex: 0 0 1.65rem;
  height: 1.25rem;
  color: #281c2f;
  background: #ffd978;
  clip-path: polygon(20% 0, 80% 0, 80% 15%, 100% 15%, 100% 80%, 80% 80%, 80% 100%, 20% 100%, 20% 80%, 0 80%, 0 15%, 20% 15%);
}

.fluxy-visage::before, .fluxy-visage::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 6px;
  width: 3px;
  height: 4px;
  box-shadow: 10px 0 currentColor;
  background: currentColor;
}

.fluxy-visage::after { left: 11px; top: 13px; width: 4px; height: 2px; box-shadow: none; }

#fluxy-bulle {
  padding: .65rem .85rem;
  font-size: .95rem;
  animation: fluxy-apparition .18s ease-out;
}

#fluxy-bulle strong { color: var(--or-clair); }
#fluxy-bulle p { margin: .25rem 0 0; }
.fluxy-reglages { border-top: 1px solid #6b5b79; margin-top: 1rem; padding: .8rem 0 0; }
.fluxy-reglages summary { cursor: pointer; min-height: 2.75rem; }
.fluxy-reglages summary::after { content: '▸'; margin-left: auto; }
.fluxy-reglages[open] summary::after { content: '▾'; }
.fluxy-reglages select { font: inherit; margin: .5rem 0 .35rem .5rem; padding: .35rem; }
.fluxy-reduction { display: block; padding-block: .35rem; }
#fluxy-reponse:empty { display: none; }
@keyframes fluxy-apparition { from { opacity: 0; transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) { #fluxy-bulle { animation: none; } }
