/* =========================================================================
   Home page (ru/index.html, tm/index.html): presents the platform and the
   Windows launcher. Tokens and shared components come from theme.css.
   ========================================================================= */

.gg-home main {
	overflow-x: clip;
}

/* Cards get a blue light from the top-left corner instead of a flat fill, like Steam capsules */
.gg-home {
	--home-lit:
		linear-gradient(160deg, rgba(43, 83, 118, 0.3), rgba(30, 44, 62, 0.55) 45%, rgba(24, 34, 48, 0.8)),
		#182230;
}

.gg-home section {
	padding: 0;
}

.gg-home h2 {
	margin-bottom: 0;
}

.home-accent {
	color: var(--gg-accent);
}

/* ---------- Hero ---------- */

.home-hero {
	position: relative;
	isolation: isolate;
	padding: var(--gg-space-8) 0 var(--gg-space-7) !important;
	background:
		radial-gradient(55% 70% at 78% 35%, rgba(57, 154, 237, 0.16), transparent 70%),
		radial-gradient(40% 50% at 10% 0%, rgba(91, 200, 244, 0.07), transparent 70%);
}

/* The launcher catalog, tilted and dimmed, fills the empty sides like Steam's event art.
   Dark on the left where the text is, fading out to the bottom. */
.home-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(90deg, #142030 0%, rgba(20, 32, 48, 0.9) 32%, rgba(20, 32, 48, 0.5) 62%, rgba(20, 32, 48, 0.3) 100%),
		url("/assets/home/hero-backdrop.webp");
	background-image:
		linear-gradient(90deg, #142030 0%, rgba(20, 32, 48, 0.9) 32%, rgba(20, 32, 48, 0.5) 62%, rgba(20, 32, 48, 0.3) 100%),
		image-set(url("/assets/home/hero-backdrop.avif") type("image/avif"), url("/assets/home/hero-backdrop.webp") type("image/webp"));
	background-position: center;
	background-size: cover;
	-webkit-mask-image: linear-gradient(180deg, #000 50%, transparent);
	mask-image: linear-gradient(180deg, #000 50%, transparent);
}

.home-hero::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--gg-line) 20%, var(--gg-line) 80%, transparent);
}

.home-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	align-items: center;
	gap: var(--gg-space-7);
}

.home-hero__copy {
	min-width: 0;
}

.home-hero__title {
	margin: 0;
	font-size: var(--gg-fs-display);
	font-weight: 600;
	line-height: 1.04;
	letter-spacing: -0.005em;
}

.home-hero__lead {
	margin: var(--gg-space-4) 0 0;
	max-width: 520px;
	color: var(--gg-text-2);
	font-size: var(--gg-fs-body-l);
	line-height: 1.6;
}

.home-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--gg-space-3);
	margin-top: var(--gg-space-6);
}

.home-hero__note {
	margin: var(--gg-space-3) 0 0;
	color: var(--gg-text-3);
	font-size: 13px;
}

.home-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--gg-space-2) var(--gg-space-5);
	margin: var(--gg-space-5) 0 0;
	padding: 0;
	list-style: none;
	color: var(--gg-text-2);
	font-size: var(--gg-fs-small);
}

.home-hero__meta li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.home-hero__meta svg {
	color: var(--gg-ok);
}

.home-hero__meta a {
	color: var(--gg-text-2);
	text-decoration: none;
	border-bottom: 1px dashed var(--gg-line-strong);
}

.home-hero__meta a:hover {
	color: var(--gg-accent);
	border-color: var(--gg-accent);
}

/* Launcher screenshot in a frame */
.home-hero__visual {
	position: relative;
	min-width: 0;
}

.home-shot {
	position: relative;
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--gg-line-strong);
	border-radius: var(--gg-radius-l);
	background: var(--gg-head);
	box-shadow: var(--gg-shadow-3), 0 0 0 6px rgba(255, 255, 255, 0.02);
}

.home-shot img {
	display: block;
	width: 100%;
	height: auto;
}

.home-hero__visual .home-shot {
	transform: perspective(1800px) rotateY(-4deg);
	transform-origin: left center;
}

/* Small cards floating over the screenshot */
.home-float {
	position: absolute;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	border: 1px solid var(--gg-line-strong);
	border-radius: var(--gg-radius-m);
	background: rgba(22, 29, 38, 0.94);
	box-shadow: var(--gg-shadow-2);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	font-size: 13px;
	color: var(--gg-text-3);
	line-height: 1.3;
}

.home-float strong {
	display: block;
	color: var(--gg-text-1);
	font-family: var(--gg-font-display);
	font-size: 18px;
	font-weight: 600;
}

.home-float__icon {
	display: grid;
	place-items: center;
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	border-radius: var(--gg-radius-m);
	background: var(--gg-accent-soft);
	color: var(--gg-accent);
}

.home-float--speed {
	left: -28px;
	bottom: 18%;
}

.home-float--catalog {
	right: -12px;
	top: -22px;
}

/* ---------- Live numbers ---------- */

.home-stats {
	padding: var(--gg-space-6) 0 0 !important;
}

.home-stats__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: var(--gg-space-3);
	margin: 0;
	padding: 0;
	list-style: none;
}

.home-stat {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: var(--gg-space-4) var(--gg-space-5);
	border: 1px solid var(--gg-line);
	border-radius: var(--gg-radius-l);
	background: var(--home-lit);
}

.home-stat__value {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--gg-text-1);
	font-family: var(--gg-font-display);
	font-size: 30px;
	font-weight: 600;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

.home-stat__value small {
	color: var(--gg-text-3);
	font-size: 16px;
	font-weight: 500;
}

.home-stat__label {
	color: var(--gg-text-3);
	font-size: 13px;
}

/* ---------- Section heads ---------- */

.home-section {
	position: relative;
	isolation: isolate;
	padding: var(--gg-space-9) 0 0 !important;
}

.home-section::before {
	content: "";
	position: absolute;
	top: 0;
	left: -320px;
	z-index: -1;
	width: 980px;
	height: 980px;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(57, 140, 237, 0.11), transparent);
	pointer-events: none;
}

.home-section:nth-of-type(even)::before {
	right: -320px;
	left: auto;
	background: radial-gradient(closest-side, rgba(91, 200, 244, 0.08), transparent);
}

.home-head {
	max-width: 720px;
	margin-bottom: var(--gg-space-6);
}

.home-head--row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--gg-space-4);
	max-width: none;
}

.home-head--row > div {
	max-width: 720px;
}

.home-head .gg-lead {
	margin-top: var(--gg-space-3);
}

/* ---------- Features ---------- */

.home-features {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--gg-space-4);
	margin: 0;
	padding: 0;
	list-style: none;
}

.home-feature {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--gg-space-3);
	padding: var(--gg-space-5);
	border: 1px solid var(--gg-line);
	border-radius: var(--gg-radius-l);
	background: var(--home-lit);
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.home-feature:hover {
	border-color: var(--gg-line-strong);
	background:
		radial-gradient(120% 100% at 0% 0%, rgba(91, 200, 244, 0.1), transparent 60%),
		var(--home-lit);
}

.home-feature__icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: var(--gg-radius-m);
	background: var(--gg-accent-soft);
	color: var(--gg-accent);
}

.home-feature h3 {
	margin: 0;
	font-size: var(--gg-fs-title);
}

.home-feature p {
	margin: 0;
	color: var(--gg-text-3);
	font-size: var(--gg-fs-small);
	line-height: 1.6;
}

.home-feature .gg-badge {
	position: absolute;
	top: var(--gg-space-5);
	right: var(--gg-space-5);
}

/* ---------- Launcher tour: a launcher screen per tab ---------- */

.home-tour {
	display: grid;
	grid-template-columns: minmax(260px, 4fr) minmax(0, 8fr);
	gap: var(--gg-space-6);
	align-items: start;
	padding: var(--gg-space-5);
	border: 1px solid rgba(91, 200, 244, 0.12);
	border-radius: var(--gg-radius-xl);
	background:
		radial-gradient(circle at 8% 0%, rgba(94, 174, 255, 0.16), transparent 45%),
		linear-gradient(0deg, rgba(31, 49, 74, 0.45) 5%, rgba(33, 54, 77, 0.6) 20%, rgba(28, 50, 70, 0.45) 65%, rgba(40, 70, 98, 0.4) 95%, rgba(43, 83, 118, 0.5) 100%);
	box-shadow: var(--gg-shadow-2);
}

.home-tour__tabs {
	display: flex;
	flex-direction: column;
	gap: var(--gg-space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.home-tour__tab {
	display: flex;
	flex-direction: column;
	gap: 4px;
	width: 100%;
	padding: 14px 16px;
	border: 1px solid transparent;
	border-left: 3px solid transparent;
	border-radius: var(--gg-radius-m);
	background: transparent;
	color: var(--gg-text-2);
	text-align: left;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.home-tour__tab:hover {
	background: var(--gg-row);
}

.home-tour__tab[aria-selected="true"] {
	border-color: var(--gg-line);
	border-left-color: var(--gg-accent);
	background: var(--gg-surface-2);
	color: var(--gg-text-1);
}

.home-tour__tab-title {
	font-family: var(--gg-font-display);
	font-size: 17px;
	font-weight: 600;
}

.home-tour__tab-text {
	color: var(--gg-text-3);
	font-size: 13.5px;
	line-height: 1.5;
}

.home-tour__tab:not([aria-selected="true"]) .home-tour__tab-text {
	display: none;
}

.home-tour__stage {
	position: relative;
	min-width: 0;
}

.home-tour__stage .home-shot {
	box-shadow: var(--gg-shadow-2);
}

/* Screens are 1356x865 captures of the launcher window, stacked and cross-faded */
.home-tour__screen {
	aspect-ratio: 1356 / 865;
}

.home-tour__scene,
.home-tour__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}

.home-tour__scene.is-active,
.home-tour__slide.is-shown {
	opacity: 1;
	visibility: visible;
	transition-delay: 0s;
}

.home-tour__scene img,
.home-tour__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Catalog: the card grid under the header scrolls down forever.
   The box is the launcher's list area (x 47..1338, y 147..864 of the capture);
   the strip is two copies of the same rows, moved up by one copy per loop. */
.home-tour__scroll {
	position: absolute;
	left: 3.4661%;
	top: 16.9942%;
	width: 95.2065%;
	height: 82.8902%;
	overflow: hidden;
	background: #1e252e;
}

.home-tour__scroll-track {
	animation: home-catalog-scroll 48s linear infinite;
	animation-play-state: paused;
	will-change: transform;
}

.home-tour__scroll-track picture {
	display: block;
}

.home-tour__scroll-track img {
	display: block;
	height: auto;
	object-fit: fill;
}

.home-tour__scene.is-active .home-tour__scroll-track {
	animation-play-state: running;
}

.home-tour__screen:hover .home-tour__scene.is-active .home-tour__scroll-track,
.home-phone:hover .home-tour__scene.is-active .home-tour__scroll-track {
	animation-play-state: paused;
}

@keyframes home-catalog-scroll {
	from {
		transform: translateY(0);
	}

	to {
		transform: translateY(-50%);
	}
}

.home-tour__spot {
	position: absolute;
	border: 2px solid var(--gg-accent);
	border-radius: var(--gg-radius-m);
	box-shadow: 0 0 0 9999px rgba(12, 16, 22, 0.58), 0 0 24px rgba(91, 200, 244, 0.35);
	pointer-events: none;
}

/* right panel: players online, friends, recent chats */
.home-tour__spot--social {
	left: 82.7%;
	top: 7%;
	width: 17.3%;
	height: 93%;
}

/* account menu under the avatar */
.home-tour__spot--account {
	left: 0.4%;
	top: 7.5%;
	width: 18.2%;
	height: 34.3%;
}

.home-tour__mobile-text {
	display: none;
}

.home-tour__soon {
	color: var(--gg-accent);
	font-weight: 600;
}

/* ---------- Phone tour: GaragumChat screens in a phone frame ---------- */

.home-tour--phone {
	grid-template-columns: minmax(0, 6fr) minmax(280px, 5fr);
	align-items: center;
}

.home-tour--phone .home-tour__stage {
	order: -1;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: var(--gg-space-4) 0;
	background: radial-gradient(closest-side, rgba(91, 200, 244, 0.14), transparent);
}

/* Screens are 540x1137: the app without the Android status and navigation bars */
.home-phone {
	position: relative;
	width: min(100%, 300px);
	margin: 0;
	padding: 9px;
	border: 1px solid var(--gg-line-strong);
	border-radius: 40px;
	background: linear-gradient(160deg, #2a333f, #12171d 60%);
	box-shadow: var(--gg-shadow-3), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.home-phone__screen {
	position: relative;
	aspect-ratio: 540 / 1137;
	overflow: hidden;
	border-radius: 31px;
	background: #1e252e;
}

/* Phone catalog: the card rows under the category chips scroll down forever.
   The box is the list area (y 365..2116 of the 1080x2274 screen), the strip
   is two copies of the same rows like the launcher catalog. */
.home-tour__scroll--phone {
	left: 0;
	top: 16.051%;
	width: 100%;
	height: 77.0009%;
	background: #141218;
}

.home-tour__scroll--phone .home-tour__scroll-track {
	animation-duration: 60s;
}

/* front camera in the status bar strip */
.home-phone__screen::after {
	content: "";
	position: absolute;
	top: 8px;
	left: 50%;
	z-index: 2;
	width: 9px;
	height: 9px;
	margin-left: -4.5px;
	border-radius: 50%;
	background: #06090c;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.06);
}

@media (prefers-reduced-motion: reduce) {
	.home-tour__scroll-track {
		animation: none;
	}

	.home-tour__scene,
	.home-tour__slide {
		transition: none;
	}
}

/* ---------- Popular games ---------- */

.home-games {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: var(--gg-space-4);
	margin: 0;
	padding: 0;
	list-style: none;
}

.home-game {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
	color: var(--gg-text-2);
	text-decoration: none;
}

.home-game__cover {
	position: relative;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	border: 1px solid var(--gg-line);
	border-radius: var(--gg-radius-m);
	background: var(--gg-surface-3);
	transition: transform 0.2s ease, border-color 0.2s ease;
}

.home-game__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.home-game:hover .home-game__cover {
	transform: translateY(-3px);
	border-color: var(--gg-accent);
}

.home-game__name {
	overflow: hidden;
	font-size: var(--gg-fs-small);
	font-weight: 600;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.home-game:hover .home-game__name {
	color: var(--gg-text-1);
}

.home-game--skeleton .home-game__cover {
	background: linear-gradient(100deg, var(--gg-surface-3) 30%, var(--gg-surface-4) 50%, var(--gg-surface-3) 70%) 0 0 / 300% 100%;
	animation: homeShimmer 1.4s ease-in-out infinite;
}

.home-game--skeleton .home-game__name {
	width: 70%;
	height: 12px;
	border-radius: 4px;
	background: var(--gg-surface-3);
}

@keyframes homeShimmer {
	to {
		background-position: -150% 0;
	}
}

/* ---------- Esports ---------- */

.home-esports {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: var(--gg-space-6);
	align-items: stretch;
}

.home-esports__intro {
	display: flex;
	flex-direction: column;
	gap: var(--gg-space-4);
	padding: var(--gg-space-6);
	border: 1px solid var(--gg-line);
	border-radius: var(--gg-radius-l);
	background:
		radial-gradient(90% 80% at 100% 0%, rgba(245, 197, 66, 0.08), transparent 60%),
		var(--home-lit);
}

.home-esports__intro h2 {
	font-size: var(--gg-fs-h2);
}

.home-esports__intro p {
	margin: 0;
	color: var(--gg-text-2);
}

.home-esports__list {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--gg-text-2);
	font-size: var(--gg-fs-small);
}

.home-esports__list li {
	display: flex;
	gap: 10px;
}

.home-esports__list svg {
	flex: 0 0 auto;
	margin-top: 2px;
	color: var(--gg-gold);
}

.home-esports__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--gg-space-3);
	margin-top: auto;
	padding-top: var(--gg-space-2);
}

.home-live-tournament {
	display: grid;
	grid-template-columns: 120px 1fr;
	gap: var(--gg-space-4);
	align-items: center;
	padding: var(--gg-space-3);
	border: 1px solid var(--gg-line-strong);
	border-radius: var(--gg-radius-m);
	background: var(--gg-head);
	color: inherit;
	text-decoration: none;
}

.home-live-tournament:hover {
	border-color: var(--gg-accent);
}

.home-live-tournament img {
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: var(--gg-radius-s);
	object-fit: cover;
}

.home-live-tournament strong {
	display: block;
	color: var(--gg-text-1);
	font-size: var(--gg-fs-body);
}

.home-live-tournament span {
	color: var(--gg-text-3);
	font-size: 13px;
}

.home-live-tournament .home-prize {
	color: var(--gg-gold);
	font-weight: 700;
}

.home-leagues {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--gg-space-3);
	margin: 0;
	padding: 0;
	list-style: none;
}

.home-league {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 150px;
	height: 100%;
	padding: var(--gg-space-4);
	overflow: hidden;
	border: 1px solid var(--gg-line);
	border-radius: var(--gg-radius-l);
	background: var(--gg-surface-3);
	color: var(--gg-text-1);
	text-decoration: none;
	isolation: isolate;
}

.home-league img {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.home-league::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(20, 26, 34, 0.1) 0%, rgba(20, 26, 34, 0.88) 100%);
}

.home-league:hover {
	border-color: var(--gg-accent);
}

.home-league:hover img {
	transform: scale(1.04);
}

.home-league__name {
	font-family: var(--gg-font-display);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.2;
}

.home-league__name small {
	display: block;
	color: var(--gg-text-2);
	font-family: var(--gg-font);
	font-size: 13px;
	font-weight: 400;
}

/* ---------- Subscription and Android ---------- */

.home-duo {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: var(--gg-space-4);
}

.home-panel {
	display: flex;
	flex-direction: column;
	gap: var(--gg-space-4);
	padding: var(--gg-space-6);
	border: 1px solid var(--gg-line);
	border-radius: var(--gg-radius-l);
	background: var(--home-lit);
}

.home-panel h2 {
	font-size: clamp(22px, 2.6vw, 28px);
}

.home-panel > p {
	margin: 0;
	color: var(--gg-text-2);
}

.home-panel--sub {
	border-color: rgba(91, 200, 244, 0.35);
	background:
		radial-gradient(80% 90% at 100% 0%, rgba(57, 154, 237, 0.14), transparent 60%),
		var(--home-lit);
}

.home-perks {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px var(--gg-space-5);
	margin: 0;
	padding: 0;
	list-style: none;
}

.home-perks li {
	display: flex;
	gap: 10px;
	font-size: var(--gg-fs-small);
	color: var(--gg-text-2);
	line-height: 1.45;
}

.home-perks strong {
	display: block;
	color: var(--gg-text-1);
	font-weight: 600;
}

.home-perks svg {
	flex: 0 0 auto;
	margin-top: 1px;
	color: var(--gg-ok);
}

.home-panel__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--gg-space-3);
	margin-top: auto;
}

.home-app {
	display: flex;
	align-items: center;
	gap: var(--gg-space-4);
}

.home-app__logo {
	display: grid;
	place-items: center;
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	border: 1px solid var(--gg-line-strong);
	border-radius: var(--gg-radius-xl);
	background: var(--gg-head);
	color: var(--gg-accent);
}

.home-app__name {
	margin: 0;
	font-family: var(--gg-font-display);
	font-size: 20px;
	font-weight: 600;
}

.home-app__sub {
	margin: 2px 0 0;
	color: var(--gg-text-3);
	font-size: 13px;
}

.home-checks {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--gg-text-2);
	font-size: var(--gg-fs-small);
}

.home-checks li {
	display: flex;
	gap: 10px;
}

.home-checks svg {
	flex: 0 0 auto;
	margin-top: 2px;
	color: var(--gg-accent);
}

/* ---------- Steps ---------- */

.home-steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--gg-space-4);
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
}

.home-step {
	position: relative;
	padding: var(--gg-space-5);
	border: 1px solid var(--gg-line);
	border-radius: var(--gg-radius-l);
	background: var(--home-lit);
	counter-increment: step;
}

.home-step::before {
	content: counter(step);
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	margin-bottom: var(--gg-space-4);
	border: 1px solid var(--gg-blue-border);
	border-radius: var(--gg-radius-m);
	background: var(--gg-gradient);
	color: #fff;
	font-family: var(--gg-font-display);
	font-size: 18px;
	font-weight: 600;
}

.home-step h3 {
	margin: 0 0 6px;
	font-size: var(--gg-fs-title);
}

.home-step p {
	margin: 0;
	color: var(--gg-text-3);
	font-size: var(--gg-fs-small);
	line-height: 1.6;
}

/* ---------- FAQ ---------- */

.home-faq {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--gg-space-3);
	align-items: start;
}

.home-faq details {
	border: 1px solid var(--gg-line);
	border-radius: var(--gg-radius-m);
	background: var(--home-lit);
	transition: border-color 0.15s ease;
}

.home-faq details[open] {
	border-color: var(--gg-line-strong);
}

.home-faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--gg-space-3);
	padding: 14px 18px;
	color: var(--gg-text-1);
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.home-faq summary::-webkit-details-marker {
	display: none;
}

.home-faq summary::after {
	content: "";
	flex: 0 0 auto;
	width: 8px;
	height: 8px;
	margin-top: -4px;
	border-right: 2px solid var(--gg-text-3);
	border-bottom: 2px solid var(--gg-text-3);
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}

.home-faq details[open] summary::after {
	margin-top: 4px;
	transform: rotate(-135deg);
}

.home-faq details p {
	margin: 0;
	padding: 0 18px 16px;
	color: var(--gg-text-2);
	font-size: var(--gg-fs-small);
	line-height: 1.65;
}

.home-faq details a {
	color: var(--gg-accent);
}

/* ---------- Final call to action ---------- */

.home-final {
	padding: var(--gg-space-9) 0 var(--gg-space-2) !important;
}

.home-final__box {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: var(--gg-space-6);
	padding: var(--gg-space-7) var(--gg-space-7);
	border: 1px solid rgba(91, 200, 244, 0.3);
	border-radius: var(--gg-radius-xl);
	background:
		radial-gradient(60% 120% at 100% 50%, rgba(57, 154, 237, 0.2), transparent 70%),
		var(--home-lit);
}

.home-final__box h2 {
	font-size: var(--gg-fs-h2);
}

.home-final__box p {
	margin: var(--gg-space-3) 0 0;
	color: var(--gg-text-2);
}

.home-final__actions {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: var(--gg-space-3);
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
	.home-hero__inner {
		grid-template-columns: 1fr;
		gap: var(--gg-space-7);
	}

	.home-hero__copy {
		max-width: 680px;
	}

	.home-hero__visual .home-shot {
		transform: none;
	}

	.home-float--speed {
		left: 12px;
		bottom: -22px;
	}

	.home-float--catalog {
		right: 12px;
	}

	.home-games {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.home-games li:nth-child(n + 9) {
		display: none;
	}

	.home-esports,
	.home-duo {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 900px) {
	.home-features {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.home-tour {
		grid-template-columns: 1fr;
		gap: var(--gg-space-4);
		padding: var(--gg-space-4);
	}

	.home-tour__tabs {
		flex-direction: row;
		overflow-x: auto;
		gap: 6px;
		padding-bottom: 4px;
		scrollbar-width: none;
	}

	.home-tour__tabs::-webkit-scrollbar {
		display: none;
	}

	.home-tour__tabs li {
		flex: 0 0 auto;
	}

	.home-tour__tab {
		padding: 8px 14px;
		border: 1px solid var(--gg-line);
		border-radius: var(--gg-radius-pill);
	}

	.home-tour__tab[aria-selected="true"] {
		border-color: var(--gg-accent);
		background: var(--gg-selection);
	}

	.home-tour__tab-title {
		font-family: var(--gg-font);
		font-size: 14px;
	}

	.home-tour__tab .home-tour__tab-text {
		display: none !important;
	}

	.home-tour__mobile-text {
		display: block;
		margin: var(--gg-space-3) 0 0;
		color: var(--gg-text-2);
		font-size: var(--gg-fs-small);
	}

	.home-tour--phone .home-tour__stage {
		order: 0;
	}

	.home-tour--phone .home-tour__mobile-text {
		max-width: 520px;
		text-align: center;
	}

	.home-steps,
	.home-faq {
		grid-template-columns: 1fr;
	}

	.home-final__box {
		grid-template-columns: 1fr;
		padding: var(--gg-space-6);
	}

	.home-final__actions {
		align-items: flex-start;
	}
}

@media (max-width: 600px) {
	.home-hero {
		padding: var(--gg-space-6) 0 var(--gg-space-7) !important;
	}

	.home-hero__actions .gg-btn {
		flex: 1 1 100%;
	}

	.home-float--catalog {
		display: none;
	}

	.home-float--speed {
		left: 8px;
		bottom: -18px;
		padding: 8px 12px;
	}

	.home-section {
		padding-top: var(--gg-space-8) !important;
	}

	.home-head--row {
		flex-direction: column;
		align-items: flex-start;
	}

	.home-features {
		grid-template-columns: 1fr;
	}

	.home-stats__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* three tiles in two columns: the last one takes the whole row */
	.home-stat:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}

	.home-stat {
		padding: var(--gg-space-3) var(--gg-space-4);
	}

	.home-stat__value {
		font-size: 24px;
	}

	.home-games {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--gg-space-3);
	}

	.home-games li:nth-child(n + 7) {
		display: none;
	}

	.home-leagues {
		grid-template-columns: 1fr 1fr;
	}

	.home-league {
		min-height: 110px;
	}

	.home-league__name {
		font-size: 16px;
	}

	.home-perks {
		grid-template-columns: 1fr;
	}

	.home-panel,
	.home-esports__intro {
		padding: var(--gg-space-5);
	}

	.home-live-tournament {
		grid-template-columns: 1fr;
	}
}
