/* Floating "Join the chat" button (23.10.2026, owner): replaces the small header chat icon. One element, every page that
   renders partials/footer.php. Below dialogs (.noticewrap z 200, the wheel overlays 2000), above the fixed nav (50). */
.chat-fab {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 150;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px 10px 10px;
  border-radius: 999px;
  background: #18191b;
  border: 1px solid #ffffff38;   /* visible on the dark sections (footer, chat), quiet on the light ones */
  color: #f5f5f2;
  font: 600 14px/1 var(--font-body, system-ui, sans-serif);
  letter-spacing: .01em;
  text-decoration: none;
  box-shadow: 0 10px 28px #18191b40, 0 2px 6px #18191b30;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.chat-fab-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f25948;
  color: #18191b;
  flex: none;
}
.chat-fab:hover,
.chat-fab:focus-visible {
  background: #26282b;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px #18191b55, 0 3px 8px #18191b35;
}
.chat-fab:focus-visible {
  outline: 3px solid #f25948;
  outline-offset: 3px;
}
.chat-fab:active { transform: translateY(0); }
/* Phones: a round button, the label stays for screen readers */
@media (max-width: 600px) {
  .chat-fab {
    padding: 8px;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
  }
  .chat-fab-icon { width: 44px; height: 44px; }
  .chat-fab-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  .chat-fab { transition: none; }
  .chat-fab:hover, .chat-fab:focus-visible { transform: none; }
}
@media print { .chat-fab { display: none; } }
