/* SaintMU Ecosistema - Cabecera unificada V1
 * Basado en GuildWarsAlliance / ForoSaint. Solo aspecto visual.
 * Los nombres usan prefijo saint-eco- para no pisar estilos de MUCore, phpBB2 o SaintShop.
 */
:root {
 --saint-eco-ink:#0e1415;
 --saint-eco-plate:#181c1b;
 --saint-eco-panel:#25231e;
 --saint-eco-red:#64281f;
 --saint-eco-line:#735338;
 --saint-eco-gold:#e7c18a;
 --saint-eco-light:#f4e7d2;
}
.saint-eco-bar,.saint-eco-bar *{box-sizing:border-box}
.saint-eco-bar{isolation:isolate;position:relative;z-index:10025;min-height:54px;
 background:linear-gradient(90deg,rgba(13,17,18,.98),rgba(39,28,22,.96));
 border-bottom:2px solid #91643a;box-shadow:0 3px 14px rgba(0,0,0,.62);
 color:var(--saint-eco-light);font:normal 13px/1.3 Arial,Verdana,sans-serif}
.saint-eco-bar:before{content:"";pointer-events:none;position:absolute;inset:0;z-index:-1;
 background-image:linear-gradient(90deg,#0b1416e9,#1d1519c4 48%,#0b1314e3),var(--saint-eco-art,none);
 background-size:cover;background-position:center 45%;opacity:.63}
.saint-eco-inner{width:calc(100% - 32px);max-width:1180px;min-height:54px;
 margin:0 auto;display:flex;align-items:center;gap:24px}
.saint-eco-brand{display:flex;align-items:center;gap:10px;flex:0 0 auto;text-decoration:none!important;
 color:#f3d59e!important;white-space:nowrap;border:0!important;background:transparent!important;padding:3px 0!important}
.saint-eco-brand strong{font:bold 22px/1 Georgia,serif;letter-spacing:.07em;text-shadow:0 2px 6px #000}
.saint-eco-brand strong span{color:#c98949}
.saint-eco-brand small{display:block;color:#c4ac83;font:700 9px/1.3 Arial,sans-serif;letter-spacing:.11em}
.saint-eco-links{display:flex;gap:6px;align-items:center;justify-content:center;margin-left:auto}
.saint-eco-links a{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:7px 17px;
 color:#dfd0b8!important;text-decoration:none!important;background:#2d2521a8!important;
 border:1px solid #73543ba8!important;border-radius:6px!important;white-space:nowrap;
 font:700 12px/1.2 Arial,Verdana,sans-serif!important;letter-spacing:.04em;box-shadow:none!important;
 transition:background .16s,border-color .16s,color .16s}
.saint-eco-links a:hover{color:#ffe6b5!important;background:#4b3528!important;border-color:#bd8754!important}
.saint-eco-links a.saint-eco-active,.saint-eco-links a[aria-current="page"]{
 color:#ffe1a3!important;background:linear-gradient(#743022,#481b18)!important;border-color:#bd7c47!important;
 box-shadow:inset 0 0 0 1px #a86c3a55,0 0 10px #0008!important}
.saint-eco-links a:focus-visible,.saint-eco-brand:focus-visible{outline:2px solid #f1cb7e;outline-offset:2px}
.saint-eco-section{flex:0 0 auto;font:700 10px Arial,sans-serif;letter-spacing:.11em;color:#bc9c74;text-transform:uppercase;
 padding-left:16px;border-left:1px solid #755439;white-space:nowrap}
/* MUCore: el navbar original sigue activo, junto con sus desplegables. */
body.saint-eco-web{padding-top:56px}
body.saint-eco-web>.saint-eco-bar{position:fixed;top:0;left:0;right:0;z-index:10025}
body.saint-eco-web nav.navbar-youplay.navbar-fixed-top{top:56px!important;background-color:#161a1beF!important;border-bottom:1px solid #6d492e!important}
body.saint-eco-web .tmp_m_content{border:1px solid #59422d;border-radius:10px;
 background:linear-gradient(150deg,#262019 0%,#14191a 80%);box-shadow:0 9px 22px #0007;
 margin-bottom:18px;overflow:hidden;color:#eadfce}
body.saint-eco-web .tmp_right_title{font-family:Georgia,serif;letter-spacing:.025em;color:#efce99;
 border-bottom:1px solid #83603a;background:linear-gradient(90deg,#4e3121,#292720);padding:13px 16px}
body.saint-eco-web .tmp_page_content{color:#e3d9c8;padding:16px;max-width:100%;background:transparent}
body.saint-eco-web .tmp_page_content a:not(.btn){text-underline-offset:3px}
body.saint-eco-web .tmp_page_content input[type=text],
body.saint-eco-web .tmp_page_content input[type=password],
body.saint-eco-web .tmp_page_content input[type=email],
body.saint-eco-web .tmp_page_content select,
body.saint-eco-web .tmp_page_content textarea{
 border-color:#685038;border-radius:5px;color:#f1e6d1;background-color:#161718}
body.saint-eco-web .tmp_page_content input:focus-visible,
body.saint-eco-web .tmp_page_content select:focus-visible,
body.saint-eco-web .tmp_page_content textarea:focus-visible{outline:2px solid #cc955e;outline-offset:1px}
/* Foro: no se reemplazan notificaciones, login ni menú móvil. */
body.saint-eco-forum .sm2-top{z-index:1004}
/* Shop: se sustituye SOLO la franja duplicada con enlaces Web / Foro;
 * el menú de carrito, ofertas, cuenta, Credits y demás no se modifica. */
body.saint-eco-shop .topline{display:none}
body.saint-eco-shop .hero{border-bottom-color:#845633}
body.saint-eco-shop .mainnav{border-bottom-color:#845633}
body.saint-eco-shop .panel{border-color:#64472e}
@media(max-width:860px){
 .saint-eco-inner{gap:11px}
 .saint-eco-section,.saint-eco-brand small{display:none}
 .saint-eco-links{gap:4px}
 .saint-eco-links a{padding:8px 12px}
}
@media(max-width:480px){
 .saint-eco-inner{width:calc(100% - 16px);gap:6px;min-height:52px}
 .saint-eco-brand strong{font-size:18px;letter-spacing:0}
 .saint-eco-links{gap:3px}
 .saint-eco-links a{font-size:11px!important;padding:7px 9px;min-height:35px}
 body.saint-eco-web{padding-top:54px}
 body.saint-eco-web>.saint-eco-bar{min-height:54px}
 body.saint-eco-web nav.navbar-youplay.navbar-fixed-top{top:54px!important}
 body.saint-eco-web .tmp_page_content{padding:11px}
}
@media(max-width:350px){
 .saint-eco-brand strong{font-size:16px}
 .saint-eco-links a{padding:7px 7px}
}
@media(prefers-reduced-motion:reduce){.saint-eco-links a{transition:none}}


/* =====================================================================
   SAINTMU ECOSISTEMA V2 | CABECERA FIJA + AJUSTES DE SUPERPOSICION
   Solo estilos. NO modifica logica PHP, SQL, JS de compras o modulos.
   ===================================================================== */
:root{
  --saint-eco-fixed-height:56px;
  --saint-eco-web-nav-height:80px;
}
/* La barra universal permanece visible al hacer scroll en los 3 portales. */
body.saint-eco-web,
body.saint-eco-forum,
body.saint-eco-shop{
  padding-top:var(--saint-eco-fixed-height) !important;
}
body.saint-eco-web > .saint-eco-bar,
body.saint-eco-forum > .saint-eco-bar,
body.saint-eco-shop > .saint-eco-bar{
  position:fixed !important;
  top:0 !important;
  left:0 !important;
  right:0 !important;
  width:100%;
  max-width:100vw;
  z-index:10025 !important;
  margin:0 !important;
}
/* La animacion de entrada de phpBB2 tenia transform incluso al terminar.
   Un transform en el body impide el posicionamiento fijo de sus hijos. */
body.saint-eco-forum,
body.saint-eco-forum.loaded{
  -webkit-transform:none !important;
  transform:none !important;
}
/* Superficies de contenido no heredan accidentalmente clipping horizontal. */
.saint-eco-bar,
.saint-eco-inner{max-width:100vw}

/* ===================== MUCORE / WEB ===================== */
body.saint-eco-web nav.navbar-youplay.navbar-fixed-top{
  top:var(--saint-eco-fixed-height) !important;
  left:0 !important;
  right:0 !important;
  width:100% !important;
  max-width:100vw !important;
  box-sizing:border-box;
  z-index:10020 !important;
}
/* El brillo/hover de Youplay no debe crecer ni desbordar las solapas. */
@media(min-width:992px){
  body.saint-eco-web nav.navbar-youplay .navbar-nav>li>a{
    overflow:hidden;
    max-width:100%;
    box-sizing:border-box;
  }
  body.saint-eco-web nav.navbar-youplay .navbar-nav>li>a::before,
  body.saint-eco-web nav.navbar-youplay .navbar-nav>li>a::after{
    max-width:100%;
    box-sizing:border-box;
  }
  body.saint-eco-web nav.navbar-youplay .nav-modern>li>a::before{
    width:100%;
    right:0;
  }
  /* Menus desplegables quedan libres, solo se limita el efecto de los enlaces. */
  body.saint-eco-web nav.navbar-youplay .dropdown-menu{max-width:min(90vw,700px)}
}
/* Boton del chat: antes estaba top:20px, justo debajo del marco nuevo. */
body.saint-eco-web .chat-wrap #toggle-button{
  top:calc(var(--saint-eco-fixed-height) + var(--saint-eco-web-nav-height) + 12px) !important;
}
/* La ventana lateral del chat no debe tapar la cabecera ni el menu. */
body.saint-eco-web .chat-wrap #chat-container{
  top:calc(var(--saint-eco-fixed-height) + var(--saint-eco-web-nav-height) + 9px) !important;
  height:calc(100vh - var(--saint-eco-fixed-height) - var(--saint-eco-web-nav-height) - 16px) !important;
  max-height:calc(100dvh - var(--saint-eco-fixed-height) - var(--saint-eco-web-nav-height) - 16px);
  max-width:100vw;
}
/* Panel CS: mantiene su animacion y cierre voluntario, pero aparece bajo chat/nav. */
body.saint-eco-web #castle-container{
  top:calc(var(--saint-eco-fixed-height) + var(--saint-eco-web-nav-height) + 66px) !important;
  right:14px !important;
  left:auto !important;
  max-width:calc(100vw - 28px);
  max-height:calc(100dvh - var(--saint-eco-fixed-height) - var(--saint-eco-web-nav-height) - 76px);
  overflow-y:auto;
  transform:translateY(-100vh);
}
body.saint-eco-web #castle-container.open-anim{
  animation:saintEcoCastleIn .65s cubic-bezier(.25,.9,.35,1.1) forwards !important;
}
body.saint-eco-web #castle-container.close-anim{
  animation:saintEcoCastleOut .45s ease forwards !important;
}
@keyframes saintEcoCastleIn{
  0%{transform:translateY(-100vh);opacity:.35}
  75%{transform:translateY(7px);opacity:1}
  100%{transform:translateY(0);opacity:1}
}
@keyframes saintEcoCastleOut{
  from{transform:translateY(0);opacity:1}
  to{transform:translateY(-100vh);opacity:0}
}
/* Botones de actividad desktop, arriba ya no pisan barra ni menu. */
@media(min-width:992px){
  body.saint-eco-web #popuplog-button{top:calc(var(--saint-eco-fixed-height) + var(--saint-eco-web-nav-height) + 20px) !important}
  body.saint-eco-web #duellog-button{top:calc(var(--saint-eco-fixed-height) + var(--saint-eco-web-nav-height) + 85px) !important}
  body.saint-eco-web #goldenlog-button{top:calc(var(--saint-eco-fixed-height) + var(--saint-eco-web-nav-height) + 150px) !important}
  body.saint-eco-web #bosslog-button{top:calc(var(--saint-eco-fixed-height) + var(--saint-eco-web-nav-height) + 215px) !important}
  body.saint-eco-web #classlog-button{top:calc(var(--saint-eco-fixed-height) + var(--saint-eco-web-nav-height) + 280px) !important}
}
/* ===================== FORO ===================== */
/* Menus flotantes mobile del foro: quedan debajo de ambos encabezados. */
@media(max-width:991px){
  body.saint-eco-forum .saint-notification-dropdown,
  body.saint-eco-forum #saint-mod-panel{
    top:calc(var(--saint-eco-fixed-height) + 75px) !important;
    max-height:calc(100dvh - var(--saint-eco-fixed-height) - 85px) !important;
  }
}
/* ===================== MOBILE WEB ===================== */
@media(max-width:991px){
  :root{--saint-eco-fixed-height:54px;--saint-eco-web-nav-height:62px}
  /* El menu lateral del navbar abre por debajo de la cabecera universal. */
  body.saint-eco-web .navbar-youplay #navbar,
  body.saint-eco-web .navbar-youplay #navbar.collapse,
  body.saint-eco-web .navbar-youplay #navbar.navbar-collapse{
    top:var(--saint-eco-fixed-height) !important;
    bottom:0 !important;
    height:calc(100vh - var(--saint-eco-fixed-height)) !important;
    height:calc(100dvh - var(--saint-eco-fixed-height)) !important;
    padding-top:18px !important;
  }
  body.saint-eco-web.saint-mobile-nav-open .navbar-youplay .navbar-toggle{
    top:calc(var(--saint-eco-fixed-height) + 10px) !important;
  }
  body.saint-eco-web #saint-mobile-nav-backdrop{
    top:var(--saint-eco-fixed-height) !important;
  }
  /* El chat se escala al ancho y alto disponible de cada celular. */
  body.saint-eco-web .chat-wrap #chat-container{
    width:min(720px,100vw) !important;
    border-radius:12px 0 0 12px;
  }
  /* No tocamos los cinco botones de actividad: mobile ya los agrupa abajo. */
}
@media(max-width:350px){
  .saint-eco-inner{min-width:0}
}
@media(prefers-reduced-motion:reduce){
 body.saint-eco-web #castle-container.open-anim,
 body.saint-eco-web #castle-container.close-anim{animation-duration:.01ms !important}
}


/* =====================================================================
   SAINTMU ECOSISTEMA V3 | AJUSTES FINALES DE LAYOUT (PC + MOBILE)
   ===================================================================== */
/* La barra universal no debe separarse demasiado en pantallas ultra anchas. */
.saint-eco-inner{
  width:calc(100% - 24px) !important;
  max-width:1180px !important;
  margin:0 auto !important;
  justify-content:flex-start !important;
}
.saint-eco-brand{flex:0 0 auto}
.saint-eco-links{margin-left:auto !important}
.saint-eco-section{margin-left:16px}

/* FORO: ya existe la barra universal; ocultamos accesos externos duplicados si siguen cacheados. */
body.saint-eco-forum #web-button,
body.saint-eco-forum #shop-button{display:none !important}

/* WEB: dropdowns compactos. El tema original fijaba 960px y tapaba media pantalla. */
@media(min-width:992px){
  body.saint-eco-web nav.navbar-youplay .dropdown-menu{
    width:auto !important;
    min-width:240px !important;
    max-width:min(92vw,380px) !important;
    padding:8px 0 !important;
    margin-top:0 !important;
    background:rgba(13,16,22,.97) !important;
    border:1px solid rgba(132,91,53,.95) !important;
    border-top:2px solid #9a6e43 !important;
    border-radius:0 0 10px 10px !important;
    box-shadow:0 10px 26px rgba(0,0,0,.58) !important;
    overflow:hidden !important;
  }
  body.saint-eco-web nav.navbar-youplay .dropdown-menu ul{
    margin:0 !important;
    padding:0 !important;
  }
  body.saint-eco-web nav.navbar-youplay .dropdown-menu li{
    width:100% !important;
    float:none !important;
  }
}

/* WEB: panel Castle Siege centrado. */
body.saint-eco-web #castle-container{
  left:50% !important;
  right:auto !important;
  width:min(340px, calc(100vw - 32px)) !important;
  max-width:min(340px, calc(100vw - 32px)) !important;
  transform:translate(-50%, -100vh);
}
body.saint-eco-web #castle-container.open-anim{
  animation:saintEcoCastleInCentered .65s cubic-bezier(.25,.9,.35,1.1) forwards !important;
}
body.saint-eco-web #castle-container.close-anim{
  animation:saintEcoCastleOutCentered .45s ease forwards !important;
}
@keyframes saintEcoCastleInCentered{
  0%{transform:translate(-50%, -100vh);opacity:.35}
  75%{transform:translate(-50%, 7px);opacity:1}
  100%{transform:translate(-50%, 0);opacity:1}
}
@keyframes saintEcoCastleOutCentered{
  from{transform:translate(-50%, 0);opacity:1}
  to{transform:translate(-50%, -100vh);opacity:0}
}

/* WEB: chat por encima de widgets y con fondo totalmente opaco. */
body.saint-eco-web .chat-wrap #chat-container,
body.saint-eco-web .chat-wrap #toggle-button{
  z-index:10045 !important;
}
body.saint-eco-web .chat-wrap #chat-container{
  background:#050608 !important;
  opacity:1 !important;
  box-shadow:-10px 0 24px rgba(0,0,0,.82) !important;
}
body.saint-eco-web .chat-wrap #chat-box{
  background:#050608 !important;
  position:relative;
  z-index:1;
}

@media(max-width:991px){
  .saint-eco-inner{width:calc(100% - 16px) !important;max-width:none !important}
  .saint-eco-links{margin-left:auto !important}
  .saint-eco-section{margin-left:10px}
  body.saint-eco-web .chat-wrap #chat-container{
    background:#050608 !important;
    width:min(720px,100vw) !important;
  }
}


/* =====================================================================
   SAINTMU ECOSISTEMA - ETAPA 4
   CABECERA IDENTICA + MENU WEB COMPACTO DE ALTURA ESTABLE (SOLO PC)
   Mantiene intacta la navegacion y el menu lateral de celulares.
   ===================================================================== */
@media (min-width:992px) {
  /* Tres columnas de anchura fija. El texto de la seccion no mueve la barra.
     Se centra TODO el grupo, no se distribuye hasta los bordes de la pantalla. */
  body.saint-eco-web .saint-eco-inner,
  body.saint-eco-forum .saint-eco-inner,
  body.saint-eco-shop .saint-eco-inner {
    width:calc(100% - 32px) !important;
    max-width:1060px !important;
    min-height:56px !important;
    display:flex !important;
    justify-content:center !important;
    align-items:center !important;
    gap:18px !important;
    margin:0 auto !important;
  }
  body.saint-eco-web .saint-eco-brand,
  body.saint-eco-forum .saint-eco-brand,
  body.saint-eco-shop .saint-eco-brand {
    flex:0 0 185px !important;
    width:185px !important;
    margin:0 !important;
    justify-content:center !important;
    align-items:flex-start !important;
    flex-direction:column !important;
    gap:2px !important;
  }
  body.saint-eco-web .saint-eco-links,
  body.saint-eco-forum .saint-eco-links,
  body.saint-eco-shop .saint-eco-links {
    flex:0 0 252px !important;
    width:252px !important;
    margin:0 !important;
    display:flex !important;
    justify-content:center !important;
    align-items:center !important;
    gap:6px !important;
  }
  body.saint-eco-web .saint-eco-links a,
  body.saint-eco-forum .saint-eco-links a,
  body.saint-eco-shop .saint-eco-links a {
    flex:0 0 80px !important;
    width:80px !important;
    padding-left:0 !important;
    padding-right:0 !important;
    text-align:center !important;
  }
  body.saint-eco-web .saint-eco-section,
  body.saint-eco-forum .saint-eco-section,
  body.saint-eco-shop .saint-eco-section {
    flex:0 0 205px !important;
    width:205px !important;
    margin:0 !important;
    padding-left:15px !important;
    text-align:left !important;
    white-space:nowrap !important;
  }

  /* Youplay original: antes 80px al entrar y 50px cuando se hace scroll.
     Se evita ese cambio de altura, que genera el gran fondo negro superpuesto.
     Solo desktop: los estilos de menu mobile se mantienen. */
  body.saint-eco-web {
    --saint-eco-web-nav-height:60px;
  }
  body.saint-eco-web nav.navbar-youplay.navbar-fixed-top,
  body.saint-eco-web nav.navbar-youplay.navbar-fixed-top.navbar-small {
    height:60px !important;
    min-height:60px !important;
    max-height:60px !important;
    padding:0 !important;
    background:#16191c !important;
    border-bottom:1px solid #765135 !important;
    box-shadow:0 4px 12px rgba(0,0,0,.38) !important;
    transition:none !important;
  }
  body.saint-eco-web nav.navbar-youplay>.container {
    height:60px !important;
    min-height:60px !important;
  }
  body.saint-eco-web nav.navbar-youplay .navbar-header,
  body.saint-eco-web nav.navbar-youplay #navbar {
    height:60px !important;
    min-height:60px !important;
  }
  body.saint-eco-web nav.navbar-youplay .navbar-brand,
  body.saint-eco-web nav.navbar-youplay.navbar-small .navbar-brand {
    height:60px !important;
    line-height:58px !important;
    width:142px !important;
    transition:none !important;
    vertical-align:middle !important;
  }
  body.saint-eco-web nav.navbar-youplay .navbar-brand img {
    max-height:50px !important;
    max-width:100% !important;
    vertical-align:middle !important;
  }
  body.saint-eco-web nav.navbar-youplay .navbar-nav>li>a,
  body.saint-eco-web nav.navbar-youplay.navbar-small .navbar-nav>li>a {
    height:60px !important;
    min-height:60px !important;
    padding:11px 0 6px !important;
    line-height:20px !important;
    transition:background-color .15s ease,color .15s ease !important;
  }
  body.saint-eco-web nav.navbar-youplay.navbar-small .navbar-nav>li>a>.label,
  body.saint-eco-web nav.navbar-youplay .navbar-nav>li>a>.label {
    display:block !important;
    line-height:15px !important;
    white-space:nowrap !important;
  }
  body.saint-eco-web nav.navbar-youplay .navbar-nav>li {
    margin-left:18px !important;
  }
}


/* =====================================================================
   SAINTMU ECOSISTEMA ETAPA 5 - RESTAURACION EFECTO ORIGINAL DE YOUPLAY
   Solo Web de escritorio. No modificar cabecera universal ni version mobile.
   ===================================================================== */
@media (min-width:992px) {
  /* Volvemos al menu de 80px iniciales, que Youplay encoge a 50px con scroll.
     La barra universal conserva su propia posicion fija por encima. */
  body.saint-eco-web {
    --saint-eco-web-nav-height:80px;
  }
  body.saint-eco-web.saint-eco-nav-small {
    --saint-eco-web-nav-height:50px;
  }
  body.saint-eco-web nav.navbar-youplay.navbar-fixed-top,
  body.saint-eco-web nav.navbar-youplay.navbar-fixed-top.navbar-small {
    height:80px !important;
    min-height:50px !important;
    max-height:none !important;
    padding:0 !important;
    background:rgba(16,17,24,.96) !important;
    border-bottom:1px solid #765135 !important;
    box-shadow:0 4px 12px rgba(0,0,0,.38) !important;
    transition:height .3s ease,background-color .3s ease !important;
  }
  body.saint-eco-web nav.navbar-youplay.navbar-fixed-top.navbar-small {
    height:50px !important;
    background:rgba(11,12,18,.98) !important;
  }
  body.saint-eco-web nav.navbar-youplay>.container,
  body.saint-eco-web nav.navbar-youplay .navbar-header,
  body.saint-eco-web nav.navbar-youplay #navbar {
    height:100% !important;
    min-height:0 !important;
  }
  body.saint-eco-web nav.navbar-youplay .navbar-brand,
  body.saint-eco-web nav.navbar-youplay.navbar-small .navbar-brand {
    height:80px !important;
    width:160px !important;
    line-height:75px !important;
    transition:height .3s ease,line-height .3s ease,width .3s ease !important;
  }
  body.saint-eco-web nav.navbar-youplay.navbar-small .navbar-brand {
    height:50px !important;
    width:110px !important;
    line-height:45px !important;
  }
  body.saint-eco-web nav.navbar-youplay .navbar-brand img {
    max-height:100% !important;
  }
  body.saint-eco-web nav.navbar-youplay .navbar-nav>li>a,
  body.saint-eco-web nav.navbar-youplay.navbar-small .navbar-nav>li>a {
    height:80px !important;
    min-height:0 !important;
    line-height:normal !important;
    padding:24.24px 0 !important;
    transition:height .3s ease,padding .3s ease,background-color .15s ease,color .15s ease !important;
  }
  body.saint-eco-web nav.navbar-youplay.navbar-small .navbar-nav>li>a {
    height:50px !important;
    padding:15.15px 0 !important;
  }
  body.saint-eco-web nav.navbar-youplay.navbar-small .navbar-nav>li>a>.label {
    display:none !important;
  }
  body.saint-eco-web nav.navbar-youplay .navbar-nav>li>a>.label {
    line-height:15px !important;
  }

  /* Castle Siege sale del BORDE INFERIOR del menu en su altura actual.
     Al encogerse el nav acompana el movimiento, con el panel centrado. */
  body.saint-eco-web #castle-container {
    top:calc(var(--saint-eco-fixed-height) + var(--saint-eco-web-nav-height)) !important;
    left:50% !important;
    right:auto !important;
    transition:top .3s ease !important;
  }
  /* Chat y boton tambien siguen el menu: no quedan ocultos debajo. */
  body.saint-eco-web .chat-wrap #toggle-button {
    transition:top .3s ease,right .5s ease !important;
  }
  body.saint-eco-web .chat-wrap #chat-container {
    transition:top .3s ease,height .3s ease !important;
  }
}


/* ================================================================
   SaintMU Ecosistema Etapa 6 — Transiciones por contenido
   Bar universal NO participa de animaciones / fondos de carga.
   Navegacion web tradicional: no usa AJAX ni reemplaza documentos.
   ================================================================ */
/* La cabecera es la referencia visual que aparece inmediatamente. */
body.saint-eco-web > .saint-eco-bar,
body.saint-eco-forum > .saint-eco-bar,
body.saint-eco-shop > .saint-eco-bar {
  opacity:1 !important;
  visibility:visible !important;
  -webkit-transform:none !important;
  transform:none !important;
  -webkit-animation:none !important;
  animation:none !important;
  -webkit-transition:none !important;
  transition:none !important;
}

/* Youplay: su preloader original tapa TODA la ventana con z-index enorme.
   Se mantiene funcionando, pero ahora nace debajo de la barra universal.
   Se respeta el fade de entrada/salida y el menu Youplay 80 -> 50 px. */
body.saint-eco-web .page-preloader.preloader-wrapp {
  position:fixed !important;
  top:var(--saint-eco-fixed-height) !important;
  left:0 !important;
  right:0 !important;
  bottom:0 !important;
  width:100% !important;
  height:auto !important;
  max-height:none !important;
  box-sizing:border-box !important;
  z-index:10024 !important;
}

/* SaintShop: mismo criterio para su preloader independiente.
   No cambia el timer, la animacion del icono ni el checkout. */
body.saint-eco-shop #saintshop-preloader.saintshop-preloader {
  position:fixed !important;
  top:var(--saint-eco-fixed-height) !important;
  left:0 !important;
  right:0 !important;
  bottom:0 !important;
  width:100% !important;
  height:auto !important;
  box-sizing:border-box !important;
  z-index:10024 !important;
}

/* phpBB2: antes se aplicaban opacity y transform al BODY entero;
   ahora solo se anima el contenido del foro, no la barra global.
   Transform no se usa para no crear otro contenedor de elementos fixed. */
body.saint-eco-forum,
body.saint-eco-forum.loaded {
  opacity:1 !important;
  visibility:visible !important;
  -webkit-transform:none !important;
  transform:none !important;
  -webkit-transition:none !important;
  transition:none !important;
}
@-webkit-keyframes saintEcoContentArrives {
  from { opacity:.25; }
  to { opacity:1; }
}
@keyframes saintEcoContentArrives {
  from { opacity:.25; }
  to { opacity:1; }
}
body.saint-eco-forum .center,
body.saint-eco-forum .sm2-top {
  -webkit-animation:saintEcoContentArrives .38s ease-out;
  animation:saintEcoContentArrives .38s ease-out;
}

/* Ni los formularios ni los enlaces reciben interception o fades de salida.
   La recarga real sigue existiendo; se evita que las capas tapen la barra. */
@media(prefers-reduced-motion:reduce){
 body.saint-eco-forum .center,
 body.saint-eco-forum .sm2-top {
   -webkit-animation:none !important;
   animation:none !important;
 }
}


/* SaintMU Ecosistema Etapa 7 — Menu mobile por encima del chat */
@media(max-width:991px){
  body.saint-eco-web.saint-mobile-nav-open .chat-wrap #toggle-button,
  body.saint-eco-web.saint-mobile-nav-open .chat-wrap #chat-container{
    z-index:10010 !important;
    pointer-events:none !important;
  }
  /* El fondo del menu y el panel off-canvas deben dominar visualmente. */
  body.saint-eco-web.saint-mobile-nav-open #saint-mobile-nav-backdrop{
    z-index:10015 !important;
  }
  body.saint-eco-web.saint-mobile-nav-open .navbar-youplay #navbar,
  body.saint-eco-web.saint-mobile-nav-open .navbar-youplay .navbar-toggle{
    z-index:10022 !important;
  }
}
