/* ==========================================================================
   Slot Games Grid – frontend
   Style: .sgg-style-modern | .sgg-style-overlay | .sgg-style-classic
   Themes: .sgg-theme-light | .sgg-theme-dark
   ========================================================================== */

.sgg-wrap {
	--sgg-cols: 4;
	--sgg-cols-t: 3;
	--sgg-cols-m: 2;
	--sgg-gap: 24px;
	--sgg-ratio: 2/1;
	--sgg-radius: 14px;
	--sgg-accent: #f5b301;
	--sgg-accent-soft: rgba(245, 179, 1, .35);
	--sgg-ease: cubic-bezier(.2, .8, .2, 1);

	/* Light theme */
	--sgg-card-bg: #ffffff;
	--sgg-card-fg: #12141a;
	--sgg-card-border: rgba(15, 23, 42, .08);
	--sgg-muted-bg: rgba(15, 23, 42, .06);
	--sgg-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 10px 28px -12px rgba(15, 23, 42, .25);
	--sgg-shadow-hover: 0 24px 48px -16px rgba(15, 23, 42, .45);
	--sgg-thumb-bg: linear-gradient(135deg, #1b1e27, #2a2f3d);
	--sgg-input-bg: #ffffff;

	margin: 0 0 2.5em;
}

@supports (color: color-mix(in srgb, red, blue)) {
	.sgg-wrap {
		--sgg-accent-soft: color-mix(in srgb, var(--sgg-accent) 38%, transparent);
	}
}

.sgg-wrap.sgg-theme-dark {
	--sgg-card-bg: #171a22;
	--sgg-card-fg: #f2f4f8;
	--sgg-card-border: rgba(255, 255, 255, .08);
	--sgg-muted-bg: rgba(255, 255, 255, .08);
	--sgg-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 28px -14px rgba(0, 0, 0, .8);
	--sgg-shadow-hover: 0 26px 50px -18px rgba(0, 0, 0, .9);
	--sgg-input-bg: #171a22;
}

.sgg-wrap *,
.sgg-wrap *::before,
.sgg-wrap *::after {
	box-sizing: border-box;
}

.sgg-wrap [hidden] {
	display: none !important;
}

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

.sgg-wrap .sgg-grid {
	display: grid;
	grid-template-columns: repeat(var(--sgg-cols-m), minmax(0, 1fr));
	gap: calc(var(--sgg-gap) * .6);
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 768px) {
	.sgg-wrap .sgg-grid {
		grid-template-columns: repeat(var(--sgg-cols-t), minmax(0, 1fr));
		gap: var(--sgg-gap);
	}
}

@media (min-width: 1024px) {
	.sgg-wrap .sgg-grid {
		grid-template-columns: repeat(var(--sgg-cols), minmax(0, 1fr));
	}
}

.sgg-wrap .sgg-item {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sgg-wrap .sgg-item::before,
.sgg-wrap .sgg-item::marker {
	content: none;
}

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

.sgg-wrap .sgg-link {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--sgg-card-bg);
	color: var(--sgg-card-fg);
	text-decoration: none;
	border: 1px solid var(--sgg-card-border);
	border-radius: var(--sgg-radius);
	overflow: hidden;
	isolation: isolate;
	box-shadow: var(--sgg-shadow);
	transform: translateZ(0);
	transition: transform .4s var(--sgg-ease), box-shadow .4s var(--sgg-ease), border-color .3s ease;
}

.sgg-wrap a.sgg-link:hover,
.sgg-wrap a.sgg-link:focus-visible {
	color: var(--sgg-card-fg);
	text-decoration: none;
	transform: translateY(-6px);
	border-color: var(--sgg-accent);
	box-shadow: var(--sgg-shadow-hover), 0 0 0 1px var(--sgg-accent), 0 10px 30px -10px var(--sgg-accent-soft);
}

.sgg-wrap a.sgg-link:focus-visible {
	outline: 3px solid var(--sgg-accent);
	outline-offset: 3px;
}

/* ---------- Image ---------- */

.sgg-wrap .sgg-thumb {
	position: relative;
	display: block;
	aspect-ratio: var(--sgg-ratio);
	overflow: hidden;
	background: var(--sgg-thumb-bg);
}

.sgg-wrap .sgg-thumb img,
.sgg-wrap .sgg-img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	border-radius: 0;
	object-fit: cover;
	transition: transform .6s var(--sgg-ease), filter .4s ease;
}

.sgg-wrap a.sgg-link:hover .sgg-img,
.sgg-wrap a.sgg-link:focus-visible .sgg-img {
	transform: scale(1.08);
}

/* Light sweep across the image on hover */
.sgg-wrap .sgg-thumb::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%);
	transform: translateX(-120%);
	pointer-events: none;
}

.sgg-wrap a.sgg-link:hover .sgg-thumb::after {
	transform: translateX(120%);
	transition: transform .9s var(--sgg-ease);
}

.sgg-wrap .sgg-noimg {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	padding: 10px;
	color: #fff;
	font-size: 1.05em;
	font-weight: 800;
	text-align: center;
	letter-spacing: .02em;
}

/* ---------- Play button overlay ---------- */

.sgg-wrap .sgg-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: radial-gradient(circle at center, rgba(0, 0, 0, .25), rgba(0, 0, 0, .65));
	-webkit-backdrop-filter: saturate(1.2);
	backdrop-filter: saturate(1.2);
	opacity: 0;
	transition: opacity .3s ease;
}

.sgg-wrap .sgg-play {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	padding-left: 3px;
	border-radius: 50%;
	background: var(--sgg-accent);
	color: #111;
	box-shadow: 0 0 0 0 var(--sgg-accent-soft), 0 8px 20px rgba(0, 0, 0, .45);
	transform: scale(.6);
	transition: transform .4s var(--sgg-ease), box-shadow .4s ease;
}

.sgg-wrap .sgg-btn {
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: .12em;
	text-shadow: 0 1px 6px rgba(0, 0, 0, .6);
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .3s ease .05s, transform .4s var(--sgg-ease) .05s;
}

.sgg-wrap a.sgg-link:hover .sgg-overlay,
.sgg-wrap a.sgg-link:focus-visible .sgg-overlay {
	opacity: 1;
}

.sgg-wrap a.sgg-link:hover .sgg-play,
.sgg-wrap a.sgg-link:focus-visible .sgg-play {
	transform: scale(1);
	box-shadow: 0 0 0 8px var(--sgg-accent-soft), 0 8px 20px rgba(0, 0, 0, .45);
}

.sgg-wrap a.sgg-link:hover .sgg-btn,
.sgg-wrap a.sgg-link:focus-visible .sgg-btn {
	opacity: 1;
	transform: none;
}

/* ---------- Card footer (name + arrow) ---------- */

/* Name is centred; the arrow sits absolutely on the right, with equal side padding so it never overlaps. */
.sgg-wrap .sgg-meta {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1;
	padding: 12px 52px;
	text-align: center;
}

.sgg-wrap .sgg-title {
	display: block;
	min-width: 0;
	max-width: 100%;
	text-align: center;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -.005em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sgg-wrap .sgg-arrow {
	position: absolute;
	top: 50%;
	right: 12px;
	margin-top: -15px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--sgg-muted-bg);
	color: var(--sgg-card-fg);
	transition: background-color .3s ease, color .3s ease, transform .4s var(--sgg-ease);
}

.sgg-wrap a.sgg-link:hover .sgg-arrow,
.sgg-wrap a.sgg-link:focus-visible .sgg-arrow {
	background: var(--sgg-accent);
	color: #111;
	transform: rotate(-45deg);
}

/* ---------- Style: name on the image ---------- */

.sgg-wrap.sgg-style-overlay .sgg-link {
	background: #111;
	border-color: transparent;
}

.sgg-wrap.sgg-style-overlay .sgg-meta {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 3;
	padding: 34px 48px 11px;
	background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .55) 45%, rgba(0, 0, 0, .88));
	color: #fff;
	pointer-events: none;
}

.sgg-wrap.sgg-style-overlay .sgg-title {
	text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}

.sgg-wrap.sgg-style-overlay .sgg-arrow {
	top: auto;
	bottom: 7px;
	margin-top: 0;
	background: rgba(255, 255, 255, .16);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	color: #fff;
}

.sgg-wrap.sgg-style-overlay .sgg-overlay {
	padding-bottom: 28px;
}

/* ---------- Style: classic ---------- */

.sgg-wrap.sgg-style-classic .sgg-meta {
	padding: 8px 10px 10px;
}

.sgg-wrap.sgg-style-classic .sgg-arrow {
	display: none;
}

/* ---------- Badges on the image (game type + RTP) ---------- */

.sgg-wrap .sgg-badges {
	position: absolute;
	top: 8px;
	left: 8px;
	right: 8px;
	z-index: 3;
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	pointer-events: none;
}

.sgg-wrap .sgg-badge {
	padding: 5px 8px;
	border-radius: 999px;
	background: rgba(17, 17, 17, .72);
	color: #fff;
	font-size: 10.5px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: .06em;
	text-transform: uppercase;
	white-space: nowrap;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}

.sgg-wrap .sgg-badge--new {
	background: #16a34a;
}

.sgg-wrap .sgg-badge--old {
	background: rgba(71, 85, 105, .88);
}

.sgg-wrap .sgg-badge--jackpot {
	background: linear-gradient(135deg, #fde047, #f59e0b);
	color: #3b2300;
}

.sgg-wrap .sgg-badge--megaways {
	background: #7c3aed;
}

.sgg-wrap .sgg-badge--rtp {
	margin-left: auto;
	background: rgba(255, 255, 255, .94);
	color: #111;
	letter-spacing: .02em;
}

/* ---------- Filters bar (All / Type / Game developer / RTP / search) ---------- */

.sgg-wrap .sgg-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.sgg-wrap .sgg-filters {
	--sgg-c-new: #22c55e;
	--sgg-c-old: #94a3b8;
	--sgg-c-jackpot: #f59e0b;
	--sgg-c-megaways: #8b5cf6;

	position: relative;
	z-index: 5;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0 0 calc(var(--sgg-gap) + 2px);
}

/* Shared pill button look */
.sgg-wrap .sgg-all,
.sgg-wrap .sgg-dd-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 46px;
	margin: 0;
	padding: 0 18px;
	border: 1px solid var(--sgg-card-border);
	border-radius: 999px;
	background: var(--sgg-card-bg);
	color: var(--sgg-card-fg);
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: var(--sgg-shadow);
	transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s var(--sgg-ease);
}

.sgg-wrap .sgg-all:hover,
.sgg-wrap .sgg-dd-btn:hover {
	border-color: var(--sgg-accent);
	transform: translateY(-1px);
}

.sgg-wrap .sgg-all:focus-visible,
.sgg-wrap .sgg-dd-btn:focus-visible {
	outline: none;
	border-color: var(--sgg-accent);
	box-shadow: var(--sgg-shadow), 0 0 0 4px var(--sgg-accent-soft);
}

.sgg-wrap .sgg-all.is-active {
	background: var(--sgg-accent);
	border-color: var(--sgg-accent);
	color: #111;
	box-shadow: 0 10px 22px -12px var(--sgg-accent-soft), var(--sgg-shadow);
}

/* Dropdown */
.sgg-wrap .sgg-dd {
	position: relative;
	margin: 0;
}

.sgg-wrap .sgg-dd > summary {
	list-style: none;
	user-select: none;
}

.sgg-wrap .sgg-dd > summary::-webkit-details-marker {
	display: none;
}

.sgg-wrap .sgg-dd-icon {
	flex: none;
	opacity: .5;
}

.sgg-wrap .sgg-dd-label {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sgg-wrap .sgg-dd-value {
	max-width: 140px;
	padding: 5px 10px;
	overflow: hidden;
	border-radius: 999px;
	background: var(--sgg-accent);
	color: #111;
	font-size: 12px;
	font-weight: 700;
	text-overflow: ellipsis;
}

.sgg-wrap .sgg-dd-value:empty {
	display: none;
}

.sgg-wrap .sgg-dd-chevron {
	flex: none;
	margin-left: 2px;
	opacity: .5;
	transition: transform .25s var(--sgg-ease);
}

.sgg-wrap .sgg-dd[open] > .sgg-dd-btn,
.sgg-wrap .sgg-dd.is-active > .sgg-dd-btn {
	border-color: var(--sgg-accent);
}

.sgg-wrap .sgg-dd.is-active .sgg-dd-icon {
	opacity: 1;
}

.sgg-wrap .sgg-dd[open] .sgg-dd-chevron {
	transform: rotate(180deg);
}

.sgg-wrap .sgg-dd-panel {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 40;
	min-width: 240px;
	max-height: 340px;
	padding: 6px;
	overflow-y: auto;
	background: var(--sgg-card-bg);
	color: var(--sgg-card-fg);
	border: 1px solid var(--sgg-card-border);
	border-radius: 16px;
	box-shadow: 0 24px 48px -16px rgba(15, 23, 42, .35), 0 2px 6px rgba(15, 23, 42, .06);
	animation: sgg-pop .18s var(--sgg-ease);
}

.sgg-wrap .sgg-dd-panel.sgg-align-right {
	left: auto;
	right: 0;
}

@keyframes sgg-pop {
	from { opacity: 0; transform: translateY(-6px); }
	to { opacity: 1; transform: none; }
}

/* Options inside Type / Game developer */
.sgg-wrap .sgg-opt {
	--dot: #9ca3af;
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	margin: 0;
	padding: 11px 12px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	text-align: left;
	cursor: pointer;
	box-shadow: none;
	transition: background-color .15s ease;
}

.sgg-wrap .sgg-opt:hover,
.sgg-wrap .sgg-opt:focus-visible {
	outline: none;
	background: var(--sgg-muted-bg);
}

.sgg-wrap .sgg-opt.is-selected {
	font-weight: 700;
}

.sgg-wrap .sgg-opt-dot {
	flex: none;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--dot);
}

.sgg-wrap .sgg-opt--new { --dot: var(--sgg-c-new); }
.sgg-wrap .sgg-opt--old { --dot: var(--sgg-c-old); }
.sgg-wrap .sgg-opt--jackpot { --dot: var(--sgg-c-jackpot); }
.sgg-wrap .sgg-opt--megaways { --dot: var(--sgg-c-megaways); }

.sgg-wrap .sgg-opt-name {
	flex: 1;
	min-width: 0;
}

.sgg-wrap .sgg-opt-count {
	min-width: 24px;
	padding: 3px 7px;
	border-radius: 999px;
	background: var(--sgg-muted-bg);
	font-size: 12px;
	font-weight: 700;
	text-align: center;
	opacity: .8;
}

.sgg-wrap .sgg-opt-check {
	flex: none;
	color: var(--sgg-accent);
	opacity: 0;
}

.sgg-wrap .sgg-opt.is-selected .sgg-opt-check {
	opacity: 1;
}

/* RTP panel */
.sgg-wrap .sgg-dd-panel--rtp {
	width: 300px;
	max-height: none;
	padding: 22px 18px 18px;
	overflow: visible;
}

.sgg-wrap .sgg-range {
	position: relative;
	height: 28px;
	margin: 0 0 18px;
}

.sgg-wrap .sgg-range-track {
	position: absolute;
	top: 50%;
	left: 11px;
	right: 11px;
	height: 6px;
	margin-top: -3px;
	border-radius: 3px;
	background: var(--sgg-muted-bg);
}

.sgg-wrap .sgg-range-fill {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	border-radius: 3px;
	background: var(--sgg-accent);
}

.sgg-wrap .sgg-range input[type="range"] {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 3;
	width: 100%;
	height: 28px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
}

.sgg-wrap .sgg-range input[type="range"]::-webkit-slider-runnable-track {
	height: 28px;
	background: transparent;
	border: 0;
}

.sgg-wrap .sgg-range input[type="range"]::-moz-range-track {
	height: 28px;
	background: transparent;
	border: 0;
}

.sgg-wrap .sgg-range input[type="range"]::-webkit-slider-thumb {
	width: 22px;
	height: 22px;
	margin-top: 3px;
	border: 3px solid var(--sgg-card-fg);
	border-radius: 50%;
	background: var(--sgg-card-bg);
	box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
	cursor: grab;
	pointer-events: auto;
	-webkit-appearance: none;
	appearance: none;
	transition: transform .15s ease;
}

.sgg-wrap .sgg-range input[type="range"]::-moz-range-thumb {
	box-sizing: border-box;
	width: 22px;
	height: 22px;
	border: 3px solid var(--sgg-card-fg);
	border-radius: 50%;
	background: var(--sgg-card-bg);
	box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
	cursor: grab;
	pointer-events: auto;
}

.sgg-wrap .sgg-range input[type="range"]:active::-webkit-slider-thumb {
	cursor: grabbing;
	transform: scale(1.12);
}

.sgg-wrap .sgg-range input[type="range"]:focus-visible::-webkit-slider-thumb {
	box-shadow: 0 0 0 5px var(--sgg-accent-soft);
}

.sgg-wrap .sgg-range-inputs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.sgg-wrap .sgg-range-inputs label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	font-size: 13px;
	font-weight: 600;
}

.sgg-wrap .sgg-range-inputs input {
	width: 100%;
	height: 44px;
	margin: 0;
	padding: 0 12px;
	border: 1px solid var(--sgg-card-border);
	border-radius: 10px;
	background: var(--sgg-input-bg);
	color: var(--sgg-card-fg);
	font: inherit;
	font-size: 16px;
	font-weight: 500;
	box-shadow: none;
}

.sgg-wrap .sgg-range-inputs input:focus {
	outline: none;
	border-color: var(--sgg-accent);
	box-shadow: 0 0 0 4px var(--sgg-accent-soft);
}

/* Search pill */
.sgg-wrap .sgg-search {
	position: relative;
	display: flex;
	flex: 1 1 220px;
	align-items: center;
	gap: 8px;
	height: 46px;
	margin: 0 0 0 auto;
	padding: 0 18px;
	border: 1px solid var(--sgg-card-border);
	border-radius: 999px;
	background: var(--sgg-card-bg);
	color: var(--sgg-card-fg);
	box-shadow: var(--sgg-shadow);
	cursor: text;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.sgg-wrap .sgg-search:hover {
	border-color: var(--sgg-accent);
}

.sgg-wrap .sgg-search:focus-within {
	border-color: var(--sgg-accent);
	box-shadow: var(--sgg-shadow), 0 0 0 4px var(--sgg-accent-soft);
}

.sgg-wrap .sgg-search svg {
	flex: none;
	opacity: .5;
}

.sgg-wrap .sgg-search-input {
	flex: 1;
	min-width: 0;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 15px;
	box-shadow: none;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}

/* Empty state */
.sgg-wrap .sgg-no-results {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 44px 20px;
	border: 2px dashed var(--sgg-card-border);
	border-radius: var(--sgg-radius);
	color: inherit;
	text-align: center;
}

.sgg-wrap .sgg-no-results svg {
	opacity: .45;
}

.sgg-wrap .sgg-no-results p {
	margin: 0;
	font-weight: 600;
	opacity: .75;
}

.sgg-wrap .sgg-reset {
	margin: 0;
	padding: 10px 20px;
	border: 1px solid var(--sgg-card-border);
	border-radius: 999px;
	background: var(--sgg-card-bg);
	color: inherit;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	box-shadow: none;
}

.sgg-wrap .sgg-reset:hover {
	border-color: var(--sgg-accent);
}

@media (max-width: 767px) {
	.sgg-wrap .sgg-filters {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	.sgg-wrap .sgg-all,
	.sgg-wrap .sgg-dd-btn {
		width: 100%;
		height: 44px;
		padding: 0 14px;
		font-size: 14px;
	}

	.sgg-wrap .sgg-all {
		justify-content: center;
	}

	.sgg-wrap .sgg-dd-label {
		flex: 1;
	}

	.sgg-wrap .sgg-dd-value {
		max-width: 80px;
	}

	.sgg-wrap .sgg-search {
		grid-column: 1 / -1;
		height: 44px;
		margin: 0;
	}

	.sgg-wrap .sgg-dd-panel--rtp {
		width: min(300px, calc(100vw - 32px));
	}

	.sgg-wrap .sgg-badge {
		padding: 4px 6px;
		font-size: 9.5px;
	}
}

/* ---------- Show more ---------- */

.sgg-wrap .sgg-more-wrap {
	margin-top: 2em;
	text-align: center;
}

.sgg-wrap .sgg-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 14px 30px;
	border: 0;
	border-radius: 999px;
	background: var(--sgg-accent);
	color: #111;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 10px 24px -10px var(--sgg-accent-soft), 0 2px 6px rgba(0, 0, 0, .12);
	transition: transform .3s var(--sgg-ease), box-shadow .3s ease, filter .2s ease;
}

.sgg-wrap .sgg-more:hover {
	transform: translateY(-2px);
	filter: brightness(1.06);
	box-shadow: 0 16px 30px -10px var(--sgg-accent-soft), 0 2px 6px rgba(0, 0, 0, .12);
}

.sgg-wrap .sgg-more:focus-visible {
	outline: 3px solid var(--sgg-accent-soft);
	outline-offset: 3px;
}

.sgg-wrap .sgg-more-count {
	padding: 4px 8px;
	border-radius: 999px;
	background: rgba(0, 0, 0, .12);
	font-size: 12px;
}

.sgg-wrap .sgg-more-count:empty {
	display: none;
}

/* ---------- Reveal animation (enabled by JS) ---------- */

.sgg-wrap.sgg-js .sgg-item {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .55s ease, transform .6s var(--sgg-ease);
	transition-delay: var(--sgg-delay, 0ms);
}

.sgg-wrap.sgg-js .sgg-item.sgg-in {
	opacity: 1;
	transform: none;
}

/* ---------- Phones / touch screens ---------- */

@media (max-width: 767px) {
	.sgg-wrap .sgg-meta {
		padding: 9px 36px;
	}

	.sgg-wrap.sgg-style-overlay .sgg-meta {
		padding: 30px 34px 8px;
	}

	.sgg-wrap .sgg-title {
		font-size: 13px;
	}

	.sgg-wrap .sgg-arrow {
		right: 8px;
		width: 24px;
		height: 24px;
		margin-top: -12px;
	}

	.sgg-wrap.sgg-style-overlay .sgg-arrow {
		bottom: 5px;
	}

	.sgg-wrap .sgg-arrow svg {
		width: 13px;
		height: 13px;
	}
}

@media (hover: none) {
	.sgg-wrap .sgg-overlay,
	.sgg-wrap .sgg-thumb::after {
		display: none;
	}

	.sgg-wrap a.sgg-link:active {
		transform: scale(.98);
	}
}

@media (prefers-reduced-motion: reduce) {
	.sgg-wrap .sgg-link,
	.sgg-wrap .sgg-img,
	.sgg-wrap .sgg-overlay,
	.sgg-wrap .sgg-play,
	.sgg-wrap .sgg-btn,
	.sgg-wrap .sgg-arrow,
	.sgg-wrap.sgg-js .sgg-item {
		transition: none;
	}

	.sgg-wrap.sgg-js .sgg-item {
		opacity: 1;
		transform: none;
	}

	.sgg-wrap .sgg-thumb::after {
		display: none;
	}
}

/* ---------- Note for logged-in editors ---------- */

.sgg-wrap .sgg-editor-note {
	margin: 0 0 16px;
	padding: 12px 16px;
	border: 1px dashed #d97706;
	border-radius: 10px;
	background: #fffbeb;
	color: #78350f;
	font-size: 13px;
	line-height: 1.5;
}

.sgg-wrap .sgg-editor-note ul {
	margin: 6px 0 0 18px;
	padding: 0;
}

/* Game type with no games in this grid – still selectable, just dimmed. */
.sgg-wrap .sgg-opt.is-empty .sgg-opt-name,
.sgg-wrap .sgg-opt.is-empty .sgg-opt-count {
	opacity: .5;
}
