/* Publish animation for newly posted public prayers. */
.prayer-note.is-publishing {
  z-index: 4;
  transform-origin: 50% 8px;
  animation: prayer-note-pin-in 980ms cubic-bezier(.16,.86,.31,1.16) both;
}

.prayer-note.is-publishing .prayer-pin {
  animation: prayer-pin-pop 430ms 470ms cubic-bezier(.16,.86,.31,1.3) both;
}

.prayer-board-frame.prayer-board-received {
  animation: prayer-board-receive 900ms ease-out both;
}

/* Standalone prayer pages do not load the global .shell centering rule. */
.prayer-page .prayer-hub-shell {
  margin-inline: auto;
}

@keyframes prayer-note-pin-in {
  0% {
    opacity: 0;
    transform: translateY(-88px) scale(.76) rotate(-9deg);
  }
  48% {
    opacity: 1;
    transform: translateY(12px) scale(1.04) rotate(2deg);
  }
  72% {
    transform: translateY(-5px) scale(.99) rotate(-1.5deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(var(--tilt, -1deg));
  }
}

@keyframes prayer-pin-pop {
  0% { transform: translateX(-50%) scale(.35); opacity: .35; }
  62% { transform: translateX(-50%) scale(1.45); opacity: 1; }
  100% { transform: translateX(-50%) scale(1); opacity: 1; }
}

@keyframes prayer-board-receive {
  0%, 100% { box-shadow: inset 0 0 55px rgba(63, 30, 12, .25), 0 22px 54px rgba(69, 47, 30, .17); }
  45% { box-shadow: inset 0 0 72px rgba(255, 226, 164, .2), 0 25px 62px rgba(69, 47, 30, .24); }
}

@media (prefers-reduced-motion: reduce) {
  .prayer-note.is-publishing,
  .prayer-note.is-publishing .prayer-pin,
  .prayer-board-frame.prayer-board-received {
    animation: none;
  }
}
