/* Nexi — animiertes Maskottchen. Gemeinsam genutzt von allen Seiten. */
/* =========================
   NEXI — Animationen
========================= */
.nexi{ display:block; width:100%; height:100%; overflow:visible; }
.nexi *{ transform-box:view-box; }

.nexi .nx-body-wrap{ transform-origin:600px 1300px; animation:nxFloat 3.4s ease-in-out infinite; }
.nexi .nx-shadow{ transform-origin:600px 1350px; animation:nxShadow 3.4s ease-in-out infinite; }
.nexi .nx-head{ transform-origin:580px 760px; animation:nxHeadTilt 6s ease-in-out infinite; }
.nexi .nx-antenna-glow{ transform-origin:518px 226px; animation:nxPulse 2s ease-in-out infinite; }
.nexi .nx-blink{ transform-origin:580px 520px; animation:nxBlink 4.6s infinite; }

.nexi .nx-arm-wave{ transform-origin:795px 885px; animation:nxWave 1.5s ease-in-out infinite; }
.nexi .nx-arm-point{ transform-origin:795px 900px; animation:nxPoint 1.8s ease-in-out infinite; }
.nexi .nx-arm-cheer-l{ transform-origin:405px 885px; animation:nxCheerL .9s ease-in-out infinite; }
.nexi .nx-arm-cheer-r{ transform-origin:795px 885px; animation:nxCheerR .9s ease-in-out infinite; }
.nexi .nx-arm-shrug-l{ transform-origin:405px 925px; animation:nxShrugL 1.2s ease-in-out infinite; }
.nexi .nx-arm-shrug-r{ transform-origin:795px 925px; animation:nxShrugR 1.2s ease-in-out infinite; }

.nexi .nx-dot{ animation:nxDot 1.4s ease-in-out infinite; }
.nexi .nx-bubble .nx-dot:nth-child(4){ animation-delay:.2s; }
.nexi .nx-bubble .nx-dot:nth-child(5){ animation-delay:.4s; }
.nexi .nx-bulb-glow{ transform-origin:920px 552px; animation:nxGlow 1.6s ease-in-out infinite; }
.nexi .nx-spark{ transform-box:fill-box; transform-origin:center; animation:nxTwinkle 1.2s ease-in-out infinite; }
.nexi .nx-spark:nth-child(2){ animation-delay:.4s; }
.nexi .nx-spark:nth-child(3){ animation-delay:.8s; }
.nexi .nx-question{ transform-origin:1010px 260px; animation:nxQuestion 1.6s ease-in-out infinite; }
.nexi .nx-sweat{ animation:nxSweat 2s ease-in infinite; }

.nexi--cheer .nx-body-wrap{ animation:nxJump .9s ease-in-out infinite; }
.nexi--cheer .nx-shadow{ animation:nxShadowJump .9s ease-in-out infinite; }
.nexi--stress .nx-head{ animation:nxShake 2.4s ease-in-out infinite; }

.nexi-slot:hover .nx-body-wrap{ animation-duration:1.2s; }
.nexi-hop .nexi{ animation:nxHop .55s cubic-bezier(.3,1.6,.5,1); }
.nexi-paused .nexi, .nexi-paused .nexi *{ animation-play-state:paused !important; }

@keyframes nxFloat{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-34px); } }
@keyframes nxShadow{ 0%,100%{ transform:scale(1); opacity:1; } 50%{ transform:scale(.82); opacity:.6; } }
@keyframes nxHeadTilt{ 0%,100%{ transform:rotate(0); } 30%{ transform:rotate(-3deg); } 60%{ transform:rotate(2deg); } }
@keyframes nxPulse{ 0%,100%{ transform:scale(.8); opacity:.15; } 50%{ transform:scale(1.25); opacity:.4; } }
@keyframes nxBlink{ 0%,90%,100%{ transform:scaleY(1); } 93%{ transform:scaleY(.08); } 96%{ transform:scaleY(1); } }
@keyframes nxWave{ 0%,100%{ transform:rotate(0); } 25%{ transform:rotate(-16deg); } 75%{ transform:rotate(8deg); } }
@keyframes nxPoint{ 0%,100%{ transform:translateX(0); } 50%{ transform:translateX(22px); } }
@keyframes nxCheerL{ 0%,100%{ transform:rotate(0); } 50%{ transform:rotate(14deg); } }
@keyframes nxCheerR{ 0%,100%{ transform:rotate(0); } 50%{ transform:rotate(-14deg); } }
@keyframes nxShrugL{ 0%,100%{ transform:rotate(0); } 50%{ transform:rotate(-10deg); } }
@keyframes nxShrugR{ 0%,100%{ transform:rotate(0); } 50%{ transform:rotate(10deg); } }
@keyframes nxDot{ 0%,60%,100%{ transform:translateY(0); opacity:.45; } 30%{ transform:translateY(-16px); opacity:1; } }
@keyframes nxGlow{ 0%,100%{ transform:scale(.85); opacity:.25; } 50%{ transform:scale(1.2); opacity:.6; } }
@keyframes nxTwinkle{ 0%,100%{ transform:scale(.5) rotate(0); opacity:.3; } 50%{ transform:scale(1.15) rotate(20deg); opacity:1; } }
@keyframes nxQuestion{ 0%,100%{ transform:translateY(0) rotate(-6deg); } 50%{ transform:translateY(-20px) rotate(6deg); } }
@keyframes nxSweat{ 0%{ transform:translateY(0); opacity:0; } 20%{ opacity:1; } 100%{ transform:translateY(70px); opacity:0; } }
@keyframes nxJump{ 0%,100%{ transform:translateY(0) scale(1,1); } 15%{ transform:translateY(0) scale(1.04,.96); } 50%{ transform:translateY(-70px) scale(.98,1.03); } }
@keyframes nxShadowJump{ 0%,100%{ transform:scale(1); } 50%{ transform:scale(.7); opacity:.5; } }
@keyframes nxShake{ 0%,100%{ transform:rotate(0); } 10%{ transform:rotate(-4deg); } 20%{ transform:rotate(4deg); } 30%{ transform:rotate(-3deg); } 40%{ transform:rotate(0); } }
@keyframes nxHop{ 0%{ transform:translateY(0); } 40%{ transform:translateY(-18%); } 100%{ transform:translateY(0); } }

/* Sprechen (Erklärvideos) */
.nexi-talking .nexi .nx-mouth{ transform-origin:582px 632px; animation:nxTalk .2s ease-in-out infinite alternate; }
@keyframes nxTalk{ from{ transform:scale(.92,.55); } to{ transform:scale(1.08,1.5); } }

@media (prefers-reduced-motion: reduce){
  .nexi, .nexi *{ animation:none !important; }
}
