/* HG V81E prayer notification animation only. V81B remains the base chat/notification CSS. */

.hg-v81b-notification-row[data-type*="pray"] {
  border-left-color: #00e5ff;
  background:
    radial-gradient(circle at 12% 50%, rgba(0,229,255,.11), transparent 32%),
    linear-gradient(145deg, rgba(31,31,38,.96), rgba(15,15,19,.98));
}

.hg-v81b-notification-row[data-type*="pray"] .hg-v81b-notification-icon {
  color: #ffd700;
  background: linear-gradient(135deg, rgba(255,215,0,.18), rgba(0,229,255,.12));
  box-shadow: 0 0 22px rgba(0,229,255,.12);
}

.hg-v81e-prayer-notification-layer {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: 24px;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at center, rgba(0,229,255,.17), transparent 30%),
    rgba(2,3,7,.88);
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
  opacity: 0;
  visibility: hidden;
}

.hg-v81e-prayer-notification-layer.show {
  visibility: visible;
  animation: hgV81EPrayerLayer .92s ease both;
}

.hg-v81e-prayer-rings,
.hg-v81e-prayer-rings::before,
.hg-v81e-prayer-rings::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 110px;
  height: 110px;
  content: "";
  transform: translate(-50%, -50%) scale(.35);
  border: 2px solid rgba(0,229,255,.72);
  border-radius: 50%;
  opacity: 0;
}

.hg-v81e-prayer-notification-layer.show .hg-v81e-prayer-rings,
.hg-v81e-prayer-notification-layer.show .hg-v81e-prayer-rings::before,
.hg-v81e-prayer-notification-layer.show .hg-v81e-prayer-rings::after {
  animation: hgV81EPrayerRing .85s ease-out both;
}

.hg-v81e-prayer-notification-layer.show .hg-v81e-prayer-rings::before { animation-delay: .08s; }
.hg-v81e-prayer-notification-layer.show .hg-v81e-prayer-rings::after { animation-delay: .16s; }

.hg-v81e-prayer-hands {
  position: relative;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border: 1px solid rgba(255,215,0,.58);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #fff4a8, #ffd700 50%, #d99800);
  color: #251900;
  font-size: 2.15rem;
  box-shadow:
    0 0 38px rgba(255,215,0,.45),
    0 0 75px rgba(0,229,255,.23);
  transform: translateY(20px) scale(.72);
  opacity: 0;
}

.hg-v81e-prayer-notification-layer.show .hg-v81e-prayer-hands {
  animation: hgV81EPrayerHands .52s .08s cubic-bezier(.22,1,.36,1) both;
}

.hg-v81e-prayer-notification-layer strong,
.hg-v81e-prayer-notification-layer span {
  position: relative;
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
}

.hg-v81e-prayer-notification-layer strong {
  max-width: min(88vw, 480px);
  color: #ffd700;
  font-family: "Unbounded", Inter, system-ui, sans-serif;
  font-size: clamp(1.18rem, 5vw, 1.6rem);
}

.hg-v81e-prayer-notification-layer span {
  color: rgba(255,255,255,.78);
  font-size: .92rem;
}

.hg-v81e-prayer-notification-layer.show strong,
.hg-v81e-prayer-notification-layer.show span {
  animation: hgV81EPrayerWords .4s .24s ease both;
}

.hg-v81e-prayer-post-target {
  position: relative !important;
  animation: hgV81EPrayerPostGlow 2.8s ease both;
}

.hg-v81e-prayer-post-burst {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255,215,0,.65);
  border-radius: 50%;
  background: rgba(5,7,12,.88);
  color: #ffd700;
  font-size: 1.45rem;
  box-shadow: 0 0 32px rgba(0,229,255,.35);
  animation: hgV81EPrayerPostHands 2.8s ease both;
  pointer-events: none;
}

@keyframes hgV81EPrayerLayer {
  0% { opacity: 0; }
  18%, 76% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes hgV81EPrayerRing {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.35); }
  25% { opacity: .9; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(3.2); }
}

@keyframes hgV81EPrayerHands {
  from { opacity: 0; transform: translateY(20px) scale(.72) rotate(-5deg); }
  to { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}

@keyframes hgV81EPrayerWords {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hgV81EPrayerPostGlow {
  0%, 100% { box-shadow: none; }
  18%, 72% { box-shadow: 0 0 0 2px #ffd700, 0 0 42px rgba(0,229,255,.5); }
}

@keyframes hgV81EPrayerPostHands {
  0% { opacity: 0; transform: scale(.5) rotate(-12deg); }
  18%, 72% { opacity: 1; transform: scale(1) rotate(0); }
  100% { opacity: 0; transform: scale(1.25); }
}

@media (prefers-reduced-motion: reduce) {
  .hg-v81e-prayer-notification-layer.show,
  .hg-v81e-prayer-notification-layer.show *,
  .hg-v81e-prayer-post-target,
  .hg-v81e-prayer-post-burst {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* V81E makes the prayer notification unmistakable and visible long enough to register. */
.hg-v81e-prayer-notification-layer.show {
  visibility: visible !important;
  opacity: 1;
  animation: hgV81EPrayerLayer 1.35s ease both !important;
}

.hg-v81e-prayer-notification-layer.show .hg-v81e-prayer-hands {
  animation: hgV81EPrayerHands .62s .08s cubic-bezier(.22,1,.36,1) both !important;
}

@keyframes hgV81EPrayerLayer {
  0% { opacity: 0; }
  14%, 78% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes hgV81EPrayerHands {
  0% { opacity: 0; transform: translateY(24px) scale(.55) rotate(-8deg); }
  65% { opacity: 1; transform: translateY(-4px) scale(1.12) rotate(2deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}
