/* /juego/ «Cinco mundos»: una galaxia animada encima del fondo de cada ficha (dueño, 01-12-2026). Planeta, luna o
   satélite en órbita, estrellas que titilan, nebulosa que respira y una estrella fugaz. Quieta con reducir movimiento. */
.jp-galaxia{position:absolute;inset:0;width:100%;height:100%;z-index:-1;pointer-events:none}
.jp-planeta{position:absolute;z-index:-1;pointer-events:none;top:6px;right:150px;width:300px;height:218px;overflow:visible}
.jp-mundo:nth-child(even) .jp-planeta{right:auto;left:160px}
@media (max-width:640px){.jp-planeta,.jp-mundo:nth-child(even) .jp-planeta{top:4px;right:4px;left:auto;width:200px;height:146px}}
.gx-neb{opacity:.55;filter:blur(18px);transform-box:fill-box;transform-origin:center}
.gx-estrellas circle{fill:#fff}
.gx-bandas path,.gx-bandas circle{fill:none;stroke:rgba(255,255,255,.28);stroke-width:4;stroke-linecap:round}
.gx-anillo{fill:none;stroke:rgba(255,236,190,.85);stroke-width:5}
.gx-anillo--atras{stroke:rgba(255,236,190,.35)}
.gx-luna{fill:#E9E6F2}
.gx-satelite rect{fill:#CFE3FF;stroke:#5B7FB8;stroke-width:1}
.gx-fugaz{opacity:0}

/* Una paleta por mundo: cada uno, una galaxia distinta */
.jp-galaxia--primaria .pl-luz{stop-color:#B8F5C9}.jp-galaxia--primaria .pl-medio{stop-color:#3DBE8B}.jp-galaxia--primaria .pl-sombra{stop-color:#0E4A3A}
.jp-galaxia--primaria .gx-neb--a{fill:#3DDC97}.jp-galaxia--primaria .gx-neb--b{fill:#4CC9F0}
.jp-galaxia--eso .pl-luz{stop-color:#FFE3A8}.jp-galaxia--eso .pl-medio{stop-color:#E8913A}.jp-galaxia--eso .pl-sombra{stop-color:#5A2A0E}
.jp-galaxia--eso .gx-neb--a{fill:#FF9A62}.jp-galaxia--eso .gx-neb--b{fill:#FFC94A}
.jp-galaxia--bachillerato .pl-luz{stop-color:#F2FBFF}.jp-galaxia--bachillerato .pl-medio{stop-color:#8FD3F4}.jp-galaxia--bachillerato .pl-sombra{stop-color:#1F4E7A}
.jp-galaxia--bachillerato .gx-neb--a{fill:#9FD8FF}.jp-galaxia--bachillerato .gx-neb--b{fill:#C9A3FF}
.jp-galaxia--carnet .pl-luz{stop-color:#FFD08A}.jp-galaxia--carnet .pl-medio{stop-color:#E0442E}.jp-galaxia--carnet .pl-sombra{stop-color:#3A0A10}
.jp-galaxia--carnet .gx-neb--a{fill:#FF6B6B}.jp-galaxia--carnet .gx-neb--b{fill:#FF9F43}
.jp-galaxia--carnet .gx-bandas path{stroke:rgba(255,214,120,.75);stroke-width:2.5}
.jp-galaxia--idiomas .pl-luz{stop-color:#F3E2FF}.jp-galaxia--idiomas .pl-medio{stop-color:#9B6BF0}.jp-galaxia--idiomas .pl-sombra{stop-color:#2A145E}
.jp-galaxia--idiomas .gx-neb--a{fill:#C9A3FF}.jp-galaxia--idiomas .gx-neb--b{fill:#FF6B9D}

@media (prefers-reduced-motion:no-preference){
  .gx-estrellas circle{animation:gx-titila 3s ease-in-out infinite}
  .gx-estrellas circle:nth-child(3n){animation-delay:-1s;animation-duration:2.2s}
  .gx-estrellas circle:nth-child(3n+1){animation-delay:-2s;animation-duration:3.8s}
  .gx-neb--a{animation:gx-respira 9s ease-in-out infinite}
  .gx-neb--b{animation:gx-respira 11s ease-in-out -4s infinite}
  .gx-planeta{animation:gx-flota 8s ease-in-out infinite}
  .gx-bandas{animation:gx-gira 14s linear infinite}
  .gx-orbita{animation:gx-orbita 12s linear infinite}
  .gx-orbita--lenta{animation-duration:20s;animation-direction:reverse}
  .gx-satelite{animation:gx-parpadeo 1.6s steps(1) infinite}
  .gx-fugaz{animation:gx-fugaz 7s ease-in infinite}
  .jp-mundo:nth-child(2) .gx-fugaz{animation-delay:-2s}
  .jp-mundo:nth-child(3) .gx-fugaz{animation-delay:-4.5s}
  .jp-mundo:nth-child(4) .gx-fugaz{animation-delay:-1s}
  .jp-mundo:nth-child(5) .gx-fugaz{animation-delay:-3.3s}
}
@keyframes gx-titila{0%,100%{opacity:.9}50%{opacity:.2}}
@keyframes gx-respira{0%,100%{opacity:.45;transform:scale(1)}50%{opacity:.7;transform:scale(1.08) translateX(6px)}}
@keyframes gx-flota{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
@keyframes gx-gira{0%{transform:translateX(-6px)}50%{transform:translateX(6px)}100%{transform:translateX(-6px)}}
@keyframes gx-orbita{to{transform:rotate(360deg)}}
@keyframes gx-parpadeo{0%{opacity:1}50%{opacity:.6}}
@keyframes gx-fugaz{0%,78%{opacity:0;transform:translate(40px,20px) rotate(28deg)}80%{opacity:1}92%{opacity:0;transform:translate(330px,190px) rotate(28deg)}100%{opacity:0}}
