/* Mundial 2026 — fixture & predictions (Section 8.3).
   Responsive: mobile = single-column list; desktop = multi-column card grid. */

.mundial-app {
	--red: #c1121f;
	--red-2: #d62828;
	--red-3: #ee4b5a;
	--green: #059669;
	--blue: #2563eb;
	--orange: #ea580c;
	--amber: #d97706;
	--grey: #6b7280;
	--muted: #6b7280;
	--muted-bg: #f3f4f6;
	--line: #e5e7eb;

	/* Type pairing: Inter for reading (names, labels, tables), Baloo 2 for
	   display (titles, day headers, times, scores, action buttons). */
	--font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--font-display: 'Baloo 2', var(--font-body);

	max-width: 1080px;
	margin: 0 auto;
	padding: 0 14px 40px;
	font-family: var(--font-body);
	color: #111827;
	box-sizing: border-box;
}
.mundial-app *,
.mundial-app *::before,
.mundial-app *::after { box-sizing: border-box; }

/* ---------------------------------------------------------------- Header */
.mundial-header {
	position: sticky;
	top: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	gap: 10px;
	background: linear-gradient(135deg, var(--red-3), var(--red-2), var(--red));
	color: #fff;
	margin: 0 -14px 16px;
	padding: 14px 16px;
}
.mundial-header__title { margin: 0; font-size: 1.15rem; flex: 1; }
.mundial-header__back {
	background: rgba(255,255,255,0.18); color: #fff; border: 0;
	width: 34px; height: 34px; border-radius: 9px; font-size: 1.2rem; cursor: pointer;
}
.mundial-header__cta {
	background: rgba(255,255,255,0.18); color: #fff; border: 0;
	padding: 8px 14px; border-radius: 999px; font-weight: 600; cursor: pointer; font-size: 0.85rem;
}
.mundial-header__cta:hover { background: rgba(255,255,255,0.3); }
.mundial-header__pts {
	background: rgba(255,255,255,0.92); color: var(--red);
	padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: 0.82rem;
	white-space: nowrap;
}

/* ---------------------------------------------------------------- Toast */
.mundial-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%);
	z-index: 9999;
	max-width: min(92vw, 480px);
	padding: 12px 18px;
	border-radius: 12px;
	font-weight: 600;
	font-size: 0.9rem;
	color: #fff;
	box-shadow: 0 6px 24px rgba(0,0,0,0.25);
	text-align: center;
}
.mundial-toast[hidden] { display: none; }
.mundial-toast--ok { background: #1a9c52; }
.mundial-toast--err { background: #c0392b; }

/* ---------------------------------------------------------------- Views */
.mundial-view[hidden] { display: none; }

/* ---------------------------------------------------------------- Filters (chips) */
.mundial-filters {
	display: flex;
	gap: 8px;
	margin: 0 0 18px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 4px;
	scrollbar-width: none;
}
.mundial-filters::-webkit-scrollbar { display: none; }
.mundial-fchip {
	flex: 0 0 auto;
	background: var(--red); color: #fff; border: 0;
	padding: 8px 16px; border-radius: 999px; cursor: pointer;
	font-size: 0.85rem; font-weight: 600; opacity: 0.55;
}
.mundial-fchip.is-active { opacity: 1; background: #fff; color: var(--red); box-shadow: 0 0 0 2px var(--red) inset; }

/* ---------------------------------------------------------------- Day blocks + card grid */
.mundial-dayblock { margin-bottom: 22px; }
.mundial-day {
	font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em;
	color: var(--muted); margin: 0 0 10px; padding: 0 2px;
}
.mundial-cards { display: flex; flex-direction: column; gap: 10px; }

/* ---------------------------------------------------------------- Card */
.mundial-card {
	border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
	background: #fff;
}
.mundial-card[role="button"] { cursor: pointer; transition: box-shadow 0.15s, transform 0.05s; }
.mundial-card[role="button"]:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.mundial-card[role="button"]:active { transform: scale(0.995); }
.mundial-card--locked { background: #fafafa; }

.mundial-card__row {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 8px;
}
.mundial-team { display: flex; align-items: center; gap: 9px; min-width: 0; }
.mundial-team--home { justify-content: flex-start; }
.mundial-team--away { justify-content: flex-end; }
.mundial-team__name { font-weight: 600; font-size: 0.92rem; line-height: 1.15; }
.mundial-team--away .mundial-team__name { text-align: right; }
.mundial-flag {
	width: 30px; height: 22px; object-fit: cover; border-radius: 3px; flex: 0 0 auto;
	box-shadow: 0 0 0 1px rgba(0,0,0,0.06);
}
.mundial-flag--ph { background: var(--muted-bg); }

.mundial-card__center { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 92px; }
.mundial-card__time { font-size: 1.05rem; font-weight: 700; color: var(--red); }
.mundial-card__result { font-size: 1.25rem; font-weight: 800; }
.mundial-card__group { font-size: 0.7rem; color: var(--muted); }

/* Status pills */
.mundial-pill { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.03em; padding: 3px 8px; border-radius: 999px; }
.mundial-pill--sched  { background: #dbeafe; color: var(--blue); }
.mundial-pill--live   { background: #d1fae5; color: var(--green); }
.mundial-pill--pause  { background: #ffedd5; color: var(--orange); }
.mundial-pill--final  { background: #e5e7eb; color: #374151; }
.mundial-pill--postp  { background: #fef3c7; color: var(--amber); }
.mundial-pill--cancel { background: #fee2e2; color: var(--red); }

/* Foot (prediction + action) */
.mundial-card__foot {
	display: flex; align-items: center; justify-content: space-between;
	gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line);
}
.mundial-pred { font-size: 0.82rem; color: var(--green); font-weight: 600; }
.mundial-chip { font-size: 0.74rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.mundial-chip--play { background: var(--red); color: #fff; }
.mundial-chip--edit { background: var(--green); color: #fff; }
.mundial-chip--lock { color: var(--muted); }

/* ---------------------------------------------------------------- Promo */
.mundial-banner { position: relative; border-radius: 16px; overflow: hidden; margin-bottom: 16px; }
.mundial-banner__img { display: block; width: 100%; height: auto; }
.mundial-banner__fallback {
	display: flex; align-items: center; justify-content: center;
	background: radial-gradient(circle at 50% 35%, #3a2a00, #111 70%);
	min-height: 200px;
}
.mundial-banner__trophy { font-size: 5rem; }
.mundial-banner__caption {
	position: absolute; top: 16px; left: 0; right: 0; text-align: center;
	color: #fff; font-weight: 800; font-size: 1.1rem; line-height: 1.2;
	text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.mundial-legend {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px;
}
.mundial-legend__item {
	display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
	background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 6px;
}
.mundial-legend__item small { color: var(--muted); font-size: 0.68rem; }
.mundial-legend__pts { font-weight: 800; font-size: 0.9rem; padding: 4px 10px; border-radius: 8px; }
.mundial-legend__pts--gold { background: #fef3c7; color: #92400e; }
.mundial-legend__pts--blue { background: #1f2937; color: #fff; }
.mundial-legend__pts--grey { background: var(--muted-bg); color: var(--muted); }

.mundial-promo__nexthead {
	display: flex; align-items: center; justify-content: space-between;
	font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; color: var(--muted);
	margin-bottom: 8px;
}
.mundial-link { color: var(--red); font-weight: 700; text-decoration: none; }
.mundial-promo__nextcard .mundial-card { border-width: 2px; }
.mundial-promoform { margin-top: 12px; }
.mundial-promo__locked { text-align: center; color: var(--muted); margin: 14px 0 0; font-size: 0.85rem; }

/* ---------------------------------------------------------------- Forms / buttons */
.mundial-form { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 14px 0; }
.mundial-score {
	width: 60px; height: 60px; font-size: 1.7rem; text-align: center;
	border: 2px solid var(--line); border-radius: 12px;
}
.mundial-form__dash { font-size: 1.5rem; color: var(--muted); }
.mundial-btn {
	display: block; width: 100%; text-align: center; background: var(--red);
	color: #fff; border: 0; padding: 13px; border-radius: 12px; font-weight: 700;
	cursor: pointer; text-decoration: none; font-size: 0.95rem;
}
.mundial-btn:hover { background: var(--red-2); }
.mundial-fineprint { font-size: 0.7rem; color: var(--muted); text-align: center; margin: 10px 0 0; }
.mundial-error { color: var(--red); text-align: center; margin-top: 10px; }
.mundial-loginprompt { text-align: center; margin: 16px 0; }

/* ---------------------------------------------------------------- States */
.mundial-loading, .mundial-empty { text-align: center; color: var(--muted); padding: 36px; }

/* ---------------------------------------------------------------- Leaderboard */
.mundial-board { width: 100%; border-collapse: collapse; margin-top: 6px; }
.mundial-board th, .mundial-board td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #eee; }
.mundial-board th { color: var(--muted); font-size: 0.78rem; }
.mundial-board--me { margin-top: 6px; border-top: 2px solid var(--red); }
.mundial-board .is-me { background: #fff7ed; font-weight: 700; }

/* ---------------------------------------------------------------- Modal */
.mundial-modal { position: fixed; inset: 0; z-index: 9999; }
.mundial-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.mundial-modal__sheet {
	position: absolute; left: 0; right: 0; bottom: 0;
	background: #fff; border-radius: 18px 18px 0 0; padding: 24px;
	max-width: 720px; margin: 0 auto;
}
.mundial-modal__close {
	position: absolute; top: 10px; right: 14px; border: 0; background: none;
	font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--muted);
}
.mundial-modal__head { font-size: 1.05rem; text-align: center; margin-bottom: 6px; }
.mundial-modal__time { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }
.mundial-modal__result, .mundial-modal__pred { text-align: center; }

/* ================================================================ DESKTOP */
@media (min-width: 768px) {
	.mundial-app { padding: 0 24px 60px; }
	.mundial-header { margin-left: -24px; margin-right: -24px; padding-left: 28px; padding-right: 28px; border-radius: 0 0 16px 16px; }

	/* Chips wrap instead of scrolling */
	.mundial-filters { flex-wrap: wrap; overflow: visible; }

	/* Cards tile into a responsive grid */
	.mundial-cards {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
		gap: 14px;
	}

	/* Promo content centered, legend roomy */
	.mundial-banner, .mundial-legend, .mundial-promo__nexthead, .mundial-promo__nextcard {
		max-width: 720px; margin-left: auto; margin-right: auto;
	}
	.mundial-banner__caption { font-size: 1.6rem; top: 28px; }

	/* Modal becomes a centered dialog */
	.mundial-modal__sheet {
		left: 50%; right: auto; bottom: auto; top: 50%;
		transform: translate(-50%, -50%);
		width: 420px; max-width: 92vw; border-radius: 18px;
	}
}

@media (min-width: 1024px) {
	.mundial-cards { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
}

/* ====================================================================
   REDESIGN — mobile mockup (2026-06).
   Uses #mundial-app (ID) specificity + !important on properties that
   WordPress / WooCommerce / theme stylesheets commonly override
   (buttons, inputs, headings, backgrounds), so our styles always win.
   ==================================================================== */

body.mundial-page { background: #eef0f3 !important; }

/* Reserve vertical space while "Cargando partidos…" so the footer doesn't
   sit mid-viewport and then jump down when the matches render. */
#mundial-app { min-height: 75vh; }

/* ------------------------------------------------------------ Typography
   Inter everywhere (form controls don't inherit by default, so set them
   explicitly), Baloo 2 on the display layer: titles, day headers, group
   labels, times, scores, points badges and the JUGAR/CONFIRMAR buttons. */
#mundial-app,
#mundial-app input,
#mundial-app button,
#mundial-app select,
#mundial-app textarea {
	font-family: var(--font-body) !important;
}
#mundial-app .mundial-header__title,
#mundial-app .mundial-header__pts,
#mundial-app .mundial-banner__caption,
#mundial-app .mundial-legend__pts,
#mundial-app .mundial-promo__nexttitle,
#mundial-app .mundial-verfixture,
#mundial-app .mundial-promocard__group,
#mundial-app .mundial-promocard__time,
#mundial-app .mundial-promocard__bigtime,
#mundial-app .mundial-day,
#mundial-app .mundial-card__grouplabel,
#mundial-app .mundial-card__toptime,
#mundial-app .mundial-card__time,
#mundial-app .mundial-card__result,
#mundial-app .mundial-card__score,
#mundial-app .mundial-score,
#mundial-app .mundial-cardscore,
#mundial-app .mundial-btn,
#mundial-app .mundial-cardbtn--confirm,
#mundial-app .mundial-modal__head {
	font-family: var(--font-display) !important;
}

/* Loading state: bouncing ball + pulsing text (covers both "Cargando
   partidos…" and "Cargando clasificación…" — same class). */
#mundial-app .mundial-loading {
	display: flex !important;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 90px 20px !important;
	color: #6b7280 !important;
	font-weight: 600 !important;
	font-size: 0.95rem !important;
}
#mundial-app .mundial-loading::before {
	content: "⚽";
	font-size: 44px;
	line-height: 1;
	animation: mundial-load-ball 0.9s ease-in-out infinite;
}
@keyframes mundial-load-ball {
	0%   { transform: translateY(0) rotate(0deg); }
	50%  { transform: translateY(-18px) rotate(180deg); }
	100% { transform: translateY(0) rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
	#mundial-app .mundial-loading::before,
	#mundial-app .mundial-lb__crown,
	#mundial-app .mundial-lb__pod .mundial-lb__avatar,
	#mundial-app .mundial-lb__podname { animation: none !important; }
}

/* Material Symbols (BIM auth modal): hide the ligature text until the icon
   font has really loaded — otherwise the raw names ("person", "lock"…) print
   over the input placeholders. JS adds .mundial-icons-ready on font load. */
body.mundial-page .material-symbols-outlined { opacity: 0 !important; transition: opacity 0.2s; }
body.mundial-page.mundial-icons-ready .material-symbols-outlined { opacity: 1 !important; }
/* ----------------------------------------------------------- Header */
#mundial-app .mundial-header {
	background: linear-gradient(180deg, #e02832, #c1121f) !important;
	padding: 16px 16px 20px !important;
	gap: 12px !important;
	border: 0 !important;
}
#mundial-app .mundial-header__title {
	font-size: 1.45rem !important;
	font-weight: 800 !important;
	color: #fff !important;
	line-height: 1.2 !important;
	margin: 0 !important;
	padding: 0 !important;
}
#mundial-app .mundial-header__back {
	width: 46px !important;
	height: 46px !important;
	border-radius: 50% !important;
	background: rgba(0,0,0,0.22) !important;
	color: #fff !important;
	font-size: 1.35rem !important;
	border: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex: 0 0 auto;
	box-shadow: none !important;
}
#mundial-app .mundial-header__back[hidden] { display: none !important; }
#mundial-app .mundial-header__cta {
	background: rgba(255,255,255,0.14) !important;
	border: 1.5px solid rgba(255,255,255,0.55) !important;
	color: #fff !important;
	font-weight: 700 !important;
	font-size: 0.95rem !important;
	padding: 9px 16px !important;
	border-radius: 999px !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 7px !important;
	line-height: 1 !important;
	box-shadow: none !important;
	text-transform: none !important;
}
#mundial-app .mundial-header__cta[hidden] { display: none !important; }
#mundial-app .mundial-header__cta svg { display: block; }

/* ----------------------------------------------------------- Banner */
#mundial-app .mundial-banner {
	border-radius: 22px !important;
	box-shadow: 0 8px 24px rgba(17,24,39,0.10);
	margin-bottom: 18px !important;
}
#mundial-app .mundial-banner__fallback { position: relative; }
#mundial-app .mundial-banner__caption {
	position: absolute; top: 16px; left: 0; right: 0;
}

/* --------------------------------- Legend: ONE white card, 3 columns */
#mundial-app .mundial-legend {
	background: #fff !important;
	border-radius: 18px !important;
	padding: 18px 4px !important;
	gap: 0 !important;
	box-shadow: 0 2px 10px rgba(17,24,39,0.05);
	margin-bottom: 26px !important;
	border: 0 !important;
}
#mundial-app .mundial-legend__item {
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	padding: 4px 6px !important;
	gap: 10px !important;
}
#mundial-app .mundial-legend__item + .mundial-legend__item { border-left: 1px solid #e7e9ee !important; }
#mundial-app .mundial-legend__item small {
	font-size: 0.8rem !important;
	color: #6b7280 !important;
	line-height: 1.25 !important;
}
#mundial-app .mundial-legend__pts {
	font-size: 1.02rem !important;
	font-weight: 800 !important;
	padding: 7px 14px !important;
	border-radius: 10px !important;
	line-height: 1.2 !important;
}
#mundial-app .mundial-legend__pts--gold { background: #ffd231 !important; color: #1f2937 !important; }
#mundial-app .mundial-legend__pts--blue { background: #1d3354 !important; color: #fff !important; }
#mundial-app .mundial-legend__pts--grey { background: #eceef2 !important; color: #98a1ad !important; }

/* --------------------------- Section head: PRÓXIMO PARTIDO + Ver fixture */
#mundial-app .mundial-promo__nexthead {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	margin: 0 2px 12px !important;
}
#mundial-app .mundial-promo__nexttitle {
	font-size: 1.02rem !important;
	font-weight: 800 !important;
	letter-spacing: 0.06em !important;
	color: #4b5563 !important;
}
#mundial-app .mundial-verfixture {
	background: none !important;
	border: 0 !important;
	cursor: pointer;
	color: #c1121f !important;
	font-weight: 800 !important;
	font-size: 1.02rem !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	padding: 0 !important;
	box-shadow: none !important;
	text-transform: none !important;
}
#mundial-app .mundial-verfixture__chev {
	width: 30px; height: 30px; border-radius: 50%;
	background: #fff; color: #374151;
	box-shadow: 0 2px 8px rgba(17,24,39,0.12);
	display: inline-flex; align-items: center; justify-content: center;
	font-size: 1.1rem; line-height: 1; padding-bottom: 2px;
}

/* ------------------------------------------- Próximo partido card */
#mundial-app .mundial-promocard {
	background: #fff !important;
	border: 0 !important;
	border-radius: 20px !important;
	padding: 20px 18px !important;
	box-shadow: 0 2px 12px rgba(17,24,39,0.06);
}
#mundial-app .mundial-promocard__top {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 10px !important;
	margin-bottom: 18px !important;
}
#mundial-app .mundial-promocard__group {
	font-size: 1.18rem !important;
	font-weight: 800 !important;
	color: #111827 !important;
}
#mundial-app .mundial-promocard__topright {
	display: inline-flex !important;
	align-items: center !important;
	gap: 10px !important;
}
#mundial-app .mundial-promocard__time {
	color: #c1121f !important;
	font-weight: 800 !important;
	font-size: 1.18rem !important;
}
#mundial-app .mundial-promocard__teams {
	display: grid !important;
	grid-template-columns: 1fr auto 1fr !important;
	align-items: start !important;
	gap: 8px !important;
}
#mundial-app .mundial-promocard__team {
	display: flex !important;
	flex-direction: column !important;
	gap: 12px !important;
	min-width: 0;
}
#mundial-app .mundial-promocard__team:first-child { align-items: flex-start !important; text-align: left !important; }
#mundial-app .mundial-promocard__team:last-child { align-items: flex-end !important; text-align: right !important; }
#mundial-app .mundial-promocard__flag {
	width: 66px !important;
	height: 44px !important;
	object-fit: cover;
	border-radius: 6px !important;
	box-shadow: 0 1px 4px rgba(0,0,0,0.18);
	display: block;
}
#mundial-app .mundial-promocard__flag--ph { background: #f3f4f6; }
#mundial-app .mundial-promocard__name {
	font-size: 1.1rem !important;
	font-weight: 800 !important;
	color: #111827 !important;
	line-height: 1.2 !important;
}
#mundial-app .mundial-promocard__center {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	gap: 2px !important;
	padding-top: 4px;
	min-width: 100px;
}
#mundial-app .mundial-promocard__bigtime {
	color: #c1121f !important;
	font-weight: 800 !important;
	font-size: 1.6rem !important;
	line-height: 1.1 !important;
}
#mundial-app .mundial-promocard__date {
	color: #9ca3af !important;
	font-size: 0.92rem !important;
}

/* Status pill — slightly bigger, like the mockup */
#mundial-app .mundial-pill {
	font-size: 0.7rem !important;
	padding: 5px 11px !important;
	letter-spacing: 0.05em !important;
	font-weight: 700 !important;
	border-radius: 999px !important;
}

/* ------------------------------------- Form (inside the promo card) */
#mundial-app .mundial-score {
	width: 62px !important;
	height: 62px !important;
	font-size: 1.7rem !important;
	font-weight: 700 !important;
	text-align: center !important;
	border: 2px solid #e5e7eb !important;
	border-radius: 14px !important;
	background: #fff !important;
	color: #111827 !important;
	box-shadow: none !important;
	padding: 0 !important;
}
#mundial-app .mundial-btn {
	background: #c1121f !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 14px !important;
	padding: 15px !important;
	font-weight: 800 !important;
	font-size: 1rem !important;
	letter-spacing: 0.02em !important;
	width: 100% !important;
	text-transform: uppercase !important;
	box-shadow: none !important;
}
#mundial-app .mundial-btn:hover { background: #a90f1a !important; }

/* ------------------------------------------- Fixture (TODOS) — mockup */

/* Banner at the top of the fixture list */
#mundial-app .mundial-fixbanner {
	border-radius: 18px !important;
	overflow: hidden;
	margin: 0 0 18px !important;
	box-shadow: 0 4px 16px rgba(17,24,39,0.08);
}
#mundial-app .mundial-fixbanner__img {
	display: block !important;
	width: 100% !important;
	height: auto !important;
	margin: 0 !important;
}

/* Day headers: "12 de junio" */
#mundial-app .mundial-day {
	font-size: 1.05rem !important;
	font-weight: 800 !important;
	color: #111827 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	margin: 0 2px 12px !important;
}

/* Card shell */
#mundial-app .mundial-card {
	background: #fff !important;
	border: 1px solid #e9ebf1 !important;
	border-radius: 18px !important;
	padding: 16px !important;
	box-shadow: 0 1px 6px rgba(17,24,39,0.04);
}
#mundial-app .mundial-card--locked { background: #fff !important; }

/* Top row: Grupo X · (pill) 16:00 */
#mundial-app .mundial-card__top {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 10px !important;
	margin-bottom: 14px !important;
}
#mundial-app .mundial-card__grouplabel {
	font-size: 1.05rem !important;
	font-weight: 800 !important;
	color: #111827 !important;
}
#mundial-app .mundial-card__topright {
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
}
#mundial-app .mundial-card__toptime {
	font-size: 1.05rem !important;
	font-weight: 800 !important;
	color: #111827 !important;
	white-space: nowrap;
}

/* Teams + center */
#mundial-app .mundial-card__row2 {
	display: grid !important;
	grid-template-columns: 1fr auto 1fr !important;
	align-items: start !important;
	gap: 8px !important;
}
#mundial-app .mundial-card__team {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	gap: 8px !important;
	min-width: 0;
}
#mundial-app .mundial-card__flag {
	width: 54px !important;
	height: 54px !important;
	object-fit: cover;
	border-radius: 12px !important;
	box-shadow: 0 1px 4px rgba(0,0,0,0.15);
	display: block;
}
#mundial-app .mundial-card__flag--ph { background: #f3f4f6; }
#mundial-app .mundial-card__teamname {
	font-size: 0.95rem !important;
	font-weight: 700 !important;
	color: #111827 !important;
	text-align: center !important;
	line-height: 1.25 !important;
}

/* Inline score inputs */
#mundial-app .mundial-card__inputs {
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	padding-top: 2px;
}
#mundial-app .mundial-cardscore {
	width: 52px !important;
	height: 52px !important;
	text-align: center !important;
	font-size: 1.15rem !important;
	font-weight: 700 !important;
	border: 1.5px solid #dfe3ec !important;
	border-radius: 14px !important;
	background: #fff !important;
	color: #111827 !important;
	box-shadow: none !important;
	padding: 0 !important;
	-moz-appearance: textfield;
}
#mundial-app .mundial-cardscore::-webkit-outer-spin-button,
#mundial-app .mundial-cardscore::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#mundial-app .mundial-cardscore::placeholder { color: #9aa1ad; }
#mundial-app .mundial-cardscore:focus {
	outline: none !important;
	border-color: #c1121f !important;
	box-shadow: 0 0 0 3px rgba(193,18,31,0.12) !important;
}
#mundial-app .mundial-cardscore:disabled {
	background: #f3f4f6 !important;
	color: #9ca3af !important;
	border-color: #e7e9ee !important;
	cursor: not-allowed;
	opacity: 1 !important;
}
/* Saved prediction, waiting for "Editar": looks calm but readable */
#mundial-app .mundial-cardscore[readonly] {
	background: #fbfbfd !important;
	border-color: #e7e9ee !important;
	color: #111827 !important;
	cursor: default;
}

/* Card action buttons: Editar / Confirmar */
#mundial-app .mundial-card__actions {
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	margin-top: 14px !important;
}
#mundial-app .mundial-cardbtn {
	cursor: pointer;
	font-weight: 800 !important;
	font-size: 0.9rem !important;
	line-height: 1 !important;
	box-shadow: none !important;
	text-transform: none !important;
}
#mundial-app .mundial-cardbtn[hidden] { display: none !important; }
#mundial-app .mundial-cardbtn--edit {
	background: #fff !important;
	color: #c1121f !important;
	border: 1.5px solid #f1c3c7 !important;
	border-radius: 999px !important;
	padding: 10px 22px !important;
	margin-left: auto;
}
#mundial-app .mundial-cardbtn--edit:hover { background: #fdf2f3 !important; }
#mundial-app .mundial-cardbtn--confirm {
	background: #c1121f !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 12px !important;
	padding: 13px !important;
	flex: 1 1 auto;
	text-transform: uppercase !important;
	letter-spacing: 0.04em !important;
}
#mundial-app .mundial-cardbtn--confirm:hover { background: #a90f1a !important; }

/* Spinner state while saving */
#mundial-app .mundial-cardbtn--confirm.is-loading {
	color: transparent !important;
	position: relative;
	pointer-events: none;
}
#mundial-app .mundial-cardbtn--confirm.is-loading::after {
	content: "";
	position: absolute;
	top: 50%; left: 50%;
	width: 18px; height: 18px;
	margin: -9px 0 0 -9px;
	border: 2.5px solid rgba(255,255,255,0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: mundial-spin 0.7s linear infinite;
}
@keyframes mundial-spin { to { transform: rotate(360deg); } }
#mundial-app .mundial-card__vs {
	font-size: 0.85rem;
	font-weight: 600;
	color: #6b7280;
}

/* Live / finished: real score in the center */
#mundial-app .mundial-card__score {
	font-size: 1.5rem !important;
	font-weight: 800 !important;
	color: #111827 !important;
	padding-top: 12px;
	white-space: nowrap;
}

/* No-prediction note on live/finished cards */
#mundial-app .mundial-pred--none {
	color: #9ca3af !important;
	font-weight: 500 !important;
}

/* Foot stays subtle */
#mundial-app .mundial-card__foot {
	margin-top: 12px !important;
	padding-top: 10px !important;
	border-top: 1px dashed #e7e9ee !important;
}

/* Mobile: slightly bigger flags everywhere */
@media (max-width: 767px) {
	#mundial-app .mundial-card__flag {
		width: 62px !important;
		height: 62px !important;
	}
	#mundial-app .mundial-promocard__flag {
		width: 76px !important;
		height: 50px !important;
	}
}

/* ----------------------------------------------- Desktop (promo view) */
@media (min-width: 768px) {
	/* Header aligns with the 720px content column: same left edge as the
	   banner (720 content + 24px side padding = 768 outer). Promo only —
	   the fixture view is full-width, so its full-width header is correct. */
	#mundial-app[data-view="promo"] .mundial-header,
	#mundial-app[data-view="loading"] .mundial-header {
		max-width: 768px;
		margin: 0 auto 24px !important;
		padding: 16px 24px 18px !important;
		border-radius: 0 0 18px 18px !important;
	}

	/* Section label shares the column too (fixes the stranded left label). */
	#mundial-app .mundial-promo__nexthead {
		max-width: 720px;
		margin: 0 auto 14px !important;
		padding: 0 2px;
	}

	/* Roomier rhythm for the wider screen. */
	#mundial-app .mundial-banner { margin-bottom: 24px !important; }
	#mundial-app .mundial-legend {
		margin-bottom: 34px !important;
		padding: 22px 8px !important;
	}
	#mundial-app .mundial-promocard {
		max-width: 720px;
		margin-left: auto !important;
		margin-right: auto !important;
		padding: 26px 28px !important;
	}
	#mundial-app .mundial-promocard__bigtime { font-size: 1.8rem !important; }
}

/* ---------------------------------------------- Desktop (fixture/TODOS) */
@media (min-width: 768px) {
	/* Banner: wide strip — cap the height so the matches stay above the fold
	   (the mobile-ratio image center-crops gracefully until the desktop
	   version arrives). */
	#mundial-app .mundial-fixbanner {
		border-radius: 20px !important;
		margin-bottom: 24px !important;
	}
	#mundial-app .mundial-fixbanner__img {
		max-height: 300px !important;
		object-fit: cover;
	}

	/* Filter chips: white pills with a border; active = solid red. */
	#mundial-app .mundial-filters { margin-bottom: 22px !important; gap: 10px !important; }
	#mundial-app .mundial-fchip {
		background: #fff !important;
		color: #374151 !important;
		border: 1.5px solid #e3e6ec !important;
		opacity: 1 !important;
		padding: 9px 18px !important;
		font-weight: 700 !important;
		border-radius: 999px !important;
		box-shadow: none !important;
		transition: border-color 0.15s, color 0.15s;
	}
	#mundial-app .mundial-fchip:hover {
		border-color: #c1121f !important;
		color: #c1121f !important;
	}
	#mundial-app .mundial-fchip.is-active {
		background: #c1121f !important;
		color: #fff !important;
		border-color: #c1121f !important;
	}

	/* Day headers: a notch bigger, more separation between day blocks. */
	#mundial-app .mundial-day { font-size: 1.2rem !important; margin: 0 2px 14px !important; }
	#mundial-app .mundial-dayblock { margin-bottom: 32px !important; }

	/* Card grid: a bit more air, subtle lift on hover (the cards are
	   interactive now — inputs + buttons). */
	#mundial-app .mundial-cards { gap: 16px !important; }
	#mundial-app .mundial-card {
		transition: box-shadow 0.15s;
	}
	#mundial-app .mundial-card:hover { box-shadow: 0 6px 18px rgba(17,24,39,0.08); }
}

/* ------------------------------------------- Leaderboard (CLASIFICACIÓN) */

#mundial-app .mundial-lb {
	max-width: 720px;
	margin: 0 auto;
}

/* Podium: red hero panel, champion centered + elevated (DOM order 2-1-3) */
#mundial-app .mundial-lb__podium {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 10px;
	background: linear-gradient(180deg, #e02832, #c1121f);
	border-radius: 22px;
	padding: 26px 14px 0;
	margin-bottom: 20px;
	color: #fff;
	box-shadow: 0 10px 28px rgba(193,18,31,0.28);
	overflow: hidden;
}
/* Floor glow under the pedestals */
#mundial-app .mundial-lb__podium::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 16px;
	background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.12));
	pointer-events: none;
}
#mundial-app .mundial-lb__pod {
	flex: 1 1 0;
	max-width: 170px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	min-width: 0;
	text-align: center;
}
#mundial-app .mundial-lb__crown {
	font-size: 1.6rem;
	line-height: 1;
	margin-bottom: 2px;
	animation: mundial-float 2.8s ease-in-out -0.15s infinite;
}
#mundial-app .mundial-lb__pod .mundial-lb__avatar {
	position: relative;
	overflow: hidden;
	width: 58px;
	height: 58px;
	font-size: 1.15rem;
	border: 3px solid rgba(255,255,255,0.85);
	box-shadow: 0 4px 14px rgba(0,0,0,0.25);
	margin-bottom: 4px;
	animation: mundial-float-sm 2.8s ease-in-out 0.4s infinite;
}
/* Glossy sphere highlight on the initials circle */
#mundial-app .mundial-lb__pod .mundial-lb__avatar::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: radial-gradient(circle at 32% 26%, rgba(255,255,255,0.55), rgba(255,255,255,0.12) 38%, rgba(255,255,255,0) 55%);
	pointer-events: none;
}
#mundial-app .mundial-lb__pod--1 .mundial-lb__avatar {
	width: 74px;
	height: 74px;
	font-size: 1.45rem;
	border-color: #ffd231;
	animation: mundial-float 2.8s ease-in-out infinite;
}
#mundial-app .mundial-lb__pod--3 .mundial-lb__avatar { animation-delay: 0.8s; }

@keyframes mundial-float {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-7px); }
}
@keyframes mundial-float-sm {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-4px); }
}
#mundial-app .mundial-lb__podname {
	font-weight: 700;
	font-size: 0.85rem;
	line-height: 1.2;
	max-width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: #fff;
}
/* Light sweep across the top-3 names (plain white where unsupported) */
@supports (-webkit-background-clip: text) {
	#mundial-app .mundial-lb__podname {
		background: linear-gradient(110deg, #fff 40%, #ffd231 50%, #fff 60%);
		background-size: 220% 100%;
		-webkit-background-clip: text;
		background-clip: text;
		-webkit-text-fill-color: transparent;
		animation: mundial-shine 3.5s ease-in-out infinite;
	}
}
@keyframes mundial-shine {
	0%   { background-position: 220% 0; }
	60%, 100% { background-position: -20% 0; }
}
#mundial-app .mundial-lb__podpts {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1.25rem;
	line-height: 1.1;
	color: #ffd231;
}
#mundial-app .mundial-lb__pod--1 .mundial-lb__podpts { font-size: 1.55rem; }
#mundial-app .mundial-lb__podsub {
	font-size: 0.72rem;
	color: rgba(255,255,255,0.75);
	margin-bottom: 10px;
	white-space: nowrap;
}
/* The pedestal: simple metal block with rounded top corners.
   Height + gold/silver/bronze gradient encode the rank. */
#mundial-app .mundial-lb__step {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1.7rem;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 56px;
	border-radius: 16px 16px 0 0;
	/* silver (rank 2 uses the base style) */
	background: linear-gradient(180deg, #f3f4f6, #c0c6cf 55%, #9aa1ad);
	color: #5b6470;
	text-shadow: 0 1px 0 rgba(255,255,255,0.45);
	box-shadow: inset 0 3px 4px rgba(255,255,255,0.55), 0 6px 16px rgba(0,0,0,0.25);
}
#mundial-app .mundial-lb__pod--1 .mundial-lb__step {
	height: 88px;
	font-size: 2.1rem;
	background: linear-gradient(180deg, #ffe27a, #f5b301 55%, #c98a00);
	color: #7a5200;
}
#mundial-app .mundial-lb__pod--3 .mundial-lb__step {
	height: 42px;
	background: linear-gradient(180deg, #e8b27d, #c97a3d 55%, #9c5a26);
	color: #5e3517;
}
#mundial-app .mundial-lb__pod.is-me .mundial-lb__podname { text-decoration: underline; text-underline-offset: 3px; }

/* Avatar (shared: podium + rows) */
#mundial-app .mundial-lb__avatar {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 0.95rem;
	flex: 0 0 auto;
	letter-spacing: 0.02em;
}

/* Ranks 4+: white card rows */
#mundial-app .mundial-lb__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
#mundial-app .mundial-lb__row {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #fff;
	border: 1px solid #e9ebf1;
	border-radius: 16px;
	padding: 12px 14px;
	box-shadow: 0 1px 6px rgba(17,24,39,0.04);
}
#mundial-app .mundial-lb__row.is-me {
	border: 2px solid #c1121f;
	background: #fff7f7;
}
#mundial-app .mundial-lb__rank {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1.05rem;
	color: #9ca3af;
	min-width: 28px;
	text-align: center;
	flex: 0 0 auto;
}
#mundial-app .mundial-lb__row.is-me .mundial-lb__rank { color: #c1121f; }
#mundial-app .mundial-lb__who {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
#mundial-app .mundial-lb__name {
	font-weight: 600;
	font-size: 0.95rem;
	color: #111827;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
#mundial-app .mundial-lb__sub {
	font-size: 0.76rem;
	color: #9ca3af;
}
#mundial-app .mundial-lb__pts {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1.35rem;
	color: #c1121f;
	display: inline-flex;
	align-items: baseline;
	gap: 3px;
	flex: 0 0 auto;
}
#mundial-app .mundial-lb__pts small {
	font-size: 0.68rem;
	font-weight: 700;
	color: #9ca3af;
}

/* Tiebreaker footnote */
#mundial-app .mundial-lb__note {
	font-size: 0.74rem;
	color: #9ca3af;
	text-align: center;
	margin: 14px 4px 0;
	line-height: 1.4;
}

/* Caller outside the top 50: own row floats pinned at the bottom */
#mundial-app .mundial-lb__mepin {
	position: sticky;
	bottom: 12px;
	margin-top: 14px;
	z-index: 5;
}
#mundial-app .mundial-lb__mepin .mundial-lb__row { box-shadow: 0 10px 28px rgba(17,24,39,0.20); }

@media (min-width: 768px) {
	#mundial-app .mundial-lb__podium { padding: 34px 22px 0; gap: 18px; }
	#mundial-app .mundial-lb__pod { max-width: 200px; }
	#mundial-app .mundial-lb__podname { font-size: 0.95rem; }
	#mundial-app .mundial-lb__pod--1 .mundial-lb__step { height: 102px; }
	#mundial-app .mundial-lb__pod--2 .mundial-lb__step { height: 66px; }
	#mundial-app .mundial-lb__pod--3 .mundial-lb__step { height: 50px; }
}
