/* Chat sticker (Viber) */
.chat-sticker {
  position: fixed;
  left: calc(env(safe-area-inset-left, 0px) + 12px);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.06);
  color: #fff;
  z-index: 80;
  box-shadow: 0 10px 24px rgba(0,0,0,0.28), inset 0 0 0 1px rgba(255,255,255,0.04);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.chat-sticker.is-hidden { display: none !important; }
.chat-sticker:hover { transform: translateY(-1px); background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }
.chat-sticker:active { transform: translateY(0); }
.chat-sticker:focus-visible { outline: 2px solid rgba(255,255,255,.25); outline-offset: 2px; }
.chat-sticker svg { display: block; width: 20px; height: 20px; }

/* Attention hint: double ping rings */
.chat-sticker::before,
.chat-sticker::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid rgba(115,96,242,0.45); /* Viber purple accent */
  transform: scale(1);
  opacity: 0;
  pointer-events: none;
}
.chat-sticker::before { animation: chat-ping 2.4s ease-out infinite; }
.chat-sticker::after  { animation: chat-ping 2.4s ease-out infinite 1.2s; }

@keyframes chat-ping {
  0%   { transform: scale(1);   opacity: .45; }
  60%  { transform: scale(1.9); opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .chat-sticker,
  .chat-sticker::before,
  .chat-sticker::after { animation: none !important; }
}

/* Optional: hide on very small screens if it overlaps UI */
@media (max-width: 360px){ .chat-sticker { width: 46px; height: 46px; } }

