/**
 * TB Gaming Platform
 * Public Game Hub
 */

/* ---------------------------------------------------------
   Main Hub
--------------------------------------------------------- */

.tbg-game-hub {
	--tbg-bg: #090b12;
	--tbg-bg-secondary: #10131d;
	--tbg-card: #151925;
	--tbg-card-hover: #1b2030;
	--tbg-text: #ffffff;
	--tbg-muted: #9ba3b7;
	--tbg-accent: #7c5cff;
	--tbg-accent-2: #00d4ff;
	--tbg-border: rgba(255, 255, 255, 0.08);

	width: 100%;
	box-sizing: border-box;
	background:
		radial-gradient(
			circle at 10% 10%,
			rgba(124, 92, 255, 0.16),
			transparent 30%
		),
		radial-gradient(
			circle at 90% 20%,
			rgba(0, 212, 255, 0.10),
			transparent 28%
		),
		var(--tbg-bg);
	color: var(--tbg-text);
	border-radius: 24px;
	overflow: hidden;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		Helvetica, Arial, sans-serif;
}

/* ---------------------------------------------------------
   Hero
--------------------------------------------------------- */

.tbg-hub-hero {
	position: relative;
	padding: 80px 7%;
	min-height: 330px;
	display: flex;
	align-items: center;
	box-sizing: border-box;
	overflow: hidden;
	background:
		linear-gradient(
			135deg,
			rgba(124, 92, 255, 0.14),
			rgba(0, 212, 255, 0.05)
		);
}

.tbg-hub-hero::before {
	content: "";
	position: absolute;
	width: 420px;
	height: 420px;
	right: -140px;
	top: -170px;
	border-radius: 50%;
	background: rgba(124, 92, 255, 0.14);
	filter: blur(50px);
	pointer-events: none;
}

.tbg-hub-hero::after {
	content: "";
	position: absolute;
	width: 300px;
	height: 300px;
	left: -150px;
	bottom: -170px;
	border-radius: 50%;
	background: rgba(0, 212, 255, 0.10);
	filter: blur(50px);
	pointer-events: none;
}

.tbg-hero-content {
	position: relative;
	z-index: 2;
	max-width: 760px;
}

.tbg-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 18px;
	padding: 7px 13px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.05);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 1.4px;
}

.tbg-hero-badge-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #00e676;
	box-shadow: 0 0 12px rgba(0, 230, 118, 0.8);
}

.tbg-hero-title {
	margin: 0 0 16px !important;
	padding: 0 !important;
	color: #ffffff !important;
	font-size: clamp(38px, 5vw, 68px) !important;
	line-height: 1.04 !important;
	font-weight: 900 !important;
	letter-spacing: -2px;
}

.tbg-hero-title span {
	background: linear-gradient(
		90deg,
		#8b6cff,
		#00d4ff
	);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.tbg-hero-description {
	max-width: 640px;
	margin: 0 0 28px !important;
	color: var(--tbg-muted) !important;
	font-size: 17px;
	line-height: 1.7;
}

.tbg-hero-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.tbg-primary-button {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 13px 20px;
	border-radius: 12px;
	background: linear-gradient(
		135deg,
		#7c5cff,
		#5d43e8
	);
	color: #ffffff !important;
	text-decoration: none !important;
	font-size: 14px;
	font-weight: 800;
	box-shadow: 0 12px 30px rgba(124, 92, 255, 0.28);
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease;
}

.tbg-primary-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 35px rgba(124, 92, 255, 0.38);
	color: #ffffff !important;
}

/* ---------------------------------------------------------
   Games Section
--------------------------------------------------------- */

.tbg-games-section {
	padding: 45px 7% 60px;
	background: rgba(0, 0, 0, 0.12);
}

.tbg-section-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 26px;
}

.tbg-section-kicker {
	display: block;
	margin-bottom: 7px;
	color: #8b79ff;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 1.7px;
}

.tbg-section-heading h2 {
	margin: 0 !important;
	padding: 0 !important;
	color: #ffffff !important;
	font-size: 30px !important;
	line-height: 1.15 !important;
	font-weight: 850 !important;
}

.tbg-game-count {
	padding: 7px 12px;
	border: 1px solid var(--tbg-border);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.04);
	color: var(--tbg-muted);
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}

/* ---------------------------------------------------------
   Game Grid
--------------------------------------------------------- */

.tbg-games-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

/* ---------------------------------------------------------
   Game Card
--------------------------------------------------------- */

.tbg-game-card {
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--tbg-border);
	border-radius: 18px;
	background: var(--tbg-card);
	box-shadow: 0 12px 35px rgba(0, 0, 0, 0.20);
	transition:
		transform 0.25s ease,
		border-color 0.25s ease,
		box-shadow 0.25s ease;
}

.tbg-game-card:hover {
	transform: translateY(-7px);
	border-color: rgba(124, 92, 255, 0.45);
	background: var(--tbg-card-hover);
	box-shadow: 0 22px 50px rgba(0, 0, 0, 0.34);
}

/* ---------------------------------------------------------
   Card Image
--------------------------------------------------------- */

.tbg-game-card-image {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #0d1018;
}

.tbg-game-card-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.tbg-game-card:hover .tbg-game-card-image img {
	transform: scale(1.07);
}

.tbg-card-overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(
			180deg,
			rgba(0, 0, 0, 0.04) 20%,
			rgba(0, 0, 0, 0.55) 100%
		);
	pointer-events: none;
}

/* ---------------------------------------------------------
   Placeholder
--------------------------------------------------------- */

.tbg-game-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background:
		linear-gradient(
			135deg,
			#17132d,
			#111b2d
		);
}

.tbg-placeholder-glow {
	position: absolute;
	width: 170px;
	height: 170px;
	border-radius: 50%;
	background: rgba(124, 92, 255, 0.22);
	filter: blur(35px);
}

.tbg-placeholder-icon {
	position: relative;
	z-index: 2;
	font-size: 54px;
	filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.35));
}

.tbg-placeholder-name {
	position: relative;
	z-index: 2;
	margin-top: 9px;
	color: rgba(255, 255, 255, 0.9);
	font-size: 15px;
	font-weight: 800;
}

/* ---------------------------------------------------------
   Category
--------------------------------------------------------- */

.tbg-category-badge {
	position: absolute;
	top: 13px;
	left: 13px;
	z-index: 3;
	padding: 6px 9px;
	border: 1px solid rgba(255, 255, 255, 0.13);
	border-radius: 8px;
	background: rgba(8, 10, 17, 0.62);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	color: #ffffff;
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.7px;
}

/* ---------------------------------------------------------
   Play Overlay
--------------------------------------------------------- */

.tbg-play-overlay {
	position: absolute;
	inset: 0;
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	background: rgba(6, 8, 14, 0.30);
	transition: opacity 0.25s ease;
}

.tbg-game-card:hover .tbg-play-overlay {
	opacity: 1;
}

.tbg-play-circle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #ffffff;
	color: #17122e;
	font-size: 18px;
	padding-left: 3px;
	box-shadow: 0 12px 35px rgba(0, 0, 0, 0.30);
	transform: scale(0.8);
	transition: transform 0.25s ease;
}

.tbg-game-card:hover .tbg-play-circle {
	transform: scale(1);
}

/* ---------------------------------------------------------
   Card Content
--------------------------------------------------------- */

.tbg-game-card-content {
	padding: 17px;
}

.tbg-game-card-title-row h3 {
	margin: 0 !important;
	padding: 0 !important;
	color: #ffffff !important;
	font-size: 19px !important;
	line-height: 1.3 !important;
	font-weight: 800 !important;
}

.tbg-game-meta {
	min-height: 22px;
	margin-top: 7px;
}

.tbg-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--tbg-muted);
	font-size: 11px;
	font-weight: 600;
}

.tbg-meta-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #00e676;
	box-shadow: 0 0 9px rgba(0, 230, 118, 0.55);
}

/* ---------------------------------------------------------
   Card Footer
--------------------------------------------------------- */

.tbg-game-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 15px;
	padding-top: 14px;
	border-top: 1px solid var(--tbg-border);
}

.tbg-game-type {
	color: #737b91;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.tbg-card-play-button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	border-radius: 9px;
	background: rgba(124, 92, 255, 0.14);
	color: #b9adff !important;
	text-decoration: none !important;
	font-size: 12px;
	font-weight: 800;
	transition:
		background 0.2s ease,
		color 0.2s ease,
		transform 0.2s ease;
}

.tbg-card-play-button:hover {
	background: #7c5cff;
	color: #ffffff !important;
	transform: translateX(2px);
}

/* ---------------------------------------------------------
   Empty State
--------------------------------------------------------- */

.tbg-empty-games {
	padding: 60px 25px;
	border: 1px dashed rgba(255, 255, 255, 0.12);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.02);
	text-align: center;
}

.tbg-empty-icon {
	margin-bottom: 12px;
	font-size: 48px;
}

.tbg-empty-games h3 {
	margin: 0 0 8px !important;
	color: #ffffff !important;
	font-size: 20px !important;
}

.tbg-empty-games p {
	max-width: 500px;
	margin: 0 auto !important;
	color: var(--tbg-muted) !important;
	font-size: 14px;
	line-height: 1.6;
}

/* ---------------------------------------------------------
   Temporary Individual Game Container
--------------------------------------------------------- */

.tbg-game-test-container {
	padding: 30px;
	border-radius: 18px;
	background: #10131d;
	color: #ffffff;
}

.tbg-game-test-container h2 {
	color: #ffffff;
}

.tbg-game-test-container p {
	color: #b5bdcf;
}

/* ---------------------------------------------------------
   Tablet
--------------------------------------------------------- */

@media (max-width: 900px) {

	.tbg-hub-hero {
		padding: 65px 5%;
	}

	.tbg-games-section {
		padding-left: 5%;
		padding-right: 5%;
	}

	.tbg-games-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

}

/* ---------------------------------------------------------
   Mobile
--------------------------------------------------------- */

@media (max-width: 600px) {

	.tbg-game-hub {
		border-radius: 16px;
	}

	.tbg-hub-hero {
		min-height: auto;
		padding: 55px 22px;
	}

	.tbg-hero-title {
		font-size: 39px !important;
		letter-spacing: -1.5px;
	}

	.tbg-hero-description {
		font-size: 14px;
		line-height: 1.65;
	}

	.tbg-games-section {
		padding: 35px 18px 45px;
	}

	.tbg-section-heading {
		align-items: center;
	}

	.tbg-section-heading h2 {
		font-size: 25px !important;
	}

	.tbg-games-grid {
		grid-template-columns: 1fr;
		gap: 17px;
	}

	.tbg-game-card-content {
		padding: 15px;
	}

	.tbg-play-overlay {
		display: none;
	}

	.tbg-card-play-button {
		padding: 9px 13px;
	}

}

/* ---------------------------------------------------------
   Accessibility
--------------------------------------------------------- */

.tbg-primary-button:focus-visible,
.tbg-card-play-button:focus-visible {
	outline: 3px solid rgba(0, 212, 255, 0.65);
	outline-offset: 3px;
}

/* ---------------------------------------------------------
   Game Page / Game Container
--------------------------------------------------------- */

html.tbg-game-html,
body.tbg-game-page {
	margin: 0 !important;
	padding: 0 !important;
	width: 100%;
	min-height: 100%;
}

body.tbg-game-page {
	background: #070910 !important;
	overflow-x: hidden;
}

.tbg-game-shell {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	min-height: 100vh;
	background:
		radial-gradient(
			circle at 15% 10%,
			rgba(124, 92, 255, 0.10),
			transparent 28%
		),
		radial-gradient(
			circle at 85% 20%,
			rgba(0, 212, 255, 0.07),
			transparent 28%
		),
		#070910;
	color: #ffffff;
}

/* ---------------------------------------------------------
   Game Header
--------------------------------------------------------- */

.tbg-game-header {
	position: relative;
	z-index: 20;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	min-height: 64px;
	padding: 0 18px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(8, 10, 17, 0.92);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	box-sizing: border-box;
}

.tbg-game-header-left {
	display: flex;
	justify-content: flex-start;
}

.tbg-game-header-center {
	display: flex;
	justify-content: center;
}

.tbg-game-header-right {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 8px;
}

.tbg-back-button {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 12px;
	border-radius: 9px;
	color: #cbd1e0 !important;
	background: rgba(255, 255, 255, 0.05);
	text-decoration: none !important;
	font-size: 13px;
	font-weight: 700;
	transition:
		background 0.2s ease,
		color 0.2s ease;
}

.tbg-back-button:hover {
	color: #ffffff !important;
	background: rgba(255, 255, 255, 0.10);
}

.tbg-back-button span:first-child {
	font-size: 18px;
	line-height: 1;
}

.tbg-game-title {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #ffffff;
	font-size: 15px;
	font-weight: 850;
	letter-spacing: 0.2px;
}

.tbg-game-title-icon {
	font-size: 19px;
}

.tbg-game-control {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.05);
	color: #ffffff;
	cursor: pointer;
	font-size: 16px;
	transition:
		transform 0.2s ease,
		background 0.2s ease;
}

.tbg-game-control:hover {
	background: rgba(124, 92, 255, 0.20);
	transform: translateY(-1px);
}

/* ---------------------------------------------------------
   Main Game Area
--------------------------------------------------------- */

.tbg-game-main {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 25px;
	box-sizing: border-box;
}

.tbg-game-container {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: min(1200px, 100%);
	min-height: min(680px, calc(100vh - 155px));
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 20px;
	overflow: hidden;
	background:
		linear-gradient(
			145deg,
			rgba(255, 255, 255, 0.025),
			rgba(255, 255, 255, 0.008)
		),
		#0c0f18;
	box-shadow:
		0 25px 80px rgba(0, 0, 0, 0.45),
		inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* ---------------------------------------------------------
   Game Loading / Placeholder
--------------------------------------------------------- */

.tbg-game-loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 520px;
	padding: 40px;
	text-align: center;
	box-sizing: border-box;
}

.tbg-game-loading-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 86px;
	height: 86px;
	margin-bottom: 20px;
	border: 1px solid rgba(124, 92, 255, 0.25);
	border-radius: 24px;
	background: rgba(124, 92, 255, 0.10);
	font-size: 42px;
	box-shadow: 0 15px 45px rgba(124, 92, 255, 0.12);
}

.tbg-game-loading h1 {
	margin: 0 0 8px !important;
	padding: 0 !important;
	color: #ffffff !important;
	font-size: 30px !important;
	font-weight: 850 !important;
}

.tbg-game-loading > p {
	margin: 0 0 24px !important;
	color: #858da1 !important;
	font-size: 14px;
}

.tbg-game-placeholder-message {
	display: flex;
	flex-direction: column;
	gap: 5px;
	max-width: 450px;
	padding: 15px 20px;
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.025);
}

.tbg-game-placeholder-message strong {
	color: #b8adff;
	font-size: 13px;
}

.tbg-game-placeholder-message span {
	color: #777f93;
	font-size: 12px;
	line-height: 1.5;
}

/* ---------------------------------------------------------
   Game Footer
--------------------------------------------------------- */

.tbg-game-footer {
	position: relative;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 60px;
	padding: 8px 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(8, 10, 17, 0.92);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	box-sizing: border-box;
}

.tbg-footer-control {
	padding: 9px 14px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 9px;
	background: rgba(255, 255, 255, 0.05);
	color: #c7cddd;
	cursor: pointer;
	font-size: 12px;
	font-weight: 700;
	transition:
		background 0.2s ease,
		color 0.2s ease;
}

.tbg-footer-control:hover {
	background: rgba(124, 92, 255, 0.18);
	color: #ffffff;
}

/* ---------------------------------------------------------
   Mobile Game Page
--------------------------------------------------------- */

@media (max-width: 700px) {

	.tbg-game-header {
		min-height: 58px;
		padding: 0 10px;
		grid-template-columns: auto 1fr auto;
	}

	.tbg-back-button {
		padding: 7px 9px;
	}

	.tbg-back-text {
		display: none;
	}

	.tbg-game-title {
		font-size: 13px;
	}

	.tbg-game-title-icon {
		font-size: 17px;
	}

	.tbg-game-control {
		width: 34px;
		height: 34px;
		font-size: 14px;
	}

	.tbg-game-main {
		padding: 10px;
		align-items: stretch;
	}

	.tbg-game-container {
		width: 100%;
		min-height: calc(100vh - 138px);
		border-radius: 14px;
	}

	.tbg-game-loading {
		min-height: calc(100vh - 138px);
		padding: 25px 18px;
	}

	.tbg-game-loading-icon {
		width: 70px;
		height: 70px;
		border-radius: 20px;
		font-size: 34px;
	}

	.tbg-game-loading h1 {
		font-size: 25px !important;
	}

	.tbg-game-footer {
		min-height: 58px;
	}

}

/* ---------------------------------------------------------
   Very Small Screens
--------------------------------------------------------- */

@media (max-width: 380px) {

	.tbg-game-title {
		font-size: 12px;
	}

	.tbg-game-control {
		width: 32px;
		height: 32px;
	}

	.tbg-footer-control {
		padding: 8px 11px;
		font-size: 11px;
	}

}

/* =====================================================
   TB Gaming Platform - Game Input Surface
   ===================================================== */

.tbg-game-container {
	position: relative;

	/*
	 * Pointer Events API handles mouse/touch input.
	 * Prevent browser gestures inside the active game.
	 */
	touch-action: none;

	/*
	 * Prevent accidental text highlighting
	 * while dragging game objects.
	 */
	user-select: none;
	-webkit-user-select: none;

	/*
	 * Avoid mobile tap highlight.
	 */
	-webkit-tap-highlight-color: transparent;
}

/* ---------------------------------------------------------
   Digigo Games full-bleed landing page
--------------------------------------------------------- */

body.tbg-games-landing-page {
	margin: 0 !important;
	padding: 0 !important;
	background: #087cb5 !important;
	overflow-x: hidden;
}

body.tbg-games-landing-page #page,
body.tbg-games-landing-page .site,
body.tbg-games-landing-page .site-content,
body.tbg-games-landing-page .content-area,
body.tbg-games-landing-page .site-main,
body.tbg-games-landing-page article,
body.tbg-games-landing-page .entry-content,
body.tbg-games-landing-page .ast-container {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

body.tbg-games-landing-page .site-header,
body.tbg-games-landing-page #masthead,
body.tbg-games-landing-page .site-footer,
body.tbg-games-landing-page #colophon,
body.tbg-games-landing-page .entry-header,
body.tbg-games-landing-page .page-header,
body.tbg-games-landing-page .entry-title,
body.tbg-games-landing-page .tbg-hub-playerbar,
body.tbg-games-landing-page .tbg-hub-wallet-panel {
	display: none !important;
}

body.tbg-games-landing-page .entry-content > .wp-block-group,
body.tbg-games-landing-page .entry-content > .wp-block-columns,
body.tbg-games-landing-page .entry-content > .wp-block-cover {
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Elementor Canvas still gives its container/widget chain vertical padding.
 * Reset only the /games/ landing-page wrappers so the Digigo interface meets
 * the top and bottom viewport edges without affecting Elementor elsewhere. */
body.tbg-games-landing-page #content,
body.tbg-games-landing-page .elementor,
body.tbg-games-landing-page .elementor-section-wrap,
body.tbg-games-landing-page .elementor-section,
body.tbg-games-landing-page .elementor-container,
body.tbg-games-landing-page .elementor-column,
body.tbg-games-landing-page .elementor-column-wrap,
body.tbg-games-landing-page .elementor-widget-wrap,
body.tbg-games-landing-page .elementor-widget-shortcode,
body.tbg-games-landing-page .elementor-widget-shortcode > .elementor-widget-container,
body.tbg-games-landing-page .e-con,
body.tbg-games-landing-page .e-con-inner {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	gap: 0 !important;
	--padding-top: 0px;
	--padding-right: 0px;
	--padding-bottom: 0px;
	--padding-left: 0px;
	--content-width: 100%;
}

body.tbg-games-landing-page .elementor-widget-shortcode,
body.tbg-games-landing-page .elementor-widget-shortcode > .elementor-widget-container {
	line-height: 0;
}

body.tbg-games-landing-page .elementor-widget-shortcode .tbg-game-hub {
	line-height: normal;
}

body.tbg-games-landing-page.admin-bar .tbg-game-hub {
	min-height: calc(100vh - 32px);
}

.tbg-game-hub {
	--digigo-navy: #05335f;
	--digigo-deep: #034777;
	--digigo-blue: #087fbd;
	--digigo-cyan: #18d9eb;
	--digigo-gold: #ffb82f;
	position: relative;
	left: 50%;
	width: 100vw;
	max-width: 100vw;
	min-height: 100vh;
	margin: 0 0 0 -50vw !important;
	border-radius: 0;
	background:
		radial-gradient(circle at 12% 18%, rgba(43,218,239,.18), transparent 25%),
		linear-gradient(145deg, #0b9dcb 0%, #0669a5 52%, #064579 100%);
	color: #fff;
	overflow: hidden;
}

.tbg-game-hub::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: .16;
	background-image:
		linear-gradient(135deg, transparent 45%, rgba(255,255,255,.22) 46%, transparent 48%),
		linear-gradient(45deg, transparent 45%, rgba(255,255,255,.15) 46%, transparent 48%);
	background-size: 92px 92px;
}

.tbg-landing-header {
	position: sticky;
	top: 0;
	z-index: 50;
	display: grid;
	grid-template-columns: minmax(240px,1fr) auto minmax(240px,1fr);
	align-items: center;
	min-height: 74px;
	padding: 0 clamp(22px,5vw,78px);
	border-bottom: 1px solid rgba(53,230,244,.5);
	background: rgba(2,47,87,.93);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	box-shadow: 0 8px 28px rgba(0,30,61,.18);
}

.tbg-brand,
.tbg-landing-nav,
.tbg-header-actions { display: flex; align-items: center; }

.tbg-brand {
	justify-self: start;
	gap: 12px;
	color: #fff !important;
	font-size: clamp(19px,1.6vw,27px);
	font-weight: 900;
	letter-spacing: -.7px;
	text-decoration: none !important;
}

.tbg-brand strong { color: var(--digigo-cyan); font-weight: 900; }
.tbg-brand-mark { font-size: 34px; filter: drop-shadow(0 3px 8px rgba(0,0,0,.22)); }

.tbg-landing-nav { gap: clamp(22px,3vw,48px); }
.tbg-landing-nav a {
	position: relative;
	padding: 26px 0 22px;
	color: #eafaff !important;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none !important;
}
.tbg-landing-nav a::after {
	content: "";
	position: absolute;
	left: 50%; right: 50%; bottom: 15px;
	height: 3px;
	border-radius: 3px;
	background: var(--digigo-cyan);
	transition: left .2s ease,right .2s ease;
}
.tbg-landing-nav a:hover::after,
.tbg-landing-nav a.is-active::after { left: 0; right: 0; }

.tbg-header-actions { justify-self: end; gap: 10px; }
.tbg-profile-link { display: grid; place-items: center; text-decoration: none !important; }
.tbg-header-avatar,
.tbg-header-avatar img {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	margin: 0;
	border: 2px solid rgba(24,217,235,.72);
	border-radius: 50%;
	object-fit: cover;
	background: #17bad4;
	box-sizing: border-box;
}
.tbg-header-avatar--guest { font-size: 20px; }
.tbg-header-wallet {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 42px;
	padding: 0 15px;
	border: 1px solid rgba(255,255,255,.1);
	border-radius: 999px;
	background: #052f56;
	color: #fff !important;
	text-decoration: none !important;
	box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.tbg-header-wallet span { color: #ffc63f; font-size: 24px; text-shadow: 0 0 9px rgba(255,190,45,.55); }
.tbg-header-wallet strong { font-size: 15px; font-weight: 900; }
.tbg-mobile-menu { display: none; }

.tbg-hub-hero {
	position: relative;
	min-height: clamp(390px,42vw,610px);
	padding: clamp(70px,9vw,135px) clamp(25px,7vw,110px);
	background-image:
		linear-gradient(90deg, rgba(1,55,103,.9) 0%, rgba(1,72,123,.68) 30%, rgba(0,80,128,.08) 60%),
		url('../images/landing/digigo-games-hero.png');
	background-size: cover;
	background-position: center;
	box-sizing: border-box;
}
.tbg-hub-hero::before,
.tbg-hub-hero::after { display: none; }
.tbg-hero-content { max-width: 610px; }
.tbg-hero-title {
	margin: 0 0 16px !important;
	font-size: clamp(44px,5.3vw,82px) !important;
	line-height: .98 !important;
	letter-spacing: -2.8px;
	text-shadow: 0 6px 14px rgba(0,26,57,.35);
}
.tbg-hero-title span {
	background: none;
	color: #ffcf4f !important;
	-webkit-text-fill-color: #ffcf4f;
}
.tbg-hero-description {
	max-width: 470px;
	margin: 0 0 25px !important;
	color: #d8f7ff !important;
	font-size: 16px;
	line-height: 1.55;
	text-shadow: 0 2px 8px rgba(0,24,49,.55);
}
.tbg-primary-button {
	gap: 13px;
	padding: 14px 24px;
	border-radius: 999px;
	background: linear-gradient(135deg,#ffc13a,#ff9d21);
	color: #092f4d !important;
	font-weight: 950;
	box-shadow: 0 11px 25px rgba(79,43,0,.25), inset 0 1px 0 rgba(255,255,255,.55);
}
.tbg-primary-button:hover { color: #092f4d !important; box-shadow: 0 15px 32px rgba(79,43,0,.32); }

.tbg-games-section {
	position: relative;
	z-index: 2;
	padding: 42px clamp(22px,5.5vw,86px) 65px;
	background: linear-gradient(180deg,rgba(2,81,126,.76),rgba(2,51,92,.93));
}
.tbg-section-heading { align-items: center; justify-content: flex-start; margin-bottom: 24px; }
.tbg-section-heading h2 {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: clamp(26px,2.5vw,37px) !important;
	letter-spacing: -.7px;
}
.tbg-section-heading h2 span { color: var(--digigo-cyan); filter: drop-shadow(0 3px 8px rgba(0,0,0,.22)); }
.tbg-heading-line { width: 52px; height: 4px; border-radius: 4px; background: var(--digigo-cyan); }
.tbg-games-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.tbg-game-card {
	border: 2px solid rgba(39,218,235,.68);
	border-radius: 14px;
	background: linear-gradient(135deg,#0c5487,#064371);
	box-shadow: 0 13px 28px rgba(0,26,55,.28), inset 0 1px 0 rgba(255,255,255,.08);
}
.tbg-game-card:hover { transform: translateY(-5px); border-color: #5ef4ff; box-shadow: 0 19px 36px rgba(0,24,52,.35),0 0 20px rgba(24,217,235,.15); }
.tbg-game-card-image { aspect-ratio: 16/7.7; background: linear-gradient(135deg,#0d94b8,#093d71); }
.tbg-game-placeholder { background: linear-gradient(135deg,#0a89ad,#08416f); }
.tbg-placeholder-glow { background: rgba(24,217,235,.3); }
.tbg-game-card[data-game-id] .tbg-game-placeholder {
	background-image: url('../images/landing/digigo-reference-art.png');
	background-repeat: no-repeat;
	background-size: 488% auto;
}
.tbg-game-card[data-game-id="carrom"] .tbg-game-placeholder { background-position: 7% 59%; }
.tbg-game-card[data-game-id="point-carrom"] .tbg-game-placeholder { background-position: 35% 59%; }
.tbg-game-card[data-game-id="ludo"] .tbg-game-placeholder { background-position: 62% 59%; }
.tbg-game-card[data-game-id="chess"] .tbg-game-placeholder { background-position: 7% 82%; }
.tbg-game-card[data-game-id="neon-nibbler"] .tbg-game-placeholder { background-position: 28% 82%; }
.tbg-game-card[data-game-id="tic-tac-toe"] .tbg-game-placeholder { background-position: 49% 82%; }
.tbg-game-card[data-game-id="snakes-ladders"] .tbg-game-placeholder { background-position: 72% 82%; }
.tbg-game-card[data-game-id] .tbg-placeholder-glow,
.tbg-game-card[data-game-id] .tbg-placeholder-icon,
.tbg-game-card[data-game-id] .tbg-placeholder-name { display: none; }
.tbg-card-overlay { background: linear-gradient(180deg,transparent 56%,rgba(2,37,68,.24)); }
.tbg-game-card-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 11px 12px 12px;
}
.tbg-game-card-content h3 {
	min-width: 0;
	margin: 0 !important;
	color: #fff !important;
	font-size: clamp(15px,1.35vw,21px) !important;
	font-weight: 900 !important;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.tbg-game-card-copy {
	display: flex;
	flex: 1 1 auto;
	min-width: 0;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 5px;
}
.tbg-instant-play {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #9feabb;
	font-size: 11px;
	font-weight: 750;
	line-height: 1;
	white-space: nowrap;
}
.tbg-instant-play i {
	display: block;
	width: 7px;
	height: 7px;
	flex: 0 0 7px;
	border-radius: 50%;
	background: #18df74;
	box-shadow: 0 0 0 3px rgba(24,223,116,.12),0 0 8px rgba(24,223,116,.55);
}
.tbg-card-play-button {
	flex: 0 0 auto;
	padding: 9px 18px;
	border-radius: 999px;
	background: linear-gradient(135deg,#19dfed,#05bfcf);
	color: #043452 !important;
	font-size: 12px;
	box-shadow: 0 6px 14px rgba(0,26,55,.22),inset 0 1px 0 rgba(255,255,255,.5);
}
.tbg-card-play-button:hover { background: #65f5ff; color: #043452 !important; }
.tbg-landing-footer {
	position: relative;
	z-index: 2;
	display: flex;
	justify-content: space-between;
	gap: 20px;
	padding: 22px clamp(22px,5.5vw,86px);
	border-top: 1px solid rgba(55,219,234,.24);
	background: #022f55;
	color: #a9d8e9;
	font-size: 12px;
}
.tbg-landing-footer a { color: #56e9f4 !important; text-decoration: none !important; }

@media (max-width: 900px) {
	.tbg-landing-header { grid-template-columns: auto 1fr auto; padding: 0 20px; }
	.tbg-landing-nav { gap: 22px; justify-self: center; }
	.tbg-hub-hero { min-height: 490px; padding-left: 6vw; background-position: 57% center; }
	.tbg-games-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 600px) {
	body.tbg-games-landing-page.admin-bar .tbg-game-hub { min-height: calc(100vh - 46px); }
	.tbg-game-hub { border-radius: 0; }
	.tbg-landing-header {
		position: sticky;
		grid-template-columns: auto 1fr auto;
		min-height: 64px;
		padding: 0 13px;
	}
	.tbg-mobile-menu {
		display: grid;
		place-items: center;
		grid-column: 1;
		grid-row: 1;
		width: 38px;
		height: 38px;
		padding: 0;
		border: 0;
		background: transparent;
		color: #fff;
		font-size: 24px;
		box-shadow: none;
	}
	.tbg-brand { grid-column: 2; grid-row: 1; justify-self: center; gap: 7px; font-size: 17px; }
	.tbg-brand-mark { font-size: 24px; }
	.tbg-header-actions { grid-column: 3; grid-row: 1; gap: 5px; }
	.tbg-header-avatar,.tbg-header-avatar img { width: 32px; height: 32px; }
	.tbg-header-wallet { min-height: 34px; padding: 0 9px; gap: 5px; }
	.tbg-header-wallet span { font-size: 17px; }
	.tbg-header-wallet strong { font-size: 11px; }
	.tbg-landing-nav {
		position: absolute;
		left: 12px;
		top: calc(100% + 7px);
		display: none;
		width: 170px;
		padding: 9px;
		border: 1px solid rgba(56,230,244,.38);
		border-radius: 14px;
		background: rgba(2,43,79,.97);
		box-shadow: 0 14px 30px rgba(0,21,44,.35);
	}
	.tbg-landing-nav.is-open { display: grid; }
	.tbg-landing-nav a { padding: 10px 12px; border-radius: 9px; }
	.tbg-landing-nav a::after { display: none; }
	.tbg-landing-nav a:hover,.tbg-landing-nav a.is-active { background: rgba(21,215,233,.13); }
	.tbg-hub-hero {
		min-height: 395px;
		padding: 44px 18px 28px;
		align-items: flex-start;
		background-image:
			linear-gradient(180deg,rgba(1,46,88,.6),rgba(1,68,113,.16) 60%,rgba(2,64,104,.6)),
			url('../images/landing/digigo-games-hero.png');
		background-position: 61% center;
	}
	.tbg-hero-content { width: 72%; }
	.tbg-hero-title { font-size: clamp(34px,10vw,48px) !important; line-height: 1 !important; letter-spacing: -1.8px; }
	.tbg-hero-description { display: none; }
	.tbg-primary-button { padding: 11px 17px; font-size: 11px; }
	.tbg-games-section { padding: 27px 12px 38px; }
	.tbg-section-heading { gap: 11px; margin-bottom: 15px; }
	.tbg-section-heading h2 { gap: 8px; font-size: 23px !important; }
	.tbg-heading-line { width: 39px; height: 3px; }
	.tbg-games-grid { grid-template-columns: 1fr; gap: 10px; }
	.tbg-game-card {
		display: flex;
		flex-direction: row;
		align-items: stretch;
		min-height: 76px;
		border-radius: 12px;
		overflow: hidden;
	}
	.tbg-game-card:hover { transform: none; }
	.tbg-game-card-image {
		position: relative;
		flex: 0 0 116px;
		width: 116px;
		height: auto;
		min-height: 76px;
		aspect-ratio: auto;
		overflow: hidden;
	}
	.tbg-game-card-image > img {
		position: absolute !important;
		top: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		left: 0 !important;
		display: block !important;
		width: 100%;
		height: 100%;
		max-width: none !important;
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
		object-fit: cover;
		object-position: center;
	}
	.tbg-game-card-image > .tbg-game-placeholder { inset: 0; }
	.tbg-game-card-content {
		flex: 1 1 auto;
		min-width: 0;
		padding: 8px 9px 8px 11px;
	}
	.tbg-game-card-content h3 { font-size: 16px !important; }
	.tbg-game-card-copy { gap: 6px; }
	.tbg-instant-play { gap: 5px; font-size: 10px; }
	.tbg-instant-play i {
		width: 6px;
		height: 6px;
		flex-basis: 6px;
		box-shadow: 0 0 0 2px rgba(24,223,116,.12),0 0 6px rgba(24,223,116,.5);
	}
	.tbg-card-play-button { padding: 8px 12px; font-size: 10px; }
	.tbg-placeholder-icon { font-size: 25px; }
	.tbg-placeholder-name { display: none; }
	.tbg-landing-footer { padding: 18px 14px; }
}

/* Desktop game-card rhythm: 3 cards first, then 4 cards per row. */
@media (min-width: 901px) {
	.tbg-games-grid {
		grid-template-columns: repeat(12, minmax(0, 1fr));
	}

	.tbg-games-grid > .tbg-game-card {
		grid-column: span 3;
	}

	.tbg-games-grid > .tbg-game-card:nth-child(-n + 3) {
		grid-column: span 4;
	}
}

/* Mobile thumbnail must occupy the card's complete vertical edge. */
@media (max-width: 600px) {
	.tbg-games-section .tbg-games-grid > .tbg-game-card {
		--tbg-mobile-thumb-width: clamp(145px, 34vw, 210px);
		position: relative !important;
		display: flex !important;
		align-items: center !important;
		min-height: 100px !important;
		padding: 0 0 0 var(--tbg-mobile-thumb-width) !important;
		overflow: hidden !important;
	}

	.tbg-games-section .tbg-games-grid > .tbg-game-card > .tbg-game-card-image {
		position: absolute !important;
		top: 0 !important;
		bottom: 0 !important;
		left: 0 !important;
		width: var(--tbg-mobile-thumb-width) !important;
		height: auto !important;
		min-height: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
		aspect-ratio: unset !important;
		border-radius: 0 !important;
		overflow: hidden !important;
	}

	.tbg-games-section .tbg-game-card-image > img,
	.tbg-games-section .tbg-game-card-image > .tbg-game-placeholder {
		position: absolute !important;
		inset: 0 !important;
		display: block !important;
		width: 100% !important;
		height: 100% !important;
		min-height: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
		object-fit: cover !important;
		object-position: center !important;
	}

	.tbg-games-section .tbg-games-grid > .tbg-game-card > .tbg-game-card-content {
		width: 100% !important;
		min-height: 100px !important;
		box-sizing: border-box !important;
	}

	.tbg-games-section .tbg-game-card-content {
		align-items: center !important;
	}

	.tbg-games-section .tbg-game-card-copy {
		align-self: stretch;
		justify-content: flex-start;
		min-height: 82px;
		padding: 9px 0 8px;
		box-sizing: border-box;
	}

	.tbg-games-section .tbg-game-card-copy h3 {
		margin: 0 !important;
		line-height: 1.18 !important;
	}

	.tbg-games-section .tbg-instant-play {
		margin-top: auto;
		margin-bottom: 0;
	}
}
