/* =====================================================================
   Animasiyalar — yalnız transform və opacity (telefonlarda rəvan işləsin).
   "Hərəkəti azalt" ayarı olan cihazlarda hamısı sakitləşir (aşağıda).
   ===================================================================== */

@keyframes pop       { 0% { transform: scale(0); opacity: 0; } 70% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1); } }
@keyframes secim     { 0% { transform: scale(1); } 40% { transform: scale(1.08) rotate(-2deg); } 100% { transform: scale(1); } }
@keyframes atil      { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes uzme      { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(2deg); } }
@keyframes yellen    { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes titre     { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-10deg); } 40% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 80% { transform: rotate(6deg); } }
@keyframes nebz      { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
@keyframes halqa     { 0% { transform: scale(.9); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes reqs      { 0%, 100% { transform: rotate(-8deg) translateY(0); } 25% { transform: rotate(8deg) translateY(-12px); } 50% { transform: rotate(-8deg) translateY(0); } 75% { transform: rotate(8deg) translateY(-6px); } }
@keyframes ulduz-gel { 0% { transform: scale(0) rotate(-180deg); opacity: 0; } 70% { transform: scale(1.3) rotate(10deg); opacity: 1; } 100% { transform: scale(1) rotate(0); } }
@keyframes parilti   { 0%, 100% { opacity: .3; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.1); } }
@keyframes yuxari-cix { 0% { transform: translateY(30px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }

/* Ekranın bir başından o birinə keçənlər (bulud, quş, balıq) */
@keyframes kec-saga  { 0% { transform: translateX(-30vw); } 100% { transform: translateX(130vw); } }
@keyframes kec-sola  { 0% { transform: translateX(130vw) scaleX(-1); } 100% { transform: translateX(-30vw) scaleX(-1); } }
@keyframes uc        { 0% { transform: translate(-20vw, 0); } 25% { transform: translate(15vw, -18px); } 50% { transform: translate(50vw, 4px); } 75% { transform: translate(85vw, -14px); } 100% { transform: translate(125vw, 0); } }
@keyframes qabarciq  { 0% { transform: translateY(0) scale(.6); opacity: 0; } 20% { opacity: .8; } 100% { transform: translateY(-160px) scale(1); opacity: 0; } }
@keyframes konfet    { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) rotate(var(--fir)); opacity: 0; } }

/* Konfetti (js/efekt.js) */
.konfetti-kutu { position: fixed; width: 0; height: 0; z-index: 100; pointer-events: none; }
.konfetti-kutu i {
  position: absolute; left: 0; top: 0; width: 10px; height: 14px; border-radius: 3px;
  animation: konfet 1.6s cubic-bezier(.2, .7, .4, 1) both;
}

@keyframes silkele   { 0%, 100% { transform: translateX(0); } 15%, 55% { transform: translateX(-9px); } 35%, 75% { transform: translateX(9px); } 90% { transform: translateX(-3px); } }
@keyframes sicra     { 0% { transform: scale(1); } 35% { transform: scale(1.12); } 60% { transform: scale(.96); } 100% { transform: scale(1); } }
@keyframes nisan-get { from { transform: translate(-50%, 0); opacity: 1; } to { transform: translate(-50%, -12px); opacity: 0; } }
.cavab-nisan.gedir { animation: nisan-get .35s ease both; }
@keyframes nisan-gel { 0% { transform: translate(-50%, 20px) scale(.5); opacity: 0; } 60% { transform: translate(-50%, -4px) scale(1.08); opacity: 1; } 100% { transform: translate(-50%, 0) scale(1); opacity: 1; } }

/* Hazır siniflər */
.anim-atil   { animation: atil 1.6s ease-in-out infinite; }
.anim-uzme   { animation: uzme 3s ease-in-out infinite; }
.anim-yellen { animation: yellen 3s ease-in-out infinite; transform-origin: 50% 100%; }
.anim-titre  { animation: titre .5s ease-in-out; }
.anim-pop    { animation: pop .45s cubic-bezier(.34, 1.56, .64, 1) both; }
.anim-gel    { animation: yuxari-cix .5s ease-out both; }
.anim-silkele { animation: silkele .5s ease-in-out; }   /* .anim-gel-dən sonra olmalıdır ki, onu əvəz etsin */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
