/* Shared gold contact control for the homepage and prompt pages. */
.contact-float {
  position: fixed;
  top: 50%;
  right: max(16px, env(safe-area-inset-right));
  bottom: auto;
  transform: translateY(-50%);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  box-sizing: border-box;
  border: 1px solid #e8ce92;
  border-radius: 12px;
  background: linear-gradient(145deg, #f4dfa8 0%, #ddbd78 45%, #bd934b 100%);
  color: #302414;
  font: 600 12px/1.4 system-ui, sans-serif;
  letter-spacing: .02em;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(255, 245, 213, .4);
  opacity: .72;
  box-shadow: 0 3px 0 #765728, 0 6px 14px rgba(0, 0, 0, .22), inset 0 1px 0 #fff0c6;
  animation: contact-breathe 4.8s ease-in-out infinite;
  transition: transform .18s ease, opacity .2s ease, box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.contact-float svg { width: 16px; height: 16px; flex: none; }
@keyframes contact-breathe {
  0%, 100% {
    opacity: .64;
    box-shadow: 0 3px 0 #765728, 0 6px 14px rgba(0, 0, 0, .18), 0 0 0 rgba(221, 189, 120, 0), inset 0 1px 0 #fff0c6;
  }
  50% {
    opacity: .8;
    box-shadow: 0 3px 0 #765728, 0 6px 14px rgba(0, 0, 0, .22), 0 0 12px rgba(221, 189, 120, .1), inset 0 1px 0 #fff0c6;
  }
}
.contact-float:hover,
.contact-float:focus-visible {
  animation: none;
  opacity: 1;
  transform: translateY(calc(-50% - 2px));
  box-shadow: 0 5px 0 #765728, 0 9px 18px rgba(0, 0, 0, .3), inset 0 1px 0 #fff0c6;
}
.contact-float:active {
  transform: translateY(calc(-50% + 2px));
  box-shadow: 0 1px 0 #765728, 0 3px 8px rgba(0, 0, 0, .25), inset 0 1px 0 #fff0c6;
}
.contact-float:focus-visible { outline: 3px solid #f3ead8; outline-offset: 4px; }
@media (max-width: 600px) {
  .contact-float { right: max(10px, env(safe-area-inset-right)); }
}
@media (prefers-reduced-motion: reduce) {
  .contact-float { animation: none; transition: none; }
}
