/* ==========================================================================
   LETTIK Esports — main stylesheet
   Black / blood-red / bone-white, with the bevelled corners of the LK mark.
   ========================================================================== */

:root {
	--bg: #070708;
	--bg-2: #0c0c0e;
	--surface: #131316;
	--surface-2: #1a1a1f;
	--surface-3: #232329;
	--line: rgba(255, 255, 255, 0.08);
	--line-strong: rgba(255, 255, 255, 0.16);
	--text: #f4f0e8;
	--text-2: #c9c5bd;
	--muted: #8d8b92;
	--red: #e0141e;
	--red-2: #ff2a36;
	--red-deep: #8e0a10;
	--red-glow: rgba(224, 20, 30, 0.45);
	--win: #2fbf71;
	--loss: #ef4b52;
	--steam: #1b2838;
	--steam-2: #2a475e;

	--font-display: 'Russo One', 'Chakra Petch', system-ui, sans-serif;
	--font-label: 'Chakra Petch', 'Barlow', system-ui, sans-serif;
	--font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;

	--container: 1240px;
	--gutter: clamp(16px, 4vw, 32px);
	--radius: 4px;
	--cut: 14px;
	--header-h: 72px;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

/* Subtle diagonal texture over the whole page. */
body::before {
	content: '';
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: -1;
	background:
		radial-gradient(1200px 600px at 85% -10%, rgba(224, 20, 30, 0.12), transparent 60%),
		radial-gradient(900px 500px at -10% 110%, rgba(142, 10, 16, 0.18), transparent 60%),
		repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.012) 0 2px, transparent 2px 14px),
		var(--bg);
}

[hidden] { display: none !important; }
img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration-color: var(--red); text-underline-offset: 3px; }
a:hover { color: #fff; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--red); color: #fff; }

:focus-visible { outline: 2px solid var(--red-2); outline-offset: 3px; }

.screen-reader-text,
.hp {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute; left: 16px; top: -60px; z-index: 100;
	background: var(--red); color: #fff; padding: 10px 16px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; }

.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.spacer { height: clamp(48px, 7vw, 80px); }
.spacer--sm { height: 40px; }

/* Bevelled corners — the signature shape of the LK logo. */
.cut {
	clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}

/* ---------- Icons ---------- */
.icon { display: inline-flex; width: 1.1em; height: 1.1em; flex: none; }
.icon svg { width: 100%; height: 100%; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.1; margin: 0 0 0.5em; letter-spacing: 0.01em; }

.eyebrow {
	margin: 0 0 10px;
	font-family: var(--font-label);
	font-weight: 700;
	font-size: 0.8rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--red-2);
	display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: currentColor; }

.page-title { font-size: clamp(2.2rem, 6vw, 4.4rem); text-transform: uppercase; margin: 0 0 12px; }
.section-title { font-size: clamp(1.6rem, 3.4vw, 2.4rem); text-transform: uppercase; margin: 0; }
.section-title--sm { font-size: 1.4rem; margin: 48px 0 18px; display: flex; align-items: baseline; gap: 12px; }
.section-title .count, .section-title--sm .count { font-family: var(--font-label); font-size: 0.9rem; color: var(--muted); letter-spacing: 0.1em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-2); max-width: 60ch; margin: 0 0 20px; }

/* ---------- Buttons ---------- */
.btn {
	--btn-bg: var(--surface-2);
	--btn-fg: var(--text);
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 13px 24px;
	border: 0;
	background: var(--btn-bg);
	color: var(--btn-fg);
	font-family: var(--font-label);
	font-weight: 700;
	font-size: 0.95rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
	transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s, filter 0.2s;
	white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 1.25em; height: 1.25em; }

.btn-primary { --btn-bg: linear-gradient(135deg, var(--red-2), var(--red) 45%, var(--red-deep)); --btn-fg: #fff; box-shadow: 0 10px 30px -10px var(--red-glow); }
.btn-primary:hover { filter: brightness(1.12); }
.btn-ghost { --btn-bg: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-ghost:hover { --btn-bg: rgba(255, 255, 255, 0.12); }
.btn-sm { padding: 9px 16px; font-size: 0.8rem; }
.btn-lg { padding: 17px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }

.link-arrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-family: var(--font-label); font-weight: 700; font-size: 0.85rem;
	letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: var(--text-2);
}
.link-arrow .icon { color: var(--red-2); transition: transform 0.2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow--back:hover .icon { transform: translateX(-4px); }

/* Valve's official Steam sign-in button: shown at its native size, never recoloured. */
.steam-signin { display: inline-block; line-height: 0; transition: filter 0.2s, transform 0.2s var(--ease); }
.steam-signin:hover { filter: brightness(1.15); transform: translateY(-1px); }
.steam-signin img { display: block; image-rendering: auto; }
.reg-panel .steam-signin, .profile-card .steam-signin { justify-self: center; }

/* ---------- Badges ---------- */
.badge {
	display: inline-flex; align-items: center; gap: 7px;
	padding: 5px 10px;
	font-family: var(--font-label); font-weight: 700; font-size: 0.72rem;
	letter-spacing: 0.14em; text-transform: uppercase;
	background: var(--surface-3); color: var(--text-2);
	clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}
.badge .icon { width: 1em; height: 1em; }
.badge-live { background: var(--red); color: #fff; }
.badge-open { background: rgba(47, 191, 113, 0.14); color: #5fe19a; }
.badge-upcoming { background: rgba(255, 255, 255, 0.08); }
.badge-full, .badge-closed { background: rgba(255, 255, 255, 0.06); color: var(--muted); }
.badge-finished { background: rgba(255, 255, 255, 0.05); color: var(--muted); }
.badge-game { background: rgba(0, 0, 0, 0.55); color: var(--text); }
.badge-reg-approved { background: rgba(47, 191, 113, 0.14); color: #5fe19a; }
.badge-reg-pending { background: rgba(255, 184, 0, 0.12); color: #ffc94d; }
.badge-reg-rejected { background: rgba(239, 75, 82, 0.14); color: #ff7b80; }

.live-dot {
	width: 8px; height: 8px; border-radius: 50%;
	background: #fff; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
	animation: pulse 1.6s infinite;
	flex: none;
}
.nav .live-dot { background: var(--red-2); margin-right: 7px; }
@keyframes pulse {
	0% { box-shadow: 0 0 0 0 rgba(255, 42, 54, 0.7); }
	70% { box-shadow: 0 0 0 8px rgba(255, 42, 54, 0); }
	100% { box-shadow: 0 0 0 0 rgba(255, 42, 54, 0); }
}

.tag {
	font-family: var(--font-label); font-weight: 700; font-size: 0.72rem;
	letter-spacing: 0.16em; text-transform: uppercase; color: var(--red-2); text-decoration: none;
}

.flag { display: inline-block; width: 18px; height: 12px; margin-right: 8px; vertical-align: 1px; border-radius: 1px; background: var(--surface-3); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12); flex: none; }
.flag-lv { background: linear-gradient(#9e3039 0 40%, #fff 40% 60%, #9e3039 60%); }
.flag-ee { background: linear-gradient(#0072ce 0 33.3%, #000 33.3% 66.6%, #fff 66.6%); }
.flag-lt { background: linear-gradient(#fdb913 0 33.3%, #006a44 33.3% 66.6%, #c1272d 66.6%); }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
	position: sticky; top: 0; z-index: 50;
	height: var(--header-h);
	background: rgba(7, 7, 8, 0.82);
	backdrop-filter: blur(14px) saturate(140%);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	border-bottom: 1px solid var(--line);
	transition: background 0.3s, border-color 0.3s;
}
.has-hero .site-header { position: fixed; left: 0; right: 0; background: linear-gradient(rgba(7, 7, 8, 0.7), rgba(7, 7, 8, 0)); border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.has-hero .site-header.is-scrolled { background: rgba(7, 7, 8, 0.9); border-color: var(--line); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
/* Paint header backgrounds under the 1px border too; otherwise the hero-page gradient repeats into it as a dark line. */
.site-header, .has-hero .site-header, .has-hero .site-header.is-scrolled { background-origin: border-box; background-repeat: no-repeat; }
.admin-bar .site-header { top: 32px; }

.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand-mark { width: 44px; height: auto; filter: drop-shadow(0 0 12px rgba(224, 20, 30, 0.35)); transition: transform 0.3s var(--ease); }
.brand:hover .brand-mark { transform: scale(1.06) rotate(-3deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-size: 1.35rem; color: var(--red); letter-spacing: 0.02em; text-shadow: 0 0 1px #000; }
.brand-sub { font-family: var(--font-label); font-weight: 700; font-size: 0.62rem; letter-spacing: 0.52em; color: var(--text); margin-top: 3px; }

.main-nav { flex: 1; }
.nav { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; justify-content: center; }
.nav a {
	position: relative;
	display: inline-flex; align-items: center; white-space: nowrap;
	padding: 10px 14px;
	font-family: var(--font-label); font-weight: 700; font-size: 0.88rem;
	letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: var(--text-2);
	transition: color 0.2s;
}
.nav a::after {
	content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
	background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease);
}
.nav a:hover, .nav .is-active a, .nav .current-menu-item a { color: #fff; }
.nav a:hover::after, .nav .is-active a::after, .nav .current-menu-item a::after { transform: scaleX(1); }
.nav-extra { display: none; }

.header-actions { display: flex; align-items: center; gap: 14px; flex: none; }

.lang-switch { display: flex; padding: 3px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line); clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px)); }
.lang-switch a { padding: 5px 9px; font-family: var(--font-label); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.12em; text-decoration: none; color: var(--muted); }
.lang-switch a:hover { color: #fff; }
.lang-switch a.is-current { background: var(--red); color: #fff; }

.account-chip { display: flex; align-items: center; gap: 9px; padding: 4px 12px 4px 4px; text-decoration: none; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: 0.9rem; max-width: 190px; }
.account-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-chip:hover { background: rgba(255, 255, 255, 0.1); }
.account-avatar { width: 28px; height: 28px; border-radius: 2px; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--text); }
.nav-toggle .icon { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: inline-flex; }

/* Long Latvian labels: tighten the desktop menu before it switches to the drawer. */
@media (max-width: 1360px) {
	.header-inner { gap: 18px; }
	.nav a { padding: 10px 10px; letter-spacing: 0.1em; }
	.nav a::after { left: 10px; right: 10px; }
}

@media (max-width: 1200px) {
	.nav-toggle { display: block; }
	.header-actions .lang-switch, .header-actions .account-chip, .header-actions .btn { display: none; }
	.header-inner { justify-content: space-between; }
	.main-nav {
		position: fixed; inset: var(--header-h) 0 0 0;
		background: rgba(7, 7, 8, 0.98);
		padding: 24px var(--gutter) 40px;
		display: flex; flex-direction: column; gap: 28px;
		transform: translateY(-8px); opacity: 0; visibility: hidden;
		transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
		overflow-y: auto;
	}
	.admin-bar .main-nav { top: calc(var(--header-h) + 46px); }
	.nav-open .main-nav { opacity: 1; transform: none; visibility: visible; }
	.nav { flex-direction: column; gap: 0; }
	.nav a { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: 0.04em; padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line); }
	.nav a::after { display: none; }
	.nav .is-active a { color: var(--red-2); }
	.nav-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
	.nav-open { overflow: hidden; }
	.has-hero.nav-open .site-header { background: rgba(7, 7, 8, 0.98); }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } #wpadminbar { position: fixed !important; } }

/* ==========================================================================
   Home — hero
   ========================================================================== */

.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-bg { position: relative; z-index: -2; display: block; aspect-ratio: 1672 / 941; max-height: 100vh; width: 100%; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; animation: heroZoom 18s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 7, 8, 0.35) 0%, rgba(7, 7, 8, 0) 18%, rgba(7, 7, 8, 0) 72%, var(--bg) 100%); pointer-events: none; }
/* Text sits on the wet floor, below the LETTIK ESPORTS wordmark (~80% of the artwork). */
.hero-content { position: relative; margin-top: min(-8vw, -40px); padding-bottom: 48px; display: grid; justify-items: center; text-align: center; }
@media (min-aspect-ratio: 16/8) { .hero-content { margin-top: -6vh; } }
.hero-kicker {
	display: inline-flex; align-items: center; gap: 4px;
	margin: 0 0 10px;
	font-family: var(--font-label); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.26em; text-transform: uppercase;
}
.hero-lead { margin: 0 0 26px; max-width: 52ch; color: var(--text-2); font-size: clamp(1.02rem, 1.6vw, 1.2rem); text-shadow: 0 2px 12px #000; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

@media (max-width: 700px) {
	.hero { padding-top: var(--header-h); }
	.hero-content { margin-top: -4px; padding-bottom: 36px; }
	.hero-actions { width: 100%; }
	.hero-actions .btn { flex: 1 1 100%; }
}

/* Next match strip overlapping the hero. */
.next-match-wrap { position: relative; z-index: 2; }
.next-match {
	display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px;
	padding: 24px 32px;
	background: linear-gradient(100deg, rgba(142, 10, 16, 0.55), rgba(19, 19, 22, 0.95) 38%), var(--surface);
	box-shadow: inset 0 0 0 1px var(--line);
}
.next-match-label .eyebrow { margin-bottom: 4px; color: #fff; }
.next-match-label .eyebrow::before { background: var(--red-2); }
.next-match-comp { margin: 0; color: var(--text-2); font-weight: 600; }
.next-match-teams { display: flex; align-items: center; justify-content: center; gap: 22px; font-family: var(--font-display); font-size: clamp(1.3rem, 2.6vw, 2rem); text-transform: uppercase; }
.nm-vs { font-family: var(--font-label); font-size: 0.95rem; color: var(--red-2); letter-spacing: 0.2em; }
.next-match-when { display: grid; gap: 6px; justify-items: end; color: var(--text-2); }

@media (max-width: 820px) {
	.next-match { grid-template-columns: 1fr; text-align: center; gap: 14px; padding: 22px; }
	.next-match-label .eyebrow { justify-content: center; }
	.next-match-when { justify-items: center; }
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section { padding: clamp(56px, 8vw, 104px) 0 0; }
.section--flush { padding-top: 8px; }
.site-main > .section:last-child, .site-main > article + .section { padding-bottom: clamp(56px, 8vw, 104px); }
.site-main { min-height: 60vh; }
.site-main > .section:last-child { padding-bottom: clamp(64px, 9vw, 120px); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }

/* Page hero */
.page-hero { position: relative; padding: clamp(64px, 10vw, 128px) 0 clamp(40px, 6vw, 64px); overflow: hidden; isolation: isolate; }
.page-hero--compact { padding: clamp(48px, 7vw, 88px) 0 clamp(28px, 4vw, 44px); }
.page-hero-bg { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; opacity: 0.35; mask-image: linear-gradient(180deg, #000 20%, transparent 100%); -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 100%); }
.page-hero--team .page-hero-bg { opacity: 0.45; background-position: center 35%; }
.page-hero .page-title { text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6); }

.steps { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.steps li { display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; background: rgba(19, 19, 22, 0.8); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; }
.steps span { display: grid; place-items: center; width: 30px; height: 30px; background: var(--red); font-family: var(--font-display); font-size: 0.95rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip { padding: 7px 14px; font-family: var(--font-label); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; color: var(--text-2); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.chip:hover { color: #fff; box-shadow: inset 0 0 0 1px var(--line-strong); }
.chip.is-active { background: var(--red); color: #fff; box-shadow: none; }

/* Empty states */
.empty {
	display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
	padding: 32px;
	background: linear-gradient(135deg, var(--surface), var(--bg-2));
	box-shadow: inset 0 0 0 1px var(--line);
}
.empty > .icon { width: 44px; height: 44px; color: var(--red); }
.empty > div { flex: 1 1 320px; }
.empty h3 { font-size: 1.3rem; margin-bottom: 6px; }
.empty p { margin: 0; color: var(--text-2); }

/* ==========================================================================
   News cards
   ========================================================================== */

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-grid > .news-card--large { grid-column: span 3; }
.news-grid:not(.news-grid--list) { grid-template-columns: 1.4fr 1fr; grid-auto-rows: auto; }
.news-grid:not(.news-grid--list) > .news-card--large { grid-column: 1; grid-row: span 3; }

.news-card {
	position: relative;
	display: flex; flex-direction: column;
	background: var(--surface);
	box-shadow: inset 0 0 0 1px var(--line);
	clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
	transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(224, 20, 30, 0.5), 0 20px 40px -20px var(--red-glow); }
.news-card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); }
.news-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.news-card:hover .news-card-media img { transform: scale(1.05); }
.news-card-body { padding: 20px 22px 24px; display: grid; gap: 10px; }
.news-card .meta, .article .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 0.85rem; color: var(--muted); }
.news-card-title { font-size: 1.2rem; margin: 0; line-height: 1.25; }
.news-card-title a { text-decoration: none; }
.news-card-title a::after { content: ''; position: absolute; inset: 0; }
.news-card-excerpt { margin: 0; color: var(--text-2); }

.news-card--large .news-card-title { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.news-grid--list .news-card--large { flex-direction: row; }
.news-grid--list .news-card--large .news-card-media { flex: 1.4; aspect-ratio: auto; min-height: 340px; }
.news-grid--list .news-card--large .news-card-body { flex: 1; align-content: center; padding: 32px; }

/* Home: compact side cards next to the large one. */
.news-grid:not(.news-grid--list) > .news-card:not(.news-card--large) { flex-direction: row; }
.news-grid:not(.news-grid--list) > .news-card:not(.news-card--large) .news-card-media { flex: 0 0 38%; aspect-ratio: 4 / 3; }
.news-grid:not(.news-grid--list) > .news-card:not(.news-card--large) .news-card-body { padding: 16px 18px; align-content: center; }
.news-grid:not(.news-grid--list) > .news-card:not(.news-card--large) .news-card-title { font-size: 1.05rem; }
.news-grid:not(.news-grid--list):has(> .news-card:only-child) { grid-template-columns: 1fr; }
.news-grid:not(.news-grid--list) > .news-card--large:only-child { flex-direction: row; }
.news-grid:not(.news-grid--list) > .news-card--large:only-child .news-card-media { flex: 1.5; aspect-ratio: auto; min-height: 380px; }
.news-grid:not(.news-grid--list) > .news-card--large:only-child .news-card-body { flex: 1; align-content: center; padding: 36px; }

@media (max-width: 960px) {
	.news-grid, .news-grid:not(.news-grid--list) { grid-template-columns: 1fr 1fr; }
	.news-grid > .news-card--large, .news-grid:not(.news-grid--list) > .news-card--large { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 700px) {
	.news-grid, .news-grid:not(.news-grid--list) { grid-template-columns: 1fr; }
	.news-grid .news-card, .news-grid .news-card--large, .news-grid:not(.news-grid--list) > .news-card--large:only-child { flex-direction: column !important; }
	.news-grid .news-card .news-card-media { flex: none !important; aspect-ratio: 16 / 9 !important; min-height: 0 !important; }
	.news-grid .news-card .news-card-body { padding: 18px 20px 22px !important; }
}

/* Pagination */
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; font-family: var(--font-label); font-weight: 700; }
.pagination .page-numbers.current { background: var(--red); box-shadow: none; }

/* ==========================================================================
   Article
   ========================================================================== */

.article-hero { position: relative; }
.article-hero-media { position: relative; max-height: 560px; overflow: hidden; }
.article-hero-media img { width: 100%; height: 100%; max-height: 560px; object-fit: cover; }
.article-hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 75%, var(--bg)); }
.article-head { position: relative; padding-top: 28px; }
.article-hero:not(:has(.article-hero-media)) .article-head { margin-top: 0; padding-top: 72px; }
.article-title { font-size: clamp(2rem, 5vw, 3.4rem); text-transform: uppercase; margin: 14px 0 32px; }
.article-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }

/* Prose (post/page content) */
.prose { color: var(--text-2); font-size: 1.1rem; }
.prose > * { margin-top: 0; margin-bottom: 1.1em; }
.prose h2 { color: var(--text); font-size: clamp(1.4rem, 2.6vw, 1.9rem); text-transform: uppercase; margin-top: 1.8em; display: flex; align-items: center; gap: 14px; }
.prose h2::before { content: ''; width: 6px; height: 1em; background: var(--red); clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%); flex: none; }
.prose h3 { color: var(--text); font-size: 1.3rem; margin-top: 1.5em; }
.prose strong { color: var(--text); }
.prose a { color: var(--text); }
.prose .lead { font-size: 1.3rem; color: var(--text); font-weight: 500; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.35em; }
.prose li::marker { color: var(--red); }
.prose ul.roster-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.prose ul.roster-list li { margin: 0; padding: 10px 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), inset 3px 0 0 var(--red); font-family: var(--font-label); font-size: 1.05rem; }
.prose ul.roster-list li strong { font-weight: 700; }
.prose .sign-off { margin-top: 2em; padding: 22px 26px; background: linear-gradient(100deg, rgba(142, 10, 16, 0.5), transparent); box-shadow: inset 3px 0 0 var(--red); font-family: var(--font-display); font-size: 1.2rem; text-transform: uppercase; }
.prose .sign-off strong { font-weight: 400; }
.prose blockquote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--red); color: var(--text); font-style: italic; }
.prose figure { margin-left: 0; margin-right: 0; }
.prose img { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.prose .wp-block-embed iframe { width: 100%; }
.intro { margin-bottom: 32px; }

/* ==========================================================================
   Tournaments
   ========================================================================== */

.t-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.t-grid--past .t-card { opacity: 0.75; }

.t-card {
	position: relative;
	display: flex; flex-direction: column;
	background: var(--surface);
	box-shadow: inset 0 0 0 1px var(--line);
	clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
	transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.t-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(224, 20, 30, 0.55), 0 20px 40px -20px var(--red-glow); }
.t-card-media { position: relative; display: block; aspect-ratio: 16 / 8; overflow: hidden; }
.t-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.t-card:hover .t-card-media img { transform: scale(1.05); }
.t-card-game { position: absolute; left: 14px; bottom: 12px; padding: 4px 10px; background: rgba(0, 0, 0, 0.7); font-family: var(--font-label); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.14em; }
.t-card-body { padding: 20px 22px 24px; display: grid; gap: 14px; flex: 1; align-content: start; }
.t-card-top { display: flex; justify-content: space-between; align-items: center; }
.t-card-mode { font-family: var(--font-display); font-size: 1.1rem; color: var(--red-2); }
.t-card-title { margin: 0; font-size: 1.35rem; }
.t-card-title a { text-decoration: none; }
.t-card-title a::after { content: ''; position: absolute; inset: 0; }
.t-card-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; color: var(--text-2); font-size: 0.95rem; }
.t-card-facts li { display: flex; align-items: center; gap: 10px; }
.t-card-facts .icon { color: var(--muted); }

.slots { display: grid; gap: 7px; }
.slots-bar { height: 6px; background: var(--surface-3); overflow: hidden; }
.slots-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--red-deep), var(--red-2)); box-shadow: 0 0 12px var(--red-glow); }
.slots-text { font-family: var(--font-label); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.08em; color: var(--muted); }

/* Single tournament */
.t-hero { position: relative; padding: clamp(72px, 12vw, 150px) 0 clamp(36px, 5vw, 56px); overflow: hidden; isolation: isolate; }
.t-hero-bg { position: absolute; inset: 0; z-index: -1; }
.t-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.t-hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 7, 8, 0.4), var(--bg) 95%), linear-gradient(90deg, rgba(7, 7, 8, 0.8), transparent 70%); }
.t-hero-badges { display: flex; gap: 10px; margin-bottom: 18px; }

.countdown { display: inline-flex; align-items: center; gap: 14px; margin-top: 8px; font-family: var(--font-label); font-weight: 700; }
.countdown-label { font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.countdown time { font-size: 1.1rem; }
.countdown .cd-units { display: flex; gap: 8px; }
.countdown .cd-unit { display: grid; justify-items: center; min-width: 58px; padding: 8px 10px; background: rgba(19, 19, 22, 0.9); box-shadow: inset 0 0 0 1px var(--line); clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px)); }
.countdown .cd-unit b { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; line-height: 1; color: #fff; }
.countdown .cd-unit i { font-style: normal; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.next-match .countdown .cd-unit { min-width: 48px; padding: 6px 8px; }
.next-match .countdown .cd-unit b { font-size: 1.2rem; }

.t-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
.t-side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 14px; }
@media (max-width: 1000px) { .t-layout { grid-template-columns: 1fr; } .t-side { position: static; order: -1; } }

.facts { list-style: none; margin: 0 0 36px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.fact { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 16px 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); --cut: 10px; }
.fact .icon { grid-row: span 2; width: 22px; height: 22px; color: var(--red-2); }
.fact-label { font-family: var(--font-label); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.fact strong { font-weight: 600; }

.bracket { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.bracket iframe { width: 100%; height: 560px; border: 0; }

.teams-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: team; }
.teams-list li { counter-increment: team; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; padding: 14px 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.teams-list li::before { content: counter(team, decimal-leading-zero); font-family: var(--font-display); color: var(--red-2); min-width: 28px; }
.teams-list li strong { font-family: var(--font-label); font-size: 1.05rem; }
.teams-list .muted { font-size: 0.92rem; flex: 1; }
.teams-list .is-pending { opacity: 0.7; }

/* Registration panel */
.reg-panel, .panel, .profile-card, .auth-steam, .auth-forms, .story {
	padding: 26px;
	background: linear-gradient(160deg, var(--surface-2), var(--surface) 60%);
	box-shadow: inset 0 0 0 1px var(--line);
}
.reg-panel { display: grid; gap: 16px; border-top: 3px solid var(--red); }
.panel-title { display: flex; align-items: center; gap: 12px; font-size: 1.25rem; text-transform: uppercase; margin: 0 0 4px; }
.panel-title .icon { color: var(--red-2); }
.reg-panel p { margin: 0; color: var(--text-2); }
.reg-closed { padding: 14px 16px; background: rgba(255, 255, 255, 0.04); }
.reg-state { display: flex; align-items: center; gap: 14px; padding: 16px; background: rgba(47, 191, 113, 0.1); box-shadow: inset 3px 0 0 var(--win); }
.reg-state .icon { width: 28px; height: 28px; color: var(--win); }
.reg-state div { display: grid; }
.reg-state span { color: var(--text-2); font-size: 0.9rem; }
.reg-state--pending { background: rgba(255, 184, 0, 0.08); box-shadow: inset 3px 0 0 #ffc94d; }
.reg-state--pending .icon { color: #ffc94d; }
.reg-state--rejected { background: rgba(239, 75, 82, 0.1); box-shadow: inset 3px 0 0 var(--loss); }
.reg-state--rejected .icon { color: var(--loss); }
.side-link { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: rgba(88, 101, 242, 0.12); box-shadow: inset 0 0 0 1px rgba(88, 101, 242, 0.35); text-decoration: none; font-weight: 600; }
.side-link .icon { width: 24px; height: 24px; color: #8b95ff; }

.captain { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: rgba(255, 255, 255, 0.04); }
.captain img { width: 32px; height: 32px; border-radius: 2px; }
.captain div { display: grid; line-height: 1.25; }
.captain small { color: var(--muted); font-size: 0.8rem; }

.player-row { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.player-row legend { padding: 0; margin-bottom: 6px; font-family: var(--font-label); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.player-row.is-sub legend { color: #6d6b72; }

/* ==========================================================================
   Forms
   ========================================================================== */

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field > span { font-family: var(--font-label); font-weight: 700; font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea, .player-row input {
	width: 100%;
	padding: 12px 14px;
	background: var(--bg-2);
	border: 1px solid var(--line-strong);
	border-radius: 0;
	color: var(--text);
	transition: border-color 0.2s, box-shadow 0.2s;
}
.player-row input { padding: 10px 12px; font-size: 0.95rem; }
.field input:focus, .player-row input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(224, 20, 30, 0.2); }
.check { display: flex; align-items: flex-start; gap: 10px; color: var(--text-2); font-size: 0.95rem; cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--red); width: 17px; height: 17px; flex: none; }
.form-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field--wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid, .player-row { grid-template-columns: 1fr; } }

.flash { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; padding: 14px 18px; background: rgba(47, 191, 113, 0.1); box-shadow: inset 3px 0 0 var(--win); }
.flash p { margin: 0; }
.flash .icon { width: 22px; height: 22px; color: var(--win); }
.flash-error { background: rgba(239, 75, 82, 0.1); box-shadow: inset 3px 0 0 var(--loss); }
.flash-error .icon { color: var(--loss); }

/* Tabs */
.tabs { display: flex; gap: 4px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.tabs button { padding: 12px 16px; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; font-family: var(--font-label); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.tabs button[aria-selected='true'] { color: #fff; border-color: var(--red); }

/* ==========================================================================
   Account
   ========================================================================== */

.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.auth-steam { display: grid; justify-items: start; gap: 14px; padding: 36px; background: radial-gradient(500px 300px at 100% 0%, rgba(42, 71, 94, 0.55), transparent), linear-gradient(160deg, var(--surface-2), var(--surface)); }
.auth-steam h2 { font-size: 1.8rem; text-transform: uppercase; margin: 0; }
.auth-steam p { margin: 0; color: var(--text-2); }
.auth-steam .btn { margin-top: 8px; }
.auth-forms { padding: 30px; }
@media (max-width: 860px) { .auth-grid { grid-template-columns: 1fr; } }

.account-grid { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: start; }
.profile-card { display: grid; justify-items: center; gap: 12px; text-align: center; border-top: 3px solid var(--red); }
.profile-avatar { width: 112px; height: 112px; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px)); }
.profile-card h2 { font-size: 1.5rem; margin: 4px 0 0; word-break: break-word; }
.steam-status { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); }
.steam-status.is-linked { color: #66c0f4; }
.account-main { display: grid; gap: 24px; }
.my-regs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.my-regs li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 14px 16px; background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--line); }
.my-regs .muted { flex: 1; font-size: 0.92rem; }
@media (max-width: 860px) { .account-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Roster
   ========================================================================== */

.roster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.roster-grid--large { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
@media (min-width: 1100px) { .roster-grid:has(> .player:nth-child(5):last-child) { grid-template-columns: repeat(5, 1fr); } }

.player {
	position: relative;
	display: flex; flex-direction: column;
	background: var(--surface);
	box-shadow: inset 0 0 0 1px var(--line);
	clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
	transition: transform 0.3s var(--ease), box-shadow 0.3s;
	overflow: hidden;
}
.player:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(224, 20, 30, 0.45), 0 18px 40px -22px var(--red-glow); }
.player-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: radial-gradient(circle at 50% 38%, rgba(224, 20, 30, 0.35), transparent 62%), linear-gradient(180deg, var(--surface-2), var(--bg-2)); }
.player-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 7, 8, 0.35) 0%, transparent 28%, transparent 45%, rgba(7, 7, 8, 0.6) 68%, rgba(7, 7, 8, 0.96) 100%); pointer-events: none; }
.player-photo { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease), filter 0.4s; }
.player-photo--avatar { filter: saturate(0.85) contrast(1.05); }
.player:hover .player-photo { transform: scale(1.05); filter: none; }
.player-photo--placeholder { display: grid; place-items: center; height: 100%; }
.player-photo--placeholder img { width: 52%; opacity: 0.22; filter: grayscale(0.4); transition: opacity 0.3s, transform 0.4s var(--ease); }
.player:hover .player-photo--placeholder img { opacity: 0.4; transform: scale(1.05); }
.player-badge { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 4px 9px; background: var(--red); font-family: var(--font-label); font-weight: 700; font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; }
.player-badge--new { background: rgba(7, 7, 8, 0.72); box-shadow: inset 0 0 0 1px var(--line-strong); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }

.player-links { position: absolute; top: 10px; right: 10px; z-index: 2; list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.player-links a { display: grid; place-items: center; width: 28px; height: 28px; background: rgba(7, 7, 8, 0.65); color: var(--text-2); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); transition: background 0.2s, color 0.2s; }
.player-links a:hover { background: var(--red); color: #fff; }
.player-links a[aria-label^="Faceit"] { color: #ff5500; }
.player-links a[aria-label^="Faceit"]:hover { background: #ff5500; color: #fff; }
.player-links .icon { width: 14px; height: 14px; }

.player-id { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 0 14px 12px; }
.player-nick { margin: 0; font-size: 1.45rem; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8); }
.player-nick--l { font-size: 1.2rem; }
.player-nick--xl { font-size: 1.02rem; letter-spacing: 0; }
.roster-grid--large .player-nick { font-size: 1.6rem; }
.roster-grid--large .player-nick--l { font-size: 1.35rem; }
.roster-grid--large .player-nick--xl { font-size: 1.15rem; }
.player-meta { display: flex; align-items: center; gap: 0; margin: 6px 0 0; font-family: var(--font-label); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red-2); }
.player-meta .flag { margin-right: 8px; }
.player-meta span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.player-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px 12px; border-top: 1px solid var(--line); }
.player-foot .fc { margin-left: 0; }
.player-kd { font-family: var(--font-display); font-size: 1rem; color: var(--text); white-space: nowrap; }
.player-kd small { font-family: var(--font-label); font-weight: 700; font-size: 0.66rem; letter-spacing: 0.14em; color: var(--muted); margin-right: 2px; }

/* Team page */
.team-columns { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
.team-columns .section-head { margin-bottom: 18px; }
.story { border-top: 3px solid var(--red); }
.timeline { list-style: none; margin: 0 0 8px; padding: 0 0 0 22px; border-left: 2px solid var(--line-strong); display: grid; gap: 22px; }
.timeline li { position: relative; display: grid; gap: 4px; }
.timeline li::before { content: ''; position: absolute; left: -29px; top: 6px; width: 12px; height: 12px; background: var(--surface-3); box-shadow: 0 0 0 3px var(--bg); transform: rotate(45deg); }
.timeline li.is-now::before { background: var(--red); box-shadow: 0 0 0 3px var(--bg), 0 0 16px var(--red-glow); }
.timeline strong { font-family: var(--font-label); font-size: 1.05rem; }
.timeline span { color: var(--text-2); font-size: 0.95rem; }
@media (max-width: 1000px) { .team-columns { grid-template-columns: 1fr; } }

/* ==========================================================================
   Matches
   ========================================================================== */

.match-list { display: grid; gap: 10px; }
.match {
	display: grid; grid-template-columns: 220px 1fr 200px; align-items: center; gap: 20px;
	padding: 18px 24px;
	background: var(--surface);
	box-shadow: inset 0 0 0 1px var(--line), inset 3px 0 0 var(--surface-3);
	transition: box-shadow 0.2s;
}
.match:hover { box-shadow: inset 0 0 0 1px var(--line-strong), inset 3px 0 0 var(--red); }
.match--live { box-shadow: inset 0 0 0 1px rgba(224, 20, 30, 0.5), inset 3px 0 0 var(--red); background: linear-gradient(90deg, rgba(142, 10, 16, 0.3), var(--surface) 50%); }
.match--win { box-shadow: inset 0 0 0 1px var(--line), inset 3px 0 0 var(--win); }
.match--loss { box-shadow: inset 0 0 0 1px var(--line), inset 3px 0 0 var(--loss); }
.match-when { display: grid; gap: 3px; justify-items: start; }
.match-date { font-family: var(--font-label); font-weight: 700; font-size: 1rem; letter-spacing: 0.04em; text-transform: capitalize; }
.match-comp { color: var(--muted); font-size: 0.88rem; }
.match-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; }
.match-team { display: flex; align-items: center; gap: 12px; font-family: var(--font-label); font-weight: 700; font-size: 1.1rem; min-width: 0; }
.match-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-team--us { justify-content: flex-end; }
.match-team img, .team-initial { width: 40px; height: 40px; object-fit: contain; flex: none; }
.team-initial { display: grid; place-items: center; background: var(--surface-3); font-family: var(--font-display); color: var(--muted); }
.match-score { display: flex; align-items: center; gap: 6px; font-family: var(--font-display); font-size: 1.6rem; min-width: 84px; justify-content: center; }
.score-vs { font-family: var(--font-label); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.2em; color: var(--muted); padding: 6px 12px; background: var(--surface-3); }
.score-sep { color: var(--muted); }
.match--win .score-us { color: var(--win); }
.match--loss .score-them { color: var(--loss); }
.match-extra { display: grid; justify-items: end; gap: 6px; }
.match-maps { color: var(--muted); font-size: 0.85rem; text-align: right; }

.match-list--compact .match { grid-template-columns: 1fr; gap: 12px; padding: 16px 18px; }
.match-list--compact .match-when { grid-auto-flow: column; justify-content: space-between; align-items: center; width: 100%; }
.match-list--compact .match-extra { justify-items: start; grid-auto-flow: column; justify-content: space-between; }

@media (max-width: 900px) {
	.match { grid-template-columns: 1fr; gap: 12px; padding: 16px 18px; }
	.match-when { grid-auto-flow: column; justify-content: space-between; align-items: center; }
	.match-extra { justify-items: start; }
	.match-team { font-size: 1rem; }
}

/* ==========================================================================
   Live
   ========================================================================== */

.live-stage { display: grid; grid-template-columns: 1fr; gap: 16px; }
.live-stage.has-chat { grid-template-columns: minmax(0, 1fr) 340px; }
@media (max-width: 1000px) { .live-stage.has-chat { grid-template-columns: 1fr; } .chat-frame { height: 420px; } }

.player-frame { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player-play {
	position: absolute; left: 50%; bottom: 12%; transform: translateX(-50%);
	display: flex; align-items: center; gap: 16px;
	padding: 12px 24px 12px 12px;
	background: rgba(7, 7, 8, 0.82); border: 0; cursor: pointer; text-align: left;
	box-shadow: inset 0 0 0 1px var(--line-strong);
	backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
	transition: background 0.2s, transform 0.2s var(--ease);
}
.player-play:hover { background: rgba(7, 7, 8, 0.95); transform: translateX(-50%) translateY(-2px); }
.play-circle { display: grid; place-items: center; width: 54px; height: 54px; background: var(--red); clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); }
.play-circle .icon { width: 24px; height: 24px; margin-left: 3px; }
.play-circle svg { fill: currentColor; }
.play-text { display: grid; }
.play-text strong { font-family: var(--font-label); font-size: 1.05rem; letter-spacing: 0.06em; text-transform: uppercase; }
.play-text small { color: var(--muted); font-size: 0.8rem; }
.player-remember { position: absolute; right: 14px; top: 12px; display: flex; gap: 8px; align-items: center; font-size: 0.82rem; color: var(--text-2); background: rgba(7, 7, 8, 0.7); padding: 6px 10px; cursor: pointer; }
.player-remember input { accent-color: var(--red); }
.player-soon { position: absolute; left: 0; right: 0; bottom: 8%; display: grid; justify-items: center; gap: 4px; text-align: center; padding: 0 16px; }
.player-soon strong { font-family: var(--font-label); font-size: 1.1rem; letter-spacing: 0.06em; text-transform: uppercase; background: rgba(7, 7, 8, 0.8); padding: 6px 14px; }
.player-soon small { color: var(--text-2); }
.player-frame.is-loaded .player-play, .player-frame.is-loaded .player-remember, .player-frame.is-loaded .player-poster { display: none; }
@media (max-width: 600px) {
	.player-play { bottom: 50%; transform: translate(-50%, 50%); padding: 8px; }
	.player-play:hover { transform: translate(-50%, 50%); }
	.play-text { display: none; }
	.player-remember { display: none; }
	.player-soon strong { font-size: 0.85rem; }
	.player-soon small { display: none; }
}

.chat-frame { position: relative; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; min-height: 300px; }
.chat-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.chat-frame p { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.chat-frame .icon { color: #a970ff; }

.stream-info { margin-top: 18px; }
.stream-info h2 { font-family: var(--font-body); font-weight: 700; font-size: 1.3rem; margin: 0 0 4px; }
.stream-info p { margin: 0; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.stream-channel { margin: 16px 0 0; }

.live-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 1000px) { .live-columns { grid-template-columns: 1fr; } }

.streamers { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.streamer a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; }
.streamer a:hover { box-shadow: inset 0 0 0 1px rgba(169, 112, 255, 0.5); }
.streamer-icon { display: grid; place-items: center; width: 40px; height: 40px; background: rgba(169, 112, 255, 0.12); color: #a970ff; flex: none; }
.streamer-body { display: grid; flex: 1; min-width: 0; }
.streamer-body small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.streamer-viewers { display: flex; align-items: center; gap: 8px; font-family: var(--font-label); font-weight: 700; }
.streamer:not(.is-live) { opacity: 0.7; }

/* FACEIT level badges (FACEIT's own level colours). */
.fc { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px 2px 2px; margin-left: 8px; vertical-align: middle; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line); border-radius: 999px; text-decoration: none; font-family: var(--font-label); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.04em; color: var(--text-2); text-transform: none; line-height: 1; }
.fc:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.fc-lvl { --fc: #eeeeee; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 0.72rem; color: var(--fc); box-shadow: inset 0 0 0 2px var(--fc); background: rgba(0, 0, 0, 0.35); }
.fc--l2 .fc-lvl { --fc: #1ce400; }
.fc--l4 .fc-lvl { --fc: #ffc800; }
.fc--l8 .fc-lvl { --fc: #ff6309; }
.fc--l10 .fc-lvl { --fc: #fe1f00; }
.fc:not(:has(.fc-elo)):not(:has(.fc-nick)) { padding-right: 2px; }
.fc-nick { color: #fff; }
.fc-elo { color: var(--muted); }
.fc-status { display: grid; justify-items: center; gap: 4px; }
.fc-status .fc { margin-left: 0; font-size: 0.9rem; padding: 3px 12px 3px 3px; }
.fc-status .fc-lvl { width: 26px; height: 26px; font-size: 0.85rem; }
.player-role .fc { letter-spacing: 0.04em; }
.team-players { display: flex; flex-wrap: wrap; gap: 4px 12px; flex: 1; color: var(--muted); font-size: 0.92rem; }
.team-player { display: inline-flex; align-items: center; }
.team-player .fc { margin-left: 5px; }
.team-avg { font-family: var(--font-label); font-weight: 700; font-size: 0.8rem; color: var(--text-2); padding: 3px 8px; background: rgba(255, 255, 255, 0.05); }

/* FACEIT form (Team page) */
.fc-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.fc-sum { display: grid; gap: 4px; padding: 16px 18px; background: linear-gradient(135deg, rgba(255, 85, 0, 0.1), var(--surface) 60%); box-shadow: inset 0 0 0 1px var(--line); }
.fc-sum span { font-family: var(--font-label); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.fc-sum strong { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; }
.fc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.fc-card { display: grid; gap: 14px; padding: 20px; background: linear-gradient(160deg, var(--surface-2), var(--surface) 65%); box-shadow: inset 0 0 0 1px var(--line); border-top: 3px solid #ff5500; }
.fc-card-head { display: flex; align-items: center; gap: 12px; }
.fc-avatar { width: 48px; height: 48px; object-fit: cover; flex: none; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)); }
.fc-who { flex: 1; min-width: 0; }
.fc-who h3 { margin: 0; font-size: 1.25rem; overflow-wrap: anywhere; }
.fc-profile { display: inline-flex; align-items: center; gap: 5px; font-size: 0.85rem; color: var(--muted); text-decoration: none; }
.fc-profile:hover { color: #ff7a33; }
.fc-profile .icon { width: 12px; height: 12px; }
.fc-rank { display: grid; justify-items: center; grid-template-columns: auto auto; align-items: center; column-gap: 8px; }
.fc-rank .fc { margin: 0; grid-row: span 2; padding: 2px; }
.fc-rank .fc-lvl { width: 34px; height: 34px; font-size: 1rem; box-shadow: inset 0 0 0 3px var(--fc); }
.fc-rank strong { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; line-height: 1; }
.fc-rank span { font-size: 0.66rem; letter-spacing: 0.18em; color: var(--muted); font-weight: 700; }
.fc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.fc-stats div { padding: 9px 10px; background: rgba(0, 0, 0, 0.25); box-shadow: inset 0 0 0 1px var(--line); }
.fc-stats dt { font-family: var(--font-label); font-weight: 700; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.fc-stats dd { margin: 2px 0 0; font-family: var(--font-display); font-size: 1.15rem; }
.fc-form { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 9px 12px; background: rgba(255, 85, 0, 0.08); box-shadow: inset 3px 0 0 #ff5500; font-size: 0.9rem; color: var(--text-2); }
.fc-form b { color: #fff; font-family: var(--font-label); }
.fc-form b.is-good { color: var(--win); }
.fc-form b.is-bad { color: var(--loss); }
.fc-label { font-family: var(--font-label); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: #ff7a33; }
.fc-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.fc-results { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.fc-results li { display: grid; place-items: center; width: 24px; height: 24px; font-family: var(--font-label); font-weight: 700; font-size: 0.75rem; }
.fc-results .is-w { background: rgba(47, 191, 113, 0.18); color: #5fe19a; }
.fc-results .is-l { background: rgba(239, 75, 82, 0.18); color: #ff7b80; }
.fc-maps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.fc-maps li { padding: 3px 8px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 0.8rem; color: var(--text-2); }
.fc-maps b { color: var(--win); font-family: var(--font-label); }
.fc-last { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 0.86rem; color: var(--text-2); text-decoration: none; }
.fc-last:hover { color: #fff; }
.fc-last-label { font-family: var(--font-label); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.fc-last .is-w { color: var(--win); font-weight: 700; }
.fc-last .is-l { color: var(--loss); font-weight: 700; }
.fc-last time { margin-left: auto; color: var(--muted); font-size: 0.8rem; }
@media (max-width: 800px) { .fc-summary { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .fc-grid { grid-template-columns: 1fr; } .fc-card { padding: 16px; } }

/* ==========================================================================
   Pro scene (Liquipedia data)
   ========================================================================== */

.pro-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; align-items: start; }
.pro-side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
@media (max-width: 1000px) { .pro-layout { grid-template-columns: 1fr; } .pro-side { position: static; } }

.pro-block--live { margin-bottom: 36px; }
.pro-heading { display: flex; align-items: center; gap: 12px; font-size: 1.5rem; text-transform: uppercase; margin: 0 0 16px; }
.pro-heading .live-dot { background: var(--red-2); width: 10px; height: 10px; }
.pro-heading .count { font-family: var(--font-label); font-size: 0.9rem; color: var(--muted); }
.pro-day { margin: 28px 0 10px; font-family: var(--font-label); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.pro-day:first-child { margin-top: 0; }
.pro-tabs .tabs { margin-bottom: 18px; }

.pm-list { display: grid; gap: 8px; }
.pm-list--grid { grid-template-columns: repeat(auto-fill, minmax(460px, 1fr)); gap: 12px; }
@media (max-width: 1000px) { .pm-list--grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .pm-list--grid { grid-template-columns: 1fr; } }

.pm {
	display: grid; gap: 10px;
	padding: 14px 18px 16px;
	background: var(--surface);
	box-shadow: inset 0 0 0 1px var(--line), inset 3px 0 0 var(--surface-3);
	transition: box-shadow 0.2s;
	min-width: 0;
}
.pm:hover { box-shadow: inset 0 0 0 1px var(--line-strong), inset 3px 0 0 var(--red); }
.pm--live { background: linear-gradient(90deg, rgba(142, 10, 16, 0.32), var(--surface) 55%); box-shadow: inset 0 0 0 1px rgba(224, 20, 30, 0.45), inset 3px 0 0 var(--red); }
.pm--done { opacity: 0.94; }

/* Row 1: when · format · tournament ………… links */
.pm-meta { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pm-when { display: flex; align-items: center; gap: 8px; flex: none; font-family: var(--font-label); font-weight: 700; }
.pm-when time { font-size: 1rem; text-transform: capitalize; white-space: nowrap; }
.pm-bo { font-size: 0.7rem; letter-spacing: 0.14em; color: var(--muted); padding: 2px 6px; background: var(--surface-3); }
.pm-event { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; font-size: 0.84rem; color: var(--muted); text-decoration: none; }
.pm-event img { width: 18px; height: 18px; object-fit: contain; flex: none; }
.pm-event > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-event:hover { color: #fff; }
.pm-links { display: flex; align-items: center; gap: 6px; flex: none; }
.pm-watch { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; background: rgba(224, 20, 30, 0.14); color: var(--red-2); font-family: var(--font-label); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; }
.pm-watch:hover { background: rgba(224, 20, 30, 0.28); color: #fff; }
.pm-watch .icon svg, .pm-map-vod svg { fill: currentColor; }
.pm-hltv { padding: 3px 8px; font-family: var(--font-label); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.12em; color: var(--text-2); background: rgba(255, 255, 255, 0.06); text-decoration: none; }
.pm-hltv:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.pm-mvp { display: inline-flex; align-items: center; gap: 5px; font-size: 0.8rem; color: #ffc94d; white-space: nowrap; }
.pm-mvp .icon { width: 13px; height: 13px; }

/* Row 2: teams, centred on the card (equal columns either side of the score). */
.pm-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; }
.pm-team { display: flex; align-items: center; gap: 10px; min-width: 0; font-family: var(--font-label); font-weight: 700; font-size: 1.05rem; color: var(--text-2); }
.pm-team--a { justify-content: flex-end; text-align: right; }
.pm-team--a img, .pm-team--a .team-initial { order: 2; }
.pm-team img, .pm-team .team-initial { width: 30px; height: 30px; object-fit: contain; flex: none; }
.pm-team .team-initial { font-size: 0.85rem; }
.pm-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-team.is-winner { color: #fff; }
.pm-score { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 70px; font-family: var(--font-display); font-size: 1.4rem; color: var(--muted); }
.pm-score .is-winner { color: var(--win); }
.pm--live .pm-score { color: #fff; }
.pm-score i { font-style: normal; color: var(--muted); }

/* Row 3: maps, centred. */
.pm-maps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pm-map { display: inline-flex; align-items: center; gap: 7px; padding: 4px 9px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 0.82rem; color: var(--text-2); }
.pm-map-name { font-weight: 600; }
.pm-map-score { font-family: var(--font-label); font-weight: 700; color: var(--muted); }
.pm-map-score b { font-weight: 700; }
.pm-map-score b.is-winner { color: var(--win); }
.pm-map--live { box-shadow: inset 0 0 0 1px rgba(224, 20, 30, 0.6); background: rgba(142, 10, 16, 0.25); color: #fff; }
.pm-map--live .pm-map-score { color: #fff; }
.pm-map--live .live-dot { width: 6px; height: 6px; background: var(--red-2); }
.pm-map--next { color: var(--muted); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); background: transparent; }
.pm-ot { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; color: #ffc94d; }
.pm-map-vod { display: inline-grid; place-items: center; color: var(--red-2); }
.pm-map-vod .icon { width: 12px; height: 12px; }

@media (max-width: 600px) {
	.pm { padding: 12px 14px 14px; gap: 9px; }
	.pm-meta { flex-wrap: wrap; row-gap: 6px; }
	.pm-event { order: 3; flex-basis: 100%; }
	.pm-links { margin-left: auto; }
	.pm-teams { gap: 8px; }
	.pm-team { font-size: 0.92rem; gap: 7px; }
	.pm-team img, .pm-team .team-initial { width: 24px; height: 24px; }
	.pm-score { min-width: 48px; font-size: 1.15rem; }
}

.events { padding: 22px; background: linear-gradient(160deg, var(--surface-2), var(--surface) 60%); box-shadow: inset 0 0 0 1px var(--line); }
.events--ongoing { border-top: 3px solid var(--red); }
.events .panel-title { font-size: 1.05rem; margin-bottom: 12px; }
.event-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.event-list a { display: flex; align-items: center; gap: 12px; padding: 9px 8px; text-decoration: none; color: var(--text-2); font-weight: 600; transition: background 0.2s; }
.event-list a:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.event-list img, .event-icon { width: 28px; height: 28px; object-fit: contain; flex: none; }
.event-icon { display: grid; place-items: center; background: var(--surface-3); color: var(--muted); }
.event-list a > span:not(.icon):not(.event-icon) { flex: 1; min-width: 0; }
.event-list a > .icon { width: 14px; height: 14px; color: var(--muted); opacity: 0; transition: opacity 0.2s; }
.event-list a:hover > .icon { opacity: 1; }
.events--concluded .event-list a { color: var(--muted); }
.side-link--lettik { background: rgba(224, 20, 30, 0.1); box-shadow: inset 0 0 0 1px rgba(224, 20, 30, 0.35); }
.side-link--lettik .icon { color: var(--red-2); }

.pro-attribution { margin: 18px 0 0; font-size: 0.82rem; color: var(--muted); }
.pro-attribution a { color: var(--text-2); }
.page-hero--pro .page-hero-bg { opacity: 0.25; }

/* ==========================================================================
   CTA banner
   ========================================================================== */

.cta-banner { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; align-items: stretch; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.cta-banner > img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.cta-banner-content { display: grid; align-content: center; justify-items: start; gap: 14px; padding: clamp(28px, 4vw, 52px); background: linear-gradient(90deg, rgba(19, 19, 22, 0.6), var(--surface) 25%); }
.cta-banner-content p { margin: 0; color: var(--text-2); }
.cta-banner-content .eyebrow { color: #8b95ff; }
.cta-banner-content .btn { margin-top: 6px; }
@media (max-width: 860px) { .cta-banner { grid-template-columns: 1fr; } .cta-banner > img { min-height: 0; aspect-ratio: 16 / 9; } .cta-banner-content { background: var(--surface); } }

/* ==========================================================================
   404
   ========================================================================== */

.error-404 { text-align: center; }
.error-404 .container { display: grid; justify-items: center; }
.big-404 { margin: 0; font-family: var(--font-display); font-size: clamp(6rem, 22vw, 14rem); line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--red); text-shadow: 0 0 60px var(--red-glow); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { position: relative; margin-top: clamp(40px, 6vw, 80px); padding: 64px 0 28px; background: var(--bg-2); border-top: 1px solid var(--line); overflow: hidden; }
.footer-glow { position: absolute; left: 50%; top: -1px; width: min(900px, 90%); height: 2px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--red), transparent); box-shadow: 0 0 40px 6px var(--red-glow); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
.footer-brand img { width: 150px; margin-bottom: 18px; }
.footer-brand p { color: var(--muted); max-width: 42ch; margin: 0 0 20px; }
.footer-title { font-family: var(--font-label); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text); margin: 0 0 16px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; }
.footer-bottom p { margin: 0; }
.footer-tagline { font-family: var(--font-label); font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.75rem; color: var(--red-2) !important; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

.socials { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); transition: background 0.2s, color 0.2s; }
.socials a:hover { background: var(--red); color: #fff; box-shadow: none; }
.socials .icon { width: 18px; height: 18px; }
.socials--sm a { width: 34px; height: 34px; }

/* ==========================================================================
   Motion
   ========================================================================== */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
	.reveal { opacity: 1; transform: none; }
}

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
	.btn { white-space: normal; text-align: center; max-width: 100%; }
	.roster-grid, .roster-grid--large { grid-template-columns: 1fr 1fr; gap: 12px; }
	.player-id { padding: 0 10px 10px; }
	.player-nick, .roster-grid--large .player-nick { font-size: 1.1rem; }
	.player-nick--l, .roster-grid--large .player-nick--l { font-size: 0.98rem; }
	.player-nick--xl, .roster-grid--large .player-nick--xl { font-size: 0.86rem; }
	.player-badge { top: 8px; left: 8px; font-size: 0.58rem; padding: 3px 6px; letter-spacing: 0.12em; }
	.player-links { top: 8px; right: 8px; }
	.player-links a { width: 24px; height: 24px; }
	.player-foot { padding: 8px 10px 10px; flex-wrap: wrap; }
	.player-foot .fc { font-size: 0.72rem; }
	.auth-steam, .auth-forms, .reg-panel, .panel, .profile-card, .story { padding: 22px 18px; }
	.empty { padding: 24px 20px; }
	.t-grid { grid-template-columns: 1fr; }
	.match-teams { gap: 10px; }
	.match-team { gap: 8px; font-size: 0.95rem; }
	.match-team span { white-space: normal; overflow-wrap: anywhere; }
	.match-team img, .team-initial { width: 28px; height: 28px; }
	.match-score { min-width: 0; font-size: 1.3rem; }
	.score-vs { padding: 4px 8px; font-size: 0.78rem; }
}
