/* =====================================================================
   CARTA DEL JUGADOR (Premium) — assets/css/eg-cartas.css
   La carta mide 320×448 y se escala con --s en su caja, para que el
   mismo HTML sirva en la cabecera, la colección, Mi Perfil y la descarga.
   ===================================================================== */

.eg-carta-caja {
	--s: 1;
	position: relative;
	flex: none;
	width: calc(320px * var(--s));
	height: calc(448px * var(--s));
}

.eg-carta {
	--marco: linear-gradient(160deg, #fff1c2, #d9a93e 45%, #fbe3a0 60%, #b58422);
	--fondo: linear-gradient(170deg, #fbe7a8, #dcaa3c);
	--caja: rgba(255, 255, 255, .42);
	--tinta: #4a3406;
	--sil: rgba(90, 64, 10, .3);
	--banda: linear-gradient(180deg, rgba(150, 112, 34, 0) 0, rgba(150, 112, 34, .9) 30px, rgba(120, 88, 22, .96) 100%);
	--sombra: 0 18px 44px -14px rgba(217, 169, 62, .55);
	position: absolute;
	top: 0;
	left: 0;
	width: 320px;
	height: 448px;
	box-sizing: border-box;
	border-radius: 16px;
	background: var(--marco);
	box-shadow: var(--sombra);
	overflow: hidden;
	transform: scale(var(--s));
	transform-origin: 0 0;
	font-family: 'Barlow', system-ui, sans-serif;
	color: #fff;
	text-align: left;
	line-height: 1.2;
}

.eg-carta *,
.eg-carta *::before,
.eg-carta *::after {
	box-sizing: border-box;
}

.eg-carta-in {
	position: absolute;
	inset: 7px;
	border-radius: 11px;
	overflow: hidden;
	background: var(--fondo);
}

.eg-carta-foto {
	position: absolute;
	left: 0;
	right: 0;
	top: 26px;
	width: 100% !important;
	height: 300px !important;
	max-width: none !important;
	object-fit: cover;
	object-position: center top;
	border-radius: 0 !important;
}

.eg-carta-sil {
	position: absolute;
	left: 0;
	top: 34px;
	width: 306px;
	height: 330px;
	fill: var(--sil);
}

.eg-carta-id {
	position: absolute;
	left: 10px;
	top: 10px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 7px;
	width: 52px;
	padding: 7px 0 8px;
	border-radius: 8px;
	background: var(--caja);
}

.eg-carta-club {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #1e1e24;
	overflow: hidden;
	font-family: 'Saira', sans-serif;
	font-size: 10px;
	font-weight: 900;
	color: #fe7006;
}

/* Escudo del club tal cual (PNG recortado), sin círculo. */
.eg-carta-escudo {
	display: block;
	width: 38px !important;
	height: 38px !important;
	max-width: none !important;
	object-fit: contain;
	border-radius: 0 !important;
}

.eg-carta-bandera {
	display: block;
	width: 28px !important;
	height: 21px !important;
	max-width: none !important;
	object-fit: cover;
	border-radius: 3px !important;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .3);
}

.eg-carta-pais {
	font-size: 11px;
	font-weight: 800;
	color: var(--tinta);
}

.eg-carta-nivel {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 78px;
	height: 64px;
	border-bottom-left-radius: 12px;
	background: var(--caja);
	color: var(--tinta);
}

.eg-carta-nivel small,
.eg-carta-nivel b,
.eg-carta-stats small,
.eg-carta-stats b {
	white-space: nowrap;
}

.eg-carta-nivel small {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .14em;
}

.eg-carta-nivel b {
	font-family: 'Saira', sans-serif;
	font-size: 34px;
	font-weight: 900;
	line-height: .95;
}

.eg-carta-banda {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 5px;
	height: 164px;
	padding: 38px 14px 10px;
	background: var(--banda);
}

/* Gamertag completo: nunca se corta, la letra se achica si es largo. */
.eg-carta-nombre {
	display: block;
	font-family: 'Saira', sans-serif;
	font-size: 26px;
	font-weight: 900;
	line-height: 1;
	letter-spacing: .01em;
	text-transform: uppercase;
	white-space: nowrap;
	color: #fff;
}

.eg-carta-nombre--m { font-size: 22px; }
.eg-carta-nombre--s { font-size: 18px; }
.eg-carta-nombre--xs { font-size: 15px; }

.eg-carta-fila2 {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-height: 28px;
}

.eg-carta-fila2 small {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	white-space: nowrap;
	color: rgba(255, 255, 255, .85);
}

.eg-carta-marca {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

/* El logo del panel se pinta en blanco (sirve aunque sea de otro color). */
.eg-carta-marca-img {
	display: block;
	width: auto !important;
	max-width: 120px !important;
	height: 28px !important;
	object-fit: contain;
	filter: brightness(0) invert(1);
}

.eg-carta-marca-txt {
	padding: 3px 7px;
	border: 1.5px solid rgba(255, 255, 255, .6);
	border-radius: 6px;
	font-family: 'Saira', sans-serif;
	font-size: 11px;
	font-weight: 900;
	font-style: italic;
	line-height: 1.05;
	letter-spacing: .04em;
	text-align: center;
	white-space: nowrap;
	color: #fff;
}

.eg-carta-stats {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 2px;
	padding-top: 7px;
	border-top: 1px solid rgba(255, 255, 255, .22);
}

.eg-carta-stats span {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.eg-carta-stats small {
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .1em;
	color: rgba(255, 255, 255, .72);
}

.eg-carta-stats b {
	font-family: 'Saira', sans-serif;
	font-size: 18px;
	font-weight: 900;
	line-height: 1.1;
	color: #fff;
}

/* Destello: cruza la carta una vez cada 8 segundos y descansa. */
.eg-carta-brillo {
	position: absolute;
	top: -30%;
	left: 0;
	z-index: 3;
	width: 34%;
	height: 160%;
	pointer-events: none;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .7) 50%, rgba(255, 255, 255, 0));
	mix-blend-mode: overlay;
	transform: translateX(-160%) rotate(18deg);
	animation: eg-carta-brillo 8s ease-in-out 1.2s infinite;
}

@keyframes eg-carta-brillo {
	0% { transform: translateX(-160%) rotate(18deg); }
	14%, 100% { transform: translateX(420%) rotate(18deg); }
}

@media (prefers-reduced-motion: reduce) {
	.eg-carta-brillo { display: none; }
}

/* ---- Tramos (como en el juego) ---- */
.eg-carta--bronce {
	--marco: linear-gradient(160deg, #f6d3bb, #c98a68 45%, #f0c2a4 60%, #a86a4c);
	--fondo: repeating-linear-gradient(135deg, rgba(255, 255, 255, .16) 0 12px, rgba(255, 255, 255, 0) 12px 24px), linear-gradient(170deg, #f6d6c0 0%, #e3a986 55%, #c98a68 100%);
	--caja: rgba(255, 255, 255, .38);
	--tinta: #4a2a18;
	--sil: rgba(90, 50, 30, .35);
	--banda: linear-gradient(180deg, rgba(140, 86, 60, 0) 0, rgba(140, 86, 60, .88) 30px, rgba(110, 64, 44, .96) 100%);
	--sombra: 0 18px 40px -16px rgba(0, 0, 0, .8);
}

.eg-carta--plata {
	--marco: linear-gradient(160deg, #fff, #b9bec6 45%, #eef0f3 60%, #9aa1ab);
	--fondo: repeating-radial-gradient(circle at 50% 58%, rgba(255, 255, 255, .4) 0 2px, rgba(255, 255, 255, 0) 2px 20px), linear-gradient(170deg, #f4f5f7 0%, #d3d7dd 55%, #b9bec6 100%);
	--caja: rgba(255, 255, 255, .5);
	--tinta: #2a3038;
	--sil: rgba(40, 46, 56, .28);
	--banda: linear-gradient(180deg, rgba(110, 118, 130, 0) 0, rgba(110, 118, 130, .9) 30px, rgba(84, 92, 104, .96) 100%);
	--sombra: 0 18px 40px -16px rgba(0, 0, 0, .8);
}

.eg-carta--oro {
	--marco: linear-gradient(160deg, #fff1c2, #d9a93e 45%, #fbe3a0 60%, #b58422);
	--fondo: repeating-conic-gradient(from 0deg at 50% 46%, rgba(255, 255, 255, .22) 0deg 5deg, rgba(255, 255, 255, 0) 5deg 13deg), linear-gradient(170deg, #fbe7a8 0%, #f0c95e 55%, #dcaa3c 100%);
	--caja: rgba(255, 255, 255, .42);
	--tinta: #4a3406;
	--sil: rgba(90, 64, 10, .3);
	--banda: linear-gradient(180deg, rgba(150, 112, 34, 0) 0, rgba(150, 112, 34, .9) 30px, rgba(120, 88, 22, .96) 100%);
	--sombra: 0 18px 44px -14px rgba(217, 169, 62, .55);
}

/* ---- Fondos Premium ---- */
.eg-carta--carbono {
	--marco: linear-gradient(160deg, #fe7006, #7a3200 50%, #fe7006);
	--fondo: repeating-linear-gradient(135deg, #1b1b20 0 7px, #25252c 7px 14px);
	--caja: rgba(255, 255, 255, .1);
	--tinta: #fff;
	--sil: rgba(255, 255, 255, .1);
	--banda: linear-gradient(180deg, rgba(20, 20, 24, 0) 0, rgba(20, 20, 24, .9) 30px, rgba(10, 10, 12, .97) 100%);
	--sombra: 0 18px 40px -14px rgba(254, 112, 6, .55);
}

.eg-carta--neon {
	--marco: linear-gradient(160deg, #22d3ee, #d946ef);
	--fondo: radial-gradient(circle at 20% 15%, rgba(217, 70, 239, .45), rgba(0, 0, 0, 0) 45%), radial-gradient(circle at 85% 70%, rgba(34, 211, 238, .4), rgba(0, 0, 0, 0) 45%), #0c0a14;
	--caja: rgba(255, 255, 255, .1);
	--tinta: #fff;
	--sil: rgba(255, 255, 255, .1);
	--banda: linear-gradient(180deg, rgba(12, 10, 20, 0) 0, rgba(12, 10, 20, .88) 30px, rgba(8, 6, 14, .97) 100%);
	--sombra: 0 0 30px rgba(217, 70, 239, .55);
}

.eg-carta--aurora {
	--marco: linear-gradient(160deg, #99f6e4, #6d28d9);
	--fondo: radial-gradient(circle at 60% 20%, rgba(94, 234, 212, .35), rgba(0, 0, 0, 0) 50%), linear-gradient(160deg, #032a2e 0%, #0f766e 35%, #6d28d9 75%, #1e0b3d 100%);
	--caja: rgba(255, 255, 255, .14);
	--tinta: #fff;
	--sil: rgba(0, 0, 0, .3);
	--banda: linear-gradient(180deg, rgba(8, 20, 30, 0) 0, rgba(8, 20, 30, .86) 30px, rgba(6, 12, 22, .96) 100%);
	--sombra: 0 18px 40px -14px rgba(109, 40, 217, .6);
}

.eg-carta--fuego {
	--marco: linear-gradient(160deg, #fbbf24, #b91c1c);
	--fondo: radial-gradient(circle at 50% 110%, rgba(251, 191, 36, .55), rgba(0, 0, 0, 0) 55%), linear-gradient(180deg, #140404 0%, #4a0a06 45%, #b91c1c 80%, #f97316 100%);
	--caja: rgba(255, 255, 255, .12);
	--tinta: #fff;
	--sil: rgba(0, 0, 0, .35);
	--banda: linear-gradient(180deg, rgba(30, 6, 4, 0) 0, rgba(30, 6, 4, .88) 30px, rgba(20, 4, 2, .97) 100%);
	--sombra: 0 18px 44px -12px rgba(220, 38, 38, .7);
}

/* Fondo exclusivo del Pack Fundador: negro con oro y brillo naranjo. */
.eg-carta--fundador {
	--marco: linear-gradient(160deg, #fff1c2, #d9a93e 30%, #fe7006 55%, #fbe3a0 75%, #b58422);
	--fondo: repeating-linear-gradient(135deg, rgba(217, 169, 62, .16) 0 2px, rgba(0, 0, 0, 0) 2px 16px), radial-gradient(circle at 50% 30%, rgba(254, 112, 6, .45), rgba(0, 0, 0, 0) 55%), linear-gradient(170deg, #1a1408 0%, #0d0b08 60%, #1c1206 100%);
	--caja: rgba(217, 169, 62, .22);
	--tinta: #f6cf6a;
	--sil: rgba(246, 207, 106, .14);
	--banda: linear-gradient(180deg, rgba(20, 14, 4, 0) 0, rgba(20, 14, 4, .9) 30px, rgba(10, 8, 2, .97) 100%);
	--sombra: 0 0 0 1px rgba(246, 207, 106, .5), 0 18px 48px -12px rgba(254, 112, 6, .7);
}

.eg-carta-fund {
	position: absolute;
	top: 70px;
	right: 6px;
	z-index: 2;
	padding: 3px 7px;
	border-radius: 6px;
	background: linear-gradient(135deg, #fbe3a0, #d9a93e 60%, #b58422);
	color: #2a1d04;
	font-size: 9px;
	font-weight: 900;
	letter-spacing: .12em;
	white-space: nowrap;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}

.eg-mc-fondo--fundador i { background: radial-gradient(circle at 50% 30%, #fe7006, transparent 60%), linear-gradient(160deg, #1a1408, #0d0b08); box-shadow: inset 0 0 0 2px #d9a93e; }

.eg-jp-chip-fundador {
	background: linear-gradient(135deg, #fbe3a0, #d9a93e 60%, #b58422) !important;
	color: #2a1d04 !important;
}

/* Carta bloqueada (sin Premium): en gris y oscura. */
.eg-carta-bloqueada .eg-carta {
	filter: grayscale(1) brightness(.42);
}

/* =====================================================================
   PERFIL PÚBLICO
   ===================================================================== */
.eg-carta-coleccion .eg-carta-fila {
	display: flex;
	gap: 18px;
	overflow-x: auto;
	padding-bottom: 6px;
}

.eg-carta-fila figure {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.eg-carta-fila figcaption {
	font-size: 13px;
	color: var(--eg-texto-2, #b4b4bf);
}


/* Redes con su logo y color de marca (perfil Premium). */
.eg-pg-redes-logos {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.eg-pg-redes-logos a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 0 16px 0 12px;
	border-radius: 10px;
	background: var(--bg);
	color: var(--ink) !important;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none !important;
	transition: transform .15s, filter .2s;
}

.eg-pg-redes-logos a:hover {
	transform: translateY(-2px);
	filter: brightness(1.08);
}

.eg-pg-redes-logos svg {
	flex: none;
	width: 20px;
	height: 20px;
	fill: var(--ink);
}

/* =====================================================================
   MI PERFIL → Mi carta
   ===================================================================== */
.eg-mc-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
}

.eg-mc-prev {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
}

.eg-mc .eg-mc-nivel {
	margin: 0 !important;
	font-size: 14px;
	text-align: center;
	color: var(--eg-texto-2, #b4b4bf);
}

.eg-mc-nivel b { color: var(--eg-texto, #f3f3f3); }

.eg-mc-desc {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	width: 100%;
	max-width: 300px;
}

.eg-mc-desc .eg-btn {
	min-width: 0;
	padding: 0 10px;
	white-space: normal;
}

.eg-mc-lado {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

.eg-mc .eg-mo-sub {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 12px;
	margin: 6px 0 0 !important;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--eg-texto-3, #8f8f9b);
}

.eg-mc-saldo {
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	color: var(--eg-texto-2, #b4b4bf);
}

.eg-mc-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.eg-mc-arqs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.eg-mc-chip {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-height: 44px;
	padding: 0 14px;
	border: 0;
	border-radius: 8px;
	background: var(--eg-card-in, #18181d);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
	color: var(--eg-texto, #f3f3f3);
	font-family: var(--eg-f-texto, 'Barlow', sans-serif);
	font-size: 14px;
	font-weight: 700;
	text-align: left;
	cursor: pointer;
	transition: box-shadow .15s, background .15s;
}

.eg-mc-chip small {
	font-size: 11px;
	font-weight: 600;
	color: var(--eg-texto-3, #8f8f9b);
}

.eg-mc-chip:hover { box-shadow: inset 0 0 0 1px rgba(254, 112, 6, .6); }

.eg-mc-chip.is-on {
	background: var(--eg-naranja, #fe7006);
	box-shadow: none;
	color: #111;
}

.eg-mc-chip.is-on small { color: #3a1a00; }

.eg-mc-fondos {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.eg-mc-fondo {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 6px;
	padding: 10px;
	border: 0;
	border-radius: 10px;
	background: var(--eg-card-in, #18181d);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
	color: var(--eg-texto, #f3f3f3);
	font-family: var(--eg-f-texto, 'Barlow', sans-serif);
	text-align: left;
	cursor: pointer;
}

.eg-mc-fondo.is-on { box-shadow: inset 0 0 0 2px var(--eg-naranja, #fe7006); }

.eg-mc-fondo i {
	display: block;
	height: 64px;
	border-radius: 8px;
	background: #333;
}

.eg-mc-fondo b { font-size: 14px; }

.eg-mc-fondo small {
	font-size: 12px;
	font-weight: 700;
	color: #f6cf6a;
}

.eg-mc-fondo[data-tiene="1"] small { color: #86efac; }

.eg-mc-fondo--bronce i { background: linear-gradient(135deg, #f6d6c0, #c98a68); }
.eg-mc-fondo--plata i { background: linear-gradient(135deg, #f4f5f7, #b9bec6); }
.eg-mc-fondo--oro i { background: linear-gradient(135deg, #fbe7a8, #dcaa3c); }
.eg-mc-fondo--carbono i { background: repeating-linear-gradient(135deg, #1b1b20 0 7px, #2a2a31 7px 14px); box-shadow: inset 0 0 0 2px #fe7006; }
.eg-mc-fondo--neon i { background: radial-gradient(circle at 25% 25%, #d946ef, transparent 55%), radial-gradient(circle at 80% 80%, #22d3ee, transparent 55%), #0c0a14; }
.eg-mc-fondo--aurora i { background: linear-gradient(160deg, #0f766e, #6d28d9); }
.eg-mc-fondo--fuego i { background: linear-gradient(180deg, #4a0a06, #b91c1c 60%, #f97316); }

.eg-mc.is-cargando .eg-mc-lado { opacity: .6; pointer-events: none; }

/* Sin Premium */
.eg-mc-lock {
	position: relative;
}

.eg-mc-lock-cap {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 16px;
	text-align: center;
}

.eg-mc-lock-cap b {
	font-family: var(--eg-f-titulo, 'Saira', sans-serif);
	font-size: 22px;
	font-weight: 900;
	font-style: italic;
	text-transform: uppercase;
	color: #fff;
}

.eg-mc-lock-cap span { font-size: 14px; color: #e4e4ea; }

.eg-mc .eg-mc-txt {
	margin: 0 !important;
	font-size: 16px;
	line-height: 1.6;
	color: var(--eg-texto, #f3f3f3);
}

.eg-mc .eg-mc-lista {
	margin: 0 !important;
	padding: 0 0 0 18px !important;
	color: var(--eg-texto-2, #b4b4bf);
}

.eg-mc-lista li { margin: 4px 0 !important; }

.eg-mc-acc {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.eg-mc-acc .eg-btn { white-space: normal; }

/* Plantillas de descarga: fuera de la pantalla, a tamaño real (×3 al exportar). */
.eg-mc-export {
	position: fixed;
	left: -10000px;
	top: 0;
	pointer-events: none;
}

/* En la imagen descargada la carta va sin sombra: Safari la dibuja corrida
   (sin la escala de la carta) y aparecía como una mancha naranja al lado. */
.eg-mc-export .eg-carta,
.eg-mc-historia .eg-carta,
.eg-mc-post .eg-carta {
	box-shadow: none !important;
}

.eg-mc-historia,
.eg-mc-post {
	position: relative;
	overflow: hidden;
	background: radial-gradient(circle at 50% 42%, rgba(254, 112, 6, .45), rgba(254, 112, 6, 0) 52%), repeating-linear-gradient(120deg, #17171c 0 20px, #1b1b21 20px 40px);
	color: #fff;
	font-family: 'Barlow', system-ui, sans-serif;
}

.eg-mc-historia {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 360px;
	height: 640px;
}

.eg-mc-exp-logo {
	font-family: 'Saira', sans-serif;
	font-size: 20px;
	font-weight: 900;
	font-style: italic;
	letter-spacing: .02em;
}

.eg-mc-exp-logo em { font-style: italic; color: #fe7006; }

.eg-mc-historia .eg-mc-exp-logo { margin-top: 38px; }

.eg-mc-exp-temp {
	margin-top: 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .24em;
	color: #b4b4bf;
}

.eg-mc-historia .eg-mc-exp-carta { margin-top: 30px; }

.eg-mc-exp-url {
	margin-top: 8px;
	font-size: 12px;
	color: #b4b4bf;
}

.eg-mc-post {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 360px;
	height: 450px;
	padding: 18px 20px 14px;
	box-sizing: border-box;
	background: radial-gradient(circle at 50% 45%, rgba(254, 112, 6, .42), rgba(254, 112, 6, 0) 50%), repeating-linear-gradient(120deg, #17171c 0 20px, #1b1b21 20px 40px);
}

.eg-mc-post-cab {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	width: 100%;
}

.eg-mc-post .eg-mc-exp-logo { font-size: 15px; }
.eg-mc-post .eg-mc-exp-temp { margin: 0; font-size: 10px; letter-spacing: .18em; }
.eg-mc-post .eg-mc-exp-carta { margin-top: 12px; }

.eg-mc-post-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 6px;
	width: 100%;
	margin-top: 12px;
}

.eg-mc-post-stats span {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 5px 4px;
	border-radius: 8px;
	background: rgba(0, 0, 0, .45);
}

.eg-mc-post-stats small { font-size: 8px; letter-spacing: .08em; color: #b4b4bf; }
.eg-mc-post-stats b { font-family: 'Saira', sans-serif; font-size: 17px; font-weight: 900; line-height: 1.1; }
.eg-mc-post-stats .eg-mc-nar { color: #fe7006; }
.eg-mc-post .eg-mc-exp-url { margin-top: 8px; font-size: 10px; }

@media (min-width: 900px) {
	.eg-mc-grid { grid-template-columns: 300px minmax(0, 1fr); gap: 36px; align-items: start; }
	.eg-mc-arqs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.eg-mc-fondos { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* Descargas con imagen de fondo subida en el panel: solo la carta, centrada. */
.eg-mc-historia.eg-mc-con-fondo,
.eg-mc-post.eg-mc-con-fondo {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	background: #16161a;
}

.eg-mc-exp-bg {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
}

.eg-mc-con-fondo .eg-mc-exp-carta {
	position: relative;
	margin: 0;
}

.eg-mc-exp-logo,
.eg-mc-exp-temp,
.eg-mc-exp-url,
.eg-mc-post-stats small,
.eg-mc-post-stats b {
	white-space: nowrap;
}

/* Espacio entre los bloques del perfil (Sobre mí, Rendimiento, cartas). */
.eg-jp .eg-pg-sobre-mi,
.eg-jp .eg-carta-coleccion {
	margin-top: 24px;
	margin-bottom: 24px;
}

.eg-jp .eg-tab-panel > .eg-pg-sobre-mi:first-child {
	margin-top: 0;
}

/* Botones de descarga bajo la carta (Mi Perfil, solo el dueño). */
.eg-jp-carta-dueno {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.eg-jp-carta-bajar {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px;
	width: 100%;
}

.eg-jp-carta-bajar .eg-btn {
	min-width: 0;
	min-height: 38px;
	padding: 0 8px;
	font-size: 12px;
}

/* =====================================================================
   CABECERA DEL PERFIL CON CARTA (Premium)
   Celular: chips y nombre (centrados, grandes) → carta + descargas →
   franja de datos. Escritorio: carta a la izquierda; a la derecha, a todo
   el ancho, chips, nombre, liga y la franja con 4 datos grandes.
   ===================================================================== */
.eg-cl-id.eg-cl-id--carta {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas: "info" "carta" "pie" "franja";
	gap: 20px;
	align-items: center;
	width: 100%;
	max-width: none !important;
}

.eg-cl-id--carta .eg-cl-info {
	grid-area: info;
	min-width: 0;
	width: 100%;
	max-width: none !important;
	text-align: center;
}

.eg-cl-id--carta .eg-cl-chips {
	justify-content: center;
}

.eg-cl-id--carta .eg-jp-nombre {
	justify-content: center;
	font-size: clamp(40px, 11vw, 56px) !important;
	line-height: 1 !important;
}

.eg-jp-carta-hero {
	grid-area: carta;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	justify-self: center;
}

.eg-jp-carta-hero .eg-carta-caja {
	--s: 1.08 !important; /* celular: la carta casi al ancho de la pantalla */
}

.eg-jp-franja {
	grid-area: franja;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	width: 100%;
}

.eg-jp-franja-dato {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 12px 14px;
	border-radius: var(--eg-radio, 8px);
	background: rgba(255, 255, 255, .06);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
	color: var(--eg-texto, #f3f3f3) !important;
	text-align: left;
	text-decoration: none !important;
}

.eg-jp-franja-dato b {
	font-family: var(--eg-f-titulo, 'Saira', sans-serif);
	font-size: 30px;
	font-weight: 900;
	font-style: italic;
	line-height: 1;
	color: #fff;
}

.eg-jp-franja-rk b { color: var(--eg-naranja, #fe7006); }
.eg-jp-franja-rk b small { font-size: .6em; }
.eg-jp-franja-rk:hover { box-shadow: inset 0 0 0 1px var(--eg-naranja, #fe7006); }

.eg-jp-franja-dato span {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--eg-texto-2, #b4b4bf);
}

.eg-jp-carta-bajar {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	width: 100%;
}

.eg-jp-carta-bajar .eg-btn {
	min-width: 0;
	min-height: 42px;
	padding: 0 8px;
	font-size: 13px;
}

@media (max-width: 380px) {
	.eg-jp-carta-hero .eg-carta-caja { --s: .98 !important; }
}

@media (max-width: 350px) {
	.eg-jp-carta-hero .eg-carta-caja { --s: .88 !important; }
}

@media (min-width: 768px) {
	.eg-cl-id.eg-cl-id--carta {
		grid-template-columns: auto minmax(0, 1fr);
		grid-template-areas: "carta info" "carta pie" "carta franja";
		grid-template-rows: auto auto auto;
		align-content: center;
		column-gap: 48px;
		row-gap: 24px;
	}

	.eg-cl-id--carta .eg-cl-info {
		align-self: end;
		text-align: left;
	}

	.eg-cl-id--carta .eg-cl-chips,
	.eg-cl-id--carta .eg-jp-nombre {
		justify-content: flex-start;
	}

	.eg-cl-id--carta .eg-jp-nombre {
		font-size: clamp(56px, 6vw, 84px) !important;
	}

	.eg-jp-carta-hero {
		justify-self: start;
	}

	.eg-jp-carta-hero .eg-carta-caja {
		--s: .82 !important;
	}

	.eg-jp-franja {
		align-self: start;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 12px;
	}

	.eg-jp-franja-dato {
		padding: 18px 20px;
	}

	.eg-jp-franja-dato b {
		font-size: 44px;
	}

	.eg-jp-franja-dato span {
		font-size: 12px;
	}
}

/* =====================================================================
   VIDEOS DESTACADOS (Premium): miniaturas verticales (como reels) y visor
   a pantalla completa con el reproductor de cada red.
   ===================================================================== */
.eg-jp .eg-pg-videos {
	margin-bottom: 24px;
}

.eg-pg-videos-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.eg-pg-vid {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 9 / 16;
	padding: 0;
	border: 0;
	border-radius: 10px;
	overflow: hidden;
	background: linear-gradient(160deg, #26262e, #121216);
	cursor: pointer;
}

.eg-pg-vid--instagram {
	background: radial-gradient(circle at 20% 110%, #fdc468 0%, #df4996 45%, #7a2ec4 90%);
}

.eg-pg-vid--tiktok {
	background: linear-gradient(160deg, #111, #25f4ee 160%);
}

.eg-pg-vid > img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	border-radius: 0 !important;
	opacity: .9;
	transition: opacity .2s, transform .3s;
}

.eg-pg-vid::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, .7));
	pointer-events: none;
}

.eg-pg-vid:hover > img {
	opacity: 1;
	transform: scale(1.04);
}

.eg-pg-vid-red {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: var(--bg);
}

.eg-pg-vid-red svg {
	width: 18px;
	height: 18px;
	fill: var(--ink);
}

.eg-pg-video-play {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--eg-naranja, #fe7006);
	box-shadow: 0 10px 30px -8px rgba(254, 112, 6, .8);
	transform: translate(-50%, -50%);
	transition: transform .2s;
}

.eg-pg-vid:hover .eg-pg-video-play {
	transform: translate(-50%, -50%) scale(1.08);
}

.eg-pg-video-play svg {
	width: 28px;
	height: 28px;
	margin-left: 3px;
	fill: #111;
}

.eg-pg-vid-tit {
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: 10px;
	z-index: 1;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	text-align: left;
	color: #fff;
}

@media (min-width: 768px) {
	.eg-pg-videos-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 14px;
	}
}

/* Visor a pantalla completa */
.eg-visor-abierto,
.eg-visor-abierto body {
	overflow: hidden;
}

.eg-visor {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 56px 12px 24px;
	background: rgba(8, 8, 10, .92);
	animation: eg-visor-entra .2s ease-out;
}

@keyframes eg-visor-entra { from { opacity: 0; } to { opacity: 1; } }

.eg-visor-marco {
	overflow: hidden;
	border-radius: 12px;
	background: #000;
	box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9);
}

.eg-visor-marco iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.eg-visor--vertical {
	height: min(86vh, 860px);
	aspect-ratio: 9 / 16;
	max-width: 94vw;
}

.eg-visor--ig {
	aspect-ratio: 9 / 16.5;
	background: #fff;
}

.eg-visor--horizontal {
	width: min(94vw, 1200px);
	aspect-ratio: 16 / 9;
	max-height: 86vh;
}

.eg-visor-cerrar {
	position: absolute;
	top: 12px;
	right: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	cursor: pointer;
}

.eg-visor-cerrar:hover { background: var(--eg-naranja, #fe7006); }

.eg-visor-cerrar svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: #fff;
	stroke-width: 2.4;
	stroke-linecap: round;
}

/* Formulario (Mi Perfil → Premium) */
.eg-pg-videos-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 10px;
}

.eg-pf-campo-tit {
	margin: 4px 0 0 !important;
	font-weight: 700;
	color: var(--eg-texto, #f3f3f3);
}

.eg-pf-campo-tit em {
	font-weight: 400;
	font-style: normal;
	color: var(--eg-texto-3, #8f8f9b);
}

@media (min-width: 768px) {
	.eg-pg-videos-form {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.eg-pf-campo-tit {
		grid-column: 1 / -1;
	}
}

/* Un emoji dentro del título nunca debe crecer (WordPress los vuelve imagen). */
.eg-pg-vid-tit img.emoji,
.eg-pg-vid-tit img {
	display: inline !important;
	width: 1em !important;
	height: 1em !important;
	vertical-align: -0.1em;
}

.eg-pg-vid-estado {
	margin-left: 6px;
	padding: 1px 8px;
	border-radius: 99px;
	font-size: 11px;
	font-style: normal;
	font-weight: 800;
	letter-spacing: .04em;
}

.eg-pg-vid-estado--pendiente { background: rgba(246, 207, 106, .15); color: #f6cf6a; }
.eg-pg-vid-estado--aprobado { background: rgba(134, 239, 172, .15); color: #86efac; }
.eg-pg-vid-estado--rechazado { background: rgba(252, 165, 165, .15); color: #fca5a5; }

/* ---- Pie de la portada: club, división y "Miembro desde" ---- */
.eg-jp-pie {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
	margin: 14px 0 0 !important;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	color: #9a9aa6;
}
.eg-jp-pie i { font-style: normal; opacity: .5; }
.eg-jp-pie b { color: #fff; font-weight: 700; }
.eg-jp-pie a,
.eg-jp-pie a:hover,
.eg-jp-pie a:focus {
	text-decoration: none !important;
	border-bottom: 0 !important;
	box-shadow: none;
}
/* El club se ve como botón: escudo + nombre, borde naranjo al pasar. */
.eg-jp-pie a.eg-jp-pie-club {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px 6px 8px;
	border-radius: 8px;
	background: rgba(255, 255, 255, .07);
	box-shadow: inset 0 0 0 1px rgba(254, 112, 6, .55);
	color: #fff;
	font-weight: 800;
	transition: background .15s, box-shadow .15s;
}
.eg-jp-pie a.eg-jp-pie-club:hover {
	background: rgba(254, 112, 6, .16);
	box-shadow: inset 0 0 0 1px #fe7006;
	color: #fff;
}
.eg-jp-pie-club img { width: 24px; height: 24px; object-fit: contain; }
.eg-jp-pie a.eg-jp-pie-div {
	color: #fff;
	font-weight: 700;
}
.eg-jp-pie a.eg-jp-pie-div:hover { color: #fe7006; }
.eg-jp-pie-libre { color: #7ee2a0; font-weight: 700; }
.eg-cl-id--carta > .eg-jp-pie {
	grid-area: pie;
	justify-content: center;
	margin: 0 !important;
}
@media (min-width: 768px) {
	.eg-cl-id--carta > .eg-jp-pie { justify-content: flex-start; align-self: start; }
}

/* ---- Guardar la imagen en el celular (vista previa + menú del teléfono) ---- */
.eg-mc-guardar {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
	background: rgba(8, 8, 10, .94);
}
.eg-mc-guardar img {
	max-width: 100%;
	max-height: calc(100vh - 210px);
	border-radius: 10px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .6);
	-webkit-touch-callout: default;
}
.eg-mc-guardar p { margin: 0; color: #cfcfd6; font-size: 14px; text-align: center; }
.eg-mc-guardar .eg-btn { min-width: 220px; }
.eg-mc-guardar-x {
	position: absolute;
	top: calc(10px + env(safe-area-inset-top));
	right: 12px;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}
@media (max-width: 767px) {
	/* En el celular sin puntos separadores (quedaban colgando al saltar de línea). */
	.eg-jp-pie { gap: 8px 14px; justify-content: center; }
	.eg-jp-pie i { display: none; }
}

.eg-mc-ayuda { margin: 8px 0 0; font-size: 13px; color: #9a9aa6; }

/* ---- Fundador VITALICIO: negro con dorado (el original del ZIP 352),
   con marco holográfico y borde en relieve. ---- */
.eg-carta--vitalicio {
	--marco: linear-gradient(160deg, #fff6d6 0%, #e2b451 22%, #f4b8d8 40%, #a8e6f0 56%, #f3cf73 72%, #fff1c2 86%, #a8761e 100%);
	--fondo: radial-gradient(circle at 50% 28%, rgba(246, 207, 106, .38), rgba(0, 0, 0, 0) 52%), repeating-linear-gradient(45deg, rgba(246, 207, 106, .10) 0 1px, rgba(0, 0, 0, 0) 1px 12px), repeating-linear-gradient(-45deg, rgba(246, 207, 106, .10) 0 1px, rgba(0, 0, 0, 0) 1px 12px), linear-gradient(175deg, #0f0d08 0%, #050505 70%, #14100a 100%);
	--caja: rgba(246, 207, 106, .16);
	--tinta: #f6cf6a;
	--sil: rgba(246, 207, 106, .12);
	--banda: linear-gradient(180deg, rgba(5, 5, 5, 0) 0, rgba(5, 5, 5, .92) 30px, rgba(0, 0, 0, .98) 100%);
	--sombra: 0 18px 48px -12px rgba(246, 207, 106, .55);
}
.eg-carta--vitalicio .eg-carta-in { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .8), inset 0 0 0 3px rgba(246, 207, 106, .55), inset 0 0 20px rgba(0, 0, 0, .7); }
.eg-carta-fund--vit {
	background: #0b0b0b;
	color: #f6cf6a;
	box-shadow: inset 0 0 0 1px #f6cf6a, 0 2px 6px rgba(0, 0, 0, .45);
}
.eg-mc-fondo--vitalicio i { background: radial-gradient(circle at 50% 30%, rgba(246, 207, 106, .6), transparent 60%), repeating-linear-gradient(45deg, rgba(246, 207, 106, .2) 0 1px, transparent 1px 8px), #070707; box-shadow: inset 0 0 0 2px #f4b8d8, inset 0 0 0 4px #a8e6f0; }
.eg-jp-chip-vitalicio {
	position: relative;
	overflow: hidden;
	background: #0b0b0b !important;
	color: #f6cf6a !important;
	box-shadow: inset 0 0 0 1px #d9a93e;
}
.eg-jp-chip-vitalicio::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: -60%;
	width: 40%;
	background: linear-gradient(100deg, transparent, rgba(255, 236, 170, .55), transparent);
	animation: eg-vit-brillo 7s ease-in-out infinite;
}
@keyframes eg-vit-brillo {
	0%, 80% { left: -60%; }
	100% { left: 130%; }
}
@media (prefers-reduced-motion: reduce) {
	.eg-jp-chip-vitalicio::after { animation: none; display: none; }
}
.eg-mc-fondo--fundador i { background: repeating-linear-gradient(135deg, rgba(217, 169, 62, .3) 0 2px, rgba(0, 0, 0, 0) 2px 10px), radial-gradient(circle at 50% 30%, rgba(254, 112, 6, .7), transparent 62%), linear-gradient(160deg, #1a1408, #0d0b08); box-shadow: inset 0 0 0 2px #d9a93e; }

/* ---- Descargas de la carta: marca con logo y firma del jugador (mismo estilo que las gráficas de club) ---- */
.eg-clg-marca { display: inline-flex; align-items: center; gap: 7px; }
.eg-clg-marca-img { width: auto !important; height: 1.9em !important; max-width: none !important; object-fit: contain; }
.eg-mc-firmada .eg-clg-firma {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	max-width: calc(100% - 36px);
	margin-top: 14px;
	padding: 6px 8px 6px 12px;
	box-sizing: border-box;
	border-radius: 8px;
	background: rgba(0, 0, 0, .55);
}
.eg-mc-firmada .eg-clg-firma-club { font-size: 9px; font-weight: 700; line-height: 1.3; letter-spacing: .06em; text-transform: uppercase; text-align: left; color: #d6d6de; }
.eg-mc-firmada .eg-clg-firma-club b { color: #ffffff; }
.eg-mc-firmada .eg-clg-plan { flex-shrink: 0; padding: 3px 7px; border-radius: 5px; font-size: 8px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; background: #fe7006; color: #111111; }
.eg-mc-firmada .eg-clg-plan--ultra { background: linear-gradient(135deg, #f6cf6a, #c9952f); }
.eg-mc-firmada .eg-clg-cta { margin-top: 8px; font-size: 10px; color: #d6d6de; white-space: nowrap; }
.eg-mc-firmada .eg-clg-cta b { color: #fe7006; }
.eg-mc-firmada .eg-clg-dom { margin-top: 6px; font-size: 9px; letter-spacing: .08em; color: #b4b4bf; }
.eg-mc-post.eg-mc-firmada .eg-mc-post-cab { align-items: center; }
.eg-mc-post.eg-mc-firmada .eg-clg-firma { margin-top: 10px; }
