/* ==========================================================================
   JinisterX — brand tokens
   ========================================================================== */
@font-face {
	font-family: "Masque";
	src: url("../assets/fonts/Masque.ttf") format("truetype");
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

:root {
	--jx-bg: #0a0908;
	--jx-bg-alt: #131110;
	--jx-bg-card: #17140f0d;
	--jx-line: rgba(255, 255, 255, 0.09);
	--jx-red: #d81f16;
	--jx-red-bright: #ff3b2e;
	--jx-red-deep: #7a0f0a;
	--jx-white: #f2f2f0;
	--jx-gray: #a3a19d;
	--jx-gray-dim: #6b6864;
	--font-display: "Anton", "Arial Narrow", sans-serif;
	--font-body: "Rajdhani", "Segoe UI", system-ui, sans-serif;
	--font-brand: "Masque", "Anton", "Arial Narrow", sans-serif;
	--container: 1180px;
	--radius: 10px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scrollbar-color: var(--jx-red) var(--jx-bg-alt);
	scrollbar-width: thin;
}

body {
	margin: 0;
	background: var(--jx-bg);
	color: var(--jx-white);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	scrollbar-color: var(--jx-red) var(--jx-bg-alt);
	scrollbar-width: thin;
}

select {
	scrollbar-color: var(--jx-red) var(--jx-bg-alt);
	scrollbar-width: thin;
}

::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}
::-webkit-scrollbar-track {
	background: var(--jx-bg-alt);
}
::-webkit-scrollbar-thumb {
	background: var(--jx-red);
	border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
	background: var(--jx-red-bright);
}

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

a {
	color: inherit;
	text-decoration: none;
}

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

.skip-link {
	position: absolute;
	left: -999px;
	top: 0;
	background: var(--jx-red);
	color: #fff;
	padding: 10px 16px;
	z-index: 200;
}
.skip-link:focus {
	left: 12px;
	top: 12px;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 400;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	margin: 0 0 12px;
	line-height: 1.05;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-display);
	font-size: 13px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--jx-red-bright);
	margin-bottom: 10px;
}
.eyebrow::before {
	content: "";
	width: 22px;
	height: 2px;
	background: var(--jx-red-bright);
	display: inline-block;
}

.section {
	padding: 88px 0;
	border-bottom: 1px solid var(--jx-line);
}

.section-head {
	max-width: 640px;
	margin: 0 0 40px;
}

.section-head p {
	color: var(--jx-gray);
	margin: 0;
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-display);
	letter-spacing: 1px;
	text-transform: uppercase;
	font-size: 14px;
	padding: 14px 26px;
	border-radius: 4px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover {
	transform: translateY(-2px);
}
.btn-primary {
	background: transparent;
	border-color: var(--jx-red);
	color: #fff;
}
.btn-primary:hover {
	background: rgba(216, 31, 22, 0.12);
	border-color: var(--jx-red-bright);
	box-shadow: 0 8px 24px rgba(216, 31, 22, 0.25);
}
.btn-outline {
	border-color: var(--jx-red);
	color: var(--jx-white);
	background: transparent;
}
.btn-outline:hover {
	border-color: var(--jx-red-bright);
	background: rgba(216, 31, 22, 0.12);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	padding: 18px 0;
	background: linear-gradient(to bottom, rgba(10, 9, 8, 0.85), rgba(10, 9, 8, 0));
	transition: background 0.25s ease, padding 0.25s ease, border-color 0.25s ease;
	border-bottom: 1px solid transparent;
}
.site-header.scrolled {
	background: rgba(10, 9, 8, 0.92);
	backdrop-filter: blur(10px);
	padding: 12px 0;
	border-bottom-color: var(--jx-line);
}
.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}
.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--font-display);
	font-size: 22px;
	letter-spacing: 1px;
}
.brand-word {
	white-space: nowrap;
	font-family: var(--font-brand);
	letter-spacing: 1.5px;
}
.brand img {
	width: 34px;
	height: 34px;
}
.brand .x {
	color: var(--jx-red);
}
.main-nav {
	display: flex;
	align-items: center;
	gap: 28px;
}
.main-nav a {
	font-family: var(--font-display);
	font-size: 13px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--jx-gray);
	transition: color 0.2s ease;
}
.main-nav a:hover {
	color: var(--jx-white);
}
.header-actions {
	display: flex;
	align-items: center;
	gap: 18px;
}
.social-row {
	display: flex;
	gap: 14px;
}
.social-row a {
	width: 32px;
	height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	border: 1px solid var(--jx-line);
	color: var(--jx-gray);
	transition: all 0.2s ease;
}
.social-row a:hover {
	color: #fff;
	border-color: var(--jx-red);
	background: var(--jx-red);
}
.social-row svg {
	width: 15px;
	height: 15px;
	fill: currentColor;
}
.nav-toggle {
	display: none;
	background: none;
	border: 1px solid var(--jx-line);
	border-radius: 4px;
	width: 40px;
	height: 40px;
	color: var(--jx-white);
	cursor: pointer;
}
.mobile-nav {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(78vw, 320px);
	background: #0c0b0a;
	border-left: 1px solid var(--jx-line);
	z-index: 150;
	padding: 90px 28px 28px;
	transform: translateX(100%);
	transition: transform 0.3s ease;
	display: flex;
	flex-direction: column;
	gap: 22px;
}
.mobile-nav.open {
	transform: translateX(0);
}
.mobile-nav a {
	font-family: var(--font-display);
	font-size: 20px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--jx-white);
}
.mobile-nav .social-row {
	margin-top: 14px;
	padding-top: 24px;
	border-top: 1px solid var(--jx-line);
}
.nav-scrim {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: 140;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}
.nav-scrim.open {
	opacity: 1;
	pointer-events: auto;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
	position: relative;
	min-height: 100svh;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	background: #000;
}
.hero-video-wrap {
	position: absolute;
	inset: 0;
	overflow: hidden;
}
.hero-video-wrap video {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transform: translate(-50%, -50%) scale(1.35);
	filter: saturate(1.15);
}
.hero-scrim {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse at 50% 40%, rgba(10, 9, 8, 0.35) 0%, rgba(10, 9, 8, 0.86) 62%, rgba(10, 9, 8, 0.98) 100%),
		linear-gradient(to bottom, rgba(10, 9, 8, 0.55) 0%, rgba(10, 9, 8, 0.35) 30%, rgba(10, 9, 8, 0.95) 100%);
}
.hero-content {
	position: relative;
	z-index: 2;
	width: 100%;
	text-align: center;
	padding-bottom: 120px;
}
.hero-content .eyebrow {
	justify-content: center;
}
.hero-content .eyebrow::after {
	content: "";
	width: 22px;
	height: 2px;
	background: var(--jx-red-bright);
	display: inline-block;
}
.hero-tagline {
	max-width: 560px;
	margin: 10px auto 34px;
	color: var(--jx-gray);
	font-size: 19px;
}
.hero-cta {
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
}
.hero-scroll {
	position: absolute;
	bottom: 28px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	color: var(--jx-gray-dim);
	font-family: var(--font-display);
	font-size: 11px;
	letter-spacing: 3px;
	text-transform: uppercase;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}
.hero-scroll::after {
	content: "";
	width: 1px;
	height: 34px;
	background: linear-gradient(to bottom, var(--jx-red), transparent);
	animation: scrollpulse 1.8s ease-in-out infinite;
}
@keyframes scrollpulse {
	0%, 100% { opacity: 0.2; }
	50% { opacity: 1; }
}

/* ==========================================================================
   Glow divider — reusable futuristic accent line
   ========================================================================== */
.glow-divider {
	width: min(320px, 70%);
	height: 1px;
	margin: 0 auto 40px;
	background: linear-gradient(to right, transparent, var(--jx-red-bright), transparent);
	box-shadow: 0 0 6px rgba(216, 31, 22, 0.4);
	animation: glowpulse 3.2s ease-in-out infinite;
}
.glow-divider.left {
	margin: 0 0 40px;
	background: linear-gradient(to right, var(--jx-red-bright), transparent);
}
@keyframes glowpulse {
	0%, 100% { opacity: 0.35; }
	50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
	.glow-divider {
		animation: none;
		opacity: 0.7;
	}
}

/* ==========================================================================
   Ticker
   ========================================================================== */
.ticker {
	background: var(--jx-bg-alt);
	border-top: 1px solid var(--jx-red);
	border-bottom: 1px solid var(--jx-red);
	overflow: hidden;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	z-index: 3;
	animation: ticker-reveal 1.1s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.ticker-item {
	font-family: var(--font-display);
	font-size: 14px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--jx-red-bright);
	white-space: nowrap;
	animation: ticker-item-cycle 4s ease-in-out infinite;
}
@keyframes ticker-item-cycle {
	0% { transform: translateX(70vw); opacity: 0; }
	18% { transform: translateX(0); opacity: 1; }
	72% { transform: translateX(0); opacity: 1; }
	100% { transform: translateX(-70vw); opacity: 0; }
}
@keyframes ticker-reveal {
	from { clip-path: inset(0 0 0 100%); }
	to { clip-path: inset(0 0 0 0%); }
}

/* ==========================================================================
   Games
   ========================================================================== */
.games-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}
.game-card {
	position: relative;
	border: 1px solid var(--jx-line);
	border-radius: var(--radius);
	padding: 32px;
	background: linear-gradient(160deg, #171412, #0d0b0a);
	overflow: hidden;
	transition: border-color 0.25s ease, transform 0.25s ease;
}
.game-card:hover {
	border-color: rgba(216, 31, 22, 0.45);
	transform: translateY(-4px);
}
.game-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 100% 0%, rgba(216, 31, 22, 0.18), transparent 55%);
	pointer-events: none;
}
.game-badge {
	display: inline-block;
	font-family: var(--font-display);
	font-size: 11px;
	letter-spacing: 2px;
	color: var(--jx-red-bright);
	border: 1px solid rgba(216, 31, 22, 0.4);
	padding: 5px 10px;
	border-radius: 3px;
	margin-bottom: 16px;
}
.game-card h3 {
	font-size: 30px;
	margin-bottom: 10px;
}
.game-card p {
	color: var(--jx-gray);
	margin: 0 0 20px;
}
.game-card a.btn {
	font-size: 12px;
	padding: 11px 20px;
}

/* ==========================================================================
   Team-up promo
   ========================================================================== */
.teamup {
	position: relative;
	border-radius: 16px;
	border: 1px solid rgba(216, 31, 22, 0.35);
	background:
		radial-gradient(circle at 85% 20%, rgba(216, 31, 22, 0.22), transparent 55%),
		linear-gradient(140deg, #16110f 0%, #0a0908 70%);
	padding: 56px;
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 40px;
	align-items: center;
	overflow: hidden;
}
.teamup::after {
	content: "";
	position: absolute;
	right: -60px;
	top: -60px;
	width: 320px;
	height: 320px;
	background: url("../assets/img/x-mark-512.png") center / contain no-repeat;
	opacity: 0.08;
	pointer-events: none;
}
.teamup-copy .eyebrow {
	color: var(--jx-red-bright);
}
.teamup h2 {
	font-size: clamp(30px, 4vw, 46px);
	margin-bottom: 16px;
}
.teamup p {
	color: var(--jx-gray);
	font-size: 18px;
	max-width: 480px;
	margin: 0 0 26px;
}
.teamup-visual {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}
.teamup-orb {
	width: 100%;
	aspect-ratio: 1;
	max-width: 260px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, rgba(216, 31, 22, 0.55), rgba(10, 9, 8, 0.1) 65%);
	border: 1px solid rgba(216, 31, 22, 0.4);
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}
.teamup-orb img {
	width: 46%;
	filter: drop-shadow(0 0 30px rgba(216, 31, 22, 0.6));
	animation: float 4s ease-in-out infinite;
}
@keyframes float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}
.teamup-tags {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 26px;
}
.teamup-tags span {
	font-size: 12px;
	font-family: var(--font-display);
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--jx-gray);
	border: 1px solid var(--jx-line);
	padding: 6px 12px;
	border-radius: 20px;
}

/* ==========================================================================
   Video / embed grids
   ========================================================================== */
.embed-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
.video-card {
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--jx-line);
	background: var(--jx-bg-alt);
}
.video-card .frame-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
}
.video-card iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
.section-cta {
	margin-top: 32px;
	text-align: center;
}

.tiktok-embed-shell {
	display: flex;
	justify-content: center;
}
:where(.tiktok-embed) {
	border-radius: var(--radius) !important;
	overflow: hidden;
	border: 1px solid var(--jx-line) !important;
}

.follow-panel {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	flex-wrap: wrap;
	border: 1px solid var(--jx-line);
	border-radius: var(--radius);
	padding: 40px;
	background: linear-gradient(135deg, #17120f, #0a0908);
}
.follow-panel .handle {
	display: flex;
	align-items: center;
	gap: 18px;
}
.follow-panel .avatar {
	width: 62px;
	height: 62px;
	border-radius: 50%;
	background: var(--jx-red);
	display: flex;
	align-items: center;
	justify-content: center;
}
.follow-panel .avatar svg {
	width: 28px;
	height: 28px;
	fill: #fff;
}
.follow-panel h3 {
	margin: 0 0 4px;
	font-size: 22px;
}
.follow-panel p {
	margin: 0;
	color: var(--jx-gray);
}

/* ==========================================================================
   Support strip
   ========================================================================== */
.support-strip {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}
.support-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 28px 18px;
	border: 1px solid var(--jx-line);
	border-radius: var(--radius);
	transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.support-card:hover {
	border-color: rgba(216, 31, 22, 0.5);
	background: rgba(216, 31, 22, 0.06);
	transform: translateY(-3px);
}
.platform-badge {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: 1.5px solid rgba(216, 31, 22, 0.55);
	background: transparent;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 14px;
	transition: background 0.2s ease, border-color 0.2s ease;
}
.support-card:hover .platform-badge {
	border-color: var(--jx-red);
	background: rgba(216, 31, 22, 0.12);
}
.platform-icon {
	width: 24px;
	height: 24px;
	fill: var(--jx-red-bright);
}
.support-card span:last-child {
	color: var(--jx-gray);
	font-size: 13px;
	letter-spacing: 1px;
	text-transform: uppercase;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
	padding: 56px 0 28px;
	background: var(--jx-bg-alt);
}
.footer-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 40px;
	flex-wrap: wrap;
	padding-bottom: 36px;
	border-bottom: 1px solid var(--jx-line);
	margin-bottom: 24px;
}
.footer-links {
	display: flex;
	gap: 56px;
	flex-wrap: wrap;
}
.footer-col h4 {
	font-size: 13px;
	letter-spacing: 1.5px;
	color: var(--jx-gray-dim);
	margin-bottom: 14px;
}
.footer-col a {
	display: block;
	color: var(--jx-gray);
	padding: 6px 0;
	font-size: 15px;
	transition: color 0.2s ease;
}
.footer-col a:hover {
	color: var(--jx-white);
}
.footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	color: var(--jx-gray-dim);
	font-size: 13px;
}
.back-to-top {
	border: 1px solid var(--jx-line);
	border-radius: 50%;
	width: 38px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--jx-gray);
}
.back-to-top:hover {
	border-color: var(--jx-red);
	color: #fff;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
	.main-nav {
		display: none;
	}
	.header-actions .social-row {
		display: none;
	}
	.nav-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}
	.games-grid {
		grid-template-columns: 1fr;
	}
	.teamup {
		grid-template-columns: 1fr;
		padding: 36px 24px;
	}
	.teamup-visual {
		order: -1;
	}
	.embed-grid {
		grid-template-columns: 1fr;
	}
	.support-strip {
		grid-template-columns: repeat(2, 1fr);
	}
	.section {
		padding: 64px 0;
	}
}

@media (max-width: 560px) {
	.hero-video-wrap video {
		object-fit: contain;
		transform: translate(-50%, -78%) scale(1.8);
		mask-image: linear-gradient(to bottom, transparent 0%, transparent 26%, black 40%, black 60%, transparent 74%, transparent 100%);
		-webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 26%, black 40%, black 60%, transparent 74%, transparent 100%);
	}
	.hero-content {
		padding-bottom: clamp(90px, calc(33.5vh - 91.5px), 180px);
	}
	.hero-tagline {
		margin: 8px auto 20px;
		font-size: 16px;
	}
	.hero-cta {
		flex-direction: column;
		width: 100%;
		gap: 18px;
	}
	.hero-cta .btn {
		justify-content: center;
		padding: 12px 26px;
	}
	.follow-panel {
		flex-direction: column;
		text-align: center;
	}
	.follow-panel .handle {
		flex-direction: column;
	}
	.support-strip {
		grid-template-columns: 1fr 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	.ticker,
	.ticker-item,
	.hero-scroll::after,
	.teamup-orb img {
		animation: none;
		transform: none;
		clip-path: none;
	}
}
