/**
 * Shell: games-first-arcade — HUD header, banner hero, cabinet game stages.
 */

/* ── Arcade header bar ───────────────────────────────────────────────── */

body.llw-shell-games-first-arcade .site-header {
	height: auto;
	min-height: 0;
}

body.llw-shell-games-first-arcade .llw-shell-arcade-bar {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: stretch;
	gap: 0;
	max-width: var(--llw-max-width, 1280px);
	margin: 0 auto;
	padding: 0 1rem;
	min-height: 64px;
}

body.llw-shell-games-first-arcade .llw-shell-arcade-bar__rail {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding-right: 1rem;
	border-right: 1px solid rgba(var(--llw-brand-accent-rgb, 255, 242, 0), 0.25);
}

body.llw-shell-games-first-arcade .llw-shell-arcade-bar__bezel {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

body.llw-shell-games-first-arcade .llw-shell-arcade-bar__led {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--llw-color-accent, #fff200);
	box-shadow: 0 0 8px rgba(var(--llw-brand-accent-rgb, 255, 242, 0), 0.8);
	animation: llw-shell-led-pulse 1.6s ease-in-out infinite;
}

body.llw-shell-games-first-arcade .llw-shell-arcade-bar__led--alt {
	animation-delay: 0.8s;
	opacity: 0.65;
}

@keyframes llw-shell-led-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.35; }
}

body.llw-shell-games-first-arcade .llw-shell-arcade-bar__deck {
	display: flex;
	align-items: center;
	padding-left: 1rem;
}

body.llw-shell-games-first-arcade .llw-shell-arcade-bar__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	gap: 1rem;
}

body.llw-shell-games-first-arcade .llw-shell-arcade-bar__toggle {
	display: none;
}

@media (max-width: 768px) {
	body.llw-shell-games-first-arcade .site-header {
		position: relative;
	}

	body.llw-shell-games-first-arcade .llw-shell-arcade-bar {
		grid-template-columns: 1fr auto;
		padding: 0.75rem 1rem;
	}

	body.llw-shell-games-first-arcade .llw-shell-arcade-bar__rail {
		border-right: none;
	}

	body.llw-shell-games-first-arcade .llw-shell-arcade-bar__bezel {
		display: none;
	}

	body.llw-shell-games-first-arcade .llw-shell-arcade-bar__toggle {
		display: inline-flex;
	}

	body.llw-shell-games-first-arcade .llw-shell-arcade-bar__deck {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		z-index: 50;
		padding: 1rem;
		background: rgba(7, 7, 15, 0.98);
		border-bottom: 1px solid rgba(var(--llw-brand-accent-rgb, 255, 242, 0), 0.2);
	}

	body.nav-open.llw-shell-games-first-arcade .llw-shell-arcade-bar__deck {
		display: block;
	}

	body.llw-shell-games-first-arcade .llw-shell-arcade-bar__nav {
		flex-direction: column;
		align-items: stretch;
	}

	body.nav-open.llw-shell-games-first-arcade .site-header__actions {
		display: flex;
	}
}

/* ── Arcade banner hero ──────────────────────────────────────────────── */

.llw-shell-arcade-hero {
	position: relative;
	overflow: hidden;
	padding: 0;
}

.llw-shell-arcade-hero__scanlines {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: repeating-linear-gradient(
		0deg,
		transparent,
		transparent 2px,
		rgba(0, 0, 0, 0.08) 2px,
		rgba(0, 0, 0, 0.08) 4px
	);
	opacity: 0.35;
}

.llw-shell-arcade-hero__hud {
	padding: 1rem 0;
	background: rgba(0, 0, 0, 0.45);
	border-bottom: 1px solid rgba(var(--llw-brand-accent-rgb, 255, 242, 0), 0.35);
}

.llw-shell-arcade-hero__hud-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 2rem;
}

.llw-shell-arcade-hero__hud-title {
	margin: 0;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	opacity: 0.8;
}

.llw-shell-arcade-hero__hud-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 2rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.llw-shell-arcade-hero__hud-stat {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 80px;
}

.llw-shell-arcade-hero__hud-stat .home-live-data__number {
	font-size: 1.35rem;
	font-weight: 800;
}

.llw-shell-arcade-hero__hud-stat .home-live-data__label {
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	opacity: 0.75;
}

.llw-shell-arcade-hero__stage {
	padding: 3rem 0 2rem;
	text-align: center;
}

.llw-shell-arcade-hero__stage-inner {
	max-width: 820px;
	margin: 0 auto;
}

.llw-shell-arcade-hero__footer-band {
	padding: 1.5rem 0 2rem;
	background: rgba(0, 0, 0, 0.3);
	border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.llw-shell-arcade-hero__footer-grid {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 1.5rem 2rem;
	align-items: start;
}

.llw-shell-arcade-hero__highlights .home-highlights__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	list-style: none;
	padding: 0;
	margin: 0.5rem 0 0;
}

.llw-shell-arcade-hero__highlights li {
	padding: 0.35rem 0.75rem;
	border: 1px solid rgba(var(--llw-brand-accent-rgb, 255, 242, 0), 0.35);
	border-radius: 999px;
	font-size: 0.8rem;
}

.llw-shell-arcade-hero__certs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: flex-end;
}

@media (max-width: 767px) {
	.llw-shell-arcade-hero__footer-grid {
		grid-template-columns: 1fr;
	}

	.llw-shell-arcade-hero__certs {
		justify-content: flex-start;
	}
}

/* ── Arcade game stages ──────────────────────────────────────────────── */

.llw-shell-arcade-stage {
	position: relative;
	margin: 2rem 0;
	padding: 2rem 0;
}

.llw-shell-arcade-stage__frame {
	position: absolute;
	inset: 0.5rem 0;
	pointer-events: none;
	border: 2px solid rgba(var(--llw-brand-accent-rgb, 255, 242, 0), 0.45);
	border-radius: 6px;
	box-shadow:
		inset 0 0 30px rgba(var(--llw-brand-primary-rgb, 47, 124, 255), 0.12),
		0 0 40px rgba(var(--llw-brand-primary-rgb, 47, 124, 255), 0.08);
}

.llw-shell-arcade-stage__corner {
	position: absolute;
	width: 14px;
	height: 14px;
	border: 2px solid var(--llw-color-accent, #fff200);
}

.llw-shell-arcade-stage__corner--tl { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.llw-shell-arcade-stage__corner--tr { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.llw-shell-arcade-stage__corner--bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.llw-shell-arcade-stage__corner--br { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.llw-shell-arcade-stage__inner {
	position: relative;
	z-index: 1;
}

.llw-shell-arcade-stage__marquee-band {
	height: 4px;
	margin-bottom: 1.25rem;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(var(--llw-brand-accent-rgb, 255, 242, 0), 0.8),
		transparent
	);
	opacity: 0.7;
}

.llw-shell-arcade-stage__deck {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 0.5rem;
	scrollbar-width: thin;
}

.llw-shell-arcade-stage__deck .llw-game-grid {
	display: flex;
	flex-wrap: nowrap;
	gap: 1rem;
	width: max-content;
	min-width: 100%;
}

.llw-shell-arcade-stage__deck .llw-game-card {
	flex: 0 0 220px;
	max-width: 220px;
}

.llw-shell-arcade-stage__deck--grid .llw-game-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	width: auto;
	flex-wrap: wrap;
}

.llw-shell-arcade-stage__deck--grid .llw-game-card {
	flex: unset;
	max-width: none;
}

.llw-shell-arcade-stage__footer {
	margin-top: 1.5rem;
	text-align: center;
}

.llw-shell-arcade-stage--rtp {
	margin-top: 0;
}

body.llw-shell-variant-1 .llw-shell-arcade-stage__deck .llw-game-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Variant 2 — compact stacked hero (Layout 25, 26, … games-first) */
.llw-shell-arcade-hero--v2.llw-shell-variant-2,
body.llw-shell-variant-2 .llw-shell-arcade-hero {
	padding: 0;
	overflow: hidden;
}

body.llw-shell-games-first-arcade.llw-shell-variant-2 .home-hero,
body.llw-shell-variant-2.llw-layout-games-first .home-hero {
	padding: 0;
}

body.llw-shell-variant-2 .llw-shell-arcade-hero__hud-inner {
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
}

body.llw-shell-variant-2 .llw-shell-arcade-hero__hud-stats {
	flex: 1;
	justify-content: flex-end;
}

body.llw-shell-variant-2 .llw-shell-arcade-hero__stage {
	padding: 1.75rem 0 1.5rem;
	text-align: left;
}

body.llw-shell-variant-2 .llw-shell-arcade-hero__stage-inner {
	max-width: 720px;
	margin: 0;
}

body.llw-shell-variant-2 .llw-shell-arcade-hero__stage .home-hero__title {
	font-size: clamp(1.65rem, 3.2vw, 2.75rem);
	line-height: 1.12;
	letter-spacing: 0.04em;
	text-shadow: 0 0 18px rgba(var(--llw-brand-accent-rgb, 255, 242, 0), 0.25);
}

body.llw-shell-variant-2 .llw-shell-arcade-hero__stage .home-hero__description {
	max-width: 560px;
	margin-bottom: 1.25rem;
	font-size: 1rem;
}

body.llw-shell-variant-2 .llw-shell-arcade-hero__stage .home-hero__actions {
	justify-content: flex-start;
}

body.llw-shell-variant-2 .llw-shell-arcade-hero__footer-band {
	padding: 1rem 0 1.5rem;
}

body.llw-shell-variant-2 .llw-shell-arcade-stage__deck .llw-game-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 767px) {
	body.llw-shell-variant-2 .llw-shell-arcade-hero__hud-inner {
		flex-direction: column;
		align-items: flex-start;
	}

	body.llw-shell-variant-2 .llw-shell-arcade-hero__hud-stats {
		justify-content: flex-start;
		width: 100%;
	}

	body.llw-shell-variant-2 .llw-shell-arcade-hero__stage .home-hero__title {
		font-size: clamp(1.45rem, 6vw, 2rem);
	}
}
