/* ═══════ ELYSIUM GATE · splash de arranque de Eliseo (pórtico de mármol → zona comercial de los Campos Elíseos → panel) ═══════
   Línea de tiempo (ms): 0 aparición · 700 líneas y mecanismo · 1300 las puertas giran hacia dentro y la cámara echa a andar ·
   ≈3360 cruza el umbral (el pórtico pasa a los lados, no se desvanece) · destello → panel cuando la app está lista.
   UNA sola velocidad: el pórtico crece con la misma ley de perspectiva y al mismo paso que los tramos de avenida (.eg-ly,
   animados por /js/sc70.js), por eso entrar se siente continuo. La animación nunca se detiene.
   Rendimiento: solo transform/opacity en elementos HTML (GPU). Sin filtros, sin animar piezas internas de un SVG.
   Para ajustar tiempos: cambia duración/retardo de cada «animation» (formato: nombre duración retardo curva). */
#boot-splash{gap:0;overflow:hidden;z-index:2147483600;background:#03060d;transition:opacity .34s ease;cursor:default}
html.booting #boot-splash,html.bs-leaving #boot-splash{display:block}
#boot-splash.bs-fade{opacity:0}

#boot-splash .eg-defs{position:absolute;width:0;height:0}
/* Escenario 16:10 que siempre CUBRE la pantalla (el centro —las puertas— nunca se recorta) */
#boot-splash .eg-stage{position:absolute;left:50%;top:50%;width:max(100vw,160vh);height:max(100vh,62.5vw);transform:translate(-50%,-50%)}
#boot-splash .eg-cam,#boot-splash .eg-grain,#boot-splash .eg-world,#boot-splash .eg-world-in,#boot-splash .eg-flare,#boot-splash .eg-gate,
#boot-splash .eg-lines,#boot-splash .eg-spill,#boot-splash .eg-parts,#boot-splash .eg-dark{position:absolute;inset:0}
#boot-splash svg{display:block;width:100%;height:100%}

/* Cámara: quieta hasta que se abren las puertas; al caminar (.eg-walk) lleva un vaivén leve de paso */
#boot-splash .eg-cam{transform-origin:50% 64%;transform:scale(1.012)}
#boot-splash.eg-walk .eg-cam{animation:egBob .5s ease-in-out infinite alternate}
@keyframes egBob{from{transform:translateY(0) scale(1.012)}to{transform:translateY(-.4%) scale(1.012)}}

/* Pórtico: se acerca con perspectiva real (escala = 1/(1−avance)); arranca suave y cruza el umbral. Solo se apaga al final, ya fuera de cuadro */
#boot-splash .eg-gate{transform-origin:50% 64%;perspective:max(150vw,240vh);perspective-origin:50% 64%;will-change:transform,opacity;
  animation:egGateZ 2.06s 1.3s linear both}
@keyframes egGateZ{0%{transform:scale(1);opacity:1}10%{transform:scale(1.016)}20%{transform:scale(1.067)}30%{transform:scale(1.164)}40%{transform:scale(1.308)}
  50%{transform:scale(1.491)}60%{transform:scale(1.735)}70%{transform:scale(2.073)}80%{transform:scale(2.576)}85%{transform:scale(2.931)}
  90%{transform:scale(3.4);opacity:1}95%{transform:scale(4.047)}100%{transform:scale(5);opacity:0}}
#boot-splash .eg-gcv,#boot-splash .eg-door svg,#boot-splash .eg-door canvas,#boot-splash .eg-dsh{position:absolute;inset:0;width:100%;height:100%}
/* Hojas: giran hacia dentro sobre sus bisagras (3D) y se oscurecen al quedar de canto */
#boot-splash .eg-door{position:absolute;top:25.4%;height:60.6%;width:11.25%;will-change:transform}
#boot-splash .eg-door-l{left:38.75%;transform-origin:0 50%;animation:egDoorL 1.05s 1.3s cubic-bezier(.45,0,.2,1) both}
#boot-splash .eg-door-r{left:50%;transform-origin:100% 50%;animation:egDoorR 1.05s 1.3s cubic-bezier(.45,0,.2,1) both}
#boot-splash .eg-door-r svg,#boot-splash .eg-door-r canvas{transform:scaleX(-1)}
@keyframes egDoorL{to{transform:rotateY(80deg)}}
@keyframes egDoorR{to{transform:rotateY(-80deg)}}
#boot-splash .eg-dsh{background:linear-gradient(90deg,rgba(6,10,26,.8),rgba(6,10,26,.4));opacity:0;animation:egDsh 1.05s 1.3s ease-in both}
#boot-splash .eg-door-r .eg-dsh{transform:scaleX(-1)}
@keyframes egDsh{to{opacity:1}}
/* Tapa la rendija entre hojas mientras están cerradas */
#boot-splash .eg-seam{position:absolute;left:49.7%;width:.6%;top:25.4%;height:60.6%;background:#59607a;animation:egSeam .12s 1.3s linear forwards}
@keyframes egSeam{to{opacity:0}}

/* Líneas turquesa (el resplandor va dibujado como trazo ancho en el propio SVG: sin filtros) */
#boot-splash .eg-lines,#boot-splash .eg-door .eg-dl{opacity:.14;animation:egGlow .7s .7s ease both}
@keyframes egGlow{from{opacity:.14}to{opacity:1}}

/* Mecanismo circular de energía (el aro que gira es un elemento aparte → va por GPU) */
#boot-splash .eg-mech{position:absolute;left:45.5%;top:48.5%;width:9%;aspect-ratio:1;opacity:.22;
  animation:egMechOn .6s .7s ease both,egMechOff .34s 1.3s ease-in forwards}
#boot-splash .eg-mech svg{position:absolute;inset:0}
#boot-splash .eg-ring{transform-origin:50% 50%;animation:egSpin 1.3s .6s cubic-bezier(.4,0,.2,1) both}
@keyframes egMechOn{from{opacity:.22;transform:scale(.92)}to{opacity:1;transform:scale(1)}}
@keyframes egMechOff{to{opacity:0;transform:scale(1.55)}}
@keyframes egSpin{to{transform:rotate(220deg)}}

/* Mundo interior: fondo (.eg-wcv) + tramos de avenida (.eg-ly) que avanzan. Lo pinta y lo mueve /js/sc70.js */
#boot-splash .eg-world-in{background:radial-gradient(60% 55% at 50% 64%,#19d3c5 0,#123a7a 30%,#0a1630 58%,#03060d 100%)}   /* respaldo sin canvas */
#boot-splash .eg-wcv{display:block;width:100%;height:100%}
#boot-splash .eg-ly{position:absolute;inset:0;width:100%;height:100%;transform-origin:50% 64%;opacity:0;will-change:transform,opacity;pointer-events:none}
#boot-splash .eg-world-in::after{content:"";position:absolute;inset:0;z-index:40;pointer-events:none;
  background:radial-gradient(ellipse 64% 72% at 50% 62%,rgba(2,4,10,0) 42%,rgba(2,4,10,.66) 100%)}
/* Grano fino sobre toda la escena y viñeta */
#boot-splash .eg-grain{pointer-events:none;background-repeat:repeat;opacity:.9;background-color:transparent}
/* Salida: destello de luz que apaga el mundo y deja ver el panel */
#boot-splash.eg-flash{background:transparent}
#boot-splash.eg-flash .eg-world{opacity:0;transition:opacity .14s linear .2s}
#boot-splash .eg-flare{opacity:0;pointer-events:none;transform-origin:50% 60%;
  background:radial-gradient(circle at 50% 60%,#fff 0,#f1fffd 30%,rgba(170,250,242,.9) 46%,rgba(64,150,255,.35) 62%,rgba(64,150,255,0) 76%)}
#boot-splash.eg-flash .eg-flare{animation:egFlash .8s ease-out both}
@keyframes egFlash{0%{opacity:0;transform:scale(.25)}30%{opacity:1;transform:scale(1.7)}100%{opacity:0;transform:scale(2.6)}}

/* Luz del interior: resplandor al abrirse y sobre la escalinata */
#boot-splash .eg-beam{position:absolute;left:27%;width:46%;top:12%;height:88%;opacity:0;pointer-events:none;
  background:radial-gradient(ellipse 50% 50% at 50% 50%,rgba(255,255,255,.9) 0,rgba(190,250,244,.5) 34%,rgba(64,150,255,.18) 58%,rgba(64,150,255,0) 74%);
  animation:egBeam 1.1s 1.3s ease-out both}
@keyframes egBeam{0%{opacity:0}40%{opacity:.4}100%{opacity:.12}}
#boot-splash .eg-spill{pointer-events:none;background:#bff8f1;clip-path:polygon(38.875% 86%,61.125% 86%,70.5% 100%,29.5% 100%);opacity:0;animation:egSpill .9s 1.3s ease-out both}
@keyframes egSpill{to{opacity:.16}}

/* Partículas luminosas (luciérnagas cerca de la cámara) */
#boot-splash .eg-parts{pointer-events:none;transform-origin:50% 64%;animation:egPartsZ 2.06s 1.3s ease-in both}
@keyframes egPartsZ{to{transform:scale(1.5)}}
#boot-splash .eg-parts i{position:absolute;width:5px;height:5px;border-radius:50%;
  background:radial-gradient(circle,#fff 0,rgba(150,255,244,.9) 45%,rgba(150,255,244,0) 72%);animation:egFloat 4.2s ease-in-out infinite}
@keyframes egFloat{0%,100%{transform:translate(0,0);opacity:.2}50%{transform:translate(8px,-26px);opacity:.95}}

/* Oscuridad inicial */
#boot-splash .eg-dark{background:#03060d;pointer-events:none;animation:egDark 1.6s linear both}
@keyframes egDark{0%{opacity:1}31%{opacity:.26}100%{opacity:0}}

/* Accesibilidad: sin movimiento → escena fija (puertas cerradas) y fundido simple */
@media (prefers-reduced-motion:reduce){
  #boot-splash *{animation:none!important}
  #boot-splash .eg-dark{opacity:0}
  #boot-splash .eg-lines,#boot-splash .eg-door .eg-dl,#boot-splash .eg-mech{opacity:1}
}
