/* B"H — Game covers, tight padding, scroll-aware background (Yaakov 2026-10-13) */
/* === Per-game cover images === */
.gameCover {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 0.75rem 0.75rem 0 0;
	background: #0a0a18;
}
.gameCover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}
.gameCover img:hover {
	transform: scale(1.05);
}
.gameCard--fallback {
	display: block;
	text-decoration: none;
	color: inherit;
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,215,0,0.15);
	border-radius: 0.75rem;
	overflow: hidden;
	/* B"H 2026-10-13: Yaakov — "weird sticky clicks" on game cards.
	   touch-action: manipulation kills the 300ms tap delay on mobile;
	   user-select none stops text-selection interference on tap. */
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
	user-select: none;
	-webkit-user-select: none;
	-webkit-touch-callout: none;
	cursor: pointer;
}
.gameCard--fallback strong {
	display: block;
	padding: 0.6rem 0.8rem;
	font-size: 0.95rem;
	color: #f5e6c8;
}
.gameCard--fallback:visited strong {
	color: #f5e6c8;
}

/* === Reduced padding (Yaakov: "too much paddings") === */
.gamesShell {
	padding-left: 0.75rem;
	padding-right: 0.75rem;
}
.heroPanel {
	padding: 1rem 0.9rem;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
}
.heroCopy .heroText {
	margin: 0.4rem 0;
}
.heroActions {
	gap: 0.5rem;
	margin-top: 0.5rem;
}
.quickLaunch {
	gap: 0.4rem;
	padding: 0.5rem;
	margin-bottom: 0.75rem;
}
.quickLaunch a {
	padding: 0.5rem 0.6rem;
	color: var(--aw-text);
}
.playModeRail {
	padding: 0.4rem 0.6rem;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}
.discoveryPanel {
	padding: 0.8rem;
	margin-bottom: 0.75rem;
}
.discoveryHeading {
	margin-bottom: 0.5rem;
}
.searchWrap {
	margin-bottom: 0.5rem;
}
.filterDisclosure {
	margin-top: 0.4rem;
}
.gamesCatalog {
	gap: 0.6rem;
	padding: 0 0.25rem;
}
.gameCard {
	padding: 0;
}
.gameCard__header,
.gameCard .gameGenre,
.gameCard h3,
.gameCard .gameHook,
.gameCard__footer {
	padding-left: 0.7rem;
	padding-right: 0.7rem;
	color: var(--aw-text);
}
.gameCard .gameGenre {
	margin: 0.4rem 0 0.1rem;
}
.gameCard h3 {
	margin: 0.1rem 0 0.3rem;
	color: var(--aw-text);
}
.gameCard .gameHook {
	margin: 0 0 0.5rem;
	font-size: 0.85rem;
}
.gameCard__footer {
	padding-bottom: 0.7rem;
}
.gamesFooter {
	padding: 1rem 0.75rem;
	margin-top: 1rem;
}

/* === Scroll-aware background (Yaakov: header gone → don't go plain black) === */
.awtsmoos-bg-games {
	/* Fixed cosmic gradient that persists through scroll */
	background:
		radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255,180,60,0.08) 0%, transparent 60%),
		radial-gradient(ellipse 60% 40% at 20% 30%, rgba(80,60,180,0.06) 0%, transparent 50%),
		radial-gradient(ellipse 60% 40% at 80% 70%, rgba(255,215,0,0.04) 0%, transparent 50%),
		linear-gradient(180deg, #02000f 0%, #060418 40%, #040212 70%, #02000f 100%);
	background-attachment: fixed;
	min-height: 100vh;
}
/* Hero fades elegantly as you scroll past */
.awtsmoos-hero--games {
	transition: opacity 0.3s ease;
}
/* Subtle particle texture overlay for depth while scrolling */
.gamesShell::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	opacity: 0.35;
	background-image: url("https://awtsmoos.com/api/social/drive/public/awtsmoos/backgrounds/bg-games-particles-0-1a71bf9b-654a-4240-a64f-da5cdbb434ce.webp?v=eb1febac35");
	background-size: 400px 400px;
	background-repeat: repeat;
}
.gamesShell > * {
	position: relative;
	z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
	.gameCover img { transition: none; }
	.gamesShell::before { display: none; }
}

/* === Round 2 polish — fallback game cards (2026-10-13) === */
/* B"H — the safety-net catalog gets the same ceremony as the real one. */
.gameCard--fallback {
	transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
@media (hover: hover) and (pointer: fine) {
	.gameCard--fallback:hover {
		transform: translateY(-4px);
		border-color: rgba(255, 215, 0, 0.45);
		box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5), 0 0 28px rgba(255, 215, 0, 0.12);
	}
	.gameCard--fallback:hover img {
		transform: scale(1.06);
	}
}
.gameCard--fallback:focus-visible {
	outline: 3px solid #7bdcff;
	outline-offset: 2px;
	border-color: rgba(255, 215, 0, 0.45);
}
.gameCard--fallback:active {
	transform: translateY(0) scale(0.99);
}
.gamesCatalog:has(> .gameCard--fallback) {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
	gap: 0.9rem;
}
@media (prefers-reduced-motion: reduce) {
	.gameCard--fallback,
	.gameCover img {
		transition: none;
	}
	.gameCard--fallback:hover,
	.gameCard--fallback:active {
		transform: none;
	}
}

/* B"H Yaakov 2026-10-13: "Hard to click games" + "make it beautiful and inviting."
   Glowing Play overlay on every cover — the card screams "tap me".
   Decorative only (pointer-events: none) so it never blocks the stretched link. */
.gameCard .gameCover {
	position: relative;
	cursor: pointer;
}
.gameCard .gameCover::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 56px;
	height: 56px;
	transform: translate(-50%, -50%) scale(0.92);
	border-radius: 50%;
	background: rgba(9, 7, 17, 0.55);
	border: 2px solid rgba(255, 224, 130, 0.9);
	box-shadow: 0 0 24px rgba(255, 200, 92, 0.45), inset 0 0 12px rgba(255, 200, 92, 0.2);
	pointer-events: none;
	transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
	/* Play triangle drawn with borders (no emoji, no image dependency). */
}
.gameCard .gameCover::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-38%, -50%);
	border-top: 11px solid transparent;
	border-bottom: 11px solid transparent;
	border-left: 18px solid #ffe082;
	pointer-events: none;
	z-index: 1;
	transition: transform 180ms ease;
}
/* Touch devices: always show a subtle play affordance. */
@media (hover: none) {
	.gameCard .gameCover::after {
		opacity: 0.92;
	}
}
/* Hover/focus: the play button pops. */
@media (hover: hover) and (pointer: fine) {
	.gameCard .gameCover::after {
		opacity: 0;
	}
	.gameCard:hover .gameCover::after,
	.gameCard:focus-within .gameCover::after {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1);
		box-shadow: 0 0 34px rgba(255, 200, 92, 0.65), inset 0 0 14px rgba(255, 200, 92, 0.3);
		background: rgba(9, 7, 17, 0.35);
	}
	.gameCard:hover .gameCover::before,
	.gameCard:focus-within .gameCover::before {
		transform: translate(-38%, -50%) scale(1.08);
	}
}
@media (prefers-reduced-motion: reduce) {
	.gameCard .gameCover::after,
	.gameCard .gameCover::before {
		transition: none;
	}
}

/* B"H Yaakov 2026-10-13: cover bleeds to the card's top edges — modern
   game-store look, bigger visual target, more inviting. */
.gameCard .gameCover {
	margin: -18px -18px 0 -18px;
	width: calc(100% + 36px);
	border-radius: 22px 22px 0 0;
}
@media (max-width: 700px) {
	.gameCard .gameCover {
		margin: -14px -14px 0 -14px;
		width: calc(100% + 28px);
		border-radius: 18px 18px 0 0;
	}
}
