/* ششبش — Design tokens from Figma Backgammon materials */

:root {
	--bg: #0f1a1f;
	--bg-deep: #0a1216;
	--bg-elevated: #162429;
	--bg-panel: rgba(15, 26, 31, 0.85);
	--surface: #1a2a31;
	--surface-hover: #21353d;
	--border: #2a3f48;
	--border-gold: #ccbd68;
	--accent: #45f9c6;
	--accent-dim: #2bc99a;
	--accent-glow: rgba(69, 249, 198, 0.25);
	--beige: #ffeeb2;
	--gold: #ffe690;
	--gold-mid: #ccbd68;
	--gold-dark: #a47c4a;
	--text: #f5f0e6;
	--text-muted: #9aafb8;
	--text-dim: #6b828c;
	--danger: #ff6b6b;
	--success: #45f9c6;
	--radius-sm: 8px;
	--radius: 14px;
	--radius-lg: 22px;
	--radius-xl: 32px;
	--font: 'TKT-Rosha', Tahoma, sans-serif;
	--gold-gradient: linear-gradient(135deg, #a47c4a 0%, #fffbac 38%, #ccbd68 72%, #5c5127 100%);
	--shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
	--container: 1120px;
	--header-h: 72px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.75;
	color: var(--text);
	background: var(--bg);
	direction: rtl;
	text-align: right;
	-webkit-font-smoothing: antialiased;
}

body::before {
	content: '';
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: -1;
	background:
		radial-gradient(ellipse 80% 50% at 80% -10%, rgba(69, 249, 198, 0.08), transparent 55%),
		radial-gradient(ellipse 60% 40% at 10% 20%, rgba(164, 124, 74, 0.12), transparent 50%),
		linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 40%, #122025 100%);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--accent);
	text-decoration: none;
	transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
	color: var(--beige);
}

h1, h2, h3, h4, h5, h6 {
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 0.6em;
	color: var(--beige);
}

p {
	margin: 0 0 1em;
}

ul, ol {
	padding-right: 1.25em;
	padding-left: 0;
}

button,
input,
textarea,
select {
	font-family: inherit;
}

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

.container {
	width: min(100% - 2.5rem, var(--container));
	margin-inline: auto;
}

/* —— Buttons (Figma Backgammon materials) —— */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.85rem 1.75rem;
	border-radius: 999px;
	border: 1.5px solid transparent;
	font-weight: 600;
	font-size: 0.95rem;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
	text-decoration: none;
	line-height: 1.2;
	position: relative;
}

.btn:hover {
	transform: translateY(-1px);
}

.btn-sm {
	padding: 0.55rem 1.15rem;
	font-size: 0.85rem;
}

/* Primary CTA — gold frame like «شروع بازی» */
.btn-figma-cta,
.btn-primary {
	color: var(--beige);
	background:
		linear-gradient(180deg, rgba(38, 34, 30, 0.95), rgba(15, 26, 31, 0.98));
	border-color: #fbe59b;
	box-shadow:
		inset 5px 5px 16px rgba(0, 92, 115, 0.55),
		0 8px 24px rgba(164, 124, 74, 0.28);
	text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.btn-figma-cta:hover,
.btn-primary:hover {
	color: #fff8dc;
	border-color: #ffeeb2;
	filter: brightness(1.08);
	box-shadow:
		inset 5px 5px 18px rgba(0, 92, 115, 0.65),
		0 10px 28px rgba(204, 189, 104, 0.35);
}

/* Ghost / secondary — dark panel + gold rim */
.btn-figma-ghost,
.btn-ghost {
	color: var(--gold);
	background: #1d2b2b;
	border-color: #474534;
	box-shadow: inset 5px 5px 16px rgba(0, 92, 115, 0.45);
}

.btn-figma-ghost:hover,
.btn-ghost:hover {
	color: var(--beige);
	border-color: var(--border-gold);
	background: #243636;
}

/* Accent fill — mint */
.btn-accent {
	background: var(--accent);
	color: #0a1612;
	border-color: transparent;
	box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-accent:hover {
	color: #04100c;
	background: #6fffd4;
}

/* Toggle pill — «تاس خودکار» */
.btn-figma-toggle {
	color: var(--gold);
	background: transparent;
	border-color: var(--border-gold);
	border-radius: 26px;
	padding-inline: 1.1rem 1.35rem;
}

.btn-figma-toggle__dot {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 1.5px solid #fbe59b;
	background: #262626;
	box-shadow: inset 2px 2px 6px rgba(0, 0, 0, 0.5);
	flex-shrink: 0;
}

.btn-figma-toggle.is-on .btn-figma-toggle__dot {
	background: radial-gradient(circle at 40% 35%, #3bfd6b, #197e32);
	box-shadow: 0 0 10px rgba(59, 253, 107, 0.55);
}

.btn-figma-toggle:hover {
	background: rgba(204, 189, 104, 0.08);
	color: var(--beige);
}

/* Icon square button */
.btn-figma-icon {
	width: 52px;
	height: 52px;
	padding: 0;
	border-radius: 18px;
	background: #1d2b2b;
	border: 1px solid #474534;
	color: var(--beige);
	box-shadow: inset 5px 5px 16px rgba(0, 92, 115, 0.45);
}

.btn-figma-icon:hover {
	border-color: var(--border-gold);
	color: var(--gold);
}

/* —— Header —— */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	height: var(--header-h);
	backdrop-filter: blur(16px);
	background: rgba(10, 18, 22, 0.82);
	border-bottom: 1px solid rgba(42, 63, 72, 0.7);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--header-h);
	gap: 1.5rem;
}

.site-brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--beige);
	font-weight: 700;
	font-size: 1.35rem;
	letter-spacing: -0.02em;
}

.site-brand:hover {
	color: var(--accent);
}

.site-brand .custom-logo-link {
	display: flex;
	align-items: center;
}

.site-brand .custom-logo {
	max-height: 44px;
	width: auto;
}

.site-brand__mark {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: var(--gold-gradient);
	display: grid;
	place-items: center;
	color: #1a1208;
	font-weight: 700;
	font-size: 1.1rem;
	box-shadow: 0 4px 16px rgba(164, 124, 74, 0.4);
}

.primary-nav {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.primary-nav ul {
	display: flex;
	align-items: center;
	gap: 0.15rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-nav a {
	display: block;
	padding: 0.5rem 0.9rem;
	color: var(--text-muted);
	font-weight: 500;
	font-size: 0.95rem;
	border-radius: 999px;
	transition: background 0.2s, color 0.2s;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
	color: var(--beige);
	background: rgba(69, 249, 198, 0.08);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-shrink: 0;
}

.nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: var(--surface);
	color: var(--beige);
	cursor: pointer;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	padding: 0;
	flex-shrink: 0;
}

.nav-toggle span {
	display: block;
	width: 18px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* —— Hero —— */
.hero {
	position: relative;
	padding: 4.5rem 0 3.5rem;
	overflow: hidden;
}

.hero__grid {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 3rem;
	align-items: center;
}

.hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.35rem 0.9rem;
	border-radius: 999px;
	border: 1px solid rgba(69, 249, 198, 0.35);
	background: rgba(69, 249, 198, 0.08);
	color: var(--accent);
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: 1.25rem;
}

.hero__title {
	font-size: clamp(2.2rem, 4.5vw, 3.4rem);
	margin-bottom: 1rem;
	background: var(--gold-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
}

.hero__text {
	color: var(--text-muted);
	font-size: 1.1rem;
	max-width: 36ch;
	margin-bottom: 2rem;
	font-weight: 300;
}

.hero__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
}

.hero__visual {
	position: relative;
	width: 100%;
	max-width: 520px;
	margin-inline: auto;
	aspect-ratio: 1191 / 855;
	border-radius: var(--radius-xl);
	border: 1.5px solid var(--border-gold);
	box-shadow: var(--shadow);
	overflow: hidden;
	background: #0f1a1f;
	animation: float-in 0.9s ease both;
}

.hero__live {
	position: absolute;
	top: 0.85rem;
	right: 0.85rem;
	z-index: 6;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.32rem 0.7rem 0.32rem 0.55rem;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #0a1216;
	background: var(--accent);
	border: 1px solid rgba(255, 255, 255, 0.15);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
	pointer-events: none;
	user-select: none;
}

.hero__live-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #0a1216;
	box-shadow: 0 0 0 0 rgba(10, 18, 22, 0.55);
	animation: hero-live-pulse 1.4s ease-out infinite;
}

@keyframes hero-live-pulse {
	0% {
		transform: scale(1);
		box-shadow: 0 0 0 0 rgba(10, 18, 22, 0.55);
	}
	70% {
		transform: scale(1.05);
		box-shadow: 0 0 0 8px rgba(10, 18, 22, 0);
	}
	100% {
		transform: scale(1);
		box-shadow: 0 0 0 0 rgba(10, 18, 22, 0);
	}
}

.hero__board-img {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	pointer-events: none;
	user-select: none;
}

.hero-demo {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

.hero-demo__points {
	position: absolute;
	top: 8%;
	bottom: 14%;
	left: 10%;
	right: 10%;
	display: grid;
	grid-template-columns: repeat(6, 1fr) 0.55fr repeat(6, 1fr);
	grid-template-rows: 1fr 1fr;
	gap: 0;
}

.hero-demo__point {
	position: relative;
	display: flex;
	align-items: center;
	min-width: 0;
}

.hero-demo__point--top {
	flex-direction: column;
	justify-content: flex-start;
}

.hero-demo__point--bottom {
	flex-direction: column-reverse;
	justify-content: flex-end;
}

.hero-demo__mid {
	pointer-events: none;
}

.hero-demo__checkers {
	display: flex;
	flex-direction: inherit;
	align-items: center;
	width: 100%;
	padding: 2% 10%;
}

.hero-demo__checker {
	width: min(72%, 22px);
	aspect-ratio: 1;
	border-radius: 50%;
	flex-shrink: 0;
	margin-block: -12%;
	border: 1.5px solid rgba(255, 255, 255, 0.2);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
	transition: transform 0.45s ease, opacity 0.35s ease;
}

.hero-demo__checker--white {
	background: radial-gradient(circle at 32% 28%, #fff8e8, #e8d4a0 50%, #b89a5a);
}

.hero-demo__checker--black {
	background: radial-gradient(circle at 32% 28%, #4a5a62, #1a242a 55%, #0a1014);
	border-color: rgba(69, 249, 198, 0.25);
}

.hero-demo__checker.is-moving {
	transform: scale(1.18);
	filter: brightness(1.25);
	z-index: 2;
}

.hero-demo__hud {
	position: absolute;
	left: 50%;
	bottom: 2.5%;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	background: rgba(10, 18, 22, 0.72);
	border: 1px solid rgba(204, 189, 104, 0.28);
	backdrop-filter: blur(8px);
	white-space: nowrap;
	pointer-events: none;
	opacity: 0.85;
}

.hero-demo__dice {
	color: var(--gold);
	font-weight: 700;
	font-size: 0.85rem;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.04em;
}

/* —— Rewards section —— */
.rewards-section {
	padding-top: 3.25rem;
	padding-bottom: 3.5rem;
	background:
		radial-gradient(ellipse 70% 50% at 80% 0%, rgba(69, 249, 198, 0.06), transparent 55%),
		var(--bg);
}

.rewards-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
}

.reward-card {
	display: flex;
	flex-direction: column;
	border-radius: var(--radius-lg);
	border: 1px solid var(--border);
	background: linear-gradient(165deg, rgba(26, 42, 49, 0.95), rgba(15, 26, 31, 0.98));
	overflow: hidden;
	transition: border-color 0.25s ease, transform 0.25s ease;
}

.reward-card:hover {
	border-color: rgba(251, 229, 155, 0.45);
	transform: translateY(-3px);
}

.reward-card--live {
	border-color: rgba(69, 249, 198, 0.4);
	box-shadow: 0 0 0 1px rgba(69, 249, 198, 0.12);
}

.reward-card__media {
	position: relative;
	margin: 0;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #0a1216;
}

.reward-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.reward-card__badge {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	padding: 0.28rem 0.7rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--beige);
	background: rgba(15, 26, 31, 0.88);
	border: 1px solid rgba(204, 189, 104, 0.45);
}

.reward-card__badge--live {
	color: #0a1216;
	background: var(--accent);
	border-color: transparent;
}

.reward-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	padding: 1.15rem 1.2rem 1.3rem;
	flex: 1;
}

.reward-card__title {
	font-size: 1.2rem;
	margin: 0;
	color: var(--beige);
}

.reward-card__prize {
	margin: 0;
	padding: 0.65rem 0.8rem;
	border-radius: var(--radius-sm);
	background: rgba(69, 249, 198, 0.07);
	border: 1px solid rgba(69, 249, 198, 0.2);
	color: var(--text);
	font-weight: 500;
	font-size: 0.92rem;
	line-height: 1.5;
}

.reward-card__prize-label {
	display: block;
	margin-bottom: 0.2rem;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--accent);
}

.reward-card__reqs {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.4rem;
}

.reward-card__reqs li {
	position: relative;
	padding-right: 1.05rem;
	color: var(--text-muted);
	font-size: 0.88rem;
	font-weight: 300;
	line-height: 1.55;
}

.reward-card__reqs li::before {
	content: '';
	position: absolute;
	right: 0;
	top: 0.55em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--gold-mid);
}

.reward-card__timer {
	margin-top: auto;
	padding-top: 0.75rem;
	border-top: 1px solid rgba(42, 63, 72, 0.7);
}

.reward-card__timer-label {
	display: block;
	margin-bottom: 0.45rem;
	font-size: 0.75rem;
	color: var(--text-dim);
	font-weight: 500;
}

.reward-card__countdown {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 0.2rem;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	font-size: 1.15rem;
	color: var(--gold);
	direction: ltr;
}

.reward-card__countdown [data-unit] {
	min-width: 1.65em;
	text-align: center;
	padding: 0.25rem 0.2rem;
	border-radius: 8px;
	background: rgba(10, 18, 22, 0.7);
	border: 1px solid rgba(204, 189, 104, 0.25);
}

.reward-card__sep {
	color: var(--text-dim);
	font-weight: 500;
}

.reward-card__live-text {
	color: var(--accent);
	font-size: 0.95rem;
	font-weight: 600;
	direction: rtl;
}

.reward-card__cta {
	width: 100%;
	margin-top: 0.15rem;
}

@media (max-width: 960px) {
	.rewards-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 640px) {
	.rewards-grid {
		grid-template-columns: 1fr;
	}
}

@keyframes float-in {
	from { opacity: 0; transform: translateY(24px) scale(0.96); }
	to { opacity: 1; transform: none; }
}

@keyframes pulse-ring {
	0%, 100% { transform: scale(1); opacity: 0.5; }
	50% { transform: scale(1.06); opacity: 0.9; }
}

@keyframes piece-bob {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-8px); }
}

@keyframes fade-up {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: none; }
}

.reveal-pending {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-pending.reveal {
	opacity: 1;
	transform: none;
}

/* —— Sections —— */
.section {
	padding: 4.5rem 0;
}

.section--alt {
	background: linear-gradient(180deg, transparent, rgba(22, 36, 41, 0.6), transparent);
}

.section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem;
	margin-bottom: 2.25rem;
	flex-wrap: wrap;
}

.section__label {
	display: block;
	color: var(--accent);
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: 0.4rem;
}

.section__title {
	font-size: clamp(1.6rem, 3vw, 2.1rem);
	margin: 0;
}

.section__desc {
	color: var(--text-muted);
	max-width: 40ch;
	margin: 0.5rem 0 0;
	font-weight: 300;
}

/* —— Cards —— */
.post-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.post-card {
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.post-card:hover {
	border-color: rgba(69, 249, 198, 0.4);
	transform: translateY(-4px);
	box-shadow: var(--shadow);
}

.post-card__media {
	aspect-ratio: 16 / 10;
	background: var(--bg-elevated);
	overflow: hidden;
}

.post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.post-card:hover .post-card__media img {
	transform: scale(1.04);
}

.post-card__body {
	padding: 1.25rem 1.35rem 1.5rem;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 0.65rem;
}

.post-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	font-size: 0.8rem;
	color: var(--text-dim);
}

.post-card__cat {
	color: var(--accent);
	font-weight: 600;
}

.post-card__title {
	font-size: 1.15rem;
	margin: 0;
}

.post-card__title a {
	color: var(--beige);
}

.post-card__title a:hover {
	color: var(--accent);
}

.post-card__excerpt {
	color: var(--text-muted);
	font-size: 0.92rem;
	font-weight: 300;
	margin: 0;
	flex: 1;
}

.post-card__link {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--gold-mid);
	margin-top: 0.5rem;
}

/* —— Ranking —— */
.ranking-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0 0.5rem;
}

.ranking-table th {
	text-align: right;
	padding: 0.5rem 1.25rem;
	color: var(--text-dim);
	font-weight: 500;
	font-size: 0.85rem;
}

.ranking-table td {
	padding: 1rem 1.25rem;
	background: var(--surface);
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}

.ranking-table tr td:first-child {
	border-right: 1px solid var(--border);
	border-radius: 0 var(--radius) var(--radius) 0;
}

.ranking-table tr td:last-child {
	border-left: 1px solid var(--border);
	border-radius: var(--radius) 0 0 var(--radius);
}

.ranking-table tr.top-3 td {
	border-color: rgba(204, 189, 104, 0.45);
	background: linear-gradient(90deg, rgba(164, 124, 74, 0.15), var(--surface));
}

.player-cell {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
}

.player-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	border: 1.5px solid rgba(204, 189, 104, 0.45);
	background: #0a1216;
	box-shadow: 0 0 0 2px rgba(15, 26, 31, 0.8);
}

.top-3 .player-avatar {
	border-color: rgba(69, 249, 198, 0.55);
	box-shadow: 0 0 12px rgba(69, 249, 198, 0.2);
}

.player-cell__name {
	font-weight: 600;
	color: var(--beige);
	white-space: nowrap;
}

.rank-badge {
	display: inline-grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	font-weight: 700;
	font-size: 0.9rem;
	background: var(--bg-elevated);
	color: var(--text-muted);
}

.rank-badge--1 { background: var(--gold-gradient); color: #1a1208; }
.rank-badge--2 { background: #8a9aa3; color: #0f1a1f; }
.rank-badge--3 { background: #a47c4a; color: #ffeeb2; }

.player-name {
	font-weight: 600;
	color: var(--beige);
}

.score-value {
	color: var(--accent);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

/* —— Tournaments —— */
.tournaments-section {
	padding-top: 3.25rem;
	padding-bottom: 3.5rem;
}

.tournament-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.tournament-card {
	padding: 1.5rem;
	border-radius: var(--radius-lg);
	background: var(--surface);
	border: 1px solid var(--border);
	display: flex;
	flex-direction: column;
	gap: 1rem;
	position: relative;
	overflow: hidden;
	transition: border-color 0.25s ease, transform 0.25s ease;
}

.tournament-card:has(.tournament-card__media) {
	padding: 0;
	gap: 0;
}

.tournament-card:hover {
	border-color: rgba(251, 229, 155, 0.4);
	transform: translateY(-3px);
}

.tournament-card--featured {
	border-color: var(--border-gold);
	background:
		linear-gradient(160deg, rgba(164, 124, 74, 0.2), transparent 55%),
		var(--surface);
}

.tournament-card--featured::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	z-index: 2;
	background: var(--gold-gradient);
}

.tournament-card__media {
	position: relative;
	margin: 0;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #0a1216;
}

.tournament-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tournament-status {
	display: inline-flex;
	padding: 0.3rem 0.75rem;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 600;
	background: rgba(69, 249, 198, 0.12);
	color: var(--accent);
	width: fit-content;
}

.tournament-card__media .tournament-status {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	z-index: 1;
	background: rgba(15, 26, 31, 0.88);
	border: 1px solid rgba(69, 249, 198, 0.35);
}

.tournament-card__body {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 1.25rem 1.35rem 1.4rem;
	flex: 1;
}

.tournament-card h3 {
	font-size: 1.2rem;
	margin: 0;
	color: var(--beige);
}

.tournament-meta {
	display: grid;
	gap: 0.5rem;
	font-size: 0.9rem;
	color: var(--text-muted);
	margin: 0;
}

.tournament-meta dt {
	color: var(--text-dim);
	font-size: 0.78rem;
}

.tournament-meta dd {
	margin: 0;
	color: var(--beige);
	font-weight: 600;
}

.tournament-meta__row {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.4rem 0;
	border-bottom: 1px solid rgba(42, 63, 72, 0.6);
}

.tournament-card__body .btn {
	margin-top: auto;
	width: 100%;
}

/* —— Blog layout —— */
.page-hero {
	padding: 3rem 0 2rem;
	border-bottom: 1px solid var(--border);
	margin-bottom: 2.5rem;
}

.page-hero h1 {
	font-size: clamp(1.8rem, 3.5vw, 2.6rem);
	margin-bottom: 0.5rem;
}

.page-hero p {
	color: var(--text-muted);
	margin: 0;
	font-weight: 300;
}

.blog-layout {
	display: grid;
	grid-template-columns: 1fr 280px;
	gap: 2.5rem;
	padding-bottom: 4rem;
}

.blog-layout--full {
	grid-template-columns: 1fr;
	max-width: 720px;
	margin-inline: auto;
}

.posts-list {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.posts-list .post-card {
	flex-direction: row;
	border-radius: 0;
	border: none;
	border-bottom: 1px solid var(--border);
	background: transparent;
	box-shadow: none;
}

.posts-list .post-card:hover {
	transform: none;
	background: rgba(22, 36, 41, 0.4);
}

.posts-list .post-card__media {
	width: 220px;
	flex-shrink: 0;
	aspect-ratio: auto;
	min-height: 140px;
	border-radius: var(--radius);
	overflow: hidden;
	margin: 1.25rem 0 1.25rem 1.25rem;
}

.posts-list .post-card__body {
	padding: 1.5rem 0 1.5rem 1.25rem;
}

.single-article {
	max-width: 720px;
	margin: 0 auto 4rem;
}

.single-article__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	color: var(--text-dim);
	font-size: 0.9rem;
	margin-bottom: 1.5rem;
}

.single-article__thumb {
	border-radius: var(--radius-lg);
	overflow: hidden;
	margin-bottom: 2rem;
	border: 1px solid var(--border);
}

.single-article__thumb img {
	width: 100%;
	height: auto;
	display: block;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.single-article__content {
	font-size: 1.05rem;
	font-weight: 300;
	color: var(--text);
	line-height: 1.9;
}

.single-article__content h2,
.single-article__content h3 {
	margin-top: 1.75em;
}

.single-article__content a {
	border-bottom: 1px solid rgba(69, 249, 198, 0.4);
}

.single-article__content p {
	margin-bottom: 1.1em;
}

.single-article__content ul,
.single-article__content ol {
	margin: 0 0 1.25em;
	padding-right: 1.35em;
}

.single-article__content li + li {
	margin-top: 0.35em;
}

/* Content images / figures */
.single-article__content figure {
	margin: 1.75rem 0;
	max-width: 100%;
}

.single-article__content .wp-block-image {
	margin: 1.75rem 0;
}

.single-article__content .wp-block-image img,
.single-article__content figure img,
.single-article__content p > img {
	width: 100%;
	max-width: 100%;
	height: auto;
	border-radius: var(--radius);
	border: 1px solid var(--border);
	display: block;
	margin: 0;
	object-fit: cover;
}

.single-article__content figcaption {
	margin-top: 0.55rem;
	text-align: center;
	color: var(--text-dim);
	font-size: 0.88rem;
	font-weight: 400;
}

.single-article__content .aligncenter {
	margin-left: auto;
	margin-right: auto;
}

.single-article__content .alignwide,
.single-article__content .alignfull {
	width: 100%;
	max-width: 100%;
}

/* Tables — keep real table layout; scroll the wrapper on small screens */
.single-article__content .wp-block-table {
	margin: 1.75rem 0;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
}

.single-article__content .wp-block-table table,
.single-article__content table {
	width: 100%;
	min-width: 280px;
	margin: 0;
	border-collapse: separate;
	border-spacing: 0;
	display: table;
	table-layout: fixed;
}

.single-article__content table:not(.wp-block-table table) {
	margin: 1.75rem 0;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
	overflow: hidden;
}

.single-article__content thead {
	background: rgba(69, 249, 198, 0.08);
}

.single-article__content th,
.single-article__content td {
	padding: 0.85rem 1rem;
	border-bottom: 1px solid var(--border);
	text-align: right;
	vertical-align: top;
	word-wrap: break-word;
}

.single-article__content th {
	color: var(--beige);
	font-weight: 600;
	font-size: 0.92rem;
}

.single-article__content td {
	color: var(--text-muted);
	font-weight: 300;
}

.single-article__content tr:last-child td {
	border-bottom: none;
}

.single-article__content tbody tr:hover td {
	background: rgba(69, 249, 198, 0.04);
}

@media (max-width: 640px) {
	.single-article__content th,
	.single-article__content td {
		padding: 0.7rem 0.65rem;
		font-size: 0.85rem;
	}
}

/* —— In-content rails (rewards / events) —— */
.crail {
	margin: 1.35rem 0 1.6rem;
}

.crail__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.65rem;
}

.crail__titles {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	min-width: 0;
}

.crail__label {
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--accent);
}

.crail__label--gold {
	color: var(--gold);
}

.crail__title {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--beige);
}

.crail__nav {
	display: flex;
	gap: 0.35rem;
	flex-shrink: 0;
}

.crail__btn {
	width: 32px;
	height: 32px;
	border-radius: 10px;
	border: 1px solid var(--border);
	background: var(--surface);
	color: var(--beige);
	font-size: 1.15rem;
	line-height: 1;
	cursor: pointer;
	display: inline-grid;
	place-items: center;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.crail__btn:hover,
.crail__btn:focus-visible {
	border-color: rgba(69, 249, 198, 0.5);
	background: rgba(69, 249, 198, 0.08);
	outline: none;
}

.crail__btn--gold:hover,
.crail__btn--gold:focus-visible {
	border-color: rgba(251, 229, 155, 0.55);
	background: rgba(251, 229, 155, 0.08);
}

.crail__btn:disabled {
	opacity: 0.35;
	cursor: default;
}

.crail__scroller {
	display: flex;
	gap: 0.75rem;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	padding: 0.15rem 0.1rem 0.35rem;
	scrollbar-width: none;
	direction: rtl;
}

.crail__scroller::-webkit-scrollbar {
	display: none;
}

.crail__scroller:focus-visible {
	outline: 2px solid rgba(69, 249, 198, 0.45);
	outline-offset: 3px;
	border-radius: 12px;
}

.crail__progress {
	height: 3px;
	margin-top: 0.55rem;
	border-radius: 999px;
	background: rgba(42, 63, 72, 0.8);
	overflow: hidden;
}

.crail__progress > span {
	display: block;
	height: 100%;
	width: 0%;
	border-radius: inherit;
	background: var(--accent);
	transition: width 0.25s ease;
}

.crail__progress--gold > span {
	background: linear-gradient(90deg, #a47c4a, #ffe690, #ccbd68);
}

/* Design A — reward cards */
.crail-card {
	flex: 0 0 min(86%, 300px);
	scroll-snap-align: start;
	display: grid;
	grid-template-columns: 56px 1fr auto;
	align-items: center;
	gap: 0.7rem;
	min-height: 92px;
	padding: 0.7rem 0.75rem;
	border-radius: 14px;
	border: 1px solid rgba(69, 249, 198, 0.28);
	background: linear-gradient(135deg, rgba(26, 42, 49, 0.98), rgba(15, 26, 31, 0.98));
	text-decoration: none;
	color: inherit;
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.crail-card:hover {
	border-color: rgba(69, 249, 198, 0.55);
	transform: translateY(-1px);
}

.crail-card__img {
	width: 56px;
	height: 56px;
	border-radius: 12px;
	object-fit: cover;
	border: 1px solid rgba(69, 249, 198, 0.25);
}

.crail-card__body {
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.28rem;
}

.crail-card__row {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	min-width: 0;
}

.crail-card__name {
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--beige);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.crail-card__badge {
	flex-shrink: 0;
	padding: 0.12rem 0.4rem;
	border-radius: 999px;
	font-size: 0.65rem;
	font-weight: 700;
	color: var(--beige);
	border: 1px solid rgba(204, 189, 104, 0.4);
	background: rgba(10, 18, 22, 0.7);
}

.crail-card.is-live .crail-card__badge {
	color: #0a1216;
	background: var(--accent);
	border-color: transparent;
}

.crail-card__prize {
	font-size: 0.78rem;
	color: var(--text-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.crail-card__time {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 0.45rem;
	margin-top: 0.1rem;
	font-size: 0.88rem;
	line-height: 1.2;
}

.crail-card__time-label {
	color: var(--text-dim);
	font-size: 0.8rem;
	font-weight: 500;
	white-space: nowrap;
}

.crail-card__count {
	display: inline-flex !important;
	align-items: center;
	font-size: 0.92rem !important;
	font-weight: 700;
	color: var(--gold);
	gap: 0.12rem !important;
	letter-spacing: 0.01em;
}

.crail-card__count [data-unit] {
	min-width: 1.45em !important;
	padding: 0.18rem 0.28rem !important;
	border-radius: 6px !important;
	font-size: 0.88rem;
	background: rgba(10, 18, 22, 0.75);
	border: 1px solid rgba(204, 189, 104, 0.35);
	text-align: center;
}

.crail-card__count .reward-card__sep {
	font-size: 0.85rem;
	opacity: 0.7;
}

.crail-card__count .reward-card__live-text {
	font-size: 0.88rem;
}

.crail-card__go {
	color: var(--accent);
	font-size: 1rem;
	opacity: 0.85;
}

/* Design B — event banners */
.crail-banner {
	flex: 0 0 min(92%, 340px);
	scroll-snap-align: start;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	min-height: 96px;
	height: 96px;
	padding: 0.95rem 0.95rem 0.8rem;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid rgba(204, 189, 104, 0.4);
	text-decoration: none;
	color: inherit;
}

.crail-banner__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
}

.crail-banner__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, rgba(8, 14, 18, 0.35), rgba(8, 14, 18, 0.88) 55%, rgba(8, 14, 18, 0.94));
}

.crail-banner__body {
	position: relative;
	z-index: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.18rem;
	flex: 1;
}

.crail-banner__status {
	width: fit-content;
	margin: 0.15rem 0 0.35rem;
	padding: 0.28rem 0.65rem;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--gold);
	border: 1px solid rgba(251, 229, 155, 0.4);
	background: rgba(15, 26, 31, 0.55);
}

.crail-banner__name {
	font-size: 0.95rem;
	font-weight: 700;
	color: #fff8e8;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.crail-banner__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	font-size: 0.72rem;
	color: rgba(255, 238, 178, 0.72);
}

.crail-banner__cta {
	position: relative;
	z-index: 1;
	flex-shrink: 0;
	padding: 0.4rem 0.75rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--beige);
	border: 1.5px solid #fbe59b;
	background: rgba(15, 26, 31, 0.7);
}

.crail-banner.is-featured .crail-banner__cta {
	color: #0a1216;
	background: linear-gradient(135deg, #ffe690, #ccbd68);
	border-color: transparent;
}

.crail-banner:hover .crail-banner__cta {
	filter: brightness(1.06);
}

@media (max-width: 520px) {
	.crail-card {
		flex-basis: 88%;
		min-height: 86px;
	}

	.crail-banner {
		flex-basis: 90%;
		min-height: 90px;
		height: 90px;
		padding-top: 0.9rem;
	}
}

.single-article__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--border);
}

.tag-pill {
	display: inline-flex;
	padding: 0.35rem 0.85rem;
	border-radius: 999px;
	border: 1px solid var(--border);
	color: var(--text-muted);
	font-size: 0.85rem;
	background: var(--surface);
}

.tag-pill:hover {
	border-color: var(--accent);
	color: var(--accent);
}

/* —— Sidebar —— */
.sidebar .widget {
	padding: 1.25rem;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	margin-bottom: 1.25rem;
}

.sidebar .widget--promo {
	padding: 0.85rem 0.75rem 1rem;
	background: transparent;
	border: none;
	margin-bottom: 0.75rem;
}

.sidebar-promos .crail {
	margin: 0;
}

.sidebar-promos .crail__head {
	margin-bottom: 0.55rem;
}

.sidebar-promos .crail__title {
	font-size: 0.88rem;
}

.sidebar-promos .crail__scroller {
	padding-inline: 0;
	gap: 0.55rem;
}

.sidebar-promos .crail-card,
.sidebar-promos .crail-banner {
	flex: 0 0 100%;
	max-width: 100%;
}

.sidebar-promos .crail-card {
	grid-template-columns: 48px 1fr auto;
	min-height: 84px;
	padding: 0.6rem 0.65rem;
}

.sidebar-promos .crail-card__img {
	width: 48px;
	height: 48px;
}

.sidebar-promos .crail-banner {
	min-height: 92px;
	height: 92px;
}

.sidebar-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.sidebar-empty {
	color: var(--text-dim);
	margin: 0;
	font-size: 0.9rem;
}

.widget-title {
	font-size: 1rem;
	margin-bottom: 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--border);
}

.widget ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.widget li {
	padding: 0.45rem 0;
	border-bottom: 1px solid rgba(42, 63, 72, 0.5);
}

.widget li:last-child {
	border-bottom: none;
}

.widget a {
	color: var(--text-muted);
}

.widget a:hover {
	color: var(--accent);
}

/* —— Search widget (RTL Persian + Figma CTA) —— */
.widget_search,
.widget_block.widget_search,
.wp-block-search {
	padding: 0 !important;
	background: transparent !important;
	border: none !important;
}

.widget_search .wp-block-search__label,
.wp-block-search .wp-block-search__label,
.widget_search > label {
	display: block;
	margin-bottom: 0.55rem;
	color: var(--beige);
	font-weight: 600;
	font-size: 0.95rem;
}

/* Hide duplicate visible labels that say "Search" */
.wp-block-search__label:not(.show-label) {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

.sheshobesh-search,
.wp-block-search__inside-wrapper {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: stretch;
	gap: 0 !important;
	width: 100%;
	min-height: 48px;
	border-radius: 12px;
	overflow: hidden;
	border: 1.5px solid #fbe59b;
	background: #1a242a;
	box-shadow: inset 4px 4px 14px rgba(0, 92, 115, 0.45);
	direction: rtl;
}

.wp-block-search__button {
	margin: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.sheshobesh-search__input,
.wp-block-search__input,
.widget_search input[type="search"],
.widget_search input[type="text"] {
	flex: 1 1 auto !important;
	width: auto !important;
	min-width: 0 !important;
	max-width: none !important;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	background: transparent !important;
	color: var(--beige) !important;
	padding: 0.75rem 1rem !important;
	font-family: var(--font) !important;
	font-size: 0.95rem !important;
	border-radius: 0 !important;
	line-height: 1.4;
	text-align: right;
}

.sheshobesh-search__input::placeholder,
.wp-block-search__input::placeholder {
	color: var(--text-dim);
	opacity: 1;
}

.sheshobesh-search__btn,
.wp-block-search__button,
.widget_search button[type="submit"],
.widget_search input[type="submit"] {
	flex: 0 0 auto !important;
	width: auto !important;
	min-width: 5.5rem !important;
	max-width: 7rem !important;
	height: auto !important;
	margin: 0 !important;
	border: none !important;
	border-radius: 0 !important;
	padding: 0 1rem !important;
	font-family: var(--font) !important;
	font-weight: 700 !important;
	font-size: 0.9rem !important;
	line-height: 1.2 !important;
	cursor: pointer;
	color: #ffeeb2 !important;
	background: radial-gradient(122.44% 136.15% at 50% 65.38%, rgba(5, 37, 55, 0.55) 17.31%, #00bfff 62.02%) !important;
	box-shadow: inset 0 -6px 24px rgba(0, 255, 136, 0.65);
	transition: filter 0.2s ease;
	white-space: nowrap;
}

.sheshobesh-search__btn:hover,
.wp-block-search__button:hover,
.widget_search button[type="submit"]:hover {
	filter: brightness(1.12);
}

.search-form.sheshobesh-search-wrap {
	max-width: none;
	margin: 0;
}

/* —— About / Contact —— */
.about-grid {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 3rem;
	align-items: start;
	padding-bottom: 4rem;
}

.about-content {
	font-weight: 300;
	color: var(--text-muted);
	font-size: 1.05rem;
	line-height: 1.9;
}

.about-stats {
	display: grid;
	gap: 1rem;
}

.stat-card {
	padding: 1.35rem;
	border-radius: var(--radius);
	background: var(--surface);
	border: 1px solid var(--border);
}

.stat-card strong {
	display: block;
	font-size: 1.8rem;
	background: var(--gold-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
	margin-bottom: 0.25rem;
}

.stat-card span {
	color: var(--text-muted);
	font-size: 0.9rem;
}

.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2.5rem;
	padding-bottom: 4rem;
}

.contact-form {
	display: grid;
	gap: 1rem;
}

.form-field label {
	display: block;
	margin-bottom: 0.4rem;
	color: var(--beige);
	font-size: 0.9rem;
	font-weight: 600;
}

.form-field input,
.form-field textarea {
	width: 100%;
	padding: 0.85rem 1rem;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border);
	background: var(--bg-elevated);
	color: var(--text);
	font-size: 1rem;
	transition: border-color 0.2s;
}

.form-field input:focus,
.form-field textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-field textarea {
	min-height: 160px;
	resize: vertical;
}

.contact-info {
	padding: 1.75rem;
	border-radius: var(--radius-lg);
	background: var(--surface);
	border: 1px solid var(--border);
}

.contact-info h2 {
	font-size: 1.3rem;
	margin-bottom: 1rem;
}

.contact-info p {
	color: var(--text-muted);
	font-weight: 300;
}

.alert {
	padding: 0.9rem 1.1rem;
	border-radius: var(--radius-sm);
	margin-bottom: 1rem;
	font-size: 0.95rem;
}

.alert--success {
	background: rgba(69, 249, 198, 0.12);
	border: 1px solid rgba(69, 249, 198, 0.35);
	color: var(--accent);
}

.alert--error {
	background: rgba(255, 107, 107, 0.12);
	border: 1px solid rgba(255, 107, 107, 0.35);
	color: var(--danger);
}

/* —— Pagination —— */
.pagination {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	padding: 2.5rem 0 4rem;
}

.pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	padding: 0 0.75rem;
	border-radius: 10px;
	border: 1px solid var(--border);
	color: var(--text-muted);
	background: var(--surface);
	font-weight: 600;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
	border-color: var(--accent);
	color: var(--accent);
}

/* —— Footer —— */
.site-footer {
	border-top: 1px solid var(--border);
	background: var(--bg-deep);
	padding: 3rem 0 1.5rem;
	margin-top: 2rem;
}

.footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 2rem;
	margin-bottom: 2.5rem;
}

.footer__brand p {
	color: var(--text-muted);
	font-weight: 300;
	max-width: 36ch;
	margin-top: 0.75rem;
}

.footer__nav h4 {
	font-size: 0.95rem;
	margin-bottom: 1rem;
}

.footer__nav ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer__nav a {
	display: block;
	padding: 0.35rem 0;
	color: var(--text-muted);
	font-size: 0.92rem;
}

.footer__nav a:hover {
	color: var(--accent);
}

.footer__bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--border);
	color: var(--text-dim);
	font-size: 0.85rem;
}

/* —— Empty / 404 —— */
.empty-state {
	text-align: center;
	padding: 4rem 1rem;
	color: var(--text-muted);
}

.empty-state h1,
.empty-state h2 {
	margin-bottom: 0.75rem;
}

/* —— Responsive —— */
@media (max-width: 960px) {
	.hero__grid,
	.about-grid,
	.contact-grid,
	.blog-layout {
		grid-template-columns: 1fr;
	}

	.hero__visual {
		max-width: 100%;
		width: 100%;
		order: -1;
		aspect-ratio: 1191 / 855;
		margin-bottom: 0.5rem;
	}

	.hero__board-img {
		object-fit: contain;
		background: #0a1216;
	}

	.hero-demo__checker {
		max-width: 16px;
	}

	.hero-demo__hud {
		font-size: 0.75rem;
	}

	.post-grid,
	.tournament-grid {
		grid-template-columns: 1fr 1fr;
	}

	.footer__grid {
		grid-template-columns: 1fr 1fr;
	}

	.site-header__inner {
		position: relative;
		gap: 0.75rem;
	}

	.site-brand {
		min-width: 0;
	}

	.site-brand__name {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		max-width: 46vw;
	}

	.nav-toggle {
		display: flex;
	}

	.header-actions__download {
		display: none;
	}

	.primary-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		width: 100%;
		background: rgba(10, 18, 22, 0.98);
		border-bottom: 1px solid var(--border);
		padding: 0.75rem 1rem 1rem;
		z-index: 120;
		box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
	}

	.primary-nav.is-open {
		display: block;
	}

	.primary-nav ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0.25rem;
	}

	.primary-nav a {
		padding: 0.85rem 1rem;
		border-radius: 12px;
	}
}

@media (max-width: 640px) {
	.post-grid,
	.tournament-grid,
	.footer__grid,
	.related-posts .post-grid {
		grid-template-columns: 1fr;
	}

	.posts-list .post-card {
		flex-direction: column;
	}

	.posts-list .post-card__media {
		width: calc(100% - 2rem);
		margin: 1rem;
		min-height: 160px;
	}

	.ranking-table th:nth-child(3),
	.ranking-table td:nth-child(3) {
		display: none;
	}

	.hero {
		padding-top: 2rem;
		padding-bottom: 2rem;
	}

	.hero__title {
		font-size: 1.85rem;
	}

	.single-article__thumb img {
		width: 100%;
		height: auto;
		object-fit: cover;
	}
}

/* —— Related posts & comments —— */
.related-posts {
	padding: 2.5rem 0 1rem;
	margin-top: 1rem;
	border-top: 1px solid var(--border);
}

.comments-section {
	padding: 1rem 0 4rem;
}

.comments-area {
	margin-top: 1rem;
	padding: 1.5rem;
	border-radius: var(--radius-lg);
	border: 1px solid var(--border);
	background: var(--surface);
}

.comments-title {
	font-size: 1.35rem;
	margin-bottom: 1.25rem;
}

.comments-empty,
.comments-closed p,
.comment-notes {
	color: var(--text-muted);
	font-weight: 300;
}

.comment-list {
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
}

.comment-list .children {
	list-style: none;
	margin: 1rem 0 0;
	padding: 0 1rem 0 0;
	border-right: 2px solid rgba(69, 249, 198, 0.2);
}

.comment-body {
	padding: 1rem 0;
	border-bottom: 1px solid rgba(42, 63, 72, 0.6);
}

.comment-list > li:last-child > .comment-body {
	border-bottom: none;
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.65rem;
}

.comment-author img {
	border-radius: 50%;
	border: 1.5px solid var(--border-gold);
}

.comment-author .fn {
	color: var(--beige);
	font-weight: 600;
}

.comment-author .fn a {
	color: inherit;
}

.comment-date {
	display: block;
	font-size: 0.8rem;
	color: var(--text-dim);
	margin-top: 0.15rem;
}

.comment-content {
	color: var(--text-muted);
	font-weight: 300;
	line-height: 1.8;
}

.comment-content p:last-child {
	margin-bottom: 0;
}

.comment-awaiting {
	color: var(--gold);
	font-size: 0.9rem;
}

.comment-reply a {
	display: inline-flex;
	margin-top: 0.5rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--accent);
}

.sheshobesh-comment-form {
	display: grid;
	gap: 0.85rem;
	margin-top: 1.25rem;
}

.sheshobesh-comment-form .form-field label,
.sheshobesh-comment-form label {
	display: block;
	margin-bottom: 0.35rem;
	color: var(--beige);
	font-size: 0.9rem;
	font-weight: 600;
}

.sheshobesh-comment-form input[type="text"],
.sheshobesh-comment-form input[type="email"],
.sheshobesh-comment-form textarea {
	width: 100%;
	padding: 0.85rem 1rem;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border);
	background: var(--bg-elevated);
	color: var(--text);
	font-family: inherit;
	font-size: 1rem;
}

.sheshobesh-comment-form input:focus,
.sheshobesh-comment-form textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-glow);
}

.sheshobesh-comment-form .required {
	color: var(--accent);
}

.sheshobesh-comment-form .form-submit {
	margin: 0.5rem 0 0;
}