/* =====================================================================
   ANIMASYON PROFILLERI - her biri kendi efekt setine sahip:
     Basit : temel nabiz/sarsinti animasyonlari, parcacik yok (dusuk cihazlar)
     Kombo : 3D donen kutucuk, "2x SERİ!" rozeti (sadece gorsel), ekran sarsintisi,
             yuvarlanan skor, panele ucan kelime, donen parcaciklar
     Neon  : parlayan kutucuklar, zincirleme yanma, enerji halkasi,
             her kelimede renk degistiren arka plan, neon yazi/etiket
   ===================================================================== */

/* ---------- BASIT ---------- */
body.anim-basit .particle { display: none; }

/* ---------- KOMBO ---------- */
body.anim-kombo #board { perspective: 700px; }
body.anim-kombo .tile { transform-style: preserve-3d; }
body.anim-kombo .tile.valid-pulse { animation: tilegoodflip 0.6s ease-out; }
@keyframes tilegoodflip {
  0% { transform: scale(1.1) rotateY(0deg); }
  35% { transform: scale(1.5) rotateY(180deg) rotate(-6deg); background: linear-gradient(145deg, var(--flash-good-a), var(--flash-good-b)); box-shadow: 0 0 30px var(--flash-good-b); }
  70% { transform: scale(1.15) rotateY(300deg) rotate(2deg); }
  100% { transform: scale(1) rotateY(360deg); }
}
body.anim-kombo #toast { font-size: 50px; text-shadow: 0 0 24px rgba(255,217,61,0.95), 0 4px 10px rgba(0,0,0,0.5); }
#app.shake-app { animation: appshake 0.3s; }
@keyframes appshake {
  0%, 100% { transform: translate(0,0); }
  20% { transform: translate(-4px, 2px); }
  40% { transform: translate(4px, -2px); }
  60% { transform: translate(-3px, -2px); }
  80% { transform: translate(3px, 2px); }
}
#combo-badge {
  position: fixed; top: 30%; left: 50%;
  transform: translateX(-50%) scale(0.5);
  font-weight: 900; letter-spacing: 1px; white-space: nowrap;
  color: #fff; opacity: 0; pointer-events: none;
  text-shadow: 0 0 12px rgba(255,217,61,0.9), 0 2px 6px rgba(0,0,0,0.5);
  z-index: 1001;
}
#combo-badge.show { animation: combopop 0.9s ease-out forwards; }
@keyframes combopop {
  0% { opacity: 0; transform: translateX(-50%) scale(0.3) rotate(-10deg); }
  15% { opacity: 1; transform: translateX(-50%) scale(1.3) rotate(5deg); }
  30% { transform: translateX(-50%) scale(1) rotate(0deg); }
  75% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-20px) scale(0.9); }
}
.score-rolling { color: #ffd93d !important; }
.flying-word {
  position: fixed; z-index: 500; pointer-events: none;
  font-weight: 800; color: var(--fg); text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* ---------- NEON ---------- */
body.anim-neon #topbar .value,
body.anim-neon .lvl-hud-score { text-shadow: 0 0 10px rgba(77,255,220,0.6); }
body.anim-neon #title,
body.anim-neon .lvl-hud-title { text-shadow: 0 0 10px rgba(180,120,255,0.8); }
body.anim-neon #board { background: rgba(0,0,0,0.3); box-shadow: inset 0 2px 14px rgba(0,0,0,0.5); }
body.anim-neon .tile.tile-combo { box-shadow: var(--tile-shadow), 0 0 14px rgba(255,90,230,0.55); border-color: rgba(255,120,240,0.45); }
body.anim-neon .tile.active {
  background: linear-gradient(145deg, #2d6fff, #1947b5);
  transform: scale(1.12); color: #fff;
  box-shadow: 0 0 6px rgba(0,0,0,0.3), 0 0 26px rgba(80,160,255,0.95), 0 0 50px rgba(80,160,255,0.4);
}
body.anim-neon .tile.valid-pulse { animation: tilegoodneon 0.55s ease-out; }
@keyframes tilegoodneon {
  0% { transform: scale(1.12); box-shadow: 0 0 26px rgba(80,160,255,0.95); }
  40% { transform: scale(1.4) rotate(-3deg); background: linear-gradient(145deg, #39ff9e, #0ec46c); color:#06281a;
        box-shadow: 0 0 10px rgba(0,0,0,0.3), 0 0 40px rgba(57,255,158,1), 0 0 70px rgba(57,255,158,0.5); }
  100% { transform: scale(1); }
}
body.anim-neon .tile.dup-pulse { animation: tiledupneon 0.5s ease-out; }
@keyframes tiledupneon {
  0% { transform: scale(1.12); }
  40% { transform: scale(1.25); background: linear-gradient(145deg, #ffd27a, #ffa733); color:#2a1a00; box-shadow: 0 0 30px rgba(255,184,77,0.9); }
  100% { transform: scale(1); }
}
body.anim-neon .tile.invalid-shake { animation: tileshakeneon 0.4s ease-out; }
@keyframes tileshakeneon {
  0% { transform: translateX(0) scale(1.12); background: linear-gradient(145deg, #ff5a76, #cc1f3d); color:#fff; box-shadow: 0 0 30px rgba(255,59,92,0.9); }
  25% { transform: translateX(-7px) scale(1.12); }
  75% { transform: translateX(7px) scale(1.12); }
  100% { transform: translateX(0) scale(1); }
}
body.anim-neon #current-word.state-valid { color:#06281a; box-shadow: 0 0 22px rgba(57,255,158,0.8); }
body.anim-neon #current-word.state-dup { box-shadow: 0 0 18px rgba(255,184,77,0.7); }
body.anim-neon #current-word.state-invalid { box-shadow: 0 0 18px rgba(255,59,92,0.7); }
body.anim-neon #toast {
  font-size: 48px; color: #39ff9e;
  text-shadow: 0 0 10px rgba(57,255,158,1), 0 0 34px rgba(57,255,158,0.8), 0 4px 10px rgba(0,0,0,0.6);
}
body.anim-neon .particle { box-shadow: 0 0 8px currentColor; }
body.anim-neon .found-chip { border: 1px solid rgba(120,220,255,0.3); background: rgba(255,255,255,0.06); }
body.anim-neon .found-chip.newest { animation: popin 0.35s ease-out, neonpulse 1.8s ease-in-out 0.4s 2; }
@keyframes neonpulse {
  0%, 100% { box-shadow: 0 0 2px rgba(120,220,255,0.2); }
  50% { box-shadow: 0 0 14px rgba(120,220,255,0.9); }
}
.energy-ring {
  position: fixed; z-index: 400; pointer-events: none;
  border: 3px solid rgba(57,255,158,0.9); border-radius: 50%;
  width: 30px; height: 30px;
  transform: translate(-50%,-50%) scale(0); opacity: 1;
}
.energy-ring.go { animation: ringpulse 0.7s ease-out forwards; }
@keyframes ringpulse {
  0% { transform: translate(-50%,-50%) scale(0.3); opacity: 0.9; }
  100% { transform: translate(-50%,-50%) scale(9); opacity: 0; }
}
