/*
 * Site shell: a background picture that stays put while the site's content
 * scrolls over it in dark panels (main content, GEO banner, footer).
 *
 * The picture is img/site-background-2560.webp (2560 x 1024).
 * The panels cover the middle; the art shows in the gutters either side.
 * It is fitted to the screen width so both sides stay visible, and its top
 * and bottom edges fade into --shell-base.
 */

/*
 * --shell-base stays dark behind the picture; the scrolling parts are lifted
 * a few steps above it so they stand out. Panel < surface (cards) by design.
 */
:root {
	--shell-base:         #040616;
	--shell-panel:        #1b1f36;
	--shell-surface:      #262b47;
	--shell-surface-deep: #20243e;
	--shell-bar:          rgba(27, 31, 54, 0.92);
	--shell-width:  1320px;
	--shell-gap:    16px;
	--shell-radius: 18px;
}

html {
	background-color: var(--shell-base);
}

/* A body background would paint over the fixed picture layer below. */
body {
	background-color: transparent;
}

body::before {
	/* Picture ratio is 2.5 : 1, fitted to the window width. */
	--bg-w:    100vw;
	--bg-half: calc(var(--bg-w) / 5);
	--bg-fade: calc(var(--bg-w) / 25);

	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		linear-gradient(
			to bottom,
			var(--shell-base) calc(50% - var(--bg-half)),
			transparent calc(50% - var(--bg-half) + var(--bg-fade)),
			transparent calc(50% + var(--bg-half) - var(--bg-fade)),
			var(--shell-base) calc(50% + var(--bg-half))
		),
		url("../img/site-background-2560.webp") center / var(--bg-w) auto no-repeat,
		var(--shell-base);
}

#page.site {
	background: none;
}

.site--topbar #geo-banner,
.site--topbar .site-main,
.site--topbar .site-footer {
	width: min(var(--shell-width), calc(100% - 2 * var(--shell-gap)));
	margin: var(--shell-gap) auto 0;
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: var(--shell-radius);
	background-color: var(--shell-panel);
	box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
	/* clip, not hidden: keeps position: sticky working inside the panels. */
	overflow: clip;
}

.site--topbar #geo-banner {
	background-image: linear-gradient(135deg, rgba(230, 0, 126, 0.16), rgba(0, 225, 224, 0.1));
}

.site--topbar .site-footer {
	margin-bottom: var(--shell-gap);
}

/* The panel edge replaces the hero's top rule. */
.site--topbar .home-hero {
	border-top: 0;
}

@media (max-width: 767px) {
	/* The panels span the full width here, so the picture would never show. */
	body::before {
		background: var(--shell-base);
	}

	.site--topbar #geo-banner,
	.site--topbar .site-main,
	.site--topbar .site-footer {
		width: 100%;
		border-inline: 0;
		border-radius: 0;
	}

	.site--topbar .site-main {
		margin-top: 0;
	}

	.site--topbar .site-footer {
		margin-bottom: 0;
	}
}

/* Pages whose sections draw their own boxes (Casinos) skip the main panel. */
.site--topbar .site-main--open {
	width: auto;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	overflow: visible;
}
