/* ANIMACIONES Y TRANSICIONES (13/11/2026). Solo visual: no toca datos ni lógica.
   Va en el <head> de la tienda y de Mi panel, DESPUÉS de sus estilos.
   Todo vive dentro de «no-preference»: con «reducir movimiento» no corre nada.
   Solo se animan opacity y transform (los hace la tarjeta gráfica). */
@media (prefers-reduced-motion: no-preference) {
  /* Entre Tienda y Mi panel: el navegador funde una página con la otra
     (donde no existe esta función, la página cambia como siempre). */
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: dsPagSale .16s ease both; }
  ::view-transition-new(root) { animation: dsPagEntra .26s ease both; }
  @keyframes dsPagSale { to { opacity: 0; transform: translateY(-6px); } }
  @keyframes dsPagEntra { from { opacity: 0; transform: translateY(8px); } }

  /* Botones: responden al toque. */
  .btn { transition: background .15s, border-color .15s, color .15s, transform .1s; }
  .btn:active:not(:disabled) { transform: scale(.97); }

  /* Tarjetas de juegos: suben un poco con el mouse (solo donde hay mouse). */
  .juego { transition: border-color .15s, transform .18s ease, box-shadow .18s ease; }
  @media (hover: hover) {
    .juego:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(0, 0, 0, .35); }
  }

  /* Ventanas: el fondo aparece y la caja sube un poco. La animación arranca
     sola cada vez que la ventana pasa de oculta a visible. */
  .dlg, .ds-term-fondo, .ds-aviso-fondo, .hoja-v, .ds-bienv-fondo { animation: dsFondoEntra .18s ease both; }
  .dlg-caja, .ds-term-caja, .ds-aviso-caja, .hoja-v-caja, .ds-bienv-caja { animation: dsCajaEntra .22s ease both; }
  @keyframes dsFondoEntra { from { opacity: 0; } }
  @keyframes dsCajaEntra { from { opacity: 0; transform: translateY(10px) scale(.98); } }

  /* Top 10: las tarjetas entran una detrás de otra y el número «cae» en su sitio. */
  .top10-item { animation: dsTopEntra .42s cubic-bezier(.2, .8, .3, 1) both; }
  .top10-item .top10-num { animation: dsTopNum .5s cubic-bezier(.34, 1.56, .64, 1) both; }
  .top10-item:nth-child(2), .top10-item:nth-child(2) .top10-num { animation-delay: .05s; }
  .top10-item:nth-child(3), .top10-item:nth-child(3) .top10-num { animation-delay: .1s; }
  .top10-item:nth-child(4), .top10-item:nth-child(4) .top10-num { animation-delay: .15s; }
  .top10-item:nth-child(5), .top10-item:nth-child(5) .top10-num { animation-delay: .2s; }
  .top10-item:nth-child(6), .top10-item:nth-child(6) .top10-num { animation-delay: .25s; }
  .top10-item:nth-child(7), .top10-item:nth-child(7) .top10-num { animation-delay: .3s; }
  .top10-item:nth-child(8), .top10-item:nth-child(8) .top10-num { animation-delay: .35s; }
  .top10-item:nth-child(9), .top10-item:nth-child(9) .top10-num { animation-delay: .4s; }
  .top10-item:nth-child(n+10), .top10-item:nth-child(n+10) .top10-num { animation-delay: .45s; }
  @keyframes dsTopEntra { from { opacity: 0; transform: translateX(18px); } }
  @keyframes dsTopNum { from { opacity: 0; transform: translateY(-14px) scale(.8); } }
  .top10-tar { transition: border-color .15s, transform .18s ease, box-shadow .18s ease; }
  .top10-num { transition: color .18s ease; }
  @media (hover: hover) {
    .top10-item:hover .top10-tar { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
    .top10-item:hover .top10-num { color: #8b5cf6; }
  }
  .top10-item:active .top10-tar { transform: scale(.97); }

  .ds-bienv-paso { animation: dsPasoEntra .24s ease both; }
  @keyframes dsPasoEntra { from { opacity: 0; transform: translateX(14px); } }
}

/* Bienvenida de 3 pasos (la arma animaciones.js). */
.ds-bienv-fondo{position:fixed;inset:0;z-index:1000;background:rgba(5,3,18,.78);display:flex;align-items:center;justify-content:center;padding:16px}
.ds-bienv-caja{box-sizing:border-box;width:100%;max-width:420px;max-height:calc(100vh - 32px);overflow:auto;background:#151030;color:#ede9fe;border:1px solid #3e3177;border-radius:18px;padding:22px 20px 18px;box-shadow:0 20px 60px rgba(0,0,0,.5);font:15px/1.5 ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
.ds-bienv-ico{width:52px;height:52px;border-radius:14px;background:rgba(139,92,246,.16);border:1px solid rgba(139,92,246,.5);display:grid;place-items:center;color:#a78bfa;margin-bottom:14px}
.ds-bienv-num{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:#857bae;font-weight:800}
.ds-bienv-caja h2{margin:4px 0 8px;font-size:20px;line-height:1.25;color:#fff}
.ds-bienv-caja p{margin:0;color:#bcb2df;font-size:14.5px}
.ds-bienv-pie{display:flex;align-items:center;gap:10px;margin-top:20px}
.ds-bienv-puntos{display:flex;gap:6px;flex:1}
.ds-bienv-puntos i{width:8px;height:8px;border-radius:99px;background:#2c2257}
.ds-bienv-puntos i.es{background:#8b5cf6;width:20px}
.ds-bienv-pie button{min-height:44px;padding:0 16px;border-radius:11px;font:inherit;font-weight:800;font-size:14px;cursor:pointer}
.ds-bienv-saltar{background:transparent;border:1px solid transparent;color:#bcb2df}
.ds-bienv-sig{background:#7c3aed;border:1px solid #7c3aed;color:#fff}
