/* --------------------------------------------------------------------------
 * GRZ Gaming — continuous whole-page homepage atmosphere (v1.7.8)
 *
 * The active hero image now paints one compositor on the page root. Header,
 * hero, merchandising and lower modules therefore share the same coordinate
 * system and colour field. No component owns a second cropped background.
 * ----------------------------------------------------------------------- */

body.home {
	position: relative;
	isolation: isolate;
	overflow-x: clip;
	background: var(--grz-home-atmo-canvas, #eef3f9);
}

body.home::before,
body.home::after {
	position: absolute;
	left: 50%;
	z-index: 0;
	display: block;
	width: 100vw;
	max-width: none;
	height: 100%;
	min-height: 100%;
	border: 0;
	content: "";
	pointer-events: none;
}

body.home::before {
	top: 0;
	background: var(--grz-home-atmosphere-img, var(--grz-home-header-img, none)) center / 100% 100% no-repeat;
	filter: blur(66px) saturate(1.28) brightness(.73);
	opacity: .82;
	transform: translateX(-50%) scale(1.018);
	transform-origin: 50% 0;
}

body.home::after {
	top: 0;
	background-image:
		linear-gradient(180deg, rgba(5, 15, 30, .36) 0%, rgba(7, 21, 40, .2) 28%, rgba(238, 243, 249, .16) 57%, rgba(238, 243, 249, .56) 84%, var(--grz-home-atmo-canvas, #eef3f9) 100%),
		radial-gradient(ellipse 74% 32% at 8% 10%, color-mix(in srgb, var(--grz-home-atmosphere-color, #0762e6) 46%, transparent), transparent 76%),
		radial-gradient(ellipse 72% 38% at 94% 42%, color-mix(in srgb, var(--grz-home-atmosphere-color, #0762e6) 28%, transparent), transparent 79%),
		radial-gradient(ellipse 86% 34% at 12% 72%, color-mix(in srgb, var(--grz-home-atmosphere-color, #0762e6) 20%, transparent), transparent 82%),
		url("../images/product-atmosphere-smoke-v1.png");
	background-position: center, center, center, center, center top;
	background-repeat: no-repeat;
	background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, cover;
	background-blend-mode: normal, screen, soft-light, soft-light, soft-light;
	transform: translateX(-50%);
}

body.home > .grz-header,
body.home > .grz-site-content,
body.home > .grz-footer,
body.home > footer {
	position: relative;
	z-index: 1;
}

/* The page root is the only atmospheric painter. */
body.home .grz-site-content {
	isolation: auto;
	overflow: visible;
	background: transparent;
}

body.home .grz-site-content::before,
body.home .grz-site-content::after,
body.home .grz-home.has-ambient::before,
body.home .grz-home.has-ambient::after,
body.home .grz-main-header::before,
body.home .grz-main-header::after {
	display: none !important;
	content: none !important;
}

body.home .grz-home,
body.home .grz-home.has-ambient,
body.home .grz-header,
body.home .grz-header__shell,
body.home .grz-main-header {
	background: transparent !important;
}

body.home .grz-main-header {
	overflow: visible;
	border-bottom: 1px solid rgba(255, 255, 255, .2);
	box-shadow: 0 1px 0 rgba(3, 11, 23, .1);
}

body.home .grz-main-header__inner {
	position: relative;
	z-index: 1;
}

@media (max-width: 760px) {
	body.home::before,
	body.home::after {
		width: 100vw;
		height: 100%;
		min-height: 100%;
	}

	body.home::before {
		top: 0;
		filter: blur(44px) saturate(1.2) brightness(.71);
		opacity: .76;
		transform: translateX(-50%) scale(1.015);
	}

	body.home::after {
		background-image:
			linear-gradient(180deg, rgba(5, 15, 30, .4) 0%, rgba(7, 21, 40, .22) 24%, rgba(238, 243, 249, .2) 49%, rgba(238, 243, 249, .62) 76%, var(--grz-home-atmo-canvas, #eef3f9) 100%),
			radial-gradient(ellipse 96% 30% at 4% 8%, color-mix(in srgb, var(--grz-home-atmosphere-color, #0762e6) 44%, transparent), transparent 76%),
			radial-gradient(ellipse 94% 34% at 96% 45%, color-mix(in srgb, var(--grz-home-atmosphere-color, #0762e6) 26%, transparent), transparent 80%),
			radial-gradient(ellipse 100% 30% at 10% 72%, color-mix(in srgb, var(--grz-home-atmosphere-color, #0762e6) 18%, transparent), transparent 82%),
			url("../images/product-atmosphere-smoke-v1.png");
	}
}

@media (prefers-reduced-motion: reduce) {
	body.home::before,
	body.home::after {
		transition: none;
	}
}

@media (forced-colors: active) {
	body.home::before,
	body.home::after {
		display: none;
		content: none;
	}
}
