/* ============================================================
   GameObserver — Related Games widget (.gamebox / .post-games-box)
   ------------------------------------------------------------
   The "More on these games:" widget that appears at the bottom of
   single posts (news, reviews, features) when the post references
   games. Loaded by gamezone_child_scripts() on:
     - is_single()  (any single post including game/platform CPTs)
   Extracted from cpt-games.css.
   ============================================================ */

/* Wrapper that contains the "More on these topics:" heading + the
   gamebox tile scroller. Centred horizontally and width-capped so the
   heading sits visually above the tile rail. */
.game-in-post {
	max-width: 1024px;
	margin: 24px auto 0;
	padding: 0 24px;
	box-sizing: border-box;
	width: 100%;
}
/* Heading above the tiles — centred, cosmic-themed.
   Use display:block + width:100% to defeat any flex/grid rule
   inherited from a parent that would otherwise constrain the h2 to
   its content width and make text-align:center look left-aligned. */
.game-in-post h2 {
	display: block !important;
	width: 100% !important;
	text-align: center !important;
	font-family: "Space Grotesk", "Roboto", sans-serif !important;
	font-size: 1.35em !important;
	font-weight: 700 !important;
	color: #ffffff !important;
	letter-spacing: -0.3px !important;
	margin: 0 0 12px 0 !important;
	padding: 0 !important;
}
div.gamebox {
	box-sizing: border-box;
	color: #181c25;
	font-family: "Inter var", sans-serif;
	line-height: 18.4px;
	margin: 12px auto 0;
	max-width: 1024px;
	padding: 0 24px;
	width: 100%;
	overflow: visible;
}
.gamebox-scroll-wrapper { position: relative; }
section.gamebox-section {
	box-sizing: border-box;
	color: #181c25;
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	gap: 16px;
	padding: 8px 4px;
	justify-content: flex-start;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	font-family: "Inter var", sans-serif;
	line-height: 18.4px;
	margin-bottom: 18px;
	margin-top: 18px;
}
section.gamebox-section::-webkit-scrollbar { display: none; }
section.gamebox-section--centered { justify-content: center; }
.gamebox-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: white;
	border: none;
	border-radius: 50%;
	width: 36px;
	height: 36px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.25);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 22px;
	line-height: 1;
	padding: 0 0 2px 0;
	z-index: 10;
	transition: opacity 0.2s;
	color: #1c192c;
}
.gamebox-arrow-right { right: 4px; }
.gamebox-arrow-left { left: 4px; }
.gamebox-arrow.hidden { opacity: 0; pointer-events: none; }

div.post-games-box {
	display: block;
	text-decoration: none;
	color: inherit;
	width: 150px;
	flex-shrink: 0;
	background: none;
	border: none;
	border-radius: 0;
	box-shadow: none;
	padding: 0;
	text-align: center;
	transition: transform 0.18s ease;
}
div.post-games-box a {
	display: block;
	text-decoration: none;
	color: inherit;
}
div.post-games-box:hover {
	transform: translateY(-3px);
}
div.game-in-post-box-art {
	width: 150px;
	height: 150px;
	margin: 0 auto;
	border-radius: 24px;
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, 0.1);
	box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 3px 0px,
	            rgba(0, 0, 0, 0.07) 0px 4px 12px 0px;
	transition: box-shadow 0.18s ease;
}
div.post-games-box:hover div.game-in-post-box-art {
	box-shadow: rgba(0, 0, 0, 0.12) 0px 0px 3px 0px,
	            rgba(0, 0, 0, 0.12) 0px 10px 20px 0px;
}
div.game-in-post-box-art img {
	width: 150px;
	height: 150px;
	object-fit: cover;
	display: block;
	border-radius: 0;
}
.game-in-post-title {
	font-size: 13px;
	font-weight: 700;
	font-family: "Roboto", sans-serif;
	color: #ffffff;
	padding: 8px 4px 0;
	line-height: 1.3;
	text-align: center;
}
div.post-games-box:hover .game-in-post-title {
	color: #b8b8ff;
}
