/* ==========================================================================
   مؤثرات ثيم Titan Love: نقرة الماوس (قلوب وبتلات ولمعات) + انتقال التحول + حركة دخول لوحة الترحيب
   ========================================================================== */
@keyframes tl-settle { from { transform: scale(1.05); } to { transform: scale(1); } }
@keyframes tl-rise { from { clip-path: inset(0 0 100% 0); transform: translateY(.6em); } to { clip-path: inset(0 0 0 0); transform: none; } }
@keyframes tl-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- نقرة الماوس: انفجار صغير من عناصر الثيم ---------- */
.tl-pop { position: fixed; z-index: 10050; pointer-events: none; width: 0; height: 0; }
.tl-pop i {
  position: absolute; left: 0; top: 0; width: var(--s, 14px); height: var(--s, 14px); margin: calc(var(--s, 14px) / -2) 0 0 calc(var(--s, 14px) / -2);
  background: center / contain no-repeat; opacity: 0;
  animation: tl-pop .9s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: var(--d, 0ms);
}
.tl-pop i.h { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 21'%3E%3Cpath d='M12 21C5 15.5 0 11.6 0 6.6 0 2.9 2.9 0 6.5 0 8.7 0 10.8 1.1 12 2.9 13.2 1.1 15.3 0 17.5 0 21.1 0 24 2.9 24 6.6 24 11.6 19 15.5 12 21Z' fill='%23E0708C'/%3E%3C/svg%3E"); }
.tl-pop i.r { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 21'%3E%3Cpath d='M12 21C5 15.5 0 11.6 0 6.6 0 2.9 2.9 0 6.5 0 8.7 0 10.8 1.1 12 2.9 13.2 1.1 15.3 0 17.5 0 21.1 0 24 2.9 24 6.6 24 11.6 19 15.5 12 21Z' fill='%23E2384F'/%3E%3C/svg%3E"); }
.tl-pop i.p { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 24'%3E%3Cpath d='M10 0C14 5 20 10 18 17C16 22 12 24 10 21C8 24 4 22 2 17C0 10 6 5 10 0Z' fill='%23F6B8C8'/%3E%3C/svg%3E"); }
.tl-pop i.s { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C13 7 17 11 24 12C17 13 13 17 12 24C11 17 7 13 0 12C7 11 11 7 12 0Z' fill='%23FFD27A'/%3E%3C/svg%3E"); }
@keyframes tl-pop {
  0%   { opacity: 0; transform: translate(0, 0) scale(.3) rotate(0deg); }
  15%  { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(1) rotate(var(--r, 0deg)); }
}
@media (prefers-reduced-motion: reduce) { .tl-pop { display: none; } }

/* ---------- انتقال Titan Love: تحول سحري للبنت بالفيونكة الحمرة (شخصية أصلية) ---------- */
.tlv { position: fixed; inset: 0; z-index: 10000; cursor: pointer; overflow: hidden; }
.tlv > * { position: absolute; pointer-events: none; }
.tlv-bg { inset: 0; opacity: 0; transition: opacity .5s ease;
  background: radial-gradient(ellipse at 50% 70%, #FFD3E0 0%, #F59AB6 35%, #B23A6A 75%, #4A1830 100%); }
.v-in .tlv-bg { opacity: 1; }
.v-out .tlv-bg { opacity: 0; transition-duration: .8s; }
.tlv-rays { left: 50%; top: 62%; width: 160vmax; height: 160vmax; margin: -80vmax 0 0 -80vmax; opacity: 0;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .16) 0 6deg, transparent 6deg 18deg);
  animation: tlv-spin 14s linear infinite; transition: opacity .6s ease; }
.v-ribbons .tlv-rays { opacity: 1; }
.v-out .tlv-rays { opacity: 0; }
@keyframes tlv-spin { to { transform: rotate(360deg); } }

/* البنت */
.tlv-girl { left: 50%; bottom: 0; width: min(46vh, 70vw); aspect-ratio: 3 / 4; translate: -50% 0; transform: translateY(18%) scale(.9); opacity: 0;
  transition: transform .7s cubic-bezier(.22, 1, .36, 1), opacity .5s ease; }
.v-in .tlv-girl { transform: none; opacity: 1; }
.tlv-girl img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.tlv-after { opacity: 0; transform: scale(.94); transition: opacity .5s ease, transform .7s cubic-bezier(.22, 1, .36, 1); }
.v-glow .tlv-before { filter: brightness(1.8) saturate(.4) drop-shadow(0 0 24px #fff) drop-shadow(0 0 60px #FFB6CC); transition: filter 1s ease; }
.v-after .tlv-before { opacity: 0; transition: opacity .2s ease; }
.v-after .tlv-after { opacity: 1; transform: none; filter: drop-shadow(0 0 22px rgba(255, 220, 235, .9)); }
.v-out .tlv-girl { opacity: 0; transform: translateY(6%) scale(.97); transition-duration: .7s; }

/* الشرايط تلف حواليها */
.tlv-ribbons { left: 50%; top: 58%; width: min(60vh, 86vw); height: min(60vh, 86vw); translate: -50% -50%; opacity: 0; transition: opacity .4s ease; }
.v-ribbons .tlv-ribbons { opacity: 1; }
.v-after .tlv-ribbons { opacity: 0; }
.tlv-ribbons i { position: absolute; inset: 0; border-radius: 50%;
  border: 7px solid transparent; border-top-color: #E2384F; border-right-color: rgba(255, 182, 204, .9);
  animation: tlv-ribbon 1.1s linear infinite; }
.tlv-ribbons i:nth-child(2) { inset: 9%; border-top-color: #FFFFFF; border-right-color: rgba(255, 210, 225, .8); animation-duration: .8s; animation-direction: reverse; }
.tlv-ribbons i:nth-child(3) { inset: 18%; border-top-color: #F59AB6; border-right-color: rgba(255, 255, 255, .7); animation-duration: 1.4s; }
@keyframes tlv-ribbon { to { transform: rotate(360deg) scaleY(.92); } }

/* لمعات تصعد */
.tlv-sparks { inset: 0; }
.tlv-sparks b { position: absolute; bottom: -20px; width: 12px; height: 12px; opacity: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C13 7 17 11 24 12C17 13 13 17 12 24C11 17 7 13 0 12C7 11 11 7 12 0Z' fill='%23FFFFFF'/%3E%3C/svg%3E") center / contain no-repeat; }
.v-ribbons .tlv-sparks b { animation: tlv-rise 1.8s ease-out infinite; }
.tlv-sparks b:nth-child(odd) { width: 8px; height: 8px; }
.tlv-sparks b:nth-child(1) { left: 30%; animation-delay: 0s; } .tlv-sparks b:nth-child(2) { left: 38%; animation-delay: .3s; }
.tlv-sparks b:nth-child(3) { left: 45%; animation-delay: .6s; } .tlv-sparks b:nth-child(4) { left: 52%; animation-delay: .15s; }
.tlv-sparks b:nth-child(5) { left: 59%; animation-delay: .45s; } .tlv-sparks b:nth-child(6) { left: 66%; animation-delay: .75s; }
.tlv-sparks b:nth-child(7) { left: 34%; animation-delay: .9s; } .tlv-sparks b:nth-child(8) { left: 48%; animation-delay: 1.05s; }
.tlv-sparks b:nth-child(9) { left: 56%; animation-delay: 1.2s; } .tlv-sparks b:nth-child(10) { left: 62%; animation-delay: .5s; }
.tlv-sparks b:nth-child(11) { left: 41%; animation-delay: 1.35s; } .tlv-sparks b:nth-child(12) { left: 70%; animation-delay: .2s; }
.tlv-sparks b:nth-child(13) { left: 27%; animation-delay: .65s; } .tlv-sparks b:nth-child(14) { left: 74%; animation-delay: 1s; }
@keyframes tlv-rise { 0% { opacity: 0; transform: translateY(0) scale(.6); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-70vh) scale(1.1) rotate(180deg); } }
.v-out .tlv-sparks { opacity: 0; transition: opacity .6s ease; }

/* ومضة وقلب كبير */
.tlv-heart { left: 50%; top: 55%; width: 120px; height: 105px; translate: -50% -50%; opacity: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 21'%3E%3Cpath d='M12 21C5 15.5 0 11.6 0 6.6 0 2.9 2.9 0 6.5 0 8.7 0 10.8 1.1 12 2.9 13.2 1.1 15.3 0 17.5 0 21.1 0 24 2.9 24 6.6 24 11.6 19 15.5 12 21Z' fill='%23FFFFFF'/%3E%3C/svg%3E") center / contain no-repeat; }
/* الكبر والتلاشي بحركتين منفصلات: قبل كان التلاشي يصير بلحظة (ومضة بيضة تنقطع فجأة) */
.v-flash .tlv-heart { animation: tlv-heart-grow .9s cubic-bezier(.2, .8, .2, 1) forwards, tlv-heart-fade 1.2s ease-in forwards; }
@keyframes tlv-heart-grow { from { transform: scale(.2); } to { transform: scale(14); } }
@keyframes tlv-heart-fade { 0% { opacity: 1; } 35% { opacity: .92; } 100% { opacity: 0; } }
.tlv-flash { inset: 0; background: #FFFFFF; opacity: 0; }
.v-flash .tlv-flash { animation: tlv-flash 1s ease-out forwards; }
@keyframes tlv-flash { 0% { opacity: 0; } 18% { opacity: .95; } 100% { opacity: 0; } }
