:root {
	--tpg-green-950: #06251c;
	--tpg-green-900: #083327;
	--tpg-green-800: #0b4636;
	--tpg-green-700: #0f5c42;
	--tpg-green-600: #148a4f;
	--tpg-green-500: #1aa35c;
	--tpg-gold-300: #f5d76e;
	--tpg-gold-400: #e8c547;
	--tpg-gold-500: #d4a017;
	--tpg-cream: #f4f7f5;
	--tpg-white: #ffffff;
	--tpg-ink: #14241c;
	--tpg-muted: #5c6d64;
	--tpg-line: #e4eee8;
	--tpg-shadow: 0 10px 28px rgba(8, 40, 28, 0.08);
	--tpg-radius: 18px;
	--tpg-container: 1180px;
	--tpg-font: "Segoe UI", system-ui, -apple-system, sans-serif;
	--tpg-display: Georgia, "Palatino Linotype", Palatino, serif;
}

html {
	scroll-behavior: smooth;
}

body.tpg-theme {
	margin: 0;
	font-family: var(--tpg-font);
	color: var(--tpg-ink);
	background: var(--tpg-cream);
	line-height: 1.55;
}

body.tpg-theme a {
	color: var(--tpg-green-700);
}

body.tpg-theme img {
	max-width: 100%;
	height: auto;
}

.tpg-site {
	min-height: 100vh;
}

.tpg-container {
	width: min(var(--tpg-container), calc(100% - 2rem));
	margin-inline: auto;
}

.skip-link:focus {
	position: absolute;
	left: 1rem;
	top: 1rem;
	z-index: 1000;
	padding: 0.5rem 0.8rem;
	background: #fff;
}

/* Utility bar */
.tpg-utility {
	background: var(--tpg-green-950);
	color: #d9e8df;
	font-size: 0.78rem;
}

.tpg-utility__inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	min-height: 34px;
}

.tpg-utility__tag {
	margin: 0;
}

.tpg-utility__menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0.9rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tpg-utility__menu a {
	color: #d9e8df;
	text-decoration: none;
}

.tpg-utility__menu a:hover,
.tpg-utility__menu a:focus {
	color: var(--tpg-gold-300);
}

/* Header */
.tpg-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: #fff;
	border-bottom: 1px solid var(--tpg-line);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.tpg-header__inner {
	display: flex;
	align-items: center;
	gap: 1rem;
	min-height: 76px;
}

.tpg-logo {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	text-decoration: none;
	color: inherit;
}

.tpg-logo__mark {
	width: 44px;
	height: 44px;
}

.tpg-logo__name {
	display: block;
	font-weight: 800;
	font-size: 1.2rem;
	letter-spacing: -0.02em;
	color: var(--tpg-green-800);
}

.tpg-logo__name::first-letter,
.tpg-brand .custom-logo-link {
	display: flex;
	align-items: center;
}

.tpg-logo__tagline {
	display: block;
	font-size: 0.68rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--tpg-gold-500);
}

.custom-logo {
	max-height: 56px;
	width: auto;
}

.tpg-nav {
	display: flex;
	align-items: center;
	gap: 1.2rem;
	margin-left: auto;
}

.tpg-menu {
	display: flex;
	gap: 1.15rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tpg-menu a {
	color: var(--tpg-ink);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.94rem;
}

.tpg-menu a:hover,
.tpg-menu .current-menu-item > a,
.tpg-menu .current_page_item > a {
	color: var(--tpg-green-600);
}

.tpg-header-search .tpg-search {
	display: flex;
	background: #f3f7f4;
	border: 1px solid var(--tpg-line);
	border-radius: 999px;
	overflow: hidden;
}

.tpg-header-search input[type="search"] {
	width: 168px;
	border: 0;
	background: transparent;
	padding: 0.45rem 0.8rem;
}

.tpg-search button {
	border: 0;
	background: var(--tpg-green-600);
	color: #fff;
	font-weight: 700;
	padding: 0.5rem 0.95rem;
	cursor: pointer;
}

.tpg-search button:hover,
.tpg-search button:focus {
	background: var(--tpg-green-700);
}

.tpg-menu-toggle {
	display: none;
	margin-left: auto;
	width: 44px;
	height: 44px;
	border: 1px solid var(--tpg-line);
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
}

.tpg-menu-toggle__bars,
.tpg-menu-toggle__bars::before,
.tpg-menu-toggle__bars::after {
	display: block;
	width: 18px;
	height: 2px;
	margin: 0 auto;
	background: var(--tpg-green-800);
	content: "";
	position: relative;
}

.tpg-menu-toggle__bars::before {
	top: -6px;
	position: absolute;
}

.tpg-menu-toggle__bars::after {
	top: 6px;
	position: absolute;
}

/* Hero */
.tpg-hero {
	background:
		radial-gradient(circle at 80% 20%, rgba(232, 197, 71, 0.18), transparent 28%),
		radial-gradient(circle at 10% 80%, rgba(20, 138, 79, 0.35), transparent 32%),
		linear-gradient(180deg, #0b4b38 0%, #083327 52%, #06251c 100%);
	color: #fff;
	padding: 2.6rem 0 2.2rem;
	overflow: hidden;
}

.tpg-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
	gap: 2rem;
	align-items: center;
}

.tpg-hero__kicker {
	margin: 0 0 0.4rem;
	color: #b7dcc8;
	font-size: 0.92rem;
}

.tpg-hero__title {
	margin: 0 0 0.7rem;
	font-family: var(--tpg-display);
	font-size: clamp(2rem, 4.4vw, 3.35rem);
	line-height: 1.12;
	color: var(--tpg-gold-300);
	font-weight: 700;
}

.tpg-hero__text {
	margin: 0 0 1.2rem;
	max-width: 42rem;
	color: #e7f3ec;
	font-size: 1.02rem;
}

.tpg-hero .tpg-search {
	display: flex;
	max-width: 520px;
	background: #fff;
	border-radius: 999px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.tpg-hero .tpg-search input[type="search"] {
	flex: 1;
	border: 0;
	padding: 0.85rem 1.1rem;
	font-size: 0.95rem;
}

.tpg-hero__highlights {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.8rem;
	margin: 1.3rem 0 0;
	padding: 0;
	list-style: none;
}

.tpg-hero__highlights li {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 14px;
	padding: 0.75rem;
}

.tpg-hero__highlights strong,
.tpg-hero__highlights span {
	display: block;
}

.tpg-hero__highlights strong {
	color: var(--tpg-gold-300);
	font-size: 0.86rem;
}

.tpg-hero__highlights span {
	color: #d5e8dc;
	font-size: 0.78rem;
}

.tpg-hero__art {
	position: relative;
	min-height: 280px;
}

.tpg-hero__photo,
.tpg-hero__fallback {
	width: 100%;
	height: auto;
	display: block;
}

.tpg-hero__script {
	position: absolute;
	right: 4%;
	top: 6%;
	margin: 0;
	font-family: "Segoe Script", "Lucida Handwriting", cursive;
	font-size: 1.55rem;
	color: var(--tpg-gold-300);
	transform: rotate(-8deg);
	text-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* Sections */
.tpg-section {
	padding: 2.4rem 0;
}

.tpg-section__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.2rem;
}

.tpg-section__title,
.tpg-archive__title {
	margin: 0;
	font-size: clamp(1.35rem, 2vw, 1.75rem);
	color: var(--tpg-green-900);
}

.tpg-section__link {
	display: inline-flex;
	align-items: center;
	padding: 0.4rem 0.85rem;
	border-radius: 999px;
	background: var(--tpg-green-600);
	color: #fff;
	text-decoration: none;
	font-size: 0.85rem;
	font-weight: 700;
}

.tpg-section__link:hover,
.tpg-section__link:focus {
	color: #fff;
	background: var(--tpg-green-700);
}

.tpg-admin-note {
	background: #fff8e1;
	border-left: 4px solid var(--tpg-gold-500);
	padding: 0.9rem 1rem;
	border-radius: 8px;
}

.tpg-game-grid--popular {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 900px) {
	.tpg-game-grid--popular {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1200px) {
	.tpg-game-grid--popular {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (min-width: 1400px) {
	.tpg-game-grid--popular {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
}

/* Categories */
.tpg-category-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.9rem;
}

@media (min-width: 768px) {
	.tpg-category-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1100px) {
	.tpg-category-grid {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
}

.tpg-category-card {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	padding: 1.1rem 0.9rem;
	background: #fff;
	border: 1px solid var(--tpg-line);
	border-radius: 16px;
	text-decoration: none;
	color: inherit;
	text-align: center;
	box-shadow: var(--tpg-shadow);
	transition: transform 0.16s ease;
}

.tpg-category-card:hover,
.tpg-category-card:focus {
	transform: translateY(-3px);
	color: inherit;
}

.tpg-category-card__icon {
	color: var(--tpg-green-600);
	font-size: 1.3rem;
}

.tpg-category-card span {
	color: var(--tpg-muted);
	font-size: 0.8rem;
}

/* CTA */
.tpg-cta {
	padding: 0 0 2rem;
}

.tpg-cta__inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1.5rem;
	padding: 1.6rem 1.8rem;
	border-radius: 22px;
	background:
		radial-gradient(circle at 12% 50%, rgba(232, 197, 71, 0.16), transparent 26%),
		linear-gradient(90deg, #0b4636, #0f5c42 55%, #083327);
	color: #fff;
}

.tpg-cta h2 {
	margin: 0 0 0.4rem;
	font-family: var(--tpg-display);
	font-size: clamp(1.4rem, 3vw, 2rem);
	color: var(--tpg-gold-300);
}

.tpg-cta p,
.tpg-cta li {
	color: #e5f3ea;
}

.tpg-cta ul {
	margin: 0.7rem 0 0;
	padding: 0;
	list-style: none;
}

.tpg-cta li {
	position: relative;
	padding-left: 1.2rem;
	margin: 0.2rem 0;
}

.tpg-cta li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--tpg-gold-300);
}

.tpg-cta__btn {
	flex-shrink: 0;
	display: inline-flex;
	padding: 0.85rem 1.3rem;
	border-radius: 999px;
	background: var(--tpg-gold-400);
	color: #1a1404;
	font-weight: 800;
	text-decoration: none;
}

.tpg-cta__btn:hover,
.tpg-cta__btn:focus {
	color: #1a1404;
	filter: brightness(1.05);
}

/* Guides / why */
.tpg-guides-block__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(240px, 0.8fr);
	gap: 1.3rem;
	align-items: start;
}

.tpg-guide-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

@media (min-width: 800px) {
	.tpg-guide-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.tpg-guide-card {
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid var(--tpg-line);
	box-shadow: var(--tpg-shadow);
}

.tpg-guide-card__media,
.tpg-guide-card__placeholder {
	display: block;
	aspect-ratio: 16 / 10;
	background: linear-gradient(135deg, #0f5c42, #083327);
	color: var(--tpg-gold-300);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
}

.tpg-guide-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tpg-guide-card__body {
	padding: 0.9rem 1rem 1rem;
}

.tpg-guide-card h3 {
	margin: 0 0 0.4rem;
	font-size: 1rem;
}

.tpg-guide-card h3 a {
	color: var(--tpg-ink);
	text-decoration: none;
}

.tpg-guide-card__meta {
	display: flex;
	justify-content: space-between;
	gap: 0.5rem;
	font-size: 0.8rem;
	color: var(--tpg-muted);
}

.tpg-why {
	background: #fff;
	border: 1px solid var(--tpg-line);
	border-radius: 16px;
	padding: 1.2rem 1.2rem 0.4rem;
	box-shadow: var(--tpg-shadow);
}

.tpg-why h2 {
	margin: 0 0 0.8rem;
	font-size: 1.2rem;
	color: var(--tpg-green-900);
}

.tpg-why ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tpg-why li {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	margin: 0 0 1rem;
	padding-left: 1.4rem;
	position: relative;
}

.tpg-why li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--tpg-green-600);
	font-weight: 700;
}

.tpg-why span {
	color: var(--tpg-muted);
	font-size: 0.88rem;
}

/* FAQ */
.tpg-faq__list {
	display: grid;
	gap: 0.7rem;
}

.tpg-faq__item {
	background: #fff;
	border: 1px solid var(--tpg-line);
	border-radius: 14px;
	padding: 0.85rem 1rem;
}

.tpg-faq__item summary {
	cursor: pointer;
	font-weight: 700;
	color: var(--tpg-green-900);
}

.tpg-faq__item p {
	margin: 0.65rem 0 0;
	color: var(--tpg-muted);
}

/* Footer */
.tpg-footer {
	background: var(--tpg-green-950);
	color: #d7e6dd;
	margin-top: 1rem;
}

.tpg-footer a {
	color: #d7e6dd;
	text-decoration: none;
}

.tpg-footer a:hover,
.tpg-footer a:focus {
	color: var(--tpg-gold-300);
}

.tpg-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 1.5rem;
	padding: 2.4rem 0 1.6rem;
}

.tpg-footer h2 {
	margin: 0 0 0.8rem;
	color: #fff;
	font-size: 1rem;
}

.tpg-footer__menu,
.tpg-social {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tpg-footer__menu li,
.tpg-social li {
	margin: 0 0 0.45rem;
}

.tpg-logo--footer .tpg-logo__name {
	color: #fff;
}

.tpg-footer__base {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	font-size: 0.82rem;
}

.tpg-footer__base-inner {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	align-items: center;
	padding: 0.85rem 0;
}

.tpg-to-top {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	min-height: 40px;
	border-radius: 999px;
	background: var(--tpg-green-600);
	color: #fff !important;
	padding: 0 0.8rem;
	font-weight: 700;
}

/* Inner WordPress / GeneratePress / Elementor pages */
body.tpg-theme:not(.tpg-home):not(.elementor-page) .site-content,
body.tpg-theme:not(.tpg-home):not(.elementor-page) .site-main,
body.tpg-search-page {
	width: min(var(--tpg-container), calc(100% - 2rem));
	margin-inline: auto;
}

body.tpg-theme:not(.tpg-home) .inside-article,
body.tpg-theme .tpg-post-teaser {
	background: #fff;
	border-radius: var(--tpg-radius);
	padding: 1.4rem;
	margin: 1.4rem 0;
	border: 1px solid var(--tpg-line);
}

body.tpg-theme h1.entry-title,
body.tpg-theme .page-header h1 {
	color: var(--tpg-green-900);
}

.tpg-archive__header {
	margin: 0 0 1.3rem;
}

.tpg-archive__intro {
	color: var(--tpg-muted);
}

.tpg-text-link {
	font-weight: 700;
}

input[type="search"]:focus,
.tpg-search button:focus,
.tpg-menu a:focus,
.tpg-download__btn:focus {
	outline: 2px solid var(--tpg-gold-400);
	outline-offset: 2px;
}

@media (max-width: 980px) {
	.tpg-hero__inner,
	.tpg-guides-block__grid,
	.tpg-footer__grid,
	.tpg-cta__inner,
	.tpg-single__hero {
		grid-template-columns: 1fr;
	}

	.tpg-hero__highlights {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tpg-cta__inner {
		display: grid;
	}
}

@media (max-width: 860px) {
	.tpg-utility {
		display: none;
	}

	.tpg-menu-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	.tpg-nav {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		flex-direction: column;
		align-items: stretch;
		padding: 0.8rem 1rem 1rem;
		background: #fff;
		border-bottom: 1px solid var(--tpg-line);
		box-shadow: var(--tpg-shadow);
	}

	.tpg-nav.is-open {
		display: flex;
	}

	.tpg-header {
		position: sticky;
	}

	.tpg-menu {
		flex-direction: column;
		gap: 0.4rem;
	}

	.tpg-header-search .tpg-search,
	.tpg-header-search input[type="search"] {
		width: 100%;
	}

	.tpg-footer__base-inner {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 640px) {
	.tpg-hero {
		padding: 1.6rem 0 1.4rem;
	}

	.tpg-hero__script {
		font-size: 1.15rem;
	}

	.tpg-section {
		padding: 1.6rem 0;
	}
}

.tpg-menu-toggle__bars {
	position: relative;
}

body.tpg-theme header.site-header,
body.tpg-theme footer.site-footer,
body.tpg-theme .gen-sidebar-nav {
	display: none;
}
