/* ==========================================================================
   EsportGame – main stylesheet
   Colors, fonts and sizes come from CSS variables printed by
   inc/dynamic-css.php (Appearance > Customize > EsportGame Theme).
   ========================================================================== */

/* ---------- 0. Tokens (fallbacks) ---------- */
:root {
	--c-accent: #84f542; --c-accent-rgb: 132, 245, 66;
	--c-accent-text: #061004;
	--c-primary: #2f8cff; --c-primary-rgb: 47, 140, 255;
	--c-secondary: #8b3dff; --c-secondary-rgb: 139, 61, 255;
	--c-live: #ff2d55; --c-live-rgb: 255, 45, 85;
	--c-bg: #050817; --c-bg-rgb: 5, 8, 23;
	--c-surface: #0b1130; --c-surface-rgb: 11, 17, 48;
	--c-border: #1d2758; --c-border-rgb: 29, 39, 88;
	--c-text: #eef1ff; --c-text-rgb: 238, 241, 255;
	--c-muted: #8e98c8; --c-muted-rgb: 142, 152, 200;
	--f-head: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
	--f-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--fs-base: 14px;
	--container: 1360px;
	--radius: 10px;
	--logo-h: 40px;
	--hero-h: 300px;
	--hero-overlay: .55;
	--gap: 14px;
	--panel: rgba(var(--c-surface-rgb), .78);
	--line: rgba(var(--c-border-rgb), .9);
	--glow-blue: 0 0 24px rgba(var(--c-primary-rgb), .35);
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 1. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--f-body);
	font-size: var(--fs-base);
	line-height: 1.55;
	color: var(--c-text);
	background-color: var(--c-bg);
	background-image:
		var(--body-bg, none),
		radial-gradient(1200px 700px at 0% 30%, rgba(var(--c-primary-rgb), .28), transparent 60%),
		radial-gradient(1200px 700px at 100% 30%, rgba(var(--c-secondary-rgb), .3), transparent 60%),
		linear-gradient(180deg, #070b22 0%, var(--c-bg) 100%);
	background-size: cover, auto, auto, auto;
	background-position: center top;
	background-attachment: fixed;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s, background-color .2s, border-color .2s, box-shadow .2s, transform .2s var(--ease); }
a:hover { color: var(--c-accent); }
h1, h2, h3, h4, h5, h6 { font-family: var(--f-head); font-weight: 700; line-height: 1.1; margin: 0 0 .5em; letter-spacing: .01em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--c-accent); color: var(--c-accent-text); }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { clip: auto; width: auto; height: auto; z-index: 1000; top: 8px; left: 8px; padding: 8px 14px; background: var(--c-accent); color: var(--c-accent-text); border-radius: 6px; }
.esg-icon { width: 1em; height: 1em; flex: none; }

/* ---------- 2. Site shell / frame ---------- */
.esg-site { position: relative; padding: 14px; min-height: 100vh; }
.esg-frame {
	position: relative;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 14px 14px;
	z-index: 1;
}
.esg-has-frame .esg-frame {
	border-radius: calc(var(--radius) * 2.2);
	background: linear-gradient(180deg, rgba(var(--c-bg-rgb), .88), rgba(var(--c-bg-rgb), .94));
	box-shadow:
		0 0 0 1px rgba(var(--c-primary-rgb), .55),
		0 0 30px rgba(var(--c-primary-rgb), .35),
		inset 0 0 40px rgba(var(--c-primary-rgb), .08);
}
.esg-has-frame .esg-frame::before {
	content: "";
	position: absolute; inset: -1px;
	border-radius: inherit;
	padding: 1.5px;
	background: linear-gradient(120deg, var(--c-primary), rgba(var(--c-primary-rgb), .2) 30%, rgba(var(--c-secondary-rgb), .2) 70%, var(--c-secondary));
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor; mask-composite: exclude;
	pointer-events: none;
}

/* Side banner texts */
.esg-side { position: fixed; top: 0; bottom: 0; width: calc((100vw - var(--container)) / 2 - 14px); display: none; align-items: flex-start; justify-content: center; pointer-events: none; z-index: 0; overflow: hidden; }
.esg-side--left { left: 0; }
.esg-side--right { right: 0; }
.esg-side__text {
	margin-top: 14vh;
	font-family: var(--f-head); font-weight: 800; text-transform: uppercase;
	font-size: clamp(20px, calc((100vw - var(--container)) * .1), 56px); line-height: .95;
	color: rgba(255, 255, 255, .88);
	padding: .35em .4em;
	border: 2px solid rgba(var(--c-primary-rgb), .6);
	background: rgba(var(--c-bg-rgb), .35);
	box-shadow: var(--glow-blue), inset 0 0 20px rgba(var(--c-primary-rgb), .25);
	transform: perspective(600px) rotateY(24deg) skewY(8deg);
	text-shadow: 0 0 18px rgba(var(--c-primary-rgb), .7);
}
.esg-side--right .esg-side__text { transform: perspective(600px) rotateY(-24deg) skewY(-8deg); border-color: rgba(var(--c-secondary-rgb), .7); box-shadow: 0 0 24px rgba(var(--c-secondary-rgb), .4), inset 0 0 20px rgba(var(--c-secondary-rgb), .25); text-shadow: 0 0 18px rgba(var(--c-secondary-rgb), .8); }
.esg-side__text span { display: block; }
@media (min-width: 1640px) { .esg-side { display: flex; } }

/* ---------- 3. Header ---------- */
.esg-header { position: relative; z-index: 50; }
.esg-sticky-header .esg-header { position: sticky; top: 0; }
.esg-sticky-header .esg-header.is-stuck { background: rgba(var(--c-bg-rgb), .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 8px 30px rgba(0, 0, 0, .4); margin: 0 -14px; padding: 0 14px; border-radius: 0 0 var(--radius) var(--radius); }
.esg-header__inner { display: flex; align-items: center; gap: 24px; min-height: 68px; padding: 6px 8px; }
.esg-header__brand { flex: none; }
.esg-header__nav { display: flex; align-items: center; gap: 18px; flex: 1; min-width: 0; }
.esg-nav { flex: 1; min-width: 0; }

.esg-logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.esg-logo:hover { color: #fff; }
.esg-logo__img { max-height: var(--logo-h); width: auto; }
.esg-logo__icon { display: inline-flex; font-size: calc(var(--logo-h) * .95); color: var(--c-primary); filter: drop-shadow(0 0 8px rgba(var(--c-primary-rgb), .7)); }
.esg-logo__text { font-family: var(--f-head); font-weight: 800; font-size: calc(var(--logo-h) * .68); letter-spacing: .01em; line-height: 1; text-transform: uppercase; }
.esg-logo__text em { font-style: normal; color: var(--c-accent); }

.esg-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.esg-menu > li { position: relative; }
.esg-menu a { display: flex; align-items: center; gap: 6px; padding: 8px 12px; white-space: nowrap; font-weight: 500; font-size: 13.5px; color: #fff; border-radius: 6px; }
.esg-menu a:hover, .esg-menu .current-menu-item > a, .esg-menu .current_page_item > a { color: var(--c-accent); }
.esg-menu .menu-live > a { color: var(--c-accent); }
.esg-menu .menu-live > a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c-accent); box-shadow: 0 0 8px var(--c-accent); animation: esg-pulse 1.6s infinite; }
.esg-menu .sub-menu { list-style: none; margin: 0; padding: 6px; position: absolute; top: 100%; left: 0; min-width: 200px; background: var(--c-surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s var(--ease); z-index: 20; }
.esg-menu li:hover > .sub-menu, .esg-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.esg-header__tools { display: flex; align-items: center; gap: 10px; flex: none; }
.esg-search { position: relative; display: flex; align-items: center; }
.esg-search .esg-icon { position: absolute; left: 12px; color: var(--c-muted); font-size: 14px; pointer-events: none; }
.esg-search input[type="search"] { width: 220px; height: 36px; padding: 0 14px 0 34px; border-radius: 8px; border: 1px solid var(--line); background: rgba(var(--c-surface-rgb), .7); font-size: 12.5px; color: var(--c-text); transition: border-color .2s, width .3s var(--ease); }
.esg-search input[type="search"]::placeholder { color: var(--c-muted); }
.esg-search input[type="search"]:focus { outline: none; border-color: rgba(var(--c-primary-rgb), .8); box-shadow: 0 0 0 3px rgba(var(--c-primary-rgb), .15); }
.esg-search--block { gap: 10px; margin: 12px 0; }
.esg-search--block input[type="search"] { flex: 1; width: auto; height: 42px; }
.esg-bell { position: relative; display: grid; place-items: center; width: 36px; height: 36px; color: #fff; font-size: 18px; border-radius: 8px; }
.esg-bell:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.esg-bell__dot { position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--c-live); box-shadow: 0 0 0 2px var(--c-bg); }
.esg-burger { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 8px; background: rgba(var(--c-surface-rgb), .8); font-size: 20px; cursor: pointer; place-items: center; }

/* ---------- 4. Buttons & pills ---------- */
.esg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; padding: 0 22px; border-radius: 8px; border: 1px solid transparent; font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; line-height: 1; }
.esg-btn .esg-icon { font-size: 1.1em; }
.esg-btn--sm { height: 34px; padding: 0 14px; font-size: 12.5px; font-weight: 600; }
.esg-btn--lg { height: 50px; padding: 0 40px; font-size: 17px; border-radius: 999px; }
.esg-btn--accent { background: var(--c-accent); color: var(--c-accent-text); box-shadow: 0 0 18px rgba(var(--c-accent-rgb), .45), inset 0 1px 0 rgba(255, 255, 255, .35); }
.esg-btn--accent:hover { color: var(--c-accent-text); transform: translateY(-1px); box-shadow: 0 0 30px rgba(var(--c-accent-rgb), .7), inset 0 1px 0 rgba(255, 255, 255, .35); }
.esg-btn--ghost { background: rgba(var(--c-surface-rgb), .8); border-color: var(--line); color: #fff; }
.esg-btn--ghost:hover { border-color: rgba(var(--c-primary-rgb), .7); color: #fff; }

.esg-pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.esg-pill .esg-icon { font-size: 12px; }
.esg-pill.is-live { background: var(--c-live); color: #fff; box-shadow: 0 0 16px rgba(var(--c-live-rgb), .6); }
.esg-pill.is-glass { background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .12); color: #fff; font-weight: 500; backdrop-filter: blur(6px); }
.esg-pill.is-upcoming { background: rgba(var(--c-primary-rgb), .9); color: #fff; }
.esg-pill.is-finished { background: rgba(255, 255, 255, .1); color: var(--c-muted); }

.esg-kicker { display: inline-block; font-family: var(--f-head); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; color: var(--c-accent); margin-bottom: 6px; }
.esg-circle { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .7); font-size: 13px; flex: none; transition: .2s; }

/* ---------- 5. Home grid & panels ---------- */
.esg-main { position: relative; }
.esg-grid { display: flex; flex-wrap: wrap; align-items: stretch; gap: var(--gap); }
/* Sections grow to fill their row: a hidden/empty neighbour never leaves a hole. */
.esg-section { flex: var(--span, 20) 1 calc(var(--span, 20) * 5% - var(--gap)); min-width: min(100%, 280px); display: flex; }
.esg-section > * { flex: 1; min-width: 0; }
.esg-section[hidden] { display: none; }

.esg-panel {
	position: relative;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 14px 14px 16px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
	display: flex; flex-direction: column;
}
.esg-panel > .esg-list, .esg-panel > .esg-sched, .esg-panel > .esg-table-wrap { flex: 1; }
.esg-panel > .esg-sched { justify-content: space-between; }
.esg-section.has-bg .esg-panel { background: linear-gradient(rgba(var(--c-surface-rgb), .82), rgba(var(--c-surface-rgb), .92)), var(--panel-bg) center / cover; }
.esg-panel + .esg-panel { margin-top: var(--gap); }
.esg-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 2px 12px; }
.esg-panel__title { margin: 0; font-size: 19px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: #fff; }
.esg-viewall { font-size: 12px; font-weight: 500; color: var(--c-primary); white-space: nowrap; }
.esg-viewall:hover { color: var(--c-accent); }

/* ---------- 6. Hero ---------- */
.esg-hero {
	position: relative;
	min-height: var(--hero-h);
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--line);
	background: #050818;
	isolation: isolate;
}
.esg-hero__slide {
	position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center;
	padding: 24px 24px 22px;
	opacity: 0; visibility: hidden;
	transition: opacity .7s var(--ease), visibility .7s;
}
.esg-hero__slide.is-active { position: relative; opacity: 1; visibility: visible; min-height: var(--hero-h); }
.esg-hero__slide::before {
	content: ""; position: absolute; inset: 0; z-index: -2;
	background: var(--bg) center / cover no-repeat;
	transform: scale(1.04);
	transition: transform 8s linear;
}
.esg-hero__slide.is-active::before { transform: scale(1); }
.esg-hero__slide::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		radial-gradient(ellipse 34% 70% at 50% 45%, rgba(0, 0, 0, calc(var(--hero-overlay) + .2)), transparent 100%),
		linear-gradient(90deg, rgba(var(--c-primary-rgb), .18), transparent 30%, transparent 70%, rgba(var(--c-secondary-rgb), .2)),
		linear-gradient(0deg, rgba(var(--c-bg-rgb), var(--hero-overlay)), rgba(var(--c-bg-rgb), calc(var(--hero-overlay) * .35)) 60%, rgba(var(--c-bg-rgb), calc(var(--hero-overlay) * .5)));
}
.esg-hero__badges { position: absolute; top: 14px; left: 18px; display: flex; gap: 8px; z-index: 2; }
.esg-hero__tagline {
	position: absolute; right: 22px; bottom: 26px; z-index: 2; margin: 0;
	font-family: var(--f-head); font-weight: 800; font-style: italic; text-transform: uppercase;
	font-size: clamp(18px, 2vw, 28px); line-height: 1; letter-spacing: .06em; text-align: right;
	color: rgba(255, 255, 255, .75); text-shadow: 0 2px 20px rgba(0, 0, 0, .8);
	pointer-events: none;
}
.esg-hero__tagline span { display: block; }
.esg-hero__dots { position: absolute; right: 22px; bottom: 10px; display: flex; gap: 6px; z-index: 3; }
.esg-hero__dots button { width: 30px; height: 3px; padding: 0; border: 0; border-radius: 3px; background: rgba(255, 255, 255, .3); cursor: pointer; transition: background .3s; }
.esg-hero__dots button.is-active { background: var(--c-accent); box-shadow: 0 0 8px var(--c-accent); }
.esg-hero__empty { text-align: center; }
.esg-hero__title { font-size: clamp(28px, 4vw, 48px); text-transform: uppercase; }

/* Scoreboard */
.esg-score { text-align: center; position: relative; z-index: 1; width: 100%; max-width: 720px; }
.esg-score__league { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-family: var(--f-head); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 16px; color: var(--c-accent); }
.esg-score__league .esg-icon { font-size: 13px; }
.esg-score__stage { margin: 2px 0 6px; font-size: 12px; color: rgba(255, 255, 255, .8); }
.esg-score__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; }
.esg-score__team { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.esg-score__team .esg-badge { margin-bottom: 4px; }
.esg-score__name { margin: 0; font-size: 26px; font-weight: 800; text-transform: uppercase; color: #fff; line-height: 1.05; text-shadow: 0 2px 12px rgba(0, 0, 0, .7); overflow-wrap: anywhere; }
.esg-score__org { font-size: 11.5px; color: rgba(255, 255, 255, .7); text-transform: uppercase; letter-spacing: .03em; }
.esg-score__center { min-width: 200px; }
.esg-score__nums { display: flex; align-items: center; justify-content: center; }
.esg-score__n { font-family: var(--f-head); font-weight: 800; font-size: 62px; line-height: 1; min-width: 72px; color: #fff; text-shadow: 0 0 24px rgba(255, 255, 255, .25); }
.esg-score__vs { font-family: var(--f-head); font-weight: 700; font-size: 28px; color: rgba(255, 255, 255, .6); padding: 6px 22px; border-left: 1px solid rgba(255, 255, 255, .18); border-right: 1px solid rgba(255, 255, 255, .18); }
.esg-score__map { margin: 6px 0 0; font-size: 11.5px; color: rgba(255, 255, 255, .7); }
.esg-score__clock { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-family: var(--f-head); font-weight: 700; font-size: 22px; color: #fff; font-variant-numeric: tabular-nums; }
.esg-score__clock .esg-icon { color: var(--c-accent); font-size: 14px; }
.esg-score__clock.is-final { font-size: 16px; color: var(--c-muted); }
.esg-score__cta { margin-top: 14px; }
.esg-score.is-flash .esg-score__n { animation: esg-flash 1.2s; }

/* Team badges */
.esg-badge { --badge: 40px; display: inline-grid; place-items: center; width: var(--badge); height: var(--badge); flex: none; }
.esg-badge svg, .esg-badge img { width: 100%; height: 100%; object-fit: contain; }
.esg-badge.is-xl { filter: drop-shadow(0 0 16px color-mix(in srgb, var(--team, #2f8cff) 70%, transparent)); }

/* ---------- 7. Today's matches strip ---------- */
.esg-today { display: flex; flex-direction: row; align-items: center; gap: 16px; padding: 14px 18px; }
.esg-today:has(.esg-today__all) { padding-top: 28px; }
.esg-today__intro { flex: 0 0 150px; }
.esg-today__intro .esg-panel__title { font-size: 20px; line-height: 1.1; }
.esg-today__intro p { margin: 4px 0 0; font-size: 12.5px; color: rgba(255, 255, 255, .75); }
.esg-today__all { position: absolute; top: 7px; right: 18px; }
.esg-strip { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 12px; overflow-x: auto; scrollbar-width: thin; padding: 2px; scroll-snap-type: x mandatory; }
.esg-strip.is-stacked { grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; }
.esg-mcard {
	position: relative; scroll-snap-align: start;
	display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px;
	min-height: 74px; padding: 22px 12px 8px;
	border-radius: 8px;
	background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .015));
	border: 1px solid var(--line);
	color: #fff;
}
.esg-mcard:hover { border-color: rgba(var(--c-primary-rgb), .7); color: #fff; transform: translateY(-2px); }
.esg-mcard.is-highlight { border-color: var(--c-live); box-shadow: 0 0 0 1px rgba(var(--c-live-rgb), .6), 0 0 18px rgba(var(--c-live-rgb), .35), inset 0 0 30px rgba(var(--c-live-rgb), .08); }
.esg-mcard__badge { position: absolute; top: 7px; left: 10px; font-size: 10px; font-weight: 700; letter-spacing: .04em; color: rgba(255, 255, 255, .9); }
.esg-mcard.is-live .esg-mcard__badge { background: var(--c-live); color: #fff; padding: 2px 6px; border-radius: 3px; top: 6px; }
.esg-mcard.is-finished .esg-mcard__badge { color: var(--c-muted); }
.esg-mcard__team { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 38px; }
.esg-mcard__team b { font-size: 11px; font-weight: 700; letter-spacing: .03em; }
.esg-mcard__mid { text-align: center; min-width: 0; }
.esg-mcard__score { font-family: var(--f-head); font-weight: 800; font-size: 24px; letter-spacing: .04em; white-space: nowrap; }
.esg-mcard__vs { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; }
.esg-mcard__vs b { font-weight: 700; }
.esg-mcard__vs i { font-style: normal; font-size: 10px; color: var(--c-muted); }
.esg-mcard__time { display: block; font-size: 11.5px; color: var(--c-muted); margin-top: 4px; }

/* ---------- 8. Tournaments ---------- */
.esg-tcards { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 10px; }
.esg-tcards.is-archive { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--gap); }
.esg-tcard { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; aspect-ratio: 196 / 198; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); color: #fff; isolation: isolate; }
.esg-tcard:hover { color: #fff; border-color: rgba(var(--c-primary-rgb), .8); box-shadow: var(--glow-blue); }
.esg-tcard:hover .esg-tcard__media img { transform: scale(1.06); }
.esg-tcard:hover .esg-circle { background: var(--c-accent); color: var(--c-accent-text); border-color: var(--c-accent); }
.esg-tcard__media { position: absolute; inset: 0; z-index: -1; }
.esg-tcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.esg-tcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(5, 8, 23, .95) 0%, rgba(5, 8, 23, .55) 42%, transparent 70%); }
.esg-tcard__body { padding: 10px 10px 12px; display: flex; flex-direction: column; }
.esg-tcard__title { font-family: var(--f-head); font-weight: 800; font-size: clamp(20px, 1.9vw, 26px); line-height: 1; text-transform: uppercase; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }
.esg-tcard__prize { font-family: var(--f-head); font-weight: 700; font-size: 17px; color: var(--c-accent); margin-top: 8px; }
.esg-tcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 4px; }
.esg-tcard__dates { font-size: 11.5px; color: rgba(255, 255, 255, .8); }

/* ---------- 9. Lists (news / videos) ---------- */
.esg-list { display: flex; flex-direction: column; gap: 8px; }
.esg-litem { display: grid; grid-template-columns: 44% 1fr; gap: 12px; align-items: center; color: #fff; border-radius: 6px; }
.esg-litem:hover { color: #fff; }
.esg-litem:hover .esg-litem__title { color: var(--c-accent); }
.esg-litem__media, .esg-litem__media-wrap { position: relative; display: block; aspect-ratio: 165 / 62; border-radius: 6px; overflow: hidden; }
.esg-litem.is-video { grid-template-columns: 42% 1fr; }
.esg-litem.is-video .esg-litem__media, .esg-litem.is-video .esg-litem__media-wrap { aspect-ratio: 125 / 63; }
.esg-litem__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.esg-litem:hover .esg-litem__media img { transform: scale(1.06); }
.esg-litem__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.esg-litem__title { font-weight: 600; font-size: 12.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
.esg-meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 11px; color: var(--c-muted); }
.esg-meta i { font-style: normal; opacity: .7; }
.esg-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #0a0f2a; font-size: 13px; box-shadow: 0 4px 16px rgba(0, 0, 0, .5); padding-left: 2px; }
.esg-duration { position: absolute; right: 5px; bottom: 5px; padding: 1px 5px; font-size: 10.5px; font-weight: 700; border-radius: 3px; background: rgba(0, 0, 0, .75); }
.esg-litem.is-card { grid-template-columns: 1fr; gap: 10px; }
.esg-litem.is-card .esg-litem__media-wrap, .esg-litem.is-card .esg-litem__media { aspect-ratio: 16 / 9; }
.esg-litem.is-card .esg-litem__title { font-size: 15px; }
.esg-vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px var(--gap); }

/* Placeholders (no image) */
.is-placeholder { display: grid !important; place-items: center; color: rgba(255, 255, 255, .35); font-size: 34px; background: radial-gradient(circle at 30% 20%, rgba(var(--c-primary-rgb), .6), transparent 60%), radial-gradient(circle at 80% 90%, rgba(var(--c-secondary-rgb), .6), transparent 60%), #0a1034; }
.is-placeholder.ph-1 { background: radial-gradient(circle at 70% 20%, rgba(var(--c-secondary-rgb), .7), transparent 60%), radial-gradient(circle at 10% 90%, rgba(var(--c-live-rgb), .5), transparent 60%), #120a30; }
.is-placeholder.ph-2 { background: radial-gradient(circle at 50% 30%, rgba(var(--c-accent-rgb), .35), transparent 60%), radial-gradient(circle at 20% 90%, rgba(var(--c-primary-rgb), .6), transparent 60%), #06122e; }

/* ---------- 10. Game hub ---------- */
.esg-games { flex: 1; display: grid; grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 8px; }
.esg-game { --game: var(--c-primary); position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 190px; border-radius: 6px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); color: #fff; isolation: isolate; }
.esg-game:hover { color: #fff; border-color: var(--game); box-shadow: 0 0 20px color-mix(in srgb, var(--game) 60%, transparent); transform: translateY(-3px); }
.esg-game__media { position: absolute; inset: 0; z-index: -1; }
.esg-game__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.esg-game:hover .esg-game__media img { transform: scale(1.07); }
.esg-game::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(5, 8, 23, .96) 8%, rgba(5, 8, 23, .2) 45%, transparent 70%); }
.esg-game__body { padding: 8px 6px 9px; text-align: center; }
.esg-game__name { display: block; font-family: var(--f-head); font-weight: 800; font-size: 15px; line-height: 1; text-transform: uppercase; margin-bottom: 7px; text-shadow: 0 2px 8px #000; }
.esg-game__live { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; color: rgba(255, 255, 255, .85); white-space: nowrap; }
.esg-game__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--c-muted); }
.esg-game__live.has-live i { background: var(--c-accent); box-shadow: 0 0 6px var(--c-accent); }

/* ---------- 11. Rankings table ---------- */
.esg-table-wrap { overflow-x: auto; border-radius: 6px; background: rgba(0, 0, 0, .18); border: 1px solid rgba(var(--c-border-rgb), .6); }
.esg-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.esg-table th { font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); text-align: left; padding: 8px 10px; background: rgba(255, 255, 255, .03); border-bottom: 1px solid rgba(var(--c-border-rgb), .8); }
.esg-table td { padding: 7px 10px; border-bottom: 1px solid rgba(var(--c-border-rgb), .45); white-space: nowrap; }
.esg-table tr:last-child td { border-bottom: 0; }
.esg-table tbody tr { transition: background .2s; }
.esg-table tbody tr:hover { background: rgba(var(--c-primary-rgb), .08); }
.esg-table .is-rank { width: 34px; color: #fff; font-weight: 600; text-align: center; }
.esg-table .is-num { font-variant-numeric: tabular-nums; }
.esg-table .is-team a { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.esg-table .is-team a:hover span { color: var(--c-accent); }
.esg-form { display: inline-flex; gap: 4px; }
.esg-form i { width: 8px; height: 8px; border-radius: 50%; }
.esg-form .is-w { background: var(--c-accent); box-shadow: 0 0 5px rgba(var(--c-accent-rgb), .6); }
.esg-form .is-l { background: var(--c-live); box-shadow: 0 0 5px rgba(var(--c-live-rgb), .6); }
.esg-form .is-d { background: var(--c-muted); }

/* ---------- 12. Schedule ---------- */
.esg-sched { display: flex; flex-direction: column; border-radius: 6px; background: rgba(0, 0, 0, .18); border: 1px solid rgba(var(--c-border-rgb), .6); }
.esg-sched__item { display: flex; align-items: center; gap: 6px; padding: 8px 10px 8px 12px; }
.esg-sched__item + .esg-sched__item { border-top: 1px solid rgba(var(--c-border-rgb), .6); }
.esg-sched__link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; color: #fff; }
.esg-sched__link:hover { color: #fff; }
.esg-sched__link:hover strong { color: var(--c-accent); }
.esg-sched__time { font-family: var(--f-head); font-weight: 700; font-size: 17px; width: 44px; flex: none; font-variant-numeric: tabular-nums; }
.esg-sched__info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.esg-sched__info small { font-size: 9.5px; color: var(--c-muted); }
.esg-sched__info strong { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .2s; }
.esg-sched__info em { font-style: normal; font-size: 11px; color: var(--c-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.esg-sched__badges { display: flex; gap: 6px; flex: none; }
.esg-remind { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: #fff; font-size: 14px; cursor: pointer; transition: .2s; }
.esg-remind:hover { border-color: var(--c-accent); color: var(--c-accent); }
.esg-remind[aria-pressed="true"] { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-accent-text); box-shadow: 0 0 12px rgba(var(--c-accent-rgb), .6); }

/* ---------- 13. Inner pages ---------- */
.esg-banner {
	position: relative; margin-bottom: var(--gap);
	border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
	background:
		linear-gradient(90deg, rgba(var(--c-bg-rgb), .92), rgba(var(--c-bg-rgb), .55)),
		var(--banner, radial-gradient(circle at 15% 0%, rgba(var(--c-primary-rgb), .5), transparent 55%)) center / cover,
		radial-gradient(circle at 90% 100%, rgba(var(--c-secondary-rgb), .5), transparent 55%),
		var(--c-surface);
}
.esg-banner.is-team { background: linear-gradient(90deg, rgba(var(--c-bg-rgb), .9), rgba(var(--c-bg-rgb), .4)), radial-gradient(circle at 10% 50%, color-mix(in srgb, var(--team) 60%, transparent), transparent 55%), var(--c-surface); }
.esg-banner__inner { padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 44px); max-width: 900px; }
.esg-banner__title { font-size: clamp(30px, 4.4vw, 54px); text-transform: uppercase; margin: 0; }
.esg-banner__title span { color: var(--c-accent); }
.esg-banner__sub { margin: 10px 0 0; color: rgba(255, 255, 255, .8); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.esg-banner__sub p { margin: 0; }
.esg-banner__prize { font-family: var(--f-head); font-weight: 800; font-size: 34px; color: var(--c-accent); margin: 6px 0 16px; }
.esg-team-head { display: flex; align-items: center; gap: 28px; }

.esg-page { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--gap); align-items: start; }
.esg-page.esg-no-side, .esg-no-sidebar .esg-page:not(:has(.esg-page__side)) { grid-template-columns: minmax(0, 1fr); }
.esg-page__main { min-width: 0; }
.esg-page__side { display: flex; flex-direction: column; gap: var(--gap); position: sticky; top: 84px; }
.esg-page__side .esg-panel + .esg-panel { margin-top: 0; }

.esg-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--gap); }
.esg-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, transform .3s var(--ease); }
.esg-card:hover { border-color: rgba(var(--c-primary-rgb), .7); transform: translateY(-3px); }
.esg-card__link { position: relative; display: block; }
.esg-card__media { aspect-ratio: 16 / 9; overflow: hidden; }
.esg-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.esg-card:hover .esg-card__media img { transform: scale(1.05); }
.esg-card__body { padding: 14px 16px 18px; }
.esg-card__title { font-size: 21px; margin: 2px 0 8px; }
.esg-card__excerpt { margin: 10px 0 0; color: rgba(255, 255, 255, .72); font-size: 13.5px; }

.esg-entry { font-size: 15.5px; line-height: 1.75; padding: clamp(18px, 3vw, 34px); }
.esg-entry > *:last-child { margin-bottom: 0; }
.esg-entry h2 { font-size: 28px; margin-top: 1.4em; }
.esg-entry h3 { font-size: 22px; margin-top: 1.3em; }
.esg-entry a { color: var(--c-accent); text-decoration: underline; text-underline-offset: 3px; }
.esg-entry blockquote { margin: 1.5em 0; padding: 12px 20px; border-left: 3px solid var(--c-accent); background: rgba(255, 255, 255, .03); border-radius: 0 8px 8px 0; font-size: 1.1em; }
.esg-entry img { border-radius: 8px; }
.esg-entry table { width: 100%; border-collapse: collapse; }
.esg-entry th, .esg-entry td { border: 1px solid var(--line); padding: 8px 10px; }
.esg-entry pre { overflow: auto; background: rgba(0, 0, 0, .35); padding: 14px; border-radius: 8px; }
.esg-entry .alignwide { margin-left: -4%; margin-right: -4%; }
.esg-entry .alignfull { margin-left: calc(-1 * clamp(18px, 3vw, 34px)); margin-right: calc(-1 * clamp(18px, 3vw, 34px)); max-width: none; }
.esg-entry .alignleft { float: left; margin: 0 1.2em 1em 0; }
.esg-entry .alignright { float: right; margin: 0 0 1em 1.2em; }
.esg-entry .aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, .wp-element-caption { font-size: 12.5px; color: var(--c-muted); text-align: center; }
.sticky .esg-card__title::before { content: "★ "; color: var(--c-accent); }
.esg-fullwidth.esg-entry { padding: 0; }
.esg-front-content { margin-top: var(--gap); }

.esg-tags { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.esg-tags a { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; text-decoration: none; color: var(--c-text); }
.esg-postnav .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: var(--gap); }
.esg-postnav a { display: block; padding: 14px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.esg-postnav .nav-next { text-align: right; }
.esg-postnav small { display: block; color: var(--c-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.esg-postnav span { font-weight: 600; }

.esg-pagination { margin-top: 24px; }
.esg-pagination .nav-links { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.esg-pagination .page-numbers { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); font-weight: 600; }
.esg-pagination .page-numbers.current { background: var(--c-accent); color: var(--c-accent-text); border-color: var(--c-accent); }

/* Match archive */
.esg-tabs { display: flex; gap: 6px; margin-bottom: var(--gap); flex-wrap: wrap; }
.esg-tabs a { padding: 9px 18px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); font-weight: 600; font-size: 13px; }
.esg-tabs a.is-active { background: var(--c-accent); color: var(--c-accent-text); border-color: var(--c-accent); }
.esg-tabs a.is-live:not(.is-active)::before { content: "● "; color: var(--c-live); }
.esg-mrows { display: flex; flex-direction: column; gap: 8px; }
.esg-mrows__day { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); margin: 14px 4px 2px; }
.esg-mrows__day:first-child { margin-top: 0; }
.esg-mrow { display: grid; grid-template-columns: 70px 1fr 90px 1fr minmax(0, 1.1fr) 90px; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 8px; border: 1px solid rgba(var(--c-border-rgb), .6); background: rgba(255, 255, 255, .02); color: #fff; }
.esg-mrow:hover { color: #fff; border-color: rgba(var(--c-primary-rgb), .7); background: rgba(var(--c-primary-rgb), .06); }
.esg-mrow.is-live { border-color: rgba(var(--c-live-rgb), .6); }
.esg-mrow__when strong { display: block; font-family: var(--f-head); font-size: 20px; line-height: 1; }
.esg-mrow__when small { color: var(--c-muted); font-size: 11px; }
.esg-mrow__team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.esg-mrow__team b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.esg-mrow__team.is-a { justify-content: flex-end; text-align: right; }
.esg-mrow__score { text-align: center; font-family: var(--f-head); font-weight: 800; font-size: 26px; }
.esg-mrow__score i { font-style: normal; font-size: 18px; color: var(--c-muted); }
.esg-mrow__meta { font-size: 12px; color: var(--c-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.esg-mrow__status { text-align: right; }

/* Stats & facts */
.esg-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--gap); margin-bottom: var(--gap); }
.esg-stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.esg-stat b { font-family: var(--f-head); font-size: 28px; line-height: 1; }
.esg-stat span:last-child { color: var(--c-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.esg-stat .esg-form i { width: 12px; height: 12px; }
.esg-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 0; }
.esg-facts dt { color: var(--c-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.esg-facts dd { margin: 2px 0 0; font-weight: 600; }
.esg-facts a { color: var(--c-accent); }

/* Player */
.esg-player { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; }
.esg-player iframe, .esg-player video, .esg-player object, .esg-player embed { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }
.esg-player.is-poster img { width: 100%; height: 100%; object-fit: cover; }
.esg-video-title { font-size: 30px; margin: 16px 0 6px; }

.esg-none { text-align: center; padding: 40px 20px; }
.esg-404 { text-align: center; padding: 70px 20px 90px; max-width: 640px; margin: 0 auto; }
.esg-404__code { font-family: var(--f-head); font-weight: 800; font-size: clamp(90px, 18vw, 180px); line-height: 1; margin: 0; background: linear-gradient(90deg, var(--c-primary), var(--c-secondary)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 30px rgba(var(--c-primary-rgb), .5)); }
.esg-empty { color: var(--c-muted); }

/* Forms / comments / widgets */
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], textarea, select { width: 100%; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); color: var(--c-text); }
textarea { min-height: 130px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: rgba(var(--c-primary-rgb), .8); }
.esg-comments { margin-top: var(--gap); }
.comment-list { list-style: none; padding: 0; margin: 0 0 20px; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-body { padding: 14px 0; border-bottom: 1px solid rgba(var(--c-border-rgb), .6); }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: 11.5px; color: var(--c-muted); margin: 2px 0 8px 54px; }
.comment-content { margin-left: 54px; }
.reply a { font-size: 12px; color: var(--c-primary); margin-left: 54px; }
.comment-form p { margin-bottom: 12px; }
.comment-form label { display: block; font-size: 12px; color: var(--c-muted); margin-bottom: 4px; }
.comment-form-cookies-consent label { display: inline; }
.widget { font-size: 13.5px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 7px 0; border-bottom: 1px solid rgba(var(--c-border-rgb), .5); }
.widget li:last-child { border-bottom: 0; }
.esg-page__side .widget-title { margin-bottom: 12px; }

/* ---------- 14. Footer ---------- */
.esg-footer { margin-top: 28px; padding: 26px 8px 6px; border-top: 1px solid var(--line); }
.esg-footer__widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; padding-bottom: 26px; margin-bottom: 20px; border-bottom: 1px solid rgba(var(--c-border-rgb), .6); }
.esg-footer .widget-title { font-size: 16px; text-transform: uppercase; }
.esg-footer__bar { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.esg-footer__brand { --logo-h: 30px; }
.esg-footer__menu { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; font-size: 13px; color: var(--c-muted); flex: 1; }
.esg-footer nav { flex: 1; }
.esg-social { display: flex; gap: 8px; margin-left: auto; }
.esg-social a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); background: rgba(var(--c-surface-rgb), .6); font-size: 16px; }
.esg-social a:hover { color: var(--c-accent-text); background: var(--c-accent); border-color: var(--c-accent); }
.esg-footer__copy { margin: 18px 0 0; font-size: 12px; color: var(--c-muted); text-align: center; }

/* Toast */
.esg-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); padding: 12px 20px; border-radius: 10px; background: var(--c-surface); border: 1px solid rgba(var(--c-accent-rgb), .6); box-shadow: 0 0 20px rgba(var(--c-accent-rgb), .3), 0 10px 40px rgba(0, 0, 0, .5); font-weight: 600; font-size: 13.5px; opacity: 0; pointer-events: none; transition: .35s var(--ease); z-index: 999; }
.esg-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 15. Animations ---------- */
@keyframes esg-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes esg-flash { 0% { color: var(--c-accent); transform: scale(1.25); } 100% { color: #fff; transform: none; } }
.esg-mcard.is-live .esg-mcard__badge, .esg-pill.is-live .esg-icon { animation: esg-pulse 1.8s infinite; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- 16. Responsive ---------- */
@media (max-width: 1360px) {
	.esg-search input[type="search"] { width: 170px; }
	.esg-menu a { padding: 8px 9px; }
	.esg-header__inner { gap: 16px; }
}
@media (max-width: 1200px) {
	.esg-tcard { aspect-ratio: auto; height: 280px; }
	.esg-section.esg-w-wide, .esg-section.esg-w-two-thirds { --span: 20 !important; }
	.esg-section.esg-w-medium, .esg-section.esg-w-narrow, .esg-section.esg-w-third { --span: 10 !important; }
	.esg-page { grid-template-columns: minmax(0, 1fr) 280px; }
	.esg-mrow { grid-template-columns: 60px 1fr 80px 1fr 90px; }
	.esg-mrow__meta { display: none; }
}
@media (max-width: 1240px) {
	.esg-burger { display: grid; }
	.esg-header__nav {
		position: absolute; top: 100%; left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 14px;
		padding: 16px; margin-top: 4px;
		background: rgba(var(--c-bg-rgb), .98); border: 1px solid var(--line); border-radius: var(--radius);
		box-shadow: 0 20px 50px rgba(0, 0, 0, .6);
		opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .25s var(--ease);
	}
	.esg-header.is-open .esg-header__nav { opacity: 1; visibility: visible; transform: none; }
	.esg-menu { flex-direction: column; align-items: stretch; }
	.esg-menu a { padding: 12px; font-size: 15px; border-bottom: 1px solid rgba(var(--c-border-rgb), .5); border-radius: 0; }
	.esg-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding-left: 14px; }
	.esg-header__tools { flex-wrap: wrap; }
	.esg-search { flex: 1 1 100%; }
	.esg-search input[type="search"] { width: 100%; height: 42px; }
	.esg-page { grid-template-columns: minmax(0, 1fr); }
	.esg-page__side { position: static; }
	.esg-today { flex-direction: column; align-items: stretch; }
	.esg-today__intro { flex: none; }
	.esg-today__all { top: 16px; right: 18px; }
}
@media (max-width: 820px) {
	.esg-grid > .esg-section { --span: 20 !important; }
	.esg-tcards:not(.is-archive) { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(220px, 62%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
	.esg-tcards:not(.is-archive) .esg-tcard { scroll-snap-align: start; }
	.esg-score__row { gap: 10px; }
	.esg-score__center { min-width: 0; }
	.esg-score__n { font-size: 44px; min-width: 46px; }
	.esg-score__vs { font-size: 20px; padding: 4px 12px; }
	.esg-score__name { font-size: 19px; }
	.esg-badge.is-xl { --badge: 64px !important; }
	.esg-hero__tagline { display: none; }
	.esg-hero__slide { padding-top: 54px; }
	.esg-btn--lg { height: 46px; padding: 0 26px; font-size: 15px; }
	.esg-games { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.esg-mrow { grid-template-columns: 1fr 64px 1fr; row-gap: 6px; }
	.esg-mrow__when, .esg-mrow__status { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
	.esg-mrow__when { order: -1; gap: 10px; justify-content: flex-start; }
	.esg-mrow__when strong { font-size: 16px; }
	.esg-mrow__status { order: -1; margin-top: -30px; justify-content: flex-end; }
	.esg-mrow__team b { font-size: 13px; }
	.esg-team-head { flex-direction: column; align-items: flex-start; gap: 14px; }
}
@media (max-width: 560px) {
	.esg-site { padding: 6px; }
	.esg-frame { padding: 0 8px 8px; }
	.esg-logo__text { font-size: 22px; }
	.esg-litem, .esg-litem.is-video { grid-template-columns: 40% 1fr; }
	.esg-score__org { display: none; }
	.esg-hero__badges { left: 12px; top: 12px; }
	.esg-social { margin-left: 0; }
	.esg-footer__bar { flex-direction: column; align-items: flex-start; }
	.esg-table .is-form { display: none; }
}

/* ---------- 17. Spacing & core block widgets ---------- */
.esg-grid + .esg-page, .esg-grid + .esg-panel, .esg-banner + .esg-page { margin-top: var(--gap); }
.esg-banner + .esg-page { margin-top: 0; }
.wp-block-search__inside-wrapper { display: flex; gap: 8px; }
.wp-block-search__button, .wp-block-button__link, button[type="submit"]:not(.esg-btn), input[type="submit"] { background: var(--c-accent); color: var(--c-accent-text); border: 0; border-radius: 8px; padding: 0 16px; min-height: 40px; font-weight: 700; cursor: pointer; }
.wp-block-search__label { font-weight: 600; display: block; margin-bottom: 6px; }
.widget .wp-block-heading, .esg-page__side h2 { font-size: 19px; text-transform: uppercase; }
.wp-block-latest-comments { padding: 0; }
.is-placeholder.has-logo { align-content: start; padding-top: 12%; }
.is-placeholder .esg-media__logo { width: 46% !important; height: auto !important; max-height: 55%; object-fit: contain !important; filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .6)); transform: none !important; }
.esg-litem__media.is-placeholder.has-logo, .esg-card__media.is-placeholder.has-logo { padding-top: 0; align-content: center; }
.esg-tcard__media.is-placeholder { align-content: start; padding-top: 14%; }

/* ---------- 18. Fill empty space ---------- */
.esg-panel > .esg-list { justify-content: flex-start; }
.esg-litem.is-result .esg-litem__media { display: flex !important; align-items: center; justify-content: space-evenly; gap: 6px; padding: 0 8px; background: radial-gradient(circle at 20% 50%, color-mix(in srgb, var(--ta) 45%, transparent), transparent 60%), radial-gradient(circle at 80% 50%, color-mix(in srgb, var(--tb) 45%, transparent), transparent 60%), #0a1034; }
.esg-litem.is-result .esg-litem__media b { font-family: var(--f-head); font-size: 22px; font-weight: 800; white-space: nowrap; }
.esg-game__media.is-placeholder { background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--game) 75%, transparent), transparent 65%), linear-gradient(180deg, color-mix(in srgb, var(--game) 35%, #050817), #050817); color: rgba(255, 255, 255, .92); }
.esg-game__initial { font-family: var(--f-head); font-weight: 800; font-size: clamp(48px, 5vw, 84px); line-height: 1; text-shadow: 0 0 30px var(--game); align-self: center; margin-bottom: 30%; }
.esg-tcard__media.is-placeholder .esg-tcard__initial { font-family: var(--f-head); font-weight: 800; font-size: 64px; color: rgba(255, 255, 255, .25); }
.esg-panel__empty { flex: 1; display: grid; place-items: center; text-align: center; padding: 20px; border: 1px dashed var(--line); border-radius: 8px; color: var(--c-muted); font-size: 13px; }
