/* Stelle stato cartomanti (home e op.php) */
.stella {
  display: inline-block;
  flex: none;
  width: 44px;
  height: 44px;
  background: no-repeat center / contain;
  vertical-align: middle;
}
.stella--online   { background-image: url("../img/stelle/online.svg"); }
.stella--occupato { background-image: url("../img/stelle/occupato.svg"); }
.stella--squillo  { background-image: url("../img/stelle/squillo.svg"); }
.stella--assente  { background-image: url("../img/stelle/assente.svg"); }
.stella--offline  { background-image: url("../img/stelle/offline.svg"); opacity: .8; }

/* Disponibile: brilla dolcemente */
.stella--online {
  animation: stellaBrilla 2.8s ease-in-out infinite;
  filter: drop-shadow(0 0 2px rgba(46, 204, 64, .45));
}
/* In collegamento: vibra come un telefono che squilla */
.stella--squillo { animation: stellaSquillo 1.4s ease-in-out infinite; transform-origin: 50% 55%; }

@keyframes stellaBrilla {
  0%, 100% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 2px rgba(46, 204, 64, .45)); }
  50%      { transform: scale(1.09) rotate(6deg); filter: drop-shadow(0 0 7px rgba(46, 204, 64, .85)); }
}
@keyframes stellaSquillo {
  0%, 50%, 100% { transform: rotate(0); }
  10%, 30% { transform: rotate(-12deg); }
  20%, 40% { transform: rotate(12deg); }
}
@media (prefers-reduced-motion: reduce) {
  .stella--online, .stella--squillo { animation: none; }
}
