/* Plugin-owned game UI so listings still render if the child theme is replaced. */
.tpg-container {
	width: min(1180px, calc(100% - 2rem));
	margin: 0 auto;
}

.tpg-main {
	padding: 1.5rem 0 3rem;
}

.tpg-section-title {
	margin: 0 0 1rem;
	font-size: 1.35rem;
	line-height: 1.3;
	color: #0b3d2c;
}

.tpg-game-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

@media (min-width: 768px) {
	.tpg-game-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.25rem;
	}
}

@media (min-width: 1100px) {
	.tpg-game-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.tpg-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e6eee9;
	border-radius: 18px;
	padding: 1rem 1rem 1.15rem;
	box-shadow: 0 8px 24px rgba(8, 40, 28, 0.06);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tpg-card:hover,
.tpg-card:focus-within {
	transform: translateY(-3px);
	box-shadow: 0 14px 30px rgba(8, 40, 28, 0.12);
}

.tpg-card__stretch:focus {
	outline: 2px solid #e8c547;
	outline-offset: 3px;
}

.tpg-card__icon {
	display: flex;
	justify-content: center;
	margin-bottom: 0.75rem;
}

.tpg-card__icon img {
	width: 108px;
	height: 108px;
	object-fit: cover;
	border-radius: 22px;
}

.tpg-card__title {
	margin: 0 0 0.35rem;
	font-size: 1rem;
	text-align: center;
	color: #12261d;
}

.tpg-card__excerpt,
.tpg-card__specs {
	margin: 0 0 0.65rem;
	font-size: 0.8rem;
	line-height: 1.4;
	color: #5b6b63;
	text-align: center;
}

.tpg-card__cta {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: auto auto 0;
	padding: 0.45rem 0.9rem;
	border-radius: 999px;
	background: #148a4f;
	color: #fff;
	font-size: 0.82rem;
	font-weight: 600;
	pointer-events: none;
}

.tpg-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin: 0 0 1.25rem;
	padding: 0;
	list-style: none;
	font-size: 0.9rem;
}

.tpg-breadcrumbs li:not(:last-child)::after {
	content: "/";
	margin-left: 0.35rem;
	color: #7b8a82;
}

.tpg-filter-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 1.5rem;
}

.tpg-chip {
	display: inline-flex;
	padding: 0.4rem 0.85rem;
	border-radius: 999px;
	background: #eef6f1;
	color: #0b3d2c;
	text-decoration: none;
	font-size: 0.88rem;
}

.tpg-chip.is-active,
.tpg-chip:hover,
.tpg-chip:focus {
	background: #0f5c42;
	color: #fff;
}

.tpg-pagination .nav-links,
.tpg-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	justify-content: center;
	margin-top: 2rem;
}

.tpg-pagination a,
.tpg-pagination span {
	display: inline-flex;
	min-width: 2.25rem;
	justify-content: center;
	padding: 0.4rem 0.7rem;
	border-radius: 8px;
	background: #fff;
	border: 1px solid #d7e3dc;
	color: #0b3d2c;
	text-decoration: none;
}

.tpg-pagination .current {
	background: #0f5c42;
	color: #fff;
	border-color: #0f5c42;
}

.tpg-empty {
	padding: 2rem;
	background: #fff;
	border-radius: 16px;
	text-align: center;
}

.tpg-single__hero {
	display: grid;
	grid-template-columns: 140px 1fr;
	gap: 1.25rem;
	margin-bottom: 2rem;
	padding: 1.25rem;
	background: #fff;
	border-radius: 20px;
	border: 1px solid #e6eee9;
}

@media (max-width: 640px) {
	.tpg-single__hero {
		grid-template-columns: 1fr;
		text-align: center;
	}
}

.tpg-single__icon img {
	width: 140px;
	height: 140px;
	object-fit: cover;
	border-radius: 24px;
}

.tpg-single__title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	color: #0b3d2c;
}

.tpg-download__btn {
	display: inline-flex;
	margin-top: 0.75rem;
	padding: 0.85rem 1.4rem;
	border-radius: 12px;
	background: linear-gradient(180deg, #1aa35c, #0f7a43);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 8px 18px rgba(15, 122, 67, 0.28);
}

.tpg-download__btn:hover,
.tpg-download__btn:focus {
	color: #fff;
	filter: brightness(1.05);
}

.tpg-download__note,
.tpg-download__unavailable,
.tpg-disclosure {
	margin: 0.75rem 0 0;
	font-size: 0.9rem;
	color: #5b6b63;
}

.tpg-specs__table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
}

.tpg-specs__table th,
.tpg-specs__table td {
	padding: 0.85rem 1rem;
	border-bottom: 1px solid #e6eee9;
	text-align: left;
}

.tpg-specs__table th {
	width: 34%;
	color: #0b3d2c;
}

.tpg-screenshots__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
}

@media (min-width: 768px) {
	.tpg-screenshots__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.tpg-screenshots__item img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
}

.tpg-features__list {
	margin: 0;
	padding-left: 1.2rem;
}

.tpg-related {
	margin-top: 2.5rem;
}

.tpg-prose {
	max-width: 70ch;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}
