/* EMERALD LEAGUE — Unificación visual. No altera datos ni funcionalidad. */
:root{--em-marco:url('assets/emerald-marco-oficial.webp')}
/* Mantener el marco completo y su centro limpio, sin superponer cristales artificiales. */
.em-centered-hero.identity-hero{background:#f8f9f7 var(--em-marco) center center/cover no-repeat!important}
.em-centered-hero.identity-hero::before{background:none!important}
.em-centered-hero.identity-hero .em-hero-crystal{display:none!important}
.em-centered-hero.identity-hero::after{border-color:rgba(0,99,69,.18)!important}
/* Un mismo mármol de base en todas las secciones claras. */
#playoffs.swiss-section,#partidos.emerald-fixtures,#clasificacion.emerald-ranking,#stats.tournament-data,#fase-grupos.emerald-stage-destination,#fase-eliminatoria.emerald-stage-destination,#reglamento.em-roadmap{
 background-color:#f8faf8!important;
 background-image:linear-gradient(rgba(255,255,255,.82),rgba(255,255,255,.85)),var(--em-marco)!important;
 background-position:center center!important;
 background-size:cover!important;
 background-repeat:no-repeat!important;
}
/* Secciones con suficiente altura y contenido legible, sin cajas flotantes desparejas. */
#playoffs.swiss-section,#partidos.emerald-fixtures,#clasificacion.emerald-ranking,#stats.tournament-data,#fase-grupos.emerald-stage-destination,#fase-eliminatoria.emerald-stage-destination{min-height:470px;box-sizing:border-box}
#fase-grupos.emerald-stage-destination,#fase-eliminatoria.emerald-stage-destination{padding-top:85px;padding-bottom:85px}
#stats .emerald-pending,#playoffs .emerald-pending,#partidos .emerald-pending,#clasificacion .emerald-pending{background:rgba(255,255,255,.88)!important;backdrop-filter:blur(3px);border:1px solid rgba(0,107,77,.23);box-shadow:0 12px 35px rgba(0,48,34,.06)}
#reglamento.em-roadmap::before,#reglamento.em-roadmap::after{display:none!important}
#reglamento .em-roadmap-card{background:rgba(255,255,255,.94)!important}
/* Equipos: se conserva el fondo oscuro de identidad. */
#equipos.dark{background-color:#00271f!important}
@media(max-width:700px){.em-centered-hero.identity-hero{background-position:center!important}#fase-grupos.emerald-stage-destination,#fase-eliminatoria.emerald-stage-destination{padding-top:60px;padding-bottom:60px}}
/* Ajuste final portada: evitar rectángulos blancos alrededor de los datos. */
.em-centered-hero .em-hero-subtitle,
.em-centered-hero .em-hero-date{
  background:transparent!important;
  background-color:transparent!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}
.em-centered-hero .em-hero-date{border-left:0!important;border-right:0!important}
/* Preservar la imagen original del logo, sin cajas detrás. */
.em-centered-hero .em-hero-logo,
header .brand,header .brand img,.sitefoot img{background:transparent!important;box-shadow:none!important}
