/* FGC Child Theme: game grid, cards, switcher and player.
   Colours come from Astra's global palette, so the theme follows your Astra settings.
   Every class is prefixed fgc- (handy for the LiteSpeed UCSS safelist: .fgc-*). */

:root {
	--fgc-radius: 12px;
	--fgc-accent: var(--ast-global-color-0, #0170b9);
	--fgc-surface: var(--ast-global-color-5, #fff);
	--fgc-stage: #0d0e12;
	--fgc-line: rgba(128, 128, 128, .35);
	--fgc-wrap: var(--wp--custom--ast-content-width-size, 1200px);
}

.fgc-sr,
.fgc-grid .screen-reader-text,
.fgc-player .screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal;
}

/* ---------- Grid ---------- */

.fgc-grid {
	display: grid;
	gap: var(--fgc-gap, 16px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.fgc-gap-s { --fgc-gap: 8px; }
.fgc-gap-m { --fgc-gap: 16px; }
.fgc-gap-l { --fgc-gap: 28px; }

/* Thumbnail size: minimum card width (auto columns) and list image width. */
.fgc-size-s { --fgc-min: 150px; --fgc-list-thumb: 120px; }
.fgc-size-m { --fgc-min: 220px; --fgc-list-thumb: 200px; }
.fgc-size-l { --fgc-min: 320px; --fgc-list-thumb: 300px; }

.fgc-cols-auto {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--fgc-min, 220px)), 1fr));
}

.fgc-cols-auto.fgc-layout-list {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
}

.fgc-cols-fixed {
	grid-template-columns: repeat(var(--fgc-cols-d, 3), minmax(0, 1fr));
}

@media (max-width: 921px) {
	.fgc-cols-fixed {
		grid-template-columns: repeat(var(--fgc-cols-t, 2), minmax(0, 1fr));
	}
}

@media (max-width: 544px) {
	.fgc-cols-fixed {
		grid-template-columns: repeat(var(--fgc-cols-m, 1), minmax(0, 1fr));
	}
	/* Phones: small = 2-3 across, medium = 2 across, large = 1 across. */
	.fgc-size-s { --fgc-min: 105px; --fgc-list-thumb: 96px; }
	.fgc-size-m { --fgc-min: 150px; --fgc-list-thumb: 130px; }
	.fgc-size-l { --fgc-min: 260px; --fgc-list-thumb: 150px; }
}

/* ---------- Card ---------- */

.fgc-ratio-4-3  { --fgc-ar: 4 / 3; }
.fgc-ratio-16-9 { --fgc-ar: 16 / 9; }
.fgc-ratio-1-1  { --fgc-ar: 1 / 1; }
.fgc-ratio-3-4  { --fgc-ar: 3 / 4; }

.fgc-card {
	margin: 0;
	padding: 0;
	min-width: 0;
	list-style: none;
}

.fgc-card__link {
	position: relative;
	display: block;
	color: inherit;
	text-decoration: none;
}

.fgc-card__link:focus-visible {
	outline: 3px solid var(--fgc-accent);
	outline-offset: 3px;
	border-radius: var(--fgc-radius);
}

.fgc-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: var(--fgc-ar, 4 / 3);
	border-radius: var(--fgc-radius);
	background: var(--fgc-stage);
}

.fgc-ratio-orig .fgc-card__media { aspect-ratio: auto; }

.fgc-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .25s ease;
}

.fgc-ratio-orig .fgc-card__img { height: auto; }

.fgc-card__ph {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 80px;
	font-size: 2.2rem;
	font-weight: 700;
	color: #fff;
	background: linear-gradient(135deg, var(--fgc-accent), var(--fgc-stage));
}

.fgc-card__badge {
	position: absolute;
	top: 8px;
	left: 8px;
	max-width: calc(100% - 16px);
	padding: 2px 9px;
	overflow: hidden;
	font-size: .72rem;
	line-height: 1.5;
	white-space: nowrap;
	text-overflow: ellipsis;
	color: #fff;
	background: rgba(0, 0, 0, .66);
	border-radius: 999px;
}

.fgc-card__body {
	display: block;
	min-width: 0;
}

.fgc-card__title {
	display: block;
	margin: .55em 0 .1em;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.fgc-card__link:hover .fgc-card__title { color: var(--fgc-accent); }

.fgc-card__meta {
	display: block;
	font-size: .82rem;
	opacity: .72;
}

.fgc-card__excerpt { display: none; }

/* Hover effects */
.fgc-hover-zoom .fgc-card:hover .fgc-card__img { transform: scale(1.07); }

.fgc-hover-lift .fgc-card { transition: transform .2s ease; }
.fgc-hover-lift .fgc-card:hover { transform: translateY(-3px); }
.fgc-hover-lift .fgc-card:hover .fgc-card__media { box-shadow: 0 10px 24px rgba(0, 0, 0, .22); }

/* ---------- Layout: list ---------- */

.fgc-layout-list .fgc-card__link {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
}

.fgc-layout-list .fgc-card__media {
	flex: 0 0 var(--fgc-list-thumb, 200px);
	width: var(--fgc-list-thumb, 200px);
	max-width: 45%;
}

.fgc-layout-list .fgc-card__body { flex: 1 1 auto; }
.fgc-layout-list .fgc-card__title { margin-top: .1em; font-size: 1.05rem; }

.fgc-layout-list .fgc-card__excerpt {
	display: -webkit-box;
	margin-top: .4em;
	overflow: hidden;
	font-size: .9rem;
	opacity: .85;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

/* ---------- Layout: tiles (title over image) ---------- */

.fgc-layout-overlay .fgc-card__body {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	padding: 2.2rem .75rem .65rem;
	color: #fff;
	background: linear-gradient(to top, rgba(0, 0, 0, .82), rgba(0, 0, 0, 0));
	border-radius: 0 0 var(--fgc-radius) var(--fgc-radius);
}

.fgc-layout-overlay .fgc-card__title { margin: 0; }
.fgc-layout-overlay .fgc-card__link:hover .fgc-card__title { color: #fff; }
.fgc-layout-overlay .fgc-card__meta { color: #fff; opacity: .8; }

/* ---------- Visitor switcher ---------- */

.fgc-switcher {
	display: flex;
	flex-wrap: wrap;
	gap: .6rem 1rem;
	align-items: center;
	margin: 0 0 1rem;
}

.fgc-switcher[hidden] { display: none; }

.fgc-switcher__group {
	display: inline-flex;
	border: 1px solid var(--fgc-line);
	border-radius: 8px;
	overflow: hidden;
}

.fgc-switcher__btn,
.fgc-switcher__reset,
.fgc-player__fs,
.fgc-player__exit {
	margin: 0;
	padding: .35rem .8rem;
	font: inherit;
	font-size: .88rem;
	line-height: 1.4;
	color: inherit;
	background: transparent;
	border: 0;
	border-radius: 0;
	cursor: pointer;
	box-shadow: none;
}

.fgc-switcher__btn + .fgc-switcher__btn { border-left: 1px solid var(--fgc-line); }

.fgc-switcher__btn:hover,
.fgc-switcher__btn:focus-visible { background: rgba(128, 128, 128, .16); color: inherit; }

.fgc-switcher__btn[aria-pressed="true"],
.fgc-switcher__btn[aria-pressed="true"]:hover {
	color: #fff;
	background: var(--fgc-accent);
}

.fgc-switcher__reset {
	padding-inline: .3rem;
	text-decoration: underline;
	opacity: .75;
}

.fgc-switcher__reset:hover { background: transparent; color: inherit; opacity: 1; }

/* ---------- Player ---------- */

.fgc-player-wrap {
	width: min(100%, calc(80vh * var(--fgc-ratio, 1.7778)));
	margin: 1rem auto;
}

.fgc-player {
	position: relative;
	overflow: hidden;
	aspect-ratio: var(--fgc-ar, 16 / 9);
	background: var(--fgc-stage);
	border-radius: var(--fgc-radius);
}

.fgc-player iframe {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	background: var(--fgc-stage);
}

.fgc-player__start {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	color: #fff;
	background: var(--fgc-stage);
	border: 0;
	border-radius: 0;
	cursor: pointer;
}

.fgc-player__start:hover,
.fgc-player__start:focus { background: var(--fgc-stage); color: #fff; }

.fgc-player__start:focus-visible { outline: 3px solid var(--fgc-accent); outline-offset: -3px; }

.fgc-player__poster {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: .75;
	transition: opacity .2s ease;
}

.fgc-player__start:hover .fgc-player__poster { opacity: .95; }

.fgc-player__cta {
	position: absolute;
	top: 50%;
	left: 50%;
	display: inline-flex;
	gap: .45rem;
	align-items: center;
	padding: .75rem 1.5rem .75rem 1.2rem;
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1;
	color: #fff;
	background: var(--fgc-accent);
	border-radius: 999px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .4);
	transform: translate(-50%, -50%);
}

.fgc-player.is-loading .fgc-player__cta { visibility: hidden; }

.fgc-player-bar {
	display: flex;
	gap: 1rem;
	align-items: center;
	justify-content: space-between;
	margin-top: .5rem;
	font-size: .85rem;
}

.fgc-player-bar__hint { opacity: .7; }

.fgc-player__fs {
	flex: none;
	border: 1px solid var(--fgc-line);
	border-radius: 8px;
}

.fgc-player__fs:hover { background: rgba(128, 128, 128, .16); color: inherit; }

.fgc-player:fullscreen,
.fgc-player:-webkit-full-screen {
	width: 100vw;
	height: 100vh;
	aspect-ratio: auto;
	border-radius: 0;
}

.fgc-player.fgc-pseudo-fs {
	position: fixed;
	inset: 0;
	z-index: 999999;
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	aspect-ratio: auto;
	border-radius: 0;
}

.fgc-player__exit {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 3;
	color: #fff;
	background: rgba(0, 0, 0, .7);
	border-radius: 8px;
}

.fgc-player__exit:hover { color: #fff; background: rgba(0, 0, 0, .9); }

html.fgc-lock { overflow: hidden; }

/* ---------- Game info, related, misc ---------- */

.fgc-chips {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
}

.fgc-chip {
	margin: 0;
	padding: .1rem .8rem;
	font-size: .85rem;
	border: 1px solid var(--fgc-line);
	border-radius: 999px;
}

.fgc-section-title {
	margin: 0 0 .75rem;
	font-size: 1.25rem;
}

.fgc-instructions { margin-bottom: 1.25rem; }

.fgc-related { margin-top: 2rem; }

.ast-separate-container .fgc-related {
	padding: 1.5em 2em;
	background: var(--fgc-surface);
	border-radius: var(--fgc-radius);
}

.fgc-empty,
.fgc-notice {
	padding: 1rem 1.25rem;
	border: 1px dashed var(--fgc-line);
	border-radius: var(--fgc-radius);
}

.fgc-legal-nav { padding: .75rem 1rem 1.25rem; text-align: center; font-size: .85rem; }

.fgc-legal-menu {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem 1.2rem;
	justify-content: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Blog posts: same corner rounding as the game cards. */
.ast-article-post .post-thumb-img-content img,
.ast-article-single .post-thumb-img-content img {
	border-radius: var(--fgc-radius);
}

/* ---------- Page structure ---------- */

/* Centred column for the theme's own sections. The Home page itself is stretched edge to edge
   (so Spectra sections can span the screen) and the sections stay inside this wrapper.
   Change the width with:  :root { --fgc-wrap: 1100px; }  */
.fgc-wrap {
	width: 100%;
	max-width: var(--fgc-wrap);
	margin-inline: auto;
	box-sizing: border-box;
}

.ast-page-builder-template .fgc-wrap { padding-inline: 20px; }

.fgc-home-sections { padding-block: 1.5rem 2.5rem; }

.fgc-home-section { margin: 0 0 2.75rem; }

.fgc-home-section:last-child { margin-bottom: 0; }

.fgc-section-head {
	display: flex;
	flex-wrap: wrap;
	gap: .25rem 1rem;
	align-items: baseline;
	justify-content: space-between;
	margin: 0 0 .9rem;
}

.fgc-section-head .fgc-section-title { margin: 0; }

.fgc-section-link {
	font-size: .92rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.fgc-section-link::after { content: " \203A"; }

.fgc-section-link:hover { text-decoration: underline; }

.fgc-hero {
	padding: 2.5rem 0 1rem;
	text-align: center;
}

.fgc-hero__title {
	margin: 0 0 .4rem;
	font-size: clamp(1.8rem, 4.5vw, 2.8rem);
	line-height: 1.15;
}

.fgc-hero__text {
	max-width: 42rem;
	margin: 0 auto;
	font-size: 1.1rem;
	opacity: .8;
}

.fgc-page-head { margin: 0 0 1.25rem; }

.fgc-page-head .page-title { margin: 0 0 .75rem; }

.fgc-page-head p { margin: 0 0 1rem; }

/* ---------- Buttons ---------- */

.fgc-btn {
	display: inline-flex;
	gap: .4rem;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: .55rem 1.1rem;
	font: inherit;
	font-size: .95rem;
	font-weight: 600;
	line-height: 1.3;
	color: #fff;
	text-decoration: none;
	background: var(--fgc-accent);
	border: 1px solid var(--fgc-accent);
	border-radius: 999px;
	cursor: pointer;
	transition: filter .15s ease;
}

.fgc-btn:hover,
.fgc-btn:focus-visible {
	color: #fff;
	text-decoration: none;
	filter: brightness(1.1);
}

.fgc-btn:focus-visible { outline: 3px solid var(--fgc-accent); outline-offset: 2px; }

.fgc-btn--ghost {
	color: inherit;
	background: transparent;
	border-color: var(--fgc-line);
}

.fgc-btn--ghost:hover,
.fgc-btn--ghost:focus-visible {
	color: var(--fgc-accent);
	border-color: var(--fgc-accent);
	filter: none;
}

.fgc-btn--small {
	padding: .3rem .8rem;
	font-size: .85rem;
}

/* ---------- Search form ---------- */

.fgc-homebar { margin: 0 0 2rem; }

.fgc-homebar__row {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	align-items: center;
	margin: 0 0 1rem;
}

.fgc-search {
	display: flex;
	flex: 1 1 18rem;
	max-width: 36rem;
	margin: 0;
}

.fgc-search__input {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	padding: .55rem 1rem;
	font: inherit;
	line-height: 1.3;
	border: 1px solid var(--fgc-line);
	border-radius: 999px 0 0 999px;
}

.fgc-search__btn {
	flex: none;
	margin: 0;
	padding: .55rem 1.2rem;
	font: inherit;
	font-weight: 600;
	line-height: 1.3;
	color: #fff;
	background: var(--fgc-accent);
	border: 1px solid var(--fgc-accent);
	border-radius: 0 999px 999px 0;
	cursor: pointer;
}

.fgc-search__btn:hover,
.fgc-search__btn:focus-visible { color: #fff; filter: brightness(1.1); }

/* ---------- Category chips, sort links, toolbar ---------- */

.fgc-chipbar { margin: 0 0 1rem; }

.fgc-chipbar__list {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fgc-chipbar__list > li { margin: 0; }

.fgc-chipbar__list--sub { margin-top: .6rem; }

.fgc-pill {
	display: inline-block;
	padding: .25rem .85rem;
	font-size: .9rem;
	line-height: 1.5;
	color: inherit;
	text-decoration: none;
	border: 1px solid var(--fgc-line);
	border-radius: 999px;
	transition: border-color .15s ease, color .15s ease;
}

.fgc-pill:hover,
.fgc-pill:focus-visible {
	color: var(--fgc-accent);
	border-color: var(--fgc-accent);
}

.fgc-pill.is-active { border-color: var(--fgc-accent); }

.fgc-pill.is-current,
.fgc-pill.is-current:hover {
	color: #fff;
	background: var(--fgc-accent);
	border-color: var(--fgc-accent);
}

.fgc-pill__count {
	font-size: .8em;
	opacity: .65;
}

.fgc-pill.is-current .fgc-pill__count { opacity: .85; }

.fgc-toolrow {
	display: flex;
	flex-wrap: wrap;
	gap: .6rem 1.25rem;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 1.1rem;
}

.fgc-sort {
	display: flex;
	flex-wrap: wrap;
	gap: .3rem .75rem;
	align-items: center;
	font-size: .9rem;
}

.fgc-sort__label { opacity: .7; }

.fgc-sort__list {
	display: flex;
	flex-wrap: wrap;
	gap: .25rem 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fgc-sort__list li { margin: 0; }

.fgc-sort__list a {
	color: inherit;
	text-decoration: none;
	border-bottom: 2px solid transparent;
}

.fgc-sort__list a:hover { color: var(--fgc-accent); }

.fgc-sort__list a[aria-current] {
	font-weight: 700;
	border-bottom-color: var(--fgc-accent);
}

/* Phones: chips scroll sideways instead of taking half the screen. */
@media (max-width: 544px) {
	.fgc-chipbar__list {
		flex-wrap: nowrap;
		margin-inline: -4px;
		padding: 0 4px 6px;
		overflow-x: auto;
		scrollbar-width: thin;
	}
	.fgc-pill { white-space: nowrap; }
}

/* ---------- Category tiles ---------- */

.fgc-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fgc-tiles--fixed { grid-template-columns: repeat(var(--fgc-tcols, 4), minmax(0, 1fr)); }

@media (max-width: 921px) {
	.fgc-tiles--fixed { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
}

.fgc-tile { margin: 0; min-width: 0; }

.fgc-tile__link {
	display: block;
	color: #fff;
	text-decoration: none;
}

.fgc-tile__link:focus-visible {
	outline: 3px solid var(--fgc-accent);
	outline-offset: 3px;
	border-radius: var(--fgc-radius);
}

.fgc-tile__media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: var(--fgc-stage);
	border-radius: var(--fgc-radius);
}

.fgc-tile__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .25s ease;
}

.fgc-tile__link:hover .fgc-tile__img { transform: scale(1.07); }

.fgc-tile__ph {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 2.4rem;
	font-weight: 700;
	background: linear-gradient(135deg, var(--fgc-accent), var(--fgc-stage));
}

.fgc-tile__body {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	display: block;
	padding: 2.2rem .75rem .6rem;
	background: linear-gradient(to top, rgba(0, 0, 0, .85), rgba(0, 0, 0, 0));
}

.fgc-tile__name {
	display: block;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.fgc-tile__count {
	display: block;
	font-size: .8rem;
	opacity: .85;
}

/* ---------- Blog cards ---------- */

.fgc-card__date {
	display: block;
	font-size: .8rem;
	opacity: .6;
}

/* Blog cards show a short excerpt in the grid layout too (the games grid hides it). */
.fgc-ctx-blog.fgc-layout-grid .fgc-card__excerpt {
	display: -webkit-box;
	margin-top: .35em;
	overflow: hidden;
	font-size: .9rem;
	opacity: .85;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.fgc-layout-overlay .fgc-card__excerpt,
.fgc-layout-overlay .fgc-card__date { display: none; }

/* ---------- Breadcrumbs ---------- */

.fgc-crumbs {
	margin: 0 0 .75rem;
	font-size: .85rem;
}

.fgc-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: .15rem .4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fgc-crumbs li { margin: 0; opacity: .85; }

.fgc-crumbs li + li::before {
	content: "\203A";
	margin-right: .4rem;
	opacity: .6;
}

.fgc-crumbs a { color: inherit; text-decoration: none; }

.fgc-crumbs a:hover { color: var(--fgc-accent); text-decoration: underline; }

.fgc-crumbs [aria-current] { font-weight: 600; }

/* ---------- Game page: similar games beside the player ---------- */

.fgc-player-bar { flex-wrap: wrap; }

.fgc-player-bar__actions {
	display: inline-flex;
	flex-wrap: wrap;
	gap: .5rem;
	align-items: center;
}

@media (min-width: 1100px) {
	.fgc-single--side {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 300px;
		gap: 0 2rem;
		align-items: start;
	}

	.fgc-single--side .fgc-related { margin-top: 1rem; }

	.fgc-single--side .fgc-related .fgc-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}
}

/* ---------- Suggestions and empty states ---------- */

.fgc-suggest { margin-top: 2.25rem; }

.fgc-empty--search p { margin: 0 0 .9rem; }

.fgc-empty--search { margin-bottom: 1.5rem; }

/* ---------- Ads ----------
   Empty areas print nothing. Content, label and reserved space:
   .fgc-ad > .fgc-ad__label + .fgc-ad__body (the ad code sits in the body).
   The sticky sidebar is the only sticky ad: one column, 300px wide, desktop only. */

.fgc-ad {
	margin: 1.5rem 0;
	text-align: center;
	clear: both;
}

.fgc-ad__label {
	display: block;
	margin: 0 0 4px;
	font-size: .6875rem;
	line-height: 1.2;
	letter-spacing: .06em;
	text-transform: uppercase;
	opacity: .55;
}

.fgc-ad__body {
	max-width: 100%;
	overflow: hidden;
}

.fgc-ad--reserve .fgc-ad__body { min-height: var(--fgc-ad-h, 0); }

.fgc-ad__widget { margin: 0; }

/* Fixed-width ad code (a 728px banner, a 300px unit) sits in the middle of its area. */
.fgc-ad__widget > *,
.fgc-ad__widget > .textwidget > * { margin-inline: auto; }

.fgc-ad.is-empty { display: none !important; }

/* Space between a game and an ad below it. Google recommends at least 150px on game sites, so a
   fast click on the game never lands on the ad. Change it in Customize > Game Arcade Layout > Ads. */
.fgc-ad--player { margin-top: var(--fgc-ad-gap, 150px); }

.fgc-ad-cell {
	grid-column: 1 / -1;
	list-style: none;
	min-width: 0;
}

.fgc-ad-cell .fgc-ad { margin: .5rem 0; }

/* Shown only in the Customizer preview, where empty areas get a placeholder. */
.fgc-ad__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 60px;
	padding: .75rem 1rem;
	border: 2px dashed var(--fgc-line);
	border-radius: var(--fgc-radius);
	font-size: .8125rem;
	opacity: .75;
}

/* Sticky ad-only sidebar. Narrow screens: hidden, or once under the content (never sticky). */
.fgc-with-ads__main { min-width: 0; }

.fgc-ad--sidebar { margin: 2rem auto 0; max-width: 336px; }

.fgc-ad--sb-hide { display: none; }

@media (min-width: 1200px) {
	.fgc-with-ads {
		display: flex;
		gap: var(--fgc-ad-gap, 32px);
		align-items: flex-start;
	}

	.fgc-with-ads__main { flex: 1 1 0; }

	.fgc-ad--sidebar,
	.fgc-ad--sb-hide {
		display: block;
		flex: 0 0 300px;
		width: 300px;
		max-width: 300px;
		margin: 0;
		align-self: stretch; /* the column is as tall as the content, so the ad has room to travel */
	}

	.fgc-ad__sticky {
		position: sticky;
		top: var(--fgc-ad-top, 24px);
	}
}

@media print {
	.fgc-ad { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
	.fgc-card__img,
	.fgc-tile__img,
	.fgc-player__poster,
	.fgc-btn,
	.fgc-pill,
	.fgc-hover-lift .fgc-card { transition: none; }
	.fgc-hover-zoom .fgc-card:hover .fgc-card__img,
	.fgc-tile__link:hover .fgc-tile__img,
	.fgc-hover-lift .fgc-card:hover { transform: none; }
}
