/* GameOn — нүүр (HomePage.jsx) */

@import url("board-wash.css");

.home-gate {
	--ink: #141821;
	--mono: "IBM Plex Mono", ui-monospace, monospace;
	--display: "Oswald", sans-serif;
	--sans: "Manrope", system-ui, sans-serif;

	margin: 0;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	background: #efe7d0;
	color: var(--ink);
	font-family: var(--sans);
	font-size: 0.9375rem;
	line-height: 1.5;
}

.home-gate *,
.home-gate *::before,
.home-gate *::after {
	box-sizing: border-box;
}

.home-gate a {
	color: inherit;
	text-decoration: none;
}

/* ---------- header ---------- */

.gate-brand {
	position: relative;
	overflow: hidden;
}

.gate-brand::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 90px;
	pointer-events: none;
	background: linear-gradient(to bottom, transparent, rgba(11, 14, 18, 0.85));
}

.gate-brand-in {
	position: relative;
	z-index: 1;
	max-width: 1560px;
	margin: 0 auto;
	padding: 26px 32px 30px;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 26px;
	align-items: center;
}

.gate-ad--left {
	justify-self: end;
	min-width: 0;
}

.gate-ad--right {
	justify-self: start;
	min-width: 0;
}

.home-mark {
	display: flex;
	flex-direction: column;
	align-items: center;
	line-height: 0.82;
	flex: none;
}

.home-mark-row {
	display: flex;
	align-items: center;
	gap: 2px;
}

.home-mark-letter,
.home-mark-dart {
	font-family: var(--display);
	font-weight: 700;
	font-size: clamp(44px, 5.4vw, 74px);
	color: #ffffff;
}

.home-mark-dart {
	letter-spacing: 0.08em;
	margin-top: 6px;
}

.home-mark-o {
	width: clamp(38px, 4.6vw, 62px);
	height: clamp(38px, 4.6vw, 62px);
	border-radius: 50%;
	border: 4px solid #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
}

.home-mark-bull {
	width: 36%;
	height: 36%;
	border-radius: 50%;
	background: #e0322e;
	box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.9);
}

.gate-ad {
	width: 100%;
	max-width: 350px;
	height: 90px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	border: 1px dashed rgba(255, 255, 255, 0.22);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.02);
	text-align: center;
}

.gate-ad-size {
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.16em;
	color: #9a927c;
}

.gate-ad-text {
	font-size: 13px;
	color: #b8b09a;
	line-height: 1.4;
}

@media (max-width: 860px) {
	.gate-brand-in {
		grid-template-columns: 1fr;
		justify-items: center;
		gap: 18px;
		padding: 22px 16px 24px;
	}

	.gate-ad--left,
	.gate-ad--right {
		justify-self: center;
	}

	.home-mark {
		order: -1;
	}
}

/* ---------- ticker ---------- */

.gate-ticker {
	background: #ffffff;
	border-top: 1px solid rgba(20, 24, 33, 0.1);
	border-bottom: 1px solid rgba(20, 24, 33, 0.1);
	overflow: hidden;
	position: relative;
}

.gate-ticker-viewport {
	height: 52px;
	position: relative;
	overflow: hidden;
}

.gate-ticker-viewport::before,
.gate-ticker-viewport::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	width: 56px;
	z-index: 2;
	pointer-events: none;
}

.gate-ticker-viewport::before {
	left: 0;
	background: linear-gradient(to right, #ffffff, rgba(255, 255, 255, 0));
}

.gate-ticker-viewport::after {
	right: 0;
	background: linear-gradient(to left, #ffffff, rgba(255, 255, 255, 0));
}

.gate-ticker-track {
	position: absolute;
	top: 0;
	left: 0;
	display: flex;
	align-items: center;
	height: 52px;
	width: max-content;
	white-space: nowrap;
	will-change: transform;
}

.gate-ticker-track.is-ready {
	animation: tickerRun 46s linear infinite;
}

.gate-ticker-track:hover {
	animation-play-state: paused;
}

.gate-ticker-strip {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	height: 52px;
	white-space: nowrap;
}

.gate-ticker-item {
	display: inline-flex;
	align-items: baseline;
	gap: 7px;
	padding: 0 20px;
	border-right: 1px solid rgba(20, 24, 33, 0.09);
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.14em;
	color: #4d4a3f;
	text-transform: uppercase;
}

.gate-ticker-item b {
	font-family: var(--display);
	font-size: 17px;
	font-weight: 400;
	letter-spacing: 0;
	font-variant-numeric: tabular-nums;
	color: var(--ink);
}

.gate-ticker-gold,
.gate-ticker-gold b {
	color: #17703d;
}

.gate-ticker-hot,
.gate-ticker-hot b {
	color: #e0322e;
}

.gate-ticker-violet,
.gate-ticker-violet b {
	color: var(--ink);
}

.gate-ticker-violet {
	color: #4d4a3f;
}

.gate-ticker-dot {
	display: none;
}

@keyframes tickerRun {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.gate-ticker-viewport::before,
	.gate-ticker-viewport::after {
		display: none;
	}

	.gate-ticker-track.is-ready {
		animation: none;
		position: relative;
		width: 100%;
		justify-content: center;
		flex-wrap: wrap;
		height: auto;
		white-space: normal;
	}

	.gate-ticker-viewport {
		height: auto;
		overflow-x: auto;
	}

	.gate-ticker-strip[aria-hidden="true"] {
		display: none;
	}

	.gate-ticker-item {
		white-space: nowrap;
		padding: 8px 16px;
	}
}

/* ---------- 6 блок ---------- */

.gate-main {
	flex: 1 1 auto;
	width: 100%;
	max-width: 1300px;
	margin: 0 auto;
	padding: clamp(28px, 5vw, 56px) 32px clamp(40px, 6vw, 72px);
}

.gate-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

.gate-card {
	flex: 0 1 380px;
	max-width: 100%;
	position: relative;
	overflow: hidden;
	border-radius: 4px 20px 4px 20px;
	padding: 18px 20px;
	min-height: 124px;
	display: flex;
	align-items: center;
	gap: 16px;
	transition: transform 150ms ease, box-shadow 150ms ease;
}

.gate-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 30px rgba(20, 24, 33, 0.16);
}

.gate-card:focus-visible {
	outline: 2px solid #f0a93c;
	outline-offset: 3px;
}

.gate-card-ring {
	position: absolute;
	right: -34px;
	top: -34px;
	width: 112px;
	height: 112px;
	border-radius: 50%;
	border: 12px solid var(--card-ring);
	pointer-events: none;
}

.gate-icon {
	position: relative;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--card-icon-bg);
	color: var(--card-icon);
}

.gate-icon svg {
	display: block;
}

.gate-card-copy {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.gate-card-title {
	font-family: var(--display);
	font-weight: 600;
	font-size: clamp(19px, 2.2vw, 24px);
	line-height: 1.05;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--card-fg);
	text-wrap: pretty;
}

.gate-card-desc {
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--card-meta);
	text-wrap: pretty;
}

.gate-card--red {
	--card-fg: #ffffff;
	--card-meta: #ffffff;
	--card-ring: rgba(255, 255, 255, 0.14);
	--card-icon-bg: rgba(255, 255, 255, 0.16);
	--card-icon: #ffffff;
	background: #c2211d;
}

.gate-card--green {
	--card-fg: #ffffff;
	--card-meta: #ffffff;
	--card-ring: rgba(255, 255, 255, 0.14);
	--card-icon-bg: rgba(255, 255, 255, 0.16);
	--card-icon: #ffffff;
	background: #17703d;
}

.gate-card--dark {
	--card-fg: #ffffff;
	--card-meta: #b3ada0;
	--card-ring: rgba(255, 255, 255, 0.06);
	--card-icon-bg: rgba(255, 255, 255, 0.09);
	--card-icon: #ffffff;
	background: #16181a;
}

.gate-card--light {
	--card-fg: #141821;
	--card-meta: #5f5b4d;
	--card-ring: rgba(20, 24, 33, 0.06);
	--card-icon-bg: rgba(20, 24, 33, 0.06);
	--card-icon: #141821;
	background: #fbf7ec;
}

/* ---------- footer ---------- */

.gate-foot {
	position: relative;
	overflow: hidden;
}

.gate-foot nav {
	position: relative;
	max-width: 1300px;
	margin: 0 auto;
	padding: 26px 32px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 4px;
}

.gate-foot a {
	font-size: 14px;
	color: #cfc9b6;
	padding: 9px 16px;
	border-radius: 8px;
}

.gate-foot a:hover {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.06);
}

.gate-foot a.gate-foot-chat {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: #ffffff;
	background: #c8102e;
	font-weight: 700;
	padding: 9px 18px;
	border-radius: 999px;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85), 0 4px 18px rgba(200, 16, 46, 0.55);
}

.gate-foot a.gate-foot-chat:hover {
	background: #e0142f;
	color: #ffffff;
}

.gate-foot a.gate-foot-chat::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #7dffb0;
}

@media (max-width: 520px) {
	.gate-main {
		padding-inline: 16px;
	}

	.gate-foot nav {
		padding-inline: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gate-card {
		transition: none;
	}

	.gate-card:hover {
		transform: none;
	}
}
